Recreate the navit git/gerrit project that vanished
[profile/ivi/navit.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for navit 0.5.0.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139   emulate sh
140   NULLCMD=:
141   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142   # is contrary to our usage.  Disable this feature.
143   alias -g '\${1+\"\$@\"}'='\"\$@\"'
144   setopt NO_GLOB_SUBST
145 else
146   case \`(set -o) 2>/dev/null\` in #(
147   *posix*) :
148     set -o posix ;; #(
149   *) :
150      ;;
151 esac
152 fi
153 "
154   as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168   exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176   if (eval "$as_required") 2>/dev/null; then :
177   as_have_required=yes
178 else
179   as_have_required=no
180 fi
181   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183 else
184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 do
188   IFS=$as_save_IFS
189   test -z "$as_dir" && as_dir=.
190   as_found=:
191   case $as_dir in #(
192          /*)
193            for as_base in sh bash ksh sh5; do
194              # Try only shells that exist, to save several forks.
195              as_shell=$as_dir/$as_base
196              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198   CONFIG_SHELL=$as_shell as_have_required=yes
199                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200   break 2
201 fi
202 fi
203            done;;
204        esac
205   as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209   CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
212
213
214       if test "x$CONFIG_SHELL" != x; then :
215   # We cannot yet assume a decent shell, so we have to provide a
216         # neutralization value for shells without unset; and this also
217         # works around shells that cannot unset nonexistent variables.
218         # Preserve -v and -x to the replacement shell.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         case $- in # ((((
224           *v*x* | *x*v* ) as_opts=-vx ;;
225           *v* ) as_opts=-v ;;
226           *x* ) as_opts=-x ;;
227           * ) as_opts= ;;
228         esac
229         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
230 fi
231
232     if test x$as_have_required = xno; then :
233   $as_echo "$0: This script requires a shell more modern than all"
234   $as_echo "$0: the shells that I found on your system."
235   if test x${ZSH_VERSION+set} = xset ; then
236     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238   else
239     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
243   fi
244   exit 1
245 fi
246 fi
247 fi
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
253
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
261 {
262   { eval $1=; unset $1;}
263 }
264 as_unset=as_fn_unset
265
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
270 {
271   return $1
272 } # as_fn_set_status
273
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
278 {
279   set +e
280   as_fn_set_status $1
281   exit $1
282 } # as_fn_exit
283
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
288 {
289
290   case $as_dir in #(
291   -*) as_dir=./$as_dir;;
292   esac
293   test -d "$as_dir" || eval $as_mkdir_p || {
294     as_dirs=
295     while :; do
296       case $as_dir in #(
297       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298       *) as_qdir=$as_dir;;
299       esac
300       as_dirs="'$as_qdir' $as_dirs"
301       as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303          X"$as_dir" : 'X\(//\)[^/]' \| \
304          X"$as_dir" : 'X\(//\)$' \| \
305          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308             s//\1/
309             q
310           }
311           /^X\(\/\/\)[^/].*/{
312             s//\1/
313             q
314           }
315           /^X\(\/\/\)$/{
316             s//\1/
317             q
318           }
319           /^X\(\/\).*/{
320             s//\1/
321             q
322           }
323           s/.*/./; q'`
324       test -d "$as_dir" && break
325     done
326     test -z "$as_dirs" || eval "mkdir $as_dirs"
327   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328
329
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338   eval 'as_fn_append ()
339   {
340     eval $1+=\$2
341   }'
342 else
343   as_fn_append ()
344   {
345     eval $1=\$$1\$2
346   }
347 fi # as_fn_append
348
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355   eval 'as_fn_arith ()
356   {
357     as_val=$(( $* ))
358   }'
359 else
360   as_fn_arith ()
361   {
362     as_val=`expr "$@" || test $? -eq 1`
363   }
364 fi # as_fn_arith
365
366
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
373 {
374   as_status=$1; test $as_status -eq 0 && as_status=1
375   if test "$4"; then
376     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
378   fi
379   $as_echo "$as_me: error: $2" >&2
380   as_fn_exit $as_status
381 } # as_fn_error
382
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384    test "X`expr 00001 : '.*\(...\)'`" = X001; then
385   as_expr=expr
386 else
387   as_expr=false
388 fi
389
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391   as_basename=basename
392 else
393   as_basename=false
394 fi
395
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397   as_dirname=dirname
398 else
399   as_dirname=false
400 fi
401
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404          X"$0" : 'X\(//\)$' \| \
405          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407     sed '/^.*\/\([^/][^/]*\)\/*$/{
408             s//\1/
409             q
410           }
411           /^X\/\(\/\/\)$/{
412             s//\1/
413             q
414           }
415           /^X\/\(\/\).*/{
416             s//\1/
417             q
418           }
419           s/.*/./; q'`
420
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429   as_lineno_1=$LINENO as_lineno_1a=$LINENO
430   as_lineno_2=$LINENO as_lineno_2a=$LINENO
431   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
434   sed -n '
435     p
436     /[$]LINENO/=
437   ' <$as_myself |
438     sed '
439       s/[$]LINENO.*/&-/
440       t lineno
441       b
442       :lineno
443       N
444       :loop
445       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446       t loop
447       s/-\n.*//
448     ' >$as_me.lineno &&
449   chmod +x "$as_me.lineno" ||
450     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452   # Don't try to exec as it changes $[0], causing all sort of problems
453   # (the dirname of $[0] is not the place where we might find the
454   # original and so on.  Autoconf is especially sensitive to this).
455   . "./$as_me.lineno"
456   # Exit status is that of the last command.
457   exit
458 }
459
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463   case `echo 'xy\c'` in
464   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
465   xy)  ECHO_C='\c';;
466   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
467        ECHO_T=' ';;
468   esac;;
469 *)
470   ECHO_N='-n';;
471 esac
472
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475   rm -f conf$$.dir/conf$$.file
476 else
477   rm -f conf$$.dir
478   mkdir conf$$.dir 2>/dev/null
479 fi
480 if (echo >conf$$.file) 2>/dev/null; then
481   if ln -s conf$$.file conf$$ 2>/dev/null; then
482     as_ln_s='ln -s'
483     # ... but there are two gotchas:
484     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486     # In both cases, we have to default to `cp -p'.
487     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488       as_ln_s='cp -p'
489   elif ln conf$$.file conf$$ 2>/dev/null; then
490     as_ln_s=ln
491   else
492     as_ln_s='cp -p'
493   fi
494 else
495   as_ln_s='cp -p'
496 fi
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
499
500 if mkdir -p . 2>/dev/null; then
501   as_mkdir_p='mkdir -p "$as_dir"'
502 else
503   test -d ./-p && rmdir ./-p
504   as_mkdir_p=false
505 fi
506
507 if test -x / >/dev/null 2>&1; then
508   as_test_x='test -x'
509 else
510   if ls -dL / >/dev/null 2>&1; then
511     as_ls_L_option=L
512   else
513     as_ls_L_option=
514   fi
515   as_test_x='
516     eval sh -c '\''
517       if test -d "$1"; then
518         test -d "$1/.";
519       else
520         case $1 in #(
521         -*)set "./$1";;
522         esac;
523         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524         ???[sx]*):;;*)false;;esac;fi
525     '\'' sh
526   '
527 fi
528 as_executable_p=$as_test_x
529
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536
537
538 # Check that we are running under the correct shell.
539 SHELL=${CONFIG_SHELL-/bin/sh}
540
541 case X$lt_ECHO in
542 X*--fallback-echo)
543   # Remove one level of quotation (which was required for Make).
544   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
545   ;;
546 esac
547
548 ECHO=${lt_ECHO-echo}
549 if test "X$1" = X--no-reexec; then
550   # Discard the --no-reexec flag, and continue.
551   shift
552 elif test "X$1" = X--fallback-echo; then
553   # Avoid inline document here, it may be left over
554   :
555 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
556   # Yippee, $ECHO works!
557   :
558 else
559   # Restart under the correct shell.
560   exec $SHELL "$0" --no-reexec ${1+"$@"}
561 fi
562
563 if test "X$1" = X--fallback-echo; then
564   # used as fallback echo
565   shift
566   cat <<_LT_EOF
567 $*
568 _LT_EOF
569   exit 0
570 fi
571
572 # The HP-UX ksh and POSIX shell print the target directory to stdout
573 # if CDPATH is set.
574 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
575
576 if test -z "$lt_ECHO"; then
577   if test "X${echo_test_string+set}" != Xset; then
578     # find a string as large as possible, as long as the shell can cope with it
579     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
580       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
581       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
582          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
583       then
584         break
585       fi
586     done
587   fi
588
589   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
590      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
591      test "X$echo_testing_string" = "X$echo_test_string"; then
592     :
593   else
594     # The Solaris, AIX, and Digital Unix default echo programs unquote
595     # backslashes.  This makes it impossible to quote backslashes using
596     #   echo "$something" | sed 's/\\/\\\\/g'
597     #
598     # So, first we look for a working echo in the user's PATH.
599
600     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
601     for dir in $PATH /usr/ucb; do
602       IFS="$lt_save_ifs"
603       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
604          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
605          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
606          test "X$echo_testing_string" = "X$echo_test_string"; then
607         ECHO="$dir/echo"
608         break
609       fi
610     done
611     IFS="$lt_save_ifs"
612
613     if test "X$ECHO" = Xecho; then
614       # We didn't find a better echo, so look for alternatives.
615       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
616          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
617          test "X$echo_testing_string" = "X$echo_test_string"; then
618         # This shell has a builtin print -r that does the trick.
619         ECHO='print -r'
620       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
621            test "X$CONFIG_SHELL" != X/bin/ksh; then
622         # If we have ksh, try running configure again with it.
623         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
624         export ORIGINAL_CONFIG_SHELL
625         CONFIG_SHELL=/bin/ksh
626         export CONFIG_SHELL
627         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
628       else
629         # Try using printf.
630         ECHO='printf %s\n'
631         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
632            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
633            test "X$echo_testing_string" = "X$echo_test_string"; then
634           # Cool, printf works
635           :
636         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
637              test "X$echo_testing_string" = 'X\t' &&
638              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
639              test "X$echo_testing_string" = "X$echo_test_string"; then
640           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
641           export CONFIG_SHELL
642           SHELL="$CONFIG_SHELL"
643           export SHELL
644           ECHO="$CONFIG_SHELL $0 --fallback-echo"
645         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
646              test "X$echo_testing_string" = 'X\t' &&
647              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
648              test "X$echo_testing_string" = "X$echo_test_string"; then
649           ECHO="$CONFIG_SHELL $0 --fallback-echo"
650         else
651           # maybe with a smaller string...
652           prev=:
653
654           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
655             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
656             then
657               break
658             fi
659             prev="$cmd"
660           done
661
662           if test "$prev" != 'sed 50q "$0"'; then
663             echo_test_string=`eval $prev`
664             export echo_test_string
665             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
666           else
667             # Oops.  We lost completely, so just stick with echo.
668             ECHO=echo
669           fi
670         fi
671       fi
672     fi
673   fi
674 fi
675
676 # Copy echo and quote the copy suitably for passing to libtool from
677 # the Makefile, instead of quoting the original, which is used later.
678 lt_ECHO=$ECHO
679 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
680    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
681 fi
682
683
684
685
686 test -n "$DJDIR" || exec 7<&0 </dev/null
687 exec 6>&1
688
689 # Name of the host.
690 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
691 # so uname gets run too.
692 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
693
694 #
695 # Initializations.
696 #
697 ac_default_prefix=/usr/local
698 ac_clean_files=
699 ac_config_libobj_dir=.
700 LIBOBJS=
701 cross_compiling=no
702 subdirs=
703 MFLAGS=
704 MAKEFLAGS=
705
706 # Identity of this package.
707 PACKAGE_NAME='navit'
708 PACKAGE_TARNAME='navit'
709 PACKAGE_VERSION='0.5.0'
710 PACKAGE_STRING='navit 0.5.0'
711 PACKAGE_BUGREPORT=''
712 PACKAGE_URL=''
713
714 # Factoring default headers for most tests.
715 ac_includes_default="\
716 #include <stdio.h>
717 #ifdef HAVE_SYS_TYPES_H
718 # include <sys/types.h>
719 #endif
720 #ifdef HAVE_SYS_STAT_H
721 # include <sys/stat.h>
722 #endif
723 #ifdef STDC_HEADERS
724 # include <stdlib.h>
725 # include <stddef.h>
726 #else
727 # ifdef HAVE_STDLIB_H
728 #  include <stdlib.h>
729 # endif
730 #endif
731 #ifdef HAVE_STRING_H
732 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
733 #  include <memory.h>
734 # endif
735 # include <string.h>
736 #endif
737 #ifdef HAVE_STRINGS_H
738 # include <strings.h>
739 #endif
740 #ifdef HAVE_INTTYPES_H
741 # include <inttypes.h>
742 #endif
743 #ifdef HAVE_STDINT_H
744 # include <stdint.h>
745 #endif
746 #ifdef HAVE_UNISTD_H
747 # include <unistd.h>
748 #endif"
749
750 ac_header_list=
751 ac_subst_vars='am__EXEEXT_FALSE
752 am__EXEEXT_TRUE
753 LTLIBOBJS
754 LIBOBJS
755 WINDRES
756 LIBC_LIBS
757 WORDEXP_LIBS
758 NAVIT_LIBS
759 NAVIT_CFLAGS
760 LIBPDL_LIBS
761 LIBPDL_CFLAGS
762 VEHICLE_WEBOS_FALSE
763 VEHICLE_WEBOS_TRUE
764 IPHONE_LIBS
765 IPHONE_CFLAGS
766 VEHICLE_IPHONE_FALSE
767 VEHICLE_IPHONE_TRUE
768 VEHICLE_WINCE_FALSE
769 VEHICLE_WINCE_TRUE
770 VEHICLE_NULL_FALSE
771 VEHICLE_NULL_TRUE
772 VEHICLE_MAEMO_FALSE
773 VEHICLE_MAEMO_TRUE
774 LIBLOCATION_LIBS
775 LIBLOCATION_CFLAGS
776 VEHICLE_GYPSY_FALSE
777 VEHICLE_GYPSY_TRUE
778 GYPSY_LIBS
779 GYPSY_CFLAGS
780 VEHICLE_GPSD_FALSE
781 VEHICLE_GPSD_TRUE
782 LIBGPS19_LIBS
783 LIBGPS19_CFLAGS
784 GPSD_LIBS
785 GPSD_CFLAGS
786 VEHICLE_FILE_FALSE
787 VEHICLE_FILE_TRUE
788 VEHICLE_DEMO_FALSE
789 VEHICLE_DEMO_TRUE
790 VEHICLE_ANDROID_FALSE
791 VEHICLE_ANDROID_TRUE
792 SUPPORT_ESPEAK_FALSE
793 SUPPORT_ESPEAK_TRUE
794 SPEECH_SPEECH_DISPATCHER_FALSE
795 SPEECH_SPEECH_DISPATCHER_TRUE
796 SPEECHD_LIBS
797 SPEECHD_CFLAGS
798 SPEECH_ESPEAK_FALSE
799 SPEECH_ESPEAK_TRUE
800 SPEECH_CMDLINE_FALSE
801 SPEECH_CMDLINE_TRUE
802 SPEECH_ANDROID_FALSE
803 SPEECH_ANDROID_TRUE
804 ROUTING_FALSE
805 ROUTING_TRUE
806 PLUGIN_PEDESTRIAN_FALSE
807 PLUGIN_PEDESTRIAN_TRUE
808 GUI_QML_FALSE
809 GUI_QML_TRUE
810 QT_DECLARATIVE_LIBS
811 QT_DECLARATIVE_CFLAGS
812 QT_XML_LIBS
813 QT_XML_CFLAGS
814 GUI_WIN32_FALSE
815 GUI_WIN32_TRUE
816 GUI_INTERNAL_FALSE
817 GUI_INTERNAL_TRUE
818 GUI_GTK_FALSE
819 GUI_GTK_TRUE
820 OSD_CORE_FALSE
821 OSD_CORE_TRUE
822 MAP_CSV_FALSE
823 MAP_CSV_TRUE
824 MAP_TEXTFILE_FALSE
825 MAP_TEXTFILE_TRUE
826 MAP_SHAPEFILE_FALSE
827 MAP_SHAPEFILE_TRUE
828 MAP_MG_FALSE
829 MAP_MG_TRUE
830 MAP_FILTER_FALSE
831 MAP_FILTER_TRUE
832 MAP_BINFILE_FALSE
833 MAP_BINFILE_TRUE
834 MOC
835 GRAPHICS_QT_QPAINTER_FALSE
836 GRAPHICS_QT_QPAINTER_TRUE
837 QT_SVG_LIBS
838 QT_SVG_CFLAGS
839 QT_GUI_LIBS
840 QT_GUI_CFLAGS
841 GRAPHICS_WIN32_FALSE
842 GRAPHICS_WIN32_TRUE
843 GRAPHICS_NULL_FALSE
844 GRAPHICS_NULL_TRUE
845 GRAPHICS_GTK_DRAWING_AREA_FALSE
846 GRAPHICS_GTK_DRAWING_AREA_TRUE
847 GRAPHICS_GD_FALSE
848 GRAPHICS_GD_TRUE
849 GD_LIBS
850 GD_CFLAGS
851 GDLIB_CONFIG
852 GRAPHICS_ANDROID_FALSE
853 GRAPHICS_ANDROID_TRUE
854 GRAPHICS_FALSE
855 GRAPHICS_TRUE
856 SUPPORT_LIBC_FALSE
857 SUPPORT_LIBC_TRUE
858 SUPPORT_WORDEXP_FALSE
859 SUPPORT_WORDEXP_TRUE
860 XGETTEXT_GLADE_FALSE
861 XGETTEXT_GLADE_TRUE
862 ENABLE_NLS_FALSE
863 ENABLE_NLS_TRUE
864 POSUB
865 LTLIBINTL
866 LIBINTL
867 INTLLIBS
868 INTL_LIBTOOL_SUFFIX_PREFIX
869 INTLOBJS
870 GENCAT
871 INSTOBJEXT
872 DATADIRNAME
873 CATOBJEXT
874 USE_INCLUDED_LIBINTL
875 BUILD_INCLUDED_LIBINTL
876 INTLBISON
877 LTLIBICONV
878 LIBICONV
879 HAVE_WPRINTF
880 HAVE_SNPRINTF
881 HAVE_ASPRINTF
882 HAVE_POSIX_PRINTF
883 GLIBC21
884 ALLOCA
885 GMSGFMT
886 USE_NLS
887 MKINSTALLDIRS
888 POIFILES
889 POFILES
890 MOFILES
891 INTLIBS
892 MSGFMT
893 MSGMERGE
894 XGETTEXT
895 ANDROID_PROJECT
896 ANDROID_PERMISSIONS
897 SAXON
898 XSLTS
899 USE_SVG_FALSE
900 USE_SVG_TRUE
901 USE_SVG2PNG_FALSE
902 USE_SVG2PNG_TRUE
903 USE_SVG2PNG_SCALES_NAV_FALSE
904 USE_SVG2PNG_SCALES_NAV_TRUE
905 USE_SVG2PNG_SCALES_FLAG_FALSE
906 USE_SVG2PNG_SCALES_FLAG_TRUE
907 USE_SVG2PNG_SCALES_FALSE
908 USE_SVG2PNG_SCALES_TRUE
909 SVG2PNG_SCALES_NAV
910 SVG2PNG_SCALES_FLAG
911 SVG2PNG_SCALES
912 SVG2PNG
913 BINDING_WIN32_FALSE
914 BINDING_WIN32_TRUE
915 DBUS_SERVICE_DIR
916 SPEECH_DBUS_FALSE
917 SPEECH_DBUS_TRUE
918 VEHICLE_GPSD_DBUS_FALSE
919 VEHICLE_GPSD_DBUS_TRUE
920 BINDING_DBUS_FALSE
921 BINDING_DBUS_TRUE
922 DBUS_LIBS
923 DBUS_CFLAGS
924 BINDING_PYTHON_FALSE
925 BINDING_PYTHON_TRUE
926 PYTHON_LIBS
927 PYTHON_CFLAGS
928 PYTHONCONFIG
929 _PATH_PYTHON
930 HAVELIBGARMIN_FALSE
931 HAVELIBGARMIN_TRUE
932 LIBGARMIN_LIBS
933 LIBGARMIN_CFLAGS
934 HAVE_SYSTEM_SHAPEFILELIB_FALSE
935 HAVE_SYSTEM_SHAPEFILELIB_TRUE
936 SHAPEFILE_LIBS
937 SHAPEFILE_CFLAGS
938 GRAPHICS_OPENGL_FALSE
939 GRAPHICS_OPENGL_TRUE
940 GLC_LIBS
941 GLC_CFLAGS
942 FREEIMAGE_LIBS
943 OPENGL_LIBS
944 OPENGL_CFLAGS
945 IMLIB2_LIBS
946 IMLIB2_CFLAGS
947 FRIBIDI_LIBS
948 FRIBIDI_CFLAGS
949 FRIBIDI2_LIBS
950 FRIBIDI2_CFLAGS
951 FONTS_FALSE
952 FONTS_TRUE
953 FONTCONFIG_LIBS
954 FONTCONFIG_CFLAGS
955 FONT_FREETYPE_FALSE
956 FONT_FREETYPE_TRUE
957 FREETYPE2_LIBS
958 FREETYPE2_CFLAGS
959 HAVE_POSTGRESQL_FALSE
960 HAVE_POSTGRESQL_TRUE
961 POSTGRESQL_LIBS
962 POSTGRESQL_CFLAGS
963 PG_CONFIG
964 GRAPHICS_SDL_FALSE
965 GRAPHICS_SDL_TRUE
966 SDL_IMAGE_LIBS
967 SDL_LIBS
968 SDL_CFLAGS
969 GTK2_LIBS
970 GTK2_CFLAGS
971 ZLIB_LIBS
972 ZLIB_CFLAGS
973 SUPPORT_ZLIB_FALSE
974 SUPPORT_ZLIB_TRUE
975 SUPPORT_EZXML_FALSE
976 SUPPORT_EZXML_TRUE
977 SUPPORT_GLIB_FALSE
978 SUPPORT_GLIB_TRUE
979 EVENT_GLIB_FALSE
980 EVENT_GLIB_TRUE
981 LIBNAVIT
982 CXXCPP
983 OTOOL64
984 OTOOL
985 LIPO
986 NMEDIT
987 DSYMUTIL
988 lt_ECHO
989 RANLIB
990 AR
991 OBJDUMP
992 LN_S
993 NM
994 ac_ct_DUMPBIN
995 DUMPBIN
996 LD
997 FGREP
998 SED
999 LIBTOOL
1000 BIN_NAVIT_FALSE
1001 BIN_NAVIT_TRUE
1002 SHARED_LIBNAVIT_FALSE
1003 SHARED_LIBNAVIT_TRUE
1004 PLUGINS_FALSE
1005 PLUGINS_TRUE
1006 CRYPTO_LIBS
1007 GMODULE_LIBS
1008 GMODULE_CFLAGS
1009 GLIB_LIBS
1010 GLIB_CFLAGS
1011 FASTMATH_FALSE
1012 FASTMATH_TRUE
1013 BUILD_SAMPLEMAP_FALSE
1014 BUILD_SAMPLEMAP_TRUE
1015 MAPTOOL_FALSE
1016 MAPTOOL_TRUE
1017 _PATH_BZCAT
1018 USE_OSSO_FALSE
1019 USE_OSSO_TRUE
1020 LIBOSSO_LIBS
1021 LIBOSSO_CFLAGS
1022 USE_HILDON_FALSE
1023 USE_HILDON_TRUE
1024 GPSBT_LIBS
1025 GPSBT_CFLAGS
1026 HILDON_LIBS
1027 HILDON_CFLAGS
1028 NAVIT_VARIANT
1029 CCLD_FOR_BUILD
1030 CROSS_COMPILING_FALSE
1031 CROSS_COMPILING_TRUE
1032 cross_compiling
1033 CC_FOR_BUILD
1034 PKG_CONFIG_LIBDIR
1035 PKG_CONFIG_PATH
1036 PKG_CONFIG
1037 am__fastdepCXX_FALSE
1038 am__fastdepCXX_TRUE
1039 CXXDEPMODE
1040 ac_ct_CXX
1041 CXXFLAGS
1042 CXX
1043 am__fastdepOBJC_FALSE
1044 am__fastdepOBJC_TRUE
1045 OBJCDEPMODE
1046 ac_ct_OBJC
1047 OBJCFLAGS
1048 OBJC
1049 EGREP
1050 GREP
1051 CPP
1052 am__fastdepCC_FALSE
1053 am__fastdepCC_TRUE
1054 CCDEPMODE
1055 AMDEPBACKSLASH
1056 AMDEP_FALSE
1057 AMDEP_TRUE
1058 am__quote
1059 am__include
1060 DEPDIR
1061 OBJEXT
1062 EXEEXT
1063 ac_ct_CC
1064 CPPFLAGS
1065 LDFLAGS
1066 CFLAGS
1067 CC
1068 NAVIT_SOCKET_LDFLAGS
1069 NAVIT_MODULE_LDFLAGS
1070 MODULE_LIBADD
1071 MODULE_LDFLAGS
1072 SUPPORT_LIBPNG_FALSE
1073 SUPPORT_LIBPNG_TRUE
1074 SUPPORT_ANDROID_FALSE
1075 SUPPORT_ANDROID_TRUE
1076 SUPPORT_WIN32CE_FALSE
1077 SUPPORT_WIN32CE_TRUE
1078 SUPPORT_WIN32_FALSE
1079 SUPPORT_WIN32_TRUE
1080 host_os
1081 host_vendor
1082 host_cpu
1083 host
1084 build_os
1085 build_vendor
1086 build_cpu
1087 build
1088 MAINT
1089 MAINTAINER_MODE_FALSE
1090 MAINTAINER_MODE_TRUE
1091 SOURCE_MODE_SVN_FALSE
1092 SOURCE_MODE_SVN_TRUE
1093 SOURCE_MODE
1094 am__untar
1095 am__tar
1096 AMTAR
1097 am__leading_dot
1098 SET_MAKE
1099 AWK
1100 mkdir_p
1101 MKDIR_P
1102 INSTALL_STRIP_PROGRAM
1103 STRIP
1104 install_sh
1105 MAKEINFO
1106 AUTOHEADER
1107 AUTOMAKE
1108 AUTOCONF
1109 ACLOCAL
1110 VERSION
1111 PACKAGE
1112 CYGPATH_W
1113 am__isrc
1114 INSTALL_DATA
1115 INSTALL_SCRIPT
1116 INSTALL_PROGRAM
1117 target_alias
1118 host_alias
1119 build_alias
1120 LIBS
1121 ECHO_T
1122 ECHO_N
1123 ECHO_C
1124 DEFS
1125 mandir
1126 localedir
1127 libdir
1128 psdir
1129 pdfdir
1130 dvidir
1131 htmldir
1132 infodir
1133 docdir
1134 oldincludedir
1135 includedir
1136 localstatedir
1137 sharedstatedir
1138 sysconfdir
1139 datadir
1140 datarootdir
1141 libexecdir
1142 sbindir
1143 bindir
1144 program_transform_name
1145 prefix
1146 exec_prefix
1147 PACKAGE_URL
1148 PACKAGE_BUGREPORT
1149 PACKAGE_STRING
1150 PACKAGE_VERSION
1151 PACKAGE_TARNAME
1152 PACKAGE_NAME
1153 PATH_SEPARATOR
1154 SHELL'
1155 ac_subst_files=''
1156 ac_user_opts='
1157 enable_option_checking
1158 enable_maintainer_mode
1159 enable_dependency_tracking
1160 enable_variant
1161 enable_cache_size
1162 enable_avoid_unaligned
1163 enable_avoid_float
1164 enable_transformation_roll
1165 enable_hildon
1166 enable_osso
1167 enable_garmin
1168 enable_maptool
1169 enable_samplemap
1170 enable_fastmath
1171 enable_glib
1172 enable_gmodule
1173 enable_plugins
1174 enable_shared_libnavit
1175 enable_shared
1176 enable_static
1177 with_pic
1178 enable_fast_install
1179 with_gnu_ld
1180 enable_libtool_lock
1181 enable_graphics_sdl
1182 enable_postgresql
1183 enable_font_freetype
1184 with_freetype_fonts
1185 enable_fontconfig
1186 enable_fribidi
1187 enable_graphics_opengl
1188 enable_binding_python
1189 enable_binding_dbus
1190 enable_binding_dbus_use_system_bus
1191 with_dbus_service_dir
1192 enable_binding_win32
1193 enable_svg
1194 enable_svg2png
1195 enable_svg2png_scaling
1196 enable_svg2png_scaling_flag
1197 enable_svg2png_scaling_nav
1198 with_svg2png_use_convert
1199 with_svg2png_use_rsvg_convert
1200 with_svg2png_use_inkscape
1201 with_svg2png_use_ksvgtopng4
1202 with_svg2png_use_ksvgtopng
1203 with_xslts
1204 with_saxon
1205 with_android_permissions
1206 with_android_project
1207 enable_nls
1208 enable_rpath
1209 with_libiconv_prefix
1210 with_included_gettext
1211 with_libintl_prefix
1212 enable_support_libc
1213 enable_graphics
1214 enable_graphics_android
1215 enable_graphics_gd
1216 enable_graphics_gtk_drawing_area
1217 enable_graphics_null
1218 enable_graphics_win32
1219 enable_graphics_qt_qpainter
1220 enable_map_binfile
1221 enable_map_filter
1222 enable_map_mg
1223 enable_map_shapefile
1224 enable_map_textfile
1225 enable_map_csv
1226 enable_osd_core
1227 enable_gui_gtk
1228 enable_gui_internal
1229 enable_gui_win32
1230 enable_gui_qml
1231 enable_plugin_pedestrian
1232 enable_routing
1233 enable_speech_android
1234 enable_speech_cmdline
1235 enable_speech_espeak
1236 enable_speech_speech_dispatcher
1237 enable_vehicle_android
1238 enable_vehicle_demo
1239 enable_vehicle_file
1240 enable_vehicle_gpsd
1241 enable_vehicle_gypsy
1242 enable_vehicle_maemo
1243 enable_vehicle_null
1244 enable_vehicle_wince
1245 enable_vehicle_iphone
1246 enable_vehicle_webos
1247 '
1248       ac_precious_vars='build_alias
1249 host_alias
1250 target_alias
1251 CC
1252 CFLAGS
1253 LDFLAGS
1254 LIBS
1255 CPPFLAGS
1256 CPP
1257 OBJC
1258 OBJCFLAGS
1259 CXX
1260 CXXFLAGS
1261 CCC
1262 PKG_CONFIG
1263 PKG_CONFIG_PATH
1264 PKG_CONFIG_LIBDIR
1265 HILDON_CFLAGS
1266 HILDON_LIBS
1267 GPSBT_CFLAGS
1268 GPSBT_LIBS
1269 LIBOSSO_CFLAGS
1270 LIBOSSO_LIBS
1271 GLIB_CFLAGS
1272 GLIB_LIBS
1273 GMODULE_CFLAGS
1274 GMODULE_LIBS
1275 CXXCPP
1276 GTK2_CFLAGS
1277 GTK2_LIBS
1278 SDL_CFLAGS
1279 SDL_LIBS
1280 FREETYPE2_CFLAGS
1281 FREETYPE2_LIBS
1282 FONTCONFIG_CFLAGS
1283 FONTCONFIG_LIBS
1284 FRIBIDI2_CFLAGS
1285 FRIBIDI2_LIBS
1286 FRIBIDI_CFLAGS
1287 FRIBIDI_LIBS
1288 IMLIB2_CFLAGS
1289 IMLIB2_LIBS
1290 LIBGARMIN_CFLAGS
1291 LIBGARMIN_LIBS
1292 DBUS_CFLAGS
1293 DBUS_LIBS
1294 QT_GUI_CFLAGS
1295 QT_GUI_LIBS
1296 QT_SVG_CFLAGS
1297 QT_SVG_LIBS
1298 QT_XML_CFLAGS
1299 QT_XML_LIBS
1300 QT_DECLARATIVE_CFLAGS
1301 QT_DECLARATIVE_LIBS
1302 GPSD_CFLAGS
1303 GPSD_LIBS
1304 LIBGPS19_CFLAGS
1305 LIBGPS19_LIBS
1306 GYPSY_CFLAGS
1307 GYPSY_LIBS
1308 LIBLOCATION_CFLAGS
1309 LIBLOCATION_LIBS'
1310
1311
1312 # Initialize some variables set by options.
1313 ac_init_help=
1314 ac_init_version=false
1315 ac_unrecognized_opts=
1316 ac_unrecognized_sep=
1317 # The variables have the same names as the options, with
1318 # dashes changed to underlines.
1319 cache_file=/dev/null
1320 exec_prefix=NONE
1321 no_create=
1322 no_recursion=
1323 prefix=NONE
1324 program_prefix=NONE
1325 program_suffix=NONE
1326 program_transform_name=s,x,x,
1327 silent=
1328 site=
1329 srcdir=
1330 verbose=
1331 x_includes=NONE
1332 x_libraries=NONE
1333
1334 # Installation directory options.
1335 # These are left unexpanded so users can "make install exec_prefix=/foo"
1336 # and all the variables that are supposed to be based on exec_prefix
1337 # by default will actually change.
1338 # Use braces instead of parens because sh, perl, etc. also accept them.
1339 # (The list follows the same order as the GNU Coding Standards.)
1340 bindir='${exec_prefix}/bin'
1341 sbindir='${exec_prefix}/sbin'
1342 libexecdir='${exec_prefix}/libexec'
1343 datarootdir='${prefix}/share'
1344 datadir='${datarootdir}'
1345 sysconfdir='${prefix}/etc'
1346 sharedstatedir='${prefix}/com'
1347 localstatedir='${prefix}/var'
1348 includedir='${prefix}/include'
1349 oldincludedir='/usr/include'
1350 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1351 infodir='${datarootdir}/info'
1352 htmldir='${docdir}'
1353 dvidir='${docdir}'
1354 pdfdir='${docdir}'
1355 psdir='${docdir}'
1356 libdir='${exec_prefix}/lib'
1357 localedir='${datarootdir}/locale'
1358 mandir='${datarootdir}/man'
1359
1360 ac_prev=
1361 ac_dashdash=
1362 for ac_option
1363 do
1364   # If the previous option needs an argument, assign it.
1365   if test -n "$ac_prev"; then
1366     eval $ac_prev=\$ac_option
1367     ac_prev=
1368     continue
1369   fi
1370
1371   case $ac_option in
1372   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1373   *=)   ac_optarg= ;;
1374   *)    ac_optarg=yes ;;
1375   esac
1376
1377   # Accept the important Cygnus configure options, so we can diagnose typos.
1378
1379   case $ac_dashdash$ac_option in
1380   --)
1381     ac_dashdash=yes ;;
1382
1383   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1384     ac_prev=bindir ;;
1385   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1386     bindir=$ac_optarg ;;
1387
1388   -build | --build | --buil | --bui | --bu)
1389     ac_prev=build_alias ;;
1390   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1391     build_alias=$ac_optarg ;;
1392
1393   -cache-file | --cache-file | --cache-fil | --cache-fi \
1394   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1395     ac_prev=cache_file ;;
1396   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1397   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1398     cache_file=$ac_optarg ;;
1399
1400   --config-cache | -C)
1401     cache_file=config.cache ;;
1402
1403   -datadir | --datadir | --datadi | --datad)
1404     ac_prev=datadir ;;
1405   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1406     datadir=$ac_optarg ;;
1407
1408   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1409   | --dataroo | --dataro | --datar)
1410     ac_prev=datarootdir ;;
1411   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1412   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1413     datarootdir=$ac_optarg ;;
1414
1415   -disable-* | --disable-*)
1416     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1417     # Reject names that are not valid shell variable names.
1418     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1419       as_fn_error $? "invalid feature name: $ac_useropt"
1420     ac_useropt_orig=$ac_useropt
1421     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1422     case $ac_user_opts in
1423       *"
1424 "enable_$ac_useropt"
1425 "*) ;;
1426       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1427          ac_unrecognized_sep=', ';;
1428     esac
1429     eval enable_$ac_useropt=no ;;
1430
1431   -docdir | --docdir | --docdi | --doc | --do)
1432     ac_prev=docdir ;;
1433   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1434     docdir=$ac_optarg ;;
1435
1436   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1437     ac_prev=dvidir ;;
1438   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1439     dvidir=$ac_optarg ;;
1440
1441   -enable-* | --enable-*)
1442     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1443     # Reject names that are not valid shell variable names.
1444     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1445       as_fn_error $? "invalid feature name: $ac_useropt"
1446     ac_useropt_orig=$ac_useropt
1447     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1448     case $ac_user_opts in
1449       *"
1450 "enable_$ac_useropt"
1451 "*) ;;
1452       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1453          ac_unrecognized_sep=', ';;
1454     esac
1455     eval enable_$ac_useropt=\$ac_optarg ;;
1456
1457   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1458   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1459   | --exec | --exe | --ex)
1460     ac_prev=exec_prefix ;;
1461   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1462   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1463   | --exec=* | --exe=* | --ex=*)
1464     exec_prefix=$ac_optarg ;;
1465
1466   -gas | --gas | --ga | --g)
1467     # Obsolete; use --with-gas.
1468     with_gas=yes ;;
1469
1470   -help | --help | --hel | --he | -h)
1471     ac_init_help=long ;;
1472   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1473     ac_init_help=recursive ;;
1474   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1475     ac_init_help=short ;;
1476
1477   -host | --host | --hos | --ho)
1478     ac_prev=host_alias ;;
1479   -host=* | --host=* | --hos=* | --ho=*)
1480     host_alias=$ac_optarg ;;
1481
1482   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1483     ac_prev=htmldir ;;
1484   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1485   | --ht=*)
1486     htmldir=$ac_optarg ;;
1487
1488   -includedir | --includedir | --includedi | --included | --include \
1489   | --includ | --inclu | --incl | --inc)
1490     ac_prev=includedir ;;
1491   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1492   | --includ=* | --inclu=* | --incl=* | --inc=*)
1493     includedir=$ac_optarg ;;
1494
1495   -infodir | --infodir | --infodi | --infod | --info | --inf)
1496     ac_prev=infodir ;;
1497   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1498     infodir=$ac_optarg ;;
1499
1500   -libdir | --libdir | --libdi | --libd)
1501     ac_prev=libdir ;;
1502   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1503     libdir=$ac_optarg ;;
1504
1505   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1506   | --libexe | --libex | --libe)
1507     ac_prev=libexecdir ;;
1508   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1509   | --libexe=* | --libex=* | --libe=*)
1510     libexecdir=$ac_optarg ;;
1511
1512   -localedir | --localedir | --localedi | --localed | --locale)
1513     ac_prev=localedir ;;
1514   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1515     localedir=$ac_optarg ;;
1516
1517   -localstatedir | --localstatedir | --localstatedi | --localstated \
1518   | --localstate | --localstat | --localsta | --localst | --locals)
1519     ac_prev=localstatedir ;;
1520   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1521   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1522     localstatedir=$ac_optarg ;;
1523
1524   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1525     ac_prev=mandir ;;
1526   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1527     mandir=$ac_optarg ;;
1528
1529   -nfp | --nfp | --nf)
1530     # Obsolete; use --without-fp.
1531     with_fp=no ;;
1532
1533   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1534   | --no-cr | --no-c | -n)
1535     no_create=yes ;;
1536
1537   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1538   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1539     no_recursion=yes ;;
1540
1541   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1542   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1543   | --oldin | --oldi | --old | --ol | --o)
1544     ac_prev=oldincludedir ;;
1545   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1546   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1547   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1548     oldincludedir=$ac_optarg ;;
1549
1550   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1551     ac_prev=prefix ;;
1552   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1553     prefix=$ac_optarg ;;
1554
1555   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1556   | --program-pre | --program-pr | --program-p)
1557     ac_prev=program_prefix ;;
1558   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1559   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1560     program_prefix=$ac_optarg ;;
1561
1562   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1563   | --program-suf | --program-su | --program-s)
1564     ac_prev=program_suffix ;;
1565   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1566   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1567     program_suffix=$ac_optarg ;;
1568
1569   -program-transform-name | --program-transform-name \
1570   | --program-transform-nam | --program-transform-na \
1571   | --program-transform-n | --program-transform- \
1572   | --program-transform | --program-transfor \
1573   | --program-transfo | --program-transf \
1574   | --program-trans | --program-tran \
1575   | --progr-tra | --program-tr | --program-t)
1576     ac_prev=program_transform_name ;;
1577   -program-transform-name=* | --program-transform-name=* \
1578   | --program-transform-nam=* | --program-transform-na=* \
1579   | --program-transform-n=* | --program-transform-=* \
1580   | --program-transform=* | --program-transfor=* \
1581   | --program-transfo=* | --program-transf=* \
1582   | --program-trans=* | --program-tran=* \
1583   | --progr-tra=* | --program-tr=* | --program-t=*)
1584     program_transform_name=$ac_optarg ;;
1585
1586   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1587     ac_prev=pdfdir ;;
1588   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1589     pdfdir=$ac_optarg ;;
1590
1591   -psdir | --psdir | --psdi | --psd | --ps)
1592     ac_prev=psdir ;;
1593   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1594     psdir=$ac_optarg ;;
1595
1596   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1597   | -silent | --silent | --silen | --sile | --sil)
1598     silent=yes ;;
1599
1600   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1601     ac_prev=sbindir ;;
1602   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1603   | --sbi=* | --sb=*)
1604     sbindir=$ac_optarg ;;
1605
1606   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1607   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1608   | --sharedst | --shareds | --shared | --share | --shar \
1609   | --sha | --sh)
1610     ac_prev=sharedstatedir ;;
1611   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1612   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1613   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1614   | --sha=* | --sh=*)
1615     sharedstatedir=$ac_optarg ;;
1616
1617   -site | --site | --sit)
1618     ac_prev=site ;;
1619   -site=* | --site=* | --sit=*)
1620     site=$ac_optarg ;;
1621
1622   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1623     ac_prev=srcdir ;;
1624   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1625     srcdir=$ac_optarg ;;
1626
1627   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1628   | --syscon | --sysco | --sysc | --sys | --sy)
1629     ac_prev=sysconfdir ;;
1630   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1631   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1632     sysconfdir=$ac_optarg ;;
1633
1634   -target | --target | --targe | --targ | --tar | --ta | --t)
1635     ac_prev=target_alias ;;
1636   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1637     target_alias=$ac_optarg ;;
1638
1639   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1640     verbose=yes ;;
1641
1642   -version | --version | --versio | --versi | --vers | -V)
1643     ac_init_version=: ;;
1644
1645   -with-* | --with-*)
1646     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1647     # Reject names that are not valid shell variable names.
1648     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1649       as_fn_error $? "invalid package name: $ac_useropt"
1650     ac_useropt_orig=$ac_useropt
1651     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1652     case $ac_user_opts in
1653       *"
1654 "with_$ac_useropt"
1655 "*) ;;
1656       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1657          ac_unrecognized_sep=', ';;
1658     esac
1659     eval with_$ac_useropt=\$ac_optarg ;;
1660
1661   -without-* | --without-*)
1662     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1663     # Reject names that are not valid shell variable names.
1664     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1665       as_fn_error $? "invalid package name: $ac_useropt"
1666     ac_useropt_orig=$ac_useropt
1667     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1668     case $ac_user_opts in
1669       *"
1670 "with_$ac_useropt"
1671 "*) ;;
1672       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1673          ac_unrecognized_sep=', ';;
1674     esac
1675     eval with_$ac_useropt=no ;;
1676
1677   --x)
1678     # Obsolete; use --with-x.
1679     with_x=yes ;;
1680
1681   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1682   | --x-incl | --x-inc | --x-in | --x-i)
1683     ac_prev=x_includes ;;
1684   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1685   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1686     x_includes=$ac_optarg ;;
1687
1688   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1689   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1690     ac_prev=x_libraries ;;
1691   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1692   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1693     x_libraries=$ac_optarg ;;
1694
1695   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1696 Try \`$0 --help' for more information"
1697     ;;
1698
1699   *=*)
1700     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1701     # Reject names that are not valid shell variable names.
1702     case $ac_envvar in #(
1703       '' | [0-9]* | *[!_$as_cr_alnum]* )
1704       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1705     esac
1706     eval $ac_envvar=\$ac_optarg
1707     export $ac_envvar ;;
1708
1709   *)
1710     # FIXME: should be removed in autoconf 3.0.
1711     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1712     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1713       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1714     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1715     ;;
1716
1717   esac
1718 done
1719
1720 if test -n "$ac_prev"; then
1721   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1722   as_fn_error $? "missing argument to $ac_option"
1723 fi
1724
1725 if test -n "$ac_unrecognized_opts"; then
1726   case $enable_option_checking in
1727     no) ;;
1728     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1729     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1730   esac
1731 fi
1732
1733 # Check all directory arguments for consistency.
1734 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1735                 datadir sysconfdir sharedstatedir localstatedir includedir \
1736                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1737                 libdir localedir mandir
1738 do
1739   eval ac_val=\$$ac_var
1740   # Remove trailing slashes.
1741   case $ac_val in
1742     */ )
1743       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1744       eval $ac_var=\$ac_val;;
1745   esac
1746   # Be sure to have absolute directory names.
1747   case $ac_val in
1748     [\\/$]* | ?:[\\/]* )  continue;;
1749     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1750   esac
1751   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1752 done
1753
1754 # There might be people who depend on the old broken behavior: `$host'
1755 # used to hold the argument of --host etc.
1756 # FIXME: To remove some day.
1757 build=$build_alias
1758 host=$host_alias
1759 target=$target_alias
1760
1761 # FIXME: To remove some day.
1762 if test "x$host_alias" != x; then
1763   if test "x$build_alias" = x; then
1764     cross_compiling=maybe
1765     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1766     If a cross compiler is detected then cross compile mode will be used" >&2
1767   elif test "x$build_alias" != "x$host_alias"; then
1768     cross_compiling=yes
1769   fi
1770 fi
1771
1772 ac_tool_prefix=
1773 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1774
1775 test "$silent" = yes && exec 6>/dev/null
1776
1777
1778 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1779 ac_ls_di=`ls -di .` &&
1780 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1781   as_fn_error $? "working directory cannot be determined"
1782 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1783   as_fn_error $? "pwd does not report name of working directory"
1784
1785
1786 # Find the source files, if location was not specified.
1787 if test -z "$srcdir"; then
1788   ac_srcdir_defaulted=yes
1789   # Try the directory containing this script, then the parent directory.
1790   ac_confdir=`$as_dirname -- "$as_myself" ||
1791 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1792          X"$as_myself" : 'X\(//\)[^/]' \| \
1793          X"$as_myself" : 'X\(//\)$' \| \
1794          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1795 $as_echo X"$as_myself" |
1796     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1797             s//\1/
1798             q
1799           }
1800           /^X\(\/\/\)[^/].*/{
1801             s//\1/
1802             q
1803           }
1804           /^X\(\/\/\)$/{
1805             s//\1/
1806             q
1807           }
1808           /^X\(\/\).*/{
1809             s//\1/
1810             q
1811           }
1812           s/.*/./; q'`
1813   srcdir=$ac_confdir
1814   if test ! -r "$srcdir/$ac_unique_file"; then
1815     srcdir=..
1816   fi
1817 else
1818   ac_srcdir_defaulted=no
1819 fi
1820 if test ! -r "$srcdir/$ac_unique_file"; then
1821   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1822   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1823 fi
1824 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1825 ac_abs_confdir=`(
1826         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1827         pwd)`
1828 # When building in place, set srcdir=.
1829 if test "$ac_abs_confdir" = "$ac_pwd"; then
1830   srcdir=.
1831 fi
1832 # Remove unnecessary trailing slashes from srcdir.
1833 # Double slashes in file names in object file debugging info
1834 # mess up M-x gdb in Emacs.
1835 case $srcdir in
1836 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1837 esac
1838 for ac_var in $ac_precious_vars; do
1839   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1840   eval ac_env_${ac_var}_value=\$${ac_var}
1841   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1842   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1843 done
1844
1845 #
1846 # Report the --help message.
1847 #
1848 if test "$ac_init_help" = "long"; then
1849   # Omit some internal or obsolete options to make the list less imposing.
1850   # This message is too long to be a string in the A/UX 3.1 sh.
1851   cat <<_ACEOF
1852 \`configure' configures navit 0.5.0 to adapt to many kinds of systems.
1853
1854 Usage: $0 [OPTION]... [VAR=VALUE]...
1855
1856 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1857 VAR=VALUE.  See below for descriptions of some of the useful variables.
1858
1859 Defaults for the options are specified in brackets.
1860
1861 Configuration:
1862   -h, --help              display this help and exit
1863       --help=short        display options specific to this package
1864       --help=recursive    display the short help of all the included packages
1865   -V, --version           display version information and exit
1866   -q, --quiet, --silent   do not print \`checking ...' messages
1867       --cache-file=FILE   cache test results in FILE [disabled]
1868   -C, --config-cache      alias for \`--cache-file=config.cache'
1869   -n, --no-create         do not create output files
1870       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1871
1872 Installation directories:
1873   --prefix=PREFIX         install architecture-independent files in PREFIX
1874                           [$ac_default_prefix]
1875   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1876                           [PREFIX]
1877
1878 By default, \`make install' will install all the files in
1879 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1880 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1881 for instance \`--prefix=\$HOME'.
1882
1883 For better control, use the options below.
1884
1885 Fine tuning of the installation directories:
1886   --bindir=DIR            user executables [EPREFIX/bin]
1887   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1888   --libexecdir=DIR        program executables [EPREFIX/libexec]
1889   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1890   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1891   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1892   --libdir=DIR            object code libraries [EPREFIX/lib]
1893   --includedir=DIR        C header files [PREFIX/include]
1894   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1895   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1896   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1897   --infodir=DIR           info documentation [DATAROOTDIR/info]
1898   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1899   --mandir=DIR            man documentation [DATAROOTDIR/man]
1900   --docdir=DIR            documentation root [DATAROOTDIR/doc/navit]
1901   --htmldir=DIR           html documentation [DOCDIR]
1902   --dvidir=DIR            dvi documentation [DOCDIR]
1903   --pdfdir=DIR            pdf documentation [DOCDIR]
1904   --psdir=DIR             ps documentation [DOCDIR]
1905 _ACEOF
1906
1907   cat <<\_ACEOF
1908
1909 Program names:
1910   --program-prefix=PREFIX            prepend PREFIX to installed program names
1911   --program-suffix=SUFFIX            append SUFFIX to installed program names
1912   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1913
1914 System types:
1915   --build=BUILD     configure for building on BUILD [guessed]
1916   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1917 _ACEOF
1918 fi
1919
1920 if test -n "$ac_init_help"; then
1921   case $ac_init_help in
1922      short | recursive ) echo "Configuration of navit 0.5.0:";;
1923    esac
1924   cat <<\_ACEOF
1925
1926 Optional Features:
1927   --disable-option-checking  ignore unrecognized --enable/--with options
1928   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1929   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1930   --enable-maintainer-mode  enable make rules and dependencies not useful
1931                           (and sometimes confusing) to the casual installer
1932   --disable-dependency-tracking  speeds up one-time build
1933   --enable-dependency-tracking   do not reject slow dependency extractors
1934   --enable-variant=something          set variant
1935   --enable-cache-size=size in bytes        set cache size
1936   --enable-avoid-unaligned          avoid unaligned accesses
1937   --enable-avoid-float              avoid floating point calculations
1938   --enable-transformation-roll      add support for specifying roll angle in transformation
1939   --disable-hildon              build without maemo/hildon support
1940   --disable-osso              build without maemo/osso support
1941   --disable-garmin             disable garmin support
1942   --disable-maptool             don't build maptool
1943   --disable-samplemap             don't build the samplemap
1944   --disable-fastmath             don't build with fastmath
1945   --disable-glib             don't build with external glib
1946   --disable-gmodule             don't build with gmodule
1947   --disable-plugins          disable plugins
1948   --enable-shared-libnavit
1949   --enable-shared[=PKGS]  build shared libraries [default=yes]
1950   --enable-static[=PKGS]  build static libraries [default=no]
1951   --enable-fast-install[=PKGS]
1952                           optimize for fast installation [default=yes]
1953   --disable-libtool-lock  avoid locking (might break parallel builds)
1954   --disable-graphics-sdl             don't create graphics sdl
1955   --disable-postgresql             don't add postgresql support to maptool
1956   --disable-font-freetype             don't add freetype support
1957   --disable-fontconfig             don't' add fontconfig support
1958   --disable-fribidi      dont build with fribidi
1959   --disable-graphics-opengl      disable graphics type OpenGL
1960   --disable-binding-python             don't create binding python
1961   --disable-binding-dbus               don't create binding dbus
1962   --enable-binding-dbus-use-system-bus   use system bus for dbus binding
1963   --disable-binding-win32               don't create binding win32
1964   --disable-svg        disable Scalable Vector Graphics
1965   --disable-svg2png        disable conversion of svgs to pngs
1966   --enable-svg2png-scaling   enable conversion of svgs to pngs with specified sizes
1967   --enable-svg2png-scaling-flag   enable conversion of flag svgs to pngs with specified sizes
1968   --enable-svg2png-scaling-nav   enable conversion of nav svgs to pngs with specified sizes
1969   --disable-nls        disable Native Language Support ( gettext/libintl )
1970   --disable-nls           do not use Native Language Support
1971   --disable-rpath         do not hardcode runtime library paths
1972   --enable-support-libc enable builtin mini libc
1973   --disable-graphics            disable graphics
1974   --disable-graphics-android            disable graphics type android
1975   --enable-graphics-gd                enable graphics type gd
1976   --disable-graphics-gtk-drawing-area disable graphics type gtk_drawing_area
1977   --disable-graphics-null            disable graphics type null
1978   --disable-graphics-win32            disable graphics type win32
1979   --disable-graphics-qt-qpainter      disable graphics type qt-qpainter
1980   --disable-map-binfile            disable map binfile
1981   --disable-map-filter            disable map filter
1982   --disable-map-mg            disable map mg
1983   --disable-map-shapefile            disable map shapefile
1984   --disable-map-textfile            disable map textfile
1985   --disable-map-csv            disable map csv
1986   --disable-osd-core            disable osd core
1987   --disable-gui-gtk                   disable gui type gtk
1988   --disable-gui-internal              disable gui type internal
1989   --disable-gui-win32                 disable gui type win32
1990   --disable-gui-qml              disable gui type QML
1991   --enable-plugin-pedestrian          enable pedestrian plugin
1992   --disable-routing            disable routing
1993   --disable-speech-android            disable speech type android
1994   --disable-speech-cmdline            disable speech type cmdline
1995   --disable-speech-espeak            disable speech type espeak
1996   --disable-speech-speech-dispatcher  disable speech type speech-dispatcher
1997   --disable-vehicle-android             disable vehicle type android
1998   --disable-vehicle-demo              disable vehicle type demo
1999   --disable-vehicle-file              disable vehicle type file
2000   --disable-vehicle-gpsd              disable vehicle type gpsd
2001   --disable-vehicle-gypsy             disable vehicle type gypsy
2002   --disable-vehicle-maemo             disable vehicle type maemo
2003   --enable-vehicle-null             enable vehicle type null
2004   --disable-vehicle-wince             disable vehicle type wince
2005   --disable-vehicle-iphone              disable vehicle type iphone
2006   --enable-vehicle-webos              enable vehicle type webos
2007
2008 Optional Packages:
2009   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2010   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2011   --with-pic              try to use only PIC/non-PIC objects [default=use
2012                           both]
2013   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2014  --with-freetype-fonts   specify what fonts to use
2015  --with-dbus-service-dir   specify where the dbus service dir resides
2016   --with-svg2png-use-convert   use imagemagick's convert for png creation
2017   --with-svg2png-use-rsvg-convert   use librsvg's rsvg-convert for png creation
2018   --with-svg2png-use-inkscape   use inkscapes internal convert routines for png creation
2019   --with-svg2png-use-ksvgtopng4   use kde4's ksvgtopng4 for png creation
2020   --with-svg2png-use-ksvgtopng   use kde3's convert for png creation
2021   --with-xslts   enable processing of navit.xml with given xslt scripts
2022  --with-saxon   specify the saxon xslt processor
2023   --with-android-permissions   Set additional android permissions
2024   --with-android-project   Set android project
2025   --with-gnu-ld           assume the C compiler uses GNU ld default=no
2026   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
2027   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
2028   --with-included-gettext use the GNU gettext library included here
2029   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
2030   --without-libintl-prefix     don't search for libintl in includedir and libdir
2031
2032 Some influential environment variables:
2033   CC          C compiler command
2034   CFLAGS      C compiler flags
2035   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2036               nonstandard directory <lib dir>
2037   LIBS        libraries to pass to the linker, e.g. -l<library>
2038   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2039               you have headers in a nonstandard directory <include dir>
2040   CPP         C preprocessor
2041   OBJC        Objective C compiler command
2042   OBJCFLAGS   Objective C compiler flags
2043   CXX         C++ compiler command
2044   CXXFLAGS    C++ compiler flags
2045   PKG_CONFIG  path to pkg-config utility
2046   PKG_CONFIG_PATH
2047               directories to add to pkg-config's search path
2048   PKG_CONFIG_LIBDIR
2049               path overriding pkg-config's built-in search path
2050   HILDON_CFLAGS
2051               C compiler flags for HILDON, overriding pkg-config
2052   HILDON_LIBS linker flags for HILDON, overriding pkg-config
2053   GPSBT_CFLAGS
2054               C compiler flags for GPSBT, overriding pkg-config
2055   GPSBT_LIBS  linker flags for GPSBT, overriding pkg-config
2056   LIBOSSO_CFLAGS
2057               C compiler flags for LIBOSSO, overriding pkg-config
2058   LIBOSSO_LIBS
2059               linker flags for LIBOSSO, overriding pkg-config
2060   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
2061   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
2062   GMODULE_CFLAGS
2063               C compiler flags for GMODULE, overriding pkg-config
2064   GMODULE_LIBS
2065               linker flags for GMODULE, overriding pkg-config
2066   CXXCPP      C++ preprocessor
2067   GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config
2068   GTK2_LIBS   linker flags for GTK2, overriding pkg-config
2069   SDL_CFLAGS  C compiler flags for SDL, overriding pkg-config
2070   SDL_LIBS    linker flags for SDL, overriding pkg-config
2071   FREETYPE2_CFLAGS
2072               C compiler flags for FREETYPE2, overriding pkg-config
2073   FREETYPE2_LIBS
2074               linker flags for FREETYPE2, overriding pkg-config
2075   FONTCONFIG_CFLAGS
2076               C compiler flags for FONTCONFIG, overriding pkg-config
2077   FONTCONFIG_LIBS
2078               linker flags for FONTCONFIG, overriding pkg-config
2079   FRIBIDI2_CFLAGS
2080               C compiler flags for FRIBIDI2, overriding pkg-config
2081   FRIBIDI2_LIBS
2082               linker flags for FRIBIDI2, overriding pkg-config
2083   FRIBIDI_CFLAGS
2084               C compiler flags for FRIBIDI, overriding pkg-config
2085   FRIBIDI_LIBS
2086               linker flags for FRIBIDI, overriding pkg-config
2087   IMLIB2_CFLAGS
2088               C compiler flags for IMLIB2, overriding pkg-config
2089   IMLIB2_LIBS linker flags for IMLIB2, overriding pkg-config
2090   LIBGARMIN_CFLAGS
2091               C compiler flags for LIBGARMIN, overriding pkg-config
2092   LIBGARMIN_LIBS
2093               linker flags for LIBGARMIN, overriding pkg-config
2094   DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
2095   DBUS_LIBS   linker flags for DBUS, overriding pkg-config
2096   QT_GUI_CFLAGS
2097               C compiler flags for QT_GUI, overriding pkg-config
2098   QT_GUI_LIBS linker flags for QT_GUI, overriding pkg-config
2099   QT_SVG_CFLAGS
2100               C compiler flags for QT_SVG, overriding pkg-config
2101   QT_SVG_LIBS linker flags for QT_SVG, overriding pkg-config
2102   QT_XML_CFLAGS
2103               C compiler flags for QT_XML, overriding pkg-config
2104   QT_XML_LIBS linker flags for QT_XML, overriding pkg-config
2105   QT_DECLARATIVE_CFLAGS
2106               C compiler flags for QT_DECLARATIVE, overriding pkg-config
2107   QT_DECLARATIVE_LIBS
2108               linker flags for QT_DECLARATIVE, overriding pkg-config
2109   GPSD_CFLAGS C compiler flags for GPSD, overriding pkg-config
2110   GPSD_LIBS   linker flags for GPSD, overriding pkg-config
2111   LIBGPS19_CFLAGS
2112               C compiler flags for LIBGPS19, overriding pkg-config
2113   LIBGPS19_LIBS
2114               linker flags for LIBGPS19, overriding pkg-config
2115   GYPSY_CFLAGS
2116               C compiler flags for GYPSY, overriding pkg-config
2117   GYPSY_LIBS  linker flags for GYPSY, overriding pkg-config
2118   LIBLOCATION_CFLAGS
2119               C compiler flags for LIBLOCATION, overriding pkg-config
2120   LIBLOCATION_LIBS
2121               linker flags for LIBLOCATION, overriding pkg-config
2122
2123 Use these variables to override the choices made by `configure' or to help
2124 it to find libraries and programs with nonstandard names/locations.
2125
2126 Report bugs to the package provider.
2127 _ACEOF
2128 ac_status=$?
2129 fi
2130
2131 if test "$ac_init_help" = "recursive"; then
2132   # If there are subdirs, report their specific --help.
2133   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2134     test -d "$ac_dir" ||
2135       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2136       continue
2137     ac_builddir=.
2138
2139 case "$ac_dir" in
2140 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2141 *)
2142   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2143   # A ".." for each directory in $ac_dir_suffix.
2144   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2145   case $ac_top_builddir_sub in
2146   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2147   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2148   esac ;;
2149 esac
2150 ac_abs_top_builddir=$ac_pwd
2151 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2152 # for backward compatibility:
2153 ac_top_builddir=$ac_top_build_prefix
2154
2155 case $srcdir in
2156   .)  # We are building in place.
2157     ac_srcdir=.
2158     ac_top_srcdir=$ac_top_builddir_sub
2159     ac_abs_top_srcdir=$ac_pwd ;;
2160   [\\/]* | ?:[\\/]* )  # Absolute name.
2161     ac_srcdir=$srcdir$ac_dir_suffix;
2162     ac_top_srcdir=$srcdir
2163     ac_abs_top_srcdir=$srcdir ;;
2164   *) # Relative name.
2165     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2166     ac_top_srcdir=$ac_top_build_prefix$srcdir
2167     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2168 esac
2169 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2170
2171     cd "$ac_dir" || { ac_status=$?; continue; }
2172     # Check for guested configure.
2173     if test -f "$ac_srcdir/configure.gnu"; then
2174       echo &&
2175       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2176     elif test -f "$ac_srcdir/configure"; then
2177       echo &&
2178       $SHELL "$ac_srcdir/configure" --help=recursive
2179     else
2180       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2181     fi || ac_status=$?
2182     cd "$ac_pwd" || { ac_status=$?; break; }
2183   done
2184 fi
2185
2186 test -n "$ac_init_help" && exit $ac_status
2187 if $ac_init_version; then
2188   cat <<\_ACEOF
2189 navit configure 0.5.0
2190 generated by GNU Autoconf 2.68
2191
2192 Copyright (C) 2010 Free Software Foundation, Inc.
2193 This configure script is free software; the Free Software Foundation
2194 gives unlimited permission to copy, distribute and modify it.
2195 _ACEOF
2196   exit
2197 fi
2198
2199 ## ------------------------ ##
2200 ## Autoconf initialization. ##
2201 ## ------------------------ ##
2202
2203 # ac_fn_c_try_compile LINENO
2204 # --------------------------
2205 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2206 ac_fn_c_try_compile ()
2207 {
2208   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2209   rm -f conftest.$ac_objext
2210   if { { ac_try="$ac_compile"
2211 case "(($ac_try" in
2212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2213   *) ac_try_echo=$ac_try;;
2214 esac
2215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2216 $as_echo "$ac_try_echo"; } >&5
2217   (eval "$ac_compile") 2>conftest.err
2218   ac_status=$?
2219   if test -s conftest.err; then
2220     grep -v '^ *+' conftest.err >conftest.er1
2221     cat conftest.er1 >&5
2222     mv -f conftest.er1 conftest.err
2223   fi
2224   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2225   test $ac_status = 0; } && {
2226          test -z "$ac_c_werror_flag" ||
2227          test ! -s conftest.err
2228        } && test -s conftest.$ac_objext; then :
2229   ac_retval=0
2230 else
2231   $as_echo "$as_me: failed program was:" >&5
2232 sed 's/^/| /' conftest.$ac_ext >&5
2233
2234         ac_retval=1
2235 fi
2236   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2237   as_fn_set_status $ac_retval
2238
2239 } # ac_fn_c_try_compile
2240
2241 # ac_fn_c_try_cpp LINENO
2242 # ----------------------
2243 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2244 ac_fn_c_try_cpp ()
2245 {
2246   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2247   if { { ac_try="$ac_cpp conftest.$ac_ext"
2248 case "(($ac_try" in
2249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2250   *) ac_try_echo=$ac_try;;
2251 esac
2252 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2253 $as_echo "$ac_try_echo"; } >&5
2254   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2255   ac_status=$?
2256   if test -s conftest.err; then
2257     grep -v '^ *+' conftest.err >conftest.er1
2258     cat conftest.er1 >&5
2259     mv -f conftest.er1 conftest.err
2260   fi
2261   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2262   test $ac_status = 0; } > conftest.i && {
2263          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2264          test ! -s conftest.err
2265        }; then :
2266   ac_retval=0
2267 else
2268   $as_echo "$as_me: failed program was:" >&5
2269 sed 's/^/| /' conftest.$ac_ext >&5
2270
2271     ac_retval=1
2272 fi
2273   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2274   as_fn_set_status $ac_retval
2275
2276 } # ac_fn_c_try_cpp
2277
2278 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2279 # -------------------------------------------------------
2280 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2281 # the include files in INCLUDES and setting the cache variable VAR
2282 # accordingly.
2283 ac_fn_c_check_header_mongrel ()
2284 {
2285   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2286   if eval \${$3+:} false; then :
2287   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2288 $as_echo_n "checking for $2... " >&6; }
2289 if eval \${$3+:} false; then :
2290   $as_echo_n "(cached) " >&6
2291 fi
2292 eval ac_res=\$$3
2293                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2294 $as_echo "$ac_res" >&6; }
2295 else
2296   # Is the header compilable?
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2298 $as_echo_n "checking $2 usability... " >&6; }
2299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2300 /* end confdefs.h.  */
2301 $4
2302 #include <$2>
2303 _ACEOF
2304 if ac_fn_c_try_compile "$LINENO"; then :
2305   ac_header_compiler=yes
2306 else
2307   ac_header_compiler=no
2308 fi
2309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2311 $as_echo "$ac_header_compiler" >&6; }
2312
2313 # Is the header present?
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2315 $as_echo_n "checking $2 presence... " >&6; }
2316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h.  */
2318 #include <$2>
2319 _ACEOF
2320 if ac_fn_c_try_cpp "$LINENO"; then :
2321   ac_header_preproc=yes
2322 else
2323   ac_header_preproc=no
2324 fi
2325 rm -f conftest.err conftest.i conftest.$ac_ext
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2327 $as_echo "$ac_header_preproc" >&6; }
2328
2329 # So?  What about this header?
2330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2331   yes:no: )
2332     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2333 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2334     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2335 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2336     ;;
2337   no:yes:* )
2338     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2339 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2340     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2341 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2342     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2343 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2344     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2345 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2346     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2347 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2348     ;;
2349 esac
2350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2351 $as_echo_n "checking for $2... " >&6; }
2352 if eval \${$3+:} false; then :
2353   $as_echo_n "(cached) " >&6
2354 else
2355   eval "$3=\$ac_header_compiler"
2356 fi
2357 eval ac_res=\$$3
2358                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2359 $as_echo "$ac_res" >&6; }
2360 fi
2361   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2362
2363 } # ac_fn_c_check_header_mongrel
2364
2365 # ac_fn_c_try_run LINENO
2366 # ----------------------
2367 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2368 # that executables *can* be run.
2369 ac_fn_c_try_run ()
2370 {
2371   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2372   if { { ac_try="$ac_link"
2373 case "(($ac_try" in
2374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2375   *) ac_try_echo=$ac_try;;
2376 esac
2377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2378 $as_echo "$ac_try_echo"; } >&5
2379   (eval "$ac_link") 2>&5
2380   ac_status=$?
2381   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2382   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2383   { { case "(($ac_try" in
2384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2385   *) ac_try_echo=$ac_try;;
2386 esac
2387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2388 $as_echo "$ac_try_echo"; } >&5
2389   (eval "$ac_try") 2>&5
2390   ac_status=$?
2391   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2392   test $ac_status = 0; }; }; then :
2393   ac_retval=0
2394 else
2395   $as_echo "$as_me: program exited with status $ac_status" >&5
2396        $as_echo "$as_me: failed program was:" >&5
2397 sed 's/^/| /' conftest.$ac_ext >&5
2398
2399        ac_retval=$ac_status
2400 fi
2401   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2402   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2403   as_fn_set_status $ac_retval
2404
2405 } # ac_fn_c_try_run
2406
2407 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2408 # -------------------------------------------------------
2409 # Tests whether HEADER exists and can be compiled using the include files in
2410 # INCLUDES, setting the cache variable VAR accordingly.
2411 ac_fn_c_check_header_compile ()
2412 {
2413   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2414   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2415 $as_echo_n "checking for $2... " >&6; }
2416 if eval \${$3+:} false; then :
2417   $as_echo_n "(cached) " >&6
2418 else
2419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420 /* end confdefs.h.  */
2421 $4
2422 #include <$2>
2423 _ACEOF
2424 if ac_fn_c_try_compile "$LINENO"; then :
2425   eval "$3=yes"
2426 else
2427   eval "$3=no"
2428 fi
2429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2430 fi
2431 eval ac_res=\$$3
2432                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2433 $as_echo "$ac_res" >&6; }
2434   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2435
2436 } # ac_fn_c_check_header_compile
2437
2438 # ac_fn_objc_try_compile LINENO
2439 # -----------------------------
2440 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2441 ac_fn_objc_try_compile ()
2442 {
2443   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2444   rm -f conftest.$ac_objext
2445   if { { ac_try="$ac_compile"
2446 case "(($ac_try" in
2447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2448   *) ac_try_echo=$ac_try;;
2449 esac
2450 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2451 $as_echo "$ac_try_echo"; } >&5
2452   (eval "$ac_compile") 2>conftest.err
2453   ac_status=$?
2454   if test -s conftest.err; then
2455     grep -v '^ *+' conftest.err >conftest.er1
2456     cat conftest.er1 >&5
2457     mv -f conftest.er1 conftest.err
2458   fi
2459   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2460   test $ac_status = 0; } && {
2461          test -z "$ac_objc_werror_flag" ||
2462          test ! -s conftest.err
2463        } && test -s conftest.$ac_objext; then :
2464   ac_retval=0
2465 else
2466   $as_echo "$as_me: failed program was:" >&5
2467 sed 's/^/| /' conftest.$ac_ext >&5
2468
2469         ac_retval=1
2470 fi
2471   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2472   as_fn_set_status $ac_retval
2473
2474 } # ac_fn_objc_try_compile
2475
2476 # ac_fn_cxx_try_compile LINENO
2477 # ----------------------------
2478 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2479 ac_fn_cxx_try_compile ()
2480 {
2481   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2482   rm -f conftest.$ac_objext
2483   if { { ac_try="$ac_compile"
2484 case "(($ac_try" in
2485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486   *) ac_try_echo=$ac_try;;
2487 esac
2488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2489 $as_echo "$ac_try_echo"; } >&5
2490   (eval "$ac_compile") 2>conftest.err
2491   ac_status=$?
2492   if test -s conftest.err; then
2493     grep -v '^ *+' conftest.err >conftest.er1
2494     cat conftest.er1 >&5
2495     mv -f conftest.er1 conftest.err
2496   fi
2497   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2498   test $ac_status = 0; } && {
2499          test -z "$ac_cxx_werror_flag" ||
2500          test ! -s conftest.err
2501        } && test -s conftest.$ac_objext; then :
2502   ac_retval=0
2503 else
2504   $as_echo "$as_me: failed program was:" >&5
2505 sed 's/^/| /' conftest.$ac_ext >&5
2506
2507         ac_retval=1
2508 fi
2509   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2510   as_fn_set_status $ac_retval
2511
2512 } # ac_fn_cxx_try_compile
2513
2514 # ac_fn_c_try_link LINENO
2515 # -----------------------
2516 # Try to link conftest.$ac_ext, and return whether this succeeded.
2517 ac_fn_c_try_link ()
2518 {
2519   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2520   rm -f conftest.$ac_objext conftest$ac_exeext
2521   if { { ac_try="$ac_link"
2522 case "(($ac_try" in
2523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524   *) ac_try_echo=$ac_try;;
2525 esac
2526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2527 $as_echo "$ac_try_echo"; } >&5
2528   (eval "$ac_link") 2>conftest.err
2529   ac_status=$?
2530   if test -s conftest.err; then
2531     grep -v '^ *+' conftest.err >conftest.er1
2532     cat conftest.er1 >&5
2533     mv -f conftest.er1 conftest.err
2534   fi
2535   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2536   test $ac_status = 0; } && {
2537          test -z "$ac_c_werror_flag" ||
2538          test ! -s conftest.err
2539        } && test -s conftest$ac_exeext && {
2540          test "$cross_compiling" = yes ||
2541          $as_test_x conftest$ac_exeext
2542        }; then :
2543   ac_retval=0
2544 else
2545   $as_echo "$as_me: failed program was:" >&5
2546 sed 's/^/| /' conftest.$ac_ext >&5
2547
2548         ac_retval=1
2549 fi
2550   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2551   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2552   # interfere with the next link command; also delete a directory that is
2553   # left behind by Apple's compiler.  We do this before executing the actions.
2554   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2555   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2556   as_fn_set_status $ac_retval
2557
2558 } # ac_fn_c_try_link
2559
2560 # ac_fn_c_check_func LINENO FUNC VAR
2561 # ----------------------------------
2562 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2563 ac_fn_c_check_func ()
2564 {
2565   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2566   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2567 $as_echo_n "checking for $2... " >&6; }
2568 if eval \${$3+:} false; then :
2569   $as_echo_n "(cached) " >&6
2570 else
2571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2572 /* end confdefs.h.  */
2573 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2574    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2575 #define $2 innocuous_$2
2576
2577 /* System header to define __stub macros and hopefully few prototypes,
2578     which can conflict with char $2 (); below.
2579     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2580     <limits.h> exists even on freestanding compilers.  */
2581
2582 #ifdef __STDC__
2583 # include <limits.h>
2584 #else
2585 # include <assert.h>
2586 #endif
2587
2588 #undef $2
2589
2590 /* Override any GCC internal prototype to avoid an error.
2591    Use char because int might match the return type of a GCC
2592    builtin and then its argument prototype would still apply.  */
2593 #ifdef __cplusplus
2594 extern "C"
2595 #endif
2596 char $2 ();
2597 /* The GNU C library defines this for functions which it implements
2598     to always fail with ENOSYS.  Some functions are actually named
2599     something starting with __ and the normal name is an alias.  */
2600 #if defined __stub_$2 || defined __stub___$2
2601 choke me
2602 #endif
2603
2604 int
2605 main ()
2606 {
2607 return $2 ();
2608   ;
2609   return 0;
2610 }
2611 _ACEOF
2612 if ac_fn_c_try_link "$LINENO"; then :
2613   eval "$3=yes"
2614 else
2615   eval "$3=no"
2616 fi
2617 rm -f core conftest.err conftest.$ac_objext \
2618     conftest$ac_exeext conftest.$ac_ext
2619 fi
2620 eval ac_res=\$$3
2621                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2622 $as_echo "$ac_res" >&6; }
2623   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2624
2625 } # ac_fn_c_check_func
2626
2627 # ac_fn_cxx_try_cpp LINENO
2628 # ------------------------
2629 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2630 ac_fn_cxx_try_cpp ()
2631 {
2632   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2633   if { { ac_try="$ac_cpp conftest.$ac_ext"
2634 case "(($ac_try" in
2635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2636   *) ac_try_echo=$ac_try;;
2637 esac
2638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2639 $as_echo "$ac_try_echo"; } >&5
2640   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2641   ac_status=$?
2642   if test -s conftest.err; then
2643     grep -v '^ *+' conftest.err >conftest.er1
2644     cat conftest.er1 >&5
2645     mv -f conftest.er1 conftest.err
2646   fi
2647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2648   test $ac_status = 0; } > conftest.i && {
2649          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2650          test ! -s conftest.err
2651        }; then :
2652   ac_retval=0
2653 else
2654   $as_echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.$ac_ext >&5
2656
2657     ac_retval=1
2658 fi
2659   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2660   as_fn_set_status $ac_retval
2661
2662 } # ac_fn_cxx_try_cpp
2663
2664 # ac_fn_cxx_try_link LINENO
2665 # -------------------------
2666 # Try to link conftest.$ac_ext, and return whether this succeeded.
2667 ac_fn_cxx_try_link ()
2668 {
2669   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2670   rm -f conftest.$ac_objext conftest$ac_exeext
2671   if { { ac_try="$ac_link"
2672 case "(($ac_try" in
2673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674   *) ac_try_echo=$ac_try;;
2675 esac
2676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2677 $as_echo "$ac_try_echo"; } >&5
2678   (eval "$ac_link") 2>conftest.err
2679   ac_status=$?
2680   if test -s conftest.err; then
2681     grep -v '^ *+' conftest.err >conftest.er1
2682     cat conftest.er1 >&5
2683     mv -f conftest.er1 conftest.err
2684   fi
2685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2686   test $ac_status = 0; } && {
2687          test -z "$ac_cxx_werror_flag" ||
2688          test ! -s conftest.err
2689        } && test -s conftest$ac_exeext && {
2690          test "$cross_compiling" = yes ||
2691          $as_test_x conftest$ac_exeext
2692        }; then :
2693   ac_retval=0
2694 else
2695   $as_echo "$as_me: failed program was:" >&5
2696 sed 's/^/| /' conftest.$ac_ext >&5
2697
2698         ac_retval=1
2699 fi
2700   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2701   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2702   # interfere with the next link command; also delete a directory that is
2703   # left behind by Apple's compiler.  We do this before executing the actions.
2704   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2705   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2706   as_fn_set_status $ac_retval
2707
2708 } # ac_fn_cxx_try_link
2709
2710 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2711 # -------------------------------------------
2712 # Tests whether TYPE exists after having included INCLUDES, setting cache
2713 # variable VAR accordingly.
2714 ac_fn_c_check_type ()
2715 {
2716   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2718 $as_echo_n "checking for $2... " >&6; }
2719 if eval \${$3+:} false; then :
2720   $as_echo_n "(cached) " >&6
2721 else
2722   eval "$3=no"
2723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2724 /* end confdefs.h.  */
2725 $4
2726 int
2727 main ()
2728 {
2729 if (sizeof ($2))
2730          return 0;
2731   ;
2732   return 0;
2733 }
2734 _ACEOF
2735 if ac_fn_c_try_compile "$LINENO"; then :
2736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2737 /* end confdefs.h.  */
2738 $4
2739 int
2740 main ()
2741 {
2742 if (sizeof (($2)))
2743             return 0;
2744   ;
2745   return 0;
2746 }
2747 _ACEOF
2748 if ac_fn_c_try_compile "$LINENO"; then :
2749
2750 else
2751   eval "$3=yes"
2752 fi
2753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2754 fi
2755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2756 fi
2757 eval ac_res=\$$3
2758                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2759 $as_echo "$ac_res" >&6; }
2760   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2761
2762 } # ac_fn_c_check_type
2763
2764 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2765 # --------------------------------------------
2766 # Tries to find the compile-time value of EXPR in a program that includes
2767 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2768 # computed
2769 ac_fn_c_compute_int ()
2770 {
2771   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2772   if test "$cross_compiling" = yes; then
2773     # Depending upon the size, compute the lo and hi bounds.
2774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2775 /* end confdefs.h.  */
2776 $4
2777 int
2778 main ()
2779 {
2780 static int test_array [1 - 2 * !(($2) >= 0)];
2781 test_array [0] = 0
2782
2783   ;
2784   return 0;
2785 }
2786 _ACEOF
2787 if ac_fn_c_try_compile "$LINENO"; then :
2788   ac_lo=0 ac_mid=0
2789   while :; do
2790     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2791 /* end confdefs.h.  */
2792 $4
2793 int
2794 main ()
2795 {
2796 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2797 test_array [0] = 0
2798
2799   ;
2800   return 0;
2801 }
2802 _ACEOF
2803 if ac_fn_c_try_compile "$LINENO"; then :
2804   ac_hi=$ac_mid; break
2805 else
2806   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2807                         if test $ac_lo -le $ac_mid; then
2808                           ac_lo= ac_hi=
2809                           break
2810                         fi
2811                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2812 fi
2813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2814   done
2815 else
2816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2817 /* end confdefs.h.  */
2818 $4
2819 int
2820 main ()
2821 {
2822 static int test_array [1 - 2 * !(($2) < 0)];
2823 test_array [0] = 0
2824
2825   ;
2826   return 0;
2827 }
2828 _ACEOF
2829 if ac_fn_c_try_compile "$LINENO"; then :
2830   ac_hi=-1 ac_mid=-1
2831   while :; do
2832     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2833 /* end confdefs.h.  */
2834 $4
2835 int
2836 main ()
2837 {
2838 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2839 test_array [0] = 0
2840
2841   ;
2842   return 0;
2843 }
2844 _ACEOF
2845 if ac_fn_c_try_compile "$LINENO"; then :
2846   ac_lo=$ac_mid; break
2847 else
2848   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2849                         if test $ac_mid -le $ac_hi; then
2850                           ac_lo= ac_hi=
2851                           break
2852                         fi
2853                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2854 fi
2855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2856   done
2857 else
2858   ac_lo= ac_hi=
2859 fi
2860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2861 fi
2862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2863 # Binary search between lo and hi bounds.
2864 while test "x$ac_lo" != "x$ac_hi"; do
2865   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2867 /* end confdefs.h.  */
2868 $4
2869 int
2870 main ()
2871 {
2872 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2873 test_array [0] = 0
2874
2875   ;
2876   return 0;
2877 }
2878 _ACEOF
2879 if ac_fn_c_try_compile "$LINENO"; then :
2880   ac_hi=$ac_mid
2881 else
2882   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2883 fi
2884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2885 done
2886 case $ac_lo in #((
2887 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2888 '') ac_retval=1 ;;
2889 esac
2890   else
2891     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2892 /* end confdefs.h.  */
2893 $4
2894 static long int longval () { return $2; }
2895 static unsigned long int ulongval () { return $2; }
2896 #include <stdio.h>
2897 #include <stdlib.h>
2898 int
2899 main ()
2900 {
2901
2902   FILE *f = fopen ("conftest.val", "w");
2903   if (! f)
2904     return 1;
2905   if (($2) < 0)
2906     {
2907       long int i = longval ();
2908       if (i != ($2))
2909         return 1;
2910       fprintf (f, "%ld", i);
2911     }
2912   else
2913     {
2914       unsigned long int i = ulongval ();
2915       if (i != ($2))
2916         return 1;
2917       fprintf (f, "%lu", i);
2918     }
2919   /* Do not output a trailing newline, as this causes \r\n confusion
2920      on some platforms.  */
2921   return ferror (f) || fclose (f) != 0;
2922
2923   ;
2924   return 0;
2925 }
2926 _ACEOF
2927 if ac_fn_c_try_run "$LINENO"; then :
2928   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2929 else
2930   ac_retval=1
2931 fi
2932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2933   conftest.$ac_objext conftest.beam conftest.$ac_ext
2934 rm -f conftest.val
2935
2936   fi
2937   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2938   as_fn_set_status $ac_retval
2939
2940 } # ac_fn_c_compute_int
2941 cat >config.log <<_ACEOF
2942 This file contains any messages produced by compilers while
2943 running configure, to aid debugging if configure makes a mistake.
2944
2945 It was created by navit $as_me 0.5.0, which was
2946 generated by GNU Autoconf 2.68.  Invocation command line was
2947
2948   $ $0 $@
2949
2950 _ACEOF
2951 exec 5>>config.log
2952 {
2953 cat <<_ASUNAME
2954 ## --------- ##
2955 ## Platform. ##
2956 ## --------- ##
2957
2958 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2959 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2960 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2961 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2962 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2963
2964 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2965 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2966
2967 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2968 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2969 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2970 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2971 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2972 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2973 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2974
2975 _ASUNAME
2976
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     $as_echo "PATH: $as_dir"
2983   done
2984 IFS=$as_save_IFS
2985
2986 } >&5
2987
2988 cat >&5 <<_ACEOF
2989
2990
2991 ## ----------- ##
2992 ## Core tests. ##
2993 ## ----------- ##
2994
2995 _ACEOF
2996
2997
2998 # Keep a trace of the command line.
2999 # Strip out --no-create and --no-recursion so they do not pile up.
3000 # Strip out --silent because we don't want to record it for future runs.
3001 # Also quote any args containing shell meta-characters.
3002 # Make two passes to allow for proper duplicate-argument suppression.
3003 ac_configure_args=
3004 ac_configure_args0=
3005 ac_configure_args1=
3006 ac_must_keep_next=false
3007 for ac_pass in 1 2
3008 do
3009   for ac_arg
3010   do
3011     case $ac_arg in
3012     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3013     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3014     | -silent | --silent | --silen | --sile | --sil)
3015       continue ;;
3016     *\'*)
3017       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3018     esac
3019     case $ac_pass in
3020     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3021     2)
3022       as_fn_append ac_configure_args1 " '$ac_arg'"
3023       if test $ac_must_keep_next = true; then
3024         ac_must_keep_next=false # Got value, back to normal.
3025       else
3026         case $ac_arg in
3027           *=* | --config-cache | -C | -disable-* | --disable-* \
3028           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3029           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3030           | -with-* | --with-* | -without-* | --without-* | --x)
3031             case "$ac_configure_args0 " in
3032               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3033             esac
3034             ;;
3035           -* ) ac_must_keep_next=true ;;
3036         esac
3037       fi
3038       as_fn_append ac_configure_args " '$ac_arg'"
3039       ;;
3040     esac
3041   done
3042 done
3043 { ac_configure_args0=; unset ac_configure_args0;}
3044 { ac_configure_args1=; unset ac_configure_args1;}
3045
3046 # When interrupted or exit'd, cleanup temporary files, and complete
3047 # config.log.  We remove comments because anyway the quotes in there
3048 # would cause problems or look ugly.
3049 # WARNING: Use '\'' to represent an apostrophe within the trap.
3050 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3051 trap 'exit_status=$?
3052   # Save into config.log some information that might help in debugging.
3053   {
3054     echo
3055
3056     $as_echo "## ---------------- ##
3057 ## Cache variables. ##
3058 ## ---------------- ##"
3059     echo
3060     # The following way of writing the cache mishandles newlines in values,
3061 (
3062   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3063     eval ac_val=\$$ac_var
3064     case $ac_val in #(
3065     *${as_nl}*)
3066       case $ac_var in #(
3067       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3068 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3069       esac
3070       case $ac_var in #(
3071       _ | IFS | as_nl) ;; #(
3072       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3073       *) { eval $ac_var=; unset $ac_var;} ;;
3074       esac ;;
3075     esac
3076   done
3077   (set) 2>&1 |
3078     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3079     *${as_nl}ac_space=\ *)
3080       sed -n \
3081         "s/'\''/'\''\\\\'\'''\''/g;
3082           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3083       ;; #(
3084     *)
3085       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3086       ;;
3087     esac |
3088     sort
3089 )
3090     echo
3091
3092     $as_echo "## ----------------- ##
3093 ## Output variables. ##
3094 ## ----------------- ##"
3095     echo
3096     for ac_var in $ac_subst_vars
3097     do
3098       eval ac_val=\$$ac_var
3099       case $ac_val in
3100       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3101       esac
3102       $as_echo "$ac_var='\''$ac_val'\''"
3103     done | sort
3104     echo
3105
3106     if test -n "$ac_subst_files"; then
3107       $as_echo "## ------------------- ##
3108 ## File substitutions. ##
3109 ## ------------------- ##"
3110       echo
3111       for ac_var in $ac_subst_files
3112       do
3113         eval ac_val=\$$ac_var
3114         case $ac_val in
3115         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3116         esac
3117         $as_echo "$ac_var='\''$ac_val'\''"
3118       done | sort
3119       echo
3120     fi
3121
3122     if test -s confdefs.h; then
3123       $as_echo "## ----------- ##
3124 ## confdefs.h. ##
3125 ## ----------- ##"
3126       echo
3127       cat confdefs.h
3128       echo
3129     fi
3130     test "$ac_signal" != 0 &&
3131       $as_echo "$as_me: caught signal $ac_signal"
3132     $as_echo "$as_me: exit $exit_status"
3133   } >&5
3134   rm -f core *.core core.conftest.* &&
3135     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3136     exit $exit_status
3137 ' 0
3138 for ac_signal in 1 2 13 15; do
3139   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3140 done
3141 ac_signal=0
3142
3143 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3144 rm -f -r conftest* confdefs.h
3145
3146 $as_echo "/* confdefs.h */" > confdefs.h
3147
3148 # Predefined preprocessor variables.
3149
3150 cat >>confdefs.h <<_ACEOF
3151 #define PACKAGE_NAME "$PACKAGE_NAME"
3152 _ACEOF
3153
3154 cat >>confdefs.h <<_ACEOF
3155 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3156 _ACEOF
3157
3158 cat >>confdefs.h <<_ACEOF
3159 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3160 _ACEOF
3161
3162 cat >>confdefs.h <<_ACEOF
3163 #define PACKAGE_STRING "$PACKAGE_STRING"
3164 _ACEOF
3165
3166 cat >>confdefs.h <<_ACEOF
3167 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3168 _ACEOF
3169
3170 cat >>confdefs.h <<_ACEOF
3171 #define PACKAGE_URL "$PACKAGE_URL"
3172 _ACEOF
3173
3174
3175 # Let the site file select an alternate cache file if it wants to.
3176 # Prefer an explicitly selected file to automatically selected ones.
3177 ac_site_file1=NONE
3178 ac_site_file2=NONE
3179 if test -n "$CONFIG_SITE"; then
3180   # We do not want a PATH search for config.site.
3181   case $CONFIG_SITE in #((
3182     -*)  ac_site_file1=./$CONFIG_SITE;;
3183     */*) ac_site_file1=$CONFIG_SITE;;
3184     *)   ac_site_file1=./$CONFIG_SITE;;
3185   esac
3186 elif test "x$prefix" != xNONE; then
3187   ac_site_file1=$prefix/share/config.site
3188   ac_site_file2=$prefix/etc/config.site
3189 else
3190   ac_site_file1=$ac_default_prefix/share/config.site
3191   ac_site_file2=$ac_default_prefix/etc/config.site
3192 fi
3193 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3194 do
3195   test "x$ac_site_file" = xNONE && continue
3196   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3197     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3198 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3199     sed 's/^/| /' "$ac_site_file" >&5
3200     . "$ac_site_file" \
3201       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3203 as_fn_error $? "failed to load site script $ac_site_file
3204 See \`config.log' for more details" "$LINENO" 5; }
3205   fi
3206 done
3207
3208 if test -r "$cache_file"; then
3209   # Some versions of bash will fail to source /dev/null (special files
3210   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3211   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3212     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3213 $as_echo "$as_me: loading cache $cache_file" >&6;}
3214     case $cache_file in
3215       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3216       *)                      . "./$cache_file";;
3217     esac
3218   fi
3219 else
3220   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3221 $as_echo "$as_me: creating cache $cache_file" >&6;}
3222   >$cache_file
3223 fi
3224
3225 as_fn_append ac_header_list " stdlib.h"
3226 as_fn_append ac_header_list " unistd.h"
3227 as_fn_append ac_header_list " sys/param.h"
3228 # Check that the precious variables saved in the cache have kept the same
3229 # value.
3230 ac_cache_corrupted=false
3231 for ac_var in $ac_precious_vars; do
3232   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3233   eval ac_new_set=\$ac_env_${ac_var}_set
3234   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3235   eval ac_new_val=\$ac_env_${ac_var}_value
3236   case $ac_old_set,$ac_new_set in
3237     set,)
3238       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3239 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3240       ac_cache_corrupted=: ;;
3241     ,set)
3242       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3243 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3244       ac_cache_corrupted=: ;;
3245     ,);;
3246     *)
3247       if test "x$ac_old_val" != "x$ac_new_val"; then
3248         # differences in whitespace do not lead to failure.
3249         ac_old_val_w=`echo x $ac_old_val`
3250         ac_new_val_w=`echo x $ac_new_val`
3251         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3252           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3253 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3254           ac_cache_corrupted=:
3255         else
3256           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3257 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3258           eval $ac_var=\$ac_old_val
3259         fi
3260         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3261 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3262         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3263 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3264       fi;;
3265   esac
3266   # Pass precious variables to config.status.
3267   if test "$ac_new_set" = set; then
3268     case $ac_new_val in
3269     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3270     *) ac_arg=$ac_var=$ac_new_val ;;
3271     esac
3272     case " $ac_configure_args " in
3273       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3274       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3275     esac
3276   fi
3277 done
3278 if $ac_cache_corrupted; then
3279   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3281   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3282 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3283   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3284 fi
3285 ## -------------------- ##
3286 ## Main body of script. ##
3287 ## -------------------- ##
3288
3289 ac_ext=c
3290 ac_cpp='$CPP $CPPFLAGS'
3291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3294
3295
3296
3297 SOURCE_MODE=svn
3298
3299 am__api_version='1.11'
3300
3301 ac_aux_dir=
3302 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3303   if test -f "$ac_dir/install-sh"; then
3304     ac_aux_dir=$ac_dir
3305     ac_install_sh="$ac_aux_dir/install-sh -c"
3306     break
3307   elif test -f "$ac_dir/install.sh"; then
3308     ac_aux_dir=$ac_dir
3309     ac_install_sh="$ac_aux_dir/install.sh -c"
3310     break
3311   elif test -f "$ac_dir/shtool"; then
3312     ac_aux_dir=$ac_dir
3313     ac_install_sh="$ac_aux_dir/shtool install -c"
3314     break
3315   fi
3316 done
3317 if test -z "$ac_aux_dir"; then
3318   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3319 fi
3320
3321 # These three variables are undocumented and unsupported,
3322 # and are intended to be withdrawn in a future Autoconf release.
3323 # They can cause serious problems if a builder's source tree is in a directory
3324 # whose full name contains unusual characters.
3325 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3326 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3327 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3328
3329
3330 # Find a good install program.  We prefer a C program (faster),
3331 # so one script is as good as another.  But avoid the broken or
3332 # incompatible versions:
3333 # SysV /etc/install, /usr/sbin/install
3334 # SunOS /usr/etc/install
3335 # IRIX /sbin/install
3336 # AIX /bin/install
3337 # AmigaOS /C/install, which installs bootblocks on floppy discs
3338 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3339 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3340 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3341 # OS/2's system install, which has a completely different semantic
3342 # ./install, which can be erroneously created by make from ./install.sh.
3343 # Reject install programs that cannot install multiple files.
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3345 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3346 if test -z "$INSTALL"; then
3347 if ${ac_cv_path_install+:} false; then :
3348   $as_echo_n "(cached) " >&6
3349 else
3350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 for as_dir in $PATH
3352 do
3353   IFS=$as_save_IFS
3354   test -z "$as_dir" && as_dir=.
3355     # Account for people who put trailing slashes in PATH elements.
3356 case $as_dir/ in #((
3357   ./ | .// | /[cC]/* | \
3358   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3359   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3360   /usr/ucb/* ) ;;
3361   *)
3362     # OSF1 and SCO ODT 3.0 have their own names for install.
3363     # Don't use installbsd from OSF since it installs stuff as root
3364     # by default.
3365     for ac_prog in ginstall scoinst install; do
3366       for ac_exec_ext in '' $ac_executable_extensions; do
3367         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3368           if test $ac_prog = install &&
3369             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3370             # AIX install.  It has an incompatible calling convention.
3371             :
3372           elif test $ac_prog = install &&
3373             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3374             # program-specific install script used by HP pwplus--don't use.
3375             :
3376           else
3377             rm -rf conftest.one conftest.two conftest.dir
3378             echo one > conftest.one
3379             echo two > conftest.two
3380             mkdir conftest.dir
3381             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3382               test -s conftest.one && test -s conftest.two &&
3383               test -s conftest.dir/conftest.one &&
3384               test -s conftest.dir/conftest.two
3385             then
3386               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3387               break 3
3388             fi
3389           fi
3390         fi
3391       done
3392     done
3393     ;;
3394 esac
3395
3396   done
3397 IFS=$as_save_IFS
3398
3399 rm -rf conftest.one conftest.two conftest.dir
3400
3401 fi
3402   if test "${ac_cv_path_install+set}" = set; then
3403     INSTALL=$ac_cv_path_install
3404   else
3405     # As a last resort, use the slow shell script.  Don't cache a
3406     # value for INSTALL within a source directory, because that will
3407     # break other packages using the cache if that directory is
3408     # removed, or if the value is a relative name.
3409     INSTALL=$ac_install_sh
3410   fi
3411 fi
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3413 $as_echo "$INSTALL" >&6; }
3414
3415 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3416 # It thinks the first close brace ends the variable substitution.
3417 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3418
3419 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3420
3421 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3422
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3424 $as_echo_n "checking whether build environment is sane... " >&6; }
3425 # Just in case
3426 sleep 1
3427 echo timestamp > conftest.file
3428 # Reject unsafe characters in $srcdir or the absolute working directory
3429 # name.  Accept space and tab only in the latter.
3430 am_lf='
3431 '
3432 case `pwd` in
3433   *[\\\"\#\$\&\'\`$am_lf]*)
3434     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3435 esac
3436 case $srcdir in
3437   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3438     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3439 esac
3440
3441 # Do `set' in a subshell so we don't clobber the current shell's
3442 # arguments.  Must try -L first in case configure is actually a
3443 # symlink; some systems play weird games with the mod time of symlinks
3444 # (eg FreeBSD returns the mod time of the symlink's containing
3445 # directory).
3446 if (
3447    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3448    if test "$*" = "X"; then
3449       # -L didn't work.
3450       set X `ls -t "$srcdir/configure" conftest.file`
3451    fi
3452    rm -f conftest.file
3453    if test "$*" != "X $srcdir/configure conftest.file" \
3454       && test "$*" != "X conftest.file $srcdir/configure"; then
3455
3456       # If neither matched, then we have a broken ls.  This can happen
3457       # if, for instance, CONFIG_SHELL is bash and it inherits a
3458       # broken ls alias from the environment.  This has actually
3459       # happened.  Such a system could not be considered "sane".
3460       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3461 alias in your environment" "$LINENO" 5
3462    fi
3463
3464    test "$2" = conftest.file
3465    )
3466 then
3467    # Ok.
3468    :
3469 else
3470    as_fn_error $? "newly created file is older than distributed files!
3471 Check your system clock" "$LINENO" 5
3472 fi
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3474 $as_echo "yes" >&6; }
3475 test "$program_prefix" != NONE &&
3476   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3477 # Use a double $ so make ignores it.
3478 test "$program_suffix" != NONE &&
3479   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3480 # Double any \ or $.
3481 # By default was `s,x,x', remove it if useless.
3482 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3483 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3484
3485 # expand $ac_aux_dir to an absolute path
3486 am_aux_dir=`cd $ac_aux_dir && pwd`
3487
3488 if test x"${MISSING+set}" != xset; then
3489   case $am_aux_dir in
3490   *\ * | *\     *)
3491     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3492   *)
3493     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3494   esac
3495 fi
3496 # Use eval to expand $SHELL
3497 if eval "$MISSING --run true"; then
3498   am_missing_run="$MISSING --run "
3499 else
3500   am_missing_run=
3501   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3502 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3503 fi
3504
3505 if test x"${install_sh}" != xset; then
3506   case $am_aux_dir in
3507   *\ * | *\     *)
3508     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3509   *)
3510     install_sh="\${SHELL} $am_aux_dir/install-sh"
3511   esac
3512 fi
3513
3514 # Installed binaries are usually stripped using `strip' when the user
3515 # run `make install-strip'.  However `strip' might not be the right
3516 # tool to use in cross-compilation environments, therefore Automake
3517 # will honor the `STRIP' environment variable to overrule this program.
3518 if test "$cross_compiling" != no; then
3519   if test -n "$ac_tool_prefix"; then
3520   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3521 set dummy ${ac_tool_prefix}strip; ac_word=$2
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3523 $as_echo_n "checking for $ac_word... " >&6; }
3524 if ${ac_cv_prog_STRIP+:} false; then :
3525   $as_echo_n "(cached) " >&6
3526 else
3527   if test -n "$STRIP"; then
3528   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3529 else
3530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531 for as_dir in $PATH
3532 do
3533   IFS=$as_save_IFS
3534   test -z "$as_dir" && as_dir=.
3535     for ac_exec_ext in '' $ac_executable_extensions; do
3536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3537     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3539     break 2
3540   fi
3541 done
3542   done
3543 IFS=$as_save_IFS
3544
3545 fi
3546 fi
3547 STRIP=$ac_cv_prog_STRIP
3548 if test -n "$STRIP"; then
3549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3550 $as_echo "$STRIP" >&6; }
3551 else
3552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3553 $as_echo "no" >&6; }
3554 fi
3555
3556
3557 fi
3558 if test -z "$ac_cv_prog_STRIP"; then
3559   ac_ct_STRIP=$STRIP
3560   # Extract the first word of "strip", so it can be a program name with args.
3561 set dummy strip; ac_word=$2
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3563 $as_echo_n "checking for $ac_word... " >&6; }
3564 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3565   $as_echo_n "(cached) " >&6
3566 else
3567   if test -n "$ac_ct_STRIP"; then
3568   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3569 else
3570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3571 for as_dir in $PATH
3572 do
3573   IFS=$as_save_IFS
3574   test -z "$as_dir" && as_dir=.
3575     for ac_exec_ext in '' $ac_executable_extensions; do
3576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3577     ac_cv_prog_ac_ct_STRIP="strip"
3578     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3579     break 2
3580   fi
3581 done
3582   done
3583 IFS=$as_save_IFS
3584
3585 fi
3586 fi
3587 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3588 if test -n "$ac_ct_STRIP"; then
3589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3590 $as_echo "$ac_ct_STRIP" >&6; }
3591 else
3592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3593 $as_echo "no" >&6; }
3594 fi
3595
3596   if test "x$ac_ct_STRIP" = x; then
3597     STRIP=":"
3598   else
3599     case $cross_compiling:$ac_tool_warned in
3600 yes:)
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3603 ac_tool_warned=yes ;;
3604 esac
3605     STRIP=$ac_ct_STRIP
3606   fi
3607 else
3608   STRIP="$ac_cv_prog_STRIP"
3609 fi
3610
3611 fi
3612 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3613
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3615 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3616 if test -z "$MKDIR_P"; then
3617   if ${ac_cv_path_mkdir+:} false; then :
3618   $as_echo_n "(cached) " >&6
3619 else
3620   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3621 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3622 do
3623   IFS=$as_save_IFS
3624   test -z "$as_dir" && as_dir=.
3625     for ac_prog in mkdir gmkdir; do
3626          for ac_exec_ext in '' $ac_executable_extensions; do
3627            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3628            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3629              'mkdir (GNU coreutils) '* | \
3630              'mkdir (coreutils) '* | \
3631              'mkdir (fileutils) '4.1*)
3632                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3633                break 3;;
3634            esac
3635          done
3636        done
3637   done
3638 IFS=$as_save_IFS
3639
3640 fi
3641
3642   test -d ./--version && rmdir ./--version
3643   if test "${ac_cv_path_mkdir+set}" = set; then
3644     MKDIR_P="$ac_cv_path_mkdir -p"
3645   else
3646     # As a last resort, use the slow shell script.  Don't cache a
3647     # value for MKDIR_P within a source directory, because that will
3648     # break other packages using the cache if that directory is
3649     # removed, or if the value is a relative name.
3650     MKDIR_P="$ac_install_sh -d"
3651   fi
3652 fi
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3654 $as_echo "$MKDIR_P" >&6; }
3655
3656 mkdir_p="$MKDIR_P"
3657 case $mkdir_p in
3658   [\\/$]* | ?:[\\/]*) ;;
3659   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3660 esac
3661
3662 for ac_prog in gawk mawk nawk awk
3663 do
3664   # Extract the first word of "$ac_prog", so it can be a program name with args.
3665 set dummy $ac_prog; ac_word=$2
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3667 $as_echo_n "checking for $ac_word... " >&6; }
3668 if ${ac_cv_prog_AWK+:} false; then :
3669   $as_echo_n "(cached) " >&6
3670 else
3671   if test -n "$AWK"; then
3672   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3673 else
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675 for as_dir in $PATH
3676 do
3677   IFS=$as_save_IFS
3678   test -z "$as_dir" && as_dir=.
3679     for ac_exec_ext in '' $ac_executable_extensions; do
3680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3681     ac_cv_prog_AWK="$ac_prog"
3682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3683     break 2
3684   fi
3685 done
3686   done
3687 IFS=$as_save_IFS
3688
3689 fi
3690 fi
3691 AWK=$ac_cv_prog_AWK
3692 if test -n "$AWK"; then
3693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3694 $as_echo "$AWK" >&6; }
3695 else
3696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3697 $as_echo "no" >&6; }
3698 fi
3699
3700
3701   test -n "$AWK" && break
3702 done
3703
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3705 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3706 set x ${MAKE-make}
3707 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3708 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3709   $as_echo_n "(cached) " >&6
3710 else
3711   cat >conftest.make <<\_ACEOF
3712 SHELL = /bin/sh
3713 all:
3714         @echo '@@@%%%=$(MAKE)=@@@%%%'
3715 _ACEOF
3716 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3717 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3718   *@@@%%%=?*=@@@%%%*)
3719     eval ac_cv_prog_make_${ac_make}_set=yes;;
3720   *)
3721     eval ac_cv_prog_make_${ac_make}_set=no;;
3722 esac
3723 rm -f conftest.make
3724 fi
3725 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3727 $as_echo "yes" >&6; }
3728   SET_MAKE=
3729 else
3730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731 $as_echo "no" >&6; }
3732   SET_MAKE="MAKE=${MAKE-make}"
3733 fi
3734
3735 rm -rf .tst 2>/dev/null
3736 mkdir .tst 2>/dev/null
3737 if test -d .tst; then
3738   am__leading_dot=.
3739 else
3740   am__leading_dot=_
3741 fi
3742 rmdir .tst 2>/dev/null
3743
3744 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3745   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3746   # is not polluted with repeated "-I."
3747   am__isrc=' -I$(srcdir)'
3748   # test to see if srcdir already configured
3749   if test -f $srcdir/config.status; then
3750     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3751   fi
3752 fi
3753
3754 # test whether we have cygpath
3755 if test -z "$CYGPATH_W"; then
3756   if (cygpath --version) >/dev/null 2>/dev/null; then
3757     CYGPATH_W='cygpath -w'
3758   else
3759     CYGPATH_W=echo
3760   fi
3761 fi
3762
3763
3764 # Define the identity of the package.
3765  PACKAGE='navit'
3766  VERSION='0.5.0'
3767
3768
3769 cat >>confdefs.h <<_ACEOF
3770 #define PACKAGE "$PACKAGE"
3771 _ACEOF
3772
3773
3774 cat >>confdefs.h <<_ACEOF
3775 #define VERSION "$VERSION"
3776 _ACEOF
3777
3778 # Some tools Automake needs.
3779
3780 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3781
3782
3783 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3784
3785
3786 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3787
3788
3789 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3790
3791
3792 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3793
3794 # We need awk for the "check" target.  The system "awk" is bad on
3795 # some platforms.
3796 # Always define AMTAR for backward compatibility.
3797
3798 AMTAR=${AMTAR-"${am_missing_run}tar"}
3799
3800 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3801
3802
3803
3804
3805
3806 ac_config_headers="$ac_config_headers config.h"
3807
3808
3809
3810  if test "x${SOURCE_MODE}" = "xsvn"; then
3811   SOURCE_MODE_SVN_TRUE=
3812   SOURCE_MODE_SVN_FALSE='#'
3813 else
3814   SOURCE_MODE_SVN_TRUE='#'
3815   SOURCE_MODE_SVN_FALSE=
3816 fi
3817
3818
3819 if test "x${SOURCE_MODE}" = "xsvn" ; then
3820         USE_MAINTAINER_MODE=yes
3821 else
3822         USE_MAINTAINER_MODE=no
3823 fi
3824
3825
3826
3827 # This is what autoupdate's m4 run will expand.  It fires
3828 # the warning (with _au_warn_XXX), outputs it into the
3829 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3830 # the replacement expansion.
3831
3832
3833 # This is an auxiliary macro that is also run when
3834 # autoupdate runs m4.  It simply calls m4_warning, but
3835 # we need a wrapper so that each warning is emitted only
3836 # once.  We break the quoting in m4_warning's argument in
3837 # order to expand this macro's arguments, not AU_DEFUN's.
3838
3839
3840 # Finally, this is the expansion that is picked up by
3841 # autoconf.  It tells the user to run autoupdate, and
3842 # then outputs the replacement expansion.  We do not care
3843 # about autoupdate's warning because that contains
3844 # information on what to do *after* running autoupdate.
3845
3846
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3848 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3849     # Check whether --enable-maintainer-mode was given.
3850 if test "${enable_maintainer_mode+set}" = set; then :
3851   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3852 fi
3853
3854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3855 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3856    if test $USE_MAINTAINER_MODE = yes; then
3857   MAINTAINER_MODE_TRUE=
3858   MAINTAINER_MODE_FALSE='#'
3859 else
3860   MAINTAINER_MODE_TRUE='#'
3861   MAINTAINER_MODE_FALSE=
3862 fi
3863
3864   MAINT=$MAINTAINER_MODE_TRUE
3865
3866
3867
3868
3869 plugins=yes; plugins_reason=default
3870 postgresql=yes; postgresql_reason=default
3871 samplemap=yes; samplemap_reason=default
3872 binding_dbus=yes; binding_dbus_reason=default
3873 binding_dbus_use_system_bus=no
3874 binding_python=yes; binding_python_reason=default
3875 binding_win32=no; binding_win32_reason=default
3876 font_freetype=yes; font_freetype_reason=default
3877 fontconfig=yes; fontconfig_reason=default
3878 fribidi=yes; fribidi_reason=default
3879 gui_gtk=no; gui_gtk_reason=default
3880 gui_win32=no; gui_win32_reason=default
3881 gui_internal=yes; gui_internal_reason=default
3882 gui_qml=no; gui_qml_reason=default
3883 graphics=yes; graphics_reason=default
3884 graphics_gd=no; graphics_gd_reason=default
3885 graphics_gtk_drawing_area=no; graphics_gtk_drawing_area_reason=default
3886 graphics_qt_qpainter=yes; graphics_qt_qpainter_reason=default
3887 graphics_null=yes; graphics_null_reason=default
3888 graphics_opengl=yes; graphics_opengl_reason=default
3889 graphics_sdl=yes; graphics_sdl_reason=default
3890 graphics_win32=no; graphics_win32_reason=default
3891 maptool=yes; maptool_reason=default
3892 map_binfile=yes; map_binfile_reason=default
3893 map_filter=yes; map_filter_reason=default
3894 map_mg=yes; map_mg_reason=default
3895 map_shapefile=yes; map_shapefile_reason=default
3896 map_textfile=yes; map_textfile_reason=default
3897 map_csv=yes; map_csv_reason=default
3898 osd_core=yes; osd_core_reason=default
3899 plugin_pedestrian=no; plugin_pedestrian_reason=default
3900 routing=yes; routing_reason=default
3901 speech_android=no; speech_android_reason=default
3902 speech_cmdline=yes; speech_cmdline_reason=default
3903 speech_dbus=no; speech_dbus_reason=default
3904 speech_espeak=no; speech_espeak_reason=default
3905 speech_speech_dispatcher=yes; speech_speech_dispatcher_reason=default
3906 vehicle_demo=yes; vehicle_demo_reason=default
3907 vehicle_file=yes; vehicle_file_reason=default
3908 vehicle_gpsd=yes; vehicle_gpsd_reason=default
3909 vehicle_gpsd_dbus=no; vehicle_gpsd_dbus_reason=default
3910 vehicle_gypsy=yes; vehicle_gypsy_reason=default
3911 vehicle_null=no; vehicle_null_reason=default
3912 vehicle_wince=no; vehicle_wince_reason=default
3913 vehicle_iphone=no; vehicle_iphone_reason=default
3914 vehicle_android=no; vehicle_android_reason=default
3915 graphics_android=no; graphics_android_reason=default
3916 vehicle_maemo=no; vehicle_maemo_reason=default
3917 vehicle_webos=no; vehicle_webos_reason=default
3918
3919 shared_libnavit=no
3920 LIBNAVIT=navit
3921 bin_navit=yes
3922
3923 # Make sure we can run config.sub.
3924 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3925   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3926
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3928 $as_echo_n "checking build system type... " >&6; }
3929 if ${ac_cv_build+:} false; then :
3930   $as_echo_n "(cached) " >&6
3931 else
3932   ac_build_alias=$build_alias
3933 test "x$ac_build_alias" = x &&
3934   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3935 test "x$ac_build_alias" = x &&
3936   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3937 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3938   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3939
3940 fi
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3942 $as_echo "$ac_cv_build" >&6; }
3943 case $ac_cv_build in
3944 *-*-*) ;;
3945 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3946 esac
3947 build=$ac_cv_build
3948 ac_save_IFS=$IFS; IFS='-'
3949 set x $ac_cv_build
3950 shift
3951 build_cpu=$1
3952 build_vendor=$2
3953 shift; shift
3954 # Remember, the first character of IFS is used to create $*,
3955 # except with old shells:
3956 build_os=$*
3957 IFS=$ac_save_IFS
3958 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3959
3960
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3962 $as_echo_n "checking host system type... " >&6; }
3963 if ${ac_cv_host+:} false; then :
3964   $as_echo_n "(cached) " >&6
3965 else
3966   if test "x$host_alias" = x; then
3967   ac_cv_host=$ac_cv_build
3968 else
3969   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3970     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3971 fi
3972
3973 fi
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3975 $as_echo "$ac_cv_host" >&6; }
3976 case $ac_cv_host in
3977 *-*-*) ;;
3978 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3979 esac
3980 host=$ac_cv_host
3981 ac_save_IFS=$IFS; IFS='-'
3982 set x $ac_cv_host
3983 shift
3984 host_cpu=$1
3985 host_vendor=$2
3986 shift; shift
3987 # Remember, the first character of IFS is used to create $*,
3988 # except with old shells:
3989 host_os=$*
3990 IFS=$ac_save_IFS
3991 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3992
3993
3994 win32=no
3995 win32ce=no
3996 case $host_os in
3997 wince|mingw32ce|cegcc)
3998         win32=yes
3999         win32ce=yes
4000
4001 $as_echo "#define HAVE_API_WIN32_BASE 1" >>confdefs.h
4002
4003
4004 $as_echo "#define HAVE_API_WIN32_CE 1" >>confdefs.h
4005
4006
4007 $as_echo "#define HAVE_PRAGMA_PACK 1" >>confdefs.h
4008
4009         binding_win32=yes; binding_win32_reason="host_os is wince"
4010         gui_win32=yes; gui_win32_reason="host_os is wince"
4011         graphics_win32=yes; graphics_win32_reason="host_os is wince"
4012         vehicle_wince=yes; vehcile_wince_reason="host_os is wince"
4013         speech_espeak=yes; speech_espeak_reason="host_os is wince"
4014         support_libpng=yes
4015         maptool=no; maptool_reason="host_os is wince"
4016         ;;
4017 mingw32)
4018         win32=yes
4019
4020 $as_echo "#define HAVE_API_WIN32_BASE 1" >>confdefs.h
4021
4022
4023 $as_echo "#define HAVE_API_WIN32 1" >>confdefs.h
4024
4025         binding_win32=yes; binding_win32_reason="host_os is mingw32"
4026         gui_win32=yes; gui_win32_reason="host_os is mingw32"
4027         graphics_win32=yes; graphics_win32_reason="host_os is mingw32"
4028         speech_espeak=yes; speech_espeak_reason="host_os is mingw32"
4029         support_libpng=yes
4030         ;;
4031 linux*_android)
4032         android=yes
4033         shared_libnavit=yes
4034         bin_navit=no
4035
4036 $as_echo "#define HAVE_API_ANDROID 1" >>confdefs.h
4037
4038         echo "void dl_unwind_find_exidx(void) {}" >crt0.c
4039         $CC -c crt0.c
4040         $AR r libg.a crt0.o
4041         vehicle_android=yes; vehicle_android_reason="host_os is android"
4042         graphics_android=yes; graphics_android_reason="host_os is android"
4043         speech_android=yes; speech_android_reason="host_os is android"
4044         MODULE_LDFLAGS="-module -Xcompiler -nostdlib -Xcompiler -Wl,-rpath -Xcompiler -Wl,/data/data/org.navitproject.navit/lib"
4045         MODULE_LIBADD="-llog"
4046         LIBNAVIT=_data_data_org.navitproject.navit_lib_navit
4047         NAVIT_MODULE_LDFLAGS="$MODULE_LDFLAGS -L\$(top_builddir)/navit -l$LIBNAVIT"
4048         ;;
4049 esac
4050 if test "x$win32" = "xyes"
4051 then
4052         NAVIT_CFLAGS="$NAVIT_CFLAGS -I\$(top_srcdir)/navit/support/win32"
4053         NAVIT_LIBS="$NAVIT_LIBS -L\$(top_builddir)/navit/support/win32 -lsupport_win32"
4054         NAVIT_SOCKET_LDFLAGS="$MODULE_LDFLAGS -lws2_32"
4055 fi
4056
4057
4058  if test "x$win32" = "xyes"; then
4059   SUPPORT_WIN32_TRUE=
4060   SUPPORT_WIN32_FALSE='#'
4061 else
4062   SUPPORT_WIN32_TRUE='#'
4063   SUPPORT_WIN32_FALSE=
4064 fi
4065
4066  if test "x$win32ce" = "xyes"; then
4067   SUPPORT_WIN32CE_TRUE=
4068   SUPPORT_WIN32CE_FALSE='#'
4069 else
4070   SUPPORT_WIN32CE_TRUE='#'
4071   SUPPORT_WIN32CE_FALSE=
4072 fi
4073
4074  if test "x$android" = "xyes"; then
4075   SUPPORT_ANDROID_TRUE=
4076   SUPPORT_ANDROID_FALSE='#'
4077 else
4078   SUPPORT_ANDROID_TRUE='#'
4079   SUPPORT_ANDROID_FALSE=
4080 fi
4081
4082
4083 if test "x$support_libpng" = "xyes"
4084 then
4085         NAVIT_CFLAGS="$NAVIT_CFLAGS -I\$(top_srcdir)/navit/support/libpng"
4086         NAVIT_LIBS="$NAVIT_LIBS -L\$(top_builddir)/navit/support/libpng -lsupport_libpng"
4087 fi
4088  if test "x$support_libpng" = "xyes"; then
4089   SUPPORT_LIBPNG_TRUE=
4090   SUPPORT_LIBPNG_FALSE='#'
4091 else
4092   SUPPORT_LIBPNG_TRUE='#'
4093   SUPPORT_LIBPNG_FALSE=
4094 fi
4095
4096
4097
4098
4099
4100
4101
4102 LIBS="$LIBS -lm"
4103 if test "$win32" == "no" -a test "$host_os" != "cygwin"; then
4104         LIBS="$LIBS -rdynamic"
4105 fi
4106
4107
4108
4109 DEPDIR="${am__leading_dot}deps"
4110
4111 ac_config_commands="$ac_config_commands depfiles"
4112
4113
4114 am_make=${MAKE-make}
4115 cat > confinc << 'END'
4116 am__doit:
4117         @echo this is the am__doit target
4118 .PHONY: am__doit
4119 END
4120 # If we don't find an include directive, just comment out the code.
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4122 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4123 am__include="#"
4124 am__quote=
4125 _am_result=none
4126 # First try GNU make style include.
4127 echo "include confinc" > confmf
4128 # Ignore all kinds of additional output from `make'.
4129 case `$am_make -s -f confmf 2> /dev/null` in #(
4130 *the\ am__doit\ target*)
4131   am__include=include
4132   am__quote=
4133   _am_result=GNU
4134   ;;
4135 esac
4136 # Now try BSD make style include.
4137 if test "$am__include" = "#"; then
4138    echo '.include "confinc"' > confmf
4139    case `$am_make -s -f confmf 2> /dev/null` in #(
4140    *the\ am__doit\ target*)
4141      am__include=.include
4142      am__quote="\""
4143      _am_result=BSD
4144      ;;
4145    esac
4146 fi
4147
4148
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4150 $as_echo "$_am_result" >&6; }
4151 rm -f confinc confmf
4152
4153 # Check whether --enable-dependency-tracking was given.
4154 if test "${enable_dependency_tracking+set}" = set; then :
4155   enableval=$enable_dependency_tracking;
4156 fi
4157
4158 if test "x$enable_dependency_tracking" != xno; then
4159   am_depcomp="$ac_aux_dir/depcomp"
4160   AMDEPBACKSLASH='\'
4161 fi
4162  if test "x$enable_dependency_tracking" != xno; then
4163   AMDEP_TRUE=
4164   AMDEP_FALSE='#'
4165 else
4166   AMDEP_TRUE='#'
4167   AMDEP_FALSE=
4168 fi
4169
4170
4171 ac_ext=c
4172 ac_cpp='$CPP $CPPFLAGS'
4173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4176 if test -n "$ac_tool_prefix"; then
4177   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4178 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4180 $as_echo_n "checking for $ac_word... " >&6; }
4181 if ${ac_cv_prog_CC+:} false; then :
4182   $as_echo_n "(cached) " >&6
4183 else
4184   if test -n "$CC"; then
4185   ac_cv_prog_CC="$CC" # Let the user override the test.
4186 else
4187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188 for as_dir in $PATH
4189 do
4190   IFS=$as_save_IFS
4191   test -z "$as_dir" && as_dir=.
4192     for ac_exec_ext in '' $ac_executable_extensions; do
4193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4194     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4196     break 2
4197   fi
4198 done
4199   done
4200 IFS=$as_save_IFS
4201
4202 fi
4203 fi
4204 CC=$ac_cv_prog_CC
4205 if test -n "$CC"; then
4206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4207 $as_echo "$CC" >&6; }
4208 else
4209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4210 $as_echo "no" >&6; }
4211 fi
4212
4213
4214 fi
4215 if test -z "$ac_cv_prog_CC"; then
4216   ac_ct_CC=$CC
4217   # Extract the first word of "gcc", so it can be a program name with args.
4218 set dummy gcc; ac_word=$2
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4220 $as_echo_n "checking for $ac_word... " >&6; }
4221 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4222   $as_echo_n "(cached) " >&6
4223 else
4224   if test -n "$ac_ct_CC"; then
4225   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4226 else
4227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228 for as_dir in $PATH
4229 do
4230   IFS=$as_save_IFS
4231   test -z "$as_dir" && as_dir=.
4232     for ac_exec_ext in '' $ac_executable_extensions; do
4233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4234     ac_cv_prog_ac_ct_CC="gcc"
4235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4236     break 2
4237   fi
4238 done
4239   done
4240 IFS=$as_save_IFS
4241
4242 fi
4243 fi
4244 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4245 if test -n "$ac_ct_CC"; then
4246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4247 $as_echo "$ac_ct_CC" >&6; }
4248 else
4249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4250 $as_echo "no" >&6; }
4251 fi
4252
4253   if test "x$ac_ct_CC" = x; then
4254     CC=""
4255   else
4256     case $cross_compiling:$ac_tool_warned in
4257 yes:)
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4259 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4260 ac_tool_warned=yes ;;
4261 esac
4262     CC=$ac_ct_CC
4263   fi
4264 else
4265   CC="$ac_cv_prog_CC"
4266 fi
4267
4268 if test -z "$CC"; then
4269           if test -n "$ac_tool_prefix"; then
4270     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4271 set dummy ${ac_tool_prefix}cc; ac_word=$2
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4273 $as_echo_n "checking for $ac_word... " >&6; }
4274 if ${ac_cv_prog_CC+:} false; then :
4275   $as_echo_n "(cached) " >&6
4276 else
4277   if test -n "$CC"; then
4278   ac_cv_prog_CC="$CC" # Let the user override the test.
4279 else
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 for as_dir in $PATH
4282 do
4283   IFS=$as_save_IFS
4284   test -z "$as_dir" && as_dir=.
4285     for ac_exec_ext in '' $ac_executable_extensions; do
4286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4287     ac_cv_prog_CC="${ac_tool_prefix}cc"
4288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4289     break 2
4290   fi
4291 done
4292   done
4293 IFS=$as_save_IFS
4294
4295 fi
4296 fi
4297 CC=$ac_cv_prog_CC
4298 if test -n "$CC"; then
4299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4300 $as_echo "$CC" >&6; }
4301 else
4302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303 $as_echo "no" >&6; }
4304 fi
4305
4306
4307   fi
4308 fi
4309 if test -z "$CC"; then
4310   # Extract the first word of "cc", so it can be a program name with args.
4311 set dummy cc; ac_word=$2
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4313 $as_echo_n "checking for $ac_word... " >&6; }
4314 if ${ac_cv_prog_CC+:} false; then :
4315   $as_echo_n "(cached) " >&6
4316 else
4317   if test -n "$CC"; then
4318   ac_cv_prog_CC="$CC" # Let the user override the test.
4319 else
4320   ac_prog_rejected=no
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH
4323 do
4324   IFS=$as_save_IFS
4325   test -z "$as_dir" && as_dir=.
4326     for ac_exec_ext in '' $ac_executable_extensions; do
4327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4328     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4329        ac_prog_rejected=yes
4330        continue
4331      fi
4332     ac_cv_prog_CC="cc"
4333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4334     break 2
4335   fi
4336 done
4337   done
4338 IFS=$as_save_IFS
4339
4340 if test $ac_prog_rejected = yes; then
4341   # We found a bogon in the path, so make sure we never use it.
4342   set dummy $ac_cv_prog_CC
4343   shift
4344   if test $# != 0; then
4345     # We chose a different compiler from the bogus one.
4346     # However, it has the same basename, so the bogon will be chosen
4347     # first if we set CC to just the basename; use the full file name.
4348     shift
4349     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4350   fi
4351 fi
4352 fi
4353 fi
4354 CC=$ac_cv_prog_CC
4355 if test -n "$CC"; then
4356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4357 $as_echo "$CC" >&6; }
4358 else
4359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4360 $as_echo "no" >&6; }
4361 fi
4362
4363
4364 fi
4365 if test -z "$CC"; then
4366   if test -n "$ac_tool_prefix"; then
4367   for ac_prog in cl.exe
4368   do
4369     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4370 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4372 $as_echo_n "checking for $ac_word... " >&6; }
4373 if ${ac_cv_prog_CC+:} false; then :
4374   $as_echo_n "(cached) " >&6
4375 else
4376   if test -n "$CC"; then
4377   ac_cv_prog_CC="$CC" # Let the user override the test.
4378 else
4379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380 for as_dir in $PATH
4381 do
4382   IFS=$as_save_IFS
4383   test -z "$as_dir" && as_dir=.
4384     for ac_exec_ext in '' $ac_executable_extensions; do
4385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4386     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4388     break 2
4389   fi
4390 done
4391   done
4392 IFS=$as_save_IFS
4393
4394 fi
4395 fi
4396 CC=$ac_cv_prog_CC
4397 if test -n "$CC"; then
4398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4399 $as_echo "$CC" >&6; }
4400 else
4401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4402 $as_echo "no" >&6; }
4403 fi
4404
4405
4406     test -n "$CC" && break
4407   done
4408 fi
4409 if test -z "$CC"; then
4410   ac_ct_CC=$CC
4411   for ac_prog in cl.exe
4412 do
4413   # Extract the first word of "$ac_prog", so it can be a program name with args.
4414 set dummy $ac_prog; ac_word=$2
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4416 $as_echo_n "checking for $ac_word... " >&6; }
4417 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4418   $as_echo_n "(cached) " >&6
4419 else
4420   if test -n "$ac_ct_CC"; then
4421   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4422 else
4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424 for as_dir in $PATH
4425 do
4426   IFS=$as_save_IFS
4427   test -z "$as_dir" && as_dir=.
4428     for ac_exec_ext in '' $ac_executable_extensions; do
4429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4430     ac_cv_prog_ac_ct_CC="$ac_prog"
4431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4432     break 2
4433   fi
4434 done
4435   done
4436 IFS=$as_save_IFS
4437
4438 fi
4439 fi
4440 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4441 if test -n "$ac_ct_CC"; then
4442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4443 $as_echo "$ac_ct_CC" >&6; }
4444 else
4445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4446 $as_echo "no" >&6; }
4447 fi
4448
4449
4450   test -n "$ac_ct_CC" && break
4451 done
4452
4453   if test "x$ac_ct_CC" = x; then
4454     CC=""
4455   else
4456     case $cross_compiling:$ac_tool_warned in
4457 yes:)
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4460 ac_tool_warned=yes ;;
4461 esac
4462     CC=$ac_ct_CC
4463   fi
4464 fi
4465
4466 fi
4467
4468
4469 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4471 as_fn_error $? "no acceptable C compiler found in \$PATH
4472 See \`config.log' for more details" "$LINENO" 5; }
4473
4474 # Provide some information about the compiler.
4475 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4476 set X $ac_compile
4477 ac_compiler=$2
4478 for ac_option in --version -v -V -qversion; do
4479   { { ac_try="$ac_compiler $ac_option >&5"
4480 case "(($ac_try" in
4481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482   *) ac_try_echo=$ac_try;;
4483 esac
4484 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4485 $as_echo "$ac_try_echo"; } >&5
4486   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4487   ac_status=$?
4488   if test -s conftest.err; then
4489     sed '10a\
4490 ... rest of stderr output deleted ...
4491          10q' conftest.err >conftest.er1
4492     cat conftest.er1 >&5
4493   fi
4494   rm -f conftest.er1 conftest.err
4495   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4496   test $ac_status = 0; }
4497 done
4498
4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h.  */
4501
4502 int
4503 main ()
4504 {
4505
4506   ;
4507   return 0;
4508 }
4509 _ACEOF
4510 ac_clean_files_save=$ac_clean_files
4511 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4512 # Try to create an executable without -o first, disregard a.out.
4513 # It will help us diagnose broken compilers, and finding out an intuition
4514 # of exeext.
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4516 $as_echo_n "checking whether the C compiler works... " >&6; }
4517 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4518
4519 # The possible output files:
4520 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4521
4522 ac_rmfiles=
4523 for ac_file in $ac_files
4524 do
4525   case $ac_file in
4526     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4527     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4528   esac
4529 done
4530 rm -f $ac_rmfiles
4531
4532 if { { ac_try="$ac_link_default"
4533 case "(($ac_try" in
4534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4535   *) ac_try_echo=$ac_try;;
4536 esac
4537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4538 $as_echo "$ac_try_echo"; } >&5
4539   (eval "$ac_link_default") 2>&5
4540   ac_status=$?
4541   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4542   test $ac_status = 0; }; then :
4543   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4544 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4545 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4546 # so that the user can short-circuit this test for compilers unknown to
4547 # Autoconf.
4548 for ac_file in $ac_files ''
4549 do
4550   test -f "$ac_file" || continue
4551   case $ac_file in
4552     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4553         ;;
4554     [ab].out )
4555         # We found the default executable, but exeext='' is most
4556         # certainly right.
4557         break;;
4558     *.* )
4559         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4560         then :; else
4561            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4562         fi
4563         # We set ac_cv_exeext here because the later test for it is not
4564         # safe: cross compilers may not add the suffix if given an `-o'
4565         # argument, so we may need to know it at that point already.
4566         # Even if this section looks crufty: it has the advantage of
4567         # actually working.
4568         break;;
4569     * )
4570         break;;
4571   esac
4572 done
4573 test "$ac_cv_exeext" = no && ac_cv_exeext=
4574
4575 else
4576   ac_file=''
4577 fi
4578 if test -z "$ac_file"; then :
4579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4580 $as_echo "no" >&6; }
4581 $as_echo "$as_me: failed program was:" >&5
4582 sed 's/^/| /' conftest.$ac_ext >&5
4583
4584 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4586 as_fn_error 77 "C compiler cannot create executables
4587 See \`config.log' for more details" "$LINENO" 5; }
4588 else
4589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4590 $as_echo "yes" >&6; }
4591 fi
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4593 $as_echo_n "checking for C compiler default output file name... " >&6; }
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4595 $as_echo "$ac_file" >&6; }
4596 ac_exeext=$ac_cv_exeext
4597
4598 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4599 ac_clean_files=$ac_clean_files_save
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4601 $as_echo_n "checking for suffix of executables... " >&6; }
4602 if { { ac_try="$ac_link"
4603 case "(($ac_try" in
4604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4605   *) ac_try_echo=$ac_try;;
4606 esac
4607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4608 $as_echo "$ac_try_echo"; } >&5
4609   (eval "$ac_link") 2>&5
4610   ac_status=$?
4611   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4612   test $ac_status = 0; }; then :
4613   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4614 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4615 # work properly (i.e., refer to `conftest.exe'), while it won't with
4616 # `rm'.
4617 for ac_file in conftest.exe conftest conftest.*; do
4618   test -f "$ac_file" || continue
4619   case $ac_file in
4620     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4621     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4622           break;;
4623     * ) break;;
4624   esac
4625 done
4626 else
4627   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4629 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4630 See \`config.log' for more details" "$LINENO" 5; }
4631 fi
4632 rm -f conftest conftest$ac_cv_exeext
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4634 $as_echo "$ac_cv_exeext" >&6; }
4635
4636 rm -f conftest.$ac_ext
4637 EXEEXT=$ac_cv_exeext
4638 ac_exeext=$EXEEXT
4639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4640 /* end confdefs.h.  */
4641 #include <stdio.h>
4642 int
4643 main ()
4644 {
4645 FILE *f = fopen ("conftest.out", "w");
4646  return ferror (f) || fclose (f) != 0;
4647
4648   ;
4649   return 0;
4650 }
4651 _ACEOF
4652 ac_clean_files="$ac_clean_files conftest.out"
4653 # Check that the compiler produces executables we can run.  If not, either
4654 # the compiler is broken, or we cross compile.
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4656 $as_echo_n "checking whether we are cross compiling... " >&6; }
4657 if test "$cross_compiling" != yes; then
4658   { { ac_try="$ac_link"
4659 case "(($ac_try" in
4660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4661   *) ac_try_echo=$ac_try;;
4662 esac
4663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4664 $as_echo "$ac_try_echo"; } >&5
4665   (eval "$ac_link") 2>&5
4666   ac_status=$?
4667   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4668   test $ac_status = 0; }
4669   if { ac_try='./conftest$ac_cv_exeext'
4670   { { case "(($ac_try" in
4671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4672   *) ac_try_echo=$ac_try;;
4673 esac
4674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4675 $as_echo "$ac_try_echo"; } >&5
4676   (eval "$ac_try") 2>&5
4677   ac_status=$?
4678   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4679   test $ac_status = 0; }; }; then
4680     cross_compiling=no
4681   else
4682     if test "$cross_compiling" = maybe; then
4683         cross_compiling=yes
4684     else
4685         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4687 as_fn_error $? "cannot run C compiled programs.
4688 If you meant to cross compile, use \`--host'.
4689 See \`config.log' for more details" "$LINENO" 5; }
4690     fi
4691   fi
4692 fi
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4694 $as_echo "$cross_compiling" >&6; }
4695
4696 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4697 ac_clean_files=$ac_clean_files_save
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4699 $as_echo_n "checking for suffix of object files... " >&6; }
4700 if ${ac_cv_objext+:} false; then :
4701   $as_echo_n "(cached) " >&6
4702 else
4703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704 /* end confdefs.h.  */
4705
4706 int
4707 main ()
4708 {
4709
4710   ;
4711   return 0;
4712 }
4713 _ACEOF
4714 rm -f conftest.o conftest.obj
4715 if { { ac_try="$ac_compile"
4716 case "(($ac_try" in
4717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4718   *) ac_try_echo=$ac_try;;
4719 esac
4720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4721 $as_echo "$ac_try_echo"; } >&5
4722   (eval "$ac_compile") 2>&5
4723   ac_status=$?
4724   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4725   test $ac_status = 0; }; then :
4726   for ac_file in conftest.o conftest.obj conftest.*; do
4727   test -f "$ac_file" || continue;
4728   case $ac_file in
4729     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4730     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4731        break;;
4732   esac
4733 done
4734 else
4735   $as_echo "$as_me: failed program was:" >&5
4736 sed 's/^/| /' conftest.$ac_ext >&5
4737
4738 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4740 as_fn_error $? "cannot compute suffix of object files: cannot compile
4741 See \`config.log' for more details" "$LINENO" 5; }
4742 fi
4743 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4744 fi
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4746 $as_echo "$ac_cv_objext" >&6; }
4747 OBJEXT=$ac_cv_objext
4748 ac_objext=$OBJEXT
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4750 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4751 if ${ac_cv_c_compiler_gnu+:} false; then :
4752   $as_echo_n "(cached) " >&6
4753 else
4754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755 /* end confdefs.h.  */
4756
4757 int
4758 main ()
4759 {
4760 #ifndef __GNUC__
4761        choke me
4762 #endif
4763
4764   ;
4765   return 0;
4766 }
4767 _ACEOF
4768 if ac_fn_c_try_compile "$LINENO"; then :
4769   ac_compiler_gnu=yes
4770 else
4771   ac_compiler_gnu=no
4772 fi
4773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4774 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4775
4776 fi
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4778 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4779 if test $ac_compiler_gnu = yes; then
4780   GCC=yes
4781 else
4782   GCC=
4783 fi
4784 ac_test_CFLAGS=${CFLAGS+set}
4785 ac_save_CFLAGS=$CFLAGS
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4787 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4788 if ${ac_cv_prog_cc_g+:} false; then :
4789   $as_echo_n "(cached) " >&6
4790 else
4791   ac_save_c_werror_flag=$ac_c_werror_flag
4792    ac_c_werror_flag=yes
4793    ac_cv_prog_cc_g=no
4794    CFLAGS="-g"
4795    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h.  */
4797
4798 int
4799 main ()
4800 {
4801
4802   ;
4803   return 0;
4804 }
4805 _ACEOF
4806 if ac_fn_c_try_compile "$LINENO"; then :
4807   ac_cv_prog_cc_g=yes
4808 else
4809   CFLAGS=""
4810       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4811 /* end confdefs.h.  */
4812
4813 int
4814 main ()
4815 {
4816
4817   ;
4818   return 0;
4819 }
4820 _ACEOF
4821 if ac_fn_c_try_compile "$LINENO"; then :
4822
4823 else
4824   ac_c_werror_flag=$ac_save_c_werror_flag
4825          CFLAGS="-g"
4826          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4827 /* end confdefs.h.  */
4828
4829 int
4830 main ()
4831 {
4832
4833   ;
4834   return 0;
4835 }
4836 _ACEOF
4837 if ac_fn_c_try_compile "$LINENO"; then :
4838   ac_cv_prog_cc_g=yes
4839 fi
4840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4841 fi
4842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4843 fi
4844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4845    ac_c_werror_flag=$ac_save_c_werror_flag
4846 fi
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4848 $as_echo "$ac_cv_prog_cc_g" >&6; }
4849 if test "$ac_test_CFLAGS" = set; then
4850   CFLAGS=$ac_save_CFLAGS
4851 elif test $ac_cv_prog_cc_g = yes; then
4852   if test "$GCC" = yes; then
4853     CFLAGS="-g -O2"
4854   else
4855     CFLAGS="-g"
4856   fi
4857 else
4858   if test "$GCC" = yes; then
4859     CFLAGS="-O2"
4860   else
4861     CFLAGS=
4862   fi
4863 fi
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4865 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4866 if ${ac_cv_prog_cc_c89+:} false; then :
4867   $as_echo_n "(cached) " >&6
4868 else
4869   ac_cv_prog_cc_c89=no
4870 ac_save_CC=$CC
4871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872 /* end confdefs.h.  */
4873 #include <stdarg.h>
4874 #include <stdio.h>
4875 #include <sys/types.h>
4876 #include <sys/stat.h>
4877 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4878 struct buf { int x; };
4879 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4880 static char *e (p, i)
4881      char **p;
4882      int i;
4883 {
4884   return p[i];
4885 }
4886 static char *f (char * (*g) (char **, int), char **p, ...)
4887 {
4888   char *s;
4889   va_list v;
4890   va_start (v,p);
4891   s = g (p, va_arg (v,int));
4892   va_end (v);
4893   return s;
4894 }
4895
4896 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4897    function prototypes and stuff, but not '\xHH' hex character constants.
4898    These don't provoke an error unfortunately, instead are silently treated
4899    as 'x'.  The following induces an error, until -std is added to get
4900    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4901    array size at least.  It's necessary to write '\x00'==0 to get something
4902    that's true only with -std.  */
4903 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4904
4905 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4906    inside strings and character constants.  */
4907 #define FOO(x) 'x'
4908 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4909
4910 int test (int i, double x);
4911 struct s1 {int (*f) (int a);};
4912 struct s2 {int (*f) (double a);};
4913 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4914 int argc;
4915 char **argv;
4916 int
4917 main ()
4918 {
4919 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4920   ;
4921   return 0;
4922 }
4923 _ACEOF
4924 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4925         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4926 do
4927   CC="$ac_save_CC $ac_arg"
4928   if ac_fn_c_try_compile "$LINENO"; then :
4929   ac_cv_prog_cc_c89=$ac_arg
4930 fi
4931 rm -f core conftest.err conftest.$ac_objext
4932   test "x$ac_cv_prog_cc_c89" != "xno" && break
4933 done
4934 rm -f conftest.$ac_ext
4935 CC=$ac_save_CC
4936
4937 fi
4938 # AC_CACHE_VAL
4939 case "x$ac_cv_prog_cc_c89" in
4940   x)
4941     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4942 $as_echo "none needed" >&6; } ;;
4943   xno)
4944     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4945 $as_echo "unsupported" >&6; } ;;
4946   *)
4947     CC="$CC $ac_cv_prog_cc_c89"
4948     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4949 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4950 esac
4951 if test "x$ac_cv_prog_cc_c89" != xno; then :
4952
4953 fi
4954
4955 ac_ext=c
4956 ac_cpp='$CPP $CPPFLAGS'
4957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4960
4961 depcc="$CC"   am_compiler_list=
4962
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4964 $as_echo_n "checking dependency style of $depcc... " >&6; }
4965 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4966   $as_echo_n "(cached) " >&6
4967 else
4968   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4969   # We make a subdir and do the tests there.  Otherwise we can end up
4970   # making bogus files that we don't know about and never remove.  For
4971   # instance it was reported that on HP-UX the gcc test will end up
4972   # making a dummy file named `D' -- because `-MD' means `put the output
4973   # in D'.
4974   mkdir conftest.dir
4975   # Copy depcomp to subdir because otherwise we won't find it if we're
4976   # using a relative directory.
4977   cp "$am_depcomp" conftest.dir
4978   cd conftest.dir
4979   # We will build objects and dependencies in a subdirectory because
4980   # it helps to detect inapplicable dependency modes.  For instance
4981   # both Tru64's cc and ICC support -MD to output dependencies as a
4982   # side effect of compilation, but ICC will put the dependencies in
4983   # the current directory while Tru64 will put them in the object
4984   # directory.
4985   mkdir sub
4986
4987   am_cv_CC_dependencies_compiler_type=none
4988   if test "$am_compiler_list" = ""; then
4989      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4990   fi
4991   am__universal=false
4992   case " $depcc " in #(
4993      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4994      esac
4995
4996   for depmode in $am_compiler_list; do
4997     # Setup a source with many dependencies, because some compilers
4998     # like to wrap large dependency lists on column 80 (with \), and
4999     # we should not choose a depcomp mode which is confused by this.
5000     #
5001     # We need to recreate these files for each test, as the compiler may
5002     # overwrite some of them when testing with obscure command lines.
5003     # This happens at least with the AIX C compiler.
5004     : > sub/conftest.c
5005     for i in 1 2 3 4 5 6; do
5006       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5007       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5008       # Solaris 8's {/usr,}/bin/sh.
5009       touch sub/conftst$i.h
5010     done
5011     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5012
5013     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5014     # mode.  It turns out that the SunPro C++ compiler does not properly
5015     # handle `-M -o', and we need to detect this.  Also, some Intel
5016     # versions had trouble with output in subdirs
5017     am__obj=sub/conftest.${OBJEXT-o}
5018     am__minus_obj="-o $am__obj"
5019     case $depmode in
5020     gcc)
5021       # This depmode causes a compiler race in universal mode.
5022       test "$am__universal" = false || continue
5023       ;;
5024     nosideeffect)
5025       # after this tag, mechanisms are not by side-effect, so they'll
5026       # only be used when explicitly requested
5027       if test "x$enable_dependency_tracking" = xyes; then
5028         continue
5029       else
5030         break
5031       fi
5032       ;;
5033     msvisualcpp | msvcmsys)
5034       # This compiler won't grok `-c -o', but also, the minuso test has
5035       # not run yet.  These depmodes are late enough in the game, and
5036       # so weak that their functioning should not be impacted.
5037       am__obj=conftest.${OBJEXT-o}
5038       am__minus_obj=
5039       ;;
5040     none) break ;;
5041     esac
5042     if depmode=$depmode \
5043        source=sub/conftest.c object=$am__obj \
5044        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5045        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5046          >/dev/null 2>conftest.err &&
5047        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5048        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5049        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5050        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5051       # icc doesn't choke on unknown options, it will just issue warnings
5052       # or remarks (even with -Werror).  So we grep stderr for any message
5053       # that says an option was ignored or not supported.
5054       # When given -MP, icc 7.0 and 7.1 complain thusly:
5055       #   icc: Command line warning: ignoring option '-M'; no argument required
5056       # The diagnosis changed in icc 8.0:
5057       #   icc: Command line remark: option '-MP' not supported
5058       if (grep 'ignoring option' conftest.err ||
5059           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5060         am_cv_CC_dependencies_compiler_type=$depmode
5061         break
5062       fi
5063     fi
5064   done
5065
5066   cd ..
5067   rm -rf conftest.dir
5068 else
5069   am_cv_CC_dependencies_compiler_type=none
5070 fi
5071
5072 fi
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5074 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5075 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5076
5077  if
5078   test "x$enable_dependency_tracking" != xno \
5079   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5080   am__fastdepCC_TRUE=
5081   am__fastdepCC_FALSE='#'
5082 else
5083   am__fastdepCC_TRUE='#'
5084   am__fastdepCC_FALSE=
5085 fi
5086
5087
5088
5089 ac_ext=c
5090 ac_cpp='$CPP $CPPFLAGS'
5091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5095 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5096 # On Suns, sometimes $CPP names a directory.
5097 if test -n "$CPP" && test -d "$CPP"; then
5098   CPP=
5099 fi
5100 if test -z "$CPP"; then
5101   if ${ac_cv_prog_CPP+:} false; then :
5102   $as_echo_n "(cached) " >&6
5103 else
5104       # Double quotes because CPP needs to be expanded
5105     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5106     do
5107       ac_preproc_ok=false
5108 for ac_c_preproc_warn_flag in '' yes
5109 do
5110   # Use a header file that comes with gcc, so configuring glibc
5111   # with a fresh cross-compiler works.
5112   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5113   # <limits.h> exists even on freestanding compilers.
5114   # On the NeXT, cc -E runs the code through the compiler's parser,
5115   # not just through cpp. "Syntax error" is here to catch this case.
5116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5117 /* end confdefs.h.  */
5118 #ifdef __STDC__
5119 # include <limits.h>
5120 #else
5121 # include <assert.h>
5122 #endif
5123                      Syntax error
5124 _ACEOF
5125 if ac_fn_c_try_cpp "$LINENO"; then :
5126
5127 else
5128   # Broken: fails on valid input.
5129 continue
5130 fi
5131 rm -f conftest.err conftest.i conftest.$ac_ext
5132
5133   # OK, works on sane cases.  Now check whether nonexistent headers
5134   # can be detected and how.
5135   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h.  */
5137 #include <ac_nonexistent.h>
5138 _ACEOF
5139 if ac_fn_c_try_cpp "$LINENO"; then :
5140   # Broken: success on invalid input.
5141 continue
5142 else
5143   # Passes both tests.
5144 ac_preproc_ok=:
5145 break
5146 fi
5147 rm -f conftest.err conftest.i conftest.$ac_ext
5148
5149 done
5150 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5151 rm -f conftest.i conftest.err conftest.$ac_ext
5152 if $ac_preproc_ok; then :
5153   break
5154 fi
5155
5156     done
5157     ac_cv_prog_CPP=$CPP
5158
5159 fi
5160   CPP=$ac_cv_prog_CPP
5161 else
5162   ac_cv_prog_CPP=$CPP
5163 fi
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5165 $as_echo "$CPP" >&6; }
5166 ac_preproc_ok=false
5167 for ac_c_preproc_warn_flag in '' yes
5168 do
5169   # Use a header file that comes with gcc, so configuring glibc
5170   # with a fresh cross-compiler works.
5171   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5172   # <limits.h> exists even on freestanding compilers.
5173   # On the NeXT, cc -E runs the code through the compiler's parser,
5174   # not just through cpp. "Syntax error" is here to catch this case.
5175   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5176 /* end confdefs.h.  */
5177 #ifdef __STDC__
5178 # include <limits.h>
5179 #else
5180 # include <assert.h>
5181 #endif
5182                      Syntax error
5183 _ACEOF
5184 if ac_fn_c_try_cpp "$LINENO"; then :
5185
5186 else
5187   # Broken: fails on valid input.
5188 continue
5189 fi
5190 rm -f conftest.err conftest.i conftest.$ac_ext
5191
5192   # OK, works on sane cases.  Now check whether nonexistent headers
5193   # can be detected and how.
5194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195 /* end confdefs.h.  */
5196 #include <ac_nonexistent.h>
5197 _ACEOF
5198 if ac_fn_c_try_cpp "$LINENO"; then :
5199   # Broken: success on invalid input.
5200 continue
5201 else
5202   # Passes both tests.
5203 ac_preproc_ok=:
5204 break
5205 fi
5206 rm -f conftest.err conftest.i conftest.$ac_ext
5207
5208 done
5209 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5210 rm -f conftest.i conftest.err conftest.$ac_ext
5211 if $ac_preproc_ok; then :
5212
5213 else
5214   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5216 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5217 See \`config.log' for more details" "$LINENO" 5; }
5218 fi
5219
5220 ac_ext=c
5221 ac_cpp='$CPP $CPPFLAGS'
5222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5225
5226
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5228 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5229 if ${ac_cv_path_GREP+:} false; then :
5230   $as_echo_n "(cached) " >&6
5231 else
5232   if test -z "$GREP"; then
5233   ac_path_GREP_found=false
5234   # Loop through the user's path and test for each of PROGNAME-LIST
5235   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5237 do
5238   IFS=$as_save_IFS
5239   test -z "$as_dir" && as_dir=.
5240     for ac_prog in grep ggrep; do
5241     for ac_exec_ext in '' $ac_executable_extensions; do
5242       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5243       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5244 # Check for GNU ac_path_GREP and select it if it is found.
5245   # Check for GNU $ac_path_GREP
5246 case `"$ac_path_GREP" --version 2>&1` in
5247 *GNU*)
5248   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5249 *)
5250   ac_count=0
5251   $as_echo_n 0123456789 >"conftest.in"
5252   while :
5253   do
5254     cat "conftest.in" "conftest.in" >"conftest.tmp"
5255     mv "conftest.tmp" "conftest.in"
5256     cp "conftest.in" "conftest.nl"
5257     $as_echo 'GREP' >> "conftest.nl"
5258     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5259     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5260     as_fn_arith $ac_count + 1 && ac_count=$as_val
5261     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5262       # Best one so far, save it but keep looking for a better one
5263       ac_cv_path_GREP="$ac_path_GREP"
5264       ac_path_GREP_max=$ac_count
5265     fi
5266     # 10*(2^10) chars as input seems more than enough
5267     test $ac_count -gt 10 && break
5268   done
5269   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5270 esac
5271
5272       $ac_path_GREP_found && break 3
5273     done
5274   done
5275   done
5276 IFS=$as_save_IFS
5277   if test -z "$ac_cv_path_GREP"; then
5278     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5279   fi
5280 else
5281   ac_cv_path_GREP=$GREP
5282 fi
5283
5284 fi
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5286 $as_echo "$ac_cv_path_GREP" >&6; }
5287  GREP="$ac_cv_path_GREP"
5288
5289
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5291 $as_echo_n "checking for egrep... " >&6; }
5292 if ${ac_cv_path_EGREP+:} false; then :
5293   $as_echo_n "(cached) " >&6
5294 else
5295   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5296    then ac_cv_path_EGREP="$GREP -E"
5297    else
5298      if test -z "$EGREP"; then
5299   ac_path_EGREP_found=false
5300   # Loop through the user's path and test for each of PROGNAME-LIST
5301   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5303 do
5304   IFS=$as_save_IFS
5305   test -z "$as_dir" && as_dir=.
5306     for ac_prog in egrep; do
5307     for ac_exec_ext in '' $ac_executable_extensions; do
5308       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5309       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5310 # Check for GNU ac_path_EGREP and select it if it is found.
5311   # Check for GNU $ac_path_EGREP
5312 case `"$ac_path_EGREP" --version 2>&1` in
5313 *GNU*)
5314   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5315 *)
5316   ac_count=0
5317   $as_echo_n 0123456789 >"conftest.in"
5318   while :
5319   do
5320     cat "conftest.in" "conftest.in" >"conftest.tmp"
5321     mv "conftest.tmp" "conftest.in"
5322     cp "conftest.in" "conftest.nl"
5323     $as_echo 'EGREP' >> "conftest.nl"
5324     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5325     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5326     as_fn_arith $ac_count + 1 && ac_count=$as_val
5327     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5328       # Best one so far, save it but keep looking for a better one
5329       ac_cv_path_EGREP="$ac_path_EGREP"
5330       ac_path_EGREP_max=$ac_count
5331     fi
5332     # 10*(2^10) chars as input seems more than enough
5333     test $ac_count -gt 10 && break
5334   done
5335   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5336 esac
5337
5338       $ac_path_EGREP_found && break 3
5339     done
5340   done
5341   done
5342 IFS=$as_save_IFS
5343   if test -z "$ac_cv_path_EGREP"; then
5344     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5345   fi
5346 else
5347   ac_cv_path_EGREP=$EGREP
5348 fi
5349
5350    fi
5351 fi
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5353 $as_echo "$ac_cv_path_EGREP" >&6; }
5354  EGREP="$ac_cv_path_EGREP"
5355
5356
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5358 $as_echo_n "checking for ANSI C header files... " >&6; }
5359 if ${ac_cv_header_stdc+:} false; then :
5360   $as_echo_n "(cached) " >&6
5361 else
5362   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5363 /* end confdefs.h.  */
5364 #include <stdlib.h>
5365 #include <stdarg.h>
5366 #include <string.h>
5367 #include <float.h>
5368
5369 int
5370 main ()
5371 {
5372
5373   ;
5374   return 0;
5375 }
5376 _ACEOF
5377 if ac_fn_c_try_compile "$LINENO"; then :
5378   ac_cv_header_stdc=yes
5379 else
5380   ac_cv_header_stdc=no
5381 fi
5382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5383
5384 if test $ac_cv_header_stdc = yes; then
5385   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h.  */
5388 #include <string.h>
5389
5390 _ACEOF
5391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5392   $EGREP "memchr" >/dev/null 2>&1; then :
5393
5394 else
5395   ac_cv_header_stdc=no
5396 fi
5397 rm -f conftest*
5398
5399 fi
5400
5401 if test $ac_cv_header_stdc = yes; then
5402   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5403   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5404 /* end confdefs.h.  */
5405 #include <stdlib.h>
5406
5407 _ACEOF
5408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5409   $EGREP "free" >/dev/null 2>&1; then :
5410
5411 else
5412   ac_cv_header_stdc=no
5413 fi
5414 rm -f conftest*
5415
5416 fi
5417
5418 if test $ac_cv_header_stdc = yes; then
5419   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5420   if test "$cross_compiling" = yes; then :
5421   :
5422 else
5423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424 /* end confdefs.h.  */
5425 #include <ctype.h>
5426 #include <stdlib.h>
5427 #if ((' ' & 0x0FF) == 0x020)
5428 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5429 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5430 #else
5431 # define ISLOWER(c) \
5432                    (('a' <= (c) && (c) <= 'i') \
5433                      || ('j' <= (c) && (c) <= 'r') \
5434                      || ('s' <= (c) && (c) <= 'z'))
5435 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5436 #endif
5437
5438 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5439 int
5440 main ()
5441 {
5442   int i;
5443   for (i = 0; i < 256; i++)
5444     if (XOR (islower (i), ISLOWER (i))
5445         || toupper (i) != TOUPPER (i))
5446       return 2;
5447   return 0;
5448 }
5449 _ACEOF
5450 if ac_fn_c_try_run "$LINENO"; then :
5451
5452 else
5453   ac_cv_header_stdc=no
5454 fi
5455 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5456   conftest.$ac_objext conftest.beam conftest.$ac_ext
5457 fi
5458
5459 fi
5460 fi
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5462 $as_echo "$ac_cv_header_stdc" >&6; }
5463 if test $ac_cv_header_stdc = yes; then
5464
5465 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5466
5467 fi
5468
5469 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5470 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5471                   inttypes.h stdint.h unistd.h
5472 do :
5473   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5474 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5475 "
5476 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5477   cat >>confdefs.h <<_ACEOF
5478 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5479 _ACEOF
5480
5481 fi
5482
5483 done
5484
5485
5486
5487   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5488 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5489   MINIX=yes
5490 else
5491   MINIX=
5492 fi
5493
5494
5495   if test "$MINIX" = yes; then
5496
5497 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5498
5499
5500 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5501
5502
5503 $as_echo "#define _MINIX 1" >>confdefs.h
5504
5505   fi
5506
5507
5508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5509 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5510 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5511   $as_echo_n "(cached) " >&6
5512 else
5513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h.  */
5515
5516 #         define __EXTENSIONS__ 1
5517           $ac_includes_default
5518 int
5519 main ()
5520 {
5521
5522   ;
5523   return 0;
5524 }
5525 _ACEOF
5526 if ac_fn_c_try_compile "$LINENO"; then :
5527   ac_cv_safe_to_define___extensions__=yes
5528 else
5529   ac_cv_safe_to_define___extensions__=no
5530 fi
5531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5532 fi
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5534 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5535   test $ac_cv_safe_to_define___extensions__ = yes &&
5536     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5537
5538   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5539
5540   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5541
5542   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5543
5544   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5545
5546
5547
5548 ac_ext=m
5549 ac_cpp='$OBJCPP $CPPFLAGS'
5550 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5551 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5552 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
5553 if test -n "$ac_tool_prefix"; then
5554   for ac_prog in gcc objcc objc cc CC
5555   do
5556     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5557 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5559 $as_echo_n "checking for $ac_word... " >&6; }
5560 if ${ac_cv_prog_OBJC+:} false; then :
5561   $as_echo_n "(cached) " >&6
5562 else
5563   if test -n "$OBJC"; then
5564   ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
5565 else
5566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567 for as_dir in $PATH
5568 do
5569   IFS=$as_save_IFS
5570   test -z "$as_dir" && as_dir=.
5571     for ac_exec_ext in '' $ac_executable_extensions; do
5572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5573     ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
5574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5575     break 2
5576   fi
5577 done
5578   done
5579 IFS=$as_save_IFS
5580
5581 fi
5582 fi
5583 OBJC=$ac_cv_prog_OBJC
5584 if test -n "$OBJC"; then
5585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5
5586 $as_echo "$OBJC" >&6; }
5587 else
5588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5589 $as_echo "no" >&6; }
5590 fi
5591
5592
5593     test -n "$OBJC" && break
5594   done
5595 fi
5596 if test -z "$OBJC"; then
5597   ac_ct_OBJC=$OBJC
5598   for ac_prog in gcc objcc objc cc CC
5599 do
5600   # Extract the first word of "$ac_prog", so it can be a program name with args.
5601 set dummy $ac_prog; ac_word=$2
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5603 $as_echo_n "checking for $ac_word... " >&6; }
5604 if ${ac_cv_prog_ac_ct_OBJC+:} false; then :
5605   $as_echo_n "(cached) " >&6
5606 else
5607   if test -n "$ac_ct_OBJC"; then
5608   ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
5609 else
5610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611 for as_dir in $PATH
5612 do
5613   IFS=$as_save_IFS
5614   test -z "$as_dir" && as_dir=.
5615     for ac_exec_ext in '' $ac_executable_extensions; do
5616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5617     ac_cv_prog_ac_ct_OBJC="$ac_prog"
5618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5619     break 2
5620   fi
5621 done
5622   done
5623 IFS=$as_save_IFS
5624
5625 fi
5626 fi
5627 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
5628 if test -n "$ac_ct_OBJC"; then
5629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5
5630 $as_echo "$ac_ct_OBJC" >&6; }
5631 else
5632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5633 $as_echo "no" >&6; }
5634 fi
5635
5636
5637   test -n "$ac_ct_OBJC" && break
5638 done
5639
5640   if test "x$ac_ct_OBJC" = x; then
5641     OBJC="gcc"
5642   else
5643     case $cross_compiling:$ac_tool_warned in
5644 yes:)
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5647 ac_tool_warned=yes ;;
5648 esac
5649     OBJC=$ac_ct_OBJC
5650   fi
5651 fi
5652
5653 # Provide some information about the compiler.
5654 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5
5655 set X $ac_compile
5656 ac_compiler=$2
5657 for ac_option in --version -v -V -qversion; do
5658   { { ac_try="$ac_compiler $ac_option >&5"
5659 case "(($ac_try" in
5660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5661   *) ac_try_echo=$ac_try;;
5662 esac
5663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5664 $as_echo "$ac_try_echo"; } >&5
5665   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5666   ac_status=$?
5667   if test -s conftest.err; then
5668     sed '10a\
5669 ... rest of stderr output deleted ...
5670          10q' conftest.err >conftest.er1
5671     cat conftest.er1 >&5
5672   fi
5673   rm -f conftest.er1 conftest.err
5674   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5675   test $ac_status = 0; }
5676 done
5677
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5
5679 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
5680 if ${ac_cv_objc_compiler_gnu+:} false; then :
5681   $as_echo_n "(cached) " >&6
5682 else
5683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684 /* end confdefs.h.  */
5685
5686 int
5687 main ()
5688 {
5689 #ifndef __GNUC__
5690        choke me
5691 #endif
5692
5693   ;
5694   return 0;
5695 }
5696 _ACEOF
5697 if ac_fn_objc_try_compile "$LINENO"; then :
5698   ac_compiler_gnu=yes
5699 else
5700   ac_compiler_gnu=no
5701 fi
5702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5703 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
5704
5705 fi
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5
5707 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
5708 if test $ac_compiler_gnu = yes; then
5709   GOBJC=yes
5710 else
5711   GOBJC=
5712 fi
5713 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
5714 ac_save_OBJCFLAGS=$OBJCFLAGS
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5
5716 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
5717 if ${ac_cv_prog_objc_g+:} false; then :
5718   $as_echo_n "(cached) " >&6
5719 else
5720   ac_save_objc_werror_flag=$ac_objc_werror_flag
5721    ac_objc_werror_flag=yes
5722    ac_cv_prog_objc_g=no
5723    OBJCFLAGS="-g"
5724    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5725 /* end confdefs.h.  */
5726
5727 int
5728 main ()
5729 {
5730
5731   ;
5732   return 0;
5733 }
5734 _ACEOF
5735 if ac_fn_objc_try_compile "$LINENO"; then :
5736   ac_cv_prog_objc_g=yes
5737 else
5738   OBJCFLAGS=""
5739       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5740 /* end confdefs.h.  */
5741
5742 int
5743 main ()
5744 {
5745
5746   ;
5747   return 0;
5748 }
5749 _ACEOF
5750 if ac_fn_objc_try_compile "$LINENO"; then :
5751
5752 else
5753   ac_objc_werror_flag=$ac_save_objc_werror_flag
5754          OBJCFLAGS="-g"
5755          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756 /* end confdefs.h.  */
5757
5758 int
5759 main ()
5760 {
5761
5762   ;
5763   return 0;
5764 }
5765 _ACEOF
5766 if ac_fn_objc_try_compile "$LINENO"; then :
5767   ac_cv_prog_objc_g=yes
5768 fi
5769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5770 fi
5771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5772 fi
5773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5774    ac_objc_werror_flag=$ac_save_objc_werror_flag
5775 fi
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5
5777 $as_echo "$ac_cv_prog_objc_g" >&6; }
5778 if test "$ac_test_OBJCFLAGS" = set; then
5779   OBJCFLAGS=$ac_save_OBJCFLAGS
5780 elif test $ac_cv_prog_objc_g = yes; then
5781   if test "$GOBJC" = yes; then
5782     OBJCFLAGS="-g -O2"
5783   else
5784     OBJCFLAGS="-g"
5785   fi
5786 else
5787   if test "$GOBJC" = yes; then
5788     OBJCFLAGS="-O2"
5789   else
5790     OBJCFLAGS=
5791   fi
5792 fi
5793 ac_ext=c
5794 ac_cpp='$CPP $CPPFLAGS'
5795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5798
5799 depcc="$OBJC" am_compiler_list='gcc3 gcc'
5800
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5802 $as_echo_n "checking dependency style of $depcc... " >&6; }
5803 if ${am_cv_OBJC_dependencies_compiler_type+:} false; then :
5804   $as_echo_n "(cached) " >&6
5805 else
5806   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5807   # We make a subdir and do the tests there.  Otherwise we can end up
5808   # making bogus files that we don't know about and never remove.  For
5809   # instance it was reported that on HP-UX the gcc test will end up
5810   # making a dummy file named `D' -- because `-MD' means `put the output
5811   # in D'.
5812   mkdir conftest.dir
5813   # Copy depcomp to subdir because otherwise we won't find it if we're
5814   # using a relative directory.
5815   cp "$am_depcomp" conftest.dir
5816   cd conftest.dir
5817   # We will build objects and dependencies in a subdirectory because
5818   # it helps to detect inapplicable dependency modes.  For instance
5819   # both Tru64's cc and ICC support -MD to output dependencies as a
5820   # side effect of compilation, but ICC will put the dependencies in
5821   # the current directory while Tru64 will put them in the object
5822   # directory.
5823   mkdir sub
5824
5825   am_cv_OBJC_dependencies_compiler_type=none
5826   if test "$am_compiler_list" = ""; then
5827      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5828   fi
5829   am__universal=false
5830
5831
5832   for depmode in $am_compiler_list; do
5833     # Setup a source with many dependencies, because some compilers
5834     # like to wrap large dependency lists on column 80 (with \), and
5835     # we should not choose a depcomp mode which is confused by this.
5836     #
5837     # We need to recreate these files for each test, as the compiler may
5838     # overwrite some of them when testing with obscure command lines.
5839     # This happens at least with the AIX C compiler.
5840     : > sub/conftest.c
5841     for i in 1 2 3 4 5 6; do
5842       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5843       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5844       # Solaris 8's {/usr,}/bin/sh.
5845       touch sub/conftst$i.h
5846     done
5847     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5848
5849     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5850     # mode.  It turns out that the SunPro C++ compiler does not properly
5851     # handle `-M -o', and we need to detect this.  Also, some Intel
5852     # versions had trouble with output in subdirs
5853     am__obj=sub/conftest.${OBJEXT-o}
5854     am__minus_obj="-o $am__obj"
5855     case $depmode in
5856     gcc)
5857       # This depmode causes a compiler race in universal mode.
5858       test "$am__universal" = false || continue
5859       ;;
5860     nosideeffect)
5861       # after this tag, mechanisms are not by side-effect, so they'll
5862       # only be used when explicitly requested
5863       if test "x$enable_dependency_tracking" = xyes; then
5864         continue
5865       else
5866         break
5867       fi
5868       ;;
5869     msvisualcpp | msvcmsys)
5870       # This compiler won't grok `-c -o', but also, the minuso test has
5871       # not run yet.  These depmodes are late enough in the game, and
5872       # so weak that their functioning should not be impacted.
5873       am__obj=conftest.${OBJEXT-o}
5874       am__minus_obj=
5875       ;;
5876     none) break ;;
5877     esac
5878     if depmode=$depmode \
5879        source=sub/conftest.c object=$am__obj \
5880        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5881        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5882          >/dev/null 2>conftest.err &&
5883        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5884        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5885        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5886        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5887       # icc doesn't choke on unknown options, it will just issue warnings
5888       # or remarks (even with -Werror).  So we grep stderr for any message
5889       # that says an option was ignored or not supported.
5890       # When given -MP, icc 7.0 and 7.1 complain thusly:
5891       #   icc: Command line warning: ignoring option '-M'; no argument required
5892       # The diagnosis changed in icc 8.0:
5893       #   icc: Command line remark: option '-MP' not supported
5894       if (grep 'ignoring option' conftest.err ||
5895           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5896         am_cv_OBJC_dependencies_compiler_type=$depmode
5897         break
5898       fi
5899     fi
5900   done
5901
5902   cd ..
5903   rm -rf conftest.dir
5904 else
5905   am_cv_OBJC_dependencies_compiler_type=none
5906 fi
5907
5908 fi
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5
5910 $as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; }
5911 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
5912
5913  if
5914   test "x$enable_dependency_tracking" != xno \
5915   && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
5916   am__fastdepOBJC_TRUE=
5917   am__fastdepOBJC_FALSE='#'
5918 else
5919   am__fastdepOBJC_TRUE='#'
5920   am__fastdepOBJC_FALSE=
5921 fi
5922
5923
5924 ac_ext=c
5925 ac_cpp='$CPP $CPPFLAGS'
5926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5929 if test -n "$ac_tool_prefix"; then
5930   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5931 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5933 $as_echo_n "checking for $ac_word... " >&6; }
5934 if ${ac_cv_prog_CC+:} false; then :
5935   $as_echo_n "(cached) " >&6
5936 else
5937   if test -n "$CC"; then
5938   ac_cv_prog_CC="$CC" # Let the user override the test.
5939 else
5940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941 for as_dir in $PATH
5942 do
5943   IFS=$as_save_IFS
5944   test -z "$as_dir" && as_dir=.
5945     for ac_exec_ext in '' $ac_executable_extensions; do
5946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5947     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5949     break 2
5950   fi
5951 done
5952   done
5953 IFS=$as_save_IFS
5954
5955 fi
5956 fi
5957 CC=$ac_cv_prog_CC
5958 if test -n "$CC"; then
5959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5960 $as_echo "$CC" >&6; }
5961 else
5962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5963 $as_echo "no" >&6; }
5964 fi
5965
5966
5967 fi
5968 if test -z "$ac_cv_prog_CC"; then
5969   ac_ct_CC=$CC
5970   # Extract the first word of "gcc", so it can be a program name with args.
5971 set dummy gcc; ac_word=$2
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5973 $as_echo_n "checking for $ac_word... " >&6; }
5974 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5975   $as_echo_n "(cached) " >&6
5976 else
5977   if test -n "$ac_ct_CC"; then
5978   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5979 else
5980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981 for as_dir in $PATH
5982 do
5983   IFS=$as_save_IFS
5984   test -z "$as_dir" && as_dir=.
5985     for ac_exec_ext in '' $ac_executable_extensions; do
5986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5987     ac_cv_prog_ac_ct_CC="gcc"
5988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5989     break 2
5990   fi
5991 done
5992   done
5993 IFS=$as_save_IFS
5994
5995 fi
5996 fi
5997 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5998 if test -n "$ac_ct_CC"; then
5999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6000 $as_echo "$ac_ct_CC" >&6; }
6001 else
6002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6003 $as_echo "no" >&6; }
6004 fi
6005
6006   if test "x$ac_ct_CC" = x; then
6007     CC=""
6008   else
6009     case $cross_compiling:$ac_tool_warned in
6010 yes:)
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6012 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6013 ac_tool_warned=yes ;;
6014 esac
6015     CC=$ac_ct_CC
6016   fi
6017 else
6018   CC="$ac_cv_prog_CC"
6019 fi
6020
6021 if test -z "$CC"; then
6022           if test -n "$ac_tool_prefix"; then
6023     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6024 set dummy ${ac_tool_prefix}cc; ac_word=$2
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6026 $as_echo_n "checking for $ac_word... " >&6; }
6027 if ${ac_cv_prog_CC+:} false; then :
6028   $as_echo_n "(cached) " >&6
6029 else
6030   if test -n "$CC"; then
6031   ac_cv_prog_CC="$CC" # Let the user override the test.
6032 else
6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034 for as_dir in $PATH
6035 do
6036   IFS=$as_save_IFS
6037   test -z "$as_dir" && as_dir=.
6038     for ac_exec_ext in '' $ac_executable_extensions; do
6039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6040     ac_cv_prog_CC="${ac_tool_prefix}cc"
6041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6042     break 2
6043   fi
6044 done
6045   done
6046 IFS=$as_save_IFS
6047
6048 fi
6049 fi
6050 CC=$ac_cv_prog_CC
6051 if test -n "$CC"; then
6052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6053 $as_echo "$CC" >&6; }
6054 else
6055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6056 $as_echo "no" >&6; }
6057 fi
6058
6059
6060   fi
6061 fi
6062 if test -z "$CC"; then
6063   # Extract the first word of "cc", so it can be a program name with args.
6064 set dummy cc; ac_word=$2
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6066 $as_echo_n "checking for $ac_word... " >&6; }
6067 if ${ac_cv_prog_CC+:} false; then :
6068   $as_echo_n "(cached) " >&6
6069 else
6070   if test -n "$CC"; then
6071   ac_cv_prog_CC="$CC" # Let the user override the test.
6072 else
6073   ac_prog_rejected=no
6074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075 for as_dir in $PATH
6076 do
6077   IFS=$as_save_IFS
6078   test -z "$as_dir" && as_dir=.
6079     for ac_exec_ext in '' $ac_executable_extensions; do
6080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6081     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6082        ac_prog_rejected=yes
6083        continue
6084      fi
6085     ac_cv_prog_CC="cc"
6086     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6087     break 2
6088   fi
6089 done
6090   done
6091 IFS=$as_save_IFS
6092
6093 if test $ac_prog_rejected = yes; then
6094   # We found a bogon in the path, so make sure we never use it.
6095   set dummy $ac_cv_prog_CC
6096   shift
6097   if test $# != 0; then
6098     # We chose a different compiler from the bogus one.
6099     # However, it has the same basename, so the bogon will be chosen
6100     # first if we set CC to just the basename; use the full file name.
6101     shift
6102     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6103   fi
6104 fi
6105 fi
6106 fi
6107 CC=$ac_cv_prog_CC
6108 if test -n "$CC"; then
6109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6110 $as_echo "$CC" >&6; }
6111 else
6112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6113 $as_echo "no" >&6; }
6114 fi
6115
6116
6117 fi
6118 if test -z "$CC"; then
6119   if test -n "$ac_tool_prefix"; then
6120   for ac_prog in cl.exe
6121   do
6122     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6123 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6125 $as_echo_n "checking for $ac_word... " >&6; }
6126 if ${ac_cv_prog_CC+:} false; then :
6127   $as_echo_n "(cached) " >&6
6128 else
6129   if test -n "$CC"; then
6130   ac_cv_prog_CC="$CC" # Let the user override the test.
6131 else
6132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6133 for as_dir in $PATH
6134 do
6135   IFS=$as_save_IFS
6136   test -z "$as_dir" && as_dir=.
6137     for ac_exec_ext in '' $ac_executable_extensions; do
6138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6139     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6141     break 2
6142   fi
6143 done
6144   done
6145 IFS=$as_save_IFS
6146
6147 fi
6148 fi
6149 CC=$ac_cv_prog_CC
6150 if test -n "$CC"; then
6151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6152 $as_echo "$CC" >&6; }
6153 else
6154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6155 $as_echo "no" >&6; }
6156 fi
6157
6158
6159     test -n "$CC" && break
6160   done
6161 fi
6162 if test -z "$CC"; then
6163   ac_ct_CC=$CC
6164   for ac_prog in cl.exe
6165 do
6166   # Extract the first word of "$ac_prog", so it can be a program name with args.
6167 set dummy $ac_prog; ac_word=$2
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6169 $as_echo_n "checking for $ac_word... " >&6; }
6170 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6171   $as_echo_n "(cached) " >&6
6172 else
6173   if test -n "$ac_ct_CC"; then
6174   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6175 else
6176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177 for as_dir in $PATH
6178 do
6179   IFS=$as_save_IFS
6180   test -z "$as_dir" && as_dir=.
6181     for ac_exec_ext in '' $ac_executable_extensions; do
6182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6183     ac_cv_prog_ac_ct_CC="$ac_prog"
6184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6185     break 2
6186   fi
6187 done
6188   done
6189 IFS=$as_save_IFS
6190
6191 fi
6192 fi
6193 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6194 if test -n "$ac_ct_CC"; then
6195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6196 $as_echo "$ac_ct_CC" >&6; }
6197 else
6198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6199 $as_echo "no" >&6; }
6200 fi
6201
6202
6203   test -n "$ac_ct_CC" && break
6204 done
6205
6206   if test "x$ac_ct_CC" = x; then
6207     CC=""
6208   else
6209     case $cross_compiling:$ac_tool_warned in
6210 yes:)
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6213 ac_tool_warned=yes ;;
6214 esac
6215     CC=$ac_ct_CC
6216   fi
6217 fi
6218
6219 fi
6220
6221
6222 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6224 as_fn_error $? "no acceptable C compiler found in \$PATH
6225 See \`config.log' for more details" "$LINENO" 5; }
6226
6227 # Provide some information about the compiler.
6228 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6229 set X $ac_compile
6230 ac_compiler=$2
6231 for ac_option in --version -v -V -qversion; do
6232   { { ac_try="$ac_compiler $ac_option >&5"
6233 case "(($ac_try" in
6234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6235   *) ac_try_echo=$ac_try;;
6236 esac
6237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6238 $as_echo "$ac_try_echo"; } >&5
6239   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6240   ac_status=$?
6241   if test -s conftest.err; then
6242     sed '10a\
6243 ... rest of stderr output deleted ...
6244          10q' conftest.err >conftest.er1
6245     cat conftest.er1 >&5
6246   fi
6247   rm -f conftest.er1 conftest.err
6248   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6249   test $ac_status = 0; }
6250 done
6251
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6253 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6254 if ${ac_cv_c_compiler_gnu+:} false; then :
6255   $as_echo_n "(cached) " >&6
6256 else
6257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6258 /* end confdefs.h.  */
6259
6260 int
6261 main ()
6262 {
6263 #ifndef __GNUC__
6264        choke me
6265 #endif
6266
6267   ;
6268   return 0;
6269 }
6270 _ACEOF
6271 if ac_fn_c_try_compile "$LINENO"; then :
6272   ac_compiler_gnu=yes
6273 else
6274   ac_compiler_gnu=no
6275 fi
6276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6277 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6278
6279 fi
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6281 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6282 if test $ac_compiler_gnu = yes; then
6283   GCC=yes
6284 else
6285   GCC=
6286 fi
6287 ac_test_CFLAGS=${CFLAGS+set}
6288 ac_save_CFLAGS=$CFLAGS
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6290 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6291 if ${ac_cv_prog_cc_g+:} false; then :
6292   $as_echo_n "(cached) " >&6
6293 else
6294   ac_save_c_werror_flag=$ac_c_werror_flag
6295    ac_c_werror_flag=yes
6296    ac_cv_prog_cc_g=no
6297    CFLAGS="-g"
6298    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6299 /* end confdefs.h.  */
6300
6301 int
6302 main ()
6303 {
6304
6305   ;
6306   return 0;
6307 }
6308 _ACEOF
6309 if ac_fn_c_try_compile "$LINENO"; then :
6310   ac_cv_prog_cc_g=yes
6311 else
6312   CFLAGS=""
6313       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6314 /* end confdefs.h.  */
6315
6316 int
6317 main ()
6318 {
6319
6320   ;
6321   return 0;
6322 }
6323 _ACEOF
6324 if ac_fn_c_try_compile "$LINENO"; then :
6325
6326 else
6327   ac_c_werror_flag=$ac_save_c_werror_flag
6328          CFLAGS="-g"
6329          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6330 /* end confdefs.h.  */
6331
6332 int
6333 main ()
6334 {
6335
6336   ;
6337   return 0;
6338 }
6339 _ACEOF
6340 if ac_fn_c_try_compile "$LINENO"; then :
6341   ac_cv_prog_cc_g=yes
6342 fi
6343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6344 fi
6345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6346 fi
6347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6348    ac_c_werror_flag=$ac_save_c_werror_flag
6349 fi
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6351 $as_echo "$ac_cv_prog_cc_g" >&6; }
6352 if test "$ac_test_CFLAGS" = set; then
6353   CFLAGS=$ac_save_CFLAGS
6354 elif test $ac_cv_prog_cc_g = yes; then
6355   if test "$GCC" = yes; then
6356     CFLAGS="-g -O2"
6357   else
6358     CFLAGS="-g"
6359   fi
6360 else
6361   if test "$GCC" = yes; then
6362     CFLAGS="-O2"
6363   else
6364     CFLAGS=
6365   fi
6366 fi
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6368 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6369 if ${ac_cv_prog_cc_c89+:} false; then :
6370   $as_echo_n "(cached) " >&6
6371 else
6372   ac_cv_prog_cc_c89=no
6373 ac_save_CC=$CC
6374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6375 /* end confdefs.h.  */
6376 #include <stdarg.h>
6377 #include <stdio.h>
6378 #include <sys/types.h>
6379 #include <sys/stat.h>
6380 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6381 struct buf { int x; };
6382 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6383 static char *e (p, i)
6384      char **p;
6385      int i;
6386 {
6387   return p[i];
6388 }
6389 static char *f (char * (*g) (char **, int), char **p, ...)
6390 {
6391   char *s;
6392   va_list v;
6393   va_start (v,p);
6394   s = g (p, va_arg (v,int));
6395   va_end (v);
6396   return s;
6397 }
6398
6399 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6400    function prototypes and stuff, but not '\xHH' hex character constants.
6401    These don't provoke an error unfortunately, instead are silently treated
6402    as 'x'.  The following induces an error, until -std is added to get
6403    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6404    array size at least.  It's necessary to write '\x00'==0 to get something
6405    that's true only with -std.  */
6406 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6407
6408 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6409    inside strings and character constants.  */
6410 #define FOO(x) 'x'
6411 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6412
6413 int test (int i, double x);
6414 struct s1 {int (*f) (int a);};
6415 struct s2 {int (*f) (double a);};
6416 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6417 int argc;
6418 char **argv;
6419 int
6420 main ()
6421 {
6422 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6423   ;
6424   return 0;
6425 }
6426 _ACEOF
6427 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6428         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6429 do
6430   CC="$ac_save_CC $ac_arg"
6431   if ac_fn_c_try_compile "$LINENO"; then :
6432   ac_cv_prog_cc_c89=$ac_arg
6433 fi
6434 rm -f core conftest.err conftest.$ac_objext
6435   test "x$ac_cv_prog_cc_c89" != "xno" && break
6436 done
6437 rm -f conftest.$ac_ext
6438 CC=$ac_save_CC
6439
6440 fi
6441 # AC_CACHE_VAL
6442 case "x$ac_cv_prog_cc_c89" in
6443   x)
6444     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6445 $as_echo "none needed" >&6; } ;;
6446   xno)
6447     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6448 $as_echo "unsupported" >&6; } ;;
6449   *)
6450     CC="$CC $ac_cv_prog_cc_c89"
6451     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6452 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6453 esac
6454 if test "x$ac_cv_prog_cc_c89" != xno; then :
6455
6456 fi
6457
6458 ac_ext=c
6459 ac_cpp='$CPP $CPPFLAGS'
6460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6463
6464 depcc="$CC"   am_compiler_list=
6465
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6467 $as_echo_n "checking dependency style of $depcc... " >&6; }
6468 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6469   $as_echo_n "(cached) " >&6
6470 else
6471   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6472   # We make a subdir and do the tests there.  Otherwise we can end up
6473   # making bogus files that we don't know about and never remove.  For
6474   # instance it was reported that on HP-UX the gcc test will end up
6475   # making a dummy file named `D' -- because `-MD' means `put the output
6476   # in D'.
6477   mkdir conftest.dir
6478   # Copy depcomp to subdir because otherwise we won't find it if we're
6479   # using a relative directory.
6480   cp "$am_depcomp" conftest.dir
6481   cd conftest.dir
6482   # We will build objects and dependencies in a subdirectory because
6483   # it helps to detect inapplicable dependency modes.  For instance
6484   # both Tru64's cc and ICC support -MD to output dependencies as a
6485   # side effect of compilation, but ICC will put the dependencies in
6486   # the current directory while Tru64 will put them in the object
6487   # directory.
6488   mkdir sub
6489
6490   am_cv_CC_dependencies_compiler_type=none
6491   if test "$am_compiler_list" = ""; then
6492      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6493   fi
6494   am__universal=false
6495   case " $depcc " in #(
6496      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6497      esac
6498
6499   for depmode in $am_compiler_list; do
6500     # Setup a source with many dependencies, because some compilers
6501     # like to wrap large dependency lists on column 80 (with \), and
6502     # we should not choose a depcomp mode which is confused by this.
6503     #
6504     # We need to recreate these files for each test, as the compiler may
6505     # overwrite some of them when testing with obscure command lines.
6506     # This happens at least with the AIX C compiler.
6507     : > sub/conftest.c
6508     for i in 1 2 3 4 5 6; do
6509       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6510       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6511       # Solaris 8's {/usr,}/bin/sh.
6512       touch sub/conftst$i.h
6513     done
6514     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6515
6516     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6517     # mode.  It turns out that the SunPro C++ compiler does not properly
6518     # handle `-M -o', and we need to detect this.  Also, some Intel
6519     # versions had trouble with output in subdirs
6520     am__obj=sub/conftest.${OBJEXT-o}
6521     am__minus_obj="-o $am__obj"
6522     case $depmode in
6523     gcc)
6524       # This depmode causes a compiler race in universal mode.
6525       test "$am__universal" = false || continue
6526       ;;
6527     nosideeffect)
6528       # after this tag, mechanisms are not by side-effect, so they'll
6529       # only be used when explicitly requested
6530       if test "x$enable_dependency_tracking" = xyes; then
6531         continue
6532       else
6533         break
6534       fi
6535       ;;
6536     msvisualcpp | msvcmsys)
6537       # This compiler won't grok `-c -o', but also, the minuso test has
6538       # not run yet.  These depmodes are late enough in the game, and
6539       # so weak that their functioning should not be impacted.
6540       am__obj=conftest.${OBJEXT-o}
6541       am__minus_obj=
6542       ;;
6543     none) break ;;
6544     esac
6545     if depmode=$depmode \
6546        source=sub/conftest.c object=$am__obj \
6547        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6548        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6549          >/dev/null 2>conftest.err &&
6550        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6551        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6552        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6553        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6554       # icc doesn't choke on unknown options, it will just issue warnings
6555       # or remarks (even with -Werror).  So we grep stderr for any message
6556       # that says an option was ignored or not supported.
6557       # When given -MP, icc 7.0 and 7.1 complain thusly:
6558       #   icc: Command line warning: ignoring option '-M'; no argument required
6559       # The diagnosis changed in icc 8.0:
6560       #   icc: Command line remark: option '-MP' not supported
6561       if (grep 'ignoring option' conftest.err ||
6562           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6563         am_cv_CC_dependencies_compiler_type=$depmode
6564         break
6565       fi
6566     fi
6567   done
6568
6569   cd ..
6570   rm -rf conftest.dir
6571 else
6572   am_cv_CC_dependencies_compiler_type=none
6573 fi
6574
6575 fi
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6577 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6578 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6579
6580  if
6581   test "x$enable_dependency_tracking" != xno \
6582   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6583   am__fastdepCC_TRUE=
6584   am__fastdepCC_FALSE='#'
6585 else
6586   am__fastdepCC_TRUE='#'
6587   am__fastdepCC_FALSE=
6588 fi
6589
6590
6591 ac_ext=m
6592 ac_cpp='$OBJCPP $CPPFLAGS'
6593 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6594 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6595 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
6596 if test -n "$ac_tool_prefix"; then
6597   for ac_prog in gcc objcc objc cc CC
6598   do
6599     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6600 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6602 $as_echo_n "checking for $ac_word... " >&6; }
6603 if ${ac_cv_prog_OBJC+:} false; then :
6604   $as_echo_n "(cached) " >&6
6605 else
6606   if test -n "$OBJC"; then
6607   ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
6608 else
6609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610 for as_dir in $PATH
6611 do
6612   IFS=$as_save_IFS
6613   test -z "$as_dir" && as_dir=.
6614     for ac_exec_ext in '' $ac_executable_extensions; do
6615   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6616     ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
6617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6618     break 2
6619   fi
6620 done
6621   done
6622 IFS=$as_save_IFS
6623
6624 fi
6625 fi
6626 OBJC=$ac_cv_prog_OBJC
6627 if test -n "$OBJC"; then
6628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5
6629 $as_echo "$OBJC" >&6; }
6630 else
6631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6632 $as_echo "no" >&6; }
6633 fi
6634
6635
6636     test -n "$OBJC" && break
6637   done
6638 fi
6639 if test -z "$OBJC"; then
6640   ac_ct_OBJC=$OBJC
6641   for ac_prog in gcc objcc objc cc CC
6642 do
6643   # Extract the first word of "$ac_prog", so it can be a program name with args.
6644 set dummy $ac_prog; ac_word=$2
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6646 $as_echo_n "checking for $ac_word... " >&6; }
6647 if ${ac_cv_prog_ac_ct_OBJC+:} false; then :
6648   $as_echo_n "(cached) " >&6
6649 else
6650   if test -n "$ac_ct_OBJC"; then
6651   ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
6652 else
6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654 for as_dir in $PATH
6655 do
6656   IFS=$as_save_IFS
6657   test -z "$as_dir" && as_dir=.
6658     for ac_exec_ext in '' $ac_executable_extensions; do
6659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6660     ac_cv_prog_ac_ct_OBJC="$ac_prog"
6661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6662     break 2
6663   fi
6664 done
6665   done
6666 IFS=$as_save_IFS
6667
6668 fi
6669 fi
6670 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
6671 if test -n "$ac_ct_OBJC"; then
6672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5
6673 $as_echo "$ac_ct_OBJC" >&6; }
6674 else
6675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6676 $as_echo "no" >&6; }
6677 fi
6678
6679
6680   test -n "$ac_ct_OBJC" && break
6681 done
6682
6683   if test "x$ac_ct_OBJC" = x; then
6684     OBJC="gcc"
6685   else
6686     case $cross_compiling:$ac_tool_warned in
6687 yes:)
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6690 ac_tool_warned=yes ;;
6691 esac
6692     OBJC=$ac_ct_OBJC
6693   fi
6694 fi
6695
6696 # Provide some information about the compiler.
6697 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5
6698 set X $ac_compile
6699 ac_compiler=$2
6700 for ac_option in --version -v -V -qversion; do
6701   { { ac_try="$ac_compiler $ac_option >&5"
6702 case "(($ac_try" in
6703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6704   *) ac_try_echo=$ac_try;;
6705 esac
6706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6707 $as_echo "$ac_try_echo"; } >&5
6708   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6709   ac_status=$?
6710   if test -s conftest.err; then
6711     sed '10a\
6712 ... rest of stderr output deleted ...
6713          10q' conftest.err >conftest.er1
6714     cat conftest.er1 >&5
6715   fi
6716   rm -f conftest.er1 conftest.err
6717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6718   test $ac_status = 0; }
6719 done
6720
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5
6722 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
6723 if ${ac_cv_objc_compiler_gnu+:} false; then :
6724   $as_echo_n "(cached) " >&6
6725 else
6726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6727 /* end confdefs.h.  */
6728
6729 int
6730 main ()
6731 {
6732 #ifndef __GNUC__
6733        choke me
6734 #endif
6735
6736   ;
6737   return 0;
6738 }
6739 _ACEOF
6740 if ac_fn_objc_try_compile "$LINENO"; then :
6741   ac_compiler_gnu=yes
6742 else
6743   ac_compiler_gnu=no
6744 fi
6745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6746 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
6747
6748 fi
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5
6750 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
6751 if test $ac_compiler_gnu = yes; then
6752   GOBJC=yes
6753 else
6754   GOBJC=
6755 fi
6756 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
6757 ac_save_OBJCFLAGS=$OBJCFLAGS
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5
6759 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
6760 if ${ac_cv_prog_objc_g+:} false; then :
6761   $as_echo_n "(cached) " >&6
6762 else
6763   ac_save_objc_werror_flag=$ac_objc_werror_flag
6764    ac_objc_werror_flag=yes
6765    ac_cv_prog_objc_g=no
6766    OBJCFLAGS="-g"
6767    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6768 /* end confdefs.h.  */
6769
6770 int
6771 main ()
6772 {
6773
6774   ;
6775   return 0;
6776 }
6777 _ACEOF
6778 if ac_fn_objc_try_compile "$LINENO"; then :
6779   ac_cv_prog_objc_g=yes
6780 else
6781   OBJCFLAGS=""
6782       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783 /* end confdefs.h.  */
6784
6785 int
6786 main ()
6787 {
6788
6789   ;
6790   return 0;
6791 }
6792 _ACEOF
6793 if ac_fn_objc_try_compile "$LINENO"; then :
6794
6795 else
6796   ac_objc_werror_flag=$ac_save_objc_werror_flag
6797          OBJCFLAGS="-g"
6798          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799 /* end confdefs.h.  */
6800
6801 int
6802 main ()
6803 {
6804
6805   ;
6806   return 0;
6807 }
6808 _ACEOF
6809 if ac_fn_objc_try_compile "$LINENO"; then :
6810   ac_cv_prog_objc_g=yes
6811 fi
6812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6813 fi
6814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6815 fi
6816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6817    ac_objc_werror_flag=$ac_save_objc_werror_flag
6818 fi
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5
6820 $as_echo "$ac_cv_prog_objc_g" >&6; }
6821 if test "$ac_test_OBJCFLAGS" = set; then
6822   OBJCFLAGS=$ac_save_OBJCFLAGS
6823 elif test $ac_cv_prog_objc_g = yes; then
6824   if test "$GOBJC" = yes; then
6825     OBJCFLAGS="-g -O2"
6826   else
6827     OBJCFLAGS="-g"
6828   fi
6829 else
6830   if test "$GOBJC" = yes; then
6831     OBJCFLAGS="-O2"
6832   else
6833     OBJCFLAGS=
6834   fi
6835 fi
6836 ac_ext=c
6837 ac_cpp='$CPP $CPPFLAGS'
6838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6841
6842 depcc="$OBJC" am_compiler_list='gcc3 gcc'
6843
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6845 $as_echo_n "checking dependency style of $depcc... " >&6; }
6846 if ${am_cv_OBJC_dependencies_compiler_type+:} false; then :
6847   $as_echo_n "(cached) " >&6
6848 else
6849   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6850   # We make a subdir and do the tests there.  Otherwise we can end up
6851   # making bogus files that we don't know about and never remove.  For
6852   # instance it was reported that on HP-UX the gcc test will end up
6853   # making a dummy file named `D' -- because `-MD' means `put the output
6854   # in D'.
6855   mkdir conftest.dir
6856   # Copy depcomp to subdir because otherwise we won't find it if we're
6857   # using a relative directory.
6858   cp "$am_depcomp" conftest.dir
6859   cd conftest.dir
6860   # We will build objects and dependencies in a subdirectory because
6861   # it helps to detect inapplicable dependency modes.  For instance
6862   # both Tru64's cc and ICC support -MD to output dependencies as a
6863   # side effect of compilation, but ICC will put the dependencies in
6864   # the current directory while Tru64 will put them in the object
6865   # directory.
6866   mkdir sub
6867
6868   am_cv_OBJC_dependencies_compiler_type=none
6869   if test "$am_compiler_list" = ""; then
6870      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6871   fi
6872   am__universal=false
6873
6874
6875   for depmode in $am_compiler_list; do
6876     # Setup a source with many dependencies, because some compilers
6877     # like to wrap large dependency lists on column 80 (with \), and
6878     # we should not choose a depcomp mode which is confused by this.
6879     #
6880     # We need to recreate these files for each test, as the compiler may
6881     # overwrite some of them when testing with obscure command lines.
6882     # This happens at least with the AIX C compiler.
6883     : > sub/conftest.c
6884     for i in 1 2 3 4 5 6; do
6885       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6886       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6887       # Solaris 8's {/usr,}/bin/sh.
6888       touch sub/conftst$i.h
6889     done
6890     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6891
6892     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6893     # mode.  It turns out that the SunPro C++ compiler does not properly
6894     # handle `-M -o', and we need to detect this.  Also, some Intel
6895     # versions had trouble with output in subdirs
6896     am__obj=sub/conftest.${OBJEXT-o}
6897     am__minus_obj="-o $am__obj"
6898     case $depmode in
6899     gcc)
6900       # This depmode causes a compiler race in universal mode.
6901       test "$am__universal" = false || continue
6902       ;;
6903     nosideeffect)
6904       # after this tag, mechanisms are not by side-effect, so they'll
6905       # only be used when explicitly requested
6906       if test "x$enable_dependency_tracking" = xyes; then
6907         continue
6908       else
6909         break
6910       fi
6911       ;;
6912     msvisualcpp | msvcmsys)
6913       # This compiler won't grok `-c -o', but also, the minuso test has
6914       # not run yet.  These depmodes are late enough in the game, and
6915       # so weak that their functioning should not be impacted.
6916       am__obj=conftest.${OBJEXT-o}
6917       am__minus_obj=
6918       ;;
6919     none) break ;;
6920     esac
6921     if depmode=$depmode \
6922        source=sub/conftest.c object=$am__obj \
6923        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6924        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6925          >/dev/null 2>conftest.err &&
6926        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6927        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6928        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6929        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6930       # icc doesn't choke on unknown options, it will just issue warnings
6931       # or remarks (even with -Werror).  So we grep stderr for any message
6932       # that says an option was ignored or not supported.
6933       # When given -MP, icc 7.0 and 7.1 complain thusly:
6934       #   icc: Command line warning: ignoring option '-M'; no argument required
6935       # The diagnosis changed in icc 8.0:
6936       #   icc: Command line remark: option '-MP' not supported
6937       if (grep 'ignoring option' conftest.err ||
6938           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6939         am_cv_OBJC_dependencies_compiler_type=$depmode
6940         break
6941       fi
6942     fi
6943   done
6944
6945   cd ..
6946   rm -rf conftest.dir
6947 else
6948   am_cv_OBJC_dependencies_compiler_type=none
6949 fi
6950
6951 fi
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5
6953 $as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; }
6954 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
6955
6956  if
6957   test "x$enable_dependency_tracking" != xno \
6958   && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
6959   am__fastdepOBJC_TRUE=
6960   am__fastdepOBJC_FALSE='#'
6961 else
6962   am__fastdepOBJC_TRUE='#'
6963   am__fastdepOBJC_FALSE=
6964 fi
6965
6966
6967
6968
6969 if eval "test x`uname` = xDarwin"; then
6970         CFLAGS="$CFLAGS -I/opt/local/include -L/opt/local/lib"
6971 fi
6972 if eval "test x$GCC = xyes"; then
6973         CFLAGS="$CFLAGS -Wall -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE"
6974 fi
6975 if test "x$CC" != xcc; then
6976   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
6977 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
6978 else
6979   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
6980 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
6981 fi
6982 set dummy $CC; ac_cc=`$as_echo "$2" |
6983                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6984 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
6985   $as_echo_n "(cached) " >&6
6986 else
6987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6988 /* end confdefs.h.  */
6989
6990 int
6991 main ()
6992 {
6993
6994   ;
6995   return 0;
6996 }
6997 _ACEOF
6998 # Make sure it works both with $CC and with simple cc.
6999 # We do the test twice because some compilers refuse to overwrite an
7000 # existing .o file with -o, though they will create one.
7001 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7002 rm -f conftest2.*
7003 if { { case "(($ac_try" in
7004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7005   *) ac_try_echo=$ac_try;;
7006 esac
7007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7008 $as_echo "$ac_try_echo"; } >&5
7009   (eval "$ac_try") 2>&5
7010   ac_status=$?
7011   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7012   test $ac_status = 0; } &&
7013    test -f conftest2.$ac_objext && { { case "(($ac_try" in
7014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7015   *) ac_try_echo=$ac_try;;
7016 esac
7017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7018 $as_echo "$ac_try_echo"; } >&5
7019   (eval "$ac_try") 2>&5
7020   ac_status=$?
7021   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7022   test $ac_status = 0; };
7023 then
7024   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7025   if test "x$CC" != xcc; then
7026     # Test first that cc exists at all.
7027     if { ac_try='cc -c conftest.$ac_ext >&5'
7028   { { case "(($ac_try" in
7029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7030   *) ac_try_echo=$ac_try;;
7031 esac
7032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7033 $as_echo "$ac_try_echo"; } >&5
7034   (eval "$ac_try") 2>&5
7035   ac_status=$?
7036   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7037   test $ac_status = 0; }; }; then
7038       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7039       rm -f conftest2.*
7040       if { { case "(($ac_try" in
7041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7042   *) ac_try_echo=$ac_try;;
7043 esac
7044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7045 $as_echo "$ac_try_echo"; } >&5
7046   (eval "$ac_try") 2>&5
7047   ac_status=$?
7048   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7049   test $ac_status = 0; } &&
7050          test -f conftest2.$ac_objext && { { case "(($ac_try" in
7051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7052   *) ac_try_echo=$ac_try;;
7053 esac
7054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7055 $as_echo "$ac_try_echo"; } >&5
7056   (eval "$ac_try") 2>&5
7057   ac_status=$?
7058   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7059   test $ac_status = 0; };
7060       then
7061         # cc works too.
7062         :
7063       else
7064         # cc exists but doesn't like -o.
7065         eval ac_cv_prog_cc_${ac_cc}_c_o=no
7066       fi
7067     fi
7068   fi
7069 else
7070   eval ac_cv_prog_cc_${ac_cc}_c_o=no
7071 fi
7072 rm -f core conftest*
7073
7074 fi
7075 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7077 $as_echo "yes" >&6; }
7078 else
7079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7080 $as_echo "no" >&6; }
7081
7082 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7083
7084 fi
7085
7086 # FIXME: we rely on the cache variable name because
7087 # there is no other way.
7088 set dummy $CC
7089 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7090 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7091 if test "$am_t" != yes; then
7092    # Losing compiler, so override with the script.
7093    # FIXME: It is wrong to rewrite CC.
7094    # But if we don't then we get into trouble of one sort or another.
7095    # A longer-term fix would be to have automake use am__CC in this case,
7096    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7097    CC="$am_aux_dir/compile $CC"
7098 fi
7099
7100
7101
7102 ac_ext=cpp
7103 ac_cpp='$CXXCPP $CPPFLAGS'
7104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7107 if test -z "$CXX"; then
7108   if test -n "$CCC"; then
7109     CXX=$CCC
7110   else
7111     if test -n "$ac_tool_prefix"; then
7112   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7113   do
7114     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7115 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7117 $as_echo_n "checking for $ac_word... " >&6; }
7118 if ${ac_cv_prog_CXX+:} false; then :
7119   $as_echo_n "(cached) " >&6
7120 else
7121   if test -n "$CXX"; then
7122   ac_cv_prog_CXX="$CXX" # Let the user override the test.
7123 else
7124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125 for as_dir in $PATH
7126 do
7127   IFS=$as_save_IFS
7128   test -z "$as_dir" && as_dir=.
7129     for ac_exec_ext in '' $ac_executable_extensions; do
7130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7131     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7133     break 2
7134   fi
7135 done
7136   done
7137 IFS=$as_save_IFS
7138
7139 fi
7140 fi
7141 CXX=$ac_cv_prog_CXX
7142 if test -n "$CXX"; then
7143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7144 $as_echo "$CXX" >&6; }
7145 else
7146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7147 $as_echo "no" >&6; }
7148 fi
7149
7150
7151     test -n "$CXX" && break
7152   done
7153 fi
7154 if test -z "$CXX"; then
7155   ac_ct_CXX=$CXX
7156   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7157 do
7158   # Extract the first word of "$ac_prog", so it can be a program name with args.
7159 set dummy $ac_prog; ac_word=$2
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7161 $as_echo_n "checking for $ac_word... " >&6; }
7162 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
7163   $as_echo_n "(cached) " >&6
7164 else
7165   if test -n "$ac_ct_CXX"; then
7166   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7167 else
7168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169 for as_dir in $PATH
7170 do
7171   IFS=$as_save_IFS
7172   test -z "$as_dir" && as_dir=.
7173     for ac_exec_ext in '' $ac_executable_extensions; do
7174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7175     ac_cv_prog_ac_ct_CXX="$ac_prog"
7176     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7177     break 2
7178   fi
7179 done
7180   done
7181 IFS=$as_save_IFS
7182
7183 fi
7184 fi
7185 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7186 if test -n "$ac_ct_CXX"; then
7187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7188 $as_echo "$ac_ct_CXX" >&6; }
7189 else
7190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7191 $as_echo "no" >&6; }
7192 fi
7193
7194
7195   test -n "$ac_ct_CXX" && break
7196 done
7197
7198   if test "x$ac_ct_CXX" = x; then
7199     CXX="g++"
7200   else
7201     case $cross_compiling:$ac_tool_warned in
7202 yes:)
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7205 ac_tool_warned=yes ;;
7206 esac
7207     CXX=$ac_ct_CXX
7208   fi
7209 fi
7210
7211   fi
7212 fi
7213 # Provide some information about the compiler.
7214 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7215 set X $ac_compile
7216 ac_compiler=$2
7217 for ac_option in --version -v -V -qversion; do
7218   { { ac_try="$ac_compiler $ac_option >&5"
7219 case "(($ac_try" in
7220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7221   *) ac_try_echo=$ac_try;;
7222 esac
7223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7224 $as_echo "$ac_try_echo"; } >&5
7225   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7226   ac_status=$?
7227   if test -s conftest.err; then
7228     sed '10a\
7229 ... rest of stderr output deleted ...
7230          10q' conftest.err >conftest.er1
7231     cat conftest.er1 >&5
7232   fi
7233   rm -f conftest.er1 conftest.err
7234   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7235   test $ac_status = 0; }
7236 done
7237
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7239 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7240 if ${ac_cv_cxx_compiler_gnu+:} false; then :
7241   $as_echo_n "(cached) " >&6
7242 else
7243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7244 /* end confdefs.h.  */
7245
7246 int
7247 main ()
7248 {
7249 #ifndef __GNUC__
7250        choke me
7251 #endif
7252
7253   ;
7254   return 0;
7255 }
7256 _ACEOF
7257 if ac_fn_cxx_try_compile "$LINENO"; then :
7258   ac_compiler_gnu=yes
7259 else
7260   ac_compiler_gnu=no
7261 fi
7262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7263 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7264
7265 fi
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7267 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7268 if test $ac_compiler_gnu = yes; then
7269   GXX=yes
7270 else
7271   GXX=
7272 fi
7273 ac_test_CXXFLAGS=${CXXFLAGS+set}
7274 ac_save_CXXFLAGS=$CXXFLAGS
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7276 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7277 if ${ac_cv_prog_cxx_g+:} false; then :
7278   $as_echo_n "(cached) " >&6
7279 else
7280   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7281    ac_cxx_werror_flag=yes
7282    ac_cv_prog_cxx_g=no
7283    CXXFLAGS="-g"
7284    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285 /* end confdefs.h.  */
7286
7287 int
7288 main ()
7289 {
7290
7291   ;
7292   return 0;
7293 }
7294 _ACEOF
7295 if ac_fn_cxx_try_compile "$LINENO"; then :
7296   ac_cv_prog_cxx_g=yes
7297 else
7298   CXXFLAGS=""
7299       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300 /* end confdefs.h.  */
7301
7302 int
7303 main ()
7304 {
7305
7306   ;
7307   return 0;
7308 }
7309 _ACEOF
7310 if ac_fn_cxx_try_compile "$LINENO"; then :
7311
7312 else
7313   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7314          CXXFLAGS="-g"
7315          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7316 /* end confdefs.h.  */
7317
7318 int
7319 main ()
7320 {
7321
7322   ;
7323   return 0;
7324 }
7325 _ACEOF
7326 if ac_fn_cxx_try_compile "$LINENO"; then :
7327   ac_cv_prog_cxx_g=yes
7328 fi
7329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7330 fi
7331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7332 fi
7333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7334    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7335 fi
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7337 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7338 if test "$ac_test_CXXFLAGS" = set; then
7339   CXXFLAGS=$ac_save_CXXFLAGS
7340 elif test $ac_cv_prog_cxx_g = yes; then
7341   if test "$GXX" = yes; then
7342     CXXFLAGS="-g -O2"
7343   else
7344     CXXFLAGS="-g"
7345   fi
7346 else
7347   if test "$GXX" = yes; then
7348     CXXFLAGS="-O2"
7349   else
7350     CXXFLAGS=
7351   fi
7352 fi
7353 ac_ext=c
7354 ac_cpp='$CPP $CPPFLAGS'
7355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7358
7359 depcc="$CXX"  am_compiler_list=
7360
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7362 $as_echo_n "checking dependency style of $depcc... " >&6; }
7363 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
7364   $as_echo_n "(cached) " >&6
7365 else
7366   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7367   # We make a subdir and do the tests there.  Otherwise we can end up
7368   # making bogus files that we don't know about and never remove.  For
7369   # instance it was reported that on HP-UX the gcc test will end up
7370   # making a dummy file named `D' -- because `-MD' means `put the output
7371   # in D'.
7372   mkdir conftest.dir
7373   # Copy depcomp to subdir because otherwise we won't find it if we're
7374   # using a relative directory.
7375   cp "$am_depcomp" conftest.dir
7376   cd conftest.dir
7377   # We will build objects and dependencies in a subdirectory because
7378   # it helps to detect inapplicable dependency modes.  For instance
7379   # both Tru64's cc and ICC support -MD to output dependencies as a
7380   # side effect of compilation, but ICC will put the dependencies in
7381   # the current directory while Tru64 will put them in the object
7382   # directory.
7383   mkdir sub
7384
7385   am_cv_CXX_dependencies_compiler_type=none
7386   if test "$am_compiler_list" = ""; then
7387      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7388   fi
7389   am__universal=false
7390   case " $depcc " in #(
7391      *\ -arch\ *\ -arch\ *) am__universal=true ;;
7392      esac
7393
7394   for depmode in $am_compiler_list; do
7395     # Setup a source with many dependencies, because some compilers
7396     # like to wrap large dependency lists on column 80 (with \), and
7397     # we should not choose a depcomp mode which is confused by this.
7398     #
7399     # We need to recreate these files for each test, as the compiler may
7400     # overwrite some of them when testing with obscure command lines.
7401     # This happens at least with the AIX C compiler.
7402     : > sub/conftest.c
7403     for i in 1 2 3 4 5 6; do
7404       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7405       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7406       # Solaris 8's {/usr,}/bin/sh.
7407       touch sub/conftst$i.h
7408     done
7409     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7410
7411     # We check with `-c' and `-o' for the sake of the "dashmstdout"
7412     # mode.  It turns out that the SunPro C++ compiler does not properly
7413     # handle `-M -o', and we need to detect this.  Also, some Intel
7414     # versions had trouble with output in subdirs
7415     am__obj=sub/conftest.${OBJEXT-o}
7416     am__minus_obj="-o $am__obj"
7417     case $depmode in
7418     gcc)
7419       # This depmode causes a compiler race in universal mode.
7420       test "$am__universal" = false || continue
7421       ;;
7422     nosideeffect)
7423       # after this tag, mechanisms are not by side-effect, so they'll
7424       # only be used when explicitly requested
7425       if test "x$enable_dependency_tracking" = xyes; then
7426         continue
7427       else
7428         break
7429       fi
7430       ;;
7431     msvisualcpp | msvcmsys)
7432       # This compiler won't grok `-c -o', but also, the minuso test has
7433       # not run yet.  These depmodes are late enough in the game, and
7434       # so weak that their functioning should not be impacted.
7435       am__obj=conftest.${OBJEXT-o}
7436       am__minus_obj=
7437       ;;
7438     none) break ;;
7439     esac
7440     if depmode=$depmode \
7441        source=sub/conftest.c object=$am__obj \
7442        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7443        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7444          >/dev/null 2>conftest.err &&
7445        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7446        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7447        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7448        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7449       # icc doesn't choke on unknown options, it will just issue warnings
7450       # or remarks (even with -Werror).  So we grep stderr for any message
7451       # that says an option was ignored or not supported.
7452       # When given -MP, icc 7.0 and 7.1 complain thusly:
7453       #   icc: Command line warning: ignoring option '-M'; no argument required
7454       # The diagnosis changed in icc 8.0:
7455       #   icc: Command line remark: option '-MP' not supported
7456       if (grep 'ignoring option' conftest.err ||
7457           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7458         am_cv_CXX_dependencies_compiler_type=$depmode
7459         break
7460       fi
7461     fi
7462   done
7463
7464   cd ..
7465   rm -rf conftest.dir
7466 else
7467   am_cv_CXX_dependencies_compiler_type=none
7468 fi
7469
7470 fi
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7472 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7473 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7474
7475  if
7476   test "x$enable_dependency_tracking" != xno \
7477   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7478   am__fastdepCXX_TRUE=
7479   am__fastdepCXX_FALSE='#'
7480 else
7481   am__fastdepCXX_TRUE='#'
7482   am__fastdepCXX_FALSE=
7483 fi
7484
7485
7486 if eval "test x$GXX = xyes"; then
7487         CXXFLAGS="$CXXFLAGS -Wall -Wcast-align -Wpointer-arith -Wreturn-type -D_GNU_SOURCE"
7488 fi
7489
7490
7491
7492
7493
7494
7495
7496 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7497         if test -n "$ac_tool_prefix"; then
7498   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7499 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7501 $as_echo_n "checking for $ac_word... " >&6; }
7502 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7503   $as_echo_n "(cached) " >&6
7504 else
7505   case $PKG_CONFIG in
7506   [\\/]* | ?:[\\/]*)
7507   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7508   ;;
7509   *)
7510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 for as_dir in $PATH
7512 do
7513   IFS=$as_save_IFS
7514   test -z "$as_dir" && as_dir=.
7515     for ac_exec_ext in '' $ac_executable_extensions; do
7516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7517     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7519     break 2
7520   fi
7521 done
7522   done
7523 IFS=$as_save_IFS
7524
7525   ;;
7526 esac
7527 fi
7528 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7529 if test -n "$PKG_CONFIG"; then
7530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7531 $as_echo "$PKG_CONFIG" >&6; }
7532 else
7533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7534 $as_echo "no" >&6; }
7535 fi
7536
7537
7538 fi
7539 if test -z "$ac_cv_path_PKG_CONFIG"; then
7540   ac_pt_PKG_CONFIG=$PKG_CONFIG
7541   # Extract the first word of "pkg-config", so it can be a program name with args.
7542 set dummy pkg-config; ac_word=$2
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7544 $as_echo_n "checking for $ac_word... " >&6; }
7545 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7546   $as_echo_n "(cached) " >&6
7547 else
7548   case $ac_pt_PKG_CONFIG in
7549   [\\/]* | ?:[\\/]*)
7550   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7551   ;;
7552   *)
7553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554 for as_dir in $PATH
7555 do
7556   IFS=$as_save_IFS
7557   test -z "$as_dir" && as_dir=.
7558     for ac_exec_ext in '' $ac_executable_extensions; do
7559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7560     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7562     break 2
7563   fi
7564 done
7565   done
7566 IFS=$as_save_IFS
7567
7568   ;;
7569 esac
7570 fi
7571 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7572 if test -n "$ac_pt_PKG_CONFIG"; then
7573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7574 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7575 else
7576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7577 $as_echo "no" >&6; }
7578 fi
7579
7580   if test "x$ac_pt_PKG_CONFIG" = x; then
7581     PKG_CONFIG=""
7582   else
7583     case $cross_compiling:$ac_tool_warned in
7584 yes:)
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7587 ac_tool_warned=yes ;;
7588 esac
7589     PKG_CONFIG=$ac_pt_PKG_CONFIG
7590   fi
7591 else
7592   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7593 fi
7594
7595 fi
7596 if test -n "$PKG_CONFIG"; then
7597         _pkg_min_version=0.9.0
7598         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7599 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7600         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7601                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7602 $as_echo "yes" >&6; }
7603         else
7604                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7605 $as_echo "no" >&6; }
7606                 PKG_CONFIG=""
7607         fi
7608 fi
7609 if test -n "$PKG_CONFIG" && \
7610     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\""; } >&5
7611   ($PKG_CONFIG --exists --print-errors "") 2>&5
7612   ac_status=$?
7613   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7614   test $ac_status = 0; }; then
7615   :
7616 fi
7617 if test "x${cross_compiling}" = "xyes"; then
7618         samplemap="no";samplemap_reason="not supported for cross compiling"
7619         binding_python="no";binding_python_reason="not supported for cross compiling"
7620         postgresql="no";postgresql_reason="not supported for cross compiling"
7621         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a C compiler for build tools" >&5
7622 $as_echo_n "checking for a C compiler for build tools... " >&6; }
7623         for ac_prog in gcc cc
7624 do
7625   # Extract the first word of "$ac_prog", so it can be a program name with args.
7626 set dummy $ac_prog; ac_word=$2
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7628 $as_echo_n "checking for $ac_word... " >&6; }
7629 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
7630   $as_echo_n "(cached) " >&6
7631 else
7632   if test -n "$CC_FOR_BUILD"; then
7633   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
7634 else
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636 for as_dir in $PATH
7637 do
7638   IFS=$as_save_IFS
7639   test -z "$as_dir" && as_dir=.
7640     for ac_exec_ext in '' $ac_executable_extensions; do
7641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7642     ac_cv_prog_CC_FOR_BUILD="$ac_prog"
7643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7644     break 2
7645   fi
7646 done
7647   done
7648 IFS=$as_save_IFS
7649
7650 fi
7651 fi
7652 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
7653 if test -n "$CC_FOR_BUILD"; then
7654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
7655 $as_echo "$CC_FOR_BUILD" >&6; }
7656 else
7657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7658 $as_echo "no" >&6; }
7659 fi
7660
7661
7662   test -n "$CC_FOR_BUILD" && break
7663 done
7664
7665 else
7666         CC_FOR_BUILD=$CC
7667 fi
7668 CCLD_FOR_BUILD="$CC_FOR_BUILD"
7669
7670  if test "x${cross_compiling}" = "xyes"; then
7671   CROSS_COMPILING_TRUE=
7672   CROSS_COMPILING_FALSE='#'
7673 else
7674   CROSS_COMPILING_TRUE='#'
7675   CROSS_COMPILING_FALSE=
7676 fi
7677
7678
7679
7680
7681 # Endianness
7682 # defines WORDS_BIGENDIAN for big-endian systems
7683  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7684 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7685 if ${ac_cv_c_bigendian+:} false; then :
7686   $as_echo_n "(cached) " >&6
7687 else
7688   ac_cv_c_bigendian=unknown
7689     # See if we're dealing with a universal compiler.
7690     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7691 /* end confdefs.h.  */
7692 #ifndef __APPLE_CC__
7693                not a universal capable compiler
7694              #endif
7695              typedef int dummy;
7696
7697 _ACEOF
7698 if ac_fn_c_try_compile "$LINENO"; then :
7699
7700         # Check for potential -arch flags.  It is not universal unless
7701         # there are at least two -arch flags with different values.
7702         ac_arch=
7703         ac_prev=
7704         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7705          if test -n "$ac_prev"; then
7706            case $ac_word in
7707              i?86 | x86_64 | ppc | ppc64)
7708                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7709                  ac_arch=$ac_word
7710                else
7711                  ac_cv_c_bigendian=universal
7712                  break
7713                fi
7714                ;;
7715            esac
7716            ac_prev=
7717          elif test "x$ac_word" = "x-arch"; then
7718            ac_prev=arch
7719          fi
7720        done
7721 fi
7722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7723     if test $ac_cv_c_bigendian = unknown; then
7724       # See if sys/param.h defines the BYTE_ORDER macro.
7725       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726 /* end confdefs.h.  */
7727 #include <sys/types.h>
7728              #include <sys/param.h>
7729
7730 int
7731 main ()
7732 {
7733 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7734                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7735                      && LITTLE_ENDIAN)
7736               bogus endian macros
7737              #endif
7738
7739   ;
7740   return 0;
7741 }
7742 _ACEOF
7743 if ac_fn_c_try_compile "$LINENO"; then :
7744   # It does; now see whether it defined to BIG_ENDIAN or not.
7745          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7746 /* end confdefs.h.  */
7747 #include <sys/types.h>
7748                 #include <sys/param.h>
7749
7750 int
7751 main ()
7752 {
7753 #if BYTE_ORDER != BIG_ENDIAN
7754                  not big endian
7755                 #endif
7756
7757   ;
7758   return 0;
7759 }
7760 _ACEOF
7761 if ac_fn_c_try_compile "$LINENO"; then :
7762   ac_cv_c_bigendian=yes
7763 else
7764   ac_cv_c_bigendian=no
7765 fi
7766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7767 fi
7768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7769     fi
7770     if test $ac_cv_c_bigendian = unknown; then
7771       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7772       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7773 /* end confdefs.h.  */
7774 #include <limits.h>
7775
7776 int
7777 main ()
7778 {
7779 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7780               bogus endian macros
7781              #endif
7782
7783   ;
7784   return 0;
7785 }
7786 _ACEOF
7787 if ac_fn_c_try_compile "$LINENO"; then :
7788   # It does; now see whether it defined to _BIG_ENDIAN or not.
7789          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790 /* end confdefs.h.  */
7791 #include <limits.h>
7792
7793 int
7794 main ()
7795 {
7796 #ifndef _BIG_ENDIAN
7797                  not big endian
7798                 #endif
7799
7800   ;
7801   return 0;
7802 }
7803 _ACEOF
7804 if ac_fn_c_try_compile "$LINENO"; then :
7805   ac_cv_c_bigendian=yes
7806 else
7807   ac_cv_c_bigendian=no
7808 fi
7809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7810 fi
7811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7812     fi
7813     if test $ac_cv_c_bigendian = unknown; then
7814       # Compile a test program.
7815       if test "$cross_compiling" = yes; then :
7816   # Try to guess by grepping values from an object file.
7817          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818 /* end confdefs.h.  */
7819 short int ascii_mm[] =
7820                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7821                 short int ascii_ii[] =
7822                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7823                 int use_ascii (int i) {
7824                   return ascii_mm[i] + ascii_ii[i];
7825                 }
7826                 short int ebcdic_ii[] =
7827                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7828                 short int ebcdic_mm[] =
7829                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7830                 int use_ebcdic (int i) {
7831                   return ebcdic_mm[i] + ebcdic_ii[i];
7832                 }
7833                 extern int foo;
7834
7835 int
7836 main ()
7837 {
7838 return use_ascii (foo) == use_ebcdic (foo);
7839   ;
7840   return 0;
7841 }
7842 _ACEOF
7843 if ac_fn_c_try_compile "$LINENO"; then :
7844   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7845               ac_cv_c_bigendian=yes
7846             fi
7847             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7848               if test "$ac_cv_c_bigendian" = unknown; then
7849                 ac_cv_c_bigendian=no
7850               else
7851                 # finding both strings is unlikely to happen, but who knows?
7852                 ac_cv_c_bigendian=unknown
7853               fi
7854             fi
7855 fi
7856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7857 else
7858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7859 /* end confdefs.h.  */
7860 $ac_includes_default
7861 int
7862 main ()
7863 {
7864
7865              /* Are we little or big endian?  From Harbison&Steele.  */
7866              union
7867              {
7868                long int l;
7869                char c[sizeof (long int)];
7870              } u;
7871              u.l = 1;
7872              return u.c[sizeof (long int) - 1] == 1;
7873
7874   ;
7875   return 0;
7876 }
7877 _ACEOF
7878 if ac_fn_c_try_run "$LINENO"; then :
7879   ac_cv_c_bigendian=no
7880 else
7881   ac_cv_c_bigendian=yes
7882 fi
7883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7884   conftest.$ac_objext conftest.beam conftest.$ac_ext
7885 fi
7886
7887     fi
7888 fi
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7890 $as_echo "$ac_cv_c_bigendian" >&6; }
7891  case $ac_cv_c_bigendian in #(
7892    yes)
7893      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7894 ;; #(
7895    no)
7896       ;; #(
7897    universal)
7898
7899 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7900
7901      ;; #(
7902    *)
7903      as_fn_error $? "unknown endianness
7904  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7905  esac
7906
7907
7908 # Check whether --enable-variant was given.
7909 if test "${enable_variant+set}" = set; then :
7910   enableval=$enable_variant; NAVIT_VARIANT=$enableval
7911 fi
7912
7913
7914
7915 # Check whether --enable-cache-size was given.
7916 if test "${enable_cache_size+set}" = set; then :
7917   enableval=$enable_cache_size;
7918 cat >>confdefs.h <<_ACEOF
7919 #define CACHE_SIZE ${enableval}
7920 _ACEOF
7921
7922 fi
7923
7924
7925 # Check whether --enable-avoid-unaligned was given.
7926 if test "${enable_avoid_unaligned+set}" = set; then :
7927   enableval=$enable_avoid_unaligned; AVOID_UNALIGNED=$enableval
7928 else
7929   AVOID_UNALIGNED=no
7930 fi
7931
7932 test x"${AVOID_UNALIGNED}" = xyes &&
7933 $as_echo "#define AVOID_UNALIGNED /**/" >>confdefs.h
7934
7935
7936 # Check whether --enable-avoid-float was given.
7937 if test "${enable_avoid_float+set}" = set; then :
7938   enableval=$enable_avoid_float; AVOID_FLOAT=$enableval
7939 else
7940   AVOID_FLOAT=no
7941 fi
7942
7943 test x"${AVOID_FLOAT}" = xyes &&
7944 $as_echo "#define AVOID_FLOAT /**/" >>confdefs.h
7945
7946
7947 # Check whether --enable-transformation-roll was given.
7948 if test "${enable_transformation_roll+set}" = set; then :
7949   enableval=$enable_transformation_roll; ENABLE_ROLL=$enableval
7950 else
7951   ENABLE_ROLL=no
7952 fi
7953
7954 test x"${ENABLE_ROLL}" = xyes &&
7955 $as_echo "#define ENABLE_ROLL /**/" >>confdefs.h
7956
7957
7958 # Check whether --enable-hildon was given.
7959 if test "${enable_hildon+set}" = set; then :
7960   enableval=$enable_hildon; enable_hildon=$enableval
7961 else
7962   enable_hildon=yes
7963 fi
7964
7965 if test "x${enable_hildon}" = "xyes" ; then
7966
7967 pkg_failed=no
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HILDON" >&5
7969 $as_echo_n "checking for HILDON... " >&6; }
7970
7971 if test -n "$HILDON_CFLAGS"; then
7972     pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
7973  elif test -n "$PKG_CONFIG"; then
7974     if test -n "$PKG_CONFIG" && \
7975     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 0.9.9\""; } >&5
7976   ($PKG_CONFIG --exists --print-errors "hildon-1 >= 0.9.9") 2>&5
7977   ac_status=$?
7978   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7979   test $ac_status = 0; }; then
7980   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-1 >= 0.9.9" 2>/dev/null`
7981 else
7982   pkg_failed=yes
7983 fi
7984  else
7985     pkg_failed=untried
7986 fi
7987 if test -n "$HILDON_LIBS"; then
7988     pkg_cv_HILDON_LIBS="$HILDON_LIBS"
7989  elif test -n "$PKG_CONFIG"; then
7990     if test -n "$PKG_CONFIG" && \
7991     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 0.9.9\""; } >&5
7992   ($PKG_CONFIG --exists --print-errors "hildon-1 >= 0.9.9") 2>&5
7993   ac_status=$?
7994   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7995   test $ac_status = 0; }; then
7996   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-1 >= 0.9.9" 2>/dev/null`
7997 else
7998   pkg_failed=yes
7999 fi
8000  else
8001     pkg_failed=untried
8002 fi
8003
8004
8005
8006 if test $pkg_failed = yes; then
8007         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8008 $as_echo "no" >&6; }
8009
8010 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8011         _pkg_short_errors_supported=yes
8012 else
8013         _pkg_short_errors_supported=no
8014 fi
8015         if test $_pkg_short_errors_supported = yes; then
8016                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "hildon-1 >= 0.9.9" 2>&1`
8017         else
8018                 HILDON_PKG_ERRORS=`$PKG_CONFIG --print-errors "hildon-1 >= 0.9.9" 2>&1`
8019         fi
8020         # Put the nasty error message in config.log where it belongs
8021         echo "$HILDON_PKG_ERRORS" >&5
8022
8023
8024                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025 $as_echo "no" >&6; }
8026                 enable_hildon=no
8027
8028 elif test $pkg_failed = untried; then
8029         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8030 $as_echo "no" >&6; }
8031
8032                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8033 $as_echo "no" >&6; }
8034                 enable_hildon=no
8035
8036 else
8037         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
8038         HILDON_LIBS=$pkg_cv_HILDON_LIBS
8039         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8040 $as_echo "yes" >&6; }
8041
8042 fi
8043
8044 pkg_failed=no
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPSBT" >&5
8046 $as_echo_n "checking for GPSBT... " >&6; }
8047
8048 if test -n "$GPSBT_CFLAGS"; then
8049     pkg_cv_GPSBT_CFLAGS="$GPSBT_CFLAGS"
8050  elif test -n "$PKG_CONFIG"; then
8051     if test -n "$PKG_CONFIG" && \
8052     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gpsbt\""; } >&5
8053   ($PKG_CONFIG --exists --print-errors "gpsbt") 2>&5
8054   ac_status=$?
8055   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8056   test $ac_status = 0; }; then
8057   pkg_cv_GPSBT_CFLAGS=`$PKG_CONFIG --cflags "gpsbt" 2>/dev/null`
8058 else
8059   pkg_failed=yes
8060 fi
8061  else
8062     pkg_failed=untried
8063 fi
8064 if test -n "$GPSBT_LIBS"; then
8065     pkg_cv_GPSBT_LIBS="$GPSBT_LIBS"
8066  elif test -n "$PKG_CONFIG"; then
8067     if test -n "$PKG_CONFIG" && \
8068     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gpsbt\""; } >&5
8069   ($PKG_CONFIG --exists --print-errors "gpsbt") 2>&5
8070   ac_status=$?
8071   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8072   test $ac_status = 0; }; then
8073   pkg_cv_GPSBT_LIBS=`$PKG_CONFIG --libs "gpsbt" 2>/dev/null`
8074 else
8075   pkg_failed=yes
8076 fi
8077  else
8078     pkg_failed=untried
8079 fi
8080
8081
8082
8083 if test $pkg_failed = yes; then
8084         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8085 $as_echo "no" >&6; }
8086
8087 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8088         _pkg_short_errors_supported=yes
8089 else
8090         _pkg_short_errors_supported=no
8091 fi
8092         if test $_pkg_short_errors_supported = yes; then
8093                 GPSBT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gpsbt" 2>&1`
8094         else
8095                 GPSBT_PKG_ERRORS=`$PKG_CONFIG --print-errors "gpsbt" 2>&1`
8096         fi
8097         # Put the nasty error message in config.log where it belongs
8098         echo "$GPSBT_PKG_ERRORS" >&5
8099
8100
8101                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8102 $as_echo "no" >&6; }
8103
8104 elif test $pkg_failed = untried; then
8105         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8106 $as_echo "no" >&6; }
8107
8108                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8109 $as_echo "no" >&6; }
8110
8111 else
8112         GPSBT_CFLAGS=$pkg_cv_GPSBT_CFLAGS
8113         GPSBT_LIBS=$pkg_cv_GPSBT_LIBS
8114         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8115 $as_echo "yes" >&6; }
8116
8117
8118 $as_echo "#define HAVE_GPSBT 1" >>confdefs.h
8119
8120
8121
8122
8123 fi
8124         if test x"${enable_hildon}" = xyes ; then
8125
8126 $as_echo "#define USE_HILDON 1" >>confdefs.h
8127
8128
8129
8130         fi
8131 fi
8132  if test "${enable_hildon}" = "xyes"; then
8133   USE_HILDON_TRUE=
8134   USE_HILDON_FALSE='#'
8135 else
8136   USE_HILDON_TRUE='#'
8137   USE_HILDON_FALSE=
8138 fi
8139
8140
8141 # Check whether --enable-osso was given.
8142 if test "${enable_osso+set}" = set; then :
8143   enableval=$enable_osso; enable_osso=$enableval
8144 else
8145   enable_osso=yes
8146 fi
8147
8148 if test "x${enable_osso}" = "xyes" ; then
8149
8150 pkg_failed=no
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOSSO" >&5
8152 $as_echo_n "checking for LIBOSSO... " >&6; }
8153
8154 if test -n "$LIBOSSO_CFLAGS"; then
8155     pkg_cv_LIBOSSO_CFLAGS="$LIBOSSO_CFLAGS"
8156  elif test -n "$PKG_CONFIG"; then
8157     if test -n "$PKG_CONFIG" && \
8158     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libosso\""; } >&5
8159   ($PKG_CONFIG --exists --print-errors "libosso") 2>&5
8160   ac_status=$?
8161   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8162   test $ac_status = 0; }; then
8163   pkg_cv_LIBOSSO_CFLAGS=`$PKG_CONFIG --cflags "libosso" 2>/dev/null`
8164 else
8165   pkg_failed=yes
8166 fi
8167  else
8168     pkg_failed=untried
8169 fi
8170 if test -n "$LIBOSSO_LIBS"; then
8171     pkg_cv_LIBOSSO_LIBS="$LIBOSSO_LIBS"
8172  elif test -n "$PKG_CONFIG"; then
8173     if test -n "$PKG_CONFIG" && \
8174     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libosso\""; } >&5
8175   ($PKG_CONFIG --exists --print-errors "libosso") 2>&5
8176   ac_status=$?
8177   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8178   test $ac_status = 0; }; then
8179   pkg_cv_LIBOSSO_LIBS=`$PKG_CONFIG --libs "libosso" 2>/dev/null`
8180 else
8181   pkg_failed=yes
8182 fi
8183  else
8184     pkg_failed=untried
8185 fi
8186
8187
8188
8189 if test $pkg_failed = yes; then
8190         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8191 $as_echo "no" >&6; }
8192
8193 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8194         _pkg_short_errors_supported=yes
8195 else
8196         _pkg_short_errors_supported=no
8197 fi
8198         if test $_pkg_short_errors_supported = yes; then
8199                 LIBOSSO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libosso" 2>&1`
8200         else
8201                 LIBOSSO_PKG_ERRORS=`$PKG_CONFIG --print-errors "libosso" 2>&1`
8202         fi
8203         # Put the nasty error message in config.log where it belongs
8204         echo "$LIBOSSO_PKG_ERRORS" >&5
8205
8206
8207                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8208 $as_echo "no" >&6; }
8209                 enable_osso=no
8210
8211 elif test $pkg_failed = untried; then
8212         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8213 $as_echo "no" >&6; }
8214
8215                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8216 $as_echo "no" >&6; }
8217                 enable_osso=no
8218
8219 else
8220         LIBOSSO_CFLAGS=$pkg_cv_LIBOSSO_CFLAGS
8221         LIBOSSO_LIBS=$pkg_cv_LIBOSSO_LIBS
8222         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8223 $as_echo "yes" >&6; }
8224
8225 fi
8226         if test x"${enable_osso}" = xyes ; then
8227
8228 $as_echo "#define USE_OSSO 1" >>confdefs.h
8229
8230
8231
8232         fi
8233 fi
8234 echo ${enable_osso}
8235  if test "x${enable_osso}" = "xyes"; then
8236   USE_OSSO_TRUE=
8237   USE_OSSO_FALSE='#'
8238 else
8239   USE_OSSO_TRUE='#'
8240   USE_OSSO_FALSE=
8241 fi
8242
8243
8244 # Check whether --enable-garmin was given.
8245 if test "${enable_garmin+set}" = set; then :
8246   enableval=$enable_garmin; USE_GARMIN=$enableval
8247 else
8248   USE_GARMIN=yes
8249 fi
8250
8251
8252 # samplemap
8253 # Extract the first word of "bzcat", so it can be a program name with args.
8254 set dummy bzcat; ac_word=$2
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8256 $as_echo_n "checking for $ac_word... " >&6; }
8257 if ${ac_cv_path__PATH_BZCAT+:} false; then :
8258   $as_echo_n "(cached) " >&6
8259 else
8260   case $_PATH_BZCAT in
8261   [\\/]* | ?:[\\/]*)
8262   ac_cv_path__PATH_BZCAT="$_PATH_BZCAT" # Let the user override the test with a path.
8263   ;;
8264   *)
8265   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8266 for as_dir in $PATH
8267 do
8268   IFS=$as_save_IFS
8269   test -z "$as_dir" && as_dir=.
8270     for ac_exec_ext in '' $ac_executable_extensions; do
8271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8272     ac_cv_path__PATH_BZCAT="$as_dir/$ac_word$ac_exec_ext"
8273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8274     break 2
8275   fi
8276 done
8277   done
8278 IFS=$as_save_IFS
8279
8280   ;;
8281 esac
8282 fi
8283 _PATH_BZCAT=$ac_cv_path__PATH_BZCAT
8284 if test -n "$_PATH_BZCAT"; then
8285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_PATH_BZCAT" >&5
8286 $as_echo "$_PATH_BZCAT" >&6; }
8287 else
8288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8289 $as_echo "no" >&6; }
8290 fi
8291
8292
8293 if test "x${_PATH_BZCAT}" = "x" ; then
8294         samplemap=no; samplemap_reason="bzcat missing"
8295 fi
8296 # Check whether --enable-maptool was given.
8297 if test "${enable_maptool+set}" = set; then :
8298   enableval=$enable_maptool; maptool=$enableval;maptool_reason="configure parameter"
8299 fi
8300
8301  if test "x$maptool" = "xyes"; then
8302   MAPTOOL_TRUE=
8303   MAPTOOL_FALSE='#'
8304 else
8305   MAPTOOL_TRUE='#'
8306   MAPTOOL_FALSE=
8307 fi
8308
8309 if test "x$maptool" != "xyes"; then
8310         samplemap=no; samplemap_reason="maptool disabled"
8311 fi
8312 # Check whether --enable-samplemap was given.
8313 if test "${enable_samplemap+set}" = set; then :
8314   enableval=$enable_samplemap; samplemap=$enableval;samplemap_reason="configure parameter"
8315 fi
8316
8317  if test "x$samplemap" = "xyes"; then
8318   BUILD_SAMPLEMAP_TRUE=
8319   BUILD_SAMPLEMAP_FALSE='#'
8320 else
8321   BUILD_SAMPLEMAP_TRUE='#'
8322   BUILD_SAMPLEMAP_FALSE=
8323 fi
8324
8325
8326 # Check whether --enable-fastmath was given.
8327 if test "${enable_fastmath+set}" = set; then :
8328   enableval=$enable_fastmath; fastmath=$enableval
8329 else
8330   fastmath=yes
8331 fi
8332
8333  if test "x$fastmath" = "xyes"; then
8334   FASTMATH_TRUE=
8335   FASTMATH_FALSE='#'
8336 else
8337   FASTMATH_TRUE='#'
8338   FASTMATH_FALSE=
8339 fi
8340
8341
8342 if test x"$fastmath" = xyes; then
8343         if eval "test x$GCC = xyes"; then
8344                 CFLAGS="$CFLAGS -ffast-math"
8345         fi
8346 fi
8347
8348 X_CFLAGS="-I$x_includes"
8349 if test -n "$ac_x_libraries"; then :
8350   X_LIBS="-L$ac_x_libraries"
8351 fi
8352
8353 # glib
8354 # Check whether --enable-glib was given.
8355 if test "${enable_glib+set}" = set; then :
8356   enableval=$enable_glib; glib=$enableval
8357 else
8358   glib=yes
8359 fi
8360
8361 if test "x${glib}" = "xyes" -a "x${GLIB_CFLAGS}" = "x" -a "x${GLIB_LIBS}" = "x"; then
8362
8363 pkg_failed=no
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
8365 $as_echo_n "checking for GLIB... " >&6; }
8366
8367 if test -n "$GLIB_CFLAGS"; then
8368     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
8369  elif test -n "$PKG_CONFIG"; then
8370     if test -n "$PKG_CONFIG" && \
8371     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 gthread-2.0\""; } >&5
8372   ($PKG_CONFIG --exists --print-errors "glib-2.0 gthread-2.0") 2>&5
8373   ac_status=$?
8374   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8375   test $ac_status = 0; }; then
8376   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 gthread-2.0" 2>/dev/null`
8377 else
8378   pkg_failed=yes
8379 fi
8380  else
8381     pkg_failed=untried
8382 fi
8383 if test -n "$GLIB_LIBS"; then
8384     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
8385  elif test -n "$PKG_CONFIG"; then
8386     if test -n "$PKG_CONFIG" && \
8387     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 gthread-2.0\""; } >&5
8388   ($PKG_CONFIG --exists --print-errors "glib-2.0 gthread-2.0") 2>&5
8389   ac_status=$?
8390   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8391   test $ac_status = 0; }; then
8392   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 gthread-2.0" 2>/dev/null`
8393 else
8394   pkg_failed=yes
8395 fi
8396  else
8397     pkg_failed=untried
8398 fi
8399
8400
8401
8402 if test $pkg_failed = yes; then
8403         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8404 $as_echo "no" >&6; }
8405
8406 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8407         _pkg_short_errors_supported=yes
8408 else
8409         _pkg_short_errors_supported=no
8410 fi
8411         if test $_pkg_short_errors_supported = yes; then
8412                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 gthread-2.0" 2>&1`
8413         else
8414                 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 gthread-2.0" 2>&1`
8415         fi
8416         # Put the nasty error message in config.log where it belongs
8417         echo "$GLIB_PKG_ERRORS" >&5
8418
8419         glib=no
8420 elif test $pkg_failed = untried; then
8421         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8422 $as_echo "no" >&6; }
8423         glib=no
8424 else
8425         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
8426         GLIB_LIBS=$pkg_cv_GLIB_LIBS
8427         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8428 $as_echo "yes" >&6; }
8429         glib=yes
8430 fi
8431 fi
8432 if test "x${glib}" = "xyes"; then
8433
8434 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
8435
8436 else
8437         GLIB_CFLAGS="-I\$(top_srcdir)/navit/support -I\$(top_srcdir)/navit/support/glib -I\$(top_srcdir)/navit/support/ezxml"
8438         GLIB_LIBS="-L\$(top_builddir)/navit/support/glib -lsupport_glib -L\$(top_builddir)/navit/support/ezxml -lsupport_ezxml"
8439         if test "x${win32}" != "xyes" -a "x${android}" != "xyes"; then
8440                 GLIB_LIBS="$GLIB_LIBS -lpthread"
8441         fi
8442 fi
8443
8444 # gmodule
8445 # Check whether --enable-gmodule was given.
8446 if test "${enable_gmodule+set}" = set; then :
8447   enableval=$enable_gmodule; gmodule=$enableval
8448 else
8449   gmodule=yes
8450 fi
8451
8452 if test x"${gmodule}" = "xyes"; then
8453
8454 pkg_failed=no
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMODULE" >&5
8456 $as_echo_n "checking for GMODULE... " >&6; }
8457
8458 if test -n "$GMODULE_CFLAGS"; then
8459     pkg_cv_GMODULE_CFLAGS="$GMODULE_CFLAGS"
8460  elif test -n "$PKG_CONFIG"; then
8461     if test -n "$PKG_CONFIG" && \
8462     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\""; } >&5
8463   ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5
8464   ac_status=$?
8465   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8466   test $ac_status = 0; }; then
8467   pkg_cv_GMODULE_CFLAGS=`$PKG_CONFIG --cflags "gmodule-2.0" 2>/dev/null`
8468 else
8469   pkg_failed=yes
8470 fi
8471  else
8472     pkg_failed=untried
8473 fi
8474 if test -n "$GMODULE_LIBS"; then
8475     pkg_cv_GMODULE_LIBS="$GMODULE_LIBS"
8476  elif test -n "$PKG_CONFIG"; then
8477     if test -n "$PKG_CONFIG" && \
8478     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\""; } >&5
8479   ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5
8480   ac_status=$?
8481   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8482   test $ac_status = 0; }; then
8483   pkg_cv_GMODULE_LIBS=`$PKG_CONFIG --libs "gmodule-2.0" 2>/dev/null`
8484 else
8485   pkg_failed=yes
8486 fi
8487  else
8488     pkg_failed=untried
8489 fi
8490
8491
8492
8493 if test $pkg_failed = yes; then
8494         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8495 $as_echo "no" >&6; }
8496
8497 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8498         _pkg_short_errors_supported=yes
8499 else
8500         _pkg_short_errors_supported=no
8501 fi
8502         if test $_pkg_short_errors_supported = yes; then
8503                 GMODULE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gmodule-2.0" 2>&1`
8504         else
8505                 GMODULE_PKG_ERRORS=`$PKG_CONFIG --print-errors "gmodule-2.0" 2>&1`
8506         fi
8507         # Put the nasty error message in config.log where it belongs
8508         echo "$GMODULE_PKG_ERRORS" >&5
8509
8510         gmodule=no
8511 elif test $pkg_failed = untried; then
8512         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8513 $as_echo "no" >&6; }
8514         gmodule=no
8515 else
8516         GMODULE_CFLAGS=$pkg_cv_GMODULE_CFLAGS
8517         GMODULE_LIBS=$pkg_cv_GMODULE_LIBS
8518         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8519 $as_echo "yes" >&6; }
8520         gmodule=yes
8521 fi
8522 fi
8523 if test "x${gmodule}" = "xyes"; then
8524
8525 $as_echo "#define HAVE_GMODULE 1" >>confdefs.h
8526
8527 else
8528         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8529 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8530 if ${ac_cv_lib_dl_dlopen+:} false; then :
8531   $as_echo_n "(cached) " >&6
8532 else
8533   ac_check_lib_save_LIBS=$LIBS
8534 LIBS="-ldl  $LIBS"
8535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8536 /* end confdefs.h.  */
8537
8538 /* Override any GCC internal prototype to avoid an error.
8539    Use char because int might match the return type of a GCC
8540    builtin and then its argument prototype would still apply.  */
8541 #ifdef __cplusplus
8542 extern "C"
8543 #endif
8544 char dlopen ();
8545 int
8546 main ()
8547 {
8548 return dlopen ();
8549   ;
8550   return 0;
8551 }
8552 _ACEOF
8553 if ac_fn_c_try_link "$LINENO"; then :
8554   ac_cv_lib_dl_dlopen=yes
8555 else
8556   ac_cv_lib_dl_dlopen=no
8557 fi
8558 rm -f core conftest.err conftest.$ac_objext \
8559     conftest$ac_exeext conftest.$ac_ext
8560 LIBS=$ac_check_lib_save_LIBS
8561 fi
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8563 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8564 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8565   plugins_reason="default, via dlopen";GMODULE_LIBS="-ldl";
8566 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
8567
8568 else
8569   plugins="no"; plugins_reason="package gmodule and dlopen missing"
8570
8571 fi
8572
8573 fi
8574
8575 # libcrypto
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AES_encrypt in -lcrypto" >&5
8577 $as_echo_n "checking for AES_encrypt in -lcrypto... " >&6; }
8578 if ${ac_cv_lib_crypto_AES_encrypt+:} false; then :
8579   $as_echo_n "(cached) " >&6
8580 else
8581   ac_check_lib_save_LIBS=$LIBS
8582 LIBS="-lcrypto  $LIBS"
8583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8584 /* end confdefs.h.  */
8585
8586 /* Override any GCC internal prototype to avoid an error.
8587    Use char because int might match the return type of a GCC
8588    builtin and then its argument prototype would still apply.  */
8589 #ifdef __cplusplus
8590 extern "C"
8591 #endif
8592 char AES_encrypt ();
8593 int
8594 main ()
8595 {
8596 return AES_encrypt ();
8597   ;
8598   return 0;
8599 }
8600 _ACEOF
8601 if ac_fn_c_try_link "$LINENO"; then :
8602   ac_cv_lib_crypto_AES_encrypt=yes
8603 else
8604   ac_cv_lib_crypto_AES_encrypt=no
8605 fi
8606 rm -f core conftest.err conftest.$ac_objext \
8607     conftest$ac_exeext conftest.$ac_ext
8608 LIBS=$ac_check_lib_save_LIBS
8609 fi
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_AES_encrypt" >&5
8611 $as_echo "$ac_cv_lib_crypto_AES_encrypt" >&6; }
8612 if test "x$ac_cv_lib_crypto_AES_encrypt" = xyes; then :
8613   CRYPTO_LIBS="-lcrypto";
8614 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
8615
8616 fi
8617
8618
8619
8620 # plugins
8621 # Check whether --enable-plugins was given.
8622 if test "${enable_plugins+set}" = set; then :
8623   enableval=$enable_plugins;  plugins=$enableval;plugin_reason="configure parameter"
8624 fi
8625
8626 # Check whether --enable-shared-libnavit was given.
8627 if test "${enable_shared_libnavit+set}" = set; then :
8628   enableval=$enable_shared_libnavit;  shared_libnavit=$enableval
8629 fi
8630
8631 if test "x${plugins}" = "xyes"; then
8632         # Check whether --enable-shared was given.
8633 if test "${enable_shared+set}" = set; then :
8634   enableval=$enable_shared; p=${PACKAGE-default}
8635     case $enableval in
8636     yes) enable_shared=yes ;;
8637     no) enable_shared=no ;;
8638     *)
8639       enable_shared=no
8640       # Look at the argument we got.  We use all the common list separators.
8641       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8642       for pkg in $enableval; do
8643         IFS="$lt_save_ifs"
8644         if test "X$pkg" = "X$p"; then
8645           enable_shared=yes
8646         fi
8647       done
8648       IFS="$lt_save_ifs"
8649       ;;
8650     esac
8651 else
8652   enable_shared=yes
8653 fi
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663         # Check whether --enable-static was given.
8664 if test "${enable_static+set}" = set; then :
8665   enableval=$enable_static; p=${PACKAGE-default}
8666     case $enableval in
8667     yes) enable_static=yes ;;
8668     no) enable_static=no ;;
8669     *)
8670      enable_static=no
8671       # Look at the argument we got.  We use all the common list separators.
8672       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8673       for pkg in $enableval; do
8674         IFS="$lt_save_ifs"
8675         if test "X$pkg" = "X$p"; then
8676           enable_static=yes
8677         fi
8678       done
8679       IFS="$lt_save_ifs"
8680       ;;
8681     esac
8682 else
8683   enable_static=no
8684 fi
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695 $as_echo "#define USE_PLUGINS /**/" >>confdefs.h
8696
8697         if test "x${win32}" = "xyes"; then
8698                 shared_libnavit=yes
8699                 NAVIT_MODULE_LDFLAGS="-no-undefined -L\$(top_builddir)/navit -l$LIBNAVIT -L\$(top_builddir)/intl -lintl"
8700         fi
8701 else
8702         if test "x${shared_libnavit}" = "xyes"; then
8703                 # Check whether --enable-shared was given.
8704 if test "${enable_shared+set}" = set; then :
8705   enableval=$enable_shared; p=${PACKAGE-default}
8706     case $enableval in
8707     yes) enable_shared=yes ;;
8708     no) enable_shared=no ;;
8709     *)
8710       enable_shared=no
8711       # Look at the argument we got.  We use all the common list separators.
8712       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8713       for pkg in $enableval; do
8714         IFS="$lt_save_ifs"
8715         if test "X$pkg" = "X$p"; then
8716           enable_shared=yes
8717         fi
8718       done
8719       IFS="$lt_save_ifs"
8720       ;;
8721     esac
8722 else
8723   enable_shared=yes
8724 fi
8725
8726
8727
8728
8729
8730
8731                 # Check whether --enable-static was given.
8732 if test "${enable_static+set}" = set; then :
8733   enableval=$enable_static; p=${PACKAGE-default}
8734     case $enableval in
8735     yes) enable_static=yes ;;
8736     no) enable_static=no ;;
8737     *)
8738      enable_static=no
8739       # Look at the argument we got.  We use all the common list separators.
8740       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8741       for pkg in $enableval; do
8742         IFS="$lt_save_ifs"
8743         if test "X$pkg" = "X$p"; then
8744           enable_static=yes
8745         fi
8746       done
8747       IFS="$lt_save_ifs"
8748       ;;
8749     esac
8750 else
8751   enable_static=no
8752 fi
8753
8754
8755
8756
8757
8758
8759         else
8760                 # Check whether --enable-shared was given.
8761 if test "${enable_shared+set}" = set; then :
8762   enableval=$enable_shared; p=${PACKAGE-default}
8763     case $enableval in
8764     yes) enable_shared=yes ;;
8765     no) enable_shared=no ;;
8766     *)
8767       enable_shared=no
8768       # Look at the argument we got.  We use all the common list separators.
8769       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8770       for pkg in $enableval; do
8771         IFS="$lt_save_ifs"
8772         if test "X$pkg" = "X$p"; then
8773           enable_shared=yes
8774         fi
8775       done
8776       IFS="$lt_save_ifs"
8777       ;;
8778     esac
8779 else
8780   enable_shared=no
8781 fi
8782
8783
8784
8785
8786
8787
8788                 # Check whether --enable-static was given.
8789 if test "${enable_static+set}" = set; then :
8790   enableval=$enable_static; p=${PACKAGE-default}
8791     case $enableval in
8792     yes) enable_static=yes ;;
8793     no) enable_static=no ;;
8794     *)
8795      enable_static=no
8796       # Look at the argument we got.  We use all the common list separators.
8797       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8798       for pkg in $enableval; do
8799         IFS="$lt_save_ifs"
8800         if test "X$pkg" = "X$p"; then
8801           enable_static=yes
8802         fi
8803       done
8804       IFS="$lt_save_ifs"
8805       ;;
8806     esac
8807 else
8808   enable_static=yes
8809 fi
8810
8811
8812
8813
8814
8815
8816         fi
8817 fi
8818  if test "x$plugins" = "xyes"; then
8819   PLUGINS_TRUE=
8820   PLUGINS_FALSE='#'
8821 else
8822   PLUGINS_TRUE='#'
8823   PLUGINS_FALSE=
8824 fi
8825
8826  if test "x$shared_libnavit" = "xyes"; then
8827   SHARED_LIBNAVIT_TRUE=
8828   SHARED_LIBNAVIT_FALSE='#'
8829 else
8830   SHARED_LIBNAVIT_TRUE='#'
8831   SHARED_LIBNAVIT_FALSE=
8832 fi
8833
8834  if test "x$bin_navit" = "xyes"; then
8835   BIN_NAVIT_TRUE=
8836   BIN_NAVIT_FALSE='#'
8837 else
8838   BIN_NAVIT_TRUE='#'
8839   BIN_NAVIT_FALSE=
8840 fi
8841
8842 case `pwd` in
8843   *\ * | *\     *)
8844     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8845 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8846 esac
8847
8848
8849
8850 macro_version='2.2.6b'
8851 macro_revision='1.3018'
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865 ltmain="$ac_aux_dir/ltmain.sh"
8866
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8868 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
8869 if ${ac_cv_path_SED+:} false; then :
8870   $as_echo_n "(cached) " >&6
8871 else
8872             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8873      for ac_i in 1 2 3 4 5 6 7; do
8874        ac_script="$ac_script$as_nl$ac_script"
8875      done
8876      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8877      { ac_script=; unset ac_script;}
8878      if test -z "$SED"; then
8879   ac_path_SED_found=false
8880   # Loop through the user's path and test for each of PROGNAME-LIST
8881   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8882 for as_dir in $PATH
8883 do
8884   IFS=$as_save_IFS
8885   test -z "$as_dir" && as_dir=.
8886     for ac_prog in sed gsed; do
8887     for ac_exec_ext in '' $ac_executable_extensions; do
8888       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8889       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
8890 # Check for GNU ac_path_SED and select it if it is found.
8891   # Check for GNU $ac_path_SED
8892 case `"$ac_path_SED" --version 2>&1` in
8893 *GNU*)
8894   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8895 *)
8896   ac_count=0
8897   $as_echo_n 0123456789 >"conftest.in"
8898   while :
8899   do
8900     cat "conftest.in" "conftest.in" >"conftest.tmp"
8901     mv "conftest.tmp" "conftest.in"
8902     cp "conftest.in" "conftest.nl"
8903     $as_echo '' >> "conftest.nl"
8904     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8905     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8906     as_fn_arith $ac_count + 1 && ac_count=$as_val
8907     if test $ac_count -gt ${ac_path_SED_max-0}; then
8908       # Best one so far, save it but keep looking for a better one
8909       ac_cv_path_SED="$ac_path_SED"
8910       ac_path_SED_max=$ac_count
8911     fi
8912     # 10*(2^10) chars as input seems more than enough
8913     test $ac_count -gt 10 && break
8914   done
8915   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8916 esac
8917
8918       $ac_path_SED_found && break 3
8919     done
8920   done
8921   done
8922 IFS=$as_save_IFS
8923   if test -z "$ac_cv_path_SED"; then
8924     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8925   fi
8926 else
8927   ac_cv_path_SED=$SED
8928 fi
8929
8930 fi
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8932 $as_echo "$ac_cv_path_SED" >&6; }
8933  SED="$ac_cv_path_SED"
8934   rm -f conftest.sed
8935
8936 test -z "$SED" && SED=sed
8937 Xsed="$SED -e 1s/^X//"
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8950 $as_echo_n "checking for fgrep... " >&6; }
8951 if ${ac_cv_path_FGREP+:} false; then :
8952   $as_echo_n "(cached) " >&6
8953 else
8954   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8955    then ac_cv_path_FGREP="$GREP -F"
8956    else
8957      if test -z "$FGREP"; then
8958   ac_path_FGREP_found=false
8959   # Loop through the user's path and test for each of PROGNAME-LIST
8960   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8961 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8962 do
8963   IFS=$as_save_IFS
8964   test -z "$as_dir" && as_dir=.
8965     for ac_prog in fgrep; do
8966     for ac_exec_ext in '' $ac_executable_extensions; do
8967       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8968       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
8969 # Check for GNU ac_path_FGREP and select it if it is found.
8970   # Check for GNU $ac_path_FGREP
8971 case `"$ac_path_FGREP" --version 2>&1` in
8972 *GNU*)
8973   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8974 *)
8975   ac_count=0
8976   $as_echo_n 0123456789 >"conftest.in"
8977   while :
8978   do
8979     cat "conftest.in" "conftest.in" >"conftest.tmp"
8980     mv "conftest.tmp" "conftest.in"
8981     cp "conftest.in" "conftest.nl"
8982     $as_echo 'FGREP' >> "conftest.nl"
8983     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8984     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8985     as_fn_arith $ac_count + 1 && ac_count=$as_val
8986     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8987       # Best one so far, save it but keep looking for a better one
8988       ac_cv_path_FGREP="$ac_path_FGREP"
8989       ac_path_FGREP_max=$ac_count
8990     fi
8991     # 10*(2^10) chars as input seems more than enough
8992     test $ac_count -gt 10 && break
8993   done
8994   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8995 esac
8996
8997       $ac_path_FGREP_found && break 3
8998     done
8999   done
9000   done
9001 IFS=$as_save_IFS
9002   if test -z "$ac_cv_path_FGREP"; then
9003     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9004   fi
9005 else
9006   ac_cv_path_FGREP=$FGREP
9007 fi
9008
9009    fi
9010 fi
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
9012 $as_echo "$ac_cv_path_FGREP" >&6; }
9013  FGREP="$ac_cv_path_FGREP"
9014
9015
9016 test -z "$GREP" && GREP=grep
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036 # Check whether --with-gnu-ld was given.
9037 if test "${with_gnu_ld+set}" = set; then :
9038   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9039 else
9040   with_gnu_ld=no
9041 fi
9042
9043 ac_prog=ld
9044 if test "$GCC" = yes; then
9045   # Check if gcc -print-prog-name=ld gives a path.
9046   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9047 $as_echo_n "checking for ld used by $CC... " >&6; }
9048   case $host in
9049   *-*-mingw*)
9050     # gcc leaves a trailing carriage return which upsets mingw
9051     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9052   *)
9053     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9054   esac
9055   case $ac_prog in
9056     # Accept absolute paths.
9057     [\\/]* | ?:[\\/]*)
9058       re_direlt='/[^/][^/]*/\.\./'
9059       # Canonicalize the pathname of ld
9060       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
9061       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
9062         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
9063       done
9064       test -z "$LD" && LD="$ac_prog"
9065       ;;
9066   "")
9067     # If it fails, then pretend we aren't using GCC.
9068     ac_prog=ld
9069     ;;
9070   *)
9071     # If it is relative, then search for the first ld in PATH.
9072     with_gnu_ld=unknown
9073     ;;
9074   esac
9075 elif test "$with_gnu_ld" = yes; then
9076   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9077 $as_echo_n "checking for GNU ld... " >&6; }
9078 else
9079   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9080 $as_echo_n "checking for non-GNU ld... " >&6; }
9081 fi
9082 if ${lt_cv_path_LD+:} false; then :
9083   $as_echo_n "(cached) " >&6
9084 else
9085   if test -z "$LD"; then
9086   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9087   for ac_dir in $PATH; do
9088     IFS="$lt_save_ifs"
9089     test -z "$ac_dir" && ac_dir=.
9090     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9091       lt_cv_path_LD="$ac_dir/$ac_prog"
9092       # Check to see if the program is GNU ld.  I'd rather use --version,
9093       # but apparently some variants of GNU ld only accept -v.
9094       # Break only if it was the GNU/non-GNU ld that we prefer.
9095       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9096       *GNU* | *'with BFD'*)
9097         test "$with_gnu_ld" != no && break
9098         ;;
9099       *)
9100         test "$with_gnu_ld" != yes && break
9101         ;;
9102       esac
9103     fi
9104   done
9105   IFS="$lt_save_ifs"
9106 else
9107   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9108 fi
9109 fi
9110
9111 LD="$lt_cv_path_LD"
9112 if test -n "$LD"; then
9113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9114 $as_echo "$LD" >&6; }
9115 else
9116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9117 $as_echo "no" >&6; }
9118 fi
9119 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9121 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9122 if ${lt_cv_prog_gnu_ld+:} false; then :
9123   $as_echo_n "(cached) " >&6
9124 else
9125   # I'd rather use --version here, but apparently some GNU lds only accept -v.
9126 case `$LD -v 2>&1 </dev/null` in
9127 *GNU* | *'with BFD'*)
9128   lt_cv_prog_gnu_ld=yes
9129   ;;
9130 *)
9131   lt_cv_prog_gnu_ld=no
9132   ;;
9133 esac
9134 fi
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9136 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
9137 with_gnu_ld=$lt_cv_prog_gnu_ld
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9148 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9149 if ${lt_cv_path_NM+:} false; then :
9150   $as_echo_n "(cached) " >&6
9151 else
9152   if test -n "$NM"; then
9153   # Let the user override the test.
9154   lt_cv_path_NM="$NM"
9155 else
9156   lt_nm_to_check="${ac_tool_prefix}nm"
9157   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9158     lt_nm_to_check="$lt_nm_to_check nm"
9159   fi
9160   for lt_tmp_nm in $lt_nm_to_check; do
9161     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9162     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9163       IFS="$lt_save_ifs"
9164       test -z "$ac_dir" && ac_dir=.
9165       tmp_nm="$ac_dir/$lt_tmp_nm"
9166       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9167         # Check to see if the nm accepts a BSD-compat flag.
9168         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9169         #   nm: unknown option "B" ignored
9170         # Tru64's nm complains that /dev/null is an invalid object file
9171         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9172         */dev/null* | *'Invalid file or object type'*)
9173           lt_cv_path_NM="$tmp_nm -B"
9174           break
9175           ;;
9176         *)
9177           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9178           */dev/null*)
9179             lt_cv_path_NM="$tmp_nm -p"
9180             break
9181             ;;
9182           *)
9183             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9184             continue # so that we can try to find one that supports BSD flags
9185             ;;
9186           esac
9187           ;;
9188         esac
9189       fi
9190     done
9191     IFS="$lt_save_ifs"
9192   done
9193   : ${lt_cv_path_NM=no}
9194 fi
9195 fi
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9197 $as_echo "$lt_cv_path_NM" >&6; }
9198 if test "$lt_cv_path_NM" != "no"; then
9199   NM="$lt_cv_path_NM"
9200 else
9201   # Didn't find any BSD compatible name lister, look for dumpbin.
9202   if test -n "$ac_tool_prefix"; then
9203   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
9204   do
9205     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9206 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9208 $as_echo_n "checking for $ac_word... " >&6; }
9209 if ${ac_cv_prog_DUMPBIN+:} false; then :
9210   $as_echo_n "(cached) " >&6
9211 else
9212   if test -n "$DUMPBIN"; then
9213   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9214 else
9215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9216 for as_dir in $PATH
9217 do
9218   IFS=$as_save_IFS
9219   test -z "$as_dir" && as_dir=.
9220     for ac_exec_ext in '' $ac_executable_extensions; do
9221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9222     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9224     break 2
9225   fi
9226 done
9227   done
9228 IFS=$as_save_IFS
9229
9230 fi
9231 fi
9232 DUMPBIN=$ac_cv_prog_DUMPBIN
9233 if test -n "$DUMPBIN"; then
9234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9235 $as_echo "$DUMPBIN" >&6; }
9236 else
9237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9238 $as_echo "no" >&6; }
9239 fi
9240
9241
9242     test -n "$DUMPBIN" && break
9243   done
9244 fi
9245 if test -z "$DUMPBIN"; then
9246   ac_ct_DUMPBIN=$DUMPBIN
9247   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
9248 do
9249   # Extract the first word of "$ac_prog", so it can be a program name with args.
9250 set dummy $ac_prog; ac_word=$2
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9252 $as_echo_n "checking for $ac_word... " >&6; }
9253 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
9254   $as_echo_n "(cached) " >&6
9255 else
9256   if test -n "$ac_ct_DUMPBIN"; then
9257   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9258 else
9259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9260 for as_dir in $PATH
9261 do
9262   IFS=$as_save_IFS
9263   test -z "$as_dir" && as_dir=.
9264     for ac_exec_ext in '' $ac_executable_extensions; do
9265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9266     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9268     break 2
9269   fi
9270 done
9271   done
9272 IFS=$as_save_IFS
9273
9274 fi
9275 fi
9276 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9277 if test -n "$ac_ct_DUMPBIN"; then
9278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9279 $as_echo "$ac_ct_DUMPBIN" >&6; }
9280 else
9281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9282 $as_echo "no" >&6; }
9283 fi
9284
9285
9286   test -n "$ac_ct_DUMPBIN" && break
9287 done
9288
9289   if test "x$ac_ct_DUMPBIN" = x; then
9290     DUMPBIN=":"
9291   else
9292     case $cross_compiling:$ac_tool_warned in
9293 yes:)
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9296 ac_tool_warned=yes ;;
9297 esac
9298     DUMPBIN=$ac_ct_DUMPBIN
9299   fi
9300 fi
9301
9302
9303   if test "$DUMPBIN" != ":"; then
9304     NM="$DUMPBIN"
9305   fi
9306 fi
9307 test -z "$NM" && NM=nm
9308
9309
9310
9311
9312
9313
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9315 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
9316 if ${lt_cv_nm_interface+:} false; then :
9317   $as_echo_n "(cached) " >&6
9318 else
9319   lt_cv_nm_interface="BSD nm"
9320   echo "int some_variable = 0;" > conftest.$ac_ext
9321   (eval echo "\"\$as_me:9321: $ac_compile\"" >&5)
9322   (eval "$ac_compile" 2>conftest.err)
9323   cat conftest.err >&5
9324   (eval echo "\"\$as_me:9324: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9325   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9326   cat conftest.err >&5
9327   (eval echo "\"\$as_me:9327: output\"" >&5)
9328   cat conftest.out >&5
9329   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9330     lt_cv_nm_interface="MS dumpbin"
9331   fi
9332   rm -f conftest*
9333 fi
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9335 $as_echo "$lt_cv_nm_interface" >&6; }
9336
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9338 $as_echo_n "checking whether ln -s works... " >&6; }
9339 LN_S=$as_ln_s
9340 if test "$LN_S" = "ln -s"; then
9341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9342 $as_echo "yes" >&6; }
9343 else
9344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9345 $as_echo "no, using $LN_S" >&6; }
9346 fi
9347
9348 # find the maximum length of command line arguments
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9350 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
9351 if ${lt_cv_sys_max_cmd_len+:} false; then :
9352   $as_echo_n "(cached) " >&6
9353 else
9354     i=0
9355   teststring="ABCD"
9356
9357   case $build_os in
9358   msdosdjgpp*)
9359     # On DJGPP, this test can blow up pretty badly due to problems in libc
9360     # (any single argument exceeding 2000 bytes causes a buffer overrun
9361     # during glob expansion).  Even if it were fixed, the result of this
9362     # check would be larger than it should be.
9363     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
9364     ;;
9365
9366   gnu*)
9367     # Under GNU Hurd, this test is not required because there is
9368     # no limit to the length of command line arguments.
9369     # Libtool will interpret -1 as no limit whatsoever
9370     lt_cv_sys_max_cmd_len=-1;
9371     ;;
9372
9373   cygwin* | mingw* | cegcc*)
9374     # On Win9x/ME, this test blows up -- it succeeds, but takes
9375     # about 5 minutes as the teststring grows exponentially.
9376     # Worse, since 9x/ME are not pre-emptively multitasking,
9377     # you end up with a "frozen" computer, even though with patience
9378     # the test eventually succeeds (with a max line length of 256k).
9379     # Instead, let's just punt: use the minimum linelength reported by
9380     # all of the supported platforms: 8192 (on NT/2K/XP).
9381     lt_cv_sys_max_cmd_len=8192;
9382     ;;
9383
9384   amigaos*)
9385     # On AmigaOS with pdksh, this test takes hours, literally.
9386     # So we just punt and use a minimum line length of 8192.
9387     lt_cv_sys_max_cmd_len=8192;
9388     ;;
9389
9390   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9391     # This has been around since 386BSD, at least.  Likely further.
9392     if test -x /sbin/sysctl; then
9393       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9394     elif test -x /usr/sbin/sysctl; then
9395       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9396     else
9397       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
9398     fi
9399     # And add a safety zone
9400     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9401     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9402     ;;
9403
9404   interix*)
9405     # We know the value 262144 and hardcode it with a safety zone (like BSD)
9406     lt_cv_sys_max_cmd_len=196608
9407     ;;
9408
9409   osf*)
9410     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9411     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9412     # nice to cause kernel panics so lets avoid the loop below.
9413     # First set a reasonable default.
9414     lt_cv_sys_max_cmd_len=16384
9415     #
9416     if test -x /sbin/sysconfig; then
9417       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9418         *1*) lt_cv_sys_max_cmd_len=-1 ;;
9419       esac
9420     fi
9421     ;;
9422   sco3.2v5*)
9423     lt_cv_sys_max_cmd_len=102400
9424     ;;
9425   sysv5* | sco5v6* | sysv4.2uw2*)
9426     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9427     if test -n "$kargmax"; then
9428       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
9429     else
9430       lt_cv_sys_max_cmd_len=32768
9431     fi
9432     ;;
9433   *)
9434     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9435     if test -n "$lt_cv_sys_max_cmd_len"; then
9436       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9437       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9438     else
9439       # Make teststring a little bigger before we do anything with it.
9440       # a 1K string should be a reasonable start.
9441       for i in 1 2 3 4 5 6 7 8 ; do
9442         teststring=$teststring$teststring
9443       done
9444       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9445       # If test is not a shell built-in, we'll probably end up computing a
9446       # maximum length that is only half of the actual maximum length, but
9447       # we can't tell.
9448       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
9449                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
9450               test $i != 17 # 1/2 MB should be enough
9451       do
9452         i=`expr $i + 1`
9453         teststring=$teststring$teststring
9454       done
9455       # Only check the string length outside the loop.
9456       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9457       teststring=
9458       # Add a significant safety factor because C++ compilers can tack on
9459       # massive amounts of additional arguments before passing them to the
9460       # linker.  It appears as though 1/2 is a usable value.
9461       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9462     fi
9463     ;;
9464   esac
9465
9466 fi
9467
9468 if test -n $lt_cv_sys_max_cmd_len ; then
9469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9470 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9471 else
9472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9473 $as_echo "none" >&6; }
9474 fi
9475 max_cmd_len=$lt_cv_sys_max_cmd_len
9476
9477
9478
9479
9480
9481
9482 : ${CP="cp -f"}
9483 : ${MV="mv -f"}
9484 : ${RM="rm -f"}
9485
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9487 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9488 # Try some XSI features
9489 xsi_shell=no
9490 ( _lt_dummy="a/b/c"
9491   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9492       = c,a/b,, \
9493     && eval 'test $(( 1 + 1 )) -eq 2 \
9494     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9495   && xsi_shell=yes
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9497 $as_echo "$xsi_shell" >&6; }
9498
9499
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9501 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9502 lt_shell_append=no
9503 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9504     >/dev/null 2>&1 \
9505   && lt_shell_append=yes
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9507 $as_echo "$lt_shell_append" >&6; }
9508
9509
9510 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9511   lt_unset=unset
9512 else
9513   lt_unset=false
9514 fi
9515
9516
9517
9518
9519
9520 # test EBCDIC or ASCII
9521 case `echo X|tr X '\101'` in
9522  A) # ASCII based system
9523     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9524   lt_SP2NL='tr \040 \012'
9525   lt_NL2SP='tr \015\012 \040\040'
9526   ;;
9527  *) # EBCDIC based system
9528   lt_SP2NL='tr \100 \n'
9529   lt_NL2SP='tr \r\n \100\100'
9530   ;;
9531 esac
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9542 $as_echo_n "checking for $LD option to reload object files... " >&6; }
9543 if ${lt_cv_ld_reload_flag+:} false; then :
9544   $as_echo_n "(cached) " >&6
9545 else
9546   lt_cv_ld_reload_flag='-r'
9547 fi
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9549 $as_echo "$lt_cv_ld_reload_flag" >&6; }
9550 reload_flag=$lt_cv_ld_reload_flag
9551 case $reload_flag in
9552 "" | " "*) ;;
9553 *) reload_flag=" $reload_flag" ;;
9554 esac
9555 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9556 case $host_os in
9557   darwin*)
9558     if test "$GCC" = yes; then
9559       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9560     else
9561       reload_cmds='$LD$reload_flag -o $output$reload_objs'
9562     fi
9563     ;;
9564 esac
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574 if test -n "$ac_tool_prefix"; then
9575   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9576 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9578 $as_echo_n "checking for $ac_word... " >&6; }
9579 if ${ac_cv_prog_OBJDUMP+:} false; then :
9580   $as_echo_n "(cached) " >&6
9581 else
9582   if test -n "$OBJDUMP"; then
9583   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9584 else
9585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9586 for as_dir in $PATH
9587 do
9588   IFS=$as_save_IFS
9589   test -z "$as_dir" && as_dir=.
9590     for ac_exec_ext in '' $ac_executable_extensions; do
9591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9592     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9594     break 2
9595   fi
9596 done
9597   done
9598 IFS=$as_save_IFS
9599
9600 fi
9601 fi
9602 OBJDUMP=$ac_cv_prog_OBJDUMP
9603 if test -n "$OBJDUMP"; then
9604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9605 $as_echo "$OBJDUMP" >&6; }
9606 else
9607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9608 $as_echo "no" >&6; }
9609 fi
9610
9611
9612 fi
9613 if test -z "$ac_cv_prog_OBJDUMP"; then
9614   ac_ct_OBJDUMP=$OBJDUMP
9615   # Extract the first word of "objdump", so it can be a program name with args.
9616 set dummy objdump; ac_word=$2
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9618 $as_echo_n "checking for $ac_word... " >&6; }
9619 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9620   $as_echo_n "(cached) " >&6
9621 else
9622   if test -n "$ac_ct_OBJDUMP"; then
9623   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9624 else
9625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9626 for as_dir in $PATH
9627 do
9628   IFS=$as_save_IFS
9629   test -z "$as_dir" && as_dir=.
9630     for ac_exec_ext in '' $ac_executable_extensions; do
9631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9632     ac_cv_prog_ac_ct_OBJDUMP="objdump"
9633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9634     break 2
9635   fi
9636 done
9637   done
9638 IFS=$as_save_IFS
9639
9640 fi
9641 fi
9642 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9643 if test -n "$ac_ct_OBJDUMP"; then
9644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9645 $as_echo "$ac_ct_OBJDUMP" >&6; }
9646 else
9647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9648 $as_echo "no" >&6; }
9649 fi
9650
9651   if test "x$ac_ct_OBJDUMP" = x; then
9652     OBJDUMP="false"
9653   else
9654     case $cross_compiling:$ac_tool_warned in
9655 yes:)
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9658 ac_tool_warned=yes ;;
9659 esac
9660     OBJDUMP=$ac_ct_OBJDUMP
9661   fi
9662 else
9663   OBJDUMP="$ac_cv_prog_OBJDUMP"
9664 fi
9665
9666 test -z "$OBJDUMP" && OBJDUMP=objdump
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9677 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
9678 if ${lt_cv_deplibs_check_method+:} false; then :
9679   $as_echo_n "(cached) " >&6
9680 else
9681   lt_cv_file_magic_cmd='$MAGIC_CMD'
9682 lt_cv_file_magic_test_file=
9683 lt_cv_deplibs_check_method='unknown'
9684 # Need to set the preceding variable on all platforms that support
9685 # interlibrary dependencies.
9686 # 'none' -- dependencies not supported.
9687 # `unknown' -- same as none, but documents that we really don't know.
9688 # 'pass_all' -- all dependencies passed with no checks.
9689 # 'test_compile' -- check by making test program.
9690 # 'file_magic [[regex]]' -- check by looking for files in library path
9691 # which responds to the $file_magic_cmd with a given extended regex.
9692 # If you have `file' or equivalent on your system and you're not sure
9693 # whether `pass_all' will *always* work, you probably want this one.
9694
9695 case $host_os in
9696 aix[4-9]*)
9697   lt_cv_deplibs_check_method=pass_all
9698   ;;
9699
9700 beos*)
9701   lt_cv_deplibs_check_method=pass_all
9702   ;;
9703
9704 bsdi[45]*)
9705   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9706   lt_cv_file_magic_cmd='/usr/bin/file -L'
9707   lt_cv_file_magic_test_file=/shlib/libc.so
9708   ;;
9709
9710 cygwin*)
9711   # func_win32_libid is a shell function defined in ltmain.sh
9712   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9713   lt_cv_file_magic_cmd='func_win32_libid'
9714   ;;
9715
9716 mingw* | pw32*)
9717   # Base MSYS/MinGW do not provide the 'file' command needed by
9718   # func_win32_libid shell function, so use a weaker test based on 'objdump',
9719   # unless we find 'file', for example because we are cross-compiling.
9720   if ( file / ) >/dev/null 2>&1; then
9721     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9722     lt_cv_file_magic_cmd='func_win32_libid'
9723   else
9724     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9725     lt_cv_file_magic_cmd='$OBJDUMP -f'
9726   fi
9727   ;;
9728
9729 cegcc)
9730   # use the weaker test based on 'objdump'. See mingw*.
9731   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9732   lt_cv_file_magic_cmd='$OBJDUMP -f'
9733   ;;
9734
9735 darwin* | rhapsody*)
9736   lt_cv_deplibs_check_method=pass_all
9737   ;;
9738
9739 freebsd* | dragonfly*)
9740   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9741     case $host_cpu in
9742     i*86 )
9743       # Not sure whether the presence of OpenBSD here was a mistake.
9744       # Let's accept both of them until this is cleared up.
9745       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9746       lt_cv_file_magic_cmd=/usr/bin/file
9747       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9748       ;;
9749     esac
9750   else
9751     lt_cv_deplibs_check_method=pass_all
9752   fi
9753   ;;
9754
9755 gnu*)
9756   lt_cv_deplibs_check_method=pass_all
9757   ;;
9758
9759 hpux10.20* | hpux11*)
9760   lt_cv_file_magic_cmd=/usr/bin/file
9761   case $host_cpu in
9762   ia64*)
9763     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9764     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9765     ;;
9766   hppa*64*)
9767     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
9768     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9769     ;;
9770   *)
9771     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
9772     lt_cv_file_magic_test_file=/usr/lib/libc.sl
9773     ;;
9774   esac
9775   ;;
9776
9777 interix[3-9]*)
9778   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9779   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9780   ;;
9781
9782 irix5* | irix6* | nonstopux*)
9783   case $LD in
9784   *-32|*"-32 ") libmagic=32-bit;;
9785   *-n32|*"-n32 ") libmagic=N32;;
9786   *-64|*"-64 ") libmagic=64-bit;;
9787   *) libmagic=never-match;;
9788   esac
9789   lt_cv_deplibs_check_method=pass_all
9790   ;;
9791
9792 # This must be Linux ELF.
9793 linux* | k*bsd*-gnu)
9794   lt_cv_deplibs_check_method=pass_all
9795   ;;
9796
9797 netbsd*)
9798   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9799     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9800   else
9801     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9802   fi
9803   ;;
9804
9805 newos6*)
9806   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9807   lt_cv_file_magic_cmd=/usr/bin/file
9808   lt_cv_file_magic_test_file=/usr/lib/libnls.so
9809   ;;
9810
9811 *nto* | *qnx*)
9812   lt_cv_deplibs_check_method=pass_all
9813   ;;
9814
9815 openbsd*)
9816   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9817     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9818   else
9819     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9820   fi
9821   ;;
9822
9823 osf3* | osf4* | osf5*)
9824   lt_cv_deplibs_check_method=pass_all
9825   ;;
9826
9827 rdos*)
9828   lt_cv_deplibs_check_method=pass_all
9829   ;;
9830
9831 solaris*)
9832   lt_cv_deplibs_check_method=pass_all
9833   ;;
9834
9835 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9836   lt_cv_deplibs_check_method=pass_all
9837   ;;
9838
9839 sysv4 | sysv4.3*)
9840   case $host_vendor in
9841   motorola)
9842     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
9843     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9844     ;;
9845   ncr)
9846     lt_cv_deplibs_check_method=pass_all
9847     ;;
9848   sequent)
9849     lt_cv_file_magic_cmd='/bin/file'
9850     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9851     ;;
9852   sni)
9853     lt_cv_file_magic_cmd='/bin/file'
9854     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9855     lt_cv_file_magic_test_file=/lib/libc.so
9856     ;;
9857   siemens)
9858     lt_cv_deplibs_check_method=pass_all
9859     ;;
9860   pc)
9861     lt_cv_deplibs_check_method=pass_all
9862     ;;
9863   esac
9864   ;;
9865
9866 tpf*)
9867   lt_cv_deplibs_check_method=pass_all
9868   ;;
9869 esac
9870
9871 fi
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9873 $as_echo "$lt_cv_deplibs_check_method" >&6; }
9874 file_magic_cmd=$lt_cv_file_magic_cmd
9875 deplibs_check_method=$lt_cv_deplibs_check_method
9876 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889 if test -n "$ac_tool_prefix"; then
9890   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9891 set dummy ${ac_tool_prefix}ar; ac_word=$2
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9893 $as_echo_n "checking for $ac_word... " >&6; }
9894 if ${ac_cv_prog_AR+:} false; then :
9895   $as_echo_n "(cached) " >&6
9896 else
9897   if test -n "$AR"; then
9898   ac_cv_prog_AR="$AR" # Let the user override the test.
9899 else
9900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9901 for as_dir in $PATH
9902 do
9903   IFS=$as_save_IFS
9904   test -z "$as_dir" && as_dir=.
9905     for ac_exec_ext in '' $ac_executable_extensions; do
9906   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9907     ac_cv_prog_AR="${ac_tool_prefix}ar"
9908     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9909     break 2
9910   fi
9911 done
9912   done
9913 IFS=$as_save_IFS
9914
9915 fi
9916 fi
9917 AR=$ac_cv_prog_AR
9918 if test -n "$AR"; then
9919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9920 $as_echo "$AR" >&6; }
9921 else
9922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9923 $as_echo "no" >&6; }
9924 fi
9925
9926
9927 fi
9928 if test -z "$ac_cv_prog_AR"; then
9929   ac_ct_AR=$AR
9930   # Extract the first word of "ar", so it can be a program name with args.
9931 set dummy ar; ac_word=$2
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9933 $as_echo_n "checking for $ac_word... " >&6; }
9934 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9935   $as_echo_n "(cached) " >&6
9936 else
9937   if test -n "$ac_ct_AR"; then
9938   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9939 else
9940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9941 for as_dir in $PATH
9942 do
9943   IFS=$as_save_IFS
9944   test -z "$as_dir" && as_dir=.
9945     for ac_exec_ext in '' $ac_executable_extensions; do
9946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9947     ac_cv_prog_ac_ct_AR="ar"
9948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9949     break 2
9950   fi
9951 done
9952   done
9953 IFS=$as_save_IFS
9954
9955 fi
9956 fi
9957 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9958 if test -n "$ac_ct_AR"; then
9959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9960 $as_echo "$ac_ct_AR" >&6; }
9961 else
9962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9963 $as_echo "no" >&6; }
9964 fi
9965
9966   if test "x$ac_ct_AR" = x; then
9967     AR="false"
9968   else
9969     case $cross_compiling:$ac_tool_warned in
9970 yes:)
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9973 ac_tool_warned=yes ;;
9974 esac
9975     AR=$ac_ct_AR
9976   fi
9977 else
9978   AR="$ac_cv_prog_AR"
9979 fi
9980
9981 test -z "$AR" && AR=ar
9982 test -z "$AR_FLAGS" && AR_FLAGS=cru
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994 if test -n "$ac_tool_prefix"; then
9995   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9996 set dummy ${ac_tool_prefix}strip; ac_word=$2
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9998 $as_echo_n "checking for $ac_word... " >&6; }
9999 if ${ac_cv_prog_STRIP+:} false; then :
10000   $as_echo_n "(cached) " >&6
10001 else
10002   if test -n "$STRIP"; then
10003   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10004 else
10005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10006 for as_dir in $PATH
10007 do
10008   IFS=$as_save_IFS
10009   test -z "$as_dir" && as_dir=.
10010     for ac_exec_ext in '' $ac_executable_extensions; do
10011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10012     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10014     break 2
10015   fi
10016 done
10017   done
10018 IFS=$as_save_IFS
10019
10020 fi
10021 fi
10022 STRIP=$ac_cv_prog_STRIP
10023 if test -n "$STRIP"; then
10024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10025 $as_echo "$STRIP" >&6; }
10026 else
10027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10028 $as_echo "no" >&6; }
10029 fi
10030
10031
10032 fi
10033 if test -z "$ac_cv_prog_STRIP"; then
10034   ac_ct_STRIP=$STRIP
10035   # Extract the first word of "strip", so it can be a program name with args.
10036 set dummy strip; ac_word=$2
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10038 $as_echo_n "checking for $ac_word... " >&6; }
10039 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10040   $as_echo_n "(cached) " >&6
10041 else
10042   if test -n "$ac_ct_STRIP"; then
10043   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10044 else
10045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10046 for as_dir in $PATH
10047 do
10048   IFS=$as_save_IFS
10049   test -z "$as_dir" && as_dir=.
10050     for ac_exec_ext in '' $ac_executable_extensions; do
10051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10052     ac_cv_prog_ac_ct_STRIP="strip"
10053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10054     break 2
10055   fi
10056 done
10057   done
10058 IFS=$as_save_IFS
10059
10060 fi
10061 fi
10062 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10063 if test -n "$ac_ct_STRIP"; then
10064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10065 $as_echo "$ac_ct_STRIP" >&6; }
10066 else
10067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10068 $as_echo "no" >&6; }
10069 fi
10070
10071   if test "x$ac_ct_STRIP" = x; then
10072     STRIP=":"
10073   else
10074     case $cross_compiling:$ac_tool_warned in
10075 yes:)
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10078 ac_tool_warned=yes ;;
10079 esac
10080     STRIP=$ac_ct_STRIP
10081   fi
10082 else
10083   STRIP="$ac_cv_prog_STRIP"
10084 fi
10085
10086 test -z "$STRIP" && STRIP=:
10087
10088
10089
10090
10091
10092
10093 if test -n "$ac_tool_prefix"; then
10094   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10095 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10097 $as_echo_n "checking for $ac_word... " >&6; }
10098 if ${ac_cv_prog_RANLIB+:} false; then :
10099   $as_echo_n "(cached) " >&6
10100 else
10101   if test -n "$RANLIB"; then
10102   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10103 else
10104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10105 for as_dir in $PATH
10106 do
10107   IFS=$as_save_IFS
10108   test -z "$as_dir" && as_dir=.
10109     for ac_exec_ext in '' $ac_executable_extensions; do
10110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10111     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10113     break 2
10114   fi
10115 done
10116   done
10117 IFS=$as_save_IFS
10118
10119 fi
10120 fi
10121 RANLIB=$ac_cv_prog_RANLIB
10122 if test -n "$RANLIB"; then
10123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10124 $as_echo "$RANLIB" >&6; }
10125 else
10126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10127 $as_echo "no" >&6; }
10128 fi
10129
10130
10131 fi
10132 if test -z "$ac_cv_prog_RANLIB"; then
10133   ac_ct_RANLIB=$RANLIB
10134   # Extract the first word of "ranlib", so it can be a program name with args.
10135 set dummy ranlib; ac_word=$2
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10137 $as_echo_n "checking for $ac_word... " >&6; }
10138 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10139   $as_echo_n "(cached) " >&6
10140 else
10141   if test -n "$ac_ct_RANLIB"; then
10142   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10143 else
10144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10145 for as_dir in $PATH
10146 do
10147   IFS=$as_save_IFS
10148   test -z "$as_dir" && as_dir=.
10149     for ac_exec_ext in '' $ac_executable_extensions; do
10150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10151     ac_cv_prog_ac_ct_RANLIB="ranlib"
10152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10153     break 2
10154   fi
10155 done
10156   done
10157 IFS=$as_save_IFS
10158
10159 fi
10160 fi
10161 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10162 if test -n "$ac_ct_RANLIB"; then
10163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10164 $as_echo "$ac_ct_RANLIB" >&6; }
10165 else
10166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10167 $as_echo "no" >&6; }
10168 fi
10169
10170   if test "x$ac_ct_RANLIB" = x; then
10171     RANLIB=":"
10172   else
10173     case $cross_compiling:$ac_tool_warned in
10174 yes:)
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10177 ac_tool_warned=yes ;;
10178 esac
10179     RANLIB=$ac_ct_RANLIB
10180   fi
10181 else
10182   RANLIB="$ac_cv_prog_RANLIB"
10183 fi
10184
10185 test -z "$RANLIB" && RANLIB=:
10186
10187
10188
10189
10190
10191
10192 # Determine commands to create old-style static archives.
10193 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10194 old_postinstall_cmds='chmod 644 $oldlib'
10195 old_postuninstall_cmds=
10196
10197 if test -n "$RANLIB"; then
10198   case $host_os in
10199   openbsd*)
10200     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10201     ;;
10202   *)
10203     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10204     ;;
10205   esac
10206   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10207 fi
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242 # If no C compiler was specified, use CC.
10243 LTCC=${LTCC-"$CC"}
10244
10245 # If no C compiler flags were specified, use CFLAGS.
10246 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10247
10248 # Allow CC to be a program name with arguments.
10249 compiler=$CC
10250
10251
10252 # Check for command to grab the raw symbol name followed by C symbol from nm.
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10254 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10255 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
10256   $as_echo_n "(cached) " >&6
10257 else
10258
10259 # These are sane defaults that work on at least a few old systems.
10260 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10261
10262 # Character class describing NM global symbol codes.
10263 symcode='[BCDEGRST]'
10264
10265 # Regexp to match symbols that can be accessed directly from C.
10266 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10267
10268 # Define system-specific variables.
10269 case $host_os in
10270 aix*)
10271   symcode='[BCDT]'
10272   ;;
10273 cygwin* | mingw* | pw32* | cegcc*)
10274   symcode='[ABCDGISTW]'
10275   ;;
10276 hpux*)
10277   if test "$host_cpu" = ia64; then
10278     symcode='[ABCDEGRST]'
10279   fi
10280   ;;
10281 irix* | nonstopux*)
10282   symcode='[BCDEGRST]'
10283   ;;
10284 osf*)
10285   symcode='[BCDEGQRST]'
10286   ;;
10287 solaris*)
10288   symcode='[BDRT]'
10289   ;;
10290 sco3.2v5*)
10291   symcode='[DT]'
10292   ;;
10293 sysv4.2uw2*)
10294   symcode='[DT]'
10295   ;;
10296 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10297   symcode='[ABDT]'
10298   ;;
10299 sysv4)
10300   symcode='[DFNSTU]'
10301   ;;
10302 esac
10303
10304 # If we're using GNU nm, then use its standard symbol codes.
10305 case `$NM -V 2>&1` in
10306 *GNU* | *'with BFD'*)
10307   symcode='[ABCDGIRSTW]' ;;
10308 esac
10309
10310 # Transform an extracted symbol line into a proper C declaration.
10311 # Some systems (esp. on ia64) link data and code symbols differently,
10312 # so use this general approach.
10313 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10314
10315 # Transform an extracted symbol line into symbol name and symbol address
10316 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
10317 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
10318
10319 # Handle CRLF in mingw tool chain
10320 opt_cr=
10321 case $build_os in
10322 mingw*)
10323   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10324   ;;
10325 esac
10326
10327 # Try without a prefix underscore, then with it.
10328 for ac_symprfx in "" "_"; do
10329
10330   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10331   symxfrm="\\1 $ac_symprfx\\2 \\2"
10332
10333   # Write the raw and C identifiers.
10334   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10335     # Fake it for dumpbin and say T for any non-static function
10336     # and D for any global variable.
10337     # Also find C++ and __fastcall symbols from MSVC++,
10338     # which start with @ or ?.
10339     lt_cv_sys_global_symbol_pipe="$AWK '"\
10340 "     {last_section=section; section=\$ 3};"\
10341 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10342 "     \$ 0!~/External *\|/{next};"\
10343 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10344 "     {if(hide[section]) next};"\
10345 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10346 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10347 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
10348 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10349 "     ' prfx=^$ac_symprfx"
10350   else
10351     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10352   fi
10353
10354   # Check to see that the pipe works correctly.
10355   pipe_works=no
10356
10357   rm -f conftest*
10358   cat > conftest.$ac_ext <<_LT_EOF
10359 #ifdef __cplusplus
10360 extern "C" {
10361 #endif
10362 char nm_test_var;
10363 void nm_test_func(void);
10364 void nm_test_func(void){}
10365 #ifdef __cplusplus
10366 }
10367 #endif
10368 int main(){nm_test_var='a';nm_test_func();return(0);}
10369 _LT_EOF
10370
10371   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10372   (eval $ac_compile) 2>&5
10373   ac_status=$?
10374   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10375   test $ac_status = 0; }; then
10376     # Now try to grab the symbols.
10377     nlist=conftest.nm
10378     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
10379   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10380   ac_status=$?
10381   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10382   test $ac_status = 0; } && test -s "$nlist"; then
10383       # Try sorting and uniquifying the output.
10384       if sort "$nlist" | uniq > "$nlist"T; then
10385         mv -f "$nlist"T "$nlist"
10386       else
10387         rm -f "$nlist"T
10388       fi
10389
10390       # Make sure that we snagged all the symbols we need.
10391       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10392         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10393           cat <<_LT_EOF > conftest.$ac_ext
10394 #ifdef __cplusplus
10395 extern "C" {
10396 #endif
10397
10398 _LT_EOF
10399           # Now generate the symbol file.
10400           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10401
10402           cat <<_LT_EOF >> conftest.$ac_ext
10403
10404 /* The mapping between symbol names and symbols.  */
10405 const struct {
10406   const char *name;
10407   void       *address;
10408 }
10409 lt__PROGRAM__LTX_preloaded_symbols[] =
10410 {
10411   { "@PROGRAM@", (void *) 0 },
10412 _LT_EOF
10413           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10414           cat <<\_LT_EOF >> conftest.$ac_ext
10415   {0, (void *) 0}
10416 };
10417
10418 /* This works around a problem in FreeBSD linker */
10419 #ifdef FREEBSD_WORKAROUND
10420 static const void *lt_preloaded_setup() {
10421   return lt__PROGRAM__LTX_preloaded_symbols;
10422 }
10423 #endif
10424
10425 #ifdef __cplusplus
10426 }
10427 #endif
10428 _LT_EOF
10429           # Now try linking the two files.
10430           mv conftest.$ac_objext conftstm.$ac_objext
10431           lt_save_LIBS="$LIBS"
10432           lt_save_CFLAGS="$CFLAGS"
10433           LIBS="conftstm.$ac_objext"
10434           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10435           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10436   (eval $ac_link) 2>&5
10437   ac_status=$?
10438   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10439   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
10440             pipe_works=yes
10441           fi
10442           LIBS="$lt_save_LIBS"
10443           CFLAGS="$lt_save_CFLAGS"
10444         else
10445           echo "cannot find nm_test_func in $nlist" >&5
10446         fi
10447       else
10448         echo "cannot find nm_test_var in $nlist" >&5
10449       fi
10450     else
10451       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10452     fi
10453   else
10454     echo "$progname: failed program was:" >&5
10455     cat conftest.$ac_ext >&5
10456   fi
10457   rm -rf conftest* conftst*
10458
10459   # Do not use the global_symbol_pipe unless it works.
10460   if test "$pipe_works" = yes; then
10461     break
10462   else
10463     lt_cv_sys_global_symbol_pipe=
10464   fi
10465 done
10466
10467 fi
10468
10469 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10470   lt_cv_sys_global_symbol_to_cdecl=
10471 fi
10472 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10474 $as_echo "failed" >&6; }
10475 else
10476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10477 $as_echo "ok" >&6; }
10478 fi
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501 # Check whether --enable-libtool-lock was given.
10502 if test "${enable_libtool_lock+set}" = set; then :
10503   enableval=$enable_libtool_lock;
10504 fi
10505
10506 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10507
10508 # Some flags need to be propagated to the compiler or linker for good
10509 # libtool support.
10510 case $host in
10511 ia64-*-hpux*)
10512   # Find out which ABI we are using.
10513   echo 'int i;' > conftest.$ac_ext
10514   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10515   (eval $ac_compile) 2>&5
10516   ac_status=$?
10517   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10518   test $ac_status = 0; }; then
10519     case `/usr/bin/file conftest.$ac_objext` in
10520       *ELF-32*)
10521         HPUX_IA64_MODE="32"
10522         ;;
10523       *ELF-64*)
10524         HPUX_IA64_MODE="64"
10525         ;;
10526     esac
10527   fi
10528   rm -rf conftest*
10529   ;;
10530 *-*-irix6*)
10531   # Find out which ABI we are using.
10532   echo '#line 10532 "configure"' > conftest.$ac_ext
10533   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10534   (eval $ac_compile) 2>&5
10535   ac_status=$?
10536   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10537   test $ac_status = 0; }; then
10538     if test "$lt_cv_prog_gnu_ld" = yes; then
10539       case `/usr/bin/file conftest.$ac_objext` in
10540         *32-bit*)
10541           LD="${LD-ld} -melf32bsmip"
10542           ;;
10543         *N32*)
10544           LD="${LD-ld} -melf32bmipn32"
10545           ;;
10546         *64-bit*)
10547           LD="${LD-ld} -melf64bmip"
10548         ;;
10549       esac
10550     else
10551       case `/usr/bin/file conftest.$ac_objext` in
10552         *32-bit*)
10553           LD="${LD-ld} -32"
10554           ;;
10555         *N32*)
10556           LD="${LD-ld} -n32"
10557           ;;
10558         *64-bit*)
10559           LD="${LD-ld} -64"
10560           ;;
10561       esac
10562     fi
10563   fi
10564   rm -rf conftest*
10565   ;;
10566
10567 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10568 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10569   # Find out which ABI we are using.
10570   echo 'int i;' > conftest.$ac_ext
10571   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10572   (eval $ac_compile) 2>&5
10573   ac_status=$?
10574   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10575   test $ac_status = 0; }; then
10576     case `/usr/bin/file conftest.o` in
10577       *32-bit*)
10578         case $host in
10579           x86_64-*kfreebsd*-gnu)
10580             LD="${LD-ld} -m elf_i386_fbsd"
10581             ;;
10582           x86_64-*linux*)
10583             LD="${LD-ld} -m elf_i386"
10584             ;;
10585           ppc64-*linux*|powerpc64-*linux*)
10586             LD="${LD-ld} -m elf32ppclinux"
10587             ;;
10588           s390x-*linux*)
10589             LD="${LD-ld} -m elf_s390"
10590             ;;
10591           sparc64-*linux*)
10592             LD="${LD-ld} -m elf32_sparc"
10593             ;;
10594         esac
10595         ;;
10596       *64-bit*)
10597         case $host in
10598           x86_64-*kfreebsd*-gnu)
10599             LD="${LD-ld} -m elf_x86_64_fbsd"
10600             ;;
10601           x86_64-*linux*)
10602             LD="${LD-ld} -m elf_x86_64"
10603             ;;
10604           ppc*-*linux*|powerpc*-*linux*)
10605             LD="${LD-ld} -m elf64ppc"
10606             ;;
10607           s390*-*linux*|s390*-*tpf*)
10608             LD="${LD-ld} -m elf64_s390"
10609             ;;
10610           sparc*-*linux*)
10611             LD="${LD-ld} -m elf64_sparc"
10612             ;;
10613         esac
10614         ;;
10615     esac
10616   fi
10617   rm -rf conftest*
10618   ;;
10619
10620 *-*-sco3.2v5*)
10621   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10622   SAVE_CFLAGS="$CFLAGS"
10623   CFLAGS="$CFLAGS -belf"
10624   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10625 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10626 if ${lt_cv_cc_needs_belf+:} false; then :
10627   $as_echo_n "(cached) " >&6
10628 else
10629   ac_ext=c
10630 ac_cpp='$CPP $CPPFLAGS'
10631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10634
10635      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10636 /* end confdefs.h.  */
10637
10638 int
10639 main ()
10640 {
10641
10642   ;
10643   return 0;
10644 }
10645 _ACEOF
10646 if ac_fn_c_try_link "$LINENO"; then :
10647   lt_cv_cc_needs_belf=yes
10648 else
10649   lt_cv_cc_needs_belf=no
10650 fi
10651 rm -f core conftest.err conftest.$ac_objext \
10652     conftest$ac_exeext conftest.$ac_ext
10653      ac_ext=c
10654 ac_cpp='$CPP $CPPFLAGS'
10655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10658
10659 fi
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10661 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10662   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10663     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10664     CFLAGS="$SAVE_CFLAGS"
10665   fi
10666   ;;
10667 sparc*-*solaris*)
10668   # Find out which ABI we are using.
10669   echo 'int i;' > conftest.$ac_ext
10670   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10671   (eval $ac_compile) 2>&5
10672   ac_status=$?
10673   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10674   test $ac_status = 0; }; then
10675     case `/usr/bin/file conftest.o` in
10676     *64-bit*)
10677       case $lt_cv_prog_gnu_ld in
10678       yes*) LD="${LD-ld} -m elf64_sparc" ;;
10679       *)
10680         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10681           LD="${LD-ld} -64"
10682         fi
10683         ;;
10684       esac
10685       ;;
10686     esac
10687   fi
10688   rm -rf conftest*
10689   ;;
10690 esac
10691
10692 need_locks="$enable_libtool_lock"
10693
10694
10695   case $host_os in
10696     rhapsody* | darwin*)
10697     if test -n "$ac_tool_prefix"; then
10698   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10699 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10701 $as_echo_n "checking for $ac_word... " >&6; }
10702 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10703   $as_echo_n "(cached) " >&6
10704 else
10705   if test -n "$DSYMUTIL"; then
10706   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10707 else
10708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10709 for as_dir in $PATH
10710 do
10711   IFS=$as_save_IFS
10712   test -z "$as_dir" && as_dir=.
10713     for ac_exec_ext in '' $ac_executable_extensions; do
10714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10715     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10717     break 2
10718   fi
10719 done
10720   done
10721 IFS=$as_save_IFS
10722
10723 fi
10724 fi
10725 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10726 if test -n "$DSYMUTIL"; then
10727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10728 $as_echo "$DSYMUTIL" >&6; }
10729 else
10730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10731 $as_echo "no" >&6; }
10732 fi
10733
10734
10735 fi
10736 if test -z "$ac_cv_prog_DSYMUTIL"; then
10737   ac_ct_DSYMUTIL=$DSYMUTIL
10738   # Extract the first word of "dsymutil", so it can be a program name with args.
10739 set dummy dsymutil; ac_word=$2
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10741 $as_echo_n "checking for $ac_word... " >&6; }
10742 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10743   $as_echo_n "(cached) " >&6
10744 else
10745   if test -n "$ac_ct_DSYMUTIL"; then
10746   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10747 else
10748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10749 for as_dir in $PATH
10750 do
10751   IFS=$as_save_IFS
10752   test -z "$as_dir" && as_dir=.
10753     for ac_exec_ext in '' $ac_executable_extensions; do
10754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10755     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10757     break 2
10758   fi
10759 done
10760   done
10761 IFS=$as_save_IFS
10762
10763 fi
10764 fi
10765 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10766 if test -n "$ac_ct_DSYMUTIL"; then
10767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10768 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10769 else
10770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10771 $as_echo "no" >&6; }
10772 fi
10773
10774   if test "x$ac_ct_DSYMUTIL" = x; then
10775     DSYMUTIL=":"
10776   else
10777     case $cross_compiling:$ac_tool_warned in
10778 yes:)
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10781 ac_tool_warned=yes ;;
10782 esac
10783     DSYMUTIL=$ac_ct_DSYMUTIL
10784   fi
10785 else
10786   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10787 fi
10788
10789     if test -n "$ac_tool_prefix"; then
10790   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10791 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10793 $as_echo_n "checking for $ac_word... " >&6; }
10794 if ${ac_cv_prog_NMEDIT+:} false; then :
10795   $as_echo_n "(cached) " >&6
10796 else
10797   if test -n "$NMEDIT"; then
10798   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10799 else
10800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10801 for as_dir in $PATH
10802 do
10803   IFS=$as_save_IFS
10804   test -z "$as_dir" && as_dir=.
10805     for ac_exec_ext in '' $ac_executable_extensions; do
10806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10807     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10809     break 2
10810   fi
10811 done
10812   done
10813 IFS=$as_save_IFS
10814
10815 fi
10816 fi
10817 NMEDIT=$ac_cv_prog_NMEDIT
10818 if test -n "$NMEDIT"; then
10819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10820 $as_echo "$NMEDIT" >&6; }
10821 else
10822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10823 $as_echo "no" >&6; }
10824 fi
10825
10826
10827 fi
10828 if test -z "$ac_cv_prog_NMEDIT"; then
10829   ac_ct_NMEDIT=$NMEDIT
10830   # Extract the first word of "nmedit", so it can be a program name with args.
10831 set dummy nmedit; ac_word=$2
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10833 $as_echo_n "checking for $ac_word... " >&6; }
10834 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10835   $as_echo_n "(cached) " >&6
10836 else
10837   if test -n "$ac_ct_NMEDIT"; then
10838   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10839 else
10840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10841 for as_dir in $PATH
10842 do
10843   IFS=$as_save_IFS
10844   test -z "$as_dir" && as_dir=.
10845     for ac_exec_ext in '' $ac_executable_extensions; do
10846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10847     ac_cv_prog_ac_ct_NMEDIT="nmedit"
10848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10849     break 2
10850   fi
10851 done
10852   done
10853 IFS=$as_save_IFS
10854
10855 fi
10856 fi
10857 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10858 if test -n "$ac_ct_NMEDIT"; then
10859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10860 $as_echo "$ac_ct_NMEDIT" >&6; }
10861 else
10862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10863 $as_echo "no" >&6; }
10864 fi
10865
10866   if test "x$ac_ct_NMEDIT" = x; then
10867     NMEDIT=":"
10868   else
10869     case $cross_compiling:$ac_tool_warned in
10870 yes:)
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10873 ac_tool_warned=yes ;;
10874 esac
10875     NMEDIT=$ac_ct_NMEDIT
10876   fi
10877 else
10878   NMEDIT="$ac_cv_prog_NMEDIT"
10879 fi
10880
10881     if test -n "$ac_tool_prefix"; then
10882   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10883 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10885 $as_echo_n "checking for $ac_word... " >&6; }
10886 if ${ac_cv_prog_LIPO+:} false; then :
10887   $as_echo_n "(cached) " >&6
10888 else
10889   if test -n "$LIPO"; then
10890   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10891 else
10892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10893 for as_dir in $PATH
10894 do
10895   IFS=$as_save_IFS
10896   test -z "$as_dir" && as_dir=.
10897     for ac_exec_ext in '' $ac_executable_extensions; do
10898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10899     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10901     break 2
10902   fi
10903 done
10904   done
10905 IFS=$as_save_IFS
10906
10907 fi
10908 fi
10909 LIPO=$ac_cv_prog_LIPO
10910 if test -n "$LIPO"; then
10911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10912 $as_echo "$LIPO" >&6; }
10913 else
10914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10915 $as_echo "no" >&6; }
10916 fi
10917
10918
10919 fi
10920 if test -z "$ac_cv_prog_LIPO"; then
10921   ac_ct_LIPO=$LIPO
10922   # Extract the first word of "lipo", so it can be a program name with args.
10923 set dummy lipo; ac_word=$2
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10925 $as_echo_n "checking for $ac_word... " >&6; }
10926 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10927   $as_echo_n "(cached) " >&6
10928 else
10929   if test -n "$ac_ct_LIPO"; then
10930   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10931 else
10932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10933 for as_dir in $PATH
10934 do
10935   IFS=$as_save_IFS
10936   test -z "$as_dir" && as_dir=.
10937     for ac_exec_ext in '' $ac_executable_extensions; do
10938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10939     ac_cv_prog_ac_ct_LIPO="lipo"
10940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10941     break 2
10942   fi
10943 done
10944   done
10945 IFS=$as_save_IFS
10946
10947 fi
10948 fi
10949 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10950 if test -n "$ac_ct_LIPO"; then
10951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10952 $as_echo "$ac_ct_LIPO" >&6; }
10953 else
10954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10955 $as_echo "no" >&6; }
10956 fi
10957
10958   if test "x$ac_ct_LIPO" = x; then
10959     LIPO=":"
10960   else
10961     case $cross_compiling:$ac_tool_warned in
10962 yes:)
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10965 ac_tool_warned=yes ;;
10966 esac
10967     LIPO=$ac_ct_LIPO
10968   fi
10969 else
10970   LIPO="$ac_cv_prog_LIPO"
10971 fi
10972
10973     if test -n "$ac_tool_prefix"; then
10974   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10975 set dummy ${ac_tool_prefix}otool; ac_word=$2
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10977 $as_echo_n "checking for $ac_word... " >&6; }
10978 if ${ac_cv_prog_OTOOL+:} false; then :
10979   $as_echo_n "(cached) " >&6
10980 else
10981   if test -n "$OTOOL"; then
10982   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10983 else
10984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10985 for as_dir in $PATH
10986 do
10987   IFS=$as_save_IFS
10988   test -z "$as_dir" && as_dir=.
10989     for ac_exec_ext in '' $ac_executable_extensions; do
10990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10991     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10993     break 2
10994   fi
10995 done
10996   done
10997 IFS=$as_save_IFS
10998
10999 fi
11000 fi
11001 OTOOL=$ac_cv_prog_OTOOL
11002 if test -n "$OTOOL"; then
11003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11004 $as_echo "$OTOOL" >&6; }
11005 else
11006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11007 $as_echo "no" >&6; }
11008 fi
11009
11010
11011 fi
11012 if test -z "$ac_cv_prog_OTOOL"; then
11013   ac_ct_OTOOL=$OTOOL
11014   # Extract the first word of "otool", so it can be a program name with args.
11015 set dummy otool; ac_word=$2
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11017 $as_echo_n "checking for $ac_word... " >&6; }
11018 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
11019   $as_echo_n "(cached) " >&6
11020 else
11021   if test -n "$ac_ct_OTOOL"; then
11022   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11023 else
11024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11025 for as_dir in $PATH
11026 do
11027   IFS=$as_save_IFS
11028   test -z "$as_dir" && as_dir=.
11029     for ac_exec_ext in '' $ac_executable_extensions; do
11030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11031     ac_cv_prog_ac_ct_OTOOL="otool"
11032     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11033     break 2
11034   fi
11035 done
11036   done
11037 IFS=$as_save_IFS
11038
11039 fi
11040 fi
11041 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11042 if test -n "$ac_ct_OTOOL"; then
11043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11044 $as_echo "$ac_ct_OTOOL" >&6; }
11045 else
11046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11047 $as_echo "no" >&6; }
11048 fi
11049
11050   if test "x$ac_ct_OTOOL" = x; then
11051     OTOOL=":"
11052   else
11053     case $cross_compiling:$ac_tool_warned in
11054 yes:)
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11057 ac_tool_warned=yes ;;
11058 esac
11059     OTOOL=$ac_ct_OTOOL
11060   fi
11061 else
11062   OTOOL="$ac_cv_prog_OTOOL"
11063 fi
11064
11065     if test -n "$ac_tool_prefix"; then
11066   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11067 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11069 $as_echo_n "checking for $ac_word... " >&6; }
11070 if ${ac_cv_prog_OTOOL64+:} false; then :
11071   $as_echo_n "(cached) " >&6
11072 else
11073   if test -n "$OTOOL64"; then
11074   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11075 else
11076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11077 for as_dir in $PATH
11078 do
11079   IFS=$as_save_IFS
11080   test -z "$as_dir" && as_dir=.
11081     for ac_exec_ext in '' $ac_executable_extensions; do
11082   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11083     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11085     break 2
11086   fi
11087 done
11088   done
11089 IFS=$as_save_IFS
11090
11091 fi
11092 fi
11093 OTOOL64=$ac_cv_prog_OTOOL64
11094 if test -n "$OTOOL64"; then
11095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11096 $as_echo "$OTOOL64" >&6; }
11097 else
11098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11099 $as_echo "no" >&6; }
11100 fi
11101
11102
11103 fi
11104 if test -z "$ac_cv_prog_OTOOL64"; then
11105   ac_ct_OTOOL64=$OTOOL64
11106   # Extract the first word of "otool64", so it can be a program name with args.
11107 set dummy otool64; ac_word=$2
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11109 $as_echo_n "checking for $ac_word... " >&6; }
11110 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
11111   $as_echo_n "(cached) " >&6
11112 else
11113   if test -n "$ac_ct_OTOOL64"; then
11114   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11115 else
11116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11117 for as_dir in $PATH
11118 do
11119   IFS=$as_save_IFS
11120   test -z "$as_dir" && as_dir=.
11121     for ac_exec_ext in '' $ac_executable_extensions; do
11122   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11123     ac_cv_prog_ac_ct_OTOOL64="otool64"
11124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11125     break 2
11126   fi
11127 done
11128   done
11129 IFS=$as_save_IFS
11130
11131 fi
11132 fi
11133 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11134 if test -n "$ac_ct_OTOOL64"; then
11135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11136 $as_echo "$ac_ct_OTOOL64" >&6; }
11137 else
11138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11139 $as_echo "no" >&6; }
11140 fi
11141
11142   if test "x$ac_ct_OTOOL64" = x; then
11143     OTOOL64=":"
11144   else
11145     case $cross_compiling:$ac_tool_warned in
11146 yes:)
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11149 ac_tool_warned=yes ;;
11150 esac
11151     OTOOL64=$ac_ct_OTOOL64
11152   fi
11153 else
11154   OTOOL64="$ac_cv_prog_OTOOL64"
11155 fi
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11184 $as_echo_n "checking for -single_module linker flag... " >&6; }
11185 if ${lt_cv_apple_cc_single_mod+:} false; then :
11186   $as_echo_n "(cached) " >&6
11187 else
11188   lt_cv_apple_cc_single_mod=no
11189       if test -z "${LT_MULTI_MODULE}"; then
11190         # By default we will add the -single_module flag. You can override
11191         # by either setting the environment variable LT_MULTI_MODULE
11192         # non-empty at configure time, or by adding -multi_module to the
11193         # link flags.
11194         rm -rf libconftest.dylib*
11195         echo "int foo(void){return 1;}" > conftest.c
11196         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11197 -dynamiclib -Wl,-single_module conftest.c" >&5
11198         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11199           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11200         _lt_result=$?
11201         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11202           lt_cv_apple_cc_single_mod=yes
11203         else
11204           cat conftest.err >&5
11205         fi
11206         rm -rf libconftest.dylib*
11207         rm -f conftest.*
11208       fi
11209 fi
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11211 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11212     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11213 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11214 if ${lt_cv_ld_exported_symbols_list+:} false; then :
11215   $as_echo_n "(cached) " >&6
11216 else
11217   lt_cv_ld_exported_symbols_list=no
11218       save_LDFLAGS=$LDFLAGS
11219       echo "_main" > conftest.sym
11220       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11221       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11222 /* end confdefs.h.  */
11223
11224 int
11225 main ()
11226 {
11227
11228   ;
11229   return 0;
11230 }
11231 _ACEOF
11232 if ac_fn_c_try_link "$LINENO"; then :
11233   lt_cv_ld_exported_symbols_list=yes
11234 else
11235   lt_cv_ld_exported_symbols_list=no
11236 fi
11237 rm -f core conftest.err conftest.$ac_objext \
11238     conftest$ac_exeext conftest.$ac_ext
11239         LDFLAGS="$save_LDFLAGS"
11240
11241 fi
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11243 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11244     case $host_os in
11245     rhapsody* | darwin1.[012])
11246       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11247     darwin1.*)
11248       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11249     darwin*) # darwin 5.x on
11250       # if running on 10.5 or later, the deployment target defaults
11251       # to the OS version, if on x86, and 10.4, the deployment
11252       # target defaults to 10.4. Don't you love it?
11253       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11254         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11255           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11256         10.[012]*)
11257           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11258         10.*)
11259           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11260       esac
11261     ;;
11262   esac
11263     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11264       _lt_dar_single_mod='$single_module'
11265     fi
11266     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11267       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11268     else
11269       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11270     fi
11271     if test "$DSYMUTIL" != ":"; then
11272       _lt_dsymutil='~$DSYMUTIL $lib || :'
11273     else
11274       _lt_dsymutil=
11275     fi
11276     ;;
11277   esac
11278
11279 for ac_header in dlfcn.h
11280 do :
11281   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11282 "
11283 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11284   cat >>confdefs.h <<_ACEOF
11285 #define HAVE_DLFCN_H 1
11286 _ACEOF
11287
11288 fi
11289
11290 done
11291
11292
11293
11294 ac_ext=cpp
11295 ac_cpp='$CXXCPP $CPPFLAGS'
11296 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11297 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11298 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11299 if test -z "$CXX"; then
11300   if test -n "$CCC"; then
11301     CXX=$CCC
11302   else
11303     if test -n "$ac_tool_prefix"; then
11304   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11305   do
11306     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11307 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11309 $as_echo_n "checking for $ac_word... " >&6; }
11310 if ${ac_cv_prog_CXX+:} false; then :
11311   $as_echo_n "(cached) " >&6
11312 else
11313   if test -n "$CXX"; then
11314   ac_cv_prog_CXX="$CXX" # Let the user override the test.
11315 else
11316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11317 for as_dir in $PATH
11318 do
11319   IFS=$as_save_IFS
11320   test -z "$as_dir" && as_dir=.
11321     for ac_exec_ext in '' $ac_executable_extensions; do
11322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11323     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11325     break 2
11326   fi
11327 done
11328   done
11329 IFS=$as_save_IFS
11330
11331 fi
11332 fi
11333 CXX=$ac_cv_prog_CXX
11334 if test -n "$CXX"; then
11335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11336 $as_echo "$CXX" >&6; }
11337 else
11338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11339 $as_echo "no" >&6; }
11340 fi
11341
11342
11343     test -n "$CXX" && break
11344   done
11345 fi
11346 if test -z "$CXX"; then
11347   ac_ct_CXX=$CXX
11348   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11349 do
11350   # Extract the first word of "$ac_prog", so it can be a program name with args.
11351 set dummy $ac_prog; ac_word=$2
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11353 $as_echo_n "checking for $ac_word... " >&6; }
11354 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11355   $as_echo_n "(cached) " >&6
11356 else
11357   if test -n "$ac_ct_CXX"; then
11358   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11359 else
11360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11361 for as_dir in $PATH
11362 do
11363   IFS=$as_save_IFS
11364   test -z "$as_dir" && as_dir=.
11365     for ac_exec_ext in '' $ac_executable_extensions; do
11366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11367     ac_cv_prog_ac_ct_CXX="$ac_prog"
11368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11369     break 2
11370   fi
11371 done
11372   done
11373 IFS=$as_save_IFS
11374
11375 fi
11376 fi
11377 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11378 if test -n "$ac_ct_CXX"; then
11379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11380 $as_echo "$ac_ct_CXX" >&6; }
11381 else
11382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11383 $as_echo "no" >&6; }
11384 fi
11385
11386
11387   test -n "$ac_ct_CXX" && break
11388 done
11389
11390   if test "x$ac_ct_CXX" = x; then
11391     CXX="g++"
11392   else
11393     case $cross_compiling:$ac_tool_warned in
11394 yes:)
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11397 ac_tool_warned=yes ;;
11398 esac
11399     CXX=$ac_ct_CXX
11400   fi
11401 fi
11402
11403   fi
11404 fi
11405 # Provide some information about the compiler.
11406 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11407 set X $ac_compile
11408 ac_compiler=$2
11409 for ac_option in --version -v -V -qversion; do
11410   { { ac_try="$ac_compiler $ac_option >&5"
11411 case "(($ac_try" in
11412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11413   *) ac_try_echo=$ac_try;;
11414 esac
11415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11416 $as_echo "$ac_try_echo"; } >&5
11417   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11418   ac_status=$?
11419   if test -s conftest.err; then
11420     sed '10a\
11421 ... rest of stderr output deleted ...
11422          10q' conftest.err >conftest.er1
11423     cat conftest.er1 >&5
11424   fi
11425   rm -f conftest.er1 conftest.err
11426   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11427   test $ac_status = 0; }
11428 done
11429
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11431 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11432 if ${ac_cv_cxx_compiler_gnu+:} false; then :
11433   $as_echo_n "(cached) " >&6
11434 else
11435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11436 /* end confdefs.h.  */
11437
11438 int
11439 main ()
11440 {
11441 #ifndef __GNUC__
11442        choke me
11443 #endif
11444
11445   ;
11446   return 0;
11447 }
11448 _ACEOF
11449 if ac_fn_cxx_try_compile "$LINENO"; then :
11450   ac_compiler_gnu=yes
11451 else
11452   ac_compiler_gnu=no
11453 fi
11454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11455 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11456
11457 fi
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11459 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11460 if test $ac_compiler_gnu = yes; then
11461   GXX=yes
11462 else
11463   GXX=
11464 fi
11465 ac_test_CXXFLAGS=${CXXFLAGS+set}
11466 ac_save_CXXFLAGS=$CXXFLAGS
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11468 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11469 if ${ac_cv_prog_cxx_g+:} false; then :
11470   $as_echo_n "(cached) " >&6
11471 else
11472   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11473    ac_cxx_werror_flag=yes
11474    ac_cv_prog_cxx_g=no
11475    CXXFLAGS="-g"
11476    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11477 /* end confdefs.h.  */
11478
11479 int
11480 main ()
11481 {
11482
11483   ;
11484   return 0;
11485 }
11486 _ACEOF
11487 if ac_fn_cxx_try_compile "$LINENO"; then :
11488   ac_cv_prog_cxx_g=yes
11489 else
11490   CXXFLAGS=""
11491       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11492 /* end confdefs.h.  */
11493
11494 int
11495 main ()
11496 {
11497
11498   ;
11499   return 0;
11500 }
11501 _ACEOF
11502 if ac_fn_cxx_try_compile "$LINENO"; then :
11503
11504 else
11505   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11506          CXXFLAGS="-g"
11507          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11508 /* end confdefs.h.  */
11509
11510 int
11511 main ()
11512 {
11513
11514   ;
11515   return 0;
11516 }
11517 _ACEOF
11518 if ac_fn_cxx_try_compile "$LINENO"; then :
11519   ac_cv_prog_cxx_g=yes
11520 fi
11521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11522 fi
11523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11524 fi
11525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11526    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11527 fi
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11529 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11530 if test "$ac_test_CXXFLAGS" = set; then
11531   CXXFLAGS=$ac_save_CXXFLAGS
11532 elif test $ac_cv_prog_cxx_g = yes; then
11533   if test "$GXX" = yes; then
11534     CXXFLAGS="-g -O2"
11535   else
11536     CXXFLAGS="-g"
11537   fi
11538 else
11539   if test "$GXX" = yes; then
11540     CXXFLAGS="-O2"
11541   else
11542     CXXFLAGS=
11543   fi
11544 fi
11545 ac_ext=c
11546 ac_cpp='$CPP $CPPFLAGS'
11547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11550
11551 depcc="$CXX"  am_compiler_list=
11552
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11554 $as_echo_n "checking dependency style of $depcc... " >&6; }
11555 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
11556   $as_echo_n "(cached) " >&6
11557 else
11558   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11559   # We make a subdir and do the tests there.  Otherwise we can end up
11560   # making bogus files that we don't know about and never remove.  For
11561   # instance it was reported that on HP-UX the gcc test will end up
11562   # making a dummy file named `D' -- because `-MD' means `put the output
11563   # in D'.
11564   mkdir conftest.dir
11565   # Copy depcomp to subdir because otherwise we won't find it if we're
11566   # using a relative directory.
11567   cp "$am_depcomp" conftest.dir
11568   cd conftest.dir
11569   # We will build objects and dependencies in a subdirectory because
11570   # it helps to detect inapplicable dependency modes.  For instance
11571   # both Tru64's cc and ICC support -MD to output dependencies as a
11572   # side effect of compilation, but ICC will put the dependencies in
11573   # the current directory while Tru64 will put them in the object
11574   # directory.
11575   mkdir sub
11576
11577   am_cv_CXX_dependencies_compiler_type=none
11578   if test "$am_compiler_list" = ""; then
11579      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11580   fi
11581   am__universal=false
11582   case " $depcc " in #(
11583      *\ -arch\ *\ -arch\ *) am__universal=true ;;
11584      esac
11585
11586   for depmode in $am_compiler_list; do
11587     # Setup a source with many dependencies, because some compilers
11588     # like to wrap large dependency lists on column 80 (with \), and
11589     # we should not choose a depcomp mode which is confused by this.
11590     #
11591     # We need to recreate these files for each test, as the compiler may
11592     # overwrite some of them when testing with obscure command lines.
11593     # This happens at least with the AIX C compiler.
11594     : > sub/conftest.c
11595     for i in 1 2 3 4 5 6; do
11596       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11597       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11598       # Solaris 8's {/usr,}/bin/sh.
11599       touch sub/conftst$i.h
11600     done
11601     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11602
11603     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11604     # mode.  It turns out that the SunPro C++ compiler does not properly
11605     # handle `-M -o', and we need to detect this.  Also, some Intel
11606     # versions had trouble with output in subdirs
11607     am__obj=sub/conftest.${OBJEXT-o}
11608     am__minus_obj="-o $am__obj"
11609     case $depmode in
11610     gcc)
11611       # This depmode causes a compiler race in universal mode.
11612       test "$am__universal" = false || continue
11613       ;;
11614     nosideeffect)
11615       # after this tag, mechanisms are not by side-effect, so they'll
11616       # only be used when explicitly requested
11617       if test "x$enable_dependency_tracking" = xyes; then
11618         continue
11619       else
11620         break
11621       fi
11622       ;;
11623     msvisualcpp | msvcmsys)
11624       # This compiler won't grok `-c -o', but also, the minuso test has
11625       # not run yet.  These depmodes are late enough in the game, and
11626       # so weak that their functioning should not be impacted.
11627       am__obj=conftest.${OBJEXT-o}
11628       am__minus_obj=
11629       ;;
11630     none) break ;;
11631     esac
11632     if depmode=$depmode \
11633        source=sub/conftest.c object=$am__obj \
11634        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11635        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11636          >/dev/null 2>conftest.err &&
11637        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11638        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11639        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11640        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11641       # icc doesn't choke on unknown options, it will just issue warnings
11642       # or remarks (even with -Werror).  So we grep stderr for any message
11643       # that says an option was ignored or not supported.
11644       # When given -MP, icc 7.0 and 7.1 complain thusly:
11645       #   icc: Command line warning: ignoring option '-M'; no argument required
11646       # The diagnosis changed in icc 8.0:
11647       #   icc: Command line remark: option '-MP' not supported
11648       if (grep 'ignoring option' conftest.err ||
11649           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11650         am_cv_CXX_dependencies_compiler_type=$depmode
11651         break
11652       fi
11653     fi
11654   done
11655
11656   cd ..
11657   rm -rf conftest.dir
11658 else
11659   am_cv_CXX_dependencies_compiler_type=none
11660 fi
11661
11662 fi
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11664 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11665 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11666
11667  if
11668   test "x$enable_dependency_tracking" != xno \
11669   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11670   am__fastdepCXX_TRUE=
11671   am__fastdepCXX_FALSE='#'
11672 else
11673   am__fastdepCXX_TRUE='#'
11674   am__fastdepCXX_FALSE=
11675 fi
11676
11677
11678 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11679     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11680     (test "X$CXX" != "Xg++"))) ; then
11681   ac_ext=cpp
11682 ac_cpp='$CXXCPP $CPPFLAGS'
11683 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11684 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11685 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11687 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11688 if test -z "$CXXCPP"; then
11689   if ${ac_cv_prog_CXXCPP+:} false; then :
11690   $as_echo_n "(cached) " >&6
11691 else
11692       # Double quotes because CXXCPP needs to be expanded
11693     for CXXCPP in "$CXX -E" "/lib/cpp"
11694     do
11695       ac_preproc_ok=false
11696 for ac_cxx_preproc_warn_flag in '' yes
11697 do
11698   # Use a header file that comes with gcc, so configuring glibc
11699   # with a fresh cross-compiler works.
11700   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11701   # <limits.h> exists even on freestanding compilers.
11702   # On the NeXT, cc -E runs the code through the compiler's parser,
11703   # not just through cpp. "Syntax error" is here to catch this case.
11704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11705 /* end confdefs.h.  */
11706 #ifdef __STDC__
11707 # include <limits.h>
11708 #else
11709 # include <assert.h>
11710 #endif
11711                      Syntax error
11712 _ACEOF
11713 if ac_fn_cxx_try_cpp "$LINENO"; then :
11714
11715 else
11716   # Broken: fails on valid input.
11717 continue
11718 fi
11719 rm -f conftest.err conftest.i conftest.$ac_ext
11720
11721   # OK, works on sane cases.  Now check whether nonexistent headers
11722   # can be detected and how.
11723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11724 /* end confdefs.h.  */
11725 #include <ac_nonexistent.h>
11726 _ACEOF
11727 if ac_fn_cxx_try_cpp "$LINENO"; then :
11728   # Broken: success on invalid input.
11729 continue
11730 else
11731   # Passes both tests.
11732 ac_preproc_ok=:
11733 break
11734 fi
11735 rm -f conftest.err conftest.i conftest.$ac_ext
11736
11737 done
11738 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11739 rm -f conftest.i conftest.err conftest.$ac_ext
11740 if $ac_preproc_ok; then :
11741   break
11742 fi
11743
11744     done
11745     ac_cv_prog_CXXCPP=$CXXCPP
11746
11747 fi
11748   CXXCPP=$ac_cv_prog_CXXCPP
11749 else
11750   ac_cv_prog_CXXCPP=$CXXCPP
11751 fi
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11753 $as_echo "$CXXCPP" >&6; }
11754 ac_preproc_ok=false
11755 for ac_cxx_preproc_warn_flag in '' yes
11756 do
11757   # Use a header file that comes with gcc, so configuring glibc
11758   # with a fresh cross-compiler works.
11759   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11760   # <limits.h> exists even on freestanding compilers.
11761   # On the NeXT, cc -E runs the code through the compiler's parser,
11762   # not just through cpp. "Syntax error" is here to catch this case.
11763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11764 /* end confdefs.h.  */
11765 #ifdef __STDC__
11766 # include <limits.h>
11767 #else
11768 # include <assert.h>
11769 #endif
11770                      Syntax error
11771 _ACEOF
11772 if ac_fn_cxx_try_cpp "$LINENO"; then :
11773
11774 else
11775   # Broken: fails on valid input.
11776 continue
11777 fi
11778 rm -f conftest.err conftest.i conftest.$ac_ext
11779
11780   # OK, works on sane cases.  Now check whether nonexistent headers
11781   # can be detected and how.
11782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11783 /* end confdefs.h.  */
11784 #include <ac_nonexistent.h>
11785 _ACEOF
11786 if ac_fn_cxx_try_cpp "$LINENO"; then :
11787   # Broken: success on invalid input.
11788 continue
11789 else
11790   # Passes both tests.
11791 ac_preproc_ok=:
11792 break
11793 fi
11794 rm -f conftest.err conftest.i conftest.$ac_ext
11795
11796 done
11797 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11798 rm -f conftest.i conftest.err conftest.$ac_ext
11799 if $ac_preproc_ok; then :
11800
11801 else
11802   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11803 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11804 _lt_caught_CXX_error=yes; }
11805 fi
11806
11807 ac_ext=c
11808 ac_cpp='$CPP $CPPFLAGS'
11809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11812
11813 else
11814   _lt_caught_CXX_error=yes
11815 fi
11816
11817
11818
11819
11820
11821 # Set options
11822
11823
11824
11825         enable_dlopen=no
11826
11827
11828   enable_win32_dll=no
11829
11830
11831
11832
11833
11834 # Check whether --with-pic was given.
11835 if test "${with_pic+set}" = set; then :
11836   withval=$with_pic; pic_mode="$withval"
11837 else
11838   pic_mode=default
11839 fi
11840
11841
11842 test -z "$pic_mode" && pic_mode=default
11843
11844
11845
11846
11847
11848
11849
11850   # Check whether --enable-fast-install was given.
11851 if test "${enable_fast_install+set}" = set; then :
11852   enableval=$enable_fast_install; p=${PACKAGE-default}
11853     case $enableval in
11854     yes) enable_fast_install=yes ;;
11855     no) enable_fast_install=no ;;
11856     *)
11857       enable_fast_install=no
11858       # Look at the argument we got.  We use all the common list separators.
11859       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11860       for pkg in $enableval; do
11861         IFS="$lt_save_ifs"
11862         if test "X$pkg" = "X$p"; then
11863           enable_fast_install=yes
11864         fi
11865       done
11866       IFS="$lt_save_ifs"
11867       ;;
11868     esac
11869 else
11870   enable_fast_install=yes
11871 fi
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883 # This can be used to rebuild libtool when needed
11884 LIBTOOL_DEPS="$ltmain"
11885
11886 # Always use our own libtool.
11887 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913 test -z "$LN_S" && LN_S="ln -s"
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928 if test -n "${ZSH_VERSION+set}" ; then
11929    setopt NO_GLOB_SUBST
11930 fi
11931
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11933 $as_echo_n "checking for objdir... " >&6; }
11934 if ${lt_cv_objdir+:} false; then :
11935   $as_echo_n "(cached) " >&6
11936 else
11937   rm -f .libs 2>/dev/null
11938 mkdir .libs 2>/dev/null
11939 if test -d .libs; then
11940   lt_cv_objdir=.libs
11941 else
11942   # MS-DOS does not allow filenames that begin with a dot.
11943   lt_cv_objdir=_libs
11944 fi
11945 rmdir .libs 2>/dev/null
11946 fi
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11948 $as_echo "$lt_cv_objdir" >&6; }
11949 objdir=$lt_cv_objdir
11950
11951
11952
11953
11954
11955 cat >>confdefs.h <<_ACEOF
11956 #define LT_OBJDIR "$lt_cv_objdir/"
11957 _ACEOF
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975 case $host_os in
11976 aix3*)
11977   # AIX sometimes has problems with the GCC collect2 program.  For some
11978   # reason, if we set the COLLECT_NAMES environment variable, the problems
11979   # vanish in a puff of smoke.
11980   if test "X${COLLECT_NAMES+set}" != Xset; then
11981     COLLECT_NAMES=
11982     export COLLECT_NAMES
11983   fi
11984   ;;
11985 esac
11986
11987 # Sed substitution that helps us do robust quoting.  It backslashifies
11988 # metacharacters that are still active within double-quoted strings.
11989 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11990
11991 # Same as above, but do not quote variable references.
11992 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11993
11994 # Sed substitution to delay expansion of an escaped shell variable in a
11995 # double_quote_subst'ed string.
11996 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11997
11998 # Sed substitution to delay expansion of an escaped single quote.
11999 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12000
12001 # Sed substitution to avoid accidental globbing in evaled expressions
12002 no_glob_subst='s/\*/\\\*/g'
12003
12004 # Global variables:
12005 ofile=libtool
12006 can_build_shared=yes
12007
12008 # All known linkers require a `.a' archive for static linking (except MSVC,
12009 # which needs '.lib').
12010 libext=a
12011
12012 with_gnu_ld="$lt_cv_prog_gnu_ld"
12013
12014 old_CC="$CC"
12015 old_CFLAGS="$CFLAGS"
12016
12017 # Set sane defaults for various variables
12018 test -z "$CC" && CC=cc
12019 test -z "$LTCC" && LTCC=$CC
12020 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12021 test -z "$LD" && LD=ld
12022 test -z "$ac_objext" && ac_objext=o
12023
12024 for cc_temp in $compiler""; do
12025   case $cc_temp in
12026     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12027     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12028     \-*) ;;
12029     *) break;;
12030   esac
12031 done
12032 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12033
12034
12035 # Only perform the check for file, if the check method requires it
12036 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12037 case $deplibs_check_method in
12038 file_magic*)
12039   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12040     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12041 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12042 if ${lt_cv_path_MAGIC_CMD+:} false; then :
12043   $as_echo_n "(cached) " >&6
12044 else
12045   case $MAGIC_CMD in
12046 [\\/*] |  ?:[\\/]*)
12047   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12048   ;;
12049 *)
12050   lt_save_MAGIC_CMD="$MAGIC_CMD"
12051   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12052   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12053   for ac_dir in $ac_dummy; do
12054     IFS="$lt_save_ifs"
12055     test -z "$ac_dir" && ac_dir=.
12056     if test -f $ac_dir/${ac_tool_prefix}file; then
12057       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12058       if test -n "$file_magic_test_file"; then
12059         case $deplibs_check_method in
12060         "file_magic "*)
12061           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12062           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12063           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12064             $EGREP "$file_magic_regex" > /dev/null; then
12065             :
12066           else
12067             cat <<_LT_EOF 1>&2
12068
12069 *** Warning: the command libtool uses to detect shared libraries,
12070 *** $file_magic_cmd, produces output that libtool cannot recognize.
12071 *** The result is that libtool may fail to recognize shared libraries
12072 *** as such.  This will affect the creation of libtool libraries that
12073 *** depend on shared libraries, but programs linked with such libtool
12074 *** libraries will work regardless of this problem.  Nevertheless, you
12075 *** may want to report the problem to your system manager and/or to
12076 *** bug-libtool@gnu.org
12077
12078 _LT_EOF
12079           fi ;;
12080         esac
12081       fi
12082       break
12083     fi
12084   done
12085   IFS="$lt_save_ifs"
12086   MAGIC_CMD="$lt_save_MAGIC_CMD"
12087   ;;
12088 esac
12089 fi
12090
12091 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12092 if test -n "$MAGIC_CMD"; then
12093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12094 $as_echo "$MAGIC_CMD" >&6; }
12095 else
12096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12097 $as_echo "no" >&6; }
12098 fi
12099
12100
12101
12102
12103
12104 if test -z "$lt_cv_path_MAGIC_CMD"; then
12105   if test -n "$ac_tool_prefix"; then
12106     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12107 $as_echo_n "checking for file... " >&6; }
12108 if ${lt_cv_path_MAGIC_CMD+:} false; then :
12109   $as_echo_n "(cached) " >&6
12110 else
12111   case $MAGIC_CMD in
12112 [\\/*] |  ?:[\\/]*)
12113   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12114   ;;
12115 *)
12116   lt_save_MAGIC_CMD="$MAGIC_CMD"
12117   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12118   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12119   for ac_dir in $ac_dummy; do
12120     IFS="$lt_save_ifs"
12121     test -z "$ac_dir" && ac_dir=.
12122     if test -f $ac_dir/file; then
12123       lt_cv_path_MAGIC_CMD="$ac_dir/file"
12124       if test -n "$file_magic_test_file"; then
12125         case $deplibs_check_method in
12126         "file_magic "*)
12127           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12128           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12129           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12130             $EGREP "$file_magic_regex" > /dev/null; then
12131             :
12132           else
12133             cat <<_LT_EOF 1>&2
12134
12135 *** Warning: the command libtool uses to detect shared libraries,
12136 *** $file_magic_cmd, produces output that libtool cannot recognize.
12137 *** The result is that libtool may fail to recognize shared libraries
12138 *** as such.  This will affect the creation of libtool libraries that
12139 *** depend on shared libraries, but programs linked with such libtool
12140 *** libraries will work regardless of this problem.  Nevertheless, you
12141 *** may want to report the problem to your system manager and/or to
12142 *** bug-libtool@gnu.org
12143
12144 _LT_EOF
12145           fi ;;
12146         esac
12147       fi
12148       break
12149     fi
12150   done
12151   IFS="$lt_save_ifs"
12152   MAGIC_CMD="$lt_save_MAGIC_CMD"
12153   ;;
12154 esac
12155 fi
12156
12157 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12158 if test -n "$MAGIC_CMD"; then
12159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12160 $as_echo "$MAGIC_CMD" >&6; }
12161 else
12162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12163 $as_echo "no" >&6; }
12164 fi
12165
12166
12167   else
12168     MAGIC_CMD=:
12169   fi
12170 fi
12171
12172   fi
12173   ;;
12174 esac
12175
12176 # Use C for the default configuration in the libtool script
12177
12178 lt_save_CC="$CC"
12179 ac_ext=c
12180 ac_cpp='$CPP $CPPFLAGS'
12181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12184
12185
12186 # Source file extension for C test sources.
12187 ac_ext=c
12188
12189 # Object file extension for compiled C test sources.
12190 objext=o
12191 objext=$objext
12192
12193 # Code to be used in simple compile tests
12194 lt_simple_compile_test_code="int some_variable = 0;"
12195
12196 # Code to be used in simple link tests
12197 lt_simple_link_test_code='int main(){return(0);}'
12198
12199
12200
12201
12202
12203
12204
12205 # If no C compiler was specified, use CC.
12206 LTCC=${LTCC-"$CC"}
12207
12208 # If no C compiler flags were specified, use CFLAGS.
12209 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12210
12211 # Allow CC to be a program name with arguments.
12212 compiler=$CC
12213
12214 # Save the default compiler, since it gets overwritten when the other
12215 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12216 compiler_DEFAULT=$CC
12217
12218 # save warnings/boilerplate of simple test code
12219 ac_outfile=conftest.$ac_objext
12220 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12221 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12222 _lt_compiler_boilerplate=`cat conftest.err`
12223 $RM conftest*
12224
12225 ac_outfile=conftest.$ac_objext
12226 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12227 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12228 _lt_linker_boilerplate=`cat conftest.err`
12229 $RM -r conftest*
12230
12231
12232 ## CAVEAT EMPTOR:
12233 ## There is no encapsulation within the following macros, do not change
12234 ## the running order or otherwise move them around unless you know exactly
12235 ## what you are doing...
12236 if test -n "$compiler"; then
12237
12238 lt_prog_compiler_no_builtin_flag=
12239
12240 if test "$GCC" = yes; then
12241   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12242
12243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12244 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12245 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12246   $as_echo_n "(cached) " >&6
12247 else
12248   lt_cv_prog_compiler_rtti_exceptions=no
12249    ac_outfile=conftest.$ac_objext
12250    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12251    lt_compiler_flag="-fno-rtti -fno-exceptions"
12252    # Insert the option either (1) after the last *FLAGS variable, or
12253    # (2) before a word containing "conftest.", or (3) at the end.
12254    # Note that $ac_compile itself does not contain backslashes and begins
12255    # with a dollar sign (not a hyphen), so the echo should work correctly.
12256    # The option is referenced via a variable to avoid confusing sed.
12257    lt_compile=`echo "$ac_compile" | $SED \
12258    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12259    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12260    -e 's:$: $lt_compiler_flag:'`
12261    (eval echo "\"\$as_me:12261: $lt_compile\"" >&5)
12262    (eval "$lt_compile" 2>conftest.err)
12263    ac_status=$?
12264    cat conftest.err >&5
12265    echo "$as_me:12265: \$? = $ac_status" >&5
12266    if (exit $ac_status) && test -s "$ac_outfile"; then
12267      # The compiler can only warn and ignore the option if not recognized
12268      # So say no if there are warnings other than the usual output.
12269      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12270      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12271      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12272        lt_cv_prog_compiler_rtti_exceptions=yes
12273      fi
12274    fi
12275    $RM conftest*
12276
12277 fi
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12279 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12280
12281 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12282     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12283 else
12284     :
12285 fi
12286
12287 fi
12288
12289
12290
12291
12292
12293
12294   lt_prog_compiler_wl=
12295 lt_prog_compiler_pic=
12296 lt_prog_compiler_static=
12297
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12299 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12300
12301   if test "$GCC" = yes; then
12302     lt_prog_compiler_wl='-Wl,'
12303     lt_prog_compiler_static='-static'
12304
12305     case $host_os in
12306       aix*)
12307       # All AIX code is PIC.
12308       if test "$host_cpu" = ia64; then
12309         # AIX 5 now supports IA64 processor
12310         lt_prog_compiler_static='-Bstatic'
12311       fi
12312       ;;
12313
12314     amigaos*)
12315       case $host_cpu in
12316       powerpc)
12317             # see comment about AmigaOS4 .so support
12318             lt_prog_compiler_pic='-fPIC'
12319         ;;
12320       m68k)
12321             # FIXME: we need at least 68020 code to build shared libraries, but
12322             # adding the `-m68020' flag to GCC prevents building anything better,
12323             # like `-m68040'.
12324             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12325         ;;
12326       esac
12327       ;;
12328
12329     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12330       # PIC is the default for these OSes.
12331       ;;
12332
12333     mingw* | cygwin* | pw32* | os2* | cegcc*)
12334       # This hack is so that the source file can tell whether it is being
12335       # built for inclusion in a dll (and should export symbols for example).
12336       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12337       # (--disable-auto-import) libraries
12338       lt_prog_compiler_pic='-DDLL_EXPORT'
12339       ;;
12340
12341     darwin* | rhapsody*)
12342       # PIC is the default on this platform
12343       # Common symbols not allowed in MH_DYLIB files
12344       lt_prog_compiler_pic='-fno-common'
12345       ;;
12346
12347     hpux*)
12348       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12349       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12350       # sets the default TLS model and affects inlining.
12351       case $host_cpu in
12352       hppa*64*)
12353         # +Z the default
12354         ;;
12355       *)
12356         lt_prog_compiler_pic='-fPIC'
12357         ;;
12358       esac
12359       ;;
12360
12361     interix[3-9]*)
12362       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12363       # Instead, we relocate shared libraries at runtime.
12364       ;;
12365
12366     msdosdjgpp*)
12367       # Just because we use GCC doesn't mean we suddenly get shared libraries
12368       # on systems that don't support them.
12369       lt_prog_compiler_can_build_shared=no
12370       enable_shared=no
12371       ;;
12372
12373     *nto* | *qnx*)
12374       # QNX uses GNU C++, but need to define -shared option too, otherwise
12375       # it will coredump.
12376       lt_prog_compiler_pic='-fPIC -shared'
12377       ;;
12378
12379     sysv4*MP*)
12380       if test -d /usr/nec; then
12381         lt_prog_compiler_pic=-Kconform_pic
12382       fi
12383       ;;
12384
12385     *)
12386       lt_prog_compiler_pic='-fPIC'
12387       ;;
12388     esac
12389   else
12390     # PORTME Check for flag to pass linker flags through the system compiler.
12391     case $host_os in
12392     aix*)
12393       lt_prog_compiler_wl='-Wl,'
12394       if test "$host_cpu" = ia64; then
12395         # AIX 5 now supports IA64 processor
12396         lt_prog_compiler_static='-Bstatic'
12397       else
12398         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12399       fi
12400       ;;
12401
12402     mingw* | cygwin* | pw32* | os2* | cegcc*)
12403       # This hack is so that the source file can tell whether it is being
12404       # built for inclusion in a dll (and should export symbols for example).
12405       lt_prog_compiler_pic='-DDLL_EXPORT'
12406       ;;
12407
12408     hpux9* | hpux10* | hpux11*)
12409       lt_prog_compiler_wl='-Wl,'
12410       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12411       # not for PA HP-UX.
12412       case $host_cpu in
12413       hppa*64*|ia64*)
12414         # +Z the default
12415         ;;
12416       *)
12417         lt_prog_compiler_pic='+Z'
12418         ;;
12419       esac
12420       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12421       lt_prog_compiler_static='${wl}-a ${wl}archive'
12422       ;;
12423
12424     irix5* | irix6* | nonstopux*)
12425       lt_prog_compiler_wl='-Wl,'
12426       # PIC (with -KPIC) is the default.
12427       lt_prog_compiler_static='-non_shared'
12428       ;;
12429
12430     linux* | k*bsd*-gnu)
12431       case $cc_basename in
12432       # old Intel for x86_64 which still supported -KPIC.
12433       ecc*)
12434         lt_prog_compiler_wl='-Wl,'
12435         lt_prog_compiler_pic='-KPIC'
12436         lt_prog_compiler_static='-static'
12437         ;;
12438       # icc used to be incompatible with GCC.
12439       # ICC 10 doesn't accept -KPIC any more.
12440       icc* | ifort*)
12441         lt_prog_compiler_wl='-Wl,'
12442         lt_prog_compiler_pic='-fPIC'
12443         lt_prog_compiler_static='-static'
12444         ;;
12445       # Lahey Fortran 8.1.
12446       lf95*)
12447         lt_prog_compiler_wl='-Wl,'
12448         lt_prog_compiler_pic='--shared'
12449         lt_prog_compiler_static='--static'
12450         ;;
12451       pgcc* | pgf77* | pgf90* | pgf95*)
12452         # Portland Group compilers (*not* the Pentium gcc compiler,
12453         # which looks to be a dead project)
12454         lt_prog_compiler_wl='-Wl,'
12455         lt_prog_compiler_pic='-fpic'
12456         lt_prog_compiler_static='-Bstatic'
12457         ;;
12458       ccc*)
12459         lt_prog_compiler_wl='-Wl,'
12460         # All Alpha code is PIC.
12461         lt_prog_compiler_static='-non_shared'
12462         ;;
12463       xl*)
12464         # IBM XL C 8.0/Fortran 10.1 on PPC
12465         lt_prog_compiler_wl='-Wl,'
12466         lt_prog_compiler_pic='-qpic'
12467         lt_prog_compiler_static='-qstaticlink'
12468         ;;
12469       *)
12470         case `$CC -V 2>&1 | sed 5q` in
12471         *Sun\ C*)
12472           # Sun C 5.9
12473           lt_prog_compiler_pic='-KPIC'
12474           lt_prog_compiler_static='-Bstatic'
12475           lt_prog_compiler_wl='-Wl,'
12476           ;;
12477         *Sun\ F*)
12478           # Sun Fortran 8.3 passes all unrecognized flags to the linker
12479           lt_prog_compiler_pic='-KPIC'
12480           lt_prog_compiler_static='-Bstatic'
12481           lt_prog_compiler_wl=''
12482           ;;
12483         esac
12484         ;;
12485       esac
12486       ;;
12487
12488     newsos6)
12489       lt_prog_compiler_pic='-KPIC'
12490       lt_prog_compiler_static='-Bstatic'
12491       ;;
12492
12493     *nto* | *qnx*)
12494       # QNX uses GNU C++, but need to define -shared option too, otherwise
12495       # it will coredump.
12496       lt_prog_compiler_pic='-fPIC -shared'
12497       ;;
12498
12499     osf3* | osf4* | osf5*)
12500       lt_prog_compiler_wl='-Wl,'
12501       # All OSF/1 code is PIC.
12502       lt_prog_compiler_static='-non_shared'
12503       ;;
12504
12505     rdos*)
12506       lt_prog_compiler_static='-non_shared'
12507       ;;
12508
12509     solaris*)
12510       lt_prog_compiler_pic='-KPIC'
12511       lt_prog_compiler_static='-Bstatic'
12512       case $cc_basename in
12513       f77* | f90* | f95*)
12514         lt_prog_compiler_wl='-Qoption ld ';;
12515       *)
12516         lt_prog_compiler_wl='-Wl,';;
12517       esac
12518       ;;
12519
12520     sunos4*)
12521       lt_prog_compiler_wl='-Qoption ld '
12522       lt_prog_compiler_pic='-PIC'
12523       lt_prog_compiler_static='-Bstatic'
12524       ;;
12525
12526     sysv4 | sysv4.2uw2* | sysv4.3*)
12527       lt_prog_compiler_wl='-Wl,'
12528       lt_prog_compiler_pic='-KPIC'
12529       lt_prog_compiler_static='-Bstatic'
12530       ;;
12531
12532     sysv4*MP*)
12533       if test -d /usr/nec ;then
12534         lt_prog_compiler_pic='-Kconform_pic'
12535         lt_prog_compiler_static='-Bstatic'
12536       fi
12537       ;;
12538
12539     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12540       lt_prog_compiler_wl='-Wl,'
12541       lt_prog_compiler_pic='-KPIC'
12542       lt_prog_compiler_static='-Bstatic'
12543       ;;
12544
12545     unicos*)
12546       lt_prog_compiler_wl='-Wl,'
12547       lt_prog_compiler_can_build_shared=no
12548       ;;
12549
12550     uts4*)
12551       lt_prog_compiler_pic='-pic'
12552       lt_prog_compiler_static='-Bstatic'
12553       ;;
12554
12555     *)
12556       lt_prog_compiler_can_build_shared=no
12557       ;;
12558     esac
12559   fi
12560
12561 case $host_os in
12562   # For platforms which do not support PIC, -DPIC is meaningless:
12563   *djgpp*)
12564     lt_prog_compiler_pic=
12565     ;;
12566   *)
12567     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12568     ;;
12569 esac
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
12571 $as_echo "$lt_prog_compiler_pic" >&6; }
12572
12573
12574
12575
12576
12577
12578 #
12579 # Check to make sure the PIC flag actually works.
12580 #
12581 if test -n "$lt_prog_compiler_pic"; then
12582   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12583 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12584 if ${lt_cv_prog_compiler_pic_works+:} false; then :
12585   $as_echo_n "(cached) " >&6
12586 else
12587   lt_cv_prog_compiler_pic_works=no
12588    ac_outfile=conftest.$ac_objext
12589    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12590    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12591    # Insert the option either (1) after the last *FLAGS variable, or
12592    # (2) before a word containing "conftest.", or (3) at the end.
12593    # Note that $ac_compile itself does not contain backslashes and begins
12594    # with a dollar sign (not a hyphen), so the echo should work correctly.
12595    # The option is referenced via a variable to avoid confusing sed.
12596    lt_compile=`echo "$ac_compile" | $SED \
12597    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12598    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12599    -e 's:$: $lt_compiler_flag:'`
12600    (eval echo "\"\$as_me:12600: $lt_compile\"" >&5)
12601    (eval "$lt_compile" 2>conftest.err)
12602    ac_status=$?
12603    cat conftest.err >&5
12604    echo "$as_me:12604: \$? = $ac_status" >&5
12605    if (exit $ac_status) && test -s "$ac_outfile"; then
12606      # The compiler can only warn and ignore the option if not recognized
12607      # So say no if there are warnings other than the usual output.
12608      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12609      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12610      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12611        lt_cv_prog_compiler_pic_works=yes
12612      fi
12613    fi
12614    $RM conftest*
12615
12616 fi
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12618 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12619
12620 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12621     case $lt_prog_compiler_pic in
12622      "" | " "*) ;;
12623      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12624      esac
12625 else
12626     lt_prog_compiler_pic=
12627      lt_prog_compiler_can_build_shared=no
12628 fi
12629
12630 fi
12631
12632
12633
12634
12635
12636
12637 #
12638 # Check to make sure the static flag actually works.
12639 #
12640 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12642 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12643 if ${lt_cv_prog_compiler_static_works+:} false; then :
12644   $as_echo_n "(cached) " >&6
12645 else
12646   lt_cv_prog_compiler_static_works=no
12647    save_LDFLAGS="$LDFLAGS"
12648    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12649    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12650    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12651      # The linker can only warn and ignore the option if not recognized
12652      # So say no if there are warnings
12653      if test -s conftest.err; then
12654        # Append any errors to the config.log.
12655        cat conftest.err 1>&5
12656        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12657        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12658        if diff conftest.exp conftest.er2 >/dev/null; then
12659          lt_cv_prog_compiler_static_works=yes
12660        fi
12661      else
12662        lt_cv_prog_compiler_static_works=yes
12663      fi
12664    fi
12665    $RM -r conftest*
12666    LDFLAGS="$save_LDFLAGS"
12667
12668 fi
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12670 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12671
12672 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12673     :
12674 else
12675     lt_prog_compiler_static=
12676 fi
12677
12678
12679
12680
12681
12682
12683
12684   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12685 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12686 if ${lt_cv_prog_compiler_c_o+:} false; then :
12687   $as_echo_n "(cached) " >&6
12688 else
12689   lt_cv_prog_compiler_c_o=no
12690    $RM -r conftest 2>/dev/null
12691    mkdir conftest
12692    cd conftest
12693    mkdir out
12694    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12695
12696    lt_compiler_flag="-o out/conftest2.$ac_objext"
12697    # Insert the option either (1) after the last *FLAGS variable, or
12698    # (2) before a word containing "conftest.", or (3) at the end.
12699    # Note that $ac_compile itself does not contain backslashes and begins
12700    # with a dollar sign (not a hyphen), so the echo should work correctly.
12701    lt_compile=`echo "$ac_compile" | $SED \
12702    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12703    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12704    -e 's:$: $lt_compiler_flag:'`
12705    (eval echo "\"\$as_me:12705: $lt_compile\"" >&5)
12706    (eval "$lt_compile" 2>out/conftest.err)
12707    ac_status=$?
12708    cat out/conftest.err >&5
12709    echo "$as_me:12709: \$? = $ac_status" >&5
12710    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12711    then
12712      # The compiler can only warn and ignore the option if not recognized
12713      # So say no if there are warnings
12714      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12715      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12716      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12717        lt_cv_prog_compiler_c_o=yes
12718      fi
12719    fi
12720    chmod u+w . 2>&5
12721    $RM conftest*
12722    # SGI C++ compiler will create directory out/ii_files/ for
12723    # template instantiation
12724    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12725    $RM out/* && rmdir out
12726    cd ..
12727    $RM -r conftest
12728    $RM conftest*
12729
12730 fi
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12732 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12733
12734
12735
12736
12737
12738
12739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12740 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12741 if ${lt_cv_prog_compiler_c_o+:} false; then :
12742   $as_echo_n "(cached) " >&6
12743 else
12744   lt_cv_prog_compiler_c_o=no
12745    $RM -r conftest 2>/dev/null
12746    mkdir conftest
12747    cd conftest
12748    mkdir out
12749    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12750
12751    lt_compiler_flag="-o out/conftest2.$ac_objext"
12752    # Insert the option either (1) after the last *FLAGS variable, or
12753    # (2) before a word containing "conftest.", or (3) at the end.
12754    # Note that $ac_compile itself does not contain backslashes and begins
12755    # with a dollar sign (not a hyphen), so the echo should work correctly.
12756    lt_compile=`echo "$ac_compile" | $SED \
12757    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12758    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12759    -e 's:$: $lt_compiler_flag:'`
12760    (eval echo "\"\$as_me:12760: $lt_compile\"" >&5)
12761    (eval "$lt_compile" 2>out/conftest.err)
12762    ac_status=$?
12763    cat out/conftest.err >&5
12764    echo "$as_me:12764: \$? = $ac_status" >&5
12765    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12766    then
12767      # The compiler can only warn and ignore the option if not recognized
12768      # So say no if there are warnings
12769      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12770      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12771      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12772        lt_cv_prog_compiler_c_o=yes
12773      fi
12774    fi
12775    chmod u+w . 2>&5
12776    $RM conftest*
12777    # SGI C++ compiler will create directory out/ii_files/ for
12778    # template instantiation
12779    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12780    $RM out/* && rmdir out
12781    cd ..
12782    $RM -r conftest
12783    $RM conftest*
12784
12785 fi
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12787 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12788
12789
12790
12791
12792 hard_links="nottested"
12793 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12794   # do not overwrite the value of need_locks provided by the user
12795   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12796 $as_echo_n "checking if we can lock with hard links... " >&6; }
12797   hard_links=yes
12798   $RM conftest*
12799   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12800   touch conftest.a
12801   ln conftest.a conftest.b 2>&5 || hard_links=no
12802   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12804 $as_echo "$hard_links" >&6; }
12805   if test "$hard_links" = no; then
12806     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12807 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12808     need_locks=warn
12809   fi
12810 else
12811   need_locks=no
12812 fi
12813
12814
12815
12816
12817
12818
12819   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12820 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12821
12822   runpath_var=
12823   allow_undefined_flag=
12824   always_export_symbols=no
12825   archive_cmds=
12826   archive_expsym_cmds=
12827   compiler_needs_object=no
12828   enable_shared_with_static_runtimes=no
12829   export_dynamic_flag_spec=
12830   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12831   hardcode_automatic=no
12832   hardcode_direct=no
12833   hardcode_direct_absolute=no
12834   hardcode_libdir_flag_spec=
12835   hardcode_libdir_flag_spec_ld=
12836   hardcode_libdir_separator=
12837   hardcode_minus_L=no
12838   hardcode_shlibpath_var=unsupported
12839   inherit_rpath=no
12840   link_all_deplibs=unknown
12841   module_cmds=
12842   module_expsym_cmds=
12843   old_archive_from_new_cmds=
12844   old_archive_from_expsyms_cmds=
12845   thread_safe_flag_spec=
12846   whole_archive_flag_spec=
12847   # include_expsyms should be a list of space-separated symbols to be *always*
12848   # included in the symbol list
12849   include_expsyms=
12850   # exclude_expsyms can be an extended regexp of symbols to exclude
12851   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12852   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12853   # as well as any symbol that contains `d'.
12854   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12855   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12856   # platforms (ab)use it in PIC code, but their linkers get confused if
12857   # the symbol is explicitly referenced.  Since portable code cannot
12858   # rely on this symbol name, it's probably fine to never include it in
12859   # preloaded symbol tables.
12860   # Exclude shared library initialization/finalization symbols.
12861   extract_expsyms_cmds=
12862
12863   case $host_os in
12864   cygwin* | mingw* | pw32* | cegcc*)
12865     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12866     # When not using gcc, we currently assume that we are using
12867     # Microsoft Visual C++.
12868     if test "$GCC" != yes; then
12869       with_gnu_ld=no
12870     fi
12871     ;;
12872   interix*)
12873     # we just hope/assume this is gcc and not c89 (= MSVC++)
12874     with_gnu_ld=yes
12875     ;;
12876   openbsd*)
12877     with_gnu_ld=no
12878     ;;
12879   esac
12880
12881   ld_shlibs=yes
12882   if test "$with_gnu_ld" = yes; then
12883     # If archive_cmds runs LD, not CC, wlarc should be empty
12884     wlarc='${wl}'
12885
12886     # Set some defaults for GNU ld with shared library support. These
12887     # are reset later if shared libraries are not supported. Putting them
12888     # here allows them to be overridden if necessary.
12889     runpath_var=LD_RUN_PATH
12890     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12891     export_dynamic_flag_spec='${wl}--export-dynamic'
12892     # ancient GNU ld didn't support --whole-archive et. al.
12893     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12894       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12895     else
12896       whole_archive_flag_spec=
12897     fi
12898     supports_anon_versioning=no
12899     case `$LD -v 2>&1` in
12900       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12901       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12902       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12903       *\ 2.11.*) ;; # other 2.11 versions
12904       *) supports_anon_versioning=yes ;;
12905     esac
12906
12907     # See if GNU ld supports shared libraries.
12908     case $host_os in
12909     aix[3-9]*)
12910       # On AIX/PPC, the GNU linker is very broken
12911       if test "$host_cpu" != ia64; then
12912         ld_shlibs=no
12913         cat <<_LT_EOF 1>&2
12914
12915 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12916 *** to be unable to reliably create shared libraries on AIX.
12917 *** Therefore, libtool is disabling shared libraries support.  If you
12918 *** really care for shared libraries, you may want to modify your PATH
12919 *** so that a non-GNU linker is found, and then restart.
12920
12921 _LT_EOF
12922       fi
12923       ;;
12924
12925     amigaos*)
12926       case $host_cpu in
12927       powerpc)
12928             # see comment about AmigaOS4 .so support
12929             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12930             archive_expsym_cmds=''
12931         ;;
12932       m68k)
12933             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12934             hardcode_libdir_flag_spec='-L$libdir'
12935             hardcode_minus_L=yes
12936         ;;
12937       esac
12938       ;;
12939
12940     beos*)
12941       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12942         allow_undefined_flag=unsupported
12943         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12944         # support --undefined.  This deserves some investigation.  FIXME
12945         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12946       else
12947         ld_shlibs=no
12948       fi
12949       ;;
12950
12951     cygwin* | mingw* | pw32* | cegcc*)
12952       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12953       # as there is no search path for DLLs.
12954       hardcode_libdir_flag_spec='-L$libdir'
12955       allow_undefined_flag=unsupported
12956       always_export_symbols=no
12957       enable_shared_with_static_runtimes=yes
12958       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12959
12960       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12961         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12962         # If the export-symbols file already is a .def file (1st line
12963         # is EXPORTS), use it as is; otherwise, prepend...
12964         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12965           cp $export_symbols $output_objdir/$soname.def;
12966         else
12967           echo EXPORTS > $output_objdir/$soname.def;
12968           cat $export_symbols >> $output_objdir/$soname.def;
12969         fi~
12970         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12971       else
12972         ld_shlibs=no
12973       fi
12974       ;;
12975
12976     interix[3-9]*)
12977       hardcode_direct=no
12978       hardcode_shlibpath_var=no
12979       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12980       export_dynamic_flag_spec='${wl}-E'
12981       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12982       # Instead, shared libraries are loaded at an image base (0x10000000 by
12983       # default) and relocated if they conflict, which is a slow very memory
12984       # consuming and fragmenting process.  To avoid this, we pick a random,
12985       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12986       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12987       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12988       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12989       ;;
12990
12991     gnu* | linux* | tpf* | k*bsd*-gnu)
12992       tmp_diet=no
12993       if test "$host_os" = linux-dietlibc; then
12994         case $cc_basename in
12995           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12996         esac
12997       fi
12998       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12999          && test "$tmp_diet" = no
13000       then
13001         tmp_addflag=
13002         tmp_sharedflag='-shared'
13003         case $cc_basename,$host_cpu in
13004         pgcc*)                          # Portland Group C compiler
13005           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13006           tmp_addflag=' $pic_flag'
13007           ;;
13008         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13009           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13010           tmp_addflag=' $pic_flag -Mnomain' ;;
13011         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
13012           tmp_addflag=' -i_dynamic' ;;
13013         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13014           tmp_addflag=' -i_dynamic -nofor_main' ;;
13015         ifc* | ifort*)                  # Intel Fortran compiler
13016           tmp_addflag=' -nofor_main' ;;
13017         lf95*)                          # Lahey Fortran 8.1
13018           whole_archive_flag_spec=
13019           tmp_sharedflag='--shared' ;;
13020         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
13021           tmp_sharedflag='-qmkshrobj'
13022           tmp_addflag= ;;
13023         esac
13024         case `$CC -V 2>&1 | sed 5q` in
13025         *Sun\ C*)                       # Sun C 5.9
13026           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13027           compiler_needs_object=yes
13028           tmp_sharedflag='-G' ;;
13029         *Sun\ F*)                       # Sun Fortran 8.3
13030           tmp_sharedflag='-G' ;;
13031         esac
13032         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13033
13034         if test "x$supports_anon_versioning" = xyes; then
13035           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13036             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13037             echo "local: *; };" >> $output_objdir/$libname.ver~
13038             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13039         fi
13040
13041         case $cc_basename in
13042         xlf*)
13043           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13044           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13045           hardcode_libdir_flag_spec=
13046           hardcode_libdir_flag_spec_ld='-rpath $libdir'
13047           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13048           if test "x$supports_anon_versioning" = xyes; then
13049             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13050               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13051               echo "local: *; };" >> $output_objdir/$libname.ver~
13052               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13053           fi
13054           ;;
13055         esac
13056       else
13057         ld_shlibs=no
13058       fi
13059       ;;
13060
13061     netbsd*)
13062       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13063         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13064         wlarc=
13065       else
13066         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13067         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13068       fi
13069       ;;
13070
13071     solaris*)
13072       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13073         ld_shlibs=no
13074         cat <<_LT_EOF 1>&2
13075
13076 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13077 *** create shared libraries on Solaris systems.  Therefore, libtool
13078 *** is disabling shared libraries support.  We urge you to upgrade GNU
13079 *** binutils to release 2.9.1 or newer.  Another option is to modify
13080 *** your PATH or compiler configuration so that the native linker is
13081 *** used, and then restart.
13082
13083 _LT_EOF
13084       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13085         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13086         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13087       else
13088         ld_shlibs=no
13089       fi
13090       ;;
13091
13092     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13093       case `$LD -v 2>&1` in
13094         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13095         ld_shlibs=no
13096         cat <<_LT_EOF 1>&2
13097
13098 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13099 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13100 *** is disabling shared libraries support.  We urge you to upgrade GNU
13101 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13102 *** your PATH or compiler configuration so that the native linker is
13103 *** used, and then restart.
13104
13105 _LT_EOF
13106         ;;
13107         *)
13108           # For security reasons, it is highly recommended that you always
13109           # use absolute paths for naming shared libraries, and exclude the
13110           # DT_RUNPATH tag from executables and libraries.  But doing so
13111           # requires that you compile everything twice, which is a pain.
13112           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13113             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13114             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13115             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13116           else
13117             ld_shlibs=no
13118           fi
13119         ;;
13120       esac
13121       ;;
13122
13123     sunos4*)
13124       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13125       wlarc=
13126       hardcode_direct=yes
13127       hardcode_shlibpath_var=no
13128       ;;
13129
13130     *)
13131       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13132         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13133         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13134       else
13135         ld_shlibs=no
13136       fi
13137       ;;
13138     esac
13139
13140     if test "$ld_shlibs" = no; then
13141       runpath_var=
13142       hardcode_libdir_flag_spec=
13143       export_dynamic_flag_spec=
13144       whole_archive_flag_spec=
13145     fi
13146   else
13147     # PORTME fill in a description of your system's linker (not GNU ld)
13148     case $host_os in
13149     aix3*)
13150       allow_undefined_flag=unsupported
13151       always_export_symbols=yes
13152       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13153       # Note: this linker hardcodes the directories in LIBPATH if there
13154       # are no directories specified by -L.
13155       hardcode_minus_L=yes
13156       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13157         # Neither direct hardcoding nor static linking is supported with a
13158         # broken collect2.
13159         hardcode_direct=unsupported
13160       fi
13161       ;;
13162
13163     aix[4-9]*)
13164       if test "$host_cpu" = ia64; then
13165         # On IA64, the linker does run time linking by default, so we don't
13166         # have to do anything special.
13167         aix_use_runtimelinking=no
13168         exp_sym_flag='-Bexport'
13169         no_entry_flag=""
13170       else
13171         # If we're using GNU nm, then we don't want the "-C" option.
13172         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13173         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13174           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13175         else
13176           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13177         fi
13178         aix_use_runtimelinking=no
13179
13180         # Test if we are trying to use run time linking or normal
13181         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13182         # need to do runtime linking.
13183         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13184           for ld_flag in $LDFLAGS; do
13185           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13186             aix_use_runtimelinking=yes
13187             break
13188           fi
13189           done
13190           ;;
13191         esac
13192
13193         exp_sym_flag='-bexport'
13194         no_entry_flag='-bnoentry'
13195       fi
13196
13197       # When large executables or shared objects are built, AIX ld can
13198       # have problems creating the table of contents.  If linking a library
13199       # or program results in "error TOC overflow" add -mminimal-toc to
13200       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13201       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13202
13203       archive_cmds=''
13204       hardcode_direct=yes
13205       hardcode_direct_absolute=yes
13206       hardcode_libdir_separator=':'
13207       link_all_deplibs=yes
13208       file_list_spec='${wl}-f,'
13209
13210       if test "$GCC" = yes; then
13211         case $host_os in aix4.[012]|aix4.[012].*)
13212         # We only want to do this on AIX 4.2 and lower, the check
13213         # below for broken collect2 doesn't work under 4.3+
13214           collect2name=`${CC} -print-prog-name=collect2`
13215           if test -f "$collect2name" &&
13216            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13217           then
13218           # We have reworked collect2
13219           :
13220           else
13221           # We have old collect2
13222           hardcode_direct=unsupported
13223           # It fails to find uninstalled libraries when the uninstalled
13224           # path is not listed in the libpath.  Setting hardcode_minus_L
13225           # to unsupported forces relinking
13226           hardcode_minus_L=yes
13227           hardcode_libdir_flag_spec='-L$libdir'
13228           hardcode_libdir_separator=
13229           fi
13230           ;;
13231         esac
13232         shared_flag='-shared'
13233         if test "$aix_use_runtimelinking" = yes; then
13234           shared_flag="$shared_flag "'${wl}-G'
13235         fi
13236       else
13237         # not using gcc
13238         if test "$host_cpu" = ia64; then
13239         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13240         # chokes on -Wl,-G. The following line is correct:
13241           shared_flag='-G'
13242         else
13243           if test "$aix_use_runtimelinking" = yes; then
13244             shared_flag='${wl}-G'
13245           else
13246             shared_flag='${wl}-bM:SRE'
13247           fi
13248         fi
13249       fi
13250
13251       export_dynamic_flag_spec='${wl}-bexpall'
13252       # It seems that -bexpall does not export symbols beginning with
13253       # underscore (_), so it is better to generate a list of symbols to export.
13254       always_export_symbols=yes
13255       if test "$aix_use_runtimelinking" = yes; then
13256         # Warning - without using the other runtime loading flags (-brtl),
13257         # -berok will link without error, but may produce a broken library.
13258         allow_undefined_flag='-berok'
13259         # Determine the default libpath from the value encoded in an
13260         # empty executable.
13261         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13262 /* end confdefs.h.  */
13263
13264 int
13265 main ()
13266 {
13267
13268   ;
13269   return 0;
13270 }
13271 _ACEOF
13272 if ac_fn_c_try_link "$LINENO"; then :
13273
13274 lt_aix_libpath_sed='
13275     /Import File Strings/,/^$/ {
13276         /^0/ {
13277             s/^0  *\(.*\)$/\1/
13278             p
13279         }
13280     }'
13281 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13282 # Check for a 64-bit object if we didn't find anything.
13283 if test -z "$aix_libpath"; then
13284   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13285 fi
13286 fi
13287 rm -f core conftest.err conftest.$ac_objext \
13288     conftest$ac_exeext conftest.$ac_ext
13289 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13290
13291         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13292         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13293       else
13294         if test "$host_cpu" = ia64; then
13295           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13296           allow_undefined_flag="-z nodefs"
13297           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13298         else
13299          # Determine the default libpath from the value encoded in an
13300          # empty executable.
13301          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13302 /* end confdefs.h.  */
13303
13304 int
13305 main ()
13306 {
13307
13308   ;
13309   return 0;
13310 }
13311 _ACEOF
13312 if ac_fn_c_try_link "$LINENO"; then :
13313
13314 lt_aix_libpath_sed='
13315     /Import File Strings/,/^$/ {
13316         /^0/ {
13317             s/^0  *\(.*\)$/\1/
13318             p
13319         }
13320     }'
13321 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13322 # Check for a 64-bit object if we didn't find anything.
13323 if test -z "$aix_libpath"; then
13324   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13325 fi
13326 fi
13327 rm -f core conftest.err conftest.$ac_objext \
13328     conftest$ac_exeext conftest.$ac_ext
13329 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13330
13331          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13332           # Warning - without using the other run time loading flags,
13333           # -berok will link without error, but may produce a broken library.
13334           no_undefined_flag=' ${wl}-bernotok'
13335           allow_undefined_flag=' ${wl}-berok'
13336           # Exported symbols can be pulled into shared objects from archives
13337           whole_archive_flag_spec='$convenience'
13338           archive_cmds_need_lc=yes
13339           # This is similar to how AIX traditionally builds its shared libraries.
13340           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13341         fi
13342       fi
13343       ;;
13344
13345     amigaos*)
13346       case $host_cpu in
13347       powerpc)
13348             # see comment about AmigaOS4 .so support
13349             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13350             archive_expsym_cmds=''
13351         ;;
13352       m68k)
13353             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13354             hardcode_libdir_flag_spec='-L$libdir'
13355             hardcode_minus_L=yes
13356         ;;
13357       esac
13358       ;;
13359
13360     bsdi[45]*)
13361       export_dynamic_flag_spec=-rdynamic
13362       ;;
13363
13364     cygwin* | mingw* | pw32* | cegcc*)
13365       # When not using gcc, we currently assume that we are using
13366       # Microsoft Visual C++.
13367       # hardcode_libdir_flag_spec is actually meaningless, as there is
13368       # no search path for DLLs.
13369       hardcode_libdir_flag_spec=' '
13370       allow_undefined_flag=unsupported
13371       # Tell ltmain to make .lib files, not .a files.
13372       libext=lib
13373       # Tell ltmain to make .dll files, not .so files.
13374       shrext_cmds=".dll"
13375       # FIXME: Setting linknames here is a bad hack.
13376       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
13377       # The linker will automatically build a .lib file if we build a DLL.
13378       old_archive_from_new_cmds='true'
13379       # FIXME: Should let the user specify the lib program.
13380       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13381       fix_srcfile_path='`cygpath -w "$srcfile"`'
13382       enable_shared_with_static_runtimes=yes
13383       ;;
13384
13385     darwin* | rhapsody*)
13386
13387
13388   archive_cmds_need_lc=no
13389   hardcode_direct=no
13390   hardcode_automatic=yes
13391   hardcode_shlibpath_var=unsupported
13392   whole_archive_flag_spec=''
13393   link_all_deplibs=yes
13394   allow_undefined_flag="$_lt_dar_allow_undefined"
13395   case $cc_basename in
13396      ifort*) _lt_dar_can_shared=yes ;;
13397      *) _lt_dar_can_shared=$GCC ;;
13398   esac
13399   if test "$_lt_dar_can_shared" = "yes"; then
13400     output_verbose_link_cmd=echo
13401     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13402     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13403     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13404     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13405
13406   else
13407   ld_shlibs=no
13408   fi
13409
13410       ;;
13411
13412     dgux*)
13413       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13414       hardcode_libdir_flag_spec='-L$libdir'
13415       hardcode_shlibpath_var=no
13416       ;;
13417
13418     freebsd1*)
13419       ld_shlibs=no
13420       ;;
13421
13422     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13423     # support.  Future versions do this automatically, but an explicit c++rt0.o
13424     # does not break anything, and helps significantly (at the cost of a little
13425     # extra space).
13426     freebsd2.2*)
13427       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13428       hardcode_libdir_flag_spec='-R$libdir'
13429       hardcode_direct=yes
13430       hardcode_shlibpath_var=no
13431       ;;
13432
13433     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13434     freebsd2*)
13435       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13436       hardcode_direct=yes
13437       hardcode_minus_L=yes
13438       hardcode_shlibpath_var=no
13439       ;;
13440
13441     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13442     freebsd* | dragonfly*)
13443       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13444       hardcode_libdir_flag_spec='-R$libdir'
13445       hardcode_direct=yes
13446       hardcode_shlibpath_var=no
13447       ;;
13448
13449     hpux9*)
13450       if test "$GCC" = yes; then
13451         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13452       else
13453         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13454       fi
13455       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13456       hardcode_libdir_separator=:
13457       hardcode_direct=yes
13458
13459       # hardcode_minus_L: Not really in the search PATH,
13460       # but as the default location of the library.
13461       hardcode_minus_L=yes
13462       export_dynamic_flag_spec='${wl}-E'
13463       ;;
13464
13465     hpux10*)
13466       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13467         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13468       else
13469         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13470       fi
13471       if test "$with_gnu_ld" = no; then
13472         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13473         hardcode_libdir_flag_spec_ld='+b $libdir'
13474         hardcode_libdir_separator=:
13475         hardcode_direct=yes
13476         hardcode_direct_absolute=yes
13477         export_dynamic_flag_spec='${wl}-E'
13478         # hardcode_minus_L: Not really in the search PATH,
13479         # but as the default location of the library.
13480         hardcode_minus_L=yes
13481       fi
13482       ;;
13483
13484     hpux11*)
13485       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13486         case $host_cpu in
13487         hppa*64*)
13488           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13489           ;;
13490         ia64*)
13491           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13492           ;;
13493         *)
13494           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13495           ;;
13496         esac
13497       else
13498         case $host_cpu in
13499         hppa*64*)
13500           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13501           ;;
13502         ia64*)
13503           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13504           ;;
13505         *)
13506           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13507           ;;
13508         esac
13509       fi
13510       if test "$with_gnu_ld" = no; then
13511         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13512         hardcode_libdir_separator=:
13513
13514         case $host_cpu in
13515         hppa*64*|ia64*)
13516           hardcode_direct=no
13517           hardcode_shlibpath_var=no
13518           ;;
13519         *)
13520           hardcode_direct=yes
13521           hardcode_direct_absolute=yes
13522           export_dynamic_flag_spec='${wl}-E'
13523
13524           # hardcode_minus_L: Not really in the search PATH,
13525           # but as the default location of the library.
13526           hardcode_minus_L=yes
13527           ;;
13528         esac
13529       fi
13530       ;;
13531
13532     irix5* | irix6* | nonstopux*)
13533       if test "$GCC" = yes; then
13534         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13535         # Try to use the -exported_symbol ld option, if it does not
13536         # work, assume that -exports_file does not work either and
13537         # implicitly export all symbols.
13538         save_LDFLAGS="$LDFLAGS"
13539         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13540         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13541 /* end confdefs.h.  */
13542 int foo (void) { return 0; }
13543 _ACEOF
13544 if ac_fn_c_try_link "$LINENO"; then :
13545
13546           archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
13547
13548 fi
13549 rm -f core conftest.err conftest.$ac_objext \
13550     conftest$ac_exeext conftest.$ac_ext
13551         LDFLAGS="$save_LDFLAGS"
13552       else
13553         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13554         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
13555       fi
13556       archive_cmds_need_lc='no'
13557       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13558       hardcode_libdir_separator=:
13559       inherit_rpath=yes
13560       link_all_deplibs=yes
13561       ;;
13562
13563     netbsd*)
13564       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13565         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13566       else
13567         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13568       fi
13569       hardcode_libdir_flag_spec='-R$libdir'
13570       hardcode_direct=yes
13571       hardcode_shlibpath_var=no
13572       ;;
13573
13574     newsos6)
13575       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13576       hardcode_direct=yes
13577       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13578       hardcode_libdir_separator=:
13579       hardcode_shlibpath_var=no
13580       ;;
13581
13582     *nto* | *qnx*)
13583       ;;
13584
13585     openbsd*)
13586       if test -f /usr/libexec/ld.so; then
13587         hardcode_direct=yes
13588         hardcode_shlibpath_var=no
13589         hardcode_direct_absolute=yes
13590         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13591           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13592           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13593           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13594           export_dynamic_flag_spec='${wl}-E'
13595         else
13596           case $host_os in
13597            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13598              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13599              hardcode_libdir_flag_spec='-R$libdir'
13600              ;;
13601            *)
13602              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13603              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13604              ;;
13605           esac
13606         fi
13607       else
13608         ld_shlibs=no
13609       fi
13610       ;;
13611
13612     os2*)
13613       hardcode_libdir_flag_spec='-L$libdir'
13614       hardcode_minus_L=yes
13615       allow_undefined_flag=unsupported
13616       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
13617       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13618       ;;
13619
13620     osf3*)
13621       if test "$GCC" = yes; then
13622         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13623         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13624       else
13625         allow_undefined_flag=' -expect_unresolved \*'
13626         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13627       fi
13628       archive_cmds_need_lc='no'
13629       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13630       hardcode_libdir_separator=:
13631       ;;
13632
13633     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13634       if test "$GCC" = yes; then
13635         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13636         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13637         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13638       else
13639         allow_undefined_flag=' -expect_unresolved \*'
13640         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13641         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
13642         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
13643
13644         # Both c and cxx compiler support -rpath directly
13645         hardcode_libdir_flag_spec='-rpath $libdir'
13646       fi
13647       archive_cmds_need_lc='no'
13648       hardcode_libdir_separator=:
13649       ;;
13650
13651     solaris*)
13652       no_undefined_flag=' -z defs'
13653       if test "$GCC" = yes; then
13654         wlarc='${wl}'
13655         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13656         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13657           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13658       else
13659         case `$CC -V 2>&1` in
13660         *"Compilers 5.0"*)
13661           wlarc=''
13662           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13663           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13664           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13665           ;;
13666         *)
13667           wlarc='${wl}'
13668           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13669           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13670           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13671           ;;
13672         esac
13673       fi
13674       hardcode_libdir_flag_spec='-R$libdir'
13675       hardcode_shlibpath_var=no
13676       case $host_os in
13677       solaris2.[0-5] | solaris2.[0-5].*) ;;
13678       *)
13679         # The compiler driver will combine and reorder linker options,
13680         # but understands `-z linker_flag'.  GCC discards it without `$wl',
13681         # but is careful enough not to reorder.
13682         # Supported since Solaris 2.6 (maybe 2.5.1?)
13683         if test "$GCC" = yes; then
13684           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13685         else
13686           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13687         fi
13688         ;;
13689       esac
13690       link_all_deplibs=yes
13691       ;;
13692
13693     sunos4*)
13694       if test "x$host_vendor" = xsequent; then
13695         # Use $CC to link under sequent, because it throws in some extra .o
13696         # files that make .init and .fini sections work.
13697         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13698       else
13699         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13700       fi
13701       hardcode_libdir_flag_spec='-L$libdir'
13702       hardcode_direct=yes
13703       hardcode_minus_L=yes
13704       hardcode_shlibpath_var=no
13705       ;;
13706
13707     sysv4)
13708       case $host_vendor in
13709         sni)
13710           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13711           hardcode_direct=yes # is this really true???
13712         ;;
13713         siemens)
13714           ## LD is ld it makes a PLAMLIB
13715           ## CC just makes a GrossModule.
13716           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13717           reload_cmds='$CC -r -o $output$reload_objs'
13718           hardcode_direct=no
13719         ;;
13720         motorola)
13721           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13722           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13723         ;;
13724       esac
13725       runpath_var='LD_RUN_PATH'
13726       hardcode_shlibpath_var=no
13727       ;;
13728
13729     sysv4.3*)
13730       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13731       hardcode_shlibpath_var=no
13732       export_dynamic_flag_spec='-Bexport'
13733       ;;
13734
13735     sysv4*MP*)
13736       if test -d /usr/nec; then
13737         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13738         hardcode_shlibpath_var=no
13739         runpath_var=LD_RUN_PATH
13740         hardcode_runpath_var=yes
13741         ld_shlibs=yes
13742       fi
13743       ;;
13744
13745     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13746       no_undefined_flag='${wl}-z,text'
13747       archive_cmds_need_lc=no
13748       hardcode_shlibpath_var=no
13749       runpath_var='LD_RUN_PATH'
13750
13751       if test "$GCC" = yes; then
13752         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13753         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13754       else
13755         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13756         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13757       fi
13758       ;;
13759
13760     sysv5* | sco3.2v5* | sco5v6*)
13761       # Note: We can NOT use -z defs as we might desire, because we do not
13762       # link with -lc, and that would cause any symbols used from libc to
13763       # always be unresolved, which means just about no library would
13764       # ever link correctly.  If we're not using GNU ld we use -z text
13765       # though, which does catch some bad symbols but isn't as heavy-handed
13766       # as -z defs.
13767       no_undefined_flag='${wl}-z,text'
13768       allow_undefined_flag='${wl}-z,nodefs'
13769       archive_cmds_need_lc=no
13770       hardcode_shlibpath_var=no
13771       hardcode_libdir_flag_spec='${wl}-R,$libdir'
13772       hardcode_libdir_separator=':'
13773       link_all_deplibs=yes
13774       export_dynamic_flag_spec='${wl}-Bexport'
13775       runpath_var='LD_RUN_PATH'
13776
13777       if test "$GCC" = yes; then
13778         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13779         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13780       else
13781         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13782         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13783       fi
13784       ;;
13785
13786     uts4*)
13787       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13788       hardcode_libdir_flag_spec='-L$libdir'
13789       hardcode_shlibpath_var=no
13790       ;;
13791
13792     *)
13793       ld_shlibs=no
13794       ;;
13795     esac
13796
13797     if test x$host_vendor = xsni; then
13798       case $host in
13799       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13800         export_dynamic_flag_spec='${wl}-Blargedynsym'
13801         ;;
13802       esac
13803     fi
13804   fi
13805
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13807 $as_echo "$ld_shlibs" >&6; }
13808 test "$ld_shlibs" = no && can_build_shared=no
13809
13810 with_gnu_ld=$with_gnu_ld
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826 #
13827 # Do we need to explicitly link libc?
13828 #
13829 case "x$archive_cmds_need_lc" in
13830 x|xyes)
13831   # Assume -lc should be added
13832   archive_cmds_need_lc=yes
13833
13834   if test "$enable_shared" = yes && test "$GCC" = yes; then
13835     case $archive_cmds in
13836     *'~'*)
13837       # FIXME: we may have to deal with multi-command sequences.
13838       ;;
13839     '$CC '*)
13840       # Test whether the compiler implicitly links with -lc since on some
13841       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13842       # to ld, don't add -lc before -lgcc.
13843       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13844 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13845       $RM conftest*
13846       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13847
13848       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13849   (eval $ac_compile) 2>&5
13850   ac_status=$?
13851   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13852   test $ac_status = 0; } 2>conftest.err; then
13853         soname=conftest
13854         lib=conftest
13855         libobjs=conftest.$ac_objext
13856         deplibs=
13857         wl=$lt_prog_compiler_wl
13858         pic_flag=$lt_prog_compiler_pic
13859         compiler_flags=-v
13860         linker_flags=-v
13861         verstring=
13862         output_objdir=.
13863         libname=conftest
13864         lt_save_allow_undefined_flag=$allow_undefined_flag
13865         allow_undefined_flag=
13866         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13867   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13868   ac_status=$?
13869   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13870   test $ac_status = 0; }
13871         then
13872           archive_cmds_need_lc=no
13873         else
13874           archive_cmds_need_lc=yes
13875         fi
13876         allow_undefined_flag=$lt_save_allow_undefined_flag
13877       else
13878         cat conftest.err 1>&5
13879       fi
13880       $RM conftest*
13881       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
13882 $as_echo "$archive_cmds_need_lc" >&6; }
13883       ;;
13884     esac
13885   fi
13886   ;;
13887 esac
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14046 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14047
14048 if test "$GCC" = yes; then
14049   case $host_os in
14050     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14051     *) lt_awk_arg="/^libraries:/" ;;
14052   esac
14053   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14054   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
14055     # if the path contains ";" then we assume it to be the separator
14056     # otherwise default to the standard path separator (i.e. ":") - it is
14057     # assumed that no part of a normal pathname contains ";" but that should
14058     # okay in the real world where ";" in dirpaths is itself problematic.
14059     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
14060   else
14061     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14062   fi
14063   # Ok, now we have the path, separated by spaces, we can step through it
14064   # and add multilib dir if necessary.
14065   lt_tmp_lt_search_path_spec=
14066   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14067   for lt_sys_path in $lt_search_path_spec; do
14068     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14069       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14070     else
14071       test -d "$lt_sys_path" && \
14072         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14073     fi
14074   done
14075   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
14076 BEGIN {RS=" "; FS="/|\n";} {
14077   lt_foo="";
14078   lt_count=0;
14079   for (lt_i = NF; lt_i > 0; lt_i--) {
14080     if ($lt_i != "" && $lt_i != ".") {
14081       if ($lt_i == "..") {
14082         lt_count++;
14083       } else {
14084         if (lt_count == 0) {
14085           lt_foo="/" $lt_i lt_foo;
14086         } else {
14087           lt_count--;
14088         }
14089       }
14090     }
14091   }
14092   if (lt_foo != "") { lt_freq[lt_foo]++; }
14093   if (lt_freq[lt_foo] == 1) { print lt_foo; }
14094 }'`
14095   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
14096 else
14097   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14098 fi
14099 library_names_spec=
14100 libname_spec='lib$name'
14101 soname_spec=
14102 shrext_cmds=".so"
14103 postinstall_cmds=
14104 postuninstall_cmds=
14105 finish_cmds=
14106 finish_eval=
14107 shlibpath_var=
14108 shlibpath_overrides_runpath=unknown
14109 version_type=none
14110 dynamic_linker="$host_os ld.so"
14111 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14112 need_lib_prefix=unknown
14113 hardcode_into_libs=no
14114
14115 # when you set need_version to no, make sure it does not cause -set_version
14116 # flags to be left without arguments
14117 need_version=unknown
14118
14119 case $host_os in
14120 aix3*)
14121   version_type=linux
14122   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14123   shlibpath_var=LIBPATH
14124
14125   # AIX 3 has no versioning support, so we append a major version to the name.
14126   soname_spec='${libname}${release}${shared_ext}$major'
14127   ;;
14128
14129 aix[4-9]*)
14130   version_type=linux
14131   need_lib_prefix=no
14132   need_version=no
14133   hardcode_into_libs=yes
14134   if test "$host_cpu" = ia64; then
14135     # AIX 5 supports IA64
14136     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14137     shlibpath_var=LD_LIBRARY_PATH
14138   else
14139     # With GCC up to 2.95.x, collect2 would create an import file
14140     # for dependence libraries.  The import file would start with
14141     # the line `#! .'.  This would cause the generated library to
14142     # depend on `.', always an invalid library.  This was fixed in
14143     # development snapshots of GCC prior to 3.0.
14144     case $host_os in
14145       aix4 | aix4.[01] | aix4.[01].*)
14146       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14147            echo ' yes '
14148            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14149         :
14150       else
14151         can_build_shared=no
14152       fi
14153       ;;
14154     esac
14155     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14156     # soname into executable. Probably we can add versioning support to
14157     # collect2, so additional links can be useful in future.
14158     if test "$aix_use_runtimelinking" = yes; then
14159       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14160       # instead of lib<name>.a to let people know that these are not
14161       # typical AIX shared libraries.
14162       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14163     else
14164       # We preserve .a as extension for shared libraries through AIX4.2
14165       # and later when we are not doing run time linking.
14166       library_names_spec='${libname}${release}.a $libname.a'
14167       soname_spec='${libname}${release}${shared_ext}$major'
14168     fi
14169     shlibpath_var=LIBPATH
14170   fi
14171   ;;
14172
14173 amigaos*)
14174   case $host_cpu in
14175   powerpc)
14176     # Since July 2007 AmigaOS4 officially supports .so libraries.
14177     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14178     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14179     ;;
14180   m68k)
14181     library_names_spec='$libname.ixlibrary $libname.a'
14182     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14183     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14184     ;;
14185   esac
14186   ;;
14187
14188 beos*)
14189   library_names_spec='${libname}${shared_ext}'
14190   dynamic_linker="$host_os ld.so"
14191   shlibpath_var=LIBRARY_PATH
14192   ;;
14193
14194 bsdi[45]*)
14195   version_type=linux
14196   need_version=no
14197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14198   soname_spec='${libname}${release}${shared_ext}$major'
14199   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14200   shlibpath_var=LD_LIBRARY_PATH
14201   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14202   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14203   # the default ld.so.conf also contains /usr/contrib/lib and
14204   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14205   # libtool to hard-code these into programs
14206   ;;
14207
14208 cygwin* | mingw* | pw32* | cegcc*)
14209   version_type=windows
14210   shrext_cmds=".dll"
14211   need_version=no
14212   need_lib_prefix=no
14213
14214   case $GCC,$host_os in
14215   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14216     library_names_spec='$libname.dll.a'
14217     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14218     postinstall_cmds='base_file=`basename \${file}`~
14219       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14220       dldir=$destdir/`dirname \$dlpath`~
14221       test -d \$dldir || mkdir -p \$dldir~
14222       $install_prog $dir/$dlname \$dldir/$dlname~
14223       chmod a+x \$dldir/$dlname~
14224       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14225         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14226       fi'
14227     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14228       dlpath=$dir/\$dldll~
14229        $RM \$dlpath'
14230     shlibpath_overrides_runpath=yes
14231
14232     case $host_os in
14233     cygwin*)
14234       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14235       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14236       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14237       ;;
14238     mingw* | cegcc*)
14239       # MinGW DLLs use traditional 'lib' prefix
14240       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14241       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14242       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14243         # It is most probably a Windows format PATH printed by
14244         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14245         # path with ; separators, and with drive letters. We can handle the
14246         # drive letters (cygwin fileutils understands them), so leave them,
14247         # especially as we might pass files found there to a mingw objdump,
14248         # which wouldn't understand a cygwinified path. Ahh.
14249         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14250       else
14251         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14252       fi
14253       ;;
14254     pw32*)
14255       # pw32 DLLs use 'pw' prefix rather than 'lib'
14256       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14257       ;;
14258     esac
14259     ;;
14260
14261   *)
14262     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14263     ;;
14264   esac
14265   dynamic_linker='Win32 ld.exe'
14266   # FIXME: first we should search . and the directory the executable is in
14267   shlibpath_var=PATH
14268   ;;
14269
14270 darwin* | rhapsody*)
14271   dynamic_linker="$host_os dyld"
14272   version_type=darwin
14273   need_lib_prefix=no
14274   need_version=no
14275   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14276   soname_spec='${libname}${release}${major}$shared_ext'
14277   shlibpath_overrides_runpath=yes
14278   shlibpath_var=DYLD_LIBRARY_PATH
14279   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14280
14281   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14282   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14283   ;;
14284
14285 dgux*)
14286   version_type=linux
14287   need_lib_prefix=no
14288   need_version=no
14289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14290   soname_spec='${libname}${release}${shared_ext}$major'
14291   shlibpath_var=LD_LIBRARY_PATH
14292   ;;
14293
14294 freebsd1*)
14295   dynamic_linker=no
14296   ;;
14297
14298 freebsd* | dragonfly*)
14299   # DragonFly does not have aout.  When/if they implement a new
14300   # versioning mechanism, adjust this.
14301   if test -x /usr/bin/objformat; then
14302     objformat=`/usr/bin/objformat`
14303   else
14304     case $host_os in
14305     freebsd[123]*) objformat=aout ;;
14306     *) objformat=elf ;;
14307     esac
14308   fi
14309   version_type=freebsd-$objformat
14310   case $version_type in
14311     freebsd-elf*)
14312       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14313       need_version=no
14314       need_lib_prefix=no
14315       ;;
14316     freebsd-*)
14317       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14318       need_version=yes
14319       ;;
14320   esac
14321   shlibpath_var=LD_LIBRARY_PATH
14322   case $host_os in
14323   freebsd2*)
14324     shlibpath_overrides_runpath=yes
14325     ;;
14326   freebsd3.[01]* | freebsdelf3.[01]*)
14327     shlibpath_overrides_runpath=yes
14328     hardcode_into_libs=yes
14329     ;;
14330   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14331   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14332     shlibpath_overrides_runpath=no
14333     hardcode_into_libs=yes
14334     ;;
14335   *) # from 4.6 on, and DragonFly
14336     shlibpath_overrides_runpath=yes
14337     hardcode_into_libs=yes
14338     ;;
14339   esac
14340   ;;
14341
14342 gnu*)
14343   version_type=linux
14344   need_lib_prefix=no
14345   need_version=no
14346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14347   soname_spec='${libname}${release}${shared_ext}$major'
14348   shlibpath_var=LD_LIBRARY_PATH
14349   hardcode_into_libs=yes
14350   ;;
14351
14352 hpux9* | hpux10* | hpux11*)
14353   # Give a soname corresponding to the major version so that dld.sl refuses to
14354   # link against other versions.
14355   version_type=sunos
14356   need_lib_prefix=no
14357   need_version=no
14358   case $host_cpu in
14359   ia64*)
14360     shrext_cmds='.so'
14361     hardcode_into_libs=yes
14362     dynamic_linker="$host_os dld.so"
14363     shlibpath_var=LD_LIBRARY_PATH
14364     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14365     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14366     soname_spec='${libname}${release}${shared_ext}$major'
14367     if test "X$HPUX_IA64_MODE" = X32; then
14368       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14369     else
14370       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14371     fi
14372     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14373     ;;
14374   hppa*64*)
14375     shrext_cmds='.sl'
14376     hardcode_into_libs=yes
14377     dynamic_linker="$host_os dld.sl"
14378     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14379     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14380     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14381     soname_spec='${libname}${release}${shared_ext}$major'
14382     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14383     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14384     ;;
14385   *)
14386     shrext_cmds='.sl'
14387     dynamic_linker="$host_os dld.sl"
14388     shlibpath_var=SHLIB_PATH
14389     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14390     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14391     soname_spec='${libname}${release}${shared_ext}$major'
14392     ;;
14393   esac
14394   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14395   postinstall_cmds='chmod 555 $lib'
14396   ;;
14397
14398 interix[3-9]*)
14399   version_type=linux
14400   need_lib_prefix=no
14401   need_version=no
14402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14403   soname_spec='${libname}${release}${shared_ext}$major'
14404   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14405   shlibpath_var=LD_LIBRARY_PATH
14406   shlibpath_overrides_runpath=no
14407   hardcode_into_libs=yes
14408   ;;
14409
14410 irix5* | irix6* | nonstopux*)
14411   case $host_os in
14412     nonstopux*) version_type=nonstopux ;;
14413     *)
14414         if test "$lt_cv_prog_gnu_ld" = yes; then
14415                 version_type=linux
14416         else
14417                 version_type=irix
14418         fi ;;
14419   esac
14420   need_lib_prefix=no
14421   need_version=no
14422   soname_spec='${libname}${release}${shared_ext}$major'
14423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14424   case $host_os in
14425   irix5* | nonstopux*)
14426     libsuff= shlibsuff=
14427     ;;
14428   *)
14429     case $LD in # libtool.m4 will add one of these switches to LD
14430     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14431       libsuff= shlibsuff= libmagic=32-bit;;
14432     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14433       libsuff=32 shlibsuff=N32 libmagic=N32;;
14434     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14435       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14436     *) libsuff= shlibsuff= libmagic=never-match;;
14437     esac
14438     ;;
14439   esac
14440   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14441   shlibpath_overrides_runpath=no
14442   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14443   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14444   hardcode_into_libs=yes
14445   ;;
14446
14447 # No shared lib support for Linux oldld, aout, or coff.
14448 linux*oldld* | linux*aout* | linux*coff*)
14449   dynamic_linker=no
14450   ;;
14451
14452 # This must be Linux ELF.
14453 linux* | k*bsd*-gnu)
14454   version_type=linux
14455   need_lib_prefix=no
14456   need_version=no
14457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14458   soname_spec='${libname}${release}${shared_ext}$major'
14459   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14460   shlibpath_var=LD_LIBRARY_PATH
14461   shlibpath_overrides_runpath=no
14462   # Some binutils ld are patched to set DT_RUNPATH
14463   save_LDFLAGS=$LDFLAGS
14464   save_libdir=$libdir
14465   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14466        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14468 /* end confdefs.h.  */
14469
14470 int
14471 main ()
14472 {
14473
14474   ;
14475   return 0;
14476 }
14477 _ACEOF
14478 if ac_fn_c_try_link "$LINENO"; then :
14479   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14480   shlibpath_overrides_runpath=yes
14481 fi
14482 fi
14483 rm -f core conftest.err conftest.$ac_objext \
14484     conftest$ac_exeext conftest.$ac_ext
14485   LDFLAGS=$save_LDFLAGS
14486   libdir=$save_libdir
14487
14488   # This implies no fast_install, which is unacceptable.
14489   # Some rework will be needed to allow for fast_install
14490   # before this can be enabled.
14491   hardcode_into_libs=yes
14492
14493   # Append ld.so.conf contents to the search path
14494   if test -f /etc/ld.so.conf; then
14495     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14496     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14497   fi
14498
14499   # We used to test for /lib/ld.so.1 and disable shared libraries on
14500   # powerpc, because MkLinux only supported shared libraries with the
14501   # GNU dynamic linker.  Since this was broken with cross compilers,
14502   # most powerpc-linux boxes support dynamic linking these days and
14503   # people can always --disable-shared, the test was removed, and we
14504   # assume the GNU/Linux dynamic linker is in use.
14505   dynamic_linker='GNU/Linux ld.so'
14506   ;;
14507
14508 netbsd*)
14509   version_type=sunos
14510   need_lib_prefix=no
14511   need_version=no
14512   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14513     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14514     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14515     dynamic_linker='NetBSD (a.out) ld.so'
14516   else
14517     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14518     soname_spec='${libname}${release}${shared_ext}$major'
14519     dynamic_linker='NetBSD ld.elf_so'
14520   fi
14521   shlibpath_var=LD_LIBRARY_PATH
14522   shlibpath_overrides_runpath=yes
14523   hardcode_into_libs=yes
14524   ;;
14525
14526 newsos6)
14527   version_type=linux
14528   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14529   shlibpath_var=LD_LIBRARY_PATH
14530   shlibpath_overrides_runpath=yes
14531   ;;
14532
14533 *nto* | *qnx*)
14534   version_type=qnx
14535   need_lib_prefix=no
14536   need_version=no
14537   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14538   soname_spec='${libname}${release}${shared_ext}$major'
14539   shlibpath_var=LD_LIBRARY_PATH
14540   shlibpath_overrides_runpath=no
14541   hardcode_into_libs=yes
14542   dynamic_linker='ldqnx.so'
14543   ;;
14544
14545 openbsd*)
14546   version_type=sunos
14547   sys_lib_dlsearch_path_spec="/usr/lib"
14548   need_lib_prefix=no
14549   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14550   case $host_os in
14551     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14552     *)                          need_version=no  ;;
14553   esac
14554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14555   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14556   shlibpath_var=LD_LIBRARY_PATH
14557   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14558     case $host_os in
14559       openbsd2.[89] | openbsd2.[89].*)
14560         shlibpath_overrides_runpath=no
14561         ;;
14562       *)
14563         shlibpath_overrides_runpath=yes
14564         ;;
14565       esac
14566   else
14567     shlibpath_overrides_runpath=yes
14568   fi
14569   ;;
14570
14571 os2*)
14572   libname_spec='$name'
14573   shrext_cmds=".dll"
14574   need_lib_prefix=no
14575   library_names_spec='$libname${shared_ext} $libname.a'
14576   dynamic_linker='OS/2 ld.exe'
14577   shlibpath_var=LIBPATH
14578   ;;
14579
14580 osf3* | osf4* | osf5*)
14581   version_type=osf
14582   need_lib_prefix=no
14583   need_version=no
14584   soname_spec='${libname}${release}${shared_ext}$major'
14585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14586   shlibpath_var=LD_LIBRARY_PATH
14587   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14588   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14589   ;;
14590
14591 rdos*)
14592   dynamic_linker=no
14593   ;;
14594
14595 solaris*)
14596   version_type=linux
14597   need_lib_prefix=no
14598   need_version=no
14599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14600   soname_spec='${libname}${release}${shared_ext}$major'
14601   shlibpath_var=LD_LIBRARY_PATH
14602   shlibpath_overrides_runpath=yes
14603   hardcode_into_libs=yes
14604   # ldd complains unless libraries are executable
14605   postinstall_cmds='chmod +x $lib'
14606   ;;
14607
14608 sunos4*)
14609   version_type=sunos
14610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14611   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14612   shlibpath_var=LD_LIBRARY_PATH
14613   shlibpath_overrides_runpath=yes
14614   if test "$with_gnu_ld" = yes; then
14615     need_lib_prefix=no
14616   fi
14617   need_version=yes
14618   ;;
14619
14620 sysv4 | sysv4.3*)
14621   version_type=linux
14622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14623   soname_spec='${libname}${release}${shared_ext}$major'
14624   shlibpath_var=LD_LIBRARY_PATH
14625   case $host_vendor in
14626     sni)
14627       shlibpath_overrides_runpath=no
14628       need_lib_prefix=no
14629       runpath_var=LD_RUN_PATH
14630       ;;
14631     siemens)
14632       need_lib_prefix=no
14633       ;;
14634     motorola)
14635       need_lib_prefix=no
14636       need_version=no
14637       shlibpath_overrides_runpath=no
14638       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14639       ;;
14640   esac
14641   ;;
14642
14643 sysv4*MP*)
14644   if test -d /usr/nec ;then
14645     version_type=linux
14646     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14647     soname_spec='$libname${shared_ext}.$major'
14648     shlibpath_var=LD_LIBRARY_PATH
14649   fi
14650   ;;
14651
14652 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14653   version_type=freebsd-elf
14654   need_lib_prefix=no
14655   need_version=no
14656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14657   soname_spec='${libname}${release}${shared_ext}$major'
14658   shlibpath_var=LD_LIBRARY_PATH
14659   shlibpath_overrides_runpath=yes
14660   hardcode_into_libs=yes
14661   if test "$with_gnu_ld" = yes; then
14662     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14663   else
14664     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14665     case $host_os in
14666       sco3.2v5*)
14667         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14668         ;;
14669     esac
14670   fi
14671   sys_lib_dlsearch_path_spec='/usr/lib'
14672   ;;
14673
14674 tpf*)
14675   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14676   version_type=linux
14677   need_lib_prefix=no
14678   need_version=no
14679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14680   shlibpath_var=LD_LIBRARY_PATH
14681   shlibpath_overrides_runpath=no
14682   hardcode_into_libs=yes
14683   ;;
14684
14685 uts4*)
14686   version_type=linux
14687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14688   soname_spec='${libname}${release}${shared_ext}$major'
14689   shlibpath_var=LD_LIBRARY_PATH
14690   ;;
14691
14692 *)
14693   dynamic_linker=no
14694   ;;
14695 esac
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14697 $as_echo "$dynamic_linker" >&6; }
14698 test "$dynamic_linker" = no && can_build_shared=no
14699
14700 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14701 if test "$GCC" = yes; then
14702   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14703 fi
14704
14705 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14706   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14707 fi
14708 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14709   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14710 fi
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14799 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14800 hardcode_action=
14801 if test -n "$hardcode_libdir_flag_spec" ||
14802    test -n "$runpath_var" ||
14803    test "X$hardcode_automatic" = "Xyes" ; then
14804
14805   # We can hardcode non-existent directories.
14806   if test "$hardcode_direct" != no &&
14807      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14808      # have to relink, otherwise we might link with an installed library
14809      # when we should be linking with a yet-to-be-installed one
14810      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14811      test "$hardcode_minus_L" != no; then
14812     # Linking always hardcodes the temporary library directory.
14813     hardcode_action=relink
14814   else
14815     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14816     hardcode_action=immediate
14817   fi
14818 else
14819   # We cannot hardcode anything, or else we can only hardcode existing
14820   # directories.
14821   hardcode_action=unsupported
14822 fi
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14824 $as_echo "$hardcode_action" >&6; }
14825
14826 if test "$hardcode_action" = relink ||
14827    test "$inherit_rpath" = yes; then
14828   # Fast installation is not supported
14829   enable_fast_install=no
14830 elif test "$shlibpath_overrides_runpath" = yes ||
14831      test "$enable_shared" = no; then
14832   # Fast installation is not necessary
14833   enable_fast_install=needless
14834 fi
14835
14836
14837
14838
14839
14840
14841   if test "x$enable_dlopen" != xyes; then
14842   enable_dlopen=unknown
14843   enable_dlopen_self=unknown
14844   enable_dlopen_self_static=unknown
14845 else
14846   lt_cv_dlopen=no
14847   lt_cv_dlopen_libs=
14848
14849   case $host_os in
14850   beos*)
14851     lt_cv_dlopen="load_add_on"
14852     lt_cv_dlopen_libs=
14853     lt_cv_dlopen_self=yes
14854     ;;
14855
14856   mingw* | pw32* | cegcc*)
14857     lt_cv_dlopen="LoadLibrary"
14858     lt_cv_dlopen_libs=
14859     ;;
14860
14861   cygwin*)
14862     lt_cv_dlopen="dlopen"
14863     lt_cv_dlopen_libs=
14864     ;;
14865
14866   darwin*)
14867   # if libdl is installed we need to link against it
14868     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14869 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14870 if ${ac_cv_lib_dl_dlopen+:} false; then :
14871   $as_echo_n "(cached) " >&6
14872 else
14873   ac_check_lib_save_LIBS=$LIBS
14874 LIBS="-ldl  $LIBS"
14875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14876 /* end confdefs.h.  */
14877
14878 /* Override any GCC internal prototype to avoid an error.
14879    Use char because int might match the return type of a GCC
14880    builtin and then its argument prototype would still apply.  */
14881 #ifdef __cplusplus
14882 extern "C"
14883 #endif
14884 char dlopen ();
14885 int
14886 main ()
14887 {
14888 return dlopen ();
14889   ;
14890   return 0;
14891 }
14892 _ACEOF
14893 if ac_fn_c_try_link "$LINENO"; then :
14894   ac_cv_lib_dl_dlopen=yes
14895 else
14896   ac_cv_lib_dl_dlopen=no
14897 fi
14898 rm -f core conftest.err conftest.$ac_objext \
14899     conftest$ac_exeext conftest.$ac_ext
14900 LIBS=$ac_check_lib_save_LIBS
14901 fi
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14903 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14904 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14905   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14906 else
14907
14908     lt_cv_dlopen="dyld"
14909     lt_cv_dlopen_libs=
14910     lt_cv_dlopen_self=yes
14911
14912 fi
14913
14914     ;;
14915
14916   *)
14917     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14918 if test "x$ac_cv_func_shl_load" = xyes; then :
14919   lt_cv_dlopen="shl_load"
14920 else
14921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14922 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14923 if ${ac_cv_lib_dld_shl_load+:} false; then :
14924   $as_echo_n "(cached) " >&6
14925 else
14926   ac_check_lib_save_LIBS=$LIBS
14927 LIBS="-ldld  $LIBS"
14928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14929 /* end confdefs.h.  */
14930
14931 /* Override any GCC internal prototype to avoid an error.
14932    Use char because int might match the return type of a GCC
14933    builtin and then its argument prototype would still apply.  */
14934 #ifdef __cplusplus
14935 extern "C"
14936 #endif
14937 char shl_load ();
14938 int
14939 main ()
14940 {
14941 return shl_load ();
14942   ;
14943   return 0;
14944 }
14945 _ACEOF
14946 if ac_fn_c_try_link "$LINENO"; then :
14947   ac_cv_lib_dld_shl_load=yes
14948 else
14949   ac_cv_lib_dld_shl_load=no
14950 fi
14951 rm -f core conftest.err conftest.$ac_objext \
14952     conftest$ac_exeext conftest.$ac_ext
14953 LIBS=$ac_check_lib_save_LIBS
14954 fi
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14956 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14957 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14958   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14959 else
14960   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14961 if test "x$ac_cv_func_dlopen" = xyes; then :
14962   lt_cv_dlopen="dlopen"
14963 else
14964   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14965 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14966 if ${ac_cv_lib_dl_dlopen+:} false; then :
14967   $as_echo_n "(cached) " >&6
14968 else
14969   ac_check_lib_save_LIBS=$LIBS
14970 LIBS="-ldl  $LIBS"
14971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14972 /* end confdefs.h.  */
14973
14974 /* Override any GCC internal prototype to avoid an error.
14975    Use char because int might match the return type of a GCC
14976    builtin and then its argument prototype would still apply.  */
14977 #ifdef __cplusplus
14978 extern "C"
14979 #endif
14980 char dlopen ();
14981 int
14982 main ()
14983 {
14984 return dlopen ();
14985   ;
14986   return 0;
14987 }
14988 _ACEOF
14989 if ac_fn_c_try_link "$LINENO"; then :
14990   ac_cv_lib_dl_dlopen=yes
14991 else
14992   ac_cv_lib_dl_dlopen=no
14993 fi
14994 rm -f core conftest.err conftest.$ac_objext \
14995     conftest$ac_exeext conftest.$ac_ext
14996 LIBS=$ac_check_lib_save_LIBS
14997 fi
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14999 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15000 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15001   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15002 else
15003   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15004 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15005 if ${ac_cv_lib_svld_dlopen+:} false; then :
15006   $as_echo_n "(cached) " >&6
15007 else
15008   ac_check_lib_save_LIBS=$LIBS
15009 LIBS="-lsvld  $LIBS"
15010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15011 /* end confdefs.h.  */
15012
15013 /* Override any GCC internal prototype to avoid an error.
15014    Use char because int might match the return type of a GCC
15015    builtin and then its argument prototype would still apply.  */
15016 #ifdef __cplusplus
15017 extern "C"
15018 #endif
15019 char dlopen ();
15020 int
15021 main ()
15022 {
15023 return dlopen ();
15024   ;
15025   return 0;
15026 }
15027 _ACEOF
15028 if ac_fn_c_try_link "$LINENO"; then :
15029   ac_cv_lib_svld_dlopen=yes
15030 else
15031   ac_cv_lib_svld_dlopen=no
15032 fi
15033 rm -f core conftest.err conftest.$ac_objext \
15034     conftest$ac_exeext conftest.$ac_ext
15035 LIBS=$ac_check_lib_save_LIBS
15036 fi
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15038 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15039 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15040   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15041 else
15042   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15043 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15044 if ${ac_cv_lib_dld_dld_link+:} false; then :
15045   $as_echo_n "(cached) " >&6
15046 else
15047   ac_check_lib_save_LIBS=$LIBS
15048 LIBS="-ldld  $LIBS"
15049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15050 /* end confdefs.h.  */
15051
15052 /* Override any GCC internal prototype to avoid an error.
15053    Use char because int might match the return type of a GCC
15054    builtin and then its argument prototype would still apply.  */
15055 #ifdef __cplusplus
15056 extern "C"
15057 #endif
15058 char dld_link ();
15059 int
15060 main ()
15061 {
15062 return dld_link ();
15063   ;
15064   return 0;
15065 }
15066 _ACEOF
15067 if ac_fn_c_try_link "$LINENO"; then :
15068   ac_cv_lib_dld_dld_link=yes
15069 else
15070   ac_cv_lib_dld_dld_link=no
15071 fi
15072 rm -f core conftest.err conftest.$ac_objext \
15073     conftest$ac_exeext conftest.$ac_ext
15074 LIBS=$ac_check_lib_save_LIBS
15075 fi
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15077 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15078 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15079   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15080 fi
15081
15082
15083 fi
15084
15085
15086 fi
15087
15088
15089 fi
15090
15091
15092 fi
15093
15094
15095 fi
15096
15097     ;;
15098   esac
15099
15100   if test "x$lt_cv_dlopen" != xno; then
15101     enable_dlopen=yes
15102   else
15103     enable_dlopen=no
15104   fi
15105
15106   case $lt_cv_dlopen in
15107   dlopen)
15108     save_CPPFLAGS="$CPPFLAGS"
15109     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15110
15111     save_LDFLAGS="$LDFLAGS"
15112     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15113
15114     save_LIBS="$LIBS"
15115     LIBS="$lt_cv_dlopen_libs $LIBS"
15116
15117     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15118 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15119 if ${lt_cv_dlopen_self+:} false; then :
15120   $as_echo_n "(cached) " >&6
15121 else
15122           if test "$cross_compiling" = yes; then :
15123   lt_cv_dlopen_self=cross
15124 else
15125   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15126   lt_status=$lt_dlunknown
15127   cat > conftest.$ac_ext <<_LT_EOF
15128 #line 15128 "configure"
15129 #include "confdefs.h"
15130
15131 #if HAVE_DLFCN_H
15132 #include <dlfcn.h>
15133 #endif
15134
15135 #include <stdio.h>
15136
15137 #ifdef RTLD_GLOBAL
15138 #  define LT_DLGLOBAL           RTLD_GLOBAL
15139 #else
15140 #  ifdef DL_GLOBAL
15141 #    define LT_DLGLOBAL         DL_GLOBAL
15142 #  else
15143 #    define LT_DLGLOBAL         0
15144 #  endif
15145 #endif
15146
15147 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15148    find out it does not work in some platform. */
15149 #ifndef LT_DLLAZY_OR_NOW
15150 #  ifdef RTLD_LAZY
15151 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15152 #  else
15153 #    ifdef DL_LAZY
15154 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15155 #    else
15156 #      ifdef RTLD_NOW
15157 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15158 #      else
15159 #        ifdef DL_NOW
15160 #          define LT_DLLAZY_OR_NOW      DL_NOW
15161 #        else
15162 #          define LT_DLLAZY_OR_NOW      0
15163 #        endif
15164 #      endif
15165 #    endif
15166 #  endif
15167 #endif
15168
15169 void fnord() { int i=42;}
15170 int main ()
15171 {
15172   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15173   int status = $lt_dlunknown;
15174
15175   if (self)
15176     {
15177       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15178       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15179       /* dlclose (self); */
15180     }
15181   else
15182     puts (dlerror ());
15183
15184   return status;
15185 }
15186 _LT_EOF
15187   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15188   (eval $ac_link) 2>&5
15189   ac_status=$?
15190   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15191   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15192     (./conftest; exit; ) >&5 2>/dev/null
15193     lt_status=$?
15194     case x$lt_status in
15195       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15196       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15197       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15198     esac
15199   else :
15200     # compilation failed
15201     lt_cv_dlopen_self=no
15202   fi
15203 fi
15204 rm -fr conftest*
15205
15206
15207 fi
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15209 $as_echo "$lt_cv_dlopen_self" >&6; }
15210
15211     if test "x$lt_cv_dlopen_self" = xyes; then
15212       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15213       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15214 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15215 if ${lt_cv_dlopen_self_static+:} false; then :
15216   $as_echo_n "(cached) " >&6
15217 else
15218           if test "$cross_compiling" = yes; then :
15219   lt_cv_dlopen_self_static=cross
15220 else
15221   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15222   lt_status=$lt_dlunknown
15223   cat > conftest.$ac_ext <<_LT_EOF
15224 #line 15224 "configure"
15225 #include "confdefs.h"
15226
15227 #if HAVE_DLFCN_H
15228 #include <dlfcn.h>
15229 #endif
15230
15231 #include <stdio.h>
15232
15233 #ifdef RTLD_GLOBAL
15234 #  define LT_DLGLOBAL           RTLD_GLOBAL
15235 #else
15236 #  ifdef DL_GLOBAL
15237 #    define LT_DLGLOBAL         DL_GLOBAL
15238 #  else
15239 #    define LT_DLGLOBAL         0
15240 #  endif
15241 #endif
15242
15243 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15244    find out it does not work in some platform. */
15245 #ifndef LT_DLLAZY_OR_NOW
15246 #  ifdef RTLD_LAZY
15247 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15248 #  else
15249 #    ifdef DL_LAZY
15250 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15251 #    else
15252 #      ifdef RTLD_NOW
15253 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15254 #      else
15255 #        ifdef DL_NOW
15256 #          define LT_DLLAZY_OR_NOW      DL_NOW
15257 #        else
15258 #          define LT_DLLAZY_OR_NOW      0
15259 #        endif
15260 #      endif
15261 #    endif
15262 #  endif
15263 #endif
15264
15265 void fnord() { int i=42;}
15266 int main ()
15267 {
15268   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15269   int status = $lt_dlunknown;
15270
15271   if (self)
15272     {
15273       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15274       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15275       /* dlclose (self); */
15276     }
15277   else
15278     puts (dlerror ());
15279
15280   return status;
15281 }
15282 _LT_EOF
15283   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15284   (eval $ac_link) 2>&5
15285   ac_status=$?
15286   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15287   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15288     (./conftest; exit; ) >&5 2>/dev/null
15289     lt_status=$?
15290     case x$lt_status in
15291       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15292       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15293       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15294     esac
15295   else :
15296     # compilation failed
15297     lt_cv_dlopen_self_static=no
15298   fi
15299 fi
15300 rm -fr conftest*
15301
15302
15303 fi
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15305 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15306     fi
15307
15308     CPPFLAGS="$save_CPPFLAGS"
15309     LDFLAGS="$save_LDFLAGS"
15310     LIBS="$save_LIBS"
15311     ;;
15312   esac
15313
15314   case $lt_cv_dlopen_self in
15315   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15316   *) enable_dlopen_self=unknown ;;
15317   esac
15318
15319   case $lt_cv_dlopen_self_static in
15320   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15321   *) enable_dlopen_self_static=unknown ;;
15322   esac
15323 fi
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341 striplib=
15342 old_striplib=
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15344 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15345 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15346   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15347   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15349 $as_echo "yes" >&6; }
15350 else
15351 # FIXME - insert some real tests, host_os isn't really good enough
15352   case $host_os in
15353   darwin*)
15354     if test -n "$STRIP" ; then
15355       striplib="$STRIP -x"
15356       old_striplib="$STRIP -S"
15357       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15358 $as_echo "yes" >&6; }
15359     else
15360       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15361 $as_echo "no" >&6; }
15362     fi
15363     ;;
15364   *)
15365     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15366 $as_echo "no" >&6; }
15367     ;;
15368   esac
15369 fi
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382   # Report which library types will actually be built
15383   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15384 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15386 $as_echo "$can_build_shared" >&6; }
15387
15388   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15389 $as_echo_n "checking whether to build shared libraries... " >&6; }
15390   test "$can_build_shared" = "no" && enable_shared=no
15391
15392   # On AIX, shared libraries and static libraries use the same namespace, and
15393   # are all built from PIC.
15394   case $host_os in
15395   aix3*)
15396     test "$enable_shared" = yes && enable_static=no
15397     if test -n "$RANLIB"; then
15398       archive_cmds="$archive_cmds~\$RANLIB \$lib"
15399       postinstall_cmds='$RANLIB $lib'
15400     fi
15401     ;;
15402
15403   aix[4-9]*)
15404     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15405       test "$enable_shared" = yes && enable_static=no
15406     fi
15407     ;;
15408   esac
15409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15410 $as_echo "$enable_shared" >&6; }
15411
15412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15413 $as_echo_n "checking whether to build static libraries... " >&6; }
15414   # Make sure either enable_shared or enable_static is yes.
15415   test "$enable_shared" = yes || enable_static=yes
15416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15417 $as_echo "$enable_static" >&6; }
15418
15419
15420
15421
15422 fi
15423 ac_ext=c
15424 ac_cpp='$CPP $CPPFLAGS'
15425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15428
15429 CC="$lt_save_CC"
15430
15431
15432 ac_ext=cpp
15433 ac_cpp='$CXXCPP $CPPFLAGS'
15434 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15435 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15436 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15437
15438 archive_cmds_need_lc_CXX=no
15439 allow_undefined_flag_CXX=
15440 always_export_symbols_CXX=no
15441 archive_expsym_cmds_CXX=
15442 compiler_needs_object_CXX=no
15443 export_dynamic_flag_spec_CXX=
15444 hardcode_direct_CXX=no
15445 hardcode_direct_absolute_CXX=no
15446 hardcode_libdir_flag_spec_CXX=
15447 hardcode_libdir_flag_spec_ld_CXX=
15448 hardcode_libdir_separator_CXX=
15449 hardcode_minus_L_CXX=no
15450 hardcode_shlibpath_var_CXX=unsupported
15451 hardcode_automatic_CXX=no
15452 inherit_rpath_CXX=no
15453 module_cmds_CXX=
15454 module_expsym_cmds_CXX=
15455 link_all_deplibs_CXX=unknown
15456 old_archive_cmds_CXX=$old_archive_cmds
15457 no_undefined_flag_CXX=
15458 whole_archive_flag_spec_CXX=
15459 enable_shared_with_static_runtimes_CXX=no
15460
15461 # Source file extension for C++ test sources.
15462 ac_ext=cpp
15463
15464 # Object file extension for compiled C++ test sources.
15465 objext=o
15466 objext_CXX=$objext
15467
15468 # No sense in running all these tests if we already determined that
15469 # the CXX compiler isn't working.  Some variables (like enable_shared)
15470 # are currently assumed to apply to all compilers on this platform,
15471 # and will be corrupted by setting them based on a non-working compiler.
15472 if test "$_lt_caught_CXX_error" != yes; then
15473   # Code to be used in simple compile tests
15474   lt_simple_compile_test_code="int some_variable = 0;"
15475
15476   # Code to be used in simple link tests
15477   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15478
15479   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15480
15481
15482
15483
15484
15485
15486 # If no C compiler was specified, use CC.
15487 LTCC=${LTCC-"$CC"}
15488
15489 # If no C compiler flags were specified, use CFLAGS.
15490 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15491
15492 # Allow CC to be a program name with arguments.
15493 compiler=$CC
15494
15495
15496   # save warnings/boilerplate of simple test code
15497   ac_outfile=conftest.$ac_objext
15498 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15499 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15500 _lt_compiler_boilerplate=`cat conftest.err`
15501 $RM conftest*
15502
15503   ac_outfile=conftest.$ac_objext
15504 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15505 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15506 _lt_linker_boilerplate=`cat conftest.err`
15507 $RM -r conftest*
15508
15509
15510   # Allow CC to be a program name with arguments.
15511   lt_save_CC=$CC
15512   lt_save_LD=$LD
15513   lt_save_GCC=$GCC
15514   GCC=$GXX
15515   lt_save_with_gnu_ld=$with_gnu_ld
15516   lt_save_path_LD=$lt_cv_path_LD
15517   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15518     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15519   else
15520     $as_unset lt_cv_prog_gnu_ld
15521   fi
15522   if test -n "${lt_cv_path_LDCXX+set}"; then
15523     lt_cv_path_LD=$lt_cv_path_LDCXX
15524   else
15525     $as_unset lt_cv_path_LD
15526   fi
15527   test -z "${LDCXX+set}" || LD=$LDCXX
15528   CC=${CXX-"c++"}
15529   compiler=$CC
15530   compiler_CXX=$CC
15531   for cc_temp in $compiler""; do
15532   case $cc_temp in
15533     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15534     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15535     \-*) ;;
15536     *) break;;
15537   esac
15538 done
15539 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15540
15541
15542   if test -n "$compiler"; then
15543     # We don't want -fno-exception when compiling C++ code, so set the
15544     # no_builtin_flag separately
15545     if test "$GXX" = yes; then
15546       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15547     else
15548       lt_prog_compiler_no_builtin_flag_CXX=
15549     fi
15550
15551     if test "$GXX" = yes; then
15552       # Set up default GNU C++ configuration
15553
15554
15555
15556 # Check whether --with-gnu-ld was given.
15557 if test "${with_gnu_ld+set}" = set; then :
15558   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15559 else
15560   with_gnu_ld=no
15561 fi
15562
15563 ac_prog=ld
15564 if test "$GCC" = yes; then
15565   # Check if gcc -print-prog-name=ld gives a path.
15566   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15567 $as_echo_n "checking for ld used by $CC... " >&6; }
15568   case $host in
15569   *-*-mingw*)
15570     # gcc leaves a trailing carriage return which upsets mingw
15571     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15572   *)
15573     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15574   esac
15575   case $ac_prog in
15576     # Accept absolute paths.
15577     [\\/]* | ?:[\\/]*)
15578       re_direlt='/[^/][^/]*/\.\./'
15579       # Canonicalize the pathname of ld
15580       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15581       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15582         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15583       done
15584       test -z "$LD" && LD="$ac_prog"
15585       ;;
15586   "")
15587     # If it fails, then pretend we aren't using GCC.
15588     ac_prog=ld
15589     ;;
15590   *)
15591     # If it is relative, then search for the first ld in PATH.
15592     with_gnu_ld=unknown
15593     ;;
15594   esac
15595 elif test "$with_gnu_ld" = yes; then
15596   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15597 $as_echo_n "checking for GNU ld... " >&6; }
15598 else
15599   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15600 $as_echo_n "checking for non-GNU ld... " >&6; }
15601 fi
15602 if ${lt_cv_path_LD+:} false; then :
15603   $as_echo_n "(cached) " >&6
15604 else
15605   if test -z "$LD"; then
15606   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15607   for ac_dir in $PATH; do
15608     IFS="$lt_save_ifs"
15609     test -z "$ac_dir" && ac_dir=.
15610     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15611       lt_cv_path_LD="$ac_dir/$ac_prog"
15612       # Check to see if the program is GNU ld.  I'd rather use --version,
15613       # but apparently some variants of GNU ld only accept -v.
15614       # Break only if it was the GNU/non-GNU ld that we prefer.
15615       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15616       *GNU* | *'with BFD'*)
15617         test "$with_gnu_ld" != no && break
15618         ;;
15619       *)
15620         test "$with_gnu_ld" != yes && break
15621         ;;
15622       esac
15623     fi
15624   done
15625   IFS="$lt_save_ifs"
15626 else
15627   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15628 fi
15629 fi
15630
15631 LD="$lt_cv_path_LD"
15632 if test -n "$LD"; then
15633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15634 $as_echo "$LD" >&6; }
15635 else
15636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15637 $as_echo "no" >&6; }
15638 fi
15639 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15641 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15642 if ${lt_cv_prog_gnu_ld+:} false; then :
15643   $as_echo_n "(cached) " >&6
15644 else
15645   # I'd rather use --version here, but apparently some GNU lds only accept -v.
15646 case `$LD -v 2>&1 </dev/null` in
15647 *GNU* | *'with BFD'*)
15648   lt_cv_prog_gnu_ld=yes
15649   ;;
15650 *)
15651   lt_cv_prog_gnu_ld=no
15652   ;;
15653 esac
15654 fi
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15656 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15657 with_gnu_ld=$lt_cv_prog_gnu_ld
15658
15659
15660
15661
15662
15663
15664
15665       # Check if GNU C++ uses GNU ld as the underlying linker, since the
15666       # archiving commands below assume that GNU ld is being used.
15667       if test "$with_gnu_ld" = yes; then
15668         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15669         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15670
15671         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15672         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15673
15674         # If archive_cmds runs LD, not CC, wlarc should be empty
15675         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15676         #     investigate it a little bit more. (MM)
15677         wlarc='${wl}'
15678
15679         # ancient GNU ld didn't support --whole-archive et. al.
15680         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15681           $GREP 'no-whole-archive' > /dev/null; then
15682           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15683         else
15684           whole_archive_flag_spec_CXX=
15685         fi
15686       else
15687         with_gnu_ld=no
15688         wlarc=
15689
15690         # A generic and very simple default shared library creation
15691         # command for GNU C++ for the case where it uses the native
15692         # linker, instead of GNU ld.  If possible, this setting should
15693         # overridden to take advantage of the native linker features on
15694         # the platform it is being used on.
15695         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15696       fi
15697
15698       # Commands to make compiler produce verbose output that lists
15699       # what "hidden" libraries, object files and flags are used when
15700       # linking a shared library.
15701       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15702
15703     else
15704       GXX=no
15705       with_gnu_ld=no
15706       wlarc=
15707     fi
15708
15709     # PORTME: fill in a description of your system's C++ link characteristics
15710     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15711 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15712     ld_shlibs_CXX=yes
15713     case $host_os in
15714       aix3*)
15715         # FIXME: insert proper C++ library support
15716         ld_shlibs_CXX=no
15717         ;;
15718       aix[4-9]*)
15719         if test "$host_cpu" = ia64; then
15720           # On IA64, the linker does run time linking by default, so we don't
15721           # have to do anything special.
15722           aix_use_runtimelinking=no
15723           exp_sym_flag='-Bexport'
15724           no_entry_flag=""
15725         else
15726           aix_use_runtimelinking=no
15727
15728           # Test if we are trying to use run time linking or normal
15729           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15730           # need to do runtime linking.
15731           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15732             for ld_flag in $LDFLAGS; do
15733               case $ld_flag in
15734               *-brtl*)
15735                 aix_use_runtimelinking=yes
15736                 break
15737                 ;;
15738               esac
15739             done
15740             ;;
15741           esac
15742
15743           exp_sym_flag='-bexport'
15744           no_entry_flag='-bnoentry'
15745         fi
15746
15747         # When large executables or shared objects are built, AIX ld can
15748         # have problems creating the table of contents.  If linking a library
15749         # or program results in "error TOC overflow" add -mminimal-toc to
15750         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15751         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15752
15753         archive_cmds_CXX=''
15754         hardcode_direct_CXX=yes
15755         hardcode_direct_absolute_CXX=yes
15756         hardcode_libdir_separator_CXX=':'
15757         link_all_deplibs_CXX=yes
15758         file_list_spec_CXX='${wl}-f,'
15759
15760         if test "$GXX" = yes; then
15761           case $host_os in aix4.[012]|aix4.[012].*)
15762           # We only want to do this on AIX 4.2 and lower, the check
15763           # below for broken collect2 doesn't work under 4.3+
15764           collect2name=`${CC} -print-prog-name=collect2`
15765           if test -f "$collect2name" &&
15766              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15767           then
15768             # We have reworked collect2
15769             :
15770           else
15771             # We have old collect2
15772             hardcode_direct_CXX=unsupported
15773             # It fails to find uninstalled libraries when the uninstalled
15774             # path is not listed in the libpath.  Setting hardcode_minus_L
15775             # to unsupported forces relinking
15776             hardcode_minus_L_CXX=yes
15777             hardcode_libdir_flag_spec_CXX='-L$libdir'
15778             hardcode_libdir_separator_CXX=
15779           fi
15780           esac
15781           shared_flag='-shared'
15782           if test "$aix_use_runtimelinking" = yes; then
15783             shared_flag="$shared_flag "'${wl}-G'
15784           fi
15785         else
15786           # not using gcc
15787           if test "$host_cpu" = ia64; then
15788           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15789           # chokes on -Wl,-G. The following line is correct:
15790           shared_flag='-G'
15791           else
15792             if test "$aix_use_runtimelinking" = yes; then
15793               shared_flag='${wl}-G'
15794             else
15795               shared_flag='${wl}-bM:SRE'
15796             fi
15797           fi
15798         fi
15799
15800         export_dynamic_flag_spec_CXX='${wl}-bexpall'
15801         # It seems that -bexpall does not export symbols beginning with
15802         # underscore (_), so it is better to generate a list of symbols to
15803         # export.
15804         always_export_symbols_CXX=yes
15805         if test "$aix_use_runtimelinking" = yes; then
15806           # Warning - without using the other runtime loading flags (-brtl),
15807           # -berok will link without error, but may produce a broken library.
15808           allow_undefined_flag_CXX='-berok'
15809           # Determine the default libpath from the value encoded in an empty
15810           # executable.
15811           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15812 /* end confdefs.h.  */
15813
15814 int
15815 main ()
15816 {
15817
15818   ;
15819   return 0;
15820 }
15821 _ACEOF
15822 if ac_fn_cxx_try_link "$LINENO"; then :
15823
15824 lt_aix_libpath_sed='
15825     /Import File Strings/,/^$/ {
15826         /^0/ {
15827             s/^0  *\(.*\)$/\1/
15828             p
15829         }
15830     }'
15831 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15832 # Check for a 64-bit object if we didn't find anything.
15833 if test -z "$aix_libpath"; then
15834   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15835 fi
15836 fi
15837 rm -f core conftest.err conftest.$ac_objext \
15838     conftest$ac_exeext conftest.$ac_ext
15839 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15840
15841           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15842
15843           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15844         else
15845           if test "$host_cpu" = ia64; then
15846             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15847             allow_undefined_flag_CXX="-z nodefs"
15848             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15849           else
15850             # Determine the default libpath from the value encoded in an
15851             # empty executable.
15852             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15853 /* end confdefs.h.  */
15854
15855 int
15856 main ()
15857 {
15858
15859   ;
15860   return 0;
15861 }
15862 _ACEOF
15863 if ac_fn_cxx_try_link "$LINENO"; then :
15864
15865 lt_aix_libpath_sed='
15866     /Import File Strings/,/^$/ {
15867         /^0/ {
15868             s/^0  *\(.*\)$/\1/
15869             p
15870         }
15871     }'
15872 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15873 # Check for a 64-bit object if we didn't find anything.
15874 if test -z "$aix_libpath"; then
15875   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15876 fi
15877 fi
15878 rm -f core conftest.err conftest.$ac_objext \
15879     conftest$ac_exeext conftest.$ac_ext
15880 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15881
15882             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15883             # Warning - without using the other run time loading flags,
15884             # -berok will link without error, but may produce a broken library.
15885             no_undefined_flag_CXX=' ${wl}-bernotok'
15886             allow_undefined_flag_CXX=' ${wl}-berok'
15887             # Exported symbols can be pulled into shared objects from archives
15888             whole_archive_flag_spec_CXX='$convenience'
15889             archive_cmds_need_lc_CXX=yes
15890             # This is similar to how AIX traditionally builds its shared
15891             # libraries.
15892             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15893           fi
15894         fi
15895         ;;
15896
15897       beos*)
15898         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15899           allow_undefined_flag_CXX=unsupported
15900           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15901           # support --undefined.  This deserves some investigation.  FIXME
15902           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15903         else
15904           ld_shlibs_CXX=no
15905         fi
15906         ;;
15907
15908       chorus*)
15909         case $cc_basename in
15910           *)
15911           # FIXME: insert proper C++ library support
15912           ld_shlibs_CXX=no
15913           ;;
15914         esac
15915         ;;
15916
15917       cygwin* | mingw* | pw32* | cegcc*)
15918         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15919         # as there is no search path for DLLs.
15920         hardcode_libdir_flag_spec_CXX='-L$libdir'
15921         allow_undefined_flag_CXX=unsupported
15922         always_export_symbols_CXX=no
15923         enable_shared_with_static_runtimes_CXX=yes
15924
15925         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15926           archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15927           # If the export-symbols file already is a .def file (1st line
15928           # is EXPORTS), use it as is; otherwise, prepend...
15929           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15930             cp $export_symbols $output_objdir/$soname.def;
15931           else
15932             echo EXPORTS > $output_objdir/$soname.def;
15933             cat $export_symbols >> $output_objdir/$soname.def;
15934           fi~
15935           $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15936         else
15937           ld_shlibs_CXX=no
15938         fi
15939         ;;
15940       darwin* | rhapsody*)
15941
15942
15943   archive_cmds_need_lc_CXX=no
15944   hardcode_direct_CXX=no
15945   hardcode_automatic_CXX=yes
15946   hardcode_shlibpath_var_CXX=unsupported
15947   whole_archive_flag_spec_CXX=''
15948   link_all_deplibs_CXX=yes
15949   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15950   case $cc_basename in
15951      ifort*) _lt_dar_can_shared=yes ;;
15952      *) _lt_dar_can_shared=$GCC ;;
15953   esac
15954   if test "$_lt_dar_can_shared" = "yes"; then
15955     output_verbose_link_cmd=echo
15956     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15957     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15958     archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15959     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15960        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15961       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
15962       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
15963     fi
15964
15965   else
15966   ld_shlibs_CXX=no
15967   fi
15968
15969         ;;
15970
15971       dgux*)
15972         case $cc_basename in
15973           ec++*)
15974             # FIXME: insert proper C++ library support
15975             ld_shlibs_CXX=no
15976             ;;
15977           ghcx*)
15978             # Green Hills C++ Compiler
15979             # FIXME: insert proper C++ library support
15980             ld_shlibs_CXX=no
15981             ;;
15982           *)
15983             # FIXME: insert proper C++ library support
15984             ld_shlibs_CXX=no
15985             ;;
15986         esac
15987         ;;
15988
15989       freebsd[12]*)
15990         # C++ shared libraries reported to be fairly broken before
15991         # switch to ELF
15992         ld_shlibs_CXX=no
15993         ;;
15994
15995       freebsd-elf*)
15996         archive_cmds_need_lc_CXX=no
15997         ;;
15998
15999       freebsd* | dragonfly*)
16000         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16001         # conventions
16002         ld_shlibs_CXX=yes
16003         ;;
16004
16005       gnu*)
16006         ;;
16007
16008       hpux9*)
16009         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16010         hardcode_libdir_separator_CXX=:
16011         export_dynamic_flag_spec_CXX='${wl}-E'
16012         hardcode_direct_CXX=yes
16013         hardcode_minus_L_CXX=yes # Not in the search PATH,
16014                                              # but as the default
16015                                              # location of the library.
16016
16017         case $cc_basename in
16018           CC*)
16019             # FIXME: insert proper C++ library support
16020             ld_shlibs_CXX=no
16021             ;;
16022           aCC*)
16023             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16024             # Commands to make compiler produce verbose output that lists
16025             # what "hidden" libraries, object files and flags are used when
16026             # linking a shared library.
16027             #
16028             # There doesn't appear to be a way to prevent this compiler from
16029             # explicitly linking system object files so we need to strip them
16030             # from the output so that they don't get included in the library
16031             # dependencies.
16032             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
16033             ;;
16034           *)
16035             if test "$GXX" = yes; then
16036               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16037             else
16038               # FIXME: insert proper C++ library support
16039               ld_shlibs_CXX=no
16040             fi
16041             ;;
16042         esac
16043         ;;
16044
16045       hpux10*|hpux11*)
16046         if test $with_gnu_ld = no; then
16047           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16048           hardcode_libdir_separator_CXX=:
16049
16050           case $host_cpu in
16051             hppa*64*|ia64*)
16052               ;;
16053             *)
16054               export_dynamic_flag_spec_CXX='${wl}-E'
16055               ;;
16056           esac
16057         fi
16058         case $host_cpu in
16059           hppa*64*|ia64*)
16060             hardcode_direct_CXX=no
16061             hardcode_shlibpath_var_CXX=no
16062             ;;
16063           *)
16064             hardcode_direct_CXX=yes
16065             hardcode_direct_absolute_CXX=yes
16066             hardcode_minus_L_CXX=yes # Not in the search PATH,
16067                                                  # but as the default
16068                                                  # location of the library.
16069             ;;
16070         esac
16071
16072         case $cc_basename in
16073           CC*)
16074             # FIXME: insert proper C++ library support
16075             ld_shlibs_CXX=no
16076             ;;
16077           aCC*)
16078             case $host_cpu in
16079               hppa*64*)
16080                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16081                 ;;
16082               ia64*)
16083                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16084                 ;;
16085               *)
16086                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16087                 ;;
16088             esac
16089             # Commands to make compiler produce verbose output that lists
16090             # what "hidden" libraries, object files and flags are used when
16091             # linking a shared library.
16092             #
16093             # There doesn't appear to be a way to prevent this compiler from
16094             # explicitly linking system object files so we need to strip them
16095             # from the output so that they don't get included in the library
16096             # dependencies.
16097             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
16098             ;;
16099           *)
16100             if test "$GXX" = yes; then
16101               if test $with_gnu_ld = no; then
16102                 case $host_cpu in
16103                   hppa*64*)
16104                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16105                     ;;
16106                   ia64*)
16107                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16108                     ;;
16109                   *)
16110                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16111                     ;;
16112                 esac
16113               fi
16114             else
16115               # FIXME: insert proper C++ library support
16116               ld_shlibs_CXX=no
16117             fi
16118             ;;
16119         esac
16120         ;;
16121
16122       interix[3-9]*)
16123         hardcode_direct_CXX=no
16124         hardcode_shlibpath_var_CXX=no
16125         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16126         export_dynamic_flag_spec_CXX='${wl}-E'
16127         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16128         # Instead, shared libraries are loaded at an image base (0x10000000 by
16129         # default) and relocated if they conflict, which is a slow very memory
16130         # consuming and fragmenting process.  To avoid this, we pick a random,
16131         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16132         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16133         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16134         archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16135         ;;
16136       irix5* | irix6*)
16137         case $cc_basename in
16138           CC*)
16139             # SGI C++
16140             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
16141
16142             # Archives containing C++ object files must be created using
16143             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16144             # necessary to make sure instantiated templates are included
16145             # in the archive.
16146             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16147             ;;
16148           *)
16149             if test "$GXX" = yes; then
16150               if test "$with_gnu_ld" = no; then
16151                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16152               else
16153                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
16154               fi
16155             fi
16156             link_all_deplibs_CXX=yes
16157             ;;
16158         esac
16159         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16160         hardcode_libdir_separator_CXX=:
16161         inherit_rpath_CXX=yes
16162         ;;
16163
16164       linux* | k*bsd*-gnu)
16165         case $cc_basename in
16166           KCC*)
16167             # Kuck and Associates, Inc. (KAI) C++ Compiler
16168
16169             # KCC will only create a shared library if the output file
16170             # ends with ".so" (or ".sl" for HP-UX), so rename the library
16171             # to its proper name (with version) after linking.
16172             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16173             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
16174             # Commands to make compiler produce verbose output that lists
16175             # what "hidden" libraries, object files and flags are used when
16176             # linking a shared library.
16177             #
16178             # There doesn't appear to be a way to prevent this compiler from
16179             # explicitly linking system object files so we need to strip them
16180             # from the output so that they don't get included in the library
16181             # dependencies.
16182             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
16183
16184             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16185             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16186
16187             # Archives containing C++ object files must be created using
16188             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16189             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16190             ;;
16191           icpc* | ecpc* )
16192             # Intel C++
16193             with_gnu_ld=yes
16194             # version 8.0 and above of icpc choke on multiply defined symbols
16195             # if we add $predep_objects and $postdep_objects, however 7.1 and
16196             # earlier do not add the objects themselves.
16197             case `$CC -V 2>&1` in
16198               *"Version 7."*)
16199                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16200                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16201                 ;;
16202               *)  # Version 8.0 or newer
16203                 tmp_idyn=
16204                 case $host_cpu in
16205                   ia64*) tmp_idyn=' -i_dynamic';;
16206                 esac
16207                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16208                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16209                 ;;
16210             esac
16211             archive_cmds_need_lc_CXX=no
16212             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16213             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16214             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16215             ;;
16216           pgCC* | pgcpp*)
16217             # Portland Group C++ compiler
16218             case `$CC -V` in
16219             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
16220               prelink_cmds_CXX='tpldir=Template.dir~
16221                 rm -rf $tpldir~
16222                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16223                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
16224               old_archive_cmds_CXX='tpldir=Template.dir~
16225                 rm -rf $tpldir~
16226                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16227                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
16228                 $RANLIB $oldlib'
16229               archive_cmds_CXX='tpldir=Template.dir~
16230                 rm -rf $tpldir~
16231                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16232                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16233               archive_expsym_cmds_CXX='tpldir=Template.dir~
16234                 rm -rf $tpldir~
16235                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16236                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
16237               ;;
16238             *) # Version 6 will use weak symbols
16239               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16240               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
16241               ;;
16242             esac
16243
16244             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16245             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16246             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
16247             ;;
16248           cxx*)
16249             # Compaq C++
16250             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16251             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
16252
16253             runpath_var=LD_RUN_PATH
16254             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16255             hardcode_libdir_separator_CXX=:
16256
16257             # Commands to make compiler produce verbose output that lists
16258             # what "hidden" libraries, object files and flags are used when
16259             # linking a shared library.
16260             #
16261             # There doesn't appear to be a way to prevent this compiler from
16262             # explicitly linking system object files so we need to strip them
16263             # from the output so that they don't get included in the library
16264             # dependencies.
16265             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
16266             ;;
16267           xl*)
16268             # IBM XL 8.0 on PPC, with GNU ld
16269             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16270             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16271             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16272             if test "x$supports_anon_versioning" = xyes; then
16273               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16274                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16275                 echo "local: *; };" >> $output_objdir/$libname.ver~
16276                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16277             fi
16278             ;;
16279           *)
16280             case `$CC -V 2>&1 | sed 5q` in
16281             *Sun\ C*)
16282               # Sun C++ 5.9
16283               no_undefined_flag_CXX=' -zdefs'
16284               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16285               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
16286               hardcode_libdir_flag_spec_CXX='-R$libdir'
16287               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
16288               compiler_needs_object_CXX=yes
16289
16290               # Not sure whether something based on
16291               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16292               # would be better.
16293               output_verbose_link_cmd='echo'
16294
16295               # Archives containing C++ object files must be created using
16296               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16297               # necessary to make sure instantiated templates are included
16298               # in the archive.
16299               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16300               ;;
16301             esac
16302             ;;
16303         esac
16304         ;;
16305
16306       lynxos*)
16307         # FIXME: insert proper C++ library support
16308         ld_shlibs_CXX=no
16309         ;;
16310
16311       m88k*)
16312         # FIXME: insert proper C++ library support
16313         ld_shlibs_CXX=no
16314         ;;
16315
16316       mvs*)
16317         case $cc_basename in
16318           cxx*)
16319             # FIXME: insert proper C++ library support
16320             ld_shlibs_CXX=no
16321             ;;
16322           *)
16323             # FIXME: insert proper C++ library support
16324             ld_shlibs_CXX=no
16325             ;;
16326         esac
16327         ;;
16328
16329       netbsd*)
16330         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16331           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16332           wlarc=
16333           hardcode_libdir_flag_spec_CXX='-R$libdir'
16334           hardcode_direct_CXX=yes
16335           hardcode_shlibpath_var_CXX=no
16336         fi
16337         # Workaround some broken pre-1.5 toolchains
16338         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16339         ;;
16340
16341       *nto* | *qnx*)
16342         ld_shlibs_CXX=yes
16343         ;;
16344
16345       openbsd2*)
16346         # C++ shared libraries are fairly broken
16347         ld_shlibs_CXX=no
16348         ;;
16349
16350       openbsd*)
16351         if test -f /usr/libexec/ld.so; then
16352           hardcode_direct_CXX=yes
16353           hardcode_shlibpath_var_CXX=no
16354           hardcode_direct_absolute_CXX=yes
16355           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16356           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16357           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16358             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16359             export_dynamic_flag_spec_CXX='${wl}-E'
16360             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16361           fi
16362           output_verbose_link_cmd=echo
16363         else
16364           ld_shlibs_CXX=no
16365         fi
16366         ;;
16367
16368       osf3* | osf4* | osf5*)
16369         case $cc_basename in
16370           KCC*)
16371             # Kuck and Associates, Inc. (KAI) C++ Compiler
16372
16373             # KCC will only create a shared library if the output file
16374             # ends with ".so" (or ".sl" for HP-UX), so rename the library
16375             # to its proper name (with version) after linking.
16376             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16377
16378             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16379             hardcode_libdir_separator_CXX=:
16380
16381             # Archives containing C++ object files must be created using
16382             # the KAI C++ compiler.
16383             case $host in
16384               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16385               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16386             esac
16387             ;;
16388           RCC*)
16389             # Rational C++ 2.4.1
16390             # FIXME: insert proper C++ library support
16391             ld_shlibs_CXX=no
16392             ;;
16393           cxx*)
16394             case $host in
16395               osf3*)
16396                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16397                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
16398                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16399                 ;;
16400               *)
16401                 allow_undefined_flag_CXX=' -expect_unresolved \*'
16402                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
16403                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16404                   echo "-hidden">> $lib.exp~
16405                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
16406                   $RM $lib.exp'
16407                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16408                 ;;
16409             esac
16410
16411             hardcode_libdir_separator_CXX=:
16412
16413             # Commands to make compiler produce verbose output that lists
16414             # what "hidden" libraries, object files and flags are used when
16415             # linking a shared library.
16416             #
16417             # There doesn't appear to be a way to prevent this compiler from
16418             # explicitly linking system object files so we need to strip them
16419             # from the output so that they don't get included in the library
16420             # dependencies.
16421             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
16422             ;;
16423           *)
16424             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16425               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16426               case $host in
16427                 osf3*)
16428                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16429                   ;;
16430                 *)
16431                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16432                   ;;
16433               esac
16434
16435               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16436               hardcode_libdir_separator_CXX=:
16437
16438               # Commands to make compiler produce verbose output that lists
16439               # what "hidden" libraries, object files and flags are used when
16440               # linking a shared library.
16441               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16442
16443             else
16444               # FIXME: insert proper C++ library support
16445               ld_shlibs_CXX=no
16446             fi
16447             ;;
16448         esac
16449         ;;
16450
16451       psos*)
16452         # FIXME: insert proper C++ library support
16453         ld_shlibs_CXX=no
16454         ;;
16455
16456       sunos4*)
16457         case $cc_basename in
16458           CC*)
16459             # Sun C++ 4.x
16460             # FIXME: insert proper C++ library support
16461             ld_shlibs_CXX=no
16462             ;;
16463           lcc*)
16464             # Lucid
16465             # FIXME: insert proper C++ library support
16466             ld_shlibs_CXX=no
16467             ;;
16468           *)
16469             # FIXME: insert proper C++ library support
16470             ld_shlibs_CXX=no
16471             ;;
16472         esac
16473         ;;
16474
16475       solaris*)
16476         case $cc_basename in
16477           CC*)
16478             # Sun C++ 4.2, 5.x and Centerline C++
16479             archive_cmds_need_lc_CXX=yes
16480             no_undefined_flag_CXX=' -zdefs'
16481             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16482             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16483               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16484
16485             hardcode_libdir_flag_spec_CXX='-R$libdir'
16486             hardcode_shlibpath_var_CXX=no
16487             case $host_os in
16488               solaris2.[0-5] | solaris2.[0-5].*) ;;
16489               *)
16490                 # The compiler driver will combine and reorder linker options,
16491                 # but understands `-z linker_flag'.
16492                 # Supported since Solaris 2.6 (maybe 2.5.1?)
16493                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16494                 ;;
16495             esac
16496             link_all_deplibs_CXX=yes
16497
16498             output_verbose_link_cmd='echo'
16499
16500             # Archives containing C++ object files must be created using
16501             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16502             # necessary to make sure instantiated templates are included
16503             # in the archive.
16504             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16505             ;;
16506           gcx*)
16507             # Green Hills C++ Compiler
16508             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16509
16510             # The C++ compiler must be used to create the archive.
16511             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16512             ;;
16513           *)
16514             # GNU C++ compiler with Solaris linker
16515             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16516               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16517               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16518                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16519                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16520                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16521
16522                 # Commands to make compiler produce verbose output that lists
16523                 # what "hidden" libraries, object files and flags are used when
16524                 # linking a shared library.
16525                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16526               else
16527                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16528                 # platform.
16529                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16530                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16531                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16532
16533                 # Commands to make compiler produce verbose output that lists
16534                 # what "hidden" libraries, object files and flags are used when
16535                 # linking a shared library.
16536                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16537               fi
16538
16539               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16540               case $host_os in
16541                 solaris2.[0-5] | solaris2.[0-5].*) ;;
16542                 *)
16543                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16544                   ;;
16545               esac
16546             fi
16547             ;;
16548         esac
16549         ;;
16550
16551     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16552       no_undefined_flag_CXX='${wl}-z,text'
16553       archive_cmds_need_lc_CXX=no
16554       hardcode_shlibpath_var_CXX=no
16555       runpath_var='LD_RUN_PATH'
16556
16557       case $cc_basename in
16558         CC*)
16559           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16560           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16561           ;;
16562         *)
16563           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16564           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16565           ;;
16566       esac
16567       ;;
16568
16569       sysv5* | sco3.2v5* | sco5v6*)
16570         # Note: We can NOT use -z defs as we might desire, because we do not
16571         # link with -lc, and that would cause any symbols used from libc to
16572         # always be unresolved, which means just about no library would
16573         # ever link correctly.  If we're not using GNU ld we use -z text
16574         # though, which does catch some bad symbols but isn't as heavy-handed
16575         # as -z defs.
16576         no_undefined_flag_CXX='${wl}-z,text'
16577         allow_undefined_flag_CXX='${wl}-z,nodefs'
16578         archive_cmds_need_lc_CXX=no
16579         hardcode_shlibpath_var_CXX=no
16580         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16581         hardcode_libdir_separator_CXX=':'
16582         link_all_deplibs_CXX=yes
16583         export_dynamic_flag_spec_CXX='${wl}-Bexport'
16584         runpath_var='LD_RUN_PATH'
16585
16586         case $cc_basename in
16587           CC*)
16588             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16589             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16590             ;;
16591           *)
16592             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16593             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16594             ;;
16595         esac
16596       ;;
16597
16598       tandem*)
16599         case $cc_basename in
16600           NCC*)
16601             # NonStop-UX NCC 3.20
16602             # FIXME: insert proper C++ library support
16603             ld_shlibs_CXX=no
16604             ;;
16605           *)
16606             # FIXME: insert proper C++ library support
16607             ld_shlibs_CXX=no
16608             ;;
16609         esac
16610         ;;
16611
16612       vxworks*)
16613         # FIXME: insert proper C++ library support
16614         ld_shlibs_CXX=no
16615         ;;
16616
16617       *)
16618         # FIXME: insert proper C++ library support
16619         ld_shlibs_CXX=no
16620         ;;
16621     esac
16622
16623     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16624 $as_echo "$ld_shlibs_CXX" >&6; }
16625     test "$ld_shlibs_CXX" = no && can_build_shared=no
16626
16627     GCC_CXX="$GXX"
16628     LD_CXX="$LD"
16629
16630     ## CAVEAT EMPTOR:
16631     ## There is no encapsulation within the following macros, do not change
16632     ## the running order or otherwise move them around unless you know exactly
16633     ## what you are doing...
16634     # Dependencies to place before and after the object being linked:
16635 predep_objects_CXX=
16636 postdep_objects_CXX=
16637 predeps_CXX=
16638 postdeps_CXX=
16639 compiler_lib_search_path_CXX=
16640
16641 cat > conftest.$ac_ext <<_LT_EOF
16642 class Foo
16643 {
16644 public:
16645   Foo (void) { a = 0; }
16646 private:
16647   int a;
16648 };
16649 _LT_EOF
16650
16651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16652   (eval $ac_compile) 2>&5
16653   ac_status=$?
16654   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16655   test $ac_status = 0; }; then
16656   # Parse the compiler output and extract the necessary
16657   # objects, libraries and library flags.
16658
16659   # Sentinel used to keep track of whether or not we are before
16660   # the conftest object file.
16661   pre_test_object_deps_done=no
16662
16663   for p in `eval "$output_verbose_link_cmd"`; do
16664     case $p in
16665
16666     -L* | -R* | -l*)
16667        # Some compilers place space between "-{L,R}" and the path.
16668        # Remove the space.
16669        if test $p = "-L" ||
16670           test $p = "-R"; then
16671          prev=$p
16672          continue
16673        else
16674          prev=
16675        fi
16676
16677        if test "$pre_test_object_deps_done" = no; then
16678          case $p in
16679          -L* | -R*)
16680            # Internal compiler library paths should come after those
16681            # provided the user.  The postdeps already come after the
16682            # user supplied libs so there is no need to process them.
16683            if test -z "$compiler_lib_search_path_CXX"; then
16684              compiler_lib_search_path_CXX="${prev}${p}"
16685            else
16686              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16687            fi
16688            ;;
16689          # The "-l" case would never come before the object being
16690          # linked, so don't bother handling this case.
16691          esac
16692        else
16693          if test -z "$postdeps_CXX"; then
16694            postdeps_CXX="${prev}${p}"
16695          else
16696            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16697          fi
16698        fi
16699        ;;
16700
16701     *.$objext)
16702        # This assumes that the test object file only shows up
16703        # once in the compiler output.
16704        if test "$p" = "conftest.$objext"; then
16705          pre_test_object_deps_done=yes
16706          continue
16707        fi
16708
16709        if test "$pre_test_object_deps_done" = no; then
16710          if test -z "$predep_objects_CXX"; then
16711            predep_objects_CXX="$p"
16712          else
16713            predep_objects_CXX="$predep_objects_CXX $p"
16714          fi
16715        else
16716          if test -z "$postdep_objects_CXX"; then
16717            postdep_objects_CXX="$p"
16718          else
16719            postdep_objects_CXX="$postdep_objects_CXX $p"
16720          fi
16721        fi
16722        ;;
16723
16724     *) ;; # Ignore the rest.
16725
16726     esac
16727   done
16728
16729   # Clean up.
16730   rm -f a.out a.exe
16731 else
16732   echo "libtool.m4: error: problem compiling CXX test program"
16733 fi
16734
16735 $RM -f confest.$objext
16736
16737 # PORTME: override above test on systems where it is broken
16738 case $host_os in
16739 interix[3-9]*)
16740   # Interix 3.5 installs completely hosed .la files for C++, so rather than
16741   # hack all around it, let's just trust "g++" to DTRT.
16742   predep_objects_CXX=
16743   postdep_objects_CXX=
16744   postdeps_CXX=
16745   ;;
16746
16747 linux*)
16748   case `$CC -V 2>&1 | sed 5q` in
16749   *Sun\ C*)
16750     # Sun C++ 5.9
16751
16752     # The more standards-conforming stlport4 library is
16753     # incompatible with the Cstd library. Avoid specifying
16754     # it if it's in CXXFLAGS. Ignore libCrun as
16755     # -library=stlport4 depends on it.
16756     case " $CXX $CXXFLAGS " in
16757     *" -library=stlport4 "*)
16758       solaris_use_stlport4=yes
16759       ;;
16760     esac
16761
16762     if test "$solaris_use_stlport4" != yes; then
16763       postdeps_CXX='-library=Cstd -library=Crun'
16764     fi
16765     ;;
16766   esac
16767   ;;
16768
16769 solaris*)
16770   case $cc_basename in
16771   CC*)
16772     # The more standards-conforming stlport4 library is
16773     # incompatible with the Cstd library. Avoid specifying
16774     # it if it's in CXXFLAGS. Ignore libCrun as
16775     # -library=stlport4 depends on it.
16776     case " $CXX $CXXFLAGS " in
16777     *" -library=stlport4 "*)
16778       solaris_use_stlport4=yes
16779       ;;
16780     esac
16781
16782     # Adding this requires a known-good setup of shared libraries for
16783     # Sun compiler versions before 5.6, else PIC objects from an old
16784     # archive will be linked into the output, leading to subtle bugs.
16785     if test "$solaris_use_stlport4" != yes; then
16786       postdeps_CXX='-library=Cstd -library=Crun'
16787     fi
16788     ;;
16789   esac
16790   ;;
16791 esac
16792
16793
16794 case " $postdeps_CXX " in
16795 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16796 esac
16797  compiler_lib_search_dirs_CXX=
16798 if test -n "${compiler_lib_search_path_CXX}"; then
16799  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16800 fi
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832     lt_prog_compiler_wl_CXX=
16833 lt_prog_compiler_pic_CXX=
16834 lt_prog_compiler_static_CXX=
16835
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16837 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16838
16839   # C++ specific cases for pic, static, wl, etc.
16840   if test "$GXX" = yes; then
16841     lt_prog_compiler_wl_CXX='-Wl,'
16842     lt_prog_compiler_static_CXX='-static'
16843
16844     case $host_os in
16845     aix*)
16846       # All AIX code is PIC.
16847       if test "$host_cpu" = ia64; then
16848         # AIX 5 now supports IA64 processor
16849         lt_prog_compiler_static_CXX='-Bstatic'
16850       fi
16851       ;;
16852
16853     amigaos*)
16854       case $host_cpu in
16855       powerpc)
16856             # see comment about AmigaOS4 .so support
16857             lt_prog_compiler_pic_CXX='-fPIC'
16858         ;;
16859       m68k)
16860             # FIXME: we need at least 68020 code to build shared libraries, but
16861             # adding the `-m68020' flag to GCC prevents building anything better,
16862             # like `-m68040'.
16863             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16864         ;;
16865       esac
16866       ;;
16867
16868     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16869       # PIC is the default for these OSes.
16870       ;;
16871     mingw* | cygwin* | os2* | pw32* | cegcc*)
16872       # This hack is so that the source file can tell whether it is being
16873       # built for inclusion in a dll (and should export symbols for example).
16874       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16875       # (--disable-auto-import) libraries
16876       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16877       ;;
16878     darwin* | rhapsody*)
16879       # PIC is the default on this platform
16880       # Common symbols not allowed in MH_DYLIB files
16881       lt_prog_compiler_pic_CXX='-fno-common'
16882       ;;
16883     *djgpp*)
16884       # DJGPP does not support shared libraries at all
16885       lt_prog_compiler_pic_CXX=
16886       ;;
16887     interix[3-9]*)
16888       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16889       # Instead, we relocate shared libraries at runtime.
16890       ;;
16891     sysv4*MP*)
16892       if test -d /usr/nec; then
16893         lt_prog_compiler_pic_CXX=-Kconform_pic
16894       fi
16895       ;;
16896     hpux*)
16897       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16898       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16899       # sets the default TLS model and affects inlining.
16900       case $host_cpu in
16901       hppa*64*)
16902         ;;
16903       *)
16904         lt_prog_compiler_pic_CXX='-fPIC'
16905         ;;
16906       esac
16907       ;;
16908     *qnx* | *nto*)
16909       # QNX uses GNU C++, but need to define -shared option too, otherwise
16910       # it will coredump.
16911       lt_prog_compiler_pic_CXX='-fPIC -shared'
16912       ;;
16913     *)
16914       lt_prog_compiler_pic_CXX='-fPIC'
16915       ;;
16916     esac
16917   else
16918     case $host_os in
16919       aix[4-9]*)
16920         # All AIX code is PIC.
16921         if test "$host_cpu" = ia64; then
16922           # AIX 5 now supports IA64 processor
16923           lt_prog_compiler_static_CXX='-Bstatic'
16924         else
16925           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16926         fi
16927         ;;
16928       chorus*)
16929         case $cc_basename in
16930         cxch68*)
16931           # Green Hills C++ Compiler
16932           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
16933           ;;
16934         esac
16935         ;;
16936       dgux*)
16937         case $cc_basename in
16938           ec++*)
16939             lt_prog_compiler_pic_CXX='-KPIC'
16940             ;;
16941           ghcx*)
16942             # Green Hills C++ Compiler
16943             lt_prog_compiler_pic_CXX='-pic'
16944             ;;
16945           *)
16946             ;;
16947         esac
16948         ;;
16949       freebsd* | dragonfly*)
16950         # FreeBSD uses GNU C++
16951         ;;
16952       hpux9* | hpux10* | hpux11*)
16953         case $cc_basename in
16954           CC*)
16955             lt_prog_compiler_wl_CXX='-Wl,'
16956             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16957             if test "$host_cpu" != ia64; then
16958               lt_prog_compiler_pic_CXX='+Z'
16959             fi
16960             ;;
16961           aCC*)
16962             lt_prog_compiler_wl_CXX='-Wl,'
16963             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16964             case $host_cpu in
16965             hppa*64*|ia64*)
16966               # +Z the default
16967               ;;
16968             *)
16969               lt_prog_compiler_pic_CXX='+Z'
16970               ;;
16971             esac
16972             ;;
16973           *)
16974             ;;
16975         esac
16976         ;;
16977       interix*)
16978         # This is c89, which is MS Visual C++ (no shared libs)
16979         # Anyone wants to do a port?
16980         ;;
16981       irix5* | irix6* | nonstopux*)
16982         case $cc_basename in
16983           CC*)
16984             lt_prog_compiler_wl_CXX='-Wl,'
16985             lt_prog_compiler_static_CXX='-non_shared'
16986             # CC pic flag -KPIC is the default.
16987             ;;
16988           *)
16989             ;;
16990         esac
16991         ;;
16992       linux* | k*bsd*-gnu)
16993         case $cc_basename in
16994           KCC*)
16995             # KAI C++ Compiler
16996             lt_prog_compiler_wl_CXX='--backend -Wl,'
16997             lt_prog_compiler_pic_CXX='-fPIC'
16998             ;;
16999           ecpc* )
17000             # old Intel C++ for x86_64 which still supported -KPIC.
17001             lt_prog_compiler_wl_CXX='-Wl,'
17002             lt_prog_compiler_pic_CXX='-KPIC'
17003             lt_prog_compiler_static_CXX='-static'
17004             ;;
17005           icpc* )
17006             # Intel C++, used to be incompatible with GCC.
17007             # ICC 10 doesn't accept -KPIC any more.
17008             lt_prog_compiler_wl_CXX='-Wl,'
17009             lt_prog_compiler_pic_CXX='-fPIC'
17010             lt_prog_compiler_static_CXX='-static'
17011             ;;
17012           pgCC* | pgcpp*)
17013             # Portland Group C++ compiler
17014             lt_prog_compiler_wl_CXX='-Wl,'
17015             lt_prog_compiler_pic_CXX='-fpic'
17016             lt_prog_compiler_static_CXX='-Bstatic'
17017             ;;
17018           cxx*)
17019             # Compaq C++
17020             # Make sure the PIC flag is empty.  It appears that all Alpha
17021             # Linux and Compaq Tru64 Unix objects are PIC.
17022             lt_prog_compiler_pic_CXX=
17023             lt_prog_compiler_static_CXX='-non_shared'
17024             ;;
17025           xlc* | xlC*)
17026             # IBM XL 8.0 on PPC
17027             lt_prog_compiler_wl_CXX='-Wl,'
17028             lt_prog_compiler_pic_CXX='-qpic'
17029             lt_prog_compiler_static_CXX='-qstaticlink'
17030             ;;
17031           *)
17032             case `$CC -V 2>&1 | sed 5q` in
17033             *Sun\ C*)
17034               # Sun C++ 5.9
17035               lt_prog_compiler_pic_CXX='-KPIC'
17036               lt_prog_compiler_static_CXX='-Bstatic'
17037               lt_prog_compiler_wl_CXX='-Qoption ld '
17038               ;;
17039             esac
17040             ;;
17041         esac
17042         ;;
17043       lynxos*)
17044         ;;
17045       m88k*)
17046         ;;
17047       mvs*)
17048         case $cc_basename in
17049           cxx*)
17050             lt_prog_compiler_pic_CXX='-W c,exportall'
17051             ;;
17052           *)
17053             ;;
17054         esac
17055         ;;
17056       netbsd*)
17057         ;;
17058       *qnx* | *nto*)
17059         # QNX uses GNU C++, but need to define -shared option too, otherwise
17060         # it will coredump.
17061         lt_prog_compiler_pic_CXX='-fPIC -shared'
17062         ;;
17063       osf3* | osf4* | osf5*)
17064         case $cc_basename in
17065           KCC*)
17066             lt_prog_compiler_wl_CXX='--backend -Wl,'
17067             ;;
17068           RCC*)
17069             # Rational C++ 2.4.1
17070             lt_prog_compiler_pic_CXX='-pic'
17071             ;;
17072           cxx*)
17073             # Digital/Compaq C++
17074             lt_prog_compiler_wl_CXX='-Wl,'
17075             # Make sure the PIC flag is empty.  It appears that all Alpha
17076             # Linux and Compaq Tru64 Unix objects are PIC.
17077             lt_prog_compiler_pic_CXX=
17078             lt_prog_compiler_static_CXX='-non_shared'
17079             ;;
17080           *)
17081             ;;
17082         esac
17083         ;;
17084       psos*)
17085         ;;
17086       solaris*)
17087         case $cc_basename in
17088           CC*)
17089             # Sun C++ 4.2, 5.x and Centerline C++
17090             lt_prog_compiler_pic_CXX='-KPIC'
17091             lt_prog_compiler_static_CXX='-Bstatic'
17092             lt_prog_compiler_wl_CXX='-Qoption ld '
17093             ;;
17094           gcx*)
17095             # Green Hills C++ Compiler
17096             lt_prog_compiler_pic_CXX='-PIC'
17097             ;;
17098           *)
17099             ;;
17100         esac
17101         ;;
17102       sunos4*)
17103         case $cc_basename in
17104           CC*)
17105             # Sun C++ 4.x
17106             lt_prog_compiler_pic_CXX='-pic'
17107             lt_prog_compiler_static_CXX='-Bstatic'
17108             ;;
17109           lcc*)
17110             # Lucid
17111             lt_prog_compiler_pic_CXX='-pic'
17112             ;;
17113           *)
17114             ;;
17115         esac
17116         ;;
17117       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17118         case $cc_basename in
17119           CC*)
17120             lt_prog_compiler_wl_CXX='-Wl,'
17121             lt_prog_compiler_pic_CXX='-KPIC'
17122             lt_prog_compiler_static_CXX='-Bstatic'
17123             ;;
17124         esac
17125         ;;
17126       tandem*)
17127         case $cc_basename in
17128           NCC*)
17129             # NonStop-UX NCC 3.20
17130             lt_prog_compiler_pic_CXX='-KPIC'
17131             ;;
17132           *)
17133             ;;
17134         esac
17135         ;;
17136       vxworks*)
17137         ;;
17138       *)
17139         lt_prog_compiler_can_build_shared_CXX=no
17140         ;;
17141     esac
17142   fi
17143
17144 case $host_os in
17145   # For platforms which do not support PIC, -DPIC is meaningless:
17146   *djgpp*)
17147     lt_prog_compiler_pic_CXX=
17148     ;;
17149   *)
17150     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17151     ;;
17152 esac
17153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
17154 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17155
17156
17157
17158 #
17159 # Check to make sure the PIC flag actually works.
17160 #
17161 if test -n "$lt_prog_compiler_pic_CXX"; then
17162   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17163 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17164 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
17165   $as_echo_n "(cached) " >&6
17166 else
17167   lt_cv_prog_compiler_pic_works_CXX=no
17168    ac_outfile=conftest.$ac_objext
17169    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17170    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17171    # Insert the option either (1) after the last *FLAGS variable, or
17172    # (2) before a word containing "conftest.", or (3) at the end.
17173    # Note that $ac_compile itself does not contain backslashes and begins
17174    # with a dollar sign (not a hyphen), so the echo should work correctly.
17175    # The option is referenced via a variable to avoid confusing sed.
17176    lt_compile=`echo "$ac_compile" | $SED \
17177    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17178    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17179    -e 's:$: $lt_compiler_flag:'`
17180    (eval echo "\"\$as_me:17180: $lt_compile\"" >&5)
17181    (eval "$lt_compile" 2>conftest.err)
17182    ac_status=$?
17183    cat conftest.err >&5
17184    echo "$as_me:17184: \$? = $ac_status" >&5
17185    if (exit $ac_status) && test -s "$ac_outfile"; then
17186      # The compiler can only warn and ignore the option if not recognized
17187      # So say no if there are warnings other than the usual output.
17188      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17189      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17190      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17191        lt_cv_prog_compiler_pic_works_CXX=yes
17192      fi
17193    fi
17194    $RM conftest*
17195
17196 fi
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17198 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17199
17200 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17201     case $lt_prog_compiler_pic_CXX in
17202      "" | " "*) ;;
17203      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17204      esac
17205 else
17206     lt_prog_compiler_pic_CXX=
17207      lt_prog_compiler_can_build_shared_CXX=no
17208 fi
17209
17210 fi
17211
17212
17213
17214 #
17215 # Check to make sure the static flag actually works.
17216 #
17217 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17219 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17220 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
17221   $as_echo_n "(cached) " >&6
17222 else
17223   lt_cv_prog_compiler_static_works_CXX=no
17224    save_LDFLAGS="$LDFLAGS"
17225    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17226    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17227    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17228      # The linker can only warn and ignore the option if not recognized
17229      # So say no if there are warnings
17230      if test -s conftest.err; then
17231        # Append any errors to the config.log.
17232        cat conftest.err 1>&5
17233        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17234        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17235        if diff conftest.exp conftest.er2 >/dev/null; then
17236          lt_cv_prog_compiler_static_works_CXX=yes
17237        fi
17238      else
17239        lt_cv_prog_compiler_static_works_CXX=yes
17240      fi
17241    fi
17242    $RM -r conftest*
17243    LDFLAGS="$save_LDFLAGS"
17244
17245 fi
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17247 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17248
17249 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17250     :
17251 else
17252     lt_prog_compiler_static_CXX=
17253 fi
17254
17255
17256
17257
17258     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17259 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17260 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17261   $as_echo_n "(cached) " >&6
17262 else
17263   lt_cv_prog_compiler_c_o_CXX=no
17264    $RM -r conftest 2>/dev/null
17265    mkdir conftest
17266    cd conftest
17267    mkdir out
17268    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17269
17270    lt_compiler_flag="-o out/conftest2.$ac_objext"
17271    # Insert the option either (1) after the last *FLAGS variable, or
17272    # (2) before a word containing "conftest.", or (3) at the end.
17273    # Note that $ac_compile itself does not contain backslashes and begins
17274    # with a dollar sign (not a hyphen), so the echo should work correctly.
17275    lt_compile=`echo "$ac_compile" | $SED \
17276    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17277    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17278    -e 's:$: $lt_compiler_flag:'`
17279    (eval echo "\"\$as_me:17279: $lt_compile\"" >&5)
17280    (eval "$lt_compile" 2>out/conftest.err)
17281    ac_status=$?
17282    cat out/conftest.err >&5
17283    echo "$as_me:17283: \$? = $ac_status" >&5
17284    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17285    then
17286      # The compiler can only warn and ignore the option if not recognized
17287      # So say no if there are warnings
17288      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17289      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17290      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17291        lt_cv_prog_compiler_c_o_CXX=yes
17292      fi
17293    fi
17294    chmod u+w . 2>&5
17295    $RM conftest*
17296    # SGI C++ compiler will create directory out/ii_files/ for
17297    # template instantiation
17298    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17299    $RM out/* && rmdir out
17300    cd ..
17301    $RM -r conftest
17302    $RM conftest*
17303
17304 fi
17305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17306 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17307
17308
17309
17310     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17311 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17312 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17313   $as_echo_n "(cached) " >&6
17314 else
17315   lt_cv_prog_compiler_c_o_CXX=no
17316    $RM -r conftest 2>/dev/null
17317    mkdir conftest
17318    cd conftest
17319    mkdir out
17320    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17321
17322    lt_compiler_flag="-o out/conftest2.$ac_objext"
17323    # Insert the option either (1) after the last *FLAGS variable, or
17324    # (2) before a word containing "conftest.", or (3) at the end.
17325    # Note that $ac_compile itself does not contain backslashes and begins
17326    # with a dollar sign (not a hyphen), so the echo should work correctly.
17327    lt_compile=`echo "$ac_compile" | $SED \
17328    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17329    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17330    -e 's:$: $lt_compiler_flag:'`
17331    (eval echo "\"\$as_me:17331: $lt_compile\"" >&5)
17332    (eval "$lt_compile" 2>out/conftest.err)
17333    ac_status=$?
17334    cat out/conftest.err >&5
17335    echo "$as_me:17335: \$? = $ac_status" >&5
17336    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17337    then
17338      # The compiler can only warn and ignore the option if not recognized
17339      # So say no if there are warnings
17340      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17341      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17342      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17343        lt_cv_prog_compiler_c_o_CXX=yes
17344      fi
17345    fi
17346    chmod u+w . 2>&5
17347    $RM conftest*
17348    # SGI C++ compiler will create directory out/ii_files/ for
17349    # template instantiation
17350    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17351    $RM out/* && rmdir out
17352    cd ..
17353    $RM -r conftest
17354    $RM conftest*
17355
17356 fi
17357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17358 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17359
17360
17361
17362
17363 hard_links="nottested"
17364 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17365   # do not overwrite the value of need_locks provided by the user
17366   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17367 $as_echo_n "checking if we can lock with hard links... " >&6; }
17368   hard_links=yes
17369   $RM conftest*
17370   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17371   touch conftest.a
17372   ln conftest.a conftest.b 2>&5 || hard_links=no
17373   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17375 $as_echo "$hard_links" >&6; }
17376   if test "$hard_links" = no; then
17377     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17378 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17379     need_locks=warn
17380   fi
17381 else
17382   need_locks=no
17383 fi
17384
17385
17386
17387     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17388 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17389
17390   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17391   case $host_os in
17392   aix[4-9]*)
17393     # If we're using GNU nm, then we don't want the "-C" option.
17394     # -C means demangle to AIX nm, but means don't demangle with GNU nm
17395     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17396       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17397     else
17398       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17399     fi
17400     ;;
17401   pw32*)
17402     export_symbols_cmds_CXX="$ltdll_cmds"
17403   ;;
17404   cygwin* | mingw* | cegcc*)
17405     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
17406   ;;
17407   *)
17408     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17409   ;;
17410   esac
17411   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17412
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17414 $as_echo "$ld_shlibs_CXX" >&6; }
17415 test "$ld_shlibs_CXX" = no && can_build_shared=no
17416
17417 with_gnu_ld_CXX=$with_gnu_ld
17418
17419
17420
17421
17422
17423
17424 #
17425 # Do we need to explicitly link libc?
17426 #
17427 case "x$archive_cmds_need_lc_CXX" in
17428 x|xyes)
17429   # Assume -lc should be added
17430   archive_cmds_need_lc_CXX=yes
17431
17432   if test "$enable_shared" = yes && test "$GCC" = yes; then
17433     case $archive_cmds_CXX in
17434     *'~'*)
17435       # FIXME: we may have to deal with multi-command sequences.
17436       ;;
17437     '$CC '*)
17438       # Test whether the compiler implicitly links with -lc since on some
17439       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17440       # to ld, don't add -lc before -lgcc.
17441       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17442 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17443       $RM conftest*
17444       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17445
17446       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17447   (eval $ac_compile) 2>&5
17448   ac_status=$?
17449   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17450   test $ac_status = 0; } 2>conftest.err; then
17451         soname=conftest
17452         lib=conftest
17453         libobjs=conftest.$ac_objext
17454         deplibs=
17455         wl=$lt_prog_compiler_wl_CXX
17456         pic_flag=$lt_prog_compiler_pic_CXX
17457         compiler_flags=-v
17458         linker_flags=-v
17459         verstring=
17460         output_objdir=.
17461         libname=conftest
17462         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17463         allow_undefined_flag_CXX=
17464         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17465   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17466   ac_status=$?
17467   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17468   test $ac_status = 0; }
17469         then
17470           archive_cmds_need_lc_CXX=no
17471         else
17472           archive_cmds_need_lc_CXX=yes
17473         fi
17474         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17475       else
17476         cat conftest.err 1>&5
17477       fi
17478       $RM conftest*
17479       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
17480 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
17481       ;;
17482     esac
17483   fi
17484   ;;
17485 esac
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17551 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17552
17553 library_names_spec=
17554 libname_spec='lib$name'
17555 soname_spec=
17556 shrext_cmds=".so"
17557 postinstall_cmds=
17558 postuninstall_cmds=
17559 finish_cmds=
17560 finish_eval=
17561 shlibpath_var=
17562 shlibpath_overrides_runpath=unknown
17563 version_type=none
17564 dynamic_linker="$host_os ld.so"
17565 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17566 need_lib_prefix=unknown
17567 hardcode_into_libs=no
17568
17569 # when you set need_version to no, make sure it does not cause -set_version
17570 # flags to be left without arguments
17571 need_version=unknown
17572
17573 case $host_os in
17574 aix3*)
17575   version_type=linux
17576   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17577   shlibpath_var=LIBPATH
17578
17579   # AIX 3 has no versioning support, so we append a major version to the name.
17580   soname_spec='${libname}${release}${shared_ext}$major'
17581   ;;
17582
17583 aix[4-9]*)
17584   version_type=linux
17585   need_lib_prefix=no
17586   need_version=no
17587   hardcode_into_libs=yes
17588   if test "$host_cpu" = ia64; then
17589     # AIX 5 supports IA64
17590     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17591     shlibpath_var=LD_LIBRARY_PATH
17592   else
17593     # With GCC up to 2.95.x, collect2 would create an import file
17594     # for dependence libraries.  The import file would start with
17595     # the line `#! .'.  This would cause the generated library to
17596     # depend on `.', always an invalid library.  This was fixed in
17597     # development snapshots of GCC prior to 3.0.
17598     case $host_os in
17599       aix4 | aix4.[01] | aix4.[01].*)
17600       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17601            echo ' yes '
17602            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17603         :
17604       else
17605         can_build_shared=no
17606       fi
17607       ;;
17608     esac
17609     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17610     # soname into executable. Probably we can add versioning support to
17611     # collect2, so additional links can be useful in future.
17612     if test "$aix_use_runtimelinking" = yes; then
17613       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17614       # instead of lib<name>.a to let people know that these are not
17615       # typical AIX shared libraries.
17616       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17617     else
17618       # We preserve .a as extension for shared libraries through AIX4.2
17619       # and later when we are not doing run time linking.
17620       library_names_spec='${libname}${release}.a $libname.a'
17621       soname_spec='${libname}${release}${shared_ext}$major'
17622     fi
17623     shlibpath_var=LIBPATH
17624   fi
17625   ;;
17626
17627 amigaos*)
17628   case $host_cpu in
17629   powerpc)
17630     # Since July 2007 AmigaOS4 officially supports .so libraries.
17631     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17632     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17633     ;;
17634   m68k)
17635     library_names_spec='$libname.ixlibrary $libname.a'
17636     # Create ${libname}_ixlibrary.a entries in /sys/libs.
17637     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17638     ;;
17639   esac
17640   ;;
17641
17642 beos*)
17643   library_names_spec='${libname}${shared_ext}'
17644   dynamic_linker="$host_os ld.so"
17645   shlibpath_var=LIBRARY_PATH
17646   ;;
17647
17648 bsdi[45]*)
17649   version_type=linux
17650   need_version=no
17651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17652   soname_spec='${libname}${release}${shared_ext}$major'
17653   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17654   shlibpath_var=LD_LIBRARY_PATH
17655   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17656   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17657   # the default ld.so.conf also contains /usr/contrib/lib and
17658   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17659   # libtool to hard-code these into programs
17660   ;;
17661
17662 cygwin* | mingw* | pw32* | cegcc*)
17663   version_type=windows
17664   shrext_cmds=".dll"
17665   need_version=no
17666   need_lib_prefix=no
17667
17668   case $GCC,$host_os in
17669   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17670     library_names_spec='$libname.dll.a'
17671     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17672     postinstall_cmds='base_file=`basename \${file}`~
17673       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17674       dldir=$destdir/`dirname \$dlpath`~
17675       test -d \$dldir || mkdir -p \$dldir~
17676       $install_prog $dir/$dlname \$dldir/$dlname~
17677       chmod a+x \$dldir/$dlname~
17678       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17679         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17680       fi'
17681     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17682       dlpath=$dir/\$dldll~
17683        $RM \$dlpath'
17684     shlibpath_overrides_runpath=yes
17685
17686     case $host_os in
17687     cygwin*)
17688       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17689       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17690       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17691       ;;
17692     mingw* | cegcc*)
17693       # MinGW DLLs use traditional 'lib' prefix
17694       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17695       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17696       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17697         # It is most probably a Windows format PATH printed by
17698         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17699         # path with ; separators, and with drive letters. We can handle the
17700         # drive letters (cygwin fileutils understands them), so leave them,
17701         # especially as we might pass files found there to a mingw objdump,
17702         # which wouldn't understand a cygwinified path. Ahh.
17703         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17704       else
17705         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17706       fi
17707       ;;
17708     pw32*)
17709       # pw32 DLLs use 'pw' prefix rather than 'lib'
17710       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17711       ;;
17712     esac
17713     ;;
17714
17715   *)
17716     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17717     ;;
17718   esac
17719   dynamic_linker='Win32 ld.exe'
17720   # FIXME: first we should search . and the directory the executable is in
17721   shlibpath_var=PATH
17722   ;;
17723
17724 darwin* | rhapsody*)
17725   dynamic_linker="$host_os dyld"
17726   version_type=darwin
17727   need_lib_prefix=no
17728   need_version=no
17729   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17730   soname_spec='${libname}${release}${major}$shared_ext'
17731   shlibpath_overrides_runpath=yes
17732   shlibpath_var=DYLD_LIBRARY_PATH
17733   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17734
17735   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17736   ;;
17737
17738 dgux*)
17739   version_type=linux
17740   need_lib_prefix=no
17741   need_version=no
17742   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17743   soname_spec='${libname}${release}${shared_ext}$major'
17744   shlibpath_var=LD_LIBRARY_PATH
17745   ;;
17746
17747 freebsd1*)
17748   dynamic_linker=no
17749   ;;
17750
17751 freebsd* | dragonfly*)
17752   # DragonFly does not have aout.  When/if they implement a new
17753   # versioning mechanism, adjust this.
17754   if test -x /usr/bin/objformat; then
17755     objformat=`/usr/bin/objformat`
17756   else
17757     case $host_os in
17758     freebsd[123]*) objformat=aout ;;
17759     *) objformat=elf ;;
17760     esac
17761   fi
17762   version_type=freebsd-$objformat
17763   case $version_type in
17764     freebsd-elf*)
17765       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17766       need_version=no
17767       need_lib_prefix=no
17768       ;;
17769     freebsd-*)
17770       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17771       need_version=yes
17772       ;;
17773   esac
17774   shlibpath_var=LD_LIBRARY_PATH
17775   case $host_os in
17776   freebsd2*)
17777     shlibpath_overrides_runpath=yes
17778     ;;
17779   freebsd3.[01]* | freebsdelf3.[01]*)
17780     shlibpath_overrides_runpath=yes
17781     hardcode_into_libs=yes
17782     ;;
17783   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17784   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17785     shlibpath_overrides_runpath=no
17786     hardcode_into_libs=yes
17787     ;;
17788   *) # from 4.6 on, and DragonFly
17789     shlibpath_overrides_runpath=yes
17790     hardcode_into_libs=yes
17791     ;;
17792   esac
17793   ;;
17794
17795 gnu*)
17796   version_type=linux
17797   need_lib_prefix=no
17798   need_version=no
17799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17800   soname_spec='${libname}${release}${shared_ext}$major'
17801   shlibpath_var=LD_LIBRARY_PATH
17802   hardcode_into_libs=yes
17803   ;;
17804
17805 hpux9* | hpux10* | hpux11*)
17806   # Give a soname corresponding to the major version so that dld.sl refuses to
17807   # link against other versions.
17808   version_type=sunos
17809   need_lib_prefix=no
17810   need_version=no
17811   case $host_cpu in
17812   ia64*)
17813     shrext_cmds='.so'
17814     hardcode_into_libs=yes
17815     dynamic_linker="$host_os dld.so"
17816     shlibpath_var=LD_LIBRARY_PATH
17817     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17818     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17819     soname_spec='${libname}${release}${shared_ext}$major'
17820     if test "X$HPUX_IA64_MODE" = X32; then
17821       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17822     else
17823       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17824     fi
17825     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17826     ;;
17827   hppa*64*)
17828     shrext_cmds='.sl'
17829     hardcode_into_libs=yes
17830     dynamic_linker="$host_os dld.sl"
17831     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17832     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17833     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17834     soname_spec='${libname}${release}${shared_ext}$major'
17835     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17836     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17837     ;;
17838   *)
17839     shrext_cmds='.sl'
17840     dynamic_linker="$host_os dld.sl"
17841     shlibpath_var=SHLIB_PATH
17842     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17843     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17844     soname_spec='${libname}${release}${shared_ext}$major'
17845     ;;
17846   esac
17847   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17848   postinstall_cmds='chmod 555 $lib'
17849   ;;
17850
17851 interix[3-9]*)
17852   version_type=linux
17853   need_lib_prefix=no
17854   need_version=no
17855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17856   soname_spec='${libname}${release}${shared_ext}$major'
17857   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17858   shlibpath_var=LD_LIBRARY_PATH
17859   shlibpath_overrides_runpath=no
17860   hardcode_into_libs=yes
17861   ;;
17862
17863 irix5* | irix6* | nonstopux*)
17864   case $host_os in
17865     nonstopux*) version_type=nonstopux ;;
17866     *)
17867         if test "$lt_cv_prog_gnu_ld" = yes; then
17868                 version_type=linux
17869         else
17870                 version_type=irix
17871         fi ;;
17872   esac
17873   need_lib_prefix=no
17874   need_version=no
17875   soname_spec='${libname}${release}${shared_ext}$major'
17876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17877   case $host_os in
17878   irix5* | nonstopux*)
17879     libsuff= shlibsuff=
17880     ;;
17881   *)
17882     case $LD in # libtool.m4 will add one of these switches to LD
17883     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17884       libsuff= shlibsuff= libmagic=32-bit;;
17885     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17886       libsuff=32 shlibsuff=N32 libmagic=N32;;
17887     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17888       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17889     *) libsuff= shlibsuff= libmagic=never-match;;
17890     esac
17891     ;;
17892   esac
17893   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17894   shlibpath_overrides_runpath=no
17895   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17896   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17897   hardcode_into_libs=yes
17898   ;;
17899
17900 # No shared lib support for Linux oldld, aout, or coff.
17901 linux*oldld* | linux*aout* | linux*coff*)
17902   dynamic_linker=no
17903   ;;
17904
17905 # This must be Linux ELF.
17906 linux* | k*bsd*-gnu)
17907   version_type=linux
17908   need_lib_prefix=no
17909   need_version=no
17910   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17911   soname_spec='${libname}${release}${shared_ext}$major'
17912   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17913   shlibpath_var=LD_LIBRARY_PATH
17914   shlibpath_overrides_runpath=no
17915   # Some binutils ld are patched to set DT_RUNPATH
17916   save_LDFLAGS=$LDFLAGS
17917   save_libdir=$libdir
17918   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17919        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17921 /* end confdefs.h.  */
17922
17923 int
17924 main ()
17925 {
17926
17927   ;
17928   return 0;
17929 }
17930 _ACEOF
17931 if ac_fn_cxx_try_link "$LINENO"; then :
17932   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17933   shlibpath_overrides_runpath=yes
17934 fi
17935 fi
17936 rm -f core conftest.err conftest.$ac_objext \
17937     conftest$ac_exeext conftest.$ac_ext
17938   LDFLAGS=$save_LDFLAGS
17939   libdir=$save_libdir
17940
17941   # This implies no fast_install, which is unacceptable.
17942   # Some rework will be needed to allow for fast_install
17943   # before this can be enabled.
17944   hardcode_into_libs=yes
17945
17946   # Append ld.so.conf contents to the search path
17947   if test -f /etc/ld.so.conf; then
17948     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17949     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17950   fi
17951
17952   # We used to test for /lib/ld.so.1 and disable shared libraries on
17953   # powerpc, because MkLinux only supported shared libraries with the
17954   # GNU dynamic linker.  Since this was broken with cross compilers,
17955   # most powerpc-linux boxes support dynamic linking these days and
17956   # people can always --disable-shared, the test was removed, and we
17957   # assume the GNU/Linux dynamic linker is in use.
17958   dynamic_linker='GNU/Linux ld.so'
17959   ;;
17960
17961 netbsd*)
17962   version_type=sunos
17963   need_lib_prefix=no
17964   need_version=no
17965   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17966     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17967     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17968     dynamic_linker='NetBSD (a.out) ld.so'
17969   else
17970     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17971     soname_spec='${libname}${release}${shared_ext}$major'
17972     dynamic_linker='NetBSD ld.elf_so'
17973   fi
17974   shlibpath_var=LD_LIBRARY_PATH
17975   shlibpath_overrides_runpath=yes
17976   hardcode_into_libs=yes
17977   ;;
17978
17979 newsos6)
17980   version_type=linux
17981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17982   shlibpath_var=LD_LIBRARY_PATH
17983   shlibpath_overrides_runpath=yes
17984   ;;
17985
17986 *nto* | *qnx*)
17987   version_type=qnx
17988   need_lib_prefix=no
17989   need_version=no
17990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17991   soname_spec='${libname}${release}${shared_ext}$major'
17992   shlibpath_var=LD_LIBRARY_PATH
17993   shlibpath_overrides_runpath=no
17994   hardcode_into_libs=yes
17995   dynamic_linker='ldqnx.so'
17996   ;;
17997
17998 openbsd*)
17999   version_type=sunos
18000   sys_lib_dlsearch_path_spec="/usr/lib"
18001   need_lib_prefix=no
18002   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18003   case $host_os in
18004     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
18005     *)                          need_version=no  ;;
18006   esac
18007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18008   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18009   shlibpath_var=LD_LIBRARY_PATH
18010   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18011     case $host_os in
18012       openbsd2.[89] | openbsd2.[89].*)
18013         shlibpath_overrides_runpath=no
18014         ;;
18015       *)
18016         shlibpath_overrides_runpath=yes
18017         ;;
18018       esac
18019   else
18020     shlibpath_overrides_runpath=yes
18021   fi
18022   ;;
18023
18024 os2*)
18025   libname_spec='$name'
18026   shrext_cmds=".dll"
18027   need_lib_prefix=no
18028   library_names_spec='$libname${shared_ext} $libname.a'
18029   dynamic_linker='OS/2 ld.exe'
18030   shlibpath_var=LIBPATH
18031   ;;
18032
18033 osf3* | osf4* | osf5*)
18034   version_type=osf
18035   need_lib_prefix=no
18036   need_version=no
18037   soname_spec='${libname}${release}${shared_ext}$major'
18038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18039   shlibpath_var=LD_LIBRARY_PATH
18040   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18041   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18042   ;;
18043
18044 rdos*)
18045   dynamic_linker=no
18046   ;;
18047
18048 solaris*)
18049   version_type=linux
18050   need_lib_prefix=no
18051   need_version=no
18052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18053   soname_spec='${libname}${release}${shared_ext}$major'
18054   shlibpath_var=LD_LIBRARY_PATH
18055   shlibpath_overrides_runpath=yes
18056   hardcode_into_libs=yes
18057   # ldd complains unless libraries are executable
18058   postinstall_cmds='chmod +x $lib'
18059   ;;
18060
18061 sunos4*)
18062   version_type=sunos
18063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18064   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18065   shlibpath_var=LD_LIBRARY_PATH
18066   shlibpath_overrides_runpath=yes
18067   if test "$with_gnu_ld" = yes; then
18068     need_lib_prefix=no
18069   fi
18070   need_version=yes
18071   ;;
18072
18073 sysv4 | sysv4.3*)
18074   version_type=linux
18075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18076   soname_spec='${libname}${release}${shared_ext}$major'
18077   shlibpath_var=LD_LIBRARY_PATH
18078   case $host_vendor in
18079     sni)
18080       shlibpath_overrides_runpath=no
18081       need_lib_prefix=no
18082       runpath_var=LD_RUN_PATH
18083       ;;
18084     siemens)
18085       need_lib_prefix=no
18086       ;;
18087     motorola)
18088       need_lib_prefix=no
18089       need_version=no
18090       shlibpath_overrides_runpath=no
18091       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18092       ;;
18093   esac
18094   ;;
18095
18096 sysv4*MP*)
18097   if test -d /usr/nec ;then
18098     version_type=linux
18099     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18100     soname_spec='$libname${shared_ext}.$major'
18101     shlibpath_var=LD_LIBRARY_PATH
18102   fi
18103   ;;
18104
18105 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18106   version_type=freebsd-elf
18107   need_lib_prefix=no
18108   need_version=no
18109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18110   soname_spec='${libname}${release}${shared_ext}$major'
18111   shlibpath_var=LD_LIBRARY_PATH
18112   shlibpath_overrides_runpath=yes
18113   hardcode_into_libs=yes
18114   if test "$with_gnu_ld" = yes; then
18115     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18116   else
18117     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18118     case $host_os in
18119       sco3.2v5*)
18120         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18121         ;;
18122     esac
18123   fi
18124   sys_lib_dlsearch_path_spec='/usr/lib'
18125   ;;
18126
18127 tpf*)
18128   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18129   version_type=linux
18130   need_lib_prefix=no
18131   need_version=no
18132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18133   shlibpath_var=LD_LIBRARY_PATH
18134   shlibpath_overrides_runpath=no
18135   hardcode_into_libs=yes
18136   ;;
18137
18138 uts4*)
18139   version_type=linux
18140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18141   soname_spec='${libname}${release}${shared_ext}$major'
18142   shlibpath_var=LD_LIBRARY_PATH
18143   ;;
18144
18145 *)
18146   dynamic_linker=no
18147   ;;
18148 esac
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18150 $as_echo "$dynamic_linker" >&6; }
18151 test "$dynamic_linker" = no && can_build_shared=no
18152
18153 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18154 if test "$GCC" = yes; then
18155   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18156 fi
18157
18158 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18159   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18160 fi
18161 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18162   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18163 fi
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18201 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18202 hardcode_action_CXX=
18203 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18204    test -n "$runpath_var_CXX" ||
18205    test "X$hardcode_automatic_CXX" = "Xyes" ; then
18206
18207   # We can hardcode non-existent directories.
18208   if test "$hardcode_direct_CXX" != no &&
18209      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18210      # have to relink, otherwise we might link with an installed library
18211      # when we should be linking with a yet-to-be-installed one
18212      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18213      test "$hardcode_minus_L_CXX" != no; then
18214     # Linking always hardcodes the temporary library directory.
18215     hardcode_action_CXX=relink
18216   else
18217     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18218     hardcode_action_CXX=immediate
18219   fi
18220 else
18221   # We cannot hardcode anything, or else we can only hardcode existing
18222   # directories.
18223   hardcode_action_CXX=unsupported
18224 fi
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18226 $as_echo "$hardcode_action_CXX" >&6; }
18227
18228 if test "$hardcode_action_CXX" = relink ||
18229    test "$inherit_rpath_CXX" = yes; then
18230   # Fast installation is not supported
18231   enable_fast_install=no
18232 elif test "$shlibpath_overrides_runpath" = yes ||
18233      test "$enable_shared" = no; then
18234   # Fast installation is not necessary
18235   enable_fast_install=needless
18236 fi
18237
18238
18239
18240
18241
18242
18243
18244   fi # test -n "$compiler"
18245
18246   CC=$lt_save_CC
18247   LDCXX=$LD
18248   LD=$lt_save_LD
18249   GCC=$lt_save_GCC
18250   with_gnu_ld=$lt_save_with_gnu_ld
18251   lt_cv_path_LDCXX=$lt_cv_path_LD
18252   lt_cv_path_LD=$lt_save_path_LD
18253   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18254   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18255 fi # test "$_lt_caught_CXX_error" != yes
18256
18257 ac_ext=c
18258 ac_cpp='$CPP $CPPFLAGS'
18259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275         ac_config_commands="$ac_config_commands libtool"
18276
18277
18278
18279
18280 # Only expand once:
18281
18282
18283
18284
18285  if test "x$glib" = "xyes"; then
18286   EVENT_GLIB_TRUE=
18287   EVENT_GLIB_FALSE='#'
18288 else
18289   EVENT_GLIB_TRUE='#'
18290   EVENT_GLIB_FALSE=
18291 fi
18292
18293  if test "x$glib" = "xno"; then
18294   SUPPORT_GLIB_TRUE=
18295   SUPPORT_GLIB_FALSE='#'
18296 else
18297   SUPPORT_GLIB_TRUE='#'
18298   SUPPORT_GLIB_FALSE=
18299 fi
18300
18301  if test "x$glib" = "xno"; then
18302   SUPPORT_EZXML_TRUE=
18303   SUPPORT_EZXML_FALSE='#'
18304 else
18305   SUPPORT_EZXML_TRUE='#'
18306   SUPPORT_EZXML_FALSE=
18307 fi
18308
18309
18310 ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
18311 if test "x$ac_cv_header_sys_time_h" = xyes; then :
18312
18313 $as_echo "#define HAVE_SYS_TIME_H 1" >>confdefs.h
18314
18315
18316 fi
18317
18318
18319
18320 if test "x${ZLIB_CFLAGS}" = "x" -a "x${ZLIB_LIBS}" = "x"; then
18321 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
18322 if test "x$ac_cv_header_zlib_h" = xyes; then :
18323
18324 $as_echo "#define HAVE_ZLIB /**/" >>confdefs.h
18325
18326         ZLIB_LIBS="-lz"
18327         zlib=yes
18328 else
18329   ZLIB_CFLAGS="-I\$(top_srcdir)/navit/support/zlib"
18330         ZLIB_LIBS="-L\$(top_builddir)/navit/support/zlib -lsupport_zlib"
18331         zlib=no
18332
18333 fi
18334
18335
18336 else
18337         zlib=yes
18338 fi
18339  if test "x$zlib" = "xno"; then
18340   SUPPORT_ZLIB_TRUE=
18341   SUPPORT_ZLIB_FALSE='#'
18342 else
18343   SUPPORT_ZLIB_TRUE='#'
18344   SUPPORT_ZLIB_FALSE=
18345 fi
18346
18347
18348
18349
18350 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
18351 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
18352
18353 $as_echo "#define HAVE_SOCKET /**/" >>confdefs.h
18354
18355 fi
18356
18357
18358 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
18359 if test "x$ac_cv_header_winsock2_h" = xyes; then :
18360
18361 $as_echo "#define HAVE_WINSOCK /**/" >>confdefs.h
18362
18363 fi
18364
18365
18366
18367 # gtk
18368
18369 pkg_failed=no
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK2" >&5
18371 $as_echo_n "checking for GTK2... " >&6; }
18372
18373 if test -n "$GTK2_CFLAGS"; then
18374     pkg_cv_GTK2_CFLAGS="$GTK2_CFLAGS"
18375  elif test -n "$PKG_CONFIG"; then
18376     if test -n "$PKG_CONFIG" && \
18377     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
18378   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
18379   ac_status=$?
18380   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18381   test $ac_status = 0; }; then
18382   pkg_cv_GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
18383 else
18384   pkg_failed=yes
18385 fi
18386  else
18387     pkg_failed=untried
18388 fi
18389 if test -n "$GTK2_LIBS"; then
18390     pkg_cv_GTK2_LIBS="$GTK2_LIBS"
18391  elif test -n "$PKG_CONFIG"; then
18392     if test -n "$PKG_CONFIG" && \
18393     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
18394   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
18395   ac_status=$?
18396   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18397   test $ac_status = 0; }; then
18398   pkg_cv_GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
18399 else
18400   pkg_failed=yes
18401 fi
18402  else
18403     pkg_failed=untried
18404 fi
18405
18406
18407
18408 if test $pkg_failed = yes; then
18409         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18410 $as_echo "no" >&6; }
18411
18412 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18413         _pkg_short_errors_supported=yes
18414 else
18415         _pkg_short_errors_supported=no
18416 fi
18417         if test $_pkg_short_errors_supported = yes; then
18418                 GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0" 2>&1`
18419         else
18420                 GTK2_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0" 2>&1`
18421         fi
18422         # Put the nasty error message in config.log where it belongs
18423         echo "$GTK2_PKG_ERRORS" >&5
18424
18425         gtk2_pkgconfig=no
18426 elif test $pkg_failed = untried; then
18427         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18428 $as_echo "no" >&6; }
18429         gtk2_pkgconfig=no
18430 else
18431         GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS
18432         GTK2_LIBS=$pkg_cv_GTK2_LIBS
18433         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18434 $as_echo "yes" >&6; }
18435         gtk2_pkgconfig=yes
18436 fi
18437 if test "x$gtk2_pkgconfig" = "xyes"; then
18438
18439 $as_echo "#define HAVE_GTK2 1" >>confdefs.h
18440
18441         graphics_gtk_drawing_area=yes; graphics_gtk_drawing_area_reason="gtk+-2.0 present"
18442         gui_gtk=yes; gui_gtk_reason="gtk+-2.0 present"
18443 fi
18444
18445 # fsync
18446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5
18447 $as_echo_n "checking for fsync... " >&6; }
18448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18449 /* end confdefs.h.  */
18450 #include <unistd.h>
18451 int
18452 main ()
18453 {
18454 fsync(0);
18455   ;
18456   return 0;
18457 }
18458 _ACEOF
18459 if ac_fn_c_try_link "$LINENO"; then :
18460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18461 $as_echo "yes" >&6; };
18462 $as_echo "#define HAVE_FSYNC 1" >>confdefs.h
18463
18464 else
18465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18466 $as_echo "no" >&6; }
18467 fi
18468 rm -f core conftest.err conftest.$ac_objext \
18469     conftest$ac_exeext conftest.$ac_ext
18470
18471 # system
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system" >&5
18473 $as_echo_n "checking for system... " >&6; }
18474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18475 /* end confdefs.h.  */
18476 #include <stdlib.h>
18477 int
18478 main ()
18479 {
18480 system("/bin/true");
18481   ;
18482   return 0;
18483 }
18484 _ACEOF
18485 if ac_fn_c_try_link "$LINENO"; then :
18486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18487 $as_echo "yes" >&6; };
18488 $as_echo "#define HAVE_SYSTEM 1" >>confdefs.h
18489
18490 else
18491   speech_cmdline=no; speech_cmdline_reason="not supported without system()"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18492 $as_echo "no" >&6; }
18493 fi
18494 rm -f core conftest.err conftest.$ac_objext \
18495     conftest$ac_exeext conftest.$ac_ext
18496
18497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateProcess" >&5
18498 $as_echo_n "checking for CreateProcess... " >&6; }
18499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18500 /* end confdefs.h.  */
18501 #include <windows.h>
18502 int
18503 main ()
18504 {
18505 CreateProcess(NULL,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL);
18506   ;
18507   return 0;
18508 }
18509 _ACEOF
18510 if ac_fn_c_try_link "$LINENO"; then :
18511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18512 $as_echo "yes" >&6; };
18513 $as_echo "#define HAVE_CREATEPROCESS 1" >>confdefs.h
18514  speech_cmdline=yes; speech_cmdline_reason="CreateProcess exists"
18515 else
18516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18517 $as_echo "no" >&6; }
18518 fi
18519 rm -f core conftest.err conftest.$ac_objext \
18520     conftest$ac_exeext conftest.$ac_ext
18521
18522 # sbrk
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sbrk" >&5
18524 $as_echo_n "checking for sbrk... " >&6; }
18525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18526 /* end confdefs.h.  */
18527 #include <unistd.h>
18528 int
18529 main ()
18530 {
18531 sbrk(0);
18532   ;
18533   return 0;
18534 }
18535 _ACEOF
18536 if ac_fn_c_try_link "$LINENO"; then :
18537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18538 $as_echo "yes" >&6; };
18539 $as_echo "#define HAVE_SBRK 1" >>confdefs.h
18540
18541 else
18542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18543 $as_echo "no" >&6; }
18544 fi
18545 rm -f core conftest.err conftest.$ac_objext \
18546     conftest$ac_exeext conftest.$ac_ext
18547
18548
18549 # Check whether --enable-graphics-sdl was given.
18550 if test "${enable_graphics_sdl+set}" = set; then :
18551   enableval=$enable_graphics_sdl; graphics_sdl=$enableval;graphics_sdl_reason="configure parameter"
18552 fi
18553
18554
18555 if test "x${graphics_sdl}" = "xyes" ; then
18556
18557 pkg_failed=no
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5
18559 $as_echo_n "checking for SDL... " >&6; }
18560
18561 if test -n "$SDL_CFLAGS"; then
18562     pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
18563  elif test -n "$PKG_CONFIG"; then
18564     if test -n "$PKG_CONFIG" && \
18565     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
18566   ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
18567   ac_status=$?
18568   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18569   test $ac_status = 0; }; then
18570   pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
18571 else
18572   pkg_failed=yes
18573 fi
18574  else
18575     pkg_failed=untried
18576 fi
18577 if test -n "$SDL_LIBS"; then
18578     pkg_cv_SDL_LIBS="$SDL_LIBS"
18579  elif test -n "$PKG_CONFIG"; then
18580     if test -n "$PKG_CONFIG" && \
18581     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
18582   ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
18583   ac_status=$?
18584   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18585   test $ac_status = 0; }; then
18586   pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
18587 else
18588   pkg_failed=yes
18589 fi
18590  else
18591     pkg_failed=untried
18592 fi
18593
18594
18595
18596 if test $pkg_failed = yes; then
18597         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18598 $as_echo "no" >&6; }
18599
18600 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18601         _pkg_short_errors_supported=yes
18602 else
18603         _pkg_short_errors_supported=no
18604 fi
18605         if test $_pkg_short_errors_supported = yes; then
18606                 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl" 2>&1`
18607         else
18608                 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl" 2>&1`
18609         fi
18610         # Put the nasty error message in config.log where it belongs
18611         echo "$SDL_PKG_ERRORS" >&5
18612
18613         graphics_sdl="no"
18614                            graphics_sdl_reason="sdl not available"
18615
18616 elif test $pkg_failed = untried; then
18617         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18618 $as_echo "no" >&6; }
18619         graphics_sdl="no"
18620                            graphics_sdl_reason="sdl not available"
18621
18622 else
18623         SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
18624         SDL_LIBS=$pkg_cv_SDL_LIBS
18625         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18626 $as_echo "yes" >&6; }
18627         graphics_sdl="yes"
18628                            graphics_sdl_reason="sdl present"
18629 fi
18630
18631
18632 fi
18633 if test "x${graphics_sdl}" = "xyes" ; then
18634         save_CPPFLAGS=$CPPFLAGS
18635         CPPFLAGS="$SDL_CFLAGS $CPPFLAGS"
18636         ac_fn_c_check_header_mongrel "$LINENO" "SDL_image.h" "ac_cv_header_SDL_image_h" "$ac_includes_default"
18637 if test "x$ac_cv_header_SDL_image_h" = xyes; then :
18638   SDL_IMAGE_LIBS=-lSDL_image
18639 else
18640   graphics_sdl="no";graphics_sdl_reason="SDL_image.h missing"
18641 fi
18642
18643
18644
18645         CPPFLAGS=$save_CPPFLAGS
18646 fi
18647 if test "x${graphics_sdl}" = "xyes" ; then
18648
18649 $as_echo "#define GRAPHICS_SDL 1" >>confdefs.h
18650
18651 fi
18652  if test "x${graphics_sdl}" = "xyes"; then
18653   GRAPHICS_SDL_TRUE=
18654   GRAPHICS_SDL_FALSE='#'
18655 else
18656   GRAPHICS_SDL_TRUE='#'
18657   GRAPHICS_SDL_FALSE=
18658 fi
18659
18660
18661 # Check whether --enable-postgresql was given.
18662 if test "${enable_postgresql+set}" = set; then :
18663   enableval=$enable_postgresql; postgresql=$enableval;postgresql_reason="configure parameter"
18664 fi
18665
18666 if test "x${postgresql}" = "xyes" ; then
18667         if test -z "$PG_CONFIG"; then
18668             # Extract the first word of "pg_config", so it can be a program name with args.
18669 set dummy pg_config; ac_word=$2
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18671 $as_echo_n "checking for $ac_word... " >&6; }
18672 if ${ac_cv_path_PG_CONFIG+:} false; then :
18673   $as_echo_n "(cached) " >&6
18674 else
18675   case $PG_CONFIG in
18676   [\\/]* | ?:[\\/]*)
18677   ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
18678   ;;
18679   *)
18680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18681 for as_dir in $PATH
18682 do
18683   IFS=$as_save_IFS
18684   test -z "$as_dir" && as_dir=.
18685     for ac_exec_ext in '' $ac_executable_extensions; do
18686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18687     ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18689     break 2
18690   fi
18691 done
18692   done
18693 IFS=$as_save_IFS
18694
18695   ;;
18696 esac
18697 fi
18698 PG_CONFIG=$ac_cv_path_PG_CONFIG
18699 if test -n "$PG_CONFIG"; then
18700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
18701 $as_echo "$PG_CONFIG" >&6; }
18702 else
18703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18704 $as_echo "no" >&6; }
18705 fi
18706
18707
18708         fi
18709         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL libraries with $PG_CONFIG" >&5
18710 $as_echo_n "checking for PostgreSQL libraries with $PG_CONFIG... " >&6; }
18711         if test ! -x "$PG_CONFIG"; then
18712             if test "x${PG_CONFIG}" = "x" ; then
18713                  postgresql_reason="$PG_CONFIG not executable"
18714             else
18715                  postgresql_reason="pg_config missing"
18716             fi
18717             postgresql=no
18718             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18719 $as_echo "no" >&6; }
18720         else
18721             POSTGRESQL_CFLAGS="-I`$PG_CONFIG --includedir`"
18722             POSTGRESQL_LIBS="-L`$PG_CONFIG --libdir` -lpq"
18723
18724 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
18725
18726
18727
18728             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18729 $as_echo "yes" >&6; }
18730         fi
18731 fi
18732  if test "x${postgresql}" = "xyes"; then
18733   HAVE_POSTGRESQL_TRUE=
18734   HAVE_POSTGRESQL_FALSE='#'
18735 else
18736   HAVE_POSTGRESQL_TRUE='#'
18737   HAVE_POSTGRESQL_FALSE=
18738 fi
18739
18740 # font
18741 # freetype
18742 # Check whether --enable-font-freetype was given.
18743 if test "${enable_font_freetype+set}" = set; then :
18744   enableval=$enable_font_freetype; font_freetype=$enableval;font_freetype_reason="configure parameter"
18745 fi
18746
18747 if test "x${font_freetype}" = "xyes" -a "x${FREETYPE2_CFLAGS}" = "x" -a "x${FREETYPE2_LIBS}" = "x"; then
18748
18749 pkg_failed=no
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE2" >&5
18751 $as_echo_n "checking for FREETYPE2... " >&6; }
18752
18753 if test -n "$FREETYPE2_CFLAGS"; then
18754     pkg_cv_FREETYPE2_CFLAGS="$FREETYPE2_CFLAGS"
18755  elif test -n "$PKG_CONFIG"; then
18756     if test -n "$PKG_CONFIG" && \
18757     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
18758   ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
18759   ac_status=$?
18760   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18761   test $ac_status = 0; }; then
18762   pkg_cv_FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
18763 else
18764   pkg_failed=yes
18765 fi
18766  else
18767     pkg_failed=untried
18768 fi
18769 if test -n "$FREETYPE2_LIBS"; then
18770     pkg_cv_FREETYPE2_LIBS="$FREETYPE2_LIBS"
18771  elif test -n "$PKG_CONFIG"; then
18772     if test -n "$PKG_CONFIG" && \
18773     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
18774   ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
18775   ac_status=$?
18776   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18777   test $ac_status = 0; }; then
18778   pkg_cv_FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
18779 else
18780   pkg_failed=yes
18781 fi
18782  else
18783     pkg_failed=untried
18784 fi
18785
18786
18787
18788 if test $pkg_failed = yes; then
18789         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18790 $as_echo "no" >&6; }
18791
18792 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18793         _pkg_short_errors_supported=yes
18794 else
18795         _pkg_short_errors_supported=no
18796 fi
18797         if test $_pkg_short_errors_supported = yes; then
18798                 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
18799         else
18800                 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
18801         fi
18802         # Put the nasty error message in config.log where it belongs
18803         echo "$FREETYPE2_PKG_ERRORS" >&5
18804
18805         font_freetype=no;font_freetype_reason="Package freetype2 missing"
18806 elif test $pkg_failed = untried; then
18807         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18808 $as_echo "no" >&6; }
18809         font_freetype=no;font_freetype_reason="Package freetype2 missing"
18810 else
18811         FREETYPE2_CFLAGS=$pkg_cv_FREETYPE2_CFLAGS
18812         FREETYPE2_LIBS=$pkg_cv_FREETYPE2_LIBS
18813         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18814 $as_echo "yes" >&6; }
18815
18816 fi
18817 else
18818         fribidi=no
18819 fi
18820
18821
18822  if test "x${font_freetype}" = "xyes"; then
18823   FONT_FREETYPE_TRUE=
18824   FONT_FREETYPE_FALSE='#'
18825 else
18826   FONT_FREETYPE_TRUE='#'
18827   FONT_FREETYPE_FALSE=
18828 fi
18829
18830
18831 # Check whether --with-freetype-fonts was given.
18832 if test "${with_freetype_fonts+set}" = set; then :
18833   withval=$with_freetype_fonts;
18834 cat >>confdefs.h <<_ACEOF
18835 #define FREETYPE_FONTS ${withval}
18836 _ACEOF
18837
18838 fi
18839
18840
18841 # Check whether --enable-fontconfig was given.
18842 if test "${enable_fontconfig+set}" = set; then :
18843   enableval=$enable_fontconfig; fontconfig=$enableval;fontconfig_reason="configure parameter"
18844 fi
18845
18846 if test "x${fontconfig}" = "xyes"; then
18847
18848 pkg_failed=no
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
18850 $as_echo_n "checking for FONTCONFIG... " >&6; }
18851
18852 if test -n "$FONTCONFIG_CFLAGS"; then
18853     pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
18854  elif test -n "$PKG_CONFIG"; then
18855     if test -n "$PKG_CONFIG" && \
18856     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
18857   ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
18858   ac_status=$?
18859   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18860   test $ac_status = 0; }; then
18861   pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig" 2>/dev/null`
18862 else
18863   pkg_failed=yes
18864 fi
18865  else
18866     pkg_failed=untried
18867 fi
18868 if test -n "$FONTCONFIG_LIBS"; then
18869     pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
18870  elif test -n "$PKG_CONFIG"; then
18871     if test -n "$PKG_CONFIG" && \
18872     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
18873   ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
18874   ac_status=$?
18875   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18876   test $ac_status = 0; }; then
18877   pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig" 2>/dev/null`
18878 else
18879   pkg_failed=yes
18880 fi
18881  else
18882     pkg_failed=untried
18883 fi
18884
18885
18886
18887 if test $pkg_failed = yes; then
18888         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18889 $as_echo "no" >&6; }
18890
18891 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18892         _pkg_short_errors_supported=yes
18893 else
18894         _pkg_short_errors_supported=no
18895 fi
18896         if test $_pkg_short_errors_supported = yes; then
18897                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig" 2>&1`
18898         else
18899                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig" 2>&1`
18900         fi
18901         # Put the nasty error message in config.log where it belongs
18902         echo "$FONTCONFIG_PKG_ERRORS" >&5
18903
18904         fontconfig=no
18905 elif test $pkg_failed = untried; then
18906         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18907 $as_echo "no" >&6; }
18908         fontconfig=no
18909 else
18910         FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
18911         FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
18912         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18913 $as_echo "yes" >&6; }
18914         fontconfig=yes
18915 fi
18916 fi
18917 if test "x$fontconfig" = "xyes"; then
18918
18919 $as_echo "#define HAVE_FONTCONFIG 1" >>confdefs.h
18920
18921 fi
18922
18923
18924
18925  if test "x${font_freetype}" = "xyes" -a "x$fontconfig" != "xyes"; then
18926   FONTS_TRUE=
18927   FONTS_FALSE='#'
18928 else
18929   FONTS_TRUE='#'
18930   FONTS_FALSE=
18931 fi
18932
18933
18934 # fribidi
18935 # Check whether --enable-fribidi was given.
18936 if test "${enable_fribidi+set}" = set; then :
18937   enableval=$enable_fribidi; fribidi=$enableval;fribidi_reason="configure parameter"
18938 else
18939   fribidi=yes
18940 fi
18941
18942 if test x"${fribidi}" = "xyes"; then
18943
18944 pkg_failed=no
18945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FRIBIDI2" >&5
18946 $as_echo_n "checking for FRIBIDI2... " >&6; }
18947
18948 if test -n "$FRIBIDI2_CFLAGS"; then
18949     pkg_cv_FRIBIDI2_CFLAGS="$FRIBIDI2_CFLAGS"
18950  elif test -n "$PKG_CONFIG"; then
18951     if test -n "$PKG_CONFIG" && \
18952     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fribidi >= 0.19.0\""; } >&5
18953   ($PKG_CONFIG --exists --print-errors "fribidi >= 0.19.0") 2>&5
18954   ac_status=$?
18955   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18956   test $ac_status = 0; }; then
18957   pkg_cv_FRIBIDI2_CFLAGS=`$PKG_CONFIG --cflags "fribidi >= 0.19.0" 2>/dev/null`
18958 else
18959   pkg_failed=yes
18960 fi
18961  else
18962     pkg_failed=untried
18963 fi
18964 if test -n "$FRIBIDI2_LIBS"; then
18965     pkg_cv_FRIBIDI2_LIBS="$FRIBIDI2_LIBS"
18966  elif test -n "$PKG_CONFIG"; then
18967     if test -n "$PKG_CONFIG" && \
18968     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fribidi >= 0.19.0\""; } >&5
18969   ($PKG_CONFIG --exists --print-errors "fribidi >= 0.19.0") 2>&5
18970   ac_status=$?
18971   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18972   test $ac_status = 0; }; then
18973   pkg_cv_FRIBIDI2_LIBS=`$PKG_CONFIG --libs "fribidi >= 0.19.0" 2>/dev/null`
18974 else
18975   pkg_failed=yes
18976 fi
18977  else
18978     pkg_failed=untried
18979 fi
18980
18981
18982
18983 if test $pkg_failed = yes; then
18984         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18985 $as_echo "no" >&6; }
18986
18987 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18988         _pkg_short_errors_supported=yes
18989 else
18990         _pkg_short_errors_supported=no
18991 fi
18992         if test $_pkg_short_errors_supported = yes; then
18993                 FRIBIDI2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fribidi >= 0.19.0" 2>&1`
18994         else
18995                 FRIBIDI2_PKG_ERRORS=`$PKG_CONFIG --print-errors "fribidi >= 0.19.0" 2>&1`
18996         fi
18997         # Put the nasty error message in config.log where it belongs
18998         echo "$FRIBIDI2_PKG_ERRORS" >&5
18999
19000
19001 pkg_failed=no
19002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FRIBIDI" >&5
19003 $as_echo_n "checking for FRIBIDI... " >&6; }
19004
19005 if test -n "$FRIBIDI_CFLAGS"; then
19006     pkg_cv_FRIBIDI_CFLAGS="$FRIBIDI_CFLAGS"
19007  elif test -n "$PKG_CONFIG"; then
19008     if test -n "$PKG_CONFIG" && \
19009     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fribidi\""; } >&5
19010   ($PKG_CONFIG --exists --print-errors "fribidi") 2>&5
19011   ac_status=$?
19012   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19013   test $ac_status = 0; }; then
19014   pkg_cv_FRIBIDI_CFLAGS=`$PKG_CONFIG --cflags "fribidi" 2>/dev/null`
19015 else
19016   pkg_failed=yes
19017 fi
19018  else
19019     pkg_failed=untried
19020 fi
19021 if test -n "$FRIBIDI_LIBS"; then
19022     pkg_cv_FRIBIDI_LIBS="$FRIBIDI_LIBS"
19023  elif test -n "$PKG_CONFIG"; then
19024     if test -n "$PKG_CONFIG" && \
19025     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fribidi\""; } >&5
19026   ($PKG_CONFIG --exists --print-errors "fribidi") 2>&5
19027   ac_status=$?
19028   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19029   test $ac_status = 0; }; then
19030   pkg_cv_FRIBIDI_LIBS=`$PKG_CONFIG --libs "fribidi" 2>/dev/null`
19031 else
19032   pkg_failed=yes
19033 fi
19034  else
19035     pkg_failed=untried
19036 fi
19037
19038
19039
19040 if test $pkg_failed = yes; then
19041         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19042 $as_echo "no" >&6; }
19043
19044 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19045         _pkg_short_errors_supported=yes
19046 else
19047         _pkg_short_errors_supported=no
19048 fi
19049         if test $_pkg_short_errors_supported = yes; then
19050                 FRIBIDI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fribidi" 2>&1`
19051         else
19052                 FRIBIDI_PKG_ERRORS=`$PKG_CONFIG --print-errors "fribidi" 2>&1`
19053         fi
19054         # Put the nasty error message in config.log where it belongs
19055         echo "$FRIBIDI_PKG_ERRORS" >&5
19056
19057         fribidi=no;fribidi_reason="FriBidi library not found"
19058 elif test $pkg_failed = untried; then
19059         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19060 $as_echo "no" >&6; }
19061         fribidi=no;fribidi_reason="FriBidi library not found"
19062 else
19063         FRIBIDI_CFLAGS=$pkg_cv_FRIBIDI_CFLAGS
19064         FRIBIDI_LIBS=$pkg_cv_FRIBIDI_LIBS
19065         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19066 $as_echo "yes" >&6; }
19067         fribidi=yes;oldfribidi=yes;fribid_reason="using old version"
19068 fi
19069
19070 elif test $pkg_failed = untried; then
19071         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19072 $as_echo "no" >&6; }
19073
19074 pkg_failed=no
19075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FRIBIDI" >&5
19076 $as_echo_n "checking for FRIBIDI... " >&6; }
19077
19078 if test -n "$FRIBIDI_CFLAGS"; then
19079     pkg_cv_FRIBIDI_CFLAGS="$FRIBIDI_CFLAGS"
19080  elif test -n "$PKG_CONFIG"; then
19081     if test -n "$PKG_CONFIG" && \
19082     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fribidi\""; } >&5
19083   ($PKG_CONFIG --exists --print-errors "fribidi") 2>&5
19084   ac_status=$?
19085   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19086   test $ac_status = 0; }; then
19087   pkg_cv_FRIBIDI_CFLAGS=`$PKG_CONFIG --cflags "fribidi" 2>/dev/null`
19088 else
19089   pkg_failed=yes
19090 fi
19091  else
19092     pkg_failed=untried
19093 fi
19094 if test -n "$FRIBIDI_LIBS"; then
19095     pkg_cv_FRIBIDI_LIBS="$FRIBIDI_LIBS"
19096  elif test -n "$PKG_CONFIG"; then
19097     if test -n "$PKG_CONFIG" && \
19098     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fribidi\""; } >&5
19099   ($PKG_CONFIG --exists --print-errors "fribidi") 2>&5
19100   ac_status=$?
19101   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19102   test $ac_status = 0; }; then
19103   pkg_cv_FRIBIDI_LIBS=`$PKG_CONFIG --libs "fribidi" 2>/dev/null`
19104 else
19105   pkg_failed=yes
19106 fi
19107  else
19108     pkg_failed=untried
19109 fi
19110
19111
19112
19113 if test $pkg_failed = yes; then
19114         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19115 $as_echo "no" >&6; }
19116
19117 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19118         _pkg_short_errors_supported=yes
19119 else
19120         _pkg_short_errors_supported=no
19121 fi
19122         if test $_pkg_short_errors_supported = yes; then
19123                 FRIBIDI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fribidi" 2>&1`
19124         else
19125                 FRIBIDI_PKG_ERRORS=`$PKG_CONFIG --print-errors "fribidi" 2>&1`
19126         fi
19127         # Put the nasty error message in config.log where it belongs
19128         echo "$FRIBIDI_PKG_ERRORS" >&5
19129
19130         fribidi=no;fribidi_reason="FriBidi library not found"
19131 elif test $pkg_failed = untried; then
19132         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19133 $as_echo "no" >&6; }
19134         fribidi=no;fribidi_reason="FriBidi library not found"
19135 else
19136         FRIBIDI_CFLAGS=$pkg_cv_FRIBIDI_CFLAGS
19137         FRIBIDI_LIBS=$pkg_cv_FRIBIDI_LIBS
19138         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19139 $as_echo "yes" >&6; }
19140         fribidi=yes;oldfribidi=yes;fribid_reason="using old version"
19141 fi
19142
19143 else
19144         FRIBIDI2_CFLAGS=$pkg_cv_FRIBIDI2_CFLAGS
19145         FRIBIDI2_LIBS=$pkg_cv_FRIBIDI2_LIBS
19146         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19147 $as_echo "yes" >&6; }
19148         fribidi=yes;oldfribidi=no
19149 fi
19150 fi
19151 if test x"${fribidi}" = "xyes"; then
19152
19153 $as_echo "#define USE_FRIBIDI 1" >>confdefs.h
19154
19155 fi
19156 if test x"${oldfribidi}" = "xyes"; then
19157
19158 $as_echo "#define FRIBIDIOLD 1" >>confdefs.h
19159
19160 fi
19161
19162
19163
19164
19165
19166
19167
19168 pkg_failed=no
19169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMLIB2" >&5
19170 $as_echo_n "checking for IMLIB2... " >&6; }
19171
19172 if test -n "$IMLIB2_CFLAGS"; then
19173     pkg_cv_IMLIB2_CFLAGS="$IMLIB2_CFLAGS"
19174  elif test -n "$PKG_CONFIG"; then
19175     if test -n "$PKG_CONFIG" && \
19176     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"imlib2\""; } >&5
19177   ($PKG_CONFIG --exists --print-errors "imlib2") 2>&5
19178   ac_status=$?
19179   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19180   test $ac_status = 0; }; then
19181   pkg_cv_IMLIB2_CFLAGS=`$PKG_CONFIG --cflags "imlib2" 2>/dev/null`
19182 else
19183   pkg_failed=yes
19184 fi
19185  else
19186     pkg_failed=untried
19187 fi
19188 if test -n "$IMLIB2_LIBS"; then
19189     pkg_cv_IMLIB2_LIBS="$IMLIB2_LIBS"
19190  elif test -n "$PKG_CONFIG"; then
19191     if test -n "$PKG_CONFIG" && \
19192     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"imlib2\""; } >&5
19193   ($PKG_CONFIG --exists --print-errors "imlib2") 2>&5
19194   ac_status=$?
19195   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19196   test $ac_status = 0; }; then
19197   pkg_cv_IMLIB2_LIBS=`$PKG_CONFIG --libs "imlib2" 2>/dev/null`
19198 else
19199   pkg_failed=yes
19200 fi
19201  else
19202     pkg_failed=untried
19203 fi
19204
19205
19206
19207 if test $pkg_failed = yes; then
19208         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19209 $as_echo "no" >&6; }
19210
19211 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19212         _pkg_short_errors_supported=yes
19213 else
19214         _pkg_short_errors_supported=no
19215 fi
19216         if test $_pkg_short_errors_supported = yes; then
19217                 IMLIB2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "imlib2" 2>&1`
19218         else
19219                 IMLIB2_PKG_ERRORS=`$PKG_CONFIG --print-errors "imlib2" 2>&1`
19220         fi
19221         # Put the nasty error message in config.log where it belongs
19222         echo "$IMLIB2_PKG_ERRORS" >&5
19223
19224         imlib2_pkgconfig=no
19225 elif test $pkg_failed = untried; then
19226         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19227 $as_echo "no" >&6; }
19228         imlib2_pkgconfig=no
19229 else
19230         IMLIB2_CFLAGS=$pkg_cv_IMLIB2_CFLAGS
19231         IMLIB2_LIBS=$pkg_cv_IMLIB2_LIBS
19232         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19233 $as_echo "yes" >&6; }
19234         imlib2_pkgconfig=yes
19235 fi
19236 if test "x$imlib2_pkgconfig" = "xyes"; then
19237
19238 $as_echo "#define HAVE_IMLIB2 1" >>confdefs.h
19239
19240 fi
19241
19242
19243
19244 # Check whether --enable-graphics-opengl was given.
19245 if test "${enable_graphics_opengl+set}" = set; then :
19246   enableval=$enable_graphics_opengl; graphics_opengl=$enableval;graphics_opengl_reason="configure parameter"
19247 fi
19248
19249 if test "x${graphics_opengl}" = "xyes" ; then
19250
19251 ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default"
19252 if test "x$ac_cv_header_GL_gl_h" = xyes; then :
19253
19254 $as_echo "#define HAVE_OPENGL /**/" >>confdefs.h
19255
19256                 OPENGL_LIBS="$X_LIBS -lGL -lglut -lfreeimage"
19257                 opengl=yes
19258 else
19259   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** no GL/gl.h -- opengl graphics support disabled;graphics_opengl=no;graphics_opengl_reason=\"GL/gl.h header missing\"" >&5
19260 $as_echo "$as_me: WARNING: *** no GL/gl.h -- opengl graphics support disabled;graphics_opengl=no;graphics_opengl_reason=\"GL/gl.h header missing\"" >&2;}
19261
19262 fi
19263
19264
19265
19266 ac_fn_c_check_header_mongrel "$LINENO" "GL/glut.h" "ac_cv_header_GL_glut_h" "$ac_includes_default"
19267 if test "x$ac_cv_header_GL_glut_h" = xyes; then :
19268
19269 $as_echo "#define HAVE_GLUT /**/" >>confdefs.h
19270
19271                 glut=yes
19272 else
19273   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** no GL/glut.h -- opengl graphics support disabled" >&5
19274 $as_echo "$as_me: WARNING: *** no GL/glut.h -- opengl graphics support disabled" >&2;};graphics_opengl=no;graphics_opengl_reason="GL/glut.h header missing"
19275
19276 fi
19277
19278
19279
19280 ac_fn_c_check_header_mongrel "$LINENO" "GL/freeglut.h" "ac_cv_header_GL_freeglut_h" "$ac_includes_default"
19281 if test "x$ac_cv_header_GL_freeglut_h" = xyes; then :
19282
19283 $as_echo "#define HAVE_FREEGLUT /**/" >>confdefs.h
19284
19285                 freeglut=yes
19286 else
19287   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** no GL/freeglut.h -- opengl support disabled" >&5
19288 $as_echo "$as_me: WARNING: *** no GL/freeglut.h -- opengl support disabled" >&2;};graphics_opengl=no;graphics_opengl_reason="Headers missing"
19289
19290 fi
19291
19292
19293
19294
19295
19296
19297 ac_fn_c_check_header_mongrel "$LINENO" "GL/glc.h" "ac_cv_header_GL_glc_h" "$ac_includes_default"
19298 if test "x$ac_cv_header_GL_glc_h" = xyes; then :
19299
19300 $as_echo "#define HAVE_GLC /**/" >>confdefs.h
19301
19302                 GLC_LIBS="-lGLC"
19303                 glc=yes
19304 else
19305   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** no GL/glc.h -- opengl graphics support disabled" >&5
19306 $as_echo "$as_me: WARNING: *** no GL/glc.h -- opengl graphics support disabled" >&2;};graphics_opengl=no;graphics_opengl_reason="GL/glc.h header missing"
19307
19308 fi
19309
19310
19311 ac_fn_c_check_header_mongrel "$LINENO" "FreeImage.h" "ac_cv_header_FreeImage_h" "$ac_includes_default"
19312 if test "x$ac_cv_header_FreeImage_h" = xyes; then :
19313
19314 $as_echo "#define HAVE_FREEIMAGE /**/" >>confdefs.h
19315
19316                 FREEIMAGE_LIBS="-lfreeimage"
19317                 freeimage=yes
19318 else
19319   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** no FreeImage.h -- opengl support disabled" >&5
19320 $as_echo "$as_me: WARNING: *** no FreeImage.h -- opengl support disabled" >&2;};graphics_opengl=no;graphics_opengl_reason="Headers missing"
19321
19322 fi
19323
19324
19325
19326
19327
19328 fi
19329
19330  if test "x$glut" = "xyes" -a "x$freeglut" = "xyes" -a "x$opengl" = "xyes" -a "x$freeimage" = "xyes"  -a "x$glc" = "xyes" ; then
19331   GRAPHICS_OPENGL_TRUE=
19332   GRAPHICS_OPENGL_FALSE='#'
19333 else
19334   GRAPHICS_OPENGL_TRUE='#'
19335   GRAPHICS_OPENGL_FALSE=
19336 fi
19337
19338
19339
19340 system_shapefile=no
19341 if test x"${map_shapefile}" = xyes
19342 then
19343 for ac_header in shapefil.h libshp/shapefil.h
19344 do :
19345   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19346 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19347 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19348   cat >>confdefs.h <<_ACEOF
19349 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19350 _ACEOF
19351
19352 $as_echo "#define HAVE_SYS_SHAPEFILELIB 1" >>confdefs.h
19353
19354 else
19355   SHAPEFILE_CFLAGS="-I\$(top_srcdir)/navit/support/shapefile"
19356
19357 fi
19358
19359 done
19360
19361
19362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBFDeleteField in -lshp" >&5
19363 $as_echo_n "checking for DBFDeleteField in -lshp... " >&6; }
19364 if ${ac_cv_lib_shp_DBFDeleteField+:} false; then :
19365   $as_echo_n "(cached) " >&6
19366 else
19367   ac_check_lib_save_LIBS=$LIBS
19368 LIBS="-lshp  $LIBS"
19369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19370 /* end confdefs.h.  */
19371
19372 /* Override any GCC internal prototype to avoid an error.
19373    Use char because int might match the return type of a GCC
19374    builtin and then its argument prototype would still apply.  */
19375 #ifdef __cplusplus
19376 extern "C"
19377 #endif
19378 char DBFDeleteField ();
19379 int
19380 main ()
19381 {
19382 return DBFDeleteField ();
19383   ;
19384   return 0;
19385 }
19386 _ACEOF
19387 if ac_fn_c_try_link "$LINENO"; then :
19388   ac_cv_lib_shp_DBFDeleteField=yes
19389 else
19390   ac_cv_lib_shp_DBFDeleteField=no
19391 fi
19392 rm -f core conftest.err conftest.$ac_objext \
19393     conftest$ac_exeext conftest.$ac_ext
19394 LIBS=$ac_check_lib_save_LIBS
19395 fi
19396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_shp_DBFDeleteField" >&5
19397 $as_echo "$ac_cv_lib_shp_DBFDeleteField" >&6; }
19398 if test "x$ac_cv_lib_shp_DBFDeleteField" = xyes; then :
19399   SHAPEFILE_LIBS="-lshp"
19400                  system_shapefile=yes
19401 else
19402   SHAPEFILE_LIBS="-L\$(top_builddir)/navit/support/shapefile -lsupport_shapefile"
19403                  system_shapefile=no
19404
19405 fi
19406
19407
19408 if test x"${system_shapefile}" = xno
19409 then
19410          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** The shapefile library(libshp) from the system is to old or not found!  -- using included copy" >&5
19411 $as_echo "$as_me: WARNING: *** The shapefile library(libshp) from the system is to old or not found!  -- using included copy" >&2;}
19412 fi
19413
19414 fi
19415
19416
19417  if test "x$system_shapefile" = "xyes" ; then
19418   HAVE_SYSTEM_SHAPEFILELIB_TRUE=
19419   HAVE_SYSTEM_SHAPEFILELIB_FALSE='#'
19420 else
19421   HAVE_SYSTEM_SHAPEFILELIB_TRUE='#'
19422   HAVE_SYSTEM_SHAPEFILELIB_FALSE=
19423 fi
19424
19425
19426 if test x"${USE_GARMIN}" = xyes
19427 then
19428         # check for libgarmin
19429
19430 pkg_failed=no
19431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGARMIN" >&5
19432 $as_echo_n "checking for LIBGARMIN... " >&6; }
19433
19434 if test -n "$LIBGARMIN_CFLAGS"; then
19435     pkg_cv_LIBGARMIN_CFLAGS="$LIBGARMIN_CFLAGS"
19436  elif test -n "$PKG_CONFIG"; then
19437     if test -n "$PKG_CONFIG" && \
19438     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgarmin\""; } >&5
19439   ($PKG_CONFIG --exists --print-errors "libgarmin") 2>&5
19440   ac_status=$?
19441   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19442   test $ac_status = 0; }; then
19443   pkg_cv_LIBGARMIN_CFLAGS=`$PKG_CONFIG --cflags "libgarmin" 2>/dev/null`
19444 else
19445   pkg_failed=yes
19446 fi
19447  else
19448     pkg_failed=untried
19449 fi
19450 if test -n "$LIBGARMIN_LIBS"; then
19451     pkg_cv_LIBGARMIN_LIBS="$LIBGARMIN_LIBS"
19452  elif test -n "$PKG_CONFIG"; then
19453     if test -n "$PKG_CONFIG" && \
19454     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgarmin\""; } >&5
19455   ($PKG_CONFIG --exists --print-errors "libgarmin") 2>&5
19456   ac_status=$?
19457   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19458   test $ac_status = 0; }; then
19459   pkg_cv_LIBGARMIN_LIBS=`$PKG_CONFIG --libs "libgarmin" 2>/dev/null`
19460 else
19461   pkg_failed=yes
19462 fi
19463  else
19464     pkg_failed=untried
19465 fi
19466
19467
19468
19469 if test $pkg_failed = yes; then
19470         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19471 $as_echo "no" >&6; }
19472
19473 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19474         _pkg_short_errors_supported=yes
19475 else
19476         _pkg_short_errors_supported=no
19477 fi
19478         if test $_pkg_short_errors_supported = yes; then
19479                 LIBGARMIN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgarmin" 2>&1`
19480         else
19481                 LIBGARMIN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgarmin" 2>&1`
19482         fi
19483         # Put the nasty error message in config.log where it belongs
19484         echo "$LIBGARMIN_PKG_ERRORS" >&5
19485
19486         use_libgarmin=no
19487 elif test $pkg_failed = untried; then
19488         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19489 $as_echo "no" >&6; }
19490         use_libgarmin=no
19491 else
19492         LIBGARMIN_CFLAGS=$pkg_cv_LIBGARMIN_CFLAGS
19493         LIBGARMIN_LIBS=$pkg_cv_LIBGARMIN_LIBS
19494         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19495 $as_echo "yes" >&6; }
19496         use_libgarmin=yes
19497 fi
19498
19499
19500 fi
19501          if test "x$use_libgarmin" = "xyes"; then
19502   HAVELIBGARMIN_TRUE=
19503   HAVELIBGARMIN_FALSE='#'
19504 else
19505   HAVELIBGARMIN_TRUE='#'
19506   HAVELIBGARMIN_FALSE=
19507 fi
19508
19509
19510 ## binding
19511 # python
19512 # Check whether --enable-binding-python was given.
19513 if test "${enable_binding_python+set}" = set; then :
19514   enableval=$enable_binding_python; binding_python=$enableval;binding_python_reason="configure parameter"
19515 fi
19516
19517 if test "x${binding_python}" = "xyes"; then
19518         # Extract the first word of "python", so it can be a program name with args.
19519 set dummy python; ac_word=$2
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19521 $as_echo_n "checking for $ac_word... " >&6; }
19522 if ${ac_cv_path__PATH_PYTHON+:} false; then :
19523   $as_echo_n "(cached) " >&6
19524 else
19525   case $_PATH_PYTHON in
19526   [\\/]* | ?:[\\/]*)
19527   ac_cv_path__PATH_PYTHON="$_PATH_PYTHON" # Let the user override the test with a path.
19528   ;;
19529   *)
19530   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19531 for as_dir in $PATH
19532 do
19533   IFS=$as_save_IFS
19534   test -z "$as_dir" && as_dir=.
19535     for ac_exec_ext in '' $ac_executable_extensions; do
19536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19537     ac_cv_path__PATH_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19539     break 2
19540   fi
19541 done
19542   done
19543 IFS=$as_save_IFS
19544
19545   ;;
19546 esac
19547 fi
19548 _PATH_PYTHON=$ac_cv_path__PATH_PYTHON
19549 if test -n "$_PATH_PYTHON"; then
19550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_PATH_PYTHON" >&5
19551 $as_echo "$_PATH_PYTHON" >&6; }
19552 else
19553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19554 $as_echo "no" >&6; }
19555 fi
19556
19557
19558                         if test "x${_PATH_PYTHON}" != "x" ; then
19559                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python linkage" >&5
19560 $as_echo_n "checking for Python linkage... " >&6; }
19561                 # Extract the first word of "python-config", so it can be a program name with args.
19562 set dummy python-config; ac_word=$2
19563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19564 $as_echo_n "checking for $ac_word... " >&6; }
19565 if ${ac_cv_path_PYTHONCONFIG+:} false; then :
19566   $as_echo_n "(cached) " >&6
19567 else
19568   case $PYTHONCONFIG in
19569   [\\/]* | ?:[\\/]*)
19570   ac_cv_path_PYTHONCONFIG="$PYTHONCONFIG" # Let the user override the test with a path.
19571   ;;
19572   *)
19573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19574 for as_dir in $PATH
19575 do
19576   IFS=$as_save_IFS
19577   test -z "$as_dir" && as_dir=.
19578     for ac_exec_ext in '' $ac_executable_extensions; do
19579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19580     ac_cv_path_PYTHONCONFIG="$as_dir/$ac_word$ac_exec_ext"
19581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19582     break 2
19583   fi
19584 done
19585   done
19586 IFS=$as_save_IFS
19587
19588   ;;
19589 esac
19590 fi
19591 PYTHONCONFIG=$ac_cv_path_PYTHONCONFIG
19592 if test -n "$PYTHONCONFIG"; then
19593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHONCONFIG" >&5
19594 $as_echo "$PYTHONCONFIG" >&6; }
19595 else
19596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19597 $as_echo "no" >&6; }
19598 fi
19599
19600
19601                 if test "x${PYTHONCONFIG}" = "x" ; then
19602                         py_prefix=`$_PATH_PYTHON -c 'import sys; print sys.prefix'`
19603                         py_ver=`$_PATH_PYTHON -c 'import sys; print sys.version[:3]'`
19604                         py_lib=`$_PATH_PYTHON -c 'import sys; print sys.lib'`
19605                         py_libdir="${py_prefix}/${py_lib}/python${py_ver}"
19606                         PYTHON_CFLAGS="-I${py_prefix}/include/python${py_ver}"
19607                         if test -f $py_libdir/config/Makefile -a -f $py_prefix/include/python${py_ver}/Python.h; then
19608                                 py_libs=`grep '^LIBS=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
19609                                 py_libc=`grep '^LIBC=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
19610                                 py_libm=`grep '^LIBM=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
19611                                 py_liblocalmod=`grep '^LOCALMODLIBS=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
19612                                 py_libbasemod=`grep '^BASEMODLIBS=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
19613                                 PYTHON_LIBS="-L$py_libdir/config $py_libs $py_libc $py_libm -lpython$py_ver $py_liblocalmod $py_libbasemod"
19614                                 PYTHON_LIBS=`echo $PYTHON_LIBS | sed -e 's/ \\t*/ /g'`
19615                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $py_libdir" >&5
19616 $as_echo "$py_libdir" >&6; }
19617                         else
19618                                 binding_python="no"
19619                                 binding_python_reason="$py_libdir/config/Makefile or $py_prefix/include/python${py_ver}/Python.h missing"
19620                         fi
19621
19622                 else
19623                         PYTHON_CFLAGS="`${PYTHONCONFIG} --cflags`"
19624                         PYTHON_LIBS="`${PYTHONCONFIG} --ldflags`"
19625                 fi
19626         else
19627                 binding_python="no"
19628                 binding_python_reason="python executable missing"
19629         fi
19630 fi
19631 if test "x${binding_python}" = xyes ; then
19632
19633 $as_echo "#define USE_BINDING_PYTHON 1" >>confdefs.h
19634
19635 fi
19636
19637
19638  if test "x${binding_python}" = "xyes"; then
19639   BINDING_PYTHON_TRUE=
19640   BINDING_PYTHON_FALSE='#'
19641 else
19642   BINDING_PYTHON_TRUE='#'
19643   BINDING_PYTHON_FALSE=
19644 fi
19645
19646
19647 # dbus
19648 # Check whether --enable-binding-dbus was given.
19649 if test "${enable_binding_dbus+set}" = set; then :
19650   enableval=$enable_binding_dbus; binding_dbus=$enableval;binding_dbus_reason="configure parameter"
19651 fi
19652
19653 # Check whether --enable-binding-dbus-use-system-bus was given.
19654 if test "${enable_binding_dbus_use_system_bus+set}" = set; then :
19655   enableval=$enable_binding_dbus_use_system_bus; binding_dbus_use_system_bus=$enableval
19656 fi
19657
19658 if test "x${binding_dbus}" = "xyes" ; then
19659
19660 pkg_failed=no
19661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
19662 $as_echo_n "checking for DBUS... " >&6; }
19663
19664 if test -n "$DBUS_CFLAGS"; then
19665     pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
19666  elif test -n "$PKG_CONFIG"; then
19667     if test -n "$PKG_CONFIG" && \
19668     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1\""; } >&5
19669   ($PKG_CONFIG --exists --print-errors "dbus-glib-1") 2>&5
19670   ac_status=$?
19671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19672   test $ac_status = 0; }; then
19673   pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-glib-1" 2>/dev/null`
19674 else
19675   pkg_failed=yes
19676 fi
19677  else
19678     pkg_failed=untried
19679 fi
19680 if test -n "$DBUS_LIBS"; then
19681     pkg_cv_DBUS_LIBS="$DBUS_LIBS"
19682  elif test -n "$PKG_CONFIG"; then
19683     if test -n "$PKG_CONFIG" && \
19684     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1\""; } >&5
19685   ($PKG_CONFIG --exists --print-errors "dbus-glib-1") 2>&5
19686   ac_status=$?
19687   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19688   test $ac_status = 0; }; then
19689   pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-glib-1" 2>/dev/null`
19690 else
19691   pkg_failed=yes
19692 fi
19693  else
19694     pkg_failed=untried
19695 fi
19696
19697
19698
19699 if test $pkg_failed = yes; then
19700         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19701 $as_echo "no" >&6; }
19702
19703 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19704         _pkg_short_errors_supported=yes
19705 else
19706         _pkg_short_errors_supported=no
19707 fi
19708         if test $_pkg_short_errors_supported = yes; then
19709                 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-glib-1" 2>&1`
19710         else
19711                 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-glib-1" 2>&1`
19712         fi
19713         # Put the nasty error message in config.log where it belongs
19714         echo "$DBUS_PKG_ERRORS" >&5
19715
19716         binding_dbus=no
19717 elif test $pkg_failed = untried; then
19718         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19719 $as_echo "no" >&6; }
19720         binding_dbus=no
19721 else
19722         DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
19723         DBUS_LIBS=$pkg_cv_DBUS_LIBS
19724         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19725 $as_echo "yes" >&6; }
19726
19727 fi
19728 fi
19729 if test "x${binding_dbus}" = "xyes" ; then
19730
19731 $as_echo "#define USE_BINDING_DBUS 1" >>confdefs.h
19732
19733         vehicle_gpsd_dbus="yes"
19734         vehicle_gpsd_dbus_reason="dbus binding present"
19735         speech_dbus="yes"
19736         speech_dbus_reason="dbus binding present"
19737 fi
19738 if test "x${binding_dbus_use_system_bus}" = "xyes" ; then
19739
19740 $as_echo "#define DBUS_USE_SYSTEM_BUS 1" >>confdefs.h
19741
19742 fi
19743
19744
19745  if test "x${binding_dbus}" = "xyes"; then
19746   BINDING_DBUS_TRUE=
19747   BINDING_DBUS_FALSE='#'
19748 else
19749   BINDING_DBUS_TRUE='#'
19750   BINDING_DBUS_FALSE=
19751 fi
19752
19753  if test "x${vehicle_gpsd_dbus}" = "xyes"; then
19754   VEHICLE_GPSD_DBUS_TRUE=
19755   VEHICLE_GPSD_DBUS_FALSE='#'
19756 else
19757   VEHICLE_GPSD_DBUS_TRUE='#'
19758   VEHICLE_GPSD_DBUS_FALSE=
19759 fi
19760
19761  if test "x${speech_dbus}" = "xyes"; then
19762   SPEECH_DBUS_TRUE=
19763   SPEECH_DBUS_FALSE='#'
19764 else
19765   SPEECH_DBUS_TRUE='#'
19766   SPEECH_DBUS_FALSE=
19767 fi
19768
19769
19770 # Check whether --with-dbus-service-dir was given.
19771 if test "${with_dbus_service_dir+set}" = set; then :
19772   withval=$with_dbus_service_dir; DBUS_SERVICE_DIR=$withval
19773 else
19774   DBUS_SERVICE_DIR="$datarootdir/dbus-1/services"
19775 fi
19776
19777
19778
19779 # win32 binding
19780 # Check whether --enable-binding-win32 was given.
19781 if test "${enable_binding_win32+set}" = set; then :
19782   enableval=$enable_binding_win32; binding_win32=$enableval;binding_win32_reason="configure parameter"
19783 fi
19784
19785 if test "x${binding_win32}" = "xyes" ; then
19786
19787 $as_echo "#define USE_BINDING_WIN32 1" >>confdefs.h
19788
19789 fi
19790  if test "x${binding_win32}" = "xyes"; then
19791   BINDING_WIN32_TRUE=
19792   BINDING_WIN32_FALSE='#'
19793 else
19794   BINDING_WIN32_TRUE='#'
19795   BINDING_WIN32_FALSE=
19796 fi
19797
19798
19799 # svg
19800 # Check whether --enable-svg was given.
19801 if test "${enable_svg+set}" = set; then :
19802   enableval=$enable_svg; enable_svg=$enableval
19803 else
19804   enable_svg=yes
19805 fi
19806
19807 # Check whether --enable-svg2png was given.
19808 if test "${enable_svg2png+set}" = set; then :
19809   enableval=$enable_svg2png; enable_svg2png=$enableval
19810 else
19811   enable_svg2png=yes
19812 fi
19813
19814 # Check whether --enable-svg2png-scaling was given.
19815 if test "${enable_svg2png_scaling+set}" = set; then :
19816   enableval=$enable_svg2png_scaling; SVG2PNG_SCALES=$enableval
19817 else
19818   SVG2PNG_SCALES="8 16 32 48 96"
19819 fi
19820
19821 # Check whether --enable-svg2png-scaling-flag was given.
19822 if test "${enable_svg2png_scaling_flag+set}" = set; then :
19823   enableval=$enable_svg2png_scaling_flag; SVG2PNG_SCALES_FLAG=$enableval
19824 else
19825   SVG2PNG_SCALES_FLAG="8 16 32 48 96"
19826 fi
19827
19828 # Check whether --enable-svg2png-scaling-nav was given.
19829 if test "${enable_svg2png_scaling_nav+set}" = set; then :
19830   enableval=$enable_svg2png_scaling_nav; SVG2PNG_SCALES_NAV=$enableval
19831 else
19832   SVG2PNG_SCALES_NAV="8 16 32 48 96"
19833 fi
19834
19835
19836 # Check whether --with-svg2png-use-convert was given.
19837 if test "${with_svg2png_use_convert+set}" = set; then :
19838   withval=$with_svg2png_use_convert; SVG2PNG_CONVERTER="convert"
19839 fi
19840
19841
19842 # Check whether --with-svg2png-use-rsvg-convert was given.
19843 if test "${with_svg2png_use_rsvg_convert+set}" = set; then :
19844   withval=$with_svg2png_use_rsvg_convert; SVG2PNG_CONVERTER="rsvg-convert"
19845 fi
19846
19847
19848 # Check whether --with-svg2png-use-inkscape was given.
19849 if test "${with_svg2png_use_inkscape+set}" = set; then :
19850   withval=$with_svg2png_use_inkscape; SVG2PNG_CONVERTER="inkscape"
19851 fi
19852
19853
19854 # Check whether --with-svg2png-use-ksvgtopng4 was given.
19855 if test "${with_svg2png_use_ksvgtopng4+set}" = set; then :
19856   withval=$with_svg2png_use_ksvgtopng4; SVG2PNG_CONVERTER="ksvgtopng4"
19857 fi
19858
19859
19860 # Check whether --with-svg2png-use-ksvgtopng was given.
19861 if test "${with_svg2png_use_ksvgtopng+set}" = set; then :
19862   withval=$with_svg2png_use_ksvgtopng; SVG2PNG_CONVERTER="ksvgtopng"
19863 fi
19864
19865 if test "x${enable_svg2png}" = "xyes" ; then
19866     if test "x${SVG2PNG_CONVERTER}" = "x"; then
19867         SVG2PNG_CONVERTER="rsvg-convert ksvgtopng ksvgtopng4 inkscape convert"
19868     fi
19869     for ac_prog in ${SVG2PNG_CONVERTER}
19870 do
19871   # Extract the first word of "$ac_prog", so it can be a program name with args.
19872 set dummy $ac_prog; ac_word=$2
19873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19874 $as_echo_n "checking for $ac_word... " >&6; }
19875 if ${ac_cv_path_SVG2PNG+:} false; then :
19876   $as_echo_n "(cached) " >&6
19877 else
19878   case $SVG2PNG in
19879   [\\/]* | ?:[\\/]*)
19880   ac_cv_path_SVG2PNG="$SVG2PNG" # Let the user override the test with a path.
19881   ;;
19882   *)
19883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19884 for as_dir in $PATH
19885 do
19886   IFS=$as_save_IFS
19887   test -z "$as_dir" && as_dir=.
19888     for ac_exec_ext in '' $ac_executable_extensions; do
19889   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19890     ac_cv_path_SVG2PNG="$as_dir/$ac_word$ac_exec_ext"
19891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19892     break 2
19893   fi
19894 done
19895   done
19896 IFS=$as_save_IFS
19897
19898   ;;
19899 esac
19900 fi
19901 SVG2PNG=$ac_cv_path_SVG2PNG
19902 if test -n "$SVG2PNG"; then
19903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVG2PNG" >&5
19904 $as_echo "$SVG2PNG" >&6; }
19905 else
19906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19907 $as_echo "no" >&6; }
19908 fi
19909
19910
19911   test -n "$SVG2PNG" && break
19912 done
19913 test -n "$SVG2PNG" || SVG2PNG="none"
19914
19915     if test "x${SVG2PNG}" = "xnone"; then
19916         enable_svg2png="no"
19917     fi
19918 fi
19919
19920
19921
19922
19923  if test "x${SVG2PNG_SCALES}" != "xyes" -a "x${SVG2PNG_SCALES}" != "x"; then
19924   USE_SVG2PNG_SCALES_TRUE=
19925   USE_SVG2PNG_SCALES_FALSE='#'
19926 else
19927   USE_SVG2PNG_SCALES_TRUE='#'
19928   USE_SVG2PNG_SCALES_FALSE=
19929 fi
19930
19931  if test "x${SVG2PNG_SCALES_FLAG}" != "xyes" -a "x${SVG2PNG_SCALES_FLAG}" != "x"; then
19932   USE_SVG2PNG_SCALES_FLAG_TRUE=
19933   USE_SVG2PNG_SCALES_FLAG_FALSE='#'
19934 else
19935   USE_SVG2PNG_SCALES_FLAG_TRUE='#'
19936   USE_SVG2PNG_SCALES_FLAG_FALSE=
19937 fi
19938
19939  if test "x${SVG2PNG_SCALES_NAV}" != "xyes" -a "x${SVG2PNG_SCALES_NAV}" != "x"; then
19940   USE_SVG2PNG_SCALES_NAV_TRUE=
19941   USE_SVG2PNG_SCALES_NAV_FALSE='#'
19942 else
19943   USE_SVG2PNG_SCALES_NAV_TRUE='#'
19944   USE_SVG2PNG_SCALES_NAV_FALSE=
19945 fi
19946
19947  if test "x${enable_svg2png}" = "xyes"; then
19948   USE_SVG2PNG_TRUE=
19949   USE_SVG2PNG_FALSE='#'
19950 else
19951   USE_SVG2PNG_TRUE='#'
19952   USE_SVG2PNG_FALSE=
19953 fi
19954
19955  if test "x${enable_svg}" = "xyes"; then
19956   USE_SVG_TRUE=
19957   USE_SVG_FALSE='#'
19958 else
19959   USE_SVG_TRUE='#'
19960   USE_SVG_FALSE=
19961 fi
19962
19963
19964 # XSLTS
19965
19966 # Check whether --with-xslts was given.
19967 if test "${with_xslts+set}" = set; then :
19968   withval=$with_xslts; XSLTS=$withval
19969 else
19970   XSLTS=""
19971 fi
19972
19973
19974
19975 # Check whether --with-saxon was given.
19976 if test "${with_saxon+set}" = set; then :
19977   withval=$with_saxon; SAXON=$withval
19978 else
19979   SAXON="saxon"
19980 fi
19981
19982
19983
19984 # Android Permissions
19985
19986 # Check whether --with-android-permissions was given.
19987 if test "${with_android_permissions+set}" = set; then :
19988   withval=$with_android_permissions; ANDROID_PERMISSIONS=$withval
19989 else
19990   ANDROID_PERMISSIONS=""
19991 fi
19992
19993
19994 # Android Project
19995
19996 # Check whether --with-android-project was given.
19997 if test "${with_android_project+set}" = set; then :
19998   withval=$with_android_project; ANDROID_PROJECT=$withval
19999 else
20000   ANDROID_PROJECT="3"
20001 fi
20002
20003
20004
20005 # NLS
20006
20007 # Check whether --enable-nls was given.
20008 if test "${enable_nls+set}" = set; then :
20009   enableval=$enable_nls; enable_nls=$enableval
20010 else
20011   enable_nls=yes
20012 fi
20013
20014
20015
20016 INTLIBS=""
20017 MOFILES=""
20018 POFILES=""
20019 POIFILES=""
20020 LINGUAS=""
20021
20022 xgettext_glade=no
20023 if test "x$enable_nls" = "xyes"; then
20024
20025   ac_fn_c_check_func "$LINENO" "gettext" "ac_cv_func_gettext"
20026 if test "x$ac_cv_func_gettext" = xyes; then :
20027   HAVEGETTEXT="yes"
20028 else
20029   INTLIBS="-lintl" HAVEGETTEXT="yes"
20030 fi
20031
20032   # Extract the first word of "xgettext", so it can be a program name with args.
20033 set dummy xgettext; ac_word=$2
20034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20035 $as_echo_n "checking for $ac_word... " >&6; }
20036 if ${ac_cv_prog_XGETTEXT+:} false; then :
20037   $as_echo_n "(cached) " >&6
20038 else
20039   if test -n "$XGETTEXT"; then
20040   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
20041 else
20042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20043 for as_dir in $PATH
20044 do
20045   IFS=$as_save_IFS
20046   test -z "$as_dir" && as_dir=.
20047     for ac_exec_ext in '' $ac_executable_extensions; do
20048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20049     ac_cv_prog_XGETTEXT="xgettext"
20050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20051     break 2
20052   fi
20053 done
20054   done
20055 IFS=$as_save_IFS
20056
20057 fi
20058 fi
20059 XGETTEXT=$ac_cv_prog_XGETTEXT
20060 if test -n "$XGETTEXT"; then
20061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
20062 $as_echo "$XGETTEXT" >&6; }
20063 else
20064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20065 $as_echo "no" >&6; }
20066 fi
20067
20068
20069   # Extract the first word of "msgmerge", so it can be a program name with args.
20070 set dummy msgmerge; ac_word=$2
20071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20072 $as_echo_n "checking for $ac_word... " >&6; }
20073 if ${ac_cv_prog_MSGMERGE+:} false; then :
20074   $as_echo_n "(cached) " >&6
20075 else
20076   if test -n "$MSGMERGE"; then
20077   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
20078 else
20079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20080 for as_dir in $PATH
20081 do
20082   IFS=$as_save_IFS
20083   test -z "$as_dir" && as_dir=.
20084     for ac_exec_ext in '' $ac_executable_extensions; do
20085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20086     ac_cv_prog_MSGMERGE="msgmerge"
20087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20088     break 2
20089   fi
20090 done
20091   done
20092 IFS=$as_save_IFS
20093
20094 fi
20095 fi
20096 MSGMERGE=$ac_cv_prog_MSGMERGE
20097 if test -n "$MSGMERGE"; then
20098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
20099 $as_echo "$MSGMERGE" >&6; }
20100 else
20101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20102 $as_echo "no" >&6; }
20103 fi
20104
20105
20106   # Extract the first word of "msgfmt", so it can be a program name with args.
20107 set dummy msgfmt; ac_word=$2
20108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20109 $as_echo_n "checking for $ac_word... " >&6; }
20110 if ${ac_cv_prog_MSGFMT+:} false; then :
20111   $as_echo_n "(cached) " >&6
20112 else
20113   if test -n "$MSGFMT"; then
20114   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
20115 else
20116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20117 for as_dir in $PATH
20118 do
20119   IFS=$as_save_IFS
20120   test -z "$as_dir" && as_dir=.
20121     for ac_exec_ext in '' $ac_executable_extensions; do
20122   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20123     ac_cv_prog_MSGFMT="msgfmt"
20124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20125     break 2
20126   fi
20127 done
20128   done
20129 IFS=$as_save_IFS
20130
20131 fi
20132 fi
20133 MSGFMT=$ac_cv_prog_MSGFMT
20134 if test -n "$MSGFMT"; then
20135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
20136 $as_echo "$MSGFMT" >&6; }
20137 else
20138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20139 $as_echo "no" >&6; }
20140 fi
20141
20142
20143
20144   if test "$XGETTEXT" != ""; then
20145     if $XGETTEXT --help 2>&1 | grep illegal >/dev/null ; then
20146         echo "xgettext isn't GNU version"
20147         XGETTEXT=""
20148     else
20149         if echo '<test/>' | $XGETTEXT -L Glade - ; then
20150             xgettext_glade=yes
20151         fi
20152     fi
20153   fi
20154
20155   if test "$XGETTEXT" != "" ; then
20156      PO=""
20157      if test "$LINGUAS" = ""; then
20158            ling=` (cd $srcdir/po; /bin/ls *.po.in) `
20159            for l in $ling; do
20160                 lcode=`basename $l .po.in`
20161                 LINGUAS="$LINGUAS$lcode "
20162            done
20163     fi
20164
20165 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
20166
20167     echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
20168   else
20169    LINGUAS=""
20170    PO=""
20171    echo "xgettext doesn't exist; will not build i18n support"
20172    enable_nls=no
20173  fi
20174  for lang in $LINGUAS; do
20175     MOFILES="$MOFILES $lang.mo"
20176  done
20177  for lang in $LINGUAS; do
20178     POFILES="$POFILES $lang.po"
20179  done
20180  for lang in $LINGUAS; do
20181     POIFILES="$POIFILES $lang.po.in"
20182  done
20183
20184
20185
20186
20187
20188
20189
20190         MKINSTALLDIRS=
20191   if test -n "$ac_aux_dir"; then
20192     case "$ac_aux_dir" in
20193       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
20194       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
20195     esac
20196   fi
20197   if test -z "$MKINSTALLDIRS"; then
20198     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
20199   fi
20200
20201
20202
20203   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
20204 $as_echo_n "checking whether NLS is requested... " >&6; }
20205     # Check whether --enable-nls was given.
20206 if test "${enable_nls+set}" = set; then :
20207   enableval=$enable_nls; USE_NLS=$enableval
20208 else
20209   USE_NLS=yes
20210 fi
20211
20212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20213 $as_echo "$USE_NLS" >&6; }
20214
20215
20216
20217
20218
20219
20220 # Prepare PATH_SEPARATOR.
20221 # The user is always right.
20222 if test "${PATH_SEPARATOR+set}" != set; then
20223   echo "#! /bin/sh" >conf$$.sh
20224   echo  "exit 0"   >>conf$$.sh
20225   chmod +x conf$$.sh
20226   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20227     PATH_SEPARATOR=';'
20228   else
20229     PATH_SEPARATOR=:
20230   fi
20231   rm -f conf$$.sh
20232 fi
20233
20234 # Find out how to test for executable files. Don't use a zero-byte file,
20235 # as systems may use methods other than mode bits to determine executability.
20236 cat >conf$$.file <<_ASEOF
20237 #! /bin/sh
20238 exit 0
20239 _ASEOF
20240 chmod +x conf$$.file
20241 if test -x conf$$.file >/dev/null 2>&1; then
20242   ac_executable_p="test -x"
20243 else
20244   ac_executable_p="test -f"
20245 fi
20246 rm -f conf$$.file
20247
20248 # Extract the first word of "msgfmt", so it can be a program name with args.
20249 set dummy msgfmt; ac_word=$2
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20251 $as_echo_n "checking for $ac_word... " >&6; }
20252 if ${ac_cv_path_MSGFMT+:} false; then :
20253   $as_echo_n "(cached) " >&6
20254 else
20255   case "$MSGFMT" in
20256   [\\/]* | ?:[\\/]*)
20257     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
20258     ;;
20259   *)
20260     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20261     for ac_dir in $PATH; do
20262       IFS="$ac_save_IFS"
20263       test -z "$ac_dir" && ac_dir=.
20264       for ac_exec_ext in '' $ac_executable_extensions; do
20265         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20266           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
20267      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
20268             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
20269             break 2
20270           fi
20271         fi
20272       done
20273     done
20274     IFS="$ac_save_IFS"
20275   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
20276     ;;
20277 esac
20278 fi
20279 MSGFMT="$ac_cv_path_MSGFMT"
20280 if test "$MSGFMT" != ":"; then
20281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
20282 $as_echo "$MSGFMT" >&6; }
20283 else
20284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20285 $as_echo "no" >&6; }
20286 fi
20287
20288   # Extract the first word of "gmsgfmt", so it can be a program name with args.
20289 set dummy gmsgfmt; ac_word=$2
20290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20291 $as_echo_n "checking for $ac_word... " >&6; }
20292 if ${ac_cv_path_GMSGFMT+:} false; then :
20293   $as_echo_n "(cached) " >&6
20294 else
20295   case $GMSGFMT in
20296   [\\/]* | ?:[\\/]*)
20297   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
20298   ;;
20299   *)
20300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20301 for as_dir in $PATH
20302 do
20303   IFS=$as_save_IFS
20304   test -z "$as_dir" && as_dir=.
20305     for ac_exec_ext in '' $ac_executable_extensions; do
20306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20307     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
20308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20309     break 2
20310   fi
20311 done
20312   done
20313 IFS=$as_save_IFS
20314
20315   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
20316   ;;
20317 esac
20318 fi
20319 GMSGFMT=$ac_cv_path_GMSGFMT
20320 if test -n "$GMSGFMT"; then
20321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
20322 $as_echo "$GMSGFMT" >&6; }
20323 else
20324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20325 $as_echo "no" >&6; }
20326 fi
20327
20328
20329
20330
20331 # Prepare PATH_SEPARATOR.
20332 # The user is always right.
20333 if test "${PATH_SEPARATOR+set}" != set; then
20334   echo "#! /bin/sh" >conf$$.sh
20335   echo  "exit 0"   >>conf$$.sh
20336   chmod +x conf$$.sh
20337   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20338     PATH_SEPARATOR=';'
20339   else
20340     PATH_SEPARATOR=:
20341   fi
20342   rm -f conf$$.sh
20343 fi
20344
20345 # Find out how to test for executable files. Don't use a zero-byte file,
20346 # as systems may use methods other than mode bits to determine executability.
20347 cat >conf$$.file <<_ASEOF
20348 #! /bin/sh
20349 exit 0
20350 _ASEOF
20351 chmod +x conf$$.file
20352 if test -x conf$$.file >/dev/null 2>&1; then
20353   ac_executable_p="test -x"
20354 else
20355   ac_executable_p="test -f"
20356 fi
20357 rm -f conf$$.file
20358
20359 # Extract the first word of "xgettext", so it can be a program name with args.
20360 set dummy xgettext; ac_word=$2
20361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20362 $as_echo_n "checking for $ac_word... " >&6; }
20363 if ${ac_cv_path_XGETTEXT+:} false; then :
20364   $as_echo_n "(cached) " >&6
20365 else
20366   case "$XGETTEXT" in
20367   [\\/]* | ?:[\\/]*)
20368     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
20369     ;;
20370   *)
20371     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20372     for ac_dir in $PATH; do
20373       IFS="$ac_save_IFS"
20374       test -z "$ac_dir" && ac_dir=.
20375       for ac_exec_ext in '' $ac_executable_extensions; do
20376         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20377           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
20378      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
20379             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
20380             break 2
20381           fi
20382         fi
20383       done
20384     done
20385     IFS="$ac_save_IFS"
20386   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
20387     ;;
20388 esac
20389 fi
20390 XGETTEXT="$ac_cv_path_XGETTEXT"
20391 if test "$XGETTEXT" != ":"; then
20392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
20393 $as_echo "$XGETTEXT" >&6; }
20394 else
20395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20396 $as_echo "no" >&6; }
20397 fi
20398
20399     rm -f messages.po
20400
20401
20402 # Prepare PATH_SEPARATOR.
20403 # The user is always right.
20404 if test "${PATH_SEPARATOR+set}" != set; then
20405   echo "#! /bin/sh" >conf$$.sh
20406   echo  "exit 0"   >>conf$$.sh
20407   chmod +x conf$$.sh
20408   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20409     PATH_SEPARATOR=';'
20410   else
20411     PATH_SEPARATOR=:
20412   fi
20413   rm -f conf$$.sh
20414 fi
20415
20416 # Find out how to test for executable files. Don't use a zero-byte file,
20417 # as systems may use methods other than mode bits to determine executability.
20418 cat >conf$$.file <<_ASEOF
20419 #! /bin/sh
20420 exit 0
20421 _ASEOF
20422 chmod +x conf$$.file
20423 if test -x conf$$.file >/dev/null 2>&1; then
20424   ac_executable_p="test -x"
20425 else
20426   ac_executable_p="test -f"
20427 fi
20428 rm -f conf$$.file
20429
20430 # Extract the first word of "msgmerge", so it can be a program name with args.
20431 set dummy msgmerge; ac_word=$2
20432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20433 $as_echo_n "checking for $ac_word... " >&6; }
20434 if ${ac_cv_path_MSGMERGE+:} false; then :
20435   $as_echo_n "(cached) " >&6
20436 else
20437   case "$MSGMERGE" in
20438   [\\/]* | ?:[\\/]*)
20439     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
20440     ;;
20441   *)
20442     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20443     for ac_dir in $PATH; do
20444       IFS="$ac_save_IFS"
20445       test -z "$ac_dir" && ac_dir=.
20446       for ac_exec_ext in '' $ac_executable_extensions; do
20447         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20448           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
20449             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
20450             break 2
20451           fi
20452         fi
20453       done
20454     done
20455     IFS="$ac_save_IFS"
20456   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
20457     ;;
20458 esac
20459 fi
20460 MSGMERGE="$ac_cv_path_MSGMERGE"
20461 if test "$MSGMERGE" != ":"; then
20462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
20463 $as_echo "$MSGMERGE" >&6; }
20464 else
20465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20466 $as_echo "no" >&6; }
20467 fi
20468
20469
20470       if test "$GMSGFMT" != ":"; then
20471             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
20472        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
20473       : ;
20474     else
20475       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
20476       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
20477 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
20478       GMSGFMT=":"
20479     fi
20480   fi
20481
20482       if test "$XGETTEXT" != ":"; then
20483             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
20484        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
20485       : ;
20486     else
20487       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
20488 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
20489       XGETTEXT=":"
20490     fi
20491         rm -f messages.po
20492   fi
20493
20494   ac_config_commands="$ac_config_commands default-1"
20495
20496
20497 if test -n "$ac_tool_prefix"; then
20498   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
20499 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
20500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20501 $as_echo_n "checking for $ac_word... " >&6; }
20502 if ${ac_cv_prog_RANLIB+:} false; then :
20503   $as_echo_n "(cached) " >&6
20504 else
20505   if test -n "$RANLIB"; then
20506   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
20507 else
20508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20509 for as_dir in $PATH
20510 do
20511   IFS=$as_save_IFS
20512   test -z "$as_dir" && as_dir=.
20513     for ac_exec_ext in '' $ac_executable_extensions; do
20514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20515     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
20516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20517     break 2
20518   fi
20519 done
20520   done
20521 IFS=$as_save_IFS
20522
20523 fi
20524 fi
20525 RANLIB=$ac_cv_prog_RANLIB
20526 if test -n "$RANLIB"; then
20527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
20528 $as_echo "$RANLIB" >&6; }
20529 else
20530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20531 $as_echo "no" >&6; }
20532 fi
20533
20534
20535 fi
20536 if test -z "$ac_cv_prog_RANLIB"; then
20537   ac_ct_RANLIB=$RANLIB
20538   # Extract the first word of "ranlib", so it can be a program name with args.
20539 set dummy ranlib; ac_word=$2
20540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20541 $as_echo_n "checking for $ac_word... " >&6; }
20542 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
20543   $as_echo_n "(cached) " >&6
20544 else
20545   if test -n "$ac_ct_RANLIB"; then
20546   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
20547 else
20548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20549 for as_dir in $PATH
20550 do
20551   IFS=$as_save_IFS
20552   test -z "$as_dir" && as_dir=.
20553     for ac_exec_ext in '' $ac_executable_extensions; do
20554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20555     ac_cv_prog_ac_ct_RANLIB="ranlib"
20556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20557     break 2
20558   fi
20559 done
20560   done
20561 IFS=$as_save_IFS
20562
20563 fi
20564 fi
20565 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
20566 if test -n "$ac_ct_RANLIB"; then
20567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
20568 $as_echo "$ac_ct_RANLIB" >&6; }
20569 else
20570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20571 $as_echo "no" >&6; }
20572 fi
20573
20574   if test "x$ac_ct_RANLIB" = x; then
20575     RANLIB=":"
20576   else
20577     case $cross_compiling:$ac_tool_warned in
20578 yes:)
20579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20581 ac_tool_warned=yes ;;
20582 esac
20583     RANLIB=$ac_ct_RANLIB
20584   fi
20585 else
20586   RANLIB="$ac_cv_prog_RANLIB"
20587 fi
20588
20589
20590         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
20591 $as_echo_n "checking for strerror in -lcposix... " >&6; }
20592 if ${ac_cv_lib_cposix_strerror+:} false; then :
20593   $as_echo_n "(cached) " >&6
20594 else
20595   ac_check_lib_save_LIBS=$LIBS
20596 LIBS="-lcposix  $LIBS"
20597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20598 /* end confdefs.h.  */
20599
20600 /* Override any GCC internal prototype to avoid an error.
20601    Use char because int might match the return type of a GCC
20602    builtin and then its argument prototype would still apply.  */
20603 #ifdef __cplusplus
20604 extern "C"
20605 #endif
20606 char strerror ();
20607 int
20608 main ()
20609 {
20610 return strerror ();
20611   ;
20612   return 0;
20613 }
20614 _ACEOF
20615 if ac_fn_c_try_link "$LINENO"; then :
20616   ac_cv_lib_cposix_strerror=yes
20617 else
20618   ac_cv_lib_cposix_strerror=no
20619 fi
20620 rm -f core conftest.err conftest.$ac_objext \
20621     conftest$ac_exeext conftest.$ac_ext
20622 LIBS=$ac_check_lib_save_LIBS
20623 fi
20624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
20625 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
20626 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
20627   LIBS="$LIBS -lcposix"
20628 fi
20629
20630
20631
20632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20633 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20634 if ${ac_cv_c_const+:} false; then :
20635   $as_echo_n "(cached) " >&6
20636 else
20637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20638 /* end confdefs.h.  */
20639
20640 int
20641 main ()
20642 {
20643 /* FIXME: Include the comments suggested by Paul. */
20644 #ifndef __cplusplus
20645   /* Ultrix mips cc rejects this.  */
20646   typedef int charset[2];
20647   const charset cs;
20648   /* SunOS 4.1.1 cc rejects this.  */
20649   char const *const *pcpcc;
20650   char **ppc;
20651   /* NEC SVR4.0.2 mips cc rejects this.  */
20652   struct point {int x, y;};
20653   static struct point const zero = {0,0};
20654   /* AIX XL C 1.02.0.0 rejects this.
20655      It does not let you subtract one const X* pointer from another in
20656      an arm of an if-expression whose if-part is not a constant
20657      expression */
20658   const char *g = "string";
20659   pcpcc = &g + (g ? g-g : 0);
20660   /* HPUX 7.0 cc rejects these. */
20661   ++pcpcc;
20662   ppc = (char**) pcpcc;
20663   pcpcc = (char const *const *) ppc;
20664   { /* SCO 3.2v4 cc rejects this.  */
20665     char *t;
20666     char const *s = 0 ? (char *) 0 : (char const *) 0;
20667
20668     *t++ = 0;
20669     if (s) return 0;
20670   }
20671   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20672     int x[] = {25, 17};
20673     const int *foo = &x[0];
20674     ++foo;
20675   }
20676   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20677     typedef const int *iptr;
20678     iptr p = 0;
20679     ++p;
20680   }
20681   { /* AIX XL C 1.02.0.0 rejects this saying
20682        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20683     struct s { int j; const int *ap[3]; };
20684     struct s *b; b->j = 5;
20685   }
20686   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20687     const int foo = 10;
20688     if (!foo) return 0;
20689   }
20690   return !cs[0] && !zero.x;
20691 #endif
20692
20693   ;
20694   return 0;
20695 }
20696 _ACEOF
20697 if ac_fn_c_try_compile "$LINENO"; then :
20698   ac_cv_c_const=yes
20699 else
20700   ac_cv_c_const=no
20701 fi
20702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20703 fi
20704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20705 $as_echo "$ac_cv_c_const" >&6; }
20706 if test $ac_cv_c_const = no; then
20707
20708 $as_echo "#define const /**/" >>confdefs.h
20709
20710 fi
20711
20712
20713   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
20714 $as_echo_n "checking for signed... " >&6; }
20715 if ${bh_cv_c_signed+:} false; then :
20716   $as_echo_n "(cached) " >&6
20717 else
20718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20719 /* end confdefs.h.  */
20720
20721 int
20722 main ()
20723 {
20724 signed char x;
20725   ;
20726   return 0;
20727 }
20728 _ACEOF
20729 if ac_fn_c_try_compile "$LINENO"; then :
20730   bh_cv_c_signed=yes
20731 else
20732   bh_cv_c_signed=no
20733 fi
20734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20735 fi
20736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
20737 $as_echo "$bh_cv_c_signed" >&6; }
20738   if test $bh_cv_c_signed = no; then
20739
20740 $as_echo "#define signed /**/" >>confdefs.h
20741
20742   fi
20743
20744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
20745 $as_echo_n "checking for inline... " >&6; }
20746 if ${ac_cv_c_inline+:} false; then :
20747   $as_echo_n "(cached) " >&6
20748 else
20749   ac_cv_c_inline=no
20750 for ac_kw in inline __inline__ __inline; do
20751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20752 /* end confdefs.h.  */
20753 #ifndef __cplusplus
20754 typedef int foo_t;
20755 static $ac_kw foo_t static_foo () {return 0; }
20756 $ac_kw foo_t foo () {return 0; }
20757 #endif
20758
20759 _ACEOF
20760 if ac_fn_c_try_compile "$LINENO"; then :
20761   ac_cv_c_inline=$ac_kw
20762 fi
20763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20764   test "$ac_cv_c_inline" != no && break
20765 done
20766
20767 fi
20768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
20769 $as_echo "$ac_cv_c_inline" >&6; }
20770
20771 case $ac_cv_c_inline in
20772   inline | yes) ;;
20773   *)
20774     case $ac_cv_c_inline in
20775       no) ac_val=;;
20776       *) ac_val=$ac_cv_c_inline;;
20777     esac
20778     cat >>confdefs.h <<_ACEOF
20779 #ifndef __cplusplus
20780 #define inline $ac_val
20781 #endif
20782 _ACEOF
20783     ;;
20784 esac
20785
20786 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
20787 if test "x$ac_cv_type_off_t" = xyes; then :
20788
20789 else
20790
20791 cat >>confdefs.h <<_ACEOF
20792 #define off_t long int
20793 _ACEOF
20794
20795 fi
20796
20797 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20798 if test "x$ac_cv_type_size_t" = xyes; then :
20799
20800 else
20801
20802 cat >>confdefs.h <<_ACEOF
20803 #define size_t unsigned int
20804 _ACEOF
20805
20806 fi
20807
20808
20809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
20810 $as_echo_n "checking for long long... " >&6; }
20811 if ${ac_cv_type_long_long+:} false; then :
20812   $as_echo_n "(cached) " >&6
20813 else
20814   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20815 /* end confdefs.h.  */
20816 long long ll = 1LL; int i = 63;
20817 int
20818 main ()
20819 {
20820 long long llmax = (long long) -1;
20821      return ll << i | ll >> i | llmax / ll | llmax % ll;
20822   ;
20823   return 0;
20824 }
20825 _ACEOF
20826 if ac_fn_c_try_link "$LINENO"; then :
20827   ac_cv_type_long_long=yes
20828 else
20829   ac_cv_type_long_long=no
20830 fi
20831 rm -f core conftest.err conftest.$ac_objext \
20832     conftest$ac_exeext conftest.$ac_ext
20833 fi
20834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
20835 $as_echo "$ac_cv_type_long_long" >&6; }
20836   if test $ac_cv_type_long_long = yes; then
20837
20838 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
20839
20840   fi
20841
20842
20843   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
20844 $as_echo_n "checking for long double... " >&6; }
20845 if ${gt_cv_c_long_double+:} false; then :
20846   $as_echo_n "(cached) " >&6
20847 else
20848   if test "$GCC" = yes; then
20849        gt_cv_c_long_double=yes
20850      else
20851        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20852 /* end confdefs.h.  */
20853
20854          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
20855          long double foo = 0.0;
20856          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
20857          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
20858
20859 int
20860 main ()
20861 {
20862
20863   ;
20864   return 0;
20865 }
20866 _ACEOF
20867 if ac_fn_c_try_compile "$LINENO"; then :
20868   gt_cv_c_long_double=yes
20869 else
20870   gt_cv_c_long_double=no
20871 fi
20872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20873      fi
20874 fi
20875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
20876 $as_echo "$gt_cv_c_long_double" >&6; }
20877   if test $gt_cv_c_long_double = yes; then
20878
20879 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
20880
20881   fi
20882
20883
20884   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
20885 $as_echo_n "checking for wchar_t... " >&6; }
20886 if ${gt_cv_c_wchar_t+:} false; then :
20887   $as_echo_n "(cached) " >&6
20888 else
20889   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20890 /* end confdefs.h.  */
20891 #include <stddef.h>
20892        wchar_t foo = (wchar_t)'\0';
20893 int
20894 main ()
20895 {
20896
20897   ;
20898   return 0;
20899 }
20900 _ACEOF
20901 if ac_fn_c_try_compile "$LINENO"; then :
20902   gt_cv_c_wchar_t=yes
20903 else
20904   gt_cv_c_wchar_t=no
20905 fi
20906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20907 fi
20908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
20909 $as_echo "$gt_cv_c_wchar_t" >&6; }
20910   if test $gt_cv_c_wchar_t = yes; then
20911
20912 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
20913
20914   fi
20915
20916
20917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
20918 $as_echo_n "checking for wint_t... " >&6; }
20919 if ${gt_cv_c_wint_t+:} false; then :
20920   $as_echo_n "(cached) " >&6
20921 else
20922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20923 /* end confdefs.h.  */
20924 #include <wchar.h>
20925        wint_t foo = (wchar_t)'\0';
20926 int
20927 main ()
20928 {
20929
20930   ;
20931   return 0;
20932 }
20933 _ACEOF
20934 if ac_fn_c_try_compile "$LINENO"; then :
20935   gt_cv_c_wint_t=yes
20936 else
20937   gt_cv_c_wint_t=no
20938 fi
20939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20940 fi
20941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
20942 $as_echo "$gt_cv_c_wint_t" >&6; }
20943   if test $gt_cv_c_wint_t = yes; then
20944
20945 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
20946
20947   fi
20948
20949
20950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20951 $as_echo_n "checking for inttypes.h... " >&6; }
20952 if ${jm_ac_cv_header_inttypes_h+:} false; then :
20953   $as_echo_n "(cached) " >&6
20954 else
20955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20956 /* end confdefs.h.  */
20957 #include <sys/types.h>
20958 #include <inttypes.h>
20959 int
20960 main ()
20961 {
20962 uintmax_t i = (uintmax_t) -1;
20963   ;
20964   return 0;
20965 }
20966 _ACEOF
20967 if ac_fn_c_try_compile "$LINENO"; then :
20968   jm_ac_cv_header_inttypes_h=yes
20969 else
20970   jm_ac_cv_header_inttypes_h=no
20971 fi
20972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20973 fi
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
20975 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
20976   if test $jm_ac_cv_header_inttypes_h = yes; then
20977
20978 cat >>confdefs.h <<_ACEOF
20979 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
20980 _ACEOF
20981
20982   fi
20983
20984
20985   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
20986 $as_echo_n "checking for stdint.h... " >&6; }
20987 if ${jm_ac_cv_header_stdint_h+:} false; then :
20988   $as_echo_n "(cached) " >&6
20989 else
20990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20991 /* end confdefs.h.  */
20992 #include <sys/types.h>
20993 #include <stdint.h>
20994 int
20995 main ()
20996 {
20997 uintmax_t i = (uintmax_t) -1;
20998   ;
20999   return 0;
21000 }
21001 _ACEOF
21002 if ac_fn_c_try_compile "$LINENO"; then :
21003   jm_ac_cv_header_stdint_h=yes
21004 else
21005   jm_ac_cv_header_stdint_h=no
21006 fi
21007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21008 fi
21009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
21010 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
21011   if test $jm_ac_cv_header_stdint_h = yes; then
21012
21013 cat >>confdefs.h <<_ACEOF
21014 #define HAVE_STDINT_H_WITH_UINTMAX 1
21015 _ACEOF
21016
21017   fi
21018
21019
21020
21021
21022   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
21023 $as_echo_n "checking for intmax_t... " >&6; }
21024 if ${gt_cv_c_intmax_t+:} false; then :
21025   $as_echo_n "(cached) " >&6
21026 else
21027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21028 /* end confdefs.h.  */
21029
21030 #include <stddef.h>
21031 #include <stdlib.h>
21032 #if HAVE_STDINT_H_WITH_UINTMAX
21033 #include <stdint.h>
21034 #endif
21035 #if HAVE_INTTYPES_H_WITH_UINTMAX
21036 #include <inttypes.h>
21037 #endif
21038
21039 int
21040 main ()
21041 {
21042 intmax_t x = -1;
21043   ;
21044   return 0;
21045 }
21046 _ACEOF
21047 if ac_fn_c_try_compile "$LINENO"; then :
21048   gt_cv_c_intmax_t=yes
21049 else
21050   gt_cv_c_intmax_t=no
21051 fi
21052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21053 fi
21054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
21055 $as_echo "$gt_cv_c_intmax_t" >&6; }
21056   if test $gt_cv_c_intmax_t = yes; then
21057
21058 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
21059
21060   fi
21061
21062
21063
21064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
21065 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
21066 if ${gt_cv_func_printf_posix+:} false; then :
21067   $as_echo_n "(cached) " >&6
21068 else
21069
21070       if test "$cross_compiling" = yes; then :
21071
21072         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21073 /* end confdefs.h.  */
21074
21075 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
21076   notposix
21077 #endif
21078
21079 _ACEOF
21080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21081   $EGREP "notposix" >/dev/null 2>&1; then :
21082   gt_cv_func_printf_posix="guessing no"
21083 else
21084   gt_cv_func_printf_posix="guessing yes"
21085 fi
21086 rm -f conftest*
21087
21088
21089 else
21090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21091 /* end confdefs.h.  */
21092
21093 #include <stdio.h>
21094 #include <string.h>
21095 /* The string "%2$d %1$d", with dollar characters protected from the shell's
21096    dollar expansion (possibly an autoconf bug).  */
21097 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
21098 static char buf[100];
21099 int main ()
21100 {
21101   sprintf (buf, format, 33, 55);
21102   return (strcmp (buf, "55 33") != 0);
21103 }
21104 _ACEOF
21105 if ac_fn_c_try_run "$LINENO"; then :
21106   gt_cv_func_printf_posix=yes
21107 else
21108   gt_cv_func_printf_posix=no
21109 fi
21110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21111   conftest.$ac_objext conftest.beam conftest.$ac_ext
21112 fi
21113
21114
21115 fi
21116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
21117 $as_echo "$gt_cv_func_printf_posix" >&6; }
21118   case $gt_cv_func_printf_posix in
21119     *yes)
21120
21121 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
21122
21123       ;;
21124   esac
21125
21126 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21127 # for constant arguments.  Useless!
21128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
21129 $as_echo_n "checking for working alloca.h... " >&6; }
21130 if ${ac_cv_working_alloca_h+:} false; then :
21131   $as_echo_n "(cached) " >&6
21132 else
21133   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21134 /* end confdefs.h.  */
21135 #include <alloca.h>
21136 int
21137 main ()
21138 {
21139 char *p = (char *) alloca (2 * sizeof (int));
21140                           if (p) return 0;
21141   ;
21142   return 0;
21143 }
21144 _ACEOF
21145 if ac_fn_c_try_link "$LINENO"; then :
21146   ac_cv_working_alloca_h=yes
21147 else
21148   ac_cv_working_alloca_h=no
21149 fi
21150 rm -f core conftest.err conftest.$ac_objext \
21151     conftest$ac_exeext conftest.$ac_ext
21152 fi
21153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
21154 $as_echo "$ac_cv_working_alloca_h" >&6; }
21155 if test $ac_cv_working_alloca_h = yes; then
21156
21157 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
21158
21159 fi
21160
21161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
21162 $as_echo_n "checking for alloca... " >&6; }
21163 if ${ac_cv_func_alloca_works+:} false; then :
21164   $as_echo_n "(cached) " >&6
21165 else
21166   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21167 /* end confdefs.h.  */
21168 #ifdef __GNUC__
21169 # define alloca __builtin_alloca
21170 #else
21171 # ifdef _MSC_VER
21172 #  include <malloc.h>
21173 #  define alloca _alloca
21174 # else
21175 #  ifdef HAVE_ALLOCA_H
21176 #   include <alloca.h>
21177 #  else
21178 #   ifdef _AIX
21179  #pragma alloca
21180 #   else
21181 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21182 void *alloca (size_t);
21183 #    endif
21184 #   endif
21185 #  endif
21186 # endif
21187 #endif
21188
21189 int
21190 main ()
21191 {
21192 char *p = (char *) alloca (1);
21193                                     if (p) return 0;
21194   ;
21195   return 0;
21196 }
21197 _ACEOF
21198 if ac_fn_c_try_link "$LINENO"; then :
21199   ac_cv_func_alloca_works=yes
21200 else
21201   ac_cv_func_alloca_works=no
21202 fi
21203 rm -f core conftest.err conftest.$ac_objext \
21204     conftest$ac_exeext conftest.$ac_ext
21205 fi
21206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
21207 $as_echo "$ac_cv_func_alloca_works" >&6; }
21208
21209 if test $ac_cv_func_alloca_works = yes; then
21210
21211 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
21212
21213 else
21214   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21215 # that cause trouble.  Some versions do not even contain alloca or
21216 # contain a buggy version.  If you still want to use their alloca,
21217 # use ar to extract alloca.o from them instead of compiling alloca.c.
21218
21219 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
21220
21221 $as_echo "#define C_ALLOCA 1" >>confdefs.h
21222
21223
21224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
21225 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
21226 if ${ac_cv_os_cray+:} false; then :
21227   $as_echo_n "(cached) " >&6
21228 else
21229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21230 /* end confdefs.h.  */
21231 #if defined CRAY && ! defined CRAY2
21232 webecray
21233 #else
21234 wenotbecray
21235 #endif
21236
21237 _ACEOF
21238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21239   $EGREP "webecray" >/dev/null 2>&1; then :
21240   ac_cv_os_cray=yes
21241 else
21242   ac_cv_os_cray=no
21243 fi
21244 rm -f conftest*
21245
21246 fi
21247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
21248 $as_echo "$ac_cv_os_cray" >&6; }
21249 if test $ac_cv_os_cray = yes; then
21250   for ac_func in _getb67 GETB67 getb67; do
21251     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21252 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21253 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21254
21255 cat >>confdefs.h <<_ACEOF
21256 #define CRAY_STACKSEG_END $ac_func
21257 _ACEOF
21258
21259     break
21260 fi
21261
21262   done
21263 fi
21264
21265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
21266 $as_echo_n "checking stack direction for C alloca... " >&6; }
21267 if ${ac_cv_c_stack_direction+:} false; then :
21268   $as_echo_n "(cached) " >&6
21269 else
21270   if test "$cross_compiling" = yes; then :
21271   ac_cv_c_stack_direction=0
21272 else
21273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21274 /* end confdefs.h.  */
21275 $ac_includes_default
21276 int
21277 find_stack_direction ()
21278 {
21279   static char *addr = 0;
21280   auto char dummy;
21281   if (addr == 0)
21282     {
21283       addr = &dummy;
21284       return find_stack_direction ();
21285     }
21286   else
21287     return (&dummy > addr) ? 1 : -1;
21288 }
21289
21290 int
21291 main ()
21292 {
21293   return find_stack_direction () < 0;
21294 }
21295 _ACEOF
21296 if ac_fn_c_try_run "$LINENO"; then :
21297   ac_cv_c_stack_direction=1
21298 else
21299   ac_cv_c_stack_direction=-1
21300 fi
21301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21302   conftest.$ac_objext conftest.beam conftest.$ac_ext
21303 fi
21304
21305 fi
21306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
21307 $as_echo "$ac_cv_c_stack_direction" >&6; }
21308 cat >>confdefs.h <<_ACEOF
21309 #define STACK_DIRECTION $ac_cv_c_stack_direction
21310 _ACEOF
21311
21312
21313 fi
21314
21315
21316
21317
21318   for ac_header in $ac_header_list
21319 do :
21320   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21321 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21322 "
21323 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21324   cat >>confdefs.h <<_ACEOF
21325 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21326 _ACEOF
21327
21328 fi
21329
21330 done
21331
21332
21333
21334
21335
21336
21337
21338
21339 for ac_func in getpagesize
21340 do :
21341   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
21342 if test "x$ac_cv_func_getpagesize" = xyes; then :
21343   cat >>confdefs.h <<_ACEOF
21344 #define HAVE_GETPAGESIZE 1
21345 _ACEOF
21346
21347 fi
21348 done
21349
21350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
21351 $as_echo_n "checking for working mmap... " >&6; }
21352 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
21353   $as_echo_n "(cached) " >&6
21354 else
21355   if test "$cross_compiling" = yes; then :
21356   ac_cv_func_mmap_fixed_mapped=no
21357 else
21358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21359 /* end confdefs.h.  */
21360 $ac_includes_default
21361 /* malloc might have been renamed as rpl_malloc. */
21362 #undef malloc
21363
21364 /* Thanks to Mike Haertel and Jim Avera for this test.
21365    Here is a matrix of mmap possibilities:
21366         mmap private not fixed
21367         mmap private fixed at somewhere currently unmapped
21368         mmap private fixed at somewhere already mapped
21369         mmap shared not fixed
21370         mmap shared fixed at somewhere currently unmapped
21371         mmap shared fixed at somewhere already mapped
21372    For private mappings, we should verify that changes cannot be read()
21373    back from the file, nor mmap's back from the file at a different
21374    address.  (There have been systems where private was not correctly
21375    implemented like the infamous i386 svr4.0, and systems where the
21376    VM page cache was not coherent with the file system buffer cache
21377    like early versions of FreeBSD and possibly contemporary NetBSD.)
21378    For shared mappings, we should conversely verify that changes get
21379    propagated back to all the places they're supposed to be.
21380
21381    Grep wants private fixed already mapped.
21382    The main things grep needs to know about mmap are:
21383    * does it exist and is it safe to write into the mmap'd area
21384    * how to use it (BSD variants)  */
21385
21386 #include <fcntl.h>
21387 #include <sys/mman.h>
21388
21389 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
21390 char *malloc ();
21391 #endif
21392
21393 /* This mess was copied from the GNU getpagesize.h.  */
21394 #ifndef HAVE_GETPAGESIZE
21395 # ifdef _SC_PAGESIZE
21396 #  define getpagesize() sysconf(_SC_PAGESIZE)
21397 # else /* no _SC_PAGESIZE */
21398 #  ifdef HAVE_SYS_PARAM_H
21399 #   include <sys/param.h>
21400 #   ifdef EXEC_PAGESIZE
21401 #    define getpagesize() EXEC_PAGESIZE
21402 #   else /* no EXEC_PAGESIZE */
21403 #    ifdef NBPG
21404 #     define getpagesize() NBPG * CLSIZE
21405 #     ifndef CLSIZE
21406 #      define CLSIZE 1
21407 #     endif /* no CLSIZE */
21408 #    else /* no NBPG */
21409 #     ifdef NBPC
21410 #      define getpagesize() NBPC
21411 #     else /* no NBPC */
21412 #      ifdef PAGESIZE
21413 #       define getpagesize() PAGESIZE
21414 #      endif /* PAGESIZE */
21415 #     endif /* no NBPC */
21416 #    endif /* no NBPG */
21417 #   endif /* no EXEC_PAGESIZE */
21418 #  else /* no HAVE_SYS_PARAM_H */
21419 #   define getpagesize() 8192   /* punt totally */
21420 #  endif /* no HAVE_SYS_PARAM_H */
21421 # endif /* no _SC_PAGESIZE */
21422
21423 #endif /* no HAVE_GETPAGESIZE */
21424
21425 int
21426 main ()
21427 {
21428   char *data, *data2, *data3;
21429   const char *cdata2;
21430   int i, pagesize;
21431   int fd, fd2;
21432
21433   pagesize = getpagesize ();
21434
21435   /* First, make a file with some known garbage in it. */
21436   data = (char *) malloc (pagesize);
21437   if (!data)
21438     return 1;
21439   for (i = 0; i < pagesize; ++i)
21440     *(data + i) = rand ();
21441   umask (0);
21442   fd = creat ("conftest.mmap", 0600);
21443   if (fd < 0)
21444     return 2;
21445   if (write (fd, data, pagesize) != pagesize)
21446     return 3;
21447   close (fd);
21448
21449   /* Next, check that the tail of a page is zero-filled.  File must have
21450      non-zero length, otherwise we risk SIGBUS for entire page.  */
21451   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
21452   if (fd2 < 0)
21453     return 4;
21454   cdata2 = "";
21455   if (write (fd2, cdata2, 1) != 1)
21456     return 5;
21457   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
21458   if (data2 == MAP_FAILED)
21459     return 6;
21460   for (i = 0; i < pagesize; ++i)
21461     if (*(data2 + i))
21462       return 7;
21463   close (fd2);
21464   if (munmap (data2, pagesize))
21465     return 8;
21466
21467   /* Next, try to mmap the file at a fixed address which already has
21468      something else allocated at it.  If we can, also make sure that
21469      we see the same garbage.  */
21470   fd = open ("conftest.mmap", O_RDWR);
21471   if (fd < 0)
21472     return 9;
21473   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21474                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21475     return 10;
21476   for (i = 0; i < pagesize; ++i)
21477     if (*(data + i) != *(data2 + i))
21478       return 11;
21479
21480   /* Finally, make sure that changes to the mapped area do not
21481      percolate back to the file as seen by read().  (This is a bug on
21482      some variants of i386 svr4.0.)  */
21483   for (i = 0; i < pagesize; ++i)
21484     *(data2 + i) = *(data2 + i) + 1;
21485   data3 = (char *) malloc (pagesize);
21486   if (!data3)
21487     return 12;
21488   if (read (fd, data3, pagesize) != pagesize)
21489     return 13;
21490   for (i = 0; i < pagesize; ++i)
21491     if (*(data + i) != *(data3 + i))
21492       return 14;
21493   close (fd);
21494   return 0;
21495 }
21496 _ACEOF
21497 if ac_fn_c_try_run "$LINENO"; then :
21498   ac_cv_func_mmap_fixed_mapped=yes
21499 else
21500   ac_cv_func_mmap_fixed_mapped=no
21501 fi
21502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21503   conftest.$ac_objext conftest.beam conftest.$ac_ext
21504 fi
21505
21506 fi
21507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
21508 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
21509 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21510
21511 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
21512
21513 fi
21514 rm -f conftest.mmap conftest.txt
21515
21516
21517     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
21518 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
21519 if ${ac_cv_gnu_library_2_1+:} false; then :
21520   $as_echo_n "(cached) " >&6
21521 else
21522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21523 /* end confdefs.h.  */
21524
21525 #include <features.h>
21526 #ifdef __GNU_LIBRARY__
21527  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
21528   Lucky GNU user
21529  #endif
21530 #endif
21531
21532 _ACEOF
21533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21534   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
21535   ac_cv_gnu_library_2_1=yes
21536 else
21537   ac_cv_gnu_library_2_1=no
21538 fi
21539 rm -f conftest*
21540
21541
21542
21543 fi
21544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
21545 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
21546
21547     GLIBC21="$ac_cv_gnu_library_2_1"
21548
21549
21550
21551
21552   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
21553 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
21554 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
21555   $as_echo_n "(cached) " >&6
21556 else
21557
21558       if test "$cross_compiling" = yes; then :
21559
21560           # Guess based on the CPU.
21561           case "$host_cpu" in
21562             alpha* | i3456786 | m68k | s390*)
21563               gt_cv_int_divbyzero_sigfpe="guessing yes";;
21564             *)
21565               gt_cv_int_divbyzero_sigfpe="guessing no";;
21566           esac
21567
21568 else
21569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21570 /* end confdefs.h.  */
21571
21572 #include <stdlib.h>
21573 #include <signal.h>
21574
21575 static void
21576 #ifdef __cplusplus
21577 sigfpe_handler (int sig)
21578 #else
21579 sigfpe_handler (sig) int sig;
21580 #endif
21581 {
21582   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
21583   exit (sig != SIGFPE);
21584 }
21585
21586 int x = 1;
21587 int y = 0;
21588 int z;
21589 int nan;
21590
21591 int main ()
21592 {
21593   signal (SIGFPE, sigfpe_handler);
21594 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
21595 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
21596   signal (SIGTRAP, sigfpe_handler);
21597 #endif
21598 /* Linux/SPARC yields signal SIGILL.  */
21599 #if defined (__sparc__) && defined (__linux__)
21600   signal (SIGILL, sigfpe_handler);
21601 #endif
21602
21603   z = x / y;
21604   nan = y / y;
21605   exit (1);
21606 }
21607
21608 _ACEOF
21609 if ac_fn_c_try_run "$LINENO"; then :
21610   gt_cv_int_divbyzero_sigfpe=yes
21611 else
21612   gt_cv_int_divbyzero_sigfpe=no
21613 fi
21614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21615   conftest.$ac_objext conftest.beam conftest.$ac_ext
21616 fi
21617
21618
21619 fi
21620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
21621 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
21622   case "$gt_cv_int_divbyzero_sigfpe" in
21623     *yes) value=1;;
21624     *) value=0;;
21625   esac
21626
21627 cat >>confdefs.h <<_ACEOF
21628 #define INTDIV0_RAISES_SIGFPE $value
21629 _ACEOF
21630
21631
21632
21633   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
21634 $as_echo_n "checking for unsigned long long... " >&6; }
21635 if ${ac_cv_type_unsigned_long_long+:} false; then :
21636   $as_echo_n "(cached) " >&6
21637 else
21638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21639 /* end confdefs.h.  */
21640 unsigned long long ull = 1ULL; int i = 63;
21641 int
21642 main ()
21643 {
21644 unsigned long long ullmax = (unsigned long long) -1;
21645      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
21646   ;
21647   return 0;
21648 }
21649 _ACEOF
21650 if ac_fn_c_try_link "$LINENO"; then :
21651   ac_cv_type_unsigned_long_long=yes
21652 else
21653   ac_cv_type_unsigned_long_long=no
21654 fi
21655 rm -f core conftest.err conftest.$ac_objext \
21656     conftest$ac_exeext conftest.$ac_ext
21657 fi
21658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
21659 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
21660   if test $ac_cv_type_unsigned_long_long = yes; then
21661
21662 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
21663
21664   fi
21665
21666
21667
21668
21669   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
21670
21671     test $ac_cv_type_unsigned_long_long = yes \
21672       && ac_type='unsigned long long' \
21673       || ac_type='unsigned long'
21674
21675 cat >>confdefs.h <<_ACEOF
21676 #define uintmax_t $ac_type
21677 _ACEOF
21678
21679   else
21680
21681 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
21682
21683   fi
21684
21685
21686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
21687 $as_echo_n "checking for inttypes.h... " >&6; }
21688 if ${gt_cv_header_inttypes_h+:} false; then :
21689   $as_echo_n "(cached) " >&6
21690 else
21691
21692     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21693 /* end confdefs.h.  */
21694 #include <sys/types.h>
21695 #include <inttypes.h>
21696 int
21697 main ()
21698 {
21699
21700   ;
21701   return 0;
21702 }
21703 _ACEOF
21704 if ac_fn_c_try_compile "$LINENO"; then :
21705   gt_cv_header_inttypes_h=yes
21706 else
21707   gt_cv_header_inttypes_h=no
21708 fi
21709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21710
21711 fi
21712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
21713 $as_echo "$gt_cv_header_inttypes_h" >&6; }
21714   if test $gt_cv_header_inttypes_h = yes; then
21715
21716 cat >>confdefs.h <<_ACEOF
21717 #define HAVE_INTTYPES_H 1
21718 _ACEOF
21719
21720   fi
21721
21722
21723
21724   if test $gt_cv_header_inttypes_h = yes; then
21725     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
21726 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
21727 if ${gt_cv_inttypes_pri_broken+:} false; then :
21728   $as_echo_n "(cached) " >&6
21729 else
21730
21731         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21732 /* end confdefs.h.  */
21733 #include <inttypes.h>
21734 #ifdef PRId32
21735 char *p = PRId32;
21736 #endif
21737
21738 int
21739 main ()
21740 {
21741
21742   ;
21743   return 0;
21744 }
21745 _ACEOF
21746 if ac_fn_c_try_compile "$LINENO"; then :
21747   gt_cv_inttypes_pri_broken=no
21748 else
21749   gt_cv_inttypes_pri_broken=yes
21750 fi
21751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21752
21753 fi
21754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
21755 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
21756   fi
21757   if test "$gt_cv_inttypes_pri_broken" = yes; then
21758
21759 cat >>confdefs.h <<_ACEOF
21760 #define PRI_MACROS_BROKEN 1
21761 _ACEOF
21762
21763   fi
21764
21765
21766   for ac_header in stdint.h
21767 do :
21768   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
21769 if test "x$ac_cv_header_stdint_h" = xyes; then :
21770   cat >>confdefs.h <<_ACEOF
21771 #define HAVE_STDINT_H 1
21772 _ACEOF
21773
21774 fi
21775
21776 done
21777
21778     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
21779 $as_echo_n "checking for SIZE_MAX... " >&6; }
21780   result=
21781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21782 /* end confdefs.h.  */
21783
21784 #include <limits.h>
21785 #if HAVE_STDINT_H
21786 #include <stdint.h>
21787 #endif
21788 #ifdef SIZE_MAX
21789 Found it
21790 #endif
21791
21792 _ACEOF
21793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21794   $EGREP "Found it" >/dev/null 2>&1; then :
21795   result=yes
21796 fi
21797 rm -f conftest*
21798
21799   if test -z "$result"; then
21800                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
21801
21802 else
21803   result=?
21804 fi
21805
21806
21807     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
21808
21809 else
21810   result=?
21811 fi
21812
21813
21814     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
21815
21816 else
21817   result=?
21818 fi
21819
21820
21821     if test "$fits_in_uint" = 1; then
21822                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21823 /* end confdefs.h.  */
21824 #include <stddef.h>
21825         extern size_t foo;
21826         extern unsigned long foo;
21827
21828 int
21829 main ()
21830 {
21831
21832   ;
21833   return 0;
21834 }
21835 _ACEOF
21836 if ac_fn_c_try_compile "$LINENO"; then :
21837   fits_in_uint=0
21838 fi
21839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21840     fi
21841     if test -z "$result"; then
21842       if test "$fits_in_uint" = 1; then
21843         result="$res_hi$res_lo"U
21844       else
21845         result="$res_hi$res_lo"UL
21846       fi
21847     else
21848             result='~(size_t)0'
21849     fi
21850   fi
21851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
21852 $as_echo "$result" >&6; }
21853   if test "$result" != yes; then
21854
21855 cat >>confdefs.h <<_ACEOF
21856 #define SIZE_MAX $result
21857 _ACEOF
21858
21859   fi
21860
21861
21862
21863   for ac_header in stdint.h
21864 do :
21865   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
21866 if test "x$ac_cv_header_stdint_h" = xyes; then :
21867   cat >>confdefs.h <<_ACEOF
21868 #define HAVE_STDINT_H 1
21869 _ACEOF
21870
21871 fi
21872
21873 done
21874
21875
21876
21877       if test "X$prefix" = "XNONE"; then
21878     acl_final_prefix="$ac_default_prefix"
21879   else
21880     acl_final_prefix="$prefix"
21881   fi
21882   if test "X$exec_prefix" = "XNONE"; then
21883     acl_final_exec_prefix='${prefix}'
21884   else
21885     acl_final_exec_prefix="$exec_prefix"
21886   fi
21887   acl_save_prefix="$prefix"
21888   prefix="$acl_final_prefix"
21889   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21890   prefix="$acl_save_prefix"
21891
21892
21893 # Check whether --with-gnu-ld was given.
21894 if test "${with_gnu_ld+set}" = set; then :
21895   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
21896 else
21897   with_gnu_ld=no
21898 fi
21899
21900 # Prepare PATH_SEPARATOR.
21901 # The user is always right.
21902 if test "${PATH_SEPARATOR+set}" != set; then
21903   echo "#! /bin/sh" >conf$$.sh
21904   echo  "exit 0"   >>conf$$.sh
21905   chmod +x conf$$.sh
21906   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21907     PATH_SEPARATOR=';'
21908   else
21909     PATH_SEPARATOR=:
21910   fi
21911   rm -f conf$$.sh
21912 fi
21913 ac_prog=ld
21914 if test "$GCC" = yes; then
21915   # Check if gcc -print-prog-name=ld gives a path.
21916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
21917 $as_echo_n "checking for ld used by GCC... " >&6; }
21918   case $host in
21919   *-*-mingw*)
21920     # gcc leaves a trailing carriage return which upsets mingw
21921     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21922   *)
21923     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21924   esac
21925   case $ac_prog in
21926     # Accept absolute paths.
21927     [\\/]* | [A-Za-z]:[\\/]*)
21928       re_direlt='/[^/][^/]*/\.\./'
21929       # Canonicalize the path of ld
21930       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21931       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21932         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21933       done
21934       test -z "$LD" && LD="$ac_prog"
21935       ;;
21936   "")
21937     # If it fails, then pretend we aren't using GCC.
21938     ac_prog=ld
21939     ;;
21940   *)
21941     # If it is relative, then search for the first ld in PATH.
21942     with_gnu_ld=unknown
21943     ;;
21944   esac
21945 elif test "$with_gnu_ld" = yes; then
21946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
21947 $as_echo_n "checking for GNU ld... " >&6; }
21948 else
21949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
21950 $as_echo_n "checking for non-GNU ld... " >&6; }
21951 fi
21952 if ${acl_cv_path_LD+:} false; then :
21953   $as_echo_n "(cached) " >&6
21954 else
21955   if test -z "$LD"; then
21956   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21957   for ac_dir in $PATH; do
21958     test -z "$ac_dir" && ac_dir=.
21959     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21960       acl_cv_path_LD="$ac_dir/$ac_prog"
21961       # Check to see if the program is GNU ld.  I'd rather use --version,
21962       # but apparently some GNU ld's only accept -v.
21963       # Break only if it was the GNU/non-GNU ld that we prefer.
21964       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
21965       *GNU* | *'with BFD'*)
21966         test "$with_gnu_ld" != no && break ;;
21967       *)
21968         test "$with_gnu_ld" != yes && break ;;
21969       esac
21970     fi
21971   done
21972   IFS="$ac_save_ifs"
21973 else
21974   acl_cv_path_LD="$LD" # Let the user override the test with a path.
21975 fi
21976 fi
21977
21978 LD="$acl_cv_path_LD"
21979 if test -n "$LD"; then
21980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
21981 $as_echo "$LD" >&6; }
21982 else
21983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21984 $as_echo "no" >&6; }
21985 fi
21986 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
21987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
21988 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
21989 if ${acl_cv_prog_gnu_ld+:} false; then :
21990   $as_echo_n "(cached) " >&6
21991 else
21992   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21993 case `$LD -v 2>&1 </dev/null` in
21994 *GNU* | *'with BFD'*)
21995   acl_cv_prog_gnu_ld=yes ;;
21996 *)
21997   acl_cv_prog_gnu_ld=no ;;
21998 esac
21999 fi
22000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
22001 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
22002 with_gnu_ld=$acl_cv_prog_gnu_ld
22003
22004
22005
22006                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
22007 $as_echo_n "checking for shared library run path origin... " >&6; }
22008 if ${acl_cv_rpath+:} false; then :
22009   $as_echo_n "(cached) " >&6
22010 else
22011
22012     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
22013     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
22014     . ./conftest.sh
22015     rm -f ./conftest.sh
22016     acl_cv_rpath=done
22017
22018 fi
22019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
22020 $as_echo "$acl_cv_rpath" >&6; }
22021   wl="$acl_cv_wl"
22022   libext="$acl_cv_libext"
22023   shlibext="$acl_cv_shlibext"
22024   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
22025   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
22026   hardcode_direct="$acl_cv_hardcode_direct"
22027   hardcode_minus_L="$acl_cv_hardcode_minus_L"
22028     # Check whether --enable-rpath was given.
22029 if test "${enable_rpath+set}" = set; then :
22030   enableval=$enable_rpath; :
22031 else
22032   enable_rpath=yes
22033 fi
22034
22035
22036
22037
22038
22039
22040
22041
22042     use_additional=yes
22043
22044   acl_save_prefix="$prefix"
22045   prefix="$acl_final_prefix"
22046   acl_save_exec_prefix="$exec_prefix"
22047   exec_prefix="$acl_final_exec_prefix"
22048
22049     eval additional_includedir=\"$includedir\"
22050     eval additional_libdir=\"$libdir\"
22051
22052   exec_prefix="$acl_save_exec_prefix"
22053   prefix="$acl_save_prefix"
22054
22055
22056 # Check whether --with-libiconv-prefix was given.
22057 if test "${with_libiconv_prefix+set}" = set; then :
22058   withval=$with_libiconv_prefix;
22059     if test "X$withval" = "Xno"; then
22060       use_additional=no
22061     else
22062       if test "X$withval" = "X"; then
22063
22064   acl_save_prefix="$prefix"
22065   prefix="$acl_final_prefix"
22066   acl_save_exec_prefix="$exec_prefix"
22067   exec_prefix="$acl_final_exec_prefix"
22068
22069           eval additional_includedir=\"$includedir\"
22070           eval additional_libdir=\"$libdir\"
22071
22072   exec_prefix="$acl_save_exec_prefix"
22073   prefix="$acl_save_prefix"
22074
22075       else
22076         additional_includedir="$withval/include"
22077         additional_libdir="$withval/lib"
22078       fi
22079     fi
22080
22081 fi
22082
22083       LIBICONV=
22084   LTLIBICONV=
22085   INCICONV=
22086   rpathdirs=
22087   ltrpathdirs=
22088   names_already_handled=
22089   names_next_round='iconv '
22090   while test -n "$names_next_round"; do
22091     names_this_round="$names_next_round"
22092     names_next_round=
22093     for name in $names_this_round; do
22094       already_handled=
22095       for n in $names_already_handled; do
22096         if test "$n" = "$name"; then
22097           already_handled=yes
22098           break
22099         fi
22100       done
22101       if test -z "$already_handled"; then
22102         names_already_handled="$names_already_handled $name"
22103                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
22104         eval value=\"\$HAVE_LIB$uppername\"
22105         if test -n "$value"; then
22106           if test "$value" = yes; then
22107             eval value=\"\$LIB$uppername\"
22108             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
22109             eval value=\"\$LTLIB$uppername\"
22110             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
22111           else
22112                                     :
22113           fi
22114         else
22115                               found_dir=
22116           found_la=
22117           found_so=
22118           found_a=
22119           if test $use_additional = yes; then
22120             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
22121               found_dir="$additional_libdir"
22122               found_so="$additional_libdir/lib$name.$shlibext"
22123               if test -f "$additional_libdir/lib$name.la"; then
22124                 found_la="$additional_libdir/lib$name.la"
22125               fi
22126             else
22127               if test -f "$additional_libdir/lib$name.$libext"; then
22128                 found_dir="$additional_libdir"
22129                 found_a="$additional_libdir/lib$name.$libext"
22130                 if test -f "$additional_libdir/lib$name.la"; then
22131                   found_la="$additional_libdir/lib$name.la"
22132                 fi
22133               fi
22134             fi
22135           fi
22136           if test "X$found_dir" = "X"; then
22137             for x in $LDFLAGS $LTLIBICONV; do
22138
22139   acl_save_prefix="$prefix"
22140   prefix="$acl_final_prefix"
22141   acl_save_exec_prefix="$exec_prefix"
22142   exec_prefix="$acl_final_exec_prefix"
22143   eval x=\"$x\"
22144   exec_prefix="$acl_save_exec_prefix"
22145   prefix="$acl_save_prefix"
22146
22147               case "$x" in
22148                 -L*)
22149                   dir=`echo "X$x" | sed -e 's/^X-L//'`
22150                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
22151                     found_dir="$dir"
22152                     found_so="$dir/lib$name.$shlibext"
22153                     if test -f "$dir/lib$name.la"; then
22154                       found_la="$dir/lib$name.la"
22155                     fi
22156                   else
22157                     if test -f "$dir/lib$name.$libext"; then
22158                       found_dir="$dir"
22159                       found_a="$dir/lib$name.$libext"
22160                       if test -f "$dir/lib$name.la"; then
22161                         found_la="$dir/lib$name.la"
22162                       fi
22163                     fi
22164                   fi
22165                   ;;
22166               esac
22167               if test "X$found_dir" != "X"; then
22168                 break
22169               fi
22170             done
22171           fi
22172           if test "X$found_dir" != "X"; then
22173                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
22174             if test "X$found_so" != "X"; then
22175                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
22176                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22177               else
22178                                                                                 haveit=
22179                 for x in $ltrpathdirs; do
22180                   if test "X$x" = "X$found_dir"; then
22181                     haveit=yes
22182                     break
22183                   fi
22184                 done
22185                 if test -z "$haveit"; then
22186                   ltrpathdirs="$ltrpathdirs $found_dir"
22187                 fi
22188                                 if test "$hardcode_direct" = yes; then
22189                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22190                 else
22191                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
22192                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22193                                                             haveit=
22194                     for x in $rpathdirs; do
22195                       if test "X$x" = "X$found_dir"; then
22196                         haveit=yes
22197                         break
22198                       fi
22199                     done
22200                     if test -z "$haveit"; then
22201                       rpathdirs="$rpathdirs $found_dir"
22202                     fi
22203                   else
22204                                                                                 haveit=
22205                     for x in $LDFLAGS $LIBICONV; do
22206
22207   acl_save_prefix="$prefix"
22208   prefix="$acl_final_prefix"
22209   acl_save_exec_prefix="$exec_prefix"
22210   exec_prefix="$acl_final_exec_prefix"
22211   eval x=\"$x\"
22212   exec_prefix="$acl_save_exec_prefix"
22213   prefix="$acl_save_prefix"
22214
22215                       if test "X$x" = "X-L$found_dir"; then
22216                         haveit=yes
22217                         break
22218                       fi
22219                     done
22220                     if test -z "$haveit"; then
22221                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
22222                     fi
22223                     if test "$hardcode_minus_L" != no; then
22224                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22225                     else
22226                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22227                     fi
22228                   fi
22229                 fi
22230               fi
22231             else
22232               if test "X$found_a" != "X"; then
22233                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
22234               else
22235                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
22236               fi
22237             fi
22238                         additional_includedir=
22239             case "$found_dir" in
22240               */lib | */lib/)
22241                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
22242                 additional_includedir="$basedir/include"
22243                 ;;
22244             esac
22245             if test "X$additional_includedir" != "X"; then
22246                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
22247                 haveit=
22248                 if test "X$additional_includedir" = "X/usr/local/include"; then
22249                   if test -n "$GCC"; then
22250                     case $host_os in
22251                       linux*) haveit=yes;;
22252                     esac
22253                   fi
22254                 fi
22255                 if test -z "$haveit"; then
22256                   for x in $CPPFLAGS $INCICONV; do
22257
22258   acl_save_prefix="$prefix"
22259   prefix="$acl_final_prefix"
22260   acl_save_exec_prefix="$exec_prefix"
22261   exec_prefix="$acl_final_exec_prefix"
22262   eval x=\"$x\"
22263   exec_prefix="$acl_save_exec_prefix"
22264   prefix="$acl_save_prefix"
22265
22266                     if test "X$x" = "X-I$additional_includedir"; then
22267                       haveit=yes
22268                       break
22269                     fi
22270                   done
22271                   if test -z "$haveit"; then
22272                     if test -d "$additional_includedir"; then
22273                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
22274                     fi
22275                   fi
22276                 fi
22277               fi
22278             fi
22279                         if test -n "$found_la"; then
22280                                                         save_libdir="$libdir"
22281               case "$found_la" in
22282                 */* | *\\*) . "$found_la" ;;
22283                 *) . "./$found_la" ;;
22284               esac
22285               libdir="$save_libdir"
22286                             for dep in $dependency_libs; do
22287                 case "$dep" in
22288                   -L*)
22289                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22290                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
22291                       haveit=
22292                       if test "X$additional_libdir" = "X/usr/local/lib"; then
22293                         if test -n "$GCC"; then
22294                           case $host_os in
22295                             linux*) haveit=yes;;
22296                           esac
22297                         fi
22298                       fi
22299                       if test -z "$haveit"; then
22300                         haveit=
22301                         for x in $LDFLAGS $LIBICONV; do
22302
22303   acl_save_prefix="$prefix"
22304   prefix="$acl_final_prefix"
22305   acl_save_exec_prefix="$exec_prefix"
22306   exec_prefix="$acl_final_exec_prefix"
22307   eval x=\"$x\"
22308   exec_prefix="$acl_save_exec_prefix"
22309   prefix="$acl_save_prefix"
22310
22311                           if test "X$x" = "X-L$additional_libdir"; then
22312                             haveit=yes
22313                             break
22314                           fi
22315                         done
22316                         if test -z "$haveit"; then
22317                           if test -d "$additional_libdir"; then
22318                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
22319                           fi
22320                         fi
22321                         haveit=
22322                         for x in $LDFLAGS $LTLIBICONV; do
22323
22324   acl_save_prefix="$prefix"
22325   prefix="$acl_final_prefix"
22326   acl_save_exec_prefix="$exec_prefix"
22327   exec_prefix="$acl_final_exec_prefix"
22328   eval x=\"$x\"
22329   exec_prefix="$acl_save_exec_prefix"
22330   prefix="$acl_save_prefix"
22331
22332                           if test "X$x" = "X-L$additional_libdir"; then
22333                             haveit=yes
22334                             break
22335                           fi
22336                         done
22337                         if test -z "$haveit"; then
22338                           if test -d "$additional_libdir"; then
22339                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
22340                           fi
22341                         fi
22342                       fi
22343                     fi
22344                     ;;
22345                   -R*)
22346                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
22347                     if test "$enable_rpath" != no; then
22348                                                                   haveit=
22349                       for x in $rpathdirs; do
22350                         if test "X$x" = "X$dir"; then
22351                           haveit=yes
22352                           break
22353                         fi
22354                       done
22355                       if test -z "$haveit"; then
22356                         rpathdirs="$rpathdirs $dir"
22357                       fi
22358                                                                   haveit=
22359                       for x in $ltrpathdirs; do
22360                         if test "X$x" = "X$dir"; then
22361                           haveit=yes
22362                           break
22363                         fi
22364                       done
22365                       if test -z "$haveit"; then
22366                         ltrpathdirs="$ltrpathdirs $dir"
22367                       fi
22368                     fi
22369                     ;;
22370                   -l*)
22371                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22372                     ;;
22373                   *.la)
22374                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22375                     ;;
22376                   *)
22377                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
22378                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
22379                     ;;
22380                 esac
22381               done
22382             fi
22383           else
22384                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22385             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
22386           fi
22387         fi
22388       fi
22389     done
22390   done
22391   if test "X$rpathdirs" != "X"; then
22392     if test -n "$hardcode_libdir_separator"; then
22393                         alldirs=
22394       for found_dir in $rpathdirs; do
22395         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
22396       done
22397             acl_save_libdir="$libdir"
22398       libdir="$alldirs"
22399       eval flag=\"$hardcode_libdir_flag_spec\"
22400       libdir="$acl_save_libdir"
22401       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22402     else
22403             for found_dir in $rpathdirs; do
22404         acl_save_libdir="$libdir"
22405         libdir="$found_dir"
22406         eval flag=\"$hardcode_libdir_flag_spec\"
22407         libdir="$acl_save_libdir"
22408         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22409       done
22410     fi
22411   fi
22412   if test "X$ltrpathdirs" != "X"; then
22413             for found_dir in $ltrpathdirs; do
22414       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
22415     done
22416   fi
22417
22418
22419
22420
22421
22422
22423
22424
22425   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
22426 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
22427
22428 else
22429
22430 $as_echo "#define ptrdiff_t long" >>confdefs.h
22431
22432
22433 fi
22434
22435   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22436 stdlib.h string.h unistd.h sys/param.h
22437 do :
22438   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22439 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22440 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22441   cat >>confdefs.h <<_ACEOF
22442 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22443 _ACEOF
22444
22445 fi
22446
22447 done
22448
22449   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22450 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22451 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22452 __fsetlocking
22453 do :
22454   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22455 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22456 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22457   cat >>confdefs.h <<_ACEOF
22458 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22459 _ACEOF
22460
22461 fi
22462 done
22463
22464
22465
22466   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
22467 $as_echo_n "checking whether _snprintf is declared... " >&6; }
22468 if ${ac_cv_have_decl__snprintf+:} false; then :
22469   $as_echo_n "(cached) " >&6
22470 else
22471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22472 /* end confdefs.h.  */
22473 #include <stdio.h>
22474 int
22475 main ()
22476 {
22477
22478 #ifndef _snprintf
22479   char *p = (char *) _snprintf;
22480 #endif
22481
22482   ;
22483   return 0;
22484 }
22485 _ACEOF
22486 if ac_fn_c_try_compile "$LINENO"; then :
22487   ac_cv_have_decl__snprintf=yes
22488 else
22489   ac_cv_have_decl__snprintf=no
22490 fi
22491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22492 fi
22493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
22494 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
22495   if test $ac_cv_have_decl__snprintf = yes; then
22496     gt_value=1
22497   else
22498     gt_value=0
22499   fi
22500
22501 cat >>confdefs.h <<_ACEOF
22502 #define HAVE_DECL__SNPRINTF $gt_value
22503 _ACEOF
22504
22505
22506
22507   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
22508 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
22509 if ${ac_cv_have_decl__snwprintf+:} false; then :
22510   $as_echo_n "(cached) " >&6
22511 else
22512   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22513 /* end confdefs.h.  */
22514 #include <stdio.h>
22515 int
22516 main ()
22517 {
22518
22519 #ifndef _snwprintf
22520   char *p = (char *) _snwprintf;
22521 #endif
22522
22523   ;
22524   return 0;
22525 }
22526 _ACEOF
22527 if ac_fn_c_try_compile "$LINENO"; then :
22528   ac_cv_have_decl__snwprintf=yes
22529 else
22530   ac_cv_have_decl__snwprintf=no
22531 fi
22532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22533 fi
22534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
22535 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
22536   if test $ac_cv_have_decl__snwprintf = yes; then
22537     gt_value=1
22538   else
22539     gt_value=0
22540   fi
22541
22542 cat >>confdefs.h <<_ACEOF
22543 #define HAVE_DECL__SNWPRINTF $gt_value
22544 _ACEOF
22545
22546
22547
22548
22549   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
22550 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
22551 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
22552   $as_echo_n "(cached) " >&6
22553 else
22554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22555 /* end confdefs.h.  */
22556 #include <stdio.h>
22557 int
22558 main ()
22559 {
22560
22561 #ifndef feof_unlocked
22562   char *p = (char *) feof_unlocked;
22563 #endif
22564
22565   ;
22566   return 0;
22567 }
22568 _ACEOF
22569 if ac_fn_c_try_compile "$LINENO"; then :
22570   ac_cv_have_decl_feof_unlocked=yes
22571 else
22572   ac_cv_have_decl_feof_unlocked=no
22573 fi
22574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22575 fi
22576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
22577 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
22578   if test $ac_cv_have_decl_feof_unlocked = yes; then
22579     gt_value=1
22580   else
22581     gt_value=0
22582   fi
22583
22584 cat >>confdefs.h <<_ACEOF
22585 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22586 _ACEOF
22587
22588
22589
22590   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
22591 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
22592 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
22593   $as_echo_n "(cached) " >&6
22594 else
22595   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22596 /* end confdefs.h.  */
22597 #include <stdio.h>
22598 int
22599 main ()
22600 {
22601
22602 #ifndef fgets_unlocked
22603   char *p = (char *) fgets_unlocked;
22604 #endif
22605
22606   ;
22607   return 0;
22608 }
22609 _ACEOF
22610 if ac_fn_c_try_compile "$LINENO"; then :
22611   ac_cv_have_decl_fgets_unlocked=yes
22612 else
22613   ac_cv_have_decl_fgets_unlocked=no
22614 fi
22615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22616 fi
22617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
22618 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
22619   if test $ac_cv_have_decl_fgets_unlocked = yes; then
22620     gt_value=1
22621   else
22622     gt_value=0
22623   fi
22624
22625 cat >>confdefs.h <<_ACEOF
22626 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22627 _ACEOF
22628
22629
22630
22631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
22632 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
22633 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
22634   $as_echo_n "(cached) " >&6
22635 else
22636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22637 /* end confdefs.h.  */
22638 #include <stdio.h>
22639 int
22640 main ()
22641 {
22642
22643 #ifndef getc_unlocked
22644   char *p = (char *) getc_unlocked;
22645 #endif
22646
22647   ;
22648   return 0;
22649 }
22650 _ACEOF
22651 if ac_fn_c_try_compile "$LINENO"; then :
22652   ac_cv_have_decl_getc_unlocked=yes
22653 else
22654   ac_cv_have_decl_getc_unlocked=no
22655 fi
22656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22657 fi
22658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
22659 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
22660   if test $ac_cv_have_decl_getc_unlocked = yes; then
22661     gt_value=1
22662   else
22663     gt_value=0
22664   fi
22665
22666 cat >>confdefs.h <<_ACEOF
22667 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22668 _ACEOF
22669
22670
22671
22672   case $gt_cv_func_printf_posix in
22673     *yes) HAVE_POSIX_PRINTF=1 ;;
22674     *) HAVE_POSIX_PRINTF=0 ;;
22675   esac
22676
22677   if test "$ac_cv_func_asprintf" = yes; then
22678     HAVE_ASPRINTF=1
22679   else
22680     HAVE_ASPRINTF=0
22681   fi
22682
22683   if test "$ac_cv_func_snprintf" = yes; then
22684     HAVE_SNPRINTF=1
22685   else
22686     HAVE_SNPRINTF=0
22687   fi
22688
22689   if test "$ac_cv_func_wprintf" = yes; then
22690     HAVE_WPRINTF=1
22691   else
22692     HAVE_WPRINTF=0
22693   fi
22694
22695
22696
22697
22698
22699
22700
22701           am_save_CPPFLAGS="$CPPFLAGS"
22702
22703   for element in $INCICONV; do
22704     haveit=
22705     for x in $CPPFLAGS; do
22706
22707   acl_save_prefix="$prefix"
22708   prefix="$acl_final_prefix"
22709   acl_save_exec_prefix="$exec_prefix"
22710   exec_prefix="$acl_final_exec_prefix"
22711   eval x=\"$x\"
22712   exec_prefix="$acl_save_exec_prefix"
22713   prefix="$acl_save_prefix"
22714
22715       if test "X$x" = "X$element"; then
22716         haveit=yes
22717         break
22718       fi
22719     done
22720     if test -z "$haveit"; then
22721       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22722     fi
22723   done
22724
22725
22726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
22727 $as_echo_n "checking for iconv... " >&6; }
22728 if ${am_cv_func_iconv+:} false; then :
22729   $as_echo_n "(cached) " >&6
22730 else
22731
22732     am_cv_func_iconv="no, consider installing GNU libiconv"
22733     am_cv_lib_iconv=no
22734     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22735 /* end confdefs.h.  */
22736 #include <stdlib.h>
22737 #include <iconv.h>
22738 int
22739 main ()
22740 {
22741 iconv_t cd = iconv_open("","");
22742        iconv(cd,NULL,NULL,NULL,NULL);
22743        iconv_close(cd);
22744   ;
22745   return 0;
22746 }
22747 _ACEOF
22748 if ac_fn_c_try_link "$LINENO"; then :
22749   am_cv_func_iconv=yes
22750 fi
22751 rm -f core conftest.err conftest.$ac_objext \
22752     conftest$ac_exeext conftest.$ac_ext
22753     if test "$am_cv_func_iconv" != yes; then
22754       am_save_LIBS="$LIBS"
22755       LIBS="$LIBS $LIBICONV"
22756       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22757 /* end confdefs.h.  */
22758 #include <stdlib.h>
22759 #include <iconv.h>
22760 int
22761 main ()
22762 {
22763 iconv_t cd = iconv_open("","");
22764          iconv(cd,NULL,NULL,NULL,NULL);
22765          iconv_close(cd);
22766   ;
22767   return 0;
22768 }
22769 _ACEOF
22770 if ac_fn_c_try_link "$LINENO"; then :
22771   am_cv_lib_iconv=yes
22772         am_cv_func_iconv=yes
22773 fi
22774 rm -f core conftest.err conftest.$ac_objext \
22775     conftest$ac_exeext conftest.$ac_ext
22776       LIBS="$am_save_LIBS"
22777     fi
22778
22779 fi
22780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
22781 $as_echo "$am_cv_func_iconv" >&6; }
22782   if test "$am_cv_func_iconv" = yes; then
22783
22784 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
22785
22786   fi
22787   if test "$am_cv_lib_iconv" = yes; then
22788     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
22789 $as_echo_n "checking how to link with libiconv... " >&6; }
22790     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
22791 $as_echo "$LIBICONV" >&6; }
22792   else
22793             CPPFLAGS="$am_save_CPPFLAGS"
22794     LIBICONV=
22795     LTLIBICONV=
22796   fi
22797
22798
22799
22800   if test "$am_cv_func_iconv" = yes; then
22801     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
22802 $as_echo_n "checking for iconv declaration... " >&6; }
22803     if ${am_cv_proto_iconv+:} false; then :
22804   $as_echo_n "(cached) " >&6
22805 else
22806
22807       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22808 /* end confdefs.h.  */
22809
22810 #include <stdlib.h>
22811 #include <iconv.h>
22812 extern
22813 #ifdef __cplusplus
22814 "C"
22815 #endif
22816 #if defined(__STDC__) || defined(__cplusplus)
22817 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22818 #else
22819 size_t iconv();
22820 #endif
22821
22822 int
22823 main ()
22824 {
22825
22826   ;
22827   return 0;
22828 }
22829 _ACEOF
22830 if ac_fn_c_try_compile "$LINENO"; then :
22831   am_cv_proto_iconv_arg1=""
22832 else
22833   am_cv_proto_iconv_arg1="const"
22834 fi
22835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22836       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
22837 fi
22838
22839     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22840     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
22841          }$am_cv_proto_iconv" >&5
22842 $as_echo "${ac_t:-
22843          }$am_cv_proto_iconv" >&6; }
22844
22845 cat >>confdefs.h <<_ACEOF
22846 #define ICONV_CONST $am_cv_proto_iconv_arg1
22847 _ACEOF
22848
22849   fi
22850
22851
22852   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
22853 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
22854 if ${am_cv_langinfo_codeset+:} false; then :
22855   $as_echo_n "(cached) " >&6
22856 else
22857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22858 /* end confdefs.h.  */
22859 #include <langinfo.h>
22860 int
22861 main ()
22862 {
22863 char* cs = nl_langinfo(CODESET);
22864   ;
22865   return 0;
22866 }
22867 _ACEOF
22868 if ac_fn_c_try_link "$LINENO"; then :
22869   am_cv_langinfo_codeset=yes
22870 else
22871   am_cv_langinfo_codeset=no
22872 fi
22873 rm -f core conftest.err conftest.$ac_objext \
22874     conftest$ac_exeext conftest.$ac_ext
22875
22876 fi
22877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
22878 $as_echo "$am_cv_langinfo_codeset" >&6; }
22879   if test $am_cv_langinfo_codeset = yes; then
22880
22881 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
22882
22883   fi
22884
22885   if test $ac_cv_header_locale_h = yes; then
22886
22887   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
22888 $as_echo_n "checking for LC_MESSAGES... " >&6; }
22889 if ${am_cv_val_LC_MESSAGES+:} false; then :
22890   $as_echo_n "(cached) " >&6
22891 else
22892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22893 /* end confdefs.h.  */
22894 #include <locale.h>
22895 int
22896 main ()
22897 {
22898 return LC_MESSAGES
22899   ;
22900   return 0;
22901 }
22902 _ACEOF
22903 if ac_fn_c_try_link "$LINENO"; then :
22904   am_cv_val_LC_MESSAGES=yes
22905 else
22906   am_cv_val_LC_MESSAGES=no
22907 fi
22908 rm -f core conftest.err conftest.$ac_objext \
22909     conftest$ac_exeext conftest.$ac_ext
22910 fi
22911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
22912 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
22913   if test $am_cv_val_LC_MESSAGES = yes; then
22914
22915 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
22916
22917   fi
22918
22919   fi
22920
22921                       for ac_prog in bison
22922 do
22923   # Extract the first word of "$ac_prog", so it can be a program name with args.
22924 set dummy $ac_prog; ac_word=$2
22925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22926 $as_echo_n "checking for $ac_word... " >&6; }
22927 if ${ac_cv_prog_INTLBISON+:} false; then :
22928   $as_echo_n "(cached) " >&6
22929 else
22930   if test -n "$INTLBISON"; then
22931   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
22932 else
22933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22934 for as_dir in $PATH
22935 do
22936   IFS=$as_save_IFS
22937   test -z "$as_dir" && as_dir=.
22938     for ac_exec_ext in '' $ac_executable_extensions; do
22939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22940     ac_cv_prog_INTLBISON="$ac_prog"
22941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22942     break 2
22943   fi
22944 done
22945   done
22946 IFS=$as_save_IFS
22947
22948 fi
22949 fi
22950 INTLBISON=$ac_cv_prog_INTLBISON
22951 if test -n "$INTLBISON"; then
22952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
22953 $as_echo "$INTLBISON" >&6; }
22954 else
22955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22956 $as_echo "no" >&6; }
22957 fi
22958
22959
22960   test -n "$INTLBISON" && break
22961 done
22962
22963   if test -z "$INTLBISON"; then
22964     ac_verc_fail=yes
22965   else
22966         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
22967 $as_echo_n "checking version of bison... " >&6; }
22968     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
22969     case $ac_prog_version in
22970       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
22971       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
22972          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
22973       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
22974     esac
22975     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
22976 $as_echo "$ac_prog_version" >&6; }
22977   fi
22978   if test $ac_verc_fail = yes; then
22979     INTLBISON=:
22980   fi
22981
22982
22983
22984
22985
22986
22987
22988
22989
22990
22991
22992
22993
22994
22995
22996
22997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
22998 $as_echo_n "checking whether NLS is requested... " >&6; }
22999     # Check whether --enable-nls was given.
23000 if test "${enable_nls+set}" = set; then :
23001   enableval=$enable_nls; USE_NLS=$enableval
23002 else
23003   USE_NLS=yes
23004 fi
23005
23006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
23007 $as_echo "$USE_NLS" >&6; }
23008
23009
23010
23011
23012     BUILD_INCLUDED_LIBINTL=no
23013     USE_INCLUDED_LIBINTL=no
23014
23015   LIBINTL=
23016   LTLIBINTL=
23017   POSUB=
23018
23019     if test "$USE_NLS" = "yes"; then
23020     gt_use_preinstalled_gnugettext=no
23021
23022       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
23023 $as_echo_n "checking whether included gettext is requested... " >&6; }
23024
23025 # Check whether --with-included-gettext was given.
23026 if test "${with_included_gettext+set}" = set; then :
23027   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23028 else
23029   nls_cv_force_use_gnu_gettext=no
23030 fi
23031
23032       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
23033 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
23034
23035       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23036       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23037
23038
23039
23040
23041
23042
23043         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
23044 $as_echo_n "checking for GNU gettext in libc... " >&6; }
23045 if ${gt_cv_func_gnugettext2_libc+:} false; then :
23046   $as_echo_n "(cached) " >&6
23047 else
23048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23049 /* end confdefs.h.  */
23050 #include <libintl.h>
23051 extern int _nl_msg_cat_cntr;
23052 extern int *_nl_domain_bindings;
23053 int
23054 main ()
23055 {
23056 bindtextdomain ("", "");
23057 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
23058   ;
23059   return 0;
23060 }
23061 _ACEOF
23062 if ac_fn_c_try_link "$LINENO"; then :
23063   gt_cv_func_gnugettext2_libc=yes
23064 else
23065   gt_cv_func_gnugettext2_libc=no
23066 fi
23067 rm -f core conftest.err conftest.$ac_objext \
23068     conftest$ac_exeext conftest.$ac_ext
23069 fi
23070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
23071 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
23072
23073         if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
23074
23075
23076
23077     use_additional=yes
23078
23079   acl_save_prefix="$prefix"
23080   prefix="$acl_final_prefix"
23081   acl_save_exec_prefix="$exec_prefix"
23082   exec_prefix="$acl_final_exec_prefix"
23083
23084     eval additional_includedir=\"$includedir\"
23085     eval additional_libdir=\"$libdir\"
23086
23087   exec_prefix="$acl_save_exec_prefix"
23088   prefix="$acl_save_prefix"
23089
23090
23091 # Check whether --with-libintl-prefix was given.
23092 if test "${with_libintl_prefix+set}" = set; then :
23093   withval=$with_libintl_prefix;
23094     if test "X$withval" = "Xno"; then
23095       use_additional=no
23096     else
23097       if test "X$withval" = "X"; then
23098
23099   acl_save_prefix="$prefix"
23100   prefix="$acl_final_prefix"
23101   acl_save_exec_prefix="$exec_prefix"
23102   exec_prefix="$acl_final_exec_prefix"
23103
23104           eval additional_includedir=\"$includedir\"
23105           eval additional_libdir=\"$libdir\"
23106
23107   exec_prefix="$acl_save_exec_prefix"
23108   prefix="$acl_save_prefix"
23109
23110       else
23111         additional_includedir="$withval/include"
23112         additional_libdir="$withval/lib"
23113       fi
23114     fi
23115
23116 fi
23117
23118       LIBINTL=
23119   LTLIBINTL=
23120   INCINTL=
23121   rpathdirs=
23122   ltrpathdirs=
23123   names_already_handled=
23124   names_next_round='intl '
23125   while test -n "$names_next_round"; do
23126     names_this_round="$names_next_round"
23127     names_next_round=
23128     for name in $names_this_round; do
23129       already_handled=
23130       for n in $names_already_handled; do
23131         if test "$n" = "$name"; then
23132           already_handled=yes
23133           break
23134         fi
23135       done
23136       if test -z "$already_handled"; then
23137         names_already_handled="$names_already_handled $name"
23138                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23139         eval value=\"\$HAVE_LIB$uppername\"
23140         if test -n "$value"; then
23141           if test "$value" = yes; then
23142             eval value=\"\$LIB$uppername\"
23143             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23144             eval value=\"\$LTLIB$uppername\"
23145             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23146           else
23147                                     :
23148           fi
23149         else
23150                               found_dir=
23151           found_la=
23152           found_so=
23153           found_a=
23154           if test $use_additional = yes; then
23155             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23156               found_dir="$additional_libdir"
23157               found_so="$additional_libdir/lib$name.$shlibext"
23158               if test -f "$additional_libdir/lib$name.la"; then
23159                 found_la="$additional_libdir/lib$name.la"
23160               fi
23161             else
23162               if test -f "$additional_libdir/lib$name.$libext"; then
23163                 found_dir="$additional_libdir"
23164                 found_a="$additional_libdir/lib$name.$libext"
23165                 if test -f "$additional_libdir/lib$name.la"; then
23166                   found_la="$additional_libdir/lib$name.la"
23167                 fi
23168               fi
23169             fi
23170           fi
23171           if test "X$found_dir" = "X"; then
23172             for x in $LDFLAGS $LTLIBINTL; do
23173
23174   acl_save_prefix="$prefix"
23175   prefix="$acl_final_prefix"
23176   acl_save_exec_prefix="$exec_prefix"
23177   exec_prefix="$acl_final_exec_prefix"
23178   eval x=\"$x\"
23179   exec_prefix="$acl_save_exec_prefix"
23180   prefix="$acl_save_prefix"
23181
23182               case "$x" in
23183                 -L*)
23184                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23185                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23186                     found_dir="$dir"
23187                     found_so="$dir/lib$name.$shlibext"
23188                     if test -f "$dir/lib$name.la"; then
23189                       found_la="$dir/lib$name.la"
23190                     fi
23191                   else
23192                     if test -f "$dir/lib$name.$libext"; then
23193                       found_dir="$dir"
23194                       found_a="$dir/lib$name.$libext"
23195                       if test -f "$dir/lib$name.la"; then
23196                         found_la="$dir/lib$name.la"
23197                       fi
23198                     fi
23199                   fi
23200                   ;;
23201               esac
23202               if test "X$found_dir" != "X"; then
23203                 break
23204               fi
23205             done
23206           fi
23207           if test "X$found_dir" != "X"; then
23208                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23209             if test "X$found_so" != "X"; then
23210                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23211                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23212               else
23213                                                                                 haveit=
23214                 for x in $ltrpathdirs; do
23215                   if test "X$x" = "X$found_dir"; then
23216                     haveit=yes
23217                     break
23218                   fi
23219                 done
23220                 if test -z "$haveit"; then
23221                   ltrpathdirs="$ltrpathdirs $found_dir"
23222                 fi
23223                                 if test "$hardcode_direct" = yes; then
23224                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23225                 else
23226                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23227                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23228                                                             haveit=
23229                     for x in $rpathdirs; do
23230                       if test "X$x" = "X$found_dir"; then
23231                         haveit=yes
23232                         break
23233                       fi
23234                     done
23235                     if test -z "$haveit"; then
23236                       rpathdirs="$rpathdirs $found_dir"
23237                     fi
23238                   else
23239                                                                                 haveit=
23240                     for x in $LDFLAGS $LIBINTL; do
23241
23242   acl_save_prefix="$prefix"
23243   prefix="$acl_final_prefix"
23244   acl_save_exec_prefix="$exec_prefix"
23245   exec_prefix="$acl_final_exec_prefix"
23246   eval x=\"$x\"
23247   exec_prefix="$acl_save_exec_prefix"
23248   prefix="$acl_save_prefix"
23249
23250                       if test "X$x" = "X-L$found_dir"; then
23251                         haveit=yes
23252                         break
23253                       fi
23254                     done
23255                     if test -z "$haveit"; then
23256                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23257                     fi
23258                     if test "$hardcode_minus_L" != no; then
23259                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23260                     else
23261                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23262                     fi
23263                   fi
23264                 fi
23265               fi
23266             else
23267               if test "X$found_a" != "X"; then
23268                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23269               else
23270                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23271               fi
23272             fi
23273                         additional_includedir=
23274             case "$found_dir" in
23275               */lib | */lib/)
23276                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23277                 additional_includedir="$basedir/include"
23278                 ;;
23279             esac
23280             if test "X$additional_includedir" != "X"; then
23281                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23282                 haveit=
23283                 if test "X$additional_includedir" = "X/usr/local/include"; then
23284                   if test -n "$GCC"; then
23285                     case $host_os in
23286                       linux*) haveit=yes;;
23287                     esac
23288                   fi
23289                 fi
23290                 if test -z "$haveit"; then
23291                   for x in $CPPFLAGS $INCINTL; do
23292
23293   acl_save_prefix="$prefix"
23294   prefix="$acl_final_prefix"
23295   acl_save_exec_prefix="$exec_prefix"
23296   exec_prefix="$acl_final_exec_prefix"
23297   eval x=\"$x\"
23298   exec_prefix="$acl_save_exec_prefix"
23299   prefix="$acl_save_prefix"
23300
23301                     if test "X$x" = "X-I$additional_includedir"; then
23302                       haveit=yes
23303                       break
23304                     fi
23305                   done
23306                   if test -z "$haveit"; then
23307                     if test -d "$additional_includedir"; then
23308                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23309                     fi
23310                   fi
23311                 fi
23312               fi
23313             fi
23314                         if test -n "$found_la"; then
23315                                                         save_libdir="$libdir"
23316               case "$found_la" in
23317                 */* | *\\*) . "$found_la" ;;
23318                 *) . "./$found_la" ;;
23319               esac
23320               libdir="$save_libdir"
23321                             for dep in $dependency_libs; do
23322                 case "$dep" in
23323                   -L*)
23324                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23325                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
23326                       haveit=
23327                       if test "X$additional_libdir" = "X/usr/local/lib"; then
23328                         if test -n "$GCC"; then
23329                           case $host_os in
23330                             linux*) haveit=yes;;
23331                           esac
23332                         fi
23333                       fi
23334                       if test -z "$haveit"; then
23335                         haveit=
23336                         for x in $LDFLAGS $LIBINTL; do
23337
23338   acl_save_prefix="$prefix"
23339   prefix="$acl_final_prefix"
23340   acl_save_exec_prefix="$exec_prefix"
23341   exec_prefix="$acl_final_exec_prefix"
23342   eval x=\"$x\"
23343   exec_prefix="$acl_save_exec_prefix"
23344   prefix="$acl_save_prefix"
23345
23346                           if test "X$x" = "X-L$additional_libdir"; then
23347                             haveit=yes
23348                             break
23349                           fi
23350                         done
23351                         if test -z "$haveit"; then
23352                           if test -d "$additional_libdir"; then
23353                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23354                           fi
23355                         fi
23356                         haveit=
23357                         for x in $LDFLAGS $LTLIBINTL; do
23358
23359   acl_save_prefix="$prefix"
23360   prefix="$acl_final_prefix"
23361   acl_save_exec_prefix="$exec_prefix"
23362   exec_prefix="$acl_final_exec_prefix"
23363   eval x=\"$x\"
23364   exec_prefix="$acl_save_exec_prefix"
23365   prefix="$acl_save_prefix"
23366
23367                           if test "X$x" = "X-L$additional_libdir"; then
23368                             haveit=yes
23369                             break
23370                           fi
23371                         done
23372                         if test -z "$haveit"; then
23373                           if test -d "$additional_libdir"; then
23374                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23375                           fi
23376                         fi
23377                       fi
23378                     fi
23379                     ;;
23380                   -R*)
23381                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23382                     if test "$enable_rpath" != no; then
23383                                                                   haveit=
23384                       for x in $rpathdirs; do
23385                         if test "X$x" = "X$dir"; then
23386                           haveit=yes
23387                           break
23388                         fi
23389                       done
23390                       if test -z "$haveit"; then
23391                         rpathdirs="$rpathdirs $dir"
23392                       fi
23393                                                                   haveit=
23394                       for x in $ltrpathdirs; do
23395                         if test "X$x" = "X$dir"; then
23396                           haveit=yes
23397                           break
23398                         fi
23399                       done
23400                       if test -z "$haveit"; then
23401                         ltrpathdirs="$ltrpathdirs $dir"
23402                       fi
23403                     fi
23404                     ;;
23405                   -l*)
23406                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23407                     ;;
23408                   *.la)
23409                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23410                     ;;
23411                   *)
23412                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23413                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23414                     ;;
23415                 esac
23416               done
23417             fi
23418           else
23419                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23420             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23421           fi
23422         fi
23423       fi
23424     done
23425   done
23426   if test "X$rpathdirs" != "X"; then
23427     if test -n "$hardcode_libdir_separator"; then
23428                         alldirs=
23429       for found_dir in $rpathdirs; do
23430         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23431       done
23432             acl_save_libdir="$libdir"
23433       libdir="$alldirs"
23434       eval flag=\"$hardcode_libdir_flag_spec\"
23435       libdir="$acl_save_libdir"
23436       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23437     else
23438             for found_dir in $rpathdirs; do
23439         acl_save_libdir="$libdir"
23440         libdir="$found_dir"
23441         eval flag=\"$hardcode_libdir_flag_spec\"
23442         libdir="$acl_save_libdir"
23443         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23444       done
23445     fi
23446   fi
23447   if test "X$ltrpathdirs" != "X"; then
23448             for found_dir in $ltrpathdirs; do
23449       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23450     done
23451   fi
23452
23453           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
23454 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
23455 if ${gt_cv_func_gnugettext2_libintl+:} false; then :
23456   $as_echo_n "(cached) " >&6
23457 else
23458   gt_save_CPPFLAGS="$CPPFLAGS"
23459             CPPFLAGS="$CPPFLAGS $INCINTL"
23460             gt_save_LIBS="$LIBS"
23461             LIBS="$LIBS $LIBINTL"
23462                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23463 /* end confdefs.h.  */
23464 #include <libintl.h>
23465 extern int _nl_msg_cat_cntr;
23466 extern
23467 #ifdef __cplusplus
23468 "C"
23469 #endif
23470 const char *_nl_expand_alias ();
23471 int
23472 main ()
23473 {
23474 bindtextdomain ("", "");
23475 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
23476   ;
23477   return 0;
23478 }
23479 _ACEOF
23480 if ac_fn_c_try_link "$LINENO"; then :
23481   gt_cv_func_gnugettext2_libintl=yes
23482 else
23483   gt_cv_func_gnugettext2_libintl=no
23484 fi
23485 rm -f core conftest.err conftest.$ac_objext \
23486     conftest$ac_exeext conftest.$ac_ext
23487                         if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
23488               LIBS="$LIBS $LIBICONV"
23489               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23490 /* end confdefs.h.  */
23491 #include <libintl.h>
23492 extern int _nl_msg_cat_cntr;
23493 extern
23494 #ifdef __cplusplus
23495 "C"
23496 #endif
23497 const char *_nl_expand_alias ();
23498 int
23499 main ()
23500 {
23501 bindtextdomain ("", "");
23502 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
23503   ;
23504   return 0;
23505 }
23506 _ACEOF
23507 if ac_fn_c_try_link "$LINENO"; then :
23508   LIBINTL="$LIBINTL $LIBICONV"
23509                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23510                 gt_cv_func_gnugettext2_libintl=yes
23511
23512 fi
23513 rm -f core conftest.err conftest.$ac_objext \
23514     conftest$ac_exeext conftest.$ac_ext
23515             fi
23516             CPPFLAGS="$gt_save_CPPFLAGS"
23517             LIBS="$gt_save_LIBS"
23518 fi
23519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
23520 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
23521         fi
23522
23523                                         if test "$gt_cv_func_gnugettext2_libc" = "yes" \
23524            || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
23525                 && test "$PACKAGE" != gettext-runtime \
23526                 && test "$PACKAGE" != gettext-tools; }; then
23527           gt_use_preinstalled_gnugettext=yes
23528         else
23529                     LIBINTL=
23530           LTLIBINTL=
23531           INCINTL=
23532         fi
23533
23534
23535         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23536                               nls_cv_use_gnu_gettext=yes
23537         fi
23538       fi
23539
23540       if test "$nls_cv_use_gnu_gettext" = "yes"; then
23541                 BUILD_INCLUDED_LIBINTL=yes
23542         USE_INCLUDED_LIBINTL=yes
23543         LIBINTL="\$(top_builddir)/intl//libintl.a $LIBICONV"
23544         LTLIBINTL="\$(top_builddir)/intl//libintl.a $LTLIBICONV"
23545         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23546       fi
23547
23548       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23549          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23550                 CATOBJEXT=.gmo
23551       fi
23552
23553
23554     if test "$gt_use_preinstalled_gnugettext" = "yes" \
23555        || test "$nls_cv_use_gnu_gettext" = "yes"; then
23556
23557 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
23558
23559     else
23560       USE_NLS=no
23561     fi
23562   fi
23563
23564   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
23565 $as_echo_n "checking whether to use NLS... " >&6; }
23566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
23567 $as_echo "$USE_NLS" >&6; }
23568   if test "$USE_NLS" = "yes"; then
23569     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
23570 $as_echo_n "checking where the gettext function comes from... " >&6; }
23571     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23572       if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
23573         gt_source="external libintl"
23574       else
23575         gt_source="libc"
23576       fi
23577     else
23578       gt_source="included intl directory"
23579     fi
23580     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
23581 $as_echo "$gt_source" >&6; }
23582   fi
23583
23584   if test "$USE_NLS" = "yes"; then
23585
23586     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23587       if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
23588         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
23589 $as_echo_n "checking how to link with libintl... " >&6; }
23590         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
23591 $as_echo "$LIBINTL" >&6; }
23592
23593   for element in $INCINTL; do
23594     haveit=
23595     for x in $CPPFLAGS; do
23596
23597   acl_save_prefix="$prefix"
23598   prefix="$acl_final_prefix"
23599   acl_save_exec_prefix="$exec_prefix"
23600   exec_prefix="$acl_final_exec_prefix"
23601   eval x=\"$x\"
23602   exec_prefix="$acl_save_exec_prefix"
23603   prefix="$acl_save_prefix"
23604
23605       if test "X$x" = "X$element"; then
23606         haveit=yes
23607         break
23608       fi
23609     done
23610     if test -z "$haveit"; then
23611       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23612     fi
23613   done
23614
23615       fi
23616
23617
23618 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
23619
23620
23621 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
23622
23623     fi
23624
23625         POSUB=po
23626   fi
23627
23628
23629             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23630       BUILD_INCLUDED_LIBINTL=yes
23631     fi
23632
23633
23634
23635
23636
23637         nls_cv_header_intl=
23638     nls_cv_header_libgt=
23639
23640         DATADIRNAME=share
23641
23642
23643         INSTOBJEXT=.mo
23644
23645
23646         GENCAT=gencat
23647
23648
23649         if test "$USE_INCLUDED_LIBINTL" = yes; then
23650       INTLOBJS="\$(GETTOBJS)"
23651     fi
23652
23653
23654         INTL_LIBTOOL_SUFFIX_PREFIX=
23655
23656
23657
23658     INTLLIBS="$LIBINTL"
23659
23660
23661
23662
23663
23664
23665 if test "x${shared_libnavit}" = "xyes" -a "x${win32ce}" = "xyes"; then
23666         INTLLIBS="\$(top_builddir)/intl/libintl.la"
23667         LIBINTL=$INTLLIBS
23668         LTLIBINTL=$INTLLIBS
23669 fi
23670
23671
23672 if test x"$LIBINTL" != "x" ;then
23673         CFLAGS="$CFLAGS -I\$(top_builddir)/intl/"
23674 fi
23675
23676 fi
23677  if test "x$enable_nls" = "xyes"; then
23678   ENABLE_NLS_TRUE=
23679   ENABLE_NLS_FALSE='#'
23680 else
23681   ENABLE_NLS_TRUE='#'
23682   ENABLE_NLS_FALSE=
23683 fi
23684
23685  if test "x$xgettext_glade" = "xyes"; then
23686   XGETTEXT_GLADE_TRUE=
23687   XGETTEXT_GLADE_FALSE='#'
23688 else
23689   XGETTEXT_GLADE_TRUE='#'
23690   XGETTEXT_GLADE_FALSE=
23691 fi
23692
23693 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
23694 if test "x$ac_cv_header_byteswap_h" = xyes; then :
23695
23696 $as_echo "#define HAVE_BYTESWAP_H 1" >>confdefs.h
23697
23698
23699 fi
23700
23701
23702
23703 ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
23704 if test "x$ac_cv_header_sys_endian_h" = xyes; then :
23705
23706 $as_echo "#define USE_SYS_ENDIAN_H 1" >>confdefs.h
23707
23708 fi
23709
23710
23711
23712 PACKAGE=navit
23713 cat >>confdefs.h <<_ACEOF
23714 #define PACKAGE "$PACKAGE"
23715 _ACEOF
23716
23717 cat >>confdefs.h <<_ACEOF
23718 #define VERSION "$VERSION"
23719 _ACEOF
23720
23721
23722
23723
23724 ac_fn_c_check_header_mongrel "$LINENO" "wordexp.h" "ac_cv_header_wordexp_h" "$ac_includes_default"
23725 if test "x$ac_cv_header_wordexp_h" = xyes; then :
23726   wordexp_h=yes
23727 else
23728   wordexp_h=no;NAVIT_CFLAGS="$NAVIT_CFLAGS -I\$(top_srcdir)/navit/support/wordexp";WORDEXP_LIBS="-L\$(top_builddir)/navit/support/wordexp -lsupport_wordexp"
23729 fi
23730
23731
23732  if test "x$wordexp_h" = "xno"; then
23733   SUPPORT_WORDEXP_TRUE=
23734   SUPPORT_WORDEXP_FALSE='#'
23735 else
23736   SUPPORT_WORDEXP_TRUE='#'
23737   SUPPORT_WORDEXP_FALSE=
23738 fi
23739
23740
23741 support_libc=no
23742 # Check whether --enable-support_libc was given.
23743 if test "${enable_support_libc+set}" = set; then :
23744   enableval=$enable_support_libc; support_libc=$enableval
23745 fi
23746
23747  if test "x$support_libc" = "xyes"; then
23748   SUPPORT_LIBC_TRUE=
23749   SUPPORT_LIBC_FALSE='#'
23750 else
23751   SUPPORT_LIBC_TRUE='#'
23752   SUPPORT_LIBC_FALSE=
23753 fi
23754
23755 if test "x$support_libc" = "xyes"; then
23756         CFLAGS="$CFLAGS -I\$(top_srcdir)/navit/support/libc"
23757         LIBC_LIBS="-L\$(top_builddir)/navit/support/libc -lsupport_libc"
23758 fi
23759
23760 ## graphics
23761 # Check whether --enable-graphics was given.
23762 if test "${enable_graphics+set}" = set; then :
23763   enableval=$enable_graphics; graphics=$enableval;graphics_reason="configure parameter"
23764 fi
23765
23766  if test "x${graphics}" = "xyes"; then
23767   GRAPHICS_TRUE=
23768   GRAPHICS_FALSE='#'
23769 else
23770   GRAPHICS_TRUE='#'
23771   GRAPHICS_FALSE=
23772 fi
23773
23774 if test "x$graphics" = "xyes"; then
23775
23776 $as_echo "#define USE_GRAPHICS 1" >>confdefs.h
23777
23778 fi
23779
23780 # gd
23781
23782 # android
23783 # Check whether --enable-graphics-android was given.
23784 if test "${enable_graphics_android+set}" = set; then :
23785   enableval=$enable_graphics_android; graphics_android=$enableval;graphics_android_reason="configure parameter"
23786 fi
23787
23788  if test "x${graphics_android}" = "xyes"; then
23789   GRAPHICS_ANDROID_TRUE=
23790   GRAPHICS_ANDROID_FALSE='#'
23791 else
23792   GRAPHICS_ANDROID_TRUE='#'
23793   GRAPHICS_ANDROID_FALSE=
23794 fi
23795
23796 # gd
23797 # Check whether --enable-graphics-gd was given.
23798 if test "${enable_graphics_gd+set}" = set; then :
23799   enableval=$enable_graphics_gd; graphics_gd=$enableval;graphics_gd_reason="configure parameter"
23800 fi
23801
23802 if test "x${graphics_gd}" = "xyes" ; then
23803         if test -z "$GDLIB_CONFIG"; then
23804             # Extract the first word of "gdlib-config", so it can be a program name with args.
23805 set dummy gdlib-config; ac_word=$2
23806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23807 $as_echo_n "checking for $ac_word... " >&6; }
23808 if ${ac_cv_path_GDLIB_CONFIG+:} false; then :
23809   $as_echo_n "(cached) " >&6
23810 else
23811   case $GDLIB_CONFIG in
23812   [\\/]* | ?:[\\/]*)
23813   ac_cv_path_GDLIB_CONFIG="$GDLIB_CONFIG" # Let the user override the test with a path.
23814   ;;
23815   *)
23816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23817 for as_dir in $PATH
23818 do
23819   IFS=$as_save_IFS
23820   test -z "$as_dir" && as_dir=.
23821     for ac_exec_ext in '' $ac_executable_extensions; do
23822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23823     ac_cv_path_GDLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23825     break 2
23826   fi
23827 done
23828   done
23829 IFS=$as_save_IFS
23830
23831   ;;
23832 esac
23833 fi
23834 GDLIB_CONFIG=$ac_cv_path_GDLIB_CONFIG
23835 if test -n "$GDLIB_CONFIG"; then
23836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG" >&5
23837 $as_echo "$GDLIB_CONFIG" >&6; }
23838 else
23839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23840 $as_echo "no" >&6; }
23841 fi
23842
23843
23844         fi
23845         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib with $GDLIB_CONFIG" >&5
23846 $as_echo_n "checking for gdlib with $GDLIB_CONFIG... " >&6; }
23847         if test ! -x "$GDLIB_CONFIG"; then
23848             if test "x${GDLIB_CONFIG}" = "x" ; then
23849                  graphics_gd_reason="$GDLIB_CONFIG not executable"
23850             else
23851                  graphics_gd_reason="gdlib-config missing"
23852             fi
23853             graphics_gd=no
23854             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23855 $as_echo "no" >&6; }
23856         else
23857             if test "x${GD_CFLAGS}" = "x" ; then
23858                     GD_CFLAGS="-I`$GDLIB_CONFIG --includedir`"
23859             fi
23860             if test "x${GD_LIBS}" = "x" ; then
23861                     GD_LIBS="-L`$GDLIB_CONFIG --libdir` -lgd `$GDLIB_CONFIG --libs`"
23862             fi
23863
23864
23865             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23866 $as_echo "yes" >&6; }
23867         fi
23868 fi
23869  if test "x${graphics_gd}" = "xyes"; then
23870   GRAPHICS_GD_TRUE=
23871   GRAPHICS_GD_FALSE='#'
23872 else
23873   GRAPHICS_GD_TRUE='#'
23874   GRAPHICS_GD_FALSE=
23875 fi
23876
23877 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
23878 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
23879
23880 $as_echo "#define HAVE_SHMEM /**/" >>confdefs.h
23881
23882
23883 fi
23884
23885
23886 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
23887 if test "x$ac_cv_header_X11_xpm_h" = xyes; then :
23888
23889 $as_echo "#define HAVE_XPM /**/" >>confdefs.h
23890
23891
23892 fi
23893
23894
23895 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
23896 if test "x$ac_cv_header_getopt_h" = xyes; then :
23897
23898 $as_echo "#define HAVE_GETOPT_H /**/" >>confdefs.h
23899
23900
23901 fi
23902
23903
23904 if test "x${graphics_gd}" = "xyes" ; then
23905         save_CPPFLAGS=$CPPFLAGS
23906         save_LIBS=$LIBS
23907         LIBS="$GD_LIBS $LIBS"
23908         CPPFLAGS="$GD_CFLAGS $CPPFLAGS"
23909         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23910 /* end confdefs.h.  */
23911 #include <gd.h>
23912 int
23913 main ()
23914 {
23915 gdImageCreateFromPng(0);
23916   ;
23917   return 0;
23918 }
23919 _ACEOF
23920 if ac_fn_c_try_link "$LINENO"; then :
23921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23922 $as_echo "yes" >&6; };
23923 $as_echo "#define HAVE_GRAPHICS_GD_PNG 1" >>confdefs.h
23924
23925 else
23926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23927 $as_echo "no" >&6; }
23928 fi
23929 rm -f core conftest.err conftest.$ac_objext \
23930     conftest$ac_exeext conftest.$ac_ext
23931         CPPFLAGS=$save_CPPFLAGS
23932         LIBS=$save_LIBS
23933 fi
23934
23935 # gtk_drawing_area
23936 # Check whether --enable-graphics-gtk-drawing-area was given.
23937 if test "${enable_graphics_gtk_drawing_area+set}" = set; then :
23938   enableval=$enable_graphics_gtk_drawing_area; graphics_gtk_drawing_area=$enableval;graphics_gtk_drawing_area_reason="configure parameter"
23939 fi
23940
23941  if test "x${graphics_gtk_drawing_area}" = "xyes"; then
23942   GRAPHICS_GTK_DRAWING_AREA_TRUE=
23943   GRAPHICS_GTK_DRAWING_AREA_FALSE='#'
23944 else
23945   GRAPHICS_GTK_DRAWING_AREA_TRUE='#'
23946   GRAPHICS_GTK_DRAWING_AREA_FALSE=
23947 fi
23948
23949 # null
23950 # Check whether --enable-graphics-null was given.
23951 if test "${enable_graphics_null+set}" = set; then :
23952   enableval=$enable_graphics_null; graphics_null=$enableval;graphics_null_reason="configure parameter"
23953 fi
23954
23955  if test "x${graphics_null}" = "xyes"; then
23956   GRAPHICS_NULL_TRUE=
23957   GRAPHICS_NULL_FALSE='#'
23958 else
23959   GRAPHICS_NULL_TRUE='#'
23960   GRAPHICS_NULL_FALSE=
23961 fi
23962
23963 # win32
23964 # Check whether --enable-graphics-win32 was given.
23965 if test "${enable_graphics_win32+set}" = set; then :
23966   enableval=$enable_graphics_win32; graphics_win32=$enableval;graphics_win32_reason="configure parameter"
23967 fi
23968
23969  if test "x${graphics_win32}" = "xyes"; then
23970   GRAPHICS_WIN32_TRUE=
23971   GRAPHICS_WIN32_FALSE='#'
23972 else
23973   GRAPHICS_WIN32_TRUE='#'
23974   GRAPHICS_WIN32_FALSE=
23975 fi
23976
23977 # qt_qpainter
23978 # Check whether --enable-graphics-qt-qpainter was given.
23979 if test "${enable_graphics_qt_qpainter+set}" = set; then :
23980   enableval=$enable_graphics_qt_qpainter; graphics_qt_qpainter=$enableval;graphics_qt_qpainter_reason="configure parameter"
23981 fi
23982
23983 if test "x${graphics_qt_qpainter}" = "xyes" -a "x${QT_GUI_CFLAGS}" = "x" -a "x${QT_GUI_LIBS}" = "x"; then
23984
23985 pkg_failed=no
23986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT_GUI" >&5
23987 $as_echo_n "checking for QT_GUI... " >&6; }
23988
23989 if test -n "$QT_GUI_CFLAGS"; then
23990     pkg_cv_QT_GUI_CFLAGS="$QT_GUI_CFLAGS"
23991  elif test -n "$PKG_CONFIG"; then
23992     if test -n "$PKG_CONFIG" && \
23993     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtGui QtCore\""; } >&5
23994   ($PKG_CONFIG --exists --print-errors "QtGui QtCore") 2>&5
23995   ac_status=$?
23996   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23997   test $ac_status = 0; }; then
23998   pkg_cv_QT_GUI_CFLAGS=`$PKG_CONFIG --cflags "QtGui QtCore" 2>/dev/null`
23999 else
24000   pkg_failed=yes
24001 fi
24002  else
24003     pkg_failed=untried
24004 fi
24005 if test -n "$QT_GUI_LIBS"; then
24006     pkg_cv_QT_GUI_LIBS="$QT_GUI_LIBS"
24007  elif test -n "$PKG_CONFIG"; then
24008     if test -n "$PKG_CONFIG" && \
24009     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtGui QtCore\""; } >&5
24010   ($PKG_CONFIG --exists --print-errors "QtGui QtCore") 2>&5
24011   ac_status=$?
24012   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24013   test $ac_status = 0; }; then
24014   pkg_cv_QT_GUI_LIBS=`$PKG_CONFIG --libs "QtGui QtCore" 2>/dev/null`
24015 else
24016   pkg_failed=yes
24017 fi
24018  else
24019     pkg_failed=untried
24020 fi
24021
24022
24023
24024 if test $pkg_failed = yes; then
24025         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24026 $as_echo "no" >&6; }
24027
24028 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24029         _pkg_short_errors_supported=yes
24030 else
24031         _pkg_short_errors_supported=no
24032 fi
24033         if test $_pkg_short_errors_supported = yes; then
24034                 QT_GUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "QtGui QtCore" 2>&1`
24035         else
24036                 QT_GUI_PKG_ERRORS=`$PKG_CONFIG --print-errors "QtGui QtCore" 2>&1`
24037         fi
24038         # Put the nasty error message in config.log where it belongs
24039         echo "$QT_GUI_PKG_ERRORS" >&5
24040
24041         graphics_qt_qpainter=no;graphics_qt_qpainter_reason="Packages QtGui and/or QtCore missing"
24042 elif test $pkg_failed = untried; then
24043         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24044 $as_echo "no" >&6; }
24045         graphics_qt_qpainter=no;graphics_qt_qpainter_reason="Packages QtGui and/or QtCore missing"
24046 else
24047         QT_GUI_CFLAGS=$pkg_cv_QT_GUI_CFLAGS
24048         QT_GUI_LIBS=$pkg_cv_QT_GUI_LIBS
24049         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24050 $as_echo "yes" >&6; }
24051         graphics_qt_qpainter=yes
24052 fi
24053         if test "x${graphics_qt_qpainter}" = "xno"; then
24054
24055 pkg_failed=no
24056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT_GUI" >&5
24057 $as_echo_n "checking for QT_GUI... " >&6; }
24058
24059 if test -n "$QT_GUI_CFLAGS"; then
24060     pkg_cv_QT_GUI_CFLAGS="$QT_GUI_CFLAGS"
24061  elif test -n "$PKG_CONFIG"; then
24062     if test -n "$PKG_CONFIG" && \
24063     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"qt-mt\""; } >&5
24064   ($PKG_CONFIG --exists --print-errors "qt-mt") 2>&5
24065   ac_status=$?
24066   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24067   test $ac_status = 0; }; then
24068   pkg_cv_QT_GUI_CFLAGS=`$PKG_CONFIG --cflags "qt-mt" 2>/dev/null`
24069 else
24070   pkg_failed=yes
24071 fi
24072  else
24073     pkg_failed=untried
24074 fi
24075 if test -n "$QT_GUI_LIBS"; then
24076     pkg_cv_QT_GUI_LIBS="$QT_GUI_LIBS"
24077  elif test -n "$PKG_CONFIG"; then
24078     if test -n "$PKG_CONFIG" && \
24079     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"qt-mt\""; } >&5
24080   ($PKG_CONFIG --exists --print-errors "qt-mt") 2>&5
24081   ac_status=$?
24082   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24083   test $ac_status = 0; }; then
24084   pkg_cv_QT_GUI_LIBS=`$PKG_CONFIG --libs "qt-mt" 2>/dev/null`
24085 else
24086   pkg_failed=yes
24087 fi
24088  else
24089     pkg_failed=untried
24090 fi
24091
24092
24093
24094 if test $pkg_failed = yes; then
24095         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24096 $as_echo "no" >&6; }
24097
24098 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24099         _pkg_short_errors_supported=yes
24100 else
24101         _pkg_short_errors_supported=no
24102 fi
24103         if test $_pkg_short_errors_supported = yes; then
24104                 QT_GUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "qt-mt" 2>&1`
24105         else
24106                 QT_GUI_PKG_ERRORS=`$PKG_CONFIG --print-errors "qt-mt" 2>&1`
24107         fi
24108         # Put the nasty error message in config.log where it belongs
24109         echo "$QT_GUI_PKG_ERRORS" >&5
24110
24111         graphics_qt_qpainter=no
24112 elif test $pkg_failed = untried; then
24113         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24114 $as_echo "no" >&6; }
24115         graphics_qt_qpainter=no
24116 else
24117         QT_GUI_CFLAGS=$pkg_cv_QT_GUI_CFLAGS
24118         QT_GUI_LIBS=$pkg_cv_QT_GUI_LIBS
24119         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24120 $as_echo "yes" >&6; }
24121         graphics_qt_qpainter=yes;graphics_qt_qpainter_reason="Package qt-mt present"
24122 fi
24123         fi
24124 fi
24125 if test "x${graphics_qt_qpainter}" = "xyes" ; then
24126
24127 pkg_failed=no
24128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT_SVG" >&5
24129 $as_echo_n "checking for QT_SVG... " >&6; }
24130
24131 if test -n "$QT_SVG_CFLAGS"; then
24132     pkg_cv_QT_SVG_CFLAGS="$QT_SVG_CFLAGS"
24133  elif test -n "$PKG_CONFIG"; then
24134     if test -n "$PKG_CONFIG" && \
24135     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtSvg\""; } >&5
24136   ($PKG_CONFIG --exists --print-errors "QtSvg") 2>&5
24137   ac_status=$?
24138   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24139   test $ac_status = 0; }; then
24140   pkg_cv_QT_SVG_CFLAGS=`$PKG_CONFIG --cflags "QtSvg" 2>/dev/null`
24141 else
24142   pkg_failed=yes
24143 fi
24144  else
24145     pkg_failed=untried
24146 fi
24147 if test -n "$QT_SVG_LIBS"; then
24148     pkg_cv_QT_SVG_LIBS="$QT_SVG_LIBS"
24149  elif test -n "$PKG_CONFIG"; then
24150     if test -n "$PKG_CONFIG" && \
24151     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtSvg\""; } >&5
24152   ($PKG_CONFIG --exists --print-errors "QtSvg") 2>&5
24153   ac_status=$?
24154   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24155   test $ac_status = 0; }; then
24156   pkg_cv_QT_SVG_LIBS=`$PKG_CONFIG --libs "QtSvg" 2>/dev/null`
24157 else
24158   pkg_failed=yes
24159 fi
24160  else
24161     pkg_failed=untried
24162 fi
24163
24164
24165
24166 if test $pkg_failed = yes; then
24167         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24168 $as_echo "no" >&6; }
24169
24170 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24171         _pkg_short_errors_supported=yes
24172 else
24173         _pkg_short_errors_supported=no
24174 fi
24175         if test $_pkg_short_errors_supported = yes; then
24176                 QT_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "QtSvg" 2>&1`
24177         else
24178                 QT_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "QtSvg" 2>&1`
24179         fi
24180         # Put the nasty error message in config.log where it belongs
24181         echo "$QT_SVG_PKG_ERRORS" >&5
24182
24183         have_qt_svg=no
24184 elif test $pkg_failed = untried; then
24185         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24186 $as_echo "no" >&6; }
24187         have_qt_svg=no
24188 else
24189         QT_SVG_CFLAGS=$pkg_cv_QT_SVG_CFLAGS
24190         QT_SVG_LIBS=$pkg_cv_QT_SVG_LIBS
24191         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24192 $as_echo "yes" >&6; }
24193         have_qt_svg=yes
24194 fi
24195         if test "x${have_qt_svg}" = "xyes"; then
24196
24197 $as_echo "#define HAVE_QT_SVG /**/" >>confdefs.h
24198
24199         fi
24200 fi
24201 if test "x${graphics_qt_qpainter}" = "xyes" ; then
24202
24203 $as_echo "#define USE_GRAPICS_QT_QPAINTER 1" >>confdefs.h
24204
24205 fi
24206
24207
24208
24209
24210  if test "x${graphics_qt_qpainter}" = "xyes"; then
24211   GRAPHICS_QT_QPAINTER_TRUE=
24212   GRAPHICS_QT_QPAINTER_FALSE='#'
24213 else
24214   GRAPHICS_QT_QPAINTER_TRUE='#'
24215   GRAPHICS_QT_QPAINTER_FALSE=
24216 fi
24217
24218 MOC=`$PKG_CONFIG QtGui --variable=moc_location`
24219 if test "x${MOC}" = "x"; then
24220         # Extract the first word of "moc", so it can be a program name with args.
24221 set dummy moc; ac_word=$2
24222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24223 $as_echo_n "checking for $ac_word... " >&6; }
24224 if ${ac_cv_prog_MOC+:} false; then :
24225   $as_echo_n "(cached) " >&6
24226 else
24227   if test -n "$MOC"; then
24228   ac_cv_prog_MOC="$MOC" # Let the user override the test.
24229 else
24230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24231 for as_dir in $PATH
24232 do
24233   IFS=$as_save_IFS
24234   test -z "$as_dir" && as_dir=.
24235     for ac_exec_ext in '' $ac_executable_extensions; do
24236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24237     ac_cv_prog_MOC="moc"
24238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24239     break 2
24240   fi
24241 done
24242   done
24243 IFS=$as_save_IFS
24244
24245 fi
24246 fi
24247 MOC=$ac_cv_prog_MOC
24248 if test -n "$MOC"; then
24249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
24250 $as_echo "$MOC" >&6; }
24251 else
24252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24253 $as_echo "no" >&6; }
24254 fi
24255
24256
24257 fi
24258
24259
24260
24261 ## map
24262 # binfile
24263 # Check whether --enable-map-binfile was given.
24264 if test "${enable_map_binfile+set}" = set; then :
24265   enableval=$enable_map_binfile; map_binfile=$enableval;map_binfile_reason="configure parameter"
24266 fi
24267
24268  if test "x${map_binfile}" = "xyes"; then
24269   MAP_BINFILE_TRUE=
24270   MAP_BINFILE_FALSE='#'
24271 else
24272   MAP_BINFILE_TRUE='#'
24273   MAP_BINFILE_FALSE=
24274 fi
24275
24276 # filter
24277 # Check whether --enable-map-filter was given.
24278 if test "${enable_map_filter+set}" = set; then :
24279   enableval=$enable_map_filter; map_filter=$enableval;map_filter_reason="configure parameter"
24280 fi
24281
24282  if test "x${map_filter}" = "xyes"; then
24283   MAP_FILTER_TRUE=
24284   MAP_FILTER_FALSE='#'
24285 else
24286   MAP_FILTER_TRUE='#'
24287   MAP_FILTER_FALSE=
24288 fi
24289
24290 # mg
24291 # Check whether --enable-map-mg was given.
24292 if test "${enable_map_mg+set}" = set; then :
24293   enableval=$enable_map_mg; map_mg=$enableval;map_mg_reason="configure parameter"
24294 fi
24295
24296  if test "x${map_mg}" = "xyes"; then
24297   MAP_MG_TRUE=
24298   MAP_MG_FALSE='#'
24299 else
24300   MAP_MG_TRUE='#'
24301   MAP_MG_FALSE=
24302 fi
24303
24304 # shapefile
24305 # Check whether --enable-map-shapefile was given.
24306 if test "${enable_map_shapefile+set}" = set; then :
24307   enableval=$enable_map_shapefile; map_shapefile=$enableval;map_shapefile_reason="configure parameter"
24308 fi
24309
24310  if test "x${map_shapefile}" = "xyes"; then
24311   MAP_SHAPEFILE_TRUE=
24312   MAP_SHAPEFILE_FALSE='#'
24313 else
24314   MAP_SHAPEFILE_TRUE='#'
24315   MAP_SHAPEFILE_FALSE=
24316 fi
24317
24318 # textfile
24319 # Check whether --enable-map-textfile was given.
24320 if test "${enable_map_textfile+set}" = set; then :
24321   enableval=$enable_map_textfile; map_textfile=$enableval;map_textfile_reason="configure parameter"
24322 fi
24323
24324  if test "x${map_textfile}" = "xyes"; then
24325   MAP_TEXTFILE_TRUE=
24326   MAP_TEXTFILE_FALSE='#'
24327 else
24328   MAP_TEXTFILE_TRUE='#'
24329   MAP_TEXTFILE_FALSE=
24330 fi
24331
24332 # csv
24333 # Check whether --enable-map-csv was given.
24334 if test "${enable_map_csv+set}" = set; then :
24335   enableval=$enable_map_csv; map_csv=$enableval;map_csv_reason="configure parameter"
24336 fi
24337
24338  if test "x${map_csv}" = "xyes"; then
24339   MAP_CSV_TRUE=
24340   MAP_CSV_FALSE='#'
24341 else
24342   MAP_CSV_TRUE='#'
24343   MAP_CSV_FALSE=
24344 fi
24345
24346
24347 ## osd
24348 # core
24349 # Check whether --enable-osd-core was given.
24350 if test "${enable_osd_core+set}" = set; then :
24351   enableval=$enable_osd_core; osd_core=$enableval;osd_core_reason="configure parameter"
24352 fi
24353
24354  if test "x${osd_core}" = "xyes"; then
24355   OSD_CORE_TRUE=
24356   OSD_CORE_FALSE='#'
24357 else
24358   OSD_CORE_TRUE='#'
24359   OSD_CORE_FALSE=
24360 fi
24361
24362
24363 ## gui
24364 # gtk
24365 # Check whether --enable-gui-gtk was given.
24366 if test "${enable_gui_gtk+set}" = set; then :
24367   enableval=$enable_gui_gtk; gui_gtk=$enableval
24368 fi
24369
24370  if test "x${gui_gtk}" = "xyes"; then
24371   GUI_GTK_TRUE=
24372   GUI_GTK_FALSE='#'
24373 else
24374   GUI_GTK_TRUE='#'
24375   GUI_GTK_FALSE=
24376 fi
24377
24378 # internal
24379 # Check whether --enable-gui-internal was given.
24380 if test "${enable_gui_internal+set}" = set; then :
24381   enableval=$enable_gui_internal; gui_internal=$enableval;gui_internal_reason="configure parameter"
24382 fi
24383
24384  if test "x${gui_internal}" = "xyes"; then
24385   GUI_INTERNAL_TRUE=
24386   GUI_INTERNAL_FALSE='#'
24387 else
24388   GUI_INTERNAL_TRUE='#'
24389   GUI_INTERNAL_FALSE=
24390 fi
24391
24392 # win32
24393 # Check whether --enable-gui-win32 was given.
24394 if test "${enable_gui_win32+set}" = set; then :
24395   enableval=$enable_gui_win32; gui_win32=$enableval;gui_win32_reason="configure parameter"
24396 fi
24397
24398  if test "x${gui_win32}" = "xyes"; then
24399   GUI_WIN32_TRUE=
24400   GUI_WIN32_FALSE='#'
24401 else
24402   GUI_WIN32_TRUE='#'
24403   GUI_WIN32_FALSE=
24404 fi
24405
24406 # qml
24407 # Check whether --enable-gui-qml was given.
24408 if test "${enable_gui_qml+set}" = set; then :
24409   enableval=$enable_gui_qml; gui_qml=$enableval;gui_qml_reason="configure parameter"
24410 fi
24411
24412 if test "x${gui_qml}" = "xyes" -a "x${QT_GUI_CFLAGS}" = "x" -a "x${QT_GUI_LIBS}" = "x"; then
24413
24414 pkg_failed=no
24415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT_GUI" >&5
24416 $as_echo_n "checking for QT_GUI... " >&6; }
24417
24418 if test -n "$QT_GUI_CFLAGS"; then
24419     pkg_cv_QT_GUI_CFLAGS="$QT_GUI_CFLAGS"
24420  elif test -n "$PKG_CONFIG"; then
24421     if test -n "$PKG_CONFIG" && \
24422     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtGui QtCore\""; } >&5
24423   ($PKG_CONFIG --exists --print-errors "QtGui QtCore") 2>&5
24424   ac_status=$?
24425   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24426   test $ac_status = 0; }; then
24427   pkg_cv_QT_GUI_CFLAGS=`$PKG_CONFIG --cflags "QtGui QtCore" 2>/dev/null`
24428 else
24429   pkg_failed=yes
24430 fi
24431  else
24432     pkg_failed=untried
24433 fi
24434 if test -n "$QT_GUI_LIBS"; then
24435     pkg_cv_QT_GUI_LIBS="$QT_GUI_LIBS"
24436  elif test -n "$PKG_CONFIG"; then
24437     if test -n "$PKG_CONFIG" && \
24438     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtGui QtCore\""; } >&5
24439   ($PKG_CONFIG --exists --print-errors "QtGui QtCore") 2>&5
24440   ac_status=$?
24441   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24442   test $ac_status = 0; }; then
24443   pkg_cv_QT_GUI_LIBS=`$PKG_CONFIG --libs "QtGui QtCore" 2>/dev/null`
24444 else
24445   pkg_failed=yes
24446 fi
24447  else
24448     pkg_failed=untried
24449 fi
24450
24451
24452
24453 if test $pkg_failed = yes; then
24454         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24455 $as_echo "no" >&6; }
24456
24457 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24458         _pkg_short_errors_supported=yes
24459 else
24460         _pkg_short_errors_supported=no
24461 fi
24462         if test $_pkg_short_errors_supported = yes; then
24463                 QT_GUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "QtGui QtCore" 2>&1`
24464         else
24465                 QT_GUI_PKG_ERRORS=`$PKG_CONFIG --print-errors "QtGui QtCore" 2>&1`
24466         fi
24467         # Put the nasty error message in config.log where it belongs
24468         echo "$QT_GUI_PKG_ERRORS" >&5
24469
24470         gui_qml=no;gui_qml_reason="Packages QtGui and/or QtCore are missing"
24471 elif test $pkg_failed = untried; then
24472         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24473 $as_echo "no" >&6; }
24474         gui_qml=no;gui_qml_reason="Packages QtGui and/or QtCore are missing"
24475 else
24476         QT_GUI_CFLAGS=$pkg_cv_QT_GUI_CFLAGS
24477         QT_GUI_LIBS=$pkg_cv_QT_GUI_LIBS
24478         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24479 $as_echo "yes" >&6; }
24480
24481 fi
24482 fi
24483 if test "x${gui_qml}" = "xyes" -a "x${QT_XML_CFLAGS}" = "x" -a "x${QT_XML_LIBS}" = "x"; then
24484
24485 pkg_failed=no
24486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT_XML" >&5
24487 $as_echo_n "checking for QT_XML... " >&6; }
24488
24489 if test -n "$QT_XML_CFLAGS"; then
24490     pkg_cv_QT_XML_CFLAGS="$QT_XML_CFLAGS"
24491  elif test -n "$PKG_CONFIG"; then
24492     if test -n "$PKG_CONFIG" && \
24493     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtXml\""; } >&5
24494   ($PKG_CONFIG --exists --print-errors "QtXml") 2>&5
24495   ac_status=$?
24496   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24497   test $ac_status = 0; }; then
24498   pkg_cv_QT_XML_CFLAGS=`$PKG_CONFIG --cflags "QtXml" 2>/dev/null`
24499 else
24500   pkg_failed=yes
24501 fi
24502  else
24503     pkg_failed=untried
24504 fi
24505 if test -n "$QT_XML_LIBS"; then
24506     pkg_cv_QT_XML_LIBS="$QT_XML_LIBS"
24507  elif test -n "$PKG_CONFIG"; then
24508     if test -n "$PKG_CONFIG" && \
24509     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtXml\""; } >&5
24510   ($PKG_CONFIG --exists --print-errors "QtXml") 2>&5
24511   ac_status=$?
24512   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24513   test $ac_status = 0; }; then
24514   pkg_cv_QT_XML_LIBS=`$PKG_CONFIG --libs "QtXml" 2>/dev/null`
24515 else
24516   pkg_failed=yes
24517 fi
24518  else
24519     pkg_failed=untried
24520 fi
24521
24522
24523
24524 if test $pkg_failed = yes; then
24525         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24526 $as_echo "no" >&6; }
24527
24528 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24529         _pkg_short_errors_supported=yes
24530 else
24531         _pkg_short_errors_supported=no
24532 fi
24533         if test $_pkg_short_errors_supported = yes; then
24534                 QT_XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "QtXml" 2>&1`
24535         else
24536                 QT_XML_PKG_ERRORS=`$PKG_CONFIG --print-errors "QtXml" 2>&1`
24537         fi
24538         # Put the nasty error message in config.log where it belongs
24539         echo "$QT_XML_PKG_ERRORS" >&5
24540
24541         gui_qml=no;gui_qml_reason="Package QtXml is missing"
24542 elif test $pkg_failed = untried; then
24543         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24544 $as_echo "no" >&6; }
24545         gui_qml=no;gui_qml_reason="Package QtXml is missing"
24546 else
24547         QT_XML_CFLAGS=$pkg_cv_QT_XML_CFLAGS
24548         QT_XML_LIBS=$pkg_cv_QT_XML_LIBS
24549         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24550 $as_echo "yes" >&6; }
24551
24552 fi
24553 fi
24554 if test "x${gui_qml}" = "xyes" -a "x${QT_DECLARATIVE_CFLAGS}" = "x" -a "x${QT_DECLARATIVE_LIBS}" = "x"; then
24555
24556 pkg_failed=no
24557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT_DECLARATIVE" >&5
24558 $as_echo_n "checking for QT_DECLARATIVE... " >&6; }
24559
24560 if test -n "$QT_DECLARATIVE_CFLAGS"; then
24561     pkg_cv_QT_DECLARATIVE_CFLAGS="$QT_DECLARATIVE_CFLAGS"
24562  elif test -n "$PKG_CONFIG"; then
24563     if test -n "$PKG_CONFIG" && \
24564     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtDeclarative >= 4.6.0 \""; } >&5
24565   ($PKG_CONFIG --exists --print-errors "QtDeclarative >= 4.6.0 ") 2>&5
24566   ac_status=$?
24567   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24568   test $ac_status = 0; }; then
24569   pkg_cv_QT_DECLARATIVE_CFLAGS=`$PKG_CONFIG --cflags "QtDeclarative >= 4.6.0 " 2>/dev/null`
24570 else
24571   pkg_failed=yes
24572 fi
24573  else
24574     pkg_failed=untried
24575 fi
24576 if test -n "$QT_DECLARATIVE_LIBS"; then
24577     pkg_cv_QT_DECLARATIVE_LIBS="$QT_DECLARATIVE_LIBS"
24578  elif test -n "$PKG_CONFIG"; then
24579     if test -n "$PKG_CONFIG" && \
24580     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtDeclarative >= 4.6.0 \""; } >&5
24581   ($PKG_CONFIG --exists --print-errors "QtDeclarative >= 4.6.0 ") 2>&5
24582   ac_status=$?
24583   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24584   test $ac_status = 0; }; then
24585   pkg_cv_QT_DECLARATIVE_LIBS=`$PKG_CONFIG --libs "QtDeclarative >= 4.6.0 " 2>/dev/null`
24586 else
24587   pkg_failed=yes
24588 fi
24589  else
24590     pkg_failed=untried
24591 fi
24592
24593
24594
24595 if test $pkg_failed = yes; then
24596         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24597 $as_echo "no" >&6; }
24598
24599 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24600         _pkg_short_errors_supported=yes
24601 else
24602         _pkg_short_errors_supported=no
24603 fi
24604         if test $_pkg_short_errors_supported = yes; then
24605                 QT_DECLARATIVE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "QtDeclarative >= 4.6.0 " 2>&1`
24606         else
24607                 QT_DECLARATIVE_PKG_ERRORS=`$PKG_CONFIG --print-errors "QtDeclarative >= 4.6.0 " 2>&1`
24608         fi
24609         # Put the nasty error message in config.log where it belongs
24610         echo "$QT_DECLARATIVE_PKG_ERRORS" >&5
24611
24612         gui_qml=no;gui_qml_reason="Packages QtDeclarative is missing"
24613 elif test $pkg_failed = untried; then
24614         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24615 $as_echo "no" >&6; }
24616         gui_qml=no;gui_qml_reason="Packages QtDeclarative is missing"
24617 else
24618         QT_DECLARATIVE_CFLAGS=$pkg_cv_QT_DECLARATIVE_CFLAGS
24619         QT_DECLARATIVE_LIBS=$pkg_cv_QT_DECLARATIVE_LIBS
24620         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24621 $as_echo "yes" >&6; }
24622
24623 fi
24624 fi
24625 if test "x${gui_qml}" = "xyes" ; then
24626
24627 $as_echo "#define USE_GUI_QML 1" >>confdefs.h
24628
24629 fi
24630
24631
24632
24633
24634
24635
24636  if test "x${gui_qml}" = "xyes"; then
24637   GUI_QML_TRUE=
24638   GUI_QML_FALSE='#'
24639 else
24640   GUI_QML_TRUE='#'
24641   GUI_QML_FALSE=
24642 fi
24643
24644
24645 ## plugins
24646 # pedestrian
24647 # Check whether --enable-plugin-pedestrian was given.
24648 if test "${enable_plugin_pedestrian+set}" = set; then :
24649   enableval=$enable_plugin_pedestrian; plugin_pedestrian=$enableval;plugin_pedestrian_reason="configure parameter"
24650 fi
24651
24652  if test "x${plugin_pedestrian}" = "xyes"; then
24653   PLUGIN_PEDESTRIAN_TRUE=
24654   PLUGIN_PEDESTRIAN_FALSE='#'
24655 else
24656   PLUGIN_PEDESTRIAN_TRUE='#'
24657   PLUGIN_PEDESTRIAN_FALSE=
24658 fi
24659
24660
24661 ## routing
24662 # Check whether --enable-routing was given.
24663 if test "${enable_routing+set}" = set; then :
24664   enableval=$enable_routing; routing=$enableval;routing_reason="configure parameter"
24665 fi
24666
24667  if test "x${routing}" = "xyes"; then
24668   ROUTING_TRUE=
24669   ROUTING_FALSE='#'
24670 else
24671   ROUTING_TRUE='#'
24672   ROUTING_FALSE=
24673 fi
24674
24675 if test "x$routing" = "xyes"; then
24676
24677 $as_echo "#define USE_ROUTING 1" >>confdefs.h
24678
24679 fi
24680
24681 ## speech
24682 # android
24683 # Check whether --enable-speech-android was given.
24684 if test "${enable_speech_android+set}" = set; then :
24685   enableval=$enable_speech_android; speech_android=$enableval;speech_android_reason="configure parameter"
24686 fi
24687
24688  if test "x${speech_android}" = "xyes"; then
24689   SPEECH_ANDROID_TRUE=
24690   SPEECH_ANDROID_FALSE='#'
24691 else
24692   SPEECH_ANDROID_TRUE='#'
24693   SPEECH_ANDROID_FALSE=
24694 fi
24695
24696 # cmdline
24697 # Check whether --enable-speech-cmdline was given.
24698 if test "${enable_speech_cmdline+set}" = set; then :
24699   enableval=$enable_speech_cmdline; speech_cmdline=$enableval;speech_cmdline_reason="configure parameter"
24700 fi
24701
24702  if test "x${speech_cmdline}" = "xyes"; then
24703   SPEECH_CMDLINE_TRUE=
24704   SPEECH_CMDLINE_FALSE='#'
24705 else
24706   SPEECH_CMDLINE_TRUE='#'
24707   SPEECH_CMDLINE_FALSE=
24708 fi
24709
24710 # espeak
24711 # Check whether --enable-speech-espeak was given.
24712 if test "${enable_speech_espeak+set}" = set; then :
24713   enableval=$enable_speech_espeak; speech_espeak=$enableval;speech_espeak_reason="configure parameter"
24714 fi
24715
24716  if test "x${speech_espeak}" = "xyes"; then
24717   SPEECH_ESPEAK_TRUE=
24718   SPEECH_ESPEAK_FALSE='#'
24719 else
24720   SPEECH_ESPEAK_TRUE='#'
24721   SPEECH_ESPEAK_FALSE=
24722 fi
24723
24724 # speech-dispatcher
24725 # Check whether --enable-speech-speech-dispatcher was given.
24726 if test "${enable_speech_speech_dispatcher+set}" = set; then :
24727   enableval=$enable_speech_speech_dispatcher; speech_speech_dispatcher=$enableval;speech_speech_dispatcher_reason="configure parameter"
24728 fi
24729
24730 if test "x$speech_speech_dispatcher" = "xyes"; then
24731         ac_fn_c_check_header_mongrel "$LINENO" "libspeechd.h" "ac_cv_header_libspeechd_h" "$ac_includes_default"
24732 if test "x$ac_cv_header_libspeechd_h" = xyes; then :
24733
24734 $as_echo "#define HAVE_LIBSPEECHD /**/" >>confdefs.h
24735  SPEECHD_LIBS="-lspeechd"
24736 else
24737   speech_speech_dispatcher=no; speech_speech_dispatcher_reason="libspeechd.h missing"
24738 fi
24739
24740
24741 fi
24742
24743
24744  if test "x${speech_speech_dispatcher}" = "xyes"; then
24745   SPEECH_SPEECH_DISPATCHER_TRUE=
24746   SPEECH_SPEECH_DISPATCHER_FALSE='#'
24747 else
24748   SPEECH_SPEECH_DISPATCHER_TRUE='#'
24749   SPEECH_SPEECH_DISPATCHER_FALSE=
24750 fi
24751
24752  if test "x${support_espeak}" = "xyes"; then
24753   SUPPORT_ESPEAK_TRUE=
24754   SUPPORT_ESPEAK_FALSE='#'
24755 else
24756   SUPPORT_ESPEAK_TRUE='#'
24757   SUPPORT_ESPEAK_FALSE=
24758 fi
24759
24760
24761 ## vehicle
24762 # android
24763 # Check whether --enable-vehicle-android was given.
24764 if test "${enable_vehicle_android+set}" = set; then :
24765   enableval=$enable_vehicle_android; vehicle_android=$enableval;vehicle_android_reason="configure parameter"
24766 fi
24767
24768  if test "x${vehicle_android}" = "xyes"; then
24769   VEHICLE_ANDROID_TRUE=
24770   VEHICLE_ANDROID_FALSE='#'
24771 else
24772   VEHICLE_ANDROID_TRUE='#'
24773   VEHICLE_ANDROID_FALSE=
24774 fi
24775
24776 # demo
24777 # Check whether --enable-vehicle-demo was given.
24778 if test "${enable_vehicle_demo+set}" = set; then :
24779   enableval=$enable_vehicle_demo; vehicle_demo=$enableval;vehicle_demo_reason="configure parameter"
24780 fi
24781
24782  if test "x${vehicle_demo}" = "xyes"; then
24783   VEHICLE_DEMO_TRUE=
24784   VEHICLE_DEMO_FALSE='#'
24785 else
24786   VEHICLE_DEMO_TRUE='#'
24787   VEHICLE_DEMO_FALSE=
24788 fi
24789
24790 # file
24791 # Check whether --enable-vehicle-file was given.
24792 if test "${enable_vehicle_file+set}" = set; then :
24793   enableval=$enable_vehicle_file; vehicle_file=$enableval;vehicle_file_reason="configure parameter"
24794 fi
24795
24796  if test "x${vehicle_file}" = "xyes"; then
24797   VEHICLE_FILE_TRUE=
24798   VEHICLE_FILE_FALSE='#'
24799 else
24800   VEHICLE_FILE_TRUE='#'
24801   VEHICLE_FILE_FALSE=
24802 fi
24803
24804 # gpsd
24805 # Check whether --enable-vehicle-gpsd was given.
24806 if test "${enable_vehicle_gpsd+set}" = set; then :
24807   enableval=$enable_vehicle_gpsd; vehicle_gpsd=$enableval;vehicle_gpsd_reason="configure parameter"
24808 fi
24809
24810 if test "x${vehicle_gpsd}" = xyes
24811 then
24812
24813 pkg_failed=no
24814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPSD" >&5
24815 $as_echo_n "checking for GPSD... " >&6; }
24816
24817 if test -n "$GPSD_CFLAGS"; then
24818     pkg_cv_GPSD_CFLAGS="$GPSD_CFLAGS"
24819  elif test -n "$PKG_CONFIG"; then
24820     if test -n "$PKG_CONFIG" && \
24821     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgps\""; } >&5
24822   ($PKG_CONFIG --exists --print-errors "libgps") 2>&5
24823   ac_status=$?
24824   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24825   test $ac_status = 0; }; then
24826   pkg_cv_GPSD_CFLAGS=`$PKG_CONFIG --cflags "libgps" 2>/dev/null`
24827 else
24828   pkg_failed=yes
24829 fi
24830  else
24831     pkg_failed=untried
24832 fi
24833 if test -n "$GPSD_LIBS"; then
24834     pkg_cv_GPSD_LIBS="$GPSD_LIBS"
24835  elif test -n "$PKG_CONFIG"; then
24836     if test -n "$PKG_CONFIG" && \
24837     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgps\""; } >&5
24838   ($PKG_CONFIG --exists --print-errors "libgps") 2>&5
24839   ac_status=$?
24840   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24841   test $ac_status = 0; }; then
24842   pkg_cv_GPSD_LIBS=`$PKG_CONFIG --libs "libgps" 2>/dev/null`
24843 else
24844   pkg_failed=yes
24845 fi
24846  else
24847     pkg_failed=untried
24848 fi
24849
24850
24851
24852 if test $pkg_failed = yes; then
24853         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24854 $as_echo "no" >&6; }
24855
24856 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24857         _pkg_short_errors_supported=yes
24858 else
24859         _pkg_short_errors_supported=no
24860 fi
24861         if test $_pkg_short_errors_supported = yes; then
24862                 GPSD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgps" 2>&1`
24863         else
24864                 GPSD_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgps" 2>&1`
24865         fi
24866         # Put the nasty error message in config.log where it belongs
24867         echo "$GPSD_PKG_ERRORS" >&5
24868
24869         have_libgps="no"
24870 elif test $pkg_failed = untried; then
24871         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24872 $as_echo "no" >&6; }
24873         have_libgps="no"
24874 else
24875         GPSD_CFLAGS=$pkg_cv_GPSD_CFLAGS
24876         GPSD_LIBS=$pkg_cv_GPSD_LIBS
24877         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24878 $as_echo "yes" >&6; }
24879         have_libgps="yes"
24880 fi
24881         if test "x$have_libgps" = "xyes"; then
24882
24883 $as_echo "#define HAVE_LIBGPS /**/" >>confdefs.h
24884
24885
24886 pkg_failed=no
24887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGPS19" >&5
24888 $as_echo_n "checking for LIBGPS19... " >&6; }
24889
24890 if test -n "$LIBGPS19_CFLAGS"; then
24891     pkg_cv_LIBGPS19_CFLAGS="$LIBGPS19_CFLAGS"
24892  elif test -n "$PKG_CONFIG"; then
24893     if test -n "$PKG_CONFIG" && \
24894     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgps >= 2.90\""; } >&5
24895   ($PKG_CONFIG --exists --print-errors "libgps >= 2.90") 2>&5
24896   ac_status=$?
24897   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24898   test $ac_status = 0; }; then
24899   pkg_cv_LIBGPS19_CFLAGS=`$PKG_CONFIG --cflags "libgps >= 2.90" 2>/dev/null`
24900 else
24901   pkg_failed=yes
24902 fi
24903  else
24904     pkg_failed=untried
24905 fi
24906 if test -n "$LIBGPS19_LIBS"; then
24907     pkg_cv_LIBGPS19_LIBS="$LIBGPS19_LIBS"
24908  elif test -n "$PKG_CONFIG"; then
24909     if test -n "$PKG_CONFIG" && \
24910     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgps >= 2.90\""; } >&5
24911   ($PKG_CONFIG --exists --print-errors "libgps >= 2.90") 2>&5
24912   ac_status=$?
24913   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24914   test $ac_status = 0; }; then
24915   pkg_cv_LIBGPS19_LIBS=`$PKG_CONFIG --libs "libgps >= 2.90" 2>/dev/null`
24916 else
24917   pkg_failed=yes
24918 fi
24919  else
24920     pkg_failed=untried
24921 fi
24922
24923
24924
24925 if test $pkg_failed = yes; then
24926         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24927 $as_echo "no" >&6; }
24928
24929 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24930         _pkg_short_errors_supported=yes
24931 else
24932         _pkg_short_errors_supported=no
24933 fi
24934         if test $_pkg_short_errors_supported = yes; then
24935                 LIBGPS19_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgps >= 2.90" 2>&1`
24936         else
24937                 LIBGPS19_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgps >= 2.90" 2>&1`
24938         fi
24939         # Put the nasty error message in config.log where it belongs
24940         echo "$LIBGPS19_PKG_ERRORS" >&5
24941
24942         have_libgps19="no"
24943 elif test $pkg_failed = untried; then
24944         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24945 $as_echo "no" >&6; }
24946         have_libgps19="no"
24947 else
24948         LIBGPS19_CFLAGS=$pkg_cv_LIBGPS19_CFLAGS
24949         LIBGPS19_LIBS=$pkg_cv_LIBGPS19_LIBS
24950         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24951 $as_echo "yes" >&6; }
24952         have_libgps19="yes"
24953 fi
24954                 if test "x$have_libgps19" = "xyes"; then
24955
24956 $as_echo "#define HAVE_LIBGPS19 /**/" >>confdefs.h
24957
24958                 fi
24959         else
24960                 ac_fn_c_check_header_mongrel "$LINENO" "gps.h" "ac_cv_header_gps_h" "$ac_includes_default"
24961 if test "x$ac_cv_header_gps_h" = xyes; then :
24962
24963 $as_echo "#define HAVE_LIBGPS /**/" >>confdefs.h
24964  GPSD_LIBS="-lgps"
24965 else
24966   vehicle_gpsd=no; vehicle_gpsd_reason="no gps.h and no gpsd pkgconfig"
24967 fi
24968
24969
24970         fi
24971 fi
24972
24973
24974  if test "x${vehicle_gpsd}" = "xyes"; then
24975   VEHICLE_GPSD_TRUE=
24976   VEHICLE_GPSD_FALSE='#'
24977 else
24978   VEHICLE_GPSD_TRUE='#'
24979   VEHICLE_GPSD_FALSE=
24980 fi
24981
24982 # gypsy
24983 # Check whether --enable-vehicle-gypsy was given.
24984 if test "${enable_vehicle_gypsy+set}" = set; then :
24985   enableval=$enable_vehicle_gypsy; vehicle_gypsy=$enableval;vehicle_gypsy_reason="configure parameter"
24986 fi
24987
24988 if test "x${vehicle_gypsy}" = "xyes"
24989 then
24990
24991 pkg_failed=no
24992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GYPSY" >&5
24993 $as_echo_n "checking for GYPSY... " >&6; }
24994
24995 if test -n "$GYPSY_CFLAGS"; then
24996     pkg_cv_GYPSY_CFLAGS="$GYPSY_CFLAGS"
24997  elif test -n "$PKG_CONFIG"; then
24998     if test -n "$PKG_CONFIG" && \
24999     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gypsy\""; } >&5
25000   ($PKG_CONFIG --exists --print-errors "gypsy") 2>&5
25001   ac_status=$?
25002   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25003   test $ac_status = 0; }; then
25004   pkg_cv_GYPSY_CFLAGS=`$PKG_CONFIG --cflags "gypsy" 2>/dev/null`
25005 else
25006   pkg_failed=yes
25007 fi
25008  else
25009     pkg_failed=untried
25010 fi
25011 if test -n "$GYPSY_LIBS"; then
25012     pkg_cv_GYPSY_LIBS="$GYPSY_LIBS"
25013  elif test -n "$PKG_CONFIG"; then
25014     if test -n "$PKG_CONFIG" && \
25015     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gypsy\""; } >&5
25016   ($PKG_CONFIG --exists --print-errors "gypsy") 2>&5
25017   ac_status=$?
25018   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25019   test $ac_status = 0; }; then
25020   pkg_cv_GYPSY_LIBS=`$PKG_CONFIG --libs "gypsy" 2>/dev/null`
25021 else
25022   pkg_failed=yes
25023 fi
25024  else
25025     pkg_failed=untried
25026 fi
25027
25028
25029
25030 if test $pkg_failed = yes; then
25031         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25032 $as_echo "no" >&6; }
25033
25034 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25035         _pkg_short_errors_supported=yes
25036 else
25037         _pkg_short_errors_supported=no
25038 fi
25039         if test $_pkg_short_errors_supported = yes; then
25040                 GYPSY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gypsy" 2>&1`
25041         else
25042                 GYPSY_PKG_ERRORS=`$PKG_CONFIG --print-errors "gypsy" 2>&1`
25043         fi
25044         # Put the nasty error message in config.log where it belongs
25045         echo "$GYPSY_PKG_ERRORS" >&5
25046
25047         vehicle_gypsy=no;vehicle_gypsy_reason="package gypsy missing"
25048 elif test $pkg_failed = untried; then
25049         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25050 $as_echo "no" >&6; }
25051         vehicle_gypsy=no;vehicle_gypsy_reason="package gypsy missing"
25052 else
25053         GYPSY_CFLAGS=$pkg_cv_GYPSY_CFLAGS
25054         GYPSY_LIBS=$pkg_cv_GYPSY_LIBS
25055         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25056 $as_echo "yes" >&6; }
25057
25058 fi
25059 fi
25060
25061
25062  if test "x${vehicle_gypsy}" = "xyes"; then
25063   VEHICLE_GYPSY_TRUE=
25064   VEHICLE_GYPSY_FALSE='#'
25065 else
25066   VEHICLE_GYPSY_TRUE='#'
25067   VEHICLE_GYPSY_FALSE=
25068 fi
25069
25070 # maemo
25071 # Check whether --enable-vehicle-maemo was given.
25072 if test "${enable_vehicle_maemo+set}" = set; then :
25073   enableval=$enable_vehicle_maemo; vehicle_maemo=$enableval;vehicle_maemo_reason="configure parameter"
25074 fi
25075
25076 if test "x${vehicle_maemo}" = "xyes" ; then
25077
25078 pkg_failed=no
25079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBLOCATION" >&5
25080 $as_echo_n "checking for LIBLOCATION... " >&6; }
25081
25082 if test -n "$LIBLOCATION_CFLAGS"; then
25083     pkg_cv_LIBLOCATION_CFLAGS="$LIBLOCATION_CFLAGS"
25084  elif test -n "$PKG_CONFIG"; then
25085     if test -n "$PKG_CONFIG" && \
25086     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblocation\""; } >&5
25087   ($PKG_CONFIG --exists --print-errors "liblocation") 2>&5
25088   ac_status=$?
25089   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25090   test $ac_status = 0; }; then
25091   pkg_cv_LIBLOCATION_CFLAGS=`$PKG_CONFIG --cflags "liblocation" 2>/dev/null`
25092 else
25093   pkg_failed=yes
25094 fi
25095  else
25096     pkg_failed=untried
25097 fi
25098 if test -n "$LIBLOCATION_LIBS"; then
25099     pkg_cv_LIBLOCATION_LIBS="$LIBLOCATION_LIBS"
25100  elif test -n "$PKG_CONFIG"; then
25101     if test -n "$PKG_CONFIG" && \
25102     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblocation\""; } >&5
25103   ($PKG_CONFIG --exists --print-errors "liblocation") 2>&5
25104   ac_status=$?
25105   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25106   test $ac_status = 0; }; then
25107   pkg_cv_LIBLOCATION_LIBS=`$PKG_CONFIG --libs "liblocation" 2>/dev/null`
25108 else
25109   pkg_failed=yes
25110 fi
25111  else
25112     pkg_failed=untried
25113 fi
25114
25115
25116
25117 if test $pkg_failed = yes; then
25118         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25119 $as_echo "no" >&6; }
25120
25121 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25122         _pkg_short_errors_supported=yes
25123 else
25124         _pkg_short_errors_supported=no
25125 fi
25126         if test $_pkg_short_errors_supported = yes; then
25127                 LIBLOCATION_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblocation" 2>&1`
25128         else
25129                 LIBLOCATION_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblocation" 2>&1`
25130         fi
25131         # Put the nasty error message in config.log where it belongs
25132         echo "$LIBLOCATION_PKG_ERRORS" >&5
25133
25134
25135                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25136 $as_echo "no" >&6; }
25137                 vehicle_maemo=no
25138                 vehicle_maemo_reason="no maemo location library found"
25139
25140 elif test $pkg_failed = untried; then
25141         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25142 $as_echo "no" >&6; }
25143
25144                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25145 $as_echo "no" >&6; }
25146                 vehicle_maemo=no
25147                 vehicle_maemo_reason="no maemo location library found"
25148
25149 else
25150         LIBLOCATION_CFLAGS=$pkg_cv_LIBLOCATION_CFLAGS
25151         LIBLOCATION_LIBS=$pkg_cv_LIBLOCATION_LIBS
25152         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25153 $as_echo "yes" >&6; }
25154
25155
25156
25157
25158 fi
25159 fi
25160  if test "x${vehicle_maemo}" = "xyes"; then
25161   VEHICLE_MAEMO_TRUE=
25162   VEHICLE_MAEMO_FALSE='#'
25163 else
25164   VEHICLE_MAEMO_TRUE='#'
25165   VEHICLE_MAEMO_FALSE=
25166 fi
25167
25168 # null
25169 # Check whether --enable-vehicle-null was given.
25170 if test "${enable_vehicle_null+set}" = set; then :
25171   enableval=$enable_vehicle_null; vehicle_null=$enableval;vehicle_null_reason="configure parameter"
25172 fi
25173
25174  if test "x${vehicle_null}" = "xyes"; then
25175   VEHICLE_NULL_TRUE=
25176   VEHICLE_NULL_FALSE='#'
25177 else
25178   VEHICLE_NULL_TRUE='#'
25179   VEHICLE_NULL_FALSE=
25180 fi
25181
25182 # wince
25183 # Check whether --enable-vehicle-wince was given.
25184 if test "${enable_vehicle_wince+set}" = set; then :
25185   enableval=$enable_vehicle_wince; vehicle_wince=$enableval;vehicle_wince_reason="configure parameter"
25186 fi
25187
25188  if test "x${vehicle_wince}" = "xyes"; then
25189   VEHICLE_WINCE_TRUE=
25190   VEHICLE_WINCE_FALSE='#'
25191 else
25192   VEHICLE_WINCE_TRUE='#'
25193   VEHICLE_WINCE_FALSE=
25194 fi
25195
25196 # iphone
25197 # Check whether --enable-vehicle-iphone was given.
25198 if test "${enable_vehicle_iphone+set}" = set; then :
25199   enableval=$enable_vehicle_iphone; vehicle_iphone=$enableval;vehicle_iphone_reason="configure parameter"
25200 fi
25201
25202  if test "x${vehicle_iphone}" = "xyes"; then
25203   VEHICLE_IPHONE_TRUE=
25204   VEHICLE_IPHONE_FALSE='#'
25205 else
25206   VEHICLE_IPHONE_TRUE='#'
25207   VEHICLE_IPHONE_FALSE=
25208 fi
25209
25210 if test "x${vehicle_iphone}" = "xyes"
25211 then
25212         IPHONE_LIBS=-Wl,-framework,CoreLocation
25213 fi
25214
25215
25216 # webos
25217 # Check whether --enable-vehicle-webos was given.
25218 if test "${enable_vehicle_webos+set}" = set; then :
25219   enableval=$enable_vehicle_webos; vehicle_webos=$enableval;vehicle_webos_reason="configure parameter"
25220 fi
25221
25222  if test "x${vehicle_webos}" = "xyes"; then
25223   VEHICLE_WEBOS_TRUE=
25224   VEHICLE_WEBOS_FALSE='#'
25225 else
25226   VEHICLE_WEBOS_TRUE='#'
25227   VEHICLE_WEBOS_FALSE=
25228 fi
25229
25230 if test "x${vehicle_webos}" = "xyes"
25231 then
25232
25233 $as_echo "#define USE_WEBOS /**/" >>confdefs.h
25234
25235         LIBPDL_CFLAGS="$SDL_CFLAGS -I/usr/local/include"
25236         LIBPDL_LIBS="-L/usr/local/lib -lpdl"
25237
25238
25239 fi
25240 NAVIT_CFLAGS="$NAVIT_CFLAGS $GLIB_CFLAGS $GMODULE_CFLAGS"
25241 NAVIT_LIBS="$NAVIT_LIBS $GLIB_LIBS $GMODULE_LIBS $LIBINTL"
25242
25243
25244
25245
25246
25247
25248 ac_config_files="$ac_config_files Makefile navit/Makefile navit/autoload/Makefile navit/autoload/osso/Makefile navit/binding/Makefile navit/binding/python/Makefile navit/binding/dbus/Makefile navit/binding/win32/Makefile navit/map/Makefile navit/map/mg/Makefile navit/map/textfile/Makefile navit/map/csv/Makefile navit/map/shapefile/Makefile navit/map/filter/Makefile navit/map/binfile/Makefile navit/map/garmin/Makefile navit/maptool/Makefile navit/fib-1.1/Makefile navit/font/Makefile navit/font/freetype/Makefile navit/fonts/Makefile navit/graphics/Makefile navit/graphics/android/Makefile navit/graphics/gd/Makefile navit/graphics/gtk_drawing_area/Makefile navit/graphics/opengl/Makefile navit/graphics/null/Makefile navit/graphics/sdl/Makefile navit/graphics/qt_qpainter/Makefile navit/graphics/win32/Makefile navit/gui/Makefile navit/gui/gtk/Makefile navit/gui/internal/Makefile navit/gui/win32/Makefile navit/gui/qml/Makefile navit/gui/qml/skins/Makefile navit/gui/qml/skins/navit/Makefile navit/osd/Makefile navit/osd/core/Makefile navit/plugin/Makefile navit/plugin/pedestrian/Makefile navit/speech/Makefile navit/speech/android/Makefile navit/speech/cmdline/Makefile navit/speech/dbus/Makefile navit/speech/espeak/Makefile navit/speech/speech_dispatcher/Makefile navit/support/Makefile navit/support/espeak/Makefile navit/support/ezxml/Makefile navit/support/glib/Makefile navit/support/libc/Makefile navit/support/libpng/Makefile navit/support/shapefile/Makefile navit/support/win32/Makefile navit/support/wordexp/Makefile navit/support/zlib/Makefile navit/vehicle/Makefile navit/vehicle/android/Makefile navit/vehicle/file/Makefile navit/vehicle/gpsd/Makefile navit/vehicle/gpsd_dbus/Makefile navit/vehicle/gypsy/Makefile navit/vehicle/maemo/Makefile navit/vehicle/null/Makefile navit/vehicle/demo/Makefile navit/vehicle/wince/Makefile navit/vehicle/iphone/Makefile navit/vehicle/webos/Makefile navit/xpm/Makefile navit/maps/Makefile intl/Makefile po/Makefile man/Makefile"
25249
25250 #src/data/garmin_img/Makefile
25251
25252 cat >confcache <<\_ACEOF
25253 # This file is a shell script that caches the results of configure
25254 # tests run on this system so they can be shared between configure
25255 # scripts and configure runs, see configure's option --config-cache.
25256 # It is not useful on other systems.  If it contains results you don't
25257 # want to keep, you may remove or edit it.
25258 #
25259 # config.status only pays attention to the cache file if you give it
25260 # the --recheck option to rerun configure.
25261 #
25262 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25263 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25264 # following values.
25265
25266 _ACEOF
25267
25268 # The following way of writing the cache mishandles newlines in values,
25269 # but we know of no workaround that is simple, portable, and efficient.
25270 # So, we kill variables containing newlines.
25271 # Ultrix sh set writes to stderr and can't be redirected directly,
25272 # and sets the high bit in the cache file unless we assign to the vars.
25273 (
25274   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25275     eval ac_val=\$$ac_var
25276     case $ac_val in #(
25277     *${as_nl}*)
25278       case $ac_var in #(
25279       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25280 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25281       esac
25282       case $ac_var in #(
25283       _ | IFS | as_nl) ;; #(
25284       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25285       *) { eval $ac_var=; unset $ac_var;} ;;
25286       esac ;;
25287     esac
25288   done
25289
25290   (set) 2>&1 |
25291     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25292     *${as_nl}ac_space=\ *)
25293       # `set' does not quote correctly, so add quotes: double-quote
25294       # substitution turns \\\\ into \\, and sed turns \\ into \.
25295       sed -n \
25296         "s/'/'\\\\''/g;
25297           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25298       ;; #(
25299     *)
25300       # `set' quotes correctly as required by POSIX, so do not add quotes.
25301       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25302       ;;
25303     esac |
25304     sort
25305 ) |
25306   sed '
25307      /^ac_cv_env_/b end
25308      t clear
25309      :clear
25310      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25311      t end
25312      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25313      :end' >>confcache
25314 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25315   if test -w "$cache_file"; then
25316     if test "x$cache_file" != "x/dev/null"; then
25317       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25318 $as_echo "$as_me: updating cache $cache_file" >&6;}
25319       if test ! -f "$cache_file" || test -h "$cache_file"; then
25320         cat confcache >"$cache_file"
25321       else
25322         case $cache_file in #(
25323         */* | ?:*)
25324           mv -f confcache "$cache_file"$$ &&
25325           mv -f "$cache_file"$$ "$cache_file" ;; #(
25326         *)
25327           mv -f confcache "$cache_file" ;;
25328         esac
25329       fi
25330     fi
25331   else
25332     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25333 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25334   fi
25335 fi
25336 rm -f confcache
25337
25338 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25339 # Let make expand exec_prefix.
25340 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25341
25342 DEFS=-DHAVE_CONFIG_H
25343
25344 ac_libobjs=
25345 ac_ltlibobjs=
25346 U=
25347 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25348   # 1. Remove the extension, and $U if already installed.
25349   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25350   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25351   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25352   #    will be set to the directory where LIBOBJS objects are built.
25353   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25354   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25355 done
25356 LIBOBJS=$ac_libobjs
25357
25358 LTLIBOBJS=$ac_ltlibobjs
25359
25360
25361  if test -n "$EXEEXT"; then
25362   am__EXEEXT_TRUE=
25363   am__EXEEXT_FALSE='#'
25364 else
25365   am__EXEEXT_TRUE='#'
25366   am__EXEEXT_FALSE=
25367 fi
25368
25369 if test -z "${SOURCE_MODE_SVN_TRUE}" && test -z "${SOURCE_MODE_SVN_FALSE}"; then
25370   as_fn_error $? "conditional \"SOURCE_MODE_SVN\" was never defined.
25371 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25372 fi
25373 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25374   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
25375 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25376 fi
25377 if test -z "${SUPPORT_WIN32_TRUE}" && test -z "${SUPPORT_WIN32_FALSE}"; then
25378   as_fn_error $? "conditional \"SUPPORT_WIN32\" was never defined.
25379 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25380 fi
25381 if test -z "${SUPPORT_WIN32CE_TRUE}" && test -z "${SUPPORT_WIN32CE_FALSE}"; then
25382   as_fn_error $? "conditional \"SUPPORT_WIN32CE\" was never defined.
25383 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25384 fi
25385 if test -z "${SUPPORT_ANDROID_TRUE}" && test -z "${SUPPORT_ANDROID_FALSE}"; then
25386   as_fn_error $? "conditional \"SUPPORT_ANDROID\" was never defined.
25387 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25388 fi
25389 if test -z "${SUPPORT_LIBPNG_TRUE}" && test -z "${SUPPORT_LIBPNG_FALSE}"; then
25390   as_fn_error $? "conditional \"SUPPORT_LIBPNG\" was never defined.
25391 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25392 fi
25393 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25394   as_fn_error $? "conditional \"AMDEP\" was never defined.
25395 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25396 fi
25397 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25398   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25399 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25400 fi
25401 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
25402   as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined.
25403 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25404 fi
25405 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25406   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25407 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25408 fi
25409 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
25410   as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined.
25411 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25412 fi
25413 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25414   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
25415 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25416 fi
25417 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
25418   as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
25419 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25420 fi
25421
25422 if test -z "${USE_HILDON_TRUE}" && test -z "${USE_HILDON_FALSE}"; then
25423   as_fn_error $? "conditional \"USE_HILDON\" was never defined.
25424 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25425 fi
25426 if test -z "${USE_OSSO_TRUE}" && test -z "${USE_OSSO_FALSE}"; then
25427   as_fn_error $? "conditional \"USE_OSSO\" was never defined.
25428 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25429 fi
25430 if test -z "${MAPTOOL_TRUE}" && test -z "${MAPTOOL_FALSE}"; then
25431   as_fn_error $? "conditional \"MAPTOOL\" was never defined.
25432 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25433 fi
25434 if test -z "${BUILD_SAMPLEMAP_TRUE}" && test -z "${BUILD_SAMPLEMAP_FALSE}"; then
25435   as_fn_error $? "conditional \"BUILD_SAMPLEMAP\" was never defined.
25436 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25437 fi
25438 if test -z "${FASTMATH_TRUE}" && test -z "${FASTMATH_FALSE}"; then
25439   as_fn_error $? "conditional \"FASTMATH\" was never defined.
25440 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25441 fi
25442 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
25443   as_fn_error $? "conditional \"PLUGINS\" was never defined.
25444 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25445 fi
25446 if test -z "${SHARED_LIBNAVIT_TRUE}" && test -z "${SHARED_LIBNAVIT_FALSE}"; then
25447   as_fn_error $? "conditional \"SHARED_LIBNAVIT\" was never defined.
25448 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25449 fi
25450 if test -z "${BIN_NAVIT_TRUE}" && test -z "${BIN_NAVIT_FALSE}"; then
25451   as_fn_error $? "conditional \"BIN_NAVIT\" was never defined.
25452 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25453 fi
25454 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25455   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
25456 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25457 fi
25458 if test -z "${EVENT_GLIB_TRUE}" && test -z "${EVENT_GLIB_FALSE}"; then
25459   as_fn_error $? "conditional \"EVENT_GLIB\" was never defined.
25460 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25461 fi
25462 if test -z "${SUPPORT_GLIB_TRUE}" && test -z "${SUPPORT_GLIB_FALSE}"; then
25463   as_fn_error $? "conditional \"SUPPORT_GLIB\" was never defined.
25464 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25465 fi
25466 if test -z "${SUPPORT_EZXML_TRUE}" && test -z "${SUPPORT_EZXML_FALSE}"; then
25467   as_fn_error $? "conditional \"SUPPORT_EZXML\" was never defined.
25468 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25469 fi
25470 if test -z "${SUPPORT_ZLIB_TRUE}" && test -z "${SUPPORT_ZLIB_FALSE}"; then
25471   as_fn_error $? "conditional \"SUPPORT_ZLIB\" was never defined.
25472 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25473 fi
25474 if test -z "${GRAPHICS_SDL_TRUE}" && test -z "${GRAPHICS_SDL_FALSE}"; then
25475   as_fn_error $? "conditional \"GRAPHICS_SDL\" was never defined.
25476 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25477 fi
25478 if test -z "${HAVE_POSTGRESQL_TRUE}" && test -z "${HAVE_POSTGRESQL_FALSE}"; then
25479   as_fn_error $? "conditional \"HAVE_POSTGRESQL\" was never defined.
25480 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25481 fi
25482 if test -z "${FONT_FREETYPE_TRUE}" && test -z "${FONT_FREETYPE_FALSE}"; then
25483   as_fn_error $? "conditional \"FONT_FREETYPE\" was never defined.
25484 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25485 fi
25486 if test -z "${FONTS_TRUE}" && test -z "${FONTS_FALSE}"; then
25487   as_fn_error $? "conditional \"FONTS\" was never defined.
25488 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25489 fi
25490 if test -z "${GRAPHICS_OPENGL_TRUE}" && test -z "${GRAPHICS_OPENGL_FALSE}"; then
25491   as_fn_error $? "conditional \"GRAPHICS_OPENGL\" was never defined.
25492 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25493 fi
25494 if test -z "${HAVE_SYSTEM_SHAPEFILELIB_TRUE}" && test -z "${HAVE_SYSTEM_SHAPEFILELIB_FALSE}"; then
25495   as_fn_error $? "conditional \"HAVE_SYSTEM_SHAPEFILELIB\" was never defined.
25496 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25497 fi
25498 if test -z "${HAVELIBGARMIN_TRUE}" && test -z "${HAVELIBGARMIN_FALSE}"; then
25499   as_fn_error $? "conditional \"HAVELIBGARMIN\" was never defined.
25500 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25501 fi
25502 if test -z "${BINDING_PYTHON_TRUE}" && test -z "${BINDING_PYTHON_FALSE}"; then
25503   as_fn_error $? "conditional \"BINDING_PYTHON\" was never defined.
25504 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25505 fi
25506 if test -z "${BINDING_DBUS_TRUE}" && test -z "${BINDING_DBUS_FALSE}"; then
25507   as_fn_error $? "conditional \"BINDING_DBUS\" was never defined.
25508 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25509 fi
25510 if test -z "${VEHICLE_GPSD_DBUS_TRUE}" && test -z "${VEHICLE_GPSD_DBUS_FALSE}"; then
25511   as_fn_error $? "conditional \"VEHICLE_GPSD_DBUS\" was never defined.
25512 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25513 fi
25514 if test -z "${SPEECH_DBUS_TRUE}" && test -z "${SPEECH_DBUS_FALSE}"; then
25515   as_fn_error $? "conditional \"SPEECH_DBUS\" was never defined.
25516 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25517 fi
25518 if test -z "${BINDING_WIN32_TRUE}" && test -z "${BINDING_WIN32_FALSE}"; then
25519   as_fn_error $? "conditional \"BINDING_WIN32\" was never defined.
25520 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25521 fi
25522 if test -z "${USE_SVG2PNG_SCALES_TRUE}" && test -z "${USE_SVG2PNG_SCALES_FALSE}"; then
25523   as_fn_error $? "conditional \"USE_SVG2PNG_SCALES\" was never defined.
25524 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25525 fi
25526 if test -z "${USE_SVG2PNG_SCALES_FLAG_TRUE}" && test -z "${USE_SVG2PNG_SCALES_FLAG_FALSE}"; then
25527   as_fn_error $? "conditional \"USE_SVG2PNG_SCALES_FLAG\" was never defined.
25528 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25529 fi
25530 if test -z "${USE_SVG2PNG_SCALES_NAV_TRUE}" && test -z "${USE_SVG2PNG_SCALES_NAV_FALSE}"; then
25531   as_fn_error $? "conditional \"USE_SVG2PNG_SCALES_NAV\" was never defined.
25532 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25533 fi
25534 if test -z "${USE_SVG2PNG_TRUE}" && test -z "${USE_SVG2PNG_FALSE}"; then
25535   as_fn_error $? "conditional \"USE_SVG2PNG\" was never defined.
25536 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25537 fi
25538 if test -z "${USE_SVG_TRUE}" && test -z "${USE_SVG_FALSE}"; then
25539   as_fn_error $? "conditional \"USE_SVG\" was never defined.
25540 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25541 fi
25542 if test -z "${ENABLE_NLS_TRUE}" && test -z "${ENABLE_NLS_FALSE}"; then
25543   as_fn_error $? "conditional \"ENABLE_NLS\" was never defined.
25544 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25545 fi
25546 if test -z "${XGETTEXT_GLADE_TRUE}" && test -z "${XGETTEXT_GLADE_FALSE}"; then
25547   as_fn_error $? "conditional \"XGETTEXT_GLADE\" was never defined.
25548 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25549 fi
25550 if test -z "${SUPPORT_WORDEXP_TRUE}" && test -z "${SUPPORT_WORDEXP_FALSE}"; then
25551   as_fn_error $? "conditional \"SUPPORT_WORDEXP\" was never defined.
25552 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25553 fi
25554 if test -z "${SUPPORT_LIBC_TRUE}" && test -z "${SUPPORT_LIBC_FALSE}"; then
25555   as_fn_error $? "conditional \"SUPPORT_LIBC\" was never defined.
25556 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25557 fi
25558 if test -z "${GRAPHICS_TRUE}" && test -z "${GRAPHICS_FALSE}"; then
25559   as_fn_error $? "conditional \"GRAPHICS\" was never defined.
25560 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25561 fi
25562 if test -z "${GRAPHICS_ANDROID_TRUE}" && test -z "${GRAPHICS_ANDROID_FALSE}"; then
25563   as_fn_error $? "conditional \"GRAPHICS_ANDROID\" was never defined.
25564 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25565 fi
25566 if test -z "${GRAPHICS_GD_TRUE}" && test -z "${GRAPHICS_GD_FALSE}"; then
25567   as_fn_error $? "conditional \"GRAPHICS_GD\" was never defined.
25568 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25569 fi
25570 if test -z "${GRAPHICS_GTK_DRAWING_AREA_TRUE}" && test -z "${GRAPHICS_GTK_DRAWING_AREA_FALSE}"; then
25571   as_fn_error $? "conditional \"GRAPHICS_GTK_DRAWING_AREA\" was never defined.
25572 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25573 fi
25574 if test -z "${GRAPHICS_NULL_TRUE}" && test -z "${GRAPHICS_NULL_FALSE}"; then
25575   as_fn_error $? "conditional \"GRAPHICS_NULL\" was never defined.
25576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25577 fi
25578 if test -z "${GRAPHICS_WIN32_TRUE}" && test -z "${GRAPHICS_WIN32_FALSE}"; then
25579   as_fn_error $? "conditional \"GRAPHICS_WIN32\" was never defined.
25580 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25581 fi
25582 if test -z "${GRAPHICS_QT_QPAINTER_TRUE}" && test -z "${GRAPHICS_QT_QPAINTER_FALSE}"; then
25583   as_fn_error $? "conditional \"GRAPHICS_QT_QPAINTER\" was never defined.
25584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25585 fi
25586 if test -z "${MAP_BINFILE_TRUE}" && test -z "${MAP_BINFILE_FALSE}"; then
25587   as_fn_error $? "conditional \"MAP_BINFILE\" was never defined.
25588 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25589 fi
25590 if test -z "${MAP_FILTER_TRUE}" && test -z "${MAP_FILTER_FALSE}"; then
25591   as_fn_error $? "conditional \"MAP_FILTER\" was never defined.
25592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25593 fi
25594 if test -z "${MAP_MG_TRUE}" && test -z "${MAP_MG_FALSE}"; then
25595   as_fn_error $? "conditional \"MAP_MG\" was never defined.
25596 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25597 fi
25598 if test -z "${MAP_SHAPEFILE_TRUE}" && test -z "${MAP_SHAPEFILE_FALSE}"; then
25599   as_fn_error $? "conditional \"MAP_SHAPEFILE\" was never defined.
25600 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25601 fi
25602 if test -z "${MAP_TEXTFILE_TRUE}" && test -z "${MAP_TEXTFILE_FALSE}"; then
25603   as_fn_error $? "conditional \"MAP_TEXTFILE\" was never defined.
25604 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25605 fi
25606 if test -z "${MAP_CSV_TRUE}" && test -z "${MAP_CSV_FALSE}"; then
25607   as_fn_error $? "conditional \"MAP_CSV\" was never defined.
25608 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25609 fi
25610 if test -z "${OSD_CORE_TRUE}" && test -z "${OSD_CORE_FALSE}"; then
25611   as_fn_error $? "conditional \"OSD_CORE\" was never defined.
25612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25613 fi
25614 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
25615   as_fn_error $? "conditional \"GUI_GTK\" was never defined.
25616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25617 fi
25618 if test -z "${GUI_INTERNAL_TRUE}" && test -z "${GUI_INTERNAL_FALSE}"; then
25619   as_fn_error $? "conditional \"GUI_INTERNAL\" was never defined.
25620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25621 fi
25622 if test -z "${GUI_WIN32_TRUE}" && test -z "${GUI_WIN32_FALSE}"; then
25623   as_fn_error $? "conditional \"GUI_WIN32\" was never defined.
25624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25625 fi
25626 if test -z "${GUI_QML_TRUE}" && test -z "${GUI_QML_FALSE}"; then
25627   as_fn_error $? "conditional \"GUI_QML\" was never defined.
25628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25629 fi
25630 if test -z "${PLUGIN_PEDESTRIAN_TRUE}" && test -z "${PLUGIN_PEDESTRIAN_FALSE}"; then
25631   as_fn_error $? "conditional \"PLUGIN_PEDESTRIAN\" was never defined.
25632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25633 fi
25634 if test -z "${ROUTING_TRUE}" && test -z "${ROUTING_FALSE}"; then
25635   as_fn_error $? "conditional \"ROUTING\" was never defined.
25636 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25637 fi
25638 if test -z "${SPEECH_ANDROID_TRUE}" && test -z "${SPEECH_ANDROID_FALSE}"; then
25639   as_fn_error $? "conditional \"SPEECH_ANDROID\" was never defined.
25640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25641 fi
25642 if test -z "${SPEECH_CMDLINE_TRUE}" && test -z "${SPEECH_CMDLINE_FALSE}"; then
25643   as_fn_error $? "conditional \"SPEECH_CMDLINE\" was never defined.
25644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25645 fi
25646 if test -z "${SPEECH_ESPEAK_TRUE}" && test -z "${SPEECH_ESPEAK_FALSE}"; then
25647   as_fn_error $? "conditional \"SPEECH_ESPEAK\" was never defined.
25648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25649 fi
25650 if test -z "${SPEECH_SPEECH_DISPATCHER_TRUE}" && test -z "${SPEECH_SPEECH_DISPATCHER_FALSE}"; then
25651   as_fn_error $? "conditional \"SPEECH_SPEECH_DISPATCHER\" was never defined.
25652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25653 fi
25654 if test -z "${SUPPORT_ESPEAK_TRUE}" && test -z "${SUPPORT_ESPEAK_FALSE}"; then
25655   as_fn_error $? "conditional \"SUPPORT_ESPEAK\" was never defined.
25656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25657 fi
25658 if test -z "${VEHICLE_ANDROID_TRUE}" && test -z "${VEHICLE_ANDROID_FALSE}"; then
25659   as_fn_error $? "conditional \"VEHICLE_ANDROID\" was never defined.
25660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25661 fi
25662 if test -z "${VEHICLE_DEMO_TRUE}" && test -z "${VEHICLE_DEMO_FALSE}"; then
25663   as_fn_error $? "conditional \"VEHICLE_DEMO\" was never defined.
25664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25665 fi
25666 if test -z "${VEHICLE_FILE_TRUE}" && test -z "${VEHICLE_FILE_FALSE}"; then
25667   as_fn_error $? "conditional \"VEHICLE_FILE\" was never defined.
25668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25669 fi
25670 if test -z "${VEHICLE_GPSD_TRUE}" && test -z "${VEHICLE_GPSD_FALSE}"; then
25671   as_fn_error $? "conditional \"VEHICLE_GPSD\" was never defined.
25672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25673 fi
25674 if test -z "${VEHICLE_GYPSY_TRUE}" && test -z "${VEHICLE_GYPSY_FALSE}"; then
25675   as_fn_error $? "conditional \"VEHICLE_GYPSY\" was never defined.
25676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25677 fi
25678 if test -z "${VEHICLE_MAEMO_TRUE}" && test -z "${VEHICLE_MAEMO_FALSE}"; then
25679   as_fn_error $? "conditional \"VEHICLE_MAEMO\" was never defined.
25680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25681 fi
25682 if test -z "${VEHICLE_NULL_TRUE}" && test -z "${VEHICLE_NULL_FALSE}"; then
25683   as_fn_error $? "conditional \"VEHICLE_NULL\" was never defined.
25684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25685 fi
25686 if test -z "${VEHICLE_WINCE_TRUE}" && test -z "${VEHICLE_WINCE_FALSE}"; then
25687   as_fn_error $? "conditional \"VEHICLE_WINCE\" was never defined.
25688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25689 fi
25690 if test -z "${VEHICLE_IPHONE_TRUE}" && test -z "${VEHICLE_IPHONE_FALSE}"; then
25691   as_fn_error $? "conditional \"VEHICLE_IPHONE\" was never defined.
25692 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25693 fi
25694 if test -z "${VEHICLE_WEBOS_TRUE}" && test -z "${VEHICLE_WEBOS_FALSE}"; then
25695   as_fn_error $? "conditional \"VEHICLE_WEBOS\" was never defined.
25696 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25697 fi
25698
25699 : "${CONFIG_STATUS=./config.status}"
25700 ac_write_fail=0
25701 ac_clean_files_save=$ac_clean_files
25702 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25703 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25704 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25705 as_write_fail=0
25706 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25707 #! $SHELL
25708 # Generated by $as_me.
25709 # Run this file to recreate the current configuration.
25710 # Compiler output produced by configure, useful for debugging
25711 # configure, is in config.log if it exists.
25712
25713 debug=false
25714 ac_cs_recheck=false
25715 ac_cs_silent=false
25716
25717 SHELL=\${CONFIG_SHELL-$SHELL}
25718 export SHELL
25719 _ASEOF
25720 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25721 ## -------------------- ##
25722 ## M4sh Initialization. ##
25723 ## -------------------- ##
25724
25725 # Be more Bourne compatible
25726 DUALCASE=1; export DUALCASE # for MKS sh
25727 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25728   emulate sh
25729   NULLCMD=:
25730   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25731   # is contrary to our usage.  Disable this feature.
25732   alias -g '${1+"$@"}'='"$@"'
25733   setopt NO_GLOB_SUBST
25734 else
25735   case `(set -o) 2>/dev/null` in #(
25736   *posix*) :
25737     set -o posix ;; #(
25738   *) :
25739      ;;
25740 esac
25741 fi
25742
25743
25744 as_nl='
25745 '
25746 export as_nl
25747 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25748 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25749 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25750 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25751 # Prefer a ksh shell builtin over an external printf program on Solaris,
25752 # but without wasting forks for bash or zsh.
25753 if test -z "$BASH_VERSION$ZSH_VERSION" \
25754     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25755   as_echo='print -r --'
25756   as_echo_n='print -rn --'
25757 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25758   as_echo='printf %s\n'
25759   as_echo_n='printf %s'
25760 else
25761   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25762     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25763     as_echo_n='/usr/ucb/echo -n'
25764   else
25765     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25766     as_echo_n_body='eval
25767       arg=$1;
25768       case $arg in #(
25769       *"$as_nl"*)
25770         expr "X$arg" : "X\\(.*\\)$as_nl";
25771         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25772       esac;
25773       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25774     '
25775     export as_echo_n_body
25776     as_echo_n='sh -c $as_echo_n_body as_echo'
25777   fi
25778   export as_echo_body
25779   as_echo='sh -c $as_echo_body as_echo'
25780 fi
25781
25782 # The user is always right.
25783 if test "${PATH_SEPARATOR+set}" != set; then
25784   PATH_SEPARATOR=:
25785   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25786     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25787       PATH_SEPARATOR=';'
25788   }
25789 fi
25790
25791
25792 # IFS
25793 # We need space, tab and new line, in precisely that order.  Quoting is
25794 # there to prevent editors from complaining about space-tab.
25795 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25796 # splitting by setting IFS to empty value.)
25797 IFS=" ""        $as_nl"
25798
25799 # Find who we are.  Look in the path if we contain no directory separator.
25800 as_myself=
25801 case $0 in #((
25802   *[\\/]* ) as_myself=$0 ;;
25803   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25804 for as_dir in $PATH
25805 do
25806   IFS=$as_save_IFS
25807   test -z "$as_dir" && as_dir=.
25808     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25809   done
25810 IFS=$as_save_IFS
25811
25812      ;;
25813 esac
25814 # We did not find ourselves, most probably we were run as `sh COMMAND'
25815 # in which case we are not to be found in the path.
25816 if test "x$as_myself" = x; then
25817   as_myself=$0
25818 fi
25819 if test ! -f "$as_myself"; then
25820   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25821   exit 1
25822 fi
25823
25824 # Unset variables that we do not need and which cause bugs (e.g. in
25825 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
25826 # suppresses any "Segmentation fault" message there.  '((' could
25827 # trigger a bug in pdksh 5.2.14.
25828 for as_var in BASH_ENV ENV MAIL MAILPATH
25829 do eval test x\${$as_var+set} = xset \
25830   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25831 done
25832 PS1='$ '
25833 PS2='> '
25834 PS4='+ '
25835
25836 # NLS nuisances.
25837 LC_ALL=C
25838 export LC_ALL
25839 LANGUAGE=C
25840 export LANGUAGE
25841
25842 # CDPATH.
25843 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25844
25845
25846 # as_fn_error STATUS ERROR [LINENO LOG_FD]
25847 # ----------------------------------------
25848 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25849 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25850 # script with STATUS, using 1 if that was 0.
25851 as_fn_error ()
25852 {
25853   as_status=$1; test $as_status -eq 0 && as_status=1
25854   if test "$4"; then
25855     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25856     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25857   fi
25858   $as_echo "$as_me: error: $2" >&2
25859   as_fn_exit $as_status
25860 } # as_fn_error
25861
25862
25863 # as_fn_set_status STATUS
25864 # -----------------------
25865 # Set $? to STATUS, without forking.
25866 as_fn_set_status ()
25867 {
25868   return $1
25869 } # as_fn_set_status
25870
25871 # as_fn_exit STATUS
25872 # -----------------
25873 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25874 as_fn_exit ()
25875 {
25876   set +e
25877   as_fn_set_status $1
25878   exit $1
25879 } # as_fn_exit
25880
25881 # as_fn_unset VAR
25882 # ---------------
25883 # Portably unset VAR.
25884 as_fn_unset ()
25885 {
25886   { eval $1=; unset $1;}
25887 }
25888 as_unset=as_fn_unset
25889 # as_fn_append VAR VALUE
25890 # ----------------------
25891 # Append the text in VALUE to the end of the definition contained in VAR. Take
25892 # advantage of any shell optimizations that allow amortized linear growth over
25893 # repeated appends, instead of the typical quadratic growth present in naive
25894 # implementations.
25895 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25896   eval 'as_fn_append ()
25897   {
25898     eval $1+=\$2
25899   }'
25900 else
25901   as_fn_append ()
25902   {
25903     eval $1=\$$1\$2
25904   }
25905 fi # as_fn_append
25906
25907 # as_fn_arith ARG...
25908 # ------------------
25909 # Perform arithmetic evaluation on the ARGs, and store the result in the
25910 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25911 # must be portable across $(()) and expr.
25912 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25913   eval 'as_fn_arith ()
25914   {
25915     as_val=$(( $* ))
25916   }'
25917 else
25918   as_fn_arith ()
25919   {
25920     as_val=`expr "$@" || test $? -eq 1`
25921   }
25922 fi # as_fn_arith
25923
25924
25925 if expr a : '\(a\)' >/dev/null 2>&1 &&
25926    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25927   as_expr=expr
25928 else
25929   as_expr=false
25930 fi
25931
25932 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25933   as_basename=basename
25934 else
25935   as_basename=false
25936 fi
25937
25938 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25939   as_dirname=dirname
25940 else
25941   as_dirname=false
25942 fi
25943
25944 as_me=`$as_basename -- "$0" ||
25945 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25946          X"$0" : 'X\(//\)$' \| \
25947          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25948 $as_echo X/"$0" |
25949     sed '/^.*\/\([^/][^/]*\)\/*$/{
25950             s//\1/
25951             q
25952           }
25953           /^X\/\(\/\/\)$/{
25954             s//\1/
25955             q
25956           }
25957           /^X\/\(\/\).*/{
25958             s//\1/
25959             q
25960           }
25961           s/.*/./; q'`
25962
25963 # Avoid depending upon Character Ranges.
25964 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25965 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25966 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25967 as_cr_digits='0123456789'
25968 as_cr_alnum=$as_cr_Letters$as_cr_digits
25969
25970 ECHO_C= ECHO_N= ECHO_T=
25971 case `echo -n x` in #(((((
25972 -n*)
25973   case `echo 'xy\c'` in
25974   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25975   xy)  ECHO_C='\c';;
25976   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
25977        ECHO_T=' ';;
25978   esac;;
25979 *)
25980   ECHO_N='-n';;
25981 esac
25982
25983 rm -f conf$$ conf$$.exe conf$$.file
25984 if test -d conf$$.dir; then
25985   rm -f conf$$.dir/conf$$.file
25986 else
25987   rm -f conf$$.dir
25988   mkdir conf$$.dir 2>/dev/null
25989 fi
25990 if (echo >conf$$.file) 2>/dev/null; then
25991   if ln -s conf$$.file conf$$ 2>/dev/null; then
25992     as_ln_s='ln -s'
25993     # ... but there are two gotchas:
25994     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25995     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25996     # In both cases, we have to default to `cp -p'.
25997     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25998       as_ln_s='cp -p'
25999   elif ln conf$$.file conf$$ 2>/dev/null; then
26000     as_ln_s=ln
26001   else
26002     as_ln_s='cp -p'
26003   fi
26004 else
26005   as_ln_s='cp -p'
26006 fi
26007 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26008 rmdir conf$$.dir 2>/dev/null
26009
26010
26011 # as_fn_mkdir_p
26012 # -------------
26013 # Create "$as_dir" as a directory, including parents if necessary.
26014 as_fn_mkdir_p ()
26015 {
26016
26017   case $as_dir in #(
26018   -*) as_dir=./$as_dir;;
26019   esac
26020   test -d "$as_dir" || eval $as_mkdir_p || {
26021     as_dirs=
26022     while :; do
26023       case $as_dir in #(
26024       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26025       *) as_qdir=$as_dir;;
26026       esac
26027       as_dirs="'$as_qdir' $as_dirs"
26028       as_dir=`$as_dirname -- "$as_dir" ||
26029 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26030          X"$as_dir" : 'X\(//\)[^/]' \| \
26031          X"$as_dir" : 'X\(//\)$' \| \
26032          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26033 $as_echo X"$as_dir" |
26034     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26035             s//\1/
26036             q
26037           }
26038           /^X\(\/\/\)[^/].*/{
26039             s//\1/
26040             q
26041           }
26042           /^X\(\/\/\)$/{
26043             s//\1/
26044             q
26045           }
26046           /^X\(\/\).*/{
26047             s//\1/
26048             q
26049           }
26050           s/.*/./; q'`
26051       test -d "$as_dir" && break
26052     done
26053     test -z "$as_dirs" || eval "mkdir $as_dirs"
26054   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
26055
26056
26057 } # as_fn_mkdir_p
26058 if mkdir -p . 2>/dev/null; then
26059   as_mkdir_p='mkdir -p "$as_dir"'
26060 else
26061   test -d ./-p && rmdir ./-p
26062   as_mkdir_p=false
26063 fi
26064
26065 if test -x / >/dev/null 2>&1; then
26066   as_test_x='test -x'
26067 else
26068   if ls -dL / >/dev/null 2>&1; then
26069     as_ls_L_option=L
26070   else
26071     as_ls_L_option=
26072   fi
26073   as_test_x='
26074     eval sh -c '\''
26075       if test -d "$1"; then
26076         test -d "$1/.";
26077       else
26078         case $1 in #(
26079         -*)set "./$1";;
26080         esac;
26081         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26082         ???[sx]*):;;*)false;;esac;fi
26083     '\'' sh
26084   '
26085 fi
26086 as_executable_p=$as_test_x
26087
26088 # Sed expression to map a string onto a valid CPP name.
26089 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26090
26091 # Sed expression to map a string onto a valid variable name.
26092 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26093
26094
26095 exec 6>&1
26096 ## ----------------------------------- ##
26097 ## Main body of $CONFIG_STATUS script. ##
26098 ## ----------------------------------- ##
26099 _ASEOF
26100 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26101
26102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26103 # Save the log message, to keep $0 and so on meaningful, and to
26104 # report actual input values of CONFIG_FILES etc. instead of their
26105 # values after options handling.
26106 ac_log="
26107 This file was extended by navit $as_me 0.5.0, which was
26108 generated by GNU Autoconf 2.68.  Invocation command line was
26109
26110   CONFIG_FILES    = $CONFIG_FILES
26111   CONFIG_HEADERS  = $CONFIG_HEADERS
26112   CONFIG_LINKS    = $CONFIG_LINKS
26113   CONFIG_COMMANDS = $CONFIG_COMMANDS
26114   $ $0 $@
26115
26116 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26117 "
26118
26119 _ACEOF
26120
26121 case $ac_config_files in *"
26122 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26123 esac
26124
26125 case $ac_config_headers in *"
26126 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26127 esac
26128
26129
26130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26131 # Files that config.status was made for.
26132 config_files="$ac_config_files"
26133 config_headers="$ac_config_headers"
26134 config_commands="$ac_config_commands"
26135
26136 _ACEOF
26137
26138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26139 ac_cs_usage="\
26140 \`$as_me' instantiates files and other configuration actions
26141 from templates according to the current configuration.  Unless the files
26142 and actions are specified as TAGs, all are instantiated by default.
26143
26144 Usage: $0 [OPTION]... [TAG]...
26145
26146   -h, --help       print this help, then exit
26147   -V, --version    print version number and configuration settings, then exit
26148       --config     print configuration, then exit
26149   -q, --quiet, --silent
26150                    do not print progress messages
26151   -d, --debug      don't remove temporary files
26152       --recheck    update $as_me by reconfiguring in the same conditions
26153       --file=FILE[:TEMPLATE]
26154                    instantiate the configuration file FILE
26155       --header=FILE[:TEMPLATE]
26156                    instantiate the configuration header FILE
26157
26158 Configuration files:
26159 $config_files
26160
26161 Configuration headers:
26162 $config_headers
26163
26164 Configuration commands:
26165 $config_commands
26166
26167 Report bugs to the package provider."
26168
26169 _ACEOF
26170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26171 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26172 ac_cs_version="\\
26173 navit config.status 0.5.0
26174 configured by $0, generated by GNU Autoconf 2.68,
26175   with options \\"\$ac_cs_config\\"
26176
26177 Copyright (C) 2010 Free Software Foundation, Inc.
26178 This config.status script is free software; the Free Software Foundation
26179 gives unlimited permission to copy, distribute and modify it."
26180
26181 ac_pwd='$ac_pwd'
26182 srcdir='$srcdir'
26183 INSTALL='$INSTALL'
26184 MKDIR_P='$MKDIR_P'
26185 AWK='$AWK'
26186 test -n "\$AWK" || AWK=awk
26187 _ACEOF
26188
26189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26190 # The default lists apply if the user does not specify any file.
26191 ac_need_defaults=:
26192 while test $# != 0
26193 do
26194   case $1 in
26195   --*=?*)
26196     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26197     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26198     ac_shift=:
26199     ;;
26200   --*=)
26201     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26202     ac_optarg=
26203     ac_shift=:
26204     ;;
26205   *)
26206     ac_option=$1
26207     ac_optarg=$2
26208     ac_shift=shift
26209     ;;
26210   esac
26211
26212   case $ac_option in
26213   # Handling of the options.
26214   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26215     ac_cs_recheck=: ;;
26216   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26217     $as_echo "$ac_cs_version"; exit ;;
26218   --config | --confi | --conf | --con | --co | --c )
26219     $as_echo "$ac_cs_config"; exit ;;
26220   --debug | --debu | --deb | --de | --d | -d )
26221     debug=: ;;
26222   --file | --fil | --fi | --f )
26223     $ac_shift
26224     case $ac_optarg in
26225     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26226     '') as_fn_error $? "missing file argument" ;;
26227     esac
26228     as_fn_append CONFIG_FILES " '$ac_optarg'"
26229     ac_need_defaults=false;;
26230   --header | --heade | --head | --hea )
26231     $ac_shift
26232     case $ac_optarg in
26233     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26234     esac
26235     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26236     ac_need_defaults=false;;
26237   --he | --h)
26238     # Conflict between --help and --header
26239     as_fn_error $? "ambiguous option: \`$1'
26240 Try \`$0 --help' for more information.";;
26241   --help | --hel | -h )
26242     $as_echo "$ac_cs_usage"; exit ;;
26243   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26244   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26245     ac_cs_silent=: ;;
26246
26247   # This is an error.
26248   -*) as_fn_error $? "unrecognized option: \`$1'
26249 Try \`$0 --help' for more information." ;;
26250
26251   *) as_fn_append ac_config_targets " $1"
26252      ac_need_defaults=false ;;
26253
26254   esac
26255   shift
26256 done
26257
26258 ac_configure_extra_args=
26259
26260 if $ac_cs_silent; then
26261   exec 6>/dev/null
26262   ac_configure_extra_args="$ac_configure_extra_args --silent"
26263 fi
26264
26265 _ACEOF
26266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26267 if \$ac_cs_recheck; then
26268   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26269   shift
26270   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26271   CONFIG_SHELL='$SHELL'
26272   export CONFIG_SHELL
26273   exec "\$@"
26274 fi
26275
26276 _ACEOF
26277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26278 exec 5>>config.log
26279 {
26280   echo
26281   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26282 ## Running $as_me. ##
26283 _ASBOX
26284   $as_echo "$ac_log"
26285 } >&5
26286
26287 _ACEOF
26288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26289 #
26290 # INIT-COMMANDS
26291 #
26292 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26293
26294
26295 # The HP-UX ksh and POSIX shell print the target directory to stdout
26296 # if CDPATH is set.
26297 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26298
26299 sed_quote_subst='$sed_quote_subst'
26300 double_quote_subst='$double_quote_subst'
26301 delay_variable_subst='$delay_variable_subst'
26302 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
26303 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
26304 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
26305 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
26306 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
26307 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
26308 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
26309 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
26310 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
26311 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
26312 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
26313 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
26314 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
26315 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
26316 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
26317 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
26318 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
26319 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
26320 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
26321 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
26322 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
26323 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
26324 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
26325 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
26326 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
26327 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
26328 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
26329 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26330 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
26331 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
26332 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
26333 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
26334 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
26335 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
26336 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
26337 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26338 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26339 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26340 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
26341 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
26342 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
26343 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
26344 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
26345 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
26346 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
26347 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
26348 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
26349 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
26350 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
26351 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
26352 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
26353 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
26354 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
26355 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
26356 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
26357 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
26358 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
26359 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
26360 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
26361 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
26362 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
26363 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
26364 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26365 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26366 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
26367 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
26368 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
26369 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
26370 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
26371 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26372 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26373 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26374 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26375 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26376 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26377 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
26378 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
26379 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
26380 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
26381 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
26382 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
26383 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
26384 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
26385 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
26386 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
26387 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
26388 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
26389 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
26390 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
26391 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
26392 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26393 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
26394 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
26395 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26396 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
26397 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
26398 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
26399 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
26400 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
26401 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
26402 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
26403 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
26404 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
26405 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
26406 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
26407 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26408 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26409 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26410 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
26411 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
26412 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
26413 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
26414 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
26415 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
26416 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
26417 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
26418 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
26419 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
26420 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
26421 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
26422 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
26423 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
26424 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
26425 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
26426 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26427 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26428 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26429 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26430 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26431 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26432 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26433 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26434 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26435 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26436 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26437 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26438 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26439 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26440 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26441 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26442 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26443 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26444 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26445 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26446 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26447 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26448 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26449 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26450 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26451 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26452 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26453 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26454 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26455 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26456 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26457 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26458 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26459 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26460 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26461 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26462 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26463 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26464 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26465 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26466 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26467 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26468 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26469 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26470 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26471 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26472 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26473
26474 LTCC='$LTCC'
26475 LTCFLAGS='$LTCFLAGS'
26476 compiler='$compiler_DEFAULT'
26477
26478 # Quote evaled strings.
26479 for var in SED \
26480 GREP \
26481 EGREP \
26482 FGREP \
26483 LD \
26484 NM \
26485 LN_S \
26486 lt_SP2NL \
26487 lt_NL2SP \
26488 reload_flag \
26489 OBJDUMP \
26490 deplibs_check_method \
26491 file_magic_cmd \
26492 AR \
26493 AR_FLAGS \
26494 STRIP \
26495 RANLIB \
26496 CC \
26497 CFLAGS \
26498 compiler \
26499 lt_cv_sys_global_symbol_pipe \
26500 lt_cv_sys_global_symbol_to_cdecl \
26501 lt_cv_sys_global_symbol_to_c_name_address \
26502 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26503 SHELL \
26504 ECHO \
26505 lt_prog_compiler_no_builtin_flag \
26506 lt_prog_compiler_wl \
26507 lt_prog_compiler_pic \
26508 lt_prog_compiler_static \
26509 lt_cv_prog_compiler_c_o \
26510 need_locks \
26511 DSYMUTIL \
26512 NMEDIT \
26513 LIPO \
26514 OTOOL \
26515 OTOOL64 \
26516 shrext_cmds \
26517 export_dynamic_flag_spec \
26518 whole_archive_flag_spec \
26519 compiler_needs_object \
26520 with_gnu_ld \
26521 allow_undefined_flag \
26522 no_undefined_flag \
26523 hardcode_libdir_flag_spec \
26524 hardcode_libdir_flag_spec_ld \
26525 hardcode_libdir_separator \
26526 fix_srcfile_path \
26527 exclude_expsyms \
26528 include_expsyms \
26529 file_list_spec \
26530 variables_saved_for_relink \
26531 libname_spec \
26532 library_names_spec \
26533 soname_spec \
26534 finish_eval \
26535 old_striplib \
26536 striplib \
26537 compiler_lib_search_dirs \
26538 predep_objects \
26539 postdep_objects \
26540 predeps \
26541 postdeps \
26542 compiler_lib_search_path \
26543 LD_CXX \
26544 compiler_CXX \
26545 lt_prog_compiler_no_builtin_flag_CXX \
26546 lt_prog_compiler_wl_CXX \
26547 lt_prog_compiler_pic_CXX \
26548 lt_prog_compiler_static_CXX \
26549 lt_cv_prog_compiler_c_o_CXX \
26550 export_dynamic_flag_spec_CXX \
26551 whole_archive_flag_spec_CXX \
26552 compiler_needs_object_CXX \
26553 with_gnu_ld_CXX \
26554 allow_undefined_flag_CXX \
26555 no_undefined_flag_CXX \
26556 hardcode_libdir_flag_spec_CXX \
26557 hardcode_libdir_flag_spec_ld_CXX \
26558 hardcode_libdir_separator_CXX \
26559 fix_srcfile_path_CXX \
26560 exclude_expsyms_CXX \
26561 include_expsyms_CXX \
26562 file_list_spec_CXX \
26563 compiler_lib_search_dirs_CXX \
26564 predep_objects_CXX \
26565 postdep_objects_CXX \
26566 predeps_CXX \
26567 postdeps_CXX \
26568 compiler_lib_search_path_CXX; do
26569     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
26570     *[\\\\\\\`\\"\\\$]*)
26571       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26572       ;;
26573     *)
26574       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26575       ;;
26576     esac
26577 done
26578
26579 # Double-quote double-evaled strings.
26580 for var in reload_cmds \
26581 old_postinstall_cmds \
26582 old_postuninstall_cmds \
26583 old_archive_cmds \
26584 extract_expsyms_cmds \
26585 old_archive_from_new_cmds \
26586 old_archive_from_expsyms_cmds \
26587 archive_cmds \
26588 archive_expsym_cmds \
26589 module_cmds \
26590 module_expsym_cmds \
26591 export_symbols_cmds \
26592 prelink_cmds \
26593 postinstall_cmds \
26594 postuninstall_cmds \
26595 finish_cmds \
26596 sys_lib_search_path_spec \
26597 sys_lib_dlsearch_path_spec \
26598 old_archive_cmds_CXX \
26599 old_archive_from_new_cmds_CXX \
26600 old_archive_from_expsyms_cmds_CXX \
26601 archive_cmds_CXX \
26602 archive_expsym_cmds_CXX \
26603 module_cmds_CXX \
26604 module_expsym_cmds_CXX \
26605 export_symbols_cmds_CXX \
26606 prelink_cmds_CXX; do
26607     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
26608     *[\\\\\\\`\\"\\\$]*)
26609       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26610       ;;
26611     *)
26612       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26613       ;;
26614     esac
26615 done
26616
26617 # Fix-up fallback echo if it was mangled by the above quoting rules.
26618 case \$lt_ECHO in
26619 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
26620   ;;
26621 esac
26622
26623 ac_aux_dir='$ac_aux_dir'
26624 xsi_shell='$xsi_shell'
26625 lt_shell_append='$lt_shell_append'
26626
26627 # See if we are running on zsh, and set the options which allow our
26628 # commands through without removal of \ escapes INIT.
26629 if test -n "\${ZSH_VERSION+set}" ; then
26630    setopt NO_GLOB_SUBST
26631 fi
26632
26633
26634     PACKAGE='$PACKAGE'
26635     VERSION='$VERSION'
26636     TIMESTAMP='$TIMESTAMP'
26637     RM='$RM'
26638     ofile='$ofile'
26639
26640
26641
26642
26643
26644 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
26645     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
26646     # from automake.
26647     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
26648     # Capture the value of LINGUAS because we need it to compute CATALOGS.
26649     LINGUAS="${LINGUAS-%UNSET%}"
26650
26651
26652 _ACEOF
26653
26654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26655
26656 # Handling of arguments.
26657 for ac_config_target in $ac_config_targets
26658 do
26659   case $ac_config_target in
26660     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
26661     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26662     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26663     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
26664     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26665     "navit/Makefile") CONFIG_FILES="$CONFIG_FILES navit/Makefile" ;;
26666     "navit/autoload/Makefile") CONFIG_FILES="$CONFIG_FILES navit/autoload/Makefile" ;;
26667     "navit/autoload/osso/Makefile") CONFIG_FILES="$CONFIG_FILES navit/autoload/osso/Makefile" ;;
26668     "navit/binding/Makefile") CONFIG_FILES="$CONFIG_FILES navit/binding/Makefile" ;;
26669     "navit/binding/python/Makefile") CONFIG_FILES="$CONFIG_FILES navit/binding/python/Makefile" ;;
26670     "navit/binding/dbus/Makefile") CONFIG_FILES="$CONFIG_FILES navit/binding/dbus/Makefile" ;;
26671     "navit/binding/win32/Makefile") CONFIG_FILES="$CONFIG_FILES navit/binding/win32/Makefile" ;;
26672     "navit/map/Makefile") CONFIG_FILES="$CONFIG_FILES navit/map/Makefile" ;;
26673     "navit/map/mg/Makefile") CONFIG_FILES="$CONFIG_FILES navit/map/mg/Makefile" ;;
26674     "navit/map/textfile/Makefile") CONFIG_FILES="$CONFIG_FILES navit/map/textfile/Makefile" ;;
26675     "navit/map/csv/Makefile") CONFIG_FILES="$CONFIG_FILES navit/map/csv/Makefile" ;;
26676     "navit/map/shapefile/Makefile") CONFIG_FILES="$CONFIG_FILES navit/map/shapefile/Makefile" ;;
26677     "navit/map/filter/Makefile") CONFIG_FILES="$CONFIG_FILES navit/map/filter/Makefile" ;;
26678     "navit/map/binfile/Makefile") CONFIG_FILES="$CONFIG_FILES navit/map/binfile/Makefile" ;;
26679     "navit/map/garmin/Makefile") CONFIG_FILES="$CONFIG_FILES navit/map/garmin/Makefile" ;;
26680     "navit/maptool/Makefile") CONFIG_FILES="$CONFIG_FILES navit/maptool/Makefile" ;;
26681     "navit/fib-1.1/Makefile") CONFIG_FILES="$CONFIG_FILES navit/fib-1.1/Makefile" ;;
26682     "navit/font/Makefile") CONFIG_FILES="$CONFIG_FILES navit/font/Makefile" ;;
26683     "navit/font/freetype/Makefile") CONFIG_FILES="$CONFIG_FILES navit/font/freetype/Makefile" ;;
26684     "navit/fonts/Makefile") CONFIG_FILES="$CONFIG_FILES navit/fonts/Makefile" ;;
26685     "navit/graphics/Makefile") CONFIG_FILES="$CONFIG_FILES navit/graphics/Makefile" ;;
26686     "navit/graphics/android/Makefile") CONFIG_FILES="$CONFIG_FILES navit/graphics/android/Makefile" ;;
26687     "navit/graphics/gd/Makefile") CONFIG_FILES="$CONFIG_FILES navit/graphics/gd/Makefile" ;;
26688     "navit/graphics/gtk_drawing_area/Makefile") CONFIG_FILES="$CONFIG_FILES navit/graphics/gtk_drawing_area/Makefile" ;;
26689     "navit/graphics/opengl/Makefile") CONFIG_FILES="$CONFIG_FILES navit/graphics/opengl/Makefile" ;;
26690     "navit/graphics/null/Makefile") CONFIG_FILES="$CONFIG_FILES navit/graphics/null/Makefile" ;;
26691     "navit/graphics/sdl/Makefile") CONFIG_FILES="$CONFIG_FILES navit/graphics/sdl/Makefile" ;;
26692     "navit/graphics/qt_qpainter/Makefile") CONFIG_FILES="$CONFIG_FILES navit/graphics/qt_qpainter/Makefile" ;;
26693     "navit/graphics/win32/Makefile") CONFIG_FILES="$CONFIG_FILES navit/graphics/win32/Makefile" ;;
26694     "navit/gui/Makefile") CONFIG_FILES="$CONFIG_FILES navit/gui/Makefile" ;;
26695     "navit/gui/gtk/Makefile") CONFIG_FILES="$CONFIG_FILES navit/gui/gtk/Makefile" ;;
26696     "navit/gui/internal/Makefile") CONFIG_FILES="$CONFIG_FILES navit/gui/internal/Makefile" ;;
26697     "navit/gui/win32/Makefile") CONFIG_FILES="$CONFIG_FILES navit/gui/win32/Makefile" ;;
26698     "navit/gui/qml/Makefile") CONFIG_FILES="$CONFIG_FILES navit/gui/qml/Makefile" ;;
26699     "navit/gui/qml/skins/Makefile") CONFIG_FILES="$CONFIG_FILES navit/gui/qml/skins/Makefile" ;;
26700     "navit/gui/qml/skins/navit/Makefile") CONFIG_FILES="$CONFIG_FILES navit/gui/qml/skins/navit/Makefile" ;;
26701     "navit/osd/Makefile") CONFIG_FILES="$CONFIG_FILES navit/osd/Makefile" ;;
26702     "navit/osd/core/Makefile") CONFIG_FILES="$CONFIG_FILES navit/osd/core/Makefile" ;;
26703     "navit/plugin/Makefile") CONFIG_FILES="$CONFIG_FILES navit/plugin/Makefile" ;;
26704     "navit/plugin/pedestrian/Makefile") CONFIG_FILES="$CONFIG_FILES navit/plugin/pedestrian/Makefile" ;;
26705     "navit/speech/Makefile") CONFIG_FILES="$CONFIG_FILES navit/speech/Makefile" ;;
26706     "navit/speech/android/Makefile") CONFIG_FILES="$CONFIG_FILES navit/speech/android/Makefile" ;;
26707     "navit/speech/cmdline/Makefile") CONFIG_FILES="$CONFIG_FILES navit/speech/cmdline/Makefile" ;;
26708     "navit/speech/dbus/Makefile") CONFIG_FILES="$CONFIG_FILES navit/speech/dbus/Makefile" ;;
26709     "navit/speech/espeak/Makefile") CONFIG_FILES="$CONFIG_FILES navit/speech/espeak/Makefile" ;;
26710     "navit/speech/speech_dispatcher/Makefile") CONFIG_FILES="$CONFIG_FILES navit/speech/speech_dispatcher/Makefile" ;;
26711     "navit/support/Makefile") CONFIG_FILES="$CONFIG_FILES navit/support/Makefile" ;;
26712     "navit/support/espeak/Makefile") CONFIG_FILES="$CONFIG_FILES navit/support/espeak/Makefile" ;;
26713     "navit/support/ezxml/Makefile") CONFIG_FILES="$CONFIG_FILES navit/support/ezxml/Makefile" ;;
26714     "navit/support/glib/Makefile") CONFIG_FILES="$CONFIG_FILES navit/support/glib/Makefile" ;;
26715     "navit/support/libc/Makefile") CONFIG_FILES="$CONFIG_FILES navit/support/libc/Makefile" ;;
26716     "navit/support/libpng/Makefile") CONFIG_FILES="$CONFIG_FILES navit/support/libpng/Makefile" ;;
26717     "navit/support/shapefile/Makefile") CONFIG_FILES="$CONFIG_FILES navit/support/shapefile/Makefile" ;;
26718     "navit/support/win32/Makefile") CONFIG_FILES="$CONFIG_FILES navit/support/win32/Makefile" ;;
26719     "navit/support/wordexp/Makefile") CONFIG_FILES="$CONFIG_FILES navit/support/wordexp/Makefile" ;;
26720     "navit/support/zlib/Makefile") CONFIG_FILES="$CONFIG_FILES navit/support/zlib/Makefile" ;;
26721     "navit/vehicle/Makefile") CONFIG_FILES="$CONFIG_FILES navit/vehicle/Makefile" ;;
26722     "navit/vehicle/android/Makefile") CONFIG_FILES="$CONFIG_FILES navit/vehicle/android/Makefile" ;;
26723     "navit/vehicle/file/Makefile") CONFIG_FILES="$CONFIG_FILES navit/vehicle/file/Makefile" ;;
26724     "navit/vehicle/gpsd/Makefile") CONFIG_FILES="$CONFIG_FILES navit/vehicle/gpsd/Makefile" ;;
26725     "navit/vehicle/gpsd_dbus/Makefile") CONFIG_FILES="$CONFIG_FILES navit/vehicle/gpsd_dbus/Makefile" ;;
26726     "navit/vehicle/gypsy/Makefile") CONFIG_FILES="$CONFIG_FILES navit/vehicle/gypsy/Makefile" ;;
26727     "navit/vehicle/maemo/Makefile") CONFIG_FILES="$CONFIG_FILES navit/vehicle/maemo/Makefile" ;;
26728     "navit/vehicle/null/Makefile") CONFIG_FILES="$CONFIG_FILES navit/vehicle/null/Makefile" ;;
26729     "navit/vehicle/demo/Makefile") CONFIG_FILES="$CONFIG_FILES navit/vehicle/demo/Makefile" ;;
26730     "navit/vehicle/wince/Makefile") CONFIG_FILES="$CONFIG_FILES navit/vehicle/wince/Makefile" ;;
26731     "navit/vehicle/iphone/Makefile") CONFIG_FILES="$CONFIG_FILES navit/vehicle/iphone/Makefile" ;;
26732     "navit/vehicle/webos/Makefile") CONFIG_FILES="$CONFIG_FILES navit/vehicle/webos/Makefile" ;;
26733     "navit/xpm/Makefile") CONFIG_FILES="$CONFIG_FILES navit/xpm/Makefile" ;;
26734     "navit/maps/Makefile") CONFIG_FILES="$CONFIG_FILES navit/maps/Makefile" ;;
26735     "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
26736     "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
26737     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
26738
26739   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26740   esac
26741 done
26742
26743
26744 # If the user did not use the arguments to specify the items to instantiate,
26745 # then the envvar interface is used.  Set only those that are not.
26746 # We use the long form for the default assignment because of an extremely
26747 # bizarre bug on SunOS 4.1.3.
26748 if $ac_need_defaults; then
26749   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26750   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26751   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26752 fi
26753
26754 # Have a temporary directory for convenience.  Make it in the build tree
26755 # simply because there is no reason against having it here, and in addition,
26756 # creating and moving files from /tmp can sometimes cause problems.
26757 # Hook for its removal unless debugging.
26758 # Note that there is a small window in which the directory will not be cleaned:
26759 # after its creation but before its name has been assigned to `$tmp'.
26760 $debug ||
26761 {
26762   tmp= ac_tmp=
26763   trap 'exit_status=$?
26764   : "${ac_tmp:=$tmp}"
26765   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26766 ' 0
26767   trap 'as_fn_exit 1' 1 2 13 15
26768 }
26769 # Create a (secure) tmp directory for tmp files.
26770
26771 {
26772   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26773   test -d "$tmp"
26774 }  ||
26775 {
26776   tmp=./conf$$-$RANDOM
26777   (umask 077 && mkdir "$tmp")
26778 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
26779 ac_tmp=$tmp
26780
26781 # Set up the scripts for CONFIG_FILES section.
26782 # No need to generate them if there are no CONFIG_FILES.
26783 # This happens for instance with `./config.status config.h'.
26784 if test -n "$CONFIG_FILES"; then
26785
26786
26787 ac_cr=`echo X | tr X '\015'`
26788 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26789 # But we know of no other shell where ac_cr would be empty at this
26790 # point, so we can use a bashism as a fallback.
26791 if test "x$ac_cr" = x; then
26792   eval ac_cr=\$\'\\r\'
26793 fi
26794 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26795 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26796   ac_cs_awk_cr='\\r'
26797 else
26798   ac_cs_awk_cr=$ac_cr
26799 fi
26800
26801 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
26802 _ACEOF
26803
26804
26805 {
26806   echo "cat >conf$$subs.awk <<_ACEOF" &&
26807   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26808   echo "_ACEOF"
26809 } >conf$$subs.sh ||
26810   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26811 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26812 ac_delim='%!_!# '
26813 for ac_last_try in false false false false false :; do
26814   . ./conf$$subs.sh ||
26815     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26816
26817   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26818   if test $ac_delim_n = $ac_delim_num; then
26819     break
26820   elif $ac_last_try; then
26821     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26822   else
26823     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26824   fi
26825 done
26826 rm -f conf$$subs.sh
26827
26828 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26829 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
26830 _ACEOF
26831 sed -n '
26832 h
26833 s/^/S["/; s/!.*/"]=/
26834 p
26835 g
26836 s/^[^!]*!//
26837 :repl
26838 t repl
26839 s/'"$ac_delim"'$//
26840 t delim
26841 :nl
26842 h
26843 s/\(.\{148\}\)..*/\1/
26844 t more1
26845 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26846 p
26847 n
26848 b repl
26849 :more1
26850 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26851 p
26852 g
26853 s/.\{148\}//
26854 t nl
26855 :delim
26856 h
26857 s/\(.\{148\}\)..*/\1/
26858 t more2
26859 s/["\\]/\\&/g; s/^/"/; s/$/"/
26860 p
26861 b
26862 :more2
26863 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26864 p
26865 g
26866 s/.\{148\}//
26867 t delim
26868 ' <conf$$subs.awk | sed '
26869 /^[^""]/{
26870   N
26871   s/\n//
26872 }
26873 ' >>$CONFIG_STATUS || ac_write_fail=1
26874 rm -f conf$$subs.awk
26875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26876 _ACAWK
26877 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
26878   for (key in S) S_is_set[key] = 1
26879   FS = "\a"
26880
26881 }
26882 {
26883   line = $ 0
26884   nfields = split(line, field, "@")
26885   substed = 0
26886   len = length(field[1])
26887   for (i = 2; i < nfields; i++) {
26888     key = field[i]
26889     keylen = length(key)
26890     if (S_is_set[key]) {
26891       value = S[key]
26892       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26893       len += length(value) + length(field[++i])
26894       substed = 1
26895     } else
26896       len += 1 + keylen
26897   }
26898
26899   print line
26900 }
26901
26902 _ACAWK
26903 _ACEOF
26904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26905 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26906   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26907 else
26908   cat
26909 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
26910   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
26911 _ACEOF
26912
26913 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
26914 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
26915 # trailing colons and then remove the whole line if VPATH becomes empty
26916 # (actually we leave an empty line to preserve line numbers).
26917 if test "x$srcdir" = x.; then
26918   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
26919 h
26920 s///
26921 s/^/:/
26922 s/[      ]*$/:/
26923 s/:\$(srcdir):/:/g
26924 s/:\${srcdir}:/:/g
26925 s/:@srcdir@:/:/g
26926 s/^:*//
26927 s/:*$//
26928 x
26929 s/\(=[   ]*\).*/\1/
26930 G
26931 s/\n//
26932 s/^[^=]*=[       ]*$//
26933 }'
26934 fi
26935
26936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26937 fi # test -n "$CONFIG_FILES"
26938
26939 # Set up the scripts for CONFIG_HEADERS section.
26940 # No need to generate them if there are no CONFIG_HEADERS.
26941 # This happens for instance with `./config.status Makefile'.
26942 if test -n "$CONFIG_HEADERS"; then
26943 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
26944 BEGIN {
26945 _ACEOF
26946
26947 # Transform confdefs.h into an awk script `defines.awk', embedded as
26948 # here-document in config.status, that substitutes the proper values into
26949 # config.h.in to produce config.h.
26950
26951 # Create a delimiter string that does not exist in confdefs.h, to ease
26952 # handling of long lines.
26953 ac_delim='%!_!# '
26954 for ac_last_try in false false :; do
26955   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
26956   if test -z "$ac_tt"; then
26957     break
26958   elif $ac_last_try; then
26959     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26960   else
26961     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26962   fi
26963 done
26964
26965 # For the awk script, D is an array of macro values keyed by name,
26966 # likewise P contains macro parameters if any.  Preserve backslash
26967 # newline sequences.
26968
26969 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26970 sed -n '
26971 s/.\{148\}/&'"$ac_delim"'/g
26972 t rset
26973 :rset
26974 s/^[     ]*#[    ]*define[       ][      ]*/ /
26975 t def
26976 d
26977 :def
26978 s/\\$//
26979 t bsnl
26980 s/["\\]/\\&/g
26981 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26982 D["\1"]=" \3"/p
26983 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
26984 d
26985 :bsnl
26986 s/["\\]/\\&/g
26987 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26988 D["\1"]=" \3\\\\\\n"\\/p
26989 t cont
26990 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26991 t cont
26992 d
26993 :cont
26994 n
26995 s/.\{148\}/&'"$ac_delim"'/g
26996 t clear
26997 :clear
26998 s/\\$//
26999 t bsnlc
27000 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27001 d
27002 :bsnlc
27003 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27004 b cont
27005 ' <confdefs.h | sed '
27006 s/'"$ac_delim"'/"\\\
27007 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27008
27009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27010   for (key in D) D_is_set[key] = 1
27011   FS = "\a"
27012 }
27013 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27014   line = \$ 0
27015   split(line, arg, " ")
27016   if (arg[1] == "#") {
27017     defundef = arg[2]
27018     mac1 = arg[3]
27019   } else {
27020     defundef = substr(arg[1], 2)
27021     mac1 = arg[2]
27022   }
27023   split(mac1, mac2, "(") #)
27024   macro = mac2[1]
27025   prefix = substr(line, 1, index(line, defundef) - 1)
27026   if (D_is_set[macro]) {
27027     # Preserve the white space surrounding the "#".
27028     print prefix "define", macro P[macro] D[macro]
27029     next
27030   } else {
27031     # Replace #undef with comments.  This is necessary, for example,
27032     # in the case of _POSIX_SOURCE, which is predefined and required
27033     # on some systems where configure will not decide to define it.
27034     if (defundef == "undef") {
27035       print "/*", prefix defundef, macro, "*/"
27036       next
27037     }
27038   }
27039 }
27040 { print }
27041 _ACAWK
27042 _ACEOF
27043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27044   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27045 fi # test -n "$CONFIG_HEADERS"
27046
27047
27048 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
27049 shift
27050 for ac_tag
27051 do
27052   case $ac_tag in
27053   :[FHLC]) ac_mode=$ac_tag; continue;;
27054   esac
27055   case $ac_mode$ac_tag in
27056   :[FHL]*:*);;
27057   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27058   :[FH]-) ac_tag=-:-;;
27059   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27060   esac
27061   ac_save_IFS=$IFS
27062   IFS=:
27063   set x $ac_tag
27064   IFS=$ac_save_IFS
27065   shift
27066   ac_file=$1
27067   shift
27068
27069   case $ac_mode in
27070   :L) ac_source=$1;;
27071   :[FH])
27072     ac_file_inputs=
27073     for ac_f
27074     do
27075       case $ac_f in
27076       -) ac_f="$ac_tmp/stdin";;
27077       *) # Look for the file first in the build tree, then in the source tree
27078          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27079          # because $ac_f cannot contain `:'.
27080          test -f "$ac_f" ||
27081            case $ac_f in
27082            [\\/$]*) false;;
27083            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27084            esac ||
27085            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27086       esac
27087       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27088       as_fn_append ac_file_inputs " '$ac_f'"
27089     done
27090
27091     # Let's still pretend it is `configure' which instantiates (i.e., don't
27092     # use $as_me), people would be surprised to read:
27093     #    /* config.h.  Generated by config.status.  */
27094     configure_input='Generated from '`
27095           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27096         `' by configure.'
27097     if test x"$ac_file" != x-; then
27098       configure_input="$ac_file.  $configure_input"
27099       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27100 $as_echo "$as_me: creating $ac_file" >&6;}
27101     fi
27102     # Neutralize special characters interpreted by sed in replacement strings.
27103     case $configure_input in #(
27104     *\&* | *\|* | *\\* )
27105        ac_sed_conf_input=`$as_echo "$configure_input" |
27106        sed 's/[\\\\&|]/\\\\&/g'`;; #(
27107     *) ac_sed_conf_input=$configure_input;;
27108     esac
27109
27110     case $ac_tag in
27111     *:-:* | *:-) cat >"$ac_tmp/stdin" \
27112       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
27113     esac
27114     ;;
27115   esac
27116
27117   ac_dir=`$as_dirname -- "$ac_file" ||
27118 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27119          X"$ac_file" : 'X\(//\)[^/]' \| \
27120          X"$ac_file" : 'X\(//\)$' \| \
27121          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27122 $as_echo X"$ac_file" |
27123     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27124             s//\1/
27125             q
27126           }
27127           /^X\(\/\/\)[^/].*/{
27128             s//\1/
27129             q
27130           }
27131           /^X\(\/\/\)$/{
27132             s//\1/
27133             q
27134           }
27135           /^X\(\/\).*/{
27136             s//\1/
27137             q
27138           }
27139           s/.*/./; q'`
27140   as_dir="$ac_dir"; as_fn_mkdir_p
27141   ac_builddir=.
27142
27143 case "$ac_dir" in
27144 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27145 *)
27146   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27147   # A ".." for each directory in $ac_dir_suffix.
27148   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27149   case $ac_top_builddir_sub in
27150   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27151   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27152   esac ;;
27153 esac
27154 ac_abs_top_builddir=$ac_pwd
27155 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27156 # for backward compatibility:
27157 ac_top_builddir=$ac_top_build_prefix
27158
27159 case $srcdir in
27160   .)  # We are building in place.
27161     ac_srcdir=.
27162     ac_top_srcdir=$ac_top_builddir_sub
27163     ac_abs_top_srcdir=$ac_pwd ;;
27164   [\\/]* | ?:[\\/]* )  # Absolute name.
27165     ac_srcdir=$srcdir$ac_dir_suffix;
27166     ac_top_srcdir=$srcdir
27167     ac_abs_top_srcdir=$srcdir ;;
27168   *) # Relative name.
27169     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27170     ac_top_srcdir=$ac_top_build_prefix$srcdir
27171     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27172 esac
27173 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27174
27175
27176   case $ac_mode in
27177   :F)
27178   #
27179   # CONFIG_FILE
27180   #
27181
27182   case $INSTALL in
27183   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27184   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27185   esac
27186   ac_MKDIR_P=$MKDIR_P
27187   case $MKDIR_P in
27188   [\\/$]* | ?:[\\/]* ) ;;
27189   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27190   esac
27191 _ACEOF
27192
27193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27194 # If the template does not know about datarootdir, expand it.
27195 # FIXME: This hack should be removed a few years after 2.60.
27196 ac_datarootdir_hack=; ac_datarootdir_seen=
27197 ac_sed_dataroot='
27198 /datarootdir/ {
27199   p
27200   q
27201 }
27202 /@datadir@/p
27203 /@docdir@/p
27204 /@infodir@/p
27205 /@localedir@/p
27206 /@mandir@/p'
27207 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27208 *datarootdir*) ac_datarootdir_seen=yes;;
27209 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27210   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27211 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27212 _ACEOF
27213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27214   ac_datarootdir_hack='
27215   s&@datadir@&$datadir&g
27216   s&@docdir@&$docdir&g
27217   s&@infodir@&$infodir&g
27218   s&@localedir@&$localedir&g
27219   s&@mandir@&$mandir&g
27220   s&\\\${datarootdir}&$datarootdir&g' ;;
27221 esac
27222 _ACEOF
27223
27224 # Neutralize VPATH when `$srcdir' = `.'.
27225 # Shell code in configure.ac might set extrasub.
27226 # FIXME: do we really want to maintain this feature?
27227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27228 ac_sed_extra="$ac_vpsub
27229 $extrasub
27230 _ACEOF
27231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27232 :t
27233 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27234 s|@configure_input@|$ac_sed_conf_input|;t t
27235 s&@top_builddir@&$ac_top_builddir_sub&;t t
27236 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27237 s&@srcdir@&$ac_srcdir&;t t
27238 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27239 s&@top_srcdir@&$ac_top_srcdir&;t t
27240 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27241 s&@builddir@&$ac_builddir&;t t
27242 s&@abs_builddir@&$ac_abs_builddir&;t t
27243 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27244 s&@INSTALL@&$ac_INSTALL&;t t
27245 s&@MKDIR_P@&$ac_MKDIR_P&;t t
27246 $ac_datarootdir_hack
27247 "
27248 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
27249   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27250
27251 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27252   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
27253   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
27254       "$ac_tmp/out"`; test -z "$ac_out"; } &&
27255   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27256 which seems to be undefined.  Please make sure it is defined" >&5
27257 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27258 which seems to be undefined.  Please make sure it is defined" >&2;}
27259
27260   rm -f "$ac_tmp/stdin"
27261   case $ac_file in
27262   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
27263   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
27264   esac \
27265   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27266  ;;
27267   :H)
27268   #
27269   # CONFIG_HEADER
27270   #
27271   if test x"$ac_file" != x-; then
27272     {
27273       $as_echo "/* $configure_input  */" \
27274       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
27275     } >"$ac_tmp/config.h" \
27276       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27277     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
27278       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27279 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27280     else
27281       rm -f "$ac_file"
27282       mv "$ac_tmp/config.h" "$ac_file" \
27283         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27284     fi
27285   else
27286     $as_echo "/* $configure_input  */" \
27287       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
27288       || as_fn_error $? "could not create -" "$LINENO" 5
27289   fi
27290 # Compute "$ac_file"'s index in $config_headers.
27291 _am_arg="$ac_file"
27292 _am_stamp_count=1
27293 for _am_header in $config_headers :; do
27294   case $_am_header in
27295     $_am_arg | $_am_arg:* )
27296       break ;;
27297     * )
27298       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27299   esac
27300 done
27301 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27302 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27303          X"$_am_arg" : 'X\(//\)[^/]' \| \
27304          X"$_am_arg" : 'X\(//\)$' \| \
27305          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27306 $as_echo X"$_am_arg" |
27307     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27308             s//\1/
27309             q
27310           }
27311           /^X\(\/\/\)[^/].*/{
27312             s//\1/
27313             q
27314           }
27315           /^X\(\/\/\)$/{
27316             s//\1/
27317             q
27318           }
27319           /^X\(\/\).*/{
27320             s//\1/
27321             q
27322           }
27323           s/.*/./; q'`/stamp-h$_am_stamp_count
27324  ;;
27325
27326   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27327 $as_echo "$as_me: executing $ac_file commands" >&6;}
27328  ;;
27329   esac
27330
27331
27332   case $ac_file$ac_mode in
27333     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27334   # Autoconf 2.62 quotes --file arguments for eval, but not when files
27335   # are listed without --file.  Let's play safe and only enable the eval
27336   # if we detect the quoting.
27337   case $CONFIG_FILES in
27338   *\'*) eval set x "$CONFIG_FILES" ;;
27339   *)   set x $CONFIG_FILES ;;
27340   esac
27341   shift
27342   for mf
27343   do
27344     # Strip MF so we end up with the name of the file.
27345     mf=`echo "$mf" | sed -e 's/:.*$//'`
27346     # Check whether this is an Automake generated Makefile or not.
27347     # We used to match only the files named `Makefile.in', but
27348     # some people rename them; so instead we look at the file content.
27349     # Grep'ing the first line is not enough: some people post-process
27350     # each Makefile.in and add a new line on top of each file to say so.
27351     # Grep'ing the whole file is not good either: AIX grep has a line
27352     # limit of 2048, but all sed's we know have understand at least 4000.
27353     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27354       dirpart=`$as_dirname -- "$mf" ||
27355 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27356          X"$mf" : 'X\(//\)[^/]' \| \
27357          X"$mf" : 'X\(//\)$' \| \
27358          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27359 $as_echo X"$mf" |
27360     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27361             s//\1/
27362             q
27363           }
27364           /^X\(\/\/\)[^/].*/{
27365             s//\1/
27366             q
27367           }
27368           /^X\(\/\/\)$/{
27369             s//\1/
27370             q
27371           }
27372           /^X\(\/\).*/{
27373             s//\1/
27374             q
27375           }
27376           s/.*/./; q'`
27377     else
27378       continue
27379     fi
27380     # Extract the definition of DEPDIR, am__include, and am__quote
27381     # from the Makefile without running `make'.
27382     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27383     test -z "$DEPDIR" && continue
27384     am__include=`sed -n 's/^am__include = //p' < "$mf"`
27385     test -z "am__include" && continue
27386     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27387     # When using ansi2knr, U may be empty or an underscore; expand it
27388     U=`sed -n 's/^U = //p' < "$mf"`
27389     # Find all dependency output files, they are included files with
27390     # $(DEPDIR) in their names.  We invoke sed twice because it is the
27391     # simplest approach to changing $(DEPDIR) to its actual value in the
27392     # expansion.
27393     for file in `sed -n "
27394       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27395          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27396       # Make sure the directory exists.
27397       test -f "$dirpart/$file" && continue
27398       fdir=`$as_dirname -- "$file" ||
27399 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27400          X"$file" : 'X\(//\)[^/]' \| \
27401          X"$file" : 'X\(//\)$' \| \
27402          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27403 $as_echo X"$file" |
27404     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27405             s//\1/
27406             q
27407           }
27408           /^X\(\/\/\)[^/].*/{
27409             s//\1/
27410             q
27411           }
27412           /^X\(\/\/\)$/{
27413             s//\1/
27414             q
27415           }
27416           /^X\(\/\).*/{
27417             s//\1/
27418             q
27419           }
27420           s/.*/./; q'`
27421       as_dir=$dirpart/$fdir; as_fn_mkdir_p
27422       # echo "creating $dirpart/$file"
27423       echo '# dummy' > "$dirpart/$file"
27424     done
27425   done
27426 }
27427  ;;
27428     "libtool":C)
27429
27430     # See if we are running on zsh, and set the options which allow our
27431     # commands through without removal of \ escapes.
27432     if test -n "${ZSH_VERSION+set}" ; then
27433       setopt NO_GLOB_SUBST
27434     fi
27435
27436     cfgfile="${ofile}T"
27437     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27438     $RM "$cfgfile"
27439
27440     cat <<_LT_EOF >> "$cfgfile"
27441 #! $SHELL
27442
27443 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
27444 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
27445 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
27446 #
27447 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
27448 #                 2006, 2007, 2008 Free Software Foundation, Inc.
27449 #   Written by Gordon Matzigkeit, 1996
27450 #
27451 #   This file is part of GNU Libtool.
27452 #
27453 # GNU Libtool is free software; you can redistribute it and/or
27454 # modify it under the terms of the GNU General Public License as
27455 # published by the Free Software Foundation; either version 2 of
27456 # the License, or (at your option) any later version.
27457 #
27458 # As a special exception to the GNU General Public License,
27459 # if you distribute this file as part of a program or library that
27460 # is built using GNU Libtool, you may include this file under the
27461 # same distribution terms that you use for the rest of that program.
27462 #
27463 # GNU Libtool is distributed in the hope that it will be useful,
27464 # but WITHOUT ANY WARRANTY; without even the implied warranty of
27465 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27466 # GNU General Public License for more details.
27467 #
27468 # You should have received a copy of the GNU General Public License
27469 # along with GNU Libtool; see the file COPYING.  If not, a copy
27470 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27471 # obtained by writing to the Free Software Foundation, Inc.,
27472 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27473
27474
27475 # The names of the tagged configurations supported by this script.
27476 available_tags="CXX "
27477
27478 # ### BEGIN LIBTOOL CONFIG
27479
27480 # Whether or not to build shared libraries.
27481 build_libtool_libs=$enable_shared
27482
27483 # Whether or not to build static libraries.
27484 build_old_libs=$enable_static
27485
27486 # Which release of libtool.m4 was used?
27487 macro_version=$macro_version
27488 macro_revision=$macro_revision
27489
27490 # What type of objects to build.
27491 pic_mode=$pic_mode
27492
27493 # Whether or not to optimize for fast installation.
27494 fast_install=$enable_fast_install
27495
27496 # The host system.
27497 host_alias=$host_alias
27498 host=$host
27499 host_os=$host_os
27500
27501 # The build system.
27502 build_alias=$build_alias
27503 build=$build
27504 build_os=$build_os
27505
27506 # A sed program that does not truncate output.
27507 SED=$lt_SED
27508
27509 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27510 Xsed="\$SED -e 1s/^X//"
27511
27512 # A grep program that handles long lines.
27513 GREP=$lt_GREP
27514
27515 # An ERE matcher.
27516 EGREP=$lt_EGREP
27517
27518 # A literal string matcher.
27519 FGREP=$lt_FGREP
27520
27521 # A BSD- or MS-compatible name lister.
27522 NM=$lt_NM
27523
27524 # Whether we need soft or hard links.
27525 LN_S=$lt_LN_S
27526
27527 # What is the maximum length of a command?
27528 max_cmd_len=$max_cmd_len
27529
27530 # Object file suffix (normally "o").
27531 objext=$ac_objext
27532
27533 # Executable file suffix (normally "").
27534 exeext=$exeext
27535
27536 # whether the shell understands "unset".
27537 lt_unset=$lt_unset
27538
27539 # turn spaces into newlines.
27540 SP2NL=$lt_lt_SP2NL
27541
27542 # turn newlines into spaces.
27543 NL2SP=$lt_lt_NL2SP
27544
27545 # How to create reloadable object files.
27546 reload_flag=$lt_reload_flag
27547 reload_cmds=$lt_reload_cmds
27548
27549 # An object symbol dumper.
27550 OBJDUMP=$lt_OBJDUMP
27551
27552 # Method to check whether dependent libraries are shared objects.
27553 deplibs_check_method=$lt_deplibs_check_method
27554
27555 # Command to use when deplibs_check_method == "file_magic".
27556 file_magic_cmd=$lt_file_magic_cmd
27557
27558 # The archiver.
27559 AR=$lt_AR
27560 AR_FLAGS=$lt_AR_FLAGS
27561
27562 # A symbol stripping program.
27563 STRIP=$lt_STRIP
27564
27565 # Commands used to install an old-style archive.
27566 RANLIB=$lt_RANLIB
27567 old_postinstall_cmds=$lt_old_postinstall_cmds
27568 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27569
27570 # A C compiler.
27571 LTCC=$lt_CC
27572
27573 # LTCC compiler flags.
27574 LTCFLAGS=$lt_CFLAGS
27575
27576 # Take the output of nm and produce a listing of raw symbols and C names.
27577 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27578
27579 # Transform the output of nm in a proper C declaration.
27580 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27581
27582 # Transform the output of nm in a C name address pair.
27583 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27584
27585 # Transform the output of nm in a C name address pair when lib prefix is needed.
27586 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27587
27588 # The name of the directory that contains temporary libtool files.
27589 objdir=$objdir
27590
27591 # Shell to use when invoking shell scripts.
27592 SHELL=$lt_SHELL
27593
27594 # An echo program that does not interpret backslashes.
27595 ECHO=$lt_ECHO
27596
27597 # Used to examine libraries when file_magic_cmd begins with "file".
27598 MAGIC_CMD=$MAGIC_CMD
27599
27600 # Must we lock files when doing compilation?
27601 need_locks=$lt_need_locks
27602
27603 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27604 DSYMUTIL=$lt_DSYMUTIL
27605
27606 # Tool to change global to local symbols on Mac OS X.
27607 NMEDIT=$lt_NMEDIT
27608
27609 # Tool to manipulate fat objects and archives on Mac OS X.
27610 LIPO=$lt_LIPO
27611
27612 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27613 OTOOL=$lt_OTOOL
27614
27615 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27616 OTOOL64=$lt_OTOOL64
27617
27618 # Old archive suffix (normally "a").
27619 libext=$libext
27620
27621 # Shared library suffix (normally ".so").
27622 shrext_cmds=$lt_shrext_cmds
27623
27624 # The commands to extract the exported symbol list from a shared archive.
27625 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27626
27627 # Variables whose values should be saved in libtool wrapper scripts and
27628 # restored at link time.
27629 variables_saved_for_relink=$lt_variables_saved_for_relink
27630
27631 # Do we need the "lib" prefix for modules?
27632 need_lib_prefix=$need_lib_prefix
27633
27634 # Do we need a version for libraries?
27635 need_version=$need_version
27636
27637 # Library versioning type.
27638 version_type=$version_type
27639
27640 # Shared library runtime path variable.
27641 runpath_var=$runpath_var
27642
27643 # Shared library path variable.
27644 shlibpath_var=$shlibpath_var
27645
27646 # Is shlibpath searched before the hard-coded library search path?
27647 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27648
27649 # Format of library name prefix.
27650 libname_spec=$lt_libname_spec
27651
27652 # List of archive names.  First name is the real one, the rest are links.
27653 # The last name is the one that the linker finds with -lNAME
27654 library_names_spec=$lt_library_names_spec
27655
27656 # The coded name of the library, if different from the real name.
27657 soname_spec=$lt_soname_spec
27658
27659 # Command to use after installation of a shared archive.
27660 postinstall_cmds=$lt_postinstall_cmds
27661
27662 # Command to use after uninstallation of a shared archive.
27663 postuninstall_cmds=$lt_postuninstall_cmds
27664
27665 # Commands used to finish a libtool library installation in a directory.
27666 finish_cmds=$lt_finish_cmds
27667
27668 # As "finish_cmds", except a single script fragment to be evaled but
27669 # not shown.
27670 finish_eval=$lt_finish_eval
27671
27672 # Whether we should hardcode library paths into libraries.
27673 hardcode_into_libs=$hardcode_into_libs
27674
27675 # Compile-time system search path for libraries.
27676 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27677
27678 # Run-time system search path for libraries.
27679 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27680
27681 # Whether dlopen is supported.
27682 dlopen_support=$enable_dlopen
27683
27684 # Whether dlopen of programs is supported.
27685 dlopen_self=$enable_dlopen_self
27686
27687 # Whether dlopen of statically linked programs is supported.
27688 dlopen_self_static=$enable_dlopen_self_static
27689
27690 # Commands to strip libraries.
27691 old_striplib=$lt_old_striplib
27692 striplib=$lt_striplib
27693
27694
27695 # The linker used to build libraries.
27696 LD=$lt_LD
27697
27698 # Commands used to build an old-style archive.
27699 old_archive_cmds=$lt_old_archive_cmds
27700
27701 # A language specific compiler.
27702 CC=$lt_compiler
27703
27704 # Is the compiler the GNU compiler?
27705 with_gcc=$GCC
27706
27707 # Compiler flag to turn off builtin functions.
27708 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27709
27710 # How to pass a linker flag through the compiler.
27711 wl=$lt_lt_prog_compiler_wl
27712
27713 # Additional compiler flags for building library objects.
27714 pic_flag=$lt_lt_prog_compiler_pic
27715
27716 # Compiler flag to prevent dynamic linking.
27717 link_static_flag=$lt_lt_prog_compiler_static
27718
27719 # Does compiler simultaneously support -c and -o options?
27720 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27721
27722 # Whether or not to add -lc for building shared libraries.
27723 build_libtool_need_lc=$archive_cmds_need_lc
27724
27725 # Whether or not to disallow shared libs when runtime libs are static.
27726 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27727
27728 # Compiler flag to allow reflexive dlopens.
27729 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27730
27731 # Compiler flag to generate shared objects directly from archives.
27732 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27733
27734 # Whether the compiler copes with passing no objects directly.
27735 compiler_needs_object=$lt_compiler_needs_object
27736
27737 # Create an old-style archive from a shared archive.
27738 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27739
27740 # Create a temporary old-style archive to link instead of a shared archive.
27741 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27742
27743 # Commands used to build a shared archive.
27744 archive_cmds=$lt_archive_cmds
27745 archive_expsym_cmds=$lt_archive_expsym_cmds
27746
27747 # Commands used to build a loadable module if different from building
27748 # a shared archive.
27749 module_cmds=$lt_module_cmds
27750 module_expsym_cmds=$lt_module_expsym_cmds
27751
27752 # Whether we are building with GNU ld or not.
27753 with_gnu_ld=$lt_with_gnu_ld
27754
27755 # Flag that allows shared libraries with undefined symbols to be built.
27756 allow_undefined_flag=$lt_allow_undefined_flag
27757
27758 # Flag that enforces no undefined symbols.
27759 no_undefined_flag=$lt_no_undefined_flag
27760
27761 # Flag to hardcode \$libdir into a binary during linking.
27762 # This must work even if \$libdir does not exist
27763 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27764
27765 # If ld is used when linking, flag to hardcode \$libdir into a binary
27766 # during linking.  This must work even if \$libdir does not exist.
27767 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
27768
27769 # Whether we need a single "-rpath" flag with a separated argument.
27770 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27771
27772 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27773 # DIR into the resulting binary.
27774 hardcode_direct=$hardcode_direct
27775
27776 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27777 # DIR into the resulting binary and the resulting library dependency is
27778 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27779 # library is relocated.
27780 hardcode_direct_absolute=$hardcode_direct_absolute
27781
27782 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27783 # into the resulting binary.
27784 hardcode_minus_L=$hardcode_minus_L
27785
27786 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27787 # into the resulting binary.
27788 hardcode_shlibpath_var=$hardcode_shlibpath_var
27789
27790 # Set to "yes" if building a shared library automatically hardcodes DIR
27791 # into the library and all subsequent libraries and executables linked
27792 # against it.
27793 hardcode_automatic=$hardcode_automatic
27794
27795 # Set to yes if linker adds runtime paths of dependent libraries
27796 # to runtime path list.
27797 inherit_rpath=$inherit_rpath
27798
27799 # Whether libtool must link a program against all its dependency libraries.
27800 link_all_deplibs=$link_all_deplibs
27801
27802 # Fix the shell variable \$srcfile for the compiler.
27803 fix_srcfile_path=$lt_fix_srcfile_path
27804
27805 # Set to "yes" if exported symbols are required.
27806 always_export_symbols=$always_export_symbols
27807
27808 # The commands to list exported symbols.
27809 export_symbols_cmds=$lt_export_symbols_cmds
27810
27811 # Symbols that should not be listed in the preloaded symbols.
27812 exclude_expsyms=$lt_exclude_expsyms
27813
27814 # Symbols that must always be exported.
27815 include_expsyms=$lt_include_expsyms
27816
27817 # Commands necessary for linking programs (against libraries) with templates.
27818 prelink_cmds=$lt_prelink_cmds
27819
27820 # Specify filename containing input files.
27821 file_list_spec=$lt_file_list_spec
27822
27823 # How to hardcode a shared library path into an executable.
27824 hardcode_action=$hardcode_action
27825
27826 # The directories searched by this compiler when creating a shared library.
27827 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27828
27829 # Dependencies to place before and after the objects being linked to
27830 # create a shared library.
27831 predep_objects=$lt_predep_objects
27832 postdep_objects=$lt_postdep_objects
27833 predeps=$lt_predeps
27834 postdeps=$lt_postdeps
27835
27836 # The library search path used internally by the compiler when linking
27837 # a shared library.
27838 compiler_lib_search_path=$lt_compiler_lib_search_path
27839
27840 # ### END LIBTOOL CONFIG
27841
27842 _LT_EOF
27843
27844   case $host_os in
27845   aix3*)
27846     cat <<\_LT_EOF >> "$cfgfile"
27847 # AIX sometimes has problems with the GCC collect2 program.  For some
27848 # reason, if we set the COLLECT_NAMES environment variable, the problems
27849 # vanish in a puff of smoke.
27850 if test "X${COLLECT_NAMES+set}" != Xset; then
27851   COLLECT_NAMES=
27852   export COLLECT_NAMES
27853 fi
27854 _LT_EOF
27855     ;;
27856   esac
27857
27858
27859 ltmain="$ac_aux_dir/ltmain.sh"
27860
27861
27862   # We use sed instead of cat because bash on DJGPP gets confused if
27863   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
27864   # text mode, it properly converts lines to CR/LF.  This bash problem
27865   # is reportedly fixed, but why not run on old versions too?
27866   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27867     || (rm -f "$cfgfile"; exit 1)
27868
27869   case $xsi_shell in
27870   yes)
27871     cat << \_LT_EOF >> "$cfgfile"
27872
27873 # func_dirname file append nondir_replacement
27874 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
27875 # otherwise set result to NONDIR_REPLACEMENT.
27876 func_dirname ()
27877 {
27878   case ${1} in
27879     */*) func_dirname_result="${1%/*}${2}" ;;
27880     *  ) func_dirname_result="${3}" ;;
27881   esac
27882 }
27883
27884 # func_basename file
27885 func_basename ()
27886 {
27887   func_basename_result="${1##*/}"
27888 }
27889
27890 # func_dirname_and_basename file append nondir_replacement
27891 # perform func_basename and func_dirname in a single function
27892 # call:
27893 #   dirname:  Compute the dirname of FILE.  If nonempty,
27894 #             add APPEND to the result, otherwise set result
27895 #             to NONDIR_REPLACEMENT.
27896 #             value returned in "$func_dirname_result"
27897 #   basename: Compute filename of FILE.
27898 #             value retuned in "$func_basename_result"
27899 # Implementation must be kept synchronized with func_dirname
27900 # and func_basename. For efficiency, we do not delegate to
27901 # those functions but instead duplicate the functionality here.
27902 func_dirname_and_basename ()
27903 {
27904   case ${1} in
27905     */*) func_dirname_result="${1%/*}${2}" ;;
27906     *  ) func_dirname_result="${3}" ;;
27907   esac
27908   func_basename_result="${1##*/}"
27909 }
27910
27911 # func_stripname prefix suffix name
27912 # strip PREFIX and SUFFIX off of NAME.
27913 # PREFIX and SUFFIX must not contain globbing or regex special
27914 # characters, hashes, percent signs, but SUFFIX may contain a leading
27915 # dot (in which case that matches only a dot).
27916 func_stripname ()
27917 {
27918   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27919   # positional parameters, so assign one to ordinary parameter first.
27920   func_stripname_result=${3}
27921   func_stripname_result=${func_stripname_result#"${1}"}
27922   func_stripname_result=${func_stripname_result%"${2}"}
27923 }
27924
27925 # func_opt_split
27926 func_opt_split ()
27927 {
27928   func_opt_split_opt=${1%%=*}
27929   func_opt_split_arg=${1#*=}
27930 }
27931
27932 # func_lo2o object
27933 func_lo2o ()
27934 {
27935   case ${1} in
27936     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27937     *)    func_lo2o_result=${1} ;;
27938   esac
27939 }
27940
27941 # func_xform libobj-or-source
27942 func_xform ()
27943 {
27944   func_xform_result=${1%.*}.lo
27945 }
27946
27947 # func_arith arithmetic-term...
27948 func_arith ()
27949 {
27950   func_arith_result=$(( $* ))
27951 }
27952
27953 # func_len string
27954 # STRING may not start with a hyphen.
27955 func_len ()
27956 {
27957   func_len_result=${#1}
27958 }
27959
27960 _LT_EOF
27961     ;;
27962   *) # Bourne compatible functions.
27963     cat << \_LT_EOF >> "$cfgfile"
27964
27965 # func_dirname file append nondir_replacement
27966 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
27967 # otherwise set result to NONDIR_REPLACEMENT.
27968 func_dirname ()
27969 {
27970   # Extract subdirectory from the argument.
27971   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
27972   if test "X$func_dirname_result" = "X${1}"; then
27973     func_dirname_result="${3}"
27974   else
27975     func_dirname_result="$func_dirname_result${2}"
27976   fi
27977 }
27978
27979 # func_basename file
27980 func_basename ()
27981 {
27982   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
27983 }
27984
27985
27986 # func_stripname prefix suffix name
27987 # strip PREFIX and SUFFIX off of NAME.
27988 # PREFIX and SUFFIX must not contain globbing or regex special
27989 # characters, hashes, percent signs, but SUFFIX may contain a leading
27990 # dot (in which case that matches only a dot).
27991 # func_strip_suffix prefix name
27992 func_stripname ()
27993 {
27994   case ${2} in
27995     .*) func_stripname_result=`$ECHO "X${3}" \
27996            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
27997     *)  func_stripname_result=`$ECHO "X${3}" \
27998            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
27999   esac
28000 }
28001
28002 # sed scripts:
28003 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
28004 my_sed_long_arg='1s/^-[^=]*=//'
28005
28006 # func_opt_split
28007 func_opt_split ()
28008 {
28009   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
28010   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
28011 }
28012
28013 # func_lo2o object
28014 func_lo2o ()
28015 {
28016   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
28017 }
28018
28019 # func_xform libobj-or-source
28020 func_xform ()
28021 {
28022   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
28023 }
28024
28025 # func_arith arithmetic-term...
28026 func_arith ()
28027 {
28028   func_arith_result=`expr "$@"`
28029 }
28030
28031 # func_len string
28032 # STRING may not start with a hyphen.
28033 func_len ()
28034 {
28035   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
28036 }
28037
28038 _LT_EOF
28039 esac
28040
28041 case $lt_shell_append in
28042   yes)
28043     cat << \_LT_EOF >> "$cfgfile"
28044
28045 # func_append var value
28046 # Append VALUE to the end of shell variable VAR.
28047 func_append ()
28048 {
28049   eval "$1+=\$2"
28050 }
28051 _LT_EOF
28052     ;;
28053   *)
28054     cat << \_LT_EOF >> "$cfgfile"
28055
28056 # func_append var value
28057 # Append VALUE to the end of shell variable VAR.
28058 func_append ()
28059 {
28060   eval "$1=\$$1\$2"
28061 }
28062
28063 _LT_EOF
28064     ;;
28065   esac
28066
28067
28068   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
28069     || (rm -f "$cfgfile"; exit 1)
28070
28071   mv -f "$cfgfile" "$ofile" ||
28072     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28073   chmod +x "$ofile"
28074
28075
28076     cat <<_LT_EOF >> "$ofile"
28077
28078 # ### BEGIN LIBTOOL TAG CONFIG: CXX
28079
28080 # The linker used to build libraries.
28081 LD=$lt_LD_CXX
28082
28083 # Commands used to build an old-style archive.
28084 old_archive_cmds=$lt_old_archive_cmds_CXX
28085
28086 # A language specific compiler.
28087 CC=$lt_compiler_CXX
28088
28089 # Is the compiler the GNU compiler?
28090 with_gcc=$GCC_CXX
28091
28092 # Compiler flag to turn off builtin functions.
28093 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
28094
28095 # How to pass a linker flag through the compiler.
28096 wl=$lt_lt_prog_compiler_wl_CXX
28097
28098 # Additional compiler flags for building library objects.
28099 pic_flag=$lt_lt_prog_compiler_pic_CXX
28100
28101 # Compiler flag to prevent dynamic linking.
28102 link_static_flag=$lt_lt_prog_compiler_static_CXX
28103
28104 # Does compiler simultaneously support -c and -o options?
28105 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
28106
28107 # Whether or not to add -lc for building shared libraries.
28108 build_libtool_need_lc=$archive_cmds_need_lc_CXX
28109
28110 # Whether or not to disallow shared libs when runtime libs are static.
28111 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
28112
28113 # Compiler flag to allow reflexive dlopens.
28114 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
28115
28116 # Compiler flag to generate shared objects directly from archives.
28117 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
28118
28119 # Whether the compiler copes with passing no objects directly.
28120 compiler_needs_object=$lt_compiler_needs_object_CXX
28121
28122 # Create an old-style archive from a shared archive.
28123 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
28124
28125 # Create a temporary old-style archive to link instead of a shared archive.
28126 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
28127
28128 # Commands used to build a shared archive.
28129 archive_cmds=$lt_archive_cmds_CXX
28130 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
28131
28132 # Commands used to build a loadable module if different from building
28133 # a shared archive.
28134 module_cmds=$lt_module_cmds_CXX
28135 module_expsym_cmds=$lt_module_expsym_cmds_CXX
28136
28137 # Whether we are building with GNU ld or not.
28138 with_gnu_ld=$lt_with_gnu_ld_CXX
28139
28140 # Flag that allows shared libraries with undefined symbols to be built.
28141 allow_undefined_flag=$lt_allow_undefined_flag_CXX
28142
28143 # Flag that enforces no undefined symbols.
28144 no_undefined_flag=$lt_no_undefined_flag_CXX
28145
28146 # Flag to hardcode \$libdir into a binary during linking.
28147 # This must work even if \$libdir does not exist
28148 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
28149
28150 # If ld is used when linking, flag to hardcode \$libdir into a binary
28151 # during linking.  This must work even if \$libdir does not exist.
28152 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
28153
28154 # Whether we need a single "-rpath" flag with a separated argument.
28155 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
28156
28157 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28158 # DIR into the resulting binary.
28159 hardcode_direct=$hardcode_direct_CXX
28160
28161 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28162 # DIR into the resulting binary and the resulting library dependency is
28163 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28164 # library is relocated.
28165 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
28166
28167 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28168 # into the resulting binary.
28169 hardcode_minus_L=$hardcode_minus_L_CXX
28170
28171 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28172 # into the resulting binary.
28173 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
28174
28175 # Set to "yes" if building a shared library automatically hardcodes DIR
28176 # into the library and all subsequent libraries and executables linked
28177 # against it.
28178 hardcode_automatic=$hardcode_automatic_CXX
28179
28180 # Set to yes if linker adds runtime paths of dependent libraries
28181 # to runtime path list.
28182 inherit_rpath=$inherit_rpath_CXX
28183
28184 # Whether libtool must link a program against all its dependency libraries.
28185 link_all_deplibs=$link_all_deplibs_CXX
28186
28187 # Fix the shell variable \$srcfile for the compiler.
28188 fix_srcfile_path=$lt_fix_srcfile_path_CXX
28189
28190 # Set to "yes" if exported symbols are required.
28191 always_export_symbols=$always_export_symbols_CXX
28192
28193 # The commands to list exported symbols.
28194 export_symbols_cmds=$lt_export_symbols_cmds_CXX
28195
28196 # Symbols that should not be listed in the preloaded symbols.
28197 exclude_expsyms=$lt_exclude_expsyms_CXX
28198
28199 # Symbols that must always be exported.
28200 include_expsyms=$lt_include_expsyms_CXX
28201
28202 # Commands necessary for linking programs (against libraries) with templates.
28203 prelink_cmds=$lt_prelink_cmds_CXX
28204
28205 # Specify filename containing input files.
28206 file_list_spec=$lt_file_list_spec_CXX
28207
28208 # How to hardcode a shared library path into an executable.
28209 hardcode_action=$hardcode_action_CXX
28210
28211 # The directories searched by this compiler when creating a shared library.
28212 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
28213
28214 # Dependencies to place before and after the objects being linked to
28215 # create a shared library.
28216 predep_objects=$lt_predep_objects_CXX
28217 postdep_objects=$lt_postdep_objects_CXX
28218 predeps=$lt_predeps_CXX
28219 postdeps=$lt_postdeps_CXX
28220
28221 # The library search path used internally by the compiler when linking
28222 # a shared library.
28223 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
28224
28225 # ### END LIBTOOL TAG CONFIG: CXX
28226 _LT_EOF
28227
28228  ;;
28229     "default-1":C)
28230     for ac_file in $CONFIG_FILES; do
28231       # Support "outfile[:infile[:infile...]]"
28232       case "$ac_file" in
28233         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
28234       esac
28235       # PO directories have a Makefile.in generated from Makefile.in.in.
28236       case "$ac_file" in */Makefile.in)
28237         # Adjust a relative srcdir.
28238         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
28239         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
28240         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
28241         # In autoconf-2.13 it is called $ac_given_srcdir.
28242         # In autoconf-2.50 it is called $srcdir.
28243         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
28244         case "$ac_given_srcdir" in
28245           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
28246           /*) top_srcdir="$ac_given_srcdir" ;;
28247           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
28248         esac
28249         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
28250           rm -f "$ac_dir/POTFILES"
28251           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
28252           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
28253           POMAKEFILEDEPS="POTFILES.in"
28254           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
28255           # on $ac_dir but don't depend on user-specified configuration
28256           # parameters.
28257           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
28258             # The LINGUAS file contains the set of available languages.
28259             if test -n "$OBSOLETE_ALL_LINGUAS"; then
28260               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
28261             fi
28262             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
28263             # Hide the ALL_LINGUAS assigment from automake.
28264             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
28265             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
28266           else
28267             # The set of available languages was given in configure.in.
28268             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
28269           fi
28270           # Compute POFILES
28271           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
28272           # Compute UPDATEPOFILES
28273           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
28274           # Compute DUMMYPOFILES
28275           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
28276           # Compute GMOFILES
28277           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
28278           case "$ac_given_srcdir" in
28279             .) srcdirpre= ;;
28280             *) srcdirpre='$(srcdir)/' ;;
28281           esac
28282           POFILES=
28283           UPDATEPOFILES=
28284           DUMMYPOFILES=
28285           GMOFILES=
28286           for lang in $ALL_LINGUAS; do
28287             POFILES="$POFILES $srcdirpre$lang.po"
28288             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
28289             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
28290             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
28291           done
28292           # CATALOGS depends on both $ac_dir and the user's LINGUAS
28293           # environment variable.
28294           INST_LINGUAS=
28295           if test -n "$ALL_LINGUAS"; then
28296             for presentlang in $ALL_LINGUAS; do
28297               useit=no
28298               if test "%UNSET%" != "$LINGUAS"; then
28299                 desiredlanguages="$LINGUAS"
28300               else
28301                 desiredlanguages="$ALL_LINGUAS"
28302               fi
28303               for desiredlang in $desiredlanguages; do
28304                 # Use the presentlang catalog if desiredlang is
28305                 #   a. equal to presentlang, or
28306                 #   b. a variant of presentlang (because in this case,
28307                 #      presentlang can be used as a fallback for messages
28308                 #      which are not translated in the desiredlang catalog).
28309                 case "$desiredlang" in
28310                   "$presentlang"*) useit=yes;;
28311                 esac
28312               done
28313               if test $useit = yes; then
28314                 INST_LINGUAS="$INST_LINGUAS $presentlang"
28315               fi
28316             done
28317           fi
28318           CATALOGS=
28319           if test -n "$INST_LINGUAS"; then
28320             for lang in $INST_LINGUAS; do
28321               CATALOGS="$CATALOGS $lang.gmo"
28322             done
28323           fi
28324           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
28325           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
28326           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
28327             if test -f "$f"; then
28328               case "$f" in
28329                 *.orig | *.bak | *~) ;;
28330                 *) cat "$f" >> "$ac_dir/Makefile" ;;
28331               esac
28332             fi
28333           done
28334         fi
28335         ;;
28336       esac
28337     done ;;
28338
28339   esac
28340 done # for ac_tag
28341
28342
28343 as_fn_exit 0
28344 _ACEOF
28345 ac_clean_files=$ac_clean_files_save
28346
28347 test $ac_write_fail = 0 ||
28348   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
28349
28350
28351 # configure is writing to config.log, and then calls config.status.
28352 # config.status does its own redirection, appending to config.log.
28353 # Unfortunately, on DOS this fails, as config.log is still kept open
28354 # by configure, so config.status won't be able to write to it; its
28355 # output is simply discarded.  So we exec the FD to /dev/null,
28356 # effectively closing config.log, so it can be properly (re)opened and
28357 # appended to by config.status.  When coming back to configure, we
28358 # need to make the FD available again.
28359 if test "$no_create" != yes; then
28360   ac_cs_success=:
28361   ac_config_status_args=
28362   test "$silent" = yes &&
28363     ac_config_status_args="$ac_config_status_args --quiet"
28364   exec 5>/dev/null
28365   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28366   exec 5>>config.log
28367   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28368   # would make configure fail if this is the last instruction.
28369   $ac_cs_success || as_fn_exit 1
28370 fi
28371 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28372   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28373 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28374 fi
28375
28376
28377
28378 echo ""
28379 echo ""
28380 echo "Summary of your installation :"
28381 # FIXME : maybe elaborate missing dependencies
28382 if test x"$graphics_sdl" != xyes
28383         then
28384         sdl_failures="(libsdl maybe?) "
28385 fi
28386 if test x"$glut" != xyes
28387        then
28388         sdl_failures=$sdl_failures"glut "
28389 fi
28390 if test x"$glc" != xyes
28391         then
28392         sdl_failures=$sdl_failures"quesoglc "
28393 fi
28394 if test -z "$sdl_failures"
28395         then
28396         echo "OpenGL gui  : ENABLED, with $CEGUI_LIBS"
28397         else
28398                  echo "OpenGL gui  : DISABLED : you are missing $sdl_failures"
28399 fi
28400 if test x"$enable_hildon" = xyes
28401         then
28402         echo "Maemo/Hildon: ENABLED"
28403         else
28404         echo "Maemo/Hildon: DISABLED"
28405 fi
28406 if test x"$enable_osso" = xyes
28407         then
28408         echo "Maemo/OSSO: ENABLED"
28409         else
28410         echo "Maemo/OSSO: DISABLED"
28411 fi
28412 if test x"${USE_GARMIN}" = xyes
28413         then
28414         if test "x$use_libgarmin" = "xyes"
28415                 then
28416                 echo "Garmin IMG  : ENABLED"
28417                 else
28418                 echo "Garmin IMG  : DISABLED (you don't have libgarmin)"
28419         fi
28420         else
28421                 echo "Garmin IMG  : DISABLED (you requested it)"
28422 fi
28423
28424 if test x"$LIBINTL" = "x" ;then
28425         nls_libs="system gettext support"
28426 else
28427         nls_libs="$LIBINTL"
28428 fi
28429 echo "Plugins:             $plugins ($plugins_reason)"
28430 echo "Postgresql:          $postgresql ($postgresql_reason)"
28431 echo "Samplemap:           $samplemap ($samplemap_reason)"
28432 echo "NLS Support:         $enable_nls ($nls_libs)"
28433 echo "Routing:             $routing ($routing_reason)"
28434 echo "Font renderers:"
28435 echo "  freetype:          $font_freetype ($font_freetype_reason)"
28436 echo "  FriBidi enabled:   $fribidi ($fribidi_reason)"
28437
28438 echo "Graphics types: $graphics ($graphics_reason)"
28439 echo "  android:  $graphics_android ($graphics_android_reason)"
28440 echo "  gtk_drawing_area:  $graphics_gtk_drawing_area ($graphics_gtk_drawing_area_reason)"
28441 echo "  null:              $graphics_null ($graphics_null_reason)"
28442 echo "  qt_qpainter:       $graphics_qt_qpainter ($graphics_qt_qpainter_reason)"
28443 echo "  win32:             $graphics_win32 ($graphics_win32_reason)"
28444 echo "  OpenGL:            $graphics_opengl ($graphics_opengl_reason)"
28445 echo "  gd:                $graphics_gd ($graphics_gd_reason)"
28446 echo "  sdl:               $graphics_sdl ($graphics_sdl_reason)"
28447
28448 echo "GUI types:"
28449 echo "  gtk:               $gui_gtk ($gui_gtk_reason)"
28450 echo "  internal:          $gui_internal ($gui_internal_reason)"
28451 echo "  win32:             $gui_win32 ($gui_win32_reason)"
28452 echo "  qml:               $gui_qml ($gui_qml_reason)"
28453
28454 echo "Map types:"
28455 echo "  binfile:           $map_binfile ($map_binfile_reason)"
28456 echo "  filter:            $map_filter ($map_filter_reason)"
28457 echo "  mg:                $map_mg ($map_mg_reason)"
28458 echo "  shapefile:         $map_shapefile ($map_shapefile_reason)"
28459 echo "  textfile:          $map_textfile ($map_textfile_reason)"
28460 echo "  csv:          $map_csv ($map_csv_reason)"
28461
28462
28463 echo "Bindings:"
28464 echo "  dbus:              $binding_dbus ($binding_dbus_reason)"
28465 echo "  python:            $binding_python ($binding_python_reason)"
28466
28467 echo "OSD types:"
28468 echo "  core:              $osd_core ($osd_core_reason)"
28469
28470 echo "Plugins:"
28471 echo "  pedestrian:        $plugin_pedestrian ($plugin_pedestrian_reason)"
28472
28473 echo "Speech types:"
28474 echo "  android:           $speech_android ($speech_android_reason)"
28475 echo "  cmdline:           $speech_cmdline ($speech_cmdline_reason)"
28476 echo "  dbus:              $speech_dbus ($speech_dbus_reason)"
28477 echo "  espeak:            $speech_espeak ($speech_espeak_reason)"
28478 echo "  speech_dispatcher: $speech_speech_dispatcher ($speech_speech_dispatcher_reason)"
28479
28480 echo "Vehicle types:"
28481 echo "  android:           $vehicle_android ($vehicle_android_reason)"
28482 echo "  demo:              $vehicle_demo ($vehicle_demo_reason)"
28483 echo "  file:              $vehicle_file ($vehicle_file_reason)"
28484 echo "  gpsd:              $vehicle_gpsd ($vehicle_gpsd_reason)"
28485 echo "  gpsd_dbus:         $vehicle_gpsd_dbus ($vehicle_gpsd_dbus_reason)"
28486 echo "  gypsy:             $vehicle_gypsy ($vehicle_gypsy_reason)"
28487 echo "  maemo:             $vehicle_maemo ($vehicle_maemo_reason)"
28488 echo "  null:              $vehicle_null ($vehicle_null_reason)"
28489 echo "  wince:             $vehicle_wince ($vehicle_wince_reason)"
28490 echo "  iphone:            $vehicle_iphone ($vehicle_iphone_reason)"
28491 echo "  webos:             $vehicle_webos ($vehicle_webos_reason)"
28492
28493 if  test "x${gtk2_pkgconfig}" != "xyes" -a "x${gui_win32}" != "xyes" -a "x${gui_internal}" != "xyes" -a "x${gui_qml}" != "xyes"
28494 then
28495         echo ""
28496         echo ""
28497         echo "*** WARNING! you have no gui that can be built! ***"
28498         echo "Please install the dependency for at least gtk or sdl gui"
28499         echo "For more details, see the wiki at http://wiki.navit-project.org/"
28500         echo ""
28501 fi
28502