Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Updated build system to look for file and support for more Linux-based OSes.
[xestiaab/.git] / source / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Xestia Address Book 0.01.
4 #
5 # Report bugs to <bugs@xestia.co.uk>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
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
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
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
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202   if (eval "$as_required") 2>/dev/null; then :
203   as_have_required=yes
204 else
205   as_have_required=no
206 fi
207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209 else
210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214   IFS=$as_save_IFS
215   test -z "$as_dir" && as_dir=.
216   as_found=:
217   case $as_dir in #(
218          /*)
219            for as_base in sh bash ksh sh5; do
220              # Try only shells that exist, to save several forks.
221              as_shell=$as_dir/$as_base
222              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226   break 2
227 fi
228 fi
229            done;;
230        esac
231   as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235   CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
240       if test "x$CONFIG_SHELL" != x; then :
241   export CONFIG_SHELL
242              # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250   *v*x* | *x*v* ) as_opts=-vx ;;
251   *v* ) as_opts=-v ;;
252   *x* ) as_opts=-x ;;
253   * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
262     if test x$as_have_required = xno; then :
263   $as_echo "$0: This script requires a shell more modern than all"
264   $as_echo "$0: the shells that I found on your system."
265   if test x${ZSH_VERSION+set} = xset ; then
266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268   else
269     $as_echo "$0: Please tell bug-autoconf@gnu.org and bugs@xestia.co.uk
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
273 $0: have one."
274   fi
275   exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
293   { eval $1=; unset $1;}
295 as_unset=as_fn_unset
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
302   return $1
303 } # as_fn_set_status
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
310   set +e
311   as_fn_set_status $1
312   exit $1
313 } # as_fn_exit
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
321   case $as_dir in #(
322   -*) as_dir=./$as_dir;;
323   esac
324   test -d "$as_dir" || eval $as_mkdir_p || {
325     as_dirs=
326     while :; do
327       case $as_dir in #(
328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329       *) as_qdir=$as_dir;;
330       esac
331       as_dirs="'$as_qdir' $as_dirs"
332       as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334          X"$as_dir" : 'X\(//\)[^/]' \| \
335          X"$as_dir" : 'X\(//\)$' \| \
336          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339             s//\1/
340             q
341           }
342           /^X\(\/\/\)[^/].*/{
343             s//\1/
344             q
345           }
346           /^X\(\/\/\)$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\).*/{
351             s//\1/
352             q
353           }
354           s/.*/./; q'`
355       test -d "$as_dir" && break
356     done
357     test -z "$as_dirs" || eval "mkdir $as_dirs"
358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
361 } # as_fn_mkdir_p
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368   test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377   eval 'as_fn_append ()
378   {
379     eval $1+=\$2
380   }'
381 else
382   as_fn_append ()
383   {
384     eval $1=\$$1\$2
385   }
386 fi # as_fn_append
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394   eval 'as_fn_arith ()
395   {
396     as_val=$(( $* ))
397   }'
398 else
399   as_fn_arith ()
400   {
401     as_val=`expr "$@" || test $? -eq 1`
402   }
403 fi # as_fn_arith
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
413   as_status=$1; test $as_status -eq 0 && as_status=1
414   if test "$4"; then
415     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417   fi
418   $as_echo "$as_me: error: $2" >&2
419   as_fn_exit $as_status
420 } # as_fn_error
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
424   as_expr=expr
425 else
426   as_expr=false
427 fi
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430   as_basename=basename
431 else
432   as_basename=false
433 fi
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436   as_dirname=dirname
437 else
438   as_dirname=false
439 fi
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443          X"$0" : 'X\(//\)$' \| \
444          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446     sed '/^.*\/\([^/][^/]*\)\/*$/{
447             s//\1/
448             q
449           }
450           /^X\/\(\/\/\)$/{
451             s//\1/
452             q
453           }
454           /^X\/\(\/\).*/{
455             s//\1/
456             q
457           }
458           s/.*/./; q'`
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468   as_lineno_1=$LINENO as_lineno_1a=$LINENO
469   as_lineno_2=$LINENO as_lineno_2a=$LINENO
470   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473   sed -n '
474     p
475     /[$]LINENO/=
476   ' <$as_myself |
477     sed '
478       s/[$]LINENO.*/&-/
479       t lineno
480       b
481       :lineno
482       N
483       :loop
484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485       t loop
486       s/-\n.*//
487     ' >$as_me.lineno &&
488   chmod +x "$as_me.lineno" ||
489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492   # already done that, so ensure we don't try to do so again and fall
493   # in an infinite loop.  This has already happened in practice.
494   _as_can_reexec=no; export _as_can_reexec
495   # Don't try to exec as it changes $[0], causing all sort of problems
496   # (the dirname of $[0] is not the place where we might find the
497   # original and so on.  Autoconf is especially sensitive to this).
498   . "./$as_me.lineno"
499   # Exit status is that of the last command.
500   exit
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506   case `echo 'xy\c'` in
507   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
508   xy)  ECHO_C='\c';;
509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510        ECHO_T=' ';;
511   esac;;
512 *)
513   ECHO_N='-n';;
514 esac
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518   rm -f conf$$.dir/conf$$.file
519 else
520   rm -f conf$$.dir
521   mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524   if ln -s conf$$.file conf$$ 2>/dev/null; then
525     as_ln_s='ln -s'
526     # ... but there are two gotchas:
527     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529     # In both cases, we have to default to `cp -pR'.
530     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531       as_ln_s='cp -pR'
532   elif ln conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s=ln
534   else
535     as_ln_s='cp -pR'
536   fi
537 else
538   as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544   as_mkdir_p='mkdir -p "$as_dir"'
545 else
546   test -d ./-p && rmdir ./-p
547   as_mkdir_p=false
548 fi
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
569 # Initializations.
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
580 # Identity of this package.
581 PACKAGE_NAME='Xestia Address Book'
582 PACKAGE_TARNAME='xestia-address-book'
583 PACKAGE_VERSION='0.01'
584 PACKAGE_STRING='Xestia Address Book 0.01'
585 PACKAGE_BUGREPORT='bugs@xestia.co.uk'
586 PACKAGE_URL=''
588 # Factoring default headers for most tests.
589 ac_includes_default="\
590 #include <stdio.h>
591 #ifdef HAVE_SYS_TYPES_H
592 # include <sys/types.h>
593 #endif
594 #ifdef HAVE_SYS_STAT_H
595 # include <sys/stat.h>
596 #endif
597 #ifdef STDC_HEADERS
598 # include <stdlib.h>
599 # include <stddef.h>
600 #else
601 # ifdef HAVE_STDLIB_H
602 #  include <stdlib.h>
603 # endif
604 #endif
605 #ifdef HAVE_STRING_H
606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607 #  include <memory.h>
608 # endif
609 # include <string.h>
610 #endif
611 #ifdef HAVE_STRINGS_H
612 # include <strings.h>
613 #endif
614 #ifdef HAVE_INTTYPES_H
615 # include <inttypes.h>
616 #endif
617 #ifdef HAVE_STDINT_H
618 # include <stdint.h>
619 #endif
620 #ifdef HAVE_UNISTD_H
621 # include <unistd.h>
622 #endif"
624 ac_subst_vars='LTLIBOBJS
625 LIBOBJS
626 DBGSTATUS
627 DBGOUT
628 DEBUG_FALSE
629 DEBUG_TRUE
630 FOUND_UUIDGEN_RES_FALSE
631 FOUND_UUIDGEN_RES_TRUE
632 FOUND_UUIDGEN
633 FOUND_FILE_RES_FALSE
634 FOUND_FILE_RES_TRUE
635 FOUND_FILE
636 FOUND_XML2CONFIG_RES_FALSE
637 FOUND_XML2CONFIG_RES_TRUE
638 FOUND_XML2CONFIG
639 FOUND_CURLCONFIG_RES_FALSE
640 FOUND_CURLCONFIG_RES_TRUE
641 FOUND_CURLCONFIG
642 WX_VERSION_MICRO
643 WX_VERSION_MINOR
644 WX_VERSION_MAJOR
645 WX_RESCOMP
646 WX_VERSION
647 WX_LIBS_STATIC
648 WX_LIBS
649 WX_CXXFLAGS_ONLY
650 WX_CFLAGS_ONLY
651 WX_CXXFLAGS
652 WX_CFLAGS
653 WX_CPPFLAGS
654 WX_CONFIG_PATH
655 EGREP
656 GREP
657 CXXCPP
658 BINDIR
659 PREFIX
660 CPP
661 ac_ct_CC
662 CFLAGS
663 CC
664 OBJEXT
665 EXEEXT
666 ac_ct_CXX
667 CPPFLAGS
668 LDFLAGS
669 CXXFLAGS
670 CXX
671 target_alias
672 host_alias
673 build_alias
674 LIBS
675 ECHO_T
676 ECHO_N
677 ECHO_C
678 DEFS
679 mandir
680 localedir
681 libdir
682 psdir
683 pdfdir
684 dvidir
685 htmldir
686 infodir
687 docdir
688 oldincludedir
689 includedir
690 localstatedir
691 sharedstatedir
692 sysconfdir
693 datadir
694 datarootdir
695 libexecdir
696 sbindir
697 bindir
698 program_transform_name
699 prefix
700 exec_prefix
701 PACKAGE_URL
702 PACKAGE_BUGREPORT
703 PACKAGE_STRING
704 PACKAGE_VERSION
705 PACKAGE_TARNAME
706 PACKAGE_NAME
707 PATH_SEPARATOR
708 SHELL'
709 ac_subst_files=''
710 ac_user_opts='
711 enable_option_checking
712 with_wxdir
713 with_wx_config
714 with_wx_prefix
715 with_wx_exec_prefix
716 enable_debug
718       ac_precious_vars='build_alias
719 host_alias
720 target_alias
721 CXX
722 CXXFLAGS
723 LDFLAGS
724 LIBS
725 CPPFLAGS
726 CCC
727 CC
728 CFLAGS
729 CPP
730 CXXCPP'
733 # Initialize some variables set by options.
734 ac_init_help=
735 ac_init_version=false
736 ac_unrecognized_opts=
737 ac_unrecognized_sep=
738 # The variables have the same names as the options, with
739 # dashes changed to underlines.
740 cache_file=/dev/null
741 exec_prefix=NONE
742 no_create=
743 no_recursion=
744 prefix=NONE
745 program_prefix=NONE
746 program_suffix=NONE
747 program_transform_name=s,x,x,
748 silent=
749 site=
750 srcdir=
751 verbose=
752 x_includes=NONE
753 x_libraries=NONE
755 # Installation directory options.
756 # These are left unexpanded so users can "make install exec_prefix=/foo"
757 # and all the variables that are supposed to be based on exec_prefix
758 # by default will actually change.
759 # Use braces instead of parens because sh, perl, etc. also accept them.
760 # (The list follows the same order as the GNU Coding Standards.)
761 bindir='${exec_prefix}/bin'
762 sbindir='${exec_prefix}/sbin'
763 libexecdir='${exec_prefix}/libexec'
764 datarootdir='${prefix}/share'
765 datadir='${datarootdir}'
766 sysconfdir='${prefix}/etc'
767 sharedstatedir='${prefix}/com'
768 localstatedir='${prefix}/var'
769 includedir='${prefix}/include'
770 oldincludedir='/usr/include'
771 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
772 infodir='${datarootdir}/info'
773 htmldir='${docdir}'
774 dvidir='${docdir}'
775 pdfdir='${docdir}'
776 psdir='${docdir}'
777 libdir='${exec_prefix}/lib'
778 localedir='${datarootdir}/locale'
779 mandir='${datarootdir}/man'
781 ac_prev=
782 ac_dashdash=
783 for ac_option
784 do
785   # If the previous option needs an argument, assign it.
786   if test -n "$ac_prev"; then
787     eval $ac_prev=\$ac_option
788     ac_prev=
789     continue
790   fi
792   case $ac_option in
793   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
794   *=)   ac_optarg= ;;
795   *)    ac_optarg=yes ;;
796   esac
798   # Accept the important Cygnus configure options, so we can diagnose typos.
800   case $ac_dashdash$ac_option in
801   --)
802     ac_dashdash=yes ;;
804   -bindir | --bindir | --bindi | --bind | --bin | --bi)
805     ac_prev=bindir ;;
806   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
807     bindir=$ac_optarg ;;
809   -build | --build | --buil | --bui | --bu)
810     ac_prev=build_alias ;;
811   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
812     build_alias=$ac_optarg ;;
814   -cache-file | --cache-file | --cache-fil | --cache-fi \
815   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
816     ac_prev=cache_file ;;
817   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
818   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
819     cache_file=$ac_optarg ;;
821   --config-cache | -C)
822     cache_file=config.cache ;;
824   -datadir | --datadir | --datadi | --datad)
825     ac_prev=datadir ;;
826   -datadir=* | --datadir=* | --datadi=* | --datad=*)
827     datadir=$ac_optarg ;;
829   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
830   | --dataroo | --dataro | --datar)
831     ac_prev=datarootdir ;;
832   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
833   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
834     datarootdir=$ac_optarg ;;
836   -disable-* | --disable-*)
837     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
838     # Reject names that are not valid shell variable names.
839     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
840       as_fn_error $? "invalid feature name: $ac_useropt"
841     ac_useropt_orig=$ac_useropt
842     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
843     case $ac_user_opts in
844       *"
845 "enable_$ac_useropt"
846 "*) ;;
847       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
848          ac_unrecognized_sep=', ';;
849     esac
850     eval enable_$ac_useropt=no ;;
852   -docdir | --docdir | --docdi | --doc | --do)
853     ac_prev=docdir ;;
854   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
855     docdir=$ac_optarg ;;
857   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
858     ac_prev=dvidir ;;
859   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
860     dvidir=$ac_optarg ;;
862   -enable-* | --enable-*)
863     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
864     # Reject names that are not valid shell variable names.
865     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
866       as_fn_error $? "invalid feature name: $ac_useropt"
867     ac_useropt_orig=$ac_useropt
868     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
869     case $ac_user_opts in
870       *"
871 "enable_$ac_useropt"
872 "*) ;;
873       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
874          ac_unrecognized_sep=', ';;
875     esac
876     eval enable_$ac_useropt=\$ac_optarg ;;
878   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
879   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
880   | --exec | --exe | --ex)
881     ac_prev=exec_prefix ;;
882   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
883   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
884   | --exec=* | --exe=* | --ex=*)
885     exec_prefix=$ac_optarg ;;
887   -gas | --gas | --ga | --g)
888     # Obsolete; use --with-gas.
889     with_gas=yes ;;
891   -help | --help | --hel | --he | -h)
892     ac_init_help=long ;;
893   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
894     ac_init_help=recursive ;;
895   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
896     ac_init_help=short ;;
898   -host | --host | --hos | --ho)
899     ac_prev=host_alias ;;
900   -host=* | --host=* | --hos=* | --ho=*)
901     host_alias=$ac_optarg ;;
903   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
904     ac_prev=htmldir ;;
905   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
906   | --ht=*)
907     htmldir=$ac_optarg ;;
909   -includedir | --includedir | --includedi | --included | --include \
910   | --includ | --inclu | --incl | --inc)
911     ac_prev=includedir ;;
912   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
913   | --includ=* | --inclu=* | --incl=* | --inc=*)
914     includedir=$ac_optarg ;;
916   -infodir | --infodir | --infodi | --infod | --info | --inf)
917     ac_prev=infodir ;;
918   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
919     infodir=$ac_optarg ;;
921   -libdir | --libdir | --libdi | --libd)
922     ac_prev=libdir ;;
923   -libdir=* | --libdir=* | --libdi=* | --libd=*)
924     libdir=$ac_optarg ;;
926   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
927   | --libexe | --libex | --libe)
928     ac_prev=libexecdir ;;
929   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
930   | --libexe=* | --libex=* | --libe=*)
931     libexecdir=$ac_optarg ;;
933   -localedir | --localedir | --localedi | --localed | --locale)
934     ac_prev=localedir ;;
935   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
936     localedir=$ac_optarg ;;
938   -localstatedir | --localstatedir | --localstatedi | --localstated \
939   | --localstate | --localstat | --localsta | --localst | --locals)
940     ac_prev=localstatedir ;;
941   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
942   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
943     localstatedir=$ac_optarg ;;
945   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
946     ac_prev=mandir ;;
947   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
948     mandir=$ac_optarg ;;
950   -nfp | --nfp | --nf)
951     # Obsolete; use --without-fp.
952     with_fp=no ;;
954   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
955   | --no-cr | --no-c | -n)
956     no_create=yes ;;
958   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
959   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
960     no_recursion=yes ;;
962   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
963   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
964   | --oldin | --oldi | --old | --ol | --o)
965     ac_prev=oldincludedir ;;
966   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
967   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
968   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
969     oldincludedir=$ac_optarg ;;
971   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
972     ac_prev=prefix ;;
973   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
974     prefix=$ac_optarg ;;
976   -program-prefix | --program-prefix | --program-prefi | --program-pref \
977   | --program-pre | --program-pr | --program-p)
978     ac_prev=program_prefix ;;
979   -program-prefix=* | --program-prefix=* | --program-prefi=* \
980   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
981     program_prefix=$ac_optarg ;;
983   -program-suffix | --program-suffix | --program-suffi | --program-suff \
984   | --program-suf | --program-su | --program-s)
985     ac_prev=program_suffix ;;
986   -program-suffix=* | --program-suffix=* | --program-suffi=* \
987   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
988     program_suffix=$ac_optarg ;;
990   -program-transform-name | --program-transform-name \
991   | --program-transform-nam | --program-transform-na \
992   | --program-transform-n | --program-transform- \
993   | --program-transform | --program-transfor \
994   | --program-transfo | --program-transf \
995   | --program-trans | --program-tran \
996   | --progr-tra | --program-tr | --program-t)
997     ac_prev=program_transform_name ;;
998   -program-transform-name=* | --program-transform-name=* \
999   | --program-transform-nam=* | --program-transform-na=* \
1000   | --program-transform-n=* | --program-transform-=* \
1001   | --program-transform=* | --program-transfor=* \
1002   | --program-transfo=* | --program-transf=* \
1003   | --program-trans=* | --program-tran=* \
1004   | --progr-tra=* | --program-tr=* | --program-t=*)
1005     program_transform_name=$ac_optarg ;;
1007   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1008     ac_prev=pdfdir ;;
1009   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1010     pdfdir=$ac_optarg ;;
1012   -psdir | --psdir | --psdi | --psd | --ps)
1013     ac_prev=psdir ;;
1014   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1015     psdir=$ac_optarg ;;
1017   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1018   | -silent | --silent | --silen | --sile | --sil)
1019     silent=yes ;;
1021   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1022     ac_prev=sbindir ;;
1023   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1024   | --sbi=* | --sb=*)
1025     sbindir=$ac_optarg ;;
1027   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1028   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1029   | --sharedst | --shareds | --shared | --share | --shar \
1030   | --sha | --sh)
1031     ac_prev=sharedstatedir ;;
1032   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1033   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1034   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1035   | --sha=* | --sh=*)
1036     sharedstatedir=$ac_optarg ;;
1038   -site | --site | --sit)
1039     ac_prev=site ;;
1040   -site=* | --site=* | --sit=*)
1041     site=$ac_optarg ;;
1043   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1044     ac_prev=srcdir ;;
1045   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1046     srcdir=$ac_optarg ;;
1048   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1049   | --syscon | --sysco | --sysc | --sys | --sy)
1050     ac_prev=sysconfdir ;;
1051   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1052   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1053     sysconfdir=$ac_optarg ;;
1055   -target | --target | --targe | --targ | --tar | --ta | --t)
1056     ac_prev=target_alias ;;
1057   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1058     target_alias=$ac_optarg ;;
1060   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1061     verbose=yes ;;
1063   -version | --version | --versio | --versi | --vers | -V)
1064     ac_init_version=: ;;
1066   -with-* | --with-*)
1067     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1068     # Reject names that are not valid shell variable names.
1069     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1070       as_fn_error $? "invalid package name: $ac_useropt"
1071     ac_useropt_orig=$ac_useropt
1072     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1073     case $ac_user_opts in
1074       *"
1075 "with_$ac_useropt"
1076 "*) ;;
1077       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1078          ac_unrecognized_sep=', ';;
1079     esac
1080     eval with_$ac_useropt=\$ac_optarg ;;
1082   -without-* | --without-*)
1083     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1084     # Reject names that are not valid shell variable names.
1085     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086       as_fn_error $? "invalid package name: $ac_useropt"
1087     ac_useropt_orig=$ac_useropt
1088     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089     case $ac_user_opts in
1090       *"
1091 "with_$ac_useropt"
1092 "*) ;;
1093       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1094          ac_unrecognized_sep=', ';;
1095     esac
1096     eval with_$ac_useropt=no ;;
1098   --x)
1099     # Obsolete; use --with-x.
1100     with_x=yes ;;
1102   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1103   | --x-incl | --x-inc | --x-in | --x-i)
1104     ac_prev=x_includes ;;
1105   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1106   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1107     x_includes=$ac_optarg ;;
1109   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1110   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1111     ac_prev=x_libraries ;;
1112   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1113   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1114     x_libraries=$ac_optarg ;;
1116   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1117 Try \`$0 --help' for more information"
1118     ;;
1120   *=*)
1121     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1122     # Reject names that are not valid shell variable names.
1123     case $ac_envvar in #(
1124       '' | [0-9]* | *[!_$as_cr_alnum]* )
1125       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1126     esac
1127     eval $ac_envvar=\$ac_optarg
1128     export $ac_envvar ;;
1130   *)
1131     # FIXME: should be removed in autoconf 3.0.
1132     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1133     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1134       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1135     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1136     ;;
1138   esac
1139 done
1141 if test -n "$ac_prev"; then
1142   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1143   as_fn_error $? "missing argument to $ac_option"
1144 fi
1146 if test -n "$ac_unrecognized_opts"; then
1147   case $enable_option_checking in
1148     no) ;;
1149     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1150     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1151   esac
1152 fi
1154 # Check all directory arguments for consistency.
1155 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1156                 datadir sysconfdir sharedstatedir localstatedir includedir \
1157                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1158                 libdir localedir mandir
1159 do
1160   eval ac_val=\$$ac_var
1161   # Remove trailing slashes.
1162   case $ac_val in
1163     */ )
1164       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1165       eval $ac_var=\$ac_val;;
1166   esac
1167   # Be sure to have absolute directory names.
1168   case $ac_val in
1169     [\\/$]* | ?:[\\/]* )  continue;;
1170     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1171   esac
1172   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1173 done
1175 # There might be people who depend on the old broken behavior: `$host'
1176 # used to hold the argument of --host etc.
1177 # FIXME: To remove some day.
1178 build=$build_alias
1179 host=$host_alias
1180 target=$target_alias
1182 # FIXME: To remove some day.
1183 if test "x$host_alias" != x; then
1184   if test "x$build_alias" = x; then
1185     cross_compiling=maybe
1186   elif test "x$build_alias" != "x$host_alias"; then
1187     cross_compiling=yes
1188   fi
1189 fi
1191 ac_tool_prefix=
1192 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1194 test "$silent" = yes && exec 6>/dev/null
1197 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1198 ac_ls_di=`ls -di .` &&
1199 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1200   as_fn_error $? "working directory cannot be determined"
1201 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1202   as_fn_error $? "pwd does not report name of working directory"
1205 # Find the source files, if location was not specified.
1206 if test -z "$srcdir"; then
1207   ac_srcdir_defaulted=yes
1208   # Try the directory containing this script, then the parent directory.
1209   ac_confdir=`$as_dirname -- "$as_myself" ||
1210 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1211          X"$as_myself" : 'X\(//\)[^/]' \| \
1212          X"$as_myself" : 'X\(//\)$' \| \
1213          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1214 $as_echo X"$as_myself" |
1215     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1216             s//\1/
1217             q
1218           }
1219           /^X\(\/\/\)[^/].*/{
1220             s//\1/
1221             q
1222           }
1223           /^X\(\/\/\)$/{
1224             s//\1/
1225             q
1226           }
1227           /^X\(\/\).*/{
1228             s//\1/
1229             q
1230           }
1231           s/.*/./; q'`
1232   srcdir=$ac_confdir
1233   if test ! -r "$srcdir/$ac_unique_file"; then
1234     srcdir=..
1235   fi
1236 else
1237   ac_srcdir_defaulted=no
1238 fi
1239 if test ! -r "$srcdir/$ac_unique_file"; then
1240   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1241   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1242 fi
1243 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1244 ac_abs_confdir=`(
1245         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1246         pwd)`
1247 # When building in place, set srcdir=.
1248 if test "$ac_abs_confdir" = "$ac_pwd"; then
1249   srcdir=.
1250 fi
1251 # Remove unnecessary trailing slashes from srcdir.
1252 # Double slashes in file names in object file debugging info
1253 # mess up M-x gdb in Emacs.
1254 case $srcdir in
1255 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1256 esac
1257 for ac_var in $ac_precious_vars; do
1258   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1259   eval ac_env_${ac_var}_value=\$${ac_var}
1260   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1261   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1262 done
1265 # Report the --help message.
1267 if test "$ac_init_help" = "long"; then
1268   # Omit some internal or obsolete options to make the list less imposing.
1269   # This message is too long to be a string in the A/UX 3.1 sh.
1270   cat <<_ACEOF
1271 \`configure' configures Xestia Address Book 0.01 to adapt to many kinds of systems.
1273 Usage: $0 [OPTION]... [VAR=VALUE]...
1275 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1276 VAR=VALUE.  See below for descriptions of some of the useful variables.
1278 Defaults for the options are specified in brackets.
1280 Configuration:
1281   -h, --help              display this help and exit
1282       --help=short        display options specific to this package
1283       --help=recursive    display the short help of all the included packages
1284   -V, --version           display version information and exit
1285   -q, --quiet, --silent   do not print \`checking ...' messages
1286       --cache-file=FILE   cache test results in FILE [disabled]
1287   -C, --config-cache      alias for \`--cache-file=config.cache'
1288   -n, --no-create         do not create output files
1289       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1291 Installation directories:
1292   --prefix=PREFIX         install architecture-independent files in PREFIX
1293                           [$ac_default_prefix]
1294   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1295                           [PREFIX]
1297 By default, \`make install' will install all the files in
1298 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1299 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1300 for instance \`--prefix=\$HOME'.
1302 For better control, use the options below.
1304 Fine tuning of the installation directories:
1305   --bindir=DIR            user executables [EPREFIX/bin]
1306   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1307   --libexecdir=DIR        program executables [EPREFIX/libexec]
1308   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1309   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1310   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1311   --libdir=DIR            object code libraries [EPREFIX/lib]
1312   --includedir=DIR        C header files [PREFIX/include]
1313   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1314   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1315   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1316   --infodir=DIR           info documentation [DATAROOTDIR/info]
1317   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1318   --mandir=DIR            man documentation [DATAROOTDIR/man]
1319   --docdir=DIR            documentation root
1320                           [DATAROOTDIR/doc/xestia-address-book]
1321   --htmldir=DIR           html documentation [DOCDIR]
1322   --dvidir=DIR            dvi documentation [DOCDIR]
1323   --pdfdir=DIR            pdf documentation [DOCDIR]
1324   --psdir=DIR             ps documentation [DOCDIR]
1325 _ACEOF
1327   cat <<\_ACEOF
1328 _ACEOF
1329 fi
1331 if test -n "$ac_init_help"; then
1332   case $ac_init_help in
1333      short | recursive ) echo "Configuration of Xestia Address Book 0.01:";;
1334    esac
1335   cat <<\_ACEOF
1337 Optional Features:
1338   --disable-option-checking  ignore unrecognized --enable/--with options
1339   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1340   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1341   --enable-debug          Enable debugging features for the build.
1343 Optional Packages:
1344   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1345   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1346   --with-wxdir=PATH       Use uninstalled version of wxWidgets in PATH
1347   --with-wx-config=CONFIG wx-config script to use (optional)
1348   --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)
1349   --with-wx-exec-prefix=PREFIX
1350                           Exec prefix where wxWidgets is installed (optional)
1352 Some influential environment variables:
1353   CXX         C++ compiler command
1354   CXXFLAGS    C++ compiler flags
1355   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1356               nonstandard directory <lib dir>
1357   LIBS        libraries to pass to the linker, e.g. -l<library>
1358   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1359               you have headers in a nonstandard directory <include dir>
1360   CC          C compiler command
1361   CFLAGS      C compiler flags
1362   CPP         C preprocessor
1363   CXXCPP      C++ preprocessor
1365 Use these variables to override the choices made by `configure' or to help
1366 it to find libraries and programs with nonstandard names/locations.
1368 Report bugs to <bugs@xestia.co.uk>.
1369 _ACEOF
1370 ac_status=$?
1371 fi
1373 if test "$ac_init_help" = "recursive"; then
1374   # If there are subdirs, report their specific --help.
1375   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1376     test -d "$ac_dir" ||
1377       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1378       continue
1379     ac_builddir=.
1381 case "$ac_dir" in
1382 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383 *)
1384   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1385   # A ".." for each directory in $ac_dir_suffix.
1386   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1387   case $ac_top_builddir_sub in
1388   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1389   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1390   esac ;;
1391 esac
1392 ac_abs_top_builddir=$ac_pwd
1393 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1394 # for backward compatibility:
1395 ac_top_builddir=$ac_top_build_prefix
1397 case $srcdir in
1398   .)  # We are building in place.
1399     ac_srcdir=.
1400     ac_top_srcdir=$ac_top_builddir_sub
1401     ac_abs_top_srcdir=$ac_pwd ;;
1402   [\\/]* | ?:[\\/]* )  # Absolute name.
1403     ac_srcdir=$srcdir$ac_dir_suffix;
1404     ac_top_srcdir=$srcdir
1405     ac_abs_top_srcdir=$srcdir ;;
1406   *) # Relative name.
1407     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1408     ac_top_srcdir=$ac_top_build_prefix$srcdir
1409     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1410 esac
1411 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1413     cd "$ac_dir" || { ac_status=$?; continue; }
1414     # Check for guested configure.
1415     if test -f "$ac_srcdir/configure.gnu"; then
1416       echo &&
1417       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1418     elif test -f "$ac_srcdir/configure"; then
1419       echo &&
1420       $SHELL "$ac_srcdir/configure" --help=recursive
1421     else
1422       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1423     fi || ac_status=$?
1424     cd "$ac_pwd" || { ac_status=$?; break; }
1425   done
1426 fi
1428 test -n "$ac_init_help" && exit $ac_status
1429 if $ac_init_version; then
1430   cat <<\_ACEOF
1431 Xestia Address Book configure 0.01
1432 generated by GNU Autoconf 2.69
1434 Copyright (C) 2012 Free Software Foundation, Inc.
1435 This configure script is free software; the Free Software Foundation
1436 gives unlimited permission to copy, distribute and modify it.
1437 _ACEOF
1438   exit
1439 fi
1441 ## ------------------------ ##
1442 ## Autoconf initialization. ##
1443 ## ------------------------ ##
1445 # ac_fn_cxx_try_compile LINENO
1446 # ----------------------------
1447 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1448 ac_fn_cxx_try_compile ()
1450   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1451   rm -f conftest.$ac_objext
1452   if { { ac_try="$ac_compile"
1453 case "(($ac_try" in
1454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1455   *) ac_try_echo=$ac_try;;
1456 esac
1457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1458 $as_echo "$ac_try_echo"; } >&5
1459   (eval "$ac_compile") 2>conftest.err
1460   ac_status=$?
1461   if test -s conftest.err; then
1462     grep -v '^ *+' conftest.err >conftest.er1
1463     cat conftest.er1 >&5
1464     mv -f conftest.er1 conftest.err
1465   fi
1466   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1467   test $ac_status = 0; } && {
1468          test -z "$ac_cxx_werror_flag" ||
1469          test ! -s conftest.err
1470        } && test -s conftest.$ac_objext; then :
1471   ac_retval=0
1472 else
1473   $as_echo "$as_me: failed program was:" >&5
1474 sed 's/^/| /' conftest.$ac_ext >&5
1476         ac_retval=1
1477 fi
1478   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1479   as_fn_set_status $ac_retval
1481 } # ac_fn_cxx_try_compile
1483 # ac_fn_c_try_compile LINENO
1484 # --------------------------
1485 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1486 ac_fn_c_try_compile ()
1488   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1489   rm -f conftest.$ac_objext
1490   if { { ac_try="$ac_compile"
1491 case "(($ac_try" in
1492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1493   *) ac_try_echo=$ac_try;;
1494 esac
1495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1496 $as_echo "$ac_try_echo"; } >&5
1497   (eval "$ac_compile") 2>conftest.err
1498   ac_status=$?
1499   if test -s conftest.err; then
1500     grep -v '^ *+' conftest.err >conftest.er1
1501     cat conftest.er1 >&5
1502     mv -f conftest.er1 conftest.err
1503   fi
1504   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1505   test $ac_status = 0; } && {
1506          test -z "$ac_c_werror_flag" ||
1507          test ! -s conftest.err
1508        } && test -s conftest.$ac_objext; then :
1509   ac_retval=0
1510 else
1511   $as_echo "$as_me: failed program was:" >&5
1512 sed 's/^/| /' conftest.$ac_ext >&5
1514         ac_retval=1
1515 fi
1516   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1517   as_fn_set_status $ac_retval
1519 } # ac_fn_c_try_compile
1521 # ac_fn_c_try_cpp LINENO
1522 # ----------------------
1523 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1524 ac_fn_c_try_cpp ()
1526   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1527   if { { ac_try="$ac_cpp conftest.$ac_ext"
1528 case "(($ac_try" in
1529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1530   *) ac_try_echo=$ac_try;;
1531 esac
1532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1533 $as_echo "$ac_try_echo"; } >&5
1534   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1535   ac_status=$?
1536   if test -s conftest.err; then
1537     grep -v '^ *+' conftest.err >conftest.er1
1538     cat conftest.er1 >&5
1539     mv -f conftest.er1 conftest.err
1540   fi
1541   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1542   test $ac_status = 0; } > conftest.i && {
1543          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1544          test ! -s conftest.err
1545        }; then :
1546   ac_retval=0
1547 else
1548   $as_echo "$as_me: failed program was:" >&5
1549 sed 's/^/| /' conftest.$ac_ext >&5
1551     ac_retval=1
1552 fi
1553   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1554   as_fn_set_status $ac_retval
1556 } # ac_fn_c_try_cpp
1558 # ac_fn_cxx_try_cpp LINENO
1559 # ------------------------
1560 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1561 ac_fn_cxx_try_cpp ()
1563   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564   if { { ac_try="$ac_cpp conftest.$ac_ext"
1565 case "(($ac_try" in
1566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567   *) ac_try_echo=$ac_try;;
1568 esac
1569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570 $as_echo "$ac_try_echo"; } >&5
1571   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1572   ac_status=$?
1573   if test -s conftest.err; then
1574     grep -v '^ *+' conftest.err >conftest.er1
1575     cat conftest.er1 >&5
1576     mv -f conftest.er1 conftest.err
1577   fi
1578   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579   test $ac_status = 0; } > conftest.i && {
1580          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1581          test ! -s conftest.err
1582        }; then :
1583   ac_retval=0
1584 else
1585   $as_echo "$as_me: failed program was:" >&5
1586 sed 's/^/| /' conftest.$ac_ext >&5
1588     ac_retval=1
1589 fi
1590   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1591   as_fn_set_status $ac_retval
1593 } # ac_fn_cxx_try_cpp
1595 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1596 # ---------------------------------------------------------
1597 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1598 # the include files in INCLUDES and setting the cache variable VAR
1599 # accordingly.
1600 ac_fn_cxx_check_header_mongrel ()
1602   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603   if eval \${$3+:} false; then :
1604   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1605 $as_echo_n "checking for $2... " >&6; }
1606 if eval \${$3+:} false; then :
1607   $as_echo_n "(cached) " >&6
1608 fi
1609 eval ac_res=\$$3
1610                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1611 $as_echo "$ac_res" >&6; }
1612 else
1613   # Is the header compilable?
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1615 $as_echo_n "checking $2 usability... " >&6; }
1616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1617 /* end confdefs.h.  */
1618 $4
1619 #include <$2>
1620 _ACEOF
1621 if ac_fn_cxx_try_compile "$LINENO"; then :
1622   ac_header_compiler=yes
1623 else
1624   ac_header_compiler=no
1625 fi
1626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1628 $as_echo "$ac_header_compiler" >&6; }
1630 # Is the header present?
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1632 $as_echo_n "checking $2 presence... " >&6; }
1633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1634 /* end confdefs.h.  */
1635 #include <$2>
1636 _ACEOF
1637 if ac_fn_cxx_try_cpp "$LINENO"; then :
1638   ac_header_preproc=yes
1639 else
1640   ac_header_preproc=no
1641 fi
1642 rm -f conftest.err conftest.i conftest.$ac_ext
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1644 $as_echo "$ac_header_preproc" >&6; }
1646 # So?  What about this header?
1647 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1648   yes:no: )
1649     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1650 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1651     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1652 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1653     ;;
1654   no:yes:* )
1655     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1656 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1657     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1658 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1659     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1660 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1661     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1662 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1663     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1664 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1665 ( $as_echo "## -------------------------------- ##
1666 ## Report this to bugs@xestia.co.uk ##
1667 ## -------------------------------- ##"
1668      ) | sed "s/^/$as_me: WARNING:     /" >&2
1669     ;;
1670 esac
1671   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1672 $as_echo_n "checking for $2... " >&6; }
1673 if eval \${$3+:} false; then :
1674   $as_echo_n "(cached) " >&6
1675 else
1676   eval "$3=\$ac_header_compiler"
1677 fi
1678 eval ac_res=\$$3
1679                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1680 $as_echo "$ac_res" >&6; }
1681 fi
1682   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684 } # ac_fn_cxx_check_header_mongrel
1686 # ac_fn_cxx_try_run LINENO
1687 # ------------------------
1688 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1689 # that executables *can* be run.
1690 ac_fn_cxx_try_run ()
1692   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693   if { { ac_try="$ac_link"
1694 case "(($ac_try" in
1695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696   *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700   (eval "$ac_link") 2>&5
1701   ac_status=$?
1702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1704   { { case "(($ac_try" in
1705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706   *) ac_try_echo=$ac_try;;
1707 esac
1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710   (eval "$ac_try") 2>&5
1711   ac_status=$?
1712   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713   test $ac_status = 0; }; }; then :
1714   ac_retval=0
1715 else
1716   $as_echo "$as_me: program exited with status $ac_status" >&5
1717        $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1720        ac_retval=$ac_status
1721 fi
1722   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1723   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724   as_fn_set_status $ac_retval
1726 } # ac_fn_cxx_try_run
1728 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1729 # ---------------------------------------------------------
1730 # Tests whether HEADER exists and can be compiled using the include files in
1731 # INCLUDES, setting the cache variable VAR accordingly.
1732 ac_fn_cxx_check_header_compile ()
1734   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736 $as_echo_n "checking for $2... " >&6; }
1737 if eval \${$3+:} false; then :
1738   $as_echo_n "(cached) " >&6
1739 else
1740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741 /* end confdefs.h.  */
1742 $4
1743 #include <$2>
1744 _ACEOF
1745 if ac_fn_cxx_try_compile "$LINENO"; then :
1746   eval "$3=yes"
1747 else
1748   eval "$3=no"
1749 fi
1750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1751 fi
1752 eval ac_res=\$$3
1753                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1754 $as_echo "$ac_res" >&6; }
1755   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757 } # ac_fn_cxx_check_header_compile
1759 # ac_fn_cxx_try_link LINENO
1760 # -------------------------
1761 # Try to link conftest.$ac_ext, and return whether this succeeded.
1762 ac_fn_cxx_try_link ()
1764   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765   rm -f conftest.$ac_objext conftest$ac_exeext
1766   if { { ac_try="$ac_link"
1767 case "(($ac_try" in
1768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769   *) ac_try_echo=$ac_try;;
1770 esac
1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 $as_echo "$ac_try_echo"; } >&5
1773   (eval "$ac_link") 2>conftest.err
1774   ac_status=$?
1775   if test -s conftest.err; then
1776     grep -v '^ *+' conftest.err >conftest.er1
1777     cat conftest.er1 >&5
1778     mv -f conftest.er1 conftest.err
1779   fi
1780   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781   test $ac_status = 0; } && {
1782          test -z "$ac_cxx_werror_flag" ||
1783          test ! -s conftest.err
1784        } && test -s conftest$ac_exeext && {
1785          test "$cross_compiling" = yes ||
1786          test -x conftest$ac_exeext
1787        }; then :
1788   ac_retval=0
1789 else
1790   $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1793         ac_retval=1
1794 fi
1795   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1796   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1797   # interfere with the next link command; also delete a directory that is
1798   # left behind by Apple's compiler.  We do this before executing the actions.
1799   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1800   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801   as_fn_set_status $ac_retval
1803 } # ac_fn_cxx_try_link
1805 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
1806 # ---------------------------------------------
1807 # Tests whether TYPE exists after having included INCLUDES, setting cache
1808 # variable VAR accordingly.
1809 ac_fn_cxx_check_type ()
1811   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1813 $as_echo_n "checking for $2... " >&6; }
1814 if eval \${$3+:} false; then :
1815   $as_echo_n "(cached) " >&6
1816 else
1817   eval "$3=no"
1818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819 /* end confdefs.h.  */
1820 $4
1821 int
1822 main ()
1824 if (sizeof ($2))
1825          return 0;
1826   ;
1827   return 0;
1829 _ACEOF
1830 if ac_fn_cxx_try_compile "$LINENO"; then :
1831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h.  */
1833 $4
1834 int
1835 main ()
1837 if (sizeof (($2)))
1838             return 0;
1839   ;
1840   return 0;
1842 _ACEOF
1843 if ac_fn_cxx_try_compile "$LINENO"; then :
1845 else
1846   eval "$3=yes"
1847 fi
1848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1849 fi
1850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1851 fi
1852 eval ac_res=\$$3
1853                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854 $as_echo "$ac_res" >&6; }
1855   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857 } # ac_fn_cxx_check_type
1858 cat >config.log <<_ACEOF
1859 This file contains any messages produced by compilers while
1860 running configure, to aid debugging if configure makes a mistake.
1862 It was created by Xestia Address Book $as_me 0.01, which was
1863 generated by GNU Autoconf 2.69.  Invocation command line was
1865   $ $0 $@
1867 _ACEOF
1868 exec 5>>config.log
1870 cat <<_ASUNAME
1871 ## --------- ##
1872 ## Platform. ##
1873 ## --------- ##
1875 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1876 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1877 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1878 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1879 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1881 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1882 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1884 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1885 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1886 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1887 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1888 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1889 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1890 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1892 _ASUNAME
1894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895 for as_dir in $PATH
1896 do
1897   IFS=$as_save_IFS
1898   test -z "$as_dir" && as_dir=.
1899     $as_echo "PATH: $as_dir"
1900   done
1901 IFS=$as_save_IFS
1903 } >&5
1905 cat >&5 <<_ACEOF
1908 ## ----------- ##
1909 ## Core tests. ##
1910 ## ----------- ##
1912 _ACEOF
1915 # Keep a trace of the command line.
1916 # Strip out --no-create and --no-recursion so they do not pile up.
1917 # Strip out --silent because we don't want to record it for future runs.
1918 # Also quote any args containing shell meta-characters.
1919 # Make two passes to allow for proper duplicate-argument suppression.
1920 ac_configure_args=
1921 ac_configure_args0=
1922 ac_configure_args1=
1923 ac_must_keep_next=false
1924 for ac_pass in 1 2
1925 do
1926   for ac_arg
1927   do
1928     case $ac_arg in
1929     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1930     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1931     | -silent | --silent | --silen | --sile | --sil)
1932       continue ;;
1933     *\'*)
1934       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1935     esac
1936     case $ac_pass in
1937     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1938     2)
1939       as_fn_append ac_configure_args1 " '$ac_arg'"
1940       if test $ac_must_keep_next = true; then
1941         ac_must_keep_next=false # Got value, back to normal.
1942       else
1943         case $ac_arg in
1944           *=* | --config-cache | -C | -disable-* | --disable-* \
1945           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1946           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1947           | -with-* | --with-* | -without-* | --without-* | --x)
1948             case "$ac_configure_args0 " in
1949               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1950             esac
1951             ;;
1952           -* ) ac_must_keep_next=true ;;
1953         esac
1954       fi
1955       as_fn_append ac_configure_args " '$ac_arg'"
1956       ;;
1957     esac
1958   done
1959 done
1960 { ac_configure_args0=; unset ac_configure_args0;}
1961 { ac_configure_args1=; unset ac_configure_args1;}
1963 # When interrupted or exit'd, cleanup temporary files, and complete
1964 # config.log.  We remove comments because anyway the quotes in there
1965 # would cause problems or look ugly.
1966 # WARNING: Use '\'' to represent an apostrophe within the trap.
1967 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1968 trap 'exit_status=$?
1969   # Save into config.log some information that might help in debugging.
1970   {
1971     echo
1973     $as_echo "## ---------------- ##
1974 ## Cache variables. ##
1975 ## ---------------- ##"
1976     echo
1977     # The following way of writing the cache mishandles newlines in values,
1979   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1980     eval ac_val=\$$ac_var
1981     case $ac_val in #(
1982     *${as_nl}*)
1983       case $ac_var in #(
1984       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1985 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1986       esac
1987       case $ac_var in #(
1988       _ | IFS | as_nl) ;; #(
1989       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1990       *) { eval $ac_var=; unset $ac_var;} ;;
1991       esac ;;
1992     esac
1993   done
1994   (set) 2>&1 |
1995     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1996     *${as_nl}ac_space=\ *)
1997       sed -n \
1998         "s/'\''/'\''\\\\'\'''\''/g;
1999           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2000       ;; #(
2001     *)
2002       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2003       ;;
2004     esac |
2005     sort
2007     echo
2009     $as_echo "## ----------------- ##
2010 ## Output variables. ##
2011 ## ----------------- ##"
2012     echo
2013     for ac_var in $ac_subst_vars
2014     do
2015       eval ac_val=\$$ac_var
2016       case $ac_val in
2017       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2018       esac
2019       $as_echo "$ac_var='\''$ac_val'\''"
2020     done | sort
2021     echo
2023     if test -n "$ac_subst_files"; then
2024       $as_echo "## ------------------- ##
2025 ## File substitutions. ##
2026 ## ------------------- ##"
2027       echo
2028       for ac_var in $ac_subst_files
2029       do
2030         eval ac_val=\$$ac_var
2031         case $ac_val in
2032         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2033         esac
2034         $as_echo "$ac_var='\''$ac_val'\''"
2035       done | sort
2036       echo
2037     fi
2039     if test -s confdefs.h; then
2040       $as_echo "## ----------- ##
2041 ## confdefs.h. ##
2042 ## ----------- ##"
2043       echo
2044       cat confdefs.h
2045       echo
2046     fi
2047     test "$ac_signal" != 0 &&
2048       $as_echo "$as_me: caught signal $ac_signal"
2049     $as_echo "$as_me: exit $exit_status"
2050   } >&5
2051   rm -f core *.core core.conftest.* &&
2052     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2053     exit $exit_status
2054 ' 0
2055 for ac_signal in 1 2 13 15; do
2056   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2057 done
2058 ac_signal=0
2060 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2061 rm -f -r conftest* confdefs.h
2063 $as_echo "/* confdefs.h */" > confdefs.h
2065 # Predefined preprocessor variables.
2067 cat >>confdefs.h <<_ACEOF
2068 #define PACKAGE_NAME "$PACKAGE_NAME"
2069 _ACEOF
2071 cat >>confdefs.h <<_ACEOF
2072 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2073 _ACEOF
2075 cat >>confdefs.h <<_ACEOF
2076 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2077 _ACEOF
2079 cat >>confdefs.h <<_ACEOF
2080 #define PACKAGE_STRING "$PACKAGE_STRING"
2081 _ACEOF
2083 cat >>confdefs.h <<_ACEOF
2084 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2085 _ACEOF
2087 cat >>confdefs.h <<_ACEOF
2088 #define PACKAGE_URL "$PACKAGE_URL"
2089 _ACEOF
2092 # Let the site file select an alternate cache file if it wants to.
2093 # Prefer an explicitly selected file to automatically selected ones.
2094 ac_site_file1=NONE
2095 ac_site_file2=NONE
2096 if test -n "$CONFIG_SITE"; then
2097   # We do not want a PATH search for config.site.
2098   case $CONFIG_SITE in #((
2099     -*)  ac_site_file1=./$CONFIG_SITE;;
2100     */*) ac_site_file1=$CONFIG_SITE;;
2101     *)   ac_site_file1=./$CONFIG_SITE;;
2102   esac
2103 elif test "x$prefix" != xNONE; then
2104   ac_site_file1=$prefix/share/config.site
2105   ac_site_file2=$prefix/etc/config.site
2106 else
2107   ac_site_file1=$ac_default_prefix/share/config.site
2108   ac_site_file2=$ac_default_prefix/etc/config.site
2109 fi
2110 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2111 do
2112   test "x$ac_site_file" = xNONE && continue
2113   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2114     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2115 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2116     sed 's/^/| /' "$ac_site_file" >&5
2117     . "$ac_site_file" \
2118       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2120 as_fn_error $? "failed to load site script $ac_site_file
2121 See \`config.log' for more details" "$LINENO" 5; }
2122   fi
2123 done
2125 if test -r "$cache_file"; then
2126   # Some versions of bash will fail to source /dev/null (special files
2127   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2128   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2129     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2130 $as_echo "$as_me: loading cache $cache_file" >&6;}
2131     case $cache_file in
2132       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2133       *)                      . "./$cache_file";;
2134     esac
2135   fi
2136 else
2137   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2138 $as_echo "$as_me: creating cache $cache_file" >&6;}
2139   >$cache_file
2140 fi
2142 # Check that the precious variables saved in the cache have kept the same
2143 # value.
2144 ac_cache_corrupted=false
2145 for ac_var in $ac_precious_vars; do
2146   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2147   eval ac_new_set=\$ac_env_${ac_var}_set
2148   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2149   eval ac_new_val=\$ac_env_${ac_var}_value
2150   case $ac_old_set,$ac_new_set in
2151     set,)
2152       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2153 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2154       ac_cache_corrupted=: ;;
2155     ,set)
2156       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2157 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2158       ac_cache_corrupted=: ;;
2159     ,);;
2160     *)
2161       if test "x$ac_old_val" != "x$ac_new_val"; then
2162         # differences in whitespace do not lead to failure.
2163         ac_old_val_w=`echo x $ac_old_val`
2164         ac_new_val_w=`echo x $ac_new_val`
2165         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2166           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2167 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2168           ac_cache_corrupted=:
2169         else
2170           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2171 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2172           eval $ac_var=\$ac_old_val
2173         fi
2174         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2175 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2176         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2177 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2178       fi;;
2179   esac
2180   # Pass precious variables to config.status.
2181   if test "$ac_new_set" = set; then
2182     case $ac_new_val in
2183     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2184     *) ac_arg=$ac_var=$ac_new_val ;;
2185     esac
2186     case " $ac_configure_args " in
2187       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2188       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2189     esac
2190   fi
2191 done
2192 if $ac_cache_corrupted; then
2193   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2195   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2196 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2197   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2198 fi
2199 ## -------------------- ##
2200 ## Main body of script. ##
2201 ## -------------------- ##
2203 ac_ext=c
2204 ac_cpp='$CPP $CPPFLAGS'
2205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2210 #AC_CONFIG_SRCDIR([version.h])
2211 #AC_CONFIG_HEADERS([config.h])
2214 $as_echo "#define DEBUG 1" >>confdefs.h
2217 # Checks for programs.
2218 ac_ext=cpp
2219 ac_cpp='$CXXCPP $CPPFLAGS'
2220 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2221 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2222 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2223 if test -z "$CXX"; then
2224   if test -n "$CCC"; then
2225     CXX=$CCC
2226   else
2227     if test -n "$ac_tool_prefix"; then
2228   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2229   do
2230     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2231 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2233 $as_echo_n "checking for $ac_word... " >&6; }
2234 if ${ac_cv_prog_CXX+:} false; then :
2235   $as_echo_n "(cached) " >&6
2236 else
2237   if test -n "$CXX"; then
2238   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2239 else
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 for as_dir in $PATH
2242 do
2243   IFS=$as_save_IFS
2244   test -z "$as_dir" && as_dir=.
2245     for ac_exec_ext in '' $ac_executable_extensions; do
2246   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2247     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2249     break 2
2250   fi
2251 done
2252   done
2253 IFS=$as_save_IFS
2255 fi
2256 fi
2257 CXX=$ac_cv_prog_CXX
2258 if test -n "$CXX"; then
2259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2260 $as_echo "$CXX" >&6; }
2261 else
2262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2263 $as_echo "no" >&6; }
2264 fi
2267     test -n "$CXX" && break
2268   done
2269 fi
2270 if test -z "$CXX"; then
2271   ac_ct_CXX=$CXX
2272   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2273 do
2274   # Extract the first word of "$ac_prog", so it can be a program name with args.
2275 set dummy $ac_prog; ac_word=$2
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2277 $as_echo_n "checking for $ac_word... " >&6; }
2278 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2279   $as_echo_n "(cached) " >&6
2280 else
2281   if test -n "$ac_ct_CXX"; then
2282   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2283 else
2284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285 for as_dir in $PATH
2286 do
2287   IFS=$as_save_IFS
2288   test -z "$as_dir" && as_dir=.
2289     for ac_exec_ext in '' $ac_executable_extensions; do
2290   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2291     ac_cv_prog_ac_ct_CXX="$ac_prog"
2292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2293     break 2
2294   fi
2295 done
2296   done
2297 IFS=$as_save_IFS
2299 fi
2300 fi
2301 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2302 if test -n "$ac_ct_CXX"; then
2303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2304 $as_echo "$ac_ct_CXX" >&6; }
2305 else
2306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2307 $as_echo "no" >&6; }
2308 fi
2311   test -n "$ac_ct_CXX" && break
2312 done
2314   if test "x$ac_ct_CXX" = x; then
2315     CXX="g++"
2316   else
2317     case $cross_compiling:$ac_tool_warned in
2318 yes:)
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2321 ac_tool_warned=yes ;;
2322 esac
2323     CXX=$ac_ct_CXX
2324   fi
2325 fi
2327   fi
2328 fi
2329 # Provide some information about the compiler.
2330 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2331 set X $ac_compile
2332 ac_compiler=$2
2333 for ac_option in --version -v -V -qversion; do
2334   { { ac_try="$ac_compiler $ac_option >&5"
2335 case "(($ac_try" in
2336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2337   *) ac_try_echo=$ac_try;;
2338 esac
2339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2340 $as_echo "$ac_try_echo"; } >&5
2341   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2342   ac_status=$?
2343   if test -s conftest.err; then
2344     sed '10a\
2345 ... rest of stderr output deleted ...
2346          10q' conftest.err >conftest.er1
2347     cat conftest.er1 >&5
2348   fi
2349   rm -f conftest.er1 conftest.err
2350   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2351   test $ac_status = 0; }
2352 done
2354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2355 /* end confdefs.h.  */
2357 int
2358 main ()
2361   ;
2362   return 0;
2364 _ACEOF
2365 ac_clean_files_save=$ac_clean_files
2366 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2367 # Try to create an executable without -o first, disregard a.out.
2368 # It will help us diagnose broken compilers, and finding out an intuition
2369 # of exeext.
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2371 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2372 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2374 # The possible output files:
2375 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2377 ac_rmfiles=
2378 for ac_file in $ac_files
2379 do
2380   case $ac_file in
2381     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2382     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2383   esac
2384 done
2385 rm -f $ac_rmfiles
2387 if { { ac_try="$ac_link_default"
2388 case "(($ac_try" in
2389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390   *) ac_try_echo=$ac_try;;
2391 esac
2392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2393 $as_echo "$ac_try_echo"; } >&5
2394   (eval "$ac_link_default") 2>&5
2395   ac_status=$?
2396   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2397   test $ac_status = 0; }; then :
2398   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2399 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2400 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2401 # so that the user can short-circuit this test for compilers unknown to
2402 # Autoconf.
2403 for ac_file in $ac_files ''
2404 do
2405   test -f "$ac_file" || continue
2406   case $ac_file in
2407     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2408         ;;
2409     [ab].out )
2410         # We found the default executable, but exeext='' is most
2411         # certainly right.
2412         break;;
2413     *.* )
2414         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2415         then :; else
2416            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2417         fi
2418         # We set ac_cv_exeext here because the later test for it is not
2419         # safe: cross compilers may not add the suffix if given an `-o'
2420         # argument, so we may need to know it at that point already.
2421         # Even if this section looks crufty: it has the advantage of
2422         # actually working.
2423         break;;
2424     * )
2425         break;;
2426   esac
2427 done
2428 test "$ac_cv_exeext" = no && ac_cv_exeext=
2430 else
2431   ac_file=''
2432 fi
2433 if test -z "$ac_file"; then :
2434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2435 $as_echo "no" >&6; }
2436 $as_echo "$as_me: failed program was:" >&5
2437 sed 's/^/| /' conftest.$ac_ext >&5
2439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2441 as_fn_error 77 "C++ compiler cannot create executables
2442 See \`config.log' for more details" "$LINENO" 5; }
2443 else
2444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2445 $as_echo "yes" >&6; }
2446 fi
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
2448 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2450 $as_echo "$ac_file" >&6; }
2451 ac_exeext=$ac_cv_exeext
2453 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2454 ac_clean_files=$ac_clean_files_save
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2456 $as_echo_n "checking for suffix of executables... " >&6; }
2457 if { { ac_try="$ac_link"
2458 case "(($ac_try" in
2459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2460   *) ac_try_echo=$ac_try;;
2461 esac
2462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2463 $as_echo "$ac_try_echo"; } >&5
2464   (eval "$ac_link") 2>&5
2465   ac_status=$?
2466   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2467   test $ac_status = 0; }; then :
2468   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2469 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2470 # work properly (i.e., refer to `conftest.exe'), while it won't with
2471 # `rm'.
2472 for ac_file in conftest.exe conftest conftest.*; do
2473   test -f "$ac_file" || continue
2474   case $ac_file in
2475     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2476     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2477           break;;
2478     * ) break;;
2479   esac
2480 done
2481 else
2482   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2484 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2485 See \`config.log' for more details" "$LINENO" 5; }
2486 fi
2487 rm -f conftest conftest$ac_cv_exeext
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2489 $as_echo "$ac_cv_exeext" >&6; }
2491 rm -f conftest.$ac_ext
2492 EXEEXT=$ac_cv_exeext
2493 ac_exeext=$EXEEXT
2494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2495 /* end confdefs.h.  */
2496 #include <stdio.h>
2497 int
2498 main ()
2500 FILE *f = fopen ("conftest.out", "w");
2501  return ferror (f) || fclose (f) != 0;
2503   ;
2504   return 0;
2506 _ACEOF
2507 ac_clean_files="$ac_clean_files conftest.out"
2508 # Check that the compiler produces executables we can run.  If not, either
2509 # the compiler is broken, or we cross compile.
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2511 $as_echo_n "checking whether we are cross compiling... " >&6; }
2512 if test "$cross_compiling" != yes; then
2513   { { ac_try="$ac_link"
2514 case "(($ac_try" in
2515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516   *) ac_try_echo=$ac_try;;
2517 esac
2518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2519 $as_echo "$ac_try_echo"; } >&5
2520   (eval "$ac_link") 2>&5
2521   ac_status=$?
2522   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2523   test $ac_status = 0; }
2524   if { ac_try='./conftest$ac_cv_exeext'
2525   { { case "(($ac_try" in
2526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527   *) ac_try_echo=$ac_try;;
2528 esac
2529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2530 $as_echo "$ac_try_echo"; } >&5
2531   (eval "$ac_try") 2>&5
2532   ac_status=$?
2533   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2534   test $ac_status = 0; }; }; then
2535     cross_compiling=no
2536   else
2537     if test "$cross_compiling" = maybe; then
2538         cross_compiling=yes
2539     else
2540         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2542 as_fn_error $? "cannot run C++ compiled programs.
2543 If you meant to cross compile, use \`--host'.
2544 See \`config.log' for more details" "$LINENO" 5; }
2545     fi
2546   fi
2547 fi
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2549 $as_echo "$cross_compiling" >&6; }
2551 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2552 ac_clean_files=$ac_clean_files_save
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2554 $as_echo_n "checking for suffix of object files... " >&6; }
2555 if ${ac_cv_objext+:} false; then :
2556   $as_echo_n "(cached) " >&6
2557 else
2558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2559 /* end confdefs.h.  */
2561 int
2562 main ()
2565   ;
2566   return 0;
2568 _ACEOF
2569 rm -f conftest.o conftest.obj
2570 if { { ac_try="$ac_compile"
2571 case "(($ac_try" in
2572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2573   *) ac_try_echo=$ac_try;;
2574 esac
2575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2576 $as_echo "$ac_try_echo"; } >&5
2577   (eval "$ac_compile") 2>&5
2578   ac_status=$?
2579   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2580   test $ac_status = 0; }; then :
2581   for ac_file in conftest.o conftest.obj conftest.*; do
2582   test -f "$ac_file" || continue;
2583   case $ac_file in
2584     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2585     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2586        break;;
2587   esac
2588 done
2589 else
2590   $as_echo "$as_me: failed program was:" >&5
2591 sed 's/^/| /' conftest.$ac_ext >&5
2593 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2595 as_fn_error $? "cannot compute suffix of object files: cannot compile
2596 See \`config.log' for more details" "$LINENO" 5; }
2597 fi
2598 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2599 fi
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2601 $as_echo "$ac_cv_objext" >&6; }
2602 OBJEXT=$ac_cv_objext
2603 ac_objext=$OBJEXT
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
2605 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2606 if ${ac_cv_cxx_compiler_gnu+:} false; then :
2607   $as_echo_n "(cached) " >&6
2608 else
2609   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2610 /* end confdefs.h.  */
2612 int
2613 main ()
2615 #ifndef __GNUC__
2616        choke me
2617 #endif
2619   ;
2620   return 0;
2622 _ACEOF
2623 if ac_fn_cxx_try_compile "$LINENO"; then :
2624   ac_compiler_gnu=yes
2625 else
2626   ac_compiler_gnu=no
2627 fi
2628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2629 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2631 fi
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
2633 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
2634 if test $ac_compiler_gnu = yes; then
2635   GXX=yes
2636 else
2637   GXX=
2638 fi
2639 ac_test_CXXFLAGS=${CXXFLAGS+set}
2640 ac_save_CXXFLAGS=$CXXFLAGS
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
2642 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
2643 if ${ac_cv_prog_cxx_g+:} false; then :
2644   $as_echo_n "(cached) " >&6
2645 else
2646   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2647    ac_cxx_werror_flag=yes
2648    ac_cv_prog_cxx_g=no
2649    CXXFLAGS="-g"
2650    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2651 /* end confdefs.h.  */
2653 int
2654 main ()
2657   ;
2658   return 0;
2660 _ACEOF
2661 if ac_fn_cxx_try_compile "$LINENO"; then :
2662   ac_cv_prog_cxx_g=yes
2663 else
2664   CXXFLAGS=""
2665       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2666 /* end confdefs.h.  */
2668 int
2669 main ()
2672   ;
2673   return 0;
2675 _ACEOF
2676 if ac_fn_cxx_try_compile "$LINENO"; then :
2678 else
2679   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2680          CXXFLAGS="-g"
2681          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2682 /* end confdefs.h.  */
2684 int
2685 main ()
2688   ;
2689   return 0;
2691 _ACEOF
2692 if ac_fn_cxx_try_compile "$LINENO"; then :
2693   ac_cv_prog_cxx_g=yes
2694 fi
2695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2696 fi
2697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2698 fi
2699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2700    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2701 fi
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
2703 $as_echo "$ac_cv_prog_cxx_g" >&6; }
2704 if test "$ac_test_CXXFLAGS" = set; then
2705   CXXFLAGS=$ac_save_CXXFLAGS
2706 elif test $ac_cv_prog_cxx_g = yes; then
2707   if test "$GXX" = yes; then
2708     CXXFLAGS="-g -O2"
2709   else
2710     CXXFLAGS="-g"
2711   fi
2712 else
2713   if test "$GXX" = yes; then
2714     CXXFLAGS="-O2"
2715   else
2716     CXXFLAGS=
2717   fi
2718 fi
2719 ac_ext=c
2720 ac_cpp='$CPP $CPPFLAGS'
2721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2725 ac_ext=c
2726 ac_cpp='$CPP $CPPFLAGS'
2727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2730 if test -n "$ac_tool_prefix"; then
2731   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2732 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734 $as_echo_n "checking for $ac_word... " >&6; }
2735 if ${ac_cv_prog_CC+:} false; then :
2736   $as_echo_n "(cached) " >&6
2737 else
2738   if test -n "$CC"; then
2739   ac_cv_prog_CC="$CC" # Let the user override the test.
2740 else
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 for as_dir in $PATH
2743 do
2744   IFS=$as_save_IFS
2745   test -z "$as_dir" && as_dir=.
2746     for ac_exec_ext in '' $ac_executable_extensions; do
2747   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2748     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2750     break 2
2751   fi
2752 done
2753   done
2754 IFS=$as_save_IFS
2756 fi
2757 fi
2758 CC=$ac_cv_prog_CC
2759 if test -n "$CC"; then
2760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2761 $as_echo "$CC" >&6; }
2762 else
2763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764 $as_echo "no" >&6; }
2765 fi
2768 fi
2769 if test -z "$ac_cv_prog_CC"; then
2770   ac_ct_CC=$CC
2771   # Extract the first word of "gcc", so it can be a program name with args.
2772 set dummy gcc; ac_word=$2
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2774 $as_echo_n "checking for $ac_word... " >&6; }
2775 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2776   $as_echo_n "(cached) " >&6
2777 else
2778   if test -n "$ac_ct_CC"; then
2779   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2780 else
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2783 do
2784   IFS=$as_save_IFS
2785   test -z "$as_dir" && as_dir=.
2786     for ac_exec_ext in '' $ac_executable_extensions; do
2787   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2788     ac_cv_prog_ac_ct_CC="gcc"
2789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2790     break 2
2791   fi
2792 done
2793   done
2794 IFS=$as_save_IFS
2796 fi
2797 fi
2798 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2799 if test -n "$ac_ct_CC"; then
2800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2801 $as_echo "$ac_ct_CC" >&6; }
2802 else
2803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2804 $as_echo "no" >&6; }
2805 fi
2807   if test "x$ac_ct_CC" = x; then
2808     CC=""
2809   else
2810     case $cross_compiling:$ac_tool_warned in
2811 yes:)
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2814 ac_tool_warned=yes ;;
2815 esac
2816     CC=$ac_ct_CC
2817   fi
2818 else
2819   CC="$ac_cv_prog_CC"
2820 fi
2822 if test -z "$CC"; then
2823           if test -n "$ac_tool_prefix"; then
2824     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2825 set dummy ${ac_tool_prefix}cc; ac_word=$2
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827 $as_echo_n "checking for $ac_word... " >&6; }
2828 if ${ac_cv_prog_CC+:} false; then :
2829   $as_echo_n "(cached) " >&6
2830 else
2831   if test -n "$CC"; then
2832   ac_cv_prog_CC="$CC" # Let the user override the test.
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2836 do
2837   IFS=$as_save_IFS
2838   test -z "$as_dir" && as_dir=.
2839     for ac_exec_ext in '' $ac_executable_extensions; do
2840   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2841     ac_cv_prog_CC="${ac_tool_prefix}cc"
2842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2843     break 2
2844   fi
2845 done
2846   done
2847 IFS=$as_save_IFS
2849 fi
2850 fi
2851 CC=$ac_cv_prog_CC
2852 if test -n "$CC"; then
2853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2854 $as_echo "$CC" >&6; }
2855 else
2856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857 $as_echo "no" >&6; }
2858 fi
2861   fi
2862 fi
2863 if test -z "$CC"; then
2864   # Extract the first word of "cc", so it can be a program name with args.
2865 set dummy cc; ac_word=$2
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2867 $as_echo_n "checking for $ac_word... " >&6; }
2868 if ${ac_cv_prog_CC+:} false; then :
2869   $as_echo_n "(cached) " >&6
2870 else
2871   if test -n "$CC"; then
2872   ac_cv_prog_CC="$CC" # Let the user override the test.
2873 else
2874   ac_prog_rejected=no
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 for as_dir in $PATH
2877 do
2878   IFS=$as_save_IFS
2879   test -z "$as_dir" && as_dir=.
2880     for ac_exec_ext in '' $ac_executable_extensions; do
2881   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2882     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2883        ac_prog_rejected=yes
2884        continue
2885      fi
2886     ac_cv_prog_CC="cc"
2887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888     break 2
2889   fi
2890 done
2891   done
2892 IFS=$as_save_IFS
2894 if test $ac_prog_rejected = yes; then
2895   # We found a bogon in the path, so make sure we never use it.
2896   set dummy $ac_cv_prog_CC
2897   shift
2898   if test $# != 0; then
2899     # We chose a different compiler from the bogus one.
2900     # However, it has the same basename, so the bogon will be chosen
2901     # first if we set CC to just the basename; use the full file name.
2902     shift
2903     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2904   fi
2905 fi
2906 fi
2907 fi
2908 CC=$ac_cv_prog_CC
2909 if test -n "$CC"; then
2910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2911 $as_echo "$CC" >&6; }
2912 else
2913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914 $as_echo "no" >&6; }
2915 fi
2918 fi
2919 if test -z "$CC"; then
2920   if test -n "$ac_tool_prefix"; then
2921   for ac_prog in cl.exe
2922   do
2923     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2924 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926 $as_echo_n "checking for $ac_word... " >&6; }
2927 if ${ac_cv_prog_CC+:} false; then :
2928   $as_echo_n "(cached) " >&6
2929 else
2930   if test -n "$CC"; then
2931   ac_cv_prog_CC="$CC" # Let the user override the test.
2932 else
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 for as_dir in $PATH
2935 do
2936   IFS=$as_save_IFS
2937   test -z "$as_dir" && as_dir=.
2938     for ac_exec_ext in '' $ac_executable_extensions; do
2939   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2940     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2942     break 2
2943   fi
2944 done
2945   done
2946 IFS=$as_save_IFS
2948 fi
2949 fi
2950 CC=$ac_cv_prog_CC
2951 if test -n "$CC"; then
2952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2953 $as_echo "$CC" >&6; }
2954 else
2955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956 $as_echo "no" >&6; }
2957 fi
2960     test -n "$CC" && break
2961   done
2962 fi
2963 if test -z "$CC"; then
2964   ac_ct_CC=$CC
2965   for ac_prog in cl.exe
2966 do
2967   # Extract the first word of "$ac_prog", so it can be a program name with args.
2968 set dummy $ac_prog; ac_word=$2
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970 $as_echo_n "checking for $ac_word... " >&6; }
2971 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2972   $as_echo_n "(cached) " >&6
2973 else
2974   if test -n "$ac_ct_CC"; then
2975   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2976 else
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 for as_dir in $PATH
2979 do
2980   IFS=$as_save_IFS
2981   test -z "$as_dir" && as_dir=.
2982     for ac_exec_ext in '' $ac_executable_extensions; do
2983   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2984     ac_cv_prog_ac_ct_CC="$ac_prog"
2985     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986     break 2
2987   fi
2988 done
2989   done
2990 IFS=$as_save_IFS
2992 fi
2993 fi
2994 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2995 if test -n "$ac_ct_CC"; then
2996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2997 $as_echo "$ac_ct_CC" >&6; }
2998 else
2999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3001 fi
3004   test -n "$ac_ct_CC" && break
3005 done
3007   if test "x$ac_ct_CC" = x; then
3008     CC=""
3009   else
3010     case $cross_compiling:$ac_tool_warned in
3011 yes:)
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3014 ac_tool_warned=yes ;;
3015 esac
3016     CC=$ac_ct_CC
3017   fi
3018 fi
3020 fi
3023 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3025 as_fn_error $? "no acceptable C compiler found in \$PATH
3026 See \`config.log' for more details" "$LINENO" 5; }
3028 # Provide some information about the compiler.
3029 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3030 set X $ac_compile
3031 ac_compiler=$2
3032 for ac_option in --version -v -V -qversion; do
3033   { { ac_try="$ac_compiler $ac_option >&5"
3034 case "(($ac_try" in
3035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036   *) ac_try_echo=$ac_try;;
3037 esac
3038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3039 $as_echo "$ac_try_echo"; } >&5
3040   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3041   ac_status=$?
3042   if test -s conftest.err; then
3043     sed '10a\
3044 ... rest of stderr output deleted ...
3045          10q' conftest.err >conftest.er1
3046     cat conftest.er1 >&5
3047   fi
3048   rm -f conftest.er1 conftest.err
3049   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3050   test $ac_status = 0; }
3051 done
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3054 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3055 if ${ac_cv_c_compiler_gnu+:} false; then :
3056   $as_echo_n "(cached) " >&6
3057 else
3058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3059 /* end confdefs.h.  */
3061 int
3062 main ()
3064 #ifndef __GNUC__
3065        choke me
3066 #endif
3068   ;
3069   return 0;
3071 _ACEOF
3072 if ac_fn_c_try_compile "$LINENO"; then :
3073   ac_compiler_gnu=yes
3074 else
3075   ac_compiler_gnu=no
3076 fi
3077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3078 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3080 fi
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3082 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3083 if test $ac_compiler_gnu = yes; then
3084   GCC=yes
3085 else
3086   GCC=
3087 fi
3088 ac_test_CFLAGS=${CFLAGS+set}
3089 ac_save_CFLAGS=$CFLAGS
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3091 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3092 if ${ac_cv_prog_cc_g+:} false; then :
3093   $as_echo_n "(cached) " >&6
3094 else
3095   ac_save_c_werror_flag=$ac_c_werror_flag
3096    ac_c_werror_flag=yes
3097    ac_cv_prog_cc_g=no
3098    CFLAGS="-g"
3099    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3100 /* end confdefs.h.  */
3102 int
3103 main ()
3106   ;
3107   return 0;
3109 _ACEOF
3110 if ac_fn_c_try_compile "$LINENO"; then :
3111   ac_cv_prog_cc_g=yes
3112 else
3113   CFLAGS=""
3114       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3115 /* end confdefs.h.  */
3117 int
3118 main ()
3121   ;
3122   return 0;
3124 _ACEOF
3125 if ac_fn_c_try_compile "$LINENO"; then :
3127 else
3128   ac_c_werror_flag=$ac_save_c_werror_flag
3129          CFLAGS="-g"
3130          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3131 /* end confdefs.h.  */
3133 int
3134 main ()
3137   ;
3138   return 0;
3140 _ACEOF
3141 if ac_fn_c_try_compile "$LINENO"; then :
3142   ac_cv_prog_cc_g=yes
3143 fi
3144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3145 fi
3146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3147 fi
3148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3149    ac_c_werror_flag=$ac_save_c_werror_flag
3150 fi
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3152 $as_echo "$ac_cv_prog_cc_g" >&6; }
3153 if test "$ac_test_CFLAGS" = set; then
3154   CFLAGS=$ac_save_CFLAGS
3155 elif test $ac_cv_prog_cc_g = yes; then
3156   if test "$GCC" = yes; then
3157     CFLAGS="-g -O2"
3158   else
3159     CFLAGS="-g"
3160   fi
3161 else
3162   if test "$GCC" = yes; then
3163     CFLAGS="-O2"
3164   else
3165     CFLAGS=
3166   fi
3167 fi
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3169 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3170 if ${ac_cv_prog_cc_c89+:} false; then :
3171   $as_echo_n "(cached) " >&6
3172 else
3173   ac_cv_prog_cc_c89=no
3174 ac_save_CC=$CC
3175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3176 /* end confdefs.h.  */
3177 #include <stdarg.h>
3178 #include <stdio.h>
3179 struct stat;
3180 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3181 struct buf { int x; };
3182 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3183 static char *e (p, i)
3184      char **p;
3185      int i;
3187   return p[i];
3189 static char *f (char * (*g) (char **, int), char **p, ...)
3191   char *s;
3192   va_list v;
3193   va_start (v,p);
3194   s = g (p, va_arg (v,int));
3195   va_end (v);
3196   return s;
3199 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3200    function prototypes and stuff, but not '\xHH' hex character constants.
3201    These don't provoke an error unfortunately, instead are silently treated
3202    as 'x'.  The following induces an error, until -std is added to get
3203    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3204    array size at least.  It's necessary to write '\x00'==0 to get something
3205    that's true only with -std.  */
3206 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3208 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3209    inside strings and character constants.  */
3210 #define FOO(x) 'x'
3211 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3213 int test (int i, double x);
3214 struct s1 {int (*f) (int a);};
3215 struct s2 {int (*f) (double a);};
3216 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3217 int argc;
3218 char **argv;
3219 int
3220 main ()
3222 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3223   ;
3224   return 0;
3226 _ACEOF
3227 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3228         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3229 do
3230   CC="$ac_save_CC $ac_arg"
3231   if ac_fn_c_try_compile "$LINENO"; then :
3232   ac_cv_prog_cc_c89=$ac_arg
3233 fi
3234 rm -f core conftest.err conftest.$ac_objext
3235   test "x$ac_cv_prog_cc_c89" != "xno" && break
3236 done
3237 rm -f conftest.$ac_ext
3238 CC=$ac_save_CC
3240 fi
3241 # AC_CACHE_VAL
3242 case "x$ac_cv_prog_cc_c89" in
3243   x)
3244     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3245 $as_echo "none needed" >&6; } ;;
3246   xno)
3247     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3248 $as_echo "unsupported" >&6; } ;;
3249   *)
3250     CC="$CC $ac_cv_prog_cc_c89"
3251     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3252 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3253 esac
3254 if test "x$ac_cv_prog_cc_c89" != xno; then :
3256 fi
3258 ac_ext=c
3259 ac_cpp='$CPP $CPPFLAGS'
3260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3264 ac_ext=c
3265 ac_cpp='$CPP $CPPFLAGS'
3266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3270 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3271 # On Suns, sometimes $CPP names a directory.
3272 if test -n "$CPP" && test -d "$CPP"; then
3273   CPP=
3274 fi
3275 if test -z "$CPP"; then
3276   if ${ac_cv_prog_CPP+:} false; then :
3277   $as_echo_n "(cached) " >&6
3278 else
3279       # Double quotes because CPP needs to be expanded
3280     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3281     do
3282       ac_preproc_ok=false
3283 for ac_c_preproc_warn_flag in '' yes
3284 do
3285   # Use a header file that comes with gcc, so configuring glibc
3286   # with a fresh cross-compiler works.
3287   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3288   # <limits.h> exists even on freestanding compilers.
3289   # On the NeXT, cc -E runs the code through the compiler's parser,
3290   # not just through cpp. "Syntax error" is here to catch this case.
3291   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3292 /* end confdefs.h.  */
3293 #ifdef __STDC__
3294 # include <limits.h>
3295 #else
3296 # include <assert.h>
3297 #endif
3298                      Syntax error
3299 _ACEOF
3300 if ac_fn_c_try_cpp "$LINENO"; then :
3302 else
3303   # Broken: fails on valid input.
3304 continue
3305 fi
3306 rm -f conftest.err conftest.i conftest.$ac_ext
3308   # OK, works on sane cases.  Now check whether nonexistent headers
3309   # can be detected and how.
3310   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3311 /* end confdefs.h.  */
3312 #include <ac_nonexistent.h>
3313 _ACEOF
3314 if ac_fn_c_try_cpp "$LINENO"; then :
3315   # Broken: success on invalid input.
3316 continue
3317 else
3318   # Passes both tests.
3319 ac_preproc_ok=:
3320 break
3321 fi
3322 rm -f conftest.err conftest.i conftest.$ac_ext
3324 done
3325 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3326 rm -f conftest.i conftest.err conftest.$ac_ext
3327 if $ac_preproc_ok; then :
3328   break
3329 fi
3331     done
3332     ac_cv_prog_CPP=$CPP
3334 fi
3335   CPP=$ac_cv_prog_CPP
3336 else
3337   ac_cv_prog_CPP=$CPP
3338 fi
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3340 $as_echo "$CPP" >&6; }
3341 ac_preproc_ok=false
3342 for ac_c_preproc_warn_flag in '' yes
3343 do
3344   # Use a header file that comes with gcc, so configuring glibc
3345   # with a fresh cross-compiler works.
3346   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3347   # <limits.h> exists even on freestanding compilers.
3348   # On the NeXT, cc -E runs the code through the compiler's parser,
3349   # not just through cpp. "Syntax error" is here to catch this case.
3350   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351 /* end confdefs.h.  */
3352 #ifdef __STDC__
3353 # include <limits.h>
3354 #else
3355 # include <assert.h>
3356 #endif
3357                      Syntax error
3358 _ACEOF
3359 if ac_fn_c_try_cpp "$LINENO"; then :
3361 else
3362   # Broken: fails on valid input.
3363 continue
3364 fi
3365 rm -f conftest.err conftest.i conftest.$ac_ext
3367   # OK, works on sane cases.  Now check whether nonexistent headers
3368   # can be detected and how.
3369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370 /* end confdefs.h.  */
3371 #include <ac_nonexistent.h>
3372 _ACEOF
3373 if ac_fn_c_try_cpp "$LINENO"; then :
3374   # Broken: success on invalid input.
3375 continue
3376 else
3377   # Passes both tests.
3378 ac_preproc_ok=:
3379 break
3380 fi
3381 rm -f conftest.err conftest.i conftest.$ac_ext
3383 done
3384 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3385 rm -f conftest.i conftest.err conftest.$ac_ext
3386 if $ac_preproc_ok; then :
3388 else
3389   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3391 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3392 See \`config.log' for more details" "$LINENO" 5; }
3393 fi
3395 ac_ext=c
3396 ac_cpp='$CPP $CPPFLAGS'
3397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3402 # Check prefix directories.
3404 if test "x$prefix" = "xNONE" ; then
3405         prefix="/usr/local"
3406 fi
3408 if test "x$exec_prefix" = "xNONE" ; then
3409         exec_prefix=$prefix
3410 fi
3412 PREFIX=$prefix
3415 if test "x$bindir" = "xNONE" ; then
3416         bindir="/bin"
3417 fi
3418 BINDIR=`eval echo $bindir`
3421 # Checks for libraries.
3423 # wxWidgets
3425 ac_ext=cpp
3426 ac_cpp='$CXXCPP $CPPFLAGS'
3427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3432 # Check for C++11 support for the compiler.
3434 CPPFLAGS="$CPPFLAGS -std=c++11"
3435 CXXFLAGS="$CXXFLAGS -std=c++11"
3438 ac_ext=cpp
3439 ac_cpp='$CXXCPP $CPPFLAGS'
3440 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3441 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3442 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
3444 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
3445 if test -z "$CXXCPP"; then
3446   if ${ac_cv_prog_CXXCPP+:} false; then :
3447   $as_echo_n "(cached) " >&6
3448 else
3449       # Double quotes because CXXCPP needs to be expanded
3450     for CXXCPP in "$CXX -E" "/lib/cpp"
3451     do
3452       ac_preproc_ok=false
3453 for ac_cxx_preproc_warn_flag in '' yes
3454 do
3455   # Use a header file that comes with gcc, so configuring glibc
3456   # with a fresh cross-compiler works.
3457   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3458   # <limits.h> exists even on freestanding compilers.
3459   # On the NeXT, cc -E runs the code through the compiler's parser,
3460   # not just through cpp. "Syntax error" is here to catch this case.
3461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462 /* end confdefs.h.  */
3463 #ifdef __STDC__
3464 # include <limits.h>
3465 #else
3466 # include <assert.h>
3467 #endif
3468                      Syntax error
3469 _ACEOF
3470 if ac_fn_cxx_try_cpp "$LINENO"; then :
3472 else
3473   # Broken: fails on valid input.
3474 continue
3475 fi
3476 rm -f conftest.err conftest.i conftest.$ac_ext
3478   # OK, works on sane cases.  Now check whether nonexistent headers
3479   # can be detected and how.
3480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 /* end confdefs.h.  */
3482 #include <ac_nonexistent.h>
3483 _ACEOF
3484 if ac_fn_cxx_try_cpp "$LINENO"; then :
3485   # Broken: success on invalid input.
3486 continue
3487 else
3488   # Passes both tests.
3489 ac_preproc_ok=:
3490 break
3491 fi
3492 rm -f conftest.err conftest.i conftest.$ac_ext
3494 done
3495 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3496 rm -f conftest.i conftest.err conftest.$ac_ext
3497 if $ac_preproc_ok; then :
3498   break
3499 fi
3501     done
3502     ac_cv_prog_CXXCPP=$CXXCPP
3504 fi
3505   CXXCPP=$ac_cv_prog_CXXCPP
3506 else
3507   ac_cv_prog_CXXCPP=$CXXCPP
3508 fi
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
3510 $as_echo "$CXXCPP" >&6; }
3511 ac_preproc_ok=false
3512 for ac_cxx_preproc_warn_flag in '' yes
3513 do
3514   # Use a header file that comes with gcc, so configuring glibc
3515   # with a fresh cross-compiler works.
3516   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3517   # <limits.h> exists even on freestanding compilers.
3518   # On the NeXT, cc -E runs the code through the compiler's parser,
3519   # not just through cpp. "Syntax error" is here to catch this case.
3520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521 /* end confdefs.h.  */
3522 #ifdef __STDC__
3523 # include <limits.h>
3524 #else
3525 # include <assert.h>
3526 #endif
3527                      Syntax error
3528 _ACEOF
3529 if ac_fn_cxx_try_cpp "$LINENO"; then :
3531 else
3532   # Broken: fails on valid input.
3533 continue
3534 fi
3535 rm -f conftest.err conftest.i conftest.$ac_ext
3537   # OK, works on sane cases.  Now check whether nonexistent headers
3538   # can be detected and how.
3539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h.  */
3541 #include <ac_nonexistent.h>
3542 _ACEOF
3543 if ac_fn_cxx_try_cpp "$LINENO"; then :
3544   # Broken: success on invalid input.
3545 continue
3546 else
3547   # Passes both tests.
3548 ac_preproc_ok=:
3549 break
3550 fi
3551 rm -f conftest.err conftest.i conftest.$ac_ext
3553 done
3554 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3555 rm -f conftest.i conftest.err conftest.$ac_ext
3556 if $ac_preproc_ok; then :
3558 else
3559   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3561 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
3562 See \`config.log' for more details" "$LINENO" 5; }
3563 fi
3565 ac_ext=cpp
3566 ac_cpp='$CXXCPP $CPPFLAGS'
3567 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3568 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3569 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3573 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3574 if ${ac_cv_path_GREP+:} false; then :
3575   $as_echo_n "(cached) " >&6
3576 else
3577   if test -z "$GREP"; then
3578   ac_path_GREP_found=false
3579   # Loop through the user's path and test for each of PROGNAME-LIST
3580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3582 do
3583   IFS=$as_save_IFS
3584   test -z "$as_dir" && as_dir=.
3585     for ac_prog in grep ggrep; do
3586     for ac_exec_ext in '' $ac_executable_extensions; do
3587       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3588       as_fn_executable_p "$ac_path_GREP" || continue
3589 # Check for GNU ac_path_GREP and select it if it is found.
3590   # Check for GNU $ac_path_GREP
3591 case `"$ac_path_GREP" --version 2>&1` in
3592 *GNU*)
3593   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3594 *)
3595   ac_count=0
3596   $as_echo_n 0123456789 >"conftest.in"
3597   while :
3598   do
3599     cat "conftest.in" "conftest.in" >"conftest.tmp"
3600     mv "conftest.tmp" "conftest.in"
3601     cp "conftest.in" "conftest.nl"
3602     $as_echo 'GREP' >> "conftest.nl"
3603     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3604     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3605     as_fn_arith $ac_count + 1 && ac_count=$as_val
3606     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3607       # Best one so far, save it but keep looking for a better one
3608       ac_cv_path_GREP="$ac_path_GREP"
3609       ac_path_GREP_max=$ac_count
3610     fi
3611     # 10*(2^10) chars as input seems more than enough
3612     test $ac_count -gt 10 && break
3613   done
3614   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3615 esac
3617       $ac_path_GREP_found && break 3
3618     done
3619   done
3620   done
3621 IFS=$as_save_IFS
3622   if test -z "$ac_cv_path_GREP"; then
3623     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3624   fi
3625 else
3626   ac_cv_path_GREP=$GREP
3627 fi
3629 fi
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3631 $as_echo "$ac_cv_path_GREP" >&6; }
3632  GREP="$ac_cv_path_GREP"
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3636 $as_echo_n "checking for egrep... " >&6; }
3637 if ${ac_cv_path_EGREP+:} false; then :
3638   $as_echo_n "(cached) " >&6
3639 else
3640   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3641    then ac_cv_path_EGREP="$GREP -E"
3642    else
3643      if test -z "$EGREP"; then
3644   ac_path_EGREP_found=false
3645   # Loop through the user's path and test for each of PROGNAME-LIST
3646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3647 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3648 do
3649   IFS=$as_save_IFS
3650   test -z "$as_dir" && as_dir=.
3651     for ac_prog in egrep; do
3652     for ac_exec_ext in '' $ac_executable_extensions; do
3653       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3654       as_fn_executable_p "$ac_path_EGREP" || continue
3655 # Check for GNU ac_path_EGREP and select it if it is found.
3656   # Check for GNU $ac_path_EGREP
3657 case `"$ac_path_EGREP" --version 2>&1` in
3658 *GNU*)
3659   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3660 *)
3661   ac_count=0
3662   $as_echo_n 0123456789 >"conftest.in"
3663   while :
3664   do
3665     cat "conftest.in" "conftest.in" >"conftest.tmp"
3666     mv "conftest.tmp" "conftest.in"
3667     cp "conftest.in" "conftest.nl"
3668     $as_echo 'EGREP' >> "conftest.nl"
3669     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3670     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3671     as_fn_arith $ac_count + 1 && ac_count=$as_val
3672     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3673       # Best one so far, save it but keep looking for a better one
3674       ac_cv_path_EGREP="$ac_path_EGREP"
3675       ac_path_EGREP_max=$ac_count
3676     fi
3677     # 10*(2^10) chars as input seems more than enough
3678     test $ac_count -gt 10 && break
3679   done
3680   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3681 esac
3683       $ac_path_EGREP_found && break 3
3684     done
3685   done
3686   done
3687 IFS=$as_save_IFS
3688   if test -z "$ac_cv_path_EGREP"; then
3689     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3690   fi
3691 else
3692   ac_cv_path_EGREP=$EGREP
3693 fi
3695    fi
3696 fi
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3698 $as_echo "$ac_cv_path_EGREP" >&6; }
3699  EGREP="$ac_cv_path_EGREP"
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3703 $as_echo_n "checking for ANSI C header files... " >&6; }
3704 if ${ac_cv_header_stdc+:} false; then :
3705   $as_echo_n "(cached) " >&6
3706 else
3707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h.  */
3709 #include <stdlib.h>
3710 #include <stdarg.h>
3711 #include <string.h>
3712 #include <float.h>
3714 int
3715 main ()
3718   ;
3719   return 0;
3721 _ACEOF
3722 if ac_fn_cxx_try_compile "$LINENO"; then :
3723   ac_cv_header_stdc=yes
3724 else
3725   ac_cv_header_stdc=no
3726 fi
3727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3729 if test $ac_cv_header_stdc = yes; then
3730   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h.  */
3733 #include <string.h>
3735 _ACEOF
3736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3737   $EGREP "memchr" >/dev/null 2>&1; then :
3739 else
3740   ac_cv_header_stdc=no
3741 fi
3742 rm -f conftest*
3744 fi
3746 if test $ac_cv_header_stdc = yes; then
3747   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749 /* end confdefs.h.  */
3750 #include <stdlib.h>
3752 _ACEOF
3753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3754   $EGREP "free" >/dev/null 2>&1; then :
3756 else
3757   ac_cv_header_stdc=no
3758 fi
3759 rm -f conftest*
3761 fi
3763 if test $ac_cv_header_stdc = yes; then
3764   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3765   if test "$cross_compiling" = yes; then :
3766   :
3767 else
3768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769 /* end confdefs.h.  */
3770 #include <ctype.h>
3771 #include <stdlib.h>
3772 #if ((' ' & 0x0FF) == 0x020)
3773 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3774 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3775 #else
3776 # define ISLOWER(c) \
3777                    (('a' <= (c) && (c) <= 'i') \
3778                      || ('j' <= (c) && (c) <= 'r') \
3779                      || ('s' <= (c) && (c) <= 'z'))
3780 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3781 #endif
3783 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3784 int
3785 main ()
3787   int i;
3788   for (i = 0; i < 256; i++)
3789     if (XOR (islower (i), ISLOWER (i))
3790         || toupper (i) != TOUPPER (i))
3791       return 2;
3792   return 0;
3794 _ACEOF
3795 if ac_fn_cxx_try_run "$LINENO"; then :
3797 else
3798   ac_cv_header_stdc=no
3799 fi
3800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3801   conftest.$ac_objext conftest.beam conftest.$ac_ext
3802 fi
3804 fi
3805 fi
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3807 $as_echo "$ac_cv_header_stdc" >&6; }
3808 if test $ac_cv_header_stdc = yes; then
3810 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3812 fi
3814 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3815 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3816                   inttypes.h stdint.h unistd.h
3817 do :
3818   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3819 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3821 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3822   cat >>confdefs.h <<_ACEOF
3823 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3824 _ACEOF
3826 fi
3828 done
3831 ac_fn_cxx_check_header_mongrel "$LINENO" "thread" "ac_cv_header_thread" "$ac_includes_default"
3832 if test "x$ac_cv_header_thread" = xyes; then :
3834 else
3835   echo "The C++ compiler does not support C++11 extensions which is
3836 needed for Xestia Address Book. Please install or use a
3837 compiler that supports C++11 extensions."
3838         exit -1
3840 fi
3846 # Check whether --with-wxdir was given.
3847 if test "${with_wxdir+set}" = set; then :
3848   withval=$with_wxdir;  wx_config_name="$withval/wx-config"
3849                   wx_config_args="--inplace"
3850 fi
3853 # Check whether --with-wx-config was given.
3854 if test "${with_wx_config+set}" = set; then :
3855   withval=$with_wx_config; wx_config_name="$withval"
3856 fi
3859 # Check whether --with-wx-prefix was given.
3860 if test "${with_wx_prefix+set}" = set; then :
3861   withval=$with_wx_prefix; wx_config_prefix="$withval"
3862 else
3863   wx_config_prefix=""
3864 fi
3867 # Check whether --with-wx-exec-prefix was given.
3868 if test "${with_wx_exec_prefix+set}" = set; then :
3869   withval=$with_wx_exec_prefix; wx_config_exec_prefix="$withval"
3870 else
3871   wx_config_exec_prefix=""
3872 fi
3875 reqwx=3.0.0
3878     if test x${WX_CONFIG_NAME+set} != xset ; then
3879      WX_CONFIG_NAME=wx-config
3880   fi
3882   if test "x$wx_config_name" != x ; then
3883      WX_CONFIG_NAME="$wx_config_name"
3884   fi
3886     if test x$wx_config_exec_prefix != x ; then
3887      wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
3888      WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
3889   fi
3890   if test x$wx_config_prefix != x ; then
3891      wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
3892      WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
3893   fi
3894   if test "$cross_compiling" = "yes"; then
3895      wx_config_args="$wx_config_args --host=$host_alias"
3896   fi
3898     if test -x "$WX_CONFIG_NAME" ; then
3899      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wx-config" >&5
3900 $as_echo_n "checking for wx-config... " >&6; }
3901      WX_CONFIG_PATH="$WX_CONFIG_NAME"
3902      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
3903 $as_echo "$WX_CONFIG_PATH" >&6; }
3904   else
3905      # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
3906 set dummy $WX_CONFIG_NAME; ac_word=$2
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3908 $as_echo_n "checking for $ac_word... " >&6; }
3909 if ${ac_cv_path_WX_CONFIG_PATH+:} false; then :
3910   $as_echo_n "(cached) " >&6
3911 else
3912   case $WX_CONFIG_PATH in
3913   [\\/]* | ?:[\\/]*)
3914   ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
3915   ;;
3916   *)
3917   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918 as_dummy=""$WX_LOOKUP_PATH:$PATH""
3919 for as_dir in $as_dummy
3920 do
3921   IFS=$as_save_IFS
3922   test -z "$as_dir" && as_dir=.
3923     for ac_exec_ext in '' $ac_executable_extensions; do
3924   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3925     ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
3926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3927     break 2
3928   fi
3929 done
3930   done
3931 IFS=$as_save_IFS
3933   test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
3934   ;;
3935 esac
3936 fi
3937 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
3938 if test -n "$WX_CONFIG_PATH"; then
3939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
3940 $as_echo "$WX_CONFIG_PATH" >&6; }
3941 else
3942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3943 $as_echo "no" >&6; }
3944 fi
3947   fi
3949   if test "$WX_CONFIG_PATH" != "no" ; then
3950     WX_VERSION=""
3952     min_wx_version=$reqwx
3953     if test -z "" ; then
3954       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version" >&5
3955 $as_echo_n "checking for wxWidgets version >= $min_wx_version... " >&6; }
3956     else
3957       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version ()" >&5
3958 $as_echo_n "checking for wxWidgets version >= $min_wx_version ()... " >&6; }
3959     fi
3961             WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args "
3963     WX_VERSION=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
3964     wx_config_major_version=`echo $WX_VERSION | \
3965            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
3966     wx_config_minor_version=`echo $WX_VERSION | \
3967            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
3968     wx_config_micro_version=`echo $WX_VERSION | \
3969            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
3971     wx_requested_major_version=`echo $min_wx_version | \
3972            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
3973     wx_requested_minor_version=`echo $min_wx_version | \
3974            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
3975     wx_requested_micro_version=`echo $min_wx_version | \
3976            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
3979     wx_ver_ok=""
3980     if test "x$WX_VERSION" != x ; then
3981       if test $wx_config_major_version -gt $wx_requested_major_version; then
3982         wx_ver_ok=yes
3983       else
3984         if test $wx_config_major_version -eq $wx_requested_major_version; then
3985            if test $wx_config_minor_version -gt $wx_requested_minor_version; then
3986               wx_ver_ok=yes
3987            else
3988               if test $wx_config_minor_version -eq $wx_requested_minor_version; then
3989                  if test $wx_config_micro_version -ge $wx_requested_micro_version; then
3990                     wx_ver_ok=yes
3991                  fi
3992               fi
3993            fi
3994         fi
3995       fi
3996     fi
3999     if test -n "$wx_ver_ok"; then
4000       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $WX_VERSION)" >&5
4001 $as_echo "yes (version $WX_VERSION)" >&6; }
4002       WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs `
4004                               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets static library" >&5
4005 $as_echo_n "checking for wxWidgets static library... " >&6; }
4006       WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs  2>/dev/null`
4007       if test "x$WX_LIBS_STATIC" = "x"; then
4008         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009 $as_echo "no" >&6; }
4010       else
4011         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4012 $as_echo "yes" >&6; }
4013       fi
4015             wx_has_cppflags=""
4016       if test $wx_config_major_version -gt 2; then
4017         wx_has_cppflags=yes
4018       else
4019         if test $wx_config_major_version -eq 2; then
4020            if test $wx_config_minor_version -gt 2; then
4021               wx_has_cppflags=yes
4022            else
4023               if test $wx_config_minor_version -eq 2; then
4024                  if test $wx_config_micro_version -ge 6; then
4025                     wx_has_cppflags=yes
4026                  fi
4027               fi
4028            fi
4029         fi
4030       fi
4032             wx_has_rescomp=""
4033       if test $wx_config_major_version -gt 2; then
4034         wx_has_rescomp=yes
4035       else
4036         if test $wx_config_major_version -eq 2; then
4037            if test $wx_config_minor_version -ge 7; then
4038               wx_has_rescomp=yes
4039            fi
4040         fi
4041       fi
4042       if test "x$wx_has_rescomp" = x ; then
4043                   WX_RESCOMP=
4044       else
4045          WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
4046       fi
4048       if test "x$wx_has_cppflags" = x ; then
4049                   WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags `
4050          WX_CPPFLAGS=$WX_CFLAGS
4051          WX_CXXFLAGS=$WX_CFLAGS
4053          WX_CFLAGS_ONLY=$WX_CFLAGS
4054          WX_CXXFLAGS_ONLY=$WX_CFLAGS
4055       else
4056                   WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags `
4057          WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags `
4058          WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags `
4060          WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
4061          WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
4062       fi
4064       wxWin=1
4066     else
4068        if test "x$WX_VERSION" = x; then
4069                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4070 $as_echo "no" >&6; }
4071        else
4072           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $WX_VERSION is not new enough)" >&5
4073 $as_echo "no (version $WX_VERSION is not new enough)" >&6; }
4074        fi
4076        WX_CFLAGS=""
4077        WX_CPPFLAGS=""
4078        WX_CXXFLAGS=""
4079        WX_LIBS=""
4080        WX_LIBS_STATIC=""
4081        WX_RESCOMP=""
4083        if test ! -z ""; then
4085           wx_error_message="
4086     The configuration you asked for $PACKAGE_NAME requires a wxWidgets
4087     build with the following settings:
4089     but such build is not available.
4091     To see the wxWidgets builds available on this system, please use
4092     'wx-config --list' command. To use the default build, returned by
4093     'wx-config --selected-config', use the options with their 'auto'
4094     default values."
4096        fi
4098        wx_error_message="
4099     The requested wxWidgets build couldn't be found.
4100     $wx_error_message
4102     If you still get this error, then check that 'wx-config' is
4103     in path, the directory where wxWidgets libraries are installed
4104     (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
4105     or equivalent variable and wxWidgets version is $reqwx or above."
4107        as_fn_error $? "$wx_error_message" "$LINENO" 5
4109     fi
4110   else
4112     WX_CFLAGS=""
4113     WX_CPPFLAGS=""
4114     WX_CXXFLAGS=""
4115     WX_LIBS=""
4116     WX_LIBS_STATIC=""
4117     WX_RESCOMP=""
4119     :
4121   fi
4133       WX_VERSION_MAJOR="$wx_config_major_version"
4134   WX_VERSION_MINOR="$wx_config_minor_version"
4135   WX_VERSION_MICRO="$wx_config_micro_version"
4141 if test "$wxWin" != 1; then
4142         as_fn_error $? "
4143 wxWidgets must be installed on your system.
4145 Please check that wx-config is in path, the directory where wxWidgets libraries
4146 are installed (returned by 'wx-config --libs' or 'wx-config --static --libs'
4147 command) is in LD_LIBRARY_PATH or equivalent variable and wxWidgets version
4148 is $reqwx or above.
4149                 " "$LINENO" 5
4150 fi
4152 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
4153 CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS_ONLY"
4154 CFLAGS="$CFLAGS $WX_CFLAGS_ONLY"
4155 LIBS="$LIBS $WX_LIBS"
4157 # SFML Audio Library
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsfml-audio" >&5
4160 $as_echo_n "checking for main in -lsfml-audio... " >&6; }
4161 if ${ac_cv_lib_sfml_audio_main+:} false; then :
4162   $as_echo_n "(cached) " >&6
4163 else
4164   ac_check_lib_save_LIBS=$LIBS
4165 LIBS="-lsfml-audio  $LIBS"
4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h.  */
4170 int
4171 main ()
4173 return main ();
4174   ;
4175   return 0;
4177 _ACEOF
4178 if ac_fn_cxx_try_link "$LINENO"; then :
4179   ac_cv_lib_sfml_audio_main=yes
4180 else
4181   ac_cv_lib_sfml_audio_main=no
4182 fi
4183 rm -f core conftest.err conftest.$ac_objext \
4184     conftest$ac_exeext conftest.$ac_ext
4185 LIBS=$ac_check_lib_save_LIBS
4186 fi
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sfml_audio_main" >&5
4188 $as_echo "$ac_cv_lib_sfml_audio_main" >&6; }
4189 if test "x$ac_cv_lib_sfml_audio_main" = xyes; then :
4190   cat >>confdefs.h <<_ACEOF
4191 #define HAVE_LIBSFML_AUDIO 1
4192 _ACEOF
4194   LIBS="-lsfml-audio $LIBS"
4196 else
4197   echo "The SFML libraries must be installed on your system.
4198 Please check that this library is installed properly before
4199 running configure again."
4200         exit -1
4202 fi
4205 ac_fn_cxx_check_header_mongrel "$LINENO" "SFML/Audio.hpp" "ac_cv_header_SFML_Audio_hpp" "$ac_includes_default"
4206 if test "x$ac_cv_header_SFML_Audio_hpp" = xyes; then :
4208 else
4209   echo "The SFML library headers must be installed on your system.
4210 Please check that the library headers are installed properly
4211 before running configure again."
4212         exit -1
4214 fi
4218 ac_ext=cpp
4219 ac_cpp='$CXXCPP $CPPFLAGS'
4220 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4221 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4222 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4225 # curl Library
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcurl" >&5
4228 $as_echo_n "checking for main in -lcurl... " >&6; }
4229 if ${ac_cv_lib_curl_main+:} false; then :
4230   $as_echo_n "(cached) " >&6
4231 else
4232   ac_check_lib_save_LIBS=$LIBS
4233 LIBS="-lcurl  $LIBS"
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h.  */
4238 int
4239 main ()
4241 return main ();
4242   ;
4243   return 0;
4245 _ACEOF
4246 if ac_fn_cxx_try_link "$LINENO"; then :
4247   ac_cv_lib_curl_main=yes
4248 else
4249   ac_cv_lib_curl_main=no
4250 fi
4251 rm -f core conftest.err conftest.$ac_objext \
4252     conftest$ac_exeext conftest.$ac_ext
4253 LIBS=$ac_check_lib_save_LIBS
4254 fi
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_main" >&5
4256 $as_echo "$ac_cv_lib_curl_main" >&6; }
4257 if test "x$ac_cv_lib_curl_main" = xyes; then :
4258   cat >>confdefs.h <<_ACEOF
4259 #define HAVE_LIBCURL 1
4260 _ACEOF
4262   LIBS="-lcurl $LIBS"
4264 else
4265   echo "The cURL library must be installed on your system.
4266 Please check that this library is installed properly before
4267 running configure again."
4268         exit -1
4270 fi
4273 ac_fn_cxx_check_header_mongrel "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default"
4274 if test "x$ac_cv_header_curl_curl_h" = xyes; then :
4276 else
4277   echo "The cURL library headers must be installed on your system.
4278 Please check that the library headers are installed properly
4279 before running configure again."
4280         exit -1
4282 fi
4286 # Extract the first word of "curl-config", so it can be a program name with args.
4287 set dummy curl-config; ac_word=$2
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4289 $as_echo_n "checking for $ac_word... " >&6; }
4290 if ${ac_cv_prog_FOUND_CURLCONFIG+:} false; then :
4291   $as_echo_n "(cached) " >&6
4292 else
4293   if test -n "$FOUND_CURLCONFIG"; then
4294   ac_cv_prog_FOUND_CURLCONFIG="$FOUND_CURLCONFIG" # Let the user override the test.
4295 else
4296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 for as_dir in $PATH
4298 do
4299   IFS=$as_save_IFS
4300   test -z "$as_dir" && as_dir=.
4301     for ac_exec_ext in '' $ac_executable_extensions; do
4302   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4303     ac_cv_prog_FOUND_CURLCONFIG="yes"
4304     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4305     break 2
4306   fi
4307 done
4308   done
4309 IFS=$as_save_IFS
4311   test -z "$ac_cv_prog_FOUND_CURLCONFIG" && ac_cv_prog_FOUND_CURLCONFIG="no"
4312 fi
4313 fi
4314 FOUND_CURLCONFIG=$ac_cv_prog_FOUND_CURLCONFIG
4315 if test -n "$FOUND_CURLCONFIG"; then
4316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOUND_CURLCONFIG" >&5
4317 $as_echo "$FOUND_CURLCONFIG" >&6; }
4318 else
4319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4320 $as_echo "no" >&6; }
4321 fi
4324  if test x$FOUND_CURLCONFIG = xyes; then
4325   FOUND_CURLCONFIG_RES_TRUE=
4326   FOUND_CURLCONFIG_RES_FALSE='#'
4327 else
4328   FOUND_CURLCONFIG_RES_TRUE='#'
4329   FOUND_CURLCONFIG_RES_FALSE=
4330 fi
4333 if test -z "$FOUND_CURLCONFIG_RES_TRUE"; then :
4334   else
4335   echo "Cannot find the curl-config program on your system.
4336 If it is installed on your system, adjust your PATH environment
4337 variable before running configure again."
4338         exit -1
4340 fi
4342 # libxml2 Library
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lxml2" >&5
4345 $as_echo_n "checking for main in -lxml2... " >&6; }
4346 if ${ac_cv_lib_xml2_main+:} false; then :
4347   $as_echo_n "(cached) " >&6
4348 else
4349   ac_check_lib_save_LIBS=$LIBS
4350 LIBS="-lxml2  $LIBS"
4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h.  */
4355 int
4356 main ()
4358 return main ();
4359   ;
4360   return 0;
4362 _ACEOF
4363 if ac_fn_cxx_try_link "$LINENO"; then :
4364   ac_cv_lib_xml2_main=yes
4365 else
4366   ac_cv_lib_xml2_main=no
4367 fi
4368 rm -f core conftest.err conftest.$ac_objext \
4369     conftest$ac_exeext conftest.$ac_ext
4370 LIBS=$ac_check_lib_save_LIBS
4371 fi
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_main" >&5
4373 $as_echo "$ac_cv_lib_xml2_main" >&6; }
4374 if test "x$ac_cv_lib_xml2_main" = xyes; then :
4375   cat >>confdefs.h <<_ACEOF
4376 #define HAVE_LIBXML2 1
4377 _ACEOF
4379   LIBS="-lxml2 $LIBS"
4381 else
4382   echo "The libxml2 library must be installed on your system.
4383 Please check that this library is installed properly before
4384 running configure again."
4385         exit -1
4387 fi
4390 for ac_header in libxml2/libxml/parser.h libxml2/libxml/tree.h
4391 do :
4392   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4393 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4394 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4395   cat >>confdefs.h <<_ACEOF
4396 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4397 _ACEOF
4399 else
4400   echo "The libxml2 library headers must be installed on your system.
4401 Please check that the library headers are installed properly
4402 before running configure again."
4403         exit -1
4405 fi
4407 done
4410 # Extract the first word of "xml2-config", so it can be a program name with args.
4411 set dummy xml2-config; ac_word=$2
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4413 $as_echo_n "checking for $ac_word... " >&6; }
4414 if ${ac_cv_prog_FOUND_XML2CONFIG+:} false; then :
4415   $as_echo_n "(cached) " >&6
4416 else
4417   if test -n "$FOUND_XML2CONFIG"; then
4418   ac_cv_prog_FOUND_XML2CONFIG="$FOUND_XML2CONFIG" # Let the user override the test.
4419 else
4420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421 for as_dir in $PATH
4422 do
4423   IFS=$as_save_IFS
4424   test -z "$as_dir" && as_dir=.
4425     for ac_exec_ext in '' $ac_executable_extensions; do
4426   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4427     ac_cv_prog_FOUND_XML2CONFIG="yes"
4428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4429     break 2
4430   fi
4431 done
4432   done
4433 IFS=$as_save_IFS
4435   test -z "$ac_cv_prog_FOUND_XML2CONFIG" && ac_cv_prog_FOUND_XML2CONFIG="no"
4436 fi
4437 fi
4438 FOUND_XML2CONFIG=$ac_cv_prog_FOUND_XML2CONFIG
4439 if test -n "$FOUND_XML2CONFIG"; then
4440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOUND_XML2CONFIG" >&5
4441 $as_echo "$FOUND_XML2CONFIG" >&6; }
4442 else
4443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4444 $as_echo "no" >&6; }
4445 fi
4448  if test x$FOUND_XML2CONFIG = xyes; then
4449   FOUND_XML2CONFIG_RES_TRUE=
4450   FOUND_XML2CONFIG_RES_FALSE='#'
4451 else
4452   FOUND_XML2CONFIG_RES_TRUE='#'
4453   FOUND_XML2CONFIG_RES_FALSE=
4454 fi
4457 if test -z "$FOUND_XML2CONFIG_RES_TRUE"; then :
4458   else
4459   echo "Cannot find the xml2-config program on your system.
4460 If it is installed on your system, adjust your PATH environment
4461 variable before running configure again."
4462         exit -1
4464 fi
4466 # file application
4468 # Extract the first word of "file", so it can be a program name with args.
4469 set dummy file; ac_word=$2
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4471 $as_echo_n "checking for $ac_word... " >&6; }
4472 if ${ac_cv_prog_FOUND_FILE+:} false; then :
4473   $as_echo_n "(cached) " >&6
4474 else
4475   if test -n "$FOUND_FILE"; then
4476   ac_cv_prog_FOUND_FILE="$FOUND_FILE" # Let the user override the test.
4477 else
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 for as_dir in $PATH
4480 do
4481   IFS=$as_save_IFS
4482   test -z "$as_dir" && as_dir=.
4483     for ac_exec_ext in '' $ac_executable_extensions; do
4484   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4485     ac_cv_prog_FOUND_FILE="yes"
4486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4487     break 2
4488   fi
4489 done
4490   done
4491 IFS=$as_save_IFS
4493   test -z "$ac_cv_prog_FOUND_FILE" && ac_cv_prog_FOUND_FILE="no"
4494 fi
4495 fi
4496 FOUND_FILE=$ac_cv_prog_FOUND_FILE
4497 if test -n "$FOUND_FILE"; then
4498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOUND_FILE" >&5
4499 $as_echo "$FOUND_FILE" >&6; }
4500 else
4501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4502 $as_echo "no" >&6; }
4503 fi
4506  if test x$FOUND_FILE = xyes; then
4507   FOUND_FILE_RES_TRUE=
4508   FOUND_FILE_RES_FALSE='#'
4509 else
4510   FOUND_FILE_RES_TRUE='#'
4511   FOUND_FILE_RES_FALSE=
4512 fi
4515 if test -z "$FOUND_FILE_RES_TRUE"; then :
4516   else
4517   echo "Cannot find the file program on your system.
4518 If it is installed on your system, adjust your PATH environment
4519 variable before running configure again."
4520         exit -1
4522 fi
4524 # uuidgen application
4526 # Extract the first word of "uuidgen", so it can be a program name with args.
4527 set dummy uuidgen; ac_word=$2
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4529 $as_echo_n "checking for $ac_word... " >&6; }
4530 if ${ac_cv_prog_FOUND_UUIDGEN+:} false; then :
4531   $as_echo_n "(cached) " >&6
4532 else
4533   if test -n "$FOUND_UUIDGEN"; then
4534   ac_cv_prog_FOUND_UUIDGEN="$FOUND_UUIDGEN" # Let the user override the test.
4535 else
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH
4538 do
4539   IFS=$as_save_IFS
4540   test -z "$as_dir" && as_dir=.
4541     for ac_exec_ext in '' $ac_executable_extensions; do
4542   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4543     ac_cv_prog_FOUND_UUIDGEN="yes"
4544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4545     break 2
4546   fi
4547 done
4548   done
4549 IFS=$as_save_IFS
4551   test -z "$ac_cv_prog_FOUND_UUIDGEN" && ac_cv_prog_FOUND_UUIDGEN="no"
4552 fi
4553 fi
4554 FOUND_UUIDGEN=$ac_cv_prog_FOUND_UUIDGEN
4555 if test -n "$FOUND_UUIDGEN"; then
4556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOUND_UUIDGEN" >&5
4557 $as_echo "$FOUND_UUIDGEN" >&6; }
4558 else
4559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4560 $as_echo "no" >&6; }
4561 fi
4564  if test x$FOUND_UUIDGEN = xyes; then
4565   FOUND_UUIDGEN_RES_TRUE=
4566   FOUND_UUIDGEN_RES_FALSE='#'
4567 else
4568   FOUND_UUIDGEN_RES_TRUE='#'
4569   FOUND_UUIDGEN_RES_FALSE=
4570 fi
4573 if test -z "$FOUND_UUIDGEN_RES_TRUE"; then :
4574   else
4575   echo "Cannot find the uuidgen program on your system.
4576 If it is installed on your system, adjust your PATH environment
4577 variable before running configure again."
4578         exit -1
4580 fi
4582 # Checks for header files.
4583 for ac_header in stdlib.h string.h iostream iomanip ios algorithm map vector utility
4584 do :
4585   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4586 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4587 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4588   cat >>confdefs.h <<_ACEOF
4589 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4590 _ACEOF
4592 fi
4594 done
4597 # Checks for typedefs, structures, and compiler characteristics.
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
4599 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
4600 if ${ac_cv_header_stdbool_h+:} false; then :
4601   $as_echo_n "(cached) " >&6
4602 else
4603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h.  */
4606              #include <stdbool.h>
4607              #ifndef bool
4608               "error: bool is not defined"
4609              #endif
4610              #ifndef false
4611               "error: false is not defined"
4612              #endif
4613              #if false
4614               "error: false is not 0"
4615              #endif
4616              #ifndef true
4617               "error: true is not defined"
4618              #endif
4619              #if true != 1
4620               "error: true is not 1"
4621              #endif
4622              #ifndef __bool_true_false_are_defined
4623               "error: __bool_true_false_are_defined is not defined"
4624              #endif
4626              struct s { _Bool s: 1; _Bool t; } s;
4628              char a[true == 1 ? 1 : -1];
4629              char b[false == 0 ? 1 : -1];
4630              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4631              char d[(bool) 0.5 == true ? 1 : -1];
4632              /* See body of main program for 'e'.  */
4633              char f[(_Bool) 0.0 == false ? 1 : -1];
4634              char g[true];
4635              char h[sizeof (_Bool)];
4636              char i[sizeof s.t];
4637              enum { j = false, k = true, l = false * true, m = true * 256 };
4638              /* The following fails for
4639                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
4640              _Bool n[m];
4641              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
4642              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
4643              /* Catch a bug in an HP-UX C compiler.  See
4644                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
4645                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
4646               */
4647              _Bool q = true;
4648              _Bool *pq = &q;
4650 int
4651 main ()
4654              bool e = &s;
4655              *pq |= q;
4656              *pq |= ! q;
4657              /* Refer to every declared value, to avoid compiler optimizations.  */
4658              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
4659                      + !m + !n + !o + !p + !q + !pq);
4661   ;
4662   return 0;
4664 _ACEOF
4665 if ac_fn_cxx_try_compile "$LINENO"; then :
4666   ac_cv_header_stdbool_h=yes
4667 else
4668   ac_cv_header_stdbool_h=no
4669 fi
4670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4671 fi
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
4673 $as_echo "$ac_cv_header_stdbool_h" >&6; }
4674    ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
4675 if test "x$ac_cv_type__Bool" = xyes; then :
4677 cat >>confdefs.h <<_ACEOF
4678 #define HAVE__BOOL 1
4679 _ACEOF
4682 fi
4685 if test $ac_cv_header_stdbool_h = yes; then
4687 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
4689 fi
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4692 $as_echo_n "checking for inline... " >&6; }
4693 if ${ac_cv_c_inline+:} false; then :
4694   $as_echo_n "(cached) " >&6
4695 else
4696   ac_cv_c_inline=no
4697 for ac_kw in inline __inline__ __inline; do
4698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699 /* end confdefs.h.  */
4700 #ifndef __cplusplus
4701 typedef int foo_t;
4702 static $ac_kw foo_t static_foo () {return 0; }
4703 $ac_kw foo_t foo () {return 0; }
4704 #endif
4706 _ACEOF
4707 if ac_fn_cxx_try_compile "$LINENO"; then :
4708   ac_cv_c_inline=$ac_kw
4709 fi
4710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4711   test "$ac_cv_c_inline" != no && break
4712 done
4714 fi
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4716 $as_echo "$ac_cv_c_inline" >&6; }
4718 case $ac_cv_c_inline in
4719   inline | yes) ;;
4720   *)
4721     case $ac_cv_c_inline in
4722       no) ac_val=;;
4723       *) ac_val=$ac_cv_c_inline;;
4724     esac
4725     cat >>confdefs.h <<_ACEOF
4726 #ifndef __cplusplus
4727 #define inline $ac_val
4728 #endif
4729 _ACEOF
4730     ;;
4731 esac
4734 # Setup the debug setting.
4736 # Check whether --enable-debug was given.
4737 if test "${enable_debug+set}" = set; then :
4738   enableval=$enable_debug; case "${enableval}" in
4739         yes) debug=true;;
4740         no)  debug=false;;
4741         *) as_fn_error $? "invalid value ${enableval} given for --enable-debug" "$LINENO" 5 ;;
4742  esac
4743 else
4744   debug=false
4745 fi
4748 # Checks for library functions.
4750  if test x$debug = xtrue; then
4751   DEBUG_TRUE=
4752   DEBUG_FALSE='#'
4753 else
4754   DEBUG_TRUE='#'
4755   DEBUG_FALSE=
4756 fi
4758 if test -z "$DEBUG_TRUE"; then :
4759   DBGOUT="-O0 -ggdb"
4761 else
4762   DBGOUT="-Os"
4764 fi
4765 if test -z "$DEBUG_TRUE"; then :
4766   DBGSTATUS="DEBUG=true"
4768 else
4769   DBGSTATUS="DEBUG=false"
4771 fi
4772 if test -z "$DEBUG_TRUE"; then :
4773   echo "Debugging mode has been enabled."
4774 fi
4776 ac_config_files="$ac_config_files Makefile"
4778 cat >confcache <<\_ACEOF
4779 # This file is a shell script that caches the results of configure
4780 # tests run on this system so they can be shared between configure
4781 # scripts and configure runs, see configure's option --config-cache.
4782 # It is not useful on other systems.  If it contains results you don't
4783 # want to keep, you may remove or edit it.
4785 # config.status only pays attention to the cache file if you give it
4786 # the --recheck option to rerun configure.
4788 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4789 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4790 # following values.
4792 _ACEOF
4794 # The following way of writing the cache mishandles newlines in values,
4795 # but we know of no workaround that is simple, portable, and efficient.
4796 # So, we kill variables containing newlines.
4797 # Ultrix sh set writes to stderr and can't be redirected directly,
4798 # and sets the high bit in the cache file unless we assign to the vars.
4800   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4801     eval ac_val=\$$ac_var
4802     case $ac_val in #(
4803     *${as_nl}*)
4804       case $ac_var in #(
4805       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4806 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4807       esac
4808       case $ac_var in #(
4809       _ | IFS | as_nl) ;; #(
4810       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4811       *) { eval $ac_var=; unset $ac_var;} ;;
4812       esac ;;
4813     esac
4814   done
4816   (set) 2>&1 |
4817     case $as_nl`(ac_space=' '; set) 2>&1` in #(
4818     *${as_nl}ac_space=\ *)
4819       # `set' does not quote correctly, so add quotes: double-quote
4820       # substitution turns \\\\ into \\, and sed turns \\ into \.
4821       sed -n \
4822         "s/'/'\\\\''/g;
4823           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4824       ;; #(
4825     *)
4826       # `set' quotes correctly as required by POSIX, so do not add quotes.
4827       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4828       ;;
4829     esac |
4830     sort
4831 ) |
4832   sed '
4833      /^ac_cv_env_/b end
4834      t clear
4835      :clear
4836      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4837      t end
4838      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4839      :end' >>confcache
4840 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4841   if test -w "$cache_file"; then
4842     if test "x$cache_file" != "x/dev/null"; then
4843       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4844 $as_echo "$as_me: updating cache $cache_file" >&6;}
4845       if test ! -f "$cache_file" || test -h "$cache_file"; then
4846         cat confcache >"$cache_file"
4847       else
4848         case $cache_file in #(
4849         */* | ?:*)
4850           mv -f confcache "$cache_file"$$ &&
4851           mv -f "$cache_file"$$ "$cache_file" ;; #(
4852         *)
4853           mv -f confcache "$cache_file" ;;
4854         esac
4855       fi
4856     fi
4857   else
4858     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4859 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4860   fi
4861 fi
4862 rm -f confcache
4864 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4865 # Let make expand exec_prefix.
4866 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4868 # Transform confdefs.h into DEFS.
4869 # Protect against shell expansion while executing Makefile rules.
4870 # Protect against Makefile macro expansion.
4872 # If the first sed substitution is executed (which looks for macros that
4873 # take arguments), then branch to the quote section.  Otherwise,
4874 # look for a macro that doesn't take arguments.
4875 ac_script='
4876 :mline
4877 /\\$/{
4878  N
4879  s,\\\n,,
4880  b mline
4882 t clear
4883 :clear
4884 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
4885 t quote
4886 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
4887 t quote
4888 b any
4889 :quote
4890 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
4891 s/\[/\\&/g
4892 s/\]/\\&/g
4893 s/\$/$$/g
4895 :any
4896 ${
4897         g
4898         s/^\n//
4899         s/\n/ /g
4900         p
4903 DEFS=`sed -n "$ac_script" confdefs.h`
4906 ac_libobjs=
4907 ac_ltlibobjs=
4908 U=
4909 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4910   # 1. Remove the extension, and $U if already installed.
4911   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4912   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4913   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
4914   #    will be set to the directory where LIBOBJS objects are built.
4915   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4916   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4917 done
4918 LIBOBJS=$ac_libobjs
4920 LTLIBOBJS=$ac_ltlibobjs
4923 if test -z "${FOUND_CURLCONFIG_RES_TRUE}" && test -z "${FOUND_CURLCONFIG_RES_FALSE}"; then
4924   as_fn_error $? "conditional \"FOUND_CURLCONFIG_RES\" was never defined.
4925 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4926 fi
4927 if test -z "${FOUND_XML2CONFIG_RES_TRUE}" && test -z "${FOUND_XML2CONFIG_RES_FALSE}"; then
4928   as_fn_error $? "conditional \"FOUND_XML2CONFIG_RES\" was never defined.
4929 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4930 fi
4931 if test -z "${FOUND_FILE_RES_TRUE}" && test -z "${FOUND_FILE_RES_FALSE}"; then
4932   as_fn_error $? "conditional \"FOUND_FILE_RES\" was never defined.
4933 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4934 fi
4935 if test -z "${FOUND_UUIDGEN_RES_TRUE}" && test -z "${FOUND_UUIDGEN_RES_FALSE}"; then
4936   as_fn_error $? "conditional \"FOUND_UUIDGEN_RES\" was never defined.
4937 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4938 fi
4939 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
4940   as_fn_error $? "conditional \"DEBUG\" was never defined.
4941 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4942 fi
4944 : "${CONFIG_STATUS=./config.status}"
4945 ac_write_fail=0
4946 ac_clean_files_save=$ac_clean_files
4947 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4949 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4950 as_write_fail=0
4951 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4952 #! $SHELL
4953 # Generated by $as_me.
4954 # Run this file to recreate the current configuration.
4955 # Compiler output produced by configure, useful for debugging
4956 # configure, is in config.log if it exists.
4958 debug=false
4959 ac_cs_recheck=false
4960 ac_cs_silent=false
4962 SHELL=\${CONFIG_SHELL-$SHELL}
4963 export SHELL
4964 _ASEOF
4965 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4966 ## -------------------- ##
4967 ## M4sh Initialization. ##
4968 ## -------------------- ##
4970 # Be more Bourne compatible
4971 DUALCASE=1; export DUALCASE # for MKS sh
4972 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4973   emulate sh
4974   NULLCMD=:
4975   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4976   # is contrary to our usage.  Disable this feature.
4977   alias -g '${1+"$@"}'='"$@"'
4978   setopt NO_GLOB_SUBST
4979 else
4980   case `(set -o) 2>/dev/null` in #(
4981   *posix*) :
4982     set -o posix ;; #(
4983   *) :
4984      ;;
4985 esac
4986 fi
4989 as_nl='
4991 export as_nl
4992 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4993 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4994 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4995 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4996 # Prefer a ksh shell builtin over an external printf program on Solaris,
4997 # but without wasting forks for bash or zsh.
4998 if test -z "$BASH_VERSION$ZSH_VERSION" \
4999     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5000   as_echo='print -r --'
5001   as_echo_n='print -rn --'
5002 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5003   as_echo='printf %s\n'
5004   as_echo_n='printf %s'
5005 else
5006   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5007     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5008     as_echo_n='/usr/ucb/echo -n'
5009   else
5010     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5011     as_echo_n_body='eval
5012       arg=$1;
5013       case $arg in #(
5014       *"$as_nl"*)
5015         expr "X$arg" : "X\\(.*\\)$as_nl";
5016         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5017       esac;
5018       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5019     '
5020     export as_echo_n_body
5021     as_echo_n='sh -c $as_echo_n_body as_echo'
5022   fi
5023   export as_echo_body
5024   as_echo='sh -c $as_echo_body as_echo'
5025 fi
5027 # The user is always right.
5028 if test "${PATH_SEPARATOR+set}" != set; then
5029   PATH_SEPARATOR=:
5030   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5031     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5032       PATH_SEPARATOR=';'
5033   }
5034 fi
5037 # IFS
5038 # We need space, tab and new line, in precisely that order.  Quoting is
5039 # there to prevent editors from complaining about space-tab.
5040 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5041 # splitting by setting IFS to empty value.)
5042 IFS=" ""        $as_nl"
5044 # Find who we are.  Look in the path if we contain no directory separator.
5045 as_myself=
5046 case $0 in #((
5047   *[\\/]* ) as_myself=$0 ;;
5048   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049 for as_dir in $PATH
5050 do
5051   IFS=$as_save_IFS
5052   test -z "$as_dir" && as_dir=.
5053     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5054   done
5055 IFS=$as_save_IFS
5057      ;;
5058 esac
5059 # We did not find ourselves, most probably we were run as `sh COMMAND'
5060 # in which case we are not to be found in the path.
5061 if test "x$as_myself" = x; then
5062   as_myself=$0
5063 fi
5064 if test ! -f "$as_myself"; then
5065   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5066   exit 1
5067 fi
5069 # Unset variables that we do not need and which cause bugs (e.g. in
5070 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
5071 # suppresses any "Segmentation fault" message there.  '((' could
5072 # trigger a bug in pdksh 5.2.14.
5073 for as_var in BASH_ENV ENV MAIL MAILPATH
5074 do eval test x\${$as_var+set} = xset \
5075   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5076 done
5077 PS1='$ '
5078 PS2='> '
5079 PS4='+ '
5081 # NLS nuisances.
5082 LC_ALL=C
5083 export LC_ALL
5084 LANGUAGE=C
5085 export LANGUAGE
5087 # CDPATH.
5088 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5091 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5092 # ----------------------------------------
5093 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5094 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5095 # script with STATUS, using 1 if that was 0.
5096 as_fn_error ()
5098   as_status=$1; test $as_status -eq 0 && as_status=1
5099   if test "$4"; then
5100     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5101     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5102   fi
5103   $as_echo "$as_me: error: $2" >&2
5104   as_fn_exit $as_status
5105 } # as_fn_error
5108 # as_fn_set_status STATUS
5109 # -----------------------
5110 # Set $? to STATUS, without forking.
5111 as_fn_set_status ()
5113   return $1
5114 } # as_fn_set_status
5116 # as_fn_exit STATUS
5117 # -----------------
5118 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5119 as_fn_exit ()
5121   set +e
5122   as_fn_set_status $1
5123   exit $1
5124 } # as_fn_exit
5126 # as_fn_unset VAR
5127 # ---------------
5128 # Portably unset VAR.
5129 as_fn_unset ()
5131   { eval $1=; unset $1;}
5133 as_unset=as_fn_unset
5134 # as_fn_append VAR VALUE
5135 # ----------------------
5136 # Append the text in VALUE to the end of the definition contained in VAR. Take
5137 # advantage of any shell optimizations that allow amortized linear growth over
5138 # repeated appends, instead of the typical quadratic growth present in naive
5139 # implementations.
5140 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5141   eval 'as_fn_append ()
5142   {
5143     eval $1+=\$2
5144   }'
5145 else
5146   as_fn_append ()
5147   {
5148     eval $1=\$$1\$2
5149   }
5150 fi # as_fn_append
5152 # as_fn_arith ARG...
5153 # ------------------
5154 # Perform arithmetic evaluation on the ARGs, and store the result in the
5155 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5156 # must be portable across $(()) and expr.
5157 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5158   eval 'as_fn_arith ()
5159   {
5160     as_val=$(( $* ))
5161   }'
5162 else
5163   as_fn_arith ()
5164   {
5165     as_val=`expr "$@" || test $? -eq 1`
5166   }
5167 fi # as_fn_arith
5170 if expr a : '\(a\)' >/dev/null 2>&1 &&
5171    test "X`expr 00001 : '.*\(...\)'`" = X001; then
5172   as_expr=expr
5173 else
5174   as_expr=false
5175 fi
5177 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5178   as_basename=basename
5179 else
5180   as_basename=false
5181 fi
5183 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5184   as_dirname=dirname
5185 else
5186   as_dirname=false
5187 fi
5189 as_me=`$as_basename -- "$0" ||
5190 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5191          X"$0" : 'X\(//\)$' \| \
5192          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5193 $as_echo X/"$0" |
5194     sed '/^.*\/\([^/][^/]*\)\/*$/{
5195             s//\1/
5196             q
5197           }
5198           /^X\/\(\/\/\)$/{
5199             s//\1/
5200             q
5201           }
5202           /^X\/\(\/\).*/{
5203             s//\1/
5204             q
5205           }
5206           s/.*/./; q'`
5208 # Avoid depending upon Character Ranges.
5209 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5210 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5211 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5212 as_cr_digits='0123456789'
5213 as_cr_alnum=$as_cr_Letters$as_cr_digits
5215 ECHO_C= ECHO_N= ECHO_T=
5216 case `echo -n x` in #(((((
5217 -n*)
5218   case `echo 'xy\c'` in
5219   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
5220   xy)  ECHO_C='\c';;
5221   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5222        ECHO_T=' ';;
5223   esac;;
5224 *)
5225   ECHO_N='-n';;
5226 esac
5228 rm -f conf$$ conf$$.exe conf$$.file
5229 if test -d conf$$.dir; then
5230   rm -f conf$$.dir/conf$$.file
5231 else
5232   rm -f conf$$.dir
5233   mkdir conf$$.dir 2>/dev/null
5234 fi
5235 if (echo >conf$$.file) 2>/dev/null; then
5236   if ln -s conf$$.file conf$$ 2>/dev/null; then
5237     as_ln_s='ln -s'
5238     # ... but there are two gotchas:
5239     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5240     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5241     # In both cases, we have to default to `cp -pR'.
5242     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5243       as_ln_s='cp -pR'
5244   elif ln conf$$.file conf$$ 2>/dev/null; then
5245     as_ln_s=ln
5246   else
5247     as_ln_s='cp -pR'
5248   fi
5249 else
5250   as_ln_s='cp -pR'
5251 fi
5252 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5253 rmdir conf$$.dir 2>/dev/null
5256 # as_fn_mkdir_p
5257 # -------------
5258 # Create "$as_dir" as a directory, including parents if necessary.
5259 as_fn_mkdir_p ()
5262   case $as_dir in #(
5263   -*) as_dir=./$as_dir;;
5264   esac
5265   test -d "$as_dir" || eval $as_mkdir_p || {
5266     as_dirs=
5267     while :; do
5268       case $as_dir in #(
5269       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5270       *) as_qdir=$as_dir;;
5271       esac
5272       as_dirs="'$as_qdir' $as_dirs"
5273       as_dir=`$as_dirname -- "$as_dir" ||
5274 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5275          X"$as_dir" : 'X\(//\)[^/]' \| \
5276          X"$as_dir" : 'X\(//\)$' \| \
5277          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5278 $as_echo X"$as_dir" |
5279     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5280             s//\1/
5281             q
5282           }
5283           /^X\(\/\/\)[^/].*/{
5284             s//\1/
5285             q
5286           }
5287           /^X\(\/\/\)$/{
5288             s//\1/
5289             q
5290           }
5291           /^X\(\/\).*/{
5292             s//\1/
5293             q
5294           }
5295           s/.*/./; q'`
5296       test -d "$as_dir" && break
5297     done
5298     test -z "$as_dirs" || eval "mkdir $as_dirs"
5299   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5302 } # as_fn_mkdir_p
5303 if mkdir -p . 2>/dev/null; then
5304   as_mkdir_p='mkdir -p "$as_dir"'
5305 else
5306   test -d ./-p && rmdir ./-p
5307   as_mkdir_p=false
5308 fi
5311 # as_fn_executable_p FILE
5312 # -----------------------
5313 # Test if FILE is an executable regular file.
5314 as_fn_executable_p ()
5316   test -f "$1" && test -x "$1"
5317 } # as_fn_executable_p
5318 as_test_x='test -x'
5319 as_executable_p=as_fn_executable_p
5321 # Sed expression to map a string onto a valid CPP name.
5322 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5324 # Sed expression to map a string onto a valid variable name.
5325 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5328 exec 6>&1
5329 ## ----------------------------------- ##
5330 ## Main body of $CONFIG_STATUS script. ##
5331 ## ----------------------------------- ##
5332 _ASEOF
5333 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5336 # Save the log message, to keep $0 and so on meaningful, and to
5337 # report actual input values of CONFIG_FILES etc. instead of their
5338 # values after options handling.
5339 ac_log="
5340 This file was extended by Xestia Address Book $as_me 0.01, which was
5341 generated by GNU Autoconf 2.69.  Invocation command line was
5343   CONFIG_FILES    = $CONFIG_FILES
5344   CONFIG_HEADERS  = $CONFIG_HEADERS
5345   CONFIG_LINKS    = $CONFIG_LINKS
5346   CONFIG_COMMANDS = $CONFIG_COMMANDS
5347   $ $0 $@
5349 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5352 _ACEOF
5354 case $ac_config_files in *"
5355 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5356 esac
5360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5361 # Files that config.status was made for.
5362 config_files="$ac_config_files"
5364 _ACEOF
5366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5367 ac_cs_usage="\
5368 \`$as_me' instantiates files and other configuration actions
5369 from templates according to the current configuration.  Unless the files
5370 and actions are specified as TAGs, all are instantiated by default.
5372 Usage: $0 [OPTION]... [TAG]...
5374   -h, --help       print this help, then exit
5375   -V, --version    print version number and configuration settings, then exit
5376       --config     print configuration, then exit
5377   -q, --quiet, --silent
5378                    do not print progress messages
5379   -d, --debug      don't remove temporary files
5380       --recheck    update $as_me by reconfiguring in the same conditions
5381       --file=FILE[:TEMPLATE]
5382                    instantiate the configuration file FILE
5384 Configuration files:
5385 $config_files
5387 Report bugs to <bugs@xestia.co.uk>."
5389 _ACEOF
5390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5391 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5392 ac_cs_version="\\
5393 Xestia Address Book config.status 0.01
5394 configured by $0, generated by GNU Autoconf 2.69,
5395   with options \\"\$ac_cs_config\\"
5397 Copyright (C) 2012 Free Software Foundation, Inc.
5398 This config.status script is free software; the Free Software Foundation
5399 gives unlimited permission to copy, distribute and modify it."
5401 ac_pwd='$ac_pwd'
5402 srcdir='$srcdir'
5403 test -n "\$AWK" || AWK=awk
5404 _ACEOF
5406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5407 # The default lists apply if the user does not specify any file.
5408 ac_need_defaults=:
5409 while test $# != 0
5410 do
5411   case $1 in
5412   --*=?*)
5413     ac_option=`expr "X$1" : 'X\([^=]*\)='`
5414     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5415     ac_shift=:
5416     ;;
5417   --*=)
5418     ac_option=`expr "X$1" : 'X\([^=]*\)='`
5419     ac_optarg=
5420     ac_shift=:
5421     ;;
5422   *)
5423     ac_option=$1
5424     ac_optarg=$2
5425     ac_shift=shift
5426     ;;
5427   esac
5429   case $ac_option in
5430   # Handling of the options.
5431   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5432     ac_cs_recheck=: ;;
5433   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5434     $as_echo "$ac_cs_version"; exit ;;
5435   --config | --confi | --conf | --con | --co | --c )
5436     $as_echo "$ac_cs_config"; exit ;;
5437   --debug | --debu | --deb | --de | --d | -d )
5438     debug=: ;;
5439   --file | --fil | --fi | --f )
5440     $ac_shift
5441     case $ac_optarg in
5442     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5443     '') as_fn_error $? "missing file argument" ;;
5444     esac
5445     as_fn_append CONFIG_FILES " '$ac_optarg'"
5446     ac_need_defaults=false;;
5447   --he | --h |  --help | --hel | -h )
5448     $as_echo "$ac_cs_usage"; exit ;;
5449   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5450   | -silent | --silent | --silen | --sile | --sil | --si | --s)
5451     ac_cs_silent=: ;;
5453   # This is an error.
5454   -*) as_fn_error $? "unrecognized option: \`$1'
5455 Try \`$0 --help' for more information." ;;
5457   *) as_fn_append ac_config_targets " $1"
5458      ac_need_defaults=false ;;
5460   esac
5461   shift
5462 done
5464 ac_configure_extra_args=
5466 if $ac_cs_silent; then
5467   exec 6>/dev/null
5468   ac_configure_extra_args="$ac_configure_extra_args --silent"
5469 fi
5471 _ACEOF
5472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5473 if \$ac_cs_recheck; then
5474   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5475   shift
5476   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5477   CONFIG_SHELL='$SHELL'
5478   export CONFIG_SHELL
5479   exec "\$@"
5480 fi
5482 _ACEOF
5483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5484 exec 5>>config.log
5486   echo
5487   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5488 ## Running $as_me. ##
5489 _ASBOX
5490   $as_echo "$ac_log"
5491 } >&5
5493 _ACEOF
5494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5495 _ACEOF
5497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5499 # Handling of arguments.
5500 for ac_config_target in $ac_config_targets
5501 do
5502   case $ac_config_target in
5503     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5505   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5506   esac
5507 done
5510 # If the user did not use the arguments to specify the items to instantiate,
5511 # then the envvar interface is used.  Set only those that are not.
5512 # We use the long form for the default assignment because of an extremely
5513 # bizarre bug on SunOS 4.1.3.
5514 if $ac_need_defaults; then
5515   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5516 fi
5518 # Have a temporary directory for convenience.  Make it in the build tree
5519 # simply because there is no reason against having it here, and in addition,
5520 # creating and moving files from /tmp can sometimes cause problems.
5521 # Hook for its removal unless debugging.
5522 # Note that there is a small window in which the directory will not be cleaned:
5523 # after its creation but before its name has been assigned to `$tmp'.
5524 $debug ||
5526   tmp= ac_tmp=
5527   trap 'exit_status=$?
5528   : "${ac_tmp:=$tmp}"
5529   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5530 ' 0
5531   trap 'as_fn_exit 1' 1 2 13 15
5533 # Create a (secure) tmp directory for tmp files.
5536   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5537   test -d "$tmp"
5538 }  ||
5540   tmp=./conf$$-$RANDOM
5541   (umask 077 && mkdir "$tmp")
5542 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5543 ac_tmp=$tmp
5545 # Set up the scripts for CONFIG_FILES section.
5546 # No need to generate them if there are no CONFIG_FILES.
5547 # This happens for instance with `./config.status config.h'.
5548 if test -n "$CONFIG_FILES"; then
5551 ac_cr=`echo X | tr X '\015'`
5552 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5553 # But we know of no other shell where ac_cr would be empty at this
5554 # point, so we can use a bashism as a fallback.
5555 if test "x$ac_cr" = x; then
5556   eval ac_cr=\$\'\\r\'
5557 fi
5558 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5559 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5560   ac_cs_awk_cr='\\r'
5561 else
5562   ac_cs_awk_cr=$ac_cr
5563 fi
5565 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5566 _ACEOF
5570   echo "cat >conf$$subs.awk <<_ACEOF" &&
5571   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5572   echo "_ACEOF"
5573 } >conf$$subs.sh ||
5574   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5575 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5576 ac_delim='%!_!# '
5577 for ac_last_try in false false false false false :; do
5578   . ./conf$$subs.sh ||
5579     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5581   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5582   if test $ac_delim_n = $ac_delim_num; then
5583     break
5584   elif $ac_last_try; then
5585     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5586   else
5587     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5588   fi
5589 done
5590 rm -f conf$$subs.sh
5592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5593 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5594 _ACEOF
5595 sed -n '
5597 s/^/S["/; s/!.*/"]=/
5600 s/^[^!]*!//
5601 :repl
5602 t repl
5603 s/'"$ac_delim"'$//
5604 t delim
5605 :nl
5607 s/\(.\{148\}\)..*/\1/
5608 t more1
5609 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5612 b repl
5613 :more1
5614 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5617 s/.\{148\}//
5618 t nl
5619 :delim
5621 s/\(.\{148\}\)..*/\1/
5622 t more2
5623 s/["\\]/\\&/g; s/^/"/; s/$/"/
5626 :more2
5627 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5630 s/.\{148\}//
5631 t delim
5632 ' <conf$$subs.awk | sed '
5633 /^[^""]/{
5634   N
5635   s/\n//
5637 ' >>$CONFIG_STATUS || ac_write_fail=1
5638 rm -f conf$$subs.awk
5639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5640 _ACAWK
5641 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5642   for (key in S) S_is_set[key] = 1
5643   FS = "\a"
5647   line = $ 0
5648   nfields = split(line, field, "@")
5649   substed = 0
5650   len = length(field[1])
5651   for (i = 2; i < nfields; i++) {
5652     key = field[i]
5653     keylen = length(key)
5654     if (S_is_set[key]) {
5655       value = S[key]
5656       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5657       len += length(value) + length(field[++i])
5658       substed = 1
5659     } else
5660       len += 1 + keylen
5661   }
5663   print line
5666 _ACAWK
5667 _ACEOF
5668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5669 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5670   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5671 else
5672   cat
5673 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5674   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5675 _ACEOF
5677 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5678 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5679 # trailing colons and then remove the whole line if VPATH becomes empty
5680 # (actually we leave an empty line to preserve line numbers).
5681 if test "x$srcdir" = x.; then
5682   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
5684 s///
5685 s/^/:/
5686 s/[      ]*$/:/
5687 s/:\$(srcdir):/:/g
5688 s/:\${srcdir}:/:/g
5689 s/:@srcdir@:/:/g
5690 s/^:*//
5691 s/:*$//
5693 s/\(=[   ]*\).*/\1/
5695 s/\n//
5696 s/^[^=]*=[       ]*$//
5697 }'
5698 fi
5700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5701 fi # test -n "$CONFIG_FILES"
5704 eval set X "  :F $CONFIG_FILES      "
5705 shift
5706 for ac_tag
5707 do
5708   case $ac_tag in
5709   :[FHLC]) ac_mode=$ac_tag; continue;;
5710   esac
5711   case $ac_mode$ac_tag in
5712   :[FHL]*:*);;
5713   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5714   :[FH]-) ac_tag=-:-;;
5715   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5716   esac
5717   ac_save_IFS=$IFS
5718   IFS=:
5719   set x $ac_tag
5720   IFS=$ac_save_IFS
5721   shift
5722   ac_file=$1
5723   shift
5725   case $ac_mode in
5726   :L) ac_source=$1;;
5727   :[FH])
5728     ac_file_inputs=
5729     for ac_f
5730     do
5731       case $ac_f in
5732       -) ac_f="$ac_tmp/stdin";;
5733       *) # Look for the file first in the build tree, then in the source tree
5734          # (if the path is not absolute).  The absolute path cannot be DOS-style,
5735          # because $ac_f cannot contain `:'.
5736          test -f "$ac_f" ||
5737            case $ac_f in
5738            [\\/$]*) false;;
5739            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5740            esac ||
5741            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5742       esac
5743       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5744       as_fn_append ac_file_inputs " '$ac_f'"
5745     done
5747     # Let's still pretend it is `configure' which instantiates (i.e., don't
5748     # use $as_me), people would be surprised to read:
5749     #    /* config.h.  Generated by config.status.  */
5750     configure_input='Generated from '`
5751           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5752         `' by configure.'
5753     if test x"$ac_file" != x-; then
5754       configure_input="$ac_file.  $configure_input"
5755       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5756 $as_echo "$as_me: creating $ac_file" >&6;}
5757     fi
5758     # Neutralize special characters interpreted by sed in replacement strings.
5759     case $configure_input in #(
5760     *\&* | *\|* | *\\* )
5761        ac_sed_conf_input=`$as_echo "$configure_input" |
5762        sed 's/[\\\\&|]/\\\\&/g'`;; #(
5763     *) ac_sed_conf_input=$configure_input;;
5764     esac
5766     case $ac_tag in
5767     *:-:* | *:-) cat >"$ac_tmp/stdin" \
5768       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5769     esac
5770     ;;
5771   esac
5773   ac_dir=`$as_dirname -- "$ac_file" ||
5774 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5775          X"$ac_file" : 'X\(//\)[^/]' \| \
5776          X"$ac_file" : 'X\(//\)$' \| \
5777          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5778 $as_echo X"$ac_file" |
5779     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5780             s//\1/
5781             q
5782           }
5783           /^X\(\/\/\)[^/].*/{
5784             s//\1/
5785             q
5786           }
5787           /^X\(\/\/\)$/{
5788             s//\1/
5789             q
5790           }
5791           /^X\(\/\).*/{
5792             s//\1/
5793             q
5794           }
5795           s/.*/./; q'`
5796   as_dir="$ac_dir"; as_fn_mkdir_p
5797   ac_builddir=.
5799 case "$ac_dir" in
5800 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5801 *)
5802   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5803   # A ".." for each directory in $ac_dir_suffix.
5804   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5805   case $ac_top_builddir_sub in
5806   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5807   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5808   esac ;;
5809 esac
5810 ac_abs_top_builddir=$ac_pwd
5811 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5812 # for backward compatibility:
5813 ac_top_builddir=$ac_top_build_prefix
5815 case $srcdir in
5816   .)  # We are building in place.
5817     ac_srcdir=.
5818     ac_top_srcdir=$ac_top_builddir_sub
5819     ac_abs_top_srcdir=$ac_pwd ;;
5820   [\\/]* | ?:[\\/]* )  # Absolute name.
5821     ac_srcdir=$srcdir$ac_dir_suffix;
5822     ac_top_srcdir=$srcdir
5823     ac_abs_top_srcdir=$srcdir ;;
5824   *) # Relative name.
5825     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5826     ac_top_srcdir=$ac_top_build_prefix$srcdir
5827     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5828 esac
5829 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5832   case $ac_mode in
5833   :F)
5834   #
5835   # CONFIG_FILE
5836   #
5838 _ACEOF
5840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5841 # If the template does not know about datarootdir, expand it.
5842 # FIXME: This hack should be removed a few years after 2.60.
5843 ac_datarootdir_hack=; ac_datarootdir_seen=
5844 ac_sed_dataroot='
5845 /datarootdir/ {
5846   p
5847   q
5849 /@datadir@/p
5850 /@docdir@/p
5851 /@infodir@/p
5852 /@localedir@/p
5853 /@mandir@/p'
5854 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5855 *datarootdir*) ac_datarootdir_seen=yes;;
5856 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5857   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5858 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5859 _ACEOF
5860 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5861   ac_datarootdir_hack='
5862   s&@datadir@&$datadir&g
5863   s&@docdir@&$docdir&g
5864   s&@infodir@&$infodir&g
5865   s&@localedir@&$localedir&g
5866   s&@mandir@&$mandir&g
5867   s&\\\${datarootdir}&$datarootdir&g' ;;
5868 esac
5869 _ACEOF
5871 # Neutralize VPATH when `$srcdir' = `.'.
5872 # Shell code in configure.ac might set extrasub.
5873 # FIXME: do we really want to maintain this feature?
5874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5875 ac_sed_extra="$ac_vpsub
5876 $extrasub
5877 _ACEOF
5878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5879 :t
5880 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5881 s|@configure_input@|$ac_sed_conf_input|;t t
5882 s&@top_builddir@&$ac_top_builddir_sub&;t t
5883 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5884 s&@srcdir@&$ac_srcdir&;t t
5885 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5886 s&@top_srcdir@&$ac_top_srcdir&;t t
5887 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5888 s&@builddir@&$ac_builddir&;t t
5889 s&@abs_builddir@&$ac_abs_builddir&;t t
5890 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5891 $ac_datarootdir_hack
5893 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5894   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5896 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5897   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5898   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
5899       "$ac_tmp/out"`; test -z "$ac_out"; } &&
5900   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5901 which seems to be undefined.  Please make sure it is defined" >&5
5902 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5903 which seems to be undefined.  Please make sure it is defined" >&2;}
5905   rm -f "$ac_tmp/stdin"
5906   case $ac_file in
5907   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5908   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5909   esac \
5910   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5911  ;;
5915   esac
5917 done # for ac_tag
5920 as_fn_exit 0
5921 _ACEOF
5922 ac_clean_files=$ac_clean_files_save
5924 test $ac_write_fail = 0 ||
5925   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5928 # configure is writing to config.log, and then calls config.status.
5929 # config.status does its own redirection, appending to config.log.
5930 # Unfortunately, on DOS this fails, as config.log is still kept open
5931 # by configure, so config.status won't be able to write to it; its
5932 # output is simply discarded.  So we exec the FD to /dev/null,
5933 # effectively closing config.log, so it can be properly (re)opened and
5934 # appended to by config.status.  When coming back to configure, we
5935 # need to make the FD available again.
5936 if test "$no_create" != yes; then
5937   ac_cs_success=:
5938   ac_config_status_args=
5939   test "$silent" = yes &&
5940     ac_config_status_args="$ac_config_status_args --quiet"
5941   exec 5>/dev/null
5942   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5943   exec 5>>config.log
5944   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5945   # would make configure fail if this is the last instruction.
5946   $ac_cs_success || as_fn_exit 1
5947 fi
5948 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5949   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5950 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5951 fi
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy