/[zanavi_public1]/navit/autom4te.cache/output.2
ZANavi

Contents of /navit/autom4te.cache/output.2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 40 - (show annotations) (download)
Wed Mar 4 14:00:54 2015 UTC (9 years, 1 month ago) by zoff99
File size: 1075875 byte(s)
new market version, lots of fixes
1 @%:@! /bin/sh
2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.62 for zanavi 1.0.0.
4 @%:@
5 @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 @%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 @%:@ This configure script is free software; the Free Software Foundation
8 @%:@ gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
95
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108 ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_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 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
179
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
183 }
184 as_func_success () {
185 as_func_return 0
186 }
187 as_func_failure () {
188 as_func_return 1
189 }
190 as_func_ret_success () {
191 return 0
192 }
193 as_func_ret_failure () {
194 return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199 :
200 else
201 exitcode=1
202 echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211 :
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224 else
225 exitcode=1
226 echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237 :
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297 (exit $1)
298 }
299 as_func_success () {
300 as_func_return 0
301 }
302 as_func_failure () {
303 as_func_return 1
304 }
305 as_func_ret_success () {
306 return 0
307 }
308 as_func_ret_failure () {
309 return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314 :
315 else
316 exitcode=1
317 echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326 :
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339 else
340 exitcode=1
341 echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354 break
355 fi
356
357 fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386 (exit \$1)
387 }
388 as_func_success () {
389 as_func_return 0
390 }
391 as_func_failure () {
392 as_func_return 1
393 }
394 as_func_ret_success () {
395 return 0
396 }
397 as_func_ret_failure () {
398 return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403 :
404 else
405 exitcode=1
406 echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415 :
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428 else
429 exitcode=1
430 echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439 }
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
467 N
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499 *)
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
529 fi
530 else
531 as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
577
578 case X$lt_ECHO in
579 X*--fallback-echo)
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582 ;;
583 esac
584
585 ECHO=${lt_ECHO-echo}
586 if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
588 shift
589 elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
591 :
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
594 :
595 else
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
598 fi
599
600 if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
602 shift
603 cat <<_LT_EOF
604 $*
605 _LT_EOF
606 exit 0
607 fi
608
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
610 # if CDPATH is set.
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613 if test -z "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620 then
621 break
622 fi
623 done
624 fi
625
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 :
630 else
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
634 #
635 # So, first we look for a working echo in the user's PATH.
636
637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638 for dir in $PATH /usr/ucb; do
639 IFS="$lt_save_ifs"
640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$dir/echo"
645 break
646 fi
647 done
648 IFS="$lt_save_ifs"
649
650 if test "X$ECHO" = Xecho; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
656 ECHO='print -r'
657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X/bin/ksh; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL=/bin/ksh
663 export CONFIG_SHELL
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665 else
666 # Try using printf.
667 ECHO='printf %s\n'
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
671 # Cool, printf works
672 :
673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678 export CONFIG_SHELL
679 SHELL="$CONFIG_SHELL"
680 export SHELL
681 ECHO="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO="$CONFIG_SHELL $0 --fallback-echo"
687 else
688 # maybe with a smaller string...
689 prev=:
690
691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693 then
694 break
695 fi
696 prev="$cmd"
697 done
698
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703 else
704 # Oops. We lost completely, so just stick with echo.
705 ECHO=echo
706 fi
707 fi
708 fi
709 fi
710 fi
711 fi
712
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
715 lt_ECHO=$ECHO
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718 fi
719
720
721
722
723 exec 7<&0 </dev/null 6>&1
724
725 # Name of the host.
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730 #
731 # Initializations.
732 #
733 ac_default_prefix=/usr/local
734 ac_clean_files=
735 ac_config_libobj_dir=.
736 LIB@&t@OBJS=
737 cross_compiling=no
738 subdirs=
739 MFLAGS=
740 MAKEFLAGS=
741 SHELL=${CONFIG_SHELL-/bin/sh}
742
743 # Identity of this package.
744 PACKAGE_NAME='zanavi'
745 PACKAGE_TARNAME='zanavi'
746 PACKAGE_VERSION='1.0.0'
747 PACKAGE_STRING='zanavi 1.0.0'
748 PACKAGE_BUGREPORT=''
749
750 # Factoring default headers for most tests.
751 ac_includes_default="\
752 #include <stdio.h>
753 #ifdef HAVE_SYS_TYPES_H
754 # include <sys/types.h>
755 #endif
756 #ifdef HAVE_SYS_STAT_H
757 # include <sys/stat.h>
758 #endif
759 #ifdef STDC_HEADERS
760 # include <stdlib.h>
761 # include <stddef.h>
762 #else
763 # ifdef HAVE_STDLIB_H
764 # include <stdlib.h>
765 # endif
766 #endif
767 #ifdef HAVE_STRING_H
768 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
769 # include <memory.h>
770 # endif
771 # include <string.h>
772 #endif
773 #ifdef HAVE_STRINGS_H
774 # include <strings.h>
775 #endif
776 #ifdef HAVE_INTTYPES_H
777 # include <inttypes.h>
778 #endif
779 #ifdef HAVE_STDINT_H
780 # include <stdint.h>
781 #endif
782 #ifdef HAVE_UNISTD_H
783 # include <unistd.h>
784 #endif"
785
786 ac_subst_vars='SHELL
787 PATH_SEPARATOR
788 PACKAGE_NAME
789 PACKAGE_TARNAME
790 PACKAGE_VERSION
791 PACKAGE_STRING
792 PACKAGE_BUGREPORT
793 exec_prefix
794 prefix
795 program_transform_name
796 bindir
797 sbindir
798 libexecdir
799 datarootdir
800 datadir
801 sysconfdir
802 sharedstatedir
803 localstatedir
804 includedir
805 oldincludedir
806 docdir
807 infodir
808 htmldir
809 dvidir
810 pdfdir
811 psdir
812 libdir
813 localedir
814 mandir
815 DEFS
816 ECHO_C
817 ECHO_N
818 ECHO_T
819 LIBS
820 build_alias
821 host_alias
822 target_alias
823 INSTALL_PROGRAM
824 INSTALL_SCRIPT
825 INSTALL_DATA
826 am__isrc
827 CYGPATH_W
828 PACKAGE
829 VERSION
830 ACLOCAL
831 AUTOCONF
832 AUTOMAKE
833 AUTOHEADER
834 MAKEINFO
835 install_sh
836 STRIP
837 INSTALL_STRIP_PROGRAM
838 MKDIR_P
839 mkdir_p
840 AWK
841 SET_MAKE
842 am__leading_dot
843 AMTAR
844 am__tar
845 am__untar
846 SOURCE_MODE
847 SOURCE_MODE_SVN_TRUE
848 SOURCE_MODE_SVN_FALSE
849 MAINTAINER_MODE_TRUE
850 MAINTAINER_MODE_FALSE
851 MAINT
852 build
853 build_cpu
854 build_vendor
855 build_os
856 host
857 host_cpu
858 host_vendor
859 host_os
860 SUPPORT_WIN32_TRUE
861 SUPPORT_WIN32_FALSE
862 SUPPORT_WIN32CE_TRUE
863 SUPPORT_WIN32CE_FALSE
864 SUPPORT_ANDROID_TRUE
865 SUPPORT_ANDROID_FALSE
866 SUPPORT_LIBPNG_TRUE
867 SUPPORT_LIBPNG_FALSE
868 MODULE_LDFLAGS
869 MODULE_LIBADD
870 NAVIT_MODULE_LDFLAGS
871 NAVIT_SOCKET_LDFLAGS
872 CC
873 CFLAGS
874 LDFLAGS
875 CPPFLAGS
876 ac_ct_CC
877 EXEEXT
878 OBJEXT
879 DEPDIR
880 am__include
881 am__quote
882 AMDEP_TRUE
883 AMDEP_FALSE
884 AMDEPBACKSLASH
885 CCDEPMODE
886 am__fastdepCC_TRUE
887 am__fastdepCC_FALSE
888 CPP
889 GREP
890 EGREP
891 OBJC
892 OBJCFLAGS
893 ac_ct_OBJC
894 OBJCDEPMODE
895 am__fastdepOBJC_TRUE
896 am__fastdepOBJC_FALSE
897 CXX
898 CXXFLAGS
899 ac_ct_CXX
900 CXXDEPMODE
901 am__fastdepCXX_TRUE
902 am__fastdepCXX_FALSE
903 PKG_CONFIG
904 CC_FOR_BUILD
905 cross_compiling
906 CROSS_COMPILING_TRUE
907 CROSS_COMPILING_FALSE
908 CCLD_FOR_BUILD
909 NAVIT_VARIANT
910 HILDON_CFLAGS
911 HILDON_LIBS
912 GPSBT_CFLAGS
913 GPSBT_LIBS
914 USE_HILDON_TRUE
915 USE_HILDON_FALSE
916 LIBOSSO_CFLAGS
917 LIBOSSO_LIBS
918 USE_OSSO_TRUE
919 USE_OSSO_FALSE
920 _PATH_BZCAT
921 MAPTOOL_TRUE
922 MAPTOOL_FALSE
923 BUILD_SAMPLEMAP_TRUE
924 BUILD_SAMPLEMAP_FALSE
925 FASTMATH_TRUE
926 FASTMATH_FALSE
927 GLIB_CFLAGS
928 GLIB_LIBS
929 GMODULE_CFLAGS
930 GMODULE_LIBS
931 CRYPTO_LIBS
932 PLUGINS_TRUE
933 PLUGINS_FALSE
934 SHARED_LIBNAVIT_TRUE
935 SHARED_LIBNAVIT_FALSE
936 BIN_NAVIT_TRUE
937 BIN_NAVIT_FALSE
938 LIBTOOL
939 SED
940 FGREP
941 LD
942 DUMPBIN
943 ac_ct_DUMPBIN
944 NM
945 LN_S
946 OBJDUMP
947 AR
948 RANLIB
949 lt_ECHO
950 DSYMUTIL
951 NMEDIT
952 LIPO
953 OTOOL
954 OTOOL64
955 CXXCPP
956 LIBNAVIT
957 EVENT_GLIB_TRUE
958 EVENT_GLIB_FALSE
959 SUPPORT_GLIB_TRUE
960 SUPPORT_GLIB_FALSE
961 SUPPORT_EZXML_TRUE
962 SUPPORT_EZXML_FALSE
963 SUPPORT_ZLIB_TRUE
964 SUPPORT_ZLIB_FALSE
965 ZLIB_CFLAGS
966 ZLIB_LIBS
967 GTK2_CFLAGS
968 GTK2_LIBS
969 SDL_CFLAGS
970 SDL_LIBS
971 SDL_IMAGE_LIBS
972 GRAPHICS_SDL_TRUE
973 GRAPHICS_SDL_FALSE
974 PG_CONFIG
975 POSTGRESQL_CFLAGS
976 POSTGRESQL_LIBS
977 HAVE_POSTGRESQL_TRUE
978 HAVE_POSTGRESQL_FALSE
979 FREETYPE2_CFLAGS
980 FREETYPE2_LIBS
981 FONT_FREETYPE_TRUE
982 FONT_FREETYPE_FALSE
983 FONTCONFIG_CFLAGS
984 FONTCONFIG_LIBS
985 FONTS_TRUE
986 FONTS_FALSE
987 FRIBIDI2_CFLAGS
988 FRIBIDI2_LIBS
989 FRIBIDI_CFLAGS
990 FRIBIDI_LIBS
991 IMLIB2_CFLAGS
992 IMLIB2_LIBS
993 OPENGL_CFLAGS
994 OPENGL_LIBS
995 FREEIMAGE_LIBS
996 GLC_CFLAGS
997 GLC_LIBS
998 GRAPHICS_OPENGL_TRUE
999 GRAPHICS_OPENGL_FALSE
1000 SHAPEFILE_CFLAGS
1001 SHAPEFILE_LIBS
1002 HAVE_SYSTEM_SHAPEFILELIB_TRUE
1003 HAVE_SYSTEM_SHAPEFILELIB_FALSE
1004 LIBGARMIN_CFLAGS
1005 LIBGARMIN_LIBS
1006 HAVELIBGARMIN_TRUE
1007 HAVELIBGARMIN_FALSE
1008 _PATH_PYTHON
1009 PYTHONCONFIG
1010 PYTHON_CFLAGS
1011 PYTHON_LIBS
1012 BINDING_PYTHON_TRUE
1013 BINDING_PYTHON_FALSE
1014 DBUS_CFLAGS
1015 DBUS_LIBS
1016 BINDING_DBUS_TRUE
1017 BINDING_DBUS_FALSE
1018 VEHICLE_GPSD_DBUS_TRUE
1019 VEHICLE_GPSD_DBUS_FALSE
1020 SPEECH_DBUS_TRUE
1021 SPEECH_DBUS_FALSE
1022 DBUS_SERVICE_DIR
1023 SVG2PNG
1024 SVG2PNG_SCALES
1025 SVG2PNG_SCALES_FLAG
1026 SVG2PNG_SCALES_NAV
1027 USE_SVG2PNG_SCALES_TRUE
1028 USE_SVG2PNG_SCALES_FALSE
1029 USE_SVG2PNG_SCALES_FLAG_TRUE
1030 USE_SVG2PNG_SCALES_FLAG_FALSE
1031 USE_SVG2PNG_SCALES_NAV_TRUE
1032 USE_SVG2PNG_SCALES_NAV_FALSE
1033 USE_SVG2PNG_TRUE
1034 USE_SVG2PNG_FALSE
1035 USE_SVG_TRUE
1036 USE_SVG_FALSE
1037 XSLTS
1038 SAXON
1039 ANDROID_PERMISSIONS
1040 ANDROID_PROJECT
1041 XGETTEXT
1042 MSGMERGE
1043 MSGFMT
1044 INTLIBS
1045 MOFILES
1046 POFILES
1047 POIFILES
1048 MKINSTALLDIRS
1049 USE_NLS
1050 GMSGFMT
1051 ALLOCA
1052 GLIBC21
1053 HAVE_POSIX_PRINTF
1054 HAVE_ASPRINTF
1055 HAVE_SNPRINTF
1056 HAVE_WPRINTF
1057 LIBICONV
1058 LTLIBICONV
1059 INTLBISON
1060 BUILD_INCLUDED_LIBINTL
1061 USE_INCLUDED_LIBINTL
1062 CATOBJEXT
1063 DATADIRNAME
1064 INSTOBJEXT
1065 GENCAT
1066 INTLOBJS
1067 INTL_LIBTOOL_SUFFIX_PREFIX
1068 INTLLIBS
1069 LIBINTL
1070 LTLIBINTL
1071 POSUB
1072 ENABLE_NLS_TRUE
1073 ENABLE_NLS_FALSE
1074 XGETTEXT_GLADE_TRUE
1075 XGETTEXT_GLADE_FALSE
1076 SUPPORT_WORDEXP_TRUE
1077 SUPPORT_WORDEXP_FALSE
1078 SUPPORT_LIBC_TRUE
1079 SUPPORT_LIBC_FALSE
1080 GRAPHICS_TRUE
1081 GRAPHICS_FALSE
1082 GRAPHICS_ANDROID_TRUE
1083 GRAPHICS_ANDROID_FALSE
1084 GDLIB_CONFIG
1085 GD_CFLAGS
1086 GD_LIBS
1087 GRAPHICS_GD_TRUE
1088 GRAPHICS_GD_FALSE
1089 GRAPHICS_GTK_DRAWING_AREA_TRUE
1090 GRAPHICS_GTK_DRAWING_AREA_FALSE
1091 GRAPHICS_NULL_TRUE
1092 GRAPHICS_NULL_FALSE
1093 GRAPHICS_WIN32_TRUE
1094 GRAPHICS_WIN32_FALSE
1095 QT_GUI_CFLAGS
1096 QT_GUI_LIBS
1097 QT_SVG_CFLAGS
1098 QT_SVG_LIBS
1099 GRAPHICS_QT_QPAINTER_TRUE
1100 GRAPHICS_QT_QPAINTER_FALSE
1101 MOC
1102 MAP_BINFILE_TRUE
1103 MAP_BINFILE_FALSE
1104 MAP_FILTER_TRUE
1105 MAP_FILTER_FALSE
1106 MAP_MG_TRUE
1107 MAP_MG_FALSE
1108 MAP_SHAPEFILE_TRUE
1109 MAP_SHAPEFILE_FALSE
1110 MAP_TEXTFILE_TRUE
1111 MAP_TEXTFILE_FALSE
1112 MAP_CSV_TRUE
1113 MAP_CSV_FALSE
1114 OSD_CORE_TRUE
1115 OSD_CORE_FALSE
1116 GUI_GTK_TRUE
1117 GUI_GTK_FALSE
1118 GUI_INTERNAL_TRUE
1119 GUI_INTERNAL_FALSE
1120 GUI_WIN32_TRUE
1121 GUI_WIN32_FALSE
1122 QT_XML_CFLAGS
1123 QT_XML_LIBS
1124 QT_DECLARATIVE_CFLAGS
1125 QT_DECLARATIVE_LIBS
1126 GUI_QML_TRUE
1127 GUI_QML_FALSE
1128 PLUGIN_PEDESTRIAN_TRUE
1129 PLUGIN_PEDESTRIAN_FALSE
1130 ROUTING_TRUE
1131 ROUTING_FALSE
1132 SPEECH_ANDROID_TRUE
1133 SPEECH_ANDROID_FALSE
1134 SPEECH_CMDLINE_TRUE
1135 SPEECH_CMDLINE_FALSE
1136 SPEECH_ESPEAK_TRUE
1137 SPEECH_ESPEAK_FALSE
1138 SPEECHD_CFLAGS
1139 SPEECHD_LIBS
1140 SPEECH_SPEECH_DISPATCHER_TRUE
1141 SPEECH_SPEECH_DISPATCHER_FALSE
1142 SUPPORT_ESPEAK_TRUE
1143 SUPPORT_ESPEAK_FALSE
1144 VEHICLE_ANDROID_TRUE
1145 VEHICLE_ANDROID_FALSE
1146 VEHICLE_DEMO_TRUE
1147 VEHICLE_DEMO_FALSE
1148 VEHICLE_FILE_TRUE
1149 VEHICLE_FILE_FALSE
1150 GPSD_CFLAGS
1151 GPSD_LIBS
1152 LIBGPS19_CFLAGS
1153 LIBGPS19_LIBS
1154 VEHICLE_GPSD_TRUE
1155 VEHICLE_GPSD_FALSE
1156 GYPSY_CFLAGS
1157 GYPSY_LIBS
1158 VEHICLE_GYPSY_TRUE
1159 VEHICLE_GYPSY_FALSE
1160 LIBLOCATION_CFLAGS
1161 LIBLOCATION_LIBS
1162 VEHICLE_MAEMO_TRUE
1163 VEHICLE_MAEMO_FALSE
1164 VEHICLE_NULL_TRUE
1165 VEHICLE_NULL_FALSE
1166 VEHICLE_WINCE_TRUE
1167 VEHICLE_WINCE_FALSE
1168 VEHICLE_IPHONE_TRUE
1169 VEHICLE_IPHONE_FALSE
1170 IPHONE_CFLAGS
1171 IPHONE_LIBS
1172 VEHICLE_WEBOS_TRUE
1173 VEHICLE_WEBOS_FALSE
1174 LIBPDL_CFLAGS
1175 LIBPDL_LIBS
1176 NAVIT_CFLAGS
1177 NAVIT_LIBS
1178 WORDEXP_LIBS
1179 LIBC_LIBS
1180 WINDRES
1181 LIB@&t@OBJS
1182 LTLIBOBJS
1183 am__EXEEXT_TRUE
1184 am__EXEEXT_FALSE'
1185 ac_subst_files=''
1186 ac_user_opts='
1187 enable_option_checking
1188 enable_maintainer_mode
1189 enable_dependency_tracking
1190 enable_variant
1191 enable_cache_size
1192 enable_avoid_unaligned
1193 enable_avoid_float
1194 enable_transformation_roll
1195 enable_hildon
1196 enable_osso
1197 enable_garmin
1198 enable_maptool
1199 enable_samplemap
1200 enable_fastmath
1201 enable_glib
1202 enable_gmodule
1203 enable_plugins
1204 enable_shared_libnavit
1205 enable_shared
1206 enable_static
1207 with_pic
1208 enable_fast_install
1209 with_gnu_ld
1210 enable_libtool_lock
1211 enable_graphics_sdl
1212 enable_postgresql
1213 enable_font_freetype
1214 with_freetype_fonts
1215 enable_fontconfig
1216 enable_fribidi
1217 enable_graphics_opengl
1218 enable_binding_python
1219 enable_binding_dbus
1220 enable_binding_dbus_use_system_bus
1221 with_dbus_service_dir
1222 enable_svg
1223 enable_svg2png
1224 enable_svg2png_scaling
1225 enable_svg2png_scaling_flag
1226 enable_svg2png_scaling_nav
1227 with_svg2png_use_convert
1228 with_svg2png_use_rsvg_convert
1229 with_svg2png_use_inkscape
1230 with_svg2png_use_ksvgtopng4
1231 with_svg2png_use_ksvgtopng
1232 with_xslts
1233 with_saxon
1234 with_android_permissions
1235 with_android_project
1236 enable_nls
1237 enable_rpath
1238 with_libiconv_prefix
1239 with_included_gettext
1240 with_libintl_prefix
1241 enable_support_libc
1242 enable_graphics
1243 enable_graphics_android
1244 enable_graphics_gd
1245 enable_graphics_gtk_drawing_area
1246 enable_graphics_null
1247 enable_graphics_win32
1248 enable_graphics_qt_qpainter
1249 enable_map_binfile
1250 enable_map_filter
1251 enable_map_mg
1252 enable_map_shapefile
1253 enable_map_textfile
1254 enable_map_csv
1255 enable_osd_core
1256 enable_gui_gtk
1257 enable_gui_internal
1258 enable_gui_win32
1259 enable_gui_qml
1260 enable_plugin_pedestrian
1261 enable_routing
1262 enable_speech_android
1263 enable_speech_cmdline
1264 enable_speech_espeak
1265 enable_speech_speech_dispatcher
1266 enable_vehicle_android
1267 enable_vehicle_demo
1268 enable_vehicle_file
1269 enable_vehicle_gpsd
1270 enable_vehicle_gypsy
1271 enable_vehicle_maemo
1272 enable_vehicle_null
1273 enable_vehicle_wince
1274 enable_vehicle_iphone
1275 enable_vehicle_webos
1276 '
1277 ac_precious_vars='build_alias
1278 host_alias
1279 target_alias
1280 CC
1281 CFLAGS
1282 LDFLAGS
1283 LIBS
1284 CPPFLAGS
1285 CPP
1286 OBJC
1287 OBJCFLAGS
1288 CXX
1289 CXXFLAGS
1290 CCC
1291 PKG_CONFIG
1292 HILDON_CFLAGS
1293 HILDON_LIBS
1294 GPSBT_CFLAGS
1295 GPSBT_LIBS
1296 LIBOSSO_CFLAGS
1297 LIBOSSO_LIBS
1298 GLIB_CFLAGS
1299 GLIB_LIBS
1300 GMODULE_CFLAGS
1301 GMODULE_LIBS
1302 CXXCPP
1303 GTK2_CFLAGS
1304 GTK2_LIBS
1305 SDL_CFLAGS
1306 SDL_LIBS
1307 FREETYPE2_CFLAGS
1308 FREETYPE2_LIBS
1309 FONTCONFIG_CFLAGS
1310 FONTCONFIG_LIBS
1311 FRIBIDI2_CFLAGS
1312 FRIBIDI2_LIBS
1313 FRIBIDI_CFLAGS
1314 FRIBIDI_LIBS
1315 IMLIB2_CFLAGS
1316 IMLIB2_LIBS
1317 LIBGARMIN_CFLAGS
1318 LIBGARMIN_LIBS
1319 DBUS_CFLAGS
1320 DBUS_LIBS
1321 QT_GUI_CFLAGS
1322 QT_GUI_LIBS
1323 QT_SVG_CFLAGS
1324 QT_SVG_LIBS
1325 QT_XML_CFLAGS
1326 QT_XML_LIBS
1327 QT_DECLARATIVE_CFLAGS
1328 QT_DECLARATIVE_LIBS
1329 GPSD_CFLAGS
1330 GPSD_LIBS
1331 LIBGPS19_CFLAGS
1332 LIBGPS19_LIBS
1333 GYPSY_CFLAGS
1334 GYPSY_LIBS
1335 LIBLOCATION_CFLAGS
1336 LIBLOCATION_LIBS'
1337
1338
1339 # Initialize some variables set by options.
1340 ac_init_help=
1341 ac_init_version=false
1342 ac_unrecognized_opts=
1343 ac_unrecognized_sep=
1344 # The variables have the same names as the options, with
1345 # dashes changed to underlines.
1346 cache_file=/dev/null
1347 exec_prefix=NONE
1348 no_create=
1349 no_recursion=
1350 prefix=NONE
1351 program_prefix=NONE
1352 program_suffix=NONE
1353 program_transform_name=s,x,x,
1354 silent=
1355 site=
1356 srcdir=
1357 verbose=
1358 x_includes=NONE
1359 x_libraries=NONE
1360
1361 # Installation directory options.
1362 # These are left unexpanded so users can "make install exec_prefix=/foo"
1363 # and all the variables that are supposed to be based on exec_prefix
1364 # by default will actually change.
1365 # Use braces instead of parens because sh, perl, etc. also accept them.
1366 # (The list follows the same order as the GNU Coding Standards.)
1367 bindir='${exec_prefix}/bin'
1368 sbindir='${exec_prefix}/sbin'
1369 libexecdir='${exec_prefix}/libexec'
1370 datarootdir='${prefix}/share'
1371 datadir='${datarootdir}'
1372 sysconfdir='${prefix}/etc'
1373 sharedstatedir='${prefix}/com'
1374 localstatedir='${prefix}/var'
1375 includedir='${prefix}/include'
1376 oldincludedir='/usr/include'
1377 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1378 infodir='${datarootdir}/info'
1379 htmldir='${docdir}'
1380 dvidir='${docdir}'
1381 pdfdir='${docdir}'
1382 psdir='${docdir}'
1383 libdir='${exec_prefix}/lib'
1384 localedir='${datarootdir}/locale'
1385 mandir='${datarootdir}/man'
1386
1387 ac_prev=
1388 ac_dashdash=
1389 for ac_option
1390 do
1391 # If the previous option needs an argument, assign it.
1392 if test -n "$ac_prev"; then
1393 eval $ac_prev=\$ac_option
1394 ac_prev=
1395 continue
1396 fi
1397
1398 case $ac_option in
1399 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1400 *) ac_optarg=yes ;;
1401 esac
1402
1403 # Accept the important Cygnus configure options, so we can diagnose typos.
1404
1405 case $ac_dashdash$ac_option in
1406 --)
1407 ac_dashdash=yes ;;
1408
1409 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1410 ac_prev=bindir ;;
1411 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1412 bindir=$ac_optarg ;;
1413
1414 -build | --build | --buil | --bui | --bu)
1415 ac_prev=build_alias ;;
1416 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1417 build_alias=$ac_optarg ;;
1418
1419 -cache-file | --cache-file | --cache-fil | --cache-fi \
1420 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1421 ac_prev=cache_file ;;
1422 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1423 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1424 cache_file=$ac_optarg ;;
1425
1426 --config-cache | -C)
1427 cache_file=config.cache ;;
1428
1429 -datadir | --datadir | --datadi | --datad)
1430 ac_prev=datadir ;;
1431 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1432 datadir=$ac_optarg ;;
1433
1434 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1435 | --dataroo | --dataro | --datar)
1436 ac_prev=datarootdir ;;
1437 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1438 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1439 datarootdir=$ac_optarg ;;
1440
1441 -disable-* | --disable-*)
1442 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1443 # Reject names that are not valid shell variable names.
1444 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1445 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1446 { (exit 1); exit 1; }; }
1447 ac_useropt_orig=$ac_useropt
1448 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1449 case $ac_user_opts in
1450 *"
1451 "enable_$ac_useropt"
1452 "*) ;;
1453 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1454 ac_unrecognized_sep=', ';;
1455 esac
1456 eval enable_$ac_useropt=no ;;
1457
1458 -docdir | --docdir | --docdi | --doc | --do)
1459 ac_prev=docdir ;;
1460 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1461 docdir=$ac_optarg ;;
1462
1463 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1464 ac_prev=dvidir ;;
1465 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1466 dvidir=$ac_optarg ;;
1467
1468 -enable-* | --enable-*)
1469 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1470 # Reject names that are not valid shell variable names.
1471 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1472 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1473 { (exit 1); exit 1; }; }
1474 ac_useropt_orig=$ac_useropt
1475 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1476 case $ac_user_opts in
1477 *"
1478 "enable_$ac_useropt"
1479 "*) ;;
1480 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1481 ac_unrecognized_sep=', ';;
1482 esac
1483 eval enable_$ac_useropt=\$ac_optarg ;;
1484
1485 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1486 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1487 | --exec | --exe | --ex)
1488 ac_prev=exec_prefix ;;
1489 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1490 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1491 | --exec=* | --exe=* | --ex=*)
1492 exec_prefix=$ac_optarg ;;
1493
1494 -gas | --gas | --ga | --g)
1495 # Obsolete; use --with-gas.
1496 with_gas=yes ;;
1497
1498 -help | --help | --hel | --he | -h)
1499 ac_init_help=long ;;
1500 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1501 ac_init_help=recursive ;;
1502 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1503 ac_init_help=short ;;
1504
1505 -host | --host | --hos | --ho)
1506 ac_prev=host_alias ;;
1507 -host=* | --host=* | --hos=* | --ho=*)
1508 host_alias=$ac_optarg ;;
1509
1510 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1511 ac_prev=htmldir ;;
1512 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1513 | --ht=*)
1514 htmldir=$ac_optarg ;;
1515
1516 -includedir | --includedir | --includedi | --included | --include \
1517 | --includ | --inclu | --incl | --inc)
1518 ac_prev=includedir ;;
1519 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1520 | --includ=* | --inclu=* | --incl=* | --inc=*)
1521 includedir=$ac_optarg ;;
1522
1523 -infodir | --infodir | --infodi | --infod | --info | --inf)
1524 ac_prev=infodir ;;
1525 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1526 infodir=$ac_optarg ;;
1527
1528 -libdir | --libdir | --libdi | --libd)
1529 ac_prev=libdir ;;
1530 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1531 libdir=$ac_optarg ;;
1532
1533 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1534 | --libexe | --libex | --libe)
1535 ac_prev=libexecdir ;;
1536 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1537 | --libexe=* | --libex=* | --libe=*)
1538 libexecdir=$ac_optarg ;;
1539
1540 -localedir | --localedir | --localedi | --localed | --locale)
1541 ac_prev=localedir ;;
1542 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1543 localedir=$ac_optarg ;;
1544
1545 -localstatedir | --localstatedir | --localstatedi | --localstated \
1546 | --localstate | --localstat | --localsta | --localst | --locals)
1547 ac_prev=localstatedir ;;
1548 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1549 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1550 localstatedir=$ac_optarg ;;
1551
1552 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1553 ac_prev=mandir ;;
1554 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1555 mandir=$ac_optarg ;;
1556
1557 -nfp | --nfp | --nf)
1558 # Obsolete; use --without-fp.
1559 with_fp=no ;;
1560
1561 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1562 | --no-cr | --no-c | -n)
1563 no_create=yes ;;
1564
1565 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1566 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1567 no_recursion=yes ;;
1568
1569 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1570 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1571 | --oldin | --oldi | --old | --ol | --o)
1572 ac_prev=oldincludedir ;;
1573 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1574 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1575 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1576 oldincludedir=$ac_optarg ;;
1577
1578 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1579 ac_prev=prefix ;;
1580 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1581 prefix=$ac_optarg ;;
1582
1583 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1584 | --program-pre | --program-pr | --program-p)
1585 ac_prev=program_prefix ;;
1586 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1587 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1588 program_prefix=$ac_optarg ;;
1589
1590 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1591 | --program-suf | --program-su | --program-s)
1592 ac_prev=program_suffix ;;
1593 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1594 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1595 program_suffix=$ac_optarg ;;
1596
1597 -program-transform-name | --program-transform-name \
1598 | --program-transform-nam | --program-transform-na \
1599 | --program-transform-n | --program-transform- \
1600 | --program-transform | --program-transfor \
1601 | --program-transfo | --program-transf \
1602 | --program-trans | --program-tran \
1603 | --progr-tra | --program-tr | --program-t)
1604 ac_prev=program_transform_name ;;
1605 -program-transform-name=* | --program-transform-name=* \
1606 | --program-transform-nam=* | --program-transform-na=* \
1607 | --program-transform-n=* | --program-transform-=* \
1608 | --program-transform=* | --program-transfor=* \
1609 | --program-transfo=* | --program-transf=* \
1610 | --program-trans=* | --program-tran=* \
1611 | --progr-tra=* | --program-tr=* | --program-t=*)
1612 program_transform_name=$ac_optarg ;;
1613
1614 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1615 ac_prev=pdfdir ;;
1616 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1617 pdfdir=$ac_optarg ;;
1618
1619 -psdir | --psdir | --psdi | --psd | --ps)
1620 ac_prev=psdir ;;
1621 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1622 psdir=$ac_optarg ;;
1623
1624 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1625 | -silent | --silent | --silen | --sile | --sil)
1626 silent=yes ;;
1627
1628 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1629 ac_prev=sbindir ;;
1630 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1631 | --sbi=* | --sb=*)
1632 sbindir=$ac_optarg ;;
1633
1634 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1635 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1636 | --sharedst | --shareds | --shared | --share | --shar \
1637 | --sha | --sh)
1638 ac_prev=sharedstatedir ;;
1639 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1640 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1641 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1642 | --sha=* | --sh=*)
1643 sharedstatedir=$ac_optarg ;;
1644
1645 -site | --site | --sit)
1646 ac_prev=site ;;
1647 -site=* | --site=* | --sit=*)
1648 site=$ac_optarg ;;
1649
1650 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1651 ac_prev=srcdir ;;
1652 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1653 srcdir=$ac_optarg ;;
1654
1655 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1656 | --syscon | --sysco | --sysc | --sys | --sy)
1657 ac_prev=sysconfdir ;;
1658 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1659 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1660 sysconfdir=$ac_optarg ;;
1661
1662 -target | --target | --targe | --targ | --tar | --ta | --t)
1663 ac_prev=target_alias ;;
1664 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1665 target_alias=$ac_optarg ;;
1666
1667 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1668 verbose=yes ;;
1669
1670 -version | --version | --versio | --versi | --vers | -V)
1671 ac_init_version=: ;;
1672
1673 -with-* | --with-*)
1674 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1675 # Reject names that are not valid shell variable names.
1676 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1677 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1678 { (exit 1); exit 1; }; }
1679 ac_useropt_orig=$ac_useropt
1680 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1681 case $ac_user_opts in
1682 *"
1683 "with_$ac_useropt"
1684 "*) ;;
1685 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1686 ac_unrecognized_sep=', ';;
1687 esac
1688 eval with_$ac_useropt=\$ac_optarg ;;
1689
1690 -without-* | --without-*)
1691 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1692 # Reject names that are not valid shell variable names.
1693 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1694 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1695 { (exit 1); exit 1; }; }
1696 ac_useropt_orig=$ac_useropt
1697 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1698 case $ac_user_opts in
1699 *"
1700 "with_$ac_useropt"
1701 "*) ;;
1702 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1703 ac_unrecognized_sep=', ';;
1704 esac
1705 eval with_$ac_useropt=no ;;
1706
1707 --x)
1708 # Obsolete; use --with-x.
1709 with_x=yes ;;
1710
1711 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1712 | --x-incl | --x-inc | --x-in | --x-i)
1713 ac_prev=x_includes ;;
1714 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1715 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1716 x_includes=$ac_optarg ;;
1717
1718 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1719 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1720 ac_prev=x_libraries ;;
1721 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1722 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1723 x_libraries=$ac_optarg ;;
1724
1725 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1726 Try \`$0 --help' for more information." >&2
1727 { (exit 1); exit 1; }; }
1728 ;;
1729
1730 *=*)
1731 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1732 # Reject names that are not valid shell variable names.
1733 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1734 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1735 { (exit 1); exit 1; }; }
1736 eval $ac_envvar=\$ac_optarg
1737 export $ac_envvar ;;
1738
1739 *)
1740 # FIXME: should be removed in autoconf 3.0.
1741 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1742 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1743 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1744 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1745 ;;
1746
1747 esac
1748 done
1749
1750 if test -n "$ac_prev"; then
1751 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1752 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1753 { (exit 1); exit 1; }; }
1754 fi
1755
1756 if test -n "$ac_unrecognized_opts"; then
1757 case $enable_option_checking in
1758 no) ;;
1759 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1760 { (exit 1); exit 1; }; } ;;
1761 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1762 esac
1763 fi
1764
1765 # Check all directory arguments for consistency.
1766 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1767 datadir sysconfdir sharedstatedir localstatedir includedir \
1768 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1769 libdir localedir mandir
1770 do
1771 eval ac_val=\$$ac_var
1772 # Remove trailing slashes.
1773 case $ac_val in
1774 */ )
1775 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1776 eval $ac_var=\$ac_val;;
1777 esac
1778 # Be sure to have absolute directory names.
1779 case $ac_val in
1780 [\\/$]* | ?:[\\/]* ) continue;;
1781 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1782 esac
1783 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1784 { (exit 1); exit 1; }; }
1785 done
1786
1787 # There might be people who depend on the old broken behavior: `$host'
1788 # used to hold the argument of --host etc.
1789 # FIXME: To remove some day.
1790 build=$build_alias
1791 host=$host_alias
1792 target=$target_alias
1793
1794 # FIXME: To remove some day.
1795 if test "x$host_alias" != x; then
1796 if test "x$build_alias" = x; then
1797 cross_compiling=maybe
1798 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1799 If a cross compiler is detected then cross compile mode will be used." >&2
1800 elif test "x$build_alias" != "x$host_alias"; then
1801 cross_compiling=yes
1802 fi
1803 fi
1804
1805 ac_tool_prefix=
1806 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1807
1808 test "$silent" = yes && exec 6>/dev/null
1809
1810
1811 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1812 ac_ls_di=`ls -di .` &&
1813 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1814 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1815 { (exit 1); exit 1; }; }
1816 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1817 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1818 { (exit 1); exit 1; }; }
1819
1820
1821 # Find the source files, if location was not specified.
1822 if test -z "$srcdir"; then
1823 ac_srcdir_defaulted=yes
1824 # Try the directory containing this script, then the parent directory.
1825 ac_confdir=`$as_dirname -- "$as_myself" ||
1826 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1827 X"$as_myself" : 'X\(//\)[^/]' \| \
1828 X"$as_myself" : 'X\(//\)$' \| \
1829 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1830 $as_echo X"$as_myself" |
1831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1832 s//\1/
1833 q
1834 }
1835 /^X\(\/\/\)[^/].*/{
1836 s//\1/
1837 q
1838 }
1839 /^X\(\/\/\)$/{
1840 s//\1/
1841 q
1842 }
1843 /^X\(\/\).*/{
1844 s//\1/
1845 q
1846 }
1847 s/.*/./; q'`
1848 srcdir=$ac_confdir
1849 if test ! -r "$srcdir/$ac_unique_file"; then
1850 srcdir=..
1851 fi
1852 else
1853 ac_srcdir_defaulted=no
1854 fi
1855 if test ! -r "$srcdir/$ac_unique_file"; then
1856 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1857 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1858 { (exit 1); exit 1; }; }
1859 fi
1860 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1861 ac_abs_confdir=`(
1862 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1863 { (exit 1); exit 1; }; }
1864 pwd)`
1865 # When building in place, set srcdir=.
1866 if test "$ac_abs_confdir" = "$ac_pwd"; then
1867 srcdir=.
1868 fi
1869 # Remove unnecessary trailing slashes from srcdir.
1870 # Double slashes in file names in object file debugging info
1871 # mess up M-x gdb in Emacs.
1872 case $srcdir in
1873 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1874 esac
1875 for ac_var in $ac_precious_vars; do
1876 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1877 eval ac_env_${ac_var}_value=\$${ac_var}
1878 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1879 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1880 done
1881
1882 #
1883 # Report the --help message.
1884 #
1885 if test "$ac_init_help" = "long"; then
1886 # Omit some internal or obsolete options to make the list less imposing.
1887 # This message is too long to be a string in the A/UX 3.1 sh.
1888 cat <<_ACEOF
1889 \`configure' configures zanavi 1.0.0 to adapt to many kinds of systems.
1890
1891 Usage: $0 [OPTION]... [VAR=VALUE]...
1892
1893 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1894 VAR=VALUE. See below for descriptions of some of the useful variables.
1895
1896 Defaults for the options are specified in brackets.
1897
1898 Configuration:
1899 -h, --help display this help and exit
1900 --help=short display options specific to this package
1901 --help=recursive display the short help of all the included packages
1902 -V, --version display version information and exit
1903 -q, --quiet, --silent do not print \`checking...' messages
1904 --cache-file=FILE cache test results in FILE [disabled]
1905 -C, --config-cache alias for \`--cache-file=config.cache'
1906 -n, --no-create do not create output files
1907 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1908
1909 Installation directories:
1910 --prefix=PREFIX install architecture-independent files in PREFIX
1911 [$ac_default_prefix]
1912 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1913 [PREFIX]
1914
1915 By default, \`make install' will install all the files in
1916 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1917 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1918 for instance \`--prefix=\$HOME'.
1919
1920 For better control, use the options below.
1921
1922 Fine tuning of the installation directories:
1923 --bindir=DIR user executables [EPREFIX/bin]
1924 --sbindir=DIR system admin executables [EPREFIX/sbin]
1925 --libexecdir=DIR program executables [EPREFIX/libexec]
1926 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1927 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1928 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1929 --libdir=DIR object code libraries [EPREFIX/lib]
1930 --includedir=DIR C header files [PREFIX/include]
1931 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1932 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1933 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1934 --infodir=DIR info documentation [DATAROOTDIR/info]
1935 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1936 --mandir=DIR man documentation [DATAROOTDIR/man]
1937 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/zanavi@:>@
1938 --htmldir=DIR html documentation [DOCDIR]
1939 --dvidir=DIR dvi documentation [DOCDIR]
1940 --pdfdir=DIR pdf documentation [DOCDIR]
1941 --psdir=DIR ps documentation [DOCDIR]
1942 _ACEOF
1943
1944 cat <<\_ACEOF
1945
1946 Program names:
1947 --program-prefix=PREFIX prepend PREFIX to installed program names
1948 --program-suffix=SUFFIX append SUFFIX to installed program names
1949 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1950
1951 System types:
1952 --build=BUILD configure for building on BUILD [guessed]
1953 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1954 _ACEOF
1955 fi
1956
1957 if test -n "$ac_init_help"; then
1958 case $ac_init_help in
1959 short | recursive ) echo "Configuration of zanavi 1.0.0:";;
1960 esac
1961 cat <<\_ACEOF
1962
1963 Optional Features:
1964 --disable-option-checking ignore unrecognized --enable/--with options
1965 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1966 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1967 --enable-maintainer-mode enable make rules and dependencies not useful
1968 (and sometimes confusing) to the casual installer
1969 --disable-dependency-tracking speeds up one-time build
1970 --enable-dependency-tracking do not reject slow dependency extractors
1971 --enable-variant=something set variant
1972 --enable-cache-size=size in bytes set cache size
1973 --enable-avoid-unaligned avoid unaligned accesses
1974 --enable-avoid-float avoid floating point calculations
1975 --enable-transformation-roll add support for specifying roll angle in transformation
1976 --disable-hildon build without maemo/hildon support
1977 --disable-osso build without maemo/osso support
1978 --disable-garmin disable garmin support
1979 --disable-maptool don't build maptool
1980 --disable-samplemap don't build the samplemap
1981 --disable-fastmath don't build with fastmath
1982 --disable-glib don't build with external glib
1983 --disable-gmodule don't build with gmodule
1984 --disable-plugins disable plugins
1985 --enable-shared-libnavit
1986 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1987 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=no@:>@
1988 --enable-fast-install@<:@=PKGS@:>@
1989 optimize for fast installation @<:@default=yes@:>@
1990 --disable-libtool-lock avoid locking (might break parallel builds)
1991 --disable-graphics-sdl don't create graphics sdl
1992 --disable-postgresql don't add postgresql support to maptool
1993 --disable-font-freetype don't add freetype support
1994 --disable-fontconfig don't' add fontconfig support
1995 --disable-fribidi dont build with fribidi
1996 --disable-graphics-opengl disable graphics type OpenGL
1997 --disable-binding-python don't create binding python
1998 --disable-binding-dbus don't create binding dbus
1999 --enable-binding-dbus-use-system-bus use system bus for dbus binding
2000 --disable-svg disable Scalable Vector Graphics
2001 --disable-svg2png disable conversion of svgs to pngs
2002 --enable-svg2png-scaling enable conversion of svgs to pngs with specified sizes
2003 --enable-svg2png-scaling-flag enable conversion of flag svgs to pngs with specified sizes
2004 --enable-svg2png-scaling-nav enable conversion of nav svgs to pngs with specified sizes
2005 --disable-nls disable Native Language Support ( gettext/libintl )
2006 --disable-nls do not use Native Language Support
2007 --disable-rpath do not hardcode runtime library paths
2008 --enable-support-libc enable builtin mini libc
2009 --disable-graphics disable graphics
2010 --disable-graphics-android disable graphics type android
2011 --enable-graphics-gd enable graphics type gd
2012 --disable-graphics-gtk-drawing-area disable graphics type gtk_drawing_area
2013 --disable-graphics-null disable graphics type null
2014 --disable-graphics-win32 disable graphics type win32
2015 --disable-graphics-qt-qpainter disable graphics type qt-qpainter
2016 --disable-map-binfile disable map binfile
2017 --disable-map-filter disable map filter
2018 --disable-map-mg disable map mg
2019 --disable-map-shapefile disable map shapefile
2020 --disable-map-textfile disable map textfile
2021 --disable-map-csv disable map csv
2022 --disable-osd-core disable osd core
2023 --disable-gui-gtk disable gui type gtk
2024 --disable-gui-internal disable gui type internal
2025 --disable-gui-win32 disable gui type win32
2026 --disable-gui-qml disable gui type QML
2027 --enable-plugin-pedestrian enable pedestrian plugin
2028 --disable-routing disable routing
2029 --disable-speech-android disable speech type android
2030 --disable-speech-cmdline disable speech type cmdline
2031 --disable-speech-espeak disable speech type espeak
2032 --disable-speech-speech-dispatcher disable speech type speech-dispatcher
2033 --disable-vehicle-android disable vehicle type android
2034 --disable-vehicle-demo disable vehicle type demo
2035 --disable-vehicle-file disable vehicle type file
2036 --disable-vehicle-gpsd disable vehicle type gpsd
2037 --disable-vehicle-gypsy disable vehicle type gypsy
2038 --disable-vehicle-maemo disable vehicle type maemo
2039 --enable-vehicle-null enable vehicle type null
2040 --disable-vehicle-wince disable vehicle type wince
2041 --disable-vehicle-iphone disable vehicle type iphone
2042 --enable-vehicle-webos enable vehicle type webos
2043
2044 Optional Packages:
2045 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2046 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2047 --with-pic try to use only PIC/non-PIC objects @<:@default=use
2048 both@:>@
2049 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
2050 --with-freetype-fonts specify what fonts to use
2051 --with-dbus-service-dir specify where the dbus service dir resides
2052 --with-svg2png-use-convert use imagemagick's convert for png creation
2053 --with-svg2png-use-rsvg-convert use librsvg's rsvg-convert for png creation
2054 --with-svg2png-use-inkscape use inkscapes internal convert routines for png creation
2055 --with-svg2png-use-ksvgtopng4 use kde4's ksvgtopng4 for png creation
2056 --with-svg2png-use-ksvgtopng use kde3's convert for png creation
2057 --with-xslts enable processing of navit.xml with given xslt scripts
2058 --with-saxon specify the saxon xslt processor
2059 --with-android-permissions Set additional android permissions
2060 --with-android-project Set android project
2061 --with-gnu-ld assume the C compiler uses GNU ld default=no
2062 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
2063 --without-libiconv-prefix don't search for libiconv in includedir and libdir
2064 --with-included-gettext use the GNU gettext library included here
2065 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
2066 --without-libintl-prefix don't search for libintl in includedir and libdir
2067
2068 Some influential environment variables:
2069 CC C compiler command
2070 CFLAGS C compiler flags
2071 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2072 nonstandard directory <lib dir>
2073 LIBS libraries to pass to the linker, e.g. -l<library>
2074 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2075 you have headers in a nonstandard directory <include dir>
2076 CPP C preprocessor
2077 OBJC Objective C compiler command
2078 OBJCFLAGS Objective C compiler flags
2079 CXX C++ compiler command
2080 CXXFLAGS C++ compiler flags
2081 PKG_CONFIG path to pkg-config utility
2082 HILDON_CFLAGS
2083 C compiler flags for HILDON, overriding pkg-config
2084 HILDON_LIBS linker flags for HILDON, overriding pkg-config
2085 GPSBT_CFLAGS
2086 C compiler flags for GPSBT, overriding pkg-config
2087 GPSBT_LIBS linker flags for GPSBT, overriding pkg-config
2088 LIBOSSO_CFLAGS
2089 C compiler flags for LIBOSSO, overriding pkg-config
2090 LIBOSSO_LIBS
2091 linker flags for LIBOSSO, overriding pkg-config
2092 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
2093 GLIB_LIBS linker flags for GLIB, overriding pkg-config
2094 GMODULE_CFLAGS
2095 C compiler flags for GMODULE, overriding pkg-config
2096 GMODULE_LIBS
2097 linker flags for GMODULE, overriding pkg-config
2098 CXXCPP C++ preprocessor
2099 GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config
2100 GTK2_LIBS linker flags for GTK2, overriding pkg-config
2101 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
2102 SDL_LIBS linker flags for SDL, overriding pkg-config
2103 FREETYPE2_CFLAGS
2104 C compiler flags for FREETYPE2, overriding pkg-config
2105 FREETYPE2_LIBS
2106 linker flags for FREETYPE2, overriding pkg-config
2107 FONTCONFIG_CFLAGS
2108 C compiler flags for FONTCONFIG, overriding pkg-config
2109 FONTCONFIG_LIBS
2110 linker flags for FONTCONFIG, overriding pkg-config
2111 FRIBIDI2_CFLAGS
2112 C compiler flags for FRIBIDI2, overriding pkg-config
2113 FRIBIDI2_LIBS
2114 linker flags for FRIBIDI2, overriding pkg-config
2115 FRIBIDI_CFLAGS
2116 C compiler flags for FRIBIDI, overriding pkg-config
2117 FRIBIDI_LIBS
2118 linker flags for FRIBIDI, overriding pkg-config
2119 IMLIB2_CFLAGS
2120 C compiler flags for IMLIB2, overriding pkg-config
2121 IMLIB2_LIBS linker flags for IMLIB2, overriding pkg-config
2122 LIBGARMIN_CFLAGS
2123 C compiler flags for LIBGARMIN, overriding pkg-config
2124 LIBGARMIN_LIBS
2125 linker flags for LIBGARMIN, overriding pkg-config
2126 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
2127 DBUS_LIBS linker flags for DBUS, overriding pkg-config
2128 QT_GUI_CFLAGS
2129 C compiler flags for QT_GUI, overriding pkg-config
2130 QT_GUI_LIBS linker flags for QT_GUI, overriding pkg-config
2131 QT_SVG_CFLAGS
2132 C compiler flags for QT_SVG, overriding pkg-config
2133 QT_SVG_LIBS linker flags for QT_SVG, overriding pkg-config
2134 QT_XML_CFLAGS
2135 C compiler flags for QT_XML, overriding pkg-config
2136 QT_XML_LIBS linker flags for QT_XML, overriding pkg-config
2137 QT_DECLARATIVE_CFLAGS
2138 C compiler flags for QT_DECLARATIVE, overriding pkg-config
2139 QT_DECLARATIVE_LIBS
2140 linker flags for QT_DECLARATIVE, overriding pkg-config
2141 GPSD_CFLAGS C compiler flags for GPSD, overriding pkg-config
2142 GPSD_LIBS linker flags for GPSD, overriding pkg-config
2143 LIBGPS19_CFLAGS
2144 C compiler flags for LIBGPS19, overriding pkg-config
2145 LIBGPS19_LIBS
2146 linker flags for LIBGPS19, overriding pkg-config
2147 GYPSY_CFLAGS
2148 C compiler flags for GYPSY, overriding pkg-config
2149 GYPSY_LIBS linker flags for GYPSY, overriding pkg-config
2150 LIBLOCATION_CFLAGS
2151 C compiler flags for LIBLOCATION, overriding pkg-config
2152 LIBLOCATION_LIBS
2153 linker flags for LIBLOCATION, overriding pkg-config
2154
2155 Use these variables to override the choices made by `configure' or to help
2156 it to find libraries and programs with nonstandard names/locations.
2157
2158 _ACEOF
2159 ac_status=$?
2160 fi
2161
2162 if test "$ac_init_help" = "recursive"; then
2163 # If there are subdirs, report their specific --help.
2164 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2165 test -d "$ac_dir" ||
2166 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2167 continue
2168 ac_builddir=.
2169
2170 case "$ac_dir" in
2171 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2172 *)
2173 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2174 # A ".." for each directory in $ac_dir_suffix.
2175 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2176 case $ac_top_builddir_sub in
2177 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2178 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2179 esac ;;
2180 esac
2181 ac_abs_top_builddir=$ac_pwd
2182 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2183 # for backward compatibility:
2184 ac_top_builddir=$ac_top_build_prefix
2185
2186 case $srcdir in
2187 .) # We are building in place.
2188 ac_srcdir=.
2189 ac_top_srcdir=$ac_top_builddir_sub
2190 ac_abs_top_srcdir=$ac_pwd ;;
2191 [\\/]* | ?:[\\/]* ) # Absolute name.
2192 ac_srcdir=$srcdir$ac_dir_suffix;
2193 ac_top_srcdir=$srcdir
2194 ac_abs_top_srcdir=$srcdir ;;
2195 *) # Relative name.
2196 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2197 ac_top_srcdir=$ac_top_build_prefix$srcdir
2198 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2199 esac
2200 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2201
2202 cd "$ac_dir" || { ac_status=$?; continue; }
2203 # Check for guested configure.
2204 if test -f "$ac_srcdir/configure.gnu"; then
2205 echo &&
2206 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2207 elif test -f "$ac_srcdir/configure"; then
2208 echo &&
2209 $SHELL "$ac_srcdir/configure" --help=recursive
2210 else
2211 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2212 fi || ac_status=$?
2213 cd "$ac_pwd" || { ac_status=$?; break; }
2214 done
2215 fi
2216
2217 test -n "$ac_init_help" && exit $ac_status
2218 if $ac_init_version; then
2219 cat <<\_ACEOF
2220 zanavi configure 1.0.0
2221 generated by GNU Autoconf 2.62
2222
2223 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2224 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2225 This configure script is free software; the Free Software Foundation
2226 gives unlimited permission to copy, distribute and modify it.
2227 _ACEOF
2228 exit
2229 fi
2230 cat >config.log <<_ACEOF
2231 This file contains any messages produced by compilers while
2232 running configure, to aid debugging if configure makes a mistake.
2233
2234 It was created by zanavi $as_me 1.0.0, which was
2235 generated by GNU Autoconf 2.62. Invocation command line was
2236
2237 $ $0 $@
2238
2239 _ACEOF
2240 exec 5>>config.log
2241 {
2242 cat <<_ASUNAME
2243 @%:@@%:@ --------- @%:@@%:@
2244 @%:@@%:@ Platform. @%:@@%:@
2245 @%:@@%:@ --------- @%:@@%:@
2246
2247 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2248 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2249 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2250 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2251 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2252
2253 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2254 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2255
2256 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2257 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2258 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2259 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2260 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2261 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2262 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2263
2264 _ASUNAME
2265
2266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2267 for as_dir in $PATH
2268 do
2269 IFS=$as_save_IFS
2270 test -z "$as_dir" && as_dir=.
2271 $as_echo "PATH: $as_dir"
2272 done
2273 IFS=$as_save_IFS
2274
2275 } >&5
2276
2277 cat >&5 <<_ACEOF
2278
2279
2280 @%:@@%:@ ----------- @%:@@%:@
2281 @%:@@%:@ Core tests. @%:@@%:@
2282 @%:@@%:@ ----------- @%:@@%:@
2283
2284 _ACEOF
2285
2286
2287 # Keep a trace of the command line.
2288 # Strip out --no-create and --no-recursion so they do not pile up.
2289 # Strip out --silent because we don't want to record it for future runs.
2290 # Also quote any args containing shell meta-characters.
2291 # Make two passes to allow for proper duplicate-argument suppression.
2292 ac_configure_args=
2293 ac_configure_args0=
2294 ac_configure_args1=
2295 ac_must_keep_next=false
2296 for ac_pass in 1 2
2297 do
2298 for ac_arg
2299 do
2300 case $ac_arg in
2301 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2302 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2303 | -silent | --silent | --silen | --sile | --sil)
2304 continue ;;
2305 *\'*)
2306 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2307 esac
2308 case $ac_pass in
2309 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2310 2)
2311 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2312 if test $ac_must_keep_next = true; then
2313 ac_must_keep_next=false # Got value, back to normal.
2314 else
2315 case $ac_arg in
2316 *=* | --config-cache | -C | -disable-* | --disable-* \
2317 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2318 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2319 | -with-* | --with-* | -without-* | --without-* | --x)
2320 case "$ac_configure_args0 " in
2321 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2322 esac
2323 ;;
2324 -* ) ac_must_keep_next=true ;;
2325 esac
2326 fi
2327 ac_configure_args="$ac_configure_args '$ac_arg'"
2328 ;;
2329 esac
2330 done
2331 done
2332 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2333 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2334
2335 # When interrupted or exit'd, cleanup temporary files, and complete
2336 # config.log. We remove comments because anyway the quotes in there
2337 # would cause problems or look ugly.
2338 # WARNING: Use '\'' to represent an apostrophe within the trap.
2339 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2340 trap 'exit_status=$?
2341 # Save into config.log some information that might help in debugging.
2342 {
2343 echo
2344
2345 cat <<\_ASBOX
2346 @%:@@%:@ ---------------- @%:@@%:@
2347 @%:@@%:@ Cache variables. @%:@@%:@
2348 @%:@@%:@ ---------------- @%:@@%:@
2349 _ASBOX
2350 echo
2351 # The following way of writing the cache mishandles newlines in values,
2352 (
2353 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2354 eval ac_val=\$$ac_var
2355 case $ac_val in #(
2356 *${as_nl}*)
2357 case $ac_var in #(
2358 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2359 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2360 esac
2361 case $ac_var in #(
2362 _ | IFS | as_nl) ;; #(
2363 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2364 *) $as_unset $ac_var ;;
2365 esac ;;
2366 esac
2367 done
2368 (set) 2>&1 |
2369 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2370 *${as_nl}ac_space=\ *)
2371 sed -n \
2372 "s/'\''/'\''\\\\'\'''\''/g;
2373 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2374 ;; #(
2375 *)
2376 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2377 ;;
2378 esac |
2379 sort
2380 )
2381 echo
2382
2383 cat <<\_ASBOX
2384 @%:@@%:@ ----------------- @%:@@%:@
2385 @%:@@%:@ Output variables. @%:@@%:@
2386 @%:@@%:@ ----------------- @%:@@%:@
2387 _ASBOX
2388 echo
2389 for ac_var in $ac_subst_vars
2390 do
2391 eval ac_val=\$$ac_var
2392 case $ac_val in
2393 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2394 esac
2395 $as_echo "$ac_var='\''$ac_val'\''"
2396 done | sort
2397 echo
2398
2399 if test -n "$ac_subst_files"; then
2400 cat <<\_ASBOX
2401 @%:@@%:@ ------------------- @%:@@%:@
2402 @%:@@%:@ File substitutions. @%:@@%:@
2403 @%:@@%:@ ------------------- @%:@@%:@
2404 _ASBOX
2405 echo
2406 for ac_var in $ac_subst_files
2407 do
2408 eval ac_val=\$$ac_var
2409 case $ac_val in
2410 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2411 esac
2412 $as_echo "$ac_var='\''$ac_val'\''"
2413 done | sort
2414 echo
2415 fi
2416
2417 if test -s confdefs.h; then
2418 cat <<\_ASBOX
2419 @%:@@%:@ ----------- @%:@@%:@
2420 @%:@@%:@ confdefs.h. @%:@@%:@
2421 @%:@@%:@ ----------- @%:@@%:@
2422 _ASBOX
2423 echo
2424 cat confdefs.h
2425 echo
2426 fi
2427 test "$ac_signal" != 0 &&
2428 $as_echo "$as_me: caught signal $ac_signal"
2429 $as_echo "$as_me: exit $exit_status"
2430 } >&5
2431 rm -f core *.core core.conftest.* &&
2432 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2433 exit $exit_status
2434 ' 0
2435 for ac_signal in 1 2 13 15; do
2436 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2437 done
2438 ac_signal=0
2439
2440 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2441 rm -f -r conftest* confdefs.h
2442
2443 # Predefined preprocessor variables.
2444
2445 cat >>confdefs.h <<_ACEOF
2446 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
2447 _ACEOF
2448
2449
2450 cat >>confdefs.h <<_ACEOF
2451 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2452 _ACEOF
2453
2454
2455 cat >>confdefs.h <<_ACEOF
2456 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2457 _ACEOF
2458
2459
2460 cat >>confdefs.h <<_ACEOF
2461 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
2462 _ACEOF
2463
2464
2465 cat >>confdefs.h <<_ACEOF
2466 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2467 _ACEOF
2468
2469
2470 # Let the site file select an alternate cache file if it wants to.
2471 # Prefer an explicitly selected file to automatically selected ones.
2472 ac_site_file1=NONE
2473 ac_site_file2=NONE
2474 if test -n "$CONFIG_SITE"; then
2475 ac_site_file1=$CONFIG_SITE
2476 elif test "x$prefix" != xNONE; then
2477 ac_site_file1=$prefix/share/config.site
2478 ac_site_file2=$prefix/etc/config.site
2479 else
2480 ac_site_file1=$ac_default_prefix/share/config.site
2481 ac_site_file2=$ac_default_prefix/etc/config.site
2482 fi
2483 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2484 do
2485 test "x$ac_site_file" = xNONE && continue
2486 if test -r "$ac_site_file"; then
2487 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2488 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2489 sed 's/^/| /' "$ac_site_file" >&5
2490 . "$ac_site_file"
2491 fi
2492 done
2493
2494 if test -r "$cache_file"; then
2495 # Some versions of bash will fail to source /dev/null (special
2496 # files actually), so we avoid doing that.
2497 if test -f "$cache_file"; then
2498 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2499 $as_echo "$as_me: loading cache $cache_file" >&6;}
2500 case $cache_file in
2501 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2502 *) . "./$cache_file";;
2503 esac
2504 fi
2505 else
2506 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2507 $as_echo "$as_me: creating cache $cache_file" >&6;}
2508 >$cache_file
2509 fi
2510
2511 # Check that the precious variables saved in the cache have kept the same
2512 # value.
2513 ac_cache_corrupted=false
2514 for ac_var in $ac_precious_vars; do
2515 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2516 eval ac_new_set=\$ac_env_${ac_var}_set
2517 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2518 eval ac_new_val=\$ac_env_${ac_var}_value
2519 case $ac_old_set,$ac_new_set in
2520 set,)
2521 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2522 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2523 ac_cache_corrupted=: ;;
2524 ,set)
2525 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2526 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2527 ac_cache_corrupted=: ;;
2528 ,);;
2529 *)
2530 if test "x$ac_old_val" != "x$ac_new_val"; then
2531 # differences in whitespace do not lead to failure.
2532 ac_old_val_w=`echo x $ac_old_val`
2533 ac_new_val_w=`echo x $ac_new_val`
2534 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2535 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2536 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2537 ac_cache_corrupted=:
2538 else
2539 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2540 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2541 eval $ac_var=\$ac_old_val
2542 fi
2543 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2544 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2545 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2546 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2547 fi;;
2548 esac
2549 # Pass precious variables to config.status.
2550 if test "$ac_new_set" = set; then
2551 case $ac_new_val in
2552 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2553 *) ac_arg=$ac_var=$ac_new_val ;;
2554 esac
2555 case " $ac_configure_args " in
2556 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2557 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2558 esac
2559 fi
2560 done
2561 if $ac_cache_corrupted; then
2562 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2563 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2564 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2565 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2566 { (exit 1); exit 1; }; }
2567 fi
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593 ac_ext=c
2594 ac_cpp='$CPP $CPPFLAGS'
2595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2598
2599
2600
2601 SOURCE_MODE=svn
2602
2603 am__api_version='1.11'
2604
2605 ac_aux_dir=
2606 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2607 if test -f "$ac_dir/install-sh"; then
2608 ac_aux_dir=$ac_dir
2609 ac_install_sh="$ac_aux_dir/install-sh -c"
2610 break
2611 elif test -f "$ac_dir/install.sh"; then
2612 ac_aux_dir=$ac_dir
2613 ac_install_sh="$ac_aux_dir/install.sh -c"
2614 break
2615 elif test -f "$ac_dir/shtool"; then
2616 ac_aux_dir=$ac_dir
2617 ac_install_sh="$ac_aux_dir/shtool install -c"
2618 break
2619 fi
2620 done
2621 if test -z "$ac_aux_dir"; then
2622 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2623 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2624 { (exit 1); exit 1; }; }
2625 fi
2626
2627 # These three variables are undocumented and unsupported,
2628 # and are intended to be withdrawn in a future Autoconf release.
2629 # They can cause serious problems if a builder's source tree is in a directory
2630 # whose full name contains unusual characters.
2631 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2632 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2633 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2634
2635
2636 # Find a good install program. We prefer a C program (faster),
2637 # so one script is as good as another. But avoid the broken or
2638 # incompatible versions:
2639 # SysV /etc/install, /usr/sbin/install
2640 # SunOS /usr/etc/install
2641 # IRIX /sbin/install
2642 # AIX /bin/install
2643 # AmigaOS /C/install, which installs bootblocks on floppy discs
2644 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2645 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2646 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2647 # OS/2's system install, which has a completely different semantic
2648 # ./install, which can be erroneously created by make from ./install.sh.
2649 # Reject install programs that cannot install multiple files.
2650 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2651 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2652 if test -z "$INSTALL"; then
2653 if test "${ac_cv_path_install+set}" = set; then
2654 $as_echo_n "(cached) " >&6
2655 else
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 for as_dir in $PATH
2658 do
2659 IFS=$as_save_IFS
2660 test -z "$as_dir" && as_dir=.
2661 # Account for people who put trailing slashes in PATH elements.
2662 case $as_dir/ in
2663 ./ | .// | /cC/* | \
2664 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2665 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2666 /usr/ucb/* ) ;;
2667 *)
2668 # OSF1 and SCO ODT 3.0 have their own names for install.
2669 # Don't use installbsd from OSF since it installs stuff as root
2670 # by default.
2671 for ac_prog in ginstall scoinst install; do
2672 for ac_exec_ext in '' $ac_executable_extensions; do
2673 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2674 if test $ac_prog = install &&
2675 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2676 # AIX install. It has an incompatible calling convention.
2677 :
2678 elif test $ac_prog = install &&
2679 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2680 # program-specific install script used by HP pwplus--don't use.
2681 :
2682 else
2683 rm -rf conftest.one conftest.two conftest.dir
2684 echo one > conftest.one
2685 echo two > conftest.two
2686 mkdir conftest.dir
2687 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2688 test -s conftest.one && test -s conftest.two &&
2689 test -s conftest.dir/conftest.one &&
2690 test -s conftest.dir/conftest.two
2691 then
2692 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2693 break 3
2694 fi
2695 fi
2696 fi
2697 done
2698 done
2699 ;;
2700 esac
2701
2702 done
2703 IFS=$as_save_IFS
2704
2705 rm -rf conftest.one conftest.two conftest.dir
2706
2707 fi
2708 if test "${ac_cv_path_install+set}" = set; then
2709 INSTALL=$ac_cv_path_install
2710 else
2711 # As a last resort, use the slow shell script. Don't cache a
2712 # value for INSTALL within a source directory, because that will
2713 # break other packages using the cache if that directory is
2714 # removed, or if the value is a relative name.
2715 INSTALL=$ac_install_sh
2716 fi
2717 fi
2718 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2719 $as_echo "$INSTALL" >&6; }
2720
2721 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2722 # It thinks the first close brace ends the variable substitution.
2723 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2724
2725 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2726
2727 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2728
2729 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2730 $as_echo_n "checking whether build environment is sane... " >&6; }
2731 # Just in case
2732 sleep 1
2733 echo timestamp > conftest.file
2734 # Reject unsafe characters in $srcdir or the absolute working directory
2735 # name. Accept space and tab only in the latter.
2736 am_lf='
2737 '
2738 case `pwd` in
2739 *[\\\"\#\$\&\'\`$am_lf]*)
2740 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2741 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2742 { (exit 1); exit 1; }; };;
2743 esac
2744 case $srcdir in
2745 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2746 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2747 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2748 { (exit 1); exit 1; }; };;
2749 esac
2750
2751 # Do `set' in a subshell so we don't clobber the current shell's
2752 # arguments. Must try -L first in case configure is actually a
2753 # symlink; some systems play weird games with the mod time of symlinks
2754 # (eg FreeBSD returns the mod time of the symlink's containing
2755 # directory).
2756 if (
2757 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2758 if test "$*" = "X"; then
2759 # -L didn't work.
2760 set X `ls -t "$srcdir/configure" conftest.file`
2761 fi
2762 rm -f conftest.file
2763 if test "$*" != "X $srcdir/configure conftest.file" \
2764 && test "$*" != "X conftest.file $srcdir/configure"; then
2765
2766 # If neither matched, then we have a broken ls. This can happen
2767 # if, for instance, CONFIG_SHELL is bash and it inherits a
2768 # broken ls alias from the environment. This has actually
2769 # happened. Such a system could not be considered "sane".
2770 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2771 alias in your environment" >&5
2772 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2773 alias in your environment" >&2;}
2774 { (exit 1); exit 1; }; }
2775 fi
2776
2777 test "$2" = conftest.file
2778 )
2779 then
2780 # Ok.
2781 :
2782 else
2783 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2784 Check your system clock" >&5
2785 $as_echo "$as_me: error: newly created file is older than distributed files!
2786 Check your system clock" >&2;}
2787 { (exit 1); exit 1; }; }
2788 fi
2789 { $as_echo "$as_me:$LINENO: result: yes" >&5
2790 $as_echo "yes" >&6; }
2791 test "$program_prefix" != NONE &&
2792 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2793 # Use a double $ so make ignores it.
2794 test "$program_suffix" != NONE &&
2795 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2796 # Double any \ or $.
2797 # By default was `s,x,x', remove it if useless.
2798 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2799 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2800
2801 # expand $ac_aux_dir to an absolute path
2802 am_aux_dir=`cd $ac_aux_dir && pwd`
2803
2804 if test x"${MISSING+set}" != xset; then
2805 case $am_aux_dir in
2806 *\ * | *\ *)
2807 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2808 *)
2809 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2810 esac
2811 fi
2812 # Use eval to expand $SHELL
2813 if eval "$MISSING --run true"; then
2814 am_missing_run="$MISSING --run "
2815 else
2816 am_missing_run=
2817 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2818 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2819 fi
2820
2821 if test x"${install_sh}" != xset; then
2822 case $am_aux_dir in
2823 *\ * | *\ *)
2824 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2825 *)
2826 install_sh="\${SHELL} $am_aux_dir/install-sh"
2827 esac
2828 fi
2829
2830 # Installed binaries are usually stripped using `strip' when the user
2831 # run `make install-strip'. However `strip' might not be the right
2832 # tool to use in cross-compilation environments, therefore Automake
2833 # will honor the `STRIP' environment variable to overrule this program.
2834 if test "$cross_compiling" != no; then
2835 if test -n "$ac_tool_prefix"; then
2836 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2837 set dummy ${ac_tool_prefix}strip; ac_word=$2
2838 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2839 $as_echo_n "checking for $ac_word... " >&6; }
2840 if test "${ac_cv_prog_STRIP+set}" = set; then
2841 $as_echo_n "(cached) " >&6
2842 else
2843 if test -n "$STRIP"; then
2844 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2845 else
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2848 do
2849 IFS=$as_save_IFS
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2853 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2854 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 break 2
2856 fi
2857 done
2858 done
2859 IFS=$as_save_IFS
2860
2861 fi
2862 fi
2863 STRIP=$ac_cv_prog_STRIP
2864 if test -n "$STRIP"; then
2865 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2866 $as_echo "$STRIP" >&6; }
2867 else
2868 { $as_echo "$as_me:$LINENO: result: no" >&5
2869 $as_echo "no" >&6; }
2870 fi
2871
2872
2873 fi
2874 if test -z "$ac_cv_prog_STRIP"; then
2875 ac_ct_STRIP=$STRIP
2876 # Extract the first word of "strip", so it can be a program name with args.
2877 set dummy strip; ac_word=$2
2878 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2879 $as_echo_n "checking for $ac_word... " >&6; }
2880 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2881 $as_echo_n "(cached) " >&6
2882 else
2883 if test -n "$ac_ct_STRIP"; then
2884 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2885 else
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 for as_dir in $PATH
2888 do
2889 IFS=$as_save_IFS
2890 test -z "$as_dir" && as_dir=.
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2893 ac_cv_prog_ac_ct_STRIP="strip"
2894 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2895 break 2
2896 fi
2897 done
2898 done
2899 IFS=$as_save_IFS
2900
2901 fi
2902 fi
2903 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2904 if test -n "$ac_ct_STRIP"; then
2905 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2906 $as_echo "$ac_ct_STRIP" >&6; }
2907 else
2908 { $as_echo "$as_me:$LINENO: result: no" >&5
2909 $as_echo "no" >&6; }
2910 fi
2911
2912 if test "x$ac_ct_STRIP" = x; then
2913 STRIP=":"
2914 else
2915 case $cross_compiling:$ac_tool_warned in
2916 yes:)
2917 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2918 whose name does not start with the host triplet. If you think this
2919 configuration is useful to you, please write to autoconf@gnu.org." >&5
2920 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2921 whose name does not start with the host triplet. If you think this
2922 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2923 ac_tool_warned=yes ;;
2924 esac
2925 STRIP=$ac_ct_STRIP
2926 fi
2927 else
2928 STRIP="$ac_cv_prog_STRIP"
2929 fi
2930
2931 fi
2932 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2933
2934 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2935 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2936 if test -z "$MKDIR_P"; then
2937 if test "${ac_cv_path_mkdir+set}" = set; then
2938 $as_echo_n "(cached) " >&6
2939 else
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2942 do
2943 IFS=$as_save_IFS
2944 test -z "$as_dir" && as_dir=.
2945 for ac_prog in mkdir gmkdir; do
2946 for ac_exec_ext in '' $ac_executable_extensions; do
2947 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2948 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2949 'mkdir (GNU coreutils) '* | \
2950 'mkdir (coreutils) '* | \
2951 'mkdir (fileutils) '4.1*)
2952 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2953 break 3;;
2954 esac
2955 done
2956 done
2957 done
2958 IFS=$as_save_IFS
2959
2960 fi
2961
2962 if test "${ac_cv_path_mkdir+set}" = set; then
2963 MKDIR_P="$ac_cv_path_mkdir -p"
2964 else
2965 # As a last resort, use the slow shell script. Don't cache a
2966 # value for MKDIR_P within a source directory, because that will
2967 # break other packages using the cache if that directory is
2968 # removed, or if the value is a relative name.
2969 test -d ./--version && rmdir ./--version
2970 MKDIR_P="$ac_install_sh -d"
2971 fi
2972 fi
2973 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2974 $as_echo "$MKDIR_P" >&6; }
2975
2976 mkdir_p="$MKDIR_P"
2977 case $mkdir_p in
2978 [\\/$]* | ?:[\\/]*) ;;
2979 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2980 esac
2981
2982 for ac_prog in gawk mawk nawk awk
2983 do
2984 # Extract the first word of "$ac_prog", so it can be a program name with args.
2985 set dummy $ac_prog; ac_word=$2
2986 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2987 $as_echo_n "checking for $ac_word... " >&6; }
2988 if test "${ac_cv_prog_AWK+set}" = set; then
2989 $as_echo_n "(cached) " >&6
2990 else
2991 if test -n "$AWK"; then
2992 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2993 else
2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995 for as_dir in $PATH
2996 do
2997 IFS=$as_save_IFS
2998 test -z "$as_dir" && as_dir=.
2999 for ac_exec_ext in '' $ac_executable_extensions; do
3000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3001 ac_cv_prog_AWK="$ac_prog"
3002 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3003 break 2
3004 fi
3005 done
3006 done
3007 IFS=$as_save_IFS
3008
3009 fi
3010 fi
3011 AWK=$ac_cv_prog_AWK
3012 if test -n "$AWK"; then
3013 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3014 $as_echo "$AWK" >&6; }
3015 else
3016 { $as_echo "$as_me:$LINENO: result: no" >&5
3017 $as_echo "no" >&6; }
3018 fi
3019
3020
3021 test -n "$AWK" && break
3022 done
3023
3024 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3025 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3026 set x ${MAKE-make}
3027 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3028 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3029 $as_echo_n "(cached) " >&6
3030 else
3031 cat >conftest.make <<\_ACEOF
3032 SHELL = /bin/sh
3033 all:
3034 @echo '@@@%%%=$(MAKE)=@@@%%%'
3035 _ACEOF
3036 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3037 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3038 *@@@%%%=?*=@@@%%%*)
3039 eval ac_cv_prog_make_${ac_make}_set=yes;;
3040 *)
3041 eval ac_cv_prog_make_${ac_make}_set=no;;
3042 esac
3043 rm -f conftest.make
3044 fi
3045 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3046 { $as_echo "$as_me:$LINENO: result: yes" >&5
3047 $as_echo "yes" >&6; }
3048 SET_MAKE=
3049 else
3050 { $as_echo "$as_me:$LINENO: result: no" >&5
3051 $as_echo "no" >&6; }
3052 SET_MAKE="MAKE=${MAKE-make}"
3053 fi
3054
3055 rm -rf .tst 2>/dev/null
3056 mkdir .tst 2>/dev/null
3057 if test -d .tst; then
3058 am__leading_dot=.
3059 else
3060 am__leading_dot=_
3061 fi
3062 rmdir .tst 2>/dev/null
3063
3064 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3065 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3066 # is not polluted with repeated "-I."
3067 am__isrc=' -I$(srcdir)'
3068 # test to see if srcdir already configured
3069 if test -f $srcdir/config.status; then
3070 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3071 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3072 { (exit 1); exit 1; }; }
3073 fi
3074 fi
3075
3076 # test whether we have cygpath
3077 if test -z "$CYGPATH_W"; then
3078 if (cygpath --version) >/dev/null 2>/dev/null; then
3079 CYGPATH_W='cygpath -w'
3080 else
3081 CYGPATH_W=echo
3082 fi
3083 fi
3084
3085
3086 # Define the identity of the package.
3087 PACKAGE='zanavi'
3088 VERSION='1.0.0'
3089
3090
3091 cat >>confdefs.h <<_ACEOF
3092 @%:@define PACKAGE "$PACKAGE"
3093 _ACEOF
3094
3095
3096 cat >>confdefs.h <<_ACEOF
3097 @%:@define VERSION "$VERSION"
3098 _ACEOF
3099
3100 # Some tools Automake needs.
3101
3102 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3103
3104
3105 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3106
3107
3108 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3109
3110
3111 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3112
3113
3114 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3115
3116 # We need awk for the "check" target. The system "awk" is bad on
3117 # some platforms.
3118 # Always define AMTAR for backward compatibility.
3119
3120 AMTAR=${AMTAR-"${am_missing_run}tar"}
3121
3122 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3123
3124
3125
3126
3127
3128 ac_config_headers="$ac_config_headers config.h"
3129
3130
3131
3132 if test "x${SOURCE_MODE}" = "xsvn"; then
3133 SOURCE_MODE_SVN_TRUE=
3134 SOURCE_MODE_SVN_FALSE='#'
3135 else
3136 SOURCE_MODE_SVN_TRUE='#'
3137 SOURCE_MODE_SVN_FALSE=
3138 fi
3139
3140
3141 if test "x${SOURCE_MODE}" = "xsvn" ; then
3142 USE_MAINTAINER_MODE=yes
3143 else
3144 USE_MAINTAINER_MODE=no
3145 fi
3146
3147
3148
3149 # This is what autoupdate's m4 run will expand. It fires
3150 # the warning (with _au_warn_XXX), outputs it into the
3151 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3152 # the replacement expansion.
3153
3154
3155 # This is an auxiliary macro that is also run when
3156 # autoupdate runs m4. It simply calls m4_warning, but
3157 # we need a wrapper so that each warning is emitted only
3158 # once. We break the quoting in m4_warning's argument in
3159 # order to expand this macro's arguments, not AU_DEFUN's.
3160
3161
3162 # Finally, this is the expansion that is picked up by
3163 # autoconf. It tells the user to run autoupdate, and
3164 # then outputs the replacement expansion. We do not care
3165 # about autoupdate's warning because that contains
3166 # information on what to do *after* running autoupdate.
3167
3168
3169 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3170 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3171 @%:@ Check whether --enable-maintainer-mode was given.
3172 if test "${enable_maintainer_mode+set}" = set; then
3173 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3174 fi
3175
3176 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3177 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3178 if test $USE_MAINTAINER_MODE = yes; then
3179 MAINTAINER_MODE_TRUE=
3180 MAINTAINER_MODE_FALSE='#'
3181 else
3182 MAINTAINER_MODE_TRUE='#'
3183 MAINTAINER_MODE_FALSE=
3184 fi
3185
3186 MAINT=$MAINTAINER_MODE_TRUE
3187
3188
3189
3190
3191 plugins=yes; plugins_reason=default
3192 postgresql=yes; postgresql_reason=default
3193 samplemap=yes; samplemap_reason=default
3194 binding_dbus=yes; binding_dbus_reason=default
3195 binding_dbus_use_system_bus=no
3196 binding_python=yes; binding_python_reason=default
3197 font_freetype=yes; font_freetype_reason=default
3198 fontconfig=yes; fontconfig_reason=default
3199 fribidi=yes; fribidi_reason=default
3200 gui_gtk=no; gui_gtk_reason=default
3201 gui_win32=no; gui_win32_reason=default
3202 gui_internal=yes; gui_internal_reason=default
3203 gui_qml=no; gui_qml_reason=default
3204 graphics=yes; graphics_reason=default
3205 graphics_gd=no; graphics_gd_reason=default
3206 graphics_gtk_drawing_area=no; graphics_gtk_drawing_area_reason=default
3207 graphics_qt_qpainter=yes; graphics_qt_qpainter_reason=default
3208 graphics_null=yes; graphics_null_reason=default
3209 graphics_opengl=yes; graphics_opengl_reason=default
3210 graphics_sdl=yes; graphics_sdl_reason=default
3211 graphics_win32=no; graphics_win32_reason=default
3212 maptool=yes; maptool_reason=default
3213 map_binfile=yes; map_binfile_reason=default
3214 map_filter=yes; map_filter_reason=default
3215 map_mg=yes; map_mg_reason=default
3216 map_shapefile=yes; map_shapefile_reason=default
3217 map_textfile=yes; map_textfile_reason=default
3218 map_csv=yes; map_csv_reason=default
3219 osd_core=yes; osd_core_reason=default
3220 plugin_pedestrian=no; plugin_pedestrian_reason=default
3221 routing=yes; routing_reason=default
3222 speech_android=no; speech_android_reason=default
3223 speech_cmdline=yes; speech_cmdline_reason=default
3224 speech_dbus=no; speech_dbus_reason=default
3225 speech_espeak=no; speech_espeak_reason=default
3226 speech_speech_dispatcher=yes; speech_speech_dispatcher_reason=default
3227 vehicle_demo=yes; vehicle_demo_reason=default
3228 vehicle_file=yes; vehicle_file_reason=default
3229 vehicle_gpsd=yes; vehicle_gpsd_reason=default
3230 vehicle_gpsd_dbus=no; vehicle_gpsd_dbus_reason=default
3231 vehicle_gypsy=yes; vehicle_gypsy_reason=default
3232 vehicle_null=no; vehicle_null_reason=default
3233 vehicle_wince=no; vehicle_wince_reason=default
3234 vehicle_iphone=no; vehicle_iphone_reason=default
3235 vehicle_android=no; vehicle_android_reason=default
3236 graphics_android=no; graphics_android_reason=default
3237 vehicle_maemo=no; vehicle_maemo_reason=default
3238 vehicle_webos=no; vehicle_webos_reason=default
3239
3240 shared_libnavit=no
3241 LIBNAVIT=navit
3242 bin_navit=yes
3243
3244 # Make sure we can run config.sub.
3245 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3246 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3247 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3248 { (exit 1); exit 1; }; }
3249
3250 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3251 $as_echo_n "checking build system type... " >&6; }
3252 if test "${ac_cv_build+set}" = set; then
3253 $as_echo_n "(cached) " >&6
3254 else
3255 ac_build_alias=$build_alias
3256 test "x$ac_build_alias" = x &&
3257 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3258 test "x$ac_build_alias" = x &&
3259 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3260 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3261 { (exit 1); exit 1; }; }
3262 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3263 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3264 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3265 { (exit 1); exit 1; }; }
3266
3267 fi
3268 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3269 $as_echo "$ac_cv_build" >&6; }
3270 case $ac_cv_build in
3271 *-*-*) ;;
3272 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3273 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3274 { (exit 1); exit 1; }; };;
3275 esac
3276 build=$ac_cv_build
3277 ac_save_IFS=$IFS; IFS='-'
3278 set x $ac_cv_build
3279 shift
3280 build_cpu=$1
3281 build_vendor=$2
3282 shift; shift
3283 # Remember, the first character of IFS is used to create $*,
3284 # except with old shells:
3285 build_os=$*
3286 IFS=$ac_save_IFS
3287 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3288
3289
3290 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3291 $as_echo_n "checking host system type... " >&6; }
3292 if test "${ac_cv_host+set}" = set; then
3293 $as_echo_n "(cached) " >&6
3294 else
3295 if test "x$host_alias" = x; then
3296 ac_cv_host=$ac_cv_build
3297 else
3298 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3299 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3300 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3301 { (exit 1); exit 1; }; }
3302 fi
3303
3304 fi
3305 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3306 $as_echo "$ac_cv_host" >&6; }
3307 case $ac_cv_host in
3308 *-*-*) ;;
3309 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3310 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3311 { (exit 1); exit 1; }; };;
3312 esac
3313 host=$ac_cv_host
3314 ac_save_IFS=$IFS; IFS='-'
3315 set x $ac_cv_host
3316 shift
3317 host_cpu=$1
3318 host_vendor=$2
3319 shift; shift
3320 # Remember, the first character of IFS is used to create $*,
3321 # except with old shells:
3322 host_os=$*
3323 IFS=$ac_save_IFS
3324 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3325
3326
3327 win32=no
3328 win32ce=no
3329 case $host_os in
3330 wince|mingw32ce|cegcc)
3331 win32=yes
3332 win32ce=yes
3333
3334 cat >>confdefs.h <<\_ACEOF
3335 @%:@define HAVE_API_WIN32_BASE 1
3336 _ACEOF
3337
3338
3339 cat >>confdefs.h <<\_ACEOF
3340 @%:@define HAVE_API_WIN32_CE 1
3341 _ACEOF
3342
3343 gui_win32=yes; gui_win32_reason="host_os is wince"
3344 graphics_win32=yes; graphics_win32_reason="host_os is wince"
3345 vehicle_wince=yes; vehcile_wince_reason="host_os is wince"
3346 speech_espeak=yes; speech_espeak_reason="host_os is wince"
3347 support_libpng=yes
3348 maptool=no; maptool_reason="host_os is wince"
3349 ;;
3350 mingw32)
3351 win32=yes
3352
3353 cat >>confdefs.h <<\_ACEOF
3354 @%:@define HAVE_API_WIN32_BASE 1
3355 _ACEOF
3356
3357
3358 cat >>confdefs.h <<\_ACEOF
3359 @%:@define HAVE_API_WIN32 1
3360 _ACEOF
3361
3362 gui_win32=yes; gui_win32_reason="host_os is mingw32"
3363 graphics_win32=yes; graphics_win32_reason="host_os is mingw32"
3364 speech_espeak=yes; speech_espeak_reason="host_os is mingw32"
3365 support_libpng=yes
3366 ;;
3367 linux*_android)
3368 android=yes
3369 shared_libnavit=yes
3370 bin_navit=no
3371
3372 cat >>confdefs.h <<\_ACEOF
3373 @%:@define HAVE_API_ANDROID 1
3374 _ACEOF
3375
3376 echo "void dl_unwind_find_exidx(void) {}" >crt0.c
3377 $CC -c crt0.c
3378 $AR r libg.a crt0.o
3379 vehicle_android=yes; vehicle_android_reason="host_os is android"
3380 graphics_android=yes; graphics_android_reason="host_os is android"
3381 speech_android=yes; speech_android_reason="host_os is android"
3382 MODULE_LDFLAGS="-module -Xcompiler -nostdlib -Xcompiler -Wl,-rpath -Xcompiler -Wl,/data/data/com.zoffcc.applications.zanavi/lib"
3383 MODULE_LIBADD="-llog"
3384 LIBNAVIT=_data_data_com.zoffcc.applications.zanavi_lib_navit
3385 NAVIT_MODULE_LDFLAGS="$MODULE_LDFLAGS -L\$(top_builddir)/navit -l$LIBNAVIT"
3386 ;;
3387 esac
3388 if test "x$win32" = "xyes"
3389 then
3390 NAVIT_CFLAGS="$NAVIT_CFLAGS -I\$(top_srcdir)/navit/support/win32"
3391 NAVIT_LIBS="$NAVIT_LIBS -L\$(top_builddir)/navit/support/win32 -lsupport_win32"
3392 NAVIT_SOCKET_LDFLAGS="$MODULE_LDFLAGS -lws2_32"
3393 fi
3394
3395
3396 if test "x$win32" = "xyes"; then
3397 SUPPORT_WIN32_TRUE=
3398 SUPPORT_WIN32_FALSE='#'
3399 else
3400 SUPPORT_WIN32_TRUE='#'
3401 SUPPORT_WIN32_FALSE=
3402 fi
3403
3404 if test "x$win32ce" = "xyes"; then
3405 SUPPORT_WIN32CE_TRUE=
3406 SUPPORT_WIN32CE_FALSE='#'
3407 else
3408 SUPPORT_WIN32CE_TRUE='#'
3409 SUPPORT_WIN32CE_FALSE=
3410 fi
3411
3412 if test "x$android" = "xyes"; then
3413 SUPPORT_ANDROID_TRUE=
3414 SUPPORT_ANDROID_FALSE='#'
3415 else
3416 SUPPORT_ANDROID_TRUE='#'
3417 SUPPORT_ANDROID_FALSE=
3418 fi
3419
3420
3421 if test "x$support_libpng" = "xyes"
3422 then
3423 NAVIT_CFLAGS="$NAVIT_CFLAGS -I\$(top_srcdir)/navit/support/libpng"
3424 NAVIT_LIBS="$NAVIT_LIBS -L\$(top_builddir)/navit/support/libpng -lsupport_libpng"
3425 fi
3426 if test "x$support_libpng" = "xyes"; then
3427 SUPPORT_LIBPNG_TRUE=
3428 SUPPORT_LIBPNG_FALSE='#'
3429 else
3430 SUPPORT_LIBPNG_TRUE='#'
3431 SUPPORT_LIBPNG_FALSE=
3432 fi
3433
3434
3435
3436
3437
3438
3439
3440 LIBS="$LIBS -lm"
3441 if test "$win32" == "no" -a "$host_os" != "cygwin"; then
3442 LIBS="$LIBS -rdynamic"
3443 fi
3444
3445
3446
3447 DEPDIR="${am__leading_dot}deps"
3448
3449 ac_config_commands="$ac_config_commands depfiles"
3450
3451
3452 am_make=${MAKE-make}
3453 cat > confinc << 'END'
3454 am__doit:
3455 @echo this is the am__doit target
3456 .PHONY: am__doit
3457 END
3458 # If we don't find an include directive, just comment out the code.
3459 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3460 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3461 am__include="#"
3462 am__quote=
3463 _am_result=none
3464 # First try GNU make style include.
3465 echo "include confinc" > confmf
3466 # Ignore all kinds of additional output from `make'.
3467 case `$am_make -s -f confmf 2> /dev/null` in #(
3468 *the\ am__doit\ target*)
3469 am__include=include
3470 am__quote=
3471 _am_result=GNU
3472 ;;
3473 esac
3474 # Now try BSD make style include.
3475 if test "$am__include" = "#"; then
3476 echo '.include "confinc"' > confmf
3477 case `$am_make -s -f confmf 2> /dev/null` in #(
3478 *the\ am__doit\ target*)
3479 am__include=.include
3480 am__quote="\""
3481 _am_result=BSD
3482 ;;
3483 esac
3484 fi
3485
3486
3487 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3488 $as_echo "$_am_result" >&6; }
3489 rm -f confinc confmf
3490
3491 @%:@ Check whether --enable-dependency-tracking was given.
3492 if test "${enable_dependency_tracking+set}" = set; then
3493 enableval=$enable_dependency_tracking;
3494 fi
3495
3496 if test "x$enable_dependency_tracking" != xno; then
3497 am_depcomp="$ac_aux_dir/depcomp"
3498 AMDEPBACKSLASH='\'
3499 fi
3500 if test "x$enable_dependency_tracking" != xno; then
3501 AMDEP_TRUE=
3502 AMDEP_FALSE='#'
3503 else
3504 AMDEP_TRUE='#'
3505 AMDEP_FALSE=
3506 fi
3507
3508
3509 ac_ext=c
3510 ac_cpp='$CPP $CPPFLAGS'
3511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3514 if test -n "$ac_tool_prefix"; then
3515 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3516 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3517 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3518 $as_echo_n "checking for $ac_word... " >&6; }
3519 if test "${ac_cv_prog_CC+set}" = set; then
3520 $as_echo_n "(cached) " >&6
3521 else
3522 if test -n "$CC"; then
3523 ac_cv_prog_CC="$CC" # Let the user override the test.
3524 else
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 for as_dir in $PATH
3527 do
3528 IFS=$as_save_IFS
3529 test -z "$as_dir" && as_dir=.
3530 for ac_exec_ext in '' $ac_executable_extensions; do
3531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3532 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3533 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3534 break 2
3535 fi
3536 done
3537 done
3538 IFS=$as_save_IFS
3539
3540 fi
3541 fi
3542 CC=$ac_cv_prog_CC
3543 if test -n "$CC"; then
3544 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3545 $as_echo "$CC" >&6; }
3546 else
3547 { $as_echo "$as_me:$LINENO: result: no" >&5
3548 $as_echo "no" >&6; }
3549 fi
3550
3551
3552 fi
3553 if test -z "$ac_cv_prog_CC"; then
3554 ac_ct_CC=$CC
3555 # Extract the first word of "gcc", so it can be a program name with args.
3556 set dummy gcc; ac_word=$2
3557 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3558 $as_echo_n "checking for $ac_word... " >&6; }
3559 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3560 $as_echo_n "(cached) " >&6
3561 else
3562 if test -n "$ac_ct_CC"; then
3563 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3564 else
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 for as_dir in $PATH
3567 do
3568 IFS=$as_save_IFS
3569 test -z "$as_dir" && as_dir=.
3570 for ac_exec_ext in '' $ac_executable_extensions; do
3571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3572 ac_cv_prog_ac_ct_CC="gcc"
3573 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3574 break 2
3575 fi
3576 done
3577 done
3578 IFS=$as_save_IFS
3579
3580 fi
3581 fi
3582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3583 if test -n "$ac_ct_CC"; then
3584 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3585 $as_echo "$ac_ct_CC" >&6; }
3586 else
3587 { $as_echo "$as_me:$LINENO: result: no" >&5
3588 $as_echo "no" >&6; }
3589 fi
3590
3591 if test "x$ac_ct_CC" = x; then
3592 CC=""
3593 else
3594 case $cross_compiling:$ac_tool_warned in
3595 yes:)
3596 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3597 whose name does not start with the host triplet. If you think this
3598 configuration is useful to you, please write to autoconf@gnu.org." >&5
3599 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3600 whose name does not start with the host triplet. If you think this
3601 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3602 ac_tool_warned=yes ;;
3603 esac
3604 CC=$ac_ct_CC
3605 fi
3606 else
3607 CC="$ac_cv_prog_CC"
3608 fi
3609
3610 if test -z "$CC"; then
3611 if test -n "$ac_tool_prefix"; then
3612 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3613 set dummy ${ac_tool_prefix}cc; ac_word=$2
3614 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3615 $as_echo_n "checking for $ac_word... " >&6; }
3616 if test "${ac_cv_prog_CC+set}" = set; then
3617 $as_echo_n "(cached) " >&6
3618 else
3619 if test -n "$CC"; then
3620 ac_cv_prog_CC="$CC" # Let the user override the test.
3621 else
3622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623 for as_dir in $PATH
3624 do
3625 IFS=$as_save_IFS
3626 test -z "$as_dir" && as_dir=.
3627 for ac_exec_ext in '' $ac_executable_extensions; do
3628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3629 ac_cv_prog_CC="${ac_tool_prefix}cc"
3630 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3631 break 2
3632 fi
3633 done
3634 done
3635 IFS=$as_save_IFS
3636
3637 fi
3638 fi
3639 CC=$ac_cv_prog_CC
3640 if test -n "$CC"; then
3641 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3642 $as_echo "$CC" >&6; }
3643 else
3644 { $as_echo "$as_me:$LINENO: result: no" >&5
3645 $as_echo "no" >&6; }
3646 fi
3647
3648
3649 fi
3650 fi
3651 if test -z "$CC"; then
3652 # Extract the first word of "cc", so it can be a program name with args.
3653 set dummy cc; ac_word=$2
3654 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3655 $as_echo_n "checking for $ac_word... " >&6; }
3656 if test "${ac_cv_prog_CC+set}" = set; then
3657 $as_echo_n "(cached) " >&6
3658 else
3659 if test -n "$CC"; then
3660 ac_cv_prog_CC="$CC" # Let the user override the test.
3661 else
3662 ac_prog_rejected=no
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 for as_dir in $PATH
3665 do
3666 IFS=$as_save_IFS
3667 test -z "$as_dir" && as_dir=.
3668 for ac_exec_ext in '' $ac_executable_extensions; do
3669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3670 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3671 ac_prog_rejected=yes
3672 continue
3673 fi
3674 ac_cv_prog_CC="cc"
3675 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3676 break 2
3677 fi
3678 done
3679 done
3680 IFS=$as_save_IFS
3681
3682 if test $ac_prog_rejected = yes; then
3683 # We found a bogon in the path, so make sure we never use it.
3684 set dummy $ac_cv_prog_CC
3685 shift
3686 if test $@%:@ != 0; then
3687 # We chose a different compiler from the bogus one.
3688 # However, it has the same basename, so the bogon will be chosen
3689 # first if we set CC to just the basename; use the full file name.
3690 shift
3691 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3692 fi
3693 fi
3694 fi
3695 fi
3696 CC=$ac_cv_prog_CC
3697 if test -n "$CC"; then
3698 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3699 $as_echo "$CC" >&6; }
3700 else
3701 { $as_echo "$as_me:$LINENO: result: no" >&5
3702 $as_echo "no" >&6; }
3703 fi
3704
3705
3706 fi
3707 if test -z "$CC"; then
3708 if test -n "$ac_tool_prefix"; then
3709 for ac_prog in cl.exe
3710 do
3711 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3712 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3713 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3714 $as_echo_n "checking for $ac_word... " >&6; }
3715 if test "${ac_cv_prog_CC+set}" = set; then
3716 $as_echo_n "(cached) " >&6
3717 else
3718 if test -n "$CC"; then
3719 ac_cv_prog_CC="$CC" # Let the user override the test.
3720 else
3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722 for as_dir in $PATH
3723 do
3724 IFS=$as_save_IFS
3725 test -z "$as_dir" && as_dir=.
3726 for ac_exec_ext in '' $ac_executable_extensions; do
3727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3728 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3729 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3730 break 2
3731 fi
3732 done
3733 done
3734 IFS=$as_save_IFS
3735
3736 fi
3737 fi
3738 CC=$ac_cv_prog_CC
3739 if test -n "$CC"; then
3740 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3741 $as_echo "$CC" >&6; }
3742 else
3743 { $as_echo "$as_me:$LINENO: result: no" >&5
3744 $as_echo "no" >&6; }
3745 fi
3746
3747
3748 test -n "$CC" && break
3749 done
3750 fi
3751 if test -z "$CC"; then
3752 ac_ct_CC=$CC
3753 for ac_prog in cl.exe
3754 do
3755 # Extract the first word of "$ac_prog", so it can be a program name with args.
3756 set dummy $ac_prog; ac_word=$2
3757 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3758 $as_echo_n "checking for $ac_word... " >&6; }
3759 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3760 $as_echo_n "(cached) " >&6
3761 else
3762 if test -n "$ac_ct_CC"; then
3763 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3764 else
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 for as_dir in $PATH
3767 do
3768 IFS=$as_save_IFS
3769 test -z "$as_dir" && as_dir=.
3770 for ac_exec_ext in '' $ac_executable_extensions; do
3771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3772 ac_cv_prog_ac_ct_CC="$ac_prog"
3773 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3774 break 2
3775 fi
3776 done
3777 done
3778 IFS=$as_save_IFS
3779
3780 fi
3781 fi
3782 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3783 if test -n "$ac_ct_CC"; then
3784 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3785 $as_echo "$ac_ct_CC" >&6; }
3786 else
3787 { $as_echo "$as_me:$LINENO: result: no" >&5
3788 $as_echo "no" >&6; }
3789 fi
3790
3791
3792 test -n "$ac_ct_CC" && break
3793 done
3794
3795 if test "x$ac_ct_CC" = x; then
3796 CC=""
3797 else
3798 case $cross_compiling:$ac_tool_warned in
3799 yes:)
3800 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3801 whose name does not start with the host triplet. If you think this
3802 configuration is useful to you, please write to autoconf@gnu.org." >&5
3803 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3804 whose name does not start with the host triplet. If you think this
3805 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3806 ac_tool_warned=yes ;;
3807 esac
3808 CC=$ac_ct_CC
3809 fi
3810 fi
3811
3812 fi
3813
3814
3815 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3816 See \`config.log' for more details." >&5
3817 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3818 See \`config.log' for more details." >&2;}
3819 { (exit 1); exit 1; }; }
3820
3821 # Provide some information about the compiler.
3822 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3823 set X $ac_compile
3824 ac_compiler=$2
3825 { (ac_try="$ac_compiler --version >&5"
3826 case "(($ac_try" in
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3829 esac
3830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3831 $as_echo "$ac_try_echo") >&5
3832 (eval "$ac_compiler --version >&5") 2>&5
3833 ac_status=$?
3834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); }
3836 { (ac_try="$ac_compiler -v >&5"
3837 case "(($ac_try" in
3838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839 *) ac_try_echo=$ac_try;;
3840 esac
3841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3842 $as_echo "$ac_try_echo") >&5
3843 (eval "$ac_compiler -v >&5") 2>&5
3844 ac_status=$?
3845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); }
3847 { (ac_try="$ac_compiler -V >&5"
3848 case "(($ac_try" in
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3851 esac
3852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3853 $as_echo "$ac_try_echo") >&5
3854 (eval "$ac_compiler -V >&5") 2>&5
3855 ac_status=$?
3856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); }
3858
3859 cat >conftest.$ac_ext <<_ACEOF
3860 /* confdefs.h. */
3861 _ACEOF
3862 cat confdefs.h >>conftest.$ac_ext
3863 cat >>conftest.$ac_ext <<_ACEOF
3864 /* end confdefs.h. */
3865
3866 int
3867 main ()
3868 {
3869
3870 ;
3871 return 0;
3872 }
3873 _ACEOF
3874 ac_clean_files_save=$ac_clean_files
3875 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3876 # Try to create an executable without -o first, disregard a.out.
3877 # It will help us diagnose broken compilers, and finding out an intuition
3878 # of exeext.
3879 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3880 $as_echo_n "checking for C compiler default output file name... " >&6; }
3881 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3882
3883 # The possible output files:
3884 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3885
3886 ac_rmfiles=
3887 for ac_file in $ac_files
3888 do
3889 case $ac_file in
3890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3891 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3892 esac
3893 done
3894 rm -f $ac_rmfiles
3895
3896 if { (ac_try="$ac_link_default"
3897 case "(($ac_try" in
3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899 *) ac_try_echo=$ac_try;;
3900 esac
3901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3902 $as_echo "$ac_try_echo") >&5
3903 (eval "$ac_link_default") 2>&5
3904 ac_status=$?
3905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); }; then
3907 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3908 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3909 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3910 # so that the user can short-circuit this test for compilers unknown to
3911 # Autoconf.
3912 for ac_file in $ac_files ''
3913 do
3914 test -f "$ac_file" || continue
3915 case $ac_file in
3916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3917 ;;
3918 [ab].out )
3919 # We found the default executable, but exeext='' is most
3920 # certainly right.
3921 break;;
3922 *.* )
3923 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3924 then :; else
3925 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3926 fi
3927 # We set ac_cv_exeext here because the later test for it is not
3928 # safe: cross compilers may not add the suffix if given an `-o'
3929 # argument, so we may need to know it at that point already.
3930 # Even if this section looks crufty: it has the advantage of
3931 # actually working.
3932 break;;
3933 * )
3934 break;;
3935 esac
3936 done
3937 test "$ac_cv_exeext" = no && ac_cv_exeext=
3938
3939 else
3940 ac_file=''
3941 fi
3942
3943 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3944 $as_echo "$ac_file" >&6; }
3945 if test -z "$ac_file"; then
3946 $as_echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3948
3949 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3950 See \`config.log' for more details." >&5
3951 $as_echo "$as_me: error: C compiler cannot create executables
3952 See \`config.log' for more details." >&2;}
3953 { (exit 77); exit 77; }; }
3954 fi
3955
3956 ac_exeext=$ac_cv_exeext
3957
3958 # Check that the compiler produces executables we can run. If not, either
3959 # the compiler is broken, or we cross compile.
3960 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3961 $as_echo_n "checking whether the C compiler works... " >&6; }
3962 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3963 # If not cross compiling, check that we can run a simple program.
3964 if test "$cross_compiling" != yes; then
3965 if { ac_try='./$ac_file'
3966 { (case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3969 esac
3970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3971 $as_echo "$ac_try_echo") >&5
3972 (eval "$ac_try") 2>&5
3973 ac_status=$?
3974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); }; }; then
3976 cross_compiling=no
3977 else
3978 if test "$cross_compiling" = maybe; then
3979 cross_compiling=yes
3980 else
3981 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3982 If you meant to cross compile, use \`--host'.
3983 See \`config.log' for more details." >&5
3984 $as_echo "$as_me: error: cannot run C compiled programs.
3985 If you meant to cross compile, use \`--host'.
3986 See \`config.log' for more details." >&2;}
3987 { (exit 1); exit 1; }; }
3988 fi
3989 fi
3990 fi
3991 { $as_echo "$as_me:$LINENO: result: yes" >&5
3992 $as_echo "yes" >&6; }
3993
3994 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3995 ac_clean_files=$ac_clean_files_save
3996 # Check that the compiler produces executables we can run. If not, either
3997 # the compiler is broken, or we cross compile.
3998 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3999 $as_echo_n "checking whether we are cross compiling... " >&6; }
4000 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
4001 $as_echo "$cross_compiling" >&6; }
4002
4003 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
4004 $as_echo_n "checking for suffix of executables... " >&6; }
4005 if { (ac_try="$ac_link"
4006 case "(($ac_try" in
4007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008 *) ac_try_echo=$ac_try;;
4009 esac
4010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4011 $as_echo "$ac_try_echo") >&5
4012 (eval "$ac_link") 2>&5
4013 ac_status=$?
4014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); }; then
4016 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4017 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4018 # work properly (i.e., refer to `conftest.exe'), while it won't with
4019 # `rm'.
4020 for ac_file in conftest.exe conftest conftest.*; do
4021 test -f "$ac_file" || continue
4022 case $ac_file in
4023 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4024 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4025 break;;
4026 * ) break;;
4027 esac
4028 done
4029 else
4030 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4031 See \`config.log' for more details." >&5
4032 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4033 See \`config.log' for more details." >&2;}
4034 { (exit 1); exit 1; }; }
4035 fi
4036
4037 rm -f conftest$ac_cv_exeext
4038 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4039 $as_echo "$ac_cv_exeext" >&6; }
4040
4041 rm -f conftest.$ac_ext
4042 EXEEXT=$ac_cv_exeext
4043 ac_exeext=$EXEEXT
4044 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
4045 $as_echo_n "checking for suffix of object files... " >&6; }
4046 if test "${ac_cv_objext+set}" = set; then
4047 $as_echo_n "(cached) " >&6
4048 else
4049 cat >conftest.$ac_ext <<_ACEOF
4050 /* confdefs.h. */
4051 _ACEOF
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h. */
4055
4056 int
4057 main ()
4058 {
4059
4060 ;
4061 return 0;
4062 }
4063 _ACEOF
4064 rm -f conftest.o conftest.obj
4065 if { (ac_try="$ac_compile"
4066 case "(($ac_try" in
4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4069 esac
4070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4071 $as_echo "$ac_try_echo") >&5
4072 (eval "$ac_compile") 2>&5
4073 ac_status=$?
4074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); }; then
4076 for ac_file in conftest.o conftest.obj conftest.*; do
4077 test -f "$ac_file" || continue;
4078 case $ac_file in
4079 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4080 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4081 break;;
4082 esac
4083 done
4084 else
4085 $as_echo "$as_me: failed program was:" >&5
4086 sed 's/^/| /' conftest.$ac_ext >&5
4087
4088 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4089 See \`config.log' for more details." >&5
4090 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
4091 See \`config.log' for more details." >&2;}
4092 { (exit 1); exit 1; }; }
4093 fi
4094
4095 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4096 fi
4097 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4098 $as_echo "$ac_cv_objext" >&6; }
4099 OBJEXT=$ac_cv_objext
4100 ac_objext=$OBJEXT
4101 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4102 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4103 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4104 $as_echo_n "(cached) " >&6
4105 else
4106 cat >conftest.$ac_ext <<_ACEOF
4107 /* confdefs.h. */
4108 _ACEOF
4109 cat confdefs.h >>conftest.$ac_ext
4110 cat >>conftest.$ac_ext <<_ACEOF
4111 /* end confdefs.h. */
4112
4113 int
4114 main ()
4115 {
4116 #ifndef __GNUC__
4117 choke me
4118 #endif
4119
4120 ;
4121 return 0;
4122 }
4123 _ACEOF
4124 rm -f conftest.$ac_objext
4125 if { (ac_try="$ac_compile"
4126 case "(($ac_try" in
4127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128 *) ac_try_echo=$ac_try;;
4129 esac
4130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4131 $as_echo "$ac_try_echo") >&5
4132 (eval "$ac_compile") 2>conftest.er1
4133 ac_status=$?
4134 grep -v '^ *+' conftest.er1 >conftest.err
4135 rm -f conftest.er1
4136 cat conftest.err >&5
4137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); } && {
4139 test -z "$ac_c_werror_flag" ||
4140 test ! -s conftest.err
4141 } && test -s conftest.$ac_objext; then
4142 ac_compiler_gnu=yes
4143 else
4144 $as_echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4146
4147 ac_compiler_gnu=no
4148 fi
4149
4150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4151 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4152
4153 fi
4154 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4155 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4156 if test $ac_compiler_gnu = yes; then
4157 GCC=yes
4158 else
4159 GCC=
4160 fi
4161 ac_test_CFLAGS=${CFLAGS+set}
4162 ac_save_CFLAGS=$CFLAGS
4163 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4164 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4165 if test "${ac_cv_prog_cc_g+set}" = set; then
4166 $as_echo_n "(cached) " >&6
4167 else
4168 ac_save_c_werror_flag=$ac_c_werror_flag
4169 ac_c_werror_flag=yes
4170 ac_cv_prog_cc_g=no
4171 CFLAGS="-g"
4172 cat >conftest.$ac_ext <<_ACEOF
4173 /* confdefs.h. */
4174 _ACEOF
4175 cat confdefs.h >>conftest.$ac_ext
4176 cat >>conftest.$ac_ext <<_ACEOF
4177 /* end confdefs.h. */
4178
4179 int
4180 main ()
4181 {
4182
4183 ;
4184 return 0;
4185 }
4186 _ACEOF
4187 rm -f conftest.$ac_objext
4188 if { (ac_try="$ac_compile"
4189 case "(($ac_try" in
4190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4191 *) ac_try_echo=$ac_try;;
4192 esac
4193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4194 $as_echo "$ac_try_echo") >&5
4195 (eval "$ac_compile") 2>conftest.er1
4196 ac_status=$?
4197 grep -v '^ *+' conftest.er1 >conftest.err
4198 rm -f conftest.er1
4199 cat conftest.err >&5
4200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); } && {
4202 test -z "$ac_c_werror_flag" ||
4203 test ! -s conftest.err
4204 } && test -s conftest.$ac_objext; then
4205 ac_cv_prog_cc_g=yes
4206 else
4207 $as_echo "$as_me: failed program was:" >&5
4208 sed 's/^/| /' conftest.$ac_ext >&5
4209
4210 CFLAGS=""
4211 cat >conftest.$ac_ext <<_ACEOF
4212 /* confdefs.h. */
4213 _ACEOF
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h. */
4217
4218 int
4219 main ()
4220 {
4221
4222 ;
4223 return 0;
4224 }
4225 _ACEOF
4226 rm -f conftest.$ac_objext
4227 if { (ac_try="$ac_compile"
4228 case "(($ac_try" in
4229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230 *) ac_try_echo=$ac_try;;
4231 esac
4232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4233 $as_echo "$ac_try_echo") >&5
4234 (eval "$ac_compile") 2>conftest.er1
4235 ac_status=$?
4236 grep -v '^ *+' conftest.er1 >conftest.err
4237 rm -f conftest.er1
4238 cat conftest.err >&5
4239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); } && {
4241 test -z "$ac_c_werror_flag" ||
4242 test ! -s conftest.err
4243 } && test -s conftest.$ac_objext; then
4244 :
4245 else
4246 $as_echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4248
4249 ac_c_werror_flag=$ac_save_c_werror_flag
4250 CFLAGS="-g"
4251 cat >conftest.$ac_ext <<_ACEOF
4252 /* confdefs.h. */
4253 _ACEOF
4254 cat confdefs.h >>conftest.$ac_ext
4255 cat >>conftest.$ac_ext <<_ACEOF
4256 /* end confdefs.h. */
4257
4258 int
4259 main ()
4260 {
4261
4262 ;
4263 return 0;
4264 }
4265 _ACEOF
4266 rm -f conftest.$ac_objext
4267 if { (ac_try="$ac_compile"
4268 case "(($ac_try" in
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4271 esac
4272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4273 $as_echo "$ac_try_echo") >&5
4274 (eval "$ac_compile") 2>conftest.er1
4275 ac_status=$?
4276 grep -v '^ *+' conftest.er1 >conftest.err
4277 rm -f conftest.er1
4278 cat conftest.err >&5
4279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); } && {
4281 test -z "$ac_c_werror_flag" ||
4282 test ! -s conftest.err
4283 } && test -s conftest.$ac_objext; then
4284 ac_cv_prog_cc_g=yes
4285 else
4286 $as_echo "$as_me: failed program was:" >&5
4287 sed 's/^/| /' conftest.$ac_ext >&5
4288
4289
4290 fi
4291
4292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4293 fi
4294
4295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296 fi
4297
4298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4299 ac_c_werror_flag=$ac_save_c_werror_flag
4300 fi
4301 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4302 $as_echo "$ac_cv_prog_cc_g" >&6; }
4303 if test "$ac_test_CFLAGS" = set; then
4304 CFLAGS=$ac_save_CFLAGS
4305 elif test $ac_cv_prog_cc_g = yes; then
4306 if test "$GCC" = yes; then
4307 CFLAGS="-g -O2"
4308 else
4309 CFLAGS="-g"
4310 fi
4311 else
4312 if test "$GCC" = yes; then
4313 CFLAGS="-O2"
4314 else
4315 CFLAGS=
4316 fi
4317 fi
4318 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4319 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4320 if test "${ac_cv_prog_cc_c89+set}" = set; then
4321 $as_echo_n "(cached) " >&6
4322 else
4323 ac_cv_prog_cc_c89=no
4324 ac_save_CC=$CC
4325 cat >conftest.$ac_ext <<_ACEOF
4326 /* confdefs.h. */
4327 _ACEOF
4328 cat confdefs.h >>conftest.$ac_ext
4329 cat >>conftest.$ac_ext <<_ACEOF
4330 /* end confdefs.h. */
4331 #include <stdarg.h>
4332 #include <stdio.h>
4333 #include <sys/types.h>
4334 #include <sys/stat.h>
4335 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4336 struct buf { int x; };
4337 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4338 static char *e (p, i)
4339 char **p;
4340 int i;
4341 {
4342 return p[i];
4343 }
4344 static char *f (char * (*g) (char **, int), char **p, ...)
4345 {
4346 char *s;
4347 va_list v;
4348 va_start (v,p);
4349 s = g (p, va_arg (v,int));
4350 va_end (v);
4351 return s;
4352 }
4353
4354 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4355 function prototypes and stuff, but not '\xHH' hex character constants.
4356 These don't provoke an error unfortunately, instead are silently treated
4357 as 'x'. The following induces an error, until -std is added to get
4358 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4359 array size at least. It's necessary to write '\x00'==0 to get something
4360 that's true only with -std. */
4361 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4362
4363 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4364 inside strings and character constants. */
4365 #define FOO(x) 'x'
4366 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4367
4368 int test (int i, double x);
4369 struct s1 {int (*f) (int a);};
4370 struct s2 {int (*f) (double a);};
4371 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4372 int argc;
4373 char **argv;
4374 int
4375 main ()
4376 {
4377 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4378 ;
4379 return 0;
4380 }
4381 _ACEOF
4382 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4383 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4384 do
4385 CC="$ac_save_CC $ac_arg"
4386 rm -f conftest.$ac_objext
4387 if { (ac_try="$ac_compile"
4388 case "(($ac_try" in
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4391 esac
4392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4393 $as_echo "$ac_try_echo") >&5
4394 (eval "$ac_compile") 2>conftest.er1
4395 ac_status=$?
4396 grep -v '^ *+' conftest.er1 >conftest.err
4397 rm -f conftest.er1
4398 cat conftest.err >&5
4399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); } && {
4401 test -z "$ac_c_werror_flag" ||
4402 test ! -s conftest.err
4403 } && test -s conftest.$ac_objext; then
4404 ac_cv_prog_cc_c89=$ac_arg
4405 else
4406 $as_echo "$as_me: failed program was:" >&5
4407 sed 's/^/| /' conftest.$ac_ext >&5
4408
4409
4410 fi
4411
4412 rm -f core conftest.err conftest.$ac_objext
4413 test "x$ac_cv_prog_cc_c89" != "xno" && break
4414 done
4415 rm -f conftest.$ac_ext
4416 CC=$ac_save_CC
4417
4418 fi
4419 # AC_CACHE_VAL
4420 case "x$ac_cv_prog_cc_c89" in
4421 x)
4422 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4423 $as_echo "none needed" >&6; } ;;
4424 xno)
4425 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4426 $as_echo "unsupported" >&6; } ;;
4427 *)
4428 CC="$CC $ac_cv_prog_cc_c89"
4429 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4430 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4431 esac
4432
4433
4434 ac_ext=c
4435 ac_cpp='$CPP $CPPFLAGS'
4436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4439
4440 depcc="$CC" am_compiler_list=
4441
4442 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4443 $as_echo_n "checking dependency style of $depcc... " >&6; }
4444 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4445 $as_echo_n "(cached) " >&6
4446 else
4447 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4448 # We make a subdir and do the tests there. Otherwise we can end up
4449 # making bogus files that we don't know about and never remove. For
4450 # instance it was reported that on HP-UX the gcc test will end up
4451 # making a dummy file named `D' -- because `-MD' means `put the output
4452 # in D'.
4453 mkdir conftest.dir
4454 # Copy depcomp to subdir because otherwise we won't find it if we're
4455 # using a relative directory.
4456 cp "$am_depcomp" conftest.dir
4457 cd conftest.dir
4458 # We will build objects and dependencies in a subdirectory because
4459 # it helps to detect inapplicable dependency modes. For instance
4460 # both Tru64's cc and ICC support -MD to output dependencies as a
4461 # side effect of compilation, but ICC will put the dependencies in
4462 # the current directory while Tru64 will put them in the object
4463 # directory.
4464 mkdir sub
4465
4466 am_cv_CC_dependencies_compiler_type=none
4467 if test "$am_compiler_list" = ""; then
4468 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4469 fi
4470 am__universal=false
4471 case " $depcc " in #(
4472 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4473 esac
4474
4475 for depmode in $am_compiler_list; do
4476 # Setup a source with many dependencies, because some compilers
4477 # like to wrap large dependency lists on column 80 (with \), and
4478 # we should not choose a depcomp mode which is confused by this.
4479 #
4480 # We need to recreate these files for each test, as the compiler may
4481 # overwrite some of them when testing with obscure command lines.
4482 # This happens at least with the AIX C compiler.
4483 : > sub/conftest.c
4484 for i in 1 2 3 4 5 6; do
4485 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4486 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4487 # Solaris 8's {/usr,}/bin/sh.
4488 touch sub/conftst$i.h
4489 done
4490 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4491
4492 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4493 # mode. It turns out that the SunPro C++ compiler does not properly
4494 # handle `-M -o', and we need to detect this. Also, some Intel
4495 # versions had trouble with output in subdirs
4496 am__obj=sub/conftest.${OBJEXT-o}
4497 am__minus_obj="-o $am__obj"
4498 case $depmode in
4499 gcc)
4500 # This depmode causes a compiler race in universal mode.
4501 test "$am__universal" = false || continue
4502 ;;
4503 nosideeffect)
4504 # after this tag, mechanisms are not by side-effect, so they'll
4505 # only be used when explicitly requested
4506 if test "x$enable_dependency_tracking" = xyes; then
4507 continue
4508 else
4509 break
4510 fi
4511 ;;
4512 msvisualcpp | msvcmsys)
4513 # This compiler won't grok `-c -o', but also, the minuso test has
4514 # not run yet. These depmodes are late enough in the game, and
4515 # so weak that their functioning should not be impacted.
4516 am__obj=conftest.${OBJEXT-o}
4517 am__minus_obj=
4518 ;;
4519 none) break ;;
4520 esac
4521 if depmode=$depmode \
4522 source=sub/conftest.c object=$am__obj \
4523 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4524 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4525 >/dev/null 2>conftest.err &&
4526 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4527 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4528 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4529 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4530 # icc doesn't choke on unknown options, it will just issue warnings
4531 # or remarks (even with -Werror). So we grep stderr for any message
4532 # that says an option was ignored or not supported.
4533 # When given -MP, icc 7.0 and 7.1 complain thusly:
4534 # icc: Command line warning: ignoring option '-M'; no argument required
4535 # The diagnosis changed in icc 8.0:
4536 # icc: Command line remark: option '-MP' not supported
4537 if (grep 'ignoring option' conftest.err ||
4538 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4539 am_cv_CC_dependencies_compiler_type=$depmode
4540 break
4541 fi
4542 fi
4543 done
4544
4545 cd ..
4546 rm -rf conftest.dir
4547 else
4548 am_cv_CC_dependencies_compiler_type=none
4549 fi
4550
4551 fi
4552 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4553 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4554 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4555
4556 if
4557 test "x$enable_dependency_tracking" != xno \
4558 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4559 am__fastdepCC_TRUE=
4560 am__fastdepCC_FALSE='#'
4561 else
4562 am__fastdepCC_TRUE='#'
4563 am__fastdepCC_FALSE=
4564 fi
4565
4566
4567
4568 ac_ext=c
4569 ac_cpp='$CPP $CPPFLAGS'
4570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4573 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4574 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4575 # On Suns, sometimes $CPP names a directory.
4576 if test -n "$CPP" && test -d "$CPP"; then
4577 CPP=
4578 fi
4579 if test -z "$CPP"; then
4580 if test "${ac_cv_prog_CPP+set}" = set; then
4581 $as_echo_n "(cached) " >&6
4582 else
4583 # Double quotes because CPP needs to be expanded
4584 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4585 do
4586 ac_preproc_ok=false
4587 for ac_c_preproc_warn_flag in '' yes
4588 do
4589 # Use a header file that comes with gcc, so configuring glibc
4590 # with a fresh cross-compiler works.
4591 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4592 # <limits.h> exists even on freestanding compilers.
4593 # On the NeXT, cc -E runs the code through the compiler's parser,
4594 # not just through cpp. "Syntax error" is here to catch this case.
4595 cat >conftest.$ac_ext <<_ACEOF
4596 /* confdefs.h. */
4597 _ACEOF
4598 cat confdefs.h >>conftest.$ac_ext
4599 cat >>conftest.$ac_ext <<_ACEOF
4600 /* end confdefs.h. */
4601 @%:@ifdef __STDC__
4602 @%:@ include <limits.h>
4603 @%:@else
4604 @%:@ include <assert.h>
4605 @%:@endif
4606 Syntax error
4607 _ACEOF
4608 if { (ac_try="$ac_cpp conftest.$ac_ext"
4609 case "(($ac_try" in
4610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611 *) ac_try_echo=$ac_try;;
4612 esac
4613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4614 $as_echo "$ac_try_echo") >&5
4615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4616 ac_status=$?
4617 grep -v '^ *+' conftest.er1 >conftest.err
4618 rm -f conftest.er1
4619 cat conftest.err >&5
4620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); } >/dev/null && {
4622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4623 test ! -s conftest.err
4624 }; then
4625 :
4626 else
4627 $as_echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4629
4630 # Broken: fails on valid input.
4631 continue
4632 fi
4633
4634 rm -f conftest.err conftest.$ac_ext
4635
4636 # OK, works on sane cases. Now check whether nonexistent headers
4637 # can be detected and how.
4638 cat >conftest.$ac_ext <<_ACEOF
4639 /* confdefs.h. */
4640 _ACEOF
4641 cat confdefs.h >>conftest.$ac_ext
4642 cat >>conftest.$ac_ext <<_ACEOF
4643 /* end confdefs.h. */
4644 @%:@include <ac_nonexistent.h>
4645 _ACEOF
4646 if { (ac_try="$ac_cpp conftest.$ac_ext"
4647 case "(($ac_try" in
4648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649 *) ac_try_echo=$ac_try;;
4650 esac
4651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4652 $as_echo "$ac_try_echo") >&5
4653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4654 ac_status=$?
4655 grep -v '^ *+' conftest.er1 >conftest.err
4656 rm -f conftest.er1
4657 cat conftest.err >&5
4658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); } >/dev/null && {
4660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4661 test ! -s conftest.err
4662 }; then
4663 # Broken: success on invalid input.
4664 continue
4665 else
4666 $as_echo "$as_me: failed program was:" >&5
4667 sed 's/^/| /' conftest.$ac_ext >&5
4668
4669 # Passes both tests.
4670 ac_preproc_ok=:
4671 break
4672 fi
4673
4674 rm -f conftest.err conftest.$ac_ext
4675
4676 done
4677 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4678 rm -f conftest.err conftest.$ac_ext
4679 if $ac_preproc_ok; then
4680 break
4681 fi
4682
4683 done
4684 ac_cv_prog_CPP=$CPP
4685
4686 fi
4687 CPP=$ac_cv_prog_CPP
4688 else
4689 ac_cv_prog_CPP=$CPP
4690 fi
4691 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4692 $as_echo "$CPP" >&6; }
4693 ac_preproc_ok=false
4694 for ac_c_preproc_warn_flag in '' yes
4695 do
4696 # Use a header file that comes with gcc, so configuring glibc
4697 # with a fresh cross-compiler works.
4698 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4699 # <limits.h> exists even on freestanding compilers.
4700 # On the NeXT, cc -E runs the code through the compiler's parser,
4701 # not just through cpp. "Syntax error" is here to catch this case.
4702 cat >conftest.$ac_ext <<_ACEOF
4703 /* confdefs.h. */
4704 _ACEOF
4705 cat confdefs.h >>conftest.$ac_ext
4706 cat >>conftest.$ac_ext <<_ACEOF
4707 /* end confdefs.h. */
4708 @%:@ifdef __STDC__
4709 @%:@ include <limits.h>
4710 @%:@else
4711 @%:@ include <assert.h>
4712 @%:@endif
4713 Syntax error
4714 _ACEOF
4715 if { (ac_try="$ac_cpp conftest.$ac_ext"
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:$LINENO: $ac_try_echo\""
4721 $as_echo "$ac_try_echo") >&5
4722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4723 ac_status=$?
4724 grep -v '^ *+' conftest.er1 >conftest.err
4725 rm -f conftest.er1
4726 cat conftest.err >&5
4727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } >/dev/null && {
4729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4730 test ! -s conftest.err
4731 }; then
4732 :
4733 else
4734 $as_echo "$as_me: failed program was:" >&5
4735 sed 's/^/| /' conftest.$ac_ext >&5
4736
4737 # Broken: fails on valid input.
4738 continue
4739 fi
4740
4741 rm -f conftest.err conftest.$ac_ext
4742
4743 # OK, works on sane cases. Now check whether nonexistent headers
4744 # can be detected and how.
4745 cat >conftest.$ac_ext <<_ACEOF
4746 /* confdefs.h. */
4747 _ACEOF
4748 cat confdefs.h >>conftest.$ac_ext
4749 cat >>conftest.$ac_ext <<_ACEOF
4750 /* end confdefs.h. */
4751 @%:@include <ac_nonexistent.h>
4752 _ACEOF
4753 if { (ac_try="$ac_cpp conftest.$ac_ext"
4754 case "(($ac_try" in
4755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756 *) ac_try_echo=$ac_try;;
4757 esac
4758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4759 $as_echo "$ac_try_echo") >&5
4760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4761 ac_status=$?
4762 grep -v '^ *+' conftest.er1 >conftest.err
4763 rm -f conftest.er1
4764 cat conftest.err >&5
4765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); } >/dev/null && {
4767 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4768 test ! -s conftest.err
4769 }; then
4770 # Broken: success on invalid input.
4771 continue
4772 else
4773 $as_echo "$as_me: failed program was:" >&5
4774 sed 's/^/| /' conftest.$ac_ext >&5
4775
4776 # Passes both tests.
4777 ac_preproc_ok=:
4778 break
4779 fi
4780
4781 rm -f conftest.err conftest.$ac_ext
4782
4783 done
4784 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4785 rm -f conftest.err conftest.$ac_ext
4786 if $ac_preproc_ok; then
4787 :
4788 else
4789 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4790 See \`config.log' for more details." >&5
4791 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4792 See \`config.log' for more details." >&2;}
4793 { (exit 1); exit 1; }; }
4794 fi
4795
4796 ac_ext=c
4797 ac_cpp='$CPP $CPPFLAGS'
4798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4801
4802
4803 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4804 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4805 if test "${ac_cv_path_GREP+set}" = set; then
4806 $as_echo_n "(cached) " >&6
4807 else
4808 if test -z "$GREP"; then
4809 ac_path_GREP_found=false
4810 # Loop through the user's path and test for each of PROGNAME-LIST
4811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4812 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4813 do
4814 IFS=$as_save_IFS
4815 test -z "$as_dir" && as_dir=.
4816 for ac_prog in grep ggrep; do
4817 for ac_exec_ext in '' $ac_executable_extensions; do
4818 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4819 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4820 # Check for GNU ac_path_GREP and select it if it is found.
4821 # Check for GNU $ac_path_GREP
4822 case `"$ac_path_GREP" --version 2>&1` in
4823 *GNU*)
4824 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4825 *)
4826 ac_count=0
4827 $as_echo_n 0123456789 >"conftest.in"
4828 while :
4829 do
4830 cat "conftest.in" "conftest.in" >"conftest.tmp"
4831 mv "conftest.tmp" "conftest.in"
4832 cp "conftest.in" "conftest.nl"
4833 $as_echo 'GREP' >> "conftest.nl"
4834 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4835 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4836 ac_count=`expr $ac_count + 1`
4837 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4838 # Best one so far, save it but keep looking for a better one
4839 ac_cv_path_GREP="$ac_path_GREP"
4840 ac_path_GREP_max=$ac_count
4841 fi
4842 # 10*(2^10) chars as input seems more than enough
4843 test $ac_count -gt 10 && break
4844 done
4845 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4846 esac
4847
4848 $ac_path_GREP_found && break 3
4849 done
4850 done
4851 done
4852 IFS=$as_save_IFS
4853 if test -z "$ac_cv_path_GREP"; then
4854 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4855 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4856 { (exit 1); exit 1; }; }
4857 fi
4858 else
4859 ac_cv_path_GREP=$GREP
4860 fi
4861
4862 fi
4863 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4864 $as_echo "$ac_cv_path_GREP" >&6; }
4865 GREP="$ac_cv_path_GREP"
4866
4867
4868 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4869 $as_echo_n "checking for egrep... " >&6; }
4870 if test "${ac_cv_path_EGREP+set}" = set; then
4871 $as_echo_n "(cached) " >&6
4872 else
4873 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4874 then ac_cv_path_EGREP="$GREP -E"
4875 else
4876 if test -z "$EGREP"; then
4877 ac_path_EGREP_found=false
4878 # Loop through the user's path and test for each of PROGNAME-LIST
4879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4881 do
4882 IFS=$as_save_IFS
4883 test -z "$as_dir" && as_dir=.
4884 for ac_prog in egrep; do
4885 for ac_exec_ext in '' $ac_executable_extensions; do
4886 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4887 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4888 # Check for GNU ac_path_EGREP and select it if it is found.
4889 # Check for GNU $ac_path_EGREP
4890 case `"$ac_path_EGREP" --version 2>&1` in
4891 *GNU*)
4892 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4893 *)
4894 ac_count=0
4895 $as_echo_n 0123456789 >"conftest.in"
4896 while :
4897 do
4898 cat "conftest.in" "conftest.in" >"conftest.tmp"
4899 mv "conftest.tmp" "conftest.in"
4900 cp "conftest.in" "conftest.nl"
4901 $as_echo 'EGREP' >> "conftest.nl"
4902 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4903 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4904 ac_count=`expr $ac_count + 1`
4905 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4906 # Best one so far, save it but keep looking for a better one
4907 ac_cv_path_EGREP="$ac_path_EGREP"
4908 ac_path_EGREP_max=$ac_count
4909 fi
4910 # 10*(2^10) chars as input seems more than enough
4911 test $ac_count -gt 10 && break
4912 done
4913 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4914 esac
4915
4916 $ac_path_EGREP_found && break 3
4917 done
4918 done
4919 done
4920 IFS=$as_save_IFS
4921 if test -z "$ac_cv_path_EGREP"; then
4922 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4923 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4924 { (exit 1); exit 1; }; }
4925 fi
4926 else
4927 ac_cv_path_EGREP=$EGREP
4928 fi
4929
4930 fi
4931 fi
4932 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4933 $as_echo "$ac_cv_path_EGREP" >&6; }
4934 EGREP="$ac_cv_path_EGREP"
4935
4936
4937 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4938 $as_echo_n "checking for ANSI C header files... " >&6; }
4939 if test "${ac_cv_header_stdc+set}" = set; then
4940 $as_echo_n "(cached) " >&6
4941 else
4942 cat >conftest.$ac_ext <<_ACEOF
4943 /* confdefs.h. */
4944 _ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4948 #include <stdlib.h>
4949 #include <stdarg.h>
4950 #include <string.h>
4951 #include <float.h>
4952
4953 int
4954 main ()
4955 {
4956
4957 ;
4958 return 0;
4959 }
4960 _ACEOF
4961 rm -f conftest.$ac_objext
4962 if { (ac_try="$ac_compile"
4963 case "(($ac_try" in
4964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4965 *) ac_try_echo=$ac_try;;
4966 esac
4967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4968 $as_echo "$ac_try_echo") >&5
4969 (eval "$ac_compile") 2>conftest.er1
4970 ac_status=$?
4971 grep -v '^ *+' conftest.er1 >conftest.err
4972 rm -f conftest.er1
4973 cat conftest.err >&5
4974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } && {
4976 test -z "$ac_c_werror_flag" ||
4977 test ! -s conftest.err
4978 } && test -s conftest.$ac_objext; then
4979 ac_cv_header_stdc=yes
4980 else
4981 $as_echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4983
4984 ac_cv_header_stdc=no
4985 fi
4986
4987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4988
4989 if test $ac_cv_header_stdc = yes; then
4990 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4991 cat >conftest.$ac_ext <<_ACEOF
4992 /* confdefs.h. */
4993 _ACEOF
4994 cat confdefs.h >>conftest.$ac_ext
4995 cat >>conftest.$ac_ext <<_ACEOF
4996 /* end confdefs.h. */
4997 #include <string.h>
4998
4999 _ACEOF
5000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5001 $EGREP "memchr" >/dev/null 2>&1; then
5002 :
5003 else
5004 ac_cv_header_stdc=no
5005 fi
5006 rm -f conftest*
5007
5008 fi
5009
5010 if test $ac_cv_header_stdc = yes; then
5011 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5012 cat >conftest.$ac_ext <<_ACEOF
5013 /* confdefs.h. */
5014 _ACEOF
5015 cat confdefs.h >>conftest.$ac_ext
5016 cat >>conftest.$ac_ext <<_ACEOF
5017 /* end confdefs.h. */
5018 #include <stdlib.h>
5019
5020 _ACEOF
5021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5022 $EGREP "free" >/dev/null 2>&1; then
5023 :
5024 else
5025 ac_cv_header_stdc=no
5026 fi
5027 rm -f conftest*
5028
5029 fi
5030
5031 if test $ac_cv_header_stdc = yes; then
5032 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5033 if test "$cross_compiling" = yes; then
5034 :
5035 else
5036 cat >conftest.$ac_ext <<_ACEOF
5037 /* confdefs.h. */
5038 _ACEOF
5039 cat confdefs.h >>conftest.$ac_ext
5040 cat >>conftest.$ac_ext <<_ACEOF
5041 /* end confdefs.h. */
5042 #include <ctype.h>
5043 #include <stdlib.h>
5044 #if ((' ' & 0x0FF) == 0x020)
5045 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5046 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5047 #else
5048 # define ISLOWER(c) \
5049 (('a' <= (c) && (c) <= 'i') \
5050 || ('j' <= (c) && (c) <= 'r') \
5051 || ('s' <= (c) && (c) <= 'z'))
5052 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5053 #endif
5054
5055 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5056 int
5057 main ()
5058 {
5059 int i;
5060 for (i = 0; i < 256; i++)
5061 if (XOR (islower (i), ISLOWER (i))
5062 || toupper (i) != TOUPPER (i))
5063 return 2;
5064 return 0;
5065 }
5066 _ACEOF
5067 rm -f conftest$ac_exeext
5068 if { (ac_try="$ac_link"
5069 case "(($ac_try" in
5070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5071 *) ac_try_echo=$ac_try;;
5072 esac
5073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5074 $as_echo "$ac_try_echo") >&5
5075 (eval "$ac_link") 2>&5
5076 ac_status=$?
5077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5079 { (case "(($ac_try" in
5080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5081 *) ac_try_echo=$ac_try;;
5082 esac
5083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5084 $as_echo "$ac_try_echo") >&5
5085 (eval "$ac_try") 2>&5
5086 ac_status=$?
5087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); }; }; then
5089 :
5090 else
5091 $as_echo "$as_me: program exited with status $ac_status" >&5
5092 $as_echo "$as_me: failed program was:" >&5
5093 sed 's/^/| /' conftest.$ac_ext >&5
5094
5095 ( exit $ac_status )
5096 ac_cv_header_stdc=no
5097 fi
5098 rm -rf conftest.dSYM
5099 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5100 fi
5101
5102
5103 fi
5104 fi
5105 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5106 $as_echo "$ac_cv_header_stdc" >&6; }
5107 if test $ac_cv_header_stdc = yes; then
5108
5109 cat >>confdefs.h <<\_ACEOF
5110 @%:@define STDC_HEADERS 1
5111 _ACEOF
5112
5113 fi
5114
5115 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5126 inttypes.h stdint.h unistd.h
5127 do
5128 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5129 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5130 $as_echo_n "checking for $ac_header... " >&6; }
5131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5132 $as_echo_n "(cached) " >&6
5133 else
5134 cat >conftest.$ac_ext <<_ACEOF
5135 /* confdefs.h. */
5136 _ACEOF
5137 cat confdefs.h >>conftest.$ac_ext
5138 cat >>conftest.$ac_ext <<_ACEOF
5139 /* end confdefs.h. */
5140 $ac_includes_default
5141
5142 @%:@include <$ac_header>
5143 _ACEOF
5144 rm -f conftest.$ac_objext
5145 if { (ac_try="$ac_compile"
5146 case "(($ac_try" in
5147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5148 *) ac_try_echo=$ac_try;;
5149 esac
5150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5151 $as_echo "$ac_try_echo") >&5
5152 (eval "$ac_compile") 2>conftest.er1
5153 ac_status=$?
5154 grep -v '^ *+' conftest.er1 >conftest.err
5155 rm -f conftest.er1
5156 cat conftest.err >&5
5157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); } && {
5159 test -z "$ac_c_werror_flag" ||
5160 test ! -s conftest.err
5161 } && test -s conftest.$ac_objext; then
5162 eval "$as_ac_Header=yes"
5163 else
5164 $as_echo "$as_me: failed program was:" >&5
5165 sed 's/^/| /' conftest.$ac_ext >&5
5166
5167 eval "$as_ac_Header=no"
5168 fi
5169
5170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5171 fi
5172 ac_res=`eval 'as_val=${'$as_ac_Header'}
5173 $as_echo "$as_val"'`
5174 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5175 $as_echo "$ac_res" >&6; }
5176 if test `eval 'as_val=${'$as_ac_Header'}
5177 $as_echo "$as_val"'` = yes; then
5178 cat >>confdefs.h <<_ACEOF
5179 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5180 _ACEOF
5181
5182 fi
5183
5184 done
5185
5186
5187
5188 if test "${ac_cv_header_minix_config_h+set}" = set; then
5189 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5190 $as_echo_n "checking for minix/config.h... " >&6; }
5191 if test "${ac_cv_header_minix_config_h+set}" = set; then
5192 $as_echo_n "(cached) " >&6
5193 fi
5194 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5195 $as_echo "$ac_cv_header_minix_config_h" >&6; }
5196 else
5197 # Is the header compilable?
5198 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
5199 $as_echo_n "checking minix/config.h usability... " >&6; }
5200 cat >conftest.$ac_ext <<_ACEOF
5201 /* confdefs.h. */
5202 _ACEOF
5203 cat confdefs.h >>conftest.$ac_ext
5204 cat >>conftest.$ac_ext <<_ACEOF
5205 /* end confdefs.h. */
5206 $ac_includes_default
5207 @%:@include <minix/config.h>
5208 _ACEOF
5209 rm -f conftest.$ac_objext
5210 if { (ac_try="$ac_compile"
5211 case "(($ac_try" in
5212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5213 *) ac_try_echo=$ac_try;;
5214 esac
5215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5216 $as_echo "$ac_try_echo") >&5
5217 (eval "$ac_compile") 2>conftest.er1
5218 ac_status=$?
5219 grep -v '^ *+' conftest.er1 >conftest.err
5220 rm -f conftest.er1
5221 cat conftest.err >&5
5222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); } && {
5224 test -z "$ac_c_werror_flag" ||
5225 test ! -s conftest.err
5226 } && test -s conftest.$ac_objext; then
5227 ac_header_compiler=yes
5228 else
5229 $as_echo "$as_me: failed program was:" >&5
5230 sed 's/^/| /' conftest.$ac_ext >&5
5231
5232 ac_header_compiler=no
5233 fi
5234
5235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5236 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5237 $as_echo "$ac_header_compiler" >&6; }
5238
5239 # Is the header present?
5240 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
5241 $as_echo_n "checking minix/config.h presence... " >&6; }
5242 cat >conftest.$ac_ext <<_ACEOF
5243 /* confdefs.h. */
5244 _ACEOF
5245 cat confdefs.h >>conftest.$ac_ext
5246 cat >>conftest.$ac_ext <<_ACEOF
5247 /* end confdefs.h. */
5248 @%:@include <minix/config.h>
5249 _ACEOF
5250 if { (ac_try="$ac_cpp conftest.$ac_ext"
5251 case "(($ac_try" in
5252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5253 *) ac_try_echo=$ac_try;;
5254 esac
5255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5256 $as_echo "$ac_try_echo") >&5
5257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5258 ac_status=$?
5259 grep -v '^ *+' conftest.er1 >conftest.err
5260 rm -f conftest.er1
5261 cat conftest.err >&5
5262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } >/dev/null && {
5264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5265 test ! -s conftest.err
5266 }; then
5267 ac_header_preproc=yes
5268 else
5269 $as_echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5271
5272 ac_header_preproc=no
5273 fi
5274
5275 rm -f conftest.err conftest.$ac_ext
5276 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5277 $as_echo "$ac_header_preproc" >&6; }
5278
5279 # So? What about this header?
5280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5281 yes:no: )
5282 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
5283 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5284 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
5285 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
5286 ac_header_preproc=yes
5287 ;;
5288 no:yes:* )
5289 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
5290 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
5291 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
5292 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
5293 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
5294 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
5295 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
5296 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
5297 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
5298 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
5299 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
5300 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
5301
5302 ;;
5303 esac
5304 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5305 $as_echo_n "checking for minix/config.h... " >&6; }
5306 if test "${ac_cv_header_minix_config_h+set}" = set; then
5307 $as_echo_n "(cached) " >&6
5308 else
5309 ac_cv_header_minix_config_h=$ac_header_preproc
5310 fi
5311 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5312 $as_echo "$ac_cv_header_minix_config_h" >&6; }
5313
5314 fi
5315 if test $ac_cv_header_minix_config_h = yes; then
5316 MINIX=yes
5317 else
5318 MINIX=
5319 fi
5320
5321
5322 if test "$MINIX" = yes; then
5323
5324 cat >>confdefs.h <<\_ACEOF
5325 @%:@define _POSIX_SOURCE 1
5326 _ACEOF
5327
5328
5329 cat >>confdefs.h <<\_ACEOF
5330 @%:@define _POSIX_1_SOURCE 2
5331 _ACEOF
5332
5333
5334 cat >>confdefs.h <<\_ACEOF
5335 @%:@define _MINIX 1
5336 _ACEOF
5337
5338 fi
5339
5340
5341
5342 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
5343 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5344 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
5345 $as_echo_n "(cached) " >&6
5346 else
5347 cat >conftest.$ac_ext <<_ACEOF
5348 /* confdefs.h. */
5349 _ACEOF
5350 cat confdefs.h >>conftest.$ac_ext
5351 cat >>conftest.$ac_ext <<_ACEOF
5352 /* end confdefs.h. */
5353
5354 # define __EXTENSIONS__ 1
5355 $ac_includes_default
5356 int
5357 main ()
5358 {
5359
5360 ;
5361 return 0;
5362 }
5363 _ACEOF
5364 rm -f conftest.$ac_objext
5365 if { (ac_try="$ac_compile"
5366 case "(($ac_try" in
5367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5368 *) ac_try_echo=$ac_try;;
5369 esac
5370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5371 $as_echo "$ac_try_echo") >&5
5372 (eval "$ac_compile") 2>conftest.er1
5373 ac_status=$?
5374 grep -v '^ *+' conftest.er1 >conftest.err
5375 rm -f conftest.er1
5376 cat conftest.err >&5
5377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); } && {
5379 test -z "$ac_c_werror_flag" ||
5380 test ! -s conftest.err
5381 } && test -s conftest.$ac_objext; then
5382 ac_cv_safe_to_define___extensions__=yes
5383 else
5384 $as_echo "$as_me: failed program was:" >&5
5385 sed 's/^/| /' conftest.$ac_ext >&5
5386
5387 ac_cv_safe_to_define___extensions__=no
5388 fi
5389
5390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5391 fi
5392 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5393 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5394 test $ac_cv_safe_to_define___extensions__ = yes &&
5395 cat >>confdefs.h <<\_ACEOF
5396 @%:@define __EXTENSIONS__ 1
5397 _ACEOF
5398
5399 cat >>confdefs.h <<\_ACEOF
5400 @%:@define _ALL_SOURCE 1
5401 _ACEOF
5402
5403 cat >>confdefs.h <<\_ACEOF
5404 @%:@define _GNU_SOURCE 1
5405 _ACEOF
5406
5407 cat >>confdefs.h <<\_ACEOF
5408 @%:@define _POSIX_PTHREAD_SEMANTICS 1
5409 _ACEOF
5410
5411 cat >>confdefs.h <<\_ACEOF
5412 @%:@define _TANDEM_SOURCE 1
5413 _ACEOF
5414
5415
5416
5417 ac_ext=m
5418 ac_cpp='$OBJCPP $CPPFLAGS'
5419 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5420 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5421 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
5422 if test -n "$ac_tool_prefix"; then
5423 for ac_prog in gcc objcc objc cc CC
5424 do
5425 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5426 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5427 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5428 $as_echo_n "checking for $ac_word... " >&6; }
5429 if test "${ac_cv_prog_OBJC+set}" = set; then
5430 $as_echo_n "(cached) " >&6
5431 else
5432 if test -n "$OBJC"; then
5433 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
5434 else
5435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436 for as_dir in $PATH
5437 do
5438 IFS=$as_save_IFS
5439 test -z "$as_dir" && as_dir=.
5440 for ac_exec_ext in '' $ac_executable_extensions; do
5441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5442 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
5443 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 break 2
5445 fi
5446 done
5447 done
5448 IFS=$as_save_IFS
5449
5450 fi
5451 fi
5452 OBJC=$ac_cv_prog_OBJC
5453 if test -n "$OBJC"; then
5454 { $as_echo "$as_me:$LINENO: result: $OBJC" >&5
5455 $as_echo "$OBJC" >&6; }
5456 else
5457 { $as_echo "$as_me:$LINENO: result: no" >&5
5458 $as_echo "no" >&6; }
5459 fi
5460
5461
5462 test -n "$OBJC" && break
5463 done
5464 fi
5465 if test -z "$OBJC"; then
5466 ac_ct_OBJC=$OBJC
5467 for ac_prog in gcc objcc objc cc CC
5468 do
5469 # Extract the first word of "$ac_prog", so it can be a program name with args.
5470 set dummy $ac_prog; ac_word=$2
5471 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5472 $as_echo_n "checking for $ac_word... " >&6; }
5473 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
5474 $as_echo_n "(cached) " >&6
5475 else
5476 if test -n "$ac_ct_OBJC"; then
5477 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
5478 else
5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480 for as_dir in $PATH
5481 do
5482 IFS=$as_save_IFS
5483 test -z "$as_dir" && as_dir=.
5484 for ac_exec_ext in '' $ac_executable_extensions; do
5485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5486 ac_cv_prog_ac_ct_OBJC="$ac_prog"
5487 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5488 break 2
5489 fi
5490 done
5491 done
5492 IFS=$as_save_IFS
5493
5494 fi
5495 fi
5496 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
5497 if test -n "$ac_ct_OBJC"; then
5498 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
5499 $as_echo "$ac_ct_OBJC" >&6; }
5500 else
5501 { $as_echo "$as_me:$LINENO: result: no" >&5
5502 $as_echo "no" >&6; }
5503 fi
5504
5505
5506 test -n "$ac_ct_OBJC" && break
5507 done
5508
5509 if test "x$ac_ct_OBJC" = x; then
5510 OBJC="gcc"
5511 else
5512 case $cross_compiling:$ac_tool_warned in
5513 yes:)
5514 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5515 whose name does not start with the host triplet. If you think this
5516 configuration is useful to you, please write to autoconf@gnu.org." >&5
5517 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5518 whose name does not start with the host triplet. If you think this
5519 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5520 ac_tool_warned=yes ;;
5521 esac
5522 OBJC=$ac_ct_OBJC
5523 fi
5524 fi
5525
5526 # Provide some information about the compiler.
5527 $as_echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
5528 set X $ac_compile
5529 ac_compiler=$2
5530 { (ac_try="$ac_compiler --version >&5"
5531 case "(($ac_try" in
5532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5533 *) ac_try_echo=$ac_try;;
5534 esac
5535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5536 $as_echo "$ac_try_echo") >&5
5537 (eval "$ac_compiler --version >&5") 2>&5
5538 ac_status=$?
5539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); }
5541 { (ac_try="$ac_compiler -v >&5"
5542 case "(($ac_try" in
5543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5544 *) ac_try_echo=$ac_try;;
5545 esac
5546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5547 $as_echo "$ac_try_echo") >&5
5548 (eval "$ac_compiler -v >&5") 2>&5
5549 ac_status=$?
5550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); }
5552 { (ac_try="$ac_compiler -V >&5"
5553 case "(($ac_try" in
5554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5555 *) ac_try_echo=$ac_try;;
5556 esac
5557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5558 $as_echo "$ac_try_echo") >&5
5559 (eval "$ac_compiler -V >&5") 2>&5
5560 ac_status=$?
5561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562 (exit $ac_status); }
5563
5564 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
5565 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
5566 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
5567 $as_echo_n "(cached) " >&6
5568 else
5569 cat >conftest.$ac_ext <<_ACEOF
5570 /* confdefs.h. */
5571 _ACEOF
5572 cat confdefs.h >>conftest.$ac_ext
5573 cat >>conftest.$ac_ext <<_ACEOF
5574 /* end confdefs.h. */
5575
5576 int
5577 main ()
5578 {
5579 #ifndef __GNUC__
5580 choke me
5581 #endif
5582
5583 ;
5584 return 0;
5585 }
5586 _ACEOF
5587 rm -f conftest.$ac_objext
5588 if { (ac_try="$ac_compile"
5589 case "(($ac_try" in
5590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5591 *) ac_try_echo=$ac_try;;
5592 esac
5593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5594 $as_echo "$ac_try_echo") >&5
5595 (eval "$ac_compile") 2>conftest.er1
5596 ac_status=$?
5597 grep -v '^ *+' conftest.er1 >conftest.err
5598 rm -f conftest.er1
5599 cat conftest.err >&5
5600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); } && {
5602 test -z "$ac_objc_werror_flag" ||
5603 test ! -s conftest.err
5604 } && test -s conftest.$ac_objext; then
5605 ac_compiler_gnu=yes
5606 else
5607 $as_echo "$as_me: failed program was:" >&5
5608 sed 's/^/| /' conftest.$ac_ext >&5
5609
5610 ac_compiler_gnu=no
5611 fi
5612
5613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5614 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
5615
5616 fi
5617 { $as_echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
5618 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
5619 if test $ac_compiler_gnu = yes; then
5620 GOBJC=yes
5621 else
5622 GOBJC=
5623 fi
5624 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
5625 ac_save_OBJCFLAGS=$OBJCFLAGS
5626 { $as_echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
5627 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
5628 if test "${ac_cv_prog_objc_g+set}" = set; then
5629 $as_echo_n "(cached) " >&6
5630 else
5631 ac_save_objc_werror_flag=$ac_objc_werror_flag
5632 ac_objc_werror_flag=yes
5633 ac_cv_prog_objc_g=no
5634 OBJCFLAGS="-g"
5635 cat >conftest.$ac_ext <<_ACEOF
5636 /* confdefs.h. */
5637 _ACEOF
5638 cat confdefs.h >>conftest.$ac_ext
5639 cat >>conftest.$ac_ext <<_ACEOF
5640 /* end confdefs.h. */
5641
5642 int
5643 main ()
5644 {
5645
5646 ;
5647 return 0;
5648 }
5649 _ACEOF
5650 rm -f conftest.$ac_objext
5651 if { (ac_try="$ac_compile"
5652 case "(($ac_try" in
5653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5654 *) ac_try_echo=$ac_try;;
5655 esac
5656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5657 $as_echo "$ac_try_echo") >&5
5658 (eval "$ac_compile") 2>conftest.er1
5659 ac_status=$?
5660 grep -v '^ *+' conftest.er1 >conftest.err
5661 rm -f conftest.er1
5662 cat conftest.err >&5
5663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); } && {
5665 test -z "$ac_objc_werror_flag" ||
5666 test ! -s conftest.err
5667 } && test -s conftest.$ac_objext; then
5668 ac_cv_prog_objc_g=yes
5669 else
5670 $as_echo "$as_me: failed program was:" >&5
5671 sed 's/^/| /' conftest.$ac_ext >&5
5672
5673 OBJCFLAGS=""
5674 cat >conftest.$ac_ext <<_ACEOF
5675 /* confdefs.h. */
5676 _ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h. */
5680
5681 int
5682 main ()
5683 {
5684
5685 ;
5686 return 0;
5687 }
5688 _ACEOF
5689 rm -f conftest.$ac_objext
5690 if { (ac_try="$ac_compile"
5691 case "(($ac_try" in
5692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5693 *) ac_try_echo=$ac_try;;
5694 esac
5695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5696 $as_echo "$ac_try_echo") >&5
5697 (eval "$ac_compile") 2>conftest.er1
5698 ac_status=$?
5699 grep -v '^ *+' conftest.er1 >conftest.err
5700 rm -f conftest.er1
5701 cat conftest.err >&5
5702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); } && {
5704 test -z "$ac_objc_werror_flag" ||
5705 test ! -s conftest.err
5706 } && test -s conftest.$ac_objext; then
5707 :
5708 else
5709 $as_echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.$ac_ext >&5
5711
5712 ac_objc_werror_flag=$ac_save_objc_werror_flag
5713 OBJCFLAGS="-g"
5714 cat >conftest.$ac_ext <<_ACEOF
5715 /* confdefs.h. */
5716 _ACEOF
5717 cat confdefs.h >>conftest.$ac_ext
5718 cat >>conftest.$ac_ext <<_ACEOF
5719 /* end confdefs.h. */
5720
5721 int
5722 main ()
5723 {
5724
5725 ;
5726 return 0;
5727 }
5728 _ACEOF
5729 rm -f conftest.$ac_objext
5730 if { (ac_try="$ac_compile"
5731 case "(($ac_try" in
5732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5733 *) ac_try_echo=$ac_try;;
5734 esac
5735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5736 $as_echo "$ac_try_echo") >&5
5737 (eval "$ac_compile") 2>conftest.er1
5738 ac_status=$?
5739 grep -v '^ *+' conftest.er1 >conftest.err
5740 rm -f conftest.er1
5741 cat conftest.err >&5
5742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } && {
5744 test -z "$ac_objc_werror_flag" ||
5745 test ! -s conftest.err
5746 } && test -s conftest.$ac_objext; then
5747 ac_cv_prog_objc_g=yes
5748 else
5749 $as_echo "$as_me: failed program was:" >&5
5750 sed 's/^/| /' conftest.$ac_ext >&5
5751
5752
5753 fi
5754
5755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5756 fi
5757
5758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5759 fi
5760
5761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5762 ac_objc_werror_flag=$ac_save_objc_werror_flag
5763 fi
5764 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
5765 $as_echo "$ac_cv_prog_objc_g" >&6; }
5766 if test "$ac_test_OBJCFLAGS" = set; then
5767 OBJCFLAGS=$ac_save_OBJCFLAGS
5768 elif test $ac_cv_prog_objc_g = yes; then
5769 if test "$GOBJC" = yes; then
5770 OBJCFLAGS="-g -O2"
5771 else
5772 OBJCFLAGS="-g"
5773 fi
5774 else
5775 if test "$GOBJC" = yes; then
5776 OBJCFLAGS="-O2"
5777 else
5778 OBJCFLAGS=
5779 fi
5780 fi
5781 ac_ext=c
5782 ac_cpp='$CPP $CPPFLAGS'
5783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5786
5787 depcc="$OBJC" am_compiler_list='gcc3 gcc'
5788
5789 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5790 $as_echo_n "checking dependency style of $depcc... " >&6; }
5791 if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
5792 $as_echo_n "(cached) " >&6
5793 else
5794 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5795 # We make a subdir and do the tests there. Otherwise we can end up
5796 # making bogus files that we don't know about and never remove. For
5797 # instance it was reported that on HP-UX the gcc test will end up
5798 # making a dummy file named `D' -- because `-MD' means `put the output
5799 # in D'.
5800 mkdir conftest.dir
5801 # Copy depcomp to subdir because otherwise we won't find it if we're
5802 # using a relative directory.
5803 cp "$am_depcomp" conftest.dir
5804 cd conftest.dir
5805 # We will build objects and dependencies in a subdirectory because
5806 # it helps to detect inapplicable dependency modes. For instance
5807 # both Tru64's cc and ICC support -MD to output dependencies as a
5808 # side effect of compilation, but ICC will put the dependencies in
5809 # the current directory while Tru64 will put them in the object
5810 # directory.
5811 mkdir sub
5812
5813 am_cv_OBJC_dependencies_compiler_type=none
5814 if test "$am_compiler_list" = ""; then
5815 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5816 fi
5817 am__universal=false
5818
5819
5820 for depmode in $am_compiler_list; do
5821 # Setup a source with many dependencies, because some compilers
5822 # like to wrap large dependency lists on column 80 (with \), and
5823 # we should not choose a depcomp mode which is confused by this.
5824 #
5825 # We need to recreate these files for each test, as the compiler may
5826 # overwrite some of them when testing with obscure command lines.
5827 # This happens at least with the AIX C compiler.
5828 : > sub/conftest.c
5829 for i in 1 2 3 4 5 6; do
5830 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5831 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5832 # Solaris 8's {/usr,}/bin/sh.
5833 touch sub/conftst$i.h
5834 done
5835 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5836
5837 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5838 # mode. It turns out that the SunPro C++ compiler does not properly
5839 # handle `-M -o', and we need to detect this. Also, some Intel
5840 # versions had trouble with output in subdirs
5841 am__obj=sub/conftest.${OBJEXT-o}
5842 am__minus_obj="-o $am__obj"
5843 case $depmode in
5844 gcc)
5845 # This depmode causes a compiler race in universal mode.
5846 test "$am__universal" = false || continue
5847 ;;
5848 nosideeffect)
5849 # after this tag, mechanisms are not by side-effect, so they'll
5850 # only be used when explicitly requested
5851 if test "x$enable_dependency_tracking" = xyes; then
5852 continue
5853 else
5854 break
5855 fi
5856 ;;
5857 msvisualcpp | msvcmsys)
5858 # This compiler won't grok `-c -o', but also, the minuso test has
5859 # not run yet. These depmodes are late enough in the game, and
5860 # so weak that their functioning should not be impacted.
5861 am__obj=conftest.${OBJEXT-o}
5862 am__minus_obj=
5863 ;;
5864 none) break ;;
5865 esac
5866 if depmode=$depmode \
5867 source=sub/conftest.c object=$am__obj \
5868 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5869 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5870 >/dev/null 2>conftest.err &&
5871 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5872 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5873 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5874 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5875 # icc doesn't choke on unknown options, it will just issue warnings
5876 # or remarks (even with -Werror). So we grep stderr for any message
5877 # that says an option was ignored or not supported.
5878 # When given -MP, icc 7.0 and 7.1 complain thusly:
5879 # icc: Command line warning: ignoring option '-M'; no argument required
5880 # The diagnosis changed in icc 8.0:
5881 # icc: Command line remark: option '-MP' not supported
5882 if (grep 'ignoring option' conftest.err ||
5883 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5884 am_cv_OBJC_dependencies_compiler_type=$depmode
5885 break
5886 fi
5887 fi
5888 done
5889
5890 cd ..
5891 rm -rf conftest.dir
5892 else
5893 am_cv_OBJC_dependencies_compiler_type=none
5894 fi
5895
5896 fi
5897 { $as_echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
5898 $as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; }
5899 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
5900
5901 if
5902 test "x$enable_dependency_tracking" != xno \
5903 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
5904 am__fastdepOBJC_TRUE=
5905 am__fastdepOBJC_FALSE='#'
5906 else
5907 am__fastdepOBJC_TRUE='#'
5908 am__fastdepOBJC_FALSE=
5909 fi
5910
5911
5912 ac_ext=c
5913 ac_cpp='$CPP $CPPFLAGS'
5914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5917 if test -n "$ac_tool_prefix"; then
5918 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5919 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5920 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5921 $as_echo_n "checking for $ac_word... " >&6; }
5922 if test "${ac_cv_prog_CC+set}" = set; then
5923 $as_echo_n "(cached) " >&6
5924 else
5925 if test -n "$CC"; then
5926 ac_cv_prog_CC="$CC" # Let the user override the test.
5927 else
5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 for as_dir in $PATH
5930 do
5931 IFS=$as_save_IFS
5932 test -z "$as_dir" && as_dir=.
5933 for ac_exec_ext in '' $ac_executable_extensions; do
5934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5935 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5936 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5937 break 2
5938 fi
5939 done
5940 done
5941 IFS=$as_save_IFS
5942
5943 fi
5944 fi
5945 CC=$ac_cv_prog_CC
5946 if test -n "$CC"; then
5947 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5948 $as_echo "$CC" >&6; }
5949 else
5950 { $as_echo "$as_me:$LINENO: result: no" >&5
5951 $as_echo "no" >&6; }
5952 fi
5953
5954
5955 fi
5956 if test -z "$ac_cv_prog_CC"; then
5957 ac_ct_CC=$CC
5958 # Extract the first word of "gcc", so it can be a program name with args.
5959 set dummy gcc; ac_word=$2
5960 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5961 $as_echo_n "checking for $ac_word... " >&6; }
5962 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5963 $as_echo_n "(cached) " >&6
5964 else
5965 if test -n "$ac_ct_CC"; then
5966 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5967 else
5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969 for as_dir in $PATH
5970 do
5971 IFS=$as_save_IFS
5972 test -z "$as_dir" && as_dir=.
5973 for ac_exec_ext in '' $ac_executable_extensions; do
5974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5975 ac_cv_prog_ac_ct_CC="gcc"
5976 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5977 break 2
5978 fi
5979 done
5980 done
5981 IFS=$as_save_IFS
5982
5983 fi
5984 fi
5985 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5986 if test -n "$ac_ct_CC"; then
5987 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5988 $as_echo "$ac_ct_CC" >&6; }
5989 else
5990 { $as_echo "$as_me:$LINENO: result: no" >&5
5991 $as_echo "no" >&6; }
5992 fi
5993
5994 if test "x$ac_ct_CC" = x; then
5995 CC=""
5996 else
5997 case $cross_compiling:$ac_tool_warned in
5998 yes:)
5999 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6000 whose name does not start with the host triplet. If you think this
6001 configuration is useful to you, please write to autoconf@gnu.org." >&5
6002 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6003 whose name does not start with the host triplet. If you think this
6004 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6005 ac_tool_warned=yes ;;
6006 esac
6007 CC=$ac_ct_CC
6008 fi
6009 else
6010 CC="$ac_cv_prog_CC"
6011 fi
6012
6013 if test -z "$CC"; then
6014 if test -n "$ac_tool_prefix"; then
6015 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6016 set dummy ${ac_tool_prefix}cc; ac_word=$2
6017 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6018 $as_echo_n "checking for $ac_word... " >&6; }
6019 if test "${ac_cv_prog_CC+set}" = set; then
6020 $as_echo_n "(cached) " >&6
6021 else
6022 if test -n "$CC"; then
6023 ac_cv_prog_CC="$CC" # Let the user override the test.
6024 else
6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 for as_dir in $PATH
6027 do
6028 IFS=$as_save_IFS
6029 test -z "$as_dir" && as_dir=.
6030 for ac_exec_ext in '' $ac_executable_extensions; do
6031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6032 ac_cv_prog_CC="${ac_tool_prefix}cc"
6033 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6034 break 2
6035 fi
6036 done
6037 done
6038 IFS=$as_save_IFS
6039
6040 fi
6041 fi
6042 CC=$ac_cv_prog_CC
6043 if test -n "$CC"; then
6044 { $as_echo "$as_me:$LINENO: result: $CC" >&5
6045 $as_echo "$CC" >&6; }
6046 else
6047 { $as_echo "$as_me:$LINENO: result: no" >&5
6048 $as_echo "no" >&6; }
6049 fi
6050
6051
6052 fi
6053 fi
6054 if test -z "$CC"; then
6055 # Extract the first word of "cc", so it can be a program name with args.
6056 set dummy cc; ac_word=$2
6057 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6058 $as_echo_n "checking for $ac_word... " >&6; }
6059 if test "${ac_cv_prog_CC+set}" = set; then
6060 $as_echo_n "(cached) " >&6
6061 else
6062 if test -n "$CC"; then
6063 ac_cv_prog_CC="$CC" # Let the user override the test.
6064 else
6065 ac_prog_rejected=no
6066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067 for as_dir in $PATH
6068 do
6069 IFS=$as_save_IFS
6070 test -z "$as_dir" && as_dir=.
6071 for ac_exec_ext in '' $ac_executable_extensions; do
6072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6073 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6074 ac_prog_rejected=yes
6075 continue
6076 fi
6077 ac_cv_prog_CC="cc"
6078 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6079 break 2
6080 fi
6081 done
6082 done
6083 IFS=$as_save_IFS
6084
6085 if test $ac_prog_rejected = yes; then
6086 # We found a bogon in the path, so make sure we never use it.
6087 set dummy $ac_cv_prog_CC
6088 shift
6089 if test $@%:@ != 0; then
6090 # We chose a different compiler from the bogus one.
6091 # However, it has the same basename, so the bogon will be chosen
6092 # first if we set CC to just the basename; use the full file name.
6093 shift
6094 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6095 fi
6096 fi
6097 fi
6098 fi
6099 CC=$ac_cv_prog_CC
6100 if test -n "$CC"; then
6101 { $as_echo "$as_me:$LINENO: result: $CC" >&5
6102 $as_echo "$CC" >&6; }
6103 else
6104 { $as_echo "$as_me:$LINENO: result: no" >&5
6105 $as_echo "no" >&6; }
6106 fi
6107
6108
6109 fi
6110 if test -z "$CC"; then
6111 if test -n "$ac_tool_prefix"; then
6112 for ac_prog in cl.exe
6113 do
6114 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6115 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6116 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6117 $as_echo_n "checking for $ac_word... " >&6; }
6118 if test "${ac_cv_prog_CC+set}" = set; then
6119 $as_echo_n "(cached) " >&6
6120 else
6121 if test -n "$CC"; then
6122 ac_cv_prog_CC="$CC" # Let the user override the test.
6123 else
6124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125 for as_dir in $PATH
6126 do
6127 IFS=$as_save_IFS
6128 test -z "$as_dir" && as_dir=.
6129 for ac_exec_ext in '' $ac_executable_extensions; do
6130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6131 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6132 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6133 break 2
6134 fi
6135 done
6136 done
6137 IFS=$as_save_IFS
6138
6139 fi
6140 fi
6141 CC=$ac_cv_prog_CC
6142 if test -n "$CC"; then
6143 { $as_echo "$as_me:$LINENO: result: $CC" >&5
6144 $as_echo "$CC" >&6; }
6145 else
6146 { $as_echo "$as_me:$LINENO: result: no" >&5
6147 $as_echo "no" >&6; }
6148 fi
6149
6150
6151 test -n "$CC" && break
6152 done
6153 fi
6154 if test -z "$CC"; then
6155 ac_ct_CC=$CC
6156 for ac_prog in cl.exe
6157 do
6158 # Extract the first word of "$ac_prog", so it can be a program name with args.
6159 set dummy $ac_prog; ac_word=$2
6160 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6161 $as_echo_n "checking for $ac_word... " >&6; }
6162 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6163 $as_echo_n "(cached) " >&6
6164 else
6165 if test -n "$ac_ct_CC"; then
6166 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6167 else
6168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169 for as_dir in $PATH
6170 do
6171 IFS=$as_save_IFS
6172 test -z "$as_dir" && as_dir=.
6173 for ac_exec_ext in '' $ac_executable_extensions; do
6174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6175 ac_cv_prog_ac_ct_CC="$ac_prog"
6176 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6177 break 2
6178 fi
6179 done
6180 done
6181 IFS=$as_save_IFS
6182
6183 fi
6184 fi
6185 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6186 if test -n "$ac_ct_CC"; then
6187 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6188 $as_echo "$ac_ct_CC" >&6; }
6189 else
6190 { $as_echo "$as_me:$LINENO: result: no" >&5
6191 $as_echo "no" >&6; }
6192 fi
6193
6194
6195 test -n "$ac_ct_CC" && break
6196 done
6197
6198 if test "x$ac_ct_CC" = x; then
6199 CC=""
6200 else
6201 case $cross_compiling:$ac_tool_warned in
6202 yes:)
6203 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6204 whose name does not start with the host triplet. If you think this
6205 configuration is useful to you, please write to autoconf@gnu.org." >&5
6206 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6207 whose name does not start with the host triplet. If you think this
6208 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6209 ac_tool_warned=yes ;;
6210 esac
6211 CC=$ac_ct_CC
6212 fi
6213 fi
6214
6215 fi
6216
6217
6218 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
6219 See \`config.log' for more details." >&5
6220 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
6221 See \`config.log' for more details." >&2;}
6222 { (exit 1); exit 1; }; }
6223
6224 # Provide some information about the compiler.
6225 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
6226 set X $ac_compile
6227 ac_compiler=$2
6228 { (ac_try="$ac_compiler --version >&5"
6229 case "(($ac_try" in
6230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6231 *) ac_try_echo=$ac_try;;
6232 esac
6233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6234 $as_echo "$ac_try_echo") >&5
6235 (eval "$ac_compiler --version >&5") 2>&5
6236 ac_status=$?
6237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); }
6239 { (ac_try="$ac_compiler -v >&5"
6240 case "(($ac_try" in
6241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6242 *) ac_try_echo=$ac_try;;
6243 esac
6244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6245 $as_echo "$ac_try_echo") >&5
6246 (eval "$ac_compiler -v >&5") 2>&5
6247 ac_status=$?
6248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); }
6250 { (ac_try="$ac_compiler -V >&5"
6251 case "(($ac_try" in
6252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6253 *) ac_try_echo=$ac_try;;
6254 esac
6255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6256 $as_echo "$ac_try_echo") >&5
6257 (eval "$ac_compiler -V >&5") 2>&5
6258 ac_status=$?
6259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); }
6261
6262 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
6263 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6264 if test "${ac_cv_c_compiler_gnu+set}" = set; then
6265 $as_echo_n "(cached) " >&6
6266 else
6267 cat >conftest.$ac_ext <<_ACEOF
6268 /* confdefs.h. */
6269 _ACEOF
6270 cat confdefs.h >>conftest.$ac_ext
6271 cat >>conftest.$ac_ext <<_ACEOF
6272 /* end confdefs.h. */
6273
6274 int
6275 main ()
6276 {
6277 #ifndef __GNUC__
6278 choke me
6279 #endif
6280
6281 ;
6282 return 0;
6283 }
6284 _ACEOF
6285 rm -f conftest.$ac_objext
6286 if { (ac_try="$ac_compile"
6287 case "(($ac_try" in
6288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6289 *) ac_try_echo=$ac_try;;
6290 esac
6291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6292 $as_echo "$ac_try_echo") >&5
6293 (eval "$ac_compile") 2>conftest.er1
6294 ac_status=$?
6295 grep -v '^ *+' conftest.er1 >conftest.err
6296 rm -f conftest.er1
6297 cat conftest.err >&5
6298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); } && {
6300 test -z "$ac_c_werror_flag" ||
6301 test ! -s conftest.err
6302 } && test -s conftest.$ac_objext; then
6303 ac_compiler_gnu=yes
6304 else
6305 $as_echo "$as_me: failed program was:" >&5
6306 sed 's/^/| /' conftest.$ac_ext >&5
6307
6308 ac_compiler_gnu=no
6309 fi
6310
6311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6312 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6313
6314 fi
6315 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6316 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6317 if test $ac_compiler_gnu = yes; then
6318 GCC=yes
6319 else
6320 GCC=
6321 fi
6322 ac_test_CFLAGS=${CFLAGS+set}
6323 ac_save_CFLAGS=$CFLAGS
6324 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
6325 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6326 if test "${ac_cv_prog_cc_g+set}" = set; then
6327 $as_echo_n "(cached) " >&6
6328 else
6329 ac_save_c_werror_flag=$ac_c_werror_flag
6330 ac_c_werror_flag=yes
6331 ac_cv_prog_cc_g=no
6332 CFLAGS="-g"
6333 cat >conftest.$ac_ext <<_ACEOF
6334 /* confdefs.h. */
6335 _ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h. */
6339
6340 int
6341 main ()
6342 {
6343
6344 ;
6345 return 0;
6346 }
6347 _ACEOF
6348 rm -f conftest.$ac_objext
6349 if { (ac_try="$ac_compile"
6350 case "(($ac_try" in
6351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6352 *) ac_try_echo=$ac_try;;
6353 esac
6354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6355 $as_echo "$ac_try_echo") >&5
6356 (eval "$ac_compile") 2>conftest.er1
6357 ac_status=$?
6358 grep -v '^ *+' conftest.er1 >conftest.err
6359 rm -f conftest.er1
6360 cat conftest.err >&5
6361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } && {
6363 test -z "$ac_c_werror_flag" ||
6364 test ! -s conftest.err
6365 } && test -s conftest.$ac_objext; then
6366 ac_cv_prog_cc_g=yes
6367 else
6368 $as_echo "$as_me: failed program was:" >&5
6369 sed 's/^/| /' conftest.$ac_ext >&5
6370
6371 CFLAGS=""
6372 cat >conftest.$ac_ext <<_ACEOF
6373 /* confdefs.h. */
6374 _ACEOF
6375 cat confdefs.h >>conftest.$ac_ext
6376 cat >>conftest.$ac_ext <<_ACEOF
6377 /* end confdefs.h. */
6378
6379 int
6380 main ()
6381 {
6382
6383 ;
6384 return 0;
6385 }
6386 _ACEOF
6387 rm -f conftest.$ac_objext
6388 if { (ac_try="$ac_compile"
6389 case "(($ac_try" in
6390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6391 *) ac_try_echo=$ac_try;;
6392 esac
6393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6394 $as_echo "$ac_try_echo") >&5
6395 (eval "$ac_compile") 2>conftest.er1
6396 ac_status=$?
6397 grep -v '^ *+' conftest.er1 >conftest.err
6398 rm -f conftest.er1
6399 cat conftest.err >&5
6400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); } && {
6402 test -z "$ac_c_werror_flag" ||
6403 test ! -s conftest.err
6404 } && test -s conftest.$ac_objext; then
6405 :
6406 else
6407 $as_echo "$as_me: failed program was:" >&5
6408 sed 's/^/| /' conftest.$ac_ext >&5
6409
6410 ac_c_werror_flag=$ac_save_c_werror_flag
6411 CFLAGS="-g"
6412 cat >conftest.$ac_ext <<_ACEOF
6413 /* confdefs.h. */
6414 _ACEOF
6415 cat confdefs.h >>conftest.$ac_ext
6416 cat >>conftest.$ac_ext <<_ACEOF
6417 /* end confdefs.h. */
6418
6419 int
6420 main ()
6421 {
6422
6423 ;
6424 return 0;
6425 }
6426 _ACEOF
6427 rm -f conftest.$ac_objext
6428 if { (ac_try="$ac_compile"
6429 case "(($ac_try" in
6430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6431 *) ac_try_echo=$ac_try;;
6432 esac
6433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6434 $as_echo "$ac_try_echo") >&5
6435 (eval "$ac_compile") 2>conftest.er1
6436 ac_status=$?
6437 grep -v '^ *+' conftest.er1 >conftest.err
6438 rm -f conftest.er1
6439 cat conftest.err >&5
6440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); } && {
6442 test -z "$ac_c_werror_flag" ||
6443 test ! -s conftest.err
6444 } && test -s conftest.$ac_objext; then
6445 ac_cv_prog_cc_g=yes
6446 else
6447 $as_echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6449
6450
6451 fi
6452
6453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6454 fi
6455
6456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6457 fi
6458
6459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6460 ac_c_werror_flag=$ac_save_c_werror_flag
6461 fi
6462 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6463 $as_echo "$ac_cv_prog_cc_g" >&6; }
6464 if test "$ac_test_CFLAGS" = set; then
6465 CFLAGS=$ac_save_CFLAGS
6466 elif test $ac_cv_prog_cc_g = yes; then
6467 if test "$GCC" = yes; then
6468 CFLAGS="-g -O2"
6469 else
6470 CFLAGS="-g"
6471 fi
6472 else
6473 if test "$GCC" = yes; then
6474 CFLAGS="-O2"
6475 else
6476 CFLAGS=
6477 fi
6478 fi
6479 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6480 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6481 if test "${ac_cv_prog_cc_c89+set}" = set; then
6482 $as_echo_n "(cached) " >&6
6483 else
6484 ac_cv_prog_cc_c89=no
6485 ac_save_CC=$CC
6486 cat >conftest.$ac_ext <<_ACEOF
6487 /* confdefs.h. */
6488 _ACEOF
6489 cat confdefs.h >>conftest.$ac_ext
6490 cat >>conftest.$ac_ext <<_ACEOF
6491 /* end confdefs.h. */
6492 #include <stdarg.h>
6493 #include <stdio.h>
6494 #include <sys/types.h>
6495 #include <sys/stat.h>
6496 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6497 struct buf { int x; };
6498 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6499 static char *e (p, i)
6500 char **p;
6501 int i;
6502 {
6503 return p[i];
6504 }
6505 static char *f (char * (*g) (char **, int), char **p, ...)
6506 {
6507 char *s;
6508 va_list v;
6509 va_start (v,p);
6510 s = g (p, va_arg (v,int));
6511 va_end (v);
6512 return s;
6513 }
6514
6515 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6516 function prototypes and stuff, but not '\xHH' hex character constants.
6517 These don't provoke an error unfortunately, instead are silently treated
6518 as 'x'. The following induces an error, until -std is added to get
6519 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6520 array size at least. It's necessary to write '\x00'==0 to get something
6521 that's true only with -std. */
6522 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6523
6524 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6525 inside strings and character constants. */
6526 #define FOO(x) 'x'
6527 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6528
6529 int test (int i, double x);
6530 struct s1 {int (*f) (int a);};
6531 struct s2 {int (*f) (double a);};
6532 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6533 int argc;
6534 char **argv;
6535 int
6536 main ()
6537 {
6538 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6539 ;
6540 return 0;
6541 }
6542 _ACEOF
6543 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6544 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6545 do
6546 CC="$ac_save_CC $ac_arg"
6547 rm -f conftest.$ac_objext
6548 if { (ac_try="$ac_compile"
6549 case "(($ac_try" in
6550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6551 *) ac_try_echo=$ac_try;;
6552 esac
6553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6554 $as_echo "$ac_try_echo") >&5
6555 (eval "$ac_compile") 2>conftest.er1
6556 ac_status=$?
6557 grep -v '^ *+' conftest.er1 >conftest.err
6558 rm -f conftest.er1
6559 cat conftest.err >&5
6560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); } && {
6562 test -z "$ac_c_werror_flag" ||
6563 test ! -s conftest.err
6564 } && test -s conftest.$ac_objext; then
6565 ac_cv_prog_cc_c89=$ac_arg
6566 else
6567 $as_echo "$as_me: failed program was:" >&5
6568 sed 's/^/| /' conftest.$ac_ext >&5
6569
6570
6571 fi
6572
6573 rm -f core conftest.err conftest.$ac_objext
6574 test "x$ac_cv_prog_cc_c89" != "xno" && break
6575 done
6576 rm -f conftest.$ac_ext
6577 CC=$ac_save_CC
6578
6579 fi
6580 # AC_CACHE_VAL
6581 case "x$ac_cv_prog_cc_c89" in
6582 x)
6583 { $as_echo "$as_me:$LINENO: result: none needed" >&5
6584 $as_echo "none needed" >&6; } ;;
6585 xno)
6586 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
6587 $as_echo "unsupported" >&6; } ;;
6588 *)
6589 CC="$CC $ac_cv_prog_cc_c89"
6590 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6591 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6592 esac
6593
6594
6595 ac_ext=c
6596 ac_cpp='$CPP $CPPFLAGS'
6597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6600
6601 depcc="$CC" am_compiler_list=
6602
6603 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6604 $as_echo_n "checking dependency style of $depcc... " >&6; }
6605 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6606 $as_echo_n "(cached) " >&6
6607 else
6608 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6609 # We make a subdir and do the tests there. Otherwise we can end up
6610 # making bogus files that we don't know about and never remove. For
6611 # instance it was reported that on HP-UX the gcc test will end up
6612 # making a dummy file named `D' -- because `-MD' means `put the output
6613 # in D'.
6614 mkdir conftest.dir
6615 # Copy depcomp to subdir because otherwise we won't find it if we're
6616 # using a relative directory.
6617 cp "$am_depcomp" conftest.dir
6618 cd conftest.dir
6619 # We will build objects and dependencies in a subdirectory because
6620 # it helps to detect inapplicable dependency modes. For instance
6621 # both Tru64's cc and ICC support -MD to output dependencies as a
6622 # side effect of compilation, but ICC will put the dependencies in
6623 # the current directory while Tru64 will put them in the object
6624 # directory.
6625 mkdir sub
6626
6627 am_cv_CC_dependencies_compiler_type=none
6628 if test "$am_compiler_list" = ""; then
6629 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6630 fi
6631 am__universal=false
6632 case " $depcc " in #(
6633 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6634 esac
6635
6636 for depmode in $am_compiler_list; do
6637 # Setup a source with many dependencies, because some compilers
6638 # like to wrap large dependency lists on column 80 (with \), and
6639 # we should not choose a depcomp mode which is confused by this.
6640 #
6641 # We need to recreate these files for each test, as the compiler may
6642 # overwrite some of them when testing with obscure command lines.
6643 # This happens at least with the AIX C compiler.
6644 : > sub/conftest.c
6645 for i in 1 2 3 4 5 6; do
6646 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6647 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6648 # Solaris 8's {/usr,}/bin/sh.
6649 touch sub/conftst$i.h
6650 done
6651 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6652
6653 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6654 # mode. It turns out that the SunPro C++ compiler does not properly
6655 # handle `-M -o', and we need to detect this. Also, some Intel
6656 # versions had trouble with output in subdirs
6657 am__obj=sub/conftest.${OBJEXT-o}
6658 am__minus_obj="-o $am__obj"
6659 case $depmode in
6660 gcc)
6661 # This depmode causes a compiler race in universal mode.
6662 test "$am__universal" = false || continue
6663 ;;
6664 nosideeffect)
6665 # after this tag, mechanisms are not by side-effect, so they'll
6666 # only be used when explicitly requested
6667 if test "x$enable_dependency_tracking" = xyes; then
6668 continue
6669 else
6670 break
6671 fi
6672 ;;
6673 msvisualcpp | msvcmsys)
6674 # This compiler won't grok `-c -o', but also, the minuso test has
6675 # not run yet. These depmodes are late enough in the game, and
6676 # so weak that their functioning should not be impacted.
6677 am__obj=conftest.${OBJEXT-o}
6678 am__minus_obj=
6679 ;;
6680 none) break ;;
6681 esac
6682 if depmode=$depmode \
6683 source=sub/conftest.c object=$am__obj \
6684 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6685 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6686 >/dev/null 2>conftest.err &&
6687 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6688 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6689 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6690 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6691 # icc doesn't choke on unknown options, it will just issue warnings
6692 # or remarks (even with -Werror). So we grep stderr for any message
6693 # that says an option was ignored or not supported.
6694 # When given -MP, icc 7.0 and 7.1 complain thusly:
6695 # icc: Command line warning: ignoring option '-M'; no argument required
6696 # The diagnosis changed in icc 8.0:
6697 # icc: Command line remark: option '-MP' not supported
6698 if (grep 'ignoring option' conftest.err ||
6699 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6700 am_cv_CC_dependencies_compiler_type=$depmode
6701 break
6702 fi
6703 fi
6704 done
6705
6706 cd ..
6707 rm -rf conftest.dir
6708 else
6709 am_cv_CC_dependencies_compiler_type=none
6710 fi
6711
6712 fi
6713 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6714 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6715 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6716
6717 if
6718 test "x$enable_dependency_tracking" != xno \
6719 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6720 am__fastdepCC_TRUE=
6721 am__fastdepCC_FALSE='#'
6722 else
6723 am__fastdepCC_TRUE='#'
6724 am__fastdepCC_FALSE=
6725 fi
6726
6727
6728 ac_ext=m
6729 ac_cpp='$OBJCPP $CPPFLAGS'
6730 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6731 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6732 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
6733 if test -n "$ac_tool_prefix"; then
6734 for ac_prog in gcc objcc objc cc CC
6735 do
6736 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6737 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6738 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6739 $as_echo_n "checking for $ac_word... " >&6; }
6740 if test "${ac_cv_prog_OBJC+set}" = set; then
6741 $as_echo_n "(cached) " >&6
6742 else
6743 if test -n "$OBJC"; then
6744 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
6745 else
6746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747 for as_dir in $PATH
6748 do
6749 IFS=$as_save_IFS
6750 test -z "$as_dir" && as_dir=.
6751 for ac_exec_ext in '' $ac_executable_extensions; do
6752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6753 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
6754 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6755 break 2
6756 fi
6757 done
6758 done
6759 IFS=$as_save_IFS
6760
6761 fi
6762 fi
6763 OBJC=$ac_cv_prog_OBJC
6764 if test -n "$OBJC"; then
6765 { $as_echo "$as_me:$LINENO: result: $OBJC" >&5
6766 $as_echo "$OBJC" >&6; }
6767 else
6768 { $as_echo "$as_me:$LINENO: result: no" >&5
6769 $as_echo "no" >&6; }
6770 fi
6771
6772
6773 test -n "$OBJC" && break
6774 done
6775 fi
6776 if test -z "$OBJC"; then
6777 ac_ct_OBJC=$OBJC
6778 for ac_prog in gcc objcc objc cc CC
6779 do
6780 # Extract the first word of "$ac_prog", so it can be a program name with args.
6781 set dummy $ac_prog; ac_word=$2
6782 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6783 $as_echo_n "checking for $ac_word... " >&6; }
6784 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
6785 $as_echo_n "(cached) " >&6
6786 else
6787 if test -n "$ac_ct_OBJC"; then
6788 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
6789 else
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791 for as_dir in $PATH
6792 do
6793 IFS=$as_save_IFS
6794 test -z "$as_dir" && as_dir=.
6795 for ac_exec_ext in '' $ac_executable_extensions; do
6796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6797 ac_cv_prog_ac_ct_OBJC="$ac_prog"
6798 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6799 break 2
6800 fi
6801 done
6802 done
6803 IFS=$as_save_IFS
6804
6805 fi
6806 fi
6807 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
6808 if test -n "$ac_ct_OBJC"; then
6809 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
6810 $as_echo "$ac_ct_OBJC" >&6; }
6811 else
6812 { $as_echo "$as_me:$LINENO: result: no" >&5
6813 $as_echo "no" >&6; }
6814 fi
6815
6816
6817 test -n "$ac_ct_OBJC" && break
6818 done
6819
6820 if test "x$ac_ct_OBJC" = x; then
6821 OBJC="gcc"
6822 else
6823 case $cross_compiling:$ac_tool_warned in
6824 yes:)
6825 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6826 whose name does not start with the host triplet. If you think this
6827 configuration is useful to you, please write to autoconf@gnu.org." >&5
6828 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6829 whose name does not start with the host triplet. If you think this
6830 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6831 ac_tool_warned=yes ;;
6832 esac
6833 OBJC=$ac_ct_OBJC
6834 fi
6835 fi
6836
6837 # Provide some information about the compiler.
6838 $as_echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
6839 set X $ac_compile
6840 ac_compiler=$2
6841 { (ac_try="$ac_compiler --version >&5"
6842 case "(($ac_try" in
6843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6844 *) ac_try_echo=$ac_try;;
6845 esac
6846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6847 $as_echo "$ac_try_echo") >&5
6848 (eval "$ac_compiler --version >&5") 2>&5
6849 ac_status=$?
6850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); }
6852 { (ac_try="$ac_compiler -v >&5"
6853 case "(($ac_try" in
6854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6855 *) ac_try_echo=$ac_try;;
6856 esac
6857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6858 $as_echo "$ac_try_echo") >&5
6859 (eval "$ac_compiler -v >&5") 2>&5
6860 ac_status=$?
6861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); }
6863 { (ac_try="$ac_compiler -V >&5"
6864 case "(($ac_try" in
6865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6866 *) ac_try_echo=$ac_try;;
6867 esac
6868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6869 $as_echo "$ac_try_echo") >&5
6870 (eval "$ac_compiler -V >&5") 2>&5
6871 ac_status=$?
6872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); }
6874
6875 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
6876 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
6877 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
6878 $as_echo_n "(cached) " >&6
6879 else
6880 cat >conftest.$ac_ext <<_ACEOF
6881 /* confdefs.h. */
6882 _ACEOF
6883 cat confdefs.h >>conftest.$ac_ext
6884 cat >>conftest.$ac_ext <<_ACEOF
6885 /* end confdefs.h. */
6886
6887 int
6888 main ()
6889 {
6890 #ifndef __GNUC__
6891 choke me
6892 #endif
6893
6894 ;
6895 return 0;
6896 }
6897 _ACEOF
6898 rm -f conftest.$ac_objext
6899 if { (ac_try="$ac_compile"
6900 case "(($ac_try" in
6901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6902 *) ac_try_echo=$ac_try;;
6903 esac
6904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6905 $as_echo "$ac_try_echo") >&5
6906 (eval "$ac_compile") 2>conftest.er1
6907 ac_status=$?
6908 grep -v '^ *+' conftest.er1 >conftest.err
6909 rm -f conftest.er1
6910 cat conftest.err >&5
6911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); } && {
6913 test -z "$ac_objc_werror_flag" ||
6914 test ! -s conftest.err
6915 } && test -s conftest.$ac_objext; then
6916 ac_compiler_gnu=yes
6917 else
6918 $as_echo "$as_me: failed program was:" >&5
6919 sed 's/^/| /' conftest.$ac_ext >&5
6920
6921 ac_compiler_gnu=no
6922 fi
6923
6924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6925 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
6926
6927 fi
6928 { $as_echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
6929 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
6930 if test $ac_compiler_gnu = yes; then
6931 GOBJC=yes
6932 else
6933 GOBJC=
6934 fi
6935 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
6936 ac_save_OBJCFLAGS=$OBJCFLAGS
6937 { $as_echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
6938 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
6939 if test "${ac_cv_prog_objc_g+set}" = set; then
6940 $as_echo_n "(cached) " >&6
6941 else
6942 ac_save_objc_werror_flag=$ac_objc_werror_flag
6943 ac_objc_werror_flag=yes
6944 ac_cv_prog_objc_g=no
6945 OBJCFLAGS="-g"
6946 cat >conftest.$ac_ext <<_ACEOF
6947 /* confdefs.h. */
6948 _ACEOF
6949 cat confdefs.h >>conftest.$ac_ext
6950 cat >>conftest.$ac_ext <<_ACEOF
6951 /* end confdefs.h. */
6952
6953 int
6954 main ()
6955 {
6956
6957 ;
6958 return 0;
6959 }
6960 _ACEOF
6961 rm -f conftest.$ac_objext
6962 if { (ac_try="$ac_compile"
6963 case "(($ac_try" in
6964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6965 *) ac_try_echo=$ac_try;;
6966 esac
6967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6968 $as_echo "$ac_try_echo") >&5
6969 (eval "$ac_compile") 2>conftest.er1
6970 ac_status=$?
6971 grep -v '^ *+' conftest.er1 >conftest.err
6972 rm -f conftest.er1
6973 cat conftest.err >&5
6974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); } && {
6976 test -z "$ac_objc_werror_flag" ||
6977 test ! -s conftest.err
6978 } && test -s conftest.$ac_objext; then
6979 ac_cv_prog_objc_g=yes
6980 else
6981 $as_echo "$as_me: failed program was:" >&5
6982 sed 's/^/| /' conftest.$ac_ext >&5
6983
6984 OBJCFLAGS=""
6985 cat >conftest.$ac_ext <<_ACEOF
6986 /* confdefs.h. */
6987 _ACEOF
6988 cat confdefs.h >>conftest.$ac_ext
6989 cat >>conftest.$ac_ext <<_ACEOF
6990 /* end confdefs.h. */
6991
6992 int
6993 main ()
6994 {
6995
6996 ;
6997 return 0;
6998 }
6999 _ACEOF
7000 rm -f conftest.$ac_objext
7001 if { (ac_try="$ac_compile"
7002 case "(($ac_try" in
7003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7004 *) ac_try_echo=$ac_try;;
7005 esac
7006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7007 $as_echo "$ac_try_echo") >&5
7008 (eval "$ac_compile") 2>conftest.er1
7009 ac_status=$?
7010 grep -v '^ *+' conftest.er1 >conftest.err
7011 rm -f conftest.er1
7012 cat conftest.err >&5
7013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); } && {
7015 test -z "$ac_objc_werror_flag" ||
7016 test ! -s conftest.err
7017 } && test -s conftest.$ac_objext; then
7018 :
7019 else
7020 $as_echo "$as_me: failed program was:" >&5
7021 sed 's/^/| /' conftest.$ac_ext >&5
7022
7023 ac_objc_werror_flag=$ac_save_objc_werror_flag
7024 OBJCFLAGS="-g"
7025 cat >conftest.$ac_ext <<_ACEOF
7026 /* confdefs.h. */
7027 _ACEOF
7028 cat confdefs.h >>conftest.$ac_ext
7029 cat >>conftest.$ac_ext <<_ACEOF
7030 /* end confdefs.h. */
7031
7032 int
7033 main ()
7034 {
7035
7036 ;
7037 return 0;
7038 }
7039 _ACEOF
7040 rm -f conftest.$ac_objext
7041 if { (ac_try="$ac_compile"
7042 case "(($ac_try" in
7043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7044 *) ac_try_echo=$ac_try;;
7045 esac
7046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7047 $as_echo "$ac_try_echo") >&5
7048 (eval "$ac_compile") 2>conftest.er1
7049 ac_status=$?
7050 grep -v '^ *+' conftest.er1 >conftest.err
7051 rm -f conftest.er1
7052 cat conftest.err >&5
7053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } && {
7055 test -z "$ac_objc_werror_flag" ||
7056 test ! -s conftest.err
7057 } && test -s conftest.$ac_objext; then
7058 ac_cv_prog_objc_g=yes
7059 else
7060 $as_echo "$as_me: failed program was:" >&5
7061 sed 's/^/| /' conftest.$ac_ext >&5
7062
7063
7064 fi
7065
7066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7067 fi
7068
7069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7070 fi
7071
7072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7073 ac_objc_werror_flag=$ac_save_objc_werror_flag
7074 fi
7075 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
7076 $as_echo "$ac_cv_prog_objc_g" >&6; }
7077 if test "$ac_test_OBJCFLAGS" = set; then
7078 OBJCFLAGS=$ac_save_OBJCFLAGS
7079 elif test $ac_cv_prog_objc_g = yes; then
7080 if test "$GOBJC" = yes; then
7081 OBJCFLAGS="-g -O2"
7082 else
7083 OBJCFLAGS="-g"
7084 fi
7085 else
7086 if test "$GOBJC" = yes; then
7087 OBJCFLAGS="-O2"
7088 else
7089 OBJCFLAGS=
7090 fi
7091 fi
7092 ac_ext=c
7093 ac_cpp='$CPP $CPPFLAGS'
7094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7097
7098 depcc="$OBJC" am_compiler_list='gcc3 gcc'
7099
7100 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7101 $as_echo_n "checking dependency style of $depcc... " >&6; }
7102 if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
7103 $as_echo_n "(cached) " >&6
7104 else
7105 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7106 # We make a subdir and do the tests there. Otherwise we can end up
7107 # making bogus files that we don't know about and never remove. For
7108 # instance it was reported that on HP-UX the gcc test will end up
7109 # making a dummy file named `D' -- because `-MD' means `put the output
7110 # in D'.
7111 mkdir conftest.dir
7112 # Copy depcomp to subdir because otherwise we won't find it if we're
7113 # using a relative directory.
7114 cp "$am_depcomp" conftest.dir
7115 cd conftest.dir
7116 # We will build objects and dependencies in a subdirectory because
7117 # it helps to detect inapplicable dependency modes. For instance
7118 # both Tru64's cc and ICC support -MD to output dependencies as a
7119 # side effect of compilation, but ICC will put the dependencies in
7120 # the current directory while Tru64 will put them in the object
7121 # directory.
7122 mkdir sub
7123
7124 am_cv_OBJC_dependencies_compiler_type=none
7125 if test "$am_compiler_list" = ""; then
7126 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7127 fi
7128 am__universal=false
7129
7130
7131 for depmode in $am_compiler_list; do
7132 # Setup a source with many dependencies, because some compilers
7133 # like to wrap large dependency lists on column 80 (with \), and
7134 # we should not choose a depcomp mode which is confused by this.
7135 #
7136 # We need to recreate these files for each test, as the compiler may
7137 # overwrite some of them when testing with obscure command lines.
7138 # This happens at least with the AIX C compiler.
7139 : > sub/conftest.c
7140 for i in 1 2 3 4 5 6; do
7141 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7142 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7143 # Solaris 8's {/usr,}/bin/sh.
7144 touch sub/conftst$i.h
7145 done
7146 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7147
7148 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7149 # mode. It turns out that the SunPro C++ compiler does not properly
7150 # handle `-M -o', and we need to detect this. Also, some Intel
7151 # versions had trouble with output in subdirs
7152 am__obj=sub/conftest.${OBJEXT-o}
7153 am__minus_obj="-o $am__obj"
7154 case $depmode in
7155 gcc)
7156 # This depmode causes a compiler race in universal mode.
7157 test "$am__universal" = false || continue
7158 ;;
7159 nosideeffect)
7160 # after this tag, mechanisms are not by side-effect, so they'll
7161 # only be used when explicitly requested
7162 if test "x$enable_dependency_tracking" = xyes; then
7163 continue
7164 else
7165 break
7166 fi
7167 ;;
7168 msvisualcpp | msvcmsys)
7169 # This compiler won't grok `-c -o', but also, the minuso test has
7170 # not run yet. These depmodes are late enough in the game, and
7171 # so weak that their functioning should not be impacted.
7172 am__obj=conftest.${OBJEXT-o}
7173 am__minus_obj=
7174 ;;
7175 none) break ;;
7176 esac
7177 if depmode=$depmode \
7178 source=sub/conftest.c object=$am__obj \
7179 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7180 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7181 >/dev/null 2>conftest.err &&
7182 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7183 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7184 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7185 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7186 # icc doesn't choke on unknown options, it will just issue warnings
7187 # or remarks (even with -Werror). So we grep stderr for any message
7188 # that says an option was ignored or not supported.
7189 # When given -MP, icc 7.0 and 7.1 complain thusly:
7190 # icc: Command line warning: ignoring option '-M'; no argument required
7191 # The diagnosis changed in icc 8.0:
7192 # icc: Command line remark: option '-MP' not supported
7193 if (grep 'ignoring option' conftest.err ||
7194 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7195 am_cv_OBJC_dependencies_compiler_type=$depmode
7196 break
7197 fi
7198 fi
7199 done
7200
7201 cd ..
7202 rm -rf conftest.dir
7203 else
7204 am_cv_OBJC_dependencies_compiler_type=none
7205 fi
7206
7207 fi
7208 { $as_echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
7209 $as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; }
7210 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
7211
7212 if
7213 test "x$enable_dependency_tracking" != xno \
7214 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
7215 am__fastdepOBJC_TRUE=
7216 am__fastdepOBJC_FALSE='#'
7217 else
7218 am__fastdepOBJC_TRUE='#'
7219 am__fastdepOBJC_FALSE=
7220 fi
7221
7222
7223
7224
7225 if eval "test x`uname` = xDarwin"; then
7226 CFLAGS="$CFLAGS -I/opt/local/include -L/opt/local/lib"
7227 fi
7228 if eval "test x$GCC = xyes"; then
7229 CFLAGS="$CFLAGS -Wall -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE"
7230 fi
7231 if test "x$CC" != xcc; then
7232 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
7233 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7234 else
7235 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
7236 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7237 fi
7238 set dummy $CC; ac_cc=`$as_echo "$2" |
7239 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7240 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
7241 $as_echo_n "(cached) " >&6
7242 else
7243 cat >conftest.$ac_ext <<_ACEOF
7244 /* confdefs.h. */
7245 _ACEOF
7246 cat confdefs.h >>conftest.$ac_ext
7247 cat >>conftest.$ac_ext <<_ACEOF
7248 /* end confdefs.h. */
7249
7250 int
7251 main ()
7252 {
7253
7254 ;
7255 return 0;
7256 }
7257 _ACEOF
7258 # Make sure it works both with $CC and with simple cc.
7259 # We do the test twice because some compilers refuse to overwrite an
7260 # existing .o file with -o, though they will create one.
7261 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7262 rm -f conftest2.*
7263 if { (case "(($ac_try" in
7264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7265 *) ac_try_echo=$ac_try;;
7266 esac
7267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7268 $as_echo "$ac_try_echo") >&5
7269 (eval "$ac_try") 2>&5
7270 ac_status=$?
7271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } &&
7273 test -f conftest2.$ac_objext && { (case "(($ac_try" in
7274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7275 *) ac_try_echo=$ac_try;;
7276 esac
7277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7278 $as_echo "$ac_try_echo") >&5
7279 (eval "$ac_try") 2>&5
7280 ac_status=$?
7281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); };
7283 then
7284 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7285 if test "x$CC" != xcc; then
7286 # Test first that cc exists at all.
7287 if { ac_try='cc -c conftest.$ac_ext >&5'
7288 { (case "(($ac_try" in
7289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7290 *) ac_try_echo=$ac_try;;
7291 esac
7292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7293 $as_echo "$ac_try_echo") >&5
7294 (eval "$ac_try") 2>&5
7295 ac_status=$?
7296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); }; }; then
7298 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7299 rm -f conftest2.*
7300 if { (case "(($ac_try" in
7301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7302 *) ac_try_echo=$ac_try;;
7303 esac
7304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7305 $as_echo "$ac_try_echo") >&5
7306 (eval "$ac_try") 2>&5
7307 ac_status=$?
7308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); } &&
7310 test -f conftest2.$ac_objext && { (case "(($ac_try" in
7311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7312 *) ac_try_echo=$ac_try;;
7313 esac
7314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7315 $as_echo "$ac_try_echo") >&5
7316 (eval "$ac_try") 2>&5
7317 ac_status=$?
7318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319 (exit $ac_status); };
7320 then
7321 # cc works too.
7322 :
7323 else
7324 # cc exists but doesn't like -o.
7325 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7326 fi
7327 fi
7328 fi
7329 else
7330 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7331 fi
7332 rm -f core conftest*
7333
7334 fi
7335 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7336 { $as_echo "$as_me:$LINENO: result: yes" >&5
7337 $as_echo "yes" >&6; }
7338 else
7339 { $as_echo "$as_me:$LINENO: result: no" >&5
7340 $as_echo "no" >&6; }
7341
7342 cat >>confdefs.h <<\_ACEOF
7343 @%:@define NO_MINUS_C_MINUS_O 1
7344 _ACEOF
7345
7346 fi
7347
7348 # FIXME: we rely on the cache variable name because
7349 # there is no other way.
7350 set dummy $CC
7351 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7352 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7353 if test "$am_t" != yes; then
7354 # Losing compiler, so override with the script.
7355 # FIXME: It is wrong to rewrite CC.
7356 # But if we don't then we get into trouble of one sort or another.
7357 # A longer-term fix would be to have automake use am__CC in this case,
7358 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7359 CC="$am_aux_dir/compile $CC"
7360 fi
7361
7362
7363
7364 ac_ext=cpp
7365 ac_cpp='$CXXCPP $CPPFLAGS'
7366 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7367 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7368 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7369 if test -z "$CXX"; then
7370 if test -n "$CCC"; then
7371 CXX=$CCC
7372 else
7373 if test -n "$ac_tool_prefix"; then
7374 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7375 do
7376 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7377 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7378 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7379 $as_echo_n "checking for $ac_word... " >&6; }
7380 if test "${ac_cv_prog_CXX+set}" = set; then
7381 $as_echo_n "(cached) " >&6
7382 else
7383 if test -n "$CXX"; then
7384 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7385 else
7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387 for as_dir in $PATH
7388 do
7389 IFS=$as_save_IFS
7390 test -z "$as_dir" && as_dir=.
7391 for ac_exec_ext in '' $ac_executable_extensions; do
7392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7393 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7394 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7395 break 2
7396 fi
7397 done
7398 done
7399 IFS=$as_save_IFS
7400
7401 fi
7402 fi
7403 CXX=$ac_cv_prog_CXX
7404 if test -n "$CXX"; then
7405 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
7406 $as_echo "$CXX" >&6; }
7407 else
7408 { $as_echo "$as_me:$LINENO: result: no" >&5
7409 $as_echo "no" >&6; }
7410 fi
7411
7412
7413 test -n "$CXX" && break
7414 done
7415 fi
7416 if test -z "$CXX"; then
7417 ac_ct_CXX=$CXX
7418 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7419 do
7420 # Extract the first word of "$ac_prog", so it can be a program name with args.
7421 set dummy $ac_prog; ac_word=$2
7422 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7423 $as_echo_n "checking for $ac_word... " >&6; }
7424 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7425 $as_echo_n "(cached) " >&6
7426 else
7427 if test -n "$ac_ct_CXX"; then
7428 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7429 else
7430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431 for as_dir in $PATH
7432 do
7433 IFS=$as_save_IFS
7434 test -z "$as_dir" && as_dir=.
7435 for ac_exec_ext in '' $ac_executable_extensions; do
7436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7437 ac_cv_prog_ac_ct_CXX="$ac_prog"
7438 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7439 break 2
7440 fi
7441 done
7442 done
7443 IFS=$as_save_IFS
7444
7445 fi
7446 fi
7447 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7448 if test -n "$ac_ct_CXX"; then
7449 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7450 $as_echo "$ac_ct_CXX" >&6; }
7451 else
7452 { $as_echo "$as_me:$LINENO: result: no" >&5
7453 $as_echo "no" >&6; }
7454 fi
7455
7456
7457 test -n "$ac_ct_CXX" && break
7458 done
7459
7460 if test "x$ac_ct_CXX" = x; then
7461 CXX="g++"
7462 else
7463 case $cross_compiling:$ac_tool_warned in
7464 yes:)
7465 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7466 whose name does not start with the host triplet. If you think this
7467 configuration is useful to you, please write to autoconf@gnu.org." >&5
7468 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7469 whose name does not start with the host triplet. If you think this
7470 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7471 ac_tool_warned=yes ;;
7472 esac
7473 CXX=$ac_ct_CXX
7474 fi
7475 fi
7476
7477 fi
7478 fi
7479 # Provide some information about the compiler.
7480 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
7481 set X $ac_compile
7482 ac_compiler=$2
7483 { (ac_try="$ac_compiler --version >&5"
7484 case "(($ac_try" in
7485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7486 *) ac_try_echo=$ac_try;;
7487 esac
7488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7489 $as_echo "$ac_try_echo") >&5
7490 (eval "$ac_compiler --version >&5") 2>&5
7491 ac_status=$?
7492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); }
7494 { (ac_try="$ac_compiler -v >&5"
7495 case "(($ac_try" in
7496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7497 *) ac_try_echo=$ac_try;;
7498 esac
7499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7500 $as_echo "$ac_try_echo") >&5
7501 (eval "$ac_compiler -v >&5") 2>&5
7502 ac_status=$?
7503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); }
7505 { (ac_try="$ac_compiler -V >&5"
7506 case "(($ac_try" in
7507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7508 *) ac_try_echo=$ac_try;;
7509 esac
7510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7511 $as_echo "$ac_try_echo") >&5
7512 (eval "$ac_compiler -V >&5") 2>&5
7513 ac_status=$?
7514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); }
7516
7517 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7518 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7519 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7520 $as_echo_n "(cached) " >&6
7521 else
7522 cat >conftest.$ac_ext <<_ACEOF
7523 /* confdefs.h. */
7524 _ACEOF
7525 cat confdefs.h >>conftest.$ac_ext
7526 cat >>conftest.$ac_ext <<_ACEOF
7527 /* end confdefs.h. */
7528
7529 int
7530 main ()
7531 {
7532 #ifndef __GNUC__
7533 choke me
7534 #endif
7535
7536 ;
7537 return 0;
7538 }
7539 _ACEOF
7540 rm -f conftest.$ac_objext
7541 if { (ac_try="$ac_compile"
7542 case "(($ac_try" in
7543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7544 *) ac_try_echo=$ac_try;;
7545 esac
7546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7547 $as_echo "$ac_try_echo") >&5
7548 (eval "$ac_compile") 2>conftest.er1
7549 ac_status=$?
7550 grep -v '^ *+' conftest.er1 >conftest.err
7551 rm -f conftest.er1
7552 cat conftest.err >&5
7553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); } && {
7555 test -z "$ac_cxx_werror_flag" ||
7556 test ! -s conftest.err
7557 } && test -s conftest.$ac_objext; then
7558 ac_compiler_gnu=yes
7559 else
7560 $as_echo "$as_me: failed program was:" >&5
7561 sed 's/^/| /' conftest.$ac_ext >&5
7562
7563 ac_compiler_gnu=no
7564 fi
7565
7566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7567 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7568
7569 fi
7570 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7571 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7572 if test $ac_compiler_gnu = yes; then
7573 GXX=yes
7574 else
7575 GXX=
7576 fi
7577 ac_test_CXXFLAGS=${CXXFLAGS+set}
7578 ac_save_CXXFLAGS=$CXXFLAGS
7579 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7580 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7581 if test "${ac_cv_prog_cxx_g+set}" = set; then
7582 $as_echo_n "(cached) " >&6
7583 else
7584 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7585 ac_cxx_werror_flag=yes
7586 ac_cv_prog_cxx_g=no
7587 CXXFLAGS="-g"
7588 cat >conftest.$ac_ext <<_ACEOF
7589 /* confdefs.h. */
7590 _ACEOF
7591 cat confdefs.h >>conftest.$ac_ext
7592 cat >>conftest.$ac_ext <<_ACEOF
7593 /* end confdefs.h. */
7594
7595 int
7596 main ()
7597 {
7598
7599 ;
7600 return 0;
7601 }
7602 _ACEOF
7603 rm -f conftest.$ac_objext
7604 if { (ac_try="$ac_compile"
7605 case "(($ac_try" in
7606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7607 *) ac_try_echo=$ac_try;;
7608 esac
7609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7610 $as_echo "$ac_try_echo") >&5
7611 (eval "$ac_compile") 2>conftest.er1
7612 ac_status=$?
7613 grep -v '^ *+' conftest.er1 >conftest.err
7614 rm -f conftest.er1
7615 cat conftest.err >&5
7616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); } && {
7618 test -z "$ac_cxx_werror_flag" ||
7619 test ! -s conftest.err
7620 } && test -s conftest.$ac_objext; then
7621 ac_cv_prog_cxx_g=yes
7622 else
7623 $as_echo "$as_me: failed program was:" >&5
7624 sed 's/^/| /' conftest.$ac_ext >&5
7625
7626 CXXFLAGS=""
7627 cat >conftest.$ac_ext <<_ACEOF
7628 /* confdefs.h. */
7629 _ACEOF
7630 cat confdefs.h >>conftest.$ac_ext
7631 cat >>conftest.$ac_ext <<_ACEOF
7632 /* end confdefs.h. */
7633
7634 int
7635 main ()
7636 {
7637
7638 ;
7639 return 0;
7640 }
7641 _ACEOF
7642 rm -f conftest.$ac_objext
7643 if { (ac_try="$ac_compile"
7644 case "(($ac_try" in
7645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7646 *) ac_try_echo=$ac_try;;
7647 esac
7648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7649 $as_echo "$ac_try_echo") >&5
7650 (eval "$ac_compile") 2>conftest.er1
7651 ac_status=$?
7652 grep -v '^ *+' conftest.er1 >conftest.err
7653 rm -f conftest.er1
7654 cat conftest.err >&5
7655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } && {
7657 test -z "$ac_cxx_werror_flag" ||
7658 test ! -s conftest.err
7659 } && test -s conftest.$ac_objext; then
7660 :
7661 else
7662 $as_echo "$as_me: failed program was:" >&5
7663 sed 's/^/| /' conftest.$ac_ext >&5
7664
7665 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7666 CXXFLAGS="-g"
7667 cat >conftest.$ac_ext <<_ACEOF
7668 /* confdefs.h. */
7669 _ACEOF
7670 cat confdefs.h >>conftest.$ac_ext
7671 cat >>conftest.$ac_ext <<_ACEOF
7672 /* end confdefs.h. */
7673
7674 int
7675 main ()
7676 {
7677
7678 ;
7679 return 0;
7680 }
7681 _ACEOF
7682 rm -f conftest.$ac_objext
7683 if { (ac_try="$ac_compile"
7684 case "(($ac_try" in
7685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7686 *) ac_try_echo=$ac_try;;
7687 esac
7688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7689 $as_echo "$ac_try_echo") >&5
7690 (eval "$ac_compile") 2>conftest.er1
7691 ac_status=$?
7692 grep -v '^ *+' conftest.er1 >conftest.err
7693 rm -f conftest.er1
7694 cat conftest.err >&5
7695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); } && {
7697 test -z "$ac_cxx_werror_flag" ||
7698 test ! -s conftest.err
7699 } && test -s conftest.$ac_objext; then
7700 ac_cv_prog_cxx_g=yes
7701 else
7702 $as_echo "$as_me: failed program was:" >&5
7703 sed 's/^/| /' conftest.$ac_ext >&5
7704
7705
7706 fi
7707
7708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7709 fi
7710
7711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7712 fi
7713
7714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7715 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7716 fi
7717 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7718 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7719 if test "$ac_test_CXXFLAGS" = set; then
7720 CXXFLAGS=$ac_save_CXXFLAGS
7721 elif test $ac_cv_prog_cxx_g = yes; then
7722 if test "$GXX" = yes; then
7723 CXXFLAGS="-g -O2"
7724 else
7725 CXXFLAGS="-g"
7726 fi
7727 else
7728 if test "$GXX" = yes; then
7729 CXXFLAGS="-O2"
7730 else
7731 CXXFLAGS=
7732 fi
7733 fi
7734 ac_ext=c
7735 ac_cpp='$CPP $CPPFLAGS'
7736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7739
7740 depcc="$CXX" am_compiler_list=
7741
7742 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7743 $as_echo_n "checking dependency style of $depcc... " >&6; }
7744 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7745 $as_echo_n "(cached) " >&6
7746 else
7747 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7748 # We make a subdir and do the tests there. Otherwise we can end up
7749 # making bogus files that we don't know about and never remove. For
7750 # instance it was reported that on HP-UX the gcc test will end up
7751 # making a dummy file named `D' -- because `-MD' means `put the output
7752 # in D'.
7753 mkdir conftest.dir
7754 # Copy depcomp to subdir because otherwise we won't find it if we're
7755 # using a relative directory.
7756 cp "$am_depcomp" conftest.dir
7757 cd conftest.dir
7758 # We will build objects and dependencies in a subdirectory because
7759 # it helps to detect inapplicable dependency modes. For instance
7760 # both Tru64's cc and ICC support -MD to output dependencies as a
7761 # side effect of compilation, but ICC will put the dependencies in
7762 # the current directory while Tru64 will put them in the object
7763 # directory.
7764 mkdir sub
7765
7766 am_cv_CXX_dependencies_compiler_type=none
7767 if test "$am_compiler_list" = ""; then
7768 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7769 fi
7770 am__universal=false
7771 case " $depcc " in #(
7772 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7773 esac
7774
7775 for depmode in $am_compiler_list; do
7776 # Setup a source with many dependencies, because some compilers
7777 # like to wrap large dependency lists on column 80 (with \), and
7778 # we should not choose a depcomp mode which is confused by this.
7779 #
7780 # We need to recreate these files for each test, as the compiler may
7781 # overwrite some of them when testing with obscure command lines.
7782 # This happens at least with the AIX C compiler.
7783 : > sub/conftest.c
7784 for i in 1 2 3 4 5 6; do
7785 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7786 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7787 # Solaris 8's {/usr,}/bin/sh.
7788 touch sub/conftst$i.h
7789 done
7790 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7791
7792 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7793 # mode. It turns out that the SunPro C++ compiler does not properly
7794 # handle `-M -o', and we need to detect this. Also, some Intel
7795 # versions had trouble with output in subdirs
7796 am__obj=sub/conftest.${OBJEXT-o}
7797 am__minus_obj="-o $am__obj"
7798 case $depmode in
7799 gcc)
7800 # This depmode causes a compiler race in universal mode.
7801 test "$am__universal" = false || continue
7802 ;;
7803 nosideeffect)
7804 # after this tag, mechanisms are not by side-effect, so they'll
7805 # only be used when explicitly requested
7806 if test "x$enable_dependency_tracking" = xyes; then
7807 continue
7808 else
7809 break
7810 fi
7811 ;;
7812 msvisualcpp | msvcmsys)
7813 # This compiler won't grok `-c -o', but also, the minuso test has
7814 # not run yet. These depmodes are late enough in the game, and
7815 # so weak that their functioning should not be impacted.
7816 am__obj=conftest.${OBJEXT-o}
7817 am__minus_obj=
7818 ;;
7819 none) break ;;
7820 esac
7821 if depmode=$depmode \
7822 source=sub/conftest.c object=$am__obj \
7823 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7824 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7825 >/dev/null 2>conftest.err &&
7826 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7827 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7828 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7829 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7830 # icc doesn't choke on unknown options, it will just issue warnings
7831 # or remarks (even with -Werror). So we grep stderr for any message
7832 # that says an option was ignored or not supported.
7833 # When given -MP, icc 7.0 and 7.1 complain thusly:
7834 # icc: Command line warning: ignoring option '-M'; no argument required
7835 # The diagnosis changed in icc 8.0:
7836 # icc: Command line remark: option '-MP' not supported
7837 if (grep 'ignoring option' conftest.err ||
7838 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7839 am_cv_CXX_dependencies_compiler_type=$depmode
7840 break
7841 fi
7842 fi
7843 done
7844
7845 cd ..
7846 rm -rf conftest.dir
7847 else
7848 am_cv_CXX_dependencies_compiler_type=none
7849 fi
7850
7851 fi
7852 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7853 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7854 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7855
7856 if
7857 test "x$enable_dependency_tracking" != xno \
7858 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7859 am__fastdepCXX_TRUE=
7860 am__fastdepCXX_FALSE='#'
7861 else
7862 am__fastdepCXX_TRUE='#'
7863 am__fastdepCXX_FALSE=
7864 fi
7865
7866
7867 if eval "test x$GXX = xyes"; then
7868 CXXFLAGS="$CXXFLAGS -Wall -Wcast-align -Wpointer-arith -Wreturn-type -D_GNU_SOURCE"
7869 fi
7870
7871
7872
7873 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7874 if test -n "$ac_tool_prefix"; then
7875 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7876 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7877 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7878 $as_echo_n "checking for $ac_word... " >&6; }
7879 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7880 $as_echo_n "(cached) " >&6
7881 else
7882 case $PKG_CONFIG in
7883 [\\/]* | ?:[\\/]*)
7884 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7885 ;;
7886 *)
7887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7888 for as_dir in $PATH
7889 do
7890 IFS=$as_save_IFS
7891 test -z "$as_dir" && as_dir=.
7892 for ac_exec_ext in '' $ac_executable_extensions; do
7893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7894 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7895 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7896 break 2
7897 fi
7898 done
7899 done
7900 IFS=$as_save_IFS
7901
7902 ;;
7903 esac
7904 fi
7905 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7906 if test -n "$PKG_CONFIG"; then
7907 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7908 $as_echo "$PKG_CONFIG" >&6; }
7909 else
7910 { $as_echo "$as_me:$LINENO: result: no" >&5
7911 $as_echo "no" >&6; }
7912 fi
7913
7914
7915 fi
7916 if test -z "$ac_cv_path_PKG_CONFIG"; then
7917 ac_pt_PKG_CONFIG=$PKG_CONFIG
7918 # Extract the first word of "pkg-config", so it can be a program name with args.
7919 set dummy pkg-config; ac_word=$2
7920 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7921 $as_echo_n "checking for $ac_word... " >&6; }
7922 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
7923 $as_echo_n "(cached) " >&6
7924 else
7925 case $ac_pt_PKG_CONFIG in
7926 [\\/]* | ?:[\\/]*)
7927 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7928 ;;
7929 *)
7930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7931 for as_dir in $PATH
7932 do
7933 IFS=$as_save_IFS
7934 test -z "$as_dir" && as_dir=.
7935 for ac_exec_ext in '' $ac_executable_extensions; do
7936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7937 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7938 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7939 break 2
7940 fi
7941 done
7942 done
7943 IFS=$as_save_IFS
7944
7945 ;;
7946 esac
7947 fi
7948 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7949 if test -n "$ac_pt_PKG_CONFIG"; then
7950 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
7951 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7952 else
7953 { $as_echo "$as_me:$LINENO: result: no" >&5
7954 $as_echo "no" >&6; }
7955 fi
7956
7957 if test "x$ac_pt_PKG_CONFIG" = x; then
7958 PKG_CONFIG=""
7959 else
7960 case $cross_compiling:$ac_tool_warned in
7961 yes:)
7962 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7963 whose name does not start with the host triplet. If you think this
7964 configuration is useful to you, please write to autoconf@gnu.org." >&5
7965 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7966 whose name does not start with the host triplet. If you think this
7967 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7968 ac_tool_warned=yes ;;
7969 esac
7970 PKG_CONFIG=$ac_pt_PKG_CONFIG
7971 fi
7972 else
7973 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7974 fi
7975
7976 fi
7977 if test -n "$PKG_CONFIG"; then
7978 _pkg_min_version=0.9.0
7979 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
7980 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7981 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7982 { $as_echo "$as_me:$LINENO: result: yes" >&5
7983 $as_echo "yes" >&6; }
7984 else
7985 { $as_echo "$as_me:$LINENO: result: no" >&5
7986 $as_echo "no" >&6; }
7987 PKG_CONFIG=""
7988 fi
7989
7990 fi
7991 if test -n "$PKG_CONFIG" && \
7992 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"") >&5
7993 ($PKG_CONFIG --exists --print-errors "") 2>&5
7994 ac_status=$?
7995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); }; then
7997 :
7998 fi
7999 if test "x${cross_compiling}" = "xyes"; then
8000 samplemap="no";samplemap_reason="not supported for cross compiling"
8001 binding_python="no";binding_python_reason="not supported for cross compiling"
8002 postgresql="no";postgresql_reason="not supported for cross compiling"
8003 { $as_echo "$as_me:$LINENO: checking for a C compiler for build tools" >&5
8004 $as_echo_n "checking for a C compiler for build tools... " >&6; }
8005 for ac_prog in gcc cc
8006 do
8007 # Extract the first word of "$ac_prog", so it can be a program name with args.
8008 set dummy $ac_prog; ac_word=$2
8009 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8010 $as_echo_n "checking for $ac_word... " >&6; }
8011 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
8012 $as_echo_n "(cached) " >&6
8013 else
8014 if test -n "$CC_FOR_BUILD"; then
8015 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
8016 else
8017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8018 for as_dir in $PATH
8019 do
8020 IFS=$as_save_IFS
8021 test -z "$as_dir" && as_dir=.
8022 for ac_exec_ext in '' $ac_executable_extensions; do
8023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8024 ac_cv_prog_CC_FOR_BUILD="$ac_prog"
8025 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8026 break 2
8027 fi
8028 done
8029 done
8030 IFS=$as_save_IFS
8031
8032 fi
8033 fi
8034 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
8035 if test -n "$CC_FOR_BUILD"; then
8036 { $as_echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
8037 $as_echo "$CC_FOR_BUILD" >&6; }
8038 else
8039 { $as_echo "$as_me:$LINENO: result: no" >&5
8040 $as_echo "no" >&6; }
8041 fi
8042
8043
8044 test -n "$CC_FOR_BUILD" && break
8045 done
8046
8047 else
8048 CC_FOR_BUILD=$CC
8049 fi
8050 CCLD_FOR_BUILD="$CC_FOR_BUILD"
8051
8052 if test "x${cross_compiling}" = "xyes"; then
8053 CROSS_COMPILING_TRUE=
8054 CROSS_COMPILING_FALSE='#'
8055 else
8056 CROSS_COMPILING_TRUE='#'
8057 CROSS_COMPILING_FALSE=
8058 fi
8059
8060
8061
8062
8063 # Endianness
8064 # defines WORDS_BIGENDIAN for big-endian systems
8065
8066 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8067 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8068 if test "${ac_cv_c_bigendian+set}" = set; then
8069 $as_echo_n "(cached) " >&6
8070 else
8071 ac_cv_c_bigendian=unknown
8072 # See if __BIG_ENDIAN__ or __LITTLE_ENDIAN__ is defined.
8073 cat >conftest.$ac_ext <<_ACEOF
8074 /* confdefs.h. */
8075 _ACEOF
8076 cat confdefs.h >>conftest.$ac_ext
8077 cat >>conftest.$ac_ext <<_ACEOF
8078 /* end confdefs.h. */
8079 #if ! (defined __BIG_ENDIAN__ || defined __LITTLE_ENDIAN__)
8080 neither is defined;
8081 #endif
8082 typedef int dummy;
8083
8084 _ACEOF
8085 rm -f conftest.$ac_objext
8086 if { (ac_try="$ac_compile"
8087 case "(($ac_try" in
8088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8089 *) ac_try_echo=$ac_try;;
8090 esac
8091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8092 $as_echo "$ac_try_echo") >&5
8093 (eval "$ac_compile") 2>conftest.er1
8094 ac_status=$?
8095 grep -v '^ *+' conftest.er1 >conftest.err
8096 rm -f conftest.er1
8097 cat conftest.err >&5
8098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); } && {
8100 test -z "$ac_c_werror_flag" ||
8101 test ! -s conftest.err
8102 } && test -s conftest.$ac_objext; then
8103 ac_cv_c_bigendian=universal
8104 else
8105 $as_echo "$as_me: failed program was:" >&5
8106 sed 's/^/| /' conftest.$ac_ext >&5
8107
8108
8109 fi
8110
8111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8112 if test $ac_cv_c_bigendian = unknown; then
8113 # See if sys/param.h defines the BYTE_ORDER macro.
8114 cat >conftest.$ac_ext <<_ACEOF
8115 /* confdefs.h. */
8116 _ACEOF
8117 cat confdefs.h >>conftest.$ac_ext
8118 cat >>conftest.$ac_ext <<_ACEOF
8119 /* end confdefs.h. */
8120 #include <sys/types.h>
8121 #include <sys/param.h>
8122
8123 int
8124 main ()
8125 {
8126 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8127 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8128 && LITTLE_ENDIAN)
8129 bogus endian macros
8130 #endif
8131
8132 ;
8133 return 0;
8134 }
8135 _ACEOF
8136 rm -f conftest.$ac_objext
8137 if { (ac_try="$ac_compile"
8138 case "(($ac_try" in
8139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8140 *) ac_try_echo=$ac_try;;
8141 esac
8142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8143 $as_echo "$ac_try_echo") >&5
8144 (eval "$ac_compile") 2>conftest.er1
8145 ac_status=$?
8146 grep -v '^ *+' conftest.er1 >conftest.err
8147 rm -f conftest.er1
8148 cat conftest.err >&5
8149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 (exit $ac_status); } && {
8151 test -z "$ac_c_werror_flag" ||
8152 test ! -s conftest.err
8153 } && test -s conftest.$ac_objext; then
8154 # It does; now see whether it defined to BIG_ENDIAN or not.
8155 cat >conftest.$ac_ext <<_ACEOF
8156 /* confdefs.h. */
8157 _ACEOF
8158 cat confdefs.h >>conftest.$ac_ext
8159 cat >>conftest.$ac_ext <<_ACEOF
8160 /* end confdefs.h. */
8161 #include <sys/types.h>
8162 #include <sys/param.h>
8163
8164 int
8165 main ()
8166 {
8167 #if BYTE_ORDER != BIG_ENDIAN
8168 not big endian
8169 #endif
8170
8171 ;
8172 return 0;
8173 }
8174 _ACEOF
8175 rm -f conftest.$ac_objext
8176 if { (ac_try="$ac_compile"
8177 case "(($ac_try" in
8178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8179 *) ac_try_echo=$ac_try;;
8180 esac
8181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8182 $as_echo "$ac_try_echo") >&5
8183 (eval "$ac_compile") 2>conftest.er1
8184 ac_status=$?
8185 grep -v '^ *+' conftest.er1 >conftest.err
8186 rm -f conftest.er1
8187 cat conftest.err >&5
8188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); } && {
8190 test -z "$ac_c_werror_flag" ||
8191 test ! -s conftest.err
8192 } && test -s conftest.$ac_objext; then
8193 ac_cv_c_bigendian=yes
8194 else
8195 $as_echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8197
8198 ac_cv_c_bigendian=no
8199 fi
8200
8201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8202 else
8203 $as_echo "$as_me: failed program was:" >&5
8204 sed 's/^/| /' conftest.$ac_ext >&5
8205
8206
8207 fi
8208
8209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8210 fi
8211 if test $ac_cv_c_bigendian = unknown; then
8212 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8213 cat >conftest.$ac_ext <<_ACEOF
8214 /* confdefs.h. */
8215 _ACEOF
8216 cat confdefs.h >>conftest.$ac_ext
8217 cat >>conftest.$ac_ext <<_ACEOF
8218 /* end confdefs.h. */
8219 #include <limits.h>
8220
8221 int
8222 main ()
8223 {
8224 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8225 bogus endian macros
8226 #endif
8227
8228 ;
8229 return 0;
8230 }
8231 _ACEOF
8232 rm -f conftest.$ac_objext
8233 if { (ac_try="$ac_compile"
8234 case "(($ac_try" in
8235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8236 *) ac_try_echo=$ac_try;;
8237 esac
8238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8239 $as_echo "$ac_try_echo") >&5
8240 (eval "$ac_compile") 2>conftest.er1
8241 ac_status=$?
8242 grep -v '^ *+' conftest.er1 >conftest.err
8243 rm -f conftest.er1
8244 cat conftest.err >&5
8245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); } && {
8247 test -z "$ac_c_werror_flag" ||
8248 test ! -s conftest.err
8249 } && test -s conftest.$ac_objext; then
8250 # It does; now see whether it defined to _BIG_ENDIAN or not.
8251 cat >conftest.$ac_ext <<_ACEOF
8252 /* confdefs.h. */
8253 _ACEOF
8254 cat confdefs.h >>conftest.$ac_ext
8255 cat >>conftest.$ac_ext <<_ACEOF
8256 /* end confdefs.h. */
8257 #include <limits.h>
8258
8259 int
8260 main ()
8261 {
8262 #ifndef _BIG_ENDIAN
8263 not big endian
8264 #endif
8265
8266 ;
8267 return 0;
8268 }
8269 _ACEOF
8270 rm -f conftest.$ac_objext
8271 if { (ac_try="$ac_compile"
8272 case "(($ac_try" in
8273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8274 *) ac_try_echo=$ac_try;;
8275 esac
8276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8277 $as_echo "$ac_try_echo") >&5
8278 (eval "$ac_compile") 2>conftest.er1
8279 ac_status=$?
8280 grep -v '^ *+' conftest.er1 >conftest.err
8281 rm -f conftest.er1
8282 cat conftest.err >&5
8283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); } && {
8285 test -z "$ac_c_werror_flag" ||
8286 test ! -s conftest.err
8287 } && test -s conftest.$ac_objext; then
8288 ac_cv_c_bigendian=yes
8289 else
8290 $as_echo "$as_me: failed program was:" >&5
8291 sed 's/^/| /' conftest.$ac_ext >&5
8292
8293 ac_cv_c_bigendian=no
8294 fi
8295
8296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8297 else
8298 $as_echo "$as_me: failed program was:" >&5
8299 sed 's/^/| /' conftest.$ac_ext >&5
8300
8301
8302 fi
8303
8304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8305 fi
8306 if test $ac_cv_c_bigendian = unknown; then
8307 # Compile a test program.
8308 if test "$cross_compiling" = yes; then
8309 # Try to guess by grepping values from an object file.
8310 cat >conftest.$ac_ext <<_ACEOF
8311 /* confdefs.h. */
8312 _ACEOF
8313 cat confdefs.h >>conftest.$ac_ext
8314 cat >>conftest.$ac_ext <<_ACEOF
8315 /* end confdefs.h. */
8316 short int ascii_mm[] =
8317 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8318 short int ascii_ii[] =
8319 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8320 int use_ascii (int i) {
8321 return ascii_mm[i] + ascii_ii[i];
8322 }
8323 short int ebcdic_ii[] =
8324 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8325 short int ebcdic_mm[] =
8326 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8327 int use_ebcdic (int i) {
8328 return ebcdic_mm[i] + ebcdic_ii[i];
8329 }
8330 extern int foo;
8331
8332 int
8333 main ()
8334 {
8335 return use_ascii (foo) == use_ebcdic (foo);
8336 ;
8337 return 0;
8338 }
8339 _ACEOF
8340 rm -f conftest.$ac_objext
8341 if { (ac_try="$ac_compile"
8342 case "(($ac_try" in
8343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8344 *) ac_try_echo=$ac_try;;
8345 esac
8346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8347 $as_echo "$ac_try_echo") >&5
8348 (eval "$ac_compile") 2>conftest.er1
8349 ac_status=$?
8350 grep -v '^ *+' conftest.er1 >conftest.err
8351 rm -f conftest.er1
8352 cat conftest.err >&5
8353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); } && {
8355 test -z "$ac_c_werror_flag" ||
8356 test ! -s conftest.err
8357 } && test -s conftest.$ac_objext; then
8358 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8359 ac_cv_c_bigendian=yes
8360 fi
8361 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8362 if test "$ac_cv_c_bigendian" = unknown; then
8363 ac_cv_c_bigendian=no
8364 else
8365 # finding both strings is unlikely to happen, but who knows?
8366 ac_cv_c_bigendian=unknown
8367 fi
8368 fi
8369 else
8370 $as_echo "$as_me: failed program was:" >&5
8371 sed 's/^/| /' conftest.$ac_ext >&5
8372
8373
8374 fi
8375
8376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8377 else
8378 cat >conftest.$ac_ext <<_ACEOF
8379 /* confdefs.h. */
8380 _ACEOF
8381 cat confdefs.h >>conftest.$ac_ext
8382 cat >>conftest.$ac_ext <<_ACEOF
8383 /* end confdefs.h. */
8384 $ac_includes_default
8385 int
8386 main ()
8387 {
8388
8389 /* Are we little or big endian? From Harbison&Steele. */
8390 union
8391 {
8392 long int l;
8393 char c[sizeof (long int)];
8394 } u;
8395 u.l = 1;
8396 return u.c[sizeof (long int) - 1] == 1;
8397
8398 ;
8399 return 0;
8400 }
8401 _ACEOF
8402 rm -f conftest$ac_exeext
8403 if { (ac_try="$ac_link"
8404 case "(($ac_try" in
8405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8406 *) ac_try_echo=$ac_try;;
8407 esac
8408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8409 $as_echo "$ac_try_echo") >&5
8410 (eval "$ac_link") 2>&5
8411 ac_status=$?
8412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8414 { (case "(($ac_try" in
8415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8416 *) ac_try_echo=$ac_try;;
8417 esac
8418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8419 $as_echo "$ac_try_echo") >&5
8420 (eval "$ac_try") 2>&5
8421 ac_status=$?
8422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); }; }; then
8424 ac_cv_c_bigendian=no
8425 else
8426 $as_echo "$as_me: program exited with status $ac_status" >&5
8427 $as_echo "$as_me: failed program was:" >&5
8428 sed 's/^/| /' conftest.$ac_ext >&5
8429
8430 ( exit $ac_status )
8431 ac_cv_c_bigendian=yes
8432 fi
8433 rm -rf conftest.dSYM
8434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8435 fi
8436
8437
8438 fi
8439 fi
8440 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8441 $as_echo "$ac_cv_c_bigendian" >&6; }
8442 case $ac_cv_c_bigendian in #(
8443 yes)
8444 cat >>confdefs.h <<\_ACEOF
8445 @%:@define WORDS_BIGENDIAN 1
8446 _ACEOF
8447 ;; #(
8448 no)
8449 ;; #(
8450 universal)
8451 ;; #(
8452 *)
8453 { { $as_echo "$as_me:$LINENO: error: unknown endianness
8454 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8455 $as_echo "$as_me: error: unknown endianness
8456 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8457 { (exit 1); exit 1; }; } ;;
8458 esac
8459
8460
8461 @%:@ Check whether --enable-variant was given.
8462 if test "${enable_variant+set}" = set; then
8463 enableval=$enable_variant; NAVIT_VARIANT=$enableval
8464 fi
8465
8466
8467
8468 @%:@ Check whether --enable-cache-size was given.
8469 if test "${enable_cache_size+set}" = set; then
8470 enableval=$enable_cache_size;
8471 cat >>confdefs.h <<_ACEOF
8472 @%:@define CACHE_SIZE ${enableval}
8473 _ACEOF
8474
8475 fi
8476
8477
8478 @%:@ Check whether --enable-avoid-unaligned was given.
8479 if test "${enable_avoid_unaligned+set}" = set; then
8480 enableval=$enable_avoid_unaligned; AVOID_UNALIGNED=$enableval
8481 else
8482 AVOID_UNALIGNED=no
8483 fi
8484
8485 test x"${AVOID_UNALIGNED}" = xyes &&
8486 cat >>confdefs.h <<\_ACEOF
8487 @%:@define AVOID_UNALIGNED /**/
8488 _ACEOF
8489
8490
8491 @%:@ Check whether --enable-avoid-float was given.
8492 if test "${enable_avoid_float+set}" = set; then
8493 enableval=$enable_avoid_float; AVOID_FLOAT=$enableval
8494 else
8495 AVOID_FLOAT=no
8496 fi
8497
8498 test x"${AVOID_FLOAT}" = xyes &&
8499 cat >>confdefs.h <<\_ACEOF
8500 @%:@define AVOID_FLOAT /**/
8501 _ACEOF
8502
8503
8504 @%:@ Check whether --enable-transformation-roll was given.
8505 if test "${enable_transformation_roll+set}" = set; then
8506 enableval=$enable_transformation_roll; ENABLE_ROLL=$enableval
8507 else
8508 ENABLE_ROLL=no
8509 fi
8510
8511 test x"${ENABLE_ROLL}" = xyes &&
8512 cat >>confdefs.h <<\_ACEOF
8513 @%:@define ENABLE_ROLL /**/
8514 _ACEOF
8515
8516
8517 @%:@ Check whether --enable-hildon was given.
8518 if test "${enable_hildon+set}" = set; then
8519 enableval=$enable_hildon; enable_hildon=$enableval
8520 else
8521 enable_hildon=yes
8522 fi
8523
8524 if test "x${enable_hildon}" = "xyes" ; then
8525
8526 pkg_failed=no
8527 { $as_echo "$as_me:$LINENO: checking for HILDON" >&5
8528 $as_echo_n "checking for HILDON... " >&6; }
8529
8530 if test -n "$PKG_CONFIG"; then
8531 if test -n "$HILDON_CFLAGS"; then
8532 pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
8533 else
8534 if test -n "$PKG_CONFIG" && \
8535 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 0.9.9\"") >&5
8536 ($PKG_CONFIG --exists --print-errors "hildon-1 >= 0.9.9") 2>&5
8537 ac_status=$?
8538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); }; then
8540 pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-1 >= 0.9.9" 2>/dev/null`
8541 else
8542 pkg_failed=yes
8543 fi
8544 fi
8545 else
8546 pkg_failed=untried
8547 fi
8548 if test -n "$PKG_CONFIG"; then
8549 if test -n "$HILDON_LIBS"; then
8550 pkg_cv_HILDON_LIBS="$HILDON_LIBS"
8551 else
8552 if test -n "$PKG_CONFIG" && \
8553 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 0.9.9\"") >&5
8554 ($PKG_CONFIG --exists --print-errors "hildon-1 >= 0.9.9") 2>&5
8555 ac_status=$?
8556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); }; then
8558 pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-1 >= 0.9.9" 2>/dev/null`
8559 else
8560 pkg_failed=yes
8561 fi
8562 fi
8563 else
8564 pkg_failed=untried
8565 fi
8566
8567
8568
8569 if test $pkg_failed = yes; then
8570
8571 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8572 _pkg_short_errors_supported=yes
8573 else
8574 _pkg_short_errors_supported=no
8575 fi
8576 if test $_pkg_short_errors_supported = yes; then
8577 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-1 >= 0.9.9"`
8578 else
8579 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-1 >= 0.9.9"`
8580 fi
8581 # Put the nasty error message in config.log where it belongs
8582 echo "$HILDON_PKG_ERRORS" >&5
8583
8584 { $as_echo "$as_me:$LINENO: result: no" >&5
8585 $as_echo "no" >&6; }
8586
8587 { $as_echo "$as_me:$LINENO: result: no" >&5
8588 $as_echo "no" >&6; }
8589 enable_hildon=no
8590
8591 elif test $pkg_failed = untried; then
8592
8593 { $as_echo "$as_me:$LINENO: result: no" >&5
8594 $as_echo "no" >&6; }
8595 enable_hildon=no
8596
8597 else
8598 HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
8599 HILDON_LIBS=$pkg_cv_HILDON_LIBS
8600 { $as_echo "$as_me:$LINENO: result: yes" >&5
8601 $as_echo "yes" >&6; }
8602 :
8603 fi
8604
8605 pkg_failed=no
8606 { $as_echo "$as_me:$LINENO: checking for GPSBT" >&5
8607 $as_echo_n "checking for GPSBT... " >&6; }
8608
8609 if test -n "$PKG_CONFIG"; then
8610 if test -n "$GPSBT_CFLAGS"; then
8611 pkg_cv_GPSBT_CFLAGS="$GPSBT_CFLAGS"
8612 else
8613 if test -n "$PKG_CONFIG" && \
8614 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gpsbt\"") >&5
8615 ($PKG_CONFIG --exists --print-errors "gpsbt") 2>&5
8616 ac_status=$?
8617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; then
8619 pkg_cv_GPSBT_CFLAGS=`$PKG_CONFIG --cflags "gpsbt" 2>/dev/null`
8620 else
8621 pkg_failed=yes
8622 fi
8623 fi
8624 else
8625 pkg_failed=untried
8626 fi
8627 if test -n "$PKG_CONFIG"; then
8628 if test -n "$GPSBT_LIBS"; then
8629 pkg_cv_GPSBT_LIBS="$GPSBT_LIBS"
8630 else
8631 if test -n "$PKG_CONFIG" && \
8632 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gpsbt\"") >&5
8633 ($PKG_CONFIG --exists --print-errors "gpsbt") 2>&5
8634 ac_status=$?
8635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); }; then
8637 pkg_cv_GPSBT_LIBS=`$PKG_CONFIG --libs "gpsbt" 2>/dev/null`
8638 else
8639 pkg_failed=yes
8640 fi
8641 fi
8642 else
8643 pkg_failed=untried
8644 fi
8645
8646
8647
8648 if test $pkg_failed = yes; then
8649
8650 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8651 _pkg_short_errors_supported=yes
8652 else
8653 _pkg_short_errors_supported=no
8654 fi
8655 if test $_pkg_short_errors_supported = yes; then
8656 GPSBT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gpsbt"`
8657 else
8658 GPSBT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gpsbt"`
8659 fi
8660 # Put the nasty error message in config.log where it belongs
8661 echo "$GPSBT_PKG_ERRORS" >&5
8662
8663 { $as_echo "$as_me:$LINENO: result: no" >&5
8664 $as_echo "no" >&6; }
8665
8666 { $as_echo "$as_me:$LINENO: result: no" >&5
8667 $as_echo "no" >&6; }
8668
8669 elif test $pkg_failed = untried; then
8670
8671 { $as_echo "$as_me:$LINENO: result: no" >&5
8672 $as_echo "no" >&6; }
8673
8674 else
8675 GPSBT_CFLAGS=$pkg_cv_GPSBT_CFLAGS
8676 GPSBT_LIBS=$pkg_cv_GPSBT_LIBS
8677 { $as_echo "$as_me:$LINENO: result: yes" >&5
8678 $as_echo "yes" >&6; }
8679
8680
8681 cat >>confdefs.h <<\_ACEOF
8682 @%:@define HAVE_GPSBT 1
8683 _ACEOF
8684
8685
8686
8687
8688 fi
8689 if test x"${enable_hildon}" = xyes ; then
8690
8691 cat >>confdefs.h <<\_ACEOF
8692 @%:@define USE_HILDON 1
8693 _ACEOF
8694
8695
8696
8697 fi
8698 fi
8699 if test "${enable_hildon}" = "xyes"; then
8700 USE_HILDON_TRUE=
8701 USE_HILDON_FALSE='#'
8702 else
8703 USE_HILDON_TRUE='#'
8704 USE_HILDON_FALSE=
8705 fi
8706
8707
8708 @%:@ Check whether --enable-osso was given.
8709 if test "${enable_osso+set}" = set; then
8710 enableval=$enable_osso; enable_osso=$enableval
8711 else
8712 enable_osso=yes
8713 fi
8714
8715 if test "x${enable_osso}" = "xyes" ; then
8716
8717 pkg_failed=no
8718 { $as_echo "$as_me:$LINENO: checking for LIBOSSO" >&5
8719 $as_echo_n "checking for LIBOSSO... " >&6; }
8720
8721 if test -n "$PKG_CONFIG"; then
8722 if test -n "$LIBOSSO_CFLAGS"; then
8723 pkg_cv_LIBOSSO_CFLAGS="$LIBOSSO_CFLAGS"
8724 else
8725 if test -n "$PKG_CONFIG" && \
8726 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libosso\"") >&5
8727 ($PKG_CONFIG --exists --print-errors "libosso") 2>&5
8728 ac_status=$?
8729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); }; then
8731 pkg_cv_LIBOSSO_CFLAGS=`$PKG_CONFIG --cflags "libosso" 2>/dev/null`
8732 else
8733 pkg_failed=yes
8734 fi
8735 fi
8736 else
8737 pkg_failed=untried
8738 fi
8739 if test -n "$PKG_CONFIG"; then
8740 if test -n "$LIBOSSO_LIBS"; then
8741 pkg_cv_LIBOSSO_LIBS="$LIBOSSO_LIBS"
8742 else
8743 if test -n "$PKG_CONFIG" && \
8744 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libosso\"") >&5
8745 ($PKG_CONFIG --exists --print-errors "libosso") 2>&5
8746 ac_status=$?
8747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); }; then
8749 pkg_cv_LIBOSSO_LIBS=`$PKG_CONFIG --libs "libosso" 2>/dev/null`
8750 else
8751 pkg_failed=yes
8752 fi
8753 fi
8754 else
8755 pkg_failed=untried
8756 fi
8757
8758
8759
8760 if test $pkg_failed = yes; then
8761
8762 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8763 _pkg_short_errors_supported=yes
8764 else
8765 _pkg_short_errors_supported=no
8766 fi
8767 if test $_pkg_short_errors_supported = yes; then
8768 LIBOSSO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libosso"`
8769 else
8770 LIBOSSO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libosso"`
8771 fi
8772 # Put the nasty error message in config.log where it belongs
8773 echo "$LIBOSSO_PKG_ERRORS" >&5
8774
8775 { $as_echo "$as_me:$LINENO: result: no" >&5
8776 $as_echo "no" >&6; }
8777
8778 { $as_echo "$as_me:$LINENO: result: no" >&5
8779 $as_echo "no" >&6; }
8780 enable_osso=no
8781
8782 elif test $pkg_failed = untried; then
8783
8784 { $as_echo "$as_me:$LINENO: result: no" >&5
8785 $as_echo "no" >&6; }
8786 enable_osso=no
8787
8788 else
8789 LIBOSSO_CFLAGS=$pkg_cv_LIBOSSO_CFLAGS
8790 LIBOSSO_LIBS=$pkg_cv_LIBOSSO_LIBS
8791 { $as_echo "$as_me:$LINENO: result: yes" >&5
8792 $as_echo "yes" >&6; }
8793 :
8794 fi
8795 if test x"${enable_osso}" = xyes ; then
8796
8797 cat >>confdefs.h <<\_ACEOF
8798 @%:@define USE_OSSO 1
8799 _ACEOF
8800
8801
8802
8803 fi
8804 fi
8805 echo ${enable_osso}
8806 if test "x${enable_osso}" = "xyes"; then
8807 USE_OSSO_TRUE=
8808 USE_OSSO_FALSE='#'
8809 else
8810 USE_OSSO_TRUE='#'
8811 USE_OSSO_FALSE=
8812 fi
8813
8814
8815 @%:@ Check whether --enable-garmin was given.
8816 if test "${enable_garmin+set}" = set; then
8817 enableval=$enable_garmin; USE_GARMIN=$enableval
8818 else
8819 USE_GARMIN=yes
8820 fi
8821
8822
8823 # samplemap
8824 # Extract the first word of "bzcat", so it can be a program name with args.
8825 set dummy bzcat; ac_word=$2
8826 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8827 $as_echo_n "checking for $ac_word... " >&6; }
8828 if test "${ac_cv_path__PATH_BZCAT+set}" = set; then
8829 $as_echo_n "(cached) " >&6
8830 else
8831 case $_PATH_BZCAT in
8832 [\\/]* | ?:[\\/]*)
8833 ac_cv_path__PATH_BZCAT="$_PATH_BZCAT" # Let the user override the test with a path.
8834 ;;
8835 *)
8836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8837 for as_dir in $PATH
8838 do
8839 IFS=$as_save_IFS
8840 test -z "$as_dir" && as_dir=.
8841 for ac_exec_ext in '' $ac_executable_extensions; do
8842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8843 ac_cv_path__PATH_BZCAT="$as_dir/$ac_word$ac_exec_ext"
8844 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8845 break 2
8846 fi
8847 done
8848 done
8849 IFS=$as_save_IFS
8850
8851 ;;
8852 esac
8853 fi
8854 _PATH_BZCAT=$ac_cv_path__PATH_BZCAT
8855 if test -n "$_PATH_BZCAT"; then
8856 { $as_echo "$as_me:$LINENO: result: $_PATH_BZCAT" >&5
8857 $as_echo "$_PATH_BZCAT" >&6; }
8858 else
8859 { $as_echo "$as_me:$LINENO: result: no" >&5
8860 $as_echo "no" >&6; }
8861 fi
8862
8863
8864 if test "x${_PATH_BZCAT}" = "x" ; then
8865 samplemap=no; samplemap_reason="bzcat missing"
8866 fi
8867 @%:@ Check whether --enable-maptool was given.
8868 if test "${enable_maptool+set}" = set; then
8869 enableval=$enable_maptool; maptool=$enableval;maptool_reason="configure parameter"
8870 fi
8871
8872 if test "x$maptool" = "xyes"; then
8873 MAPTOOL_TRUE=
8874 MAPTOOL_FALSE='#'
8875 else
8876 MAPTOOL_TRUE='#'
8877 MAPTOOL_FALSE=
8878 fi
8879
8880 if test "x$maptool" != "xyes"; then
8881 samplemap=no; samplemap_reason="maptool disabled"
8882 fi
8883 @%:@ Check whether --enable-samplemap was given.
8884 if test "${enable_samplemap+set}" = set; then
8885 enableval=$enable_samplemap; samplemap=$enableval;samplemap_reason="configure parameter"
8886 fi
8887
8888 if test "x$samplemap" = "xyes"; then
8889 BUILD_SAMPLEMAP_TRUE=
8890 BUILD_SAMPLEMAP_FALSE='#'
8891 else
8892 BUILD_SAMPLEMAP_TRUE='#'
8893 BUILD_SAMPLEMAP_FALSE=
8894 fi
8895
8896
8897 @%:@ Check whether --enable-fastmath was given.
8898 if test "${enable_fastmath+set}" = set; then
8899 enableval=$enable_fastmath; fastmath=$enableval
8900 else
8901 fastmath=yes
8902 fi
8903
8904 if test "x$fastmath" = "xyes"; then
8905 FASTMATH_TRUE=
8906 FASTMATH_FALSE='#'
8907 else
8908 FASTMATH_TRUE='#'
8909 FASTMATH_FALSE=
8910 fi
8911
8912
8913 if test x"$fastmath" = xyes; then
8914 if eval "test x$GCC = xyes"; then
8915 CFLAGS="$CFLAGS -ffast-math"
8916 fi
8917 fi
8918
8919 X_CFLAGS="-I$x_includes"
8920 if test -n "$ac_x_libraries"; then
8921 X_LIBS="-L$ac_x_libraries"
8922 fi
8923
8924
8925 # glib
8926 @%:@ Check whether --enable-glib was given.
8927 if test "${enable_glib+set}" = set; then
8928 enableval=$enable_glib; glib=$enableval
8929 else
8930 glib=yes
8931 fi
8932
8933 if test "x${glib}" = "xyes" -a "x${GLIB_CFLAGS}" = "x" -a "x${GLIB_LIBS}" = "x"; then
8934
8935 pkg_failed=no
8936 { $as_echo "$as_me:$LINENO: checking for GLIB" >&5
8937 $as_echo_n "checking for GLIB... " >&6; }
8938
8939 if test -n "$PKG_CONFIG"; then
8940 if test -n "$GLIB_CFLAGS"; then
8941 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
8942 else
8943 if test -n "$PKG_CONFIG" && \
8944 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 gthread-2.0\"") >&5
8945 ($PKG_CONFIG --exists --print-errors "glib-2.0 gthread-2.0") 2>&5
8946 ac_status=$?
8947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); }; then
8949 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 gthread-2.0" 2>/dev/null`
8950 else
8951 pkg_failed=yes
8952 fi
8953 fi
8954 else
8955 pkg_failed=untried
8956 fi
8957 if test -n "$PKG_CONFIG"; then
8958 if test -n "$GLIB_LIBS"; then
8959 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
8960 else
8961 if test -n "$PKG_CONFIG" && \
8962 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 gthread-2.0\"") >&5
8963 ($PKG_CONFIG --exists --print-errors "glib-2.0 gthread-2.0") 2>&5
8964 ac_status=$?
8965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); }; then
8967 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 gthread-2.0" 2>/dev/null`
8968 else
8969 pkg_failed=yes
8970 fi
8971 fi
8972 else
8973 pkg_failed=untried
8974 fi
8975
8976
8977
8978 if test $pkg_failed = yes; then
8979
8980 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8981 _pkg_short_errors_supported=yes
8982 else
8983 _pkg_short_errors_supported=no
8984 fi
8985 if test $_pkg_short_errors_supported = yes; then
8986 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 gthread-2.0"`
8987 else
8988 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 gthread-2.0"`
8989 fi
8990 # Put the nasty error message in config.log where it belongs
8991 echo "$GLIB_PKG_ERRORS" >&5
8992
8993 { $as_echo "$as_me:$LINENO: result: no" >&5
8994 $as_echo "no" >&6; }
8995 glib=no
8996 elif test $pkg_failed = untried; then
8997 glib=no
8998 else
8999 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
9000 GLIB_LIBS=$pkg_cv_GLIB_LIBS
9001 { $as_echo "$as_me:$LINENO: result: yes" >&5
9002 $as_echo "yes" >&6; }
9003 glib=yes
9004 fi
9005 fi
9006 if test "x${glib}" = "xyes"; then
9007
9008 cat >>confdefs.h <<\_ACEOF
9009 @%:@define HAVE_GLIB 1
9010 _ACEOF
9011
9012 else
9013 GLIB_CFLAGS="-I\$(top_srcdir)/navit/support -I\$(top_srcdir)/navit/support/glib -I\$(top_srcdir)/navit/support/ezxml"
9014 GLIB_LIBS="-L\$(top_builddir)/navit/support/glib -lsupport_glib -L\$(top_builddir)/navit/support/ezxml -lsupport_ezxml"
9015 if test "x${win32}" != "xyes" -a "x${android}" != "xyes"; then
9016 GLIB_LIBS="$GLIB_LIBS -lpthread"
9017 fi
9018 fi
9019
9020 # gmodule
9021 @%:@ Check whether --enable-gmodule was given.
9022 if test "${enable_gmodule+set}" = set; then
9023 enableval=$enable_gmodule; gmodule=$enableval
9024 else
9025 gmodule=yes
9026 fi
9027
9028 if test x"${gmodule}" = "xyes"; then
9029
9030 pkg_failed=no
9031 { $as_echo "$as_me:$LINENO: checking for GMODULE" >&5
9032 $as_echo_n "checking for GMODULE... " >&6; }
9033
9034 if test -n "$PKG_CONFIG"; then
9035 if test -n "$GMODULE_CFLAGS"; then
9036 pkg_cv_GMODULE_CFLAGS="$GMODULE_CFLAGS"
9037 else
9038 if test -n "$PKG_CONFIG" && \
9039 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\"") >&5
9040 ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5
9041 ac_status=$?
9042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); }; then
9044 pkg_cv_GMODULE_CFLAGS=`$PKG_CONFIG --cflags "gmodule-2.0" 2>/dev/null`
9045 else
9046 pkg_failed=yes
9047 fi
9048 fi
9049 else
9050 pkg_failed=untried
9051 fi
9052 if test -n "$PKG_CONFIG"; then
9053 if test -n "$GMODULE_LIBS"; then
9054 pkg_cv_GMODULE_LIBS="$GMODULE_LIBS"
9055 else
9056 if test -n "$PKG_CONFIG" && \
9057 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\"") >&5
9058 ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5
9059 ac_status=$?
9060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); }; then
9062 pkg_cv_GMODULE_LIBS=`$PKG_CONFIG --libs "gmodule-2.0" 2>/dev/null`
9063 else
9064 pkg_failed=yes
9065 fi
9066 fi
9067 else
9068 pkg_failed=untried
9069 fi
9070
9071
9072
9073 if test $pkg_failed = yes; then
9074
9075 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9076 _pkg_short_errors_supported=yes
9077 else
9078 _pkg_short_errors_supported=no
9079 fi
9080 if test $_pkg_short_errors_supported = yes; then
9081 GMODULE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gmodule-2.0"`
9082 else
9083 GMODULE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gmodule-2.0"`
9084 fi
9085 # Put the nasty error message in config.log where it belongs
9086 echo "$GMODULE_PKG_ERRORS" >&5
9087
9088 { $as_echo "$as_me:$LINENO: result: no" >&5
9089 $as_echo "no" >&6; }
9090 gmodule=no
9091 elif test $pkg_failed = untried; then
9092 gmodule=no
9093 else
9094 GMODULE_CFLAGS=$pkg_cv_GMODULE_CFLAGS
9095 GMODULE_LIBS=$pkg_cv_GMODULE_LIBS
9096 { $as_echo "$as_me:$LINENO: result: yes" >&5
9097 $as_echo "yes" >&6; }
9098 gmodule=yes
9099 fi
9100 fi
9101 if test "x${gmodule}" = "xyes"; then
9102
9103 cat >>confdefs.h <<\_ACEOF
9104 @%:@define HAVE_GMODULE 1
9105 _ACEOF
9106
9107 else
9108 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9109 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9110 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9111 $as_echo_n "(cached) " >&6
9112 else
9113 ac_check_lib_save_LIBS=$LIBS
9114 LIBS="-ldl $LIBS"
9115 cat >conftest.$ac_ext <<_ACEOF
9116 /* confdefs.h. */
9117 _ACEOF
9118 cat confdefs.h >>conftest.$ac_ext
9119 cat >>conftest.$ac_ext <<_ACEOF
9120 /* end confdefs.h. */
9121
9122 /* Override any GCC internal prototype to avoid an error.
9123 Use char because int might match the return type of a GCC
9124 builtin and then its argument prototype would still apply. */
9125 #ifdef __cplusplus
9126 extern "C"
9127 #endif
9128 char dlopen ();
9129 int
9130 main ()
9131 {
9132 return dlopen ();
9133 ;
9134 return 0;
9135 }
9136 _ACEOF
9137 rm -f conftest.$ac_objext conftest$ac_exeext
9138 if { (ac_try="$ac_link"
9139 case "(($ac_try" in
9140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9141 *) ac_try_echo=$ac_try;;
9142 esac
9143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9144 $as_echo "$ac_try_echo") >&5
9145 (eval "$ac_link") 2>conftest.er1
9146 ac_status=$?
9147 grep -v '^ *+' conftest.er1 >conftest.err
9148 rm -f conftest.er1
9149 cat conftest.err >&5
9150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); } && {
9152 test -z "$ac_c_werror_flag" ||
9153 test ! -s conftest.err
9154 } && test -s conftest$ac_exeext && {
9155 test "$cross_compiling" = yes ||
9156 $as_test_x conftest$ac_exeext
9157 }; then
9158 ac_cv_lib_dl_dlopen=yes
9159 else
9160 $as_echo "$as_me: failed program was:" >&5
9161 sed 's/^/| /' conftest.$ac_ext >&5
9162
9163 ac_cv_lib_dl_dlopen=no
9164 fi
9165
9166 rm -rf conftest.dSYM
9167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9168 conftest$ac_exeext conftest.$ac_ext
9169 LIBS=$ac_check_lib_save_LIBS
9170 fi
9171 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9172 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9173 if test $ac_cv_lib_dl_dlopen = yes; then
9174 plugins_reason="default, via dlopen";GMODULE_LIBS="-ldl";
9175 cat >>confdefs.h <<\_ACEOF
9176 @%:@define HAVE_DLOPEN 1
9177 _ACEOF
9178
9179 else
9180 plugins="no"; plugins_reason="package gmodule and dlopen missing"
9181
9182 fi
9183
9184 fi
9185
9186 # libcrypto
9187 { $as_echo "$as_me:$LINENO: checking for AES_encrypt in -lcrypto" >&5
9188 $as_echo_n "checking for AES_encrypt in -lcrypto... " >&6; }
9189 if test "${ac_cv_lib_crypto_AES_encrypt+set}" = set; then
9190 $as_echo_n "(cached) " >&6
9191 else
9192 ac_check_lib_save_LIBS=$LIBS
9193 LIBS="-lcrypto $LIBS"
9194 cat >conftest.$ac_ext <<_ACEOF
9195 /* confdefs.h. */
9196 _ACEOF
9197 cat confdefs.h >>conftest.$ac_ext
9198 cat >>conftest.$ac_ext <<_ACEOF
9199 /* end confdefs.h. */
9200
9201 /* Override any GCC internal prototype to avoid an error.
9202 Use char because int might match the return type of a GCC
9203 builtin and then its argument prototype would still apply. */
9204 #ifdef __cplusplus
9205 extern "C"
9206 #endif
9207 char AES_encrypt ();
9208 int
9209 main ()
9210 {
9211 return AES_encrypt ();
9212 ;
9213 return 0;
9214 }
9215 _ACEOF
9216 rm -f conftest.$ac_objext conftest$ac_exeext
9217 if { (ac_try="$ac_link"
9218 case "(($ac_try" in
9219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9220 *) ac_try_echo=$ac_try;;
9221 esac
9222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9223 $as_echo "$ac_try_echo") >&5
9224 (eval "$ac_link") 2>conftest.er1
9225 ac_status=$?
9226 grep -v '^ *+' conftest.er1 >conftest.err
9227 rm -f conftest.er1
9228 cat conftest.err >&5
9229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); } && {
9231 test -z "$ac_c_werror_flag" ||
9232 test ! -s conftest.err
9233 } && test -s conftest$ac_exeext && {
9234 test "$cross_compiling" = yes ||
9235 $as_test_x conftest$ac_exeext
9236 }; then
9237 ac_cv_lib_crypto_AES_encrypt=yes
9238 else
9239 $as_echo "$as_me: failed program was:" >&5
9240 sed 's/^/| /' conftest.$ac_ext >&5
9241
9242 ac_cv_lib_crypto_AES_encrypt=no
9243 fi
9244
9245 rm -rf conftest.dSYM
9246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9247 conftest$ac_exeext conftest.$ac_ext
9248 LIBS=$ac_check_lib_save_LIBS
9249 fi
9250 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_AES_encrypt" >&5
9251 $as_echo "$ac_cv_lib_crypto_AES_encrypt" >&6; }
9252 if test $ac_cv_lib_crypto_AES_encrypt = yes; then
9253 CRYPTO_LIBS="-lcrypto";
9254 cat >>confdefs.h <<\_ACEOF
9255 @%:@define HAVE_LIBCRYPTO 1
9256 _ACEOF
9257
9258 fi
9259
9260
9261
9262 # plugins
9263 @%:@ Check whether --enable-plugins was given.
9264 if test "${enable_plugins+set}" = set; then
9265 enableval=$enable_plugins; plugins=$enableval;plugin_reason="configure parameter"
9266 fi
9267
9268 @%:@ Check whether --enable-shared-libnavit was given.
9269 if test "${enable_shared_libnavit+set}" = set; then
9270 enableval=$enable_shared_libnavit; shared_libnavit=$enableval
9271 fi
9272
9273 if test "x${plugins}" = "xyes"; then
9274 @%:@ Check whether --enable-shared was given.
9275 if test "${enable_shared+set}" = set; then
9276 enableval=$enable_shared; p=${PACKAGE-default}
9277 case $enableval in
9278 yes) enable_shared=yes ;;
9279 no) enable_shared=no ;;
9280 *)
9281 enable_shared=no
9282 # Look at the argument we got. We use all the common list separators.
9283 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9284 for pkg in $enableval; do
9285 IFS="$lt_save_ifs"
9286 if test "X$pkg" = "X$p"; then
9287 enable_shared=yes
9288 fi
9289 done
9290 IFS="$lt_save_ifs"
9291 ;;
9292 esac
9293 else
9294 enable_shared=yes
9295 fi
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305 @%:@ Check whether --enable-static was given.
9306 if test "${enable_static+set}" = set; then
9307 enableval=$enable_static; p=${PACKAGE-default}
9308 case $enableval in
9309 yes) enable_static=yes ;;
9310 no) enable_static=no ;;
9311 *)
9312 enable_static=no
9313 # Look at the argument we got. We use all the common list separators.
9314 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9315 for pkg in $enableval; do
9316 IFS="$lt_save_ifs"
9317 if test "X$pkg" = "X$p"; then
9318 enable_static=yes
9319 fi
9320 done
9321 IFS="$lt_save_ifs"
9322 ;;
9323 esac
9324 else
9325 enable_static=no
9326 fi
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337 cat >>confdefs.h <<\_ACEOF
9338 @%:@define USE_PLUGINS /**/
9339 _ACEOF
9340
9341 if test "x${win32}" = "xyes"; then
9342 shared_libnavit=yes
9343 NAVIT_MODULE_LDFLAGS="-no-undefined -L\$(top_builddir)/navit -l$LIBNAVIT -L\$(top_builddir)/intl -lintl"
9344 fi
9345 else
9346 if test "x${shared_libnavit}" = "xyes"; then
9347 @%:@ Check whether --enable-shared was given.
9348 if test "${enable_shared+set}" = set; then
9349 enableval=$enable_shared; p=${PACKAGE-default}
9350 case $enableval in
9351 yes) enable_shared=yes ;;
9352 no) enable_shared=no ;;
9353 *)
9354 enable_shared=no
9355 # Look at the argument we got. We use all the common list separators.
9356 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9357 for pkg in $enableval; do
9358 IFS="$lt_save_ifs"
9359 if test "X$pkg" = "X$p"; then
9360 enable_shared=yes
9361 fi
9362 done
9363 IFS="$lt_save_ifs"
9364 ;;
9365 esac
9366 else
9367 enable_shared=yes
9368 fi
9369
9370
9371
9372
9373
9374
9375 @%:@ Check whether --enable-static was given.
9376 if test "${enable_static+set}" = set; then
9377 enableval=$enable_static; p=${PACKAGE-default}
9378 case $enableval in
9379 yes) enable_static=yes ;;
9380 no) enable_static=no ;;
9381 *)
9382 enable_static=no
9383 # Look at the argument we got. We use all the common list separators.
9384 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9385 for pkg in $enableval; do
9386 IFS="$lt_save_ifs"
9387 if test "X$pkg" = "X$p"; then
9388 enable_static=yes
9389 fi
9390 done
9391 IFS="$lt_save_ifs"
9392 ;;
9393 esac
9394 else
9395 enable_static=no
9396 fi
9397
9398
9399
9400
9401
9402
9403 else
9404 @%:@ Check whether --enable-shared was given.
9405 if test "${enable_shared+set}" = set; then
9406 enableval=$enable_shared; p=${PACKAGE-default}
9407 case $enableval in
9408 yes) enable_shared=yes ;;
9409 no) enable_shared=no ;;
9410 *)
9411 enable_shared=no
9412 # Look at the argument we got. We use all the common list separators.
9413 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9414 for pkg in $enableval; do
9415 IFS="$lt_save_ifs"
9416 if test "X$pkg" = "X$p"; then
9417 enable_shared=yes
9418 fi
9419 done
9420 IFS="$lt_save_ifs"
9421 ;;
9422 esac
9423 else
9424 enable_shared=no
9425 fi
9426
9427
9428
9429
9430
9431
9432 @%:@ Check whether --enable-static was given.
9433 if test "${enable_static+set}" = set; then
9434 enableval=$enable_static; p=${PACKAGE-default}
9435 case $enableval in
9436 yes) enable_static=yes ;;
9437 no) enable_static=no ;;
9438 *)
9439 enable_static=no
9440 # Look at the argument we got. We use all the common list separators.
9441 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9442 for pkg in $enableval; do
9443 IFS="$lt_save_ifs"
9444 if test "X$pkg" = "X$p"; then
9445 enable_static=yes
9446 fi
9447 done
9448 IFS="$lt_save_ifs"
9449 ;;
9450 esac
9451 else
9452 enable_static=yes
9453 fi
9454
9455
9456
9457
9458
9459
9460 fi
9461 fi
9462 if test "x$plugins" = "xyes"; then
9463 PLUGINS_TRUE=
9464 PLUGINS_FALSE='#'
9465 else
9466 PLUGINS_TRUE='#'
9467 PLUGINS_FALSE=
9468 fi
9469
9470 if test "x$shared_libnavit" = "xyes"; then
9471 SHARED_LIBNAVIT_TRUE=
9472 SHARED_LIBNAVIT_FALSE='#'
9473 else
9474 SHARED_LIBNAVIT_TRUE='#'
9475 SHARED_LIBNAVIT_FALSE=
9476 fi
9477
9478 if test "x$bin_navit" = "xyes"; then
9479 BIN_NAVIT_TRUE=
9480 BIN_NAVIT_FALSE='#'
9481 else
9482 BIN_NAVIT_TRUE='#'
9483 BIN_NAVIT_FALSE=
9484 fi
9485
9486 case `pwd` in
9487 *\ * | *\ *)
9488 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9489 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9490 esac
9491
9492
9493
9494 macro_version='2.2.6b'
9495 macro_revision='1.3017'
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509 ltmain="$ac_aux_dir/ltmain.sh"
9510
9511 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9512 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
9513 if test "${ac_cv_path_SED+set}" = set; then
9514 $as_echo_n "(cached) " >&6
9515 else
9516 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
9517 for ac_i in 1 2 3 4 5 6 7; do
9518 ac_script="$ac_script$as_nl$ac_script"
9519 done
9520 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
9521 $as_unset ac_script || ac_script=
9522 if test -z "$SED"; then
9523 ac_path_SED_found=false
9524 # Loop through the user's path and test for each of PROGNAME-LIST
9525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9526 for as_dir in $PATH
9527 do
9528 IFS=$as_save_IFS
9529 test -z "$as_dir" && as_dir=.
9530 for ac_prog in sed gsed; do
9531 for ac_exec_ext in '' $ac_executable_extensions; do
9532 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
9533 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
9534 # Check for GNU ac_path_SED and select it if it is found.
9535 # Check for GNU $ac_path_SED
9536 case `"$ac_path_SED" --version 2>&1` in
9537 *GNU*)
9538 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
9539 *)
9540 ac_count=0
9541 $as_echo_n 0123456789 >"conftest.in"
9542 while :
9543 do
9544 cat "conftest.in" "conftest.in" >"conftest.tmp"
9545 mv "conftest.tmp" "conftest.in"
9546 cp "conftest.in" "conftest.nl"
9547 $as_echo '' >> "conftest.nl"
9548 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
9549 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9550 ac_count=`expr $ac_count + 1`
9551 if test $ac_count -gt ${ac_path_SED_max-0}; then
9552 # Best one so far, save it but keep looking for a better one
9553 ac_cv_path_SED="$ac_path_SED"
9554 ac_path_SED_max=$ac_count
9555 fi
9556 # 10*(2^10) chars as input seems more than enough
9557 test $ac_count -gt 10 && break
9558 done
9559 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9560 esac
9561
9562 $ac_path_SED_found && break 3
9563 done
9564 done
9565 done
9566 IFS=$as_save_IFS
9567 if test -z "$ac_cv_path_SED"; then
9568 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
9569 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
9570 { (exit 1); exit 1; }; }
9571 fi
9572 else
9573 ac_cv_path_SED=$SED
9574 fi
9575
9576 fi
9577 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
9578 $as_echo "$ac_cv_path_SED" >&6; }
9579 SED="$ac_cv_path_SED"
9580 rm -f conftest.sed
9581
9582 test -z "$SED" && SED=sed
9583 Xsed="$SED -e 1s/^X//"
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
9596 $as_echo_n "checking for fgrep... " >&6; }
9597 if test "${ac_cv_path_FGREP+set}" = set; then
9598 $as_echo_n "(cached) " >&6
9599 else
9600 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
9601 then ac_cv_path_FGREP="$GREP -F"
9602 else
9603 if test -z "$FGREP"; then
9604 ac_path_FGREP_found=false
9605 # Loop through the user's path and test for each of PROGNAME-LIST
9606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9607 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9608 do
9609 IFS=$as_save_IFS
9610 test -z "$as_dir" && as_dir=.
9611 for ac_prog in fgrep; do
9612 for ac_exec_ext in '' $ac_executable_extensions; do
9613 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
9614 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
9615 # Check for GNU ac_path_FGREP and select it if it is found.
9616 # Check for GNU $ac_path_FGREP
9617 case `"$ac_path_FGREP" --version 2>&1` in
9618 *GNU*)
9619 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
9620 *)
9621 ac_count=0
9622 $as_echo_n 0123456789 >"conftest.in"
9623 while :
9624 do
9625 cat "conftest.in" "conftest.in" >"conftest.tmp"
9626 mv "conftest.tmp" "conftest.in"
9627 cp "conftest.in" "conftest.nl"
9628 $as_echo 'FGREP' >> "conftest.nl"
9629 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
9630 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9631 ac_count=`expr $ac_count + 1`
9632 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
9633 # Best one so far, save it but keep looking for a better one
9634 ac_cv_path_FGREP="$ac_path_FGREP"
9635 ac_path_FGREP_max=$ac_count
9636 fi
9637 # 10*(2^10) chars as input seems more than enough
9638 test $ac_count -gt 10 && break
9639 done
9640 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9641 esac
9642
9643 $ac_path_FGREP_found && break 3
9644 done
9645 done
9646 done
9647 IFS=$as_save_IFS
9648 if test -z "$ac_cv_path_FGREP"; then
9649 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
9650 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
9651 { (exit 1); exit 1; }; }
9652 fi
9653 else
9654 ac_cv_path_FGREP=$FGREP
9655 fi
9656
9657 fi
9658 fi
9659 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
9660 $as_echo "$ac_cv_path_FGREP" >&6; }
9661 FGREP="$ac_cv_path_FGREP"
9662
9663
9664 test -z "$GREP" && GREP=grep
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684 @%:@ Check whether --with-gnu-ld was given.
9685 if test "${with_gnu_ld+set}" = set; then
9686 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9687 else
9688 with_gnu_ld=no
9689 fi
9690
9691 ac_prog=ld
9692 if test "$GCC" = yes; then
9693 # Check if gcc -print-prog-name=ld gives a path.
9694 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9695 $as_echo_n "checking for ld used by $CC... " >&6; }
9696 case $host in
9697 *-*-mingw*)
9698 # gcc leaves a trailing carriage return which upsets mingw
9699 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9700 *)
9701 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9702 esac
9703 case $ac_prog in
9704 # Accept absolute paths.
9705 [\\/]* | ?:[\\/]*)
9706 re_direlt='/[^/][^/]*/\.\./'
9707 # Canonicalize the pathname of ld
9708 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
9709 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
9710 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
9711 done
9712 test -z "$LD" && LD="$ac_prog"
9713 ;;
9714 "")
9715 # If it fails, then pretend we aren't using GCC.
9716 ac_prog=ld
9717 ;;
9718 *)
9719 # If it is relative, then search for the first ld in PATH.
9720 with_gnu_ld=unknown
9721 ;;
9722 esac
9723 elif test "$with_gnu_ld" = yes; then
9724 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
9725 $as_echo_n "checking for GNU ld... " >&6; }
9726 else
9727 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9728 $as_echo_n "checking for non-GNU ld... " >&6; }
9729 fi
9730 if test "${lt_cv_path_LD+set}" = set; then
9731 $as_echo_n "(cached) " >&6
9732 else
9733 if test -z "$LD"; then
9734 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9735 for ac_dir in $PATH; do
9736 IFS="$lt_save_ifs"
9737 test -z "$ac_dir" && ac_dir=.
9738 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9739 lt_cv_path_LD="$ac_dir/$ac_prog"
9740 # Check to see if the program is GNU ld. I'd rather use --version,
9741 # but apparently some variants of GNU ld only accept -v.
9742 # Break only if it was the GNU/non-GNU ld that we prefer.
9743 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9744 *GNU* | *'with BFD'*)
9745 test "$with_gnu_ld" != no && break
9746 ;;
9747 *)
9748 test "$with_gnu_ld" != yes && break
9749 ;;
9750 esac
9751 fi
9752 done
9753 IFS="$lt_save_ifs"
9754 else
9755 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9756 fi
9757 fi
9758
9759 LD="$lt_cv_path_LD"
9760 if test -n "$LD"; then
9761 { $as_echo "$as_me:$LINENO: result: $LD" >&5
9762 $as_echo "$LD" >&6; }
9763 else
9764 { $as_echo "$as_me:$LINENO: result: no" >&5
9765 $as_echo "no" >&6; }
9766 fi
9767 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9768 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9769 { (exit 1); exit 1; }; }
9770 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9771 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9772 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9773 $as_echo_n "(cached) " >&6
9774 else
9775 # I'd rather use --version here, but apparently some GNU lds only accept -v.
9776 case `$LD -v 2>&1 </dev/null` in
9777 *GNU* | *'with BFD'*)
9778 lt_cv_prog_gnu_ld=yes
9779 ;;
9780 *)
9781 lt_cv_prog_gnu_ld=no
9782 ;;
9783 esac
9784 fi
9785 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9786 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
9787 with_gnu_ld=$lt_cv_prog_gnu_ld
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
9798 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9799 if test "${lt_cv_path_NM+set}" = set; then
9800 $as_echo_n "(cached) " >&6
9801 else
9802 if test -n "$NM"; then
9803 # Let the user override the test.
9804 lt_cv_path_NM="$NM"
9805 else
9806 lt_nm_to_check="${ac_tool_prefix}nm"
9807 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9808 lt_nm_to_check="$lt_nm_to_check nm"
9809 fi
9810 for lt_tmp_nm in $lt_nm_to_check; do
9811 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9812 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9813 IFS="$lt_save_ifs"
9814 test -z "$ac_dir" && ac_dir=.
9815 tmp_nm="$ac_dir/$lt_tmp_nm"
9816 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9817 # Check to see if the nm accepts a BSD-compat flag.
9818 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9819 # nm: unknown option "B" ignored
9820 # Tru64's nm complains that /dev/null is an invalid object file
9821 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9822 */dev/null* | *'Invalid file or object type'*)
9823 lt_cv_path_NM="$tmp_nm -B"
9824 break
9825 ;;
9826 *)
9827 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9828 */dev/null*)
9829 lt_cv_path_NM="$tmp_nm -p"
9830 break
9831 ;;
9832 *)
9833 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9834 continue # so that we can try to find one that supports BSD flags
9835 ;;
9836 esac
9837 ;;
9838 esac
9839 fi
9840 done
9841 IFS="$lt_save_ifs"
9842 done
9843 : ${lt_cv_path_NM=no}
9844 fi
9845 fi
9846 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
9847 $as_echo "$lt_cv_path_NM" >&6; }
9848 if test "$lt_cv_path_NM" != "no"; then
9849 NM="$lt_cv_path_NM"
9850 else
9851 # Didn't find any BSD compatible name lister, look for dumpbin.
9852 if test -n "$ac_tool_prefix"; then
9853 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
9854 do
9855 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9856 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9857 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9858 $as_echo_n "checking for $ac_word... " >&6; }
9859 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
9860 $as_echo_n "(cached) " >&6
9861 else
9862 if test -n "$DUMPBIN"; then
9863 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9864 else
9865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9866 for as_dir in $PATH
9867 do
9868 IFS=$as_save_IFS
9869 test -z "$as_dir" && as_dir=.
9870 for ac_exec_ext in '' $ac_executable_extensions; do
9871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9872 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9873 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9874 break 2
9875 fi
9876 done
9877 done
9878 IFS=$as_save_IFS
9879
9880 fi
9881 fi
9882 DUMPBIN=$ac_cv_prog_DUMPBIN
9883 if test -n "$DUMPBIN"; then
9884 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
9885 $as_echo "$DUMPBIN" >&6; }
9886 else
9887 { $as_echo "$as_me:$LINENO: result: no" >&5
9888 $as_echo "no" >&6; }
9889 fi
9890
9891
9892 test -n "$DUMPBIN" && break
9893 done
9894 fi
9895 if test -z "$DUMPBIN"; then
9896 ac_ct_DUMPBIN=$DUMPBIN
9897 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
9898 do
9899 # Extract the first word of "$ac_prog", so it can be a program name with args.
9900 set dummy $ac_prog; ac_word=$2
9901 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9902 $as_echo_n "checking for $ac_word... " >&6; }
9903 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
9904 $as_echo_n "(cached) " >&6
9905 else
9906 if test -n "$ac_ct_DUMPBIN"; then
9907 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9908 else
9909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9910 for as_dir in $PATH
9911 do
9912 IFS=$as_save_IFS
9913 test -z "$as_dir" && as_dir=.
9914 for ac_exec_ext in '' $ac_executable_extensions; do
9915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9916 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9917 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9918 break 2
9919 fi
9920 done
9921 done
9922 IFS=$as_save_IFS
9923
9924 fi
9925 fi
9926 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9927 if test -n "$ac_ct_DUMPBIN"; then
9928 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
9929 $as_echo "$ac_ct_DUMPBIN" >&6; }
9930 else
9931 { $as_echo "$as_me:$LINENO: result: no" >&5
9932 $as_echo "no" >&6; }
9933 fi
9934
9935
9936 test -n "$ac_ct_DUMPBIN" && break
9937 done
9938
9939 if test "x$ac_ct_DUMPBIN" = x; then
9940 DUMPBIN=":"
9941 else
9942 case $cross_compiling:$ac_tool_warned in
9943 yes:)
9944 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9945 whose name does not start with the host triplet. If you think this
9946 configuration is useful to you, please write to autoconf@gnu.org." >&5
9947 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9948 whose name does not start with the host triplet. If you think this
9949 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9950 ac_tool_warned=yes ;;
9951 esac
9952 DUMPBIN=$ac_ct_DUMPBIN
9953 fi
9954 fi
9955
9956
9957 if test "$DUMPBIN" != ":"; then
9958 NM="$DUMPBIN"
9959 fi
9960 fi
9961 test -z "$NM" && NM=nm
9962
9963
9964
9965
9966
9967
9968 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
9969 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
9970 if test "${lt_cv_nm_interface+set}" = set; then
9971 $as_echo_n "(cached) " >&6
9972 else
9973 lt_cv_nm_interface="BSD nm"
9974 echo "int some_variable = 0;" > conftest.$ac_ext
9975 (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&5)
9976 (eval "$ac_compile" 2>conftest.err)
9977 cat conftest.err >&5
9978 (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9979 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9980 cat conftest.err >&5
9981 (eval echo "\"\$as_me:__oline__: output\"" >&5)
9982 cat conftest.out >&5
9983 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9984 lt_cv_nm_interface="MS dumpbin"
9985 fi
9986 rm -f conftest*
9987 fi
9988 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
9989 $as_echo "$lt_cv_nm_interface" >&6; }
9990
9991 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
9992 $as_echo_n "checking whether ln -s works... " >&6; }
9993 LN_S=$as_ln_s
9994 if test "$LN_S" = "ln -s"; then
9995 { $as_echo "$as_me:$LINENO: result: yes" >&5
9996 $as_echo "yes" >&6; }
9997 else
9998 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
9999 $as_echo "no, using $LN_S" >&6; }
10000 fi
10001
10002 # find the maximum length of command line arguments
10003 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10004 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
10005 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10006 $as_echo_n "(cached) " >&6
10007 else
10008 i=0
10009 teststring="ABCD"
10010
10011 case $build_os in
10012 msdosdjgpp*)
10013 # On DJGPP, this test can blow up pretty badly due to problems in libc
10014 # (any single argument exceeding 2000 bytes causes a buffer overrun
10015 # during glob expansion). Even if it were fixed, the result of this
10016 # check would be larger than it should be.
10017 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10018 ;;
10019
10020 gnu*)
10021 # Under GNU Hurd, this test is not required because there is
10022 # no limit to the length of command line arguments.
10023 # Libtool will interpret -1 as no limit whatsoever
10024 lt_cv_sys_max_cmd_len=-1;
10025 ;;
10026
10027 cygwin* | mingw* | cegcc*)
10028 # On Win9x/ME, this test blows up -- it succeeds, but takes
10029 # about 5 minutes as the teststring grows exponentially.
10030 # Worse, since 9x/ME are not pre-emptively multitasking,
10031 # you end up with a "frozen" computer, even though with patience
10032 # the test eventually succeeds (with a max line length of 256k).
10033 # Instead, let's just punt: use the minimum linelength reported by
10034 # all of the supported platforms: 8192 (on NT/2K/XP).
10035 lt_cv_sys_max_cmd_len=8192;
10036 ;;
10037
10038 amigaos*)
10039 # On AmigaOS with pdksh, this test takes hours, literally.
10040 # So we just punt and use a minimum line length of 8192.
10041 lt_cv_sys_max_cmd_len=8192;
10042 ;;
10043
10044 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10045 # This has been around since 386BSD, at least. Likely further.
10046 if test -x /sbin/sysctl; then
10047 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10048 elif test -x /usr/sbin/sysctl; then
10049 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10050 else
10051 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10052 fi
10053 # And add a safety zone
10054 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10055 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10056 ;;
10057
10058 interix*)
10059 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10060 lt_cv_sys_max_cmd_len=196608
10061 ;;
10062
10063 osf*)
10064 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10065 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10066 # nice to cause kernel panics so lets avoid the loop below.
10067 # First set a reasonable default.
10068 lt_cv_sys_max_cmd_len=16384
10069 #
10070 if test -x /sbin/sysconfig; then
10071 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10072 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10073 esac
10074 fi
10075 ;;
10076 sco3.2v5*)
10077 lt_cv_sys_max_cmd_len=102400
10078 ;;
10079 sysv5* | sco5v6* | sysv4.2uw2*)
10080 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10081 if test -n "$kargmax"; then
10082 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10083 else
10084 lt_cv_sys_max_cmd_len=32768
10085 fi
10086 ;;
10087 *)
10088 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10089 if test -n "$lt_cv_sys_max_cmd_len"; then
10090 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10091 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10092 else
10093 # Make teststring a little bigger before we do anything with it.
10094 # a 1K string should be a reasonable start.
10095 for i in 1 2 3 4 5 6 7 8 ; do
10096 teststring=$teststring$teststring
10097 done
10098 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10099 # If test is not a shell built-in, we'll probably end up computing a
10100 # maximum length that is only half of the actual maximum length, but
10101 # we can't tell.
10102 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
10103 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
10104 test $i != 17 # 1/2 MB should be enough
10105 do
10106 i=`expr $i + 1`
10107 teststring=$teststring$teststring
10108 done
10109 # Only check the string length outside the loop.
10110 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10111 teststring=
10112 # Add a significant safety factor because C++ compilers can tack on
10113 # massive amounts of additional arguments before passing them to the
10114 # linker. It appears as though 1/2 is a usable value.
10115 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10116 fi
10117 ;;
10118 esac
10119
10120 fi
10121
10122 if test -n $lt_cv_sys_max_cmd_len ; then
10123 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10124 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10125 else
10126 { $as_echo "$as_me:$LINENO: result: none" >&5
10127 $as_echo "none" >&6; }
10128 fi
10129 max_cmd_len=$lt_cv_sys_max_cmd_len
10130
10131
10132
10133
10134
10135
10136 : ${CP="cp -f"}
10137 : ${MV="mv -f"}
10138 : ${RM="rm -f"}
10139
10140 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
10141 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10142 # Try some XSI features
10143 xsi_shell=no
10144 ( _lt_dummy="a/b/c"
10145 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
10146 = c,a/b,, \
10147 && eval 'test $(( 1 + 1 )) -eq 2 \
10148 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10149 && xsi_shell=yes
10150 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
10151 $as_echo "$xsi_shell" >&6; }
10152
10153
10154 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
10155 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10156 lt_shell_append=no
10157 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10158 >/dev/null 2>&1 \
10159 && lt_shell_append=yes
10160 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
10161 $as_echo "$lt_shell_append" >&6; }
10162
10163
10164 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10165 lt_unset=unset
10166 else
10167 lt_unset=false
10168 fi
10169
10170
10171
10172
10173
10174 # test EBCDIC or ASCII
10175 case `echo X|tr X '\101'` in
10176 A) # ASCII based system
10177 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10178 lt_SP2NL='tr \040 \012'
10179 lt_NL2SP='tr \015\012 \040\040'
10180 ;;
10181 *) # EBCDIC based system
10182 lt_SP2NL='tr \100 \n'
10183 lt_NL2SP='tr \r\n \100\100'
10184 ;;
10185 esac
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10196 $as_echo_n "checking for $LD option to reload object files... " >&6; }
10197 if test "${lt_cv_ld_reload_flag+set}" = set; then
10198 $as_echo_n "(cached) " >&6
10199 else
10200 lt_cv_ld_reload_flag='-r'
10201 fi
10202 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10203 $as_echo "$lt_cv_ld_reload_flag" >&6; }
10204 reload_flag=$lt_cv_ld_reload_flag
10205 case $reload_flag in
10206 "" | " "*) ;;
10207 *) reload_flag=" $reload_flag" ;;
10208 esac
10209 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10210 case $host_os in
10211 darwin*)
10212 if test "$GCC" = yes; then
10213 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10214 else
10215 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10216 fi
10217 ;;
10218 esac
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228 if test -n "$ac_tool_prefix"; then
10229 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10230 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10231 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10232 $as_echo_n "checking for $ac_word... " >&6; }
10233 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
10234 $as_echo_n "(cached) " >&6
10235 else
10236 if test -n "$OBJDUMP"; then
10237 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10238 else
10239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10240 for as_dir in $PATH
10241 do
10242 IFS=$as_save_IFS
10243 test -z "$as_dir" && as_dir=.
10244 for ac_exec_ext in '' $ac_executable_extensions; do
10245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10246 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10247 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10248 break 2
10249 fi
10250 done
10251 done
10252 IFS=$as_save_IFS
10253
10254 fi
10255 fi
10256 OBJDUMP=$ac_cv_prog_OBJDUMP
10257 if test -n "$OBJDUMP"; then
10258 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
10259 $as_echo "$OBJDUMP" >&6; }
10260 else
10261 { $as_echo "$as_me:$LINENO: result: no" >&5
10262 $as_echo "no" >&6; }
10263 fi
10264
10265
10266 fi
10267 if test -z "$ac_cv_prog_OBJDUMP"; then
10268 ac_ct_OBJDUMP=$OBJDUMP
10269 # Extract the first word of "objdump", so it can be a program name with args.
10270 set dummy objdump; ac_word=$2
10271 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10272 $as_echo_n "checking for $ac_word... " >&6; }
10273 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
10274 $as_echo_n "(cached) " >&6
10275 else
10276 if test -n "$ac_ct_OBJDUMP"; then
10277 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10278 else
10279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10280 for as_dir in $PATH
10281 do
10282 IFS=$as_save_IFS
10283 test -z "$as_dir" && as_dir=.
10284 for ac_exec_ext in '' $ac_executable_extensions; do
10285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10286 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10287 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10288 break 2
10289 fi
10290 done
10291 done
10292 IFS=$as_save_IFS
10293
10294 fi
10295 fi
10296 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10297 if test -n "$ac_ct_OBJDUMP"; then
10298 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
10299 $as_echo "$ac_ct_OBJDUMP" >&6; }
10300 else
10301 { $as_echo "$as_me:$LINENO: result: no" >&5
10302 $as_echo "no" >&6; }
10303 fi
10304
10305 if test "x$ac_ct_OBJDUMP" = x; then
10306 OBJDUMP="false"
10307 else
10308 case $cross_compiling:$ac_tool_warned in
10309 yes:)
10310 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10311 whose name does not start with the host triplet. If you think this
10312 configuration is useful to you, please write to autoconf@gnu.org." >&5
10313 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10314 whose name does not start with the host triplet. If you think this
10315 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10316 ac_tool_warned=yes ;;
10317 esac
10318 OBJDUMP=$ac_ct_OBJDUMP
10319 fi
10320 else
10321 OBJDUMP="$ac_cv_prog_OBJDUMP"
10322 fi
10323
10324 test -z "$OBJDUMP" && OBJDUMP=objdump
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
10335 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
10336 if test "${lt_cv_deplibs_check_method+set}" = set; then
10337 $as_echo_n "(cached) " >&6
10338 else
10339 lt_cv_file_magic_cmd='$MAGIC_CMD'
10340 lt_cv_file_magic_test_file=
10341 lt_cv_deplibs_check_method='unknown'
10342 # Need to set the preceding variable on all platforms that support
10343 # interlibrary dependencies.
10344 # 'none' -- dependencies not supported.
10345 # `unknown' -- same as none, but documents that we really don't know.
10346 # 'pass_all' -- all dependencies passed with no checks.
10347 # 'test_compile' -- check by making test program.
10348 # 'file_magic [[regex]]' -- check by looking for files in library path
10349 # which responds to the $file_magic_cmd with a given extended regex.
10350 # If you have `file' or equivalent on your system and you're not sure
10351 # whether `pass_all' will *always* work, you probably want this one.
10352
10353 case $host_os in
10354 aix[4-9]*)
10355 lt_cv_deplibs_check_method=pass_all
10356 ;;
10357
10358 beos*)
10359 lt_cv_deplibs_check_method=pass_all
10360 ;;
10361
10362 bsdi[45]*)
10363 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10364 lt_cv_file_magic_cmd='/usr/bin/file -L'
10365 lt_cv_file_magic_test_file=/shlib/libc.so
10366 ;;
10367
10368 cygwin*)
10369 # func_win32_libid is a shell function defined in ltmain.sh
10370 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10371 lt_cv_file_magic_cmd='func_win32_libid'
10372 ;;
10373
10374 mingw* | pw32*)
10375 # Base MSYS/MinGW do not provide the 'file' command needed by
10376 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10377 # unless we find 'file', for example because we are cross-compiling.
10378 if ( file / ) >/dev/null 2>&1; then
10379 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10380 lt_cv_file_magic_cmd='func_win32_libid'
10381 else
10382 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10383 lt_cv_file_magic_cmd='$OBJDUMP -f'
10384 fi
10385 ;;
10386
10387 cegcc)
10388 # use the weaker test based on 'objdump'. See mingw*.
10389 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10390 lt_cv_file_magic_cmd='$OBJDUMP -f'
10391 ;;
10392
10393 darwin* | rhapsody*)
10394 lt_cv_deplibs_check_method=pass_all
10395 ;;
10396
10397 freebsd* | dragonfly*)
10398 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10399 case $host_cpu in
10400 i*86 )
10401 # Not sure whether the presence of OpenBSD here was a mistake.
10402 # Let's accept both of them until this is cleared up.
10403 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10404 lt_cv_file_magic_cmd=/usr/bin/file
10405 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10406 ;;
10407 esac
10408 else
10409 lt_cv_deplibs_check_method=pass_all
10410 fi
10411 ;;
10412
10413 gnu*)
10414 lt_cv_deplibs_check_method=pass_all
10415 ;;
10416
10417 hpux10.20* | hpux11*)
10418 lt_cv_file_magic_cmd=/usr/bin/file
10419 case $host_cpu in
10420 ia64*)
10421 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10422 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10423 ;;
10424 hppa*64*)
10425 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]'
10426 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10427 ;;
10428 *)
10429 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10430 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10431 ;;
10432 esac
10433 ;;
10434
10435 interix[3-9]*)
10436 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10437 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10438 ;;
10439
10440 irix5* | irix6* | nonstopux*)
10441 case $LD in
10442 *-32|*"-32 ") libmagic=32-bit;;
10443 *-n32|*"-n32 ") libmagic=N32;;
10444 *-64|*"-64 ") libmagic=64-bit;;
10445 *) libmagic=never-match;;
10446 esac
10447 lt_cv_deplibs_check_method=pass_all
10448 ;;
10449
10450 # This must be Linux ELF.
10451 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10452 lt_cv_deplibs_check_method=pass_all
10453 ;;
10454
10455 netbsd* | netbsdelf*-gnu)
10456 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10457 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10458 else
10459 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10460 fi
10461 ;;
10462
10463 newos6*)
10464 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10465 lt_cv_file_magic_cmd=/usr/bin/file
10466 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10467 ;;
10468
10469 *nto* | *qnx*)
10470 lt_cv_deplibs_check_method=pass_all
10471 ;;
10472
10473 openbsd*)
10474 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10475 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10476 else
10477 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10478 fi
10479 ;;
10480
10481 osf3* | osf4* | osf5*)
10482 lt_cv_deplibs_check_method=pass_all
10483 ;;
10484
10485 rdos*)
10486 lt_cv_deplibs_check_method=pass_all
10487 ;;
10488
10489 solaris*)
10490 lt_cv_deplibs_check_method=pass_all
10491 ;;
10492
10493 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10494 lt_cv_deplibs_check_method=pass_all
10495 ;;
10496
10497 sysv4 | sysv4.3*)
10498 case $host_vendor in
10499 motorola)
10500 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]'
10501 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10502 ;;
10503 ncr)
10504 lt_cv_deplibs_check_method=pass_all
10505 ;;
10506 sequent)
10507 lt_cv_file_magic_cmd='/bin/file'
10508 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10509 ;;
10510 sni)
10511 lt_cv_file_magic_cmd='/bin/file'
10512 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10513 lt_cv_file_magic_test_file=/lib/libc.so
10514 ;;
10515 siemens)
10516 lt_cv_deplibs_check_method=pass_all
10517 ;;
10518 pc)
10519 lt_cv_deplibs_check_method=pass_all
10520 ;;
10521 esac
10522 ;;
10523
10524 tpf*)
10525 lt_cv_deplibs_check_method=pass_all
10526 ;;
10527 esac
10528
10529 fi
10530 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10531 $as_echo "$lt_cv_deplibs_check_method" >&6; }
10532 file_magic_cmd=$lt_cv_file_magic_cmd
10533 deplibs_check_method=$lt_cv_deplibs_check_method
10534 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547 if test -n "$ac_tool_prefix"; then
10548 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10549 set dummy ${ac_tool_prefix}ar; ac_word=$2
10550 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10551 $as_echo_n "checking for $ac_word... " >&6; }
10552 if test "${ac_cv_prog_AR+set}" = set; then
10553 $as_echo_n "(cached) " >&6
10554 else
10555 if test -n "$AR"; then
10556 ac_cv_prog_AR="$AR" # Let the user override the test.
10557 else
10558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10559 for as_dir in $PATH
10560 do
10561 IFS=$as_save_IFS
10562 test -z "$as_dir" && as_dir=.
10563 for ac_exec_ext in '' $ac_executable_extensions; do
10564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10565 ac_cv_prog_AR="${ac_tool_prefix}ar"
10566 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10567 break 2
10568 fi
10569 done
10570 done
10571 IFS=$as_save_IFS
10572
10573 fi
10574 fi
10575 AR=$ac_cv_prog_AR
10576 if test -n "$AR"; then
10577 { $as_echo "$as_me:$LINENO: result: $AR" >&5
10578 $as_echo "$AR" >&6; }
10579 else
10580 { $as_echo "$as_me:$LINENO: result: no" >&5
10581 $as_echo "no" >&6; }
10582 fi
10583
10584
10585 fi
10586 if test -z "$ac_cv_prog_AR"; then
10587 ac_ct_AR=$AR
10588 # Extract the first word of "ar", so it can be a program name with args.
10589 set dummy ar; ac_word=$2
10590 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10591 $as_echo_n "checking for $ac_word... " >&6; }
10592 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
10593 $as_echo_n "(cached) " >&6
10594 else
10595 if test -n "$ac_ct_AR"; then
10596 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10597 else
10598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10599 for as_dir in $PATH
10600 do
10601 IFS=$as_save_IFS
10602 test -z "$as_dir" && as_dir=.
10603 for ac_exec_ext in '' $ac_executable_extensions; do
10604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10605 ac_cv_prog_ac_ct_AR="ar"
10606 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10607 break 2
10608 fi
10609 done
10610 done
10611 IFS=$as_save_IFS
10612
10613 fi
10614 fi
10615 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10616 if test -n "$ac_ct_AR"; then
10617 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
10618 $as_echo "$ac_ct_AR" >&6; }
10619 else
10620 { $as_echo "$as_me:$LINENO: result: no" >&5
10621 $as_echo "no" >&6; }
10622 fi
10623
10624 if test "x$ac_ct_AR" = x; then
10625 AR="false"
10626 else
10627 case $cross_compiling:$ac_tool_warned in
10628 yes:)
10629 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10630 whose name does not start with the host triplet. If you think this
10631 configuration is useful to you, please write to autoconf@gnu.org." >&5
10632 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10633 whose name does not start with the host triplet. If you think this
10634 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10635 ac_tool_warned=yes ;;
10636 esac
10637 AR=$ac_ct_AR
10638 fi
10639 else
10640 AR="$ac_cv_prog_AR"
10641 fi
10642
10643 test -z "$AR" && AR=ar
10644 test -z "$AR_FLAGS" && AR_FLAGS=cru
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656 if test -n "$ac_tool_prefix"; then
10657 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10658 set dummy ${ac_tool_prefix}strip; ac_word=$2
10659 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10660 $as_echo_n "checking for $ac_word... " >&6; }
10661 if test "${ac_cv_prog_STRIP+set}" = set; then
10662 $as_echo_n "(cached) " >&6
10663 else
10664 if test -n "$STRIP"; then
10665 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10666 else
10667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10668 for as_dir in $PATH
10669 do
10670 IFS=$as_save_IFS
10671 test -z "$as_dir" && as_dir=.
10672 for ac_exec_ext in '' $ac_executable_extensions; do
10673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10674 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10675 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10676 break 2
10677 fi
10678 done
10679 done
10680 IFS=$as_save_IFS
10681
10682 fi
10683 fi
10684 STRIP=$ac_cv_prog_STRIP
10685 if test -n "$STRIP"; then
10686 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
10687 $as_echo "$STRIP" >&6; }
10688 else
10689 { $as_echo "$as_me:$LINENO: result: no" >&5
10690 $as_echo "no" >&6; }
10691 fi
10692
10693
10694 fi
10695 if test -z "$ac_cv_prog_STRIP"; then
10696 ac_ct_STRIP=$STRIP
10697 # Extract the first word of "strip", so it can be a program name with args.
10698 set dummy strip; ac_word=$2
10699 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10700 $as_echo_n "checking for $ac_word... " >&6; }
10701 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
10702 $as_echo_n "(cached) " >&6
10703 else
10704 if test -n "$ac_ct_STRIP"; then
10705 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10706 else
10707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10708 for as_dir in $PATH
10709 do
10710 IFS=$as_save_IFS
10711 test -z "$as_dir" && as_dir=.
10712 for ac_exec_ext in '' $ac_executable_extensions; do
10713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10714 ac_cv_prog_ac_ct_STRIP="strip"
10715 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10716 break 2
10717 fi
10718 done
10719 done
10720 IFS=$as_save_IFS
10721
10722 fi
10723 fi
10724 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10725 if test -n "$ac_ct_STRIP"; then
10726 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
10727 $as_echo "$ac_ct_STRIP" >&6; }
10728 else
10729 { $as_echo "$as_me:$LINENO: result: no" >&5
10730 $as_echo "no" >&6; }
10731 fi
10732
10733 if test "x$ac_ct_STRIP" = x; then
10734 STRIP=":"
10735 else
10736 case $cross_compiling:$ac_tool_warned in
10737 yes:)
10738 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10739 whose name does not start with the host triplet. If you think this
10740 configuration is useful to you, please write to autoconf@gnu.org." >&5
10741 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10742 whose name does not start with the host triplet. If you think this
10743 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10744 ac_tool_warned=yes ;;
10745 esac
10746 STRIP=$ac_ct_STRIP
10747 fi
10748 else
10749 STRIP="$ac_cv_prog_STRIP"
10750 fi
10751
10752 test -z "$STRIP" && STRIP=:
10753
10754
10755
10756
10757
10758
10759 if test -n "$ac_tool_prefix"; then
10760 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10761 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10762 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10763 $as_echo_n "checking for $ac_word... " >&6; }
10764 if test "${ac_cv_prog_RANLIB+set}" = set; then
10765 $as_echo_n "(cached) " >&6
10766 else
10767 if test -n "$RANLIB"; then
10768 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10769 else
10770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10771 for as_dir in $PATH
10772 do
10773 IFS=$as_save_IFS
10774 test -z "$as_dir" && as_dir=.
10775 for ac_exec_ext in '' $ac_executable_extensions; do
10776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10777 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10778 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10779 break 2
10780 fi
10781 done
10782 done
10783 IFS=$as_save_IFS
10784
10785 fi
10786 fi
10787 RANLIB=$ac_cv_prog_RANLIB
10788 if test -n "$RANLIB"; then
10789 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
10790 $as_echo "$RANLIB" >&6; }
10791 else
10792 { $as_echo "$as_me:$LINENO: result: no" >&5
10793 $as_echo "no" >&6; }
10794 fi
10795
10796
10797 fi
10798 if test -z "$ac_cv_prog_RANLIB"; then
10799 ac_ct_RANLIB=$RANLIB
10800 # Extract the first word of "ranlib", so it can be a program name with args.
10801 set dummy ranlib; ac_word=$2
10802 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10803 $as_echo_n "checking for $ac_word... " >&6; }
10804 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
10805 $as_echo_n "(cached) " >&6
10806 else
10807 if test -n "$ac_ct_RANLIB"; then
10808 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10809 else
10810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10811 for as_dir in $PATH
10812 do
10813 IFS=$as_save_IFS
10814 test -z "$as_dir" && as_dir=.
10815 for ac_exec_ext in '' $ac_executable_extensions; do
10816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10817 ac_cv_prog_ac_ct_RANLIB="ranlib"
10818 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10819 break 2
10820 fi
10821 done
10822 done
10823 IFS=$as_save_IFS
10824
10825 fi
10826 fi
10827 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10828 if test -n "$ac_ct_RANLIB"; then
10829 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
10830 $as_echo "$ac_ct_RANLIB" >&6; }
10831 else
10832 { $as_echo "$as_me:$LINENO: result: no" >&5
10833 $as_echo "no" >&6; }
10834 fi
10835
10836 if test "x$ac_ct_RANLIB" = x; then
10837 RANLIB=":"
10838 else
10839 case $cross_compiling:$ac_tool_warned in
10840 yes:)
10841 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10842 whose name does not start with the host triplet. If you think this
10843 configuration is useful to you, please write to autoconf@gnu.org." >&5
10844 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10845 whose name does not start with the host triplet. If you think this
10846 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10847 ac_tool_warned=yes ;;
10848 esac
10849 RANLIB=$ac_ct_RANLIB
10850 fi
10851 else
10852 RANLIB="$ac_cv_prog_RANLIB"
10853 fi
10854
10855 test -z "$RANLIB" && RANLIB=:
10856
10857
10858
10859
10860
10861
10862 # Determine commands to create old-style static archives.
10863 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10864 old_postinstall_cmds='chmod 644 $oldlib'
10865 old_postuninstall_cmds=
10866
10867 if test -n "$RANLIB"; then
10868 case $host_os in
10869 openbsd*)
10870 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10871 ;;
10872 *)
10873 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10874 ;;
10875 esac
10876 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10877 fi
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912 # If no C compiler was specified, use CC.
10913 LTCC=${LTCC-"$CC"}
10914
10915 # If no C compiler flags were specified, use CFLAGS.
10916 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10917
10918 # Allow CC to be a program name with arguments.
10919 compiler=$CC
10920
10921
10922 # Check for command to grab the raw symbol name followed by C symbol from nm.
10923 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10924 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10925 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10926 $as_echo_n "(cached) " >&6
10927 else
10928
10929 # These are sane defaults that work on at least a few old systems.
10930 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10931
10932 # Character class describing NM global symbol codes.
10933 symcode='[BCDEGRST]'
10934
10935 # Regexp to match symbols that can be accessed directly from C.
10936 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10937
10938 # Define system-specific variables.
10939 case $host_os in
10940 aix*)
10941 symcode='[BCDT]'
10942 ;;
10943 cygwin* | mingw* | pw32* | cegcc*)
10944 symcode='[ABCDGISTW]'
10945 ;;
10946 hpux*)
10947 if test "$host_cpu" = ia64; then
10948 symcode='[ABCDEGRST]'
10949 fi
10950 ;;
10951 irix* | nonstopux*)
10952 symcode='[BCDEGRST]'
10953 ;;
10954 osf*)
10955 symcode='[BCDEGQRST]'
10956 ;;
10957 solaris*)
10958 symcode='[BDRT]'
10959 ;;
10960 sco3.2v5*)
10961 symcode='[DT]'
10962 ;;
10963 sysv4.2uw2*)
10964 symcode='[DT]'
10965 ;;
10966 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10967 symcode='[ABDT]'
10968 ;;
10969 sysv4)
10970 symcode='[DFNSTU]'
10971 ;;
10972 esac
10973
10974 # If we're using GNU nm, then use its standard symbol codes.
10975 case `$NM -V 2>&1` in
10976 *GNU* | *'with BFD'*)
10977 symcode='[ABCDGIRSTW]' ;;
10978 esac
10979
10980 # Transform an extracted symbol line into a proper C declaration.
10981 # Some systems (esp. on ia64) link data and code symbols differently,
10982 # so use this general approach.
10983 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10984
10985 # Transform an extracted symbol line into symbol name and symbol address
10986 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10987 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'"
10988
10989 # Handle CRLF in mingw tool chain
10990 opt_cr=
10991 case $build_os in
10992 mingw*)
10993 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10994 ;;
10995 esac
10996
10997 # Try without a prefix underscore, then with it.
10998 for ac_symprfx in "" "_"; do
10999
11000 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11001 symxfrm="\\1 $ac_symprfx\\2 \\2"
11002
11003 # Write the raw and C identifiers.
11004 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11005 # Fake it for dumpbin and say T for any non-static function
11006 # and D for any global variable.
11007 # Also find C++ and __fastcall symbols from MSVC++,
11008 # which start with @ or ?.
11009 lt_cv_sys_global_symbol_pipe="$AWK '"\
11010 " {last_section=section; section=\$ 3};"\
11011 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11012 " \$ 0!~/External *\|/{next};"\
11013 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11014 " {if(hide[section]) next};"\
11015 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11016 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11017 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
11018 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11019 " ' prfx=^$ac_symprfx"
11020 else
11021 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11022 fi
11023
11024 # Check to see that the pipe works correctly.
11025 pipe_works=no
11026
11027 rm -f conftest*
11028 cat > conftest.$ac_ext <<_LT_EOF
11029 #ifdef __cplusplus
11030 extern "C" {
11031 #endif
11032 char nm_test_var;
11033 void nm_test_func(void);
11034 void nm_test_func(void){}
11035 #ifdef __cplusplus
11036 }
11037 #endif
11038 int main(){nm_test_var='a';nm_test_func();return(0);}
11039 _LT_EOF
11040
11041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11042 (eval $ac_compile) 2>&5
11043 ac_status=$?
11044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); }; then
11046 # Now try to grab the symbols.
11047 nlist=conftest.nm
11048 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11049 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11050 ac_status=$?
11051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); } && test -s "$nlist"; then
11053 # Try sorting and uniquifying the output.
11054 if sort "$nlist" | uniq > "$nlist"T; then
11055 mv -f "$nlist"T "$nlist"
11056 else
11057 rm -f "$nlist"T
11058 fi
11059
11060 # Make sure that we snagged all the symbols we need.
11061 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11062 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11063 cat <<_LT_EOF > conftest.$ac_ext
11064 #ifdef __cplusplus
11065 extern "C" {
11066 #endif
11067
11068 _LT_EOF
11069 # Now generate the symbol file.
11070 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11071
11072 cat <<_LT_EOF >> conftest.$ac_ext
11073
11074 /* The mapping between symbol names and symbols. */
11075 const struct {
11076 const char *name;
11077 void *address;
11078 }
11079 lt__PROGRAM__LTX_preloaded_symbols[] =
11080 {
11081 { "@PROGRAM@", (void *) 0 },
11082 _LT_EOF
11083 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11084 cat <<\_LT_EOF >> conftest.$ac_ext
11085 {0, (void *) 0}
11086 };
11087
11088 /* This works around a problem in FreeBSD linker */
11089 #ifdef FREEBSD_WORKAROUND
11090 static const void *lt_preloaded_setup() {
11091 return lt__PROGRAM__LTX_preloaded_symbols;
11092 }
11093 #endif
11094
11095 #ifdef __cplusplus
11096 }
11097 #endif
11098 _LT_EOF
11099 # Now try linking the two files.
11100 mv conftest.$ac_objext conftstm.$ac_objext
11101 lt_save_LIBS="$LIBS"
11102 lt_save_CFLAGS="$CFLAGS"
11103 LIBS="conftstm.$ac_objext"
11104 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11106 (eval $ac_link) 2>&5
11107 ac_status=$?
11108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11110 pipe_works=yes
11111 fi
11112 LIBS="$lt_save_LIBS"
11113 CFLAGS="$lt_save_CFLAGS"
11114 else
11115 echo "cannot find nm_test_func in $nlist" >&5
11116 fi
11117 else
11118 echo "cannot find nm_test_var in $nlist" >&5
11119 fi
11120 else
11121 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11122 fi
11123 else
11124 echo "$progname: failed program was:" >&5
11125 cat conftest.$ac_ext >&5
11126 fi
11127 rm -rf conftest* conftst*
11128
11129 # Do not use the global_symbol_pipe unless it works.
11130 if test "$pipe_works" = yes; then
11131 break
11132 else
11133 lt_cv_sys_global_symbol_pipe=
11134 fi
11135 done
11136
11137 fi
11138
11139 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11140 lt_cv_sys_global_symbol_to_cdecl=
11141 fi
11142 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11143 { $as_echo "$as_me:$LINENO: result: failed" >&5
11144 $as_echo "failed" >&6; }
11145 else
11146 { $as_echo "$as_me:$LINENO: result: ok" >&5
11147 $as_echo "ok" >&6; }
11148 fi
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171 @%:@ Check whether --enable-libtool-lock was given.
11172 if test "${enable_libtool_lock+set}" = set; then
11173 enableval=$enable_libtool_lock;
11174 fi
11175
11176 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11177
11178 # Some flags need to be propagated to the compiler or linker for good
11179 # libtool support.
11180 case $host in
11181 ia64-*-hpux*)
11182 # Find out which ABI we are using.
11183 echo 'int i;' > conftest.$ac_ext
11184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11185 (eval $ac_compile) 2>&5
11186 ac_status=$?
11187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; then
11189 case `/usr/bin/file conftest.$ac_objext` in
11190 *ELF-32*)
11191 HPUX_IA64_MODE="32"
11192 ;;
11193 *ELF-64*)
11194 HPUX_IA64_MODE="64"
11195 ;;
11196 esac
11197 fi
11198 rm -rf conftest*
11199 ;;
11200 *-*-irix6*)
11201 # Find out which ABI we are using.
11202 echo '#line __oline__ "configure"' > conftest.$ac_ext
11203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11204 (eval $ac_compile) 2>&5
11205 ac_status=$?
11206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); }; then
11208 if test "$lt_cv_prog_gnu_ld" = yes; then
11209 case `/usr/bin/file conftest.$ac_objext` in
11210 *32-bit*)
11211 LD="${LD-ld} -melf32bsmip"
11212 ;;
11213 *N32*)
11214 LD="${LD-ld} -melf32bmipn32"
11215 ;;
11216 *64-bit*)
11217 LD="${LD-ld} -melf64bmip"
11218 ;;
11219 esac
11220 else
11221 case `/usr/bin/file conftest.$ac_objext` in
11222 *32-bit*)
11223 LD="${LD-ld} -32"
11224 ;;
11225 *N32*)
11226 LD="${LD-ld} -n32"
11227 ;;
11228 *64-bit*)
11229 LD="${LD-ld} -64"
11230 ;;
11231 esac
11232 fi
11233 fi
11234 rm -rf conftest*
11235 ;;
11236
11237 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11238 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11239 # Find out which ABI we are using.
11240 echo 'int i;' > conftest.$ac_ext
11241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11242 (eval $ac_compile) 2>&5
11243 ac_status=$?
11244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); }; then
11246 case `/usr/bin/file conftest.o` in
11247 *32-bit*)
11248 case $host in
11249 x86_64-*kfreebsd*-gnu)
11250 LD="${LD-ld} -m elf_i386_fbsd"
11251 ;;
11252 x86_64-*linux*)
11253 LD="${LD-ld} -m elf_i386"
11254 ;;
11255 ppc64-*linux*|powerpc64-*linux*)
11256 LD="${LD-ld} -m elf32ppclinux"
11257 ;;
11258 s390x-*linux*)
11259 LD="${LD-ld} -m elf_s390"
11260 ;;
11261 sparc64-*linux*)
11262 LD="${LD-ld} -m elf32_sparc"
11263 ;;
11264 esac
11265 ;;
11266 *64-bit*)
11267 case $host in
11268 x86_64-*kfreebsd*-gnu)
11269 LD="${LD-ld} -m elf_x86_64_fbsd"
11270 ;;
11271 x86_64-*linux*)
11272 LD="${LD-ld} -m elf_x86_64"
11273 ;;
11274 ppc*-*linux*|powerpc*-*linux*)
11275 LD="${LD-ld} -m elf64ppc"
11276 ;;
11277 s390*-*linux*|s390*-*tpf*)
11278 LD="${LD-ld} -m elf64_s390"
11279 ;;
11280 sparc*-*linux*)
11281 LD="${LD-ld} -m elf64_sparc"
11282 ;;
11283 esac
11284 ;;
11285 esac
11286 fi
11287 rm -rf conftest*
11288 ;;
11289
11290 *-*-sco3.2v5*)
11291 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11292 SAVE_CFLAGS="$CFLAGS"
11293 CFLAGS="$CFLAGS -belf"
11294 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
11295 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
11296 if test "${lt_cv_cc_needs_belf+set}" = set; then
11297 $as_echo_n "(cached) " >&6
11298 else
11299 ac_ext=c
11300 ac_cpp='$CPP $CPPFLAGS'
11301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11304
11305 cat >conftest.$ac_ext <<_ACEOF
11306 /* confdefs.h. */
11307 _ACEOF
11308 cat confdefs.h >>conftest.$ac_ext
11309 cat >>conftest.$ac_ext <<_ACEOF
11310 /* end confdefs.h. */
11311
11312 int
11313 main ()
11314 {
11315
11316 ;
11317 return 0;
11318 }
11319 _ACEOF
11320 rm -f conftest.$ac_objext conftest$ac_exeext
11321 if { (ac_try="$ac_link"
11322 case "(($ac_try" in
11323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11324 *) ac_try_echo=$ac_try;;
11325 esac
11326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11327 $as_echo "$ac_try_echo") >&5
11328 (eval "$ac_link") 2>conftest.er1
11329 ac_status=$?
11330 grep -v '^ *+' conftest.er1 >conftest.err
11331 rm -f conftest.er1
11332 cat conftest.err >&5
11333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); } && {
11335 test -z "$ac_c_werror_flag" ||
11336 test ! -s conftest.err
11337 } && test -s conftest$ac_exeext && {
11338 test "$cross_compiling" = yes ||
11339 $as_test_x conftest$ac_exeext
11340 }; then
11341 lt_cv_cc_needs_belf=yes
11342 else
11343 $as_echo "$as_me: failed program was:" >&5
11344 sed 's/^/| /' conftest.$ac_ext >&5
11345
11346 lt_cv_cc_needs_belf=no
11347 fi
11348
11349 rm -rf conftest.dSYM
11350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11351 conftest$ac_exeext conftest.$ac_ext
11352 ac_ext=c
11353 ac_cpp='$CPP $CPPFLAGS'
11354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11357
11358 fi
11359 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
11360 $as_echo "$lt_cv_cc_needs_belf" >&6; }
11361 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11362 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11363 CFLAGS="$SAVE_CFLAGS"
11364 fi
11365 ;;
11366 sparc*-*solaris*)
11367 # Find out which ABI we are using.
11368 echo 'int i;' > conftest.$ac_ext
11369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11370 (eval $ac_compile) 2>&5
11371 ac_status=$?
11372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); }; then
11374 case `/usr/bin/file conftest.o` in
11375 *64-bit*)
11376 case $lt_cv_prog_gnu_ld in
11377 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11378 *)
11379 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11380 LD="${LD-ld} -64"
11381 fi
11382 ;;
11383 esac
11384 ;;
11385 esac
11386 fi
11387 rm -rf conftest*
11388 ;;
11389 esac
11390
11391 need_locks="$enable_libtool_lock"
11392
11393
11394 case $host_os in
11395 rhapsody* | darwin*)
11396 if test -n "$ac_tool_prefix"; then
11397 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11398 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11399 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11400 $as_echo_n "checking for $ac_word... " >&6; }
11401 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
11402 $as_echo_n "(cached) " >&6
11403 else
11404 if test -n "$DSYMUTIL"; then
11405 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11406 else
11407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11408 for as_dir in $PATH
11409 do
11410 IFS=$as_save_IFS
11411 test -z "$as_dir" && as_dir=.
11412 for ac_exec_ext in '' $ac_executable_extensions; do
11413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11414 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11415 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11416 break 2
11417 fi
11418 done
11419 done
11420 IFS=$as_save_IFS
11421
11422 fi
11423 fi
11424 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11425 if test -n "$DSYMUTIL"; then
11426 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
11427 $as_echo "$DSYMUTIL" >&6; }
11428 else
11429 { $as_echo "$as_me:$LINENO: result: no" >&5
11430 $as_echo "no" >&6; }
11431 fi
11432
11433
11434 fi
11435 if test -z "$ac_cv_prog_DSYMUTIL"; then
11436 ac_ct_DSYMUTIL=$DSYMUTIL
11437 # Extract the first word of "dsymutil", so it can be a program name with args.
11438 set dummy dsymutil; ac_word=$2
11439 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11440 $as_echo_n "checking for $ac_word... " >&6; }
11441 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
11442 $as_echo_n "(cached) " >&6
11443 else
11444 if test -n "$ac_ct_DSYMUTIL"; then
11445 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11446 else
11447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11448 for as_dir in $PATH
11449 do
11450 IFS=$as_save_IFS
11451 test -z "$as_dir" && as_dir=.
11452 for ac_exec_ext in '' $ac_executable_extensions; do
11453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11454 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11455 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11456 break 2
11457 fi
11458 done
11459 done
11460 IFS=$as_save_IFS
11461
11462 fi
11463 fi
11464 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11465 if test -n "$ac_ct_DSYMUTIL"; then
11466 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
11467 $as_echo "$ac_ct_DSYMUTIL" >&6; }
11468 else
11469 { $as_echo "$as_me:$LINENO: result: no" >&5
11470 $as_echo "no" >&6; }
11471 fi
11472
11473 if test "x$ac_ct_DSYMUTIL" = x; then
11474 DSYMUTIL=":"
11475 else
11476 case $cross_compiling:$ac_tool_warned in
11477 yes:)
11478 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11479 whose name does not start with the host triplet. If you think this
11480 configuration is useful to you, please write to autoconf@gnu.org." >&5
11481 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11482 whose name does not start with the host triplet. If you think this
11483 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11484 ac_tool_warned=yes ;;
11485 esac
11486 DSYMUTIL=$ac_ct_DSYMUTIL
11487 fi
11488 else
11489 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11490 fi
11491
11492 if test -n "$ac_tool_prefix"; then
11493 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11494 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11495 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11496 $as_echo_n "checking for $ac_word... " >&6; }
11497 if test "${ac_cv_prog_NMEDIT+set}" = set; then
11498 $as_echo_n "(cached) " >&6
11499 else
11500 if test -n "$NMEDIT"; then
11501 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11502 else
11503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11504 for as_dir in $PATH
11505 do
11506 IFS=$as_save_IFS
11507 test -z "$as_dir" && as_dir=.
11508 for ac_exec_ext in '' $ac_executable_extensions; do
11509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11510 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11511 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11512 break 2
11513 fi
11514 done
11515 done
11516 IFS=$as_save_IFS
11517
11518 fi
11519 fi
11520 NMEDIT=$ac_cv_prog_NMEDIT
11521 if test -n "$NMEDIT"; then
11522 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
11523 $as_echo "$NMEDIT" >&6; }
11524 else
11525 { $as_echo "$as_me:$LINENO: result: no" >&5
11526 $as_echo "no" >&6; }
11527 fi
11528
11529
11530 fi
11531 if test -z "$ac_cv_prog_NMEDIT"; then
11532 ac_ct_NMEDIT=$NMEDIT
11533 # Extract the first word of "nmedit", so it can be a program name with args.
11534 set dummy nmedit; ac_word=$2
11535 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11536 $as_echo_n "checking for $ac_word... " >&6; }
11537 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
11538 $as_echo_n "(cached) " >&6
11539 else
11540 if test -n "$ac_ct_NMEDIT"; then
11541 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11542 else
11543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11544 for as_dir in $PATH
11545 do
11546 IFS=$as_save_IFS
11547 test -z "$as_dir" && as_dir=.
11548 for ac_exec_ext in '' $ac_executable_extensions; do
11549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11550 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11551 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11552 break 2
11553 fi
11554 done
11555 done
11556 IFS=$as_save_IFS
11557
11558 fi
11559 fi
11560 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11561 if test -n "$ac_ct_NMEDIT"; then
11562 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
11563 $as_echo "$ac_ct_NMEDIT" >&6; }
11564 else
11565 { $as_echo "$as_me:$LINENO: result: no" >&5
11566 $as_echo "no" >&6; }
11567 fi
11568
11569 if test "x$ac_ct_NMEDIT" = x; then
11570 NMEDIT=":"
11571 else
11572 case $cross_compiling:$ac_tool_warned in
11573 yes:)
11574 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11575 whose name does not start with the host triplet. If you think this
11576 configuration is useful to you, please write to autoconf@gnu.org." >&5
11577 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11578 whose name does not start with the host triplet. If you think this
11579 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11580 ac_tool_warned=yes ;;
11581 esac
11582 NMEDIT=$ac_ct_NMEDIT
11583 fi
11584 else
11585 NMEDIT="$ac_cv_prog_NMEDIT"
11586 fi
11587
11588 if test -n "$ac_tool_prefix"; then
11589 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11590 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11591 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11592 $as_echo_n "checking for $ac_word... " >&6; }
11593 if test "${ac_cv_prog_LIPO+set}" = set; then
11594 $as_echo_n "(cached) " >&6
11595 else
11596 if test -n "$LIPO"; then
11597 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11598 else
11599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11600 for as_dir in $PATH
11601 do
11602 IFS=$as_save_IFS
11603 test -z "$as_dir" && as_dir=.
11604 for ac_exec_ext in '' $ac_executable_extensions; do
11605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11606 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11607 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11608 break 2
11609 fi
11610 done
11611 done
11612 IFS=$as_save_IFS
11613
11614 fi
11615 fi
11616 LIPO=$ac_cv_prog_LIPO
11617 if test -n "$LIPO"; then
11618 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
11619 $as_echo "$LIPO" >&6; }
11620 else
11621 { $as_echo "$as_me:$LINENO: result: no" >&5
11622 $as_echo "no" >&6; }
11623 fi
11624
11625
11626 fi
11627 if test -z "$ac_cv_prog_LIPO"; then
11628 ac_ct_LIPO=$LIPO
11629 # Extract the first word of "lipo", so it can be a program name with args.
11630 set dummy lipo; ac_word=$2
11631 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11632 $as_echo_n "checking for $ac_word... " >&6; }
11633 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
11634 $as_echo_n "(cached) " >&6
11635 else
11636 if test -n "$ac_ct_LIPO"; then
11637 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11638 else
11639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11640 for as_dir in $PATH
11641 do
11642 IFS=$as_save_IFS
11643 test -z "$as_dir" && as_dir=.
11644 for ac_exec_ext in '' $ac_executable_extensions; do
11645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11646 ac_cv_prog_ac_ct_LIPO="lipo"
11647 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11648 break 2
11649 fi
11650 done
11651 done
11652 IFS=$as_save_IFS
11653
11654 fi
11655 fi
11656 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11657 if test -n "$ac_ct_LIPO"; then
11658 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
11659 $as_echo "$ac_ct_LIPO" >&6; }
11660 else
11661 { $as_echo "$as_me:$LINENO: result: no" >&5
11662 $as_echo "no" >&6; }
11663 fi
11664
11665 if test "x$ac_ct_LIPO" = x; then
11666 LIPO=":"
11667 else
11668 case $cross_compiling:$ac_tool_warned in
11669 yes:)
11670 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11671 whose name does not start with the host triplet. If you think this
11672 configuration is useful to you, please write to autoconf@gnu.org." >&5
11673 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11674 whose name does not start with the host triplet. If you think this
11675 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11676 ac_tool_warned=yes ;;
11677 esac
11678 LIPO=$ac_ct_LIPO
11679 fi
11680 else
11681 LIPO="$ac_cv_prog_LIPO"
11682 fi
11683
11684 if test -n "$ac_tool_prefix"; then
11685 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11686 set dummy ${ac_tool_prefix}otool; ac_word=$2
11687 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11688 $as_echo_n "checking for $ac_word... " >&6; }
11689 if test "${ac_cv_prog_OTOOL+set}" = set; then
11690 $as_echo_n "(cached) " >&6
11691 else
11692 if test -n "$OTOOL"; then
11693 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11694 else
11695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11696 for as_dir in $PATH
11697 do
11698 IFS=$as_save_IFS
11699 test -z "$as_dir" && as_dir=.
11700 for ac_exec_ext in '' $ac_executable_extensions; do
11701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11702 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11703 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11704 break 2
11705 fi
11706 done
11707 done
11708 IFS=$as_save_IFS
11709
11710 fi
11711 fi
11712 OTOOL=$ac_cv_prog_OTOOL
11713 if test -n "$OTOOL"; then
11714 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
11715 $as_echo "$OTOOL" >&6; }
11716 else
11717 { $as_echo "$as_me:$LINENO: result: no" >&5
11718 $as_echo "no" >&6; }
11719 fi
11720
11721
11722 fi
11723 if test -z "$ac_cv_prog_OTOOL"; then
11724 ac_ct_OTOOL=$OTOOL
11725 # Extract the first word of "otool", so it can be a program name with args.
11726 set dummy otool; ac_word=$2
11727 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11728 $as_echo_n "checking for $ac_word... " >&6; }
11729 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
11730 $as_echo_n "(cached) " >&6
11731 else
11732 if test -n "$ac_ct_OTOOL"; then
11733 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11734 else
11735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11736 for as_dir in $PATH
11737 do
11738 IFS=$as_save_IFS
11739 test -z "$as_dir" && as_dir=.
11740 for ac_exec_ext in '' $ac_executable_extensions; do
11741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11742 ac_cv_prog_ac_ct_OTOOL="otool"
11743 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11744 break 2
11745 fi
11746 done
11747 done
11748 IFS=$as_save_IFS
11749
11750 fi
11751 fi
11752 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11753 if test -n "$ac_ct_OTOOL"; then
11754 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
11755 $as_echo "$ac_ct_OTOOL" >&6; }
11756 else
11757 { $as_echo "$as_me:$LINENO: result: no" >&5
11758 $as_echo "no" >&6; }
11759 fi
11760
11761 if test "x$ac_ct_OTOOL" = x; then
11762 OTOOL=":"
11763 else
11764 case $cross_compiling:$ac_tool_warned in
11765 yes:)
11766 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11767 whose name does not start with the host triplet. If you think this
11768 configuration is useful to you, please write to autoconf@gnu.org." >&5
11769 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11770 whose name does not start with the host triplet. If you think this
11771 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11772 ac_tool_warned=yes ;;
11773 esac
11774 OTOOL=$ac_ct_OTOOL
11775 fi
11776 else
11777 OTOOL="$ac_cv_prog_OTOOL"
11778 fi
11779
11780 if test -n "$ac_tool_prefix"; then
11781 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11782 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11783 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11784 $as_echo_n "checking for $ac_word... " >&6; }
11785 if test "${ac_cv_prog_OTOOL64+set}" = set; then
11786 $as_echo_n "(cached) " >&6
11787 else
11788 if test -n "$OTOOL64"; then
11789 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11790 else
11791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11792 for as_dir in $PATH
11793 do
11794 IFS=$as_save_IFS
11795 test -z "$as_dir" && as_dir=.
11796 for ac_exec_ext in '' $ac_executable_extensions; do
11797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11798 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11799 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11800 break 2
11801 fi
11802 done
11803 done
11804 IFS=$as_save_IFS
11805
11806 fi
11807 fi
11808 OTOOL64=$ac_cv_prog_OTOOL64
11809 if test -n "$OTOOL64"; then
11810 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
11811 $as_echo "$OTOOL64" >&6; }
11812 else
11813 { $as_echo "$as_me:$LINENO: result: no" >&5
11814 $as_echo "no" >&6; }
11815 fi
11816
11817
11818 fi
11819 if test -z "$ac_cv_prog_OTOOL64"; then
11820 ac_ct_OTOOL64=$OTOOL64
11821 # Extract the first word of "otool64", so it can be a program name with args.
11822 set dummy otool64; ac_word=$2
11823 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11824 $as_echo_n "checking for $ac_word... " >&6; }
11825 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
11826 $as_echo_n "(cached) " >&6
11827 else
11828 if test -n "$ac_ct_OTOOL64"; then
11829 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11830 else
11831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11832 for as_dir in $PATH
11833 do
11834 IFS=$as_save_IFS
11835 test -z "$as_dir" && as_dir=.
11836 for ac_exec_ext in '' $ac_executable_extensions; do
11837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11838 ac_cv_prog_ac_ct_OTOOL64="otool64"
11839 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11840 break 2
11841 fi
11842 done
11843 done
11844 IFS=$as_save_IFS
11845
11846 fi
11847 fi
11848 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11849 if test -n "$ac_ct_OTOOL64"; then
11850 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
11851 $as_echo "$ac_ct_OTOOL64" >&6; }
11852 else
11853 { $as_echo "$as_me:$LINENO: result: no" >&5
11854 $as_echo "no" >&6; }
11855 fi
11856
11857 if test "x$ac_ct_OTOOL64" = x; then
11858 OTOOL64=":"
11859 else
11860 case $cross_compiling:$ac_tool_warned in
11861 yes:)
11862 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11863 whose name does not start with the host triplet. If you think this
11864 configuration is useful to you, please write to autoconf@gnu.org." >&5
11865 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11866 whose name does not start with the host triplet. If you think this
11867 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11868 ac_tool_warned=yes ;;
11869 esac
11870 OTOOL64=$ac_ct_OTOOL64
11871 fi
11872 else
11873 OTOOL64="$ac_cv_prog_OTOOL64"
11874 fi
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
11903 $as_echo_n "checking for -single_module linker flag... " >&6; }
11904 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
11905 $as_echo_n "(cached) " >&6
11906 else
11907 lt_cv_apple_cc_single_mod=no
11908 if test -z "${LT_MULTI_MODULE}"; then
11909 # By default we will add the -single_module flag. You can override
11910 # by either setting the environment variable LT_MULTI_MODULE
11911 # non-empty at configure time, or by adding -multi_module to the
11912 # link flags.
11913 rm -rf libconftest.dylib*
11914 echo "int foo(void){return 1;}" > conftest.c
11915 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11916 -dynamiclib -Wl,-single_module conftest.c" >&5
11917 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11918 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11919 _lt_result=$?
11920 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11921 lt_cv_apple_cc_single_mod=yes
11922 else
11923 cat conftest.err >&5
11924 fi
11925 rm -rf libconftest.dylib*
11926 rm -f conftest.*
11927 fi
11928 fi
11929 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
11930 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11931 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
11932 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11933 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
11934 $as_echo_n "(cached) " >&6
11935 else
11936 lt_cv_ld_exported_symbols_list=no
11937 save_LDFLAGS=$LDFLAGS
11938 echo "_main" > conftest.sym
11939 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11940 cat >conftest.$ac_ext <<_ACEOF
11941 /* confdefs.h. */
11942 _ACEOF
11943 cat confdefs.h >>conftest.$ac_ext
11944 cat >>conftest.$ac_ext <<_ACEOF
11945 /* end confdefs.h. */
11946
11947 int
11948 main ()
11949 {
11950
11951 ;
11952 return 0;
11953 }
11954 _ACEOF
11955 rm -f conftest.$ac_objext conftest$ac_exeext
11956 if { (ac_try="$ac_link"
11957 case "(($ac_try" in
11958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959 *) ac_try_echo=$ac_try;;
11960 esac
11961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11962 $as_echo "$ac_try_echo") >&5
11963 (eval "$ac_link") 2>conftest.er1
11964 ac_status=$?
11965 grep -v '^ *+' conftest.er1 >conftest.err
11966 rm -f conftest.er1
11967 cat conftest.err >&5
11968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); } && {
11970 test -z "$ac_c_werror_flag" ||
11971 test ! -s conftest.err
11972 } && test -s conftest$ac_exeext && {
11973 test "$cross_compiling" = yes ||
11974 $as_test_x conftest$ac_exeext
11975 }; then
11976 lt_cv_ld_exported_symbols_list=yes
11977 else
11978 $as_echo "$as_me: failed program was:" >&5
11979 sed 's/^/| /' conftest.$ac_ext >&5
11980
11981 lt_cv_ld_exported_symbols_list=no
11982 fi
11983
11984 rm -rf conftest.dSYM
11985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11986 conftest$ac_exeext conftest.$ac_ext
11987 LDFLAGS="$save_LDFLAGS"
11988
11989 fi
11990 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
11991 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11992 case $host_os in
11993 rhapsody* | darwin1.[012])
11994 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11995 darwin1.*)
11996 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11997 darwin*) # darwin 5.x on
11998 # if running on 10.5 or later, the deployment target defaults
11999 # to the OS version, if on x86, and 10.4, the deployment
12000 # target defaults to 10.4. Don't you love it?
12001 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12002 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12003 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12004 10.[012]*)
12005 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12006 10.*)
12007 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12008 esac
12009 ;;
12010 esac
12011 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12012 _lt_dar_single_mod='$single_module'
12013 fi
12014 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12015 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12016 else
12017 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12018 fi
12019 if test "$DSYMUTIL" != ":"; then
12020 _lt_dsymutil='~$DSYMUTIL $lib || :'
12021 else
12022 _lt_dsymutil=
12023 fi
12024 ;;
12025 esac
12026
12027
12028 for ac_header in dlfcn.h
12029 do
12030 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12031 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12032 $as_echo_n "checking for $ac_header... " >&6; }
12033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12034 $as_echo_n "(cached) " >&6
12035 else
12036 cat >conftest.$ac_ext <<_ACEOF
12037 /* confdefs.h. */
12038 _ACEOF
12039 cat confdefs.h >>conftest.$ac_ext
12040 cat >>conftest.$ac_ext <<_ACEOF
12041 /* end confdefs.h. */
12042 $ac_includes_default
12043
12044 @%:@include <$ac_header>
12045 _ACEOF
12046 rm -f conftest.$ac_objext
12047 if { (ac_try="$ac_compile"
12048 case "(($ac_try" in
12049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12050 *) ac_try_echo=$ac_try;;
12051 esac
12052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12053 $as_echo "$ac_try_echo") >&5
12054 (eval "$ac_compile") 2>conftest.er1
12055 ac_status=$?
12056 grep -v '^ *+' conftest.er1 >conftest.err
12057 rm -f conftest.er1
12058 cat conftest.err >&5
12059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); } && {
12061 test -z "$ac_c_werror_flag" ||
12062 test ! -s conftest.err
12063 } && test -s conftest.$ac_objext; then
12064 eval "$as_ac_Header=yes"
12065 else
12066 $as_echo "$as_me: failed program was:" >&5
12067 sed 's/^/| /' conftest.$ac_ext >&5
12068
12069 eval "$as_ac_Header=no"
12070 fi
12071
12072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12073 fi
12074 ac_res=`eval 'as_val=${'$as_ac_Header'}
12075 $as_echo "$as_val"'`
12076 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12077 $as_echo "$ac_res" >&6; }
12078 if test `eval 'as_val=${'$as_ac_Header'}
12079 $as_echo "$as_val"'` = yes; then
12080 cat >>confdefs.h <<_ACEOF
12081 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12082 _ACEOF
12083
12084 fi
12085
12086 done
12087
12088
12089
12090 ac_ext=cpp
12091 ac_cpp='$CXXCPP $CPPFLAGS'
12092 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12093 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12094 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12095 if test -z "$CXX"; then
12096 if test -n "$CCC"; then
12097 CXX=$CCC
12098 else
12099 if test -n "$ac_tool_prefix"; then
12100 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12101 do
12102 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12103 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12104 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12105 $as_echo_n "checking for $ac_word... " >&6; }
12106 if test "${ac_cv_prog_CXX+set}" = set; then
12107 $as_echo_n "(cached) " >&6
12108 else
12109 if test -n "$CXX"; then
12110 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12111 else
12112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12113 for as_dir in $PATH
12114 do
12115 IFS=$as_save_IFS
12116 test -z "$as_dir" && as_dir=.
12117 for ac_exec_ext in '' $ac_executable_extensions; do
12118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12119 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12120 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12121 break 2
12122 fi
12123 done
12124 done
12125 IFS=$as_save_IFS
12126
12127 fi
12128 fi
12129 CXX=$ac_cv_prog_CXX
12130 if test -n "$CXX"; then
12131 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
12132 $as_echo "$CXX" >&6; }
12133 else
12134 { $as_echo "$as_me:$LINENO: result: no" >&5
12135 $as_echo "no" >&6; }
12136 fi
12137
12138
12139 test -n "$CXX" && break
12140 done
12141 fi
12142 if test -z "$CXX"; then
12143 ac_ct_CXX=$CXX
12144 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12145 do
12146 # Extract the first word of "$ac_prog", so it can be a program name with args.
12147 set dummy $ac_prog; ac_word=$2
12148 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12149 $as_echo_n "checking for $ac_word... " >&6; }
12150 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12151 $as_echo_n "(cached) " >&6
12152 else
12153 if test -n "$ac_ct_CXX"; then
12154 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12155 else
12156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12157 for as_dir in $PATH
12158 do
12159 IFS=$as_save_IFS
12160 test -z "$as_dir" && as_dir=.
12161 for ac_exec_ext in '' $ac_executable_extensions; do
12162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12163 ac_cv_prog_ac_ct_CXX="$ac_prog"
12164 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12165 break 2
12166 fi
12167 done
12168 done
12169 IFS=$as_save_IFS
12170
12171 fi
12172 fi
12173 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12174 if test -n "$ac_ct_CXX"; then
12175 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12176 $as_echo "$ac_ct_CXX" >&6; }
12177 else
12178 { $as_echo "$as_me:$LINENO: result: no" >&5
12179 $as_echo "no" >&6; }
12180 fi
12181
12182
12183 test -n "$ac_ct_CXX" && break
12184 done
12185
12186 if test "x$ac_ct_CXX" = x; then
12187 CXX="g++"
12188 else
12189 case $cross_compiling:$ac_tool_warned in
12190 yes:)
12191 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12192 whose name does not start with the host triplet. If you think this
12193 configuration is useful to you, please write to autoconf@gnu.org." >&5
12194 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12195 whose name does not start with the host triplet. If you think this
12196 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12197 ac_tool_warned=yes ;;
12198 esac
12199 CXX=$ac_ct_CXX
12200 fi
12201 fi
12202
12203 fi
12204 fi
12205 # Provide some information about the compiler.
12206 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
12207 set X $ac_compile
12208 ac_compiler=$2
12209 { (ac_try="$ac_compiler --version >&5"
12210 case "(($ac_try" in
12211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12212 *) ac_try_echo=$ac_try;;
12213 esac
12214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12215 $as_echo "$ac_try_echo") >&5
12216 (eval "$ac_compiler --version >&5") 2>&5
12217 ac_status=$?
12218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); }
12220 { (ac_try="$ac_compiler -v >&5"
12221 case "(($ac_try" in
12222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12223 *) ac_try_echo=$ac_try;;
12224 esac
12225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12226 $as_echo "$ac_try_echo") >&5
12227 (eval "$ac_compiler -v >&5") 2>&5
12228 ac_status=$?
12229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); }
12231 { (ac_try="$ac_compiler -V >&5"
12232 case "(($ac_try" in
12233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12234 *) ac_try_echo=$ac_try;;
12235 esac
12236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12237 $as_echo "$ac_try_echo") >&5
12238 (eval "$ac_compiler -V >&5") 2>&5
12239 ac_status=$?
12240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); }
12242
12243 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12244 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12245 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12246 $as_echo_n "(cached) " >&6
12247 else
12248 cat >conftest.$ac_ext <<_ACEOF
12249 /* confdefs.h. */
12250 _ACEOF
12251 cat confdefs.h >>conftest.$ac_ext
12252 cat >>conftest.$ac_ext <<_ACEOF
12253 /* end confdefs.h. */
12254
12255 int
12256 main ()
12257 {
12258 #ifndef __GNUC__
12259 choke me
12260 #endif
12261
12262 ;
12263 return 0;
12264 }
12265 _ACEOF
12266 rm -f conftest.$ac_objext
12267 if { (ac_try="$ac_compile"
12268 case "(($ac_try" in
12269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12270 *) ac_try_echo=$ac_try;;
12271 esac
12272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12273 $as_echo "$ac_try_echo") >&5
12274 (eval "$ac_compile") 2>conftest.er1
12275 ac_status=$?
12276 grep -v '^ *+' conftest.er1 >conftest.err
12277 rm -f conftest.er1
12278 cat conftest.err >&5
12279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); } && {
12281 test -z "$ac_cxx_werror_flag" ||
12282 test ! -s conftest.err
12283 } && test -s conftest.$ac_objext; then
12284 ac_compiler_gnu=yes
12285 else
12286 $as_echo "$as_me: failed program was:" >&5
12287 sed 's/^/| /' conftest.$ac_ext >&5
12288
12289 ac_compiler_gnu=no
12290 fi
12291
12292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12293 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12294
12295 fi
12296 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12297 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12298 if test $ac_compiler_gnu = yes; then
12299 GXX=yes
12300 else
12301 GXX=
12302 fi
12303 ac_test_CXXFLAGS=${CXXFLAGS+set}
12304 ac_save_CXXFLAGS=$CXXFLAGS
12305 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12306 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12307 if test "${ac_cv_prog_cxx_g+set}" = set; then
12308 $as_echo_n "(cached) " >&6
12309 else
12310 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12311 ac_cxx_werror_flag=yes
12312 ac_cv_prog_cxx_g=no
12313 CXXFLAGS="-g"
12314 cat >conftest.$ac_ext <<_ACEOF
12315 /* confdefs.h. */
12316 _ACEOF
12317 cat confdefs.h >>conftest.$ac_ext
12318 cat >>conftest.$ac_ext <<_ACEOF
12319 /* end confdefs.h. */
12320
12321 int
12322 main ()
12323 {
12324
12325 ;
12326 return 0;
12327 }
12328 _ACEOF
12329 rm -f conftest.$ac_objext
12330 if { (ac_try="$ac_compile"
12331 case "(($ac_try" in
12332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12333 *) ac_try_echo=$ac_try;;
12334 esac
12335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12336 $as_echo "$ac_try_echo") >&5
12337 (eval "$ac_compile") 2>conftest.er1
12338 ac_status=$?
12339 grep -v '^ *+' conftest.er1 >conftest.err
12340 rm -f conftest.er1
12341 cat conftest.err >&5
12342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); } && {
12344 test -z "$ac_cxx_werror_flag" ||
12345 test ! -s conftest.err
12346 } && test -s conftest.$ac_objext; then
12347 ac_cv_prog_cxx_g=yes
12348 else
12349 $as_echo "$as_me: failed program was:" >&5
12350 sed 's/^/| /' conftest.$ac_ext >&5
12351
12352 CXXFLAGS=""
12353 cat >conftest.$ac_ext <<_ACEOF
12354 /* confdefs.h. */
12355 _ACEOF
12356 cat confdefs.h >>conftest.$ac_ext
12357 cat >>conftest.$ac_ext <<_ACEOF
12358 /* end confdefs.h. */
12359
12360 int
12361 main ()
12362 {
12363
12364 ;
12365 return 0;
12366 }
12367 _ACEOF
12368 rm -f conftest.$ac_objext
12369 if { (ac_try="$ac_compile"
12370 case "(($ac_try" in
12371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12372 *) ac_try_echo=$ac_try;;
12373 esac
12374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12375 $as_echo "$ac_try_echo") >&5
12376 (eval "$ac_compile") 2>conftest.er1
12377 ac_status=$?
12378 grep -v '^ *+' conftest.er1 >conftest.err
12379 rm -f conftest.er1
12380 cat conftest.err >&5
12381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); } && {
12383 test -z "$ac_cxx_werror_flag" ||
12384 test ! -s conftest.err
12385 } && test -s conftest.$ac_objext; then
12386 :
12387 else
12388 $as_echo "$as_me: failed program was:" >&5
12389 sed 's/^/| /' conftest.$ac_ext >&5
12390
12391 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12392 CXXFLAGS="-g"
12393 cat >conftest.$ac_ext <<_ACEOF
12394 /* confdefs.h. */
12395 _ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h. */
12399
12400 int
12401 main ()
12402 {
12403
12404 ;
12405 return 0;
12406 }
12407 _ACEOF
12408 rm -f conftest.$ac_objext
12409 if { (ac_try="$ac_compile"
12410 case "(($ac_try" in
12411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12412 *) ac_try_echo=$ac_try;;
12413 esac
12414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12415 $as_echo "$ac_try_echo") >&5
12416 (eval "$ac_compile") 2>conftest.er1
12417 ac_status=$?
12418 grep -v '^ *+' conftest.er1 >conftest.err
12419 rm -f conftest.er1
12420 cat conftest.err >&5
12421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); } && {
12423 test -z "$ac_cxx_werror_flag" ||
12424 test ! -s conftest.err
12425 } && test -s conftest.$ac_objext; then
12426 ac_cv_prog_cxx_g=yes
12427 else
12428 $as_echo "$as_me: failed program was:" >&5
12429 sed 's/^/| /' conftest.$ac_ext >&5
12430
12431
12432 fi
12433
12434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12435 fi
12436
12437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12438 fi
12439
12440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12441 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12442 fi
12443 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12444 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12445 if test "$ac_test_CXXFLAGS" = set; then
12446 CXXFLAGS=$ac_save_CXXFLAGS
12447 elif test $ac_cv_prog_cxx_g = yes; then
12448 if test "$GXX" = yes; then
12449 CXXFLAGS="-g -O2"
12450 else
12451 CXXFLAGS="-g"
12452 fi
12453 else
12454 if test "$GXX" = yes; then
12455 CXXFLAGS="-O2"
12456 else
12457 CXXFLAGS=
12458 fi
12459 fi
12460 ac_ext=c
12461 ac_cpp='$CPP $CPPFLAGS'
12462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12465
12466 depcc="$CXX" am_compiler_list=
12467
12468 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12469 $as_echo_n "checking dependency style of $depcc... " >&6; }
12470 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
12471 $as_echo_n "(cached) " >&6
12472 else
12473 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12474 # We make a subdir and do the tests there. Otherwise we can end up
12475 # making bogus files that we don't know about and never remove. For
12476 # instance it was reported that on HP-UX the gcc test will end up
12477 # making a dummy file named `D' -- because `-MD' means `put the output
12478 # in D'.
12479 mkdir conftest.dir
12480 # Copy depcomp to subdir because otherwise we won't find it if we're
12481 # using a relative directory.
12482 cp "$am_depcomp" conftest.dir
12483 cd conftest.dir
12484 # We will build objects and dependencies in a subdirectory because
12485 # it helps to detect inapplicable dependency modes. For instance
12486 # both Tru64's cc and ICC support -MD to output dependencies as a
12487 # side effect of compilation, but ICC will put the dependencies in
12488 # the current directory while Tru64 will put them in the object
12489 # directory.
12490 mkdir sub
12491
12492 am_cv_CXX_dependencies_compiler_type=none
12493 if test "$am_compiler_list" = ""; then
12494 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12495 fi
12496 am__universal=false
12497 case " $depcc " in #(
12498 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12499 esac
12500
12501 for depmode in $am_compiler_list; do
12502 # Setup a source with many dependencies, because some compilers
12503 # like to wrap large dependency lists on column 80 (with \), and
12504 # we should not choose a depcomp mode which is confused by this.
12505 #
12506 # We need to recreate these files for each test, as the compiler may
12507 # overwrite some of them when testing with obscure command lines.
12508 # This happens at least with the AIX C compiler.
12509 : > sub/conftest.c
12510 for i in 1 2 3 4 5 6; do
12511 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12512 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12513 # Solaris 8's {/usr,}/bin/sh.
12514 touch sub/conftst$i.h
12515 done
12516 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12517
12518 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12519 # mode. It turns out that the SunPro C++ compiler does not properly
12520 # handle `-M -o', and we need to detect this. Also, some Intel
12521 # versions had trouble with output in subdirs
12522 am__obj=sub/conftest.${OBJEXT-o}
12523 am__minus_obj="-o $am__obj"
12524 case $depmode in
12525 gcc)
12526 # This depmode causes a compiler race in universal mode.
12527 test "$am__universal" = false || continue
12528 ;;
12529 nosideeffect)
12530 # after this tag, mechanisms are not by side-effect, so they'll
12531 # only be used when explicitly requested
12532 if test "x$enable_dependency_tracking" = xyes; then
12533 continue
12534 else
12535 break
12536 fi
12537 ;;
12538 msvisualcpp | msvcmsys)
12539 # This compiler won't grok `-c -o', but also, the minuso test has
12540 # not run yet. These depmodes are late enough in the game, and
12541 # so weak that their functioning should not be impacted.
12542 am__obj=conftest.${OBJEXT-o}
12543 am__minus_obj=
12544 ;;
12545 none) break ;;
12546 esac
12547 if depmode=$depmode \
12548 source=sub/conftest.c object=$am__obj \
12549 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12550 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12551 >/dev/null 2>conftest.err &&
12552 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12553 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12554 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12555 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12556 # icc doesn't choke on unknown options, it will just issue warnings
12557 # or remarks (even with -Werror). So we grep stderr for any message
12558 # that says an option was ignored or not supported.
12559 # When given -MP, icc 7.0 and 7.1 complain thusly:
12560 # icc: Command line warning: ignoring option '-M'; no argument required
12561 # The diagnosis changed in icc 8.0:
12562 # icc: Command line remark: option '-MP' not supported
12563 if (grep 'ignoring option' conftest.err ||
12564 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12565 am_cv_CXX_dependencies_compiler_type=$depmode
12566 break
12567 fi
12568 fi
12569 done
12570
12571 cd ..
12572 rm -rf conftest.dir
12573 else
12574 am_cv_CXX_dependencies_compiler_type=none
12575 fi
12576
12577 fi
12578 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
12579 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12580 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12581
12582 if
12583 test "x$enable_dependency_tracking" != xno \
12584 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12585 am__fastdepCXX_TRUE=
12586 am__fastdepCXX_FALSE='#'
12587 else
12588 am__fastdepCXX_TRUE='#'
12589 am__fastdepCXX_FALSE=
12590 fi
12591
12592
12593 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12594 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12595 (test "X$CXX" != "Xg++"))) ; then
12596 ac_ext=cpp
12597 ac_cpp='$CXXCPP $CPPFLAGS'
12598 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12599 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12600 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12601 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12602 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12603 if test -z "$CXXCPP"; then
12604 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12605 $as_echo_n "(cached) " >&6
12606 else
12607 # Double quotes because CXXCPP needs to be expanded
12608 for CXXCPP in "$CXX -E" "/lib/cpp"
12609 do
12610 ac_preproc_ok=false
12611 for ac_cxx_preproc_warn_flag in '' yes
12612 do
12613 # Use a header file that comes with gcc, so configuring glibc
12614 # with a fresh cross-compiler works.
12615 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12616 # <limits.h> exists even on freestanding compilers.
12617 # On the NeXT, cc -E runs the code through the compiler's parser,
12618 # not just through cpp. "Syntax error" is here to catch this case.
12619 cat >conftest.$ac_ext <<_ACEOF
12620 /* confdefs.h. */
12621 _ACEOF
12622 cat confdefs.h >>conftest.$ac_ext
12623 cat >>conftest.$ac_ext <<_ACEOF
12624 /* end confdefs.h. */
12625 @%:@ifdef __STDC__
12626 @%:@ include <limits.h>
12627 @%:@else
12628 @%:@ include <assert.h>
12629 @%:@endif
12630 Syntax error
12631 _ACEOF
12632 if { (ac_try="$ac_cpp conftest.$ac_ext"
12633 case "(($ac_try" in
12634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12635 *) ac_try_echo=$ac_try;;
12636 esac
12637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12638 $as_echo "$ac_try_echo") >&5
12639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12640 ac_status=$?
12641 grep -v '^ *+' conftest.er1 >conftest.err
12642 rm -f conftest.er1
12643 cat conftest.err >&5
12644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); } >/dev/null && {
12646 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12647 test ! -s conftest.err
12648 }; then
12649 :
12650 else
12651 $as_echo "$as_me: failed program was:" >&5
12652 sed 's/^/| /' conftest.$ac_ext >&5
12653
12654 # Broken: fails on valid input.
12655 continue
12656 fi
12657
12658 rm -f conftest.err conftest.$ac_ext
12659
12660 # OK, works on sane cases. Now check whether nonexistent headers
12661 # can be detected and how.
12662 cat >conftest.$ac_ext <<_ACEOF
12663 /* confdefs.h. */
12664 _ACEOF
12665 cat confdefs.h >>conftest.$ac_ext
12666 cat >>conftest.$ac_ext <<_ACEOF
12667 /* end confdefs.h. */
12668 @%:@include <ac_nonexistent.h>
12669 _ACEOF
12670 if { (ac_try="$ac_cpp conftest.$ac_ext"
12671 case "(($ac_try" in
12672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12673 *) ac_try_echo=$ac_try;;
12674 esac
12675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12676 $as_echo "$ac_try_echo") >&5
12677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12678 ac_status=$?
12679 grep -v '^ *+' conftest.er1 >conftest.err
12680 rm -f conftest.er1
12681 cat conftest.err >&5
12682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); } >/dev/null && {
12684 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12685 test ! -s conftest.err
12686 }; then
12687 # Broken: success on invalid input.
12688 continue
12689 else
12690 $as_echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12692
12693 # Passes both tests.
12694 ac_preproc_ok=:
12695 break
12696 fi
12697
12698 rm -f conftest.err conftest.$ac_ext
12699
12700 done
12701 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12702 rm -f conftest.err conftest.$ac_ext
12703 if $ac_preproc_ok; then
12704 break
12705 fi
12706
12707 done
12708 ac_cv_prog_CXXCPP=$CXXCPP
12709
12710 fi
12711 CXXCPP=$ac_cv_prog_CXXCPP
12712 else
12713 ac_cv_prog_CXXCPP=$CXXCPP
12714 fi
12715 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
12716 $as_echo "$CXXCPP" >&6; }
12717 ac_preproc_ok=false
12718 for ac_cxx_preproc_warn_flag in '' yes
12719 do
12720 # Use a header file that comes with gcc, so configuring glibc
12721 # with a fresh cross-compiler works.
12722 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12723 # <limits.h> exists even on freestanding compilers.
12724 # On the NeXT, cc -E runs the code through the compiler's parser,
12725 # not just through cpp. "Syntax error" is here to catch this case.
12726 cat >conftest.$ac_ext <<_ACEOF
12727 /* confdefs.h. */
12728 _ACEOF
12729 cat confdefs.h >>conftest.$ac_ext
12730 cat >>conftest.$ac_ext <<_ACEOF
12731 /* end confdefs.h. */
12732 @%:@ifdef __STDC__
12733 @%:@ include <limits.h>
12734 @%:@else
12735 @%:@ include <assert.h>
12736 @%:@endif
12737 Syntax error
12738 _ACEOF
12739 if { (ac_try="$ac_cpp conftest.$ac_ext"
12740 case "(($ac_try" in
12741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742 *) ac_try_echo=$ac_try;;
12743 esac
12744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12745 $as_echo "$ac_try_echo") >&5
12746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12747 ac_status=$?
12748 grep -v '^ *+' conftest.er1 >conftest.err
12749 rm -f conftest.er1
12750 cat conftest.err >&5
12751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); } >/dev/null && {
12753 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12754 test ! -s conftest.err
12755 }; then
12756 :
12757 else
12758 $as_echo "$as_me: failed program was:" >&5
12759 sed 's/^/| /' conftest.$ac_ext >&5
12760
12761 # Broken: fails on valid input.
12762 continue
12763 fi
12764
12765 rm -f conftest.err conftest.$ac_ext
12766
12767 # OK, works on sane cases. Now check whether nonexistent headers
12768 # can be detected and how.
12769 cat >conftest.$ac_ext <<_ACEOF
12770 /* confdefs.h. */
12771 _ACEOF
12772 cat confdefs.h >>conftest.$ac_ext
12773 cat >>conftest.$ac_ext <<_ACEOF
12774 /* end confdefs.h. */
12775 @%:@include <ac_nonexistent.h>
12776 _ACEOF
12777 if { (ac_try="$ac_cpp conftest.$ac_ext"
12778 case "(($ac_try" in
12779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12780 *) ac_try_echo=$ac_try;;
12781 esac
12782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12783 $as_echo "$ac_try_echo") >&5
12784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12785 ac_status=$?
12786 grep -v '^ *+' conftest.er1 >conftest.err
12787 rm -f conftest.er1
12788 cat conftest.err >&5
12789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); } >/dev/null && {
12791 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12792 test ! -s conftest.err
12793 }; then
12794 # Broken: success on invalid input.
12795 continue
12796 else
12797 $as_echo "$as_me: failed program was:" >&5
12798 sed 's/^/| /' conftest.$ac_ext >&5
12799
12800 # Passes both tests.
12801 ac_preproc_ok=:
12802 break
12803 fi
12804
12805 rm -f conftest.err conftest.$ac_ext
12806
12807 done
12808 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12809 rm -f conftest.err conftest.$ac_ext
12810 if $ac_preproc_ok; then
12811 :
12812 else
12813 _lt_caught_CXX_error=yes
12814 fi
12815
12816 ac_ext=c
12817 ac_cpp='$CPP $CPPFLAGS'
12818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12821
12822 else
12823 _lt_caught_CXX_error=yes
12824 fi
12825
12826
12827
12828
12829
12830 # Set options
12831
12832
12833
12834 enable_dlopen=no
12835
12836
12837 enable_win32_dll=no
12838
12839
12840
12841
12842
12843 @%:@ Check whether --with-pic was given.
12844 if test "${with_pic+set}" = set; then
12845 withval=$with_pic; pic_mode="$withval"
12846 else
12847 pic_mode=default
12848 fi
12849
12850
12851 test -z "$pic_mode" && pic_mode=default
12852
12853
12854
12855
12856
12857
12858
12859 @%:@ Check whether --enable-fast-install was given.
12860 if test "${enable_fast_install+set}" = set; then
12861 enableval=$enable_fast_install; p=${PACKAGE-default}
12862 case $enableval in
12863 yes) enable_fast_install=yes ;;
12864 no) enable_fast_install=no ;;
12865 *)
12866 enable_fast_install=no
12867 # Look at the argument we got. We use all the common list separators.
12868 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12869 for pkg in $enableval; do
12870 IFS="$lt_save_ifs"
12871 if test "X$pkg" = "X$p"; then
12872 enable_fast_install=yes
12873 fi
12874 done
12875 IFS="$lt_save_ifs"
12876 ;;
12877 esac
12878 else
12879 enable_fast_install=yes
12880 fi
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892 # This can be used to rebuild libtool when needed
12893 LIBTOOL_DEPS="$ltmain"
12894
12895 # Always use our own libtool.
12896 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922 test -z "$LN_S" && LN_S="ln -s"
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937 if test -n "${ZSH_VERSION+set}" ; then
12938 setopt NO_GLOB_SUBST
12939 fi
12940
12941 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
12942 $as_echo_n "checking for objdir... " >&6; }
12943 if test "${lt_cv_objdir+set}" = set; then
12944 $as_echo_n "(cached) " >&6
12945 else
12946 rm -f .libs 2>/dev/null
12947 mkdir .libs 2>/dev/null
12948 if test -d .libs; then
12949 lt_cv_objdir=.libs
12950 else
12951 # MS-DOS does not allow filenames that begin with a dot.
12952 lt_cv_objdir=_libs
12953 fi
12954 rmdir .libs 2>/dev/null
12955 fi
12956 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
12957 $as_echo "$lt_cv_objdir" >&6; }
12958 objdir=$lt_cv_objdir
12959
12960
12961
12962
12963
12964 cat >>confdefs.h <<_ACEOF
12965 @%:@define LT_OBJDIR "$lt_cv_objdir/"
12966 _ACEOF
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984 case $host_os in
12985 aix3*)
12986 # AIX sometimes has problems with the GCC collect2 program. For some
12987 # reason, if we set the COLLECT_NAMES environment variable, the problems
12988 # vanish in a puff of smoke.
12989 if test "X${COLLECT_NAMES+set}" != Xset; then
12990 COLLECT_NAMES=
12991 export COLLECT_NAMES
12992 fi
12993 ;;
12994 esac
12995
12996 # Sed substitution that helps us do robust quoting. It backslashifies
12997 # metacharacters that are still active within double-quoted strings.
12998 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12999
13000 # Same as above, but do not quote variable references.
13001 double_quote_subst='s/\(["`\\]\)/\\\1/g'
13002
13003 # Sed substitution to delay expansion of an escaped shell variable in a
13004 # double_quote_subst'ed string.
13005 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13006
13007 # Sed substitution to delay expansion of an escaped single quote.
13008 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
13009
13010 # Sed substitution to avoid accidental globbing in evaled expressions
13011 no_glob_subst='s/\*/\\\*/g'
13012
13013 # Global variables:
13014 ofile=libtool
13015 can_build_shared=yes
13016
13017 # All known linkers require a `.a' archive for static linking (except MSVC,
13018 # which needs '.lib').
13019 libext=a
13020
13021 with_gnu_ld="$lt_cv_prog_gnu_ld"
13022
13023 old_CC="$CC"
13024 old_CFLAGS="$CFLAGS"
13025
13026 # Set sane defaults for various variables
13027 test -z "$CC" && CC=cc
13028 test -z "$LTCC" && LTCC=$CC
13029 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13030 test -z "$LD" && LD=ld
13031 test -z "$ac_objext" && ac_objext=o
13032
13033 for cc_temp in $compiler""; do
13034 case $cc_temp in
13035 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13036 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13037 \-*) ;;
13038 *) break;;
13039 esac
13040 done
13041 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13042
13043
13044 # Only perform the check for file, if the check method requires it
13045 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13046 case $deplibs_check_method in
13047 file_magic*)
13048 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13049 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13050 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13051 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13052 $as_echo_n "(cached) " >&6
13053 else
13054 case $MAGIC_CMD in
13055 [\\/*] | ?:[\\/]*)
13056 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13057 ;;
13058 *)
13059 lt_save_MAGIC_CMD="$MAGIC_CMD"
13060 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13061 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13062 for ac_dir in $ac_dummy; do
13063 IFS="$lt_save_ifs"
13064 test -z "$ac_dir" && ac_dir=.
13065 if test -f $ac_dir/${ac_tool_prefix}file; then
13066 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13067 if test -n "$file_magic_test_file"; then
13068 case $deplibs_check_method in
13069 "file_magic "*)
13070 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13071 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13072 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13073 $EGREP "$file_magic_regex" > /dev/null; then
13074 :
13075 else
13076 cat <<_LT_EOF 1>&2
13077
13078 *** Warning: the command libtool uses to detect shared libraries,
13079 *** $file_magic_cmd, produces output that libtool cannot recognize.
13080 *** The result is that libtool may fail to recognize shared libraries
13081 *** as such. This will affect the creation of libtool libraries that
13082 *** depend on shared libraries, but programs linked with such libtool
13083 *** libraries will work regardless of this problem. Nevertheless, you
13084 *** may want to report the problem to your system manager and/or to
13085 *** bug-libtool@gnu.org
13086
13087 _LT_EOF
13088 fi ;;
13089 esac
13090 fi
13091 break
13092 fi
13093 done
13094 IFS="$lt_save_ifs"
13095 MAGIC_CMD="$lt_save_MAGIC_CMD"
13096 ;;
13097 esac
13098 fi
13099
13100 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13101 if test -n "$MAGIC_CMD"; then
13102 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13103 $as_echo "$MAGIC_CMD" >&6; }
13104 else
13105 { $as_echo "$as_me:$LINENO: result: no" >&5
13106 $as_echo "no" >&6; }
13107 fi
13108
13109
13110
13111
13112
13113 if test -z "$lt_cv_path_MAGIC_CMD"; then
13114 if test -n "$ac_tool_prefix"; then
13115 { $as_echo "$as_me:$LINENO: checking for file" >&5
13116 $as_echo_n "checking for file... " >&6; }
13117 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13118 $as_echo_n "(cached) " >&6
13119 else
13120 case $MAGIC_CMD in
13121 [\\/*] | ?:[\\/]*)
13122 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13123 ;;
13124 *)
13125 lt_save_MAGIC_CMD="$MAGIC_CMD"
13126 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13127 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13128 for ac_dir in $ac_dummy; do
13129 IFS="$lt_save_ifs"
13130 test -z "$ac_dir" && ac_dir=.
13131 if test -f $ac_dir/file; then
13132 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13133 if test -n "$file_magic_test_file"; then
13134 case $deplibs_check_method in
13135 "file_magic "*)
13136 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13137 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13138 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13139 $EGREP "$file_magic_regex" > /dev/null; then
13140 :
13141 else
13142 cat <<_LT_EOF 1>&2
13143
13144 *** Warning: the command libtool uses to detect shared libraries,
13145 *** $file_magic_cmd, produces output that libtool cannot recognize.
13146 *** The result is that libtool may fail to recognize shared libraries
13147 *** as such. This will affect the creation of libtool libraries that
13148 *** depend on shared libraries, but programs linked with such libtool
13149 *** libraries will work regardless of this problem. Nevertheless, you
13150 *** may want to report the problem to your system manager and/or to
13151 *** bug-libtool@gnu.org
13152
13153 _LT_EOF
13154 fi ;;
13155 esac
13156 fi
13157 break
13158 fi
13159 done
13160 IFS="$lt_save_ifs"
13161 MAGIC_CMD="$lt_save_MAGIC_CMD"
13162 ;;
13163 esac
13164 fi
13165
13166 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13167 if test -n "$MAGIC_CMD"; then
13168 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13169 $as_echo "$MAGIC_CMD" >&6; }
13170 else
13171 { $as_echo "$as_me:$LINENO: result: no" >&5
13172 $as_echo "no" >&6; }
13173 fi
13174
13175
13176 else
13177 MAGIC_CMD=:
13178 fi
13179 fi
13180
13181 fi
13182 ;;
13183 esac
13184
13185 # Use C for the default configuration in the libtool script
13186
13187 lt_save_CC="$CC"
13188 ac_ext=c
13189 ac_cpp='$CPP $CPPFLAGS'
13190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13193
13194
13195 # Source file extension for C test sources.
13196 ac_ext=c
13197
13198 # Object file extension for compiled C test sources.
13199 objext=o
13200 objext=$objext
13201
13202 # Code to be used in simple compile tests
13203 lt_simple_compile_test_code="int some_variable = 0;"
13204
13205 # Code to be used in simple link tests
13206 lt_simple_link_test_code='int main(){return(0);}'
13207
13208
13209
13210
13211
13212
13213
13214 # If no C compiler was specified, use CC.
13215 LTCC=${LTCC-"$CC"}
13216
13217 # If no C compiler flags were specified, use CFLAGS.
13218 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13219
13220 # Allow CC to be a program name with arguments.
13221 compiler=$CC
13222
13223 # Save the default compiler, since it gets overwritten when the other
13224 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13225 compiler_DEFAULT=$CC
13226
13227 # save warnings/boilerplate of simple test code
13228 ac_outfile=conftest.$ac_objext
13229 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13230 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13231 _lt_compiler_boilerplate=`cat conftest.err`
13232 $RM conftest*
13233
13234 ac_outfile=conftest.$ac_objext
13235 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13236 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13237 _lt_linker_boilerplate=`cat conftest.err`
13238 $RM -r conftest*
13239
13240
13241 ## CAVEAT EMPTOR:
13242 ## There is no encapsulation within the following macros, do not change
13243 ## the running order or otherwise move them around unless you know exactly
13244 ## what you are doing...
13245 if test -n "$compiler"; then
13246
13247 lt_prog_compiler_no_builtin_flag=
13248
13249 if test "$GCC" = yes; then
13250 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
13251
13252 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13253 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13254 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
13255 $as_echo_n "(cached) " >&6
13256 else
13257 lt_cv_prog_compiler_rtti_exceptions=no
13258 ac_outfile=conftest.$ac_objext
13259 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13260 lt_compiler_flag="-fno-rtti -fno-exceptions"
13261 # Insert the option either (1) after the last *FLAGS variable, or
13262 # (2) before a word containing "conftest.", or (3) at the end.
13263 # Note that $ac_compile itself does not contain backslashes and begins
13264 # with a dollar sign (not a hyphen), so the echo should work correctly.
13265 # The option is referenced via a variable to avoid confusing sed.
13266 lt_compile=`echo "$ac_compile" | $SED \
13267 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13268 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13269 -e 's:$: $lt_compiler_flag:'`
13270 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13271 (eval "$lt_compile" 2>conftest.err)
13272 ac_status=$?
13273 cat conftest.err >&5
13274 echo "$as_me:__oline__: \$? = $ac_status" >&5
13275 if (exit $ac_status) && test -s "$ac_outfile"; then
13276 # The compiler can only warn and ignore the option if not recognized
13277 # So say no if there are warnings other than the usual output.
13278 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13279 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13280 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13281 lt_cv_prog_compiler_rtti_exceptions=yes
13282 fi
13283 fi
13284 $RM conftest*
13285
13286 fi
13287 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13288 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13289
13290 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13291 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13292 else
13293 :
13294 fi
13295
13296 fi
13297
13298
13299
13300
13301
13302
13303 lt_prog_compiler_wl=
13304 lt_prog_compiler_pic=
13305 lt_prog_compiler_static=
13306
13307 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13308 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13309
13310 if test "$GCC" = yes; then
13311 lt_prog_compiler_wl='-Wl,'
13312 lt_prog_compiler_static='-static'
13313
13314 case $host_os in
13315 aix*)
13316 # All AIX code is PIC.
13317 if test "$host_cpu" = ia64; then
13318 # AIX 5 now supports IA64 processor
13319 lt_prog_compiler_static='-Bstatic'
13320 fi
13321 ;;
13322
13323 amigaos*)
13324 case $host_cpu in
13325 powerpc)
13326 # see comment about AmigaOS4 .so support
13327 lt_prog_compiler_pic='-fPIC'
13328 ;;
13329 m68k)
13330 # FIXME: we need at least 68020 code to build shared libraries, but
13331 # adding the `-m68020' flag to GCC prevents building anything better,
13332 # like `-m68040'.
13333 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13334 ;;
13335 esac
13336 ;;
13337
13338 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13339 # PIC is the default for these OSes.
13340 ;;
13341
13342 mingw* | cygwin* | pw32* | os2* | cegcc*)
13343 # This hack is so that the source file can tell whether it is being
13344 # built for inclusion in a dll (and should export symbols for example).
13345 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13346 # (--disable-auto-import) libraries
13347 lt_prog_compiler_pic='-DDLL_EXPORT'
13348 ;;
13349
13350 darwin* | rhapsody*)
13351 # PIC is the default on this platform
13352 # Common symbols not allowed in MH_DYLIB files
13353 lt_prog_compiler_pic='-fno-common'
13354 ;;
13355
13356 hpux*)
13357 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13358 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13359 # sets the default TLS model and affects inlining.
13360 case $host_cpu in
13361 hppa*64*)
13362 # +Z the default
13363 ;;
13364 *)
13365 lt_prog_compiler_pic='-fPIC'
13366 ;;
13367 esac
13368 ;;
13369
13370 interix[3-9]*)
13371 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13372 # Instead, we relocate shared libraries at runtime.
13373 ;;
13374
13375 msdosdjgpp*)
13376 # Just because we use GCC doesn't mean we suddenly get shared libraries
13377 # on systems that don't support them.
13378 lt_prog_compiler_can_build_shared=no
13379 enable_shared=no
13380 ;;
13381
13382 *nto* | *qnx*)
13383 # QNX uses GNU C++, but need to define -shared option too, otherwise
13384 # it will coredump.
13385 lt_prog_compiler_pic='-fPIC -shared'
13386 ;;
13387
13388 sysv4*MP*)
13389 if test -d /usr/nec; then
13390 lt_prog_compiler_pic=-Kconform_pic
13391 fi
13392 ;;
13393
13394 *)
13395 lt_prog_compiler_pic='-fPIC'
13396 ;;
13397 esac
13398 else
13399 # PORTME Check for flag to pass linker flags through the system compiler.
13400 case $host_os in
13401 aix*)
13402 lt_prog_compiler_wl='-Wl,'
13403 if test "$host_cpu" = ia64; then
13404 # AIX 5 now supports IA64 processor
13405 lt_prog_compiler_static='-Bstatic'
13406 else
13407 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13408 fi
13409 ;;
13410
13411 mingw* | cygwin* | pw32* | os2* | cegcc*)
13412 # This hack is so that the source file can tell whether it is being
13413 # built for inclusion in a dll (and should export symbols for example).
13414 lt_prog_compiler_pic='-DDLL_EXPORT'
13415 ;;
13416
13417 hpux9* | hpux10* | hpux11*)
13418 lt_prog_compiler_wl='-Wl,'
13419 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13420 # not for PA HP-UX.
13421 case $host_cpu in
13422 hppa*64*|ia64*)
13423 # +Z the default
13424 ;;
13425 *)
13426 lt_prog_compiler_pic='+Z'
13427 ;;
13428 esac
13429 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13430 lt_prog_compiler_static='${wl}-a ${wl}archive'
13431 ;;
13432
13433 irix5* | irix6* | nonstopux*)
13434 lt_prog_compiler_wl='-Wl,'
13435 # PIC (with -KPIC) is the default.
13436 lt_prog_compiler_static='-non_shared'
13437 ;;
13438
13439 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13440 case $cc_basename in
13441 # old Intel for x86_64 which still supported -KPIC.
13442 ecc*)
13443 lt_prog_compiler_wl='-Wl,'
13444 lt_prog_compiler_pic='-KPIC'
13445 lt_prog_compiler_static='-static'
13446 ;;
13447 # icc used to be incompatible with GCC.
13448 # ICC 10 doesn't accept -KPIC any more.
13449 icc* | ifort*)
13450 lt_prog_compiler_wl='-Wl,'
13451 lt_prog_compiler_pic='-fPIC'
13452 lt_prog_compiler_static='-static'
13453 ;;
13454 # Lahey Fortran 8.1.
13455 lf95*)
13456 lt_prog_compiler_wl='-Wl,'
13457 lt_prog_compiler_pic='--shared'
13458 lt_prog_compiler_static='--static'
13459 ;;
13460 pgcc* | pgf77* | pgf90* | pgf95*)
13461 # Portland Group compilers (*not* the Pentium gcc compiler,
13462 # which looks to be a dead project)
13463 lt_prog_compiler_wl='-Wl,'
13464 lt_prog_compiler_pic='-fpic'
13465 lt_prog_compiler_static='-Bstatic'
13466 ;;
13467 ccc*)
13468 lt_prog_compiler_wl='-Wl,'
13469 # All Alpha code is PIC.
13470 lt_prog_compiler_static='-non_shared'
13471 ;;
13472 xl*)
13473 # IBM XL C 8.0/Fortran 10.1 on PPC
13474 lt_prog_compiler_wl='-Wl,'
13475 lt_prog_compiler_pic='-qpic'
13476 lt_prog_compiler_static='-qstaticlink'
13477 ;;
13478 *)
13479 case `$CC -V 2>&1 | sed 5q` in
13480 *Sun\ C*)
13481 # Sun C 5.9
13482 lt_prog_compiler_pic='-KPIC'
13483 lt_prog_compiler_static='-Bstatic'
13484 lt_prog_compiler_wl='-Wl,'
13485 ;;
13486 *Sun\ F*)
13487 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13488 lt_prog_compiler_pic='-KPIC'
13489 lt_prog_compiler_static='-Bstatic'
13490 lt_prog_compiler_wl=''
13491 ;;
13492 esac
13493 ;;
13494 esac
13495 ;;
13496
13497 newsos6)
13498 lt_prog_compiler_pic='-KPIC'
13499 lt_prog_compiler_static='-Bstatic'
13500 ;;
13501
13502 *nto* | *qnx*)
13503 # QNX uses GNU C++, but need to define -shared option too, otherwise
13504 # it will coredump.
13505 lt_prog_compiler_pic='-fPIC -shared'
13506 ;;
13507
13508 osf3* | osf4* | osf5*)
13509 lt_prog_compiler_wl='-Wl,'
13510 # All OSF/1 code is PIC.
13511 lt_prog_compiler_static='-non_shared'
13512 ;;
13513
13514 rdos*)
13515 lt_prog_compiler_static='-non_shared'
13516 ;;
13517
13518 solaris*)
13519 lt_prog_compiler_pic='-KPIC'
13520 lt_prog_compiler_static='-Bstatic'
13521 case $cc_basename in
13522 f77* | f90* | f95*)
13523 lt_prog_compiler_wl='-Qoption ld ';;
13524 *)
13525 lt_prog_compiler_wl='-Wl,';;
13526 esac
13527 ;;
13528
13529 sunos4*)
13530 lt_prog_compiler_wl='-Qoption ld '
13531 lt_prog_compiler_pic='-PIC'
13532 lt_prog_compiler_static='-Bstatic'
13533 ;;
13534
13535 sysv4 | sysv4.2uw2* | sysv4.3*)
13536 lt_prog_compiler_wl='-Wl,'
13537 lt_prog_compiler_pic='-KPIC'
13538 lt_prog_compiler_static='-Bstatic'
13539 ;;
13540
13541 sysv4*MP*)
13542 if test -d /usr/nec ;then
13543 lt_prog_compiler_pic='-Kconform_pic'
13544 lt_prog_compiler_static='-Bstatic'
13545 fi
13546 ;;
13547
13548 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13549 lt_prog_compiler_wl='-Wl,'
13550 lt_prog_compiler_pic='-KPIC'
13551 lt_prog_compiler_static='-Bstatic'
13552 ;;
13553
13554 unicos*)
13555 lt_prog_compiler_wl='-Wl,'
13556 lt_prog_compiler_can_build_shared=no
13557 ;;
13558
13559 uts4*)
13560 lt_prog_compiler_pic='-pic'
13561 lt_prog_compiler_static='-Bstatic'
13562 ;;
13563
13564 *)
13565 lt_prog_compiler_can_build_shared=no
13566 ;;
13567 esac
13568 fi
13569
13570 case $host_os in
13571 # For platforms which do not support PIC, -DPIC is meaningless:
13572 *djgpp*)
13573 lt_prog_compiler_pic=
13574 ;;
13575 *)
13576 lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
13577 ;;
13578 esac
13579 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
13580 $as_echo "$lt_prog_compiler_pic" >&6; }
13581
13582
13583
13584
13585
13586
13587 #
13588 # Check to make sure the PIC flag actually works.
13589 #
13590 if test -n "$lt_prog_compiler_pic"; then
13591 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13592 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13593 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
13594 $as_echo_n "(cached) " >&6
13595 else
13596 lt_cv_prog_compiler_pic_works=no
13597 ac_outfile=conftest.$ac_objext
13598 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13599 lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
13600 # Insert the option either (1) after the last *FLAGS variable, or
13601 # (2) before a word containing "conftest.", or (3) at the end.
13602 # Note that $ac_compile itself does not contain backslashes and begins
13603 # with a dollar sign (not a hyphen), so the echo should work correctly.
13604 # The option is referenced via a variable to avoid confusing sed.
13605 lt_compile=`echo "$ac_compile" | $SED \
13606 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13607 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13608 -e 's:$: $lt_compiler_flag:'`
13609 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13610 (eval "$lt_compile" 2>conftest.err)
13611 ac_status=$?
13612 cat conftest.err >&5
13613 echo "$as_me:__oline__: \$? = $ac_status" >&5
13614 if (exit $ac_status) && test -s "$ac_outfile"; then
13615 # The compiler can only warn and ignore the option if not recognized
13616 # So say no if there are warnings other than the usual output.
13617 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13618 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13619 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13620 lt_cv_prog_compiler_pic_works=yes
13621 fi
13622 fi
13623 $RM conftest*
13624
13625 fi
13626 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
13627 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13628
13629 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13630 case $lt_prog_compiler_pic in
13631 "" | " "*) ;;
13632 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13633 esac
13634 else
13635 lt_prog_compiler_pic=
13636 lt_prog_compiler_can_build_shared=no
13637 fi
13638
13639 fi
13640
13641
13642
13643
13644
13645
13646 #
13647 # Check to make sure the static flag actually works.
13648 #
13649 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13650 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13651 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13652 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
13653 $as_echo_n "(cached) " >&6
13654 else
13655 lt_cv_prog_compiler_static_works=no
13656 save_LDFLAGS="$LDFLAGS"
13657 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13658 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13659 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13660 # The linker can only warn and ignore the option if not recognized
13661 # So say no if there are warnings
13662 if test -s conftest.err; then
13663 # Append any errors to the config.log.
13664 cat conftest.err 1>&5
13665 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13666 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13667 if diff conftest.exp conftest.er2 >/dev/null; then
13668 lt_cv_prog_compiler_static_works=yes
13669 fi
13670 else
13671 lt_cv_prog_compiler_static_works=yes
13672 fi
13673 fi
13674 $RM -r conftest*
13675 LDFLAGS="$save_LDFLAGS"
13676
13677 fi
13678 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
13679 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13680
13681 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13682 :
13683 else
13684 lt_prog_compiler_static=
13685 fi
13686
13687
13688
13689
13690
13691
13692
13693 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13694 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13695 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
13696 $as_echo_n "(cached) " >&6
13697 else
13698 lt_cv_prog_compiler_c_o=no
13699 $RM -r conftest 2>/dev/null
13700 mkdir conftest
13701 cd conftest
13702 mkdir out
13703 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13704
13705 lt_compiler_flag="-o out/conftest2.$ac_objext"
13706 # Insert the option either (1) after the last *FLAGS variable, or
13707 # (2) before a word containing "conftest.", or (3) at the end.
13708 # Note that $ac_compile itself does not contain backslashes and begins
13709 # with a dollar sign (not a hyphen), so the echo should work correctly.
13710 lt_compile=`echo "$ac_compile" | $SED \
13711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13713 -e 's:$: $lt_compiler_flag:'`
13714 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13715 (eval "$lt_compile" 2>out/conftest.err)
13716 ac_status=$?
13717 cat out/conftest.err >&5
13718 echo "$as_me:__oline__: \$? = $ac_status" >&5
13719 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13720 then
13721 # The compiler can only warn and ignore the option if not recognized
13722 # So say no if there are warnings
13723 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13724 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13725 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13726 lt_cv_prog_compiler_c_o=yes
13727 fi
13728 fi
13729 chmod u+w . 2>&5
13730 $RM conftest*
13731 # SGI C++ compiler will create directory out/ii_files/ for
13732 # template instantiation
13733 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13734 $RM out/* && rmdir out
13735 cd ..
13736 $RM -r conftest
13737 $RM conftest*
13738
13739 fi
13740 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
13741 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13742
13743
13744
13745
13746
13747
13748 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13749 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13750 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
13751 $as_echo_n "(cached) " >&6
13752 else
13753 lt_cv_prog_compiler_c_o=no
13754 $RM -r conftest 2>/dev/null
13755 mkdir conftest
13756 cd conftest
13757 mkdir out
13758 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13759
13760 lt_compiler_flag="-o out/conftest2.$ac_objext"
13761 # Insert the option either (1) after the last *FLAGS variable, or
13762 # (2) before a word containing "conftest.", or (3) at the end.
13763 # Note that $ac_compile itself does not contain backslashes and begins
13764 # with a dollar sign (not a hyphen), so the echo should work correctly.
13765 lt_compile=`echo "$ac_compile" | $SED \
13766 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13767 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13768 -e 's:$: $lt_compiler_flag:'`
13769 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13770 (eval "$lt_compile" 2>out/conftest.err)
13771 ac_status=$?
13772 cat out/conftest.err >&5
13773 echo "$as_me:__oline__: \$? = $ac_status" >&5
13774 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13775 then
13776 # The compiler can only warn and ignore the option if not recognized
13777 # So say no if there are warnings
13778 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13779 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13780 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13781 lt_cv_prog_compiler_c_o=yes
13782 fi
13783 fi
13784 chmod u+w . 2>&5
13785 $RM conftest*
13786 # SGI C++ compiler will create directory out/ii_files/ for
13787 # template instantiation
13788 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13789 $RM out/* && rmdir out
13790 cd ..
13791 $RM -r conftest
13792 $RM conftest*
13793
13794 fi
13795 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
13796 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13797
13798
13799
13800
13801 hard_links="nottested"
13802 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13803 # do not overwrite the value of need_locks provided by the user
13804 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13805 $as_echo_n "checking if we can lock with hard links... " >&6; }
13806 hard_links=yes
13807 $RM conftest*
13808 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13809 touch conftest.a
13810 ln conftest.a conftest.b 2>&5 || hard_links=no
13811 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13812 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13813 $as_echo "$hard_links" >&6; }
13814 if test "$hard_links" = no; then
13815 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13816 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13817 need_locks=warn
13818 fi
13819 else
13820 need_locks=no
13821 fi
13822
13823
13824
13825
13826
13827
13828 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13829 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13830
13831 runpath_var=
13832 allow_undefined_flag=
13833 always_export_symbols=no
13834 archive_cmds=
13835 archive_expsym_cmds=
13836 compiler_needs_object=no
13837 enable_shared_with_static_runtimes=no
13838 export_dynamic_flag_spec=
13839 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13840 hardcode_automatic=no
13841 hardcode_direct=no
13842 hardcode_direct_absolute=no
13843 hardcode_libdir_flag_spec=
13844 hardcode_libdir_flag_spec_ld=
13845 hardcode_libdir_separator=
13846 hardcode_minus_L=no
13847 hardcode_shlibpath_var=unsupported
13848 inherit_rpath=no
13849 link_all_deplibs=unknown
13850 module_cmds=
13851 module_expsym_cmds=
13852 old_archive_from_new_cmds=
13853 old_archive_from_expsyms_cmds=
13854 thread_safe_flag_spec=
13855 whole_archive_flag_spec=
13856 # include_expsyms should be a list of space-separated symbols to be *always*
13857 # included in the symbol list
13858 include_expsyms=
13859 # exclude_expsyms can be an extended regexp of symbols to exclude
13860 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13861 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13862 # as well as any symbol that contains `d'.
13863 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13864 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13865 # platforms (ab)use it in PIC code, but their linkers get confused if
13866 # the symbol is explicitly referenced. Since portable code cannot
13867 # rely on this symbol name, it's probably fine to never include it in
13868 # preloaded symbol tables.
13869 # Exclude shared library initialization/finalization symbols.
13870 extract_expsyms_cmds=
13871
13872 case $host_os in
13873 cygwin* | mingw* | pw32* | cegcc*)
13874 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13875 # When not using gcc, we currently assume that we are using
13876 # Microsoft Visual C++.
13877 if test "$GCC" != yes; then
13878 with_gnu_ld=no
13879 fi
13880 ;;
13881 interix*)
13882 # we just hope/assume this is gcc and not c89 (= MSVC++)
13883 with_gnu_ld=yes
13884 ;;
13885 openbsd*)
13886 with_gnu_ld=no
13887 ;;
13888 linux* | k*bsd*-gnu)
13889 link_all_deplibs=no
13890 ;;
13891 esac
13892
13893 ld_shlibs=yes
13894 if test "$with_gnu_ld" = yes; then
13895 # If archive_cmds runs LD, not CC, wlarc should be empty
13896 wlarc='${wl}'
13897
13898 # Set some defaults for GNU ld with shared library support. These
13899 # are reset later if shared libraries are not supported. Putting them
13900 # here allows them to be overridden if necessary.
13901 runpath_var=LD_RUN_PATH
13902 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13903 export_dynamic_flag_spec='${wl}--export-dynamic'
13904 # ancient GNU ld didn't support --whole-archive et. al.
13905 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13906 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13907 else
13908 whole_archive_flag_spec=
13909 fi
13910 supports_anon_versioning=no
13911 case `$LD -v 2>&1` in
13912 *GNU\ gold*) supports_anon_versioning=yes ;;
13913 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13914 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13915 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13916 *\ 2.11.*) ;; # other 2.11 versions
13917 *) supports_anon_versioning=yes ;;
13918 esac
13919
13920 # See if GNU ld supports shared libraries.
13921 case $host_os in
13922 aix[3-9]*)
13923 # On AIX/PPC, the GNU linker is very broken
13924 if test "$host_cpu" != ia64; then
13925 ld_shlibs=no
13926 cat <<_LT_EOF 1>&2
13927
13928 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13929 *** to be unable to reliably create shared libraries on AIX.
13930 *** Therefore, libtool is disabling shared libraries support. If you
13931 *** really care for shared libraries, you may want to modify your PATH
13932 *** so that a non-GNU linker is found, and then restart.
13933
13934 _LT_EOF
13935 fi
13936 ;;
13937
13938 amigaos*)
13939 case $host_cpu in
13940 powerpc)
13941 # see comment about AmigaOS4 .so support
13942 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13943 archive_expsym_cmds=''
13944 ;;
13945 m68k)
13946 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)'
13947 hardcode_libdir_flag_spec='-L$libdir'
13948 hardcode_minus_L=yes
13949 ;;
13950 esac
13951 ;;
13952
13953 beos*)
13954 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13955 allow_undefined_flag=unsupported
13956 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13957 # support --undefined. This deserves some investigation. FIXME
13958 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13959 else
13960 ld_shlibs=no
13961 fi
13962 ;;
13963
13964 cygwin* | mingw* | pw32* | cegcc*)
13965 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13966 # as there is no search path for DLLs.
13967 hardcode_libdir_flag_spec='-L$libdir'
13968 allow_undefined_flag=unsupported
13969 always_export_symbols=no
13970 enable_shared_with_static_runtimes=yes
13971 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13972
13973 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13974 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13975 # If the export-symbols file already is a .def file (1st line
13976 # is EXPORTS), use it as is; otherwise, prepend...
13977 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13978 cp $export_symbols $output_objdir/$soname.def;
13979 else
13980 echo EXPORTS > $output_objdir/$soname.def;
13981 cat $export_symbols >> $output_objdir/$soname.def;
13982 fi~
13983 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13984 else
13985 ld_shlibs=no
13986 fi
13987 ;;
13988
13989 interix[3-9]*)
13990 hardcode_direct=no
13991 hardcode_shlibpath_var=no
13992 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13993 export_dynamic_flag_spec='${wl}-E'
13994 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13995 # Instead, shared libraries are loaded at an image base (0x10000000 by
13996 # default) and relocated if they conflict, which is a slow very memory
13997 # consuming and fragmenting process. To avoid this, we pick a random,
13998 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13999 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14000 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14001 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'
14002 ;;
14003
14004 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14005 tmp_diet=no
14006 if test "$host_os" = linux-dietlibc; then
14007 case $cc_basename in
14008 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14009 esac
14010 fi
14011 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14012 && test "$tmp_diet" = no
14013 then
14014 tmp_addflag=
14015 tmp_sharedflag='-shared'
14016 case $cc_basename,$host_cpu in
14017 pgcc*) # Portland Group C compiler
14018 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'
14019 tmp_addflag=' $pic_flag'
14020 ;;
14021 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14022 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'
14023 tmp_addflag=' $pic_flag -Mnomain' ;;
14024 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14025 tmp_addflag=' -i_dynamic' ;;
14026 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14027 tmp_addflag=' -i_dynamic -nofor_main' ;;
14028 ifc* | ifort*) # Intel Fortran compiler
14029 tmp_addflag=' -nofor_main' ;;
14030 lf95*) # Lahey Fortran 8.1
14031 whole_archive_flag_spec=
14032 tmp_sharedflag='--shared' ;;
14033 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14034 tmp_sharedflag='-qmkshrobj'
14035 tmp_addflag= ;;
14036 esac
14037 case `$CC -V 2>&1 | sed 5q` in
14038 *Sun\ C*) # Sun C 5.9
14039 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'
14040 compiler_needs_object=yes
14041 tmp_sharedflag='-G' ;;
14042 *Sun\ F*) # Sun Fortran 8.3
14043 tmp_sharedflag='-G' ;;
14044 esac
14045 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14046
14047 if test "x$supports_anon_versioning" = xyes; then
14048 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14049 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14050 echo "local: *; };" >> $output_objdir/$libname.ver~
14051 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14052 fi
14053
14054 case $cc_basename in
14055 xlf*)
14056 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14057 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14058 hardcode_libdir_flag_spec=
14059 hardcode_libdir_flag_spec_ld='-rpath $libdir'
14060 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14061 if test "x$supports_anon_versioning" = xyes; then
14062 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14063 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14064 echo "local: *; };" >> $output_objdir/$libname.ver~
14065 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14066 fi
14067 ;;
14068 esac
14069 else
14070 ld_shlibs=no
14071 fi
14072 ;;
14073
14074 netbsd* | netbsdelf*-gnu)
14075 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14076 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14077 wlarc=
14078 else
14079 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14080 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14081 fi
14082 ;;
14083
14084 solaris*)
14085 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14086 ld_shlibs=no
14087 cat <<_LT_EOF 1>&2
14088
14089 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14090 *** create shared libraries on Solaris systems. Therefore, libtool
14091 *** is disabling shared libraries support. We urge you to upgrade GNU
14092 *** binutils to release 2.9.1 or newer. Another option is to modify
14093 *** your PATH or compiler configuration so that the native linker is
14094 *** used, and then restart.
14095
14096 _LT_EOF
14097 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14098 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14099 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14100 else
14101 ld_shlibs=no
14102 fi
14103 ;;
14104
14105 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14106 case `$LD -v 2>&1` in
14107 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14108 ld_shlibs=no
14109 cat <<_LT_EOF 1>&2
14110
14111 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14112 *** reliably create shared libraries on SCO systems. Therefore, libtool
14113 *** is disabling shared libraries support. We urge you to upgrade GNU
14114 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14115 *** your PATH or compiler configuration so that the native linker is
14116 *** used, and then restart.
14117
14118 _LT_EOF
14119 ;;
14120 *)
14121 # For security reasons, it is highly recommended that you always
14122 # use absolute paths for naming shared libraries, and exclude the
14123 # DT_RUNPATH tag from executables and libraries. But doing so
14124 # requires that you compile everything twice, which is a pain.
14125 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14126 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14127 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14128 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14129 else
14130 ld_shlibs=no
14131 fi
14132 ;;
14133 esac
14134 ;;
14135
14136 sunos4*)
14137 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14138 wlarc=
14139 hardcode_direct=yes
14140 hardcode_shlibpath_var=no
14141 ;;
14142
14143 *)
14144 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14145 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14146 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14147 else
14148 ld_shlibs=no
14149 fi
14150 ;;
14151 esac
14152
14153 if test "$ld_shlibs" = no; then
14154 runpath_var=
14155 hardcode_libdir_flag_spec=
14156 export_dynamic_flag_spec=
14157 whole_archive_flag_spec=
14158 fi
14159 else
14160 # PORTME fill in a description of your system's linker (not GNU ld)
14161 case $host_os in
14162 aix3*)
14163 allow_undefined_flag=unsupported
14164 always_export_symbols=yes
14165 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'
14166 # Note: this linker hardcodes the directories in LIBPATH if there
14167 # are no directories specified by -L.
14168 hardcode_minus_L=yes
14169 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14170 # Neither direct hardcoding nor static linking is supported with a
14171 # broken collect2.
14172 hardcode_direct=unsupported
14173 fi
14174 ;;
14175
14176 aix[4-9]*)
14177 if test "$host_cpu" = ia64; then
14178 # On IA64, the linker does run time linking by default, so we don't
14179 # have to do anything special.
14180 aix_use_runtimelinking=no
14181 exp_sym_flag='-Bexport'
14182 no_entry_flag=""
14183 else
14184 # If we're using GNU nm, then we don't want the "-C" option.
14185 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14186 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14187 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'
14188 else
14189 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'
14190 fi
14191 aix_use_runtimelinking=no
14192
14193 # Test if we are trying to use run time linking or normal
14194 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14195 # need to do runtime linking.
14196 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14197 for ld_flag in $LDFLAGS; do
14198 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14199 aix_use_runtimelinking=yes
14200 break
14201 fi
14202 done
14203 ;;
14204 esac
14205
14206 exp_sym_flag='-bexport'
14207 no_entry_flag='-bnoentry'
14208 fi
14209
14210 # When large executables or shared objects are built, AIX ld can
14211 # have problems creating the table of contents. If linking a library
14212 # or program results in "error TOC overflow" add -mminimal-toc to
14213 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14214 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14215
14216 archive_cmds=''
14217 hardcode_direct=yes
14218 hardcode_direct_absolute=yes
14219 hardcode_libdir_separator=':'
14220 link_all_deplibs=yes
14221 file_list_spec='${wl}-f,'
14222
14223 if test "$GCC" = yes; then
14224 case $host_os in aix4.[012]|aix4.[012].*)
14225 # We only want to do this on AIX 4.2 and lower, the check
14226 # below for broken collect2 doesn't work under 4.3+
14227 collect2name=`${CC} -print-prog-name=collect2`
14228 if test -f "$collect2name" &&
14229 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14230 then
14231 # We have reworked collect2
14232 :
14233 else
14234 # We have old collect2
14235 hardcode_direct=unsupported
14236 # It fails to find uninstalled libraries when the uninstalled
14237 # path is not listed in the libpath. Setting hardcode_minus_L
14238 # to unsupported forces relinking
14239 hardcode_minus_L=yes
14240 hardcode_libdir_flag_spec='-L$libdir'
14241 hardcode_libdir_separator=
14242 fi
14243 ;;
14244 esac
14245 shared_flag='-shared'
14246 if test "$aix_use_runtimelinking" = yes; then
14247 shared_flag="$shared_flag "'${wl}-G'
14248 fi
14249 link_all_deplibs=no
14250 else
14251 # not using gcc
14252 if test "$host_cpu" = ia64; then
14253 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14254 # chokes on -Wl,-G. The following line is correct:
14255 shared_flag='-G'
14256 else
14257 if test "$aix_use_runtimelinking" = yes; then
14258 shared_flag='${wl}-G'
14259 else
14260 shared_flag='${wl}-bM:SRE'
14261 fi
14262 fi
14263 fi
14264
14265 export_dynamic_flag_spec='${wl}-bexpall'
14266 # It seems that -bexpall does not export symbols beginning with
14267 # underscore (_), so it is better to generate a list of symbols to export.
14268 always_export_symbols=yes
14269 if test "$aix_use_runtimelinking" = yes; then
14270 # Warning - without using the other runtime loading flags (-brtl),
14271 # -berok will link without error, but may produce a broken library.
14272 allow_undefined_flag='-berok'
14273 # Determine the default libpath from the value encoded in an
14274 # empty executable.
14275 cat >conftest.$ac_ext <<_ACEOF
14276 /* confdefs.h. */
14277 _ACEOF
14278 cat confdefs.h >>conftest.$ac_ext
14279 cat >>conftest.$ac_ext <<_ACEOF
14280 /* end confdefs.h. */
14281
14282 int
14283 main ()
14284 {
14285
14286 ;
14287 return 0;
14288 }
14289 _ACEOF
14290 rm -f conftest.$ac_objext conftest$ac_exeext
14291 if { (ac_try="$ac_link"
14292 case "(($ac_try" in
14293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14294 *) ac_try_echo=$ac_try;;
14295 esac
14296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14297 $as_echo "$ac_try_echo") >&5
14298 (eval "$ac_link") 2>conftest.er1
14299 ac_status=$?
14300 grep -v '^ *+' conftest.er1 >conftest.err
14301 rm -f conftest.er1
14302 cat conftest.err >&5
14303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); } && {
14305 test -z "$ac_c_werror_flag" ||
14306 test ! -s conftest.err
14307 } && test -s conftest$ac_exeext && {
14308 test "$cross_compiling" = yes ||
14309 $as_test_x conftest$ac_exeext
14310 }; then
14311
14312 lt_aix_libpath_sed='
14313 /Import File Strings/,/^$/ {
14314 /^0/ {
14315 s/^0 *\(.*\)$/\1/
14316 p
14317 }
14318 }'
14319 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14320 # Check for a 64-bit object if we didn't find anything.
14321 if test -z "$aix_libpath"; then
14322 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14323 fi
14324 else
14325 $as_echo "$as_me: failed program was:" >&5
14326 sed 's/^/| /' conftest.$ac_ext >&5
14327
14328
14329 fi
14330
14331 rm -rf conftest.dSYM
14332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14333 conftest$ac_exeext conftest.$ac_ext
14334 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14335
14336 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14337 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"
14338 else
14339 if test "$host_cpu" = ia64; then
14340 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14341 allow_undefined_flag="-z nodefs"
14342 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"
14343 else
14344 # Determine the default libpath from the value encoded in an
14345 # empty executable.
14346 cat >conftest.$ac_ext <<_ACEOF
14347 /* confdefs.h. */
14348 _ACEOF
14349 cat confdefs.h >>conftest.$ac_ext
14350 cat >>conftest.$ac_ext <<_ACEOF
14351 /* end confdefs.h. */
14352
14353 int
14354 main ()
14355 {
14356
14357 ;
14358 return 0;
14359 }
14360 _ACEOF
14361 rm -f conftest.$ac_objext conftest$ac_exeext
14362 if { (ac_try="$ac_link"
14363 case "(($ac_try" in
14364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14365 *) ac_try_echo=$ac_try;;
14366 esac
14367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14368 $as_echo "$ac_try_echo") >&5
14369 (eval "$ac_link") 2>conftest.er1
14370 ac_status=$?
14371 grep -v '^ *+' conftest.er1 >conftest.err
14372 rm -f conftest.er1
14373 cat conftest.err >&5
14374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); } && {
14376 test -z "$ac_c_werror_flag" ||
14377 test ! -s conftest.err
14378 } && test -s conftest$ac_exeext && {
14379 test "$cross_compiling" = yes ||
14380 $as_test_x conftest$ac_exeext
14381 }; then
14382
14383 lt_aix_libpath_sed='
14384 /Import File Strings/,/^$/ {
14385 /^0/ {
14386 s/^0 *\(.*\)$/\1/
14387 p
14388 }
14389 }'
14390 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14391 # Check for a 64-bit object if we didn't find anything.
14392 if test -z "$aix_libpath"; then
14393 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14394 fi
14395 else
14396 $as_echo "$as_me: failed program was:" >&5
14397 sed 's/^/| /' conftest.$ac_ext >&5
14398
14399
14400 fi
14401
14402 rm -rf conftest.dSYM
14403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14404 conftest$ac_exeext conftest.$ac_ext
14405 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14406
14407 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14408 # Warning - without using the other run time loading flags,
14409 # -berok will link without error, but may produce a broken library.
14410 no_undefined_flag=' ${wl}-bernotok'
14411 allow_undefined_flag=' ${wl}-berok'
14412 # Exported symbols can be pulled into shared objects from archives
14413 whole_archive_flag_spec='$convenience'
14414 archive_cmds_need_lc=yes
14415 # This is similar to how AIX traditionally builds its shared libraries.
14416 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'
14417 fi
14418 fi
14419 ;;
14420
14421 amigaos*)
14422 case $host_cpu in
14423 powerpc)
14424 # see comment about AmigaOS4 .so support
14425 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14426 archive_expsym_cmds=''
14427 ;;
14428 m68k)
14429 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)'
14430 hardcode_libdir_flag_spec='-L$libdir'
14431 hardcode_minus_L=yes
14432 ;;
14433 esac
14434 ;;
14435
14436 bsdi[45]*)
14437 export_dynamic_flag_spec=-rdynamic
14438 ;;
14439
14440 cygwin* | mingw* | pw32* | cegcc*)
14441 # When not using gcc, we currently assume that we are using
14442 # Microsoft Visual C++.
14443 # hardcode_libdir_flag_spec is actually meaningless, as there is
14444 # no search path for DLLs.
14445 hardcode_libdir_flag_spec=' '
14446 allow_undefined_flag=unsupported
14447 # Tell ltmain to make .lib files, not .a files.
14448 libext=lib
14449 # Tell ltmain to make .dll files, not .so files.
14450 shrext_cmds=".dll"
14451 # FIXME: Setting linknames here is a bad hack.
14452 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
14453 # The linker will automatically build a .lib file if we build a DLL.
14454 old_archive_from_new_cmds='true'
14455 # FIXME: Should let the user specify the lib program.
14456 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14457 fix_srcfile_path='`cygpath -w "$srcfile"`'
14458 enable_shared_with_static_runtimes=yes
14459 ;;
14460
14461 darwin* | rhapsody*)
14462
14463
14464 archive_cmds_need_lc=no
14465 hardcode_direct=no
14466 hardcode_automatic=yes
14467 hardcode_shlibpath_var=unsupported
14468 whole_archive_flag_spec=''
14469 link_all_deplibs=yes
14470 allow_undefined_flag="$_lt_dar_allow_undefined"
14471 case $cc_basename in
14472 ifort*) _lt_dar_can_shared=yes ;;
14473 *) _lt_dar_can_shared=$GCC ;;
14474 esac
14475 if test "$_lt_dar_can_shared" = "yes"; then
14476 output_verbose_link_cmd=echo
14477 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14478 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14479 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}"
14480 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}"
14481
14482 else
14483 ld_shlibs=no
14484 fi
14485
14486 ;;
14487
14488 dgux*)
14489 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14490 hardcode_libdir_flag_spec='-L$libdir'
14491 hardcode_shlibpath_var=no
14492 ;;
14493
14494 freebsd1*)
14495 ld_shlibs=no
14496 ;;
14497
14498 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14499 # support. Future versions do this automatically, but an explicit c++rt0.o
14500 # does not break anything, and helps significantly (at the cost of a little
14501 # extra space).
14502 freebsd2.2*)
14503 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14504 hardcode_libdir_flag_spec='-R$libdir'
14505 hardcode_direct=yes
14506 hardcode_shlibpath_var=no
14507 ;;
14508
14509 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14510 freebsd2*)
14511 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14512 hardcode_direct=yes
14513 hardcode_minus_L=yes
14514 hardcode_shlibpath_var=no
14515 ;;
14516
14517 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14518 freebsd* | dragonfly*)
14519 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14520 hardcode_libdir_flag_spec='-R$libdir'
14521 hardcode_direct=yes
14522 hardcode_shlibpath_var=no
14523 ;;
14524
14525 hpux9*)
14526 if test "$GCC" = yes; then
14527 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'
14528 else
14529 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'
14530 fi
14531 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14532 hardcode_libdir_separator=:
14533 hardcode_direct=yes
14534
14535 # hardcode_minus_L: Not really in the search PATH,
14536 # but as the default location of the library.
14537 hardcode_minus_L=yes
14538 export_dynamic_flag_spec='${wl}-E'
14539 ;;
14540
14541 hpux10*)
14542 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14543 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14544 else
14545 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14546 fi
14547 if test "$with_gnu_ld" = no; then
14548 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14549 hardcode_libdir_flag_spec_ld='+b $libdir'
14550 hardcode_libdir_separator=:
14551 hardcode_direct=yes
14552 hardcode_direct_absolute=yes
14553 export_dynamic_flag_spec='${wl}-E'
14554 # hardcode_minus_L: Not really in the search PATH,
14555 # but as the default location of the library.
14556 hardcode_minus_L=yes
14557 fi
14558 ;;
14559
14560 hpux11*)
14561 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14562 case $host_cpu in
14563 hppa*64*)
14564 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14565 ;;
14566 ia64*)
14567 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14568 ;;
14569 *)
14570 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14571 ;;
14572 esac
14573 else
14574 case $host_cpu in
14575 hppa*64*)
14576 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14577 ;;
14578 ia64*)
14579 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14580 ;;
14581 *)
14582 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14583 ;;
14584 esac
14585 fi
14586 if test "$with_gnu_ld" = no; then
14587 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14588 hardcode_libdir_separator=:
14589
14590 case $host_cpu in
14591 hppa*64*|ia64*)
14592 hardcode_direct=no
14593 hardcode_shlibpath_var=no
14594 ;;
14595 *)
14596 hardcode_direct=yes
14597 hardcode_direct_absolute=yes
14598 export_dynamic_flag_spec='${wl}-E'
14599
14600 # hardcode_minus_L: Not really in the search PATH,
14601 # but as the default location of the library.
14602 hardcode_minus_L=yes
14603 ;;
14604 esac
14605 fi
14606 ;;
14607
14608 irix5* | irix6* | nonstopux*)
14609 if test "$GCC" = yes; then
14610 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'
14611 # Try to use the -exported_symbol ld option, if it does not
14612 # work, assume that -exports_file does not work either and
14613 # implicitly export all symbols.
14614 save_LDFLAGS="$LDFLAGS"
14615 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14616 cat >conftest.$ac_ext <<_ACEOF
14617 int foo(void) {}
14618 _ACEOF
14619 rm -f conftest.$ac_objext conftest$ac_exeext
14620 if { (ac_try="$ac_link"
14621 case "(($ac_try" in
14622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14623 *) ac_try_echo=$ac_try;;
14624 esac
14625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14626 $as_echo "$ac_try_echo") >&5
14627 (eval "$ac_link") 2>conftest.er1
14628 ac_status=$?
14629 grep -v '^ *+' conftest.er1 >conftest.err
14630 rm -f conftest.er1
14631 cat conftest.err >&5
14632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); } && {
14634 test -z "$ac_c_werror_flag" ||
14635 test ! -s conftest.err
14636 } && test -s conftest$ac_exeext && {
14637 test "$cross_compiling" = yes ||
14638 $as_test_x conftest$ac_exeext
14639 }; then
14640 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'
14641
14642 else
14643 $as_echo "$as_me: failed program was:" >&5
14644 sed 's/^/| /' conftest.$ac_ext >&5
14645
14646
14647 fi
14648
14649 rm -rf conftest.dSYM
14650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14651 conftest$ac_exeext conftest.$ac_ext
14652 LDFLAGS="$save_LDFLAGS"
14653 else
14654 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'
14655 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'
14656 fi
14657 archive_cmds_need_lc='no'
14658 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14659 hardcode_libdir_separator=:
14660 inherit_rpath=yes
14661 link_all_deplibs=yes
14662 ;;
14663
14664 netbsd* | netbsdelf*-gnu)
14665 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14666 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14667 else
14668 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14669 fi
14670 hardcode_libdir_flag_spec='-R$libdir'
14671 hardcode_direct=yes
14672 hardcode_shlibpath_var=no
14673 ;;
14674
14675 newsos6)
14676 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14677 hardcode_direct=yes
14678 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14679 hardcode_libdir_separator=:
14680 hardcode_shlibpath_var=no
14681 ;;
14682
14683 *nto* | *qnx*)
14684 ;;
14685
14686 openbsd*)
14687 if test -f /usr/libexec/ld.so; then
14688 hardcode_direct=yes
14689 hardcode_shlibpath_var=no
14690 hardcode_direct_absolute=yes
14691 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14692 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14693 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14694 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14695 export_dynamic_flag_spec='${wl}-E'
14696 else
14697 case $host_os in
14698 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14699 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14700 hardcode_libdir_flag_spec='-R$libdir'
14701 ;;
14702 *)
14703 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14704 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14705 ;;
14706 esac
14707 fi
14708 else
14709 ld_shlibs=no
14710 fi
14711 ;;
14712
14713 os2*)
14714 hardcode_libdir_flag_spec='-L$libdir'
14715 hardcode_minus_L=yes
14716 allow_undefined_flag=unsupported
14717 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'
14718 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14719 ;;
14720
14721 osf3*)
14722 if test "$GCC" = yes; then
14723 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14724 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'
14725 else
14726 allow_undefined_flag=' -expect_unresolved \*'
14727 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'
14728 fi
14729 archive_cmds_need_lc='no'
14730 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14731 hardcode_libdir_separator=:
14732 ;;
14733
14734 osf4* | osf5*) # as osf3* with the addition of -msym flag
14735 if test "$GCC" = yes; then
14736 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14737 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'
14738 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14739 else
14740 allow_undefined_flag=' -expect_unresolved \*'
14741 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'
14742 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~
14743 $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'
14744
14745 # Both c and cxx compiler support -rpath directly
14746 hardcode_libdir_flag_spec='-rpath $libdir'
14747 fi
14748 archive_cmds_need_lc='no'
14749 hardcode_libdir_separator=:
14750 ;;
14751
14752 solaris*)
14753 no_undefined_flag=' -z defs'
14754 if test "$GCC" = yes; then
14755 wlarc='${wl}'
14756 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14757 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14758 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14759 else
14760 case `$CC -V 2>&1` in
14761 *"Compilers 5.0"*)
14762 wlarc=''
14763 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14764 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14765 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14766 ;;
14767 *)
14768 wlarc='${wl}'
14769 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14770 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14771 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14772 ;;
14773 esac
14774 fi
14775 hardcode_libdir_flag_spec='-R$libdir'
14776 hardcode_shlibpath_var=no
14777 case $host_os in
14778 solaris2.[0-5] | solaris2.[0-5].*) ;;
14779 *)
14780 # The compiler driver will combine and reorder linker options,
14781 # but understands `-z linker_flag'. GCC discards it without `$wl',
14782 # but is careful enough not to reorder.
14783 # Supported since Solaris 2.6 (maybe 2.5.1?)
14784 if test "$GCC" = yes; then
14785 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14786 else
14787 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14788 fi
14789 ;;
14790 esac
14791 link_all_deplibs=yes
14792 ;;
14793
14794 sunos4*)
14795 if test "x$host_vendor" = xsequent; then
14796 # Use $CC to link under sequent, because it throws in some extra .o
14797 # files that make .init and .fini sections work.
14798 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14799 else
14800 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14801 fi
14802 hardcode_libdir_flag_spec='-L$libdir'
14803 hardcode_direct=yes
14804 hardcode_minus_L=yes
14805 hardcode_shlibpath_var=no
14806 ;;
14807
14808 sysv4)
14809 case $host_vendor in
14810 sni)
14811 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14812 hardcode_direct=yes # is this really true???
14813 ;;
14814 siemens)
14815 ## LD is ld it makes a PLAMLIB
14816 ## CC just makes a GrossModule.
14817 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14818 reload_cmds='$CC -r -o $output$reload_objs'
14819 hardcode_direct=no
14820 ;;
14821 motorola)
14822 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14823 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14824 ;;
14825 esac
14826 runpath_var='LD_RUN_PATH'
14827 hardcode_shlibpath_var=no
14828 ;;
14829
14830 sysv4.3*)
14831 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14832 hardcode_shlibpath_var=no
14833 export_dynamic_flag_spec='-Bexport'
14834 ;;
14835
14836 sysv4*MP*)
14837 if test -d /usr/nec; then
14838 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14839 hardcode_shlibpath_var=no
14840 runpath_var=LD_RUN_PATH
14841 hardcode_runpath_var=yes
14842 ld_shlibs=yes
14843 fi
14844 ;;
14845
14846 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14847 no_undefined_flag='${wl}-z,text'
14848 archive_cmds_need_lc=no
14849 hardcode_shlibpath_var=no
14850 runpath_var='LD_RUN_PATH'
14851
14852 if test "$GCC" = yes; then
14853 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14854 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14855 else
14856 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14857 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14858 fi
14859 ;;
14860
14861 sysv5* | sco3.2v5* | sco5v6*)
14862 # Note: We can NOT use -z defs as we might desire, because we do not
14863 # link with -lc, and that would cause any symbols used from libc to
14864 # always be unresolved, which means just about no library would
14865 # ever link correctly. If we're not using GNU ld we use -z text
14866 # though, which does catch some bad symbols but isn't as heavy-handed
14867 # as -z defs.
14868 no_undefined_flag='${wl}-z,text'
14869 allow_undefined_flag='${wl}-z,nodefs'
14870 archive_cmds_need_lc=no
14871 hardcode_shlibpath_var=no
14872 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14873 hardcode_libdir_separator=':'
14874 link_all_deplibs=yes
14875 export_dynamic_flag_spec='${wl}-Bexport'
14876 runpath_var='LD_RUN_PATH'
14877
14878 if test "$GCC" = yes; then
14879 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14880 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14881 else
14882 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14883 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14884 fi
14885 ;;
14886
14887 uts4*)
14888 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14889 hardcode_libdir_flag_spec='-L$libdir'
14890 hardcode_shlibpath_var=no
14891 ;;
14892
14893 *)
14894 ld_shlibs=no
14895 ;;
14896 esac
14897
14898 if test x$host_vendor = xsni; then
14899 case $host in
14900 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14901 export_dynamic_flag_spec='${wl}-Blargedynsym'
14902 ;;
14903 esac
14904 fi
14905 fi
14906
14907 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
14908 $as_echo "$ld_shlibs" >&6; }
14909 test "$ld_shlibs" = no && can_build_shared=no
14910
14911 with_gnu_ld=$with_gnu_ld
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927 #
14928 # Do we need to explicitly link libc?
14929 #
14930 case "x$archive_cmds_need_lc" in
14931 x|xyes)
14932 # Assume -lc should be added
14933 archive_cmds_need_lc=yes
14934
14935 if test "$enable_shared" = yes && test "$GCC" = yes; then
14936 case $archive_cmds in
14937 *'~'*)
14938 # FIXME: we may have to deal with multi-command sequences.
14939 ;;
14940 '$CC '*)
14941 # Test whether the compiler implicitly links with -lc since on some
14942 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14943 # to ld, don't add -lc before -lgcc.
14944 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14945 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14946 $RM conftest*
14947 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14948
14949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14950 (eval $ac_compile) 2>&5
14951 ac_status=$?
14952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); } 2>conftest.err; then
14954 soname=conftest
14955 lib=conftest
14956 libobjs=conftest.$ac_objext
14957 deplibs=
14958 wl=$lt_prog_compiler_wl
14959 pic_flag=$lt_prog_compiler_pic
14960 compiler_flags=-v
14961 linker_flags=-v
14962 verstring=
14963 output_objdir=.
14964 libname=conftest
14965 lt_save_allow_undefined_flag=$allow_undefined_flag
14966 allow_undefined_flag=
14967 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14968 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14969 ac_status=$?
14970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); }
14972 then
14973 archive_cmds_need_lc=no
14974 else
14975 archive_cmds_need_lc=yes
14976 fi
14977 allow_undefined_flag=$lt_save_allow_undefined_flag
14978 else
14979 cat conftest.err 1>&5
14980 fi
14981 $RM conftest*
14982 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
14983 $as_echo "$archive_cmds_need_lc" >&6; }
14984 ;;
14985 esac
14986 fi
14987 ;;
14988 esac
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15147 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15148
15149 if test "$GCC" = yes; then
15150 case $host_os in
15151 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15152 *) lt_awk_arg="/^libraries:/" ;;
15153 esac
15154 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15155 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
15156 # if the path contains ";" then we assume it to be the separator
15157 # otherwise default to the standard path separator (i.e. ":") - it is
15158 # assumed that no part of a normal pathname contains ";" but that should
15159 # okay in the real world where ";" in dirpaths is itself problematic.
15160 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
15161 else
15162 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15163 fi
15164 # Ok, now we have the path, separated by spaces, we can step through it
15165 # and add multilib dir if necessary.
15166 lt_tmp_lt_search_path_spec=
15167 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15168 for lt_sys_path in $lt_search_path_spec; do
15169 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15170 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15171 else
15172 test -d "$lt_sys_path" && \
15173 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15174 fi
15175 done
15176 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
15177 BEGIN {RS=" "; FS="/|\n";} {
15178 lt_foo="";
15179 lt_count=0;
15180 for (lt_i = NF; lt_i > 0; lt_i--) {
15181 if ($lt_i != "" && $lt_i != ".") {
15182 if ($lt_i == "..") {
15183 lt_count++;
15184 } else {
15185 if (lt_count == 0) {
15186 lt_foo="/" $lt_i lt_foo;
15187 } else {
15188 lt_count--;
15189 }
15190 }
15191 }
15192 }
15193 if (lt_foo != "") { lt_freq[lt_foo]++; }
15194 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15195 }'`
15196 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
15197 else
15198 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15199 fi
15200 library_names_spec=
15201 libname_spec='lib$name'
15202 soname_spec=
15203 shrext_cmds=".so"
15204 postinstall_cmds=
15205 postuninstall_cmds=
15206 finish_cmds=
15207 finish_eval=
15208 shlibpath_var=
15209 shlibpath_overrides_runpath=unknown
15210 version_type=none
15211 dynamic_linker="$host_os ld.so"
15212 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15213 need_lib_prefix=unknown
15214 hardcode_into_libs=no
15215
15216 # when you set need_version to no, make sure it does not cause -set_version
15217 # flags to be left without arguments
15218 need_version=unknown
15219
15220 case $host_os in
15221 aix3*)
15222 version_type=linux
15223 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15224 shlibpath_var=LIBPATH
15225
15226 # AIX 3 has no versioning support, so we append a major version to the name.
15227 soname_spec='${libname}${release}${shared_ext}$major'
15228 ;;
15229
15230 aix[4-9]*)
15231 version_type=linux
15232 need_lib_prefix=no
15233 need_version=no
15234 hardcode_into_libs=yes
15235 if test "$host_cpu" = ia64; then
15236 # AIX 5 supports IA64
15237 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15238 shlibpath_var=LD_LIBRARY_PATH
15239 else
15240 # With GCC up to 2.95.x, collect2 would create an import file
15241 # for dependence libraries. The import file would start with
15242 # the line `#! .'. This would cause the generated library to
15243 # depend on `.', always an invalid library. This was fixed in
15244 # development snapshots of GCC prior to 3.0.
15245 case $host_os in
15246 aix4 | aix4.[01] | aix4.[01].*)
15247 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15248 echo ' yes '
15249 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15250 :
15251 else
15252 can_build_shared=no
15253 fi
15254 ;;
15255 esac
15256 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15257 # soname into executable. Probably we can add versioning support to
15258 # collect2, so additional links can be useful in future.
15259 if test "$aix_use_runtimelinking" = yes; then
15260 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15261 # instead of lib<name>.a to let people know that these are not
15262 # typical AIX shared libraries.
15263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15264 else
15265 # We preserve .a as extension for shared libraries through AIX4.2
15266 # and later when we are not doing run time linking.
15267 library_names_spec='${libname}${release}.a $libname.a'
15268 soname_spec='${libname}${release}${shared_ext}$major'
15269 fi
15270 shlibpath_var=LIBPATH
15271 fi
15272 ;;
15273
15274 amigaos*)
15275 case $host_cpu in
15276 powerpc)
15277 # Since July 2007 AmigaOS4 officially supports .so libraries.
15278 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15280 ;;
15281 m68k)
15282 library_names_spec='$libname.ixlibrary $libname.a'
15283 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15284 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'
15285 ;;
15286 esac
15287 ;;
15288
15289 beos*)
15290 library_names_spec='${libname}${shared_ext}'
15291 dynamic_linker="$host_os ld.so"
15292 shlibpath_var=LIBRARY_PATH
15293 ;;
15294
15295 bsdi[45]*)
15296 version_type=linux
15297 need_version=no
15298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15299 soname_spec='${libname}${release}${shared_ext}$major'
15300 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15301 shlibpath_var=LD_LIBRARY_PATH
15302 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15303 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15304 # the default ld.so.conf also contains /usr/contrib/lib and
15305 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15306 # libtool to hard-code these into programs
15307 ;;
15308
15309 cygwin* | mingw* | pw32* | cegcc*)
15310 version_type=windows
15311 shrext_cmds=".dll"
15312 need_version=no
15313 need_lib_prefix=no
15314
15315 case $GCC,$host_os in
15316 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15317 library_names_spec='$libname.dll.a'
15318 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15319 postinstall_cmds='base_file=`basename \${file}`~
15320 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15321 dldir=$destdir/`dirname \$dlpath`~
15322 test -d \$dldir || mkdir -p \$dldir~
15323 $install_prog $dir/$dlname \$dldir/$dlname~
15324 chmod a+x \$dldir/$dlname~
15325 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15326 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15327 fi'
15328 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15329 dlpath=$dir/\$dldll~
15330 $RM \$dlpath'
15331 shlibpath_overrides_runpath=yes
15332
15333 case $host_os in
15334 cygwin*)
15335 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15336 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15337 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15338 ;;
15339 mingw* | cegcc*)
15340 # MinGW DLLs use traditional 'lib' prefix
15341 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15342 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15343 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15344 # It is most probably a Windows format PATH printed by
15345 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15346 # path with ; separators, and with drive letters. We can handle the
15347 # drive letters (cygwin fileutils understands them), so leave them,
15348 # especially as we might pass files found there to a mingw objdump,
15349 # which wouldn't understand a cygwinified path. Ahh.
15350 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15351 else
15352 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15353 fi
15354 ;;
15355 pw32*)
15356 # pw32 DLLs use 'pw' prefix rather than 'lib'
15357 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15358 ;;
15359 esac
15360 ;;
15361
15362 *)
15363 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15364 ;;
15365 esac
15366 dynamic_linker='Win32 ld.exe'
15367 # FIXME: first we should search . and the directory the executable is in
15368 shlibpath_var=PATH
15369 ;;
15370
15371 darwin* | rhapsody*)
15372 dynamic_linker="$host_os dyld"
15373 version_type=darwin
15374 need_lib_prefix=no
15375 need_version=no
15376 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15377 soname_spec='${libname}${release}${major}$shared_ext'
15378 shlibpath_overrides_runpath=yes
15379 shlibpath_var=DYLD_LIBRARY_PATH
15380 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15381
15382 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15383 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15384 ;;
15385
15386 dgux*)
15387 version_type=linux
15388 need_lib_prefix=no
15389 need_version=no
15390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15391 soname_spec='${libname}${release}${shared_ext}$major'
15392 shlibpath_var=LD_LIBRARY_PATH
15393 ;;
15394
15395 freebsd1*)
15396 dynamic_linker=no
15397 ;;
15398
15399 freebsd* | dragonfly*)
15400 # DragonFly does not have aout. When/if they implement a new
15401 # versioning mechanism, adjust this.
15402 if test -x /usr/bin/objformat; then
15403 objformat=`/usr/bin/objformat`
15404 else
15405 case $host_os in
15406 freebsd[123]*) objformat=aout ;;
15407 *) objformat=elf ;;
15408 esac
15409 fi
15410 version_type=freebsd-$objformat
15411 case $version_type in
15412 freebsd-elf*)
15413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15414 need_version=no
15415 need_lib_prefix=no
15416 ;;
15417 freebsd-*)
15418 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15419 need_version=yes
15420 ;;
15421 esac
15422 shlibpath_var=LD_LIBRARY_PATH
15423 case $host_os in
15424 freebsd2*)
15425 shlibpath_overrides_runpath=yes
15426 ;;
15427 freebsd3.[01]* | freebsdelf3.[01]*)
15428 shlibpath_overrides_runpath=yes
15429 hardcode_into_libs=yes
15430 ;;
15431 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15432 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15433 shlibpath_overrides_runpath=no
15434 hardcode_into_libs=yes
15435 ;;
15436 *) # from 4.6 on, and DragonFly
15437 shlibpath_overrides_runpath=yes
15438 hardcode_into_libs=yes
15439 ;;
15440 esac
15441 ;;
15442
15443 gnu*)
15444 version_type=linux
15445 need_lib_prefix=no
15446 need_version=no
15447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15448 soname_spec='${libname}${release}${shared_ext}$major'
15449 shlibpath_var=LD_LIBRARY_PATH
15450 hardcode_into_libs=yes
15451 ;;
15452
15453 hpux9* | hpux10* | hpux11*)
15454 # Give a soname corresponding to the major version so that dld.sl refuses to
15455 # link against other versions.
15456 version_type=sunos
15457 need_lib_prefix=no
15458 need_version=no
15459 case $host_cpu in
15460 ia64*)
15461 shrext_cmds='.so'
15462 hardcode_into_libs=yes
15463 dynamic_linker="$host_os dld.so"
15464 shlibpath_var=LD_LIBRARY_PATH
15465 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15467 soname_spec='${libname}${release}${shared_ext}$major'
15468 if test "X$HPUX_IA64_MODE" = X32; then
15469 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15470 else
15471 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15472 fi
15473 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15474 ;;
15475 hppa*64*)
15476 shrext_cmds='.sl'
15477 hardcode_into_libs=yes
15478 dynamic_linker="$host_os dld.sl"
15479 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15480 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15482 soname_spec='${libname}${release}${shared_ext}$major'
15483 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15484 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15485 ;;
15486 *)
15487 shrext_cmds='.sl'
15488 dynamic_linker="$host_os dld.sl"
15489 shlibpath_var=SHLIB_PATH
15490 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15492 soname_spec='${libname}${release}${shared_ext}$major'
15493 ;;
15494 esac
15495 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15496 postinstall_cmds='chmod 555 $lib'
15497 ;;
15498
15499 interix[3-9]*)
15500 version_type=linux
15501 need_lib_prefix=no
15502 need_version=no
15503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15504 soname_spec='${libname}${release}${shared_ext}$major'
15505 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15506 shlibpath_var=LD_LIBRARY_PATH
15507 shlibpath_overrides_runpath=no
15508 hardcode_into_libs=yes
15509 ;;
15510
15511 irix5* | irix6* | nonstopux*)
15512 case $host_os in
15513 nonstopux*) version_type=nonstopux ;;
15514 *)
15515 if test "$lt_cv_prog_gnu_ld" = yes; then
15516 version_type=linux
15517 else
15518 version_type=irix
15519 fi ;;
15520 esac
15521 need_lib_prefix=no
15522 need_version=no
15523 soname_spec='${libname}${release}${shared_ext}$major'
15524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15525 case $host_os in
15526 irix5* | nonstopux*)
15527 libsuff= shlibsuff=
15528 ;;
15529 *)
15530 case $LD in # libtool.m4 will add one of these switches to LD
15531 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15532 libsuff= shlibsuff= libmagic=32-bit;;
15533 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15534 libsuff=32 shlibsuff=N32 libmagic=N32;;
15535 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15536 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15537 *) libsuff= shlibsuff= libmagic=never-match;;
15538 esac
15539 ;;
15540 esac
15541 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15542 shlibpath_overrides_runpath=no
15543 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15544 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15545 hardcode_into_libs=yes
15546 ;;
15547
15548 # No shared lib support for Linux oldld, aout, or coff.
15549 linux*oldld* | linux*aout* | linux*coff*)
15550 dynamic_linker=no
15551 ;;
15552
15553 # This must be Linux ELF.
15554 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15555 version_type=linux
15556 need_lib_prefix=no
15557 need_version=no
15558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15559 soname_spec='${libname}${release}${shared_ext}$major'
15560 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15561 shlibpath_var=LD_LIBRARY_PATH
15562 shlibpath_overrides_runpath=no
15563 # Some binutils ld are patched to set DT_RUNPATH
15564 save_LDFLAGS=$LDFLAGS
15565 save_libdir=$libdir
15566 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15567 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15568 cat >conftest.$ac_ext <<_ACEOF
15569 /* confdefs.h. */
15570 _ACEOF
15571 cat confdefs.h >>conftest.$ac_ext
15572 cat >>conftest.$ac_ext <<_ACEOF
15573 /* end confdefs.h. */
15574
15575 int
15576 main ()
15577 {
15578
15579 ;
15580 return 0;
15581 }
15582 _ACEOF
15583 rm -f conftest.$ac_objext conftest$ac_exeext
15584 if { (ac_try="$ac_link"
15585 case "(($ac_try" in
15586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15587 *) ac_try_echo=$ac_try;;
15588 esac
15589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15590 $as_echo "$ac_try_echo") >&5
15591 (eval "$ac_link") 2>conftest.er1
15592 ac_status=$?
15593 grep -v '^ *+' conftest.er1 >conftest.err
15594 rm -f conftest.er1
15595 cat conftest.err >&5
15596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); } && {
15598 test -z "$ac_c_werror_flag" ||
15599 test ! -s conftest.err
15600 } && test -s conftest$ac_exeext && {
15601 test "$cross_compiling" = yes ||
15602 $as_test_x conftest$ac_exeext
15603 }; then
15604 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15605 shlibpath_overrides_runpath=yes
15606 fi
15607
15608 else
15609 $as_echo "$as_me: failed program was:" >&5
15610 sed 's/^/| /' conftest.$ac_ext >&5
15611
15612
15613 fi
15614
15615 rm -rf conftest.dSYM
15616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15617 conftest$ac_exeext conftest.$ac_ext
15618 LDFLAGS=$save_LDFLAGS
15619 libdir=$save_libdir
15620
15621 # This implies no fast_install, which is unacceptable.
15622 # Some rework will be needed to allow for fast_install
15623 # before this can be enabled.
15624 hardcode_into_libs=yes
15625
15626 # Append ld.so.conf contents to the search path
15627 if test -f /etc/ld.so.conf; then
15628 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' ' '`
15629 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15630 fi
15631
15632 # We used to test for /lib/ld.so.1 and disable shared libraries on
15633 # powerpc, because MkLinux only supported shared libraries with the
15634 # GNU dynamic linker. Since this was broken with cross compilers,
15635 # most powerpc-linux boxes support dynamic linking these days and
15636 # people can always --disable-shared, the test was removed, and we
15637 # assume the GNU/Linux dynamic linker is in use.
15638 dynamic_linker='GNU/Linux ld.so'
15639 ;;
15640
15641 netbsdelf*-gnu)
15642 version_type=linux
15643 need_lib_prefix=no
15644 need_version=no
15645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15646 soname_spec='${libname}${release}${shared_ext}$major'
15647 shlibpath_var=LD_LIBRARY_PATH
15648 shlibpath_overrides_runpath=no
15649 hardcode_into_libs=yes
15650 dynamic_linker='NetBSD ld.elf_so'
15651 ;;
15652
15653 netbsd*)
15654 version_type=sunos
15655 need_lib_prefix=no
15656 need_version=no
15657 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15660 dynamic_linker='NetBSD (a.out) ld.so'
15661 else
15662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15663 soname_spec='${libname}${release}${shared_ext}$major'
15664 dynamic_linker='NetBSD ld.elf_so'
15665 fi
15666 shlibpath_var=LD_LIBRARY_PATH
15667 shlibpath_overrides_runpath=yes
15668 hardcode_into_libs=yes
15669 ;;
15670
15671 newsos6)
15672 version_type=linux
15673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15674 shlibpath_var=LD_LIBRARY_PATH
15675 shlibpath_overrides_runpath=yes
15676 ;;
15677
15678 *nto* | *qnx*)
15679 version_type=qnx
15680 need_lib_prefix=no
15681 need_version=no
15682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15683 soname_spec='${libname}${release}${shared_ext}$major'
15684 shlibpath_var=LD_LIBRARY_PATH
15685 shlibpath_overrides_runpath=no
15686 hardcode_into_libs=yes
15687 dynamic_linker='ldqnx.so'
15688 ;;
15689
15690 openbsd*)
15691 version_type=sunos
15692 sys_lib_dlsearch_path_spec="/usr/lib"
15693 need_lib_prefix=no
15694 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15695 case $host_os in
15696 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15697 *) need_version=no ;;
15698 esac
15699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15700 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15701 shlibpath_var=LD_LIBRARY_PATH
15702 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15703 case $host_os in
15704 openbsd2.[89] | openbsd2.[89].*)
15705 shlibpath_overrides_runpath=no
15706 ;;
15707 *)
15708 shlibpath_overrides_runpath=yes
15709 ;;
15710 esac
15711 else
15712 shlibpath_overrides_runpath=yes
15713 fi
15714 ;;
15715
15716 os2*)
15717 libname_spec='$name'
15718 shrext_cmds=".dll"
15719 need_lib_prefix=no
15720 library_names_spec='$libname${shared_ext} $libname.a'
15721 dynamic_linker='OS/2 ld.exe'
15722 shlibpath_var=LIBPATH
15723 ;;
15724
15725 osf3* | osf4* | osf5*)
15726 version_type=osf
15727 need_lib_prefix=no
15728 need_version=no
15729 soname_spec='${libname}${release}${shared_ext}$major'
15730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15731 shlibpath_var=LD_LIBRARY_PATH
15732 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15733 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15734 ;;
15735
15736 rdos*)
15737 dynamic_linker=no
15738 ;;
15739
15740 solaris*)
15741 version_type=linux
15742 need_lib_prefix=no
15743 need_version=no
15744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15745 soname_spec='${libname}${release}${shared_ext}$major'
15746 shlibpath_var=LD_LIBRARY_PATH
15747 shlibpath_overrides_runpath=yes
15748 hardcode_into_libs=yes
15749 # ldd complains unless libraries are executable
15750 postinstall_cmds='chmod +x $lib'
15751 ;;
15752
15753 sunos4*)
15754 version_type=sunos
15755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15756 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15757 shlibpath_var=LD_LIBRARY_PATH
15758 shlibpath_overrides_runpath=yes
15759 if test "$with_gnu_ld" = yes; then
15760 need_lib_prefix=no
15761 fi
15762 need_version=yes
15763 ;;
15764
15765 sysv4 | sysv4.3*)
15766 version_type=linux
15767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15768 soname_spec='${libname}${release}${shared_ext}$major'
15769 shlibpath_var=LD_LIBRARY_PATH
15770 case $host_vendor in
15771 sni)
15772 shlibpath_overrides_runpath=no
15773 need_lib_prefix=no
15774 runpath_var=LD_RUN_PATH
15775 ;;
15776 siemens)
15777 need_lib_prefix=no
15778 ;;
15779 motorola)
15780 need_lib_prefix=no
15781 need_version=no
15782 shlibpath_overrides_runpath=no
15783 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15784 ;;
15785 esac
15786 ;;
15787
15788 sysv4*MP*)
15789 if test -d /usr/nec ;then
15790 version_type=linux
15791 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15792 soname_spec='$libname${shared_ext}.$major'
15793 shlibpath_var=LD_LIBRARY_PATH
15794 fi
15795 ;;
15796
15797 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15798 version_type=freebsd-elf
15799 need_lib_prefix=no
15800 need_version=no
15801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15802 soname_spec='${libname}${release}${shared_ext}$major'
15803 shlibpath_var=LD_LIBRARY_PATH
15804 shlibpath_overrides_runpath=yes
15805 hardcode_into_libs=yes
15806 if test "$with_gnu_ld" = yes; then
15807 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15808 else
15809 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15810 case $host_os in
15811 sco3.2v5*)
15812 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15813 ;;
15814 esac
15815 fi
15816 sys_lib_dlsearch_path_spec='/usr/lib'
15817 ;;
15818
15819 tpf*)
15820 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15821 version_type=linux
15822 need_lib_prefix=no
15823 need_version=no
15824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15825 shlibpath_var=LD_LIBRARY_PATH
15826 shlibpath_overrides_runpath=no
15827 hardcode_into_libs=yes
15828 ;;
15829
15830 uts4*)
15831 version_type=linux
15832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15833 soname_spec='${libname}${release}${shared_ext}$major'
15834 shlibpath_var=LD_LIBRARY_PATH
15835 ;;
15836
15837 *)
15838 dynamic_linker=no
15839 ;;
15840 esac
15841 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15842 $as_echo "$dynamic_linker" >&6; }
15843 test "$dynamic_linker" = no && can_build_shared=no
15844
15845 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15846 if test "$GCC" = yes; then
15847 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15848 fi
15849
15850 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15851 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15852 fi
15853 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15854 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15855 fi
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15944 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15945 hardcode_action=
15946 if test -n "$hardcode_libdir_flag_spec" ||
15947 test -n "$runpath_var" ||
15948 test "X$hardcode_automatic" = "Xyes" ; then
15949
15950 # We can hardcode non-existent directories.
15951 if test "$hardcode_direct" != no &&
15952 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15953 # have to relink, otherwise we might link with an installed library
15954 # when we should be linking with a yet-to-be-installed one
15955 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15956 test "$hardcode_minus_L" != no; then
15957 # Linking always hardcodes the temporary library directory.
15958 hardcode_action=relink
15959 else
15960 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15961 hardcode_action=immediate
15962 fi
15963 else
15964 # We cannot hardcode anything, or else we can only hardcode existing
15965 # directories.
15966 hardcode_action=unsupported
15967 fi
15968 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
15969 $as_echo "$hardcode_action" >&6; }
15970
15971 if test "$hardcode_action" = relink ||
15972 test "$inherit_rpath" = yes; then
15973 # Fast installation is not supported
15974 enable_fast_install=no
15975 elif test "$shlibpath_overrides_runpath" = yes ||
15976 test "$enable_shared" = no; then
15977 # Fast installation is not necessary
15978 enable_fast_install=needless
15979 fi
15980
15981
15982
15983
15984
15985
15986 if test "x$enable_dlopen" != xyes; then
15987 enable_dlopen=unknown
15988 enable_dlopen_self=unknown
15989 enable_dlopen_self_static=unknown
15990 else
15991 lt_cv_dlopen=no
15992 lt_cv_dlopen_libs=
15993
15994 case $host_os in
15995 beos*)
15996 lt_cv_dlopen="load_add_on"
15997 lt_cv_dlopen_libs=
15998 lt_cv_dlopen_self=yes
15999 ;;
16000
16001 mingw* | pw32* | cegcc*)
16002 lt_cv_dlopen="LoadLibrary"
16003 lt_cv_dlopen_libs=
16004 ;;
16005
16006 cygwin*)
16007 lt_cv_dlopen="dlopen"
16008 lt_cv_dlopen_libs=
16009 ;;
16010
16011 darwin*)
16012 # if libdl is installed we need to link against it
16013 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16014 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16015 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16016 $as_echo_n "(cached) " >&6
16017 else
16018 ac_check_lib_save_LIBS=$LIBS
16019 LIBS="-ldl $LIBS"
16020 cat >conftest.$ac_ext <<_ACEOF
16021 /* confdefs.h. */
16022 _ACEOF
16023 cat confdefs.h >>conftest.$ac_ext
16024 cat >>conftest.$ac_ext <<_ACEOF
16025 /* end confdefs.h. */
16026
16027 /* Override any GCC internal prototype to avoid an error.
16028 Use char because int might match the return type of a GCC
16029 builtin and then its argument prototype would still apply. */
16030 #ifdef __cplusplus
16031 extern "C"
16032 #endif
16033 char dlopen ();
16034 int
16035 main ()
16036 {
16037 return dlopen ();
16038 ;
16039 return 0;
16040 }
16041 _ACEOF
16042 rm -f conftest.$ac_objext conftest$ac_exeext
16043 if { (ac_try="$ac_link"
16044 case "(($ac_try" in
16045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16046 *) ac_try_echo=$ac_try;;
16047 esac
16048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16049 $as_echo "$ac_try_echo") >&5
16050 (eval "$ac_link") 2>conftest.er1
16051 ac_status=$?
16052 grep -v '^ *+' conftest.er1 >conftest.err
16053 rm -f conftest.er1
16054 cat conftest.err >&5
16055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); } && {
16057 test -z "$ac_c_werror_flag" ||
16058 test ! -s conftest.err
16059 } && test -s conftest$ac_exeext && {
16060 test "$cross_compiling" = yes ||
16061 $as_test_x conftest$ac_exeext
16062 }; then
16063 ac_cv_lib_dl_dlopen=yes
16064 else
16065 $as_echo "$as_me: failed program was:" >&5
16066 sed 's/^/| /' conftest.$ac_ext >&5
16067
16068 ac_cv_lib_dl_dlopen=no
16069 fi
16070
16071 rm -rf conftest.dSYM
16072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16073 conftest$ac_exeext conftest.$ac_ext
16074 LIBS=$ac_check_lib_save_LIBS
16075 fi
16076 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16077 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16078 if test $ac_cv_lib_dl_dlopen = yes; then
16079 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16080 else
16081
16082 lt_cv_dlopen="dyld"
16083 lt_cv_dlopen_libs=
16084 lt_cv_dlopen_self=yes
16085
16086 fi
16087
16088 ;;
16089
16090 *)
16091 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
16092 $as_echo_n "checking for shl_load... " >&6; }
16093 if test "${ac_cv_func_shl_load+set}" = set; then
16094 $as_echo_n "(cached) " >&6
16095 else
16096 cat >conftest.$ac_ext <<_ACEOF
16097 /* confdefs.h. */
16098 _ACEOF
16099 cat confdefs.h >>conftest.$ac_ext
16100 cat >>conftest.$ac_ext <<_ACEOF
16101 /* end confdefs.h. */
16102 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16104 #define shl_load innocuous_shl_load
16105
16106 /* System header to define __stub macros and hopefully few prototypes,
16107 which can conflict with char shl_load (); below.
16108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16109 <limits.h> exists even on freestanding compilers. */
16110
16111 #ifdef __STDC__
16112 # include <limits.h>
16113 #else
16114 # include <assert.h>
16115 #endif
16116
16117 #undef shl_load
16118
16119 /* Override any GCC internal prototype to avoid an error.
16120 Use char because int might match the return type of a GCC
16121 builtin and then its argument prototype would still apply. */
16122 #ifdef __cplusplus
16123 extern "C"
16124 #endif
16125 char shl_load ();
16126 /* The GNU C library defines this for functions which it implements
16127 to always fail with ENOSYS. Some functions are actually named
16128 something starting with __ and the normal name is an alias. */
16129 #if defined __stub_shl_load || defined __stub___shl_load
16130 choke me
16131 #endif
16132
16133 int
16134 main ()
16135 {
16136 return shl_load ();
16137 ;
16138 return 0;
16139 }
16140 _ACEOF
16141 rm -f conftest.$ac_objext conftest$ac_exeext
16142 if { (ac_try="$ac_link"
16143 case "(($ac_try" in
16144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16145 *) ac_try_echo=$ac_try;;
16146 esac
16147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16148 $as_echo "$ac_try_echo") >&5
16149 (eval "$ac_link") 2>conftest.er1
16150 ac_status=$?
16151 grep -v '^ *+' conftest.er1 >conftest.err
16152 rm -f conftest.er1
16153 cat conftest.err >&5
16154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); } && {
16156 test -z "$ac_c_werror_flag" ||
16157 test ! -s conftest.err
16158 } && test -s conftest$ac_exeext && {
16159 test "$cross_compiling" = yes ||
16160 $as_test_x conftest$ac_exeext
16161 }; then
16162 ac_cv_func_shl_load=yes
16163 else
16164 $as_echo "$as_me: failed program was:" >&5
16165 sed 's/^/| /' conftest.$ac_ext >&5
16166
16167 ac_cv_func_shl_load=no
16168 fi
16169
16170 rm -rf conftest.dSYM
16171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16172 conftest$ac_exeext conftest.$ac_ext
16173 fi
16174 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16175 $as_echo "$ac_cv_func_shl_load" >&6; }
16176 if test $ac_cv_func_shl_load = yes; then
16177 lt_cv_dlopen="shl_load"
16178 else
16179 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16180 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16181 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16182 $as_echo_n "(cached) " >&6
16183 else
16184 ac_check_lib_save_LIBS=$LIBS
16185 LIBS="-ldld $LIBS"
16186 cat >conftest.$ac_ext <<_ACEOF
16187 /* confdefs.h. */
16188 _ACEOF
16189 cat confdefs.h >>conftest.$ac_ext
16190 cat >>conftest.$ac_ext <<_ACEOF
16191 /* end confdefs.h. */
16192
16193 /* Override any GCC internal prototype to avoid an error.
16194 Use char because int might match the return type of a GCC
16195 builtin and then its argument prototype would still apply. */
16196 #ifdef __cplusplus
16197 extern "C"
16198 #endif
16199 char shl_load ();
16200 int
16201 main ()
16202 {
16203 return shl_load ();
16204 ;
16205 return 0;
16206 }
16207 _ACEOF
16208 rm -f conftest.$ac_objext conftest$ac_exeext
16209 if { (ac_try="$ac_link"
16210 case "(($ac_try" in
16211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16212 *) ac_try_echo=$ac_try;;
16213 esac
16214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16215 $as_echo "$ac_try_echo") >&5
16216 (eval "$ac_link") 2>conftest.er1
16217 ac_status=$?
16218 grep -v '^ *+' conftest.er1 >conftest.err
16219 rm -f conftest.er1
16220 cat conftest.err >&5
16221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); } && {
16223 test -z "$ac_c_werror_flag" ||
16224 test ! -s conftest.err
16225 } && test -s conftest$ac_exeext && {
16226 test "$cross_compiling" = yes ||
16227 $as_test_x conftest$ac_exeext
16228 }; then
16229 ac_cv_lib_dld_shl_load=yes
16230 else
16231 $as_echo "$as_me: failed program was:" >&5
16232 sed 's/^/| /' conftest.$ac_ext >&5
16233
16234 ac_cv_lib_dld_shl_load=no
16235 fi
16236
16237 rm -rf conftest.dSYM
16238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16239 conftest$ac_exeext conftest.$ac_ext
16240 LIBS=$ac_check_lib_save_LIBS
16241 fi
16242 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16243 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16244 if test $ac_cv_lib_dld_shl_load = yes; then
16245 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16246 else
16247 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
16248 $as_echo_n "checking for dlopen... " >&6; }
16249 if test "${ac_cv_func_dlopen+set}" = set; then
16250 $as_echo_n "(cached) " >&6
16251 else
16252 cat >conftest.$ac_ext <<_ACEOF
16253 /* confdefs.h. */
16254 _ACEOF
16255 cat confdefs.h >>conftest.$ac_ext
16256 cat >>conftest.$ac_ext <<_ACEOF
16257 /* end confdefs.h. */
16258 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16260 #define dlopen innocuous_dlopen
16261
16262 /* System header to define __stub macros and hopefully few prototypes,
16263 which can conflict with char dlopen (); below.
16264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16265 <limits.h> exists even on freestanding compilers. */
16266
16267 #ifdef __STDC__
16268 # include <limits.h>
16269 #else
16270 # include <assert.h>
16271 #endif
16272
16273 #undef dlopen
16274
16275 /* Override any GCC internal prototype to avoid an error.
16276 Use char because int might match the return type of a GCC
16277 builtin and then its argument prototype would still apply. */
16278 #ifdef __cplusplus
16279 extern "C"
16280 #endif
16281 char dlopen ();
16282 /* The GNU C library defines this for functions which it implements
16283 to always fail with ENOSYS. Some functions are actually named
16284 something starting with __ and the normal name is an alias. */
16285 #if defined __stub_dlopen || defined __stub___dlopen
16286 choke me
16287 #endif
16288
16289 int
16290 main ()
16291 {
16292 return dlopen ();
16293 ;
16294 return 0;
16295 }
16296 _ACEOF
16297 rm -f conftest.$ac_objext conftest$ac_exeext
16298 if { (ac_try="$ac_link"
16299 case "(($ac_try" in
16300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16301 *) ac_try_echo=$ac_try;;
16302 esac
16303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16304 $as_echo "$ac_try_echo") >&5
16305 (eval "$ac_link") 2>conftest.er1
16306 ac_status=$?
16307 grep -v '^ *+' conftest.er1 >conftest.err
16308 rm -f conftest.er1
16309 cat conftest.err >&5
16310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); } && {
16312 test -z "$ac_c_werror_flag" ||
16313 test ! -s conftest.err
16314 } && test -s conftest$ac_exeext && {
16315 test "$cross_compiling" = yes ||
16316 $as_test_x conftest$ac_exeext
16317 }; then
16318 ac_cv_func_dlopen=yes
16319 else
16320 $as_echo "$as_me: failed program was:" >&5
16321 sed 's/^/| /' conftest.$ac_ext >&5
16322
16323 ac_cv_func_dlopen=no
16324 fi
16325
16326 rm -rf conftest.dSYM
16327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16328 conftest$ac_exeext conftest.$ac_ext
16329 fi
16330 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16331 $as_echo "$ac_cv_func_dlopen" >&6; }
16332 if test $ac_cv_func_dlopen = yes; then
16333 lt_cv_dlopen="dlopen"
16334 else
16335 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16336 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16337 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16338 $as_echo_n "(cached) " >&6
16339 else
16340 ac_check_lib_save_LIBS=$LIBS
16341 LIBS="-ldl $LIBS"
16342 cat >conftest.$ac_ext <<_ACEOF
16343 /* confdefs.h. */
16344 _ACEOF
16345 cat confdefs.h >>conftest.$ac_ext
16346 cat >>conftest.$ac_ext <<_ACEOF
16347 /* end confdefs.h. */
16348
16349 /* Override any GCC internal prototype to avoid an error.
16350 Use char because int might match the return type of a GCC
16351 builtin and then its argument prototype would still apply. */
16352 #ifdef __cplusplus
16353 extern "C"
16354 #endif
16355 char dlopen ();
16356 int
16357 main ()
16358 {
16359 return dlopen ();
16360 ;
16361 return 0;
16362 }
16363 _ACEOF
16364 rm -f conftest.$ac_objext conftest$ac_exeext
16365 if { (ac_try="$ac_link"
16366 case "(($ac_try" in
16367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16368 *) ac_try_echo=$ac_try;;
16369 esac
16370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16371 $as_echo "$ac_try_echo") >&5
16372 (eval "$ac_link") 2>conftest.er1
16373 ac_status=$?
16374 grep -v '^ *+' conftest.er1 >conftest.err
16375 rm -f conftest.er1
16376 cat conftest.err >&5
16377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378 (exit $ac_status); } && {
16379 test -z "$ac_c_werror_flag" ||
16380 test ! -s conftest.err
16381 } && test -s conftest$ac_exeext && {
16382 test "$cross_compiling" = yes ||
16383 $as_test_x conftest$ac_exeext
16384 }; then
16385 ac_cv_lib_dl_dlopen=yes
16386 else
16387 $as_echo "$as_me: failed program was:" >&5
16388 sed 's/^/| /' conftest.$ac_ext >&5
16389
16390 ac_cv_lib_dl_dlopen=no
16391 fi
16392
16393 rm -rf conftest.dSYM
16394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16395 conftest$ac_exeext conftest.$ac_ext
16396 LIBS=$ac_check_lib_save_LIBS
16397 fi
16398 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16399 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16400 if test $ac_cv_lib_dl_dlopen = yes; then
16401 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16402 else
16403 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16404 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16405 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16406 $as_echo_n "(cached) " >&6
16407 else
16408 ac_check_lib_save_LIBS=$LIBS
16409 LIBS="-lsvld $LIBS"
16410 cat >conftest.$ac_ext <<_ACEOF
16411 /* confdefs.h. */
16412 _ACEOF
16413 cat confdefs.h >>conftest.$ac_ext
16414 cat >>conftest.$ac_ext <<_ACEOF
16415 /* end confdefs.h. */
16416
16417 /* Override any GCC internal prototype to avoid an error.
16418 Use char because int might match the return type of a GCC
16419 builtin and then its argument prototype would still apply. */
16420 #ifdef __cplusplus
16421 extern "C"
16422 #endif
16423 char dlopen ();
16424 int
16425 main ()
16426 {
16427 return dlopen ();
16428 ;
16429 return 0;
16430 }
16431 _ACEOF
16432 rm -f conftest.$ac_objext conftest$ac_exeext
16433 if { (ac_try="$ac_link"
16434 case "(($ac_try" in
16435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16436 *) ac_try_echo=$ac_try;;
16437 esac
16438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16439 $as_echo "$ac_try_echo") >&5
16440 (eval "$ac_link") 2>conftest.er1
16441 ac_status=$?
16442 grep -v '^ *+' conftest.er1 >conftest.err
16443 rm -f conftest.er1
16444 cat conftest.err >&5
16445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); } && {
16447 test -z "$ac_c_werror_flag" ||
16448 test ! -s conftest.err
16449 } && test -s conftest$ac_exeext && {
16450 test "$cross_compiling" = yes ||
16451 $as_test_x conftest$ac_exeext
16452 }; then
16453 ac_cv_lib_svld_dlopen=yes
16454 else
16455 $as_echo "$as_me: failed program was:" >&5
16456 sed 's/^/| /' conftest.$ac_ext >&5
16457
16458 ac_cv_lib_svld_dlopen=no
16459 fi
16460
16461 rm -rf conftest.dSYM
16462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16463 conftest$ac_exeext conftest.$ac_ext
16464 LIBS=$ac_check_lib_save_LIBS
16465 fi
16466 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16467 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16468 if test $ac_cv_lib_svld_dlopen = yes; then
16469 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16470 else
16471 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16472 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16473 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16474 $as_echo_n "(cached) " >&6
16475 else
16476 ac_check_lib_save_LIBS=$LIBS
16477 LIBS="-ldld $LIBS"
16478 cat >conftest.$ac_ext <<_ACEOF
16479 /* confdefs.h. */
16480 _ACEOF
16481 cat confdefs.h >>conftest.$ac_ext
16482 cat >>conftest.$ac_ext <<_ACEOF
16483 /* end confdefs.h. */
16484
16485 /* Override any GCC internal prototype to avoid an error.
16486 Use char because int might match the return type of a GCC
16487 builtin and then its argument prototype would still apply. */
16488 #ifdef __cplusplus
16489 extern "C"
16490 #endif
16491 char dld_link ();
16492 int
16493 main ()
16494 {
16495 return dld_link ();
16496 ;
16497 return 0;
16498 }
16499 _ACEOF
16500 rm -f conftest.$ac_objext conftest$ac_exeext
16501 if { (ac_try="$ac_link"
16502 case "(($ac_try" in
16503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16504 *) ac_try_echo=$ac_try;;
16505 esac
16506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16507 $as_echo "$ac_try_echo") >&5
16508 (eval "$ac_link") 2>conftest.er1
16509 ac_status=$?
16510 grep -v '^ *+' conftest.er1 >conftest.err
16511 rm -f conftest.er1
16512 cat conftest.err >&5
16513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); } && {
16515 test -z "$ac_c_werror_flag" ||
16516 test ! -s conftest.err
16517 } && test -s conftest$ac_exeext && {
16518 test "$cross_compiling" = yes ||
16519 $as_test_x conftest$ac_exeext
16520 }; then
16521 ac_cv_lib_dld_dld_link=yes
16522 else
16523 $as_echo "$as_me: failed program was:" >&5
16524 sed 's/^/| /' conftest.$ac_ext >&5
16525
16526 ac_cv_lib_dld_dld_link=no
16527 fi
16528
16529 rm -rf conftest.dSYM
16530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16531 conftest$ac_exeext conftest.$ac_ext
16532 LIBS=$ac_check_lib_save_LIBS
16533 fi
16534 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16535 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16536 if test $ac_cv_lib_dld_dld_link = yes; then
16537 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16538 fi
16539
16540
16541 fi
16542
16543
16544 fi
16545
16546
16547 fi
16548
16549
16550 fi
16551
16552
16553 fi
16554
16555 ;;
16556 esac
16557
16558 if test "x$lt_cv_dlopen" != xno; then
16559 enable_dlopen=yes
16560 else
16561 enable_dlopen=no
16562 fi
16563
16564 case $lt_cv_dlopen in
16565 dlopen)
16566 save_CPPFLAGS="$CPPFLAGS"
16567 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16568
16569 save_LDFLAGS="$LDFLAGS"
16570 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16571
16572 save_LIBS="$LIBS"
16573 LIBS="$lt_cv_dlopen_libs $LIBS"
16574
16575 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16576 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
16577 if test "${lt_cv_dlopen_self+set}" = set; then
16578 $as_echo_n "(cached) " >&6
16579 else
16580 if test "$cross_compiling" = yes; then :
16581 lt_cv_dlopen_self=cross
16582 else
16583 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16584 lt_status=$lt_dlunknown
16585 cat > conftest.$ac_ext <<_LT_EOF
16586 #line __oline__ "configure"
16587 #include "confdefs.h"
16588
16589 #if HAVE_DLFCN_H
16590 #include <dlfcn.h>
16591 #endif
16592
16593 #include <stdio.h>
16594
16595 #ifdef RTLD_GLOBAL
16596 # define LT_DLGLOBAL RTLD_GLOBAL
16597 #else
16598 # ifdef DL_GLOBAL
16599 # define LT_DLGLOBAL DL_GLOBAL
16600 # else
16601 # define LT_DLGLOBAL 0
16602 # endif
16603 #endif
16604
16605 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16606 find out it does not work in some platform. */
16607 #ifndef LT_DLLAZY_OR_NOW
16608 # ifdef RTLD_LAZY
16609 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16610 # else
16611 # ifdef DL_LAZY
16612 # define LT_DLLAZY_OR_NOW DL_LAZY
16613 # else
16614 # ifdef RTLD_NOW
16615 # define LT_DLLAZY_OR_NOW RTLD_NOW
16616 # else
16617 # ifdef DL_NOW
16618 # define LT_DLLAZY_OR_NOW DL_NOW
16619 # else
16620 # define LT_DLLAZY_OR_NOW 0
16621 # endif
16622 # endif
16623 # endif
16624 # endif
16625 #endif
16626
16627 void fnord() { int i=42;}
16628 int main ()
16629 {
16630 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16631 int status = $lt_dlunknown;
16632
16633 if (self)
16634 {
16635 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16636 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16637 /* dlclose (self); */
16638 }
16639 else
16640 puts (dlerror ());
16641
16642 return status;
16643 }
16644 _LT_EOF
16645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16646 (eval $ac_link) 2>&5
16647 ac_status=$?
16648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16650 (./conftest; exit; ) >&5 2>/dev/null
16651 lt_status=$?
16652 case x$lt_status in
16653 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16654 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16655 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16656 esac
16657 else :
16658 # compilation failed
16659 lt_cv_dlopen_self=no
16660 fi
16661 fi
16662 rm -fr conftest*
16663
16664
16665 fi
16666 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16667 $as_echo "$lt_cv_dlopen_self" >&6; }
16668
16669 if test "x$lt_cv_dlopen_self" = xyes; then
16670 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16671 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16672 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
16673 if test "${lt_cv_dlopen_self_static+set}" = set; then
16674 $as_echo_n "(cached) " >&6
16675 else
16676 if test "$cross_compiling" = yes; then :
16677 lt_cv_dlopen_self_static=cross
16678 else
16679 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16680 lt_status=$lt_dlunknown
16681 cat > conftest.$ac_ext <<_LT_EOF
16682 #line __oline__ "configure"
16683 #include "confdefs.h"
16684
16685 #if HAVE_DLFCN_H
16686 #include <dlfcn.h>
16687 #endif
16688
16689 #include <stdio.h>
16690
16691 #ifdef RTLD_GLOBAL
16692 # define LT_DLGLOBAL RTLD_GLOBAL
16693 #else
16694 # ifdef DL_GLOBAL
16695 # define LT_DLGLOBAL DL_GLOBAL
16696 # else
16697 # define LT_DLGLOBAL 0
16698 # endif
16699 #endif
16700
16701 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16702 find out it does not work in some platform. */
16703 #ifndef LT_DLLAZY_OR_NOW
16704 # ifdef RTLD_LAZY
16705 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16706 # else
16707 # ifdef DL_LAZY
16708 # define LT_DLLAZY_OR_NOW DL_LAZY
16709 # else
16710 # ifdef RTLD_NOW
16711 # define LT_DLLAZY_OR_NOW RTLD_NOW
16712 # else
16713 # ifdef DL_NOW
16714 # define LT_DLLAZY_OR_NOW DL_NOW
16715 # else
16716 # define LT_DLLAZY_OR_NOW 0
16717 # endif
16718 # endif
16719 # endif
16720 # endif
16721 #endif
16722
16723 void fnord() { int i=42;}
16724 int main ()
16725 {
16726 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16727 int status = $lt_dlunknown;
16728
16729 if (self)
16730 {
16731 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16732 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16733 /* dlclose (self); */
16734 }
16735 else
16736 puts (dlerror ());
16737
16738 return status;
16739 }
16740 _LT_EOF
16741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16742 (eval $ac_link) 2>&5
16743 ac_status=$?
16744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16746 (./conftest; exit; ) >&5 2>/dev/null
16747 lt_status=$?
16748 case x$lt_status in
16749 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16750 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16751 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16752 esac
16753 else :
16754 # compilation failed
16755 lt_cv_dlopen_self_static=no
16756 fi
16757 fi
16758 rm -fr conftest*
16759
16760
16761 fi
16762 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16763 $as_echo "$lt_cv_dlopen_self_static" >&6; }
16764 fi
16765
16766 CPPFLAGS="$save_CPPFLAGS"
16767 LDFLAGS="$save_LDFLAGS"
16768 LIBS="$save_LIBS"
16769 ;;
16770 esac
16771
16772 case $lt_cv_dlopen_self in
16773 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16774 *) enable_dlopen_self=unknown ;;
16775 esac
16776
16777 case $lt_cv_dlopen_self_static in
16778 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16779 *) enable_dlopen_self_static=unknown ;;
16780 esac
16781 fi
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799 striplib=
16800 old_striplib=
16801 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16802 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
16803 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16804 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16805 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16806 { $as_echo "$as_me:$LINENO: result: yes" >&5
16807 $as_echo "yes" >&6; }
16808 else
16809 # FIXME - insert some real tests, host_os isn't really good enough
16810 case $host_os in
16811 darwin*)
16812 if test -n "$STRIP" ; then
16813 striplib="$STRIP -x"
16814 old_striplib="$STRIP -S"
16815 { $as_echo "$as_me:$LINENO: result: yes" >&5
16816 $as_echo "yes" >&6; }
16817 else
16818 { $as_echo "$as_me:$LINENO: result: no" >&5
16819 $as_echo "no" >&6; }
16820 fi
16821 ;;
16822 *)
16823 { $as_echo "$as_me:$LINENO: result: no" >&5
16824 $as_echo "no" >&6; }
16825 ;;
16826 esac
16827 fi
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840 # Report which library types will actually be built
16841 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16842 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
16843 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
16844 $as_echo "$can_build_shared" >&6; }
16845
16846 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16847 $as_echo_n "checking whether to build shared libraries... " >&6; }
16848 test "$can_build_shared" = "no" && enable_shared=no
16849
16850 # On AIX, shared libraries and static libraries use the same namespace, and
16851 # are all built from PIC.
16852 case $host_os in
16853 aix3*)
16854 test "$enable_shared" = yes && enable_static=no
16855 if test -n "$RANLIB"; then
16856 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16857 postinstall_cmds='$RANLIB $lib'
16858 fi
16859 ;;
16860
16861 aix[4-9]*)
16862 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16863 test "$enable_shared" = yes && enable_static=no
16864 fi
16865 ;;
16866 esac
16867 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
16868 $as_echo "$enable_shared" >&6; }
16869
16870 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16871 $as_echo_n "checking whether to build static libraries... " >&6; }
16872 # Make sure either enable_shared or enable_static is yes.
16873 test "$enable_shared" = yes || enable_static=yes
16874 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
16875 $as_echo "$enable_static" >&6; }
16876
16877
16878
16879
16880 fi
16881 ac_ext=c
16882 ac_cpp='$CPP $CPPFLAGS'
16883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16886
16887 CC="$lt_save_CC"
16888
16889
16890 ac_ext=cpp
16891 ac_cpp='$CXXCPP $CPPFLAGS'
16892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16895
16896 archive_cmds_need_lc_CXX=no
16897 allow_undefined_flag_CXX=
16898 always_export_symbols_CXX=no
16899 archive_expsym_cmds_CXX=
16900 compiler_needs_object_CXX=no
16901 export_dynamic_flag_spec_CXX=
16902 hardcode_direct_CXX=no
16903 hardcode_direct_absolute_CXX=no
16904 hardcode_libdir_flag_spec_CXX=
16905 hardcode_libdir_flag_spec_ld_CXX=
16906 hardcode_libdir_separator_CXX=
16907 hardcode_minus_L_CXX=no
16908 hardcode_shlibpath_var_CXX=unsupported
16909 hardcode_automatic_CXX=no
16910 inherit_rpath_CXX=no
16911 module_cmds_CXX=
16912 module_expsym_cmds_CXX=
16913 link_all_deplibs_CXX=unknown
16914 old_archive_cmds_CXX=$old_archive_cmds
16915 no_undefined_flag_CXX=
16916 whole_archive_flag_spec_CXX=
16917 enable_shared_with_static_runtimes_CXX=no
16918
16919 # Source file extension for C++ test sources.
16920 ac_ext=cpp
16921
16922 # Object file extension for compiled C++ test sources.
16923 objext=o
16924 objext_CXX=$objext
16925
16926 # No sense in running all these tests if we already determined that
16927 # the CXX compiler isn't working. Some variables (like enable_shared)
16928 # are currently assumed to apply to all compilers on this platform,
16929 # and will be corrupted by setting them based on a non-working compiler.
16930 if test "$_lt_caught_CXX_error" != yes; then
16931 # Code to be used in simple compile tests
16932 lt_simple_compile_test_code="int some_variable = 0;"
16933
16934 # Code to be used in simple link tests
16935 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16936
16937 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16938
16939
16940
16941
16942
16943
16944 # If no C compiler was specified, use CC.
16945 LTCC=${LTCC-"$CC"}
16946
16947 # If no C compiler flags were specified, use CFLAGS.
16948 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16949
16950 # Allow CC to be a program name with arguments.
16951 compiler=$CC
16952
16953
16954 # save warnings/boilerplate of simple test code
16955 ac_outfile=conftest.$ac_objext
16956 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16957 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16958 _lt_compiler_boilerplate=`cat conftest.err`
16959 $RM conftest*
16960
16961 ac_outfile=conftest.$ac_objext
16962 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16963 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16964 _lt_linker_boilerplate=`cat conftest.err`
16965 $RM -r conftest*
16966
16967
16968 # Allow CC to be a program name with arguments.
16969 lt_save_CC=$CC
16970 lt_save_LD=$LD
16971 lt_save_GCC=$GCC
16972 GCC=$GXX
16973 lt_save_with_gnu_ld=$with_gnu_ld
16974 lt_save_path_LD=$lt_cv_path_LD
16975 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16976 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16977 else
16978 $as_unset lt_cv_prog_gnu_ld
16979 fi
16980 if test -n "${lt_cv_path_LDCXX+set}"; then
16981 lt_cv_path_LD=$lt_cv_path_LDCXX
16982 else
16983 $as_unset lt_cv_path_LD
16984 fi
16985 test -z "${LDCXX+set}" || LD=$LDCXX
16986 CC=${CXX-"c++"}
16987 compiler=$CC
16988 compiler_CXX=$CC
16989 for cc_temp in $compiler""; do
16990 case $cc_temp in
16991 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16992 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16993 \-*) ;;
16994 *) break;;
16995 esac
16996 done
16997 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16998
16999
17000 if test -n "$compiler"; then
17001 # We don't want -fno-exception when compiling C++ code, so set the
17002 # no_builtin_flag separately
17003 if test "$GXX" = yes; then
17004 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17005 else
17006 lt_prog_compiler_no_builtin_flag_CXX=
17007 fi
17008
17009 if test "$GXX" = yes; then
17010 # Set up default GNU C++ configuration
17011
17012
17013
17014 @%:@ Check whether --with-gnu-ld was given.
17015 if test "${with_gnu_ld+set}" = set; then
17016 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17017 else
17018 with_gnu_ld=no
17019 fi
17020
17021 ac_prog=ld
17022 if test "$GCC" = yes; then
17023 # Check if gcc -print-prog-name=ld gives a path.
17024 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17025 $as_echo_n "checking for ld used by $CC... " >&6; }
17026 case $host in
17027 *-*-mingw*)
17028 # gcc leaves a trailing carriage return which upsets mingw
17029 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17030 *)
17031 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17032 esac
17033 case $ac_prog in
17034 # Accept absolute paths.
17035 [\\/]* | ?:[\\/]*)
17036 re_direlt='/[^/][^/]*/\.\./'
17037 # Canonicalize the pathname of ld
17038 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17039 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17040 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17041 done
17042 test -z "$LD" && LD="$ac_prog"
17043 ;;
17044 "")
17045 # If it fails, then pretend we aren't using GCC.
17046 ac_prog=ld
17047 ;;
17048 *)
17049 # If it is relative, then search for the first ld in PATH.
17050 with_gnu_ld=unknown
17051 ;;
17052 esac
17053 elif test "$with_gnu_ld" = yes; then
17054 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
17055 $as_echo_n "checking for GNU ld... " >&6; }
17056 else
17057 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17058 $as_echo_n "checking for non-GNU ld... " >&6; }
17059 fi
17060 if test "${lt_cv_path_LD+set}" = set; then
17061 $as_echo_n "(cached) " >&6
17062 else
17063 if test -z "$LD"; then
17064 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17065 for ac_dir in $PATH; do
17066 IFS="$lt_save_ifs"
17067 test -z "$ac_dir" && ac_dir=.
17068 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17069 lt_cv_path_LD="$ac_dir/$ac_prog"
17070 # Check to see if the program is GNU ld. I'd rather use --version,
17071 # but apparently some variants of GNU ld only accept -v.
17072 # Break only if it was the GNU/non-GNU ld that we prefer.
17073 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17074 *GNU* | *'with BFD'*)
17075 test "$with_gnu_ld" != no && break
17076 ;;
17077 *)
17078 test "$with_gnu_ld" != yes && break
17079 ;;
17080 esac
17081 fi
17082 done
17083 IFS="$lt_save_ifs"
17084 else
17085 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17086 fi
17087 fi
17088
17089 LD="$lt_cv_path_LD"
17090 if test -n "$LD"; then
17091 { $as_echo "$as_me:$LINENO: result: $LD" >&5
17092 $as_echo "$LD" >&6; }
17093 else
17094 { $as_echo "$as_me:$LINENO: result: no" >&5
17095 $as_echo "no" >&6; }
17096 fi
17097 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17098 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17099 { (exit 1); exit 1; }; }
17100 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17101 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17102 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17103 $as_echo_n "(cached) " >&6
17104 else
17105 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17106 case `$LD -v 2>&1 </dev/null` in
17107 *GNU* | *'with BFD'*)
17108 lt_cv_prog_gnu_ld=yes
17109 ;;
17110 *)
17111 lt_cv_prog_gnu_ld=no
17112 ;;
17113 esac
17114 fi
17115 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17116 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17117 with_gnu_ld=$lt_cv_prog_gnu_ld
17118
17119
17120
17121
17122
17123
17124
17125 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17126 # archiving commands below assume that GNU ld is being used.
17127 if test "$with_gnu_ld" = yes; then
17128 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17129 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'
17130
17131 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17132 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17133
17134 # If archive_cmds runs LD, not CC, wlarc should be empty
17135 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17136 # investigate it a little bit more. (MM)
17137 wlarc='${wl}'
17138
17139 # ancient GNU ld didn't support --whole-archive et. al.
17140 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17141 $GREP 'no-whole-archive' > /dev/null; then
17142 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17143 else
17144 whole_archive_flag_spec_CXX=
17145 fi
17146 else
17147 with_gnu_ld=no
17148 wlarc=
17149
17150 # A generic and very simple default shared library creation
17151 # command for GNU C++ for the case where it uses the native
17152 # linker, instead of GNU ld. If possible, this setting should
17153 # overridden to take advantage of the native linker features on
17154 # the platform it is being used on.
17155 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17156 fi
17157
17158 # Commands to make compiler produce verbose output that lists
17159 # what "hidden" libraries, object files and flags are used when
17160 # linking a shared library.
17161 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17162
17163 else
17164 GXX=no
17165 with_gnu_ld=no
17166 wlarc=
17167 fi
17168
17169 # PORTME: fill in a description of your system's C++ link characteristics
17170 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17171 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17172 ld_shlibs_CXX=yes
17173 case $host_os in
17174 aix3*)
17175 # FIXME: insert proper C++ library support
17176 ld_shlibs_CXX=no
17177 ;;
17178 aix[4-9]*)
17179 if test "$host_cpu" = ia64; then
17180 # On IA64, the linker does run time linking by default, so we don't
17181 # have to do anything special.
17182 aix_use_runtimelinking=no
17183 exp_sym_flag='-Bexport'
17184 no_entry_flag=""
17185 else
17186 aix_use_runtimelinking=no
17187
17188 # Test if we are trying to use run time linking or normal
17189 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17190 # need to do runtime linking.
17191 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17192 for ld_flag in $LDFLAGS; do
17193 case $ld_flag in
17194 *-brtl*)
17195 aix_use_runtimelinking=yes
17196 break
17197 ;;
17198 esac
17199 done
17200 ;;
17201 esac
17202
17203 exp_sym_flag='-bexport'
17204 no_entry_flag='-bnoentry'
17205 fi
17206
17207 # When large executables or shared objects are built, AIX ld can
17208 # have problems creating the table of contents. If linking a library
17209 # or program results in "error TOC overflow" add -mminimal-toc to
17210 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17211 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17212
17213 archive_cmds_CXX=''
17214 hardcode_direct_CXX=yes
17215 hardcode_direct_absolute_CXX=yes
17216 hardcode_libdir_separator_CXX=':'
17217 link_all_deplibs_CXX=yes
17218 file_list_spec_CXX='${wl}-f,'
17219
17220 if test "$GXX" = yes; then
17221 case $host_os in aix4.[012]|aix4.[012].*)
17222 # We only want to do this on AIX 4.2 and lower, the check
17223 # below for broken collect2 doesn't work under 4.3+
17224 collect2name=`${CC} -print-prog-name=collect2`
17225 if test -f "$collect2name" &&
17226 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17227 then
17228 # We have reworked collect2
17229 :
17230 else
17231 # We have old collect2
17232 hardcode_direct_CXX=unsupported
17233 # It fails to find uninstalled libraries when the uninstalled
17234 # path is not listed in the libpath. Setting hardcode_minus_L
17235 # to unsupported forces relinking
17236 hardcode_minus_L_CXX=yes
17237 hardcode_libdir_flag_spec_CXX='-L$libdir'
17238 hardcode_libdir_separator_CXX=
17239 fi
17240 esac
17241 shared_flag='-shared'
17242 if test "$aix_use_runtimelinking" = yes; then
17243 shared_flag="$shared_flag "'${wl}-G'
17244 fi
17245 else
17246 # not using gcc
17247 if test "$host_cpu" = ia64; then
17248 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17249 # chokes on -Wl,-G. The following line is correct:
17250 shared_flag='-G'
17251 else
17252 if test "$aix_use_runtimelinking" = yes; then
17253 shared_flag='${wl}-G'
17254 else
17255 shared_flag='${wl}-bM:SRE'
17256 fi
17257 fi
17258 fi
17259
17260 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17261 # It seems that -bexpall does not export symbols beginning with
17262 # underscore (_), so it is better to generate a list of symbols to
17263 # export.
17264 always_export_symbols_CXX=yes
17265 if test "$aix_use_runtimelinking" = yes; then
17266 # Warning - without using the other runtime loading flags (-brtl),
17267 # -berok will link without error, but may produce a broken library.
17268 allow_undefined_flag_CXX='-berok'
17269 # Determine the default libpath from the value encoded in an empty
17270 # executable.
17271 cat >conftest.$ac_ext <<_ACEOF
17272 /* confdefs.h. */
17273 _ACEOF
17274 cat confdefs.h >>conftest.$ac_ext
17275 cat >>conftest.$ac_ext <<_ACEOF
17276 /* end confdefs.h. */
17277
17278 int
17279 main ()
17280 {
17281
17282 ;
17283 return 0;
17284 }
17285 _ACEOF
17286 rm -f conftest.$ac_objext conftest$ac_exeext
17287 if { (ac_try="$ac_link"
17288 case "(($ac_try" in
17289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17290 *) ac_try_echo=$ac_try;;
17291 esac
17292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17293 $as_echo "$ac_try_echo") >&5
17294 (eval "$ac_link") 2>conftest.er1
17295 ac_status=$?
17296 grep -v '^ *+' conftest.er1 >conftest.err
17297 rm -f conftest.er1
17298 cat conftest.err >&5
17299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); } && {
17301 test -z "$ac_cxx_werror_flag" ||
17302 test ! -s conftest.err
17303 } && test -s conftest$ac_exeext && {
17304 test "$cross_compiling" = yes ||
17305 $as_test_x conftest$ac_exeext
17306 }; then
17307
17308 lt_aix_libpath_sed='
17309 /Import File Strings/,/^$/ {
17310 /^0/ {
17311 s/^0 *\(.*\)$/\1/
17312 p
17313 }
17314 }'
17315 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17316 # Check for a 64-bit object if we didn't find anything.
17317 if test -z "$aix_libpath"; then
17318 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17319 fi
17320 else
17321 $as_echo "$as_me: failed program was:" >&5
17322 sed 's/^/| /' conftest.$ac_ext >&5
17323
17324
17325 fi
17326
17327 rm -rf conftest.dSYM
17328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17329 conftest$ac_exeext conftest.$ac_ext
17330 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17331
17332 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17333
17334 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"
17335 else
17336 if test "$host_cpu" = ia64; then
17337 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17338 allow_undefined_flag_CXX="-z nodefs"
17339 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"
17340 else
17341 # Determine the default libpath from the value encoded in an
17342 # empty executable.
17343 cat >conftest.$ac_ext <<_ACEOF
17344 /* confdefs.h. */
17345 _ACEOF
17346 cat confdefs.h >>conftest.$ac_ext
17347 cat >>conftest.$ac_ext <<_ACEOF
17348 /* end confdefs.h. */
17349
17350 int
17351 main ()
17352 {
17353
17354 ;
17355 return 0;
17356 }
17357 _ACEOF
17358 rm -f conftest.$ac_objext conftest$ac_exeext
17359 if { (ac_try="$ac_link"
17360 case "(($ac_try" in
17361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17362 *) ac_try_echo=$ac_try;;
17363 esac
17364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17365 $as_echo "$ac_try_echo") >&5
17366 (eval "$ac_link") 2>conftest.er1
17367 ac_status=$?
17368 grep -v '^ *+' conftest.er1 >conftest.err
17369 rm -f conftest.er1
17370 cat conftest.err >&5
17371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); } && {
17373 test -z "$ac_cxx_werror_flag" ||
17374 test ! -s conftest.err
17375 } && test -s conftest$ac_exeext && {
17376 test "$cross_compiling" = yes ||
17377 $as_test_x conftest$ac_exeext
17378 }; then
17379
17380 lt_aix_libpath_sed='
17381 /Import File Strings/,/^$/ {
17382 /^0/ {
17383 s/^0 *\(.*\)$/\1/
17384 p
17385 }
17386 }'
17387 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17388 # Check for a 64-bit object if we didn't find anything.
17389 if test -z "$aix_libpath"; then
17390 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17391 fi
17392 else
17393 $as_echo "$as_me: failed program was:" >&5
17394 sed 's/^/| /' conftest.$ac_ext >&5
17395
17396
17397 fi
17398
17399 rm -rf conftest.dSYM
17400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17401 conftest$ac_exeext conftest.$ac_ext
17402 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17403
17404 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17405 # Warning - without using the other run time loading flags,
17406 # -berok will link without error, but may produce a broken library.
17407 no_undefined_flag_CXX=' ${wl}-bernotok'
17408 allow_undefined_flag_CXX=' ${wl}-berok'
17409 # Exported symbols can be pulled into shared objects from archives
17410 whole_archive_flag_spec_CXX='$convenience'
17411 archive_cmds_need_lc_CXX=yes
17412 # This is similar to how AIX traditionally builds its shared
17413 # libraries.
17414 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'
17415 fi
17416 fi
17417 ;;
17418
17419 beos*)
17420 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17421 allow_undefined_flag_CXX=unsupported
17422 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17423 # support --undefined. This deserves some investigation. FIXME
17424 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17425 else
17426 ld_shlibs_CXX=no
17427 fi
17428 ;;
17429
17430 chorus*)
17431 case $cc_basename in
17432 *)
17433 # FIXME: insert proper C++ library support
17434 ld_shlibs_CXX=no
17435 ;;
17436 esac
17437 ;;
17438
17439 cygwin* | mingw* | pw32* | cegcc*)
17440 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17441 # as there is no search path for DLLs.
17442 hardcode_libdir_flag_spec_CXX='-L$libdir'
17443 allow_undefined_flag_CXX=unsupported
17444 always_export_symbols_CXX=no
17445 enable_shared_with_static_runtimes_CXX=yes
17446
17447 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17448 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'
17449 # If the export-symbols file already is a .def file (1st line
17450 # is EXPORTS), use it as is; otherwise, prepend...
17451 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17452 cp $export_symbols $output_objdir/$soname.def;
17453 else
17454 echo EXPORTS > $output_objdir/$soname.def;
17455 cat $export_symbols >> $output_objdir/$soname.def;
17456 fi~
17457 $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'
17458 else
17459 ld_shlibs_CXX=no
17460 fi
17461 ;;
17462 darwin* | rhapsody*)
17463
17464
17465 archive_cmds_need_lc_CXX=no
17466 hardcode_direct_CXX=no
17467 hardcode_automatic_CXX=yes
17468 hardcode_shlibpath_var_CXX=unsupported
17469 whole_archive_flag_spec_CXX=''
17470 link_all_deplibs_CXX=yes
17471 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17472 case $cc_basename in
17473 ifort*) _lt_dar_can_shared=yes ;;
17474 *) _lt_dar_can_shared=$GCC ;;
17475 esac
17476 if test "$_lt_dar_can_shared" = "yes"; then
17477 output_verbose_link_cmd=echo
17478 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}"
17479 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17480 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}"
17481 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}"
17482 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17483 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}"
17484 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}"
17485 fi
17486
17487 else
17488 ld_shlibs_CXX=no
17489 fi
17490
17491 ;;
17492
17493 dgux*)
17494 case $cc_basename in
17495 ec++*)
17496 # FIXME: insert proper C++ library support
17497 ld_shlibs_CXX=no
17498 ;;
17499 ghcx*)
17500 # Green Hills C++ Compiler
17501 # FIXME: insert proper C++ library support
17502 ld_shlibs_CXX=no
17503 ;;
17504 *)
17505 # FIXME: insert proper C++ library support
17506 ld_shlibs_CXX=no
17507 ;;
17508 esac
17509 ;;
17510
17511 freebsd[12]*)
17512 # C++ shared libraries reported to be fairly broken before
17513 # switch to ELF
17514 ld_shlibs_CXX=no
17515 ;;
17516
17517 freebsd-elf*)
17518 archive_cmds_need_lc_CXX=no
17519 ;;
17520
17521 freebsd* | dragonfly*)
17522 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17523 # conventions
17524 ld_shlibs_CXX=yes
17525 ;;
17526
17527 gnu*)
17528 ;;
17529
17530 hpux9*)
17531 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17532 hardcode_libdir_separator_CXX=:
17533 export_dynamic_flag_spec_CXX='${wl}-E'
17534 hardcode_direct_CXX=yes
17535 hardcode_minus_L_CXX=yes # Not in the search PATH,
17536 # but as the default
17537 # location of the library.
17538
17539 case $cc_basename in
17540 CC*)
17541 # FIXME: insert proper C++ library support
17542 ld_shlibs_CXX=no
17543 ;;
17544 aCC*)
17545 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'
17546 # Commands to make compiler produce verbose output that lists
17547 # what "hidden" libraries, object files and flags are used when
17548 # linking a shared library.
17549 #
17550 # There doesn't appear to be a way to prevent this compiler from
17551 # explicitly linking system object files so we need to strip them
17552 # from the output so that they don't get included in the library
17553 # dependencies.
17554 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'
17555 ;;
17556 *)
17557 if test "$GXX" = yes; then
17558 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'
17559 else
17560 # FIXME: insert proper C++ library support
17561 ld_shlibs_CXX=no
17562 fi
17563 ;;
17564 esac
17565 ;;
17566
17567 hpux10*|hpux11*)
17568 if test $with_gnu_ld = no; then
17569 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17570 hardcode_libdir_separator_CXX=:
17571
17572 case $host_cpu in
17573 hppa*64*|ia64*)
17574 ;;
17575 *)
17576 export_dynamic_flag_spec_CXX='${wl}-E'
17577 ;;
17578 esac
17579 fi
17580 case $host_cpu in
17581 hppa*64*|ia64*)
17582 hardcode_direct_CXX=no
17583 hardcode_shlibpath_var_CXX=no
17584 ;;
17585 *)
17586 hardcode_direct_CXX=yes
17587 hardcode_direct_absolute_CXX=yes
17588 hardcode_minus_L_CXX=yes # Not in the search PATH,
17589 # but as the default
17590 # location of the library.
17591 ;;
17592 esac
17593
17594 case $cc_basename in
17595 CC*)
17596 # FIXME: insert proper C++ library support
17597 ld_shlibs_CXX=no
17598 ;;
17599 aCC*)
17600 case $host_cpu in
17601 hppa*64*)
17602 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17603 ;;
17604 ia64*)
17605 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17606 ;;
17607 *)
17608 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17609 ;;
17610 esac
17611 # Commands to make compiler produce verbose output that lists
17612 # what "hidden" libraries, object files and flags are used when
17613 # linking a shared library.
17614 #
17615 # There doesn't appear to be a way to prevent this compiler from
17616 # explicitly linking system object files so we need to strip them
17617 # from the output so that they don't get included in the library
17618 # dependencies.
17619 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'
17620 ;;
17621 *)
17622 if test "$GXX" = yes; then
17623 if test $with_gnu_ld = no; then
17624 case $host_cpu in
17625 hppa*64*)
17626 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17627 ;;
17628 ia64*)
17629 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17630 ;;
17631 *)
17632 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'
17633 ;;
17634 esac
17635 fi
17636 else
17637 # FIXME: insert proper C++ library support
17638 ld_shlibs_CXX=no
17639 fi
17640 ;;
17641 esac
17642 ;;
17643
17644 interix[3-9]*)
17645 hardcode_direct_CXX=no
17646 hardcode_shlibpath_var_CXX=no
17647 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17648 export_dynamic_flag_spec_CXX='${wl}-E'
17649 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17650 # Instead, shared libraries are loaded at an image base (0x10000000 by
17651 # default) and relocated if they conflict, which is a slow very memory
17652 # consuming and fragmenting process. To avoid this, we pick a random,
17653 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17654 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17655 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'
17656 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'
17657 ;;
17658 irix5* | irix6*)
17659 case $cc_basename in
17660 CC*)
17661 # SGI C++
17662 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'
17663
17664 # Archives containing C++ object files must be created using
17665 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17666 # necessary to make sure instantiated templates are included
17667 # in the archive.
17668 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17669 ;;
17670 *)
17671 if test "$GXX" = yes; then
17672 if test "$with_gnu_ld" = no; then
17673 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'
17674 else
17675 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'
17676 fi
17677 fi
17678 link_all_deplibs_CXX=yes
17679 ;;
17680 esac
17681 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17682 hardcode_libdir_separator_CXX=:
17683 inherit_rpath_CXX=yes
17684 ;;
17685
17686 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17687 case $cc_basename in
17688 KCC*)
17689 # Kuck and Associates, Inc. (KAI) C++ Compiler
17690
17691 # KCC will only create a shared library if the output file
17692 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17693 # to its proper name (with version) after linking.
17694 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'
17695 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'
17696 # Commands to make compiler produce verbose output that lists
17697 # what "hidden" libraries, object files and flags are used when
17698 # linking a shared library.
17699 #
17700 # There doesn't appear to be a way to prevent this compiler from
17701 # explicitly linking system object files so we need to strip them
17702 # from the output so that they don't get included in the library
17703 # dependencies.
17704 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'
17705
17706 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17707 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17708
17709 # Archives containing C++ object files must be created using
17710 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17711 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17712 ;;
17713 icpc* | ecpc* )
17714 # Intel C++
17715 with_gnu_ld=yes
17716 # version 8.0 and above of icpc choke on multiply defined symbols
17717 # if we add $predep_objects and $postdep_objects, however 7.1 and
17718 # earlier do not add the objects themselves.
17719 case `$CC -V 2>&1` in
17720 *"Version 7."*)
17721 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17722 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'
17723 ;;
17724 *) # Version 8.0 or newer
17725 tmp_idyn=
17726 case $host_cpu in
17727 ia64*) tmp_idyn=' -i_dynamic';;
17728 esac
17729 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17730 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'
17731 ;;
17732 esac
17733 archive_cmds_need_lc_CXX=no
17734 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17735 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17736 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17737 ;;
17738 pgCC* | pgcpp*)
17739 # Portland Group C++ compiler
17740 case `$CC -V` in
17741 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
17742 prelink_cmds_CXX='tpldir=Template.dir~
17743 rm -rf $tpldir~
17744 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17745 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
17746 old_archive_cmds_CXX='tpldir=Template.dir~
17747 rm -rf $tpldir~
17748 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17749 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
17750 $RANLIB $oldlib'
17751 archive_cmds_CXX='tpldir=Template.dir~
17752 rm -rf $tpldir~
17753 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17754 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17755 archive_expsym_cmds_CXX='tpldir=Template.dir~
17756 rm -rf $tpldir~
17757 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17758 $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'
17759 ;;
17760 *) # Version 6 will use weak symbols
17761 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17762 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'
17763 ;;
17764 esac
17765
17766 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17767 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17768 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'
17769 ;;
17770 cxx*)
17771 # Compaq C++
17772 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17773 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'
17774
17775 runpath_var=LD_RUN_PATH
17776 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17777 hardcode_libdir_separator_CXX=:
17778
17779 # Commands to make compiler produce verbose output that lists
17780 # what "hidden" libraries, object files and flags are used when
17781 # linking a shared library.
17782 #
17783 # There doesn't appear to be a way to prevent this compiler from
17784 # explicitly linking system object files so we need to strip them
17785 # from the output so that they don't get included in the library
17786 # dependencies.
17787 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'
17788 ;;
17789 xl*)
17790 # IBM XL 8.0 on PPC, with GNU ld
17791 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17792 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17793 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17794 if test "x$supports_anon_versioning" = xyes; then
17795 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17796 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17797 echo "local: *; };" >> $output_objdir/$libname.ver~
17798 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17799 fi
17800 ;;
17801 *)
17802 case `$CC -V 2>&1 | sed 5q` in
17803 *Sun\ C*)
17804 # Sun C++ 5.9
17805 no_undefined_flag_CXX=' -zdefs'
17806 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17807 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'
17808 hardcode_libdir_flag_spec_CXX='-R$libdir'
17809 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'
17810 compiler_needs_object_CXX=yes
17811
17812 # Not sure whether something based on
17813 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17814 # would be better.
17815 output_verbose_link_cmd='echo'
17816
17817 # Archives containing C++ object files must be created using
17818 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17819 # necessary to make sure instantiated templates are included
17820 # in the archive.
17821 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17822 ;;
17823 esac
17824 ;;
17825 esac
17826 ;;
17827
17828 lynxos*)
17829 # FIXME: insert proper C++ library support
17830 ld_shlibs_CXX=no
17831 ;;
17832
17833 m88k*)
17834 # FIXME: insert proper C++ library support
17835 ld_shlibs_CXX=no
17836 ;;
17837
17838 mvs*)
17839 case $cc_basename in
17840 cxx*)
17841 # FIXME: insert proper C++ library support
17842 ld_shlibs_CXX=no
17843 ;;
17844 *)
17845 # FIXME: insert proper C++ library support
17846 ld_shlibs_CXX=no
17847 ;;
17848 esac
17849 ;;
17850
17851 netbsd*)
17852 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17853 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17854 wlarc=
17855 hardcode_libdir_flag_spec_CXX='-R$libdir'
17856 hardcode_direct_CXX=yes
17857 hardcode_shlibpath_var_CXX=no
17858 fi
17859 # Workaround some broken pre-1.5 toolchains
17860 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17861 ;;
17862
17863 *nto* | *qnx*)
17864 ld_shlibs_CXX=yes
17865 ;;
17866
17867 openbsd2*)
17868 # C++ shared libraries are fairly broken
17869 ld_shlibs_CXX=no
17870 ;;
17871
17872 openbsd*)
17873 if test -f /usr/libexec/ld.so; then
17874 hardcode_direct_CXX=yes
17875 hardcode_shlibpath_var_CXX=no
17876 hardcode_direct_absolute_CXX=yes
17877 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17878 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17879 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17880 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17881 export_dynamic_flag_spec_CXX='${wl}-E'
17882 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17883 fi
17884 output_verbose_link_cmd=echo
17885 else
17886 ld_shlibs_CXX=no
17887 fi
17888 ;;
17889
17890 osf3* | osf4* | osf5*)
17891 case $cc_basename in
17892 KCC*)
17893 # Kuck and Associates, Inc. (KAI) C++ Compiler
17894
17895 # KCC will only create a shared library if the output file
17896 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17897 # to its proper name (with version) after linking.
17898 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'
17899
17900 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17901 hardcode_libdir_separator_CXX=:
17902
17903 # Archives containing C++ object files must be created using
17904 # the KAI C++ compiler.
17905 case $host in
17906 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17907 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17908 esac
17909 ;;
17910 RCC*)
17911 # Rational C++ 2.4.1
17912 # FIXME: insert proper C++ library support
17913 ld_shlibs_CXX=no
17914 ;;
17915 cxx*)
17916 case $host in
17917 osf3*)
17918 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17919 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'
17920 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17921 ;;
17922 *)
17923 allow_undefined_flag_CXX=' -expect_unresolved \*'
17924 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'
17925 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17926 echo "-hidden">> $lib.exp~
17927 $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~
17928 $RM $lib.exp'
17929 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17930 ;;
17931 esac
17932
17933 hardcode_libdir_separator_CXX=:
17934
17935 # Commands to make compiler produce verbose output that lists
17936 # what "hidden" libraries, object files and flags are used when
17937 # linking a shared library.
17938 #
17939 # There doesn't appear to be a way to prevent this compiler from
17940 # explicitly linking system object files so we need to strip them
17941 # from the output so that they don't get included in the library
17942 # dependencies.
17943 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'
17944 ;;
17945 *)
17946 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17947 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17948 case $host in
17949 osf3*)
17950 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'
17951 ;;
17952 *)
17953 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'
17954 ;;
17955 esac
17956
17957 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17958 hardcode_libdir_separator_CXX=:
17959
17960 # Commands to make compiler produce verbose output that lists
17961 # what "hidden" libraries, object files and flags are used when
17962 # linking a shared library.
17963 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17964
17965 else
17966 # FIXME: insert proper C++ library support
17967 ld_shlibs_CXX=no
17968 fi
17969 ;;
17970 esac
17971 ;;
17972
17973 psos*)
17974 # FIXME: insert proper C++ library support
17975 ld_shlibs_CXX=no
17976 ;;
17977
17978 sunos4*)
17979 case $cc_basename in
17980 CC*)
17981 # Sun C++ 4.x
17982 # FIXME: insert proper C++ library support
17983 ld_shlibs_CXX=no
17984 ;;
17985 lcc*)
17986 # Lucid
17987 # FIXME: insert proper C++ library support
17988 ld_shlibs_CXX=no
17989 ;;
17990 *)
17991 # FIXME: insert proper C++ library support
17992 ld_shlibs_CXX=no
17993 ;;
17994 esac
17995 ;;
17996
17997 solaris*)
17998 case $cc_basename in
17999 CC*)
18000 # Sun C++ 4.2, 5.x and Centerline C++
18001 archive_cmds_need_lc_CXX=yes
18002 no_undefined_flag_CXX=' -zdefs'
18003 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18004 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18005 $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'
18006
18007 hardcode_libdir_flag_spec_CXX='-R$libdir'
18008 hardcode_shlibpath_var_CXX=no
18009 case $host_os in
18010 solaris2.[0-5] | solaris2.[0-5].*) ;;
18011 *)
18012 # The compiler driver will combine and reorder linker options,
18013 # but understands `-z linker_flag'.
18014 # Supported since Solaris 2.6 (maybe 2.5.1?)
18015 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18016 ;;
18017 esac
18018 link_all_deplibs_CXX=yes
18019
18020 output_verbose_link_cmd='echo'
18021
18022 # Archives containing C++ object files must be created using
18023 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18024 # necessary to make sure instantiated templates are included
18025 # in the archive.
18026 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18027 ;;
18028 gcx*)
18029 # Green Hills C++ Compiler
18030 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18031
18032 # The C++ compiler must be used to create the archive.
18033 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18034 ;;
18035 *)
18036 # GNU C++ compiler with Solaris linker
18037 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18038 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18039 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18040 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18041 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18042 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18043
18044 # Commands to make compiler produce verbose output that lists
18045 # what "hidden" libraries, object files and flags are used when
18046 # linking a shared library.
18047 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
18048 else
18049 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18050 # platform.
18051 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18052 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18053 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18054
18055 # Commands to make compiler produce verbose output that lists
18056 # what "hidden" libraries, object files and flags are used when
18057 # linking a shared library.
18058 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
18059 fi
18060
18061 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18062 case $host_os in
18063 solaris2.[0-5] | solaris2.[0-5].*) ;;
18064 *)
18065 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18066 ;;
18067 esac
18068 fi
18069 ;;
18070 esac
18071 ;;
18072
18073 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18074 no_undefined_flag_CXX='${wl}-z,text'
18075 archive_cmds_need_lc_CXX=no
18076 hardcode_shlibpath_var_CXX=no
18077 runpath_var='LD_RUN_PATH'
18078
18079 case $cc_basename in
18080 CC*)
18081 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18082 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18083 ;;
18084 *)
18085 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18086 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18087 ;;
18088 esac
18089 ;;
18090
18091 sysv5* | sco3.2v5* | sco5v6*)
18092 # Note: We can NOT use -z defs as we might desire, because we do not
18093 # link with -lc, and that would cause any symbols used from libc to
18094 # always be unresolved, which means just about no library would
18095 # ever link correctly. If we're not using GNU ld we use -z text
18096 # though, which does catch some bad symbols but isn't as heavy-handed
18097 # as -z defs.
18098 no_undefined_flag_CXX='${wl}-z,text'
18099 allow_undefined_flag_CXX='${wl}-z,nodefs'
18100 archive_cmds_need_lc_CXX=no
18101 hardcode_shlibpath_var_CXX=no
18102 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18103 hardcode_libdir_separator_CXX=':'
18104 link_all_deplibs_CXX=yes
18105 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18106 runpath_var='LD_RUN_PATH'
18107
18108 case $cc_basename in
18109 CC*)
18110 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18111 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18112 ;;
18113 *)
18114 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18115 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18116 ;;
18117 esac
18118 ;;
18119
18120 tandem*)
18121 case $cc_basename in
18122 NCC*)
18123 # NonStop-UX NCC 3.20
18124 # FIXME: insert proper C++ library support
18125 ld_shlibs_CXX=no
18126 ;;
18127 *)
18128 # FIXME: insert proper C++ library support
18129 ld_shlibs_CXX=no
18130 ;;
18131 esac
18132 ;;
18133
18134 vxworks*)
18135 # FIXME: insert proper C++ library support
18136 ld_shlibs_CXX=no
18137 ;;
18138
18139 *)
18140 # FIXME: insert proper C++ library support
18141 ld_shlibs_CXX=no
18142 ;;
18143 esac
18144
18145 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18146 $as_echo "$ld_shlibs_CXX" >&6; }
18147 test "$ld_shlibs_CXX" = no && can_build_shared=no
18148
18149 GCC_CXX="$GXX"
18150 LD_CXX="$LD"
18151
18152 ## CAVEAT EMPTOR:
18153 ## There is no encapsulation within the following macros, do not change
18154 ## the running order or otherwise move them around unless you know exactly
18155 ## what you are doing...
18156 # Dependencies to place before and after the object being linked:
18157 predep_objects_CXX=
18158 postdep_objects_CXX=
18159 predeps_CXX=
18160 postdeps_CXX=
18161 compiler_lib_search_path_CXX=
18162
18163 cat > conftest.$ac_ext <<_LT_EOF
18164 class Foo
18165 {
18166 public:
18167 Foo (void) { a = 0; }
18168 private:
18169 int a;
18170 };
18171 _LT_EOF
18172
18173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18174 (eval $ac_compile) 2>&5
18175 ac_status=$?
18176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); }; then
18178 # Parse the compiler output and extract the necessary
18179 # objects, libraries and library flags.
18180
18181 # Sentinel used to keep track of whether or not we are before
18182 # the conftest object file.
18183 pre_test_object_deps_done=no
18184
18185 for p in `eval "$output_verbose_link_cmd"`; do
18186 case $p in
18187
18188 -L* | -R* | -l*)
18189 # Some compilers place space between "-{L,R}" and the path.
18190 # Remove the space.
18191 if test $p = "-L" ||
18192 test $p = "-R"; then
18193 prev=$p
18194 continue
18195 else
18196 prev=
18197 fi
18198
18199 if test "$pre_test_object_deps_done" = no; then
18200 case $p in
18201 -L* | -R*)
18202 # Internal compiler library paths should come after those
18203 # provided the user. The postdeps already come after the
18204 # user supplied libs so there is no need to process them.
18205 if test -z "$compiler_lib_search_path_CXX"; then
18206 compiler_lib_search_path_CXX="${prev}${p}"
18207 else
18208 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18209 fi
18210 ;;
18211 # The "-l" case would never come before the object being
18212 # linked, so don't bother handling this case.
18213 esac
18214 else
18215 if test -z "$postdeps_CXX"; then
18216 postdeps_CXX="${prev}${p}"
18217 else
18218 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18219 fi
18220 fi
18221 ;;
18222
18223 *.$objext)
18224 # This assumes that the test object file only shows up
18225 # once in the compiler output.
18226 if test "$p" = "conftest.$objext"; then
18227 pre_test_object_deps_done=yes
18228 continue
18229 fi
18230
18231 if test "$pre_test_object_deps_done" = no; then
18232 if test -z "$predep_objects_CXX"; then
18233 predep_objects_CXX="$p"
18234 else
18235 predep_objects_CXX="$predep_objects_CXX $p"
18236 fi
18237 else
18238 if test -z "$postdep_objects_CXX"; then
18239 postdep_objects_CXX="$p"
18240 else
18241 postdep_objects_CXX="$postdep_objects_CXX $p"
18242 fi
18243 fi
18244 ;;
18245
18246 *) ;; # Ignore the rest.
18247
18248 esac
18249 done
18250
18251 # Clean up.
18252 rm -f a.out a.exe
18253 else
18254 echo "libtool.m4: error: problem compiling CXX test program"
18255 fi
18256
18257 $RM -f confest.$objext
18258
18259 # PORTME: override above test on systems where it is broken
18260 case $host_os in
18261 interix[3-9]*)
18262 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18263 # hack all around it, let's just trust "g++" to DTRT.
18264 predep_objects_CXX=
18265 postdep_objects_CXX=
18266 postdeps_CXX=
18267 ;;
18268
18269 linux*)
18270 case `$CC -V 2>&1 | sed 5q` in
18271 *Sun\ C*)
18272 # Sun C++ 5.9
18273
18274 # The more standards-conforming stlport4 library is
18275 # incompatible with the Cstd library. Avoid specifying
18276 # it if it's in CXXFLAGS. Ignore libCrun as
18277 # -library=stlport4 depends on it.
18278 case " $CXX $CXXFLAGS " in
18279 *" -library=stlport4 "*)
18280 solaris_use_stlport4=yes
18281 ;;
18282 esac
18283
18284 if test "$solaris_use_stlport4" != yes; then
18285 postdeps_CXX='-library=Cstd -library=Crun'
18286 fi
18287 ;;
18288 esac
18289 ;;
18290
18291 solaris*)
18292 case $cc_basename in
18293 CC*)
18294 # The more standards-conforming stlport4 library is
18295 # incompatible with the Cstd library. Avoid specifying
18296 # it if it's in CXXFLAGS. Ignore libCrun as
18297 # -library=stlport4 depends on it.
18298 case " $CXX $CXXFLAGS " in
18299 *" -library=stlport4 "*)
18300 solaris_use_stlport4=yes
18301 ;;
18302 esac
18303
18304 # Adding this requires a known-good setup of shared libraries for
18305 # Sun compiler versions before 5.6, else PIC objects from an old
18306 # archive will be linked into the output, leading to subtle bugs.
18307 if test "$solaris_use_stlport4" != yes; then
18308 postdeps_CXX='-library=Cstd -library=Crun'
18309 fi
18310 ;;
18311 esac
18312 ;;
18313 esac
18314
18315
18316 case " $postdeps_CXX " in
18317 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18318 esac
18319 compiler_lib_search_dirs_CXX=
18320 if test -n "${compiler_lib_search_path_CXX}"; then
18321 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18322 fi
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354 lt_prog_compiler_wl_CXX=
18355 lt_prog_compiler_pic_CXX=
18356 lt_prog_compiler_static_CXX=
18357
18358 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18359 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18360
18361 # C++ specific cases for pic, static, wl, etc.
18362 if test "$GXX" = yes; then
18363 lt_prog_compiler_wl_CXX='-Wl,'
18364 lt_prog_compiler_static_CXX='-static'
18365
18366 case $host_os in
18367 aix*)
18368 # All AIX code is PIC.
18369 if test "$host_cpu" = ia64; then
18370 # AIX 5 now supports IA64 processor
18371 lt_prog_compiler_static_CXX='-Bstatic'
18372 fi
18373 ;;
18374
18375 amigaos*)
18376 case $host_cpu in
18377 powerpc)
18378 # see comment about AmigaOS4 .so support
18379 lt_prog_compiler_pic_CXX='-fPIC'
18380 ;;
18381 m68k)
18382 # FIXME: we need at least 68020 code to build shared libraries, but
18383 # adding the `-m68020' flag to GCC prevents building anything better,
18384 # like `-m68040'.
18385 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18386 ;;
18387 esac
18388 ;;
18389
18390 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18391 # PIC is the default for these OSes.
18392 ;;
18393 mingw* | cygwin* | os2* | pw32* | cegcc*)
18394 # This hack is so that the source file can tell whether it is being
18395 # built for inclusion in a dll (and should export symbols for example).
18396 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18397 # (--disable-auto-import) libraries
18398 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18399 ;;
18400 darwin* | rhapsody*)
18401 # PIC is the default on this platform
18402 # Common symbols not allowed in MH_DYLIB files
18403 lt_prog_compiler_pic_CXX='-fno-common'
18404 ;;
18405 *djgpp*)
18406 # DJGPP does not support shared libraries at all
18407 lt_prog_compiler_pic_CXX=
18408 ;;
18409 interix[3-9]*)
18410 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18411 # Instead, we relocate shared libraries at runtime.
18412 ;;
18413 sysv4*MP*)
18414 if test -d /usr/nec; then
18415 lt_prog_compiler_pic_CXX=-Kconform_pic
18416 fi
18417 ;;
18418 hpux*)
18419 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18420 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18421 # sets the default TLS model and affects inlining.
18422 case $host_cpu in
18423 hppa*64*)
18424 ;;
18425 *)
18426 lt_prog_compiler_pic_CXX='-fPIC'
18427 ;;
18428 esac
18429 ;;
18430 *qnx* | *nto*)
18431 # QNX uses GNU C++, but need to define -shared option too, otherwise
18432 # it will coredump.
18433 lt_prog_compiler_pic_CXX='-fPIC -shared'
18434 ;;
18435 *)
18436 lt_prog_compiler_pic_CXX='-fPIC'
18437 ;;
18438 esac
18439 else
18440 case $host_os in
18441 aix[4-9]*)
18442 # All AIX code is PIC.
18443 if test "$host_cpu" = ia64; then
18444 # AIX 5 now supports IA64 processor
18445 lt_prog_compiler_static_CXX='-Bstatic'
18446 else
18447 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18448 fi
18449 ;;
18450 chorus*)
18451 case $cc_basename in
18452 cxch68*)
18453 # Green Hills C++ Compiler
18454 # _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"
18455 ;;
18456 esac
18457 ;;
18458 dgux*)
18459 case $cc_basename in
18460 ec++*)
18461 lt_prog_compiler_pic_CXX='-KPIC'
18462 ;;
18463 ghcx*)
18464 # Green Hills C++ Compiler
18465 lt_prog_compiler_pic_CXX='-pic'
18466 ;;
18467 *)
18468 ;;
18469 esac
18470 ;;
18471 freebsd* | dragonfly*)
18472 # FreeBSD uses GNU C++
18473 ;;
18474 hpux9* | hpux10* | hpux11*)
18475 case $cc_basename in
18476 CC*)
18477 lt_prog_compiler_wl_CXX='-Wl,'
18478 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18479 if test "$host_cpu" != ia64; then
18480 lt_prog_compiler_pic_CXX='+Z'
18481 fi
18482 ;;
18483 aCC*)
18484 lt_prog_compiler_wl_CXX='-Wl,'
18485 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18486 case $host_cpu in
18487 hppa*64*|ia64*)
18488 # +Z the default
18489 ;;
18490 *)
18491 lt_prog_compiler_pic_CXX='+Z'
18492 ;;
18493 esac
18494 ;;
18495 *)
18496 ;;
18497 esac
18498 ;;
18499 interix*)
18500 # This is c89, which is MS Visual C++ (no shared libs)
18501 # Anyone wants to do a port?
18502 ;;
18503 irix5* | irix6* | nonstopux*)
18504 case $cc_basename in
18505 CC*)
18506 lt_prog_compiler_wl_CXX='-Wl,'
18507 lt_prog_compiler_static_CXX='-non_shared'
18508 # CC pic flag -KPIC is the default.
18509 ;;
18510 *)
18511 ;;
18512 esac
18513 ;;
18514 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18515 case $cc_basename in
18516 KCC*)
18517 # KAI C++ Compiler
18518 lt_prog_compiler_wl_CXX='--backend -Wl,'
18519 lt_prog_compiler_pic_CXX='-fPIC'
18520 ;;
18521 ecpc* )
18522 # old Intel C++ for x86_64 which still supported -KPIC.
18523 lt_prog_compiler_wl_CXX='-Wl,'
18524 lt_prog_compiler_pic_CXX='-KPIC'
18525 lt_prog_compiler_static_CXX='-static'
18526 ;;
18527 icpc* )
18528 # Intel C++, used to be incompatible with GCC.
18529 # ICC 10 doesn't accept -KPIC any more.
18530 lt_prog_compiler_wl_CXX='-Wl,'
18531 lt_prog_compiler_pic_CXX='-fPIC'
18532 lt_prog_compiler_static_CXX='-static'
18533 ;;
18534 pgCC* | pgcpp*)
18535 # Portland Group C++ compiler
18536 lt_prog_compiler_wl_CXX='-Wl,'
18537 lt_prog_compiler_pic_CXX='-fpic'
18538 lt_prog_compiler_static_CXX='-Bstatic'
18539 ;;
18540 cxx*)
18541 # Compaq C++
18542 # Make sure the PIC flag is empty. It appears that all Alpha
18543 # Linux and Compaq Tru64 Unix objects are PIC.
18544 lt_prog_compiler_pic_CXX=
18545 lt_prog_compiler_static_CXX='-non_shared'
18546 ;;
18547 xlc* | xlC*)
18548 # IBM XL 8.0 on PPC
18549 lt_prog_compiler_wl_CXX='-Wl,'
18550 lt_prog_compiler_pic_CXX='-qpic'
18551 lt_prog_compiler_static_CXX='-qstaticlink'
18552 ;;
18553 *)
18554 case `$CC -V 2>&1 | sed 5q` in
18555 *Sun\ C*)
18556 # Sun C++ 5.9
18557 lt_prog_compiler_pic_CXX='-KPIC'
18558 lt_prog_compiler_static_CXX='-Bstatic'
18559 lt_prog_compiler_wl_CXX='-Qoption ld '
18560 ;;
18561 esac
18562 ;;
18563 esac
18564 ;;
18565 lynxos*)
18566 ;;
18567 m88k*)
18568 ;;
18569 mvs*)
18570 case $cc_basename in
18571 cxx*)
18572 lt_prog_compiler_pic_CXX='-W c,exportall'
18573 ;;
18574 *)
18575 ;;
18576 esac
18577 ;;
18578 netbsd* | netbsdelf*-gnu)
18579 ;;
18580 *qnx* | *nto*)
18581 # QNX uses GNU C++, but need to define -shared option too, otherwise
18582 # it will coredump.
18583 lt_prog_compiler_pic_CXX='-fPIC -shared'
18584 ;;
18585 osf3* | osf4* | osf5*)
18586 case $cc_basename in
18587 KCC*)
18588 lt_prog_compiler_wl_CXX='--backend -Wl,'
18589 ;;
18590 RCC*)
18591 # Rational C++ 2.4.1
18592 lt_prog_compiler_pic_CXX='-pic'
18593 ;;
18594 cxx*)
18595 # Digital/Compaq C++
18596 lt_prog_compiler_wl_CXX='-Wl,'
18597 # Make sure the PIC flag is empty. It appears that all Alpha
18598 # Linux and Compaq Tru64 Unix objects are PIC.
18599 lt_prog_compiler_pic_CXX=
18600 lt_prog_compiler_static_CXX='-non_shared'
18601 ;;
18602 *)
18603 ;;
18604 esac
18605 ;;
18606 psos*)
18607 ;;
18608 solaris*)
18609 case $cc_basename in
18610 CC*)
18611 # Sun C++ 4.2, 5.x and Centerline C++
18612 lt_prog_compiler_pic_CXX='-KPIC'
18613 lt_prog_compiler_static_CXX='-Bstatic'
18614 lt_prog_compiler_wl_CXX='-Qoption ld '
18615 ;;
18616 gcx*)
18617 # Green Hills C++ Compiler
18618 lt_prog_compiler_pic_CXX='-PIC'
18619 ;;
18620 *)
18621 ;;
18622 esac
18623 ;;
18624 sunos4*)
18625 case $cc_basename in
18626 CC*)
18627 # Sun C++ 4.x
18628 lt_prog_compiler_pic_CXX='-pic'
18629 lt_prog_compiler_static_CXX='-Bstatic'
18630 ;;
18631 lcc*)
18632 # Lucid
18633 lt_prog_compiler_pic_CXX='-pic'
18634 ;;
18635 *)
18636 ;;
18637 esac
18638 ;;
18639 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18640 case $cc_basename in
18641 CC*)
18642 lt_prog_compiler_wl_CXX='-Wl,'
18643 lt_prog_compiler_pic_CXX='-KPIC'
18644 lt_prog_compiler_static_CXX='-Bstatic'
18645 ;;
18646 esac
18647 ;;
18648 tandem*)
18649 case $cc_basename in
18650 NCC*)
18651 # NonStop-UX NCC 3.20
18652 lt_prog_compiler_pic_CXX='-KPIC'
18653 ;;
18654 *)
18655 ;;
18656 esac
18657 ;;
18658 vxworks*)
18659 ;;
18660 *)
18661 lt_prog_compiler_can_build_shared_CXX=no
18662 ;;
18663 esac
18664 fi
18665
18666 case $host_os in
18667 # For platforms which do not support PIC, -DPIC is meaningless:
18668 *djgpp*)
18669 lt_prog_compiler_pic_CXX=
18670 ;;
18671 *)
18672 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX@&t@ -DPIC"
18673 ;;
18674 esac
18675 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
18676 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
18677
18678
18679
18680 #
18681 # Check to make sure the PIC flag actually works.
18682 #
18683 if test -n "$lt_prog_compiler_pic_CXX"; then
18684 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18685 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18686 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
18687 $as_echo_n "(cached) " >&6
18688 else
18689 lt_cv_prog_compiler_pic_works_CXX=no
18690 ac_outfile=conftest.$ac_objext
18691 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18692 lt_compiler_flag="$lt_prog_compiler_pic_CXX@&t@ -DPIC"
18693 # Insert the option either (1) after the last *FLAGS variable, or
18694 # (2) before a word containing "conftest.", or (3) at the end.
18695 # Note that $ac_compile itself does not contain backslashes and begins
18696 # with a dollar sign (not a hyphen), so the echo should work correctly.
18697 # The option is referenced via a variable to avoid confusing sed.
18698 lt_compile=`echo "$ac_compile" | $SED \
18699 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18701 -e 's:$: $lt_compiler_flag:'`
18702 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18703 (eval "$lt_compile" 2>conftest.err)
18704 ac_status=$?
18705 cat conftest.err >&5
18706 echo "$as_me:__oline__: \$? = $ac_status" >&5
18707 if (exit $ac_status) && test -s "$ac_outfile"; then
18708 # The compiler can only warn and ignore the option if not recognized
18709 # So say no if there are warnings other than the usual output.
18710 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18711 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18712 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18713 lt_cv_prog_compiler_pic_works_CXX=yes
18714 fi
18715 fi
18716 $RM conftest*
18717
18718 fi
18719 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18720 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18721
18722 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18723 case $lt_prog_compiler_pic_CXX in
18724 "" | " "*) ;;
18725 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18726 esac
18727 else
18728 lt_prog_compiler_pic_CXX=
18729 lt_prog_compiler_can_build_shared_CXX=no
18730 fi
18731
18732 fi
18733
18734
18735
18736 #
18737 # Check to make sure the static flag actually works.
18738 #
18739 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18740 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18741 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18742 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
18743 $as_echo_n "(cached) " >&6
18744 else
18745 lt_cv_prog_compiler_static_works_CXX=no
18746 save_LDFLAGS="$LDFLAGS"
18747 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18748 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18749 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18750 # The linker can only warn and ignore the option if not recognized
18751 # So say no if there are warnings
18752 if test -s conftest.err; then
18753 # Append any errors to the config.log.
18754 cat conftest.err 1>&5
18755 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18756 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18757 if diff conftest.exp conftest.er2 >/dev/null; then
18758 lt_cv_prog_compiler_static_works_CXX=yes
18759 fi
18760 else
18761 lt_cv_prog_compiler_static_works_CXX=yes
18762 fi
18763 fi
18764 $RM -r conftest*
18765 LDFLAGS="$save_LDFLAGS"
18766
18767 fi
18768 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18769 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18770
18771 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18772 :
18773 else
18774 lt_prog_compiler_static_CXX=
18775 fi
18776
18777
18778
18779
18780 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18781 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18782 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18783 $as_echo_n "(cached) " >&6
18784 else
18785 lt_cv_prog_compiler_c_o_CXX=no
18786 $RM -r conftest 2>/dev/null
18787 mkdir conftest
18788 cd conftest
18789 mkdir out
18790 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18791
18792 lt_compiler_flag="-o out/conftest2.$ac_objext"
18793 # Insert the option either (1) after the last *FLAGS variable, or
18794 # (2) before a word containing "conftest.", or (3) at the end.
18795 # Note that $ac_compile itself does not contain backslashes and begins
18796 # with a dollar sign (not a hyphen), so the echo should work correctly.
18797 lt_compile=`echo "$ac_compile" | $SED \
18798 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18799 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18800 -e 's:$: $lt_compiler_flag:'`
18801 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18802 (eval "$lt_compile" 2>out/conftest.err)
18803 ac_status=$?
18804 cat out/conftest.err >&5
18805 echo "$as_me:__oline__: \$? = $ac_status" >&5
18806 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18807 then
18808 # The compiler can only warn and ignore the option if not recognized
18809 # So say no if there are warnings
18810 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18811 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18812 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18813 lt_cv_prog_compiler_c_o_CXX=yes
18814 fi
18815 fi
18816 chmod u+w . 2>&5
18817 $RM conftest*
18818 # SGI C++ compiler will create directory out/ii_files/ for
18819 # template instantiation
18820 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18821 $RM out/* && rmdir out
18822 cd ..
18823 $RM -r conftest
18824 $RM conftest*
18825
18826 fi
18827 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18828 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18829
18830
18831
18832 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18833 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18834 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18835 $as_echo_n "(cached) " >&6
18836 else
18837 lt_cv_prog_compiler_c_o_CXX=no
18838 $RM -r conftest 2>/dev/null
18839 mkdir conftest
18840 cd conftest
18841 mkdir out
18842 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18843
18844 lt_compiler_flag="-o out/conftest2.$ac_objext"
18845 # Insert the option either (1) after the last *FLAGS variable, or
18846 # (2) before a word containing "conftest.", or (3) at the end.
18847 # Note that $ac_compile itself does not contain backslashes and begins
18848 # with a dollar sign (not a hyphen), so the echo should work correctly.
18849 lt_compile=`echo "$ac_compile" | $SED \
18850 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18852 -e 's:$: $lt_compiler_flag:'`
18853 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18854 (eval "$lt_compile" 2>out/conftest.err)
18855 ac_status=$?
18856 cat out/conftest.err >&5
18857 echo "$as_me:__oline__: \$? = $ac_status" >&5
18858 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18859 then
18860 # The compiler can only warn and ignore the option if not recognized
18861 # So say no if there are warnings
18862 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18863 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18864 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18865 lt_cv_prog_compiler_c_o_CXX=yes
18866 fi
18867 fi
18868 chmod u+w . 2>&5
18869 $RM conftest*
18870 # SGI C++ compiler will create directory out/ii_files/ for
18871 # template instantiation
18872 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18873 $RM out/* && rmdir out
18874 cd ..
18875 $RM -r conftest
18876 $RM conftest*
18877
18878 fi
18879 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18880 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18881
18882
18883
18884
18885 hard_links="nottested"
18886 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18887 # do not overwrite the value of need_locks provided by the user
18888 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18889 $as_echo_n "checking if we can lock with hard links... " >&6; }
18890 hard_links=yes
18891 $RM conftest*
18892 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18893 touch conftest.a
18894 ln conftest.a conftest.b 2>&5 || hard_links=no
18895 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18896 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
18897 $as_echo "$hard_links" >&6; }
18898 if test "$hard_links" = no; then
18899 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18900 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18901 need_locks=warn
18902 fi
18903 else
18904 need_locks=no
18905 fi
18906
18907
18908
18909 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18910 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18911
18912 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18913 case $host_os in
18914 aix[4-9]*)
18915 # If we're using GNU nm, then we don't want the "-C" option.
18916 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18917 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18918 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'
18919 else
18920 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'
18921 fi
18922 ;;
18923 pw32*)
18924 export_symbols_cmds_CXX="$ltdll_cmds"
18925 ;;
18926 cygwin* | mingw* | cegcc*)
18927 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'
18928 ;;
18929 linux* | k*bsd*-gnu)
18930 link_all_deplibs_CXX=no
18931 ;;
18932 *)
18933 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18934 ;;
18935 esac
18936 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18937
18938 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18939 $as_echo "$ld_shlibs_CXX" >&6; }
18940 test "$ld_shlibs_CXX" = no && can_build_shared=no
18941
18942 with_gnu_ld_CXX=$with_gnu_ld
18943
18944
18945
18946
18947
18948
18949 #
18950 # Do we need to explicitly link libc?
18951 #
18952 case "x$archive_cmds_need_lc_CXX" in
18953 x|xyes)
18954 # Assume -lc should be added
18955 archive_cmds_need_lc_CXX=yes
18956
18957 if test "$enable_shared" = yes && test "$GCC" = yes; then
18958 case $archive_cmds_CXX in
18959 *'~'*)
18960 # FIXME: we may have to deal with multi-command sequences.
18961 ;;
18962 '$CC '*)
18963 # Test whether the compiler implicitly links with -lc since on some
18964 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18965 # to ld, don't add -lc before -lgcc.
18966 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18967 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18968 $RM conftest*
18969 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18970
18971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18972 (eval $ac_compile) 2>&5
18973 ac_status=$?
18974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); } 2>conftest.err; then
18976 soname=conftest
18977 lib=conftest
18978 libobjs=conftest.$ac_objext
18979 deplibs=
18980 wl=$lt_prog_compiler_wl_CXX
18981 pic_flag=$lt_prog_compiler_pic_CXX
18982 compiler_flags=-v
18983 linker_flags=-v
18984 verstring=
18985 output_objdir=.
18986 libname=conftest
18987 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18988 allow_undefined_flag_CXX=
18989 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
18990 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18991 ac_status=$?
18992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); }
18994 then
18995 archive_cmds_need_lc_CXX=no
18996 else
18997 archive_cmds_need_lc_CXX=yes
18998 fi
18999 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19000 else
19001 cat conftest.err 1>&5
19002 fi
19003 $RM conftest*
19004 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19005 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
19006 ;;
19007 esac
19008 fi
19009 ;;
19010 esac
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19076 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19077
19078 library_names_spec=
19079 libname_spec='lib$name'
19080 soname_spec=
19081 shrext_cmds=".so"
19082 postinstall_cmds=
19083 postuninstall_cmds=
19084 finish_cmds=
19085 finish_eval=
19086 shlibpath_var=
19087 shlibpath_overrides_runpath=unknown
19088 version_type=none
19089 dynamic_linker="$host_os ld.so"
19090 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19091 need_lib_prefix=unknown
19092 hardcode_into_libs=no
19093
19094 # when you set need_version to no, make sure it does not cause -set_version
19095 # flags to be left without arguments
19096 need_version=unknown
19097
19098 case $host_os in
19099 aix3*)
19100 version_type=linux
19101 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19102 shlibpath_var=LIBPATH
19103
19104 # AIX 3 has no versioning support, so we append a major version to the name.
19105 soname_spec='${libname}${release}${shared_ext}$major'
19106 ;;
19107
19108 aix[4-9]*)
19109 version_type=linux
19110 need_lib_prefix=no
19111 need_version=no
19112 hardcode_into_libs=yes
19113 if test "$host_cpu" = ia64; then
19114 # AIX 5 supports IA64
19115 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19116 shlibpath_var=LD_LIBRARY_PATH
19117 else
19118 # With GCC up to 2.95.x, collect2 would create an import file
19119 # for dependence libraries. The import file would start with
19120 # the line `#! .'. This would cause the generated library to
19121 # depend on `.', always an invalid library. This was fixed in
19122 # development snapshots of GCC prior to 3.0.
19123 case $host_os in
19124 aix4 | aix4.[01] | aix4.[01].*)
19125 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19126 echo ' yes '
19127 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19128 :
19129 else
19130 can_build_shared=no
19131 fi
19132 ;;
19133 esac
19134 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19135 # soname into executable. Probably we can add versioning support to
19136 # collect2, so additional links can be useful in future.
19137 if test "$aix_use_runtimelinking" = yes; then
19138 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19139 # instead of lib<name>.a to let people know that these are not
19140 # typical AIX shared libraries.
19141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19142 else
19143 # We preserve .a as extension for shared libraries through AIX4.2
19144 # and later when we are not doing run time linking.
19145 library_names_spec='${libname}${release}.a $libname.a'
19146 soname_spec='${libname}${release}${shared_ext}$major'
19147 fi
19148 shlibpath_var=LIBPATH
19149 fi
19150 ;;
19151
19152 amigaos*)
19153 case $host_cpu in
19154 powerpc)
19155 # Since July 2007 AmigaOS4 officially supports .so libraries.
19156 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19158 ;;
19159 m68k)
19160 library_names_spec='$libname.ixlibrary $libname.a'
19161 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19162 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'
19163 ;;
19164 esac
19165 ;;
19166
19167 beos*)
19168 library_names_spec='${libname}${shared_ext}'
19169 dynamic_linker="$host_os ld.so"
19170 shlibpath_var=LIBRARY_PATH
19171 ;;
19172
19173 bsdi[45]*)
19174 version_type=linux
19175 need_version=no
19176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19177 soname_spec='${libname}${release}${shared_ext}$major'
19178 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19179 shlibpath_var=LD_LIBRARY_PATH
19180 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19181 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19182 # the default ld.so.conf also contains /usr/contrib/lib and
19183 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19184 # libtool to hard-code these into programs
19185 ;;
19186
19187 cygwin* | mingw* | pw32* | cegcc*)
19188 version_type=windows
19189 shrext_cmds=".dll"
19190 need_version=no
19191 need_lib_prefix=no
19192
19193 case $GCC,$host_os in
19194 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
19195 library_names_spec='$libname.dll.a'
19196 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19197 postinstall_cmds='base_file=`basename \${file}`~
19198 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19199 dldir=$destdir/`dirname \$dlpath`~
19200 test -d \$dldir || mkdir -p \$dldir~
19201 $install_prog $dir/$dlname \$dldir/$dlname~
19202 chmod a+x \$dldir/$dlname~
19203 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19204 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19205 fi'
19206 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19207 dlpath=$dir/\$dldll~
19208 $RM \$dlpath'
19209 shlibpath_overrides_runpath=yes
19210
19211 case $host_os in
19212 cygwin*)
19213 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19214 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19215 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19216 ;;
19217 mingw* | cegcc*)
19218 # MinGW DLLs use traditional 'lib' prefix
19219 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19220 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19221 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19222 # It is most probably a Windows format PATH printed by
19223 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19224 # path with ; separators, and with drive letters. We can handle the
19225 # drive letters (cygwin fileutils understands them), so leave them,
19226 # especially as we might pass files found there to a mingw objdump,
19227 # which wouldn't understand a cygwinified path. Ahh.
19228 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19229 else
19230 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19231 fi
19232 ;;
19233 pw32*)
19234 # pw32 DLLs use 'pw' prefix rather than 'lib'
19235 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19236 ;;
19237 esac
19238 ;;
19239
19240 *)
19241 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19242 ;;
19243 esac
19244 dynamic_linker='Win32 ld.exe'
19245 # FIXME: first we should search . and the directory the executable is in
19246 shlibpath_var=PATH
19247 ;;
19248
19249 darwin* | rhapsody*)
19250 dynamic_linker="$host_os dyld"
19251 version_type=darwin
19252 need_lib_prefix=no
19253 need_version=no
19254 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19255 soname_spec='${libname}${release}${major}$shared_ext'
19256 shlibpath_overrides_runpath=yes
19257 shlibpath_var=DYLD_LIBRARY_PATH
19258 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19259
19260 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19261 ;;
19262
19263 dgux*)
19264 version_type=linux
19265 need_lib_prefix=no
19266 need_version=no
19267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19268 soname_spec='${libname}${release}${shared_ext}$major'
19269 shlibpath_var=LD_LIBRARY_PATH
19270 ;;
19271
19272 freebsd1*)
19273 dynamic_linker=no
19274 ;;
19275
19276 freebsd* | dragonfly*)
19277 # DragonFly does not have aout. When/if they implement a new
19278 # versioning mechanism, adjust this.
19279 if test -x /usr/bin/objformat; then
19280 objformat=`/usr/bin/objformat`
19281 else
19282 case $host_os in
19283 freebsd[123]*) objformat=aout ;;
19284 *) objformat=elf ;;
19285 esac
19286 fi
19287 version_type=freebsd-$objformat
19288 case $version_type in
19289 freebsd-elf*)
19290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19291 need_version=no
19292 need_lib_prefix=no
19293 ;;
19294 freebsd-*)
19295 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19296 need_version=yes
19297 ;;
19298 esac
19299 shlibpath_var=LD_LIBRARY_PATH
19300 case $host_os in
19301 freebsd2*)
19302 shlibpath_overrides_runpath=yes
19303 ;;
19304 freebsd3.[01]* | freebsdelf3.[01]*)
19305 shlibpath_overrides_runpath=yes
19306 hardcode_into_libs=yes
19307 ;;
19308 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19309 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19310 shlibpath_overrides_runpath=no
19311 hardcode_into_libs=yes
19312 ;;
19313 *) # from 4.6 on, and DragonFly
19314 shlibpath_overrides_runpath=yes
19315 hardcode_into_libs=yes
19316 ;;
19317 esac
19318 ;;
19319
19320 gnu*)
19321 version_type=linux
19322 need_lib_prefix=no
19323 need_version=no
19324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19325 soname_spec='${libname}${release}${shared_ext}$major'
19326 shlibpath_var=LD_LIBRARY_PATH
19327 hardcode_into_libs=yes
19328 ;;
19329
19330 hpux9* | hpux10* | hpux11*)
19331 # Give a soname corresponding to the major version so that dld.sl refuses to
19332 # link against other versions.
19333 version_type=sunos
19334 need_lib_prefix=no
19335 need_version=no
19336 case $host_cpu in
19337 ia64*)
19338 shrext_cmds='.so'
19339 hardcode_into_libs=yes
19340 dynamic_linker="$host_os dld.so"
19341 shlibpath_var=LD_LIBRARY_PATH
19342 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19344 soname_spec='${libname}${release}${shared_ext}$major'
19345 if test "X$HPUX_IA64_MODE" = X32; then
19346 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19347 else
19348 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19349 fi
19350 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19351 ;;
19352 hppa*64*)
19353 shrext_cmds='.sl'
19354 hardcode_into_libs=yes
19355 dynamic_linker="$host_os dld.sl"
19356 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19357 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19359 soname_spec='${libname}${release}${shared_ext}$major'
19360 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19361 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19362 ;;
19363 *)
19364 shrext_cmds='.sl'
19365 dynamic_linker="$host_os dld.sl"
19366 shlibpath_var=SHLIB_PATH
19367 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19369 soname_spec='${libname}${release}${shared_ext}$major'
19370 ;;
19371 esac
19372 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19373 postinstall_cmds='chmod 555 $lib'
19374 ;;
19375
19376 interix[3-9]*)
19377 version_type=linux
19378 need_lib_prefix=no
19379 need_version=no
19380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19381 soname_spec='${libname}${release}${shared_ext}$major'
19382 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19383 shlibpath_var=LD_LIBRARY_PATH
19384 shlibpath_overrides_runpath=no
19385 hardcode_into_libs=yes
19386 ;;
19387
19388 irix5* | irix6* | nonstopux*)
19389 case $host_os in
19390 nonstopux*) version_type=nonstopux ;;
19391 *)
19392 if test "$lt_cv_prog_gnu_ld" = yes; then
19393 version_type=linux
19394 else
19395 version_type=irix
19396 fi ;;
19397 esac
19398 need_lib_prefix=no
19399 need_version=no
19400 soname_spec='${libname}${release}${shared_ext}$major'
19401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19402 case $host_os in
19403 irix5* | nonstopux*)
19404 libsuff= shlibsuff=
19405 ;;
19406 *)
19407 case $LD in # libtool.m4 will add one of these switches to LD
19408 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19409 libsuff= shlibsuff= libmagic=32-bit;;
19410 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19411 libsuff=32 shlibsuff=N32 libmagic=N32;;
19412 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19413 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19414 *) libsuff= shlibsuff= libmagic=never-match;;
19415 esac
19416 ;;
19417 esac
19418 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19419 shlibpath_overrides_runpath=no
19420 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19421 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19422 hardcode_into_libs=yes
19423 ;;
19424
19425 # No shared lib support for Linux oldld, aout, or coff.
19426 linux*oldld* | linux*aout* | linux*coff*)
19427 dynamic_linker=no
19428 ;;
19429
19430 # This must be Linux ELF.
19431 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19432 version_type=linux
19433 need_lib_prefix=no
19434 need_version=no
19435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19436 soname_spec='${libname}${release}${shared_ext}$major'
19437 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19438 shlibpath_var=LD_LIBRARY_PATH
19439 shlibpath_overrides_runpath=no
19440 # Some binutils ld are patched to set DT_RUNPATH
19441 save_LDFLAGS=$LDFLAGS
19442 save_libdir=$libdir
19443 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19444 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19445 cat >conftest.$ac_ext <<_ACEOF
19446 /* confdefs.h. */
19447 _ACEOF
19448 cat confdefs.h >>conftest.$ac_ext
19449 cat >>conftest.$ac_ext <<_ACEOF
19450 /* end confdefs.h. */
19451
19452 int
19453 main ()
19454 {
19455
19456 ;
19457 return 0;
19458 }
19459 _ACEOF
19460 rm -f conftest.$ac_objext conftest$ac_exeext
19461 if { (ac_try="$ac_link"
19462 case "(($ac_try" in
19463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19464 *) ac_try_echo=$ac_try;;
19465 esac
19466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19467 $as_echo "$ac_try_echo") >&5
19468 (eval "$ac_link") 2>conftest.er1
19469 ac_status=$?
19470 grep -v '^ *+' conftest.er1 >conftest.err
19471 rm -f conftest.er1
19472 cat conftest.err >&5
19473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); } && {
19475 test -z "$ac_cxx_werror_flag" ||
19476 test ! -s conftest.err
19477 } && test -s conftest$ac_exeext && {
19478 test "$cross_compiling" = yes ||
19479 $as_test_x conftest$ac_exeext
19480 }; then
19481 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
19482 shlibpath_overrides_runpath=yes
19483 fi
19484
19485 else
19486 $as_echo "$as_me: failed program was:" >&5
19487 sed 's/^/| /' conftest.$ac_ext >&5
19488
19489
19490 fi
19491
19492 rm -rf conftest.dSYM
19493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19494 conftest$ac_exeext conftest.$ac_ext
19495 LDFLAGS=$save_LDFLAGS
19496 libdir=$save_libdir
19497
19498 # This implies no fast_install, which is unacceptable.
19499 # Some rework will be needed to allow for fast_install
19500 # before this can be enabled.
19501 hardcode_into_libs=yes
19502
19503 # Append ld.so.conf contents to the search path
19504 if test -f /etc/ld.so.conf; then
19505 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' ' '`
19506 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19507 fi
19508
19509 # We used to test for /lib/ld.so.1 and disable shared libraries on
19510 # powerpc, because MkLinux only supported shared libraries with the
19511 # GNU dynamic linker. Since this was broken with cross compilers,
19512 # most powerpc-linux boxes support dynamic linking these days and
19513 # people can always --disable-shared, the test was removed, and we
19514 # assume the GNU/Linux dynamic linker is in use.
19515 dynamic_linker='GNU/Linux ld.so'
19516 ;;
19517
19518 netbsdelf*-gnu)
19519 version_type=linux
19520 need_lib_prefix=no
19521 need_version=no
19522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19523 soname_spec='${libname}${release}${shared_ext}$major'
19524 shlibpath_var=LD_LIBRARY_PATH
19525 shlibpath_overrides_runpath=no
19526 hardcode_into_libs=yes
19527 dynamic_linker='NetBSD ld.elf_so'
19528 ;;
19529
19530 netbsd*)
19531 version_type=sunos
19532 need_lib_prefix=no
19533 need_version=no
19534 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19536 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19537 dynamic_linker='NetBSD (a.out) ld.so'
19538 else
19539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19540 soname_spec='${libname}${release}${shared_ext}$major'
19541 dynamic_linker='NetBSD ld.elf_so'
19542 fi
19543 shlibpath_var=LD_LIBRARY_PATH
19544 shlibpath_overrides_runpath=yes
19545 hardcode_into_libs=yes
19546 ;;
19547
19548 newsos6)
19549 version_type=linux
19550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19551 shlibpath_var=LD_LIBRARY_PATH
19552 shlibpath_overrides_runpath=yes
19553 ;;
19554
19555 *nto* | *qnx*)
19556 version_type=qnx
19557 need_lib_prefix=no
19558 need_version=no
19559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19560 soname_spec='${libname}${release}${shared_ext}$major'
19561 shlibpath_var=LD_LIBRARY_PATH
19562 shlibpath_overrides_runpath=no
19563 hardcode_into_libs=yes
19564 dynamic_linker='ldqnx.so'
19565 ;;
19566
19567 openbsd*)
19568 version_type=sunos
19569 sys_lib_dlsearch_path_spec="/usr/lib"
19570 need_lib_prefix=no
19571 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19572 case $host_os in
19573 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19574 *) need_version=no ;;
19575 esac
19576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19577 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19578 shlibpath_var=LD_LIBRARY_PATH
19579 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19580 case $host_os in
19581 openbsd2.[89] | openbsd2.[89].*)
19582 shlibpath_overrides_runpath=no
19583 ;;
19584 *)
19585 shlibpath_overrides_runpath=yes
19586 ;;
19587 esac
19588 else
19589 shlibpath_overrides_runpath=yes
19590 fi
19591 ;;
19592
19593 os2*)
19594 libname_spec='$name'
19595 shrext_cmds=".dll"
19596 need_lib_prefix=no
19597 library_names_spec='$libname${shared_ext} $libname.a'
19598 dynamic_linker='OS/2 ld.exe'
19599 shlibpath_var=LIBPATH
19600 ;;
19601
19602 osf3* | osf4* | osf5*)
19603 version_type=osf
19604 need_lib_prefix=no
19605 need_version=no
19606 soname_spec='${libname}${release}${shared_ext}$major'
19607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19608 shlibpath_var=LD_LIBRARY_PATH
19609 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19610 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19611 ;;
19612
19613 rdos*)
19614 dynamic_linker=no
19615 ;;
19616
19617 solaris*)
19618 version_type=linux
19619 need_lib_prefix=no
19620 need_version=no
19621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19622 soname_spec='${libname}${release}${shared_ext}$major'
19623 shlibpath_var=LD_LIBRARY_PATH
19624 shlibpath_overrides_runpath=yes
19625 hardcode_into_libs=yes
19626 # ldd complains unless libraries are executable
19627 postinstall_cmds='chmod +x $lib'
19628 ;;
19629
19630 sunos4*)
19631 version_type=sunos
19632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19633 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19634 shlibpath_var=LD_LIBRARY_PATH
19635 shlibpath_overrides_runpath=yes
19636 if test "$with_gnu_ld" = yes; then
19637 need_lib_prefix=no
19638 fi
19639 need_version=yes
19640 ;;
19641
19642 sysv4 | sysv4.3*)
19643 version_type=linux
19644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19645 soname_spec='${libname}${release}${shared_ext}$major'
19646 shlibpath_var=LD_LIBRARY_PATH
19647 case $host_vendor in
19648 sni)
19649 shlibpath_overrides_runpath=no
19650 need_lib_prefix=no
19651 runpath_var=LD_RUN_PATH
19652 ;;
19653 siemens)
19654 need_lib_prefix=no
19655 ;;
19656 motorola)
19657 need_lib_prefix=no
19658 need_version=no
19659 shlibpath_overrides_runpath=no
19660 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19661 ;;
19662 esac
19663 ;;
19664
19665 sysv4*MP*)
19666 if test -d /usr/nec ;then
19667 version_type=linux
19668 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19669 soname_spec='$libname${shared_ext}.$major'
19670 shlibpath_var=LD_LIBRARY_PATH
19671 fi
19672 ;;
19673
19674 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19675 version_type=freebsd-elf
19676 need_lib_prefix=no
19677 need_version=no
19678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19679 soname_spec='${libname}${release}${shared_ext}$major'
19680 shlibpath_var=LD_LIBRARY_PATH
19681 shlibpath_overrides_runpath=yes
19682 hardcode_into_libs=yes
19683 if test "$with_gnu_ld" = yes; then
19684 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19685 else
19686 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19687 case $host_os in
19688 sco3.2v5*)
19689 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19690 ;;
19691 esac
19692 fi
19693 sys_lib_dlsearch_path_spec='/usr/lib'
19694 ;;
19695
19696 tpf*)
19697 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19698 version_type=linux
19699 need_lib_prefix=no
19700 need_version=no
19701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19702 shlibpath_var=LD_LIBRARY_PATH
19703 shlibpath_overrides_runpath=no
19704 hardcode_into_libs=yes
19705 ;;
19706
19707 uts4*)
19708 version_type=linux
19709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19710 soname_spec='${libname}${release}${shared_ext}$major'
19711 shlibpath_var=LD_LIBRARY_PATH
19712 ;;
19713
19714 *)
19715 dynamic_linker=no
19716 ;;
19717 esac
19718 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19719 $as_echo "$dynamic_linker" >&6; }
19720 test "$dynamic_linker" = no && can_build_shared=no
19721
19722 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19723 if test "$GCC" = yes; then
19724 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19725 fi
19726
19727 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19728 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19729 fi
19730 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19731 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19732 fi
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19770 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19771 hardcode_action_CXX=
19772 if test -n "$hardcode_libdir_flag_spec_CXX" ||
19773 test -n "$runpath_var_CXX" ||
19774 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19775
19776 # We can hardcode non-existent directories.
19777 if test "$hardcode_direct_CXX" != no &&
19778 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19779 # have to relink, otherwise we might link with an installed library
19780 # when we should be linking with a yet-to-be-installed one
19781 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19782 test "$hardcode_minus_L_CXX" != no; then
19783 # Linking always hardcodes the temporary library directory.
19784 hardcode_action_CXX=relink
19785 else
19786 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19787 hardcode_action_CXX=immediate
19788 fi
19789 else
19790 # We cannot hardcode anything, or else we can only hardcode existing
19791 # directories.
19792 hardcode_action_CXX=unsupported
19793 fi
19794 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
19795 $as_echo "$hardcode_action_CXX" >&6; }
19796
19797 if test "$hardcode_action_CXX" = relink ||
19798 test "$inherit_rpath_CXX" = yes; then
19799 # Fast installation is not supported
19800 enable_fast_install=no
19801 elif test "$shlibpath_overrides_runpath" = yes ||
19802 test "$enable_shared" = no; then
19803 # Fast installation is not necessary
19804 enable_fast_install=needless
19805 fi
19806
19807
19808
19809
19810
19811
19812
19813 fi # test -n "$compiler"
19814
19815 CC=$lt_save_CC
19816 LDCXX=$LD
19817 LD=$lt_save_LD
19818 GCC=$lt_save_GCC
19819 with_gnu_ld=$lt_save_with_gnu_ld
19820 lt_cv_path_LDCXX=$lt_cv_path_LD
19821 lt_cv_path_LD=$lt_save_path_LD
19822 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19823 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19824 fi # test "$_lt_caught_CXX_error" != yes
19825
19826 ac_ext=c
19827 ac_cpp='$CPP $CPPFLAGS'
19828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19831
19832
19833
19834
19835
19836
19837
19838
19839
19840
19841
19842
19843
19844 ac_config_commands="$ac_config_commands libtool"
19845
19846
19847
19848
19849 # Only expand once:
19850
19851
19852
19853
19854 if test "x$glib" = "xyes"; then
19855 EVENT_GLIB_TRUE=
19856 EVENT_GLIB_FALSE='#'
19857 else
19858 EVENT_GLIB_TRUE='#'
19859 EVENT_GLIB_FALSE=
19860 fi
19861
19862 if test "x$glib" = "xno"; then
19863 SUPPORT_GLIB_TRUE=
19864 SUPPORT_GLIB_FALSE='#'
19865 else
19866 SUPPORT_GLIB_TRUE='#'
19867 SUPPORT_GLIB_FALSE=
19868 fi
19869
19870 if test "x$glib" = "xno"; then
19871 SUPPORT_EZXML_TRUE=
19872 SUPPORT_EZXML_FALSE='#'
19873 else
19874 SUPPORT_EZXML_TRUE='#'
19875 SUPPORT_EZXML_FALSE=
19876 fi
19877
19878
19879 if test "x${ZLIB_CFLAGS}" = "x" -a "x${ZLIB_LIBS}" = "x"; then
19880 if test "${ac_cv_header_zlib_h+set}" = set; then
19881 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
19882 $as_echo_n "checking for zlib.h... " >&6; }
19883 if test "${ac_cv_header_zlib_h+set}" = set; then
19884 $as_echo_n "(cached) " >&6
19885 fi
19886 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19887 $as_echo "$ac_cv_header_zlib_h" >&6; }
19888 else
19889 # Is the header compilable?
19890 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
19891 $as_echo_n "checking zlib.h usability... " >&6; }
19892 cat >conftest.$ac_ext <<_ACEOF
19893 /* confdefs.h. */
19894 _ACEOF
19895 cat confdefs.h >>conftest.$ac_ext
19896 cat >>conftest.$ac_ext <<_ACEOF
19897 /* end confdefs.h. */
19898 $ac_includes_default
19899 @%:@include <zlib.h>
19900 _ACEOF
19901 rm -f conftest.$ac_objext
19902 if { (ac_try="$ac_compile"
19903 case "(($ac_try" in
19904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19905 *) ac_try_echo=$ac_try;;
19906 esac
19907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19908 $as_echo "$ac_try_echo") >&5
19909 (eval "$ac_compile") 2>conftest.er1
19910 ac_status=$?
19911 grep -v '^ *+' conftest.er1 >conftest.err
19912 rm -f conftest.er1
19913 cat conftest.err >&5
19914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); } && {
19916 test -z "$ac_c_werror_flag" ||
19917 test ! -s conftest.err
19918 } && test -s conftest.$ac_objext; then
19919 ac_header_compiler=yes
19920 else
19921 $as_echo "$as_me: failed program was:" >&5
19922 sed 's/^/| /' conftest.$ac_ext >&5
19923
19924 ac_header_compiler=no
19925 fi
19926
19927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19928 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19929 $as_echo "$ac_header_compiler" >&6; }
19930
19931 # Is the header present?
19932 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
19933 $as_echo_n "checking zlib.h presence... " >&6; }
19934 cat >conftest.$ac_ext <<_ACEOF
19935 /* confdefs.h. */
19936 _ACEOF
19937 cat confdefs.h >>conftest.$ac_ext
19938 cat >>conftest.$ac_ext <<_ACEOF
19939 /* end confdefs.h. */
19940 @%:@include <zlib.h>
19941 _ACEOF
19942 if { (ac_try="$ac_cpp conftest.$ac_ext"
19943 case "(($ac_try" in
19944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19945 *) ac_try_echo=$ac_try;;
19946 esac
19947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19948 $as_echo "$ac_try_echo") >&5
19949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19950 ac_status=$?
19951 grep -v '^ *+' conftest.er1 >conftest.err
19952 rm -f conftest.er1
19953 cat conftest.err >&5
19954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955 (exit $ac_status); } >/dev/null && {
19956 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19957 test ! -s conftest.err
19958 }; then
19959 ac_header_preproc=yes
19960 else
19961 $as_echo "$as_me: failed program was:" >&5
19962 sed 's/^/| /' conftest.$ac_ext >&5
19963
19964 ac_header_preproc=no
19965 fi
19966
19967 rm -f conftest.err conftest.$ac_ext
19968 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19969 $as_echo "$ac_header_preproc" >&6; }
19970
19971 # So? What about this header?
19972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19973 yes:no: )
19974 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
19975 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19976 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
19977 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
19978 ac_header_preproc=yes
19979 ;;
19980 no:yes:* )
19981 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
19982 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
19983 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
19984 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
19985 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
19986 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
19987 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
19988 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
19989 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
19990 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
19991 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
19992 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
19993
19994 ;;
19995 esac
19996 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
19997 $as_echo_n "checking for zlib.h... " >&6; }
19998 if test "${ac_cv_header_zlib_h+set}" = set; then
19999 $as_echo_n "(cached) " >&6
20000 else
20001 ac_cv_header_zlib_h=$ac_header_preproc
20002 fi
20003 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20004 $as_echo "$ac_cv_header_zlib_h" >&6; }
20005
20006 fi
20007 if test $ac_cv_header_zlib_h = yes; then
20008
20009 cat >>confdefs.h <<\_ACEOF
20010 @%:@define HAVE_ZLIB /**/
20011 _ACEOF
20012
20013 ZLIB_LIBS="-lz"
20014 zlib=yes
20015 else
20016 ZLIB_CFLAGS="-I\$(top_srcdir)/navit/support/zlib"
20017 ZLIB_LIBS="-L\$(top_builddir)/navit/support/zlib -lsupport_zlib"
20018 zlib=no
20019
20020 fi
20021
20022
20023 else
20024 zlib=yes
20025 fi
20026 if test "x$zlib" = "xno"; then
20027 SUPPORT_ZLIB_TRUE=
20028 SUPPORT_ZLIB_FALSE='#'
20029 else
20030 SUPPORT_ZLIB_TRUE='#'
20031 SUPPORT_ZLIB_FALSE=
20032 fi
20033
20034
20035
20036
20037 if test "${ac_cv_header_sys_socket_h+set}" = set; then
20038 { $as_echo "$as_me:$LINENO: checking for sys/socket.h" >&5
20039 $as_echo_n "checking for sys/socket.h... " >&6; }
20040 if test "${ac_cv_header_sys_socket_h+set}" = set; then
20041 $as_echo_n "(cached) " >&6
20042 fi
20043 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
20044 $as_echo "$ac_cv_header_sys_socket_h" >&6; }
20045 else
20046 # Is the header compilable?
20047 { $as_echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
20048 $as_echo_n "checking sys/socket.h usability... " >&6; }
20049 cat >conftest.$ac_ext <<_ACEOF
20050 /* confdefs.h. */
20051 _ACEOF
20052 cat confdefs.h >>conftest.$ac_ext
20053 cat >>conftest.$ac_ext <<_ACEOF
20054 /* end confdefs.h. */
20055 $ac_includes_default
20056 @%:@include <sys/socket.h>
20057 _ACEOF
20058 rm -f conftest.$ac_objext
20059 if { (ac_try="$ac_compile"
20060 case "(($ac_try" in
20061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20062 *) ac_try_echo=$ac_try;;
20063 esac
20064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20065 $as_echo "$ac_try_echo") >&5
20066 (eval "$ac_compile") 2>conftest.er1
20067 ac_status=$?
20068 grep -v '^ *+' conftest.er1 >conftest.err
20069 rm -f conftest.er1
20070 cat conftest.err >&5
20071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072 (exit $ac_status); } && {
20073 test -z "$ac_c_werror_flag" ||
20074 test ! -s conftest.err
20075 } && test -s conftest.$ac_objext; then
20076 ac_header_compiler=yes
20077 else
20078 $as_echo "$as_me: failed program was:" >&5
20079 sed 's/^/| /' conftest.$ac_ext >&5
20080
20081 ac_header_compiler=no
20082 fi
20083
20084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20085 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20086 $as_echo "$ac_header_compiler" >&6; }
20087
20088 # Is the header present?
20089 { $as_echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
20090 $as_echo_n "checking sys/socket.h presence... " >&6; }
20091 cat >conftest.$ac_ext <<_ACEOF
20092 /* confdefs.h. */
20093 _ACEOF
20094 cat confdefs.h >>conftest.$ac_ext
20095 cat >>conftest.$ac_ext <<_ACEOF
20096 /* end confdefs.h. */
20097 @%:@include <sys/socket.h>
20098 _ACEOF
20099 if { (ac_try="$ac_cpp conftest.$ac_ext"
20100 case "(($ac_try" in
20101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20102 *) ac_try_echo=$ac_try;;
20103 esac
20104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20105 $as_echo "$ac_try_echo") >&5
20106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20107 ac_status=$?
20108 grep -v '^ *+' conftest.er1 >conftest.err
20109 rm -f conftest.er1
20110 cat conftest.err >&5
20111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); } >/dev/null && {
20113 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20114 test ! -s conftest.err
20115 }; then
20116 ac_header_preproc=yes
20117 else
20118 $as_echo "$as_me: failed program was:" >&5
20119 sed 's/^/| /' conftest.$ac_ext >&5
20120
20121 ac_header_preproc=no
20122 fi
20123
20124 rm -f conftest.err conftest.$ac_ext
20125 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20126 $as_echo "$ac_header_preproc" >&6; }
20127
20128 # So? What about this header?
20129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20130 yes:no: )
20131 { $as_echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
20132 $as_echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20133 { $as_echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5
20134 $as_echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;}
20135 ac_header_preproc=yes
20136 ;;
20137 no:yes:* )
20138 { $as_echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
20139 $as_echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
20140 { $as_echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5
20141 $as_echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;}
20142 { $as_echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
20143 $as_echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
20144 { $as_echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5
20145 $as_echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
20146 { $as_echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
20147 $as_echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
20148 { $as_echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
20149 $as_echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
20150
20151 ;;
20152 esac
20153 { $as_echo "$as_me:$LINENO: checking for sys/socket.h" >&5
20154 $as_echo_n "checking for sys/socket.h... " >&6; }
20155 if test "${ac_cv_header_sys_socket_h+set}" = set; then
20156 $as_echo_n "(cached) " >&6
20157 else
20158 ac_cv_header_sys_socket_h=$ac_header_preproc
20159 fi
20160 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
20161 $as_echo "$ac_cv_header_sys_socket_h" >&6; }
20162
20163 fi
20164 if test $ac_cv_header_sys_socket_h = yes; then
20165
20166 cat >>confdefs.h <<\_ACEOF
20167 @%:@define HAVE_SOCKET /**/
20168 _ACEOF
20169
20170 fi
20171
20172
20173 if test "${ac_cv_header_winsock2_h+set}" = set; then
20174 { $as_echo "$as_me:$LINENO: checking for winsock2.h" >&5
20175 $as_echo_n "checking for winsock2.h... " >&6; }
20176 if test "${ac_cv_header_winsock2_h+set}" = set; then
20177 $as_echo_n "(cached) " >&6
20178 fi
20179 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
20180 $as_echo "$ac_cv_header_winsock2_h" >&6; }
20181 else
20182 # Is the header compilable?
20183 { $as_echo "$as_me:$LINENO: checking winsock2.h usability" >&5
20184 $as_echo_n "checking winsock2.h usability... " >&6; }
20185 cat >conftest.$ac_ext <<_ACEOF
20186 /* confdefs.h. */
20187 _ACEOF
20188 cat confdefs.h >>conftest.$ac_ext
20189 cat >>conftest.$ac_ext <<_ACEOF
20190 /* end confdefs.h. */
20191 $ac_includes_default
20192 @%:@include <winsock2.h>
20193 _ACEOF
20194 rm -f conftest.$ac_objext
20195 if { (ac_try="$ac_compile"
20196 case "(($ac_try" in
20197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20198 *) ac_try_echo=$ac_try;;
20199 esac
20200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20201 $as_echo "$ac_try_echo") >&5
20202 (eval "$ac_compile") 2>conftest.er1
20203 ac_status=$?
20204 grep -v '^ *+' conftest.er1 >conftest.err
20205 rm -f conftest.er1
20206 cat conftest.err >&5
20207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); } && {
20209 test -z "$ac_c_werror_flag" ||
20210 test ! -s conftest.err
20211 } && test -s conftest.$ac_objext; then
20212 ac_header_compiler=yes
20213 else
20214 $as_echo "$as_me: failed program was:" >&5
20215 sed 's/^/| /' conftest.$ac_ext >&5
20216
20217 ac_header_compiler=no
20218 fi
20219
20220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20221 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20222 $as_echo "$ac_header_compiler" >&6; }
20223
20224 # Is the header present?
20225 { $as_echo "$as_me:$LINENO: checking winsock2.h presence" >&5
20226 $as_echo_n "checking winsock2.h presence... " >&6; }
20227 cat >conftest.$ac_ext <<_ACEOF
20228 /* confdefs.h. */
20229 _ACEOF
20230 cat confdefs.h >>conftest.$ac_ext
20231 cat >>conftest.$ac_ext <<_ACEOF
20232 /* end confdefs.h. */
20233 @%:@include <winsock2.h>
20234 _ACEOF
20235 if { (ac_try="$ac_cpp conftest.$ac_ext"
20236 case "(($ac_try" in
20237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20238 *) ac_try_echo=$ac_try;;
20239 esac
20240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20241 $as_echo "$ac_try_echo") >&5
20242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20243 ac_status=$?
20244 grep -v '^ *+' conftest.er1 >conftest.err
20245 rm -f conftest.er1
20246 cat conftest.err >&5
20247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); } >/dev/null && {
20249 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20250 test ! -s conftest.err
20251 }; then
20252 ac_header_preproc=yes
20253 else
20254 $as_echo "$as_me: failed program was:" >&5
20255 sed 's/^/| /' conftest.$ac_ext >&5
20256
20257 ac_header_preproc=no
20258 fi
20259
20260 rm -f conftest.err conftest.$ac_ext
20261 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20262 $as_echo "$ac_header_preproc" >&6; }
20263
20264 # So? What about this header?
20265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20266 yes:no: )
20267 { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
20268 $as_echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20269 { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
20270 $as_echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
20271 ac_header_preproc=yes
20272 ;;
20273 no:yes:* )
20274 { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
20275 $as_echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
20276 { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5
20277 $as_echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;}
20278 { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
20279 $as_echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
20280 { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5
20281 $as_echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;}
20282 { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
20283 $as_echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
20284 { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
20285 $as_echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;}
20286
20287 ;;
20288 esac
20289 { $as_echo "$as_me:$LINENO: checking for winsock2.h" >&5
20290 $as_echo_n "checking for winsock2.h... " >&6; }
20291 if test "${ac_cv_header_winsock2_h+set}" = set; then
20292 $as_echo_n "(cached) " >&6
20293 else
20294 ac_cv_header_winsock2_h=$ac_header_preproc
20295 fi
20296 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
20297 $as_echo "$ac_cv_header_winsock2_h" >&6; }
20298
20299 fi
20300 if test $ac_cv_header_winsock2_h = yes; then
20301
20302 cat >>confdefs.h <<\_ACEOF
20303 @%:@define HAVE_WINSOCK /**/
20304 _ACEOF
20305
20306 fi
20307
20308
20309
20310 # gtk
20311
20312 pkg_failed=no
20313 { $as_echo "$as_me:$LINENO: checking for GTK2" >&5
20314 $as_echo_n "checking for GTK2... " >&6; }
20315
20316 if test -n "$PKG_CONFIG"; then
20317 if test -n "$GTK2_CFLAGS"; then
20318 pkg_cv_GTK2_CFLAGS="$GTK2_CFLAGS"
20319 else
20320 if test -n "$PKG_CONFIG" && \
20321 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
20322 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
20323 ac_status=$?
20324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325 (exit $ac_status); }; then
20326 pkg_cv_GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
20327 else
20328 pkg_failed=yes
20329 fi
20330 fi
20331 else
20332 pkg_failed=untried
20333 fi
20334 if test -n "$PKG_CONFIG"; then
20335 if test -n "$GTK2_LIBS"; then
20336 pkg_cv_GTK2_LIBS="$GTK2_LIBS"
20337 else
20338 if test -n "$PKG_CONFIG" && \
20339 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
20340 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
20341 ac_status=$?
20342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); }; then
20344 pkg_cv_GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
20345 else
20346 pkg_failed=yes
20347 fi
20348 fi
20349 else
20350 pkg_failed=untried
20351 fi
20352
20353
20354
20355 if test $pkg_failed = yes; then
20356
20357 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20358 _pkg_short_errors_supported=yes
20359 else
20360 _pkg_short_errors_supported=no
20361 fi
20362 if test $_pkg_short_errors_supported = yes; then
20363 GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
20364 else
20365 GTK2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
20366 fi
20367 # Put the nasty error message in config.log where it belongs
20368 echo "$GTK2_PKG_ERRORS" >&5
20369
20370 { $as_echo "$as_me:$LINENO: result: no" >&5
20371 $as_echo "no" >&6; }
20372 gtk2_pkgconfig=no
20373 elif test $pkg_failed = untried; then
20374 gtk2_pkgconfig=no
20375 else
20376 GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS
20377 GTK2_LIBS=$pkg_cv_GTK2_LIBS
20378 { $as_echo "$as_me:$LINENO: result: yes" >&5
20379 $as_echo "yes" >&6; }
20380 gtk2_pkgconfig=yes
20381 fi
20382 if test "x$gtk2_pkgconfig" = "xyes"; then
20383
20384 cat >>confdefs.h <<\_ACEOF
20385 @%:@define HAVE_GTK2 1
20386 _ACEOF
20387
20388 graphics_gtk_drawing_area=yes; graphics_gtk_drawing_area_reason="gtk+-2.0 present"
20389 gui_gtk=yes; gui_gtk_reason="gtk+-2.0 present"
20390 fi
20391
20392 # fsync
20393 { $as_echo "$as_me:$LINENO: checking for fsync" >&5
20394 $as_echo_n "checking for fsync... " >&6; }
20395 cat >conftest.$ac_ext <<_ACEOF
20396 /* confdefs.h. */
20397 _ACEOF
20398 cat confdefs.h >>conftest.$ac_ext
20399 cat >>conftest.$ac_ext <<_ACEOF
20400 /* end confdefs.h. */
20401 #include <unistd.h>
20402 int
20403 main ()
20404 {
20405 fsync(0);
20406 ;
20407 return 0;
20408 }
20409 _ACEOF
20410 rm -f conftest.$ac_objext conftest$ac_exeext
20411 if { (ac_try="$ac_link"
20412 case "(($ac_try" in
20413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20414 *) ac_try_echo=$ac_try;;
20415 esac
20416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20417 $as_echo "$ac_try_echo") >&5
20418 (eval "$ac_link") 2>conftest.er1
20419 ac_status=$?
20420 grep -v '^ *+' conftest.er1 >conftest.err
20421 rm -f conftest.er1
20422 cat conftest.err >&5
20423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424 (exit $ac_status); } && {
20425 test -z "$ac_c_werror_flag" ||
20426 test ! -s conftest.err
20427 } && test -s conftest$ac_exeext && {
20428 test "$cross_compiling" = yes ||
20429 $as_test_x conftest$ac_exeext
20430 }; then
20431 { $as_echo "$as_me:$LINENO: result: yes" >&5
20432 $as_echo "yes" >&6; };
20433 cat >>confdefs.h <<\_ACEOF
20434 @%:@define HAVE_FSYNC 1
20435 _ACEOF
20436
20437 else
20438 $as_echo "$as_me: failed program was:" >&5
20439 sed 's/^/| /' conftest.$ac_ext >&5
20440
20441 { $as_echo "$as_me:$LINENO: result: no" >&5
20442 $as_echo "no" >&6; }
20443 fi
20444
20445 rm -rf conftest.dSYM
20446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20447 conftest$ac_exeext conftest.$ac_ext
20448
20449 # system
20450 { $as_echo "$as_me:$LINENO: checking for system" >&5
20451 $as_echo_n "checking for system... " >&6; }
20452 cat >conftest.$ac_ext <<_ACEOF
20453 /* confdefs.h. */
20454 _ACEOF
20455 cat confdefs.h >>conftest.$ac_ext
20456 cat >>conftest.$ac_ext <<_ACEOF
20457 /* end confdefs.h. */
20458 #include <stdlib.h>
20459 int
20460 main ()
20461 {
20462 system("/bin/true");
20463 ;
20464 return 0;
20465 }
20466 _ACEOF
20467 rm -f conftest.$ac_objext conftest$ac_exeext
20468 if { (ac_try="$ac_link"
20469 case "(($ac_try" in
20470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20471 *) ac_try_echo=$ac_try;;
20472 esac
20473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20474 $as_echo "$ac_try_echo") >&5
20475 (eval "$ac_link") 2>conftest.er1
20476 ac_status=$?
20477 grep -v '^ *+' conftest.er1 >conftest.err
20478 rm -f conftest.er1
20479 cat conftest.err >&5
20480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481 (exit $ac_status); } && {
20482 test -z "$ac_c_werror_flag" ||
20483 test ! -s conftest.err
20484 } && test -s conftest$ac_exeext && {
20485 test "$cross_compiling" = yes ||
20486 $as_test_x conftest$ac_exeext
20487 }; then
20488 { $as_echo "$as_me:$LINENO: result: yes" >&5
20489 $as_echo "yes" >&6; };
20490 cat >>confdefs.h <<\_ACEOF
20491 @%:@define HAVE_SYSTEM 1
20492 _ACEOF
20493
20494 else
20495 $as_echo "$as_me: failed program was:" >&5
20496 sed 's/^/| /' conftest.$ac_ext >&5
20497
20498 speech_cmdline=no; speech_cmdline_reason="not supported without system()"; { $as_echo "$as_me:$LINENO: result: no" >&5
20499 $as_echo "no" >&6; }
20500 fi
20501
20502 rm -rf conftest.dSYM
20503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20504 conftest$ac_exeext conftest.$ac_ext
20505
20506 { $as_echo "$as_me:$LINENO: checking for CreateProcess" >&5
20507 $as_echo_n "checking for CreateProcess... " >&6; }
20508 cat >conftest.$ac_ext <<_ACEOF
20509 /* confdefs.h. */
20510 _ACEOF
20511 cat confdefs.h >>conftest.$ac_ext
20512 cat >>conftest.$ac_ext <<_ACEOF
20513 /* end confdefs.h. */
20514 #include <windows.h>
20515 int
20516 main ()
20517 {
20518 CreateProcess(NULL,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL);
20519 ;
20520 return 0;
20521 }
20522 _ACEOF
20523 rm -f conftest.$ac_objext conftest$ac_exeext
20524 if { (ac_try="$ac_link"
20525 case "(($ac_try" in
20526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20527 *) ac_try_echo=$ac_try;;
20528 esac
20529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20530 $as_echo "$ac_try_echo") >&5
20531 (eval "$ac_link") 2>conftest.er1
20532 ac_status=$?
20533 grep -v '^ *+' conftest.er1 >conftest.err
20534 rm -f conftest.er1
20535 cat conftest.err >&5
20536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537 (exit $ac_status); } && {
20538 test -z "$ac_c_werror_flag" ||
20539 test ! -s conftest.err
20540 } && test -s conftest$ac_exeext && {
20541 test "$cross_compiling" = yes ||
20542 $as_test_x conftest$ac_exeext
20543 }; then
20544 { $as_echo "$as_me:$LINENO: result: yes" >&5
20545 $as_echo "yes" >&6; };
20546 cat >>confdefs.h <<\_ACEOF
20547 @%:@define HAVE_CREATEPROCESS 1
20548 _ACEOF
20549 speech_cmdline=yes; speech_cmdline_reason="CreateProcess exists"
20550 else
20551 $as_echo "$as_me: failed program was:" >&5
20552 sed 's/^/| /' conftest.$ac_ext >&5
20553
20554 { $as_echo "$as_me:$LINENO: result: no" >&5
20555 $as_echo "no" >&6; }
20556 fi
20557
20558 rm -rf conftest.dSYM
20559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20560 conftest$ac_exeext conftest.$ac_ext
20561
20562 @%:@ Check whether --enable-graphics-sdl was given.
20563 if test "${enable_graphics_sdl+set}" = set; then
20564 enableval=$enable_graphics_sdl; graphics_sdl=$enableval;graphics_sdl_reason="configure parameter"
20565 fi
20566
20567
20568 if test "x${graphics_sdl}" = "xyes" ; then
20569
20570 pkg_failed=no
20571 { $as_echo "$as_me:$LINENO: checking for SDL" >&5
20572 $as_echo_n "checking for SDL... " >&6; }
20573
20574 if test -n "$PKG_CONFIG"; then
20575 if test -n "$SDL_CFLAGS"; then
20576 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
20577 else
20578 if test -n "$PKG_CONFIG" && \
20579 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
20580 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
20581 ac_status=$?
20582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583 (exit $ac_status); }; then
20584 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
20585 else
20586 pkg_failed=yes
20587 fi
20588 fi
20589 else
20590 pkg_failed=untried
20591 fi
20592 if test -n "$PKG_CONFIG"; then
20593 if test -n "$SDL_LIBS"; then
20594 pkg_cv_SDL_LIBS="$SDL_LIBS"
20595 else
20596 if test -n "$PKG_CONFIG" && \
20597 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
20598 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
20599 ac_status=$?
20600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601 (exit $ac_status); }; then
20602 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
20603 else
20604 pkg_failed=yes
20605 fi
20606 fi
20607 else
20608 pkg_failed=untried
20609 fi
20610
20611
20612
20613 if test $pkg_failed = yes; then
20614
20615 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20616 _pkg_short_errors_supported=yes
20617 else
20618 _pkg_short_errors_supported=no
20619 fi
20620 if test $_pkg_short_errors_supported = yes; then
20621 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sdl"`
20622 else
20623 SDL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sdl"`
20624 fi
20625 # Put the nasty error message in config.log where it belongs
20626 echo "$SDL_PKG_ERRORS" >&5
20627
20628 { $as_echo "$as_me:$LINENO: result: no" >&5
20629 $as_echo "no" >&6; }
20630 graphics_sdl="no"
20631 graphics_sdl_reason="sdl not available"
20632
20633 elif test $pkg_failed = untried; then
20634 graphics_sdl="no"
20635 graphics_sdl_reason="sdl not available"
20636
20637 else
20638 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
20639 SDL_LIBS=$pkg_cv_SDL_LIBS
20640 { $as_echo "$as_me:$LINENO: result: yes" >&5
20641 $as_echo "yes" >&6; }
20642 graphics_sdl="yes"
20643 graphics_sdl_reason="sdl present"
20644 fi
20645
20646
20647 fi
20648 if test "x${graphics_sdl}" = "xyes" ; then
20649 save_CPPFLAGS=$CPPFLAGS
20650 CPPFLAGS="$SDL_CFLAGS $CPPFLAGS"
20651 if test "${ac_cv_header_SDL_image_h+set}" = set; then
20652 { $as_echo "$as_me:$LINENO: checking for SDL_image.h" >&5
20653 $as_echo_n "checking for SDL_image.h... " >&6; }
20654 if test "${ac_cv_header_SDL_image_h+set}" = set; then
20655 $as_echo_n "(cached) " >&6
20656 fi
20657 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_SDL_image_h" >&5
20658 $as_echo "$ac_cv_header_SDL_image_h" >&6; }
20659 else
20660 # Is the header compilable?
20661 { $as_echo "$as_me:$LINENO: checking SDL_image.h usability" >&5
20662 $as_echo_n "checking SDL_image.h usability... " >&6; }
20663 cat >conftest.$ac_ext <<_ACEOF
20664 /* confdefs.h. */
20665 _ACEOF
20666 cat confdefs.h >>conftest.$ac_ext
20667 cat >>conftest.$ac_ext <<_ACEOF
20668 /* end confdefs.h. */
20669 $ac_includes_default
20670 @%:@include <SDL_image.h>
20671 _ACEOF
20672 rm -f conftest.$ac_objext
20673 if { (ac_try="$ac_compile"
20674 case "(($ac_try" in
20675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20676 *) ac_try_echo=$ac_try;;
20677 esac
20678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20679 $as_echo "$ac_try_echo") >&5
20680 (eval "$ac_compile") 2>conftest.er1
20681 ac_status=$?
20682 grep -v '^ *+' conftest.er1 >conftest.err
20683 rm -f conftest.er1
20684 cat conftest.err >&5
20685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 (exit $ac_status); } && {
20687 test -z "$ac_c_werror_flag" ||
20688 test ! -s conftest.err
20689 } && test -s conftest.$ac_objext; then
20690 ac_header_compiler=yes
20691 else
20692 $as_echo "$as_me: failed program was:" >&5
20693 sed 's/^/| /' conftest.$ac_ext >&5
20694
20695 ac_header_compiler=no
20696 fi
20697
20698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20699 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20700 $as_echo "$ac_header_compiler" >&6; }
20701
20702 # Is the header present?
20703 { $as_echo "$as_me:$LINENO: checking SDL_image.h presence" >&5
20704 $as_echo_n "checking SDL_image.h presence... " >&6; }
20705 cat >conftest.$ac_ext <<_ACEOF
20706 /* confdefs.h. */
20707 _ACEOF
20708 cat confdefs.h >>conftest.$ac_ext
20709 cat >>conftest.$ac_ext <<_ACEOF
20710 /* end confdefs.h. */
20711 @%:@include <SDL_image.h>
20712 _ACEOF
20713 if { (ac_try="$ac_cpp conftest.$ac_ext"
20714 case "(($ac_try" in
20715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20716 *) ac_try_echo=$ac_try;;
20717 esac
20718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20719 $as_echo "$ac_try_echo") >&5
20720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20721 ac_status=$?
20722 grep -v '^ *+' conftest.er1 >conftest.err
20723 rm -f conftest.er1
20724 cat conftest.err >&5
20725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); } >/dev/null && {
20727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20728 test ! -s conftest.err
20729 }; then
20730 ac_header_preproc=yes
20731 else
20732 $as_echo "$as_me: failed program was:" >&5
20733 sed 's/^/| /' conftest.$ac_ext >&5
20734
20735 ac_header_preproc=no
20736 fi
20737
20738 rm -f conftest.err conftest.$ac_ext
20739 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20740 $as_echo "$ac_header_preproc" >&6; }
20741
20742 # So? What about this header?
20743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20744 yes:no: )
20745 { $as_echo "$as_me:$LINENO: WARNING: SDL_image.h: accepted by the compiler, rejected by the preprocessor!" >&5
20746 $as_echo "$as_me: WARNING: SDL_image.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20747 { $as_echo "$as_me:$LINENO: WARNING: SDL_image.h: proceeding with the compiler's result" >&5
20748 $as_echo "$as_me: WARNING: SDL_image.h: proceeding with the compiler's result" >&2;}
20749 ac_header_preproc=yes
20750 ;;
20751 no:yes:* )
20752 { $as_echo "$as_me:$LINENO: WARNING: SDL_image.h: present but cannot be compiled" >&5
20753 $as_echo "$as_me: WARNING: SDL_image.h: present but cannot be compiled" >&2;}
20754 { $as_echo "$as_me:$LINENO: WARNING: SDL_image.h: check for missing prerequisite headers?" >&5
20755 $as_echo "$as_me: WARNING: SDL_image.h: check for missing prerequisite headers?" >&2;}
20756 { $as_echo "$as_me:$LINENO: WARNING: SDL_image.h: see the Autoconf documentation" >&5
20757 $as_echo "$as_me: WARNING: SDL_image.h: see the Autoconf documentation" >&2;}
20758 { $as_echo "$as_me:$LINENO: WARNING: SDL_image.h: section \"Present But Cannot Be Compiled\"" >&5
20759 $as_echo "$as_me: WARNING: SDL_image.h: section \"Present But Cannot Be Compiled\"" >&2;}
20760 { $as_echo "$as_me:$LINENO: WARNING: SDL_image.h: proceeding with the preprocessor's result" >&5
20761 $as_echo "$as_me: WARNING: SDL_image.h: proceeding with the preprocessor's result" >&2;}
20762 { $as_echo "$as_me:$LINENO: WARNING: SDL_image.h: in the future, the compiler will take precedence" >&5
20763 $as_echo "$as_me: WARNING: SDL_image.h: in the future, the compiler will take precedence" >&2;}
20764
20765 ;;
20766 esac
20767 { $as_echo "$as_me:$LINENO: checking for SDL_image.h" >&5
20768 $as_echo_n "checking for SDL_image.h... " >&6; }
20769 if test "${ac_cv_header_SDL_image_h+set}" = set; then
20770 $as_echo_n "(cached) " >&6
20771 else
20772 ac_cv_header_SDL_image_h=$ac_header_preproc
20773 fi
20774 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_SDL_image_h" >&5
20775 $as_echo "$ac_cv_header_SDL_image_h" >&6; }
20776
20777 fi
20778 if test $ac_cv_header_SDL_image_h = yes; then
20779 SDL_IMAGE_LIBS=-lSDL_image
20780 else
20781 graphics_sdl="no";graphics_sdl_reason="SDL_image.h missing"
20782 fi
20783
20784
20785
20786 CPPFLAGS=$save_CPPFLAGS
20787 fi
20788 if test "x${graphics_sdl}" = "xyes" ; then
20789
20790 cat >>confdefs.h <<\_ACEOF
20791 @%:@define GRAPHICS_SDL 1
20792 _ACEOF
20793
20794 fi
20795 if test "x${graphics_sdl}" = "xyes"; then
20796 GRAPHICS_SDL_TRUE=
20797 GRAPHICS_SDL_FALSE='#'
20798 else
20799 GRAPHICS_SDL_TRUE='#'
20800 GRAPHICS_SDL_FALSE=
20801 fi
20802
20803
20804 @%:@ Check whether --enable-postgresql was given.
20805 if test "${enable_postgresql+set}" = set; then
20806 enableval=$enable_postgresql; postgresql=$enableval;postgresql_reason="configure parameter"
20807 fi
20808
20809 if test "x${postgresql}" = "xyes" ; then
20810 if test -z "$PG_CONFIG"; then
20811 # Extract the first word of "pg_config", so it can be a program name with args.
20812 set dummy pg_config; ac_word=$2
20813 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20814 $as_echo_n "checking for $ac_word... " >&6; }
20815 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
20816 $as_echo_n "(cached) " >&6
20817 else
20818 case $PG_CONFIG in
20819 [\\/]* | ?:[\\/]*)
20820 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
20821 ;;
20822 *)
20823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20824 for as_dir in $PATH
20825 do
20826 IFS=$as_save_IFS
20827 test -z "$as_dir" && as_dir=.
20828 for ac_exec_ext in '' $ac_executable_extensions; do
20829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20830 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20831 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20832 break 2
20833 fi
20834 done
20835 done
20836 IFS=$as_save_IFS
20837
20838 ;;
20839 esac
20840 fi
20841 PG_CONFIG=$ac_cv_path_PG_CONFIG
20842 if test -n "$PG_CONFIG"; then
20843 { $as_echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
20844 $as_echo "$PG_CONFIG" >&6; }
20845 else
20846 { $as_echo "$as_me:$LINENO: result: no" >&5
20847 $as_echo "no" >&6; }
20848 fi
20849
20850
20851 fi
20852 { $as_echo "$as_me:$LINENO: checking for PostgreSQL libraries with $PG_CONFIG" >&5
20853 $as_echo_n "checking for PostgreSQL libraries with $PG_CONFIG... " >&6; }
20854 if test ! -x "$PG_CONFIG"; then
20855 if test "x${PG_CONFIG}" = "x" ; then
20856 postgresql_reason="$PG_CONFIG not executable"
20857 else
20858 postgresql_reason="pg_config missing"
20859 fi
20860 postgresql=no
20861 { $as_echo "$as_me:$LINENO: result: no" >&5
20862 $as_echo "no" >&6; }
20863 else
20864 POSTGRESQL_CFLAGS="-I`$PG_CONFIG --includedir`"
20865 POSTGRESQL_LIBS="-L`$PG_CONFIG --libdir` -lpq"
20866
20867 cat >>confdefs.h <<\_ACEOF
20868 @%:@define HAVE_POSTGRESQL 1
20869 _ACEOF
20870
20871
20872
20873 { $as_echo "$as_me:$LINENO: result: yes" >&5
20874 $as_echo "yes" >&6; }
20875 fi
20876 fi
20877 if test "x${postgresql}" = "xyes"; then
20878 HAVE_POSTGRESQL_TRUE=
20879 HAVE_POSTGRESQL_FALSE='#'
20880 else
20881 HAVE_POSTGRESQL_TRUE='#'
20882 HAVE_POSTGRESQL_FALSE=
20883 fi
20884
20885 # font
20886 # freetype
20887 @%:@ Check whether --enable-font-freetype was given.
20888 if test "${enable_font_freetype+set}" = set; then
20889 enableval=$enable_font_freetype; font_freetype=$enableval;font_freetype_reason="configure parameter"
20890 fi
20891
20892 if test "x${font_freetype}" = "xyes" -a "x${FREETYPE2_CFLAGS}" = "x" -a "x${FREETYPE2_LIBS}" = "x"; then
20893
20894 pkg_failed=no
20895 { $as_echo "$as_me:$LINENO: checking for FREETYPE2" >&5
20896 $as_echo_n "checking for FREETYPE2... " >&6; }
20897
20898 if test -n "$PKG_CONFIG"; then
20899 if test -n "$FREETYPE2_CFLAGS"; then
20900 pkg_cv_FREETYPE2_CFLAGS="$FREETYPE2_CFLAGS"
20901 else
20902 if test -n "$PKG_CONFIG" && \
20903 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"freetype2\"") >&5
20904 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
20905 ac_status=$?
20906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); }; then
20908 pkg_cv_FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
20909 else
20910 pkg_failed=yes
20911 fi
20912 fi
20913 else
20914 pkg_failed=untried
20915 fi
20916 if test -n "$PKG_CONFIG"; then
20917 if test -n "$FREETYPE2_LIBS"; then
20918 pkg_cv_FREETYPE2_LIBS="$FREETYPE2_LIBS"
20919 else
20920 if test -n "$PKG_CONFIG" && \
20921 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"freetype2\"") >&5
20922 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
20923 ac_status=$?
20924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925 (exit $ac_status); }; then
20926 pkg_cv_FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
20927 else
20928 pkg_failed=yes
20929 fi
20930 fi
20931 else
20932 pkg_failed=untried
20933 fi
20934
20935
20936
20937 if test $pkg_failed = yes; then
20938
20939 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20940 _pkg_short_errors_supported=yes
20941 else
20942 _pkg_short_errors_supported=no
20943 fi
20944 if test $_pkg_short_errors_supported = yes; then
20945 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "freetype2"`
20946 else
20947 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
20948 fi
20949 # Put the nasty error message in config.log where it belongs
20950 echo "$FREETYPE2_PKG_ERRORS" >&5
20951
20952 { $as_echo "$as_me:$LINENO: result: no" >&5
20953 $as_echo "no" >&6; }
20954 font_freetype=no;font_freetype_reason="Package freetype2 missing"
20955 elif test $pkg_failed = untried; then
20956 font_freetype=no;font_freetype_reason="Package freetype2 missing"
20957 else
20958 FREETYPE2_CFLAGS=$pkg_cv_FREETYPE2_CFLAGS
20959 FREETYPE2_LIBS=$pkg_cv_FREETYPE2_LIBS
20960 { $as_echo "$as_me:$LINENO: result: yes" >&5
20961 $as_echo "yes" >&6; }
20962 :
20963 fi
20964 else
20965 fribidi=no
20966 fi
20967
20968
20969 if test "x${font_freetype}" = "xyes"; then
20970 FONT_FREETYPE_TRUE=
20971 FONT_FREETYPE_FALSE='#'
20972 else
20973 FONT_FREETYPE_TRUE='#'
20974 FONT_FREETYPE_FALSE=
20975 fi
20976
20977
20978 @%:@ Check whether --with-freetype-fonts was given.
20979 if test "${with_freetype_fonts+set}" = set; then
20980 withval=$with_freetype_fonts;
20981 cat >>confdefs.h <<_ACEOF
20982 @%:@define FREETYPE_FONTS ${withval}
20983 _ACEOF
20984
20985 fi
20986
20987
20988 @%:@ Check whether --enable-fontconfig was given.
20989 if test "${enable_fontconfig+set}" = set; then
20990 enableval=$enable_fontconfig; fontconfig=$enableval;fontconfig_reason="configure parameter"
20991 fi
20992
20993 if test "x${fontconfig}" = "xyes"; then
20994
20995 pkg_failed=no
20996 { $as_echo "$as_me:$LINENO: checking for FONTCONFIG" >&5
20997 $as_echo_n "checking for FONTCONFIG... " >&6; }
20998
20999 if test -n "$PKG_CONFIG"; then
21000 if test -n "$FONTCONFIG_CFLAGS"; then
21001 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
21002 else
21003 if test -n "$PKG_CONFIG" && \
21004 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fontconfig\"") >&5
21005 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
21006 ac_status=$?
21007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); }; then
21009 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig" 2>/dev/null`
21010 else
21011 pkg_failed=yes
21012 fi
21013 fi
21014 else
21015 pkg_failed=untried
21016 fi
21017 if test -n "$PKG_CONFIG"; then
21018 if test -n "$FONTCONFIG_LIBS"; then
21019 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
21020 else
21021 if test -n "$PKG_CONFIG" && \
21022 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fontconfig\"") >&5
21023 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
21024 ac_status=$?
21025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); }; then
21027 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig" 2>/dev/null`
21028 else
21029 pkg_failed=yes
21030 fi
21031 fi
21032 else
21033 pkg_failed=untried
21034 fi
21035
21036
21037
21038 if test $pkg_failed = yes; then
21039
21040 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21041 _pkg_short_errors_supported=yes
21042 else
21043 _pkg_short_errors_supported=no
21044 fi
21045 if test $_pkg_short_errors_supported = yes; then
21046 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fontconfig"`
21047 else
21048 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
21049 fi
21050 # Put the nasty error message in config.log where it belongs
21051 echo "$FONTCONFIG_PKG_ERRORS" >&5
21052
21053 { $as_echo "$as_me:$LINENO: result: no" >&5
21054 $as_echo "no" >&6; }
21055 fontconfig=no
21056 elif test $pkg_failed = untried; then
21057 fontconfig=no
21058 else
21059 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
21060 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
21061 { $as_echo "$as_me:$LINENO: result: yes" >&5
21062 $as_echo "yes" >&6; }
21063 fontconfig=yes
21064 fi
21065 fi
21066 if test "x$fontconfig" = "xyes"; then
21067
21068 cat >>confdefs.h <<\_ACEOF
21069 @%:@define HAVE_FONTCONFIG 1
21070 _ACEOF
21071
21072 fi
21073
21074
21075
21076 if test "x${font_freetype}" = "xyes" -a "x$fontconfig" != "xyes"; then
21077 FONTS_TRUE=
21078 FONTS_FALSE='#'
21079 else
21080 FONTS_TRUE='#'
21081 FONTS_FALSE=
21082 fi
21083
21084
21085 # fribidi
21086 @%:@ Check whether --enable-fribidi was given.
21087 if test "${enable_fribidi+set}" = set; then
21088 enableval=$enable_fribidi; fribidi=$enableval;fribidi_reason="configure parameter"
21089 else
21090 fribidi=yes
21091 fi
21092
21093 if test x"${fribidi}" = "xyes"; then
21094
21095 pkg_failed=no
21096 { $as_echo "$as_me:$LINENO: checking for FRIBIDI2" >&5
21097 $as_echo_n "checking for FRIBIDI2... " >&6; }
21098
21099 if test -n "$PKG_CONFIG"; then
21100 if test -n "$FRIBIDI2_CFLAGS"; then
21101 pkg_cv_FRIBIDI2_CFLAGS="$FRIBIDI2_CFLAGS"
21102 else
21103 if test -n "$PKG_CONFIG" && \
21104 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fribidi >= 0.19.0\"") >&5
21105 ($PKG_CONFIG --exists --print-errors "fribidi >= 0.19.0") 2>&5
21106 ac_status=$?
21107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108 (exit $ac_status); }; then
21109 pkg_cv_FRIBIDI2_CFLAGS=`$PKG_CONFIG --cflags "fribidi >= 0.19.0" 2>/dev/null`
21110 else
21111 pkg_failed=yes
21112 fi
21113 fi
21114 else
21115 pkg_failed=untried
21116 fi
21117 if test -n "$PKG_CONFIG"; then
21118 if test -n "$FRIBIDI2_LIBS"; then
21119 pkg_cv_FRIBIDI2_LIBS="$FRIBIDI2_LIBS"
21120 else
21121 if test -n "$PKG_CONFIG" && \
21122 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fribidi >= 0.19.0\"") >&5
21123 ($PKG_CONFIG --exists --print-errors "fribidi >= 0.19.0") 2>&5
21124 ac_status=$?
21125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); }; then
21127 pkg_cv_FRIBIDI2_LIBS=`$PKG_CONFIG --libs "fribidi >= 0.19.0" 2>/dev/null`
21128 else
21129 pkg_failed=yes
21130 fi
21131 fi
21132 else
21133 pkg_failed=untried
21134 fi
21135
21136
21137
21138 if test $pkg_failed = yes; then
21139
21140 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21141 _pkg_short_errors_supported=yes
21142 else
21143 _pkg_short_errors_supported=no
21144 fi
21145 if test $_pkg_short_errors_supported = yes; then
21146 FRIBIDI2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fribidi >= 0.19.0"`
21147 else
21148 FRIBIDI2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fribidi >= 0.19.0"`
21149 fi
21150 # Put the nasty error message in config.log where it belongs
21151 echo "$FRIBIDI2_PKG_ERRORS" >&5
21152
21153 { $as_echo "$as_me:$LINENO: result: no" >&5
21154 $as_echo "no" >&6; }
21155
21156 pkg_failed=no
21157 { $as_echo "$as_me:$LINENO: checking for FRIBIDI" >&5
21158 $as_echo_n "checking for FRIBIDI... " >&6; }
21159
21160 if test -n "$PKG_CONFIG"; then
21161 if test -n "$FRIBIDI_CFLAGS"; then
21162 pkg_cv_FRIBIDI_CFLAGS="$FRIBIDI_CFLAGS"
21163 else
21164 if test -n "$PKG_CONFIG" && \
21165 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fribidi\"") >&5
21166 ($PKG_CONFIG --exists --print-errors "fribidi") 2>&5
21167 ac_status=$?
21168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169 (exit $ac_status); }; then
21170 pkg_cv_FRIBIDI_CFLAGS=`$PKG_CONFIG --cflags "fribidi" 2>/dev/null`
21171 else
21172 pkg_failed=yes
21173 fi
21174 fi
21175 else
21176 pkg_failed=untried
21177 fi
21178 if test -n "$PKG_CONFIG"; then
21179 if test -n "$FRIBIDI_LIBS"; then
21180 pkg_cv_FRIBIDI_LIBS="$FRIBIDI_LIBS"
21181 else
21182 if test -n "$PKG_CONFIG" && \
21183 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fribidi\"") >&5
21184 ($PKG_CONFIG --exists --print-errors "fribidi") 2>&5
21185 ac_status=$?
21186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187 (exit $ac_status); }; then
21188 pkg_cv_FRIBIDI_LIBS=`$PKG_CONFIG --libs "fribidi" 2>/dev/null`
21189 else
21190 pkg_failed=yes
21191 fi
21192 fi
21193 else
21194 pkg_failed=untried
21195 fi
21196
21197
21198
21199 if test $pkg_failed = yes; then
21200
21201 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21202 _pkg_short_errors_supported=yes
21203 else
21204 _pkg_short_errors_supported=no
21205 fi
21206 if test $_pkg_short_errors_supported = yes; then
21207 FRIBIDI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fribidi"`
21208 else
21209 FRIBIDI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fribidi"`
21210 fi
21211 # Put the nasty error message in config.log where it belongs
21212 echo "$FRIBIDI_PKG_ERRORS" >&5
21213
21214 { $as_echo "$as_me:$LINENO: result: no" >&5
21215 $as_echo "no" >&6; }
21216 fribidi=no;fribidi_reason="FriBidi library not found"
21217 elif test $pkg_failed = untried; then
21218 fribidi=no;fribidi_reason="FriBidi library not found"
21219 else
21220 FRIBIDI_CFLAGS=$pkg_cv_FRIBIDI_CFLAGS
21221 FRIBIDI_LIBS=$pkg_cv_FRIBIDI_LIBS
21222 { $as_echo "$as_me:$LINENO: result: yes" >&5
21223 $as_echo "yes" >&6; }
21224 fribidi=yes;oldfribidi=yes;fribid_reason="using old version"
21225 fi
21226
21227 elif test $pkg_failed = untried; then
21228
21229 pkg_failed=no
21230 { $as_echo "$as_me:$LINENO: checking for FRIBIDI" >&5
21231 $as_echo_n "checking for FRIBIDI... " >&6; }
21232
21233 if test -n "$PKG_CONFIG"; then
21234 if test -n "$FRIBIDI_CFLAGS"; then
21235 pkg_cv_FRIBIDI_CFLAGS="$FRIBIDI_CFLAGS"
21236 else
21237 if test -n "$PKG_CONFIG" && \
21238 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fribidi\"") >&5
21239 ($PKG_CONFIG --exists --print-errors "fribidi") 2>&5
21240 ac_status=$?
21241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); }; then
21243 pkg_cv_FRIBIDI_CFLAGS=`$PKG_CONFIG --cflags "fribidi" 2>/dev/null`
21244 else
21245 pkg_failed=yes
21246 fi
21247 fi
21248 else
21249 pkg_failed=untried
21250 fi
21251 if test -n "$PKG_CONFIG"; then
21252 if test -n "$FRIBIDI_LIBS"; then
21253 pkg_cv_FRIBIDI_LIBS="$FRIBIDI_LIBS"
21254 else
21255 if test -n "$PKG_CONFIG" && \
21256 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fribidi\"") >&5
21257 ($PKG_CONFIG --exists --print-errors "fribidi") 2>&5
21258 ac_status=$?
21259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260 (exit $ac_status); }; then
21261 pkg_cv_FRIBIDI_LIBS=`$PKG_CONFIG --libs "fribidi" 2>/dev/null`
21262 else
21263 pkg_failed=yes
21264 fi
21265 fi
21266 else
21267 pkg_failed=untried
21268 fi
21269
21270
21271
21272 if test $pkg_failed = yes; then
21273
21274 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21275 _pkg_short_errors_supported=yes
21276 else
21277 _pkg_short_errors_supported=no
21278 fi
21279 if test $_pkg_short_errors_supported = yes; then
21280 FRIBIDI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fribidi"`
21281 else
21282 FRIBIDI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fribidi"`
21283 fi
21284 # Put the nasty error message in config.log where it belongs
21285 echo "$FRIBIDI_PKG_ERRORS" >&5
21286
21287 { $as_echo "$as_me:$LINENO: result: no" >&5
21288 $as_echo "no" >&6; }
21289 fribidi=no;fribidi_reason="FriBidi library not found"
21290 elif test $pkg_failed = untried; then
21291 fribidi=no;fribidi_reason="FriBidi library not found"
21292 else
21293 FRIBIDI_CFLAGS=$pkg_cv_FRIBIDI_CFLAGS
21294 FRIBIDI_LIBS=$pkg_cv_FRIBIDI_LIBS
21295 { $as_echo "$as_me:$LINENO: result: yes" >&5
21296 $as_echo "yes" >&6; }
21297 fribidi=yes;oldfribidi=yes;fribid_reason="using old version"
21298 fi
21299
21300 else
21301 FRIBIDI2_CFLAGS=$pkg_cv_FRIBIDI2_CFLAGS
21302 FRIBIDI2_LIBS=$pkg_cv_FRIBIDI2_LIBS
21303 { $as_echo "$as_me:$LINENO: result: yes" >&5
21304 $as_echo "yes" >&6; }
21305 fribidi=yes;oldfribidi=no
21306 fi
21307 fi
21308 if test x"${fribidi}" = "xyes"; then
21309
21310 cat >>confdefs.h <<\_ACEOF
21311 @%:@define USE_FRIBIDI 1
21312 _ACEOF
21313
21314 fi
21315 if test x"${oldfribidi}" = "xyes"; then
21316
21317 cat >>confdefs.h <<\_ACEOF
21318 @%:@define FRIBIDIOLD 1
21319 _ACEOF
21320
21321 fi
21322
21323
21324
21325
21326
21327
21328
21329 pkg_failed=no
21330 { $as_echo "$as_me:$LINENO: checking for IMLIB2" >&5
21331 $as_echo_n "checking for IMLIB2... " >&6; }
21332
21333 if test -n "$PKG_CONFIG"; then
21334 if test -n "$IMLIB2_CFLAGS"; then
21335 pkg_cv_IMLIB2_CFLAGS="$IMLIB2_CFLAGS"
21336 else
21337 if test -n "$PKG_CONFIG" && \
21338 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"imlib2\"") >&5
21339 ($PKG_CONFIG --exists --print-errors "imlib2") 2>&5
21340 ac_status=$?
21341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342 (exit $ac_status); }; then
21343 pkg_cv_IMLIB2_CFLAGS=`$PKG_CONFIG --cflags "imlib2" 2>/dev/null`
21344 else
21345 pkg_failed=yes
21346 fi
21347 fi
21348 else
21349 pkg_failed=untried
21350 fi
21351 if test -n "$PKG_CONFIG"; then
21352 if test -n "$IMLIB2_LIBS"; then
21353 pkg_cv_IMLIB2_LIBS="$IMLIB2_LIBS"
21354 else
21355 if test -n "$PKG_CONFIG" && \
21356 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"imlib2\"") >&5
21357 ($PKG_CONFIG --exists --print-errors "imlib2") 2>&5
21358 ac_status=$?
21359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); }; then
21361 pkg_cv_IMLIB2_LIBS=`$PKG_CONFIG --libs "imlib2" 2>/dev/null`
21362 else
21363 pkg_failed=yes
21364 fi
21365 fi
21366 else
21367 pkg_failed=untried
21368 fi
21369
21370
21371
21372 if test $pkg_failed = yes; then
21373
21374 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21375 _pkg_short_errors_supported=yes
21376 else
21377 _pkg_short_errors_supported=no
21378 fi
21379 if test $_pkg_short_errors_supported = yes; then
21380 IMLIB2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "imlib2"`
21381 else
21382 IMLIB2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "imlib2"`
21383 fi
21384 # Put the nasty error message in config.log where it belongs
21385 echo "$IMLIB2_PKG_ERRORS" >&5
21386
21387 { $as_echo "$as_me:$LINENO: result: no" >&5
21388 $as_echo "no" >&6; }
21389 imlib2_pkgconfig=no
21390 elif test $pkg_failed = untried; then
21391 imlib2_pkgconfig=no
21392 else
21393 IMLIB2_CFLAGS=$pkg_cv_IMLIB2_CFLAGS
21394 IMLIB2_LIBS=$pkg_cv_IMLIB2_LIBS
21395 { $as_echo "$as_me:$LINENO: result: yes" >&5
21396 $as_echo "yes" >&6; }
21397 imlib2_pkgconfig=yes
21398 fi
21399 if test "x$imlib2_pkgconfig" = "xyes"; then
21400
21401 cat >>confdefs.h <<\_ACEOF
21402 @%:@define HAVE_IMLIB2 1
21403 _ACEOF
21404
21405 fi
21406
21407
21408
21409 @%:@ Check whether --enable-graphics-opengl was given.
21410 if test "${enable_graphics_opengl+set}" = set; then
21411 enableval=$enable_graphics_opengl; graphics_opengl=$enableval;graphics_opengl_reason="configure parameter"
21412 fi
21413
21414 if test "x${graphics_opengl}" = "xyes" ; then
21415
21416 if test "${ac_cv_header_GL_gl_h+set}" = set; then
21417 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
21418 $as_echo_n "checking for GL/gl.h... " >&6; }
21419 if test "${ac_cv_header_GL_gl_h+set}" = set; then
21420 $as_echo_n "(cached) " >&6
21421 fi
21422 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
21423 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
21424 else
21425 # Is the header compilable?
21426 { $as_echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
21427 $as_echo_n "checking GL/gl.h usability... " >&6; }
21428 cat >conftest.$ac_ext <<_ACEOF
21429 /* confdefs.h. */
21430 _ACEOF
21431 cat confdefs.h >>conftest.$ac_ext
21432 cat >>conftest.$ac_ext <<_ACEOF
21433 /* end confdefs.h. */
21434 $ac_includes_default
21435 @%:@include <GL/gl.h>
21436 _ACEOF
21437 rm -f conftest.$ac_objext
21438 if { (ac_try="$ac_compile"
21439 case "(($ac_try" in
21440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21441 *) ac_try_echo=$ac_try;;
21442 esac
21443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21444 $as_echo "$ac_try_echo") >&5
21445 (eval "$ac_compile") 2>conftest.er1
21446 ac_status=$?
21447 grep -v '^ *+' conftest.er1 >conftest.err
21448 rm -f conftest.er1
21449 cat conftest.err >&5
21450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451 (exit $ac_status); } && {
21452 test -z "$ac_c_werror_flag" ||
21453 test ! -s conftest.err
21454 } && test -s conftest.$ac_objext; then
21455 ac_header_compiler=yes
21456 else
21457 $as_echo "$as_me: failed program was:" >&5
21458 sed 's/^/| /' conftest.$ac_ext >&5
21459
21460 ac_header_compiler=no
21461 fi
21462
21463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21464 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21465 $as_echo "$ac_header_compiler" >&6; }
21466
21467 # Is the header present?
21468 { $as_echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
21469 $as_echo_n "checking GL/gl.h presence... " >&6; }
21470 cat >conftest.$ac_ext <<_ACEOF
21471 /* confdefs.h. */
21472 _ACEOF
21473 cat confdefs.h >>conftest.$ac_ext
21474 cat >>conftest.$ac_ext <<_ACEOF
21475 /* end confdefs.h. */
21476 @%:@include <GL/gl.h>
21477 _ACEOF
21478 if { (ac_try="$ac_cpp conftest.$ac_ext"
21479 case "(($ac_try" in
21480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21481 *) ac_try_echo=$ac_try;;
21482 esac
21483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21484 $as_echo "$ac_try_echo") >&5
21485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21486 ac_status=$?
21487 grep -v '^ *+' conftest.er1 >conftest.err
21488 rm -f conftest.er1
21489 cat conftest.err >&5
21490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491 (exit $ac_status); } >/dev/null && {
21492 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21493 test ! -s conftest.err
21494 }; then
21495 ac_header_preproc=yes
21496 else
21497 $as_echo "$as_me: failed program was:" >&5
21498 sed 's/^/| /' conftest.$ac_ext >&5
21499
21500 ac_header_preproc=no
21501 fi
21502
21503 rm -f conftest.err conftest.$ac_ext
21504 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21505 $as_echo "$ac_header_preproc" >&6; }
21506
21507 # So? What about this header?
21508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21509 yes:no: )
21510 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
21511 $as_echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21512 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
21513 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
21514 ac_header_preproc=yes
21515 ;;
21516 no:yes:* )
21517 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
21518 $as_echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
21519 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
21520 $as_echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
21521 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
21522 $as_echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
21523 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
21524 $as_echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
21525 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
21526 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
21527 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
21528 $as_echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
21529
21530 ;;
21531 esac
21532 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
21533 $as_echo_n "checking for GL/gl.h... " >&6; }
21534 if test "${ac_cv_header_GL_gl_h+set}" = set; then
21535 $as_echo_n "(cached) " >&6
21536 else
21537 ac_cv_header_GL_gl_h=$ac_header_preproc
21538 fi
21539 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
21540 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
21541
21542 fi
21543 if test $ac_cv_header_GL_gl_h = yes; then
21544
21545 cat >>confdefs.h <<\_ACEOF
21546 @%:@define HAVE_OPENGL /**/
21547 _ACEOF
21548
21549 OPENGL_LIBS="$X_LIBS -lGL -lglut -lfreeimage"
21550 opengl=yes
21551 else
21552 { $as_echo "$as_me:$LINENO: WARNING: *** no GL/gl.h -- opengl graphics support disabled;graphics_opengl=no;graphics_opengl_reason=\"GL/gl.h header missing\"" >&5
21553 $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;}
21554
21555 fi
21556
21557
21558
21559 if test "${ac_cv_header_GL_glut_h+set}" = set; then
21560 { $as_echo "$as_me:$LINENO: checking for GL/glut.h" >&5
21561 $as_echo_n "checking for GL/glut.h... " >&6; }
21562 if test "${ac_cv_header_GL_glut_h+set}" = set; then
21563 $as_echo_n "(cached) " >&6
21564 fi
21565 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_glut_h" >&5
21566 $as_echo "$ac_cv_header_GL_glut_h" >&6; }
21567 else
21568 # Is the header compilable?
21569 { $as_echo "$as_me:$LINENO: checking GL/glut.h usability" >&5
21570 $as_echo_n "checking GL/glut.h usability... " >&6; }
21571 cat >conftest.$ac_ext <<_ACEOF
21572 /* confdefs.h. */
21573 _ACEOF
21574 cat confdefs.h >>conftest.$ac_ext
21575 cat >>conftest.$ac_ext <<_ACEOF
21576 /* end confdefs.h. */
21577 $ac_includes_default
21578 @%:@include <GL/glut.h>
21579 _ACEOF
21580 rm -f conftest.$ac_objext
21581 if { (ac_try="$ac_compile"
21582 case "(($ac_try" in
21583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21584 *) ac_try_echo=$ac_try;;
21585 esac
21586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21587 $as_echo "$ac_try_echo") >&5
21588 (eval "$ac_compile") 2>conftest.er1
21589 ac_status=$?
21590 grep -v '^ *+' conftest.er1 >conftest.err
21591 rm -f conftest.er1
21592 cat conftest.err >&5
21593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594 (exit $ac_status); } && {
21595 test -z "$ac_c_werror_flag" ||
21596 test ! -s conftest.err
21597 } && test -s conftest.$ac_objext; then
21598 ac_header_compiler=yes
21599 else
21600 $as_echo "$as_me: failed program was:" >&5
21601 sed 's/^/| /' conftest.$ac_ext >&5
21602
21603 ac_header_compiler=no
21604 fi
21605
21606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21607 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21608 $as_echo "$ac_header_compiler" >&6; }
21609
21610 # Is the header present?
21611 { $as_echo "$as_me:$LINENO: checking GL/glut.h presence" >&5
21612 $as_echo_n "checking GL/glut.h presence... " >&6; }
21613 cat >conftest.$ac_ext <<_ACEOF
21614 /* confdefs.h. */
21615 _ACEOF
21616 cat confdefs.h >>conftest.$ac_ext
21617 cat >>conftest.$ac_ext <<_ACEOF
21618 /* end confdefs.h. */
21619 @%:@include <GL/glut.h>
21620 _ACEOF
21621 if { (ac_try="$ac_cpp conftest.$ac_ext"
21622 case "(($ac_try" in
21623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21624 *) ac_try_echo=$ac_try;;
21625 esac
21626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21627 $as_echo "$ac_try_echo") >&5
21628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21629 ac_status=$?
21630 grep -v '^ *+' conftest.er1 >conftest.err
21631 rm -f conftest.er1
21632 cat conftest.err >&5
21633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634 (exit $ac_status); } >/dev/null && {
21635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21636 test ! -s conftest.err
21637 }; then
21638 ac_header_preproc=yes
21639 else
21640 $as_echo "$as_me: failed program was:" >&5
21641 sed 's/^/| /' conftest.$ac_ext >&5
21642
21643 ac_header_preproc=no
21644 fi
21645
21646 rm -f conftest.err conftest.$ac_ext
21647 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21648 $as_echo "$ac_header_preproc" >&6; }
21649
21650 # So? What about this header?
21651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21652 yes:no: )
21653 { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h: accepted by the compiler, rejected by the preprocessor!" >&5
21654 $as_echo "$as_me: WARNING: GL/glut.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21655 { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h: proceeding with the compiler's result" >&5
21656 $as_echo "$as_me: WARNING: GL/glut.h: proceeding with the compiler's result" >&2;}
21657 ac_header_preproc=yes
21658 ;;
21659 no:yes:* )
21660 { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h: present but cannot be compiled" >&5
21661 $as_echo "$as_me: WARNING: GL/glut.h: present but cannot be compiled" >&2;}
21662 { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h: check for missing prerequisite headers?" >&5
21663 $as_echo "$as_me: WARNING: GL/glut.h: check for missing prerequisite headers?" >&2;}
21664 { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h: see the Autoconf documentation" >&5
21665 $as_echo "$as_me: WARNING: GL/glut.h: see the Autoconf documentation" >&2;}
21666 { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h: section \"Present But Cannot Be Compiled\"" >&5
21667 $as_echo "$as_me: WARNING: GL/glut.h: section \"Present But Cannot Be Compiled\"" >&2;}
21668 { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h: proceeding with the preprocessor's result" >&5
21669 $as_echo "$as_me: WARNING: GL/glut.h: proceeding with the preprocessor's result" >&2;}
21670 { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h: in the future, the compiler will take precedence" >&5
21671 $as_echo "$as_me: WARNING: GL/glut.h: in the future, the compiler will take precedence" >&2;}
21672
21673 ;;
21674 esac
21675 { $as_echo "$as_me:$LINENO: checking for GL/glut.h" >&5
21676 $as_echo_n "checking for GL/glut.h... " >&6; }
21677 if test "${ac_cv_header_GL_glut_h+set}" = set; then
21678 $as_echo_n "(cached) " >&6
21679 else
21680 ac_cv_header_GL_glut_h=$ac_header_preproc
21681 fi
21682 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_glut_h" >&5
21683 $as_echo "$ac_cv_header_GL_glut_h" >&6; }
21684
21685 fi
21686 if test $ac_cv_header_GL_glut_h = yes; then
21687
21688 cat >>confdefs.h <<\_ACEOF
21689 @%:@define HAVE_GLUT /**/
21690 _ACEOF
21691
21692 glut=yes
21693 else
21694 { $as_echo "$as_me:$LINENO: WARNING: *** no GL/glut.h -- opengl graphics support disabled" >&5
21695 $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"
21696
21697 fi
21698
21699
21700
21701 if test "${ac_cv_header_GL_freeglut_h+set}" = set; then
21702 { $as_echo "$as_me:$LINENO: checking for GL/freeglut.h" >&5
21703 $as_echo_n "checking for GL/freeglut.h... " >&6; }
21704 if test "${ac_cv_header_GL_freeglut_h+set}" = set; then
21705 $as_echo_n "(cached) " >&6
21706 fi
21707 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_freeglut_h" >&5
21708 $as_echo "$ac_cv_header_GL_freeglut_h" >&6; }
21709 else
21710 # Is the header compilable?
21711 { $as_echo "$as_me:$LINENO: checking GL/freeglut.h usability" >&5
21712 $as_echo_n "checking GL/freeglut.h usability... " >&6; }
21713 cat >conftest.$ac_ext <<_ACEOF
21714 /* confdefs.h. */
21715 _ACEOF
21716 cat confdefs.h >>conftest.$ac_ext
21717 cat >>conftest.$ac_ext <<_ACEOF
21718 /* end confdefs.h. */
21719 $ac_includes_default
21720 @%:@include <GL/freeglut.h>
21721 _ACEOF
21722 rm -f conftest.$ac_objext
21723 if { (ac_try="$ac_compile"
21724 case "(($ac_try" in
21725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21726 *) ac_try_echo=$ac_try;;
21727 esac
21728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21729 $as_echo "$ac_try_echo") >&5
21730 (eval "$ac_compile") 2>conftest.er1
21731 ac_status=$?
21732 grep -v '^ *+' conftest.er1 >conftest.err
21733 rm -f conftest.er1
21734 cat conftest.err >&5
21735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736 (exit $ac_status); } && {
21737 test -z "$ac_c_werror_flag" ||
21738 test ! -s conftest.err
21739 } && test -s conftest.$ac_objext; then
21740 ac_header_compiler=yes
21741 else
21742 $as_echo "$as_me: failed program was:" >&5
21743 sed 's/^/| /' conftest.$ac_ext >&5
21744
21745 ac_header_compiler=no
21746 fi
21747
21748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21749 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21750 $as_echo "$ac_header_compiler" >&6; }
21751
21752 # Is the header present?
21753 { $as_echo "$as_me:$LINENO: checking GL/freeglut.h presence" >&5
21754 $as_echo_n "checking GL/freeglut.h presence... " >&6; }
21755 cat >conftest.$ac_ext <<_ACEOF
21756 /* confdefs.h. */
21757 _ACEOF
21758 cat confdefs.h >>conftest.$ac_ext
21759 cat >>conftest.$ac_ext <<_ACEOF
21760 /* end confdefs.h. */
21761 @%:@include <GL/freeglut.h>
21762 _ACEOF
21763 if { (ac_try="$ac_cpp conftest.$ac_ext"
21764 case "(($ac_try" in
21765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21766 *) ac_try_echo=$ac_try;;
21767 esac
21768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21769 $as_echo "$ac_try_echo") >&5
21770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21771 ac_status=$?
21772 grep -v '^ *+' conftest.er1 >conftest.err
21773 rm -f conftest.er1
21774 cat conftest.err >&5
21775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776 (exit $ac_status); } >/dev/null && {
21777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21778 test ! -s conftest.err
21779 }; then
21780 ac_header_preproc=yes
21781 else
21782 $as_echo "$as_me: failed program was:" >&5
21783 sed 's/^/| /' conftest.$ac_ext >&5
21784
21785 ac_header_preproc=no
21786 fi
21787
21788 rm -f conftest.err conftest.$ac_ext
21789 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21790 $as_echo "$ac_header_preproc" >&6; }
21791
21792 # So? What about this header?
21793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21794 yes:no: )
21795 { $as_echo "$as_me:$LINENO: WARNING: GL/freeglut.h: accepted by the compiler, rejected by the preprocessor!" >&5
21796 $as_echo "$as_me: WARNING: GL/freeglut.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21797 { $as_echo "$as_me:$LINENO: WARNING: GL/freeglut.h: proceeding with the compiler's result" >&5
21798 $as_echo "$as_me: WARNING: GL/freeglut.h: proceeding with the compiler's result" >&2;}
21799 ac_header_preproc=yes
21800 ;;
21801 no:yes:* )
21802 { $as_echo "$as_me:$LINENO: WARNING: GL/freeglut.h: present but cannot be compiled" >&5
21803 $as_echo "$as_me: WARNING: GL/freeglut.h: present but cannot be compiled" >&2;}
21804 { $as_echo "$as_me:$LINENO: WARNING: GL/freeglut.h: check for missing prerequisite headers?" >&5
21805 $as_echo "$as_me: WARNING: GL/freeglut.h: check for missing prerequisite headers?" >&2;}
21806 { $as_echo "$as_me:$LINENO: WARNING: GL/freeglut.h: see the Autoconf documentation" >&5
21807 $as_echo "$as_me: WARNING: GL/freeglut.h: see the Autoconf documentation" >&2;}
21808 { $as_echo "$as_me:$LINENO: WARNING: GL/freeglut.h: section \"Present But Cannot Be Compiled\"" >&5
21809 $as_echo "$as_me: WARNING: GL/freeglut.h: section \"Present But Cannot Be Compiled\"" >&2;}
21810 { $as_echo "$as_me:$LINENO: WARNING: GL/freeglut.h: proceeding with the preprocessor's result" >&5
21811 $as_echo "$as_me: WARNING: GL/freeglut.h: proceeding with the preprocessor's result" >&2;}
21812 { $as_echo "$as_me:$LINENO: WARNING: GL/freeglut.h: in the future, the compiler will take precedence" >&5
21813 $as_echo "$as_me: WARNING: GL/freeglut.h: in the future, the compiler will take precedence" >&2;}
21814
21815 ;;
21816 esac
21817 { $as_echo "$as_me:$LINENO: checking for GL/freeglut.h" >&5
21818 $as_echo_n "checking for GL/freeglut.h... " >&6; }
21819 if test "${ac_cv_header_GL_freeglut_h+set}" = set; then
21820 $as_echo_n "(cached) " >&6
21821 else
21822 ac_cv_header_GL_freeglut_h=$ac_header_preproc
21823 fi
21824 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_freeglut_h" >&5
21825 $as_echo "$ac_cv_header_GL_freeglut_h" >&6; }
21826
21827 fi
21828 if test $ac_cv_header_GL_freeglut_h = yes; then
21829
21830 cat >>confdefs.h <<\_ACEOF
21831 @%:@define HAVE_FREEGLUT /**/
21832 _ACEOF
21833
21834 freeglut=yes
21835 else
21836 { $as_echo "$as_me:$LINENO: WARNING: *** no GL/freeglut.h -- opengl support disabled" >&5
21837 $as_echo "$as_me: WARNING: *** no GL/freeglut.h -- opengl support disabled" >&2;};graphics_opengl=no;graphics_opengl_reason="Headers missing"
21838
21839 fi
21840
21841
21842
21843
21844
21845
21846 if test "${ac_cv_header_GL_glc_h+set}" = set; then
21847 { $as_echo "$as_me:$LINENO: checking for GL/glc.h" >&5
21848 $as_echo_n "checking for GL/glc.h... " >&6; }
21849 if test "${ac_cv_header_GL_glc_h+set}" = set; then
21850 $as_echo_n "(cached) " >&6
21851 fi
21852 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_glc_h" >&5
21853 $as_echo "$ac_cv_header_GL_glc_h" >&6; }
21854 else
21855 # Is the header compilable?
21856 { $as_echo "$as_me:$LINENO: checking GL/glc.h usability" >&5
21857 $as_echo_n "checking GL/glc.h usability... " >&6; }
21858 cat >conftest.$ac_ext <<_ACEOF
21859 /* confdefs.h. */
21860 _ACEOF
21861 cat confdefs.h >>conftest.$ac_ext
21862 cat >>conftest.$ac_ext <<_ACEOF
21863 /* end confdefs.h. */
21864 $ac_includes_default
21865 @%:@include <GL/glc.h>
21866 _ACEOF
21867 rm -f conftest.$ac_objext
21868 if { (ac_try="$ac_compile"
21869 case "(($ac_try" in
21870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21871 *) ac_try_echo=$ac_try;;
21872 esac
21873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21874 $as_echo "$ac_try_echo") >&5
21875 (eval "$ac_compile") 2>conftest.er1
21876 ac_status=$?
21877 grep -v '^ *+' conftest.er1 >conftest.err
21878 rm -f conftest.er1
21879 cat conftest.err >&5
21880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881 (exit $ac_status); } && {
21882 test -z "$ac_c_werror_flag" ||
21883 test ! -s conftest.err
21884 } && test -s conftest.$ac_objext; then
21885 ac_header_compiler=yes
21886 else
21887 $as_echo "$as_me: failed program was:" >&5
21888 sed 's/^/| /' conftest.$ac_ext >&5
21889
21890 ac_header_compiler=no
21891 fi
21892
21893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21894 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21895 $as_echo "$ac_header_compiler" >&6; }
21896
21897 # Is the header present?
21898 { $as_echo "$as_me:$LINENO: checking GL/glc.h presence" >&5
21899 $as_echo_n "checking GL/glc.h presence... " >&6; }
21900 cat >conftest.$ac_ext <<_ACEOF
21901 /* confdefs.h. */
21902 _ACEOF
21903 cat confdefs.h >>conftest.$ac_ext
21904 cat >>conftest.$ac_ext <<_ACEOF
21905 /* end confdefs.h. */
21906 @%:@include <GL/glc.h>
21907 _ACEOF
21908 if { (ac_try="$ac_cpp conftest.$ac_ext"
21909 case "(($ac_try" in
21910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21911 *) ac_try_echo=$ac_try;;
21912 esac
21913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21914 $as_echo "$ac_try_echo") >&5
21915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21916 ac_status=$?
21917 grep -v '^ *+' conftest.er1 >conftest.err
21918 rm -f conftest.er1
21919 cat conftest.err >&5
21920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921 (exit $ac_status); } >/dev/null && {
21922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21923 test ! -s conftest.err
21924 }; then
21925 ac_header_preproc=yes
21926 else
21927 $as_echo "$as_me: failed program was:" >&5
21928 sed 's/^/| /' conftest.$ac_ext >&5
21929
21930 ac_header_preproc=no
21931 fi
21932
21933 rm -f conftest.err conftest.$ac_ext
21934 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21935 $as_echo "$ac_header_preproc" >&6; }
21936
21937 # So? What about this header?
21938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21939 yes:no: )
21940 { $as_echo "$as_me:$LINENO: WARNING: GL/glc.h: accepted by the compiler, rejected by the preprocessor!" >&5
21941 $as_echo "$as_me: WARNING: GL/glc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21942 { $as_echo "$as_me:$LINENO: WARNING: GL/glc.h: proceeding with the compiler's result" >&5
21943 $as_echo "$as_me: WARNING: GL/glc.h: proceeding with the compiler's result" >&2;}
21944 ac_header_preproc=yes
21945 ;;
21946 no:yes:* )
21947 { $as_echo "$as_me:$LINENO: WARNING: GL/glc.h: present but cannot be compiled" >&5
21948 $as_echo "$as_me: WARNING: GL/glc.h: present but cannot be compiled" >&2;}
21949 { $as_echo "$as_me:$LINENO: WARNING: GL/glc.h: check for missing prerequisite headers?" >&5
21950 $as_echo "$as_me: WARNING: GL/glc.h: check for missing prerequisite headers?" >&2;}
21951 { $as_echo "$as_me:$LINENO: WARNING: GL/glc.h: see the Autoconf documentation" >&5
21952 $as_echo "$as_me: WARNING: GL/glc.h: see the Autoconf documentation" >&2;}
21953 { $as_echo "$as_me:$LINENO: WARNING: GL/glc.h: section \"Present But Cannot Be Compiled\"" >&5
21954 $as_echo "$as_me: WARNING: GL/glc.h: section \"Present But Cannot Be Compiled\"" >&2;}
21955 { $as_echo "$as_me:$LINENO: WARNING: GL/glc.h: proceeding with the preprocessor's result" >&5
21956 $as_echo "$as_me: WARNING: GL/glc.h: proceeding with the preprocessor's result" >&2;}
21957 { $as_echo "$as_me:$LINENO: WARNING: GL/glc.h: in the future, the compiler will take precedence" >&5
21958 $as_echo "$as_me: WARNING: GL/glc.h: in the future, the compiler will take precedence" >&2;}
21959
21960 ;;
21961 esac
21962 { $as_echo "$as_me:$LINENO: checking for GL/glc.h" >&5
21963 $as_echo_n "checking for GL/glc.h... " >&6; }
21964 if test "${ac_cv_header_GL_glc_h+set}" = set; then
21965 $as_echo_n "(cached) " >&6
21966 else
21967 ac_cv_header_GL_glc_h=$ac_header_preproc
21968 fi
21969 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_glc_h" >&5
21970 $as_echo "$ac_cv_header_GL_glc_h" >&6; }
21971
21972 fi
21973 if test $ac_cv_header_GL_glc_h = yes; then
21974
21975 cat >>confdefs.h <<\_ACEOF
21976 @%:@define HAVE_GLC /**/
21977 _ACEOF
21978
21979 GLC_LIBS="-lGLC"
21980 glc=yes
21981 else
21982 { $as_echo "$as_me:$LINENO: WARNING: *** no GL/glc.h -- opengl graphics support disabled" >&5
21983 $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"
21984
21985 fi
21986
21987
21988 if test "${ac_cv_header_FreeImage_h+set}" = set; then
21989 { $as_echo "$as_me:$LINENO: checking for FreeImage.h" >&5
21990 $as_echo_n "checking for FreeImage.h... " >&6; }
21991 if test "${ac_cv_header_FreeImage_h+set}" = set; then
21992 $as_echo_n "(cached) " >&6
21993 fi
21994 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_FreeImage_h" >&5
21995 $as_echo "$ac_cv_header_FreeImage_h" >&6; }
21996 else
21997 # Is the header compilable?
21998 { $as_echo "$as_me:$LINENO: checking FreeImage.h usability" >&5
21999 $as_echo_n "checking FreeImage.h usability... " >&6; }
22000 cat >conftest.$ac_ext <<_ACEOF
22001 /* confdefs.h. */
22002 _ACEOF
22003 cat confdefs.h >>conftest.$ac_ext
22004 cat >>conftest.$ac_ext <<_ACEOF
22005 /* end confdefs.h. */
22006 $ac_includes_default
22007 @%:@include <FreeImage.h>
22008 _ACEOF
22009 rm -f conftest.$ac_objext
22010 if { (ac_try="$ac_compile"
22011 case "(($ac_try" in
22012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22013 *) ac_try_echo=$ac_try;;
22014 esac
22015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22016 $as_echo "$ac_try_echo") >&5
22017 (eval "$ac_compile") 2>conftest.er1
22018 ac_status=$?
22019 grep -v '^ *+' conftest.er1 >conftest.err
22020 rm -f conftest.er1
22021 cat conftest.err >&5
22022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023 (exit $ac_status); } && {
22024 test -z "$ac_c_werror_flag" ||
22025 test ! -s conftest.err
22026 } && test -s conftest.$ac_objext; then
22027 ac_header_compiler=yes
22028 else
22029 $as_echo "$as_me: failed program was:" >&5
22030 sed 's/^/| /' conftest.$ac_ext >&5
22031
22032 ac_header_compiler=no
22033 fi
22034
22035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22036 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22037 $as_echo "$ac_header_compiler" >&6; }
22038
22039 # Is the header present?
22040 { $as_echo "$as_me:$LINENO: checking FreeImage.h presence" >&5
22041 $as_echo_n "checking FreeImage.h presence... " >&6; }
22042 cat >conftest.$ac_ext <<_ACEOF
22043 /* confdefs.h. */
22044 _ACEOF
22045 cat confdefs.h >>conftest.$ac_ext
22046 cat >>conftest.$ac_ext <<_ACEOF
22047 /* end confdefs.h. */
22048 @%:@include <FreeImage.h>
22049 _ACEOF
22050 if { (ac_try="$ac_cpp conftest.$ac_ext"
22051 case "(($ac_try" in
22052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22053 *) ac_try_echo=$ac_try;;
22054 esac
22055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22056 $as_echo "$ac_try_echo") >&5
22057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22058 ac_status=$?
22059 grep -v '^ *+' conftest.er1 >conftest.err
22060 rm -f conftest.er1
22061 cat conftest.err >&5
22062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063 (exit $ac_status); } >/dev/null && {
22064 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22065 test ! -s conftest.err
22066 }; then
22067 ac_header_preproc=yes
22068 else
22069 $as_echo "$as_me: failed program was:" >&5
22070 sed 's/^/| /' conftest.$ac_ext >&5
22071
22072 ac_header_preproc=no
22073 fi
22074
22075 rm -f conftest.err conftest.$ac_ext
22076 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22077 $as_echo "$ac_header_preproc" >&6; }
22078
22079 # So? What about this header?
22080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22081 yes:no: )
22082 { $as_echo "$as_me:$LINENO: WARNING: FreeImage.h: accepted by the compiler, rejected by the preprocessor!" >&5
22083 $as_echo "$as_me: WARNING: FreeImage.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22084 { $as_echo "$as_me:$LINENO: WARNING: FreeImage.h: proceeding with the compiler's result" >&5
22085 $as_echo "$as_me: WARNING: FreeImage.h: proceeding with the compiler's result" >&2;}
22086 ac_header_preproc=yes
22087 ;;
22088 no:yes:* )
22089 { $as_echo "$as_me:$LINENO: WARNING: FreeImage.h: present but cannot be compiled" >&5
22090 $as_echo "$as_me: WARNING: FreeImage.h: present but cannot be compiled" >&2;}
22091 { $as_echo "$as_me:$LINENO: WARNING: FreeImage.h: check for missing prerequisite headers?" >&5
22092 $as_echo "$as_me: WARNING: FreeImage.h: check for missing prerequisite headers?" >&2;}
22093 { $as_echo "$as_me:$LINENO: WARNING: FreeImage.h: see the Autoconf documentation" >&5
22094 $as_echo "$as_me: WARNING: FreeImage.h: see the Autoconf documentation" >&2;}
22095 { $as_echo "$as_me:$LINENO: WARNING: FreeImage.h: section \"Present But Cannot Be Compiled\"" >&5
22096 $as_echo "$as_me: WARNING: FreeImage.h: section \"Present But Cannot Be Compiled\"" >&2;}
22097 { $as_echo "$as_me:$LINENO: WARNING: FreeImage.h: proceeding with the preprocessor's result" >&5
22098 $as_echo "$as_me: WARNING: FreeImage.h: proceeding with the preprocessor's result" >&2;}
22099 { $as_echo "$as_me:$LINENO: WARNING: FreeImage.h: in the future, the compiler will take precedence" >&5
22100 $as_echo "$as_me: WARNING: FreeImage.h: in the future, the compiler will take precedence" >&2;}
22101
22102 ;;
22103 esac
22104 { $as_echo "$as_me:$LINENO: checking for FreeImage.h" >&5
22105 $as_echo_n "checking for FreeImage.h... " >&6; }
22106 if test "${ac_cv_header_FreeImage_h+set}" = set; then
22107 $as_echo_n "(cached) " >&6
22108 else
22109 ac_cv_header_FreeImage_h=$ac_header_preproc
22110 fi
22111 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_FreeImage_h" >&5
22112 $as_echo "$ac_cv_header_FreeImage_h" >&6; }
22113
22114 fi
22115 if test $ac_cv_header_FreeImage_h = yes; then
22116
22117 cat >>confdefs.h <<\_ACEOF
22118 @%:@define HAVE_FREEIMAGE /**/
22119 _ACEOF
22120
22121 FREEIMAGE_LIBS="-lfreeimage"
22122 freeimage=yes
22123 else
22124 { $as_echo "$as_me:$LINENO: WARNING: *** no FreeImage.h -- opengl support disabled" >&5
22125 $as_echo "$as_me: WARNING: *** no FreeImage.h -- opengl support disabled" >&2;};graphics_opengl=no;graphics_opengl_reason="Headers missing"
22126
22127 fi
22128
22129
22130
22131
22132
22133 fi
22134
22135 if test "x$glut" = "xyes" -a "x$freeglut" = "xyes" -a "x$opengl" = "xyes" -a "x$freeimage" = "xyes" -a "x$glc" = "xyes" ; then
22136 GRAPHICS_OPENGL_TRUE=
22137 GRAPHICS_OPENGL_FALSE='#'
22138 else
22139 GRAPHICS_OPENGL_TRUE='#'
22140 GRAPHICS_OPENGL_FALSE=
22141 fi
22142
22143
22144 system_shapefile=no
22145
22146
22147 for ac_header in shapefil.h libshp/shapefil.h
22148 do
22149 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22151 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22152 $as_echo_n "checking for $ac_header... " >&6; }
22153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22154 $as_echo_n "(cached) " >&6
22155 fi
22156 ac_res=`eval 'as_val=${'$as_ac_Header'}
22157 $as_echo "$as_val"'`
22158 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22159 $as_echo "$ac_res" >&6; }
22160 else
22161 # Is the header compilable?
22162 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22163 $as_echo_n "checking $ac_header usability... " >&6; }
22164 cat >conftest.$ac_ext <<_ACEOF
22165 /* confdefs.h. */
22166 _ACEOF
22167 cat confdefs.h >>conftest.$ac_ext
22168 cat >>conftest.$ac_ext <<_ACEOF
22169 /* end confdefs.h. */
22170 $ac_includes_default
22171 @%:@include <$ac_header>
22172 _ACEOF
22173 rm -f conftest.$ac_objext
22174 if { (ac_try="$ac_compile"
22175 case "(($ac_try" in
22176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22177 *) ac_try_echo=$ac_try;;
22178 esac
22179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22180 $as_echo "$ac_try_echo") >&5
22181 (eval "$ac_compile") 2>conftest.er1
22182 ac_status=$?
22183 grep -v '^ *+' conftest.er1 >conftest.err
22184 rm -f conftest.er1
22185 cat conftest.err >&5
22186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22187 (exit $ac_status); } && {
22188 test -z "$ac_c_werror_flag" ||
22189 test ! -s conftest.err
22190 } && test -s conftest.$ac_objext; then
22191 ac_header_compiler=yes
22192 else
22193 $as_echo "$as_me: failed program was:" >&5
22194 sed 's/^/| /' conftest.$ac_ext >&5
22195
22196 ac_header_compiler=no
22197 fi
22198
22199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22200 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22201 $as_echo "$ac_header_compiler" >&6; }
22202
22203 # Is the header present?
22204 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22205 $as_echo_n "checking $ac_header presence... " >&6; }
22206 cat >conftest.$ac_ext <<_ACEOF
22207 /* confdefs.h. */
22208 _ACEOF
22209 cat confdefs.h >>conftest.$ac_ext
22210 cat >>conftest.$ac_ext <<_ACEOF
22211 /* end confdefs.h. */
22212 @%:@include <$ac_header>
22213 _ACEOF
22214 if { (ac_try="$ac_cpp conftest.$ac_ext"
22215 case "(($ac_try" in
22216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22217 *) ac_try_echo=$ac_try;;
22218 esac
22219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22220 $as_echo "$ac_try_echo") >&5
22221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22222 ac_status=$?
22223 grep -v '^ *+' conftest.er1 >conftest.err
22224 rm -f conftest.er1
22225 cat conftest.err >&5
22226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22227 (exit $ac_status); } >/dev/null && {
22228 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22229 test ! -s conftest.err
22230 }; then
22231 ac_header_preproc=yes
22232 else
22233 $as_echo "$as_me: failed program was:" >&5
22234 sed 's/^/| /' conftest.$ac_ext >&5
22235
22236 ac_header_preproc=no
22237 fi
22238
22239 rm -f conftest.err conftest.$ac_ext
22240 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22241 $as_echo "$ac_header_preproc" >&6; }
22242
22243 # So? What about this header?
22244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22245 yes:no: )
22246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22247 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22249 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22250 ac_header_preproc=yes
22251 ;;
22252 no:yes:* )
22253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22254 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22256 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22258 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22259 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22260 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22262 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22263 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22264 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22265
22266 ;;
22267 esac
22268 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22269 $as_echo_n "checking for $ac_header... " >&6; }
22270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22271 $as_echo_n "(cached) " >&6
22272 else
22273 eval "$as_ac_Header=\$ac_header_preproc"
22274 fi
22275 ac_res=`eval 'as_val=${'$as_ac_Header'}
22276 $as_echo "$as_val"'`
22277 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22278 $as_echo "$ac_res" >&6; }
22279
22280 fi
22281 if test `eval 'as_val=${'$as_ac_Header'}
22282 $as_echo "$as_val"'` = yes; then
22283 cat >>confdefs.h <<_ACEOF
22284 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22285 _ACEOF
22286
22287 cat >>confdefs.h <<\_ACEOF
22288 @%:@define HAVE_SYS_SHAPEFILELIB 1
22289 _ACEOF
22290
22291 SHAPEFILE_LIBS="-lshp"
22292 system_shapefile=yes
22293
22294 fi
22295
22296 done
22297
22298
22299
22300 if test "x$system_shapefile" = "xyes" ; then
22301 HAVE_SYSTEM_SHAPEFILELIB_TRUE=
22302 HAVE_SYSTEM_SHAPEFILELIB_FALSE='#'
22303 else
22304 HAVE_SYSTEM_SHAPEFILELIB_TRUE='#'
22305 HAVE_SYSTEM_SHAPEFILELIB_FALSE=
22306 fi
22307
22308 if test x"${system_shapefile}" = xno
22309 then
22310 { $as_echo "$as_me:$LINENO: WARNING: *** no libshp/shapefil.h -- using included copy" >&5
22311 $as_echo "$as_me: WARNING: *** no libshp/shapefil.h -- using included copy" >&2;}
22312 fi
22313
22314
22315 if test x"${USE_GARMIN}" = xyes
22316 then
22317 # check for libgarmin
22318
22319 pkg_failed=no
22320 { $as_echo "$as_me:$LINENO: checking for LIBGARMIN" >&5
22321 $as_echo_n "checking for LIBGARMIN... " >&6; }
22322
22323 if test -n "$PKG_CONFIG"; then
22324 if test -n "$LIBGARMIN_CFLAGS"; then
22325 pkg_cv_LIBGARMIN_CFLAGS="$LIBGARMIN_CFLAGS"
22326 else
22327 if test -n "$PKG_CONFIG" && \
22328 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgarmin\"") >&5
22329 ($PKG_CONFIG --exists --print-errors "libgarmin") 2>&5
22330 ac_status=$?
22331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332 (exit $ac_status); }; then
22333 pkg_cv_LIBGARMIN_CFLAGS=`$PKG_CONFIG --cflags "libgarmin" 2>/dev/null`
22334 else
22335 pkg_failed=yes
22336 fi
22337 fi
22338 else
22339 pkg_failed=untried
22340 fi
22341 if test -n "$PKG_CONFIG"; then
22342 if test -n "$LIBGARMIN_LIBS"; then
22343 pkg_cv_LIBGARMIN_LIBS="$LIBGARMIN_LIBS"
22344 else
22345 if test -n "$PKG_CONFIG" && \
22346 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgarmin\"") >&5
22347 ($PKG_CONFIG --exists --print-errors "libgarmin") 2>&5
22348 ac_status=$?
22349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22350 (exit $ac_status); }; then
22351 pkg_cv_LIBGARMIN_LIBS=`$PKG_CONFIG --libs "libgarmin" 2>/dev/null`
22352 else
22353 pkg_failed=yes
22354 fi
22355 fi
22356 else
22357 pkg_failed=untried
22358 fi
22359
22360
22361
22362 if test $pkg_failed = yes; then
22363
22364 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22365 _pkg_short_errors_supported=yes
22366 else
22367 _pkg_short_errors_supported=no
22368 fi
22369 if test $_pkg_short_errors_supported = yes; then
22370 LIBGARMIN_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgarmin"`
22371 else
22372 LIBGARMIN_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgarmin"`
22373 fi
22374 # Put the nasty error message in config.log where it belongs
22375 echo "$LIBGARMIN_PKG_ERRORS" >&5
22376
22377 { $as_echo "$as_me:$LINENO: result: no" >&5
22378 $as_echo "no" >&6; }
22379 use_libgarmin=no
22380 elif test $pkg_failed = untried; then
22381 use_libgarmin=no
22382 else
22383 LIBGARMIN_CFLAGS=$pkg_cv_LIBGARMIN_CFLAGS
22384 LIBGARMIN_LIBS=$pkg_cv_LIBGARMIN_LIBS
22385 { $as_echo "$as_me:$LINENO: result: yes" >&5
22386 $as_echo "yes" >&6; }
22387 use_libgarmin=yes
22388 fi
22389
22390
22391 fi
22392 if test "x$use_libgarmin" = "xyes"; then
22393 HAVELIBGARMIN_TRUE=
22394 HAVELIBGARMIN_FALSE='#'
22395 else
22396 HAVELIBGARMIN_TRUE='#'
22397 HAVELIBGARMIN_FALSE=
22398 fi
22399
22400
22401 ## binding
22402 # python
22403 @%:@ Check whether --enable-binding-python was given.
22404 if test "${enable_binding_python+set}" = set; then
22405 enableval=$enable_binding_python; binding_python=$enableval;binding_python_reason="configure parameter"
22406 fi
22407
22408 if test "x${binding_python}" = "xyes"; then
22409 # Extract the first word of "python", so it can be a program name with args.
22410 set dummy python; ac_word=$2
22411 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22412 $as_echo_n "checking for $ac_word... " >&6; }
22413 if test "${ac_cv_path__PATH_PYTHON+set}" = set; then
22414 $as_echo_n "(cached) " >&6
22415 else
22416 case $_PATH_PYTHON in
22417 [\\/]* | ?:[\\/]*)
22418 ac_cv_path__PATH_PYTHON="$_PATH_PYTHON" # Let the user override the test with a path.
22419 ;;
22420 *)
22421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22422 for as_dir in $PATH
22423 do
22424 IFS=$as_save_IFS
22425 test -z "$as_dir" && as_dir=.
22426 for ac_exec_ext in '' $ac_executable_extensions; do
22427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22428 ac_cv_path__PATH_PYTHON="$as_dir/$ac_word$ac_exec_ext"
22429 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22430 break 2
22431 fi
22432 done
22433 done
22434 IFS=$as_save_IFS
22435
22436 ;;
22437 esac
22438 fi
22439 _PATH_PYTHON=$ac_cv_path__PATH_PYTHON
22440 if test -n "$_PATH_PYTHON"; then
22441 { $as_echo "$as_me:$LINENO: result: $_PATH_PYTHON" >&5
22442 $as_echo "$_PATH_PYTHON" >&6; }
22443 else
22444 { $as_echo "$as_me:$LINENO: result: no" >&5
22445 $as_echo "no" >&6; }
22446 fi
22447
22448
22449 if test "x${_PATH_PYTHON}" != "x" ; then
22450 { $as_echo "$as_me:$LINENO: checking for Python linkage" >&5
22451 $as_echo_n "checking for Python linkage... " >&6; }
22452 # Extract the first word of "python-config", so it can be a program name with args.
22453 set dummy python-config; ac_word=$2
22454 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22455 $as_echo_n "checking for $ac_word... " >&6; }
22456 if test "${ac_cv_path_PYTHONCONFIG+set}" = set; then
22457 $as_echo_n "(cached) " >&6
22458 else
22459 case $PYTHONCONFIG in
22460 [\\/]* | ?:[\\/]*)
22461 ac_cv_path_PYTHONCONFIG="$PYTHONCONFIG" # Let the user override the test with a path.
22462 ;;
22463 *)
22464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22465 for as_dir in $PATH
22466 do
22467 IFS=$as_save_IFS
22468 test -z "$as_dir" && as_dir=.
22469 for ac_exec_ext in '' $ac_executable_extensions; do
22470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22471 ac_cv_path_PYTHONCONFIG="$as_dir/$ac_word$ac_exec_ext"
22472 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22473 break 2
22474 fi
22475 done
22476 done
22477 IFS=$as_save_IFS
22478
22479 ;;
22480 esac
22481 fi
22482 PYTHONCONFIG=$ac_cv_path_PYTHONCONFIG
22483 if test -n "$PYTHONCONFIG"; then
22484 { $as_echo "$as_me:$LINENO: result: $PYTHONCONFIG" >&5
22485 $as_echo "$PYTHONCONFIG" >&6; }
22486 else
22487 { $as_echo "$as_me:$LINENO: result: no" >&5
22488 $as_echo "no" >&6; }
22489 fi
22490
22491
22492 if test "x${PYTHONCONFIG}" = "x" ; then
22493 py_prefix=`$_PATH_PYTHON -c 'import sys; print sys.prefix'`
22494 py_ver=`$_PATH_PYTHON -c 'import sys; print sys.version[:3]'`
22495 py_lib=`$_PATH_PYTHON -c 'import sys; print sys.lib'`
22496 py_libdir="${py_prefix}/${py_lib}/python${py_ver}"
22497 PYTHON_CFLAGS="-I${py_prefix}/include/python${py_ver}"
22498 if test -f $py_libdir/config/Makefile -a -f $py_prefix/include/python${py_ver}/Python.h; then
22499 py_libs=`grep '^LIBS=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
22500 py_libc=`grep '^LIBC=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
22501 py_libm=`grep '^LIBM=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
22502 py_liblocalmod=`grep '^LOCALMODLIBS=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
22503 py_libbasemod=`grep '^BASEMODLIBS=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
22504 PYTHON_LIBS="-L$py_libdir/config $py_libs $py_libc $py_libm -lpython$py_ver $py_liblocalmod $py_libbasemod"
22505 PYTHON_LIBS=`echo $PYTHON_LIBS | sed -e 's/ \\t*/ /g'`
22506 { $as_echo "$as_me:$LINENO: result: $py_libdir" >&5
22507 $as_echo "$py_libdir" >&6; }
22508 else
22509 binding_python="no"
22510 binding_python_reason="$py_libdir/config/Makefile or $py_prefix/include/python${py_ver}/Python.h missing"
22511 fi
22512
22513 else
22514 PYTHON_CFLAGS="`${PYTHONCONFIG} --cflags`"
22515 PYTHON_LIBS="`${PYTHONCONFIG} --ldflags`"
22516 fi
22517 else
22518 binding_python="no"
22519 binding_python_reason="python executable missing"
22520 fi
22521 fi
22522 if test "x${binding_python}" = xyes ; then
22523
22524 cat >>confdefs.h <<\_ACEOF
22525 @%:@define USE_BINDING_PYTHON 1
22526 _ACEOF
22527
22528 fi
22529
22530
22531 if test "x${binding_python}" = "xyes"; then
22532 BINDING_PYTHON_TRUE=
22533 BINDING_PYTHON_FALSE='#'
22534 else
22535 BINDING_PYTHON_TRUE='#'
22536 BINDING_PYTHON_FALSE=
22537 fi
22538
22539
22540 # dbus
22541 @%:@ Check whether --enable-binding-dbus was given.
22542 if test "${enable_binding_dbus+set}" = set; then
22543 enableval=$enable_binding_dbus; binding_dbus=$enableval;binding_dbus_reason="configure parameter"
22544 fi
22545
22546 @%:@ Check whether --enable-binding-dbus-use-system-bus was given.
22547 if test "${enable_binding_dbus_use_system_bus+set}" = set; then
22548 enableval=$enable_binding_dbus_use_system_bus; binding_dbus_use_system_bus=$enableval
22549 fi
22550
22551 if test "x${binding_dbus}" = "xyes" ; then
22552
22553 pkg_failed=no
22554 { $as_echo "$as_me:$LINENO: checking for DBUS" >&5
22555 $as_echo_n "checking for DBUS... " >&6; }
22556
22557 if test -n "$PKG_CONFIG"; then
22558 if test -n "$DBUS_CFLAGS"; then
22559 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
22560 else
22561 if test -n "$PKG_CONFIG" && \
22562 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1\"") >&5
22563 ($PKG_CONFIG --exists --print-errors "dbus-glib-1") 2>&5
22564 ac_status=$?
22565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566 (exit $ac_status); }; then
22567 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-glib-1" 2>/dev/null`
22568 else
22569 pkg_failed=yes
22570 fi
22571 fi
22572 else
22573 pkg_failed=untried
22574 fi
22575 if test -n "$PKG_CONFIG"; then
22576 if test -n "$DBUS_LIBS"; then
22577 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
22578 else
22579 if test -n "$PKG_CONFIG" && \
22580 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1\"") >&5
22581 ($PKG_CONFIG --exists --print-errors "dbus-glib-1") 2>&5
22582 ac_status=$?
22583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22584 (exit $ac_status); }; then
22585 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-glib-1" 2>/dev/null`
22586 else
22587 pkg_failed=yes
22588 fi
22589 fi
22590 else
22591 pkg_failed=untried
22592 fi
22593
22594
22595
22596 if test $pkg_failed = yes; then
22597
22598 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22599 _pkg_short_errors_supported=yes
22600 else
22601 _pkg_short_errors_supported=no
22602 fi
22603 if test $_pkg_short_errors_supported = yes; then
22604 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dbus-glib-1"`
22605 else
22606 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-glib-1"`
22607 fi
22608 # Put the nasty error message in config.log where it belongs
22609 echo "$DBUS_PKG_ERRORS" >&5
22610
22611 { $as_echo "$as_me:$LINENO: result: no" >&5
22612 $as_echo "no" >&6; }
22613 binding_dbus=no
22614 elif test $pkg_failed = untried; then
22615 binding_dbus=no
22616 else
22617 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
22618 DBUS_LIBS=$pkg_cv_DBUS_LIBS
22619 { $as_echo "$as_me:$LINENO: result: yes" >&5
22620 $as_echo "yes" >&6; }
22621 :
22622 fi
22623 fi
22624 if test "x${binding_dbus}" = "xyes" ; then
22625
22626 cat >>confdefs.h <<\_ACEOF
22627 @%:@define USE_BINDING_DBUS 1
22628 _ACEOF
22629
22630 vehicle_gpsd_dbus="yes"
22631 vehicle_gpsd_dbus_reason="dbus binding present"
22632 speech_dbus="yes"
22633 speech_dbus_reason="dbus binding present"
22634 fi
22635 if test "x${binding_dbus_use_system_bus}" = "xyes" ; then
22636
22637 cat >>confdefs.h <<\_ACEOF
22638 @%:@define DBUS_USE_SYSTEM_BUS 1
22639 _ACEOF
22640
22641 fi
22642
22643
22644 if test "x${binding_dbus}" = "xyes"; then
22645 BINDING_DBUS_TRUE=
22646 BINDING_DBUS_FALSE='#'
22647 else
22648 BINDING_DBUS_TRUE='#'
22649 BINDING_DBUS_FALSE=
22650 fi
22651
22652 if test "x${vehicle_gpsd_dbus}" = "xyes"; then
22653 VEHICLE_GPSD_DBUS_TRUE=
22654 VEHICLE_GPSD_DBUS_FALSE='#'
22655 else
22656 VEHICLE_GPSD_DBUS_TRUE='#'
22657 VEHICLE_GPSD_DBUS_FALSE=
22658 fi
22659
22660 if test "x${speech_dbus}" = "xyes"; then
22661 SPEECH_DBUS_TRUE=
22662 SPEECH_DBUS_FALSE='#'
22663 else
22664 SPEECH_DBUS_TRUE='#'
22665 SPEECH_DBUS_FALSE=
22666 fi
22667
22668
22669 @%:@ Check whether --with-dbus-service-dir was given.
22670 if test "${with_dbus_service_dir+set}" = set; then
22671 withval=$with_dbus_service_dir; DBUS_SERVICE_DIR=$withval
22672 else
22673 DBUS_SERVICE_DIR="$datarootdir/dbus-1/services"
22674 fi
22675
22676
22677
22678 # svg
22679 @%:@ Check whether --enable-svg was given.
22680 if test "${enable_svg+set}" = set; then
22681 enableval=$enable_svg; enable_svg=$enableval
22682 else
22683 enable_svg=yes
22684 fi
22685
22686 @%:@ Check whether --enable-svg2png was given.
22687 if test "${enable_svg2png+set}" = set; then
22688 enableval=$enable_svg2png; enable_svg2png=$enableval
22689 else
22690 enable_svg2png=yes
22691 fi
22692
22693 @%:@ Check whether --enable-svg2png-scaling was given.
22694 if test "${enable_svg2png_scaling+set}" = set; then
22695 enableval=$enable_svg2png_scaling; SVG2PNG_SCALES=$enableval
22696 else
22697 SVG2PNG_SCALES="8 16 32 48 96"
22698 fi
22699
22700 @%:@ Check whether --enable-svg2png-scaling-flag was given.
22701 if test "${enable_svg2png_scaling_flag+set}" = set; then
22702 enableval=$enable_svg2png_scaling_flag; SVG2PNG_SCALES_FLAG=$enableval
22703 else
22704 SVG2PNG_SCALES_FLAG="8 16 32 48 96"
22705 fi
22706
22707 @%:@ Check whether --enable-svg2png-scaling-nav was given.
22708 if test "${enable_svg2png_scaling_nav+set}" = set; then
22709 enableval=$enable_svg2png_scaling_nav; SVG2PNG_SCALES_NAV=$enableval
22710 else
22711 SVG2PNG_SCALES_NAV="8 16 32 48 96"
22712 fi
22713
22714
22715 @%:@ Check whether --with-svg2png-use-convert was given.
22716 if test "${with_svg2png_use_convert+set}" = set; then
22717 withval=$with_svg2png_use_convert; SVG2PNG_CONVERTER="convert"
22718 fi
22719
22720
22721 @%:@ Check whether --with-svg2png-use-rsvg-convert was given.
22722 if test "${with_svg2png_use_rsvg_convert+set}" = set; then
22723 withval=$with_svg2png_use_rsvg_convert; SVG2PNG_CONVERTER="rsvg-convert"
22724 fi
22725
22726
22727 @%:@ Check whether --with-svg2png-use-inkscape was given.
22728 if test "${with_svg2png_use_inkscape+set}" = set; then
22729 withval=$with_svg2png_use_inkscape; SVG2PNG_CONVERTER="inkscape"
22730 fi
22731
22732
22733 @%:@ Check whether --with-svg2png-use-ksvgtopng4 was given.
22734 if test "${with_svg2png_use_ksvgtopng4+set}" = set; then
22735 withval=$with_svg2png_use_ksvgtopng4; SVG2PNG_CONVERTER="ksvgtopng4"
22736 fi
22737
22738
22739 @%:@ Check whether --with-svg2png-use-ksvgtopng was given.
22740 if test "${with_svg2png_use_ksvgtopng+set}" = set; then
22741 withval=$with_svg2png_use_ksvgtopng; SVG2PNG_CONVERTER="ksvgtopng"
22742 fi
22743
22744 if test "x${enable_svg2png}" = "xyes" ; then
22745 if test "x${SVG2PNG_CONVERTER}" = "x"; then
22746 SVG2PNG_CONVERTER="rsvg-convert ksvgtopng ksvgtopng4 inkscape convert"
22747 fi
22748 for ac_prog in ${SVG2PNG_CONVERTER}
22749 do
22750 # Extract the first word of "$ac_prog", so it can be a program name with args.
22751 set dummy $ac_prog; ac_word=$2
22752 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22753 $as_echo_n "checking for $ac_word... " >&6; }
22754 if test "${ac_cv_path_SVG2PNG+set}" = set; then
22755 $as_echo_n "(cached) " >&6
22756 else
22757 case $SVG2PNG in
22758 [\\/]* | ?:[\\/]*)
22759 ac_cv_path_SVG2PNG="$SVG2PNG" # Let the user override the test with a path.
22760 ;;
22761 *)
22762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22763 for as_dir in $PATH
22764 do
22765 IFS=$as_save_IFS
22766 test -z "$as_dir" && as_dir=.
22767 for ac_exec_ext in '' $ac_executable_extensions; do
22768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22769 ac_cv_path_SVG2PNG="$as_dir/$ac_word$ac_exec_ext"
22770 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22771 break 2
22772 fi
22773 done
22774 done
22775 IFS=$as_save_IFS
22776
22777 ;;
22778 esac
22779 fi
22780 SVG2PNG=$ac_cv_path_SVG2PNG
22781 if test -n "$SVG2PNG"; then
22782 { $as_echo "$as_me:$LINENO: result: $SVG2PNG" >&5
22783 $as_echo "$SVG2PNG" >&6; }
22784 else
22785 { $as_echo "$as_me:$LINENO: result: no" >&5
22786 $as_echo "no" >&6; }
22787 fi
22788
22789
22790 test -n "$SVG2PNG" && break
22791 done
22792 test -n "$SVG2PNG" || SVG2PNG="none"
22793
22794 if test "x${SVG2PNG}" = "xnone"; then
22795 enable_svg2png="no"
22796 fi
22797 fi
22798
22799
22800
22801
22802 if test "x${SVG2PNG_SCALES}" != "xyes" -a "x${SVG2PNG_SCALES}" != "x"; then
22803 USE_SVG2PNG_SCALES_TRUE=
22804 USE_SVG2PNG_SCALES_FALSE='#'
22805 else
22806 USE_SVG2PNG_SCALES_TRUE='#'
22807 USE_SVG2PNG_SCALES_FALSE=
22808 fi
22809
22810 if test "x${SVG2PNG_SCALES_FLAG}" != "xyes" -a "x${SVG2PNG_SCALES_FLAG}" != "x"; then
22811 USE_SVG2PNG_SCALES_FLAG_TRUE=
22812 USE_SVG2PNG_SCALES_FLAG_FALSE='#'
22813 else
22814 USE_SVG2PNG_SCALES_FLAG_TRUE='#'
22815 USE_SVG2PNG_SCALES_FLAG_FALSE=
22816 fi
22817
22818 if test "x${SVG2PNG_SCALES_NAV}" != "xyes" -a "x${SVG2PNG_SCALES_NAV}" != "x"; then
22819 USE_SVG2PNG_SCALES_NAV_TRUE=
22820 USE_SVG2PNG_SCALES_NAV_FALSE='#'
22821 else
22822 USE_SVG2PNG_SCALES_NAV_TRUE='#'
22823 USE_SVG2PNG_SCALES_NAV_FALSE=
22824 fi
22825
22826 if test "x${enable_svg2png}" = "xyes"; then
22827 USE_SVG2PNG_TRUE=
22828 USE_SVG2PNG_FALSE='#'
22829 else
22830 USE_SVG2PNG_TRUE='#'
22831 USE_SVG2PNG_FALSE=
22832 fi
22833
22834 if test "x${enable_svg}" = "xyes"; then
22835 USE_SVG_TRUE=
22836 USE_SVG_FALSE='#'
22837 else
22838 USE_SVG_TRUE='#'
22839 USE_SVG_FALSE=
22840 fi
22841
22842
22843 # XSLTS
22844
22845 @%:@ Check whether --with-xslts was given.
22846 if test "${with_xslts+set}" = set; then
22847 withval=$with_xslts; XSLTS=$withval
22848 else
22849 XSLTS=""
22850 fi
22851
22852
22853
22854 @%:@ Check whether --with-saxon was given.
22855 if test "${with_saxon+set}" = set; then
22856 withval=$with_saxon; SAXON=$withval
22857 else
22858 SAXON="saxon"
22859 fi
22860
22861
22862
22863 # Android Permissions
22864
22865 @%:@ Check whether --with-android-permissions was given.
22866 if test "${with_android_permissions+set}" = set; then
22867 withval=$with_android_permissions; ANDROID_PERMISSIONS=$withval
22868 else
22869 ANDROID_PERMISSIONS=""
22870 fi
22871
22872
22873 # Android Project
22874
22875 @%:@ Check whether --with-android-project was given.
22876 if test "${with_android_project+set}" = set; then
22877 withval=$with_android_project; ANDROID_PROJECT=$withval
22878 else
22879 ANDROID_PROJECT="3"
22880 fi
22881
22882
22883
22884 # NLS
22885
22886 @%:@ Check whether --enable-nls was given.
22887 if test "${enable_nls+set}" = set; then
22888 enableval=$enable_nls; enable_nls=$enableval
22889 else
22890 enable_nls=yes
22891 fi
22892
22893
22894
22895 INTLIBS=""
22896 MOFILES=""
22897 POFILES=""
22898 POIFILES=""
22899 LINGUAS=""
22900
22901 xgettext_glade=no
22902 if test "x$enable_nls" = "xyes"; then
22903
22904 { $as_echo "$as_me:$LINENO: checking for gettext" >&5
22905 $as_echo_n "checking for gettext... " >&6; }
22906 if test "${ac_cv_func_gettext+set}" = set; then
22907 $as_echo_n "(cached) " >&6
22908 else
22909 cat >conftest.$ac_ext <<_ACEOF
22910 /* confdefs.h. */
22911 _ACEOF
22912 cat confdefs.h >>conftest.$ac_ext
22913 cat >>conftest.$ac_ext <<_ACEOF
22914 /* end confdefs.h. */
22915 /* Define gettext to an innocuous variant, in case <limits.h> declares gettext.
22916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22917 #define gettext innocuous_gettext
22918
22919 /* System header to define __stub macros and hopefully few prototypes,
22920 which can conflict with char gettext (); below.
22921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22922 <limits.h> exists even on freestanding compilers. */
22923
22924 #ifdef __STDC__
22925 # include <limits.h>
22926 #else
22927 # include <assert.h>
22928 #endif
22929
22930 #undef gettext
22931
22932 /* Override any GCC internal prototype to avoid an error.
22933 Use char because int might match the return type of a GCC
22934 builtin and then its argument prototype would still apply. */
22935 #ifdef __cplusplus
22936 extern "C"
22937 #endif
22938 char gettext ();
22939 /* The GNU C library defines this for functions which it implements
22940 to always fail with ENOSYS. Some functions are actually named
22941 something starting with __ and the normal name is an alias. */
22942 #if defined __stub_gettext || defined __stub___gettext
22943 choke me
22944 #endif
22945
22946 int
22947 main ()
22948 {
22949 return gettext ();
22950 ;
22951 return 0;
22952 }
22953 _ACEOF
22954 rm -f conftest.$ac_objext conftest$ac_exeext
22955 if { (ac_try="$ac_link"
22956 case "(($ac_try" in
22957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22958 *) ac_try_echo=$ac_try;;
22959 esac
22960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22961 $as_echo "$ac_try_echo") >&5
22962 (eval "$ac_link") 2>conftest.er1
22963 ac_status=$?
22964 grep -v '^ *+' conftest.er1 >conftest.err
22965 rm -f conftest.er1
22966 cat conftest.err >&5
22967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22968 (exit $ac_status); } && {
22969 test -z "$ac_c_werror_flag" ||
22970 test ! -s conftest.err
22971 } && test -s conftest$ac_exeext && {
22972 test "$cross_compiling" = yes ||
22973 $as_test_x conftest$ac_exeext
22974 }; then
22975 ac_cv_func_gettext=yes
22976 else
22977 $as_echo "$as_me: failed program was:" >&5
22978 sed 's/^/| /' conftest.$ac_ext >&5
22979
22980 ac_cv_func_gettext=no
22981 fi
22982
22983 rm -rf conftest.dSYM
22984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22985 conftest$ac_exeext conftest.$ac_ext
22986 fi
22987 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gettext" >&5
22988 $as_echo "$ac_cv_func_gettext" >&6; }
22989 if test $ac_cv_func_gettext = yes; then
22990 HAVEGETTEXT="yes"
22991 else
22992 INTLIBS="-lintl" HAVEGETTEXT="yes"
22993 fi
22994
22995 # Extract the first word of "xgettext", so it can be a program name with args.
22996 set dummy xgettext; ac_word=$2
22997 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22998 $as_echo_n "checking for $ac_word... " >&6; }
22999 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
23000 $as_echo_n "(cached) " >&6
23001 else
23002 if test -n "$XGETTEXT"; then
23003 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
23004 else
23005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23006 for as_dir in $PATH
23007 do
23008 IFS=$as_save_IFS
23009 test -z "$as_dir" && as_dir=.
23010 for ac_exec_ext in '' $ac_executable_extensions; do
23011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23012 ac_cv_prog_XGETTEXT="xgettext"
23013 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23014 break 2
23015 fi
23016 done
23017 done
23018 IFS=$as_save_IFS
23019
23020 fi
23021 fi
23022 XGETTEXT=$ac_cv_prog_XGETTEXT
23023 if test -n "$XGETTEXT"; then
23024 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
23025 $as_echo "$XGETTEXT" >&6; }
23026 else
23027 { $as_echo "$as_me:$LINENO: result: no" >&5
23028 $as_echo "no" >&6; }
23029 fi
23030
23031
23032 # Extract the first word of "msgmerge", so it can be a program name with args.
23033 set dummy msgmerge; ac_word=$2
23034 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23035 $as_echo_n "checking for $ac_word... " >&6; }
23036 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
23037 $as_echo_n "(cached) " >&6
23038 else
23039 if test -n "$MSGMERGE"; then
23040 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
23041 else
23042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23043 for as_dir in $PATH
23044 do
23045 IFS=$as_save_IFS
23046 test -z "$as_dir" && as_dir=.
23047 for ac_exec_ext in '' $ac_executable_extensions; do
23048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23049 ac_cv_prog_MSGMERGE="msgmerge"
23050 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23051 break 2
23052 fi
23053 done
23054 done
23055 IFS=$as_save_IFS
23056
23057 fi
23058 fi
23059 MSGMERGE=$ac_cv_prog_MSGMERGE
23060 if test -n "$MSGMERGE"; then
23061 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
23062 $as_echo "$MSGMERGE" >&6; }
23063 else
23064 { $as_echo "$as_me:$LINENO: result: no" >&5
23065 $as_echo "no" >&6; }
23066 fi
23067
23068
23069 # Extract the first word of "msgfmt", so it can be a program name with args.
23070 set dummy msgfmt; ac_word=$2
23071 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23072 $as_echo_n "checking for $ac_word... " >&6; }
23073 if test "${ac_cv_prog_MSGFMT+set}" = set; then
23074 $as_echo_n "(cached) " >&6
23075 else
23076 if test -n "$MSGFMT"; then
23077 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
23078 else
23079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23080 for as_dir in $PATH
23081 do
23082 IFS=$as_save_IFS
23083 test -z "$as_dir" && as_dir=.
23084 for ac_exec_ext in '' $ac_executable_extensions; do
23085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23086 ac_cv_prog_MSGFMT="msgfmt"
23087 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23088 break 2
23089 fi
23090 done
23091 done
23092 IFS=$as_save_IFS
23093
23094 fi
23095 fi
23096 MSGFMT=$ac_cv_prog_MSGFMT
23097 if test -n "$MSGFMT"; then
23098 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
23099 $as_echo "$MSGFMT" >&6; }
23100 else
23101 { $as_echo "$as_me:$LINENO: result: no" >&5
23102 $as_echo "no" >&6; }
23103 fi
23104
23105
23106
23107 if test "$XGETTEXT" != ""; then
23108 if $XGETTEXT --help 2>&1 | grep illegal >/dev/null ; then
23109 echo "xgettext isn't GNU version"
23110 XGETTEXT=""
23111 else
23112 if echo '<test/>' | $XGETTEXT -L Glade - ; then
23113 xgettext_glade=yes
23114 fi
23115 fi
23116 fi
23117
23118 if test "$XGETTEXT" != "" ; then
23119 PO=""
23120 if test "$LINGUAS" = ""; then
23121 ling=` (cd $srcdir/po; /bin/ls *.po) `
23122 for l in $ling; do
23123 lcode=`basename $l .po`
23124 LINGUAS="$LINGUAS$lcode "
23125 done
23126 fi
23127
23128 cat >>confdefs.h <<\_ACEOF
23129 @%:@define ENABLE_NLS 1
23130 _ACEOF
23131
23132 echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
23133 else
23134 LINGUAS=""
23135 PO=""
23136 echo "xgettext doesn't exist; will not build i18n support"
23137 enable_nls=no
23138 fi
23139 for lang in $LINGUAS; do
23140 MOFILES="$MOFILES $lang.mo"
23141 done
23142 for lang in $LINGUAS; do
23143 POFILES="$POFILES $lang.po"
23144 done
23145 for lang in $LINGUAS; do
23146 POIFILES="$POIFILES $lang.po"
23147 done
23148
23149
23150
23151
23152
23153
23154
23155 MKINSTALLDIRS=
23156 if test -n "$ac_aux_dir"; then
23157 case "$ac_aux_dir" in
23158 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
23159 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
23160 esac
23161 fi
23162 if test -z "$MKINSTALLDIRS"; then
23163 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
23164 fi
23165
23166
23167
23168 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23169 $as_echo_n "checking whether NLS is requested... " >&6; }
23170 @%:@ Check whether --enable-nls was given.
23171 if test "${enable_nls+set}" = set; then
23172 enableval=$enable_nls; USE_NLS=$enableval
23173 else
23174 USE_NLS=yes
23175 fi
23176
23177 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
23178 $as_echo "$USE_NLS" >&6; }
23179
23180
23181
23182
23183
23184
23185 # Prepare PATH_SEPARATOR.
23186 # The user is always right.
23187 if test "${PATH_SEPARATOR+set}" != set; then
23188 echo "#! /bin/sh" >conf$$.sh
23189 echo "exit 0" >>conf$$.sh
23190 chmod +x conf$$.sh
23191 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23192 PATH_SEPARATOR=';'
23193 else
23194 PATH_SEPARATOR=:
23195 fi
23196 rm -f conf$$.sh
23197 fi
23198
23199 # Find out how to test for executable files. Don't use a zero-byte file,
23200 # as systems may use methods other than mode bits to determine executability.
23201 cat >conf$$.file <<_ASEOF
23202 #! /bin/sh
23203 exit 0
23204 _ASEOF
23205 chmod +x conf$$.file
23206 if test -x conf$$.file >/dev/null 2>&1; then
23207 ac_executable_p="test -x"
23208 else
23209 ac_executable_p="test -f"
23210 fi
23211 rm -f conf$$.file
23212
23213 # Extract the first word of "msgfmt", so it can be a program name with args.
23214 set dummy msgfmt; ac_word=$2
23215 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23216 $as_echo_n "checking for $ac_word... " >&6; }
23217 if test "${ac_cv_path_MSGFMT+set}" = set; then
23218 $as_echo_n "(cached) " >&6
23219 else
23220 case "$MSGFMT" in
23221 [\\/]* | ?:[\\/]*)
23222 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
23223 ;;
23224 *)
23225 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
23226 for ac_dir in $PATH; do
23227 IFS="$ac_save_IFS"
23228 test -z "$ac_dir" && ac_dir=.
23229 for ac_exec_ext in '' $ac_executable_extensions; do
23230 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
23231 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
23232 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
23233 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
23234 break 2
23235 fi
23236 fi
23237 done
23238 done
23239 IFS="$ac_save_IFS"
23240 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
23241 ;;
23242 esac
23243 fi
23244 MSGFMT="$ac_cv_path_MSGFMT"
23245 if test "$MSGFMT" != ":"; then
23246 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
23247 $as_echo "$MSGFMT" >&6; }
23248 else
23249 { $as_echo "$as_me:$LINENO: result: no" >&5
23250 $as_echo "no" >&6; }
23251 fi
23252
23253 # Extract the first word of "gmsgfmt", so it can be a program name with args.
23254 set dummy gmsgfmt; ac_word=$2
23255 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23256 $as_echo_n "checking for $ac_word... " >&6; }
23257 if test "${ac_cv_path_GMSGFMT+set}" = set; then
23258 $as_echo_n "(cached) " >&6
23259 else
23260 case $GMSGFMT in
23261 [\\/]* | ?:[\\/]*)
23262 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
23263 ;;
23264 *)
23265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23266 for as_dir in $PATH
23267 do
23268 IFS=$as_save_IFS
23269 test -z "$as_dir" && as_dir=.
23270 for ac_exec_ext in '' $ac_executable_extensions; do
23271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23272 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
23273 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23274 break 2
23275 fi
23276 done
23277 done
23278 IFS=$as_save_IFS
23279
23280 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
23281 ;;
23282 esac
23283 fi
23284 GMSGFMT=$ac_cv_path_GMSGFMT
23285 if test -n "$GMSGFMT"; then
23286 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
23287 $as_echo "$GMSGFMT" >&6; }
23288 else
23289 { $as_echo "$as_me:$LINENO: result: no" >&5
23290 $as_echo "no" >&6; }
23291 fi
23292
23293
23294
23295
23296 # Prepare PATH_SEPARATOR.
23297 # The user is always right.
23298 if test "${PATH_SEPARATOR+set}" != set; then
23299 echo "#! /bin/sh" >conf$$.sh
23300 echo "exit 0" >>conf$$.sh
23301 chmod +x conf$$.sh
23302 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23303 PATH_SEPARATOR=';'
23304 else
23305 PATH_SEPARATOR=:
23306 fi
23307 rm -f conf$$.sh
23308 fi
23309
23310 # Find out how to test for executable files. Don't use a zero-byte file,
23311 # as systems may use methods other than mode bits to determine executability.
23312 cat >conf$$.file <<_ASEOF
23313 #! /bin/sh
23314 exit 0
23315 _ASEOF
23316 chmod +x conf$$.file
23317 if test -x conf$$.file >/dev/null 2>&1; then
23318 ac_executable_p="test -x"
23319 else
23320 ac_executable_p="test -f"
23321 fi
23322 rm -f conf$$.file
23323
23324 # Extract the first word of "xgettext", so it can be a program name with args.
23325 set dummy xgettext; ac_word=$2
23326 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23327 $as_echo_n "checking for $ac_word... " >&6; }
23328 if test "${ac_cv_path_XGETTEXT+set}" = set; then
23329 $as_echo_n "(cached) " >&6
23330 else
23331 case "$XGETTEXT" in
23332 [\\/]* | ?:[\\/]*)
23333 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
23334 ;;
23335 *)
23336 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
23337 for ac_dir in $PATH; do
23338 IFS="$ac_save_IFS"
23339 test -z "$ac_dir" && ac_dir=.
23340 for ac_exec_ext in '' $ac_executable_extensions; do
23341 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
23342 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
23343 (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
23344 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
23345 break 2
23346 fi
23347 fi
23348 done
23349 done
23350 IFS="$ac_save_IFS"
23351 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
23352 ;;
23353 esac
23354 fi
23355 XGETTEXT="$ac_cv_path_XGETTEXT"
23356 if test "$XGETTEXT" != ":"; then
23357 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
23358 $as_echo "$XGETTEXT" >&6; }
23359 else
23360 { $as_echo "$as_me:$LINENO: result: no" >&5
23361 $as_echo "no" >&6; }
23362 fi
23363
23364 rm -f messages.po
23365
23366
23367 # Prepare PATH_SEPARATOR.
23368 # The user is always right.
23369 if test "${PATH_SEPARATOR+set}" != set; then
23370 echo "#! /bin/sh" >conf$$.sh
23371 echo "exit 0" >>conf$$.sh
23372 chmod +x conf$$.sh
23373 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23374 PATH_SEPARATOR=';'
23375 else
23376 PATH_SEPARATOR=:
23377 fi
23378 rm -f conf$$.sh
23379 fi
23380
23381 # Find out how to test for executable files. Don't use a zero-byte file,
23382 # as systems may use methods other than mode bits to determine executability.
23383 cat >conf$$.file <<_ASEOF
23384 #! /bin/sh
23385 exit 0
23386 _ASEOF
23387 chmod +x conf$$.file
23388 if test -x conf$$.file >/dev/null 2>&1; then
23389 ac_executable_p="test -x"
23390 else
23391 ac_executable_p="test -f"
23392 fi
23393 rm -f conf$$.file
23394
23395 # Extract the first word of "msgmerge", so it can be a program name with args.
23396 set dummy msgmerge; ac_word=$2
23397 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23398 $as_echo_n "checking for $ac_word... " >&6; }
23399 if test "${ac_cv_path_MSGMERGE+set}" = set; then
23400 $as_echo_n "(cached) " >&6
23401 else
23402 case "$MSGMERGE" in
23403 [\\/]* | ?:[\\/]*)
23404 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
23405 ;;
23406 *)
23407 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
23408 for ac_dir in $PATH; do
23409 IFS="$ac_save_IFS"
23410 test -z "$ac_dir" && ac_dir=.
23411 for ac_exec_ext in '' $ac_executable_extensions; do
23412 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
23413 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
23414 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
23415 break 2
23416 fi
23417 fi
23418 done
23419 done
23420 IFS="$ac_save_IFS"
23421 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
23422 ;;
23423 esac
23424 fi
23425 MSGMERGE="$ac_cv_path_MSGMERGE"
23426 if test "$MSGMERGE" != ":"; then
23427 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
23428 $as_echo "$MSGMERGE" >&6; }
23429 else
23430 { $as_echo "$as_me:$LINENO: result: no" >&5
23431 $as_echo "no" >&6; }
23432 fi
23433
23434
23435 if test "$GMSGFMT" != ":"; then
23436 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
23437 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
23438 : ;
23439 else
23440 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
23441 { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
23442 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
23443 GMSGFMT=":"
23444 fi
23445 fi
23446
23447 if test "$XGETTEXT" != ":"; then
23448 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
23449 (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
23450 : ;
23451 else
23452 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
23453 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
23454 XGETTEXT=":"
23455 fi
23456 rm -f messages.po
23457 fi
23458
23459 ac_config_commands="$ac_config_commands default-1"
23460
23461
23462 if test -n "$ac_tool_prefix"; then
23463 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
23464 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
23465 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23466 $as_echo_n "checking for $ac_word... " >&6; }
23467 if test "${ac_cv_prog_RANLIB+set}" = set; then
23468 $as_echo_n "(cached) " >&6
23469 else
23470 if test -n "$RANLIB"; then
23471 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
23472 else
23473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23474 for as_dir in $PATH
23475 do
23476 IFS=$as_save_IFS
23477 test -z "$as_dir" && as_dir=.
23478 for ac_exec_ext in '' $ac_executable_extensions; do
23479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23480 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
23481 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23482 break 2
23483 fi
23484 done
23485 done
23486 IFS=$as_save_IFS
23487
23488 fi
23489 fi
23490 RANLIB=$ac_cv_prog_RANLIB
23491 if test -n "$RANLIB"; then
23492 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
23493 $as_echo "$RANLIB" >&6; }
23494 else
23495 { $as_echo "$as_me:$LINENO: result: no" >&5
23496 $as_echo "no" >&6; }
23497 fi
23498
23499
23500 fi
23501 if test -z "$ac_cv_prog_RANLIB"; then
23502 ac_ct_RANLIB=$RANLIB
23503 # Extract the first word of "ranlib", so it can be a program name with args.
23504 set dummy ranlib; ac_word=$2
23505 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23506 $as_echo_n "checking for $ac_word... " >&6; }
23507 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
23508 $as_echo_n "(cached) " >&6
23509 else
23510 if test -n "$ac_ct_RANLIB"; then
23511 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
23512 else
23513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23514 for as_dir in $PATH
23515 do
23516 IFS=$as_save_IFS
23517 test -z "$as_dir" && as_dir=.
23518 for ac_exec_ext in '' $ac_executable_extensions; do
23519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23520 ac_cv_prog_ac_ct_RANLIB="ranlib"
23521 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23522 break 2
23523 fi
23524 done
23525 done
23526 IFS=$as_save_IFS
23527
23528 fi
23529 fi
23530 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
23531 if test -n "$ac_ct_RANLIB"; then
23532 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
23533 $as_echo "$ac_ct_RANLIB" >&6; }
23534 else
23535 { $as_echo "$as_me:$LINENO: result: no" >&5
23536 $as_echo "no" >&6; }
23537 fi
23538
23539 if test "x$ac_ct_RANLIB" = x; then
23540 RANLIB=":"
23541 else
23542 case $cross_compiling:$ac_tool_warned in
23543 yes:)
23544 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
23545 whose name does not start with the host triplet. If you think this
23546 configuration is useful to you, please write to autoconf@gnu.org." >&5
23547 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
23548 whose name does not start with the host triplet. If you think this
23549 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
23550 ac_tool_warned=yes ;;
23551 esac
23552 RANLIB=$ac_ct_RANLIB
23553 fi
23554 else
23555 RANLIB="$ac_cv_prog_RANLIB"
23556 fi
23557
23558
23559 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
23560 $as_echo_n "checking for strerror in -lcposix... " >&6; }
23561 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
23562 $as_echo_n "(cached) " >&6
23563 else
23564 ac_check_lib_save_LIBS=$LIBS
23565 LIBS="-lcposix $LIBS"
23566 cat >conftest.$ac_ext <<_ACEOF
23567 /* confdefs.h. */
23568 _ACEOF
23569 cat confdefs.h >>conftest.$ac_ext
23570 cat >>conftest.$ac_ext <<_ACEOF
23571 /* end confdefs.h. */
23572
23573 /* Override any GCC internal prototype to avoid an error.
23574 Use char because int might match the return type of a GCC
23575 builtin and then its argument prototype would still apply. */
23576 #ifdef __cplusplus
23577 extern "C"
23578 #endif
23579 char strerror ();
23580 int
23581 main ()
23582 {
23583 return strerror ();
23584 ;
23585 return 0;
23586 }
23587 _ACEOF
23588 rm -f conftest.$ac_objext conftest$ac_exeext
23589 if { (ac_try="$ac_link"
23590 case "(($ac_try" in
23591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23592 *) ac_try_echo=$ac_try;;
23593 esac
23594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23595 $as_echo "$ac_try_echo") >&5
23596 (eval "$ac_link") 2>conftest.er1
23597 ac_status=$?
23598 grep -v '^ *+' conftest.er1 >conftest.err
23599 rm -f conftest.er1
23600 cat conftest.err >&5
23601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23602 (exit $ac_status); } && {
23603 test -z "$ac_c_werror_flag" ||
23604 test ! -s conftest.err
23605 } && test -s conftest$ac_exeext && {
23606 test "$cross_compiling" = yes ||
23607 $as_test_x conftest$ac_exeext
23608 }; then
23609 ac_cv_lib_cposix_strerror=yes
23610 else
23611 $as_echo "$as_me: failed program was:" >&5
23612 sed 's/^/| /' conftest.$ac_ext >&5
23613
23614 ac_cv_lib_cposix_strerror=no
23615 fi
23616
23617 rm -rf conftest.dSYM
23618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23619 conftest$ac_exeext conftest.$ac_ext
23620 LIBS=$ac_check_lib_save_LIBS
23621 fi
23622 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
23623 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
23624 if test $ac_cv_lib_cposix_strerror = yes; then
23625 LIBS="$LIBS -lcposix"
23626 fi
23627
23628
23629
23630 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23631 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
23632 if test "${ac_cv_c_const+set}" = set; then
23633 $as_echo_n "(cached) " >&6
23634 else
23635 cat >conftest.$ac_ext <<_ACEOF
23636 /* confdefs.h. */
23637 _ACEOF
23638 cat confdefs.h >>conftest.$ac_ext
23639 cat >>conftest.$ac_ext <<_ACEOF
23640 /* end confdefs.h. */
23641
23642 int
23643 main ()
23644 {
23645 /* FIXME: Include the comments suggested by Paul. */
23646 #ifndef __cplusplus
23647 /* Ultrix mips cc rejects this. */
23648 typedef int charset[2];
23649 const charset cs;
23650 /* SunOS 4.1.1 cc rejects this. */
23651 char const *const *pcpcc;
23652 char **ppc;
23653 /* NEC SVR4.0.2 mips cc rejects this. */
23654 struct point {int x, y;};
23655 static struct point const zero = {0,0};
23656 /* AIX XL C 1.02.0.0 rejects this.
23657 It does not let you subtract one const X* pointer from another in
23658 an arm of an if-expression whose if-part is not a constant
23659 expression */
23660 const char *g = "string";
23661 pcpcc = &g + (g ? g-g : 0);
23662 /* HPUX 7.0 cc rejects these. */
23663 ++pcpcc;
23664 ppc = (char**) pcpcc;
23665 pcpcc = (char const *const *) ppc;
23666 { /* SCO 3.2v4 cc rejects this. */
23667 char *t;
23668 char const *s = 0 ? (char *) 0 : (char const *) 0;
23669
23670 *t++ = 0;
23671 if (s) return 0;
23672 }
23673 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23674 int x[] = {25, 17};
23675 const int *foo = &x[0];
23676 ++foo;
23677 }
23678 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23679 typedef const int *iptr;
23680 iptr p = 0;
23681 ++p;
23682 }
23683 { /* AIX XL C 1.02.0.0 rejects this saying
23684 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23685 struct s { int j; const int *ap[3]; };
23686 struct s *b; b->j = 5;
23687 }
23688 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23689 const int foo = 10;
23690 if (!foo) return 0;
23691 }
23692 return !cs[0] && !zero.x;
23693 #endif
23694
23695 ;
23696 return 0;
23697 }
23698 _ACEOF
23699 rm -f conftest.$ac_objext
23700 if { (ac_try="$ac_compile"
23701 case "(($ac_try" in
23702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23703 *) ac_try_echo=$ac_try;;
23704 esac
23705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23706 $as_echo "$ac_try_echo") >&5
23707 (eval "$ac_compile") 2>conftest.er1
23708 ac_status=$?
23709 grep -v '^ *+' conftest.er1 >conftest.err
23710 rm -f conftest.er1
23711 cat conftest.err >&5
23712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23713 (exit $ac_status); } && {
23714 test -z "$ac_c_werror_flag" ||
23715 test ! -s conftest.err
23716 } && test -s conftest.$ac_objext; then
23717 ac_cv_c_const=yes
23718 else
23719 $as_echo "$as_me: failed program was:" >&5
23720 sed 's/^/| /' conftest.$ac_ext >&5
23721
23722 ac_cv_c_const=no
23723 fi
23724
23725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23726 fi
23727 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23728 $as_echo "$ac_cv_c_const" >&6; }
23729 if test $ac_cv_c_const = no; then
23730
23731 cat >>confdefs.h <<\_ACEOF
23732 @%:@define const /**/
23733 _ACEOF
23734
23735 fi
23736
23737
23738 { $as_echo "$as_me:$LINENO: checking for signed" >&5
23739 $as_echo_n "checking for signed... " >&6; }
23740 if test "${bh_cv_c_signed+set}" = set; then
23741 $as_echo_n "(cached) " >&6
23742 else
23743 cat >conftest.$ac_ext <<_ACEOF
23744 /* confdefs.h. */
23745 _ACEOF
23746 cat confdefs.h >>conftest.$ac_ext
23747 cat >>conftest.$ac_ext <<_ACEOF
23748 /* end confdefs.h. */
23749
23750 int
23751 main ()
23752 {
23753 signed char x;
23754 ;
23755 return 0;
23756 }
23757 _ACEOF
23758 rm -f conftest.$ac_objext
23759 if { (ac_try="$ac_compile"
23760 case "(($ac_try" in
23761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23762 *) ac_try_echo=$ac_try;;
23763 esac
23764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23765 $as_echo "$ac_try_echo") >&5
23766 (eval "$ac_compile") 2>conftest.er1
23767 ac_status=$?
23768 grep -v '^ *+' conftest.er1 >conftest.err
23769 rm -f conftest.er1
23770 cat conftest.err >&5
23771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23772 (exit $ac_status); } && {
23773 test -z "$ac_c_werror_flag" ||
23774 test ! -s conftest.err
23775 } && test -s conftest.$ac_objext; then
23776 bh_cv_c_signed=yes
23777 else
23778 $as_echo "$as_me: failed program was:" >&5
23779 sed 's/^/| /' conftest.$ac_ext >&5
23780
23781 bh_cv_c_signed=no
23782 fi
23783
23784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23785 fi
23786 { $as_echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
23787 $as_echo "$bh_cv_c_signed" >&6; }
23788 if test $bh_cv_c_signed = no; then
23789
23790 cat >>confdefs.h <<\_ACEOF
23791 @%:@define signed /**/
23792 _ACEOF
23793
23794 fi
23795
23796 { $as_echo "$as_me:$LINENO: checking for inline" >&5
23797 $as_echo_n "checking for inline... " >&6; }
23798 if test "${ac_cv_c_inline+set}" = set; then
23799 $as_echo_n "(cached) " >&6
23800 else
23801 ac_cv_c_inline=no
23802 for ac_kw in inline __inline__ __inline; do
23803 cat >conftest.$ac_ext <<_ACEOF
23804 /* confdefs.h. */
23805 _ACEOF
23806 cat confdefs.h >>conftest.$ac_ext
23807 cat >>conftest.$ac_ext <<_ACEOF
23808 /* end confdefs.h. */
23809 #ifndef __cplusplus
23810 typedef int foo_t;
23811 static $ac_kw foo_t static_foo () {return 0; }
23812 $ac_kw foo_t foo () {return 0; }
23813 #endif
23814
23815 _ACEOF
23816 rm -f conftest.$ac_objext
23817 if { (ac_try="$ac_compile"
23818 case "(($ac_try" in
23819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23820 *) ac_try_echo=$ac_try;;
23821 esac
23822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23823 $as_echo "$ac_try_echo") >&5
23824 (eval "$ac_compile") 2>conftest.er1
23825 ac_status=$?
23826 grep -v '^ *+' conftest.er1 >conftest.err
23827 rm -f conftest.er1
23828 cat conftest.err >&5
23829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23830 (exit $ac_status); } && {
23831 test -z "$ac_c_werror_flag" ||
23832 test ! -s conftest.err
23833 } && test -s conftest.$ac_objext; then
23834 ac_cv_c_inline=$ac_kw
23835 else
23836 $as_echo "$as_me: failed program was:" >&5
23837 sed 's/^/| /' conftest.$ac_ext >&5
23838
23839
23840 fi
23841
23842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23843 test "$ac_cv_c_inline" != no && break
23844 done
23845
23846 fi
23847 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
23848 $as_echo "$ac_cv_c_inline" >&6; }
23849
23850
23851 case $ac_cv_c_inline in
23852 inline | yes) ;;
23853 *)
23854 case $ac_cv_c_inline in
23855 no) ac_val=;;
23856 *) ac_val=$ac_cv_c_inline;;
23857 esac
23858 cat >>confdefs.h <<_ACEOF
23859 #ifndef __cplusplus
23860 #define inline $ac_val
23861 #endif
23862 _ACEOF
23863 ;;
23864 esac
23865
23866 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
23867 $as_echo_n "checking for off_t... " >&6; }
23868 if test "${ac_cv_type_off_t+set}" = set; then
23869 $as_echo_n "(cached) " >&6
23870 else
23871 ac_cv_type_off_t=no
23872 cat >conftest.$ac_ext <<_ACEOF
23873 /* confdefs.h. */
23874 _ACEOF
23875 cat confdefs.h >>conftest.$ac_ext
23876 cat >>conftest.$ac_ext <<_ACEOF
23877 /* end confdefs.h. */
23878 $ac_includes_default
23879 int
23880 main ()
23881 {
23882 if (sizeof (off_t))
23883 return 0;
23884 ;
23885 return 0;
23886 }
23887 _ACEOF
23888 rm -f conftest.$ac_objext
23889 if { (ac_try="$ac_compile"
23890 case "(($ac_try" in
23891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23892 *) ac_try_echo=$ac_try;;
23893 esac
23894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23895 $as_echo "$ac_try_echo") >&5
23896 (eval "$ac_compile") 2>conftest.er1
23897 ac_status=$?
23898 grep -v '^ *+' conftest.er1 >conftest.err
23899 rm -f conftest.er1
23900 cat conftest.err >&5
23901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23902 (exit $ac_status); } && {
23903 test -z "$ac_c_werror_flag" ||
23904 test ! -s conftest.err
23905 } && test -s conftest.$ac_objext; then
23906 cat >conftest.$ac_ext <<_ACEOF
23907 /* confdefs.h. */
23908 _ACEOF
23909 cat confdefs.h >>conftest.$ac_ext
23910 cat >>conftest.$ac_ext <<_ACEOF
23911 /* end confdefs.h. */
23912 $ac_includes_default
23913 int
23914 main ()
23915 {
23916 if (sizeof ((off_t)))
23917 return 0;
23918 ;
23919 return 0;
23920 }
23921 _ACEOF
23922 rm -f conftest.$ac_objext
23923 if { (ac_try="$ac_compile"
23924 case "(($ac_try" in
23925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23926 *) ac_try_echo=$ac_try;;
23927 esac
23928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23929 $as_echo "$ac_try_echo") >&5
23930 (eval "$ac_compile") 2>conftest.er1
23931 ac_status=$?
23932 grep -v '^ *+' conftest.er1 >conftest.err
23933 rm -f conftest.er1
23934 cat conftest.err >&5
23935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23936 (exit $ac_status); } && {
23937 test -z "$ac_c_werror_flag" ||
23938 test ! -s conftest.err
23939 } && test -s conftest.$ac_objext; then
23940 :
23941 else
23942 $as_echo "$as_me: failed program was:" >&5
23943 sed 's/^/| /' conftest.$ac_ext >&5
23944
23945 ac_cv_type_off_t=yes
23946 fi
23947
23948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23949 else
23950 $as_echo "$as_me: failed program was:" >&5
23951 sed 's/^/| /' conftest.$ac_ext >&5
23952
23953
23954 fi
23955
23956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23957 fi
23958 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
23959 $as_echo "$ac_cv_type_off_t" >&6; }
23960 if test $ac_cv_type_off_t = yes; then
23961 :
23962 else
23963
23964 cat >>confdefs.h <<_ACEOF
23965 @%:@define off_t long int
23966 _ACEOF
23967
23968 fi
23969
23970 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
23971 $as_echo_n "checking for size_t... " >&6; }
23972 if test "${ac_cv_type_size_t+set}" = set; then
23973 $as_echo_n "(cached) " >&6
23974 else
23975 ac_cv_type_size_t=no
23976 cat >conftest.$ac_ext <<_ACEOF
23977 /* confdefs.h. */
23978 _ACEOF
23979 cat confdefs.h >>conftest.$ac_ext
23980 cat >>conftest.$ac_ext <<_ACEOF
23981 /* end confdefs.h. */
23982 $ac_includes_default
23983 int
23984 main ()
23985 {
23986 if (sizeof (size_t))
23987 return 0;
23988 ;
23989 return 0;
23990 }
23991 _ACEOF
23992 rm -f conftest.$ac_objext
23993 if { (ac_try="$ac_compile"
23994 case "(($ac_try" in
23995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23996 *) ac_try_echo=$ac_try;;
23997 esac
23998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23999 $as_echo "$ac_try_echo") >&5
24000 (eval "$ac_compile") 2>conftest.er1
24001 ac_status=$?
24002 grep -v '^ *+' conftest.er1 >conftest.err
24003 rm -f conftest.er1
24004 cat conftest.err >&5
24005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24006 (exit $ac_status); } && {
24007 test -z "$ac_c_werror_flag" ||
24008 test ! -s conftest.err
24009 } && test -s conftest.$ac_objext; then
24010 cat >conftest.$ac_ext <<_ACEOF
24011 /* confdefs.h. */
24012 _ACEOF
24013 cat confdefs.h >>conftest.$ac_ext
24014 cat >>conftest.$ac_ext <<_ACEOF
24015 /* end confdefs.h. */
24016 $ac_includes_default
24017 int
24018 main ()
24019 {
24020 if (sizeof ((size_t)))
24021 return 0;
24022 ;
24023 return 0;
24024 }
24025 _ACEOF
24026 rm -f conftest.$ac_objext
24027 if { (ac_try="$ac_compile"
24028 case "(($ac_try" in
24029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24030 *) ac_try_echo=$ac_try;;
24031 esac
24032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24033 $as_echo "$ac_try_echo") >&5
24034 (eval "$ac_compile") 2>conftest.er1
24035 ac_status=$?
24036 grep -v '^ *+' conftest.er1 >conftest.err
24037 rm -f conftest.er1
24038 cat conftest.err >&5
24039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24040 (exit $ac_status); } && {
24041 test -z "$ac_c_werror_flag" ||
24042 test ! -s conftest.err
24043 } && test -s conftest.$ac_objext; then
24044 :
24045 else
24046 $as_echo "$as_me: failed program was:" >&5
24047 sed 's/^/| /' conftest.$ac_ext >&5
24048
24049 ac_cv_type_size_t=yes
24050 fi
24051
24052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24053 else
24054 $as_echo "$as_me: failed program was:" >&5
24055 sed 's/^/| /' conftest.$ac_ext >&5
24056
24057
24058 fi
24059
24060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24061 fi
24062 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24063 $as_echo "$ac_cv_type_size_t" >&6; }
24064 if test $ac_cv_type_size_t = yes; then
24065 :
24066 else
24067
24068 cat >>confdefs.h <<_ACEOF
24069 @%:@define size_t unsigned int
24070 _ACEOF
24071
24072 fi
24073
24074
24075 { $as_echo "$as_me:$LINENO: checking for long long" >&5
24076 $as_echo_n "checking for long long... " >&6; }
24077 if test "${ac_cv_type_long_long+set}" = set; then
24078 $as_echo_n "(cached) " >&6
24079 else
24080 cat >conftest.$ac_ext <<_ACEOF
24081 /* confdefs.h. */
24082 _ACEOF
24083 cat confdefs.h >>conftest.$ac_ext
24084 cat >>conftest.$ac_ext <<_ACEOF
24085 /* end confdefs.h. */
24086 long long ll = 1LL; int i = 63;
24087 int
24088 main ()
24089 {
24090 long long llmax = (long long) -1;
24091 return ll << i | ll >> i | llmax / ll | llmax % ll;
24092 ;
24093 return 0;
24094 }
24095 _ACEOF
24096 rm -f conftest.$ac_objext conftest$ac_exeext
24097 if { (ac_try="$ac_link"
24098 case "(($ac_try" in
24099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24100 *) ac_try_echo=$ac_try;;
24101 esac
24102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24103 $as_echo "$ac_try_echo") >&5
24104 (eval "$ac_link") 2>conftest.er1
24105 ac_status=$?
24106 grep -v '^ *+' conftest.er1 >conftest.err
24107 rm -f conftest.er1
24108 cat conftest.err >&5
24109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24110 (exit $ac_status); } && {
24111 test -z "$ac_c_werror_flag" ||
24112 test ! -s conftest.err
24113 } && test -s conftest$ac_exeext && {
24114 test "$cross_compiling" = yes ||
24115 $as_test_x conftest$ac_exeext
24116 }; then
24117 ac_cv_type_long_long=yes
24118 else
24119 $as_echo "$as_me: failed program was:" >&5
24120 sed 's/^/| /' conftest.$ac_ext >&5
24121
24122 ac_cv_type_long_long=no
24123 fi
24124
24125 rm -rf conftest.dSYM
24126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24127 conftest$ac_exeext conftest.$ac_ext
24128 fi
24129 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
24130 $as_echo "$ac_cv_type_long_long" >&6; }
24131 if test $ac_cv_type_long_long = yes; then
24132
24133 cat >>confdefs.h <<\_ACEOF
24134 @%:@define HAVE_LONG_LONG 1
24135 _ACEOF
24136
24137 fi
24138
24139
24140 { $as_echo "$as_me:$LINENO: checking for long double" >&5
24141 $as_echo_n "checking for long double... " >&6; }
24142 if test "${gt_cv_c_long_double+set}" = set; then
24143 $as_echo_n "(cached) " >&6
24144 else
24145 if test "$GCC" = yes; then
24146 gt_cv_c_long_double=yes
24147 else
24148 cat >conftest.$ac_ext <<_ACEOF
24149 /* confdefs.h. */
24150 _ACEOF
24151 cat confdefs.h >>conftest.$ac_ext
24152 cat >>conftest.$ac_ext <<_ACEOF
24153 /* end confdefs.h. */
24154
24155 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
24156 long double foo = 0.0;
24157 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
24158 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
24159
24160 int
24161 main ()
24162 {
24163
24164 ;
24165 return 0;
24166 }
24167 _ACEOF
24168 rm -f conftest.$ac_objext
24169 if { (ac_try="$ac_compile"
24170 case "(($ac_try" in
24171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24172 *) ac_try_echo=$ac_try;;
24173 esac
24174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24175 $as_echo "$ac_try_echo") >&5
24176 (eval "$ac_compile") 2>conftest.er1
24177 ac_status=$?
24178 grep -v '^ *+' conftest.er1 >conftest.err
24179 rm -f conftest.er1
24180 cat conftest.err >&5
24181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24182 (exit $ac_status); } && {
24183 test -z "$ac_c_werror_flag" ||
24184 test ! -s conftest.err
24185 } && test -s conftest.$ac_objext; then
24186 gt_cv_c_long_double=yes
24187 else
24188 $as_echo "$as_me: failed program was:" >&5
24189 sed 's/^/| /' conftest.$ac_ext >&5
24190
24191 gt_cv_c_long_double=no
24192 fi
24193
24194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24195 fi
24196 fi
24197 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
24198 $as_echo "$gt_cv_c_long_double" >&6; }
24199 if test $gt_cv_c_long_double = yes; then
24200
24201 cat >>confdefs.h <<\_ACEOF
24202 @%:@define HAVE_LONG_DOUBLE 1
24203 _ACEOF
24204
24205 fi
24206
24207
24208 { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
24209 $as_echo_n "checking for wchar_t... " >&6; }
24210 if test "${gt_cv_c_wchar_t+set}" = set; then
24211 $as_echo_n "(cached) " >&6
24212 else
24213 cat >conftest.$ac_ext <<_ACEOF
24214 /* confdefs.h. */
24215 _ACEOF
24216 cat confdefs.h >>conftest.$ac_ext
24217 cat >>conftest.$ac_ext <<_ACEOF
24218 /* end confdefs.h. */
24219 #include <stddef.h>
24220 wchar_t foo = (wchar_t)'\0';
24221 int
24222 main ()
24223 {
24224
24225 ;
24226 return 0;
24227 }
24228 _ACEOF
24229 rm -f conftest.$ac_objext
24230 if { (ac_try="$ac_compile"
24231 case "(($ac_try" in
24232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24233 *) ac_try_echo=$ac_try;;
24234 esac
24235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24236 $as_echo "$ac_try_echo") >&5
24237 (eval "$ac_compile") 2>conftest.er1
24238 ac_status=$?
24239 grep -v '^ *+' conftest.er1 >conftest.err
24240 rm -f conftest.er1
24241 cat conftest.err >&5
24242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24243 (exit $ac_status); } && {
24244 test -z "$ac_c_werror_flag" ||
24245 test ! -s conftest.err
24246 } && test -s conftest.$ac_objext; then
24247 gt_cv_c_wchar_t=yes
24248 else
24249 $as_echo "$as_me: failed program was:" >&5
24250 sed 's/^/| /' conftest.$ac_ext >&5
24251
24252 gt_cv_c_wchar_t=no
24253 fi
24254
24255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24256 fi
24257 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
24258 $as_echo "$gt_cv_c_wchar_t" >&6; }
24259 if test $gt_cv_c_wchar_t = yes; then
24260
24261 cat >>confdefs.h <<\_ACEOF
24262 @%:@define HAVE_WCHAR_T 1
24263 _ACEOF
24264
24265 fi
24266
24267
24268 { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
24269 $as_echo_n "checking for wint_t... " >&6; }
24270 if test "${gt_cv_c_wint_t+set}" = set; then
24271 $as_echo_n "(cached) " >&6
24272 else
24273 cat >conftest.$ac_ext <<_ACEOF
24274 /* confdefs.h. */
24275 _ACEOF
24276 cat confdefs.h >>conftest.$ac_ext
24277 cat >>conftest.$ac_ext <<_ACEOF
24278 /* end confdefs.h. */
24279 #include <wchar.h>
24280 wint_t foo = (wchar_t)'\0';
24281 int
24282 main ()
24283 {
24284
24285 ;
24286 return 0;
24287 }
24288 _ACEOF
24289 rm -f conftest.$ac_objext
24290 if { (ac_try="$ac_compile"
24291 case "(($ac_try" in
24292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24293 *) ac_try_echo=$ac_try;;
24294 esac
24295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24296 $as_echo "$ac_try_echo") >&5
24297 (eval "$ac_compile") 2>conftest.er1
24298 ac_status=$?
24299 grep -v '^ *+' conftest.er1 >conftest.err
24300 rm -f conftest.er1
24301 cat conftest.err >&5
24302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24303 (exit $ac_status); } && {
24304 test -z "$ac_c_werror_flag" ||
24305 test ! -s conftest.err
24306 } && test -s conftest.$ac_objext; then
24307 gt_cv_c_wint_t=yes
24308 else
24309 $as_echo "$as_me: failed program was:" >&5
24310 sed 's/^/| /' conftest.$ac_ext >&5
24311
24312 gt_cv_c_wint_t=no
24313 fi
24314
24315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24316 fi
24317 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
24318 $as_echo "$gt_cv_c_wint_t" >&6; }
24319 if test $gt_cv_c_wint_t = yes; then
24320
24321 cat >>confdefs.h <<\_ACEOF
24322 @%:@define HAVE_WINT_T 1
24323 _ACEOF
24324
24325 fi
24326
24327
24328 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
24329 $as_echo_n "checking for inttypes.h... " >&6; }
24330 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
24331 $as_echo_n "(cached) " >&6
24332 else
24333 cat >conftest.$ac_ext <<_ACEOF
24334 /* confdefs.h. */
24335 _ACEOF
24336 cat confdefs.h >>conftest.$ac_ext
24337 cat >>conftest.$ac_ext <<_ACEOF
24338 /* end confdefs.h. */
24339 #include <sys/types.h>
24340 #include <inttypes.h>
24341 int
24342 main ()
24343 {
24344 uintmax_t i = (uintmax_t) -1;
24345 ;
24346 return 0;
24347 }
24348 _ACEOF
24349 rm -f conftest.$ac_objext
24350 if { (ac_try="$ac_compile"
24351 case "(($ac_try" in
24352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24353 *) ac_try_echo=$ac_try;;
24354 esac
24355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24356 $as_echo "$ac_try_echo") >&5
24357 (eval "$ac_compile") 2>conftest.er1
24358 ac_status=$?
24359 grep -v '^ *+' conftest.er1 >conftest.err
24360 rm -f conftest.er1
24361 cat conftest.err >&5
24362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24363 (exit $ac_status); } && {
24364 test -z "$ac_c_werror_flag" ||
24365 test ! -s conftest.err
24366 } && test -s conftest.$ac_objext; then
24367 jm_ac_cv_header_inttypes_h=yes
24368 else
24369 $as_echo "$as_me: failed program was:" >&5
24370 sed 's/^/| /' conftest.$ac_ext >&5
24371
24372 jm_ac_cv_header_inttypes_h=no
24373 fi
24374
24375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24376 fi
24377 { $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
24378 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
24379 if test $jm_ac_cv_header_inttypes_h = yes; then
24380
24381 cat >>confdefs.h <<_ACEOF
24382 @%:@define HAVE_INTTYPES_H_WITH_UINTMAX 1
24383 _ACEOF
24384
24385 fi
24386
24387
24388 { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
24389 $as_echo_n "checking for stdint.h... " >&6; }
24390 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
24391 $as_echo_n "(cached) " >&6
24392 else
24393 cat >conftest.$ac_ext <<_ACEOF
24394 /* confdefs.h. */
24395 _ACEOF
24396 cat confdefs.h >>conftest.$ac_ext
24397 cat >>conftest.$ac_ext <<_ACEOF
24398 /* end confdefs.h. */
24399 #include <sys/types.h>
24400 #include <stdint.h>
24401 int
24402 main ()
24403 {
24404 uintmax_t i = (uintmax_t) -1;
24405 ;
24406 return 0;
24407 }
24408 _ACEOF
24409 rm -f conftest.$ac_objext
24410 if { (ac_try="$ac_compile"
24411 case "(($ac_try" in
24412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24413 *) ac_try_echo=$ac_try;;
24414 esac
24415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24416 $as_echo "$ac_try_echo") >&5
24417 (eval "$ac_compile") 2>conftest.er1
24418 ac_status=$?
24419 grep -v '^ *+' conftest.er1 >conftest.err
24420 rm -f conftest.er1
24421 cat conftest.err >&5
24422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24423 (exit $ac_status); } && {
24424 test -z "$ac_c_werror_flag" ||
24425 test ! -s conftest.err
24426 } && test -s conftest.$ac_objext; then
24427 jm_ac_cv_header_stdint_h=yes
24428 else
24429 $as_echo "$as_me: failed program was:" >&5
24430 sed 's/^/| /' conftest.$ac_ext >&5
24431
24432 jm_ac_cv_header_stdint_h=no
24433 fi
24434
24435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24436 fi
24437 { $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
24438 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
24439 if test $jm_ac_cv_header_stdint_h = yes; then
24440
24441 cat >>confdefs.h <<_ACEOF
24442 @%:@define HAVE_STDINT_H_WITH_UINTMAX 1
24443 _ACEOF
24444
24445 fi
24446
24447
24448
24449
24450 { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
24451 $as_echo_n "checking for intmax_t... " >&6; }
24452 if test "${gt_cv_c_intmax_t+set}" = set; then
24453 $as_echo_n "(cached) " >&6
24454 else
24455 cat >conftest.$ac_ext <<_ACEOF
24456 /* confdefs.h. */
24457 _ACEOF
24458 cat confdefs.h >>conftest.$ac_ext
24459 cat >>conftest.$ac_ext <<_ACEOF
24460 /* end confdefs.h. */
24461
24462 #include <stddef.h>
24463 #include <stdlib.h>
24464 #if HAVE_STDINT_H_WITH_UINTMAX
24465 #include <stdint.h>
24466 #endif
24467 #if HAVE_INTTYPES_H_WITH_UINTMAX
24468 #include <inttypes.h>
24469 #endif
24470
24471 int
24472 main ()
24473 {
24474 intmax_t x = -1;
24475 ;
24476 return 0;
24477 }
24478 _ACEOF
24479 rm -f conftest.$ac_objext
24480 if { (ac_try="$ac_compile"
24481 case "(($ac_try" in
24482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24483 *) ac_try_echo=$ac_try;;
24484 esac
24485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24486 $as_echo "$ac_try_echo") >&5
24487 (eval "$ac_compile") 2>conftest.er1
24488 ac_status=$?
24489 grep -v '^ *+' conftest.er1 >conftest.err
24490 rm -f conftest.er1
24491 cat conftest.err >&5
24492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24493 (exit $ac_status); } && {
24494 test -z "$ac_c_werror_flag" ||
24495 test ! -s conftest.err
24496 } && test -s conftest.$ac_objext; then
24497 gt_cv_c_intmax_t=yes
24498 else
24499 $as_echo "$as_me: failed program was:" >&5
24500 sed 's/^/| /' conftest.$ac_ext >&5
24501
24502 gt_cv_c_intmax_t=no
24503 fi
24504
24505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24506 fi
24507 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
24508 $as_echo "$gt_cv_c_intmax_t" >&6; }
24509 if test $gt_cv_c_intmax_t = yes; then
24510
24511 cat >>confdefs.h <<\_ACEOF
24512 @%:@define HAVE_INTMAX_T 1
24513 _ACEOF
24514
24515 fi
24516
24517
24518
24519 { $as_echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
24520 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
24521 if test "${gt_cv_func_printf_posix+set}" = set; then
24522 $as_echo_n "(cached) " >&6
24523 else
24524
24525 if test "$cross_compiling" = yes; then
24526
24527 cat >conftest.$ac_ext <<_ACEOF
24528 /* confdefs.h. */
24529 _ACEOF
24530 cat confdefs.h >>conftest.$ac_ext
24531 cat >>conftest.$ac_ext <<_ACEOF
24532 /* end confdefs.h. */
24533
24534 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
24535 notposix
24536 #endif
24537
24538 _ACEOF
24539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24540 $EGREP "notposix" >/dev/null 2>&1; then
24541 gt_cv_func_printf_posix="guessing no"
24542 else
24543 gt_cv_func_printf_posix="guessing yes"
24544 fi
24545 rm -f conftest*
24546
24547
24548 else
24549 cat >conftest.$ac_ext <<_ACEOF
24550 /* confdefs.h. */
24551 _ACEOF
24552 cat confdefs.h >>conftest.$ac_ext
24553 cat >>conftest.$ac_ext <<_ACEOF
24554 /* end confdefs.h. */
24555
24556 #include <stdio.h>
24557 #include <string.h>
24558 /* The string "%2$d %1$d", with dollar characters protected from the shell's
24559 dollar expansion (possibly an autoconf bug). */
24560 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
24561 static char buf[100];
24562 int main ()
24563 {
24564 sprintf (buf, format, 33, 55);
24565 return (strcmp (buf, "55 33") != 0);
24566 }
24567 _ACEOF
24568 rm -f conftest$ac_exeext
24569 if { (ac_try="$ac_link"
24570 case "(($ac_try" in
24571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24572 *) ac_try_echo=$ac_try;;
24573 esac
24574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24575 $as_echo "$ac_try_echo") >&5
24576 (eval "$ac_link") 2>&5
24577 ac_status=$?
24578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24580 { (case "(($ac_try" in
24581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24582 *) ac_try_echo=$ac_try;;
24583 esac
24584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24585 $as_echo "$ac_try_echo") >&5
24586 (eval "$ac_try") 2>&5
24587 ac_status=$?
24588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24589 (exit $ac_status); }; }; then
24590 gt_cv_func_printf_posix=yes
24591 else
24592 $as_echo "$as_me: program exited with status $ac_status" >&5
24593 $as_echo "$as_me: failed program was:" >&5
24594 sed 's/^/| /' conftest.$ac_ext >&5
24595
24596 ( exit $ac_status )
24597 gt_cv_func_printf_posix=no
24598 fi
24599 rm -rf conftest.dSYM
24600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24601 fi
24602
24603
24604
24605 fi
24606 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
24607 $as_echo "$gt_cv_func_printf_posix" >&6; }
24608 case $gt_cv_func_printf_posix in
24609 *yes)
24610
24611 cat >>confdefs.h <<\_ACEOF
24612 @%:@define HAVE_POSIX_PRINTF 1
24613 _ACEOF
24614
24615 ;;
24616 esac
24617
24618 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24619 # for constant arguments. Useless!
24620 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
24621 $as_echo_n "checking for working alloca.h... " >&6; }
24622 if test "${ac_cv_working_alloca_h+set}" = set; then
24623 $as_echo_n "(cached) " >&6
24624 else
24625 cat >conftest.$ac_ext <<_ACEOF
24626 /* confdefs.h. */
24627 _ACEOF
24628 cat confdefs.h >>conftest.$ac_ext
24629 cat >>conftest.$ac_ext <<_ACEOF
24630 /* end confdefs.h. */
24631 @%:@include <alloca.h>
24632 int
24633 main ()
24634 {
24635 char *p = (char *) alloca (2 * sizeof (int));
24636 if (p) return 0;
24637 ;
24638 return 0;
24639 }
24640 _ACEOF
24641 rm -f conftest.$ac_objext conftest$ac_exeext
24642 if { (ac_try="$ac_link"
24643 case "(($ac_try" in
24644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24645 *) ac_try_echo=$ac_try;;
24646 esac
24647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24648 $as_echo "$ac_try_echo") >&5
24649 (eval "$ac_link") 2>conftest.er1
24650 ac_status=$?
24651 grep -v '^ *+' conftest.er1 >conftest.err
24652 rm -f conftest.er1
24653 cat conftest.err >&5
24654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24655 (exit $ac_status); } && {
24656 test -z "$ac_c_werror_flag" ||
24657 test ! -s conftest.err
24658 } && test -s conftest$ac_exeext && {
24659 test "$cross_compiling" = yes ||
24660 $as_test_x conftest$ac_exeext
24661 }; then
24662 ac_cv_working_alloca_h=yes
24663 else
24664 $as_echo "$as_me: failed program was:" >&5
24665 sed 's/^/| /' conftest.$ac_ext >&5
24666
24667 ac_cv_working_alloca_h=no
24668 fi
24669
24670 rm -rf conftest.dSYM
24671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24672 conftest$ac_exeext conftest.$ac_ext
24673 fi
24674 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24675 $as_echo "$ac_cv_working_alloca_h" >&6; }
24676 if test $ac_cv_working_alloca_h = yes; then
24677
24678 cat >>confdefs.h <<\_ACEOF
24679 @%:@define HAVE_ALLOCA_H 1
24680 _ACEOF
24681
24682 fi
24683
24684 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
24685 $as_echo_n "checking for alloca... " >&6; }
24686 if test "${ac_cv_func_alloca_works+set}" = set; then
24687 $as_echo_n "(cached) " >&6
24688 else
24689 cat >conftest.$ac_ext <<_ACEOF
24690 /* confdefs.h. */
24691 _ACEOF
24692 cat confdefs.h >>conftest.$ac_ext
24693 cat >>conftest.$ac_ext <<_ACEOF
24694 /* end confdefs.h. */
24695 #ifdef __GNUC__
24696 # define alloca __builtin_alloca
24697 #else
24698 # ifdef _MSC_VER
24699 # include <malloc.h>
24700 # define alloca _alloca
24701 # else
24702 # ifdef HAVE_ALLOCA_H
24703 # include <alloca.h>
24704 # else
24705 # ifdef _AIX
24706 #pragma alloca
24707 # else
24708 # ifndef alloca /* predefined by HP cc +Olibcalls */
24709 char *alloca ();
24710 # endif
24711 # endif
24712 # endif
24713 # endif
24714 #endif
24715
24716 int
24717 main ()
24718 {
24719 char *p = (char *) alloca (1);
24720 if (p) return 0;
24721 ;
24722 return 0;
24723 }
24724 _ACEOF
24725 rm -f conftest.$ac_objext conftest$ac_exeext
24726 if { (ac_try="$ac_link"
24727 case "(($ac_try" in
24728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24729 *) ac_try_echo=$ac_try;;
24730 esac
24731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24732 $as_echo "$ac_try_echo") >&5
24733 (eval "$ac_link") 2>conftest.er1
24734 ac_status=$?
24735 grep -v '^ *+' conftest.er1 >conftest.err
24736 rm -f conftest.er1
24737 cat conftest.err >&5
24738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24739 (exit $ac_status); } && {
24740 test -z "$ac_c_werror_flag" ||
24741 test ! -s conftest.err
24742 } && test -s conftest$ac_exeext && {
24743 test "$cross_compiling" = yes ||
24744 $as_test_x conftest$ac_exeext
24745 }; then
24746 ac_cv_func_alloca_works=yes
24747 else
24748 $as_echo "$as_me: failed program was:" >&5
24749 sed 's/^/| /' conftest.$ac_ext >&5
24750
24751 ac_cv_func_alloca_works=no
24752 fi
24753
24754 rm -rf conftest.dSYM
24755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24756 conftest$ac_exeext conftest.$ac_ext
24757 fi
24758 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24759 $as_echo "$ac_cv_func_alloca_works" >&6; }
24760
24761 if test $ac_cv_func_alloca_works = yes; then
24762
24763 cat >>confdefs.h <<\_ACEOF
24764 @%:@define HAVE_ALLOCA 1
24765 _ACEOF
24766
24767 else
24768 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24769 # that cause trouble. Some versions do not even contain alloca or
24770 # contain a buggy version. If you still want to use their alloca,
24771 # use ar to extract alloca.o from them instead of compiling alloca.c.
24772
24773 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
24774
24775 cat >>confdefs.h <<\_ACEOF
24776 @%:@define C_ALLOCA 1
24777 _ACEOF
24778
24779
24780 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24781 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
24782 if test "${ac_cv_os_cray+set}" = set; then
24783 $as_echo_n "(cached) " >&6
24784 else
24785 cat >conftest.$ac_ext <<_ACEOF
24786 /* confdefs.h. */
24787 _ACEOF
24788 cat confdefs.h >>conftest.$ac_ext
24789 cat >>conftest.$ac_ext <<_ACEOF
24790 /* end confdefs.h. */
24791 #if defined CRAY && ! defined CRAY2
24792 webecray
24793 #else
24794 wenotbecray
24795 #endif
24796
24797 _ACEOF
24798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24799 $EGREP "webecray" >/dev/null 2>&1; then
24800 ac_cv_os_cray=yes
24801 else
24802 ac_cv_os_cray=no
24803 fi
24804 rm -f conftest*
24805
24806 fi
24807 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24808 $as_echo "$ac_cv_os_cray" >&6; }
24809 if test $ac_cv_os_cray = yes; then
24810 for ac_func in _getb67 GETB67 getb67; do
24811 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24812 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24813 $as_echo_n "checking for $ac_func... " >&6; }
24814 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24815 $as_echo_n "(cached) " >&6
24816 else
24817 cat >conftest.$ac_ext <<_ACEOF
24818 /* confdefs.h. */
24819 _ACEOF
24820 cat confdefs.h >>conftest.$ac_ext
24821 cat >>conftest.$ac_ext <<_ACEOF
24822 /* end confdefs.h. */
24823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24825 #define $ac_func innocuous_$ac_func
24826
24827 /* System header to define __stub macros and hopefully few prototypes,
24828 which can conflict with char $ac_func (); below.
24829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24830 <limits.h> exists even on freestanding compilers. */
24831
24832 #ifdef __STDC__
24833 # include <limits.h>
24834 #else
24835 # include <assert.h>
24836 #endif
24837
24838 #undef $ac_func
24839
24840 /* Override any GCC internal prototype to avoid an error.
24841 Use char because int might match the return type of a GCC
24842 builtin and then its argument prototype would still apply. */
24843 #ifdef __cplusplus
24844 extern "C"
24845 #endif
24846 char $ac_func ();
24847 /* The GNU C library defines this for functions which it implements
24848 to always fail with ENOSYS. Some functions are actually named
24849 something starting with __ and the normal name is an alias. */
24850 #if defined __stub_$ac_func || defined __stub___$ac_func
24851 choke me
24852 #endif
24853
24854 int
24855 main ()
24856 {
24857 return $ac_func ();
24858 ;
24859 return 0;
24860 }
24861 _ACEOF
24862 rm -f conftest.$ac_objext conftest$ac_exeext
24863 if { (ac_try="$ac_link"
24864 case "(($ac_try" in
24865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24866 *) ac_try_echo=$ac_try;;
24867 esac
24868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24869 $as_echo "$ac_try_echo") >&5
24870 (eval "$ac_link") 2>conftest.er1
24871 ac_status=$?
24872 grep -v '^ *+' conftest.er1 >conftest.err
24873 rm -f conftest.er1
24874 cat conftest.err >&5
24875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24876 (exit $ac_status); } && {
24877 test -z "$ac_c_werror_flag" ||
24878 test ! -s conftest.err
24879 } && test -s conftest$ac_exeext && {
24880 test "$cross_compiling" = yes ||
24881 $as_test_x conftest$ac_exeext
24882 }; then
24883 eval "$as_ac_var=yes"
24884 else
24885 $as_echo "$as_me: failed program was:" >&5
24886 sed 's/^/| /' conftest.$ac_ext >&5
24887
24888 eval "$as_ac_var=no"
24889 fi
24890
24891 rm -rf conftest.dSYM
24892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24893 conftest$ac_exeext conftest.$ac_ext
24894 fi
24895 ac_res=`eval 'as_val=${'$as_ac_var'}
24896 $as_echo "$as_val"'`
24897 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24898 $as_echo "$ac_res" >&6; }
24899 if test `eval 'as_val=${'$as_ac_var'}
24900 $as_echo "$as_val"'` = yes; then
24901
24902 cat >>confdefs.h <<_ACEOF
24903 @%:@define CRAY_STACKSEG_END $ac_func
24904 _ACEOF
24905
24906 break
24907 fi
24908
24909 done
24910 fi
24911
24912 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
24913 $as_echo_n "checking stack direction for C alloca... " >&6; }
24914 if test "${ac_cv_c_stack_direction+set}" = set; then
24915 $as_echo_n "(cached) " >&6
24916 else
24917 if test "$cross_compiling" = yes; then
24918 ac_cv_c_stack_direction=0
24919 else
24920 cat >conftest.$ac_ext <<_ACEOF
24921 /* confdefs.h. */
24922 _ACEOF
24923 cat confdefs.h >>conftest.$ac_ext
24924 cat >>conftest.$ac_ext <<_ACEOF
24925 /* end confdefs.h. */
24926 $ac_includes_default
24927 int
24928 find_stack_direction ()
24929 {
24930 static char *addr = 0;
24931 auto char dummy;
24932 if (addr == 0)
24933 {
24934 addr = &dummy;
24935 return find_stack_direction ();
24936 }
24937 else
24938 return (&dummy > addr) ? 1 : -1;
24939 }
24940
24941 int
24942 main ()
24943 {
24944 return find_stack_direction () < 0;
24945 }
24946 _ACEOF
24947 rm -f conftest$ac_exeext
24948 if { (ac_try="$ac_link"
24949 case "(($ac_try" in
24950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24951 *) ac_try_echo=$ac_try;;
24952 esac
24953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24954 $as_echo "$ac_try_echo") >&5
24955 (eval "$ac_link") 2>&5
24956 ac_status=$?
24957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24959 { (case "(($ac_try" in
24960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24961 *) ac_try_echo=$ac_try;;
24962 esac
24963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24964 $as_echo "$ac_try_echo") >&5
24965 (eval "$ac_try") 2>&5
24966 ac_status=$?
24967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24968 (exit $ac_status); }; }; then
24969 ac_cv_c_stack_direction=1
24970 else
24971 $as_echo "$as_me: program exited with status $ac_status" >&5
24972 $as_echo "$as_me: failed program was:" >&5
24973 sed 's/^/| /' conftest.$ac_ext >&5
24974
24975 ( exit $ac_status )
24976 ac_cv_c_stack_direction=-1
24977 fi
24978 rm -rf conftest.dSYM
24979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24980 fi
24981
24982
24983 fi
24984 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
24985 $as_echo "$ac_cv_c_stack_direction" >&6; }
24986
24987 cat >>confdefs.h <<_ACEOF
24988 @%:@define STACK_DIRECTION $ac_cv_c_stack_direction
24989 _ACEOF
24990
24991
24992 fi
24993
24994
24995
24996 for ac_header in stdlib.h unistd.h
24997 do
24998 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25000 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25001 $as_echo_n "checking for $ac_header... " >&6; }
25002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25003 $as_echo_n "(cached) " >&6
25004 fi
25005 ac_res=`eval 'as_val=${'$as_ac_Header'}
25006 $as_echo "$as_val"'`
25007 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25008 $as_echo "$ac_res" >&6; }
25009 else
25010 # Is the header compilable?
25011 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25012 $as_echo_n "checking $ac_header usability... " >&6; }
25013 cat >conftest.$ac_ext <<_ACEOF
25014 /* confdefs.h. */
25015 _ACEOF
25016 cat confdefs.h >>conftest.$ac_ext
25017 cat >>conftest.$ac_ext <<_ACEOF
25018 /* end confdefs.h. */
25019 $ac_includes_default
25020 @%:@include <$ac_header>
25021 _ACEOF
25022 rm -f conftest.$ac_objext
25023 if { (ac_try="$ac_compile"
25024 case "(($ac_try" in
25025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25026 *) ac_try_echo=$ac_try;;
25027 esac
25028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25029 $as_echo "$ac_try_echo") >&5
25030 (eval "$ac_compile") 2>conftest.er1
25031 ac_status=$?
25032 grep -v '^ *+' conftest.er1 >conftest.err
25033 rm -f conftest.er1
25034 cat conftest.err >&5
25035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036 (exit $ac_status); } && {
25037 test -z "$ac_c_werror_flag" ||
25038 test ! -s conftest.err
25039 } && test -s conftest.$ac_objext; then
25040 ac_header_compiler=yes
25041 else
25042 $as_echo "$as_me: failed program was:" >&5
25043 sed 's/^/| /' conftest.$ac_ext >&5
25044
25045 ac_header_compiler=no
25046 fi
25047
25048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25049 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25050 $as_echo "$ac_header_compiler" >&6; }
25051
25052 # Is the header present?
25053 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25054 $as_echo_n "checking $ac_header presence... " >&6; }
25055 cat >conftest.$ac_ext <<_ACEOF
25056 /* confdefs.h. */
25057 _ACEOF
25058 cat confdefs.h >>conftest.$ac_ext
25059 cat >>conftest.$ac_ext <<_ACEOF
25060 /* end confdefs.h. */
25061 @%:@include <$ac_header>
25062 _ACEOF
25063 if { (ac_try="$ac_cpp conftest.$ac_ext"
25064 case "(($ac_try" in
25065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25066 *) ac_try_echo=$ac_try;;
25067 esac
25068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25069 $as_echo "$ac_try_echo") >&5
25070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25071 ac_status=$?
25072 grep -v '^ *+' conftest.er1 >conftest.err
25073 rm -f conftest.er1
25074 cat conftest.err >&5
25075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076 (exit $ac_status); } >/dev/null && {
25077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25078 test ! -s conftest.err
25079 }; then
25080 ac_header_preproc=yes
25081 else
25082 $as_echo "$as_me: failed program was:" >&5
25083 sed 's/^/| /' conftest.$ac_ext >&5
25084
25085 ac_header_preproc=no
25086 fi
25087
25088 rm -f conftest.err conftest.$ac_ext
25089 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25090 $as_echo "$ac_header_preproc" >&6; }
25091
25092 # So? What about this header?
25093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25094 yes:no: )
25095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25096 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25098 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25099 ac_header_preproc=yes
25100 ;;
25101 no:yes:* )
25102 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25103 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25104 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25105 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25107 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25109 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25111 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25112 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25113 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25114
25115 ;;
25116 esac
25117 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25118 $as_echo_n "checking for $ac_header... " >&6; }
25119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25120 $as_echo_n "(cached) " >&6
25121 else
25122 eval "$as_ac_Header=\$ac_header_preproc"
25123 fi
25124 ac_res=`eval 'as_val=${'$as_ac_Header'}
25125 $as_echo "$as_val"'`
25126 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25127 $as_echo "$ac_res" >&6; }
25128
25129 fi
25130 if test `eval 'as_val=${'$as_ac_Header'}
25131 $as_echo "$as_val"'` = yes; then
25132 cat >>confdefs.h <<_ACEOF
25133 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25134 _ACEOF
25135
25136 fi
25137
25138 done
25139
25140
25141 for ac_func in getpagesize
25142 do
25143 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25144 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25145 $as_echo_n "checking for $ac_func... " >&6; }
25146 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25147 $as_echo_n "(cached) " >&6
25148 else
25149 cat >conftest.$ac_ext <<_ACEOF
25150 /* confdefs.h. */
25151 _ACEOF
25152 cat confdefs.h >>conftest.$ac_ext
25153 cat >>conftest.$ac_ext <<_ACEOF
25154 /* end confdefs.h. */
25155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25157 #define $ac_func innocuous_$ac_func
25158
25159 /* System header to define __stub macros and hopefully few prototypes,
25160 which can conflict with char $ac_func (); below.
25161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25162 <limits.h> exists even on freestanding compilers. */
25163
25164 #ifdef __STDC__
25165 # include <limits.h>
25166 #else
25167 # include <assert.h>
25168 #endif
25169
25170 #undef $ac_func
25171
25172 /* Override any GCC internal prototype to avoid an error.
25173 Use char because int might match the return type of a GCC
25174 builtin and then its argument prototype would still apply. */
25175 #ifdef __cplusplus
25176 extern "C"
25177 #endif
25178 char $ac_func ();
25179 /* The GNU C library defines this for functions which it implements
25180 to always fail with ENOSYS. Some functions are actually named
25181 something starting with __ and the normal name is an alias. */
25182 #if defined __stub_$ac_func || defined __stub___$ac_func
25183 choke me
25184 #endif
25185
25186 int
25187 main ()
25188 {
25189 return $ac_func ();
25190 ;
25191 return 0;
25192 }
25193 _ACEOF
25194 rm -f conftest.$ac_objext conftest$ac_exeext
25195 if { (ac_try="$ac_link"
25196 case "(($ac_try" in
25197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25198 *) ac_try_echo=$ac_try;;
25199 esac
25200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25201 $as_echo "$ac_try_echo") >&5
25202 (eval "$ac_link") 2>conftest.er1
25203 ac_status=$?
25204 grep -v '^ *+' conftest.er1 >conftest.err
25205 rm -f conftest.er1
25206 cat conftest.err >&5
25207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25208 (exit $ac_status); } && {
25209 test -z "$ac_c_werror_flag" ||
25210 test ! -s conftest.err
25211 } && test -s conftest$ac_exeext && {
25212 test "$cross_compiling" = yes ||
25213 $as_test_x conftest$ac_exeext
25214 }; then
25215 eval "$as_ac_var=yes"
25216 else
25217 $as_echo "$as_me: failed program was:" >&5
25218 sed 's/^/| /' conftest.$ac_ext >&5
25219
25220 eval "$as_ac_var=no"
25221 fi
25222
25223 rm -rf conftest.dSYM
25224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25225 conftest$ac_exeext conftest.$ac_ext
25226 fi
25227 ac_res=`eval 'as_val=${'$as_ac_var'}
25228 $as_echo "$as_val"'`
25229 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25230 $as_echo "$ac_res" >&6; }
25231 if test `eval 'as_val=${'$as_ac_var'}
25232 $as_echo "$as_val"'` = yes; then
25233 cat >>confdefs.h <<_ACEOF
25234 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25235 _ACEOF
25236
25237 fi
25238 done
25239
25240 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
25241 $as_echo_n "checking for working mmap... " >&6; }
25242 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
25243 $as_echo_n "(cached) " >&6
25244 else
25245 if test "$cross_compiling" = yes; then
25246 ac_cv_func_mmap_fixed_mapped=no
25247 else
25248 cat >conftest.$ac_ext <<_ACEOF
25249 /* confdefs.h. */
25250 _ACEOF
25251 cat confdefs.h >>conftest.$ac_ext
25252 cat >>conftest.$ac_ext <<_ACEOF
25253 /* end confdefs.h. */
25254 $ac_includes_default
25255 /* malloc might have been renamed as rpl_malloc. */
25256 #undef malloc
25257
25258 /* Thanks to Mike Haertel and Jim Avera for this test.
25259 Here is a matrix of mmap possibilities:
25260 mmap private not fixed
25261 mmap private fixed at somewhere currently unmapped
25262 mmap private fixed at somewhere already mapped
25263 mmap shared not fixed
25264 mmap shared fixed at somewhere currently unmapped
25265 mmap shared fixed at somewhere already mapped
25266 For private mappings, we should verify that changes cannot be read()
25267 back from the file, nor mmap's back from the file at a different
25268 address. (There have been systems where private was not correctly
25269 implemented like the infamous i386 svr4.0, and systems where the
25270 VM page cache was not coherent with the file system buffer cache
25271 like early versions of FreeBSD and possibly contemporary NetBSD.)
25272 For shared mappings, we should conversely verify that changes get
25273 propagated back to all the places they're supposed to be.
25274
25275 Grep wants private fixed already mapped.
25276 The main things grep needs to know about mmap are:
25277 * does it exist and is it safe to write into the mmap'd area
25278 * how to use it (BSD variants) */
25279
25280 #include <fcntl.h>
25281 #include <sys/mman.h>
25282
25283 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
25284 char *malloc ();
25285 #endif
25286
25287 /* This mess was copied from the GNU getpagesize.h. */
25288 #ifndef HAVE_GETPAGESIZE
25289 /* Assume that all systems that can run configure have sys/param.h. */
25290 # ifndef HAVE_SYS_PARAM_H
25291 # define HAVE_SYS_PARAM_H 1
25292 # endif
25293
25294 # ifdef _SC_PAGESIZE
25295 # define getpagesize() sysconf(_SC_PAGESIZE)
25296 # else /* no _SC_PAGESIZE */
25297 # ifdef HAVE_SYS_PARAM_H
25298 # include <sys/param.h>
25299 # ifdef EXEC_PAGESIZE
25300 # define getpagesize() EXEC_PAGESIZE
25301 # else /* no EXEC_PAGESIZE */
25302 # ifdef NBPG
25303 # define getpagesize() NBPG * CLSIZE
25304 # ifndef CLSIZE
25305 # define CLSIZE 1
25306 # endif /* no CLSIZE */
25307 # else /* no NBPG */
25308 # ifdef NBPC
25309 # define getpagesize() NBPC
25310 # else /* no NBPC */
25311 # ifdef PAGESIZE
25312 # define getpagesize() PAGESIZE
25313 # endif /* PAGESIZE */
25314 # endif /* no NBPC */
25315 # endif /* no NBPG */
25316 # endif /* no EXEC_PAGESIZE */
25317 # else /* no HAVE_SYS_PARAM_H */
25318 # define getpagesize() 8192 /* punt totally */
25319 # endif /* no HAVE_SYS_PARAM_H */
25320 # endif /* no _SC_PAGESIZE */
25321
25322 #endif /* no HAVE_GETPAGESIZE */
25323
25324 int
25325 main ()
25326 {
25327 char *data, *data2, *data3;
25328 int i, pagesize;
25329 int fd;
25330
25331 pagesize = getpagesize ();
25332
25333 /* First, make a file with some known garbage in it. */
25334 data = (char *) malloc (pagesize);
25335 if (!data)
25336 return 1;
25337 for (i = 0; i < pagesize; ++i)
25338 *(data + i) = rand ();
25339 umask (0);
25340 fd = creat ("conftest.mmap", 0600);
25341 if (fd < 0)
25342 return 1;
25343 if (write (fd, data, pagesize) != pagesize)
25344 return 1;
25345 close (fd);
25346
25347 /* Next, try to mmap the file at a fixed address which already has
25348 something else allocated at it. If we can, also make sure that
25349 we see the same garbage. */
25350 fd = open ("conftest.mmap", O_RDWR);
25351 if (fd < 0)
25352 return 1;
25353 data2 = (char *) malloc (2 * pagesize);
25354 if (!data2)
25355 return 1;
25356 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
25357 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
25358 MAP_PRIVATE | MAP_FIXED, fd, 0L))
25359 return 1;
25360 for (i = 0; i < pagesize; ++i)
25361 if (*(data + i) != *(data2 + i))
25362 return 1;
25363
25364 /* Finally, make sure that changes to the mapped area do not
25365 percolate back to the file as seen by read(). (This is a bug on
25366 some variants of i386 svr4.0.) */
25367 for (i = 0; i < pagesize; ++i)
25368 *(data2 + i) = *(data2 + i) + 1;
25369 data3 = (char *) malloc (pagesize);
25370 if (!data3)
25371 return 1;
25372 if (read (fd, data3, pagesize) != pagesize)
25373 return 1;
25374 for (i = 0; i < pagesize; ++i)
25375 if (*(data + i) != *(data3 + i))
25376 return 1;
25377 close (fd);
25378 return 0;
25379 }
25380 _ACEOF
25381 rm -f conftest$ac_exeext
25382 if { (ac_try="$ac_link"
25383 case "(($ac_try" in
25384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25385 *) ac_try_echo=$ac_try;;
25386 esac
25387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25388 $as_echo "$ac_try_echo") >&5
25389 (eval "$ac_link") 2>&5
25390 ac_status=$?
25391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25392 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25393 { (case "(($ac_try" in
25394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25395 *) ac_try_echo=$ac_try;;
25396 esac
25397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25398 $as_echo "$ac_try_echo") >&5
25399 (eval "$ac_try") 2>&5
25400 ac_status=$?
25401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25402 (exit $ac_status); }; }; then
25403 ac_cv_func_mmap_fixed_mapped=yes
25404 else
25405 $as_echo "$as_me: program exited with status $ac_status" >&5
25406 $as_echo "$as_me: failed program was:" >&5
25407 sed 's/^/| /' conftest.$ac_ext >&5
25408
25409 ( exit $ac_status )
25410 ac_cv_func_mmap_fixed_mapped=no
25411 fi
25412 rm -rf conftest.dSYM
25413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25414 fi
25415
25416
25417 fi
25418 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
25419 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
25420 if test $ac_cv_func_mmap_fixed_mapped = yes; then
25421
25422 cat >>confdefs.h <<\_ACEOF
25423 @%:@define HAVE_MMAP 1
25424 _ACEOF
25425
25426 fi
25427 rm -f conftest.mmap
25428
25429
25430 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
25431 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
25432 if test "${ac_cv_gnu_library_2_1+set}" = set; then
25433 $as_echo_n "(cached) " >&6
25434 else
25435 cat >conftest.$ac_ext <<_ACEOF
25436 /* confdefs.h. */
25437 _ACEOF
25438 cat confdefs.h >>conftest.$ac_ext
25439 cat >>conftest.$ac_ext <<_ACEOF
25440 /* end confdefs.h. */
25441
25442 #include <features.h>
25443 #ifdef __GNU_LIBRARY__
25444 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
25445 Lucky GNU user
25446 #endif
25447 #endif
25448
25449 _ACEOF
25450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25451 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
25452 ac_cv_gnu_library_2_1=yes
25453 else
25454 ac_cv_gnu_library_2_1=no
25455 fi
25456 rm -f conftest*
25457
25458
25459
25460 fi
25461 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
25462 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
25463
25464 GLIBC21="$ac_cv_gnu_library_2_1"
25465
25466
25467
25468
25469 { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
25470 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
25471 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
25472 $as_echo_n "(cached) " >&6
25473 else
25474
25475 if test "$cross_compiling" = yes; then
25476
25477 # Guess based on the CPU.
25478 case "$host_cpu" in
25479 alpha* | i3456786 | m68k | s390*)
25480 gt_cv_int_divbyzero_sigfpe="guessing yes";;
25481 *)
25482 gt_cv_int_divbyzero_sigfpe="guessing no";;
25483 esac
25484
25485 else
25486 cat >conftest.$ac_ext <<_ACEOF
25487 /* confdefs.h. */
25488 _ACEOF
25489 cat confdefs.h >>conftest.$ac_ext
25490 cat >>conftest.$ac_ext <<_ACEOF
25491 /* end confdefs.h. */
25492
25493 #include <stdlib.h>
25494 #include <signal.h>
25495
25496 static void
25497 #ifdef __cplusplus
25498 sigfpe_handler (int sig)
25499 #else
25500 sigfpe_handler (sig) int sig;
25501 #endif
25502 {
25503 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
25504 exit (sig != SIGFPE);
25505 }
25506
25507 int x = 1;
25508 int y = 0;
25509 int z;
25510 int nan;
25511
25512 int main ()
25513 {
25514 signal (SIGFPE, sigfpe_handler);
25515 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
25516 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
25517 signal (SIGTRAP, sigfpe_handler);
25518 #endif
25519 /* Linux/SPARC yields signal SIGILL. */
25520 #if defined (__sparc__) && defined (__linux__)
25521 signal (SIGILL, sigfpe_handler);
25522 #endif
25523
25524 z = x / y;
25525 nan = y / y;
25526 exit (1);
25527 }
25528
25529 _ACEOF
25530 rm -f conftest$ac_exeext
25531 if { (ac_try="$ac_link"
25532 case "(($ac_try" in
25533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25534 *) ac_try_echo=$ac_try;;
25535 esac
25536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25537 $as_echo "$ac_try_echo") >&5
25538 (eval "$ac_link") 2>&5
25539 ac_status=$?
25540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25542 { (case "(($ac_try" in
25543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25544 *) ac_try_echo=$ac_try;;
25545 esac
25546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25547 $as_echo "$ac_try_echo") >&5
25548 (eval "$ac_try") 2>&5
25549 ac_status=$?
25550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25551 (exit $ac_status); }; }; then
25552 gt_cv_int_divbyzero_sigfpe=yes
25553 else
25554 $as_echo "$as_me: program exited with status $ac_status" >&5
25555 $as_echo "$as_me: failed program was:" >&5
25556 sed 's/^/| /' conftest.$ac_ext >&5
25557
25558 ( exit $ac_status )
25559 gt_cv_int_divbyzero_sigfpe=no
25560 fi
25561 rm -rf conftest.dSYM
25562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25563 fi
25564
25565
25566
25567 fi
25568 { $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
25569 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
25570 case "$gt_cv_int_divbyzero_sigfpe" in
25571 *yes) value=1;;
25572 *) value=0;;
25573 esac
25574
25575 cat >>confdefs.h <<_ACEOF
25576 @%:@define INTDIV0_RAISES_SIGFPE $value
25577 _ACEOF
25578
25579
25580
25581 { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
25582 $as_echo_n "checking for unsigned long long... " >&6; }
25583 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
25584 $as_echo_n "(cached) " >&6
25585 else
25586 cat >conftest.$ac_ext <<_ACEOF
25587 /* confdefs.h. */
25588 _ACEOF
25589 cat confdefs.h >>conftest.$ac_ext
25590 cat >>conftest.$ac_ext <<_ACEOF
25591 /* end confdefs.h. */
25592 unsigned long long ull = 1ULL; int i = 63;
25593 int
25594 main ()
25595 {
25596 unsigned long long ullmax = (unsigned long long) -1;
25597 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
25598 ;
25599 return 0;
25600 }
25601 _ACEOF
25602 rm -f conftest.$ac_objext conftest$ac_exeext
25603 if { (ac_try="$ac_link"
25604 case "(($ac_try" in
25605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25606 *) ac_try_echo=$ac_try;;
25607 esac
25608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25609 $as_echo "$ac_try_echo") >&5
25610 (eval "$ac_link") 2>conftest.er1
25611 ac_status=$?
25612 grep -v '^ *+' conftest.er1 >conftest.err
25613 rm -f conftest.er1
25614 cat conftest.err >&5
25615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25616 (exit $ac_status); } && {
25617 test -z "$ac_c_werror_flag" ||
25618 test ! -s conftest.err
25619 } && test -s conftest$ac_exeext && {
25620 test "$cross_compiling" = yes ||
25621 $as_test_x conftest$ac_exeext
25622 }; then
25623 ac_cv_type_unsigned_long_long=yes
25624 else
25625 $as_echo "$as_me: failed program was:" >&5
25626 sed 's/^/| /' conftest.$ac_ext >&5
25627
25628 ac_cv_type_unsigned_long_long=no
25629 fi
25630
25631 rm -rf conftest.dSYM
25632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25633 conftest$ac_exeext conftest.$ac_ext
25634 fi
25635 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
25636 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
25637 if test $ac_cv_type_unsigned_long_long = yes; then
25638
25639 cat >>confdefs.h <<\_ACEOF
25640 @%:@define HAVE_UNSIGNED_LONG_LONG 1
25641 _ACEOF
25642
25643 fi
25644
25645
25646
25647
25648 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
25649
25650 test $ac_cv_type_unsigned_long_long = yes \
25651 && ac_type='unsigned long long' \
25652 || ac_type='unsigned long'
25653
25654 cat >>confdefs.h <<_ACEOF
25655 @%:@define uintmax_t $ac_type
25656 _ACEOF
25657
25658 else
25659
25660 cat >>confdefs.h <<\_ACEOF
25661 @%:@define HAVE_UINTMAX_T 1
25662 _ACEOF
25663
25664 fi
25665
25666
25667 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
25668 $as_echo_n "checking for inttypes.h... " >&6; }
25669 if test "${gt_cv_header_inttypes_h+set}" = set; then
25670 $as_echo_n "(cached) " >&6
25671 else
25672
25673 cat >conftest.$ac_ext <<_ACEOF
25674 /* confdefs.h. */
25675 _ACEOF
25676 cat confdefs.h >>conftest.$ac_ext
25677 cat >>conftest.$ac_ext <<_ACEOF
25678 /* end confdefs.h. */
25679 #include <sys/types.h>
25680 #include <inttypes.h>
25681 int
25682 main ()
25683 {
25684
25685 ;
25686 return 0;
25687 }
25688 _ACEOF
25689 rm -f conftest.$ac_objext
25690 if { (ac_try="$ac_compile"
25691 case "(($ac_try" in
25692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25693 *) ac_try_echo=$ac_try;;
25694 esac
25695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25696 $as_echo "$ac_try_echo") >&5
25697 (eval "$ac_compile") 2>conftest.er1
25698 ac_status=$?
25699 grep -v '^ *+' conftest.er1 >conftest.err
25700 rm -f conftest.er1
25701 cat conftest.err >&5
25702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25703 (exit $ac_status); } && {
25704 test -z "$ac_c_werror_flag" ||
25705 test ! -s conftest.err
25706 } && test -s conftest.$ac_objext; then
25707 gt_cv_header_inttypes_h=yes
25708 else
25709 $as_echo "$as_me: failed program was:" >&5
25710 sed 's/^/| /' conftest.$ac_ext >&5
25711
25712 gt_cv_header_inttypes_h=no
25713 fi
25714
25715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25716
25717 fi
25718 { $as_echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
25719 $as_echo "$gt_cv_header_inttypes_h" >&6; }
25720 if test $gt_cv_header_inttypes_h = yes; then
25721
25722 cat >>confdefs.h <<_ACEOF
25723 @%:@define HAVE_INTTYPES_H 1
25724 _ACEOF
25725
25726 fi
25727
25728
25729
25730 if test $gt_cv_header_inttypes_h = yes; then
25731 { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
25732 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
25733 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
25734 $as_echo_n "(cached) " >&6
25735 else
25736
25737 cat >conftest.$ac_ext <<_ACEOF
25738 /* confdefs.h. */
25739 _ACEOF
25740 cat confdefs.h >>conftest.$ac_ext
25741 cat >>conftest.$ac_ext <<_ACEOF
25742 /* end confdefs.h. */
25743 #include <inttypes.h>
25744 #ifdef PRId32
25745 char *p = PRId32;
25746 #endif
25747
25748 int
25749 main ()
25750 {
25751
25752 ;
25753 return 0;
25754 }
25755 _ACEOF
25756 rm -f conftest.$ac_objext
25757 if { (ac_try="$ac_compile"
25758 case "(($ac_try" in
25759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25760 *) ac_try_echo=$ac_try;;
25761 esac
25762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25763 $as_echo "$ac_try_echo") >&5
25764 (eval "$ac_compile") 2>conftest.er1
25765 ac_status=$?
25766 grep -v '^ *+' conftest.er1 >conftest.err
25767 rm -f conftest.er1
25768 cat conftest.err >&5
25769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25770 (exit $ac_status); } && {
25771 test -z "$ac_c_werror_flag" ||
25772 test ! -s conftest.err
25773 } && test -s conftest.$ac_objext; then
25774 gt_cv_inttypes_pri_broken=no
25775 else
25776 $as_echo "$as_me: failed program was:" >&5
25777 sed 's/^/| /' conftest.$ac_ext >&5
25778
25779 gt_cv_inttypes_pri_broken=yes
25780 fi
25781
25782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25783
25784 fi
25785 { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
25786 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
25787 fi
25788 if test "$gt_cv_inttypes_pri_broken" = yes; then
25789
25790 cat >>confdefs.h <<_ACEOF
25791 @%:@define PRI_MACROS_BROKEN 1
25792 _ACEOF
25793
25794 fi
25795
25796
25797
25798 for ac_header in stdint.h
25799 do
25800 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25802 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25803 $as_echo_n "checking for $ac_header... " >&6; }
25804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25805 $as_echo_n "(cached) " >&6
25806 fi
25807 ac_res=`eval 'as_val=${'$as_ac_Header'}
25808 $as_echo "$as_val"'`
25809 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25810 $as_echo "$ac_res" >&6; }
25811 else
25812 # Is the header compilable?
25813 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25814 $as_echo_n "checking $ac_header usability... " >&6; }
25815 cat >conftest.$ac_ext <<_ACEOF
25816 /* confdefs.h. */
25817 _ACEOF
25818 cat confdefs.h >>conftest.$ac_ext
25819 cat >>conftest.$ac_ext <<_ACEOF
25820 /* end confdefs.h. */
25821 $ac_includes_default
25822 @%:@include <$ac_header>
25823 _ACEOF
25824 rm -f conftest.$ac_objext
25825 if { (ac_try="$ac_compile"
25826 case "(($ac_try" in
25827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25828 *) ac_try_echo=$ac_try;;
25829 esac
25830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25831 $as_echo "$ac_try_echo") >&5
25832 (eval "$ac_compile") 2>conftest.er1
25833 ac_status=$?
25834 grep -v '^ *+' conftest.er1 >conftest.err
25835 rm -f conftest.er1
25836 cat conftest.err >&5
25837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25838 (exit $ac_status); } && {
25839 test -z "$ac_c_werror_flag" ||
25840 test ! -s conftest.err
25841 } && test -s conftest.$ac_objext; then
25842 ac_header_compiler=yes
25843 else
25844 $as_echo "$as_me: failed program was:" >&5
25845 sed 's/^/| /' conftest.$ac_ext >&5
25846
25847 ac_header_compiler=no
25848 fi
25849
25850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25851 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25852 $as_echo "$ac_header_compiler" >&6; }
25853
25854 # Is the header present?
25855 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25856 $as_echo_n "checking $ac_header presence... " >&6; }
25857 cat >conftest.$ac_ext <<_ACEOF
25858 /* confdefs.h. */
25859 _ACEOF
25860 cat confdefs.h >>conftest.$ac_ext
25861 cat >>conftest.$ac_ext <<_ACEOF
25862 /* end confdefs.h. */
25863 @%:@include <$ac_header>
25864 _ACEOF
25865 if { (ac_try="$ac_cpp conftest.$ac_ext"
25866 case "(($ac_try" in
25867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25868 *) ac_try_echo=$ac_try;;
25869 esac
25870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25871 $as_echo "$ac_try_echo") >&5
25872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25873 ac_status=$?
25874 grep -v '^ *+' conftest.er1 >conftest.err
25875 rm -f conftest.er1
25876 cat conftest.err >&5
25877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25878 (exit $ac_status); } >/dev/null && {
25879 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25880 test ! -s conftest.err
25881 }; then
25882 ac_header_preproc=yes
25883 else
25884 $as_echo "$as_me: failed program was:" >&5
25885 sed 's/^/| /' conftest.$ac_ext >&5
25886
25887 ac_header_preproc=no
25888 fi
25889
25890 rm -f conftest.err conftest.$ac_ext
25891 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25892 $as_echo "$ac_header_preproc" >&6; }
25893
25894 # So? What about this header?
25895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25896 yes:no: )
25897 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25898 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25899 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25900 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25901 ac_header_preproc=yes
25902 ;;
25903 no:yes:* )
25904 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25905 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25906 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25907 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25908 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25909 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25910 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25911 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25912 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25913 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25914 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25915 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25916
25917 ;;
25918 esac
25919 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25920 $as_echo_n "checking for $ac_header... " >&6; }
25921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25922 $as_echo_n "(cached) " >&6
25923 else
25924 eval "$as_ac_Header=\$ac_header_preproc"
25925 fi
25926 ac_res=`eval 'as_val=${'$as_ac_Header'}
25927 $as_echo "$as_val"'`
25928 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25929 $as_echo "$ac_res" >&6; }
25930
25931 fi
25932 if test `eval 'as_val=${'$as_ac_Header'}
25933 $as_echo "$as_val"'` = yes; then
25934 cat >>confdefs.h <<_ACEOF
25935 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25936 _ACEOF
25937
25938 fi
25939
25940 done
25941
25942 { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
25943 $as_echo_n "checking for SIZE_MAX... " >&6; }
25944 result=
25945 cat >conftest.$ac_ext <<_ACEOF
25946 /* confdefs.h. */
25947 _ACEOF
25948 cat confdefs.h >>conftest.$ac_ext
25949 cat >>conftest.$ac_ext <<_ACEOF
25950 /* end confdefs.h. */
25951
25952 #include <limits.h>
25953 #if HAVE_STDINT_H
25954 #include <stdint.h>
25955 #endif
25956 #ifdef SIZE_MAX
25957 Found it
25958 #endif
25959
25960 _ACEOF
25961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25962 $EGREP "Found it" >/dev/null 2>&1; then
25963 result=yes
25964 fi
25965 rm -f conftest*
25966
25967 if test -z "$result"; then
25968 if test "$cross_compiling" = yes; then
25969 # Depending upon the size, compute the lo and hi bounds.
25970 cat >conftest.$ac_ext <<_ACEOF
25971 /* confdefs.h. */
25972 _ACEOF
25973 cat confdefs.h >>conftest.$ac_ext
25974 cat >>conftest.$ac_ext <<_ACEOF
25975 /* end confdefs.h. */
25976 #include <stddef.h>
25977 int
25978 main ()
25979 {
25980 static int test_array @<:@1 - 2 * !((~(size_t)0 / 10) >= 0)@:>@;
25981 test_array @<:@0@:>@ = 0
25982
25983 ;
25984 return 0;
25985 }
25986 _ACEOF
25987 rm -f conftest.$ac_objext
25988 if { (ac_try="$ac_compile"
25989 case "(($ac_try" in
25990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25991 *) ac_try_echo=$ac_try;;
25992 esac
25993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25994 $as_echo "$ac_try_echo") >&5
25995 (eval "$ac_compile") 2>conftest.er1
25996 ac_status=$?
25997 grep -v '^ *+' conftest.er1 >conftest.err
25998 rm -f conftest.er1
25999 cat conftest.err >&5
26000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26001 (exit $ac_status); } && {
26002 test -z "$ac_c_werror_flag" ||
26003 test ! -s conftest.err
26004 } && test -s conftest.$ac_objext; then
26005 ac_lo=0 ac_mid=0
26006 while :; do
26007 cat >conftest.$ac_ext <<_ACEOF
26008 /* confdefs.h. */
26009 _ACEOF
26010 cat confdefs.h >>conftest.$ac_ext
26011 cat >>conftest.$ac_ext <<_ACEOF
26012 /* end confdefs.h. */
26013 #include <stddef.h>
26014 int
26015 main ()
26016 {
26017 static int test_array @<:@1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)@:>@;
26018 test_array @<:@0@:>@ = 0
26019
26020 ;
26021 return 0;
26022 }
26023 _ACEOF
26024 rm -f conftest.$ac_objext
26025 if { (ac_try="$ac_compile"
26026 case "(($ac_try" in
26027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26028 *) ac_try_echo=$ac_try;;
26029 esac
26030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26031 $as_echo "$ac_try_echo") >&5
26032 (eval "$ac_compile") 2>conftest.er1
26033 ac_status=$?
26034 grep -v '^ *+' conftest.er1 >conftest.err
26035 rm -f conftest.er1
26036 cat conftest.err >&5
26037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038 (exit $ac_status); } && {
26039 test -z "$ac_c_werror_flag" ||
26040 test ! -s conftest.err
26041 } && test -s conftest.$ac_objext; then
26042 ac_hi=$ac_mid; break
26043 else
26044 $as_echo "$as_me: failed program was:" >&5
26045 sed 's/^/| /' conftest.$ac_ext >&5
26046
26047 ac_lo=`expr $ac_mid + 1`
26048 if test $ac_lo -le $ac_mid; then
26049 ac_lo= ac_hi=
26050 break
26051 fi
26052 ac_mid=`expr 2 '*' $ac_mid + 1`
26053 fi
26054
26055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26056 done
26057 else
26058 $as_echo "$as_me: failed program was:" >&5
26059 sed 's/^/| /' conftest.$ac_ext >&5
26060
26061 cat >conftest.$ac_ext <<_ACEOF
26062 /* confdefs.h. */
26063 _ACEOF
26064 cat confdefs.h >>conftest.$ac_ext
26065 cat >>conftest.$ac_ext <<_ACEOF
26066 /* end confdefs.h. */
26067 #include <stddef.h>
26068 int
26069 main ()
26070 {
26071 static int test_array @<:@1 - 2 * !((~(size_t)0 / 10) < 0)@:>@;
26072 test_array @<:@0@:>@ = 0
26073
26074 ;
26075 return 0;
26076 }
26077 _ACEOF
26078 rm -f conftest.$ac_objext
26079 if { (ac_try="$ac_compile"
26080 case "(($ac_try" in
26081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26082 *) ac_try_echo=$ac_try;;
26083 esac
26084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26085 $as_echo "$ac_try_echo") >&5
26086 (eval "$ac_compile") 2>conftest.er1
26087 ac_status=$?
26088 grep -v '^ *+' conftest.er1 >conftest.err
26089 rm -f conftest.er1
26090 cat conftest.err >&5
26091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26092 (exit $ac_status); } && {
26093 test -z "$ac_c_werror_flag" ||
26094 test ! -s conftest.err
26095 } && test -s conftest.$ac_objext; then
26096 ac_hi=-1 ac_mid=-1
26097 while :; do
26098 cat >conftest.$ac_ext <<_ACEOF
26099 /* confdefs.h. */
26100 _ACEOF
26101 cat confdefs.h >>conftest.$ac_ext
26102 cat >>conftest.$ac_ext <<_ACEOF
26103 /* end confdefs.h. */
26104 #include <stddef.h>
26105 int
26106 main ()
26107 {
26108 static int test_array @<:@1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)@:>@;
26109 test_array @<:@0@:>@ = 0
26110
26111 ;
26112 return 0;
26113 }
26114 _ACEOF
26115 rm -f conftest.$ac_objext
26116 if { (ac_try="$ac_compile"
26117 case "(($ac_try" in
26118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26119 *) ac_try_echo=$ac_try;;
26120 esac
26121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26122 $as_echo "$ac_try_echo") >&5
26123 (eval "$ac_compile") 2>conftest.er1
26124 ac_status=$?
26125 grep -v '^ *+' conftest.er1 >conftest.err
26126 rm -f conftest.er1
26127 cat conftest.err >&5
26128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26129 (exit $ac_status); } && {
26130 test -z "$ac_c_werror_flag" ||
26131 test ! -s conftest.err
26132 } && test -s conftest.$ac_objext; then
26133 ac_lo=$ac_mid; break
26134 else
26135 $as_echo "$as_me: failed program was:" >&5
26136 sed 's/^/| /' conftest.$ac_ext >&5
26137
26138 ac_hi=`expr '(' $ac_mid ')' - 1`
26139 if test $ac_mid -le $ac_hi; then
26140 ac_lo= ac_hi=
26141 break
26142 fi
26143 ac_mid=`expr 2 '*' $ac_mid`
26144 fi
26145
26146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26147 done
26148 else
26149 $as_echo "$as_me: failed program was:" >&5
26150 sed 's/^/| /' conftest.$ac_ext >&5
26151
26152 ac_lo= ac_hi=
26153 fi
26154
26155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26156 fi
26157
26158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26159 # Binary search between lo and hi bounds.
26160 while test "x$ac_lo" != "x$ac_hi"; do
26161 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26162 cat >conftest.$ac_ext <<_ACEOF
26163 /* confdefs.h. */
26164 _ACEOF
26165 cat confdefs.h >>conftest.$ac_ext
26166 cat >>conftest.$ac_ext <<_ACEOF
26167 /* end confdefs.h. */
26168 #include <stddef.h>
26169 int
26170 main ()
26171 {
26172 static int test_array @<:@1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)@:>@;
26173 test_array @<:@0@:>@ = 0
26174
26175 ;
26176 return 0;
26177 }
26178 _ACEOF
26179 rm -f conftest.$ac_objext
26180 if { (ac_try="$ac_compile"
26181 case "(($ac_try" in
26182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26183 *) ac_try_echo=$ac_try;;
26184 esac
26185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26186 $as_echo "$ac_try_echo") >&5
26187 (eval "$ac_compile") 2>conftest.er1
26188 ac_status=$?
26189 grep -v '^ *+' conftest.er1 >conftest.err
26190 rm -f conftest.er1
26191 cat conftest.err >&5
26192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26193 (exit $ac_status); } && {
26194 test -z "$ac_c_werror_flag" ||
26195 test ! -s conftest.err
26196 } && test -s conftest.$ac_objext; then
26197 ac_hi=$ac_mid
26198 else
26199 $as_echo "$as_me: failed program was:" >&5
26200 sed 's/^/| /' conftest.$ac_ext >&5
26201
26202 ac_lo=`expr '(' $ac_mid ')' + 1`
26203 fi
26204
26205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26206 done
26207 case $ac_lo in
26208 ?*) res_hi=$ac_lo;;
26209 '') result=? ;;
26210 esac
26211 else
26212 cat >conftest.$ac_ext <<_ACEOF
26213 /* confdefs.h. */
26214 _ACEOF
26215 cat confdefs.h >>conftest.$ac_ext
26216 cat >>conftest.$ac_ext <<_ACEOF
26217 /* end confdefs.h. */
26218 #include <stddef.h>
26219 static long int longval () { return ~(size_t)0 / 10; }
26220 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
26221 @%:@include <stdio.h>
26222 @%:@include <stdlib.h>
26223 int
26224 main ()
26225 {
26226
26227 FILE *f = fopen ("conftest.val", "w");
26228 if (! f)
26229 return 1;
26230 if ((~(size_t)0 / 10) < 0)
26231 {
26232 long int i = longval ();
26233 if (i != (~(size_t)0 / 10))
26234 return 1;
26235 fprintf (f, "%ld", i);
26236 }
26237 else
26238 {
26239 unsigned long int i = ulongval ();
26240 if (i != (~(size_t)0 / 10))
26241 return 1;
26242 fprintf (f, "%lu", i);
26243 }
26244 /* Do not output a trailing newline, as this causes \r\n confusion
26245 on some platforms. */
26246 return ferror (f) || fclose (f) != 0;
26247
26248 ;
26249 return 0;
26250 }
26251 _ACEOF
26252 rm -f conftest$ac_exeext
26253 if { (ac_try="$ac_link"
26254 case "(($ac_try" in
26255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26256 *) ac_try_echo=$ac_try;;
26257 esac
26258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26259 $as_echo "$ac_try_echo") >&5
26260 (eval "$ac_link") 2>&5
26261 ac_status=$?
26262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26263 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26264 { (case "(($ac_try" in
26265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26266 *) ac_try_echo=$ac_try;;
26267 esac
26268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26269 $as_echo "$ac_try_echo") >&5
26270 (eval "$ac_try") 2>&5
26271 ac_status=$?
26272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26273 (exit $ac_status); }; }; then
26274 res_hi=`cat conftest.val`
26275 else
26276 $as_echo "$as_me: program exited with status $ac_status" >&5
26277 $as_echo "$as_me: failed program was:" >&5
26278 sed 's/^/| /' conftest.$ac_ext >&5
26279
26280 ( exit $ac_status )
26281 result=?
26282 fi
26283 rm -rf conftest.dSYM
26284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26285 fi
26286 rm -f conftest.val
26287
26288 if test "$cross_compiling" = yes; then
26289 # Depending upon the size, compute the lo and hi bounds.
26290 cat >conftest.$ac_ext <<_ACEOF
26291 /* confdefs.h. */
26292 _ACEOF
26293 cat confdefs.h >>conftest.$ac_ext
26294 cat >>conftest.$ac_ext <<_ACEOF
26295 /* end confdefs.h. */
26296 #include <stddef.h>
26297 int
26298 main ()
26299 {
26300 static int test_array @<:@1 - 2 * !((~(size_t)0 % 10) >= 0)@:>@;
26301 test_array @<:@0@:>@ = 0
26302
26303 ;
26304 return 0;
26305 }
26306 _ACEOF
26307 rm -f conftest.$ac_objext
26308 if { (ac_try="$ac_compile"
26309 case "(($ac_try" in
26310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26311 *) ac_try_echo=$ac_try;;
26312 esac
26313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26314 $as_echo "$ac_try_echo") >&5
26315 (eval "$ac_compile") 2>conftest.er1
26316 ac_status=$?
26317 grep -v '^ *+' conftest.er1 >conftest.err
26318 rm -f conftest.er1
26319 cat conftest.err >&5
26320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26321 (exit $ac_status); } && {
26322 test -z "$ac_c_werror_flag" ||
26323 test ! -s conftest.err
26324 } && test -s conftest.$ac_objext; then
26325 ac_lo=0 ac_mid=0
26326 while :; do
26327 cat >conftest.$ac_ext <<_ACEOF
26328 /* confdefs.h. */
26329 _ACEOF
26330 cat confdefs.h >>conftest.$ac_ext
26331 cat >>conftest.$ac_ext <<_ACEOF
26332 /* end confdefs.h. */
26333 #include <stddef.h>
26334 int
26335 main ()
26336 {
26337 static int test_array @<:@1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)@:>@;
26338 test_array @<:@0@:>@ = 0
26339
26340 ;
26341 return 0;
26342 }
26343 _ACEOF
26344 rm -f conftest.$ac_objext
26345 if { (ac_try="$ac_compile"
26346 case "(($ac_try" in
26347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26348 *) ac_try_echo=$ac_try;;
26349 esac
26350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26351 $as_echo "$ac_try_echo") >&5
26352 (eval "$ac_compile") 2>conftest.er1
26353 ac_status=$?
26354 grep -v '^ *+' conftest.er1 >conftest.err
26355 rm -f conftest.er1
26356 cat conftest.err >&5
26357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26358 (exit $ac_status); } && {
26359 test -z "$ac_c_werror_flag" ||
26360 test ! -s conftest.err
26361 } && test -s conftest.$ac_objext; then
26362 ac_hi=$ac_mid; break
26363 else
26364 $as_echo "$as_me: failed program was:" >&5
26365 sed 's/^/| /' conftest.$ac_ext >&5
26366
26367 ac_lo=`expr $ac_mid + 1`
26368 if test $ac_lo -le $ac_mid; then
26369 ac_lo= ac_hi=
26370 break
26371 fi
26372 ac_mid=`expr 2 '*' $ac_mid + 1`
26373 fi
26374
26375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26376 done
26377 else
26378 $as_echo "$as_me: failed program was:" >&5
26379 sed 's/^/| /' conftest.$ac_ext >&5
26380
26381 cat >conftest.$ac_ext <<_ACEOF
26382 /* confdefs.h. */
26383 _ACEOF
26384 cat confdefs.h >>conftest.$ac_ext
26385 cat >>conftest.$ac_ext <<_ACEOF
26386 /* end confdefs.h. */
26387 #include <stddef.h>
26388 int
26389 main ()
26390 {
26391 static int test_array @<:@1 - 2 * !((~(size_t)0 % 10) < 0)@:>@;
26392 test_array @<:@0@:>@ = 0
26393
26394 ;
26395 return 0;
26396 }
26397 _ACEOF
26398 rm -f conftest.$ac_objext
26399 if { (ac_try="$ac_compile"
26400 case "(($ac_try" in
26401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26402 *) ac_try_echo=$ac_try;;
26403 esac
26404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26405 $as_echo "$ac_try_echo") >&5
26406 (eval "$ac_compile") 2>conftest.er1
26407 ac_status=$?
26408 grep -v '^ *+' conftest.er1 >conftest.err
26409 rm -f conftest.er1
26410 cat conftest.err >&5
26411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26412 (exit $ac_status); } && {
26413 test -z "$ac_c_werror_flag" ||
26414 test ! -s conftest.err
26415 } && test -s conftest.$ac_objext; then
26416 ac_hi=-1 ac_mid=-1
26417 while :; do
26418 cat >conftest.$ac_ext <<_ACEOF
26419 /* confdefs.h. */
26420 _ACEOF
26421 cat confdefs.h >>conftest.$ac_ext
26422 cat >>conftest.$ac_ext <<_ACEOF
26423 /* end confdefs.h. */
26424 #include <stddef.h>
26425 int
26426 main ()
26427 {
26428 static int test_array @<:@1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)@:>@;
26429 test_array @<:@0@:>@ = 0
26430
26431 ;
26432 return 0;
26433 }
26434 _ACEOF
26435 rm -f conftest.$ac_objext
26436 if { (ac_try="$ac_compile"
26437 case "(($ac_try" in
26438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26439 *) ac_try_echo=$ac_try;;
26440 esac
26441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26442 $as_echo "$ac_try_echo") >&5
26443 (eval "$ac_compile") 2>conftest.er1
26444 ac_status=$?
26445 grep -v '^ *+' conftest.er1 >conftest.err
26446 rm -f conftest.er1
26447 cat conftest.err >&5
26448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26449 (exit $ac_status); } && {
26450 test -z "$ac_c_werror_flag" ||
26451 test ! -s conftest.err
26452 } && test -s conftest.$ac_objext; then
26453 ac_lo=$ac_mid; break
26454 else
26455 $as_echo "$as_me: failed program was:" >&5
26456 sed 's/^/| /' conftest.$ac_ext >&5
26457
26458 ac_hi=`expr '(' $ac_mid ')' - 1`
26459 if test $ac_mid -le $ac_hi; then
26460 ac_lo= ac_hi=
26461 break
26462 fi
26463 ac_mid=`expr 2 '*' $ac_mid`
26464 fi
26465
26466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26467 done
26468 else
26469 $as_echo "$as_me: failed program was:" >&5
26470 sed 's/^/| /' conftest.$ac_ext >&5
26471
26472 ac_lo= ac_hi=
26473 fi
26474
26475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26476 fi
26477
26478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26479 # Binary search between lo and hi bounds.
26480 while test "x$ac_lo" != "x$ac_hi"; do
26481 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26482 cat >conftest.$ac_ext <<_ACEOF
26483 /* confdefs.h. */
26484 _ACEOF
26485 cat confdefs.h >>conftest.$ac_ext
26486 cat >>conftest.$ac_ext <<_ACEOF
26487 /* end confdefs.h. */
26488 #include <stddef.h>
26489 int
26490 main ()
26491 {
26492 static int test_array @<:@1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)@:>@;
26493 test_array @<:@0@:>@ = 0
26494
26495 ;
26496 return 0;
26497 }
26498 _ACEOF
26499 rm -f conftest.$ac_objext
26500 if { (ac_try="$ac_compile"
26501 case "(($ac_try" in
26502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26503 *) ac_try_echo=$ac_try;;
26504 esac
26505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26506 $as_echo "$ac_try_echo") >&5
26507 (eval "$ac_compile") 2>conftest.er1
26508 ac_status=$?
26509 grep -v '^ *+' conftest.er1 >conftest.err
26510 rm -f conftest.er1
26511 cat conftest.err >&5
26512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26513 (exit $ac_status); } && {
26514 test -z "$ac_c_werror_flag" ||
26515 test ! -s conftest.err
26516 } && test -s conftest.$ac_objext; then
26517 ac_hi=$ac_mid
26518 else
26519 $as_echo "$as_me: failed program was:" >&5
26520 sed 's/^/| /' conftest.$ac_ext >&5
26521
26522 ac_lo=`expr '(' $ac_mid ')' + 1`
26523 fi
26524
26525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26526 done
26527 case $ac_lo in
26528 ?*) res_lo=$ac_lo;;
26529 '') result=? ;;
26530 esac
26531 else
26532 cat >conftest.$ac_ext <<_ACEOF
26533 /* confdefs.h. */
26534 _ACEOF
26535 cat confdefs.h >>conftest.$ac_ext
26536 cat >>conftest.$ac_ext <<_ACEOF
26537 /* end confdefs.h. */
26538 #include <stddef.h>
26539 static long int longval () { return ~(size_t)0 % 10; }
26540 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
26541 @%:@include <stdio.h>
26542 @%:@include <stdlib.h>
26543 int
26544 main ()
26545 {
26546
26547 FILE *f = fopen ("conftest.val", "w");
26548 if (! f)
26549 return 1;
26550 if ((~(size_t)0 % 10) < 0)
26551 {
26552 long int i = longval ();
26553 if (i != (~(size_t)0 % 10))
26554 return 1;
26555 fprintf (f, "%ld", i);
26556 }
26557 else
26558 {
26559 unsigned long int i = ulongval ();
26560 if (i != (~(size_t)0 % 10))
26561 return 1;
26562 fprintf (f, "%lu", i);
26563 }
26564 /* Do not output a trailing newline, as this causes \r\n confusion
26565 on some platforms. */
26566 return ferror (f) || fclose (f) != 0;
26567
26568 ;
26569 return 0;
26570 }
26571 _ACEOF
26572 rm -f conftest$ac_exeext
26573 if { (ac_try="$ac_link"
26574 case "(($ac_try" in
26575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26576 *) ac_try_echo=$ac_try;;
26577 esac
26578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26579 $as_echo "$ac_try_echo") >&5
26580 (eval "$ac_link") 2>&5
26581 ac_status=$?
26582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26584 { (case "(($ac_try" in
26585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26586 *) ac_try_echo=$ac_try;;
26587 esac
26588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26589 $as_echo "$ac_try_echo") >&5
26590 (eval "$ac_try") 2>&5
26591 ac_status=$?
26592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26593 (exit $ac_status); }; }; then
26594 res_lo=`cat conftest.val`
26595 else
26596 $as_echo "$as_me: program exited with status $ac_status" >&5
26597 $as_echo "$as_me: failed program was:" >&5
26598 sed 's/^/| /' conftest.$ac_ext >&5
26599
26600 ( exit $ac_status )
26601 result=?
26602 fi
26603 rm -rf conftest.dSYM
26604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26605 fi
26606 rm -f conftest.val
26607
26608 if test "$cross_compiling" = yes; then
26609 # Depending upon the size, compute the lo and hi bounds.
26610 cat >conftest.$ac_ext <<_ACEOF
26611 /* confdefs.h. */
26612 _ACEOF
26613 cat confdefs.h >>conftest.$ac_ext
26614 cat >>conftest.$ac_ext <<_ACEOF
26615 /* end confdefs.h. */
26616 #include <stddef.h>
26617 int
26618 main ()
26619 {
26620 static int test_array @<:@1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)@:>@;
26621 test_array @<:@0@:>@ = 0
26622
26623 ;
26624 return 0;
26625 }
26626 _ACEOF
26627 rm -f conftest.$ac_objext
26628 if { (ac_try="$ac_compile"
26629 case "(($ac_try" in
26630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26631 *) ac_try_echo=$ac_try;;
26632 esac
26633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26634 $as_echo "$ac_try_echo") >&5
26635 (eval "$ac_compile") 2>conftest.er1
26636 ac_status=$?
26637 grep -v '^ *+' conftest.er1 >conftest.err
26638 rm -f conftest.er1
26639 cat conftest.err >&5
26640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26641 (exit $ac_status); } && {
26642 test -z "$ac_c_werror_flag" ||
26643 test ! -s conftest.err
26644 } && test -s conftest.$ac_objext; then
26645 ac_lo=0 ac_mid=0
26646 while :; do
26647 cat >conftest.$ac_ext <<_ACEOF
26648 /* confdefs.h. */
26649 _ACEOF
26650 cat confdefs.h >>conftest.$ac_ext
26651 cat >>conftest.$ac_ext <<_ACEOF
26652 /* end confdefs.h. */
26653 #include <stddef.h>
26654 int
26655 main ()
26656 {
26657 static int test_array @<:@1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)@:>@;
26658 test_array @<:@0@:>@ = 0
26659
26660 ;
26661 return 0;
26662 }
26663 _ACEOF
26664 rm -f conftest.$ac_objext
26665 if { (ac_try="$ac_compile"
26666 case "(($ac_try" in
26667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26668 *) ac_try_echo=$ac_try;;
26669 esac
26670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26671 $as_echo "$ac_try_echo") >&5
26672 (eval "$ac_compile") 2>conftest.er1
26673 ac_status=$?
26674 grep -v '^ *+' conftest.er1 >conftest.err
26675 rm -f conftest.er1
26676 cat conftest.err >&5
26677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26678 (exit $ac_status); } && {
26679 test -z "$ac_c_werror_flag" ||
26680 test ! -s conftest.err
26681 } && test -s conftest.$ac_objext; then
26682 ac_hi=$ac_mid; break
26683 else
26684 $as_echo "$as_me: failed program was:" >&5
26685 sed 's/^/| /' conftest.$ac_ext >&5
26686
26687 ac_lo=`expr $ac_mid + 1`
26688 if test $ac_lo -le $ac_mid; then
26689 ac_lo= ac_hi=
26690 break
26691 fi
26692 ac_mid=`expr 2 '*' $ac_mid + 1`
26693 fi
26694
26695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26696 done
26697 else
26698 $as_echo "$as_me: failed program was:" >&5
26699 sed 's/^/| /' conftest.$ac_ext >&5
26700
26701 cat >conftest.$ac_ext <<_ACEOF
26702 /* confdefs.h. */
26703 _ACEOF
26704 cat confdefs.h >>conftest.$ac_ext
26705 cat >>conftest.$ac_ext <<_ACEOF
26706 /* end confdefs.h. */
26707 #include <stddef.h>
26708 int
26709 main ()
26710 {
26711 static int test_array @<:@1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)@:>@;
26712 test_array @<:@0@:>@ = 0
26713
26714 ;
26715 return 0;
26716 }
26717 _ACEOF
26718 rm -f conftest.$ac_objext
26719 if { (ac_try="$ac_compile"
26720 case "(($ac_try" in
26721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26722 *) ac_try_echo=$ac_try;;
26723 esac
26724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26725 $as_echo "$ac_try_echo") >&5
26726 (eval "$ac_compile") 2>conftest.er1
26727 ac_status=$?
26728 grep -v '^ *+' conftest.er1 >conftest.err
26729 rm -f conftest.er1
26730 cat conftest.err >&5
26731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26732 (exit $ac_status); } && {
26733 test -z "$ac_c_werror_flag" ||
26734 test ! -s conftest.err
26735 } && test -s conftest.$ac_objext; then
26736 ac_hi=-1 ac_mid=-1
26737 while :; do
26738 cat >conftest.$ac_ext <<_ACEOF
26739 /* confdefs.h. */
26740 _ACEOF
26741 cat confdefs.h >>conftest.$ac_ext
26742 cat >>conftest.$ac_ext <<_ACEOF
26743 /* end confdefs.h. */
26744 #include <stddef.h>
26745 int
26746 main ()
26747 {
26748 static int test_array @<:@1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)@:>@;
26749 test_array @<:@0@:>@ = 0
26750
26751 ;
26752 return 0;
26753 }
26754 _ACEOF
26755 rm -f conftest.$ac_objext
26756 if { (ac_try="$ac_compile"
26757 case "(($ac_try" in
26758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26759 *) ac_try_echo=$ac_try;;
26760 esac
26761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26762 $as_echo "$ac_try_echo") >&5
26763 (eval "$ac_compile") 2>conftest.er1
26764 ac_status=$?
26765 grep -v '^ *+' conftest.er1 >conftest.err
26766 rm -f conftest.er1
26767 cat conftest.err >&5
26768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26769 (exit $ac_status); } && {
26770 test -z "$ac_c_werror_flag" ||
26771 test ! -s conftest.err
26772 } && test -s conftest.$ac_objext; then
26773 ac_lo=$ac_mid; break
26774 else
26775 $as_echo "$as_me: failed program was:" >&5
26776 sed 's/^/| /' conftest.$ac_ext >&5
26777
26778 ac_hi=`expr '(' $ac_mid ')' - 1`
26779 if test $ac_mid -le $ac_hi; then
26780 ac_lo= ac_hi=
26781 break
26782 fi
26783 ac_mid=`expr 2 '*' $ac_mid`
26784 fi
26785
26786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26787 done
26788 else
26789 $as_echo "$as_me: failed program was:" >&5
26790 sed 's/^/| /' conftest.$ac_ext >&5
26791
26792 ac_lo= ac_hi=
26793 fi
26794
26795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26796 fi
26797
26798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26799 # Binary search between lo and hi bounds.
26800 while test "x$ac_lo" != "x$ac_hi"; do
26801 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26802 cat >conftest.$ac_ext <<_ACEOF
26803 /* confdefs.h. */
26804 _ACEOF
26805 cat confdefs.h >>conftest.$ac_ext
26806 cat >>conftest.$ac_ext <<_ACEOF
26807 /* end confdefs.h. */
26808 #include <stddef.h>
26809 int
26810 main ()
26811 {
26812 static int test_array @<:@1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)@:>@;
26813 test_array @<:@0@:>@ = 0
26814
26815 ;
26816 return 0;
26817 }
26818 _ACEOF
26819 rm -f conftest.$ac_objext
26820 if { (ac_try="$ac_compile"
26821 case "(($ac_try" in
26822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26823 *) ac_try_echo=$ac_try;;
26824 esac
26825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26826 $as_echo "$ac_try_echo") >&5
26827 (eval "$ac_compile") 2>conftest.er1
26828 ac_status=$?
26829 grep -v '^ *+' conftest.er1 >conftest.err
26830 rm -f conftest.er1
26831 cat conftest.err >&5
26832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26833 (exit $ac_status); } && {
26834 test -z "$ac_c_werror_flag" ||
26835 test ! -s conftest.err
26836 } && test -s conftest.$ac_objext; then
26837 ac_hi=$ac_mid
26838 else
26839 $as_echo "$as_me: failed program was:" >&5
26840 sed 's/^/| /' conftest.$ac_ext >&5
26841
26842 ac_lo=`expr '(' $ac_mid ')' + 1`
26843 fi
26844
26845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26846 done
26847 case $ac_lo in
26848 ?*) fits_in_uint=$ac_lo;;
26849 '') result=? ;;
26850 esac
26851 else
26852 cat >conftest.$ac_ext <<_ACEOF
26853 /* confdefs.h. */
26854 _ACEOF
26855 cat confdefs.h >>conftest.$ac_ext
26856 cat >>conftest.$ac_ext <<_ACEOF
26857 /* end confdefs.h. */
26858 #include <stddef.h>
26859 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
26860 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
26861 @%:@include <stdio.h>
26862 @%:@include <stdlib.h>
26863 int
26864 main ()
26865 {
26866
26867 FILE *f = fopen ("conftest.val", "w");
26868 if (! f)
26869 return 1;
26870 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
26871 {
26872 long int i = longval ();
26873 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
26874 return 1;
26875 fprintf (f, "%ld", i);
26876 }
26877 else
26878 {
26879 unsigned long int i = ulongval ();
26880 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
26881 return 1;
26882 fprintf (f, "%lu", i);
26883 }
26884 /* Do not output a trailing newline, as this causes \r\n confusion
26885 on some platforms. */
26886 return ferror (f) || fclose (f) != 0;
26887
26888 ;
26889 return 0;
26890 }
26891 _ACEOF
26892 rm -f conftest$ac_exeext
26893 if { (ac_try="$ac_link"
26894 case "(($ac_try" in
26895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26896 *) ac_try_echo=$ac_try;;
26897 esac
26898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26899 $as_echo "$ac_try_echo") >&5
26900 (eval "$ac_link") 2>&5
26901 ac_status=$?
26902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26904 { (case "(($ac_try" in
26905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26906 *) ac_try_echo=$ac_try;;
26907 esac
26908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26909 $as_echo "$ac_try_echo") >&5
26910 (eval "$ac_try") 2>&5
26911 ac_status=$?
26912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913 (exit $ac_status); }; }; then
26914 fits_in_uint=`cat conftest.val`
26915 else
26916 $as_echo "$as_me: program exited with status $ac_status" >&5
26917 $as_echo "$as_me: failed program was:" >&5
26918 sed 's/^/| /' conftest.$ac_ext >&5
26919
26920 ( exit $ac_status )
26921 result=?
26922 fi
26923 rm -rf conftest.dSYM
26924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26925 fi
26926 rm -f conftest.val
26927
26928 if test "$fits_in_uint" = 1; then
26929 cat >conftest.$ac_ext <<_ACEOF
26930 /* confdefs.h. */
26931 _ACEOF
26932 cat confdefs.h >>conftest.$ac_ext
26933 cat >>conftest.$ac_ext <<_ACEOF
26934 /* end confdefs.h. */
26935 #include <stddef.h>
26936 extern size_t foo;
26937 extern unsigned long foo;
26938
26939 int
26940 main ()
26941 {
26942
26943 ;
26944 return 0;
26945 }
26946 _ACEOF
26947 rm -f conftest.$ac_objext
26948 if { (ac_try="$ac_compile"
26949 case "(($ac_try" in
26950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26951 *) ac_try_echo=$ac_try;;
26952 esac
26953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26954 $as_echo "$ac_try_echo") >&5
26955 (eval "$ac_compile") 2>conftest.er1
26956 ac_status=$?
26957 grep -v '^ *+' conftest.er1 >conftest.err
26958 rm -f conftest.er1
26959 cat conftest.err >&5
26960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26961 (exit $ac_status); } && {
26962 test -z "$ac_c_werror_flag" ||
26963 test ! -s conftest.err
26964 } && test -s conftest.$ac_objext; then
26965 fits_in_uint=0
26966 else
26967 $as_echo "$as_me: failed program was:" >&5
26968 sed 's/^/| /' conftest.$ac_ext >&5
26969
26970
26971 fi
26972
26973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26974 fi
26975 if test -z "$result"; then
26976 if test "$fits_in_uint" = 1; then
26977 result="$res_hi$res_lo"U
26978 else
26979 result="$res_hi$res_lo"UL
26980 fi
26981 else
26982 result='~(size_t)0'
26983 fi
26984 fi
26985 { $as_echo "$as_me:$LINENO: result: $result" >&5
26986 $as_echo "$result" >&6; }
26987 if test "$result" != yes; then
26988
26989 cat >>confdefs.h <<_ACEOF
26990 @%:@define SIZE_MAX $result
26991 _ACEOF
26992
26993 fi
26994
26995
26996
26997
26998 for ac_header in stdint.h
26999 do
27000 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27002 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
27003 $as_echo_n "checking for $ac_header... " >&6; }
27004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27005 $as_echo_n "(cached) " >&6
27006 fi
27007 ac_res=`eval 'as_val=${'$as_ac_Header'}
27008 $as_echo "$as_val"'`
27009 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27010 $as_echo "$ac_res" >&6; }
27011 else
27012 # Is the header compilable?
27013 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
27014 $as_echo_n "checking $ac_header usability... " >&6; }
27015 cat >conftest.$ac_ext <<_ACEOF
27016 /* confdefs.h. */
27017 _ACEOF
27018 cat confdefs.h >>conftest.$ac_ext
27019 cat >>conftest.$ac_ext <<_ACEOF
27020 /* end confdefs.h. */
27021 $ac_includes_default
27022 @%:@include <$ac_header>
27023 _ACEOF
27024 rm -f conftest.$ac_objext
27025 if { (ac_try="$ac_compile"
27026 case "(($ac_try" in
27027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27028 *) ac_try_echo=$ac_try;;
27029 esac
27030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27031 $as_echo "$ac_try_echo") >&5
27032 (eval "$ac_compile") 2>conftest.er1
27033 ac_status=$?
27034 grep -v '^ *+' conftest.er1 >conftest.err
27035 rm -f conftest.er1
27036 cat conftest.err >&5
27037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27038 (exit $ac_status); } && {
27039 test -z "$ac_c_werror_flag" ||
27040 test ! -s conftest.err
27041 } && test -s conftest.$ac_objext; then
27042 ac_header_compiler=yes
27043 else
27044 $as_echo "$as_me: failed program was:" >&5
27045 sed 's/^/| /' conftest.$ac_ext >&5
27046
27047 ac_header_compiler=no
27048 fi
27049
27050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27051 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27052 $as_echo "$ac_header_compiler" >&6; }
27053
27054 # Is the header present?
27055 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
27056 $as_echo_n "checking $ac_header presence... " >&6; }
27057 cat >conftest.$ac_ext <<_ACEOF
27058 /* confdefs.h. */
27059 _ACEOF
27060 cat confdefs.h >>conftest.$ac_ext
27061 cat >>conftest.$ac_ext <<_ACEOF
27062 /* end confdefs.h. */
27063 @%:@include <$ac_header>
27064 _ACEOF
27065 if { (ac_try="$ac_cpp conftest.$ac_ext"
27066 case "(($ac_try" in
27067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27068 *) ac_try_echo=$ac_try;;
27069 esac
27070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27071 $as_echo "$ac_try_echo") >&5
27072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27073 ac_status=$?
27074 grep -v '^ *+' conftest.er1 >conftest.err
27075 rm -f conftest.er1
27076 cat conftest.err >&5
27077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27078 (exit $ac_status); } >/dev/null && {
27079 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27080 test ! -s conftest.err
27081 }; then
27082 ac_header_preproc=yes
27083 else
27084 $as_echo "$as_me: failed program was:" >&5
27085 sed 's/^/| /' conftest.$ac_ext >&5
27086
27087 ac_header_preproc=no
27088 fi
27089
27090 rm -f conftest.err conftest.$ac_ext
27091 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27092 $as_echo "$ac_header_preproc" >&6; }
27093
27094 # So? What about this header?
27095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27096 yes:no: )
27097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27098 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27099 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27100 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27101 ac_header_preproc=yes
27102 ;;
27103 no:yes:* )
27104 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27105 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27107 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27109 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27111 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27112 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27113 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27114 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27115 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27116
27117 ;;
27118 esac
27119 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
27120 $as_echo_n "checking for $ac_header... " >&6; }
27121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27122 $as_echo_n "(cached) " >&6
27123 else
27124 eval "$as_ac_Header=\$ac_header_preproc"
27125 fi
27126 ac_res=`eval 'as_val=${'$as_ac_Header'}
27127 $as_echo "$as_val"'`
27128 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27129 $as_echo "$ac_res" >&6; }
27130
27131 fi
27132 if test `eval 'as_val=${'$as_ac_Header'}
27133 $as_echo "$as_val"'` = yes; then
27134 cat >>confdefs.h <<_ACEOF
27135 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27136 _ACEOF
27137
27138 fi
27139
27140 done
27141
27142
27143
27144 if test "X$prefix" = "XNONE"; then
27145 acl_final_prefix="$ac_default_prefix"
27146 else
27147 acl_final_prefix="$prefix"
27148 fi
27149 if test "X$exec_prefix" = "XNONE"; then
27150 acl_final_exec_prefix='${prefix}'
27151 else
27152 acl_final_exec_prefix="$exec_prefix"
27153 fi
27154 acl_save_prefix="$prefix"
27155 prefix="$acl_final_prefix"
27156 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
27157 prefix="$acl_save_prefix"
27158
27159
27160 @%:@ Check whether --with-gnu-ld was given.
27161 if test "${with_gnu_ld+set}" = set; then
27162 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
27163 else
27164 with_gnu_ld=no
27165 fi
27166
27167 # Prepare PATH_SEPARATOR.
27168 # The user is always right.
27169 if test "${PATH_SEPARATOR+set}" != set; then
27170 echo "#! /bin/sh" >conf$$.sh
27171 echo "exit 0" >>conf$$.sh
27172 chmod +x conf$$.sh
27173 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27174 PATH_SEPARATOR=';'
27175 else
27176 PATH_SEPARATOR=:
27177 fi
27178 rm -f conf$$.sh
27179 fi
27180 ac_prog=ld
27181 if test "$GCC" = yes; then
27182 # Check if gcc -print-prog-name=ld gives a path.
27183 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
27184 $as_echo_n "checking for ld used by GCC... " >&6; }
27185 case $host in
27186 *-*-mingw*)
27187 # gcc leaves a trailing carriage return which upsets mingw
27188 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
27189 *)
27190 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
27191 esac
27192 case $ac_prog in
27193 # Accept absolute paths.
27194 [\\/]* | [A-Za-z]:[\\/]*)
27195 re_direlt='/[^/][^/]*/\.\./'
27196 # Canonicalize the path of ld
27197 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
27198 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
27199 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
27200 done
27201 test -z "$LD" && LD="$ac_prog"
27202 ;;
27203 "")
27204 # If it fails, then pretend we aren't using GCC.
27205 ac_prog=ld
27206 ;;
27207 *)
27208 # If it is relative, then search for the first ld in PATH.
27209 with_gnu_ld=unknown
27210 ;;
27211 esac
27212 elif test "$with_gnu_ld" = yes; then
27213 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
27214 $as_echo_n "checking for GNU ld... " >&6; }
27215 else
27216 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
27217 $as_echo_n "checking for non-GNU ld... " >&6; }
27218 fi
27219 if test "${acl_cv_path_LD+set}" = set; then
27220 $as_echo_n "(cached) " >&6
27221 else
27222 if test -z "$LD"; then
27223 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
27224 for ac_dir in $PATH; do
27225 test -z "$ac_dir" && ac_dir=.
27226 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
27227 acl_cv_path_LD="$ac_dir/$ac_prog"
27228 # Check to see if the program is GNU ld. I'd rather use --version,
27229 # but apparently some GNU ld's only accept -v.
27230 # Break only if it was the GNU/non-GNU ld that we prefer.
27231 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
27232 *GNU* | *'with BFD'*)
27233 test "$with_gnu_ld" != no && break ;;
27234 *)
27235 test "$with_gnu_ld" != yes && break ;;
27236 esac
27237 fi
27238 done
27239 IFS="$ac_save_ifs"
27240 else
27241 acl_cv_path_LD="$LD" # Let the user override the test with a path.
27242 fi
27243 fi
27244
27245 LD="$acl_cv_path_LD"
27246 if test -n "$LD"; then
27247 { $as_echo "$as_me:$LINENO: result: $LD" >&5
27248 $as_echo "$LD" >&6; }
27249 else
27250 { $as_echo "$as_me:$LINENO: result: no" >&5
27251 $as_echo "no" >&6; }
27252 fi
27253 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
27254 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
27255 { (exit 1); exit 1; }; }
27256 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
27257 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
27258 if test "${acl_cv_prog_gnu_ld+set}" = set; then
27259 $as_echo_n "(cached) " >&6
27260 else
27261 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
27262 case `$LD -v 2>&1 </dev/null` in
27263 *GNU* | *'with BFD'*)
27264 acl_cv_prog_gnu_ld=yes ;;
27265 *)
27266 acl_cv_prog_gnu_ld=no ;;
27267 esac
27268 fi
27269 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
27270 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
27271 with_gnu_ld=$acl_cv_prog_gnu_ld
27272
27273
27274
27275 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
27276 $as_echo_n "checking for shared library run path origin... " >&6; }
27277 if test "${acl_cv_rpath+set}" = set; then
27278 $as_echo_n "(cached) " >&6
27279 else
27280
27281 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
27282 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
27283 . ./conftest.sh
27284 rm -f ./conftest.sh
27285 acl_cv_rpath=done
27286
27287 fi
27288 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
27289 $as_echo "$acl_cv_rpath" >&6; }
27290 wl="$acl_cv_wl"
27291 libext="$acl_cv_libext"
27292 shlibext="$acl_cv_shlibext"
27293 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
27294 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
27295 hardcode_direct="$acl_cv_hardcode_direct"
27296 hardcode_minus_L="$acl_cv_hardcode_minus_L"
27297 @%:@ Check whether --enable-rpath was given.
27298 if test "${enable_rpath+set}" = set; then
27299 enableval=$enable_rpath; :
27300 else
27301 enable_rpath=yes
27302 fi
27303
27304
27305
27306
27307
27308
27309
27310
27311 use_additional=yes
27312
27313 acl_save_prefix="$prefix"
27314 prefix="$acl_final_prefix"
27315 acl_save_exec_prefix="$exec_prefix"
27316 exec_prefix="$acl_final_exec_prefix"
27317
27318 eval additional_includedir=\"$includedir\"
27319 eval additional_libdir=\"$libdir\"
27320
27321 exec_prefix="$acl_save_exec_prefix"
27322 prefix="$acl_save_prefix"
27323
27324
27325 @%:@ Check whether --with-libiconv-prefix was given.
27326 if test "${with_libiconv_prefix+set}" = set; then
27327 withval=$with_libiconv_prefix;
27328 if test "X$withval" = "Xno"; then
27329 use_additional=no
27330 else
27331 if test "X$withval" = "X"; then
27332
27333 acl_save_prefix="$prefix"
27334 prefix="$acl_final_prefix"
27335 acl_save_exec_prefix="$exec_prefix"
27336 exec_prefix="$acl_final_exec_prefix"
27337
27338 eval additional_includedir=\"$includedir\"
27339 eval additional_libdir=\"$libdir\"
27340
27341 exec_prefix="$acl_save_exec_prefix"
27342 prefix="$acl_save_prefix"
27343
27344 else
27345 additional_includedir="$withval/include"
27346 additional_libdir="$withval/lib"
27347 fi
27348 fi
27349
27350 fi
27351
27352 LIBICONV=
27353 LTLIBICONV=
27354 INCICONV=
27355 rpathdirs=
27356 ltrpathdirs=
27357 names_already_handled=
27358 names_next_round='iconv '
27359 while test -n "$names_next_round"; do
27360 names_this_round="$names_next_round"
27361 names_next_round=
27362 for name in $names_this_round; do
27363 already_handled=
27364 for n in $names_already_handled; do
27365 if test "$n" = "$name"; then
27366 already_handled=yes
27367 break
27368 fi
27369 done
27370 if test -z "$already_handled"; then
27371 names_already_handled="$names_already_handled $name"
27372 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
27373 eval value=\"\$HAVE_LIB$uppername\"
27374 if test -n "$value"; then
27375 if test "$value" = yes; then
27376 eval value=\"\$LIB$uppername\"
27377 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
27378 eval value=\"\$LTLIB$uppername\"
27379 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
27380 else
27381 :
27382 fi
27383 else
27384 found_dir=
27385 found_la=
27386 found_so=
27387 found_a=
27388 if test $use_additional = yes; then
27389 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
27390 found_dir="$additional_libdir"
27391 found_so="$additional_libdir/lib$name.$shlibext"
27392 if test -f "$additional_libdir/lib$name.la"; then
27393 found_la="$additional_libdir/lib$name.la"
27394 fi
27395 else
27396 if test -f "$additional_libdir/lib$name.$libext"; then
27397 found_dir="$additional_libdir"
27398 found_a="$additional_libdir/lib$name.$libext"
27399 if test -f "$additional_libdir/lib$name.la"; then
27400 found_la="$additional_libdir/lib$name.la"
27401 fi
27402 fi
27403 fi
27404 fi
27405 if test "X$found_dir" = "X"; then
27406 for x in $LDFLAGS $LTLIBICONV; do
27407
27408 acl_save_prefix="$prefix"
27409 prefix="$acl_final_prefix"
27410 acl_save_exec_prefix="$exec_prefix"
27411 exec_prefix="$acl_final_exec_prefix"
27412 eval x=\"$x\"
27413 exec_prefix="$acl_save_exec_prefix"
27414 prefix="$acl_save_prefix"
27415
27416 case "$x" in
27417 -L*)
27418 dir=`echo "X$x" | sed -e 's/^X-L//'`
27419 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
27420 found_dir="$dir"
27421 found_so="$dir/lib$name.$shlibext"
27422 if test -f "$dir/lib$name.la"; then
27423 found_la="$dir/lib$name.la"
27424 fi
27425 else
27426 if test -f "$dir/lib$name.$libext"; then
27427 found_dir="$dir"
27428 found_a="$dir/lib$name.$libext"
27429 if test -f "$dir/lib$name.la"; then
27430 found_la="$dir/lib$name.la"
27431 fi
27432 fi
27433 fi
27434 ;;
27435 esac
27436 if test "X$found_dir" != "X"; then
27437 break
27438 fi
27439 done
27440 fi
27441 if test "X$found_dir" != "X"; then
27442 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
27443 if test "X$found_so" != "X"; then
27444 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
27445 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
27446 else
27447 haveit=
27448 for x in $ltrpathdirs; do
27449 if test "X$x" = "X$found_dir"; then
27450 haveit=yes
27451 break
27452 fi
27453 done
27454 if test -z "$haveit"; then
27455 ltrpathdirs="$ltrpathdirs $found_dir"
27456 fi
27457 if test "$hardcode_direct" = yes; then
27458 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
27459 else
27460 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
27461 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
27462 haveit=
27463 for x in $rpathdirs; do
27464 if test "X$x" = "X$found_dir"; then
27465 haveit=yes
27466 break
27467 fi
27468 done
27469 if test -z "$haveit"; then
27470 rpathdirs="$rpathdirs $found_dir"
27471 fi
27472 else
27473 haveit=
27474 for x in $LDFLAGS $LIBICONV; do
27475
27476 acl_save_prefix="$prefix"
27477 prefix="$acl_final_prefix"
27478 acl_save_exec_prefix="$exec_prefix"
27479 exec_prefix="$acl_final_exec_prefix"
27480 eval x=\"$x\"
27481 exec_prefix="$acl_save_exec_prefix"
27482 prefix="$acl_save_prefix"
27483
27484 if test "X$x" = "X-L$found_dir"; then
27485 haveit=yes
27486 break
27487 fi
27488 done
27489 if test -z "$haveit"; then
27490 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
27491 fi
27492 if test "$hardcode_minus_L" != no; then
27493 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
27494 else
27495 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
27496 fi
27497 fi
27498 fi
27499 fi
27500 else
27501 if test "X$found_a" != "X"; then
27502 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
27503 else
27504 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
27505 fi
27506 fi
27507 additional_includedir=
27508 case "$found_dir" in
27509 */lib | */lib/)
27510 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
27511 additional_includedir="$basedir/include"
27512 ;;
27513 esac
27514 if test "X$additional_includedir" != "X"; then
27515 if test "X$additional_includedir" != "X/usr/include"; then
27516 haveit=
27517 if test "X$additional_includedir" = "X/usr/local/include"; then
27518 if test -n "$GCC"; then
27519 case $host_os in
27520 linux*) haveit=yes;;
27521 esac
27522 fi
27523 fi
27524 if test -z "$haveit"; then
27525 for x in $CPPFLAGS $INCICONV; do
27526
27527 acl_save_prefix="$prefix"
27528 prefix="$acl_final_prefix"
27529 acl_save_exec_prefix="$exec_prefix"
27530 exec_prefix="$acl_final_exec_prefix"
27531 eval x=\"$x\"
27532 exec_prefix="$acl_save_exec_prefix"
27533 prefix="$acl_save_prefix"
27534
27535 if test "X$x" = "X-I$additional_includedir"; then
27536 haveit=yes
27537 break
27538 fi
27539 done
27540 if test -z "$haveit"; then
27541 if test -d "$additional_includedir"; then
27542 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
27543 fi
27544 fi
27545 fi
27546 fi
27547 fi
27548 if test -n "$found_la"; then
27549 save_libdir="$libdir"
27550 case "$found_la" in
27551 */* | *\\*) . "$found_la" ;;
27552 *) . "./$found_la" ;;
27553 esac
27554 libdir="$save_libdir"
27555 for dep in $dependency_libs; do
27556 case "$dep" in
27557 -L*)
27558 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
27559 if test "X$additional_libdir" != "X/usr/lib"; then
27560 haveit=
27561 if test "X$additional_libdir" = "X/usr/local/lib"; then
27562 if test -n "$GCC"; then
27563 case $host_os in
27564 linux*) haveit=yes;;
27565 esac
27566 fi
27567 fi
27568 if test -z "$haveit"; then
27569 haveit=
27570 for x in $LDFLAGS $LIBICONV; do
27571
27572 acl_save_prefix="$prefix"
27573 prefix="$acl_final_prefix"
27574 acl_save_exec_prefix="$exec_prefix"
27575 exec_prefix="$acl_final_exec_prefix"
27576 eval x=\"$x\"
27577 exec_prefix="$acl_save_exec_prefix"
27578 prefix="$acl_save_prefix"
27579
27580 if test "X$x" = "X-L$additional_libdir"; then
27581 haveit=yes
27582 break
27583 fi
27584 done
27585 if test -z "$haveit"; then
27586 if test -d "$additional_libdir"; then
27587 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
27588 fi
27589 fi
27590 haveit=
27591 for x in $LDFLAGS $LTLIBICONV; do
27592
27593 acl_save_prefix="$prefix"
27594 prefix="$acl_final_prefix"
27595 acl_save_exec_prefix="$exec_prefix"
27596 exec_prefix="$acl_final_exec_prefix"
27597 eval x=\"$x\"
27598 exec_prefix="$acl_save_exec_prefix"
27599 prefix="$acl_save_prefix"
27600
27601 if test "X$x" = "X-L$additional_libdir"; then
27602 haveit=yes
27603 break
27604 fi
27605 done
27606 if test -z "$haveit"; then
27607 if test -d "$additional_libdir"; then
27608 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
27609 fi
27610 fi
27611 fi
27612 fi
27613 ;;
27614 -R*)
27615 dir=`echo "X$dep" | sed -e 's/^X-R//'`
27616 if test "$enable_rpath" != no; then
27617 haveit=
27618 for x in $rpathdirs; do
27619 if test "X$x" = "X$dir"; then
27620 haveit=yes
27621 break
27622 fi
27623 done
27624 if test -z "$haveit"; then
27625 rpathdirs="$rpathdirs $dir"
27626 fi
27627 haveit=
27628 for x in $ltrpathdirs; do
27629 if test "X$x" = "X$dir"; then
27630 haveit=yes
27631 break
27632 fi
27633 done
27634 if test -z "$haveit"; then
27635 ltrpathdirs="$ltrpathdirs $dir"
27636 fi
27637 fi
27638 ;;
27639 -l*)
27640 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
27641 ;;
27642 *.la)
27643 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
27644 ;;
27645 *)
27646 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
27647 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
27648 ;;
27649 esac
27650 done
27651 fi
27652 else
27653 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
27654 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
27655 fi
27656 fi
27657 fi
27658 done
27659 done
27660 if test "X$rpathdirs" != "X"; then
27661 if test -n "$hardcode_libdir_separator"; then
27662 alldirs=
27663 for found_dir in $rpathdirs; do
27664 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
27665 done
27666 acl_save_libdir="$libdir"
27667 libdir="$alldirs"
27668 eval flag=\"$hardcode_libdir_flag_spec\"
27669 libdir="$acl_save_libdir"
27670 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
27671 else
27672 for found_dir in $rpathdirs; do
27673 acl_save_libdir="$libdir"
27674 libdir="$found_dir"
27675 eval flag=\"$hardcode_libdir_flag_spec\"
27676 libdir="$acl_save_libdir"
27677 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
27678 done
27679 fi
27680 fi
27681 if test "X$ltrpathdirs" != "X"; then
27682 for found_dir in $ltrpathdirs; do
27683 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
27684 done
27685 fi
27686
27687
27688
27689
27690
27691
27692
27693
27694 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
27695 $as_echo_n "checking for ptrdiff_t... " >&6; }
27696 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
27697 $as_echo_n "(cached) " >&6
27698 else
27699 ac_cv_type_ptrdiff_t=no
27700 cat >conftest.$ac_ext <<_ACEOF
27701 /* confdefs.h. */
27702 _ACEOF
27703 cat confdefs.h >>conftest.$ac_ext
27704 cat >>conftest.$ac_ext <<_ACEOF
27705 /* end confdefs.h. */
27706 $ac_includes_default
27707 int
27708 main ()
27709 {
27710 if (sizeof (ptrdiff_t))
27711 return 0;
27712 ;
27713 return 0;
27714 }
27715 _ACEOF
27716 rm -f conftest.$ac_objext
27717 if { (ac_try="$ac_compile"
27718 case "(($ac_try" in
27719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27720 *) ac_try_echo=$ac_try;;
27721 esac
27722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27723 $as_echo "$ac_try_echo") >&5
27724 (eval "$ac_compile") 2>conftest.er1
27725 ac_status=$?
27726 grep -v '^ *+' conftest.er1 >conftest.err
27727 rm -f conftest.er1
27728 cat conftest.err >&5
27729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27730 (exit $ac_status); } && {
27731 test -z "$ac_c_werror_flag" ||
27732 test ! -s conftest.err
27733 } && test -s conftest.$ac_objext; then
27734 cat >conftest.$ac_ext <<_ACEOF
27735 /* confdefs.h. */
27736 _ACEOF
27737 cat confdefs.h >>conftest.$ac_ext
27738 cat >>conftest.$ac_ext <<_ACEOF
27739 /* end confdefs.h. */
27740 $ac_includes_default
27741 int
27742 main ()
27743 {
27744 if (sizeof ((ptrdiff_t)))
27745 return 0;
27746 ;
27747 return 0;
27748 }
27749 _ACEOF
27750 rm -f conftest.$ac_objext
27751 if { (ac_try="$ac_compile"
27752 case "(($ac_try" in
27753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27754 *) ac_try_echo=$ac_try;;
27755 esac
27756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27757 $as_echo "$ac_try_echo") >&5
27758 (eval "$ac_compile") 2>conftest.er1
27759 ac_status=$?
27760 grep -v '^ *+' conftest.er1 >conftest.err
27761 rm -f conftest.er1
27762 cat conftest.err >&5
27763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27764 (exit $ac_status); } && {
27765 test -z "$ac_c_werror_flag" ||
27766 test ! -s conftest.err
27767 } && test -s conftest.$ac_objext; then
27768 :
27769 else
27770 $as_echo "$as_me: failed program was:" >&5
27771 sed 's/^/| /' conftest.$ac_ext >&5
27772
27773 ac_cv_type_ptrdiff_t=yes
27774 fi
27775
27776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27777 else
27778 $as_echo "$as_me: failed program was:" >&5
27779 sed 's/^/| /' conftest.$ac_ext >&5
27780
27781
27782 fi
27783
27784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27785 fi
27786 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
27787 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
27788 if test $ac_cv_type_ptrdiff_t = yes; then
27789 :
27790 else
27791
27792 cat >>confdefs.h <<\_ACEOF
27793 @%:@define ptrdiff_t long
27794 _ACEOF
27795
27796
27797 fi
27798
27799
27800
27801
27802
27803
27804
27805
27806
27807
27808
27809 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
27810 stdlib.h string.h unistd.h sys/param.h
27811 do
27812 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27814 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
27815 $as_echo_n "checking for $ac_header... " >&6; }
27816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27817 $as_echo_n "(cached) " >&6
27818 fi
27819 ac_res=`eval 'as_val=${'$as_ac_Header'}
27820 $as_echo "$as_val"'`
27821 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27822 $as_echo "$ac_res" >&6; }
27823 else
27824 # Is the header compilable?
27825 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
27826 $as_echo_n "checking $ac_header usability... " >&6; }
27827 cat >conftest.$ac_ext <<_ACEOF
27828 /* confdefs.h. */
27829 _ACEOF
27830 cat confdefs.h >>conftest.$ac_ext
27831 cat >>conftest.$ac_ext <<_ACEOF
27832 /* end confdefs.h. */
27833 $ac_includes_default
27834 @%:@include <$ac_header>
27835 _ACEOF
27836 rm -f conftest.$ac_objext
27837 if { (ac_try="$ac_compile"
27838 case "(($ac_try" in
27839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27840 *) ac_try_echo=$ac_try;;
27841 esac
27842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27843 $as_echo "$ac_try_echo") >&5
27844 (eval "$ac_compile") 2>conftest.er1
27845 ac_status=$?
27846 grep -v '^ *+' conftest.er1 >conftest.err
27847 rm -f conftest.er1
27848 cat conftest.err >&5
27849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27850 (exit $ac_status); } && {
27851 test -z "$ac_c_werror_flag" ||
27852 test ! -s conftest.err
27853 } && test -s conftest.$ac_objext; then
27854 ac_header_compiler=yes
27855 else
27856 $as_echo "$as_me: failed program was:" >&5
27857 sed 's/^/| /' conftest.$ac_ext >&5
27858
27859 ac_header_compiler=no
27860 fi
27861
27862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27863 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27864 $as_echo "$ac_header_compiler" >&6; }
27865
27866 # Is the header present?
27867 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
27868 $as_echo_n "checking $ac_header presence... " >&6; }
27869 cat >conftest.$ac_ext <<_ACEOF
27870 /* confdefs.h. */
27871 _ACEOF
27872 cat confdefs.h >>conftest.$ac_ext
27873 cat >>conftest.$ac_ext <<_ACEOF
27874 /* end confdefs.h. */
27875 @%:@include <$ac_header>
27876 _ACEOF
27877 if { (ac_try="$ac_cpp conftest.$ac_ext"
27878 case "(($ac_try" in
27879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27880 *) ac_try_echo=$ac_try;;
27881 esac
27882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27883 $as_echo "$ac_try_echo") >&5
27884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27885 ac_status=$?
27886 grep -v '^ *+' conftest.er1 >conftest.err
27887 rm -f conftest.er1
27888 cat conftest.err >&5
27889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27890 (exit $ac_status); } >/dev/null && {
27891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27892 test ! -s conftest.err
27893 }; then
27894 ac_header_preproc=yes
27895 else
27896 $as_echo "$as_me: failed program was:" >&5
27897 sed 's/^/| /' conftest.$ac_ext >&5
27898
27899 ac_header_preproc=no
27900 fi
27901
27902 rm -f conftest.err conftest.$ac_ext
27903 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27904 $as_echo "$ac_header_preproc" >&6; }
27905
27906 # So? What about this header?
27907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27908 yes:no: )
27909 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27910 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27911 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27912 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27913 ac_header_preproc=yes
27914 ;;
27915 no:yes:* )
27916 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27917 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27918 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27919 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27920 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27921 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27922 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27923 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27924 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27925 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27926 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27927 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27928
27929 ;;
27930 esac
27931 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
27932 $as_echo_n "checking for $ac_header... " >&6; }
27933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27934 $as_echo_n "(cached) " >&6
27935 else
27936 eval "$as_ac_Header=\$ac_header_preproc"
27937 fi
27938 ac_res=`eval 'as_val=${'$as_ac_Header'}
27939 $as_echo "$as_val"'`
27940 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27941 $as_echo "$ac_res" >&6; }
27942
27943 fi
27944 if test `eval 'as_val=${'$as_ac_Header'}
27945 $as_echo "$as_val"'` = yes; then
27946 cat >>confdefs.h <<_ACEOF
27947 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27948 _ACEOF
27949
27950 fi
27951
27952 done
27953
27954
27955
27956
27957
27958
27959
27960
27961
27962
27963
27964
27965
27966
27967
27968
27969
27970
27971
27972
27973
27974
27975
27976
27977 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
27978 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
27979 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
27980 __fsetlocking
27981 do
27982 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27983 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
27984 $as_echo_n "checking for $ac_func... " >&6; }
27985 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27986 $as_echo_n "(cached) " >&6
27987 else
27988 cat >conftest.$ac_ext <<_ACEOF
27989 /* confdefs.h. */
27990 _ACEOF
27991 cat confdefs.h >>conftest.$ac_ext
27992 cat >>conftest.$ac_ext <<_ACEOF
27993 /* end confdefs.h. */
27994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27996 #define $ac_func innocuous_$ac_func
27997
27998 /* System header to define __stub macros and hopefully few prototypes,
27999 which can conflict with char $ac_func (); below.
28000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28001 <limits.h> exists even on freestanding compilers. */
28002
28003 #ifdef __STDC__
28004 # include <limits.h>
28005 #else
28006 # include <assert.h>
28007 #endif
28008
28009 #undef $ac_func
28010
28011 /* Override any GCC internal prototype to avoid an error.
28012 Use char because int might match the return type of a GCC
28013 builtin and then its argument prototype would still apply. */
28014 #ifdef __cplusplus
28015 extern "C"
28016 #endif
28017 char $ac_func ();
28018 /* The GNU C library defines this for functions which it implements
28019 to always fail with ENOSYS. Some functions are actually named
28020 something starting with __ and the normal name is an alias. */
28021 #if defined __stub_$ac_func || defined __stub___$ac_func
28022 choke me
28023 #endif
28024
28025 int
28026 main ()
28027 {
28028 return $ac_func ();
28029 ;
28030 return 0;
28031 }
28032 _ACEOF
28033 rm -f conftest.$ac_objext conftest$ac_exeext
28034 if { (ac_try="$ac_link"
28035 case "(($ac_try" in
28036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28037 *) ac_try_echo=$ac_try;;
28038 esac
28039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28040 $as_echo "$ac_try_echo") >&5
28041 (eval "$ac_link") 2>conftest.er1
28042 ac_status=$?
28043 grep -v '^ *+' conftest.er1 >conftest.err
28044 rm -f conftest.er1
28045 cat conftest.err >&5
28046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28047 (exit $ac_status); } && {
28048 test -z "$ac_c_werror_flag" ||
28049 test ! -s conftest.err
28050 } && test -s conftest$ac_exeext && {
28051 test "$cross_compiling" = yes ||
28052 $as_test_x conftest$ac_exeext
28053 }; then
28054 eval "$as_ac_var=yes"
28055 else
28056 $as_echo "$as_me: failed program was:" >&5
28057 sed 's/^/| /' conftest.$ac_ext >&5
28058
28059 eval "$as_ac_var=no"
28060 fi
28061
28062 rm -rf conftest.dSYM
28063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28064 conftest$ac_exeext conftest.$ac_ext
28065 fi
28066 ac_res=`eval 'as_val=${'$as_ac_var'}
28067 $as_echo "$as_val"'`
28068 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28069 $as_echo "$ac_res" >&6; }
28070 if test `eval 'as_val=${'$as_ac_var'}
28071 $as_echo "$as_val"'` = yes; then
28072 cat >>confdefs.h <<_ACEOF
28073 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28074 _ACEOF
28075
28076 fi
28077 done
28078
28079
28080
28081 { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
28082 $as_echo_n "checking whether _snprintf is declared... " >&6; }
28083 if test "${ac_cv_have_decl__snprintf+set}" = set; then
28084 $as_echo_n "(cached) " >&6
28085 else
28086 cat >conftest.$ac_ext <<_ACEOF
28087 /* confdefs.h. */
28088 _ACEOF
28089 cat confdefs.h >>conftest.$ac_ext
28090 cat >>conftest.$ac_ext <<_ACEOF
28091 /* end confdefs.h. */
28092 #include <stdio.h>
28093 int
28094 main ()
28095 {
28096
28097 #ifndef _snprintf
28098 char *p = (char *) _snprintf;
28099 #endif
28100
28101 ;
28102 return 0;
28103 }
28104 _ACEOF
28105 rm -f conftest.$ac_objext
28106 if { (ac_try="$ac_compile"
28107 case "(($ac_try" in
28108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28109 *) ac_try_echo=$ac_try;;
28110 esac
28111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28112 $as_echo "$ac_try_echo") >&5
28113 (eval "$ac_compile") 2>conftest.er1
28114 ac_status=$?
28115 grep -v '^ *+' conftest.er1 >conftest.err
28116 rm -f conftest.er1
28117 cat conftest.err >&5
28118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28119 (exit $ac_status); } && {
28120 test -z "$ac_c_werror_flag" ||
28121 test ! -s conftest.err
28122 } && test -s conftest.$ac_objext; then
28123 ac_cv_have_decl__snprintf=yes
28124 else
28125 $as_echo "$as_me: failed program was:" >&5
28126 sed 's/^/| /' conftest.$ac_ext >&5
28127
28128 ac_cv_have_decl__snprintf=no
28129 fi
28130
28131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28132 fi
28133 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
28134 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
28135 if test $ac_cv_have_decl__snprintf = yes; then
28136 gt_value=1
28137 else
28138 gt_value=0
28139 fi
28140
28141 cat >>confdefs.h <<_ACEOF
28142 @%:@define HAVE_DECL__SNPRINTF $gt_value
28143 _ACEOF
28144
28145
28146
28147 { $as_echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
28148 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
28149 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
28150 $as_echo_n "(cached) " >&6
28151 else
28152 cat >conftest.$ac_ext <<_ACEOF
28153 /* confdefs.h. */
28154 _ACEOF
28155 cat confdefs.h >>conftest.$ac_ext
28156 cat >>conftest.$ac_ext <<_ACEOF
28157 /* end confdefs.h. */
28158 #include <stdio.h>
28159 int
28160 main ()
28161 {
28162
28163 #ifndef _snwprintf
28164 char *p = (char *) _snwprintf;
28165 #endif
28166
28167 ;
28168 return 0;
28169 }
28170 _ACEOF
28171 rm -f conftest.$ac_objext
28172 if { (ac_try="$ac_compile"
28173 case "(($ac_try" in
28174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28175 *) ac_try_echo=$ac_try;;
28176 esac
28177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28178 $as_echo "$ac_try_echo") >&5
28179 (eval "$ac_compile") 2>conftest.er1
28180 ac_status=$?
28181 grep -v '^ *+' conftest.er1 >conftest.err
28182 rm -f conftest.er1
28183 cat conftest.err >&5
28184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28185 (exit $ac_status); } && {
28186 test -z "$ac_c_werror_flag" ||
28187 test ! -s conftest.err
28188 } && test -s conftest.$ac_objext; then
28189 ac_cv_have_decl__snwprintf=yes
28190 else
28191 $as_echo "$as_me: failed program was:" >&5
28192 sed 's/^/| /' conftest.$ac_ext >&5
28193
28194 ac_cv_have_decl__snwprintf=no
28195 fi
28196
28197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28198 fi
28199 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
28200 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
28201 if test $ac_cv_have_decl__snwprintf = yes; then
28202 gt_value=1
28203 else
28204 gt_value=0
28205 fi
28206
28207 cat >>confdefs.h <<_ACEOF
28208 @%:@define HAVE_DECL__SNWPRINTF $gt_value
28209 _ACEOF
28210
28211
28212
28213
28214 { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
28215 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
28216 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
28217 $as_echo_n "(cached) " >&6
28218 else
28219 cat >conftest.$ac_ext <<_ACEOF
28220 /* confdefs.h. */
28221 _ACEOF
28222 cat confdefs.h >>conftest.$ac_ext
28223 cat >>conftest.$ac_ext <<_ACEOF
28224 /* end confdefs.h. */
28225 #include <stdio.h>
28226 int
28227 main ()
28228 {
28229
28230 #ifndef feof_unlocked
28231 char *p = (char *) feof_unlocked;
28232 #endif
28233
28234 ;
28235 return 0;
28236 }
28237 _ACEOF
28238 rm -f conftest.$ac_objext
28239 if { (ac_try="$ac_compile"
28240 case "(($ac_try" in
28241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28242 *) ac_try_echo=$ac_try;;
28243 esac
28244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28245 $as_echo "$ac_try_echo") >&5
28246 (eval "$ac_compile") 2>conftest.er1
28247 ac_status=$?
28248 grep -v '^ *+' conftest.er1 >conftest.err
28249 rm -f conftest.er1
28250 cat conftest.err >&5
28251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28252 (exit $ac_status); } && {
28253 test -z "$ac_c_werror_flag" ||
28254 test ! -s conftest.err
28255 } && test -s conftest.$ac_objext; then
28256 ac_cv_have_decl_feof_unlocked=yes
28257 else
28258 $as_echo "$as_me: failed program was:" >&5
28259 sed 's/^/| /' conftest.$ac_ext >&5
28260
28261 ac_cv_have_decl_feof_unlocked=no
28262 fi
28263
28264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28265 fi
28266 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
28267 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
28268 if test $ac_cv_have_decl_feof_unlocked = yes; then
28269 gt_value=1
28270 else
28271 gt_value=0
28272 fi
28273
28274 cat >>confdefs.h <<_ACEOF
28275 @%:@define HAVE_DECL_FEOF_UNLOCKED $gt_value
28276 _ACEOF
28277
28278
28279
28280 { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
28281 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
28282 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
28283 $as_echo_n "(cached) " >&6
28284 else
28285 cat >conftest.$ac_ext <<_ACEOF
28286 /* confdefs.h. */
28287 _ACEOF
28288 cat confdefs.h >>conftest.$ac_ext
28289 cat >>conftest.$ac_ext <<_ACEOF
28290 /* end confdefs.h. */
28291 #include <stdio.h>
28292 int
28293 main ()
28294 {
28295
28296 #ifndef fgets_unlocked
28297 char *p = (char *) fgets_unlocked;
28298 #endif
28299
28300 ;
28301 return 0;
28302 }
28303 _ACEOF
28304 rm -f conftest.$ac_objext
28305 if { (ac_try="$ac_compile"
28306 case "(($ac_try" in
28307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28308 *) ac_try_echo=$ac_try;;
28309 esac
28310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28311 $as_echo "$ac_try_echo") >&5
28312 (eval "$ac_compile") 2>conftest.er1
28313 ac_status=$?
28314 grep -v '^ *+' conftest.er1 >conftest.err
28315 rm -f conftest.er1
28316 cat conftest.err >&5
28317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28318 (exit $ac_status); } && {
28319 test -z "$ac_c_werror_flag" ||
28320 test ! -s conftest.err
28321 } && test -s conftest.$ac_objext; then
28322 ac_cv_have_decl_fgets_unlocked=yes
28323 else
28324 $as_echo "$as_me: failed program was:" >&5
28325 sed 's/^/| /' conftest.$ac_ext >&5
28326
28327 ac_cv_have_decl_fgets_unlocked=no
28328 fi
28329
28330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28331 fi
28332 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
28333 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
28334 if test $ac_cv_have_decl_fgets_unlocked = yes; then
28335 gt_value=1
28336 else
28337 gt_value=0
28338 fi
28339
28340 cat >>confdefs.h <<_ACEOF
28341 @%:@define HAVE_DECL_FGETS_UNLOCKED $gt_value
28342 _ACEOF
28343
28344
28345
28346 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
28347 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
28348 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
28349 $as_echo_n "(cached) " >&6
28350 else
28351 cat >conftest.$ac_ext <<_ACEOF
28352 /* confdefs.h. */
28353 _ACEOF
28354 cat confdefs.h >>conftest.$ac_ext
28355 cat >>conftest.$ac_ext <<_ACEOF
28356 /* end confdefs.h. */
28357 #include <stdio.h>
28358 int
28359 main ()
28360 {
28361
28362 #ifndef getc_unlocked
28363 char *p = (char *) getc_unlocked;
28364 #endif
28365
28366 ;
28367 return 0;
28368 }
28369 _ACEOF
28370 rm -f conftest.$ac_objext
28371 if { (ac_try="$ac_compile"
28372 case "(($ac_try" in
28373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28374 *) ac_try_echo=$ac_try;;
28375 esac
28376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28377 $as_echo "$ac_try_echo") >&5
28378 (eval "$ac_compile") 2>conftest.er1
28379 ac_status=$?
28380 grep -v '^ *+' conftest.er1 >conftest.err
28381 rm -f conftest.er1
28382 cat conftest.err >&5
28383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28384 (exit $ac_status); } && {
28385 test -z "$ac_c_werror_flag" ||
28386 test ! -s conftest.err
28387 } && test -s conftest.$ac_objext; then
28388 ac_cv_have_decl_getc_unlocked=yes
28389 else
28390 $as_echo "$as_me: failed program was:" >&5
28391 sed 's/^/| /' conftest.$ac_ext >&5
28392
28393 ac_cv_have_decl_getc_unlocked=no
28394 fi
28395
28396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28397 fi
28398 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
28399 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
28400 if test $ac_cv_have_decl_getc_unlocked = yes; then
28401 gt_value=1
28402 else
28403 gt_value=0
28404 fi
28405
28406 cat >>confdefs.h <<_ACEOF
28407 @%:@define HAVE_DECL_GETC_UNLOCKED $gt_value
28408 _ACEOF
28409
28410
28411
28412 case $gt_cv_func_printf_posix in
28413 *yes) HAVE_POSIX_PRINTF=1 ;;
28414 *) HAVE_POSIX_PRINTF=0 ;;
28415 esac
28416
28417 if test "$ac_cv_func_asprintf" = yes; then
28418 HAVE_ASPRINTF=1
28419 else
28420 HAVE_ASPRINTF=0
28421 fi
28422
28423 if test "$ac_cv_func_snprintf" = yes; then
28424 HAVE_SNPRINTF=1
28425 else
28426 HAVE_SNPRINTF=0
28427 fi
28428
28429 if test "$ac_cv_func_wprintf" = yes; then
28430 HAVE_WPRINTF=1
28431 else
28432 HAVE_WPRINTF=0
28433 fi
28434
28435
28436
28437
28438
28439
28440
28441 am_save_CPPFLAGS="$CPPFLAGS"
28442
28443 for element in $INCICONV; do
28444 haveit=
28445 for x in $CPPFLAGS; do
28446
28447 acl_save_prefix="$prefix"
28448 prefix="$acl_final_prefix"
28449 acl_save_exec_prefix="$exec_prefix"
28450 exec_prefix="$acl_final_exec_prefix"
28451 eval x=\"$x\"
28452 exec_prefix="$acl_save_exec_prefix"
28453 prefix="$acl_save_prefix"
28454
28455 if test "X$x" = "X$element"; then
28456 haveit=yes
28457 break
28458 fi
28459 done
28460 if test -z "$haveit"; then
28461 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
28462 fi
28463 done
28464
28465
28466 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
28467 $as_echo_n "checking for iconv... " >&6; }
28468 if test "${am_cv_func_iconv+set}" = set; then
28469 $as_echo_n "(cached) " >&6
28470 else
28471
28472 am_cv_func_iconv="no, consider installing GNU libiconv"
28473 am_cv_lib_iconv=no
28474 cat >conftest.$ac_ext <<_ACEOF
28475 /* confdefs.h. */
28476 _ACEOF
28477 cat confdefs.h >>conftest.$ac_ext
28478 cat >>conftest.$ac_ext <<_ACEOF
28479 /* end confdefs.h. */
28480 #include <stdlib.h>
28481 #include <iconv.h>
28482 int
28483 main ()
28484 {
28485 iconv_t cd = iconv_open("","");
28486 iconv(cd,NULL,NULL,NULL,NULL);
28487 iconv_close(cd);
28488 ;
28489 return 0;
28490 }
28491 _ACEOF
28492 rm -f conftest.$ac_objext conftest$ac_exeext
28493 if { (ac_try="$ac_link"
28494 case "(($ac_try" in
28495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28496 *) ac_try_echo=$ac_try;;
28497 esac
28498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28499 $as_echo "$ac_try_echo") >&5
28500 (eval "$ac_link") 2>conftest.er1
28501 ac_status=$?
28502 grep -v '^ *+' conftest.er1 >conftest.err
28503 rm -f conftest.er1
28504 cat conftest.err >&5
28505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28506 (exit $ac_status); } && {
28507 test -z "$ac_c_werror_flag" ||
28508 test ! -s conftest.err
28509 } && test -s conftest$ac_exeext && {
28510 test "$cross_compiling" = yes ||
28511 $as_test_x conftest$ac_exeext
28512 }; then
28513 am_cv_func_iconv=yes
28514 else
28515 $as_echo "$as_me: failed program was:" >&5
28516 sed 's/^/| /' conftest.$ac_ext >&5
28517
28518
28519 fi
28520
28521 rm -rf conftest.dSYM
28522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28523 conftest$ac_exeext conftest.$ac_ext
28524 if test "$am_cv_func_iconv" != yes; then
28525 am_save_LIBS="$LIBS"
28526 LIBS="$LIBS $LIBICONV"
28527 cat >conftest.$ac_ext <<_ACEOF
28528 /* confdefs.h. */
28529 _ACEOF
28530 cat confdefs.h >>conftest.$ac_ext
28531 cat >>conftest.$ac_ext <<_ACEOF
28532 /* end confdefs.h. */
28533 #include <stdlib.h>
28534 #include <iconv.h>
28535 int
28536 main ()
28537 {
28538 iconv_t cd = iconv_open("","");
28539 iconv(cd,NULL,NULL,NULL,NULL);
28540 iconv_close(cd);
28541 ;
28542 return 0;
28543 }
28544 _ACEOF
28545 rm -f conftest.$ac_objext conftest$ac_exeext
28546 if { (ac_try="$ac_link"
28547 case "(($ac_try" in
28548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28549 *) ac_try_echo=$ac_try;;
28550 esac
28551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28552 $as_echo "$ac_try_echo") >&5
28553 (eval "$ac_link") 2>conftest.er1
28554 ac_status=$?
28555 grep -v '^ *+' conftest.er1 >conftest.err
28556 rm -f conftest.er1
28557 cat conftest.err >&5
28558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28559 (exit $ac_status); } && {
28560 test -z "$ac_c_werror_flag" ||
28561 test ! -s conftest.err
28562 } && test -s conftest$ac_exeext && {
28563 test "$cross_compiling" = yes ||
28564 $as_test_x conftest$ac_exeext
28565 }; then
28566 am_cv_lib_iconv=yes
28567 am_cv_func_iconv=yes
28568 else
28569 $as_echo "$as_me: failed program was:" >&5
28570 sed 's/^/| /' conftest.$ac_ext >&5
28571
28572
28573 fi
28574
28575 rm -rf conftest.dSYM
28576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28577 conftest$ac_exeext conftest.$ac_ext
28578 LIBS="$am_save_LIBS"
28579 fi
28580
28581 fi
28582 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
28583 $as_echo "$am_cv_func_iconv" >&6; }
28584 if test "$am_cv_func_iconv" = yes; then
28585
28586 cat >>confdefs.h <<\_ACEOF
28587 @%:@define HAVE_ICONV 1
28588 _ACEOF
28589
28590 fi
28591 if test "$am_cv_lib_iconv" = yes; then
28592 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
28593 $as_echo_n "checking how to link with libiconv... " >&6; }
28594 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
28595 $as_echo "$LIBICONV" >&6; }
28596 else
28597 CPPFLAGS="$am_save_CPPFLAGS"
28598 LIBICONV=
28599 LTLIBICONV=
28600 fi
28601
28602
28603
28604 if test "$am_cv_func_iconv" = yes; then
28605 { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
28606 $as_echo_n "checking for iconv declaration... " >&6; }
28607 if test "${am_cv_proto_iconv+set}" = set; then
28608 $as_echo_n "(cached) " >&6
28609 else
28610
28611 cat >conftest.$ac_ext <<_ACEOF
28612 /* confdefs.h. */
28613 _ACEOF
28614 cat confdefs.h >>conftest.$ac_ext
28615 cat >>conftest.$ac_ext <<_ACEOF
28616 /* end confdefs.h. */
28617
28618 #include <stdlib.h>
28619 #include <iconv.h>
28620 extern
28621 #ifdef __cplusplus
28622 "C"
28623 #endif
28624 #if defined(__STDC__) || defined(__cplusplus)
28625 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
28626 #else
28627 size_t iconv();
28628 #endif
28629
28630 int
28631 main ()
28632 {
28633
28634 ;
28635 return 0;
28636 }
28637 _ACEOF
28638 rm -f conftest.$ac_objext
28639 if { (ac_try="$ac_compile"
28640 case "(($ac_try" in
28641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28642 *) ac_try_echo=$ac_try;;
28643 esac
28644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28645 $as_echo "$ac_try_echo") >&5
28646 (eval "$ac_compile") 2>conftest.er1
28647 ac_status=$?
28648 grep -v '^ *+' conftest.er1 >conftest.err
28649 rm -f conftest.er1
28650 cat conftest.err >&5
28651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28652 (exit $ac_status); } && {
28653 test -z "$ac_c_werror_flag" ||
28654 test ! -s conftest.err
28655 } && test -s conftest.$ac_objext; then
28656 am_cv_proto_iconv_arg1=""
28657 else
28658 $as_echo "$as_me: failed program was:" >&5
28659 sed 's/^/| /' conftest.$ac_ext >&5
28660
28661 am_cv_proto_iconv_arg1="const"
28662 fi
28663
28664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28665 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);"
28666 fi
28667
28668 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
28669 { $as_echo "$as_me:$LINENO: result: ${ac_t:-
28670 }$am_cv_proto_iconv" >&5
28671 $as_echo "${ac_t:-
28672 }$am_cv_proto_iconv" >&6; }
28673
28674 cat >>confdefs.h <<_ACEOF
28675 @%:@define ICONV_CONST $am_cv_proto_iconv_arg1
28676 _ACEOF
28677
28678 fi
28679
28680
28681 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
28682 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
28683 if test "${am_cv_langinfo_codeset+set}" = set; then
28684 $as_echo_n "(cached) " >&6
28685 else
28686 cat >conftest.$ac_ext <<_ACEOF
28687 /* confdefs.h. */
28688 _ACEOF
28689 cat confdefs.h >>conftest.$ac_ext
28690 cat >>conftest.$ac_ext <<_ACEOF
28691 /* end confdefs.h. */
28692 #include <langinfo.h>
28693 int
28694 main ()
28695 {
28696 char* cs = nl_langinfo(CODESET);
28697 ;
28698 return 0;
28699 }
28700 _ACEOF
28701 rm -f conftest.$ac_objext conftest$ac_exeext
28702 if { (ac_try="$ac_link"
28703 case "(($ac_try" in
28704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28705 *) ac_try_echo=$ac_try;;
28706 esac
28707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28708 $as_echo "$ac_try_echo") >&5
28709 (eval "$ac_link") 2>conftest.er1
28710 ac_status=$?
28711 grep -v '^ *+' conftest.er1 >conftest.err
28712 rm -f conftest.er1
28713 cat conftest.err >&5
28714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28715 (exit $ac_status); } && {
28716 test -z "$ac_c_werror_flag" ||
28717 test ! -s conftest.err
28718 } && test -s conftest$ac_exeext && {
28719 test "$cross_compiling" = yes ||
28720 $as_test_x conftest$ac_exeext
28721 }; then
28722 am_cv_langinfo_codeset=yes
28723 else
28724 $as_echo "$as_me: failed program was:" >&5
28725 sed 's/^/| /' conftest.$ac_ext >&5
28726
28727 am_cv_langinfo_codeset=no
28728 fi
28729
28730 rm -rf conftest.dSYM
28731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28732 conftest$ac_exeext conftest.$ac_ext
28733
28734 fi
28735 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
28736 $as_echo "$am_cv_langinfo_codeset" >&6; }
28737 if test $am_cv_langinfo_codeset = yes; then
28738
28739 cat >>confdefs.h <<\_ACEOF
28740 @%:@define HAVE_LANGINFO_CODESET 1
28741 _ACEOF
28742
28743 fi
28744
28745 if test $ac_cv_header_locale_h = yes; then
28746
28747 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
28748 $as_echo_n "checking for LC_MESSAGES... " >&6; }
28749 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
28750 $as_echo_n "(cached) " >&6
28751 else
28752 cat >conftest.$ac_ext <<_ACEOF
28753 /* confdefs.h. */
28754 _ACEOF
28755 cat confdefs.h >>conftest.$ac_ext
28756 cat >>conftest.$ac_ext <<_ACEOF
28757 /* end confdefs.h. */
28758 #include <locale.h>
28759 int
28760 main ()
28761 {
28762 return LC_MESSAGES
28763 ;
28764 return 0;
28765 }
28766 _ACEOF
28767 rm -f conftest.$ac_objext conftest$ac_exeext
28768 if { (ac_try="$ac_link"
28769 case "(($ac_try" in
28770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28771 *) ac_try_echo=$ac_try;;
28772 esac
28773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28774 $as_echo "$ac_try_echo") >&5
28775 (eval "$ac_link") 2>conftest.er1
28776 ac_status=$?
28777 grep -v '^ *+' conftest.er1 >conftest.err
28778 rm -f conftest.er1
28779 cat conftest.err >&5
28780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28781 (exit $ac_status); } && {
28782 test -z "$ac_c_werror_flag" ||
28783 test ! -s conftest.err
28784 } && test -s conftest$ac_exeext && {
28785 test "$cross_compiling" = yes ||
28786 $as_test_x conftest$ac_exeext
28787 }; then
28788 am_cv_val_LC_MESSAGES=yes
28789 else
28790 $as_echo "$as_me: failed program was:" >&5
28791 sed 's/^/| /' conftest.$ac_ext >&5
28792
28793 am_cv_val_LC_MESSAGES=no
28794 fi
28795
28796 rm -rf conftest.dSYM
28797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28798 conftest$ac_exeext conftest.$ac_ext
28799 fi
28800 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
28801 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
28802 if test $am_cv_val_LC_MESSAGES = yes; then
28803
28804 cat >>confdefs.h <<\_ACEOF
28805 @%:@define HAVE_LC_MESSAGES 1
28806 _ACEOF
28807
28808 fi
28809
28810 fi
28811
28812 for ac_prog in bison
28813 do
28814 # Extract the first word of "$ac_prog", so it can be a program name with args.
28815 set dummy $ac_prog; ac_word=$2
28816 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28817 $as_echo_n "checking for $ac_word... " >&6; }
28818 if test "${ac_cv_prog_INTLBISON+set}" = set; then
28819 $as_echo_n "(cached) " >&6
28820 else
28821 if test -n "$INTLBISON"; then
28822 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
28823 else
28824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28825 for as_dir in $PATH
28826 do
28827 IFS=$as_save_IFS
28828 test -z "$as_dir" && as_dir=.
28829 for ac_exec_ext in '' $ac_executable_extensions; do
28830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28831 ac_cv_prog_INTLBISON="$ac_prog"
28832 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28833 break 2
28834 fi
28835 done
28836 done
28837 IFS=$as_save_IFS
28838
28839 fi
28840 fi
28841 INTLBISON=$ac_cv_prog_INTLBISON
28842 if test -n "$INTLBISON"; then
28843 { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
28844 $as_echo "$INTLBISON" >&6; }
28845 else
28846 { $as_echo "$as_me:$LINENO: result: no" >&5
28847 $as_echo "no" >&6; }
28848 fi
28849
28850
28851 test -n "$INTLBISON" && break
28852 done
28853
28854 if test -z "$INTLBISON"; then
28855 ac_verc_fail=yes
28856 else
28857 { $as_echo "$as_me:$LINENO: checking version of bison" >&5
28858 $as_echo_n "checking version of bison... " >&6; }
28859 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
28860 case $ac_prog_version in
28861 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
28862 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
28863 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
28864 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
28865 esac
28866 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
28867 $as_echo "$ac_prog_version" >&6; }
28868 fi
28869 if test $ac_verc_fail = yes; then
28870 INTLBISON=:
28871 fi
28872
28873
28874
28875
28876
28877
28878
28879
28880
28881
28882
28883
28884
28885
28886
28887
28888 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
28889 $as_echo_n "checking whether NLS is requested... " >&6; }
28890 @%:@ Check whether --enable-nls was given.
28891 if test "${enable_nls+set}" = set; then
28892 enableval=$enable_nls; USE_NLS=$enableval
28893 else
28894 USE_NLS=yes
28895 fi
28896
28897 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
28898 $as_echo "$USE_NLS" >&6; }
28899
28900
28901
28902
28903 BUILD_INCLUDED_LIBINTL=no
28904 USE_INCLUDED_LIBINTL=no
28905
28906 LIBINTL=
28907 LTLIBINTL=
28908 POSUB=
28909
28910 if test "$USE_NLS" = "yes"; then
28911 gt_use_preinstalled_gnugettext=no
28912
28913 { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
28914 $as_echo_n "checking whether included gettext is requested... " >&6; }
28915
28916 @%:@ Check whether --with-included-gettext was given.
28917 if test "${with_included_gettext+set}" = set; then
28918 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
28919 else
28920 nls_cv_force_use_gnu_gettext=no
28921 fi
28922
28923 { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
28924 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
28925
28926 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
28927 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
28928
28929
28930
28931
28932
28933
28934 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
28935 $as_echo_n "checking for GNU gettext in libc... " >&6; }
28936 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
28937 $as_echo_n "(cached) " >&6
28938 else
28939 cat >conftest.$ac_ext <<_ACEOF
28940 /* confdefs.h. */
28941 _ACEOF
28942 cat confdefs.h >>conftest.$ac_ext
28943 cat >>conftest.$ac_ext <<_ACEOF
28944 /* end confdefs.h. */
28945 #include <libintl.h>
28946 extern int _nl_msg_cat_cntr;
28947 extern int *_nl_domain_bindings;
28948 int
28949 main ()
28950 {
28951 bindtextdomain ("", "");
28952 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
28953 ;
28954 return 0;
28955 }
28956 _ACEOF
28957 rm -f conftest.$ac_objext conftest$ac_exeext
28958 if { (ac_try="$ac_link"
28959 case "(($ac_try" in
28960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28961 *) ac_try_echo=$ac_try;;
28962 esac
28963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28964 $as_echo "$ac_try_echo") >&5
28965 (eval "$ac_link") 2>conftest.er1
28966 ac_status=$?
28967 grep -v '^ *+' conftest.er1 >conftest.err
28968 rm -f conftest.er1
28969 cat conftest.err >&5
28970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28971 (exit $ac_status); } && {
28972 test -z "$ac_c_werror_flag" ||
28973 test ! -s conftest.err
28974 } && test -s conftest$ac_exeext && {
28975 test "$cross_compiling" = yes ||
28976 $as_test_x conftest$ac_exeext
28977 }; then
28978 gt_cv_func_gnugettext2_libc=yes
28979 else
28980 $as_echo "$as_me: failed program was:" >&5
28981 sed 's/^/| /' conftest.$ac_ext >&5
28982
28983 gt_cv_func_gnugettext2_libc=no
28984 fi
28985
28986 rm -rf conftest.dSYM
28987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28988 conftest$ac_exeext conftest.$ac_ext
28989 fi
28990 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
28991 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
28992
28993 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
28994
28995
28996
28997 use_additional=yes
28998
28999 acl_save_prefix="$prefix"
29000 prefix="$acl_final_prefix"
29001 acl_save_exec_prefix="$exec_prefix"
29002 exec_prefix="$acl_final_exec_prefix"
29003
29004 eval additional_includedir=\"$includedir\"
29005 eval additional_libdir=\"$libdir\"
29006
29007 exec_prefix="$acl_save_exec_prefix"
29008 prefix="$acl_save_prefix"
29009
29010
29011 @%:@ Check whether --with-libintl-prefix was given.
29012 if test "${with_libintl_prefix+set}" = set; then
29013 withval=$with_libintl_prefix;
29014 if test "X$withval" = "Xno"; then
29015 use_additional=no
29016 else
29017 if test "X$withval" = "X"; then
29018
29019 acl_save_prefix="$prefix"
29020 prefix="$acl_final_prefix"
29021 acl_save_exec_prefix="$exec_prefix"
29022 exec_prefix="$acl_final_exec_prefix"
29023
29024 eval additional_includedir=\"$includedir\"
29025 eval additional_libdir=\"$libdir\"
29026
29027 exec_prefix="$acl_save_exec_prefix"
29028 prefix="$acl_save_prefix"
29029
29030 else
29031 additional_includedir="$withval/include"
29032 additional_libdir="$withval/lib"
29033 fi
29034 fi
29035
29036 fi
29037
29038 LIBINTL=
29039 LTLIBINTL=
29040 INCINTL=
29041 rpathdirs=
29042 ltrpathdirs=
29043 names_already_handled=
29044 names_next_round='intl '
29045 while test -n "$names_next_round"; do
29046 names_this_round="$names_next_round"
29047 names_next_round=
29048 for name in $names_this_round; do
29049 already_handled=
29050 for n in $names_already_handled; do
29051 if test "$n" = "$name"; then
29052 already_handled=yes
29053 break
29054 fi
29055 done
29056 if test -z "$already_handled"; then
29057 names_already_handled="$names_already_handled $name"
29058 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
29059 eval value=\"\$HAVE_LIB$uppername\"
29060 if test -n "$value"; then
29061 if test "$value" = yes; then
29062 eval value=\"\$LIB$uppername\"
29063 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
29064 eval value=\"\$LTLIB$uppername\"
29065 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
29066 else
29067 :
29068 fi
29069 else
29070 found_dir=
29071 found_la=
29072 found_so=
29073 found_a=
29074 if test $use_additional = yes; then
29075 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
29076 found_dir="$additional_libdir"
29077 found_so="$additional_libdir/lib$name.$shlibext"
29078 if test -f "$additional_libdir/lib$name.la"; then
29079 found_la="$additional_libdir/lib$name.la"
29080 fi
29081 else
29082 if test -f "$additional_libdir/lib$name.$libext"; then
29083 found_dir="$additional_libdir"
29084 found_a="$additional_libdir/lib$name.$libext"
29085 if test -f "$additional_libdir/lib$name.la"; then
29086 found_la="$additional_libdir/lib$name.la"
29087 fi
29088 fi
29089 fi
29090 fi
29091 if test "X$found_dir" = "X"; then
29092 for x in $LDFLAGS $LTLIBINTL; do
29093
29094 acl_save_prefix="$prefix"
29095 prefix="$acl_final_prefix"
29096 acl_save_exec_prefix="$exec_prefix"
29097 exec_prefix="$acl_final_exec_prefix"
29098 eval x=\"$x\"
29099 exec_prefix="$acl_save_exec_prefix"
29100 prefix="$acl_save_prefix"
29101
29102 case "$x" in
29103 -L*)
29104 dir=`echo "X$x" | sed -e 's/^X-L//'`
29105 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
29106 found_dir="$dir"
29107 found_so="$dir/lib$name.$shlibext"
29108 if test -f "$dir/lib$name.la"; then
29109 found_la="$dir/lib$name.la"
29110 fi
29111 else
29112 if test -f "$dir/lib$name.$libext"; then
29113 found_dir="$dir"
29114 found_a="$dir/lib$name.$libext"
29115 if test -f "$dir/lib$name.la"; then
29116 found_la="$dir/lib$name.la"
29117 fi
29118 fi
29119 fi
29120 ;;
29121 esac
29122 if test "X$found_dir" != "X"; then
29123 break
29124 fi
29125 done
29126 fi
29127 if test "X$found_dir" != "X"; then
29128 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
29129 if test "X$found_so" != "X"; then
29130 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
29131 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
29132 else
29133 haveit=
29134 for x in $ltrpathdirs; do
29135 if test "X$x" = "X$found_dir"; then
29136 haveit=yes
29137 break
29138 fi
29139 done
29140 if test -z "$haveit"; then
29141 ltrpathdirs="$ltrpathdirs $found_dir"
29142 fi
29143 if test "$hardcode_direct" = yes; then
29144 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
29145 else
29146 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
29147 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
29148 haveit=
29149 for x in $rpathdirs; do
29150 if test "X$x" = "X$found_dir"; then
29151 haveit=yes
29152 break
29153 fi
29154 done
29155 if test -z "$haveit"; then
29156 rpathdirs="$rpathdirs $found_dir"
29157 fi
29158 else
29159 haveit=
29160 for x in $LDFLAGS $LIBINTL; do
29161
29162 acl_save_prefix="$prefix"
29163 prefix="$acl_final_prefix"
29164 acl_save_exec_prefix="$exec_prefix"
29165 exec_prefix="$acl_final_exec_prefix"
29166 eval x=\"$x\"
29167 exec_prefix="$acl_save_exec_prefix"
29168 prefix="$acl_save_prefix"
29169
29170 if test "X$x" = "X-L$found_dir"; then
29171 haveit=yes
29172 break
29173 fi
29174 done
29175 if test -z "$haveit"; then
29176 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
29177 fi
29178 if test "$hardcode_minus_L" != no; then
29179 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
29180 else
29181 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
29182 fi
29183 fi
29184 fi
29185 fi
29186 else
29187 if test "X$found_a" != "X"; then
29188 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
29189 else
29190 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
29191 fi
29192 fi
29193 additional_includedir=
29194 case "$found_dir" in
29195 */lib | */lib/)
29196 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
29197 additional_includedir="$basedir/include"
29198 ;;
29199 esac
29200 if test "X$additional_includedir" != "X"; then
29201 if test "X$additional_includedir" != "X/usr/include"; then
29202 haveit=
29203 if test "X$additional_includedir" = "X/usr/local/include"; then
29204 if test -n "$GCC"; then
29205 case $host_os in
29206 linux*) haveit=yes;;
29207 esac
29208 fi
29209 fi
29210 if test -z "$haveit"; then
29211 for x in $CPPFLAGS $INCINTL; do
29212
29213 acl_save_prefix="$prefix"
29214 prefix="$acl_final_prefix"
29215 acl_save_exec_prefix="$exec_prefix"
29216 exec_prefix="$acl_final_exec_prefix"
29217 eval x=\"$x\"
29218 exec_prefix="$acl_save_exec_prefix"
29219 prefix="$acl_save_prefix"
29220
29221 if test "X$x" = "X-I$additional_includedir"; then
29222 haveit=yes
29223 break
29224 fi
29225 done
29226 if test -z "$haveit"; then
29227 if test -d "$additional_includedir"; then
29228 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
29229 fi
29230 fi
29231 fi
29232 fi
29233 fi
29234 if test -n "$found_la"; then
29235 save_libdir="$libdir"
29236 case "$found_la" in
29237 */* | *\\*) . "$found_la" ;;
29238 *) . "./$found_la" ;;
29239 esac
29240 libdir="$save_libdir"
29241 for dep in $dependency_libs; do
29242 case "$dep" in
29243 -L*)
29244 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
29245 if test "X$additional_libdir" != "X/usr/lib"; then
29246 haveit=
29247 if test "X$additional_libdir" = "X/usr/local/lib"; then
29248 if test -n "$GCC"; then
29249 case $host_os in
29250 linux*) haveit=yes;;
29251 esac
29252 fi
29253 fi
29254 if test -z "$haveit"; then
29255 haveit=
29256 for x in $LDFLAGS $LIBINTL; do
29257
29258 acl_save_prefix="$prefix"
29259 prefix="$acl_final_prefix"
29260 acl_save_exec_prefix="$exec_prefix"
29261 exec_prefix="$acl_final_exec_prefix"
29262 eval x=\"$x\"
29263 exec_prefix="$acl_save_exec_prefix"
29264 prefix="$acl_save_prefix"
29265
29266 if test "X$x" = "X-L$additional_libdir"; then
29267 haveit=yes
29268 break
29269 fi
29270 done
29271 if test -z "$haveit"; then
29272 if test -d "$additional_libdir"; then
29273 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
29274 fi
29275 fi
29276 haveit=
29277 for x in $LDFLAGS $LTLIBINTL; do
29278
29279 acl_save_prefix="$prefix"
29280 prefix="$acl_final_prefix"
29281 acl_save_exec_prefix="$exec_prefix"
29282 exec_prefix="$acl_final_exec_prefix"
29283 eval x=\"$x\"
29284 exec_prefix="$acl_save_exec_prefix"
29285 prefix="$acl_save_prefix"
29286
29287 if test "X$x" = "X-L$additional_libdir"; then
29288 haveit=yes
29289 break
29290 fi
29291 done
29292 if test -z "$haveit"; then
29293 if test -d "$additional_libdir"; then
29294 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
29295 fi
29296 fi
29297 fi
29298 fi
29299 ;;
29300 -R*)
29301 dir=`echo "X$dep" | sed -e 's/^X-R//'`
29302 if test "$enable_rpath" != no; then
29303 haveit=
29304 for x in $rpathdirs; do
29305 if test "X$x" = "X$dir"; then
29306 haveit=yes
29307 break
29308 fi
29309 done
29310 if test -z "$haveit"; then
29311 rpathdirs="$rpathdirs $dir"
29312 fi
29313 haveit=
29314 for x in $ltrpathdirs; do
29315 if test "X$x" = "X$dir"; then
29316 haveit=yes
29317 break
29318 fi
29319 done
29320 if test -z "$haveit"; then
29321 ltrpathdirs="$ltrpathdirs $dir"
29322 fi
29323 fi
29324 ;;
29325 -l*)
29326 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
29327 ;;
29328 *.la)
29329 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
29330 ;;
29331 *)
29332 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
29333 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
29334 ;;
29335 esac
29336 done
29337 fi
29338 else
29339 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
29340 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
29341 fi
29342 fi
29343 fi
29344 done
29345 done
29346 if test "X$rpathdirs" != "X"; then
29347 if test -n "$hardcode_libdir_separator"; then
29348 alldirs=
29349 for found_dir in $rpathdirs; do
29350 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
29351 done
29352 acl_save_libdir="$libdir"
29353 libdir="$alldirs"
29354 eval flag=\"$hardcode_libdir_flag_spec\"
29355 libdir="$acl_save_libdir"
29356 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
29357 else
29358 for found_dir in $rpathdirs; do
29359 acl_save_libdir="$libdir"
29360 libdir="$found_dir"
29361 eval flag=\"$hardcode_libdir_flag_spec\"
29362 libdir="$acl_save_libdir"
29363 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
29364 done
29365 fi
29366 fi
29367 if test "X$ltrpathdirs" != "X"; then
29368 for found_dir in $ltrpathdirs; do
29369 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
29370 done
29371 fi
29372
29373 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
29374 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
29375 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
29376 $as_echo_n "(cached) " >&6
29377 else
29378 gt_save_CPPFLAGS="$CPPFLAGS"
29379 CPPFLAGS="$CPPFLAGS $INCINTL"
29380 gt_save_LIBS="$LIBS"
29381 LIBS="$LIBS $LIBINTL"
29382 cat >conftest.$ac_ext <<_ACEOF
29383 /* confdefs.h. */
29384 _ACEOF
29385 cat confdefs.h >>conftest.$ac_ext
29386 cat >>conftest.$ac_ext <<_ACEOF
29387 /* end confdefs.h. */
29388 #include <libintl.h>
29389 extern int _nl_msg_cat_cntr;
29390 extern
29391 #ifdef __cplusplus
29392 "C"
29393 #endif
29394 const char *_nl_expand_alias ();
29395 int
29396 main ()
29397 {
29398 bindtextdomain ("", "");
29399 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
29400 ;
29401 return 0;
29402 }
29403 _ACEOF
29404 rm -f conftest.$ac_objext conftest$ac_exeext
29405 if { (ac_try="$ac_link"
29406 case "(($ac_try" in
29407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29408 *) ac_try_echo=$ac_try;;
29409 esac
29410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29411 $as_echo "$ac_try_echo") >&5
29412 (eval "$ac_link") 2>conftest.er1
29413 ac_status=$?
29414 grep -v '^ *+' conftest.er1 >conftest.err
29415 rm -f conftest.er1
29416 cat conftest.err >&5
29417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29418 (exit $ac_status); } && {
29419 test -z "$ac_c_werror_flag" ||
29420 test ! -s conftest.err
29421 } && test -s conftest$ac_exeext && {
29422 test "$cross_compiling" = yes ||
29423 $as_test_x conftest$ac_exeext
29424 }; then
29425 gt_cv_func_gnugettext2_libintl=yes
29426 else
29427 $as_echo "$as_me: failed program was:" >&5
29428 sed 's/^/| /' conftest.$ac_ext >&5
29429
29430 gt_cv_func_gnugettext2_libintl=no
29431 fi
29432
29433 rm -rf conftest.dSYM
29434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29435 conftest$ac_exeext conftest.$ac_ext
29436 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
29437 LIBS="$LIBS $LIBICONV"
29438 cat >conftest.$ac_ext <<_ACEOF
29439 /* confdefs.h. */
29440 _ACEOF
29441 cat confdefs.h >>conftest.$ac_ext
29442 cat >>conftest.$ac_ext <<_ACEOF
29443 /* end confdefs.h. */
29444 #include <libintl.h>
29445 extern int _nl_msg_cat_cntr;
29446 extern
29447 #ifdef __cplusplus
29448 "C"
29449 #endif
29450 const char *_nl_expand_alias ();
29451 int
29452 main ()
29453 {
29454 bindtextdomain ("", "");
29455 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
29456 ;
29457 return 0;
29458 }
29459 _ACEOF
29460 rm -f conftest.$ac_objext conftest$ac_exeext
29461 if { (ac_try="$ac_link"
29462 case "(($ac_try" in
29463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29464 *) ac_try_echo=$ac_try;;
29465 esac
29466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29467 $as_echo "$ac_try_echo") >&5
29468 (eval "$ac_link") 2>conftest.er1
29469 ac_status=$?
29470 grep -v '^ *+' conftest.er1 >conftest.err
29471 rm -f conftest.er1
29472 cat conftest.err >&5
29473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29474 (exit $ac_status); } && {
29475 test -z "$ac_c_werror_flag" ||
29476 test ! -s conftest.err
29477 } && test -s conftest$ac_exeext && {
29478 test "$cross_compiling" = yes ||
29479 $as_test_x conftest$ac_exeext
29480 }; then
29481 LIBINTL="$LIBINTL $LIBICONV"
29482 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
29483 gt_cv_func_gnugettext2_libintl=yes
29484
29485 else
29486 $as_echo "$as_me: failed program was:" >&5
29487 sed 's/^/| /' conftest.$ac_ext >&5
29488
29489
29490 fi
29491
29492 rm -rf conftest.dSYM
29493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29494 conftest$ac_exeext conftest.$ac_ext
29495 fi
29496 CPPFLAGS="$gt_save_CPPFLAGS"
29497 LIBS="$gt_save_LIBS"
29498 fi
29499 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
29500 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
29501 fi
29502
29503 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
29504 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
29505 && test "$PACKAGE" != gettext-runtime \
29506 && test "$PACKAGE" != gettext-tools; }; then
29507 gt_use_preinstalled_gnugettext=yes
29508 else
29509 LIBINTL=
29510 LTLIBINTL=
29511 INCINTL=
29512 fi
29513
29514
29515 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
29516 nls_cv_use_gnu_gettext=yes
29517 fi
29518 fi
29519
29520 if test "$nls_cv_use_gnu_gettext" = "yes"; then
29521 BUILD_INCLUDED_LIBINTL=yes
29522 USE_INCLUDED_LIBINTL=yes
29523 LIBINTL="\$(top_builddir)/intl//libintl.a $LIBICONV"
29524 LTLIBINTL="\$(top_builddir)/intl//libintl.a $LTLIBICONV"
29525 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
29526 fi
29527
29528 if test "$gt_use_preinstalled_gnugettext" = "yes" \
29529 || test "$nls_cv_use_gnu_gettext" = "yes"; then
29530 CATOBJEXT=.gmo
29531 fi
29532
29533
29534 if test "$gt_use_preinstalled_gnugettext" = "yes" \
29535 || test "$nls_cv_use_gnu_gettext" = "yes"; then
29536
29537 cat >>confdefs.h <<\_ACEOF
29538 @%:@define ENABLE_NLS 1
29539 _ACEOF
29540
29541 else
29542 USE_NLS=no
29543 fi
29544 fi
29545
29546 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
29547 $as_echo_n "checking whether to use NLS... " >&6; }
29548 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
29549 $as_echo "$USE_NLS" >&6; }
29550 if test "$USE_NLS" = "yes"; then
29551 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
29552 $as_echo_n "checking where the gettext function comes from... " >&6; }
29553 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
29554 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
29555 gt_source="external libintl"
29556 else
29557 gt_source="libc"
29558 fi
29559 else
29560 gt_source="included intl directory"
29561 fi
29562 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
29563 $as_echo "$gt_source" >&6; }
29564 fi
29565
29566 if test "$USE_NLS" = "yes"; then
29567
29568 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
29569 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
29570 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
29571 $as_echo_n "checking how to link with libintl... " >&6; }
29572 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
29573 $as_echo "$LIBINTL" >&6; }
29574
29575 for element in $INCINTL; do
29576 haveit=
29577 for x in $CPPFLAGS; do
29578
29579 acl_save_prefix="$prefix"
29580 prefix="$acl_final_prefix"
29581 acl_save_exec_prefix="$exec_prefix"
29582 exec_prefix="$acl_final_exec_prefix"
29583 eval x=\"$x\"
29584 exec_prefix="$acl_save_exec_prefix"
29585 prefix="$acl_save_prefix"
29586
29587 if test "X$x" = "X$element"; then
29588 haveit=yes
29589 break
29590 fi
29591 done
29592 if test -z "$haveit"; then
29593 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
29594 fi
29595 done
29596
29597 fi
29598
29599
29600 cat >>confdefs.h <<\_ACEOF
29601 @%:@define HAVE_GETTEXT 1
29602 _ACEOF
29603
29604
29605 cat >>confdefs.h <<\_ACEOF
29606 @%:@define HAVE_DCGETTEXT 1
29607 _ACEOF
29608
29609 fi
29610
29611 POSUB=po
29612 fi
29613
29614
29615 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
29616 BUILD_INCLUDED_LIBINTL=yes
29617 fi
29618
29619
29620
29621
29622
29623 nls_cv_header_intl=
29624 nls_cv_header_libgt=
29625
29626 DATADIRNAME=share
29627
29628
29629 INSTOBJEXT=.mo
29630
29631
29632 GENCAT=gencat
29633
29634
29635 if test "$USE_INCLUDED_LIBINTL" = yes; then
29636 INTLOBJS="\$(GETTOBJS)"
29637 fi
29638
29639
29640 INTL_LIBTOOL_SUFFIX_PREFIX=
29641
29642
29643
29644 INTLLIBS="$LIBINTL"
29645
29646
29647
29648
29649
29650
29651 if test "x${shared_libnavit}" = "xyes" -a "x${win32ce}" = "xyes"; then
29652 INTLLIBS="\$(top_builddir)/intl/libintl.la"
29653 LIBINTL=$INTLLIBS
29654 LTLIBINTL=$INTLLIBS
29655 fi
29656
29657
29658 if test x"$LIBINTL" != "x" ;then
29659 CFLAGS="$CFLAGS -I\$(top_builddir)/intl/"
29660 fi
29661
29662 fi
29663 if test "x$enable_nls" = "xyes"; then
29664 ENABLE_NLS_TRUE=
29665 ENABLE_NLS_FALSE='#'
29666 else
29667 ENABLE_NLS_TRUE='#'
29668 ENABLE_NLS_FALSE=
29669 fi
29670
29671 if test "x$xgettext_glade" = "xyes"; then
29672 XGETTEXT_GLADE_TRUE=
29673 XGETTEXT_GLADE_FALSE='#'
29674 else
29675 XGETTEXT_GLADE_TRUE='#'
29676 XGETTEXT_GLADE_FALSE=
29677 fi
29678
29679 if test "${ac_cv_header_byteswap_h+set}" = set; then
29680 { $as_echo "$as_me:$LINENO: checking for byteswap.h" >&5
29681 $as_echo_n "checking for byteswap.h... " >&6; }
29682 if test "${ac_cv_header_byteswap_h+set}" = set; then
29683 $as_echo_n "(cached) " >&6
29684 fi
29685 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_byteswap_h" >&5
29686 $as_echo "$ac_cv_header_byteswap_h" >&6; }
29687 else
29688 # Is the header compilable?
29689 { $as_echo "$as_me:$LINENO: checking byteswap.h usability" >&5
29690 $as_echo_n "checking byteswap.h usability... " >&6; }
29691 cat >conftest.$ac_ext <<_ACEOF
29692 /* confdefs.h. */
29693 _ACEOF
29694 cat confdefs.h >>conftest.$ac_ext
29695 cat >>conftest.$ac_ext <<_ACEOF
29696 /* end confdefs.h. */
29697 $ac_includes_default
29698 @%:@include <byteswap.h>
29699 _ACEOF
29700 rm -f conftest.$ac_objext
29701 if { (ac_try="$ac_compile"
29702 case "(($ac_try" in
29703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29704 *) ac_try_echo=$ac_try;;
29705 esac
29706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29707 $as_echo "$ac_try_echo") >&5
29708 (eval "$ac_compile") 2>conftest.er1
29709 ac_status=$?
29710 grep -v '^ *+' conftest.er1 >conftest.err
29711 rm -f conftest.er1
29712 cat conftest.err >&5
29713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29714 (exit $ac_status); } && {
29715 test -z "$ac_c_werror_flag" ||
29716 test ! -s conftest.err
29717 } && test -s conftest.$ac_objext; then
29718 ac_header_compiler=yes
29719 else
29720 $as_echo "$as_me: failed program was:" >&5
29721 sed 's/^/| /' conftest.$ac_ext >&5
29722
29723 ac_header_compiler=no
29724 fi
29725
29726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29727 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29728 $as_echo "$ac_header_compiler" >&6; }
29729
29730 # Is the header present?
29731 { $as_echo "$as_me:$LINENO: checking byteswap.h presence" >&5
29732 $as_echo_n "checking byteswap.h presence... " >&6; }
29733 cat >conftest.$ac_ext <<_ACEOF
29734 /* confdefs.h. */
29735 _ACEOF
29736 cat confdefs.h >>conftest.$ac_ext
29737 cat >>conftest.$ac_ext <<_ACEOF
29738 /* end confdefs.h. */
29739 @%:@include <byteswap.h>
29740 _ACEOF
29741 if { (ac_try="$ac_cpp conftest.$ac_ext"
29742 case "(($ac_try" in
29743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29744 *) ac_try_echo=$ac_try;;
29745 esac
29746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29747 $as_echo "$ac_try_echo") >&5
29748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29749 ac_status=$?
29750 grep -v '^ *+' conftest.er1 >conftest.err
29751 rm -f conftest.er1
29752 cat conftest.err >&5
29753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29754 (exit $ac_status); } >/dev/null && {
29755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29756 test ! -s conftest.err
29757 }; then
29758 ac_header_preproc=yes
29759 else
29760 $as_echo "$as_me: failed program was:" >&5
29761 sed 's/^/| /' conftest.$ac_ext >&5
29762
29763 ac_header_preproc=no
29764 fi
29765
29766 rm -f conftest.err conftest.$ac_ext
29767 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29768 $as_echo "$ac_header_preproc" >&6; }
29769
29770 # So? What about this header?
29771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29772 yes:no: )
29773 { $as_echo "$as_me:$LINENO: WARNING: byteswap.h: accepted by the compiler, rejected by the preprocessor!" >&5
29774 $as_echo "$as_me: WARNING: byteswap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29775 { $as_echo "$as_me:$LINENO: WARNING: byteswap.h: proceeding with the compiler's result" >&5
29776 $as_echo "$as_me: WARNING: byteswap.h: proceeding with the compiler's result" >&2;}
29777 ac_header_preproc=yes
29778 ;;
29779 no:yes:* )
29780 { $as_echo "$as_me:$LINENO: WARNING: byteswap.h: present but cannot be compiled" >&5
29781 $as_echo "$as_me: WARNING: byteswap.h: present but cannot be compiled" >&2;}
29782 { $as_echo "$as_me:$LINENO: WARNING: byteswap.h: check for missing prerequisite headers?" >&5
29783 $as_echo "$as_me: WARNING: byteswap.h: check for missing prerequisite headers?" >&2;}
29784 { $as_echo "$as_me:$LINENO: WARNING: byteswap.h: see the Autoconf documentation" >&5
29785 $as_echo "$as_me: WARNING: byteswap.h: see the Autoconf documentation" >&2;}
29786 { $as_echo "$as_me:$LINENO: WARNING: byteswap.h: section \"Present But Cannot Be Compiled\"" >&5
29787 $as_echo "$as_me: WARNING: byteswap.h: section \"Present But Cannot Be Compiled\"" >&2;}
29788 { $as_echo "$as_me:$LINENO: WARNING: byteswap.h: proceeding with the preprocessor's result" >&5
29789 $as_echo "$as_me: WARNING: byteswap.h: proceeding with the preprocessor's result" >&2;}
29790 { $as_echo "$as_me:$LINENO: WARNING: byteswap.h: in the future, the compiler will take precedence" >&5
29791 $as_echo "$as_me: WARNING: byteswap.h: in the future, the compiler will take precedence" >&2;}
29792
29793 ;;
29794 esac
29795 { $as_echo "$as_me:$LINENO: checking for byteswap.h" >&5
29796 $as_echo_n "checking for byteswap.h... " >&6; }
29797 if test "${ac_cv_header_byteswap_h+set}" = set; then
29798 $as_echo_n "(cached) " >&6
29799 else
29800 ac_cv_header_byteswap_h=$ac_header_preproc
29801 fi
29802 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_byteswap_h" >&5
29803 $as_echo "$ac_cv_header_byteswap_h" >&6; }
29804
29805 fi
29806 if test $ac_cv_header_byteswap_h = yes; then
29807
29808 cat >>confdefs.h <<\_ACEOF
29809 @%:@define HAVE_BYTESWAP_H 1
29810 _ACEOF
29811
29812
29813 fi
29814
29815
29816
29817 PACKAGE=navit
29818 cat >>confdefs.h <<_ACEOF
29819 @%:@define PACKAGE "$PACKAGE"
29820 _ACEOF
29821
29822 cat >>confdefs.h <<_ACEOF
29823 @%:@define VERSION "$VERSION"
29824 _ACEOF
29825
29826
29827
29828
29829 if test "${ac_cv_header_wordexp_h+set}" = set; then
29830 { $as_echo "$as_me:$LINENO: checking for wordexp.h" >&5
29831 $as_echo_n "checking for wordexp.h... " >&6; }
29832 if test "${ac_cv_header_wordexp_h+set}" = set; then
29833 $as_echo_n "(cached) " >&6
29834 fi
29835 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_wordexp_h" >&5
29836 $as_echo "$ac_cv_header_wordexp_h" >&6; }
29837 else
29838 # Is the header compilable?
29839 { $as_echo "$as_me:$LINENO: checking wordexp.h usability" >&5
29840 $as_echo_n "checking wordexp.h usability... " >&6; }
29841 cat >conftest.$ac_ext <<_ACEOF
29842 /* confdefs.h. */
29843 _ACEOF
29844 cat confdefs.h >>conftest.$ac_ext
29845 cat >>conftest.$ac_ext <<_ACEOF
29846 /* end confdefs.h. */
29847 $ac_includes_default
29848 @%:@include <wordexp.h>
29849 _ACEOF
29850 rm -f conftest.$ac_objext
29851 if { (ac_try="$ac_compile"
29852 case "(($ac_try" in
29853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29854 *) ac_try_echo=$ac_try;;
29855 esac
29856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29857 $as_echo "$ac_try_echo") >&5
29858 (eval "$ac_compile") 2>conftest.er1
29859 ac_status=$?
29860 grep -v '^ *+' conftest.er1 >conftest.err
29861 rm -f conftest.er1
29862 cat conftest.err >&5
29863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29864 (exit $ac_status); } && {
29865 test -z "$ac_c_werror_flag" ||
29866 test ! -s conftest.err
29867 } && test -s conftest.$ac_objext; then
29868 ac_header_compiler=yes
29869 else
29870 $as_echo "$as_me: failed program was:" >&5
29871 sed 's/^/| /' conftest.$ac_ext >&5
29872
29873 ac_header_compiler=no
29874 fi
29875
29876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29877 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29878 $as_echo "$ac_header_compiler" >&6; }
29879
29880 # Is the header present?
29881 { $as_echo "$as_me:$LINENO: checking wordexp.h presence" >&5
29882 $as_echo_n "checking wordexp.h presence... " >&6; }
29883 cat >conftest.$ac_ext <<_ACEOF
29884 /* confdefs.h. */
29885 _ACEOF
29886 cat confdefs.h >>conftest.$ac_ext
29887 cat >>conftest.$ac_ext <<_ACEOF
29888 /* end confdefs.h. */
29889 @%:@include <wordexp.h>
29890 _ACEOF
29891 if { (ac_try="$ac_cpp conftest.$ac_ext"
29892 case "(($ac_try" in
29893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29894 *) ac_try_echo=$ac_try;;
29895 esac
29896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29897 $as_echo "$ac_try_echo") >&5
29898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29899 ac_status=$?
29900 grep -v '^ *+' conftest.er1 >conftest.err
29901 rm -f conftest.er1
29902 cat conftest.err >&5
29903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29904 (exit $ac_status); } >/dev/null && {
29905 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29906 test ! -s conftest.err
29907 }; then
29908 ac_header_preproc=yes
29909 else
29910 $as_echo "$as_me: failed program was:" >&5
29911 sed 's/^/| /' conftest.$ac_ext >&5
29912
29913 ac_header_preproc=no
29914 fi
29915
29916 rm -f conftest.err conftest.$ac_ext
29917 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29918 $as_echo "$ac_header_preproc" >&6; }
29919
29920 # So? What about this header?
29921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29922 yes:no: )
29923 { $as_echo "$as_me:$LINENO: WARNING: wordexp.h: accepted by the compiler, rejected by the preprocessor!" >&5
29924 $as_echo "$as_me: WARNING: wordexp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29925 { $as_echo "$as_me:$LINENO: WARNING: wordexp.h: proceeding with the compiler's result" >&5
29926 $as_echo "$as_me: WARNING: wordexp.h: proceeding with the compiler's result" >&2;}
29927 ac_header_preproc=yes
29928 ;;
29929 no:yes:* )
29930 { $as_echo "$as_me:$LINENO: WARNING: wordexp.h: present but cannot be compiled" >&5
29931 $as_echo "$as_me: WARNING: wordexp.h: present but cannot be compiled" >&2;}
29932 { $as_echo "$as_me:$LINENO: WARNING: wordexp.h: check for missing prerequisite headers?" >&5
29933 $as_echo "$as_me: WARNING: wordexp.h: check for missing prerequisite headers?" >&2;}
29934 { $as_echo "$as_me:$LINENO: WARNING: wordexp.h: see the Autoconf documentation" >&5
29935 $as_echo "$as_me: WARNING: wordexp.h: see the Autoconf documentation" >&2;}
29936 { $as_echo "$as_me:$LINENO: WARNING: wordexp.h: section \"Present But Cannot Be Compiled\"" >&5
29937 $as_echo "$as_me: WARNING: wordexp.h: section \"Present But Cannot Be Compiled\"" >&2;}
29938 { $as_echo "$as_me:$LINENO: WARNING: wordexp.h: proceeding with the preprocessor's result" >&5
29939 $as_echo "$as_me: WARNING: wordexp.h: proceeding with the preprocessor's result" >&2;}
29940 { $as_echo "$as_me:$LINENO: WARNING: wordexp.h: in the future, the compiler will take precedence" >&5
29941 $as_echo "$as_me: WARNING: wordexp.h: in the future, the compiler will take precedence" >&2;}
29942
29943 ;;
29944 esac
29945 { $as_echo "$as_me:$LINENO: checking for wordexp.h" >&5
29946 $as_echo_n "checking for wordexp.h... " >&6; }
29947 if test "${ac_cv_header_wordexp_h+set}" = set; then
29948 $as_echo_n "(cached) " >&6
29949 else
29950 ac_cv_header_wordexp_h=$ac_header_preproc
29951 fi
29952 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_wordexp_h" >&5
29953 $as_echo "$ac_cv_header_wordexp_h" >&6; }
29954
29955 fi
29956 if test $ac_cv_header_wordexp_h = yes; then
29957 wordexp_h=yes
29958 else
29959 wordexp_h=no;NAVIT_CFLAGS="$NAVIT_CFLAGS -I\$(top_srcdir)/navit/support/wordexp";WORDEXP_LIBS="-L\$(top_builddir)/navit/support/wordexp -lsupport_wordexp"
29960 fi
29961
29962
29963 if test "x$wordexp_h" = "xno"; then
29964 SUPPORT_WORDEXP_TRUE=
29965 SUPPORT_WORDEXP_FALSE='#'
29966 else
29967 SUPPORT_WORDEXP_TRUE='#'
29968 SUPPORT_WORDEXP_FALSE=
29969 fi
29970
29971
29972 support_libc=no
29973 @%:@ Check whether --enable-support_libc was given.
29974 if test "${enable_support_libc+set}" = set; then
29975 enableval=$enable_support_libc; support_libc=$enableval
29976 fi
29977
29978 if test "x$support_libc" = "xyes"; then
29979 SUPPORT_LIBC_TRUE=
29980 SUPPORT_LIBC_FALSE='#'
29981 else
29982 SUPPORT_LIBC_TRUE='#'
29983 SUPPORT_LIBC_FALSE=
29984 fi
29985
29986 if test "x$support_libc" = "xyes"; then
29987 CFLAGS="$CFLAGS -I\$(top_srcdir)/navit/support/libc"
29988 LIBC_LIBS="-L\$(top_builddir)/navit/support/libc -lsupport_libc"
29989 fi
29990
29991 ## graphics
29992 @%:@ Check whether --enable-graphics was given.
29993 if test "${enable_graphics+set}" = set; then
29994 enableval=$enable_graphics; graphics=$enableval;graphics_reason="configure parameter"
29995 fi
29996
29997 if test "x${graphics}" = "xyes"; then
29998 GRAPHICS_TRUE=
29999 GRAPHICS_FALSE='#'
30000 else
30001 GRAPHICS_TRUE='#'
30002 GRAPHICS_FALSE=
30003 fi
30004
30005 if test "x$graphics" = "xyes"; then
30006
30007 cat >>confdefs.h <<\_ACEOF
30008 @%:@define USE_GRAPHICS 1
30009 _ACEOF
30010
30011 fi
30012
30013 # gd
30014
30015 # android
30016 @%:@ Check whether --enable-graphics-android was given.
30017 if test "${enable_graphics_android+set}" = set; then
30018 enableval=$enable_graphics_android; graphics_android=$enableval;graphics_android_reason="configure parameter"
30019 fi
30020
30021 if test "x${graphics_android}" = "xyes"; then
30022 GRAPHICS_ANDROID_TRUE=
30023 GRAPHICS_ANDROID_FALSE='#'
30024 else
30025 GRAPHICS_ANDROID_TRUE='#'
30026 GRAPHICS_ANDROID_FALSE=
30027 fi
30028
30029 # gd
30030 @%:@ Check whether --enable-graphics-gd was given.
30031 if test "${enable_graphics_gd+set}" = set; then
30032 enableval=$enable_graphics_gd; graphics_gd=$enableval;graphics_gd_reason="configure parameter"
30033 fi
30034
30035 if test "x${graphics_gd}" = "xyes" ; then
30036 if test -z "$GDLIB_CONFIG"; then
30037 # Extract the first word of "gdlib-config", so it can be a program name with args.
30038 set dummy gdlib-config; ac_word=$2
30039 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30040 $as_echo_n "checking for $ac_word... " >&6; }
30041 if test "${ac_cv_path_GDLIB_CONFIG+set}" = set; then
30042 $as_echo_n "(cached) " >&6
30043 else
30044 case $GDLIB_CONFIG in
30045 [\\/]* | ?:[\\/]*)
30046 ac_cv_path_GDLIB_CONFIG="$GDLIB_CONFIG" # Let the user override the test with a path.
30047 ;;
30048 *)
30049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30050 for as_dir in $PATH
30051 do
30052 IFS=$as_save_IFS
30053 test -z "$as_dir" && as_dir=.
30054 for ac_exec_ext in '' $ac_executable_extensions; do
30055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30056 ac_cv_path_GDLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30057 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30058 break 2
30059 fi
30060 done
30061 done
30062 IFS=$as_save_IFS
30063
30064 ;;
30065 esac
30066 fi
30067 GDLIB_CONFIG=$ac_cv_path_GDLIB_CONFIG
30068 if test -n "$GDLIB_CONFIG"; then
30069 { $as_echo "$as_me:$LINENO: result: $GDLIB_CONFIG" >&5
30070 $as_echo "$GDLIB_CONFIG" >&6; }
30071 else
30072 { $as_echo "$as_me:$LINENO: result: no" >&5
30073 $as_echo "no" >&6; }
30074 fi
30075
30076
30077 fi
30078 { $as_echo "$as_me:$LINENO: checking for gdlib with $GDLIB_CONFIG" >&5
30079 $as_echo_n "checking for gdlib with $GDLIB_CONFIG... " >&6; }
30080 if test ! -x "$GDLIB_CONFIG"; then
30081 if test "x${GDLIB_CONFIG}" = "x" ; then
30082 graphics_gd_reason="$GDLIB_CONFIG not executable"
30083 else
30084 graphics_gd_reason="gdlib-config missing"
30085 fi
30086 graphics_gd=no
30087 { $as_echo "$as_me:$LINENO: result: no" >&5
30088 $as_echo "no" >&6; }
30089 else
30090 if test "x${GD_CFLAGS}" = "x" ; then
30091 GD_CFLAGS="-I`$GDLIB_CONFIG --includedir`"
30092 fi
30093 if test "x${GD_LIBS}" = "x" ; then
30094 GD_LIBS="-L`$GDLIB_CONFIG --libdir` -lgd `$GDLIB_CONFIG --libs`"
30095 fi
30096
30097
30098 { $as_echo "$as_me:$LINENO: result: yes" >&5
30099 $as_echo "yes" >&6; }
30100 fi
30101 fi
30102 if test "x${graphics_gd}" = "xyes"; then
30103 GRAPHICS_GD_TRUE=
30104 GRAPHICS_GD_FALSE='#'
30105 else
30106 GRAPHICS_GD_TRUE='#'
30107 GRAPHICS_GD_FALSE=
30108 fi
30109
30110 if test "${ac_cv_header_sys_shm_h+set}" = set; then
30111 { $as_echo "$as_me:$LINENO: checking for sys/shm.h" >&5
30112 $as_echo_n "checking for sys/shm.h... " >&6; }
30113 if test "${ac_cv_header_sys_shm_h+set}" = set; then
30114 $as_echo_n "(cached) " >&6
30115 fi
30116 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
30117 $as_echo "$ac_cv_header_sys_shm_h" >&6; }
30118 else
30119 # Is the header compilable?
30120 { $as_echo "$as_me:$LINENO: checking sys/shm.h usability" >&5
30121 $as_echo_n "checking sys/shm.h usability... " >&6; }
30122 cat >conftest.$ac_ext <<_ACEOF
30123 /* confdefs.h. */
30124 _ACEOF
30125 cat confdefs.h >>conftest.$ac_ext
30126 cat >>conftest.$ac_ext <<_ACEOF
30127 /* end confdefs.h. */
30128 $ac_includes_default
30129 @%:@include <sys/shm.h>
30130 _ACEOF
30131 rm -f conftest.$ac_objext
30132 if { (ac_try="$ac_compile"
30133 case "(($ac_try" in
30134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30135 *) ac_try_echo=$ac_try;;
30136 esac
30137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30138 $as_echo "$ac_try_echo") >&5
30139 (eval "$ac_compile") 2>conftest.er1
30140 ac_status=$?
30141 grep -v '^ *+' conftest.er1 >conftest.err
30142 rm -f conftest.er1
30143 cat conftest.err >&5
30144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30145 (exit $ac_status); } && {
30146 test -z "$ac_c_werror_flag" ||
30147 test ! -s conftest.err
30148 } && test -s conftest.$ac_objext; then
30149 ac_header_compiler=yes
30150 else
30151 $as_echo "$as_me: failed program was:" >&5
30152 sed 's/^/| /' conftest.$ac_ext >&5
30153
30154 ac_header_compiler=no
30155 fi
30156
30157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30158 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30159 $as_echo "$ac_header_compiler" >&6; }
30160
30161 # Is the header present?
30162 { $as_echo "$as_me:$LINENO: checking sys/shm.h presence" >&5
30163 $as_echo_n "checking sys/shm.h presence... " >&6; }
30164 cat >conftest.$ac_ext <<_ACEOF
30165 /* confdefs.h. */
30166 _ACEOF
30167 cat confdefs.h >>conftest.$ac_ext
30168 cat >>conftest.$ac_ext <<_ACEOF
30169 /* end confdefs.h. */
30170 @%:@include <sys/shm.h>
30171 _ACEOF
30172 if { (ac_try="$ac_cpp conftest.$ac_ext"
30173 case "(($ac_try" in
30174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30175 *) ac_try_echo=$ac_try;;
30176 esac
30177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30178 $as_echo "$ac_try_echo") >&5
30179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30180 ac_status=$?
30181 grep -v '^ *+' conftest.er1 >conftest.err
30182 rm -f conftest.er1
30183 cat conftest.err >&5
30184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30185 (exit $ac_status); } >/dev/null && {
30186 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30187 test ! -s conftest.err
30188 }; then
30189 ac_header_preproc=yes
30190 else
30191 $as_echo "$as_me: failed program was:" >&5
30192 sed 's/^/| /' conftest.$ac_ext >&5
30193
30194 ac_header_preproc=no
30195 fi
30196
30197 rm -f conftest.err conftest.$ac_ext
30198 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30199 $as_echo "$ac_header_preproc" >&6; }
30200
30201 # So? What about this header?
30202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30203 yes:no: )
30204 { $as_echo "$as_me:$LINENO: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&5
30205 $as_echo "$as_me: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30206 { $as_echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the compiler's result" >&5
30207 $as_echo "$as_me: WARNING: sys/shm.h: proceeding with the compiler's result" >&2;}
30208 ac_header_preproc=yes
30209 ;;
30210 no:yes:* )
30211 { $as_echo "$as_me:$LINENO: WARNING: sys/shm.h: present but cannot be compiled" >&5
30212 $as_echo "$as_me: WARNING: sys/shm.h: present but cannot be compiled" >&2;}
30213 { $as_echo "$as_me:$LINENO: WARNING: sys/shm.h: check for missing prerequisite headers?" >&5
30214 $as_echo "$as_me: WARNING: sys/shm.h: check for missing prerequisite headers?" >&2;}
30215 { $as_echo "$as_me:$LINENO: WARNING: sys/shm.h: see the Autoconf documentation" >&5
30216 $as_echo "$as_me: WARNING: sys/shm.h: see the Autoconf documentation" >&2;}
30217 { $as_echo "$as_me:$LINENO: WARNING: sys/shm.h: section \"Present But Cannot Be Compiled\"" >&5
30218 $as_echo "$as_me: WARNING: sys/shm.h: section \"Present But Cannot Be Compiled\"" >&2;}
30219 { $as_echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&5
30220 $as_echo "$as_me: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&2;}
30221 { $as_echo "$as_me:$LINENO: WARNING: sys/shm.h: in the future, the compiler will take precedence" >&5
30222 $as_echo "$as_me: WARNING: sys/shm.h: in the future, the compiler will take precedence" >&2;}
30223
30224 ;;
30225 esac
30226 { $as_echo "$as_me:$LINENO: checking for sys/shm.h" >&5
30227 $as_echo_n "checking for sys/shm.h... " >&6; }
30228 if test "${ac_cv_header_sys_shm_h+set}" = set; then
30229 $as_echo_n "(cached) " >&6
30230 else
30231 ac_cv_header_sys_shm_h=$ac_header_preproc
30232 fi
30233 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
30234 $as_echo "$ac_cv_header_sys_shm_h" >&6; }
30235
30236 fi
30237 if test $ac_cv_header_sys_shm_h = yes; then
30238
30239 cat >>confdefs.h <<\_ACEOF
30240 @%:@define HAVE_SHMEM /**/
30241 _ACEOF
30242
30243
30244 fi
30245
30246
30247 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
30248 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
30249 $as_echo_n "checking for X11/xpm.h... " >&6; }
30250 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
30251 $as_echo_n "(cached) " >&6
30252 fi
30253 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
30254 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
30255 else
30256 # Is the header compilable?
30257 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
30258 $as_echo_n "checking X11/xpm.h usability... " >&6; }
30259 cat >conftest.$ac_ext <<_ACEOF
30260 /* confdefs.h. */
30261 _ACEOF
30262 cat confdefs.h >>conftest.$ac_ext
30263 cat >>conftest.$ac_ext <<_ACEOF
30264 /* end confdefs.h. */
30265 $ac_includes_default
30266 @%:@include <X11/xpm.h>
30267 _ACEOF
30268 rm -f conftest.$ac_objext
30269 if { (ac_try="$ac_compile"
30270 case "(($ac_try" in
30271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30272 *) ac_try_echo=$ac_try;;
30273 esac
30274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30275 $as_echo "$ac_try_echo") >&5
30276 (eval "$ac_compile") 2>conftest.er1
30277 ac_status=$?
30278 grep -v '^ *+' conftest.er1 >conftest.err
30279 rm -f conftest.er1
30280 cat conftest.err >&5
30281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30282 (exit $ac_status); } && {
30283 test -z "$ac_c_werror_flag" ||
30284 test ! -s conftest.err
30285 } && test -s conftest.$ac_objext; then
30286 ac_header_compiler=yes
30287 else
30288 $as_echo "$as_me: failed program was:" >&5
30289 sed 's/^/| /' conftest.$ac_ext >&5
30290
30291 ac_header_compiler=no
30292 fi
30293
30294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30295 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30296 $as_echo "$ac_header_compiler" >&6; }
30297
30298 # Is the header present?
30299 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
30300 $as_echo_n "checking X11/xpm.h presence... " >&6; }
30301 cat >conftest.$ac_ext <<_ACEOF
30302 /* confdefs.h. */
30303 _ACEOF
30304 cat confdefs.h >>conftest.$ac_ext
30305 cat >>conftest.$ac_ext <<_ACEOF
30306 /* end confdefs.h. */
30307 @%:@include <X11/xpm.h>
30308 _ACEOF
30309 if { (ac_try="$ac_cpp conftest.$ac_ext"
30310 case "(($ac_try" in
30311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30312 *) ac_try_echo=$ac_try;;
30313 esac
30314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30315 $as_echo "$ac_try_echo") >&5
30316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30317 ac_status=$?
30318 grep -v '^ *+' conftest.er1 >conftest.err
30319 rm -f conftest.er1
30320 cat conftest.err >&5
30321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30322 (exit $ac_status); } >/dev/null && {
30323 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30324 test ! -s conftest.err
30325 }; then
30326 ac_header_preproc=yes
30327 else
30328 $as_echo "$as_me: failed program was:" >&5
30329 sed 's/^/| /' conftest.$ac_ext >&5
30330
30331 ac_header_preproc=no
30332 fi
30333
30334 rm -f conftest.err conftest.$ac_ext
30335 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30336 $as_echo "$ac_header_preproc" >&6; }
30337
30338 # So? What about this header?
30339 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30340 yes:no: )
30341 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
30342 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30343 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
30344 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
30345 ac_header_preproc=yes
30346 ;;
30347 no:yes:* )
30348 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
30349 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
30350 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
30351 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
30352 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
30353 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
30354 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
30355 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
30356 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
30357 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
30358 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
30359 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
30360
30361 ;;
30362 esac
30363 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
30364 $as_echo_n "checking for X11/xpm.h... " >&6; }
30365 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
30366 $as_echo_n "(cached) " >&6
30367 else
30368 ac_cv_header_X11_xpm_h=$ac_header_preproc
30369 fi
30370 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
30371 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
30372
30373 fi
30374 if test $ac_cv_header_X11_xpm_h = yes; then
30375
30376 cat >>confdefs.h <<\_ACEOF
30377 @%:@define HAVE_XPM /**/
30378 _ACEOF
30379
30380
30381 fi
30382
30383
30384 if test "${ac_cv_header_getopt_h+set}" = set; then
30385 { $as_echo "$as_me:$LINENO: checking for getopt.h" >&5
30386 $as_echo_n "checking for getopt.h... " >&6; }
30387 if test "${ac_cv_header_getopt_h+set}" = set; then
30388 $as_echo_n "(cached) " >&6
30389 fi
30390 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_getopt_h" >&5
30391 $as_echo "$ac_cv_header_getopt_h" >&6; }
30392 else
30393 # Is the header compilable?
30394 { $as_echo "$as_me:$LINENO: checking getopt.h usability" >&5
30395 $as_echo_n "checking getopt.h usability... " >&6; }
30396 cat >conftest.$ac_ext <<_ACEOF
30397 /* confdefs.h. */
30398 _ACEOF
30399 cat confdefs.h >>conftest.$ac_ext
30400 cat >>conftest.$ac_ext <<_ACEOF
30401 /* end confdefs.h. */
30402 $ac_includes_default
30403 @%:@include <getopt.h>
30404 _ACEOF
30405 rm -f conftest.$ac_objext
30406 if { (ac_try="$ac_compile"
30407 case "(($ac_try" in
30408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30409 *) ac_try_echo=$ac_try;;
30410 esac
30411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30412 $as_echo "$ac_try_echo") >&5
30413 (eval "$ac_compile") 2>conftest.er1
30414 ac_status=$?
30415 grep -v '^ *+' conftest.er1 >conftest.err
30416 rm -f conftest.er1
30417 cat conftest.err >&5
30418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30419 (exit $ac_status); } && {
30420 test -z "$ac_c_werror_flag" ||
30421 test ! -s conftest.err
30422 } && test -s conftest.$ac_objext; then
30423 ac_header_compiler=yes
30424 else
30425 $as_echo "$as_me: failed program was:" >&5
30426 sed 's/^/| /' conftest.$ac_ext >&5
30427
30428 ac_header_compiler=no
30429 fi
30430
30431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30432 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30433 $as_echo "$ac_header_compiler" >&6; }
30434
30435 # Is the header present?
30436 { $as_echo "$as_me:$LINENO: checking getopt.h presence" >&5
30437 $as_echo_n "checking getopt.h presence... " >&6; }
30438 cat >conftest.$ac_ext <<_ACEOF
30439 /* confdefs.h. */
30440 _ACEOF
30441 cat confdefs.h >>conftest.$ac_ext
30442 cat >>conftest.$ac_ext <<_ACEOF
30443 /* end confdefs.h. */
30444 @%:@include <getopt.h>
30445 _ACEOF
30446 if { (ac_try="$ac_cpp conftest.$ac_ext"
30447 case "(($ac_try" in
30448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30449 *) ac_try_echo=$ac_try;;
30450 esac
30451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30452 $as_echo "$ac_try_echo") >&5
30453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30454 ac_status=$?
30455 grep -v '^ *+' conftest.er1 >conftest.err
30456 rm -f conftest.er1
30457 cat conftest.err >&5
30458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30459 (exit $ac_status); } >/dev/null && {
30460 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30461 test ! -s conftest.err
30462 }; then
30463 ac_header_preproc=yes
30464 else
30465 $as_echo "$as_me: failed program was:" >&5
30466 sed 's/^/| /' conftest.$ac_ext >&5
30467
30468 ac_header_preproc=no
30469 fi
30470
30471 rm -f conftest.err conftest.$ac_ext
30472 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30473 $as_echo "$ac_header_preproc" >&6; }
30474
30475 # So? What about this header?
30476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30477 yes:no: )
30478 { $as_echo "$as_me:$LINENO: WARNING: getopt.h: accepted by the compiler, rejected by the preprocessor!" >&5
30479 $as_echo "$as_me: WARNING: getopt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30480 { $as_echo "$as_me:$LINENO: WARNING: getopt.h: proceeding with the compiler's result" >&5
30481 $as_echo "$as_me: WARNING: getopt.h: proceeding with the compiler's result" >&2;}
30482 ac_header_preproc=yes
30483 ;;
30484 no:yes:* )
30485 { $as_echo "$as_me:$LINENO: WARNING: getopt.h: present but cannot be compiled" >&5
30486 $as_echo "$as_me: WARNING: getopt.h: present but cannot be compiled" >&2;}
30487 { $as_echo "$as_me:$LINENO: WARNING: getopt.h: check for missing prerequisite headers?" >&5
30488 $as_echo "$as_me: WARNING: getopt.h: check for missing prerequisite headers?" >&2;}
30489 { $as_echo "$as_me:$LINENO: WARNING: getopt.h: see the Autoconf documentation" >&5
30490 $as_echo "$as_me: WARNING: getopt.h: see the Autoconf documentation" >&2;}
30491 { $as_echo "$as_me:$LINENO: WARNING: getopt.h: section \"Present But Cannot Be Compiled\"" >&5
30492 $as_echo "$as_me: WARNING: getopt.h: section \"Present But Cannot Be Compiled\"" >&2;}
30493 { $as_echo "$as_me:$LINENO: WARNING: getopt.h: proceeding with the preprocessor's result" >&5
30494 $as_echo "$as_me: WARNING: getopt.h: proceeding with the preprocessor's result" >&2;}
30495 { $as_echo "$as_me:$LINENO: WARNING: getopt.h: in the future, the compiler will take precedence" >&5
30496 $as_echo "$as_me: WARNING: getopt.h: in the future, the compiler will take precedence" >&2;}
30497
30498 ;;
30499 esac
30500 { $as_echo "$as_me:$LINENO: checking for getopt.h" >&5
30501 $as_echo_n "checking for getopt.h... " >&6; }
30502 if test "${ac_cv_header_getopt_h+set}" = set; then
30503 $as_echo_n "(cached) " >&6
30504 else
30505 ac_cv_header_getopt_h=$ac_header_preproc
30506 fi
30507 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_getopt_h" >&5
30508 $as_echo "$ac_cv_header_getopt_h" >&6; }
30509
30510 fi
30511 if test $ac_cv_header_getopt_h = yes; then
30512
30513 cat >>confdefs.h <<\_ACEOF
30514 @%:@define HAVE_GETOPT_H /**/
30515 _ACEOF
30516
30517
30518 fi
30519
30520
30521 if test "x${graphics_gd}" = "xyes" ; then
30522 save_CPPFLAGS=$CPPFLAGS
30523 save_LIBS=$LIBS
30524 LIBS="$GD_LIBS $LIBS"
30525 CPPFLAGS="$GD_CFLAGS $CPPFLAGS"
30526 cat >conftest.$ac_ext <<_ACEOF
30527 /* confdefs.h. */
30528 _ACEOF
30529 cat confdefs.h >>conftest.$ac_ext
30530 cat >>conftest.$ac_ext <<_ACEOF
30531 /* end confdefs.h. */
30532 #include <gd.h>
30533 int
30534 main ()
30535 {
30536 gdImageCreateFromPng(0);
30537 ;
30538 return 0;
30539 }
30540 _ACEOF
30541 rm -f conftest.$ac_objext conftest$ac_exeext
30542 if { (ac_try="$ac_link"
30543 case "(($ac_try" in
30544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30545 *) ac_try_echo=$ac_try;;
30546 esac
30547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30548 $as_echo "$ac_try_echo") >&5
30549 (eval "$ac_link") 2>conftest.er1
30550 ac_status=$?
30551 grep -v '^ *+' conftest.er1 >conftest.err
30552 rm -f conftest.er1
30553 cat conftest.err >&5
30554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30555 (exit $ac_status); } && {
30556 test -z "$ac_c_werror_flag" ||
30557 test ! -s conftest.err
30558 } && test -s conftest$ac_exeext && {
30559 test "$cross_compiling" = yes ||
30560 $as_test_x conftest$ac_exeext
30561 }; then
30562 { $as_echo "$as_me:$LINENO: result: yes" >&5
30563 $as_echo "yes" >&6; };
30564 cat >>confdefs.h <<\_ACEOF
30565 @%:@define HAVE_GRAPHICS_GD_PNG 1
30566 _ACEOF
30567
30568 else
30569 $as_echo "$as_me: failed program was:" >&5
30570 sed 's/^/| /' conftest.$ac_ext >&5
30571
30572 { $as_echo "$as_me:$LINENO: result: no" >&5
30573 $as_echo "no" >&6; }
30574 fi
30575
30576 rm -rf conftest.dSYM
30577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30578 conftest$ac_exeext conftest.$ac_ext
30579 CPPFLAGS=$save_CPPFLAGS
30580 LIBS=$save_LIBS
30581 fi
30582
30583 # gtk_drawing_area
30584 @%:@ Check whether --enable-graphics-gtk-drawing-area was given.
30585 if test "${enable_graphics_gtk_drawing_area+set}" = set; then
30586 enableval=$enable_graphics_gtk_drawing_area; graphics_gtk_drawing_area=$enableval;graphics_gtk_drawing_area_reason="configure parameter"
30587 fi
30588
30589 if test "x${graphics_gtk_drawing_area}" = "xyes"; then
30590 GRAPHICS_GTK_DRAWING_AREA_TRUE=
30591 GRAPHICS_GTK_DRAWING_AREA_FALSE='#'
30592 else
30593 GRAPHICS_GTK_DRAWING_AREA_TRUE='#'
30594 GRAPHICS_GTK_DRAWING_AREA_FALSE=
30595 fi
30596
30597 # null
30598 @%:@ Check whether --enable-graphics-null was given.
30599 if test "${enable_graphics_null+set}" = set; then
30600 enableval=$enable_graphics_null; graphics_null=$enableval;graphics_null_reason="configure parameter"
30601 fi
30602
30603 if test "x${graphics_null}" = "xyes"; then
30604 GRAPHICS_NULL_TRUE=
30605 GRAPHICS_NULL_FALSE='#'
30606 else
30607 GRAPHICS_NULL_TRUE='#'
30608 GRAPHICS_NULL_FALSE=
30609 fi
30610
30611 # win32
30612 @%:@ Check whether --enable-graphics-win32 was given.
30613 if test "${enable_graphics_win32+set}" = set; then
30614 enableval=$enable_graphics_win32; graphics_win32=$enableval;graphics_win32_reason="configure parameter"
30615 fi
30616
30617 if test "x${graphics_win32}" = "xyes"; then
30618 GRAPHICS_WIN32_TRUE=
30619 GRAPHICS_WIN32_FALSE='#'
30620 else
30621 GRAPHICS_WIN32_TRUE='#'
30622 GRAPHICS_WIN32_FALSE=
30623 fi
30624
30625 # qt_qpainter
30626 @%:@ Check whether --enable-graphics-qt-qpainter was given.
30627 if test "${enable_graphics_qt_qpainter+set}" = set; then
30628 enableval=$enable_graphics_qt_qpainter; graphics_qt_qpainter=$enableval;graphics_qt_qpainter_reason="configure parameter"
30629 fi
30630
30631 if test "x${graphics_qt_qpainter}" = "xyes" -a "x${QT_GUI_CFLAGS}" = "x" -a "x${QT_GUI_LIBS}" = "x"; then
30632
30633 pkg_failed=no
30634 { $as_echo "$as_me:$LINENO: checking for QT_GUI" >&5
30635 $as_echo_n "checking for QT_GUI... " >&6; }
30636
30637 if test -n "$PKG_CONFIG"; then
30638 if test -n "$QT_GUI_CFLAGS"; then
30639 pkg_cv_QT_GUI_CFLAGS="$QT_GUI_CFLAGS"
30640 else
30641 if test -n "$PKG_CONFIG" && \
30642 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"QtGui QtCore\"") >&5
30643 ($PKG_CONFIG --exists --print-errors "QtGui QtCore") 2>&5
30644 ac_status=$?
30645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30646 (exit $ac_status); }; then
30647 pkg_cv_QT_GUI_CFLAGS=`$PKG_CONFIG --cflags "QtGui QtCore" 2>/dev/null`
30648 else
30649 pkg_failed=yes
30650 fi
30651 fi
30652 else
30653 pkg_failed=untried
30654 fi
30655 if test -n "$PKG_CONFIG"; then
30656 if test -n "$QT_GUI_LIBS"; then
30657 pkg_cv_QT_GUI_LIBS="$QT_GUI_LIBS"
30658 else
30659 if test -n "$PKG_CONFIG" && \
30660 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"QtGui QtCore\"") >&5
30661 ($PKG_CONFIG --exists --print-errors "QtGui QtCore") 2>&5
30662 ac_status=$?
30663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30664 (exit $ac_status); }; then
30665 pkg_cv_QT_GUI_LIBS=`$PKG_CONFIG --libs "QtGui QtCore" 2>/dev/null`
30666 else
30667 pkg_failed=yes
30668 fi
30669 fi
30670 else
30671 pkg_failed=untried
30672 fi
30673
30674
30675
30676 if test $pkg_failed = yes; then
30677
30678 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30679 _pkg_short_errors_supported=yes
30680 else
30681 _pkg_short_errors_supported=no
30682 fi
30683 if test $_pkg_short_errors_supported = yes; then
30684 QT_GUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "QtGui QtCore"`
30685 else
30686 QT_GUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtGui QtCore"`
30687 fi
30688 # Put the nasty error message in config.log where it belongs
30689 echo "$QT_GUI_PKG_ERRORS" >&5
30690
30691 { $as_echo "$as_me:$LINENO: result: no" >&5
30692 $as_echo "no" >&6; }
30693 graphics_qt_qpainter=no;graphics_qt_qpainter_reason="Packages QtGui and/or QtCore missing"
30694 elif test $pkg_failed = untried; then
30695 graphics_qt_qpainter=no;graphics_qt_qpainter_reason="Packages QtGui and/or QtCore missing"
30696 else
30697 QT_GUI_CFLAGS=$pkg_cv_QT_GUI_CFLAGS
30698 QT_GUI_LIBS=$pkg_cv_QT_GUI_LIBS
30699 { $as_echo "$as_me:$LINENO: result: yes" >&5
30700 $as_echo "yes" >&6; }
30701 graphics_qt_qpainter=yes
30702 fi
30703 if test "x${graphics_qt_qpainter}" = "xno"; then
30704
30705 pkg_failed=no
30706 { $as_echo "$as_me:$LINENO: checking for QT_GUI" >&5
30707 $as_echo_n "checking for QT_GUI... " >&6; }
30708
30709 if test -n "$PKG_CONFIG"; then
30710 if test -n "$QT_GUI_CFLAGS"; then
30711 pkg_cv_QT_GUI_CFLAGS="$QT_GUI_CFLAGS"
30712 else
30713 if test -n "$PKG_CONFIG" && \
30714 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"qt-mt\"") >&5
30715 ($PKG_CONFIG --exists --print-errors "qt-mt") 2>&5
30716 ac_status=$?
30717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30718 (exit $ac_status); }; then
30719 pkg_cv_QT_GUI_CFLAGS=`$PKG_CONFIG --cflags "qt-mt" 2>/dev/null`
30720 else
30721 pkg_failed=yes
30722 fi
30723 fi
30724 else
30725 pkg_failed=untried
30726 fi
30727 if test -n "$PKG_CONFIG"; then
30728 if test -n "$QT_GUI_LIBS"; then
30729 pkg_cv_QT_GUI_LIBS="$QT_GUI_LIBS"
30730 else
30731 if test -n "$PKG_CONFIG" && \
30732 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"qt-mt\"") >&5
30733 ($PKG_CONFIG --exists --print-errors "qt-mt") 2>&5
30734 ac_status=$?
30735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30736 (exit $ac_status); }; then
30737 pkg_cv_QT_GUI_LIBS=`$PKG_CONFIG --libs "qt-mt" 2>/dev/null`
30738 else
30739 pkg_failed=yes
30740 fi
30741 fi
30742 else
30743 pkg_failed=untried
30744 fi
30745
30746
30747
30748 if test $pkg_failed = yes; then
30749
30750 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30751 _pkg_short_errors_supported=yes
30752 else
30753 _pkg_short_errors_supported=no
30754 fi
30755 if test $_pkg_short_errors_supported = yes; then
30756 QT_GUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "qt-mt"`
30757 else
30758 QT_GUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "qt-mt"`
30759 fi
30760 # Put the nasty error message in config.log where it belongs
30761 echo "$QT_GUI_PKG_ERRORS" >&5
30762
30763 { $as_echo "$as_me:$LINENO: result: no" >&5
30764 $as_echo "no" >&6; }
30765 graphics_qt_qpainter=no
30766 elif test $pkg_failed = untried; then
30767 graphics_qt_qpainter=no
30768 else
30769 QT_GUI_CFLAGS=$pkg_cv_QT_GUI_CFLAGS
30770 QT_GUI_LIBS=$pkg_cv_QT_GUI_LIBS
30771 { $as_echo "$as_me:$LINENO: result: yes" >&5
30772 $as_echo "yes" >&6; }
30773 graphics_qt_qpainter=yes;graphics_qt_qpainter_reason="Package qt-mt present"
30774 fi
30775 fi
30776 fi
30777 if test "x${graphics_qt_qpainter}" = "xyes" ; then
30778
30779 pkg_failed=no
30780 { $as_echo "$as_me:$LINENO: checking for QT_SVG" >&5
30781 $as_echo_n "checking for QT_SVG... " >&6; }
30782
30783 if test -n "$PKG_CONFIG"; then
30784 if test -n "$QT_SVG_CFLAGS"; then
30785 pkg_cv_QT_SVG_CFLAGS="$QT_SVG_CFLAGS"
30786 else
30787 if test -n "$PKG_CONFIG" && \
30788 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"QtSvg\"") >&5
30789 ($PKG_CONFIG --exists --print-errors "QtSvg") 2>&5
30790 ac_status=$?
30791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30792 (exit $ac_status); }; then
30793 pkg_cv_QT_SVG_CFLAGS=`$PKG_CONFIG --cflags "QtSvg" 2>/dev/null`
30794 else
30795 pkg_failed=yes
30796 fi
30797 fi
30798 else
30799 pkg_failed=untried
30800 fi
30801 if test -n "$PKG_CONFIG"; then
30802 if test -n "$QT_SVG_LIBS"; then
30803 pkg_cv_QT_SVG_LIBS="$QT_SVG_LIBS"
30804 else
30805 if test -n "$PKG_CONFIG" && \
30806 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"QtSvg\"") >&5
30807 ($PKG_CONFIG --exists --print-errors "QtSvg") 2>&5
30808 ac_status=$?
30809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30810 (exit $ac_status); }; then
30811 pkg_cv_QT_SVG_LIBS=`$PKG_CONFIG --libs "QtSvg" 2>/dev/null`
30812 else
30813 pkg_failed=yes
30814 fi
30815 fi
30816 else
30817 pkg_failed=untried
30818 fi
30819
30820
30821
30822 if test $pkg_failed = yes; then
30823
30824 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30825 _pkg_short_errors_supported=yes
30826 else
30827 _pkg_short_errors_supported=no
30828 fi
30829 if test $_pkg_short_errors_supported = yes; then
30830 QT_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "QtSvg"`
30831 else
30832 QT_SVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtSvg"`
30833 fi
30834 # Put the nasty error message in config.log where it belongs
30835 echo "$QT_SVG_PKG_ERRORS" >&5
30836
30837 { $as_echo "$as_me:$LINENO: result: no" >&5
30838 $as_echo "no" >&6; }
30839 have_qt_svg=no
30840 elif test $pkg_failed = untried; then
30841 have_qt_svg=no
30842 else
30843 QT_SVG_CFLAGS=$pkg_cv_QT_SVG_CFLAGS
30844 QT_SVG_LIBS=$pkg_cv_QT_SVG_LIBS
30845 { $as_echo "$as_me:$LINENO: result: yes" >&5
30846 $as_echo "yes" >&6; }
30847 have_qt_svg=yes
30848 fi
30849 if test "x${have_qt_svg}" = "xyes"; then
30850
30851 cat >>confdefs.h <<\_ACEOF
30852 @%:@define HAVE_QT_SVG /**/
30853 _ACEOF
30854
30855 fi
30856 fi
30857 if test "x${graphics_qt_qpainter}" = "xyes" ; then
30858
30859 cat >>confdefs.h <<\_ACEOF
30860 @%:@define USE_GRAPICS_QT_QPAINTER 1
30861 _ACEOF
30862
30863 fi
30864
30865
30866
30867
30868 if test "x${graphics_qt_qpainter}" = "xyes"; then
30869 GRAPHICS_QT_QPAINTER_TRUE=
30870 GRAPHICS_QT_QPAINTER_FALSE='#'
30871 else
30872 GRAPHICS_QT_QPAINTER_TRUE='#'
30873 GRAPHICS_QT_QPAINTER_FALSE=
30874 fi
30875
30876 MOC=`$PKG_CONFIG QtGui --variable=moc_location`
30877 if test "x${MOC}" = "x"; then
30878 # Extract the first word of "moc", so it can be a program name with args.
30879 set dummy moc; ac_word=$2
30880 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30881 $as_echo_n "checking for $ac_word... " >&6; }
30882 if test "${ac_cv_prog_MOC+set}" = set; then
30883 $as_echo_n "(cached) " >&6
30884 else
30885 if test -n "$MOC"; then
30886 ac_cv_prog_MOC="$MOC" # Let the user override the test.
30887 else
30888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30889 for as_dir in $PATH
30890 do
30891 IFS=$as_save_IFS
30892 test -z "$as_dir" && as_dir=.
30893 for ac_exec_ext in '' $ac_executable_extensions; do
30894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30895 ac_cv_prog_MOC="moc"
30896 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30897 break 2
30898 fi
30899 done
30900 done
30901 IFS=$as_save_IFS
30902
30903 fi
30904 fi
30905 MOC=$ac_cv_prog_MOC
30906 if test -n "$MOC"; then
30907 { $as_echo "$as_me:$LINENO: result: $MOC" >&5
30908 $as_echo "$MOC" >&6; }
30909 else
30910 { $as_echo "$as_me:$LINENO: result: no" >&5
30911 $as_echo "no" >&6; }
30912 fi
30913
30914
30915 fi
30916
30917
30918
30919 ## map
30920 # binfile
30921 @%:@ Check whether --enable-map-binfile was given.
30922 if test "${enable_map_binfile+set}" = set; then
30923 enableval=$enable_map_binfile; map_binfile=$enableval;map_binfile_reason="configure parameter"
30924 fi
30925
30926 if test "x${map_binfile}" = "xyes"; then
30927 MAP_BINFILE_TRUE=
30928 MAP_BINFILE_FALSE='#'
30929 else
30930 MAP_BINFILE_TRUE='#'
30931 MAP_BINFILE_FALSE=
30932 fi
30933
30934 # filter
30935 @%:@ Check whether --enable-map-filter was given.
30936 if test "${enable_map_filter+set}" = set; then
30937 enableval=$enable_map_filter; map_filter=$enableval;map_filter_reason="configure parameter"
30938 fi
30939
30940 if test "x${map_filter}" = "xyes"; then
30941 MAP_FILTER_TRUE=
30942 MAP_FILTER_FALSE='#'
30943 else
30944 MAP_FILTER_TRUE='#'
30945 MAP_FILTER_FALSE=
30946 fi
30947
30948 # mg
30949 @%:@ Check whether --enable-map-mg was given.
30950 if test "${enable_map_mg+set}" = set; then
30951 enableval=$enable_map_mg; map_mg=$enableval;map_mg_reason="configure parameter"
30952 fi
30953
30954 if test "x${map_mg}" = "xyes"; then
30955 MAP_MG_TRUE=
30956 MAP_MG_FALSE='#'
30957 else
30958 MAP_MG_TRUE='#'
30959 MAP_MG_FALSE=
30960 fi
30961
30962 # shapefile
30963 @%:@ Check whether --enable-map-shapefile was given.
30964 if test "${enable_map_shapefile+set}" = set; then
30965 enableval=$enable_map_shapefile; map_shapefile=$enableval;map_shapefile_reason="configure parameter"
30966 fi
30967
30968 if test "x${map_shapefile}" = "xyes"; then
30969 MAP_SHAPEFILE_TRUE=
30970 MAP_SHAPEFILE_FALSE='#'
30971 else
30972 MAP_SHAPEFILE_TRUE='#'
30973 MAP_SHAPEFILE_FALSE=
30974 fi
30975
30976 # textfile
30977 @%:@ Check whether --enable-map-textfile was given.
30978 if test "${enable_map_textfile+set}" = set; then
30979 enableval=$enable_map_textfile; map_textfile=$enableval;map_textfile_reason="configure parameter"
30980 fi
30981
30982 if test "x${map_textfile}" = "xyes"; then
30983 MAP_TEXTFILE_TRUE=
30984 MAP_TEXTFILE_FALSE='#'
30985 else
30986 MAP_TEXTFILE_TRUE='#'
30987 MAP_TEXTFILE_FALSE=
30988 fi
30989
30990 # csv
30991 @%:@ Check whether --enable-map-csv was given.
30992 if test "${enable_map_csv+set}" = set; then
30993 enableval=$enable_map_csv; map_csv=$enableval;map_csv_reason="configure parameter"
30994 fi
30995
30996 if test "x${map_csv}" = "xyes"; then
30997 MAP_CSV_TRUE=
30998 MAP_CSV_FALSE='#'
30999 else
31000 MAP_CSV_TRUE='#'
31001 MAP_CSV_FALSE=
31002 fi
31003
31004
31005 ## osd
31006 # core
31007 @%:@ Check whether --enable-osd-core was given.
31008 if test "${enable_osd_core+set}" = set; then
31009 enableval=$enable_osd_core; osd_core=$enableval;osd_core_reason="configure parameter"
31010 fi
31011
31012 if test "x${osd_core}" = "xyes"; then
31013 OSD_CORE_TRUE=
31014 OSD_CORE_FALSE='#'
31015 else
31016 OSD_CORE_TRUE='#'
31017 OSD_CORE_FALSE=
31018 fi
31019
31020
31021 ## gui
31022 # gtk
31023 @%:@ Check whether --enable-gui-gtk was given.
31024 if test "${enable_gui_gtk+set}" = set; then
31025 enableval=$enable_gui_gtk; gui_gtk=$enableval
31026 fi
31027
31028 if test "x${gui_gtk}" = "xyes"; then
31029 GUI_GTK_TRUE=
31030 GUI_GTK_FALSE='#'
31031 else
31032 GUI_GTK_TRUE='#'
31033 GUI_GTK_FALSE=
31034 fi
31035
31036 # internal
31037 @%:@ Check whether --enable-gui-internal was given.
31038 if test "${enable_gui_internal+set}" = set; then
31039 enableval=$enable_gui_internal; gui_internal=$enableval;gui_internal_reason="configure parameter"
31040 fi
31041
31042 if test "x${gui_internal}" = "xyes"; then
31043 GUI_INTERNAL_TRUE=
31044 GUI_INTERNAL_FALSE='#'
31045 else
31046 GUI_INTERNAL_TRUE='#'
31047 GUI_INTERNAL_FALSE=
31048 fi
31049
31050 # win32
31051 @%:@ Check whether --enable-gui-win32 was given.
31052 if test "${enable_gui_win32+set}" = set; then
31053 enableval=$enable_gui_win32; gui_win32=$enableval;gui_win32_reason="configure parameter"
31054 fi
31055
31056 if test "x${gui_win32}" = "xyes"; then
31057 GUI_WIN32_TRUE=
31058 GUI_WIN32_FALSE='#'
31059 else
31060 GUI_WIN32_TRUE='#'
31061 GUI_WIN32_FALSE=
31062 fi
31063
31064 # qml
31065 @%:@ Check whether --enable-gui-qml was given.
31066 if test "${enable_gui_qml+set}" = set; then
31067 enableval=$enable_gui_qml; gui_qml=$enableval;gui_qml_reason="configure parameter"
31068 fi
31069
31070 if test "x${gui_qml}" = "xyes" -a "x${QT_GUI_CFLAGS}" = "x" -a "x${QT_GUI_LIBS}" = "x"; then
31071
31072 pkg_failed=no
31073 { $as_echo "$as_me:$LINENO: checking for QT_GUI" >&5
31074 $as_echo_n "checking for QT_GUI... " >&6; }
31075
31076 if test -n "$PKG_CONFIG"; then
31077 if test -n "$QT_GUI_CFLAGS"; then
31078 pkg_cv_QT_GUI_CFLAGS="$QT_GUI_CFLAGS"
31079 else
31080 if test -n "$PKG_CONFIG" && \
31081 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"QtGui QtCore\"") >&5
31082 ($PKG_CONFIG --exists --print-errors "QtGui QtCore") 2>&5
31083 ac_status=$?
31084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31085 (exit $ac_status); }; then
31086 pkg_cv_QT_GUI_CFLAGS=`$PKG_CONFIG --cflags "QtGui QtCore" 2>/dev/null`
31087 else
31088 pkg_failed=yes
31089 fi
31090 fi
31091 else
31092 pkg_failed=untried
31093 fi
31094 if test -n "$PKG_CONFIG"; then
31095 if test -n "$QT_GUI_LIBS"; then
31096 pkg_cv_QT_GUI_LIBS="$QT_GUI_LIBS"
31097 else
31098 if test -n "$PKG_CONFIG" && \
31099 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"QtGui QtCore\"") >&5
31100 ($PKG_CONFIG --exists --print-errors "QtGui QtCore") 2>&5
31101 ac_status=$?
31102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31103 (exit $ac_status); }; then
31104 pkg_cv_QT_GUI_LIBS=`$PKG_CONFIG --libs "QtGui QtCore" 2>/dev/null`
31105 else
31106 pkg_failed=yes
31107 fi
31108 fi
31109 else
31110 pkg_failed=untried
31111 fi
31112
31113
31114
31115 if test $pkg_failed = yes; then
31116
31117 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31118 _pkg_short_errors_supported=yes
31119 else
31120 _pkg_short_errors_supported=no
31121 fi
31122 if test $_pkg_short_errors_supported = yes; then
31123 QT_GUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "QtGui QtCore"`
31124 else
31125 QT_GUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtGui QtCore"`
31126 fi
31127 # Put the nasty error message in config.log where it belongs
31128 echo "$QT_GUI_PKG_ERRORS" >&5
31129
31130 { $as_echo "$as_me:$LINENO: result: no" >&5
31131 $as_echo "no" >&6; }
31132 gui_qml=no;gui_qml_reason="Packages QtGui and/or QtCore are missing"
31133 elif test $pkg_failed = untried; then
31134 gui_qml=no;gui_qml_reason="Packages QtGui and/or QtCore are missing"
31135 else
31136 QT_GUI_CFLAGS=$pkg_cv_QT_GUI_CFLAGS
31137 QT_GUI_LIBS=$pkg_cv_QT_GUI_LIBS
31138 { $as_echo "$as_me:$LINENO: result: yes" >&5
31139 $as_echo "yes" >&6; }
31140 :
31141 fi
31142 fi
31143 if test "x${gui_qml}" = "xyes" -a "x${QT_XML_CFLAGS}" = "x" -a "x${QT_XML_LIBS}" = "x"; then
31144
31145 pkg_failed=no
31146 { $as_echo "$as_me:$LINENO: checking for QT_XML" >&5
31147 $as_echo_n "checking for QT_XML... " >&6; }
31148
31149 if test -n "$PKG_CONFIG"; then
31150 if test -n "$QT_XML_CFLAGS"; then
31151 pkg_cv_QT_XML_CFLAGS="$QT_XML_CFLAGS"
31152 else
31153 if test -n "$PKG_CONFIG" && \
31154 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"QtXml\"") >&5
31155 ($PKG_CONFIG --exists --print-errors "QtXml") 2>&5
31156 ac_status=$?
31157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31158 (exit $ac_status); }; then
31159 pkg_cv_QT_XML_CFLAGS=`$PKG_CONFIG --cflags "QtXml" 2>/dev/null`
31160 else
31161 pkg_failed=yes
31162 fi
31163 fi
31164 else
31165 pkg_failed=untried
31166 fi
31167 if test -n "$PKG_CONFIG"; then
31168 if test -n "$QT_XML_LIBS"; then
31169 pkg_cv_QT_XML_LIBS="$QT_XML_LIBS"
31170 else
31171 if test -n "$PKG_CONFIG" && \
31172 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"QtXml\"") >&5
31173 ($PKG_CONFIG --exists --print-errors "QtXml") 2>&5
31174 ac_status=$?
31175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31176 (exit $ac_status); }; then
31177 pkg_cv_QT_XML_LIBS=`$PKG_CONFIG --libs "QtXml" 2>/dev/null`
31178 else
31179 pkg_failed=yes
31180 fi
31181 fi
31182 else
31183 pkg_failed=untried
31184 fi
31185
31186
31187
31188 if test $pkg_failed = yes; then
31189
31190 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31191 _pkg_short_errors_supported=yes
31192 else
31193 _pkg_short_errors_supported=no
31194 fi
31195 if test $_pkg_short_errors_supported = yes; then
31196 QT_XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "QtXml"`
31197 else
31198 QT_XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtXml"`
31199 fi
31200 # Put the nasty error message in config.log where it belongs
31201 echo "$QT_XML_PKG_ERRORS" >&5
31202
31203 { $as_echo "$as_me:$LINENO: result: no" >&5
31204 $as_echo "no" >&6; }
31205 gui_qml=no;gui_qml_reason="Package QtXml is missing"
31206 elif test $pkg_failed = untried; then
31207 gui_qml=no;gui_qml_reason="Package QtXml is missing"
31208 else
31209 QT_XML_CFLAGS=$pkg_cv_QT_XML_CFLAGS
31210 QT_XML_LIBS=$pkg_cv_QT_XML_LIBS
31211 { $as_echo "$as_me:$LINENO: result: yes" >&5
31212 $as_echo "yes" >&6; }
31213 :
31214 fi
31215 fi
31216 if test "x${gui_qml}" = "xyes" -a "x${QT_DECLARATIVE_CFLAGS}" = "x" -a "x${QT_DECLARATIVE_LIBS}" = "x"; then
31217
31218 pkg_failed=no
31219 { $as_echo "$as_me:$LINENO: checking for QT_DECLARATIVE" >&5
31220 $as_echo_n "checking for QT_DECLARATIVE... " >&6; }
31221
31222 if test -n "$PKG_CONFIG"; then
31223 if test -n "$QT_DECLARATIVE_CFLAGS"; then
31224 pkg_cv_QT_DECLARATIVE_CFLAGS="$QT_DECLARATIVE_CFLAGS"
31225 else
31226 if test -n "$PKG_CONFIG" && \
31227 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"QtDeclarative >= 4.6.0 \"") >&5
31228 ($PKG_CONFIG --exists --print-errors "QtDeclarative >= 4.6.0 ") 2>&5
31229 ac_status=$?
31230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31231 (exit $ac_status); }; then
31232 pkg_cv_QT_DECLARATIVE_CFLAGS=`$PKG_CONFIG --cflags "QtDeclarative >= 4.6.0 " 2>/dev/null`
31233 else
31234 pkg_failed=yes
31235 fi
31236 fi
31237 else
31238 pkg_failed=untried
31239 fi
31240 if test -n "$PKG_CONFIG"; then
31241 if test -n "$QT_DECLARATIVE_LIBS"; then
31242 pkg_cv_QT_DECLARATIVE_LIBS="$QT_DECLARATIVE_LIBS"
31243 else
31244 if test -n "$PKG_CONFIG" && \
31245 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"QtDeclarative >= 4.6.0 \"") >&5
31246 ($PKG_CONFIG --exists --print-errors "QtDeclarative >= 4.6.0 ") 2>&5
31247 ac_status=$?
31248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31249 (exit $ac_status); }; then
31250 pkg_cv_QT_DECLARATIVE_LIBS=`$PKG_CONFIG --libs "QtDeclarative >= 4.6.0 " 2>/dev/null`
31251 else
31252 pkg_failed=yes
31253 fi
31254 fi
31255 else
31256 pkg_failed=untried
31257 fi
31258
31259
31260
31261 if test $pkg_failed = yes; then
31262
31263 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31264 _pkg_short_errors_supported=yes
31265 else
31266 _pkg_short_errors_supported=no
31267 fi
31268 if test $_pkg_short_errors_supported = yes; then
31269 QT_DECLARATIVE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "QtDeclarative >= 4.6.0 "`
31270 else
31271 QT_DECLARATIVE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtDeclarative >= 4.6.0 "`
31272 fi
31273 # Put the nasty error message in config.log where it belongs
31274 echo "$QT_DECLARATIVE_PKG_ERRORS" >&5
31275
31276 { $as_echo "$as_me:$LINENO: result: no" >&5
31277 $as_echo "no" >&6; }
31278 gui_qml=no;gui_qml_reason="Packages QtDeclarative is missing"
31279 elif test $pkg_failed = untried; then
31280 gui_qml=no;gui_qml_reason="Packages QtDeclarative is missing"
31281 else
31282 QT_DECLARATIVE_CFLAGS=$pkg_cv_QT_DECLARATIVE_CFLAGS
31283 QT_DECLARATIVE_LIBS=$pkg_cv_QT_DECLARATIVE_LIBS
31284 { $as_echo "$as_me:$LINENO: result: yes" >&5
31285 $as_echo "yes" >&6; }
31286 :
31287 fi
31288 fi
31289 if test "x${gui_qml}" = "xyes" ; then
31290
31291 cat >>confdefs.h <<\_ACEOF
31292 @%:@define USE_GUI_QML 1
31293 _ACEOF
31294
31295 fi
31296
31297
31298
31299
31300
31301
31302 if test "x${gui_qml}" = "xyes"; then
31303 GUI_QML_TRUE=
31304 GUI_QML_FALSE='#'
31305 else
31306 GUI_QML_TRUE='#'
31307 GUI_QML_FALSE=
31308 fi
31309
31310
31311 ## plugins
31312 # pedestrian
31313 @%:@ Check whether --enable-plugin-pedestrian was given.
31314 if test "${enable_plugin_pedestrian+set}" = set; then
31315 enableval=$enable_plugin_pedestrian; plugin_pedestrian=$enableval;plugin_pedestrian_reason="configure parameter"
31316 fi
31317
31318 if test "x${plugin_pedestrian}" = "xyes"; then
31319 PLUGIN_PEDESTRIAN_TRUE=
31320 PLUGIN_PEDESTRIAN_FALSE='#'
31321 else
31322 PLUGIN_PEDESTRIAN_TRUE='#'
31323 PLUGIN_PEDESTRIAN_FALSE=
31324 fi
31325
31326
31327 ## routing
31328 @%:@ Check whether --enable-routing was given.
31329 if test "${enable_routing+set}" = set; then
31330 enableval=$enable_routing; routing=$enableval;routing_reason="configure parameter"
31331 fi
31332
31333 if test "x${routing}" = "xyes"; then
31334 ROUTING_TRUE=
31335 ROUTING_FALSE='#'
31336 else
31337 ROUTING_TRUE='#'
31338 ROUTING_FALSE=
31339 fi
31340
31341 if test "x$routing" = "xyes"; then
31342
31343 cat >>confdefs.h <<\_ACEOF
31344 @%:@define USE_ROUTING 1
31345 _ACEOF
31346
31347 fi
31348
31349 ## speech
31350 # android
31351 @%:@ Check whether --enable-speech-android was given.
31352 if test "${enable_speech_android+set}" = set; then
31353 enableval=$enable_speech_android; speech_android=$enableval;speech_android_reason="configure parameter"
31354 fi
31355
31356 if test "x${speech_android}" = "xyes"; then
31357 SPEECH_ANDROID_TRUE=
31358 SPEECH_ANDROID_FALSE='#'
31359 else
31360 SPEECH_ANDROID_TRUE='#'
31361 SPEECH_ANDROID_FALSE=
31362 fi
31363
31364 # cmdline
31365 @%:@ Check whether --enable-speech-cmdline was given.
31366 if test "${enable_speech_cmdline+set}" = set; then
31367 enableval=$enable_speech_cmdline; speech_cmdline=$enableval;speech_cmdline_reason="configure parameter"
31368 fi
31369
31370 if test "x${speech_cmdline}" = "xyes"; then
31371 SPEECH_CMDLINE_TRUE=
31372 SPEECH_CMDLINE_FALSE='#'
31373 else
31374 SPEECH_CMDLINE_TRUE='#'
31375 SPEECH_CMDLINE_FALSE=
31376 fi
31377
31378 # espeak
31379 @%:@ Check whether --enable-speech-espeak was given.
31380 if test "${enable_speech_espeak+set}" = set; then
31381 enableval=$enable_speech_espeak; speech_espeak=$enableval;speech_espeak_reason="configure parameter"
31382 fi
31383
31384 if test "x${speech_espeak}" = "xyes"; then
31385 SPEECH_ESPEAK_TRUE=
31386 SPEECH_ESPEAK_FALSE='#'
31387 else
31388 SPEECH_ESPEAK_TRUE='#'
31389 SPEECH_ESPEAK_FALSE=
31390 fi
31391
31392 # speech-dispatcher
31393 @%:@ Check whether --enable-speech-speech-dispatcher was given.
31394 if test "${enable_speech_speech_dispatcher+set}" = set; then
31395 enableval=$enable_speech_speech_dispatcher; speech_speech_dispatcher=$enableval;speech_speech_dispatcher_reason="configure parameter"
31396 fi
31397
31398 if test "x$speech_speech_dispatcher" = "xyes"; then
31399 if test "${ac_cv_header_libspeechd_h+set}" = set; then
31400 { $as_echo "$as_me:$LINENO: checking for libspeechd.h" >&5
31401 $as_echo_n "checking for libspeechd.h... " >&6; }
31402 if test "${ac_cv_header_libspeechd_h+set}" = set; then
31403 $as_echo_n "(cached) " >&6
31404 fi
31405 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libspeechd_h" >&5
31406 $as_echo "$ac_cv_header_libspeechd_h" >&6; }
31407 else
31408 # Is the header compilable?
31409 { $as_echo "$as_me:$LINENO: checking libspeechd.h usability" >&5
31410 $as_echo_n "checking libspeechd.h usability... " >&6; }
31411 cat >conftest.$ac_ext <<_ACEOF
31412 /* confdefs.h. */
31413 _ACEOF
31414 cat confdefs.h >>conftest.$ac_ext
31415 cat >>conftest.$ac_ext <<_ACEOF
31416 /* end confdefs.h. */
31417 $ac_includes_default
31418 @%:@include <libspeechd.h>
31419 _ACEOF
31420 rm -f conftest.$ac_objext
31421 if { (ac_try="$ac_compile"
31422 case "(($ac_try" in
31423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31424 *) ac_try_echo=$ac_try;;
31425 esac
31426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31427 $as_echo "$ac_try_echo") >&5
31428 (eval "$ac_compile") 2>conftest.er1
31429 ac_status=$?
31430 grep -v '^ *+' conftest.er1 >conftest.err
31431 rm -f conftest.er1
31432 cat conftest.err >&5
31433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31434 (exit $ac_status); } && {
31435 test -z "$ac_c_werror_flag" ||
31436 test ! -s conftest.err
31437 } && test -s conftest.$ac_objext; then
31438 ac_header_compiler=yes
31439 else
31440 $as_echo "$as_me: failed program was:" >&5
31441 sed 's/^/| /' conftest.$ac_ext >&5
31442
31443 ac_header_compiler=no
31444 fi
31445
31446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31447 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31448 $as_echo "$ac_header_compiler" >&6; }
31449
31450 # Is the header present?
31451 { $as_echo "$as_me:$LINENO: checking libspeechd.h presence" >&5
31452 $as_echo_n "checking libspeechd.h presence... " >&6; }
31453 cat >conftest.$ac_ext <<_ACEOF
31454 /* confdefs.h. */
31455 _ACEOF
31456 cat confdefs.h >>conftest.$ac_ext
31457 cat >>conftest.$ac_ext <<_ACEOF
31458 /* end confdefs.h. */
31459 @%:@include <libspeechd.h>
31460 _ACEOF
31461 if { (ac_try="$ac_cpp conftest.$ac_ext"
31462 case "(($ac_try" in
31463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31464 *) ac_try_echo=$ac_try;;
31465 esac
31466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31467 $as_echo "$ac_try_echo") >&5
31468 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31469 ac_status=$?
31470 grep -v '^ *+' conftest.er1 >conftest.err
31471 rm -f conftest.er1
31472 cat conftest.err >&5
31473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31474 (exit $ac_status); } >/dev/null && {
31475 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31476 test ! -s conftest.err
31477 }; then
31478 ac_header_preproc=yes
31479 else
31480 $as_echo "$as_me: failed program was:" >&5
31481 sed 's/^/| /' conftest.$ac_ext >&5
31482
31483 ac_header_preproc=no
31484 fi
31485
31486 rm -f conftest.err conftest.$ac_ext
31487 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31488 $as_echo "$ac_header_preproc" >&6; }
31489
31490 # So? What about this header?
31491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31492 yes:no: )
31493 { $as_echo "$as_me:$LINENO: WARNING: libspeechd.h: accepted by the compiler, rejected by the preprocessor!" >&5
31494 $as_echo "$as_me: WARNING: libspeechd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31495 { $as_echo "$as_me:$LINENO: WARNING: libspeechd.h: proceeding with the compiler's result" >&5
31496 $as_echo "$as_me: WARNING: libspeechd.h: proceeding with the compiler's result" >&2;}
31497 ac_header_preproc=yes
31498 ;;
31499 no:yes:* )
31500 { $as_echo "$as_me:$LINENO: WARNING: libspeechd.h: present but cannot be compiled" >&5
31501 $as_echo "$as_me: WARNING: libspeechd.h: present but cannot be compiled" >&2;}
31502 { $as_echo "$as_me:$LINENO: WARNING: libspeechd.h: check for missing prerequisite headers?" >&5
31503 $as_echo "$as_me: WARNING: libspeechd.h: check for missing prerequisite headers?" >&2;}
31504 { $as_echo "$as_me:$LINENO: WARNING: libspeechd.h: see the Autoconf documentation" >&5
31505 $as_echo "$as_me: WARNING: libspeechd.h: see the Autoconf documentation" >&2;}
31506 { $as_echo "$as_me:$LINENO: WARNING: libspeechd.h: section \"Present But Cannot Be Compiled\"" >&5
31507 $as_echo "$as_me: WARNING: libspeechd.h: section \"Present But Cannot Be Compiled\"" >&2;}
31508 { $as_echo "$as_me:$LINENO: WARNING: libspeechd.h: proceeding with the preprocessor's result" >&5
31509 $as_echo "$as_me: WARNING: libspeechd.h: proceeding with the preprocessor's result" >&2;}
31510 { $as_echo "$as_me:$LINENO: WARNING: libspeechd.h: in the future, the compiler will take precedence" >&5
31511 $as_echo "$as_me: WARNING: libspeechd.h: in the future, the compiler will take precedence" >&2;}
31512
31513 ;;
31514 esac
31515 { $as_echo "$as_me:$LINENO: checking for libspeechd.h" >&5
31516 $as_echo_n "checking for libspeechd.h... " >&6; }
31517 if test "${ac_cv_header_libspeechd_h+set}" = set; then
31518 $as_echo_n "(cached) " >&6
31519 else
31520 ac_cv_header_libspeechd_h=$ac_header_preproc
31521 fi
31522 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libspeechd_h" >&5
31523 $as_echo "$ac_cv_header_libspeechd_h" >&6; }
31524
31525 fi
31526 if test $ac_cv_header_libspeechd_h = yes; then
31527
31528 cat >>confdefs.h <<\_ACEOF
31529 @%:@define HAVE_LIBSPEECHD /**/
31530 _ACEOF
31531 SPEECHD_LIBS="-lspeechd"
31532 else
31533 speech_speech_dispatcher=no; speech_speech_dispatcher_reason="libspeechd.h missing"
31534 fi
31535
31536
31537 fi
31538
31539
31540 if test "x${speech_speech_dispatcher}" = "xyes"; then
31541 SPEECH_SPEECH_DISPATCHER_TRUE=
31542 SPEECH_SPEECH_DISPATCHER_FALSE='#'
31543 else
31544 SPEECH_SPEECH_DISPATCHER_TRUE='#'
31545 SPEECH_SPEECH_DISPATCHER_FALSE=
31546 fi
31547
31548 if test "x${support_espeak}" = "xyes"; then
31549 SUPPORT_ESPEAK_TRUE=
31550 SUPPORT_ESPEAK_FALSE='#'
31551 else
31552 SUPPORT_ESPEAK_TRUE='#'
31553 SUPPORT_ESPEAK_FALSE=
31554 fi
31555
31556
31557 ## vehicle
31558 # android
31559 @%:@ Check whether --enable-vehicle-android was given.
31560 if test "${enable_vehicle_android+set}" = set; then
31561 enableval=$enable_vehicle_android; vehicle_android=$enableval;vehicle_android_reason="configure parameter"
31562 fi
31563
31564 if test "x${vehicle_android}" = "xyes"; then
31565 VEHICLE_ANDROID_TRUE=
31566 VEHICLE_ANDROID_FALSE='#'
31567 else
31568 VEHICLE_ANDROID_TRUE='#'
31569 VEHICLE_ANDROID_FALSE=
31570 fi
31571
31572 # demo
31573 @%:@ Check whether --enable-vehicle-demo was given.
31574 if test "${enable_vehicle_demo+set}" = set; then
31575 enableval=$enable_vehicle_demo; vehicle_demo=$enableval;vehicle_demo_reason="configure parameter"
31576 fi
31577
31578 if test "x${vehicle_demo}" = "xyes"; then
31579 VEHICLE_DEMO_TRUE=
31580 VEHICLE_DEMO_FALSE='#'
31581 else
31582 VEHICLE_DEMO_TRUE='#'
31583 VEHICLE_DEMO_FALSE=
31584 fi
31585
31586 # file
31587 @%:@ Check whether --enable-vehicle-file was given.
31588 if test "${enable_vehicle_file+set}" = set; then
31589 enableval=$enable_vehicle_file; vehicle_file=$enableval;vehicle_file_reason="configure parameter"
31590 fi
31591
31592 if test "x${vehicle_file}" = "xyes"; then
31593 VEHICLE_FILE_TRUE=
31594 VEHICLE_FILE_FALSE='#'
31595 else
31596 VEHICLE_FILE_TRUE='#'
31597 VEHICLE_FILE_FALSE=
31598 fi
31599
31600 # gpsd
31601 @%:@ Check whether --enable-vehicle-gpsd was given.
31602 if test "${enable_vehicle_gpsd+set}" = set; then
31603 enableval=$enable_vehicle_gpsd; vehicle_gpsd=$enableval;vehicle_gpsd_reason="configure parameter"
31604 fi
31605
31606 if test "x${vehicle_gpsd}" = xyes
31607 then
31608
31609 pkg_failed=no
31610 { $as_echo "$as_me:$LINENO: checking for GPSD" >&5
31611 $as_echo_n "checking for GPSD... " >&6; }
31612
31613 if test -n "$PKG_CONFIG"; then
31614 if test -n "$GPSD_CFLAGS"; then
31615 pkg_cv_GPSD_CFLAGS="$GPSD_CFLAGS"
31616 else
31617 if test -n "$PKG_CONFIG" && \
31618 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgps\"") >&5
31619 ($PKG_CONFIG --exists --print-errors "libgps") 2>&5
31620 ac_status=$?
31621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31622 (exit $ac_status); }; then
31623 pkg_cv_GPSD_CFLAGS=`$PKG_CONFIG --cflags "libgps" 2>/dev/null`
31624 else
31625 pkg_failed=yes
31626 fi
31627 fi
31628 else
31629 pkg_failed=untried
31630 fi
31631 if test -n "$PKG_CONFIG"; then
31632 if test -n "$GPSD_LIBS"; then
31633 pkg_cv_GPSD_LIBS="$GPSD_LIBS"
31634 else
31635 if test -n "$PKG_CONFIG" && \
31636 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgps\"") >&5
31637 ($PKG_CONFIG --exists --print-errors "libgps") 2>&5
31638 ac_status=$?
31639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31640 (exit $ac_status); }; then
31641 pkg_cv_GPSD_LIBS=`$PKG_CONFIG --libs "libgps" 2>/dev/null`
31642 else
31643 pkg_failed=yes
31644 fi
31645 fi
31646 else
31647 pkg_failed=untried
31648 fi
31649
31650
31651
31652 if test $pkg_failed = yes; then
31653
31654 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31655 _pkg_short_errors_supported=yes
31656 else
31657 _pkg_short_errors_supported=no
31658 fi
31659 if test $_pkg_short_errors_supported = yes; then
31660 GPSD_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgps"`
31661 else
31662 GPSD_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgps"`
31663 fi
31664 # Put the nasty error message in config.log where it belongs
31665 echo "$GPSD_PKG_ERRORS" >&5
31666
31667 { $as_echo "$as_me:$LINENO: result: no" >&5
31668 $as_echo "no" >&6; }
31669 have_libgps="no"
31670 elif test $pkg_failed = untried; then
31671 have_libgps="no"
31672 else
31673 GPSD_CFLAGS=$pkg_cv_GPSD_CFLAGS
31674 GPSD_LIBS=$pkg_cv_GPSD_LIBS
31675 { $as_echo "$as_me:$LINENO: result: yes" >&5
31676 $as_echo "yes" >&6; }
31677 have_libgps="yes"
31678 fi
31679 if test "x$have_libgps" = "xyes"; then
31680
31681 cat >>confdefs.h <<\_ACEOF
31682 @%:@define HAVE_LIBGPS /**/
31683 _ACEOF
31684
31685
31686 pkg_failed=no
31687 { $as_echo "$as_me:$LINENO: checking for LIBGPS19" >&5
31688 $as_echo_n "checking for LIBGPS19... " >&6; }
31689
31690 if test -n "$PKG_CONFIG"; then
31691 if test -n "$LIBGPS19_CFLAGS"; then
31692 pkg_cv_LIBGPS19_CFLAGS="$LIBGPS19_CFLAGS"
31693 else
31694 if test -n "$PKG_CONFIG" && \
31695 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgps >= 2.90\"") >&5
31696 ($PKG_CONFIG --exists --print-errors "libgps >= 2.90") 2>&5
31697 ac_status=$?
31698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31699 (exit $ac_status); }; then
31700 pkg_cv_LIBGPS19_CFLAGS=`$PKG_CONFIG --cflags "libgps >= 2.90" 2>/dev/null`
31701 else
31702 pkg_failed=yes
31703 fi
31704 fi
31705 else
31706 pkg_failed=untried
31707 fi
31708 if test -n "$PKG_CONFIG"; then
31709 if test -n "$LIBGPS19_LIBS"; then
31710 pkg_cv_LIBGPS19_LIBS="$LIBGPS19_LIBS"
31711 else
31712 if test -n "$PKG_CONFIG" && \
31713 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgps >= 2.90\"") >&5
31714 ($PKG_CONFIG --exists --print-errors "libgps >= 2.90") 2>&5
31715 ac_status=$?
31716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31717 (exit $ac_status); }; then
31718 pkg_cv_LIBGPS19_LIBS=`$PKG_CONFIG --libs "libgps >= 2.90" 2>/dev/null`
31719 else
31720 pkg_failed=yes
31721 fi
31722 fi
31723 else
31724 pkg_failed=untried
31725 fi
31726
31727
31728
31729 if test $pkg_failed = yes; then
31730
31731 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31732 _pkg_short_errors_supported=yes
31733 else
31734 _pkg_short_errors_supported=no
31735 fi
31736 if test $_pkg_short_errors_supported = yes; then
31737 LIBGPS19_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgps >= 2.90"`
31738 else
31739 LIBGPS19_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgps >= 2.90"`
31740 fi
31741 # Put the nasty error message in config.log where it belongs
31742 echo "$LIBGPS19_PKG_ERRORS" >&5
31743
31744 { $as_echo "$as_me:$LINENO: result: no" >&5
31745 $as_echo "no" >&6; }
31746 have_libgps19="no"
31747 elif test $pkg_failed = untried; then
31748 have_libgps19="no"
31749 else
31750 LIBGPS19_CFLAGS=$pkg_cv_LIBGPS19_CFLAGS
31751 LIBGPS19_LIBS=$pkg_cv_LIBGPS19_LIBS
31752 { $as_echo "$as_me:$LINENO: result: yes" >&5
31753 $as_echo "yes" >&6; }
31754 have_libgps19="yes"
31755 fi
31756 if test "x$have_libgps19" = "xyes"; then
31757
31758 cat >>confdefs.h <<\_ACEOF
31759 @%:@define HAVE_LIBGPS19 /**/
31760 _ACEOF
31761
31762 fi
31763 else
31764 if test "${ac_cv_header_gps_h+set}" = set; then
31765 { $as_echo "$as_me:$LINENO: checking for gps.h" >&5
31766 $as_echo_n "checking for gps.h... " >&6; }
31767 if test "${ac_cv_header_gps_h+set}" = set; then
31768 $as_echo_n "(cached) " >&6
31769 fi
31770 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gps_h" >&5
31771 $as_echo "$ac_cv_header_gps_h" >&6; }
31772 else
31773 # Is the header compilable?
31774 { $as_echo "$as_me:$LINENO: checking gps.h usability" >&5
31775 $as_echo_n "checking gps.h usability... " >&6; }
31776 cat >conftest.$ac_ext <<_ACEOF
31777 /* confdefs.h. */
31778 _ACEOF
31779 cat confdefs.h >>conftest.$ac_ext
31780 cat >>conftest.$ac_ext <<_ACEOF
31781 /* end confdefs.h. */
31782 $ac_includes_default
31783 @%:@include <gps.h>
31784 _ACEOF
31785 rm -f conftest.$ac_objext
31786 if { (ac_try="$ac_compile"
31787 case "(($ac_try" in
31788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31789 *) ac_try_echo=$ac_try;;
31790 esac
31791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31792 $as_echo "$ac_try_echo") >&5
31793 (eval "$ac_compile") 2>conftest.er1
31794 ac_status=$?
31795 grep -v '^ *+' conftest.er1 >conftest.err
31796 rm -f conftest.er1
31797 cat conftest.err >&5
31798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31799 (exit $ac_status); } && {
31800 test -z "$ac_c_werror_flag" ||
31801 test ! -s conftest.err
31802 } && test -s conftest.$ac_objext; then
31803 ac_header_compiler=yes
31804 else
31805 $as_echo "$as_me: failed program was:" >&5
31806 sed 's/^/| /' conftest.$ac_ext >&5
31807
31808 ac_header_compiler=no
31809 fi
31810
31811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31812 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31813 $as_echo "$ac_header_compiler" >&6; }
31814
31815 # Is the header present?
31816 { $as_echo "$as_me:$LINENO: checking gps.h presence" >&5
31817 $as_echo_n "checking gps.h presence... " >&6; }
31818 cat >conftest.$ac_ext <<_ACEOF
31819 /* confdefs.h. */
31820 _ACEOF
31821 cat confdefs.h >>conftest.$ac_ext
31822 cat >>conftest.$ac_ext <<_ACEOF
31823 /* end confdefs.h. */
31824 @%:@include <gps.h>
31825 _ACEOF
31826 if { (ac_try="$ac_cpp conftest.$ac_ext"
31827 case "(($ac_try" in
31828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31829 *) ac_try_echo=$ac_try;;
31830 esac
31831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31832 $as_echo "$ac_try_echo") >&5
31833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31834 ac_status=$?
31835 grep -v '^ *+' conftest.er1 >conftest.err
31836 rm -f conftest.er1
31837 cat conftest.err >&5
31838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31839 (exit $ac_status); } >/dev/null && {
31840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31841 test ! -s conftest.err
31842 }; then
31843 ac_header_preproc=yes
31844 else
31845 $as_echo "$as_me: failed program was:" >&5
31846 sed 's/^/| /' conftest.$ac_ext >&5
31847
31848 ac_header_preproc=no
31849 fi
31850
31851 rm -f conftest.err conftest.$ac_ext
31852 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31853 $as_echo "$ac_header_preproc" >&6; }
31854
31855 # So? What about this header?
31856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31857 yes:no: )
31858 { $as_echo "$as_me:$LINENO: WARNING: gps.h: accepted by the compiler, rejected by the preprocessor!" >&5
31859 $as_echo "$as_me: WARNING: gps.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31860 { $as_echo "$as_me:$LINENO: WARNING: gps.h: proceeding with the compiler's result" >&5
31861 $as_echo "$as_me: WARNING: gps.h: proceeding with the compiler's result" >&2;}
31862 ac_header_preproc=yes
31863 ;;
31864 no:yes:* )
31865 { $as_echo "$as_me:$LINENO: WARNING: gps.h: present but cannot be compiled" >&5
31866 $as_echo "$as_me: WARNING: gps.h: present but cannot be compiled" >&2;}
31867 { $as_echo "$as_me:$LINENO: WARNING: gps.h: check for missing prerequisite headers?" >&5
31868 $as_echo "$as_me: WARNING: gps.h: check for missing prerequisite headers?" >&2;}
31869 { $as_echo "$as_me:$LINENO: WARNING: gps.h: see the Autoconf documentation" >&5
31870 $as_echo "$as_me: WARNING: gps.h: see the Autoconf documentation" >&2;}
31871 { $as_echo "$as_me:$LINENO: WARNING: gps.h: section \"Present But Cannot Be Compiled\"" >&5
31872 $as_echo "$as_me: WARNING: gps.h: section \"Present But Cannot Be Compiled\"" >&2;}
31873 { $as_echo "$as_me:$LINENO: WARNING: gps.h: proceeding with the preprocessor's result" >&5
31874 $as_echo "$as_me: WARNING: gps.h: proceeding with the preprocessor's result" >&2;}
31875 { $as_echo "$as_me:$LINENO: WARNING: gps.h: in the future, the compiler will take precedence" >&5
31876 $as_echo "$as_me: WARNING: gps.h: in the future, the compiler will take precedence" >&2;}
31877
31878 ;;
31879 esac
31880 { $as_echo "$as_me:$LINENO: checking for gps.h" >&5
31881 $as_echo_n "checking for gps.h... " >&6; }
31882 if test "${ac_cv_header_gps_h+set}" = set; then
31883 $as_echo_n "(cached) " >&6
31884 else
31885 ac_cv_header_gps_h=$ac_header_preproc
31886 fi
31887 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gps_h" >&5
31888 $as_echo "$ac_cv_header_gps_h" >&6; }
31889
31890 fi
31891 if test $ac_cv_header_gps_h = yes; then
31892
31893 cat >>confdefs.h <<\_ACEOF
31894 @%:@define HAVE_LIBGPS /**/
31895 _ACEOF
31896 GPSD_LIBS="-lgps"
31897 else
31898 vehicle_gpsd=no; vehicle_gpsd_reason="no gps.h and no gpsd pkgconfig"
31899 fi
31900
31901
31902 fi
31903 fi
31904
31905
31906 if test "x${vehicle_gpsd}" = "xyes"; then
31907 VEHICLE_GPSD_TRUE=
31908 VEHICLE_GPSD_FALSE='#'
31909 else
31910 VEHICLE_GPSD_TRUE='#'
31911 VEHICLE_GPSD_FALSE=
31912 fi
31913
31914 # gypsy
31915 @%:@ Check whether --enable-vehicle-gypsy was given.
31916 if test "${enable_vehicle_gypsy+set}" = set; then
31917 enableval=$enable_vehicle_gypsy; vehicle_gypsy=$enableval;vehicle_gypsy_reason="configure parameter"
31918 fi
31919
31920 if test "x${vehicle_gypsy}" = "xyes"
31921 then
31922
31923 pkg_failed=no
31924 { $as_echo "$as_me:$LINENO: checking for GYPSY" >&5
31925 $as_echo_n "checking for GYPSY... " >&6; }
31926
31927 if test -n "$PKG_CONFIG"; then
31928 if test -n "$GYPSY_CFLAGS"; then
31929 pkg_cv_GYPSY_CFLAGS="$GYPSY_CFLAGS"
31930 else
31931 if test -n "$PKG_CONFIG" && \
31932 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gypsy\"") >&5
31933 ($PKG_CONFIG --exists --print-errors "gypsy") 2>&5
31934 ac_status=$?
31935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31936 (exit $ac_status); }; then
31937 pkg_cv_GYPSY_CFLAGS=`$PKG_CONFIG --cflags "gypsy" 2>/dev/null`
31938 else
31939 pkg_failed=yes
31940 fi
31941 fi
31942 else
31943 pkg_failed=untried
31944 fi
31945 if test -n "$PKG_CONFIG"; then
31946 if test -n "$GYPSY_LIBS"; then
31947 pkg_cv_GYPSY_LIBS="$GYPSY_LIBS"
31948 else
31949 if test -n "$PKG_CONFIG" && \
31950 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gypsy\"") >&5
31951 ($PKG_CONFIG --exists --print-errors "gypsy") 2>&5
31952 ac_status=$?
31953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31954 (exit $ac_status); }; then
31955 pkg_cv_GYPSY_LIBS=`$PKG_CONFIG --libs "gypsy" 2>/dev/null`
31956 else
31957 pkg_failed=yes
31958 fi
31959 fi
31960 else
31961 pkg_failed=untried
31962 fi
31963
31964
31965
31966 if test $pkg_failed = yes; then
31967
31968 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31969 _pkg_short_errors_supported=yes
31970 else
31971 _pkg_short_errors_supported=no
31972 fi
31973 if test $_pkg_short_errors_supported = yes; then
31974 GYPSY_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gypsy"`
31975 else
31976 GYPSY_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gypsy"`
31977 fi
31978 # Put the nasty error message in config.log where it belongs
31979 echo "$GYPSY_PKG_ERRORS" >&5
31980
31981 { $as_echo "$as_me:$LINENO: result: no" >&5
31982 $as_echo "no" >&6; }
31983 vehicle_gypsy=no;vehicle_gypsy_reason="package gypsy missing"
31984 elif test $pkg_failed = untried; then
31985 vehicle_gypsy=no;vehicle_gypsy_reason="package gypsy missing"
31986 else
31987 GYPSY_CFLAGS=$pkg_cv_GYPSY_CFLAGS
31988 GYPSY_LIBS=$pkg_cv_GYPSY_LIBS
31989 { $as_echo "$as_me:$LINENO: result: yes" >&5
31990 $as_echo "yes" >&6; }
31991 :
31992 fi
31993 fi
31994
31995
31996 if test "x${vehicle_gypsy}" = "xyes"; then
31997 VEHICLE_GYPSY_TRUE=
31998 VEHICLE_GYPSY_FALSE='#'
31999 else
32000 VEHICLE_GYPSY_TRUE='#'
32001 VEHICLE_GYPSY_FALSE=
32002 fi
32003
32004 # maemo
32005 @%:@ Check whether --enable-vehicle-maemo was given.
32006 if test "${enable_vehicle_maemo+set}" = set; then
32007 enableval=$enable_vehicle_maemo; vehicle_maemo=$enableval;vehicle_maemo_reason="configure parameter"
32008 fi
32009
32010 if test "x${vehicle_maemo}" = "xyes" ; then
32011
32012 pkg_failed=no
32013 { $as_echo "$as_me:$LINENO: checking for LIBLOCATION" >&5
32014 $as_echo_n "checking for LIBLOCATION... " >&6; }
32015
32016 if test -n "$PKG_CONFIG"; then
32017 if test -n "$LIBLOCATION_CFLAGS"; then
32018 pkg_cv_LIBLOCATION_CFLAGS="$LIBLOCATION_CFLAGS"
32019 else
32020 if test -n "$PKG_CONFIG" && \
32021 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"liblocation\"") >&5
32022 ($PKG_CONFIG --exists --print-errors "liblocation") 2>&5
32023 ac_status=$?
32024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32025 (exit $ac_status); }; then
32026 pkg_cv_LIBLOCATION_CFLAGS=`$PKG_CONFIG --cflags "liblocation" 2>/dev/null`
32027 else
32028 pkg_failed=yes
32029 fi
32030 fi
32031 else
32032 pkg_failed=untried
32033 fi
32034 if test -n "$PKG_CONFIG"; then
32035 if test -n "$LIBLOCATION_LIBS"; then
32036 pkg_cv_LIBLOCATION_LIBS="$LIBLOCATION_LIBS"
32037 else
32038 if test -n "$PKG_CONFIG" && \
32039 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"liblocation\"") >&5
32040 ($PKG_CONFIG --exists --print-errors "liblocation") 2>&5
32041 ac_status=$?
32042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32043 (exit $ac_status); }; then
32044 pkg_cv_LIBLOCATION_LIBS=`$PKG_CONFIG --libs "liblocation" 2>/dev/null`
32045 else
32046 pkg_failed=yes
32047 fi
32048 fi
32049 else
32050 pkg_failed=untried
32051 fi
32052
32053
32054
32055 if test $pkg_failed = yes; then
32056
32057 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32058 _pkg_short_errors_supported=yes
32059 else
32060 _pkg_short_errors_supported=no
32061 fi
32062 if test $_pkg_short_errors_supported = yes; then
32063 LIBLOCATION_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "liblocation"`
32064 else
32065 LIBLOCATION_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "liblocation"`
32066 fi
32067 # Put the nasty error message in config.log where it belongs
32068 echo "$LIBLOCATION_PKG_ERRORS" >&5
32069
32070 { $as_echo "$as_me:$LINENO: result: no" >&5
32071 $as_echo "no" >&6; }
32072
32073 { $as_echo "$as_me:$LINENO: result: no" >&5
32074 $as_echo "no" >&6; }
32075 vehicle_maemo=no
32076 vehicle_maemo_reason="no maemo location library found"
32077
32078 elif test $pkg_failed = untried; then
32079
32080 { $as_echo "$as_me:$LINENO: result: no" >&5
32081 $as_echo "no" >&6; }
32082 vehicle_maemo=no
32083 vehicle_maemo_reason="no maemo location library found"
32084
32085 else
32086 LIBLOCATION_CFLAGS=$pkg_cv_LIBLOCATION_CFLAGS
32087 LIBLOCATION_LIBS=$pkg_cv_LIBLOCATION_LIBS
32088 { $as_echo "$as_me:$LINENO: result: yes" >&5
32089 $as_echo "yes" >&6; }
32090
32091
32092
32093
32094 fi
32095 fi
32096 if test "x${vehicle_maemo}" = "xyes"; then
32097 VEHICLE_MAEMO_TRUE=
32098 VEHICLE_MAEMO_FALSE='#'
32099 else
32100 VEHICLE_MAEMO_TRUE='#'
32101 VEHICLE_MAEMO_FALSE=
32102 fi
32103
32104 # null
32105 @%:@ Check whether --enable-vehicle-null was given.
32106 if test "${enable_vehicle_null+set}" = set; then
32107 enableval=$enable_vehicle_null; vehicle_null=$enableval;vehicle_null_reason="configure parameter"
32108 fi
32109
32110 if test "x${vehicle_null}" = "xyes"; then
32111 VEHICLE_NULL_TRUE=
32112 VEHICLE_NULL_FALSE='#'
32113 else
32114 VEHICLE_NULL_TRUE='#'
32115 VEHICLE_NULL_FALSE=
32116 fi
32117
32118 # wince
32119 @%:@ Check whether --enable-vehicle-wince was given.
32120 if test "${enable_vehicle_wince+set}" = set; then
32121 enableval=$enable_vehicle_wince; vehicle_wince=$enableval;vehicle_wince_reason="configure parameter"
32122 fi
32123
32124 if test "x${vehicle_wince}" = "xyes"; then
32125 VEHICLE_WINCE_TRUE=
32126 VEHICLE_WINCE_FALSE='#'
32127 else
32128 VEHICLE_WINCE_TRUE='#'
32129 VEHICLE_WINCE_FALSE=
32130 fi
32131
32132 # iphone
32133 @%:@ Check whether --enable-vehicle-iphone was given.
32134 if test "${enable_vehicle_iphone+set}" = set; then
32135 enableval=$enable_vehicle_iphone; vehicle_iphone=$enableval;vehicle_iphone_reason="configure parameter"
32136 fi
32137
32138 if test "x${vehicle_iphone}" = "xyes"; then
32139 VEHICLE_IPHONE_TRUE=
32140 VEHICLE_IPHONE_FALSE='#'
32141 else
32142 VEHICLE_IPHONE_TRUE='#'
32143 VEHICLE_IPHONE_FALSE=
32144 fi
32145
32146 if test "x${vehicle_iphone}" = "xyes"
32147 then
32148 IPHONE_LIBS=-Wl,-framework,CoreLocation
32149 fi
32150
32151
32152 # webos
32153 @%:@ Check whether --enable-vehicle-webos was given.
32154 if test "${enable_vehicle_webos+set}" = set; then
32155 enableval=$enable_vehicle_webos; vehicle_webos=$enableval;vehicle_webos_reason="configure parameter"
32156 fi
32157
32158 if test "x${vehicle_webos}" = "xyes"; then
32159 VEHICLE_WEBOS_TRUE=
32160 VEHICLE_WEBOS_FALSE='#'
32161 else
32162 VEHICLE_WEBOS_TRUE='#'
32163 VEHICLE_WEBOS_FALSE=
32164 fi
32165
32166 if test "x${vehicle_webos}" = "xyes"
32167 then
32168
32169 cat >>confdefs.h <<\_ACEOF
32170 @%:@define USE_WEBOS /**/
32171 _ACEOF
32172
32173 LIBPDL_CFLAGS="$SDL_CFLAGS -I/usr/local/include"
32174 LIBPDL_LIBS="-L/usr/local/lib -lpdl"
32175
32176
32177 fi
32178 NAVIT_CFLAGS="$NAVIT_CFLAGS $GLIB_CFLAGS $GMODULE_CFLAGS"
32179 NAVIT_LIBS="$NAVIT_LIBS $GLIB_LIBS $GMODULE_LIBS $LIBINTL"
32180
32181
32182
32183
32184
32185
32186 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/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/maptool/p2t/Makefile navit/maptool/p2t/sweep/Makefile navit/maptool/p2t/common/Makefile navit/maptool/libcfu-0.03-zanavi/Makefile navit/maptool/libcfu-0.03-zanavi/src/Makefile navit/maptool/refine/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/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"
32187
32188 #src/data/garmin_img/Makefile
32189
32190 cat >confcache <<\_ACEOF
32191 # This file is a shell script that caches the results of configure
32192 # tests run on this system so they can be shared between configure
32193 # scripts and configure runs, see configure's option --config-cache.
32194 # It is not useful on other systems. If it contains results you don't
32195 # want to keep, you may remove or edit it.
32196 #
32197 # config.status only pays attention to the cache file if you give it
32198 # the --recheck option to rerun configure.
32199 #
32200 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32201 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32202 # following values.
32203
32204 _ACEOF
32205
32206 # The following way of writing the cache mishandles newlines in values,
32207 # but we know of no workaround that is simple, portable, and efficient.
32208 # So, we kill variables containing newlines.
32209 # Ultrix sh set writes to stderr and can't be redirected directly,
32210 # and sets the high bit in the cache file unless we assign to the vars.
32211 (
32212 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32213 eval ac_val=\$$ac_var
32214 case $ac_val in #(
32215 *${as_nl}*)
32216 case $ac_var in #(
32217 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
32218 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
32219 esac
32220 case $ac_var in #(
32221 _ | IFS | as_nl) ;; #(
32222 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32223 *) $as_unset $ac_var ;;
32224 esac ;;
32225 esac
32226 done
32227
32228 (set) 2>&1 |
32229 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32230 *${as_nl}ac_space=\ *)
32231 # `set' does not quote correctly, so add quotes (double-quote
32232 # substitution turns \\\\ into \\, and sed turns \\ into \).
32233 sed -n \
32234 "s/'/'\\\\''/g;
32235 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32236 ;; #(
32237 *)
32238 # `set' quotes correctly as required by POSIX, so do not add quotes.
32239 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32240 ;;
32241 esac |
32242 sort
32243 ) |
32244 sed '
32245 /^ac_cv_env_/b end
32246 t clear
32247 :clear
32248 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32249 t end
32250 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32251 :end' >>confcache
32252 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32253 if test -w "$cache_file"; then
32254 test "x$cache_file" != "x/dev/null" &&
32255 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
32256 $as_echo "$as_me: updating cache $cache_file" >&6;}
32257 cat confcache >$cache_file
32258 else
32259 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
32260 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32261 fi
32262 fi
32263 rm -f confcache
32264
32265 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32266 # Let make expand exec_prefix.
32267 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32268
32269 DEFS=-DHAVE_CONFIG_H
32270
32271 ac_libobjs=
32272 ac_ltlibobjs=
32273 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
32274 # 1. Remove the extension, and $U if already installed.
32275 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32276 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32277 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32278 # will be set to the directory where LIBOBJS objects are built.
32279 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32280 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
32281 done
32282 LIB@&t@OBJS=$ac_libobjs
32283
32284 LTLIBOBJS=$ac_ltlibobjs
32285
32286
32287 if test -n "$EXEEXT"; then
32288 am__EXEEXT_TRUE=
32289 am__EXEEXT_FALSE='#'
32290 else
32291 am__EXEEXT_TRUE='#'
32292 am__EXEEXT_FALSE=
32293 fi
32294
32295 if test -z "${SOURCE_MODE_SVN_TRUE}" && test -z "${SOURCE_MODE_SVN_FALSE}"; then
32296 { { $as_echo "$as_me:$LINENO: error: conditional \"SOURCE_MODE_SVN\" was never defined.
32297 Usually this means the macro was only invoked conditionally." >&5
32298 $as_echo "$as_me: error: conditional \"SOURCE_MODE_SVN\" was never defined.
32299 Usually this means the macro was only invoked conditionally." >&2;}
32300 { (exit 1); exit 1; }; }
32301 fi
32302 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
32303 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
32304 Usually this means the macro was only invoked conditionally." >&5
32305 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
32306 Usually this means the macro was only invoked conditionally." >&2;}
32307 { (exit 1); exit 1; }; }
32308 fi
32309 if test -z "${SUPPORT_WIN32_TRUE}" && test -z "${SUPPORT_WIN32_FALSE}"; then
32310 { { $as_echo "$as_me:$LINENO: error: conditional \"SUPPORT_WIN32\" was never defined.
32311 Usually this means the macro was only invoked conditionally." >&5
32312 $as_echo "$as_me: error: conditional \"SUPPORT_WIN32\" was never defined.
32313 Usually this means the macro was only invoked conditionally." >&2;}
32314 { (exit 1); exit 1; }; }
32315 fi
32316 if test -z "${SUPPORT_WIN32CE_TRUE}" && test -z "${SUPPORT_WIN32CE_FALSE}"; then
32317 { { $as_echo "$as_me:$LINENO: error: conditional \"SUPPORT_WIN32CE\" was never defined.
32318 Usually this means the macro was only invoked conditionally." >&5
32319 $as_echo "$as_me: error: conditional \"SUPPORT_WIN32CE\" was never defined.
32320 Usually this means the macro was only invoked conditionally." >&2;}
32321 { (exit 1); exit 1; }; }
32322 fi
32323 if test -z "${SUPPORT_ANDROID_TRUE}" && test -z "${SUPPORT_ANDROID_FALSE}"; then
32324 { { $as_echo "$as_me:$LINENO: error: conditional \"SUPPORT_ANDROID\" was never defined.
32325 Usually this means the macro was only invoked conditionally." >&5
32326 $as_echo "$as_me: error: conditional \"SUPPORT_ANDROID\" was never defined.
32327 Usually this means the macro was only invoked conditionally." >&2;}
32328 { (exit 1); exit 1; }; }
32329 fi
32330 if test -z "${SUPPORT_LIBPNG_TRUE}" && test -z "${SUPPORT_LIBPNG_FALSE}"; then
32331 { { $as_echo "$as_me:$LINENO: error: conditional \"SUPPORT_LIBPNG\" was never defined.
32332 Usually this means the macro was only invoked conditionally." >&5
32333 $as_echo "$as_me: error: conditional \"SUPPORT_LIBPNG\" was never defined.
32334 Usually this means the macro was only invoked conditionally." >&2;}
32335 { (exit 1); exit 1; }; }
32336 fi
32337 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32338 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
32339 Usually this means the macro was only invoked conditionally." >&5
32340 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
32341 Usually this means the macro was only invoked conditionally." >&2;}
32342 { (exit 1); exit 1; }; }
32343 fi
32344 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32345 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
32346 Usually this means the macro was only invoked conditionally." >&5
32347 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
32348 Usually this means the macro was only invoked conditionally." >&2;}
32349 { (exit 1); exit 1; }; }
32350 fi
32351 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
32352 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
32353 Usually this means the macro was only invoked conditionally." >&5
32354 $as_echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
32355 Usually this means the macro was only invoked conditionally." >&2;}
32356 { (exit 1); exit 1; }; }
32357 fi
32358 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32359 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
32360 Usually this means the macro was only invoked conditionally." >&5
32361 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
32362 Usually this means the macro was only invoked conditionally." >&2;}
32363 { (exit 1); exit 1; }; }
32364 fi
32365 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
32366 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
32367 Usually this means the macro was only invoked conditionally." >&5
32368 $as_echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
32369 Usually this means the macro was only invoked conditionally." >&2;}
32370 { (exit 1); exit 1; }; }
32371 fi
32372 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32373 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
32374 Usually this means the macro was only invoked conditionally." >&5
32375 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
32376 Usually this means the macro was only invoked conditionally." >&2;}
32377 { (exit 1); exit 1; }; }
32378 fi
32379 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
32380 { { $as_echo "$as_me:$LINENO: error: conditional \"CROSS_COMPILING\" was never defined.
32381 Usually this means the macro was only invoked conditionally." >&5
32382 $as_echo "$as_me: error: conditional \"CROSS_COMPILING\" was never defined.
32383 Usually this means the macro was only invoked conditionally." >&2;}
32384 { (exit 1); exit 1; }; }
32385 fi
32386 if test -z "${USE_HILDON_TRUE}" && test -z "${USE_HILDON_FALSE}"; then
32387 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_HILDON\" was never defined.
32388 Usually this means the macro was only invoked conditionally." >&5
32389 $as_echo "$as_me: error: conditional \"USE_HILDON\" was never defined.
32390 Usually this means the macro was only invoked conditionally." >&2;}
32391 { (exit 1); exit 1; }; }
32392 fi
32393 if test -z "${USE_OSSO_TRUE}" && test -z "${USE_OSSO_FALSE}"; then
32394 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_OSSO\" was never defined.
32395 Usually this means the macro was only invoked conditionally." >&5
32396 $as_echo "$as_me: error: conditional \"USE_OSSO\" was never defined.
32397 Usually this means the macro was only invoked conditionally." >&2;}
32398 { (exit 1); exit 1; }; }
32399 fi
32400 if test -z "${MAPTOOL_TRUE}" && test -z "${MAPTOOL_FALSE}"; then
32401 { { $as_echo "$as_me:$LINENO: error: conditional \"MAPTOOL\" was never defined.
32402 Usually this means the macro was only invoked conditionally." >&5
32403 $as_echo "$as_me: error: conditional \"MAPTOOL\" was never defined.
32404 Usually this means the macro was only invoked conditionally." >&2;}
32405 { (exit 1); exit 1; }; }
32406 fi
32407 if test -z "${BUILD_SAMPLEMAP_TRUE}" && test -z "${BUILD_SAMPLEMAP_FALSE}"; then
32408 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SAMPLEMAP\" was never defined.
32409 Usually this means the macro was only invoked conditionally." >&5
32410 $as_echo "$as_me: error: conditional \"BUILD_SAMPLEMAP\" was never defined.
32411 Usually this means the macro was only invoked conditionally." >&2;}
32412 { (exit 1); exit 1; }; }
32413 fi
32414 if test -z "${FASTMATH_TRUE}" && test -z "${FASTMATH_FALSE}"; then
32415 { { $as_echo "$as_me:$LINENO: error: conditional \"FASTMATH\" was never defined.
32416 Usually this means the macro was only invoked conditionally." >&5
32417 $as_echo "$as_me: error: conditional \"FASTMATH\" was never defined.
32418 Usually this means the macro was only invoked conditionally." >&2;}
32419 { (exit 1); exit 1; }; }
32420 fi
32421 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
32422 { { $as_echo "$as_me:$LINENO: error: conditional \"PLUGINS\" was never defined.
32423 Usually this means the macro was only invoked conditionally." >&5
32424 $as_echo "$as_me: error: conditional \"PLUGINS\" was never defined.
32425 Usually this means the macro was only invoked conditionally." >&2;}
32426 { (exit 1); exit 1; }; }
32427 fi
32428 if test -z "${SHARED_LIBNAVIT_TRUE}" && test -z "${SHARED_LIBNAVIT_FALSE}"; then
32429 { { $as_echo "$as_me:$LINENO: error: conditional \"SHARED_LIBNAVIT\" was never defined.
32430 Usually this means the macro was only invoked conditionally." >&5
32431 $as_echo "$as_me: error: conditional \"SHARED_LIBNAVIT\" was never defined.
32432 Usually this means the macro was only invoked conditionally." >&2;}
32433 { (exit 1); exit 1; }; }
32434 fi
32435 if test -z "${BIN_NAVIT_TRUE}" && test -z "${BIN_NAVIT_FALSE}"; then
32436 { { $as_echo "$as_me:$LINENO: error: conditional \"BIN_NAVIT\" was never defined.
32437 Usually this means the macro was only invoked conditionally." >&5
32438 $as_echo "$as_me: error: conditional \"BIN_NAVIT\" was never defined.
32439 Usually this means the macro was only invoked conditionally." >&2;}
32440 { (exit 1); exit 1; }; }
32441 fi
32442 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32443 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
32444 Usually this means the macro was only invoked conditionally." >&5
32445 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
32446 Usually this means the macro was only invoked conditionally." >&2;}
32447 { (exit 1); exit 1; }; }
32448 fi
32449 if test -z "${EVENT_GLIB_TRUE}" && test -z "${EVENT_GLIB_FALSE}"; then
32450 { { $as_echo "$as_me:$LINENO: error: conditional \"EVENT_GLIB\" was never defined.
32451 Usually this means the macro was only invoked conditionally." >&5
32452 $as_echo "$as_me: error: conditional \"EVENT_GLIB\" was never defined.
32453 Usually this means the macro was only invoked conditionally." >&2;}
32454 { (exit 1); exit 1; }; }
32455 fi
32456 if test -z "${SUPPORT_GLIB_TRUE}" && test -z "${SUPPORT_GLIB_FALSE}"; then
32457 { { $as_echo "$as_me:$LINENO: error: conditional \"SUPPORT_GLIB\" was never defined.
32458 Usually this means the macro was only invoked conditionally." >&5
32459 $as_echo "$as_me: error: conditional \"SUPPORT_GLIB\" was never defined.
32460 Usually this means the macro was only invoked conditionally." >&2;}
32461 { (exit 1); exit 1; }; }
32462 fi
32463 if test -z "${SUPPORT_EZXML_TRUE}" && test -z "${SUPPORT_EZXML_FALSE}"; then
32464 { { $as_echo "$as_me:$LINENO: error: conditional \"SUPPORT_EZXML\" was never defined.
32465 Usually this means the macro was only invoked conditionally." >&5
32466 $as_echo "$as_me: error: conditional \"SUPPORT_EZXML\" was never defined.
32467 Usually this means the macro was only invoked conditionally." >&2;}
32468 { (exit 1); exit 1; }; }
32469 fi
32470 if test -z "${SUPPORT_ZLIB_TRUE}" && test -z "${SUPPORT_ZLIB_FALSE}"; then
32471 { { $as_echo "$as_me:$LINENO: error: conditional \"SUPPORT_ZLIB\" was never defined.
32472 Usually this means the macro was only invoked conditionally." >&5
32473 $as_echo "$as_me: error: conditional \"SUPPORT_ZLIB\" was never defined.
32474 Usually this means the macro was only invoked conditionally." >&2;}
32475 { (exit 1); exit 1; }; }
32476 fi
32477 if test -z "${GRAPHICS_SDL_TRUE}" && test -z "${GRAPHICS_SDL_FALSE}"; then
32478 { { $as_echo "$as_me:$LINENO: error: conditional \"GRAPHICS_SDL\" was never defined.
32479 Usually this means the macro was only invoked conditionally." >&5
32480 $as_echo "$as_me: error: conditional \"GRAPHICS_SDL\" was never defined.
32481 Usually this means the macro was only invoked conditionally." >&2;}
32482 { (exit 1); exit 1; }; }
32483 fi
32484 if test -z "${HAVE_POSTGRESQL_TRUE}" && test -z "${HAVE_POSTGRESQL_FALSE}"; then
32485 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_POSTGRESQL\" was never defined.
32486 Usually this means the macro was only invoked conditionally." >&5
32487 $as_echo "$as_me: error: conditional \"HAVE_POSTGRESQL\" was never defined.
32488 Usually this means the macro was only invoked conditionally." >&2;}
32489 { (exit 1); exit 1; }; }
32490 fi
32491 if test -z "${FONT_FREETYPE_TRUE}" && test -z "${FONT_FREETYPE_FALSE}"; then
32492 { { $as_echo "$as_me:$LINENO: error: conditional \"FONT_FREETYPE\" was never defined.
32493 Usually this means the macro was only invoked conditionally." >&5
32494 $as_echo "$as_me: error: conditional \"FONT_FREETYPE\" was never defined.
32495 Usually this means the macro was only invoked conditionally." >&2;}
32496 { (exit 1); exit 1; }; }
32497 fi
32498 if test -z "${FONTS_TRUE}" && test -z "${FONTS_FALSE}"; then
32499 { { $as_echo "$as_me:$LINENO: error: conditional \"FONTS\" was never defined.
32500 Usually this means the macro was only invoked conditionally." >&5
32501 $as_echo "$as_me: error: conditional \"FONTS\" was never defined.
32502 Usually this means the macro was only invoked conditionally." >&2;}
32503 { (exit 1); exit 1; }; }
32504 fi
32505 if test -z "${GRAPHICS_OPENGL_TRUE}" && test -z "${GRAPHICS_OPENGL_FALSE}"; then
32506 { { $as_echo "$as_me:$LINENO: error: conditional \"GRAPHICS_OPENGL\" was never defined.
32507 Usually this means the macro was only invoked conditionally." >&5
32508 $as_echo "$as_me: error: conditional \"GRAPHICS_OPENGL\" was never defined.
32509 Usually this means the macro was only invoked conditionally." >&2;}
32510 { (exit 1); exit 1; }; }
32511 fi
32512 if test -z "${HAVE_SYSTEM_SHAPEFILELIB_TRUE}" && test -z "${HAVE_SYSTEM_SHAPEFILELIB_FALSE}"; then
32513 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SYSTEM_SHAPEFILELIB\" was never defined.
32514 Usually this means the macro was only invoked conditionally." >&5
32515 $as_echo "$as_me: error: conditional \"HAVE_SYSTEM_SHAPEFILELIB\" was never defined.
32516 Usually this means the macro was only invoked conditionally." >&2;}
32517 { (exit 1); exit 1; }; }
32518 fi
32519 if test -z "${HAVELIBGARMIN_TRUE}" && test -z "${HAVELIBGARMIN_FALSE}"; then
32520 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVELIBGARMIN\" was never defined.
32521 Usually this means the macro was only invoked conditionally." >&5
32522 $as_echo "$as_me: error: conditional \"HAVELIBGARMIN\" was never defined.
32523 Usually this means the macro was only invoked conditionally." >&2;}
32524 { (exit 1); exit 1; }; }
32525 fi
32526 if test -z "${BINDING_PYTHON_TRUE}" && test -z "${BINDING_PYTHON_FALSE}"; then
32527 { { $as_echo "$as_me:$LINENO: error: conditional \"BINDING_PYTHON\" was never defined.
32528 Usually this means the macro was only invoked conditionally." >&5
32529 $as_echo "$as_me: error: conditional \"BINDING_PYTHON\" was never defined.
32530 Usually this means the macro was only invoked conditionally." >&2;}
32531 { (exit 1); exit 1; }; }
32532 fi
32533 if test -z "${BINDING_DBUS_TRUE}" && test -z "${BINDING_DBUS_FALSE}"; then
32534 { { $as_echo "$as_me:$LINENO: error: conditional \"BINDING_DBUS\" was never defined.
32535 Usually this means the macro was only invoked conditionally." >&5
32536 $as_echo "$as_me: error: conditional \"BINDING_DBUS\" was never defined.
32537 Usually this means the macro was only invoked conditionally." >&2;}
32538 { (exit 1); exit 1; }; }
32539 fi
32540 if test -z "${VEHICLE_GPSD_DBUS_TRUE}" && test -z "${VEHICLE_GPSD_DBUS_FALSE}"; then
32541 { { $as_echo "$as_me:$LINENO: error: conditional \"VEHICLE_GPSD_DBUS\" was never defined.
32542 Usually this means the macro was only invoked conditionally." >&5
32543 $as_echo "$as_me: error: conditional \"VEHICLE_GPSD_DBUS\" was never defined.
32544 Usually this means the macro was only invoked conditionally." >&2;}
32545 { (exit 1); exit 1; }; }
32546 fi
32547 if test -z "${SPEECH_DBUS_TRUE}" && test -z "${SPEECH_DBUS_FALSE}"; then
32548 { { $as_echo "$as_me:$LINENO: error: conditional \"SPEECH_DBUS\" was never defined.
32549 Usually this means the macro was only invoked conditionally." >&5
32550 $as_echo "$as_me: error: conditional \"SPEECH_DBUS\" was never defined.
32551 Usually this means the macro was only invoked conditionally." >&2;}
32552 { (exit 1); exit 1; }; }
32553 fi
32554 if test -z "${USE_SVG2PNG_SCALES_TRUE}" && test -z "${USE_SVG2PNG_SCALES_FALSE}"; then
32555 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_SVG2PNG_SCALES\" was never defined.
32556 Usually this means the macro was only invoked conditionally." >&5
32557 $as_echo "$as_me: error: conditional \"USE_SVG2PNG_SCALES\" was never defined.
32558 Usually this means the macro was only invoked conditionally." >&2;}
32559 { (exit 1); exit 1; }; }
32560 fi
32561 if test -z "${USE_SVG2PNG_SCALES_FLAG_TRUE}" && test -z "${USE_SVG2PNG_SCALES_FLAG_FALSE}"; then
32562 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_SVG2PNG_SCALES_FLAG\" was never defined.
32563 Usually this means the macro was only invoked conditionally." >&5
32564 $as_echo "$as_me: error: conditional \"USE_SVG2PNG_SCALES_FLAG\" was never defined.
32565 Usually this means the macro was only invoked conditionally." >&2;}
32566 { (exit 1); exit 1; }; }
32567 fi
32568 if test -z "${USE_SVG2PNG_SCALES_NAV_TRUE}" && test -z "${USE_SVG2PNG_SCALES_NAV_FALSE}"; then
32569 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_SVG2PNG_SCALES_NAV\" was never defined.
32570 Usually this means the macro was only invoked conditionally." >&5
32571 $as_echo "$as_me: error: conditional \"USE_SVG2PNG_SCALES_NAV\" was never defined.
32572 Usually this means the macro was only invoked conditionally." >&2;}
32573 { (exit 1); exit 1; }; }
32574 fi
32575 if test -z "${USE_SVG2PNG_TRUE}" && test -z "${USE_SVG2PNG_FALSE}"; then
32576 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_SVG2PNG\" was never defined.
32577 Usually this means the macro was only invoked conditionally." >&5
32578 $as_echo "$as_me: error: conditional \"USE_SVG2PNG\" was never defined.
32579 Usually this means the macro was only invoked conditionally." >&2;}
32580 { (exit 1); exit 1; }; }
32581 fi
32582 if test -z "${USE_SVG_TRUE}" && test -z "${USE_SVG_FALSE}"; then
32583 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_SVG\" was never defined.
32584 Usually this means the macro was only invoked conditionally." >&5
32585 $as_echo "$as_me: error: conditional \"USE_SVG\" was never defined.
32586 Usually this means the macro was only invoked conditionally." >&2;}
32587 { (exit 1); exit 1; }; }
32588 fi
32589 if test -z "${ENABLE_NLS_TRUE}" && test -z "${ENABLE_NLS_FALSE}"; then
32590 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_NLS\" was never defined.
32591 Usually this means the macro was only invoked conditionally." >&5
32592 $as_echo "$as_me: error: conditional \"ENABLE_NLS\" was never defined.
32593 Usually this means the macro was only invoked conditionally." >&2;}
32594 { (exit 1); exit 1; }; }
32595 fi
32596 if test -z "${XGETTEXT_GLADE_TRUE}" && test -z "${XGETTEXT_GLADE_FALSE}"; then
32597 { { $as_echo "$as_me:$LINENO: error: conditional \"XGETTEXT_GLADE\" was never defined.
32598 Usually this means the macro was only invoked conditionally." >&5
32599 $as_echo "$as_me: error: conditional \"XGETTEXT_GLADE\" was never defined.
32600 Usually this means the macro was only invoked conditionally." >&2;}
32601 { (exit 1); exit 1; }; }
32602 fi
32603 if test -z "${SUPPORT_WORDEXP_TRUE}" && test -z "${SUPPORT_WORDEXP_FALSE}"; then
32604 { { $as_echo "$as_me:$LINENO: error: conditional \"SUPPORT_WORDEXP\" was never defined.
32605 Usually this means the macro was only invoked conditionally." >&5
32606 $as_echo "$as_me: error: conditional \"SUPPORT_WORDEXP\" was never defined.
32607 Usually this means the macro was only invoked conditionally." >&2;}
32608 { (exit 1); exit 1; }; }
32609 fi
32610 if test -z "${SUPPORT_LIBC_TRUE}" && test -z "${SUPPORT_LIBC_FALSE}"; then
32611 { { $as_echo "$as_me:$LINENO: error: conditional \"SUPPORT_LIBC\" was never defined.
32612 Usually this means the macro was only invoked conditionally." >&5
32613 $as_echo "$as_me: error: conditional \"SUPPORT_LIBC\" was never defined.
32614 Usually this means the macro was only invoked conditionally." >&2;}
32615 { (exit 1); exit 1; }; }
32616 fi
32617 if test -z "${GRAPHICS_TRUE}" && test -z "${GRAPHICS_FALSE}"; then
32618 { { $as_echo "$as_me:$LINENO: error: conditional \"GRAPHICS\" was never defined.
32619 Usually this means the macro was only invoked conditionally." >&5
32620 $as_echo "$as_me: error: conditional \"GRAPHICS\" was never defined.
32621 Usually this means the macro was only invoked conditionally." >&2;}
32622 { (exit 1); exit 1; }; }
32623 fi
32624 if test -z "${GRAPHICS_ANDROID_TRUE}" && test -z "${GRAPHICS_ANDROID_FALSE}"; then
32625 { { $as_echo "$as_me:$LINENO: error: conditional \"GRAPHICS_ANDROID\" was never defined.
32626 Usually this means the macro was only invoked conditionally." >&5
32627 $as_echo "$as_me: error: conditional \"GRAPHICS_ANDROID\" was never defined.
32628 Usually this means the macro was only invoked conditionally." >&2;}
32629 { (exit 1); exit 1; }; }
32630 fi
32631 if test -z "${GRAPHICS_GD_TRUE}" && test -z "${GRAPHICS_GD_FALSE}"; then
32632 { { $as_echo "$as_me:$LINENO: error: conditional \"GRAPHICS_GD\" was never defined.
32633 Usually this means the macro was only invoked conditionally." >&5
32634 $as_echo "$as_me: error: conditional \"GRAPHICS_GD\" was never defined.
32635 Usually this means the macro was only invoked conditionally." >&2;}
32636 { (exit 1); exit 1; }; }
32637 fi
32638 if test -z "${GRAPHICS_GTK_DRAWING_AREA_TRUE}" && test -z "${GRAPHICS_GTK_DRAWING_AREA_FALSE}"; then
32639 { { $as_echo "$as_me:$LINENO: error: conditional \"GRAPHICS_GTK_DRAWING_AREA\" was never defined.
32640 Usually this means the macro was only invoked conditionally." >&5
32641 $as_echo "$as_me: error: conditional \"GRAPHICS_GTK_DRAWING_AREA\" was never defined.
32642 Usually this means the macro was only invoked conditionally." >&2;}
32643 { (exit 1); exit 1; }; }
32644 fi
32645 if test -z "${GRAPHICS_NULL_TRUE}" && test -z "${GRAPHICS_NULL_FALSE}"; then
32646 { { $as_echo "$as_me:$LINENO: error: conditional \"GRAPHICS_NULL\" was never defined.
32647 Usually this means the macro was only invoked conditionally." >&5
32648 $as_echo "$as_me: error: conditional \"GRAPHICS_NULL\" was never defined.
32649 Usually this means the macro was only invoked conditionally." >&2;}
32650 { (exit 1); exit 1; }; }
32651 fi
32652 if test -z "${GRAPHICS_WIN32_TRUE}" && test -z "${GRAPHICS_WIN32_FALSE}"; then
32653 { { $as_echo "$as_me:$LINENO: error: conditional \"GRAPHICS_WIN32\" was never defined.
32654 Usually this means the macro was only invoked conditionally." >&5
32655 $as_echo "$as_me: error: conditional \"GRAPHICS_WIN32\" was never defined.
32656 Usually this means the macro was only invoked conditionally." >&2;}
32657 { (exit 1); exit 1; }; }
32658 fi
32659 if test -z "${GRAPHICS_QT_QPAINTER_TRUE}" && test -z "${GRAPHICS_QT_QPAINTER_FALSE}"; then
32660 { { $as_echo "$as_me:$LINENO: error: conditional \"GRAPHICS_QT_QPAINTER\" was never defined.
32661 Usually this means the macro was only invoked conditionally." >&5
32662 $as_echo "$as_me: error: conditional \"GRAPHICS_QT_QPAINTER\" was never defined.
32663 Usually this means the macro was only invoked conditionally." >&2;}
32664 { (exit 1); exit 1; }; }
32665 fi
32666 if test -z "${MAP_BINFILE_TRUE}" && test -z "${MAP_BINFILE_FALSE}"; then
32667 { { $as_echo "$as_me:$LINENO: error: conditional \"MAP_BINFILE\" was never defined.
32668 Usually this means the macro was only invoked conditionally." >&5
32669 $as_echo "$as_me: error: conditional \"MAP_BINFILE\" was never defined.
32670 Usually this means the macro was only invoked conditionally." >&2;}
32671 { (exit 1); exit 1; }; }
32672 fi
32673 if test -z "${MAP_FILTER_TRUE}" && test -z "${MAP_FILTER_FALSE}"; then
32674 { { $as_echo "$as_me:$LINENO: error: conditional \"MAP_FILTER\" was never defined.
32675 Usually this means the macro was only invoked conditionally." >&5
32676 $as_echo "$as_me: error: conditional \"MAP_FILTER\" was never defined.
32677 Usually this means the macro was only invoked conditionally." >&2;}
32678 { (exit 1); exit 1; }; }
32679 fi
32680 if test -z "${MAP_MG_TRUE}" && test -z "${MAP_MG_FALSE}"; then
32681 { { $as_echo "$as_me:$LINENO: error: conditional \"MAP_MG\" was never defined.
32682 Usually this means the macro was only invoked conditionally." >&5
32683 $as_echo "$as_me: error: conditional \"MAP_MG\" was never defined.
32684 Usually this means the macro was only invoked conditionally." >&2;}
32685 { (exit 1); exit 1; }; }
32686 fi
32687 if test -z "${MAP_SHAPEFILE_TRUE}" && test -z "${MAP_SHAPEFILE_FALSE}"; then
32688 { { $as_echo "$as_me:$LINENO: error: conditional \"MAP_SHAPEFILE\" was never defined.
32689 Usually this means the macro was only invoked conditionally." >&5
32690 $as_echo "$as_me: error: conditional \"MAP_SHAPEFILE\" was never defined.
32691 Usually this means the macro was only invoked conditionally." >&2;}
32692 { (exit 1); exit 1; }; }
32693 fi
32694 if test -z "${MAP_TEXTFILE_TRUE}" && test -z "${MAP_TEXTFILE_FALSE}"; then
32695 { { $as_echo "$as_me:$LINENO: error: conditional \"MAP_TEXTFILE\" was never defined.
32696 Usually this means the macro was only invoked conditionally." >&5
32697 $as_echo "$as_me: error: conditional \"MAP_TEXTFILE\" was never defined.
32698 Usually this means the macro was only invoked conditionally." >&2;}
32699 { (exit 1); exit 1; }; }
32700 fi
32701 if test -z "${MAP_CSV_TRUE}" && test -z "${MAP_CSV_FALSE}"; then
32702 { { $as_echo "$as_me:$LINENO: error: conditional \"MAP_CSV\" was never defined.
32703 Usually this means the macro was only invoked conditionally." >&5
32704 $as_echo "$as_me: error: conditional \"MAP_CSV\" was never defined.
32705 Usually this means the macro was only invoked conditionally." >&2;}
32706 { (exit 1); exit 1; }; }
32707 fi
32708 if test -z "${OSD_CORE_TRUE}" && test -z "${OSD_CORE_FALSE}"; then
32709 { { $as_echo "$as_me:$LINENO: error: conditional \"OSD_CORE\" was never defined.
32710 Usually this means the macro was only invoked conditionally." >&5
32711 $as_echo "$as_me: error: conditional \"OSD_CORE\" was never defined.
32712 Usually this means the macro was only invoked conditionally." >&2;}
32713 { (exit 1); exit 1; }; }
32714 fi
32715 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
32716 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
32717 Usually this means the macro was only invoked conditionally." >&5
32718 $as_echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
32719 Usually this means the macro was only invoked conditionally." >&2;}
32720 { (exit 1); exit 1; }; }
32721 fi
32722 if test -z "${GUI_INTERNAL_TRUE}" && test -z "${GUI_INTERNAL_FALSE}"; then
32723 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_INTERNAL\" was never defined.
32724 Usually this means the macro was only invoked conditionally." >&5
32725 $as_echo "$as_me: error: conditional \"GUI_INTERNAL\" was never defined.
32726 Usually this means the macro was only invoked conditionally." >&2;}
32727 { (exit 1); exit 1; }; }
32728 fi
32729 if test -z "${GUI_WIN32_TRUE}" && test -z "${GUI_WIN32_FALSE}"; then
32730 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_WIN32\" was never defined.
32731 Usually this means the macro was only invoked conditionally." >&5
32732 $as_echo "$as_me: error: conditional \"GUI_WIN32\" was never defined.
32733 Usually this means the macro was only invoked conditionally." >&2;}
32734 { (exit 1); exit 1; }; }
32735 fi
32736 if test -z "${GUI_QML_TRUE}" && test -z "${GUI_QML_FALSE}"; then
32737 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_QML\" was never defined.
32738 Usually this means the macro was only invoked conditionally." >&5
32739 $as_echo "$as_me: error: conditional \"GUI_QML\" was never defined.
32740 Usually this means the macro was only invoked conditionally." >&2;}
32741 { (exit 1); exit 1; }; }
32742 fi
32743 if test -z "${PLUGIN_PEDESTRIAN_TRUE}" && test -z "${PLUGIN_PEDESTRIAN_FALSE}"; then
32744 { { $as_echo "$as_me:$LINENO: error: conditional \"PLUGIN_PEDESTRIAN\" was never defined.
32745 Usually this means the macro was only invoked conditionally." >&5
32746 $as_echo "$as_me: error: conditional \"PLUGIN_PEDESTRIAN\" was never defined.
32747 Usually this means the macro was only invoked conditionally." >&2;}
32748 { (exit 1); exit 1; }; }
32749 fi
32750 if test -z "${ROUTING_TRUE}" && test -z "${ROUTING_FALSE}"; then
32751 { { $as_echo "$as_me:$LINENO: error: conditional \"ROUTING\" was never defined.
32752 Usually this means the macro was only invoked conditionally." >&5
32753 $as_echo "$as_me: error: conditional \"ROUTING\" was never defined.
32754 Usually this means the macro was only invoked conditionally." >&2;}
32755 { (exit 1); exit 1; }; }
32756 fi
32757 if test -z "${SPEECH_ANDROID_TRUE}" && test -z "${SPEECH_ANDROID_FALSE}"; then
32758 { { $as_echo "$as_me:$LINENO: error: conditional \"SPEECH_ANDROID\" was never defined.
32759 Usually this means the macro was only invoked conditionally." >&5
32760 $as_echo "$as_me: error: conditional \"SPEECH_ANDROID\" was never defined.
32761 Usually this means the macro was only invoked conditionally." >&2;}
32762 { (exit 1); exit 1; }; }
32763 fi
32764 if test -z "${SPEECH_CMDLINE_TRUE}" && test -z "${SPEECH_CMDLINE_FALSE}"; then
32765 { { $as_echo "$as_me:$LINENO: error: conditional \"SPEECH_CMDLINE\" was never defined.
32766 Usually this means the macro was only invoked conditionally." >&5
32767 $as_echo "$as_me: error: conditional \"SPEECH_CMDLINE\" was never defined.
32768 Usually this means the macro was only invoked conditionally." >&2;}
32769 { (exit 1); exit 1; }; }
32770 fi
32771 if test -z "${SPEECH_ESPEAK_TRUE}" && test -z "${SPEECH_ESPEAK_FALSE}"; then
32772 { { $as_echo "$as_me:$LINENO: error: conditional \"SPEECH_ESPEAK\" was never defined.
32773 Usually this means the macro was only invoked conditionally." >&5
32774 $as_echo "$as_me: error: conditional \"SPEECH_ESPEAK\" was never defined.
32775 Usually this means the macro was only invoked conditionally." >&2;}
32776 { (exit 1); exit 1; }; }
32777 fi
32778 if test -z "${SPEECH_SPEECH_DISPATCHER_TRUE}" && test -z "${SPEECH_SPEECH_DISPATCHER_FALSE}"; then
32779 { { $as_echo "$as_me:$LINENO: error: conditional \"SPEECH_SPEECH_DISPATCHER\" was never defined.
32780 Usually this means the macro was only invoked conditionally." >&5
32781 $as_echo "$as_me: error: conditional \"SPEECH_SPEECH_DISPATCHER\" was never defined.
32782 Usually this means the macro was only invoked conditionally." >&2;}
32783 { (exit 1); exit 1; }; }
32784 fi
32785 if test -z "${SUPPORT_ESPEAK_TRUE}" && test -z "${SUPPORT_ESPEAK_FALSE}"; then
32786 { { $as_echo "$as_me:$LINENO: error: conditional \"SUPPORT_ESPEAK\" was never defined.
32787 Usually this means the macro was only invoked conditionally." >&5
32788 $as_echo "$as_me: error: conditional \"SUPPORT_ESPEAK\" was never defined.
32789 Usually this means the macro was only invoked conditionally." >&2;}
32790 { (exit 1); exit 1; }; }
32791 fi
32792 if test -z "${VEHICLE_ANDROID_TRUE}" && test -z "${VEHICLE_ANDROID_FALSE}"; then
32793 { { $as_echo "$as_me:$LINENO: error: conditional \"VEHICLE_ANDROID\" was never defined.
32794 Usually this means the macro was only invoked conditionally." >&5
32795 $as_echo "$as_me: error: conditional \"VEHICLE_ANDROID\" was never defined.
32796 Usually this means the macro was only invoked conditionally." >&2;}
32797 { (exit 1); exit 1; }; }
32798 fi
32799 if test -z "${VEHICLE_DEMO_TRUE}" && test -z "${VEHICLE_DEMO_FALSE}"; then
32800 { { $as_echo "$as_me:$LINENO: error: conditional \"VEHICLE_DEMO\" was never defined.
32801 Usually this means the macro was only invoked conditionally." >&5
32802 $as_echo "$as_me: error: conditional \"VEHICLE_DEMO\" was never defined.
32803 Usually this means the macro was only invoked conditionally." >&2;}
32804 { (exit 1); exit 1; }; }
32805 fi
32806 if test -z "${VEHICLE_FILE_TRUE}" && test -z "${VEHICLE_FILE_FALSE}"; then
32807 { { $as_echo "$as_me:$LINENO: error: conditional \"VEHICLE_FILE\" was never defined.
32808 Usually this means the macro was only invoked conditionally." >&5
32809 $as_echo "$as_me: error: conditional \"VEHICLE_FILE\" was never defined.
32810 Usually this means the macro was only invoked conditionally." >&2;}
32811 { (exit 1); exit 1; }; }
32812 fi
32813 if test -z "${VEHICLE_GPSD_TRUE}" && test -z "${VEHICLE_GPSD_FALSE}"; then
32814 { { $as_echo "$as_me:$LINENO: error: conditional \"VEHICLE_GPSD\" was never defined.
32815 Usually this means the macro was only invoked conditionally." >&5
32816 $as_echo "$as_me: error: conditional \"VEHICLE_GPSD\" was never defined.
32817 Usually this means the macro was only invoked conditionally." >&2;}
32818 { (exit 1); exit 1; }; }
32819 fi
32820 if test -z "${VEHICLE_GYPSY_TRUE}" && test -z "${VEHICLE_GYPSY_FALSE}"; then
32821 { { $as_echo "$as_me:$LINENO: error: conditional \"VEHICLE_GYPSY\" was never defined.
32822 Usually this means the macro was only invoked conditionally." >&5
32823 $as_echo "$as_me: error: conditional \"VEHICLE_GYPSY\" was never defined.
32824 Usually this means the macro was only invoked conditionally." >&2;}
32825 { (exit 1); exit 1; }; }
32826 fi
32827 if test -z "${VEHICLE_MAEMO_TRUE}" && test -z "${VEHICLE_MAEMO_FALSE}"; then
32828 { { $as_echo "$as_me:$LINENO: error: conditional \"VEHICLE_MAEMO\" was never defined.
32829 Usually this means the macro was only invoked conditionally." >&5
32830 $as_echo "$as_me: error: conditional \"VEHICLE_MAEMO\" was never defined.
32831 Usually this means the macro was only invoked conditionally." >&2;}
32832 { (exit 1); exit 1; }; }
32833 fi
32834 if test -z "${VEHICLE_NULL_TRUE}" && test -z "${VEHICLE_NULL_FALSE}"; then
32835 { { $as_echo "$as_me:$LINENO: error: conditional \"VEHICLE_NULL\" was never defined.
32836 Usually this means the macro was only invoked conditionally." >&5
32837 $as_echo "$as_me: error: conditional \"VEHICLE_NULL\" was never defined.
32838 Usually this means the macro was only invoked conditionally." >&2;}
32839 { (exit 1); exit 1; }; }
32840 fi
32841 if test -z "${VEHICLE_WINCE_TRUE}" && test -z "${VEHICLE_WINCE_FALSE}"; then
32842 { { $as_echo "$as_me:$LINENO: error: conditional \"VEHICLE_WINCE\" was never defined.
32843 Usually this means the macro was only invoked conditionally." >&5
32844 $as_echo "$as_me: error: conditional \"VEHICLE_WINCE\" was never defined.
32845 Usually this means the macro was only invoked conditionally." >&2;}
32846 { (exit 1); exit 1; }; }
32847 fi
32848 if test -z "${VEHICLE_IPHONE_TRUE}" && test -z "${VEHICLE_IPHONE_FALSE}"; then
32849 { { $as_echo "$as_me:$LINENO: error: conditional \"VEHICLE_IPHONE\" was never defined.
32850 Usually this means the macro was only invoked conditionally." >&5
32851 $as_echo "$as_me: error: conditional \"VEHICLE_IPHONE\" was never defined.
32852 Usually this means the macro was only invoked conditionally." >&2;}
32853 { (exit 1); exit 1; }; }
32854 fi
32855 if test -z "${VEHICLE_WEBOS_TRUE}" && test -z "${VEHICLE_WEBOS_FALSE}"; then
32856 { { $as_echo "$as_me:$LINENO: error: conditional \"VEHICLE_WEBOS\" was never defined.
32857 Usually this means the macro was only invoked conditionally." >&5
32858 $as_echo "$as_me: error: conditional \"VEHICLE_WEBOS\" was never defined.
32859 Usually this means the macro was only invoked conditionally." >&2;}
32860 { (exit 1); exit 1; }; }
32861 fi
32862
32863 : ${CONFIG_STATUS=./config.status}
32864 ac_write_fail=0
32865 ac_clean_files_save=$ac_clean_files
32866 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32867 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32868 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32869 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32870 #! $SHELL
32871 # Generated by $as_me.
32872 # Run this file to recreate the current configuration.
32873 # Compiler output produced by configure, useful for debugging
32874 # configure, is in config.log if it exists.
32875
32876 debug=false
32877 ac_cs_recheck=false
32878 ac_cs_silent=false
32879 SHELL=\${CONFIG_SHELL-$SHELL}
32880 _ACEOF
32881
32882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32883 ## --------------------- ##
32884 ## M4sh Initialization. ##
32885 ## --------------------- ##
32886
32887 # Be more Bourne compatible
32888 DUALCASE=1; export DUALCASE # for MKS sh
32889 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32890 emulate sh
32891 NULLCMD=:
32892 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32893 # is contrary to our usage. Disable this feature.
32894 alias -g '${1+"$@"}'='"$@"'
32895 setopt NO_GLOB_SUBST
32896 else
32897 case `(set -o) 2>/dev/null` in
32898 *posix*) set -o posix ;;
32899 esac
32900
32901 fi
32902
32903
32904
32905
32906 # PATH needs CR
32907 # Avoid depending upon Character Ranges.
32908 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32909 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32910 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32911 as_cr_digits='0123456789'
32912 as_cr_alnum=$as_cr_Letters$as_cr_digits
32913
32914 as_nl='
32915 '
32916 export as_nl
32917 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32918 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32919 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32920 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32921 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32922 as_echo='printf %s\n'
32923 as_echo_n='printf %s'
32924 else
32925 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32926 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32927 as_echo_n='/usr/ucb/echo -n'
32928 else
32929 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32930 as_echo_n_body='eval
32931 arg=$1;
32932 case $arg in
32933 *"$as_nl"*)
32934 expr "X$arg" : "X\\(.*\\)$as_nl";
32935 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32936 esac;
32937 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32938 '
32939 export as_echo_n_body
32940 as_echo_n='sh -c $as_echo_n_body as_echo'
32941 fi
32942 export as_echo_body
32943 as_echo='sh -c $as_echo_body as_echo'
32944 fi
32945
32946 # The user is always right.
32947 if test "${PATH_SEPARATOR+set}" != set; then
32948 PATH_SEPARATOR=:
32949 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32950 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32951 PATH_SEPARATOR=';'
32952 }
32953 fi
32954
32955 # Support unset when possible.
32956 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32957 as_unset=unset
32958 else
32959 as_unset=false
32960 fi
32961
32962
32963 # IFS
32964 # We need space, tab and new line, in precisely that order. Quoting is
32965 # there to prevent editors from complaining about space-tab.
32966 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32967 # splitting by setting IFS to empty value.)
32968 IFS=" "" $as_nl"
32969
32970 # Find who we are. Look in the path if we contain no directory separator.
32971 case $0 in
32972 *[\\/]* ) as_myself=$0 ;;
32973 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32974 for as_dir in $PATH
32975 do
32976 IFS=$as_save_IFS
32977 test -z "$as_dir" && as_dir=.
32978 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32979 done
32980 IFS=$as_save_IFS
32981
32982 ;;
32983 esac
32984 # We did not find ourselves, most probably we were run as `sh COMMAND'
32985 # in which case we are not to be found in the path.
32986 if test "x$as_myself" = x; then
32987 as_myself=$0
32988 fi
32989 if test ! -f "$as_myself"; then
32990 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32991 { (exit 1); exit 1; }
32992 fi
32993
32994 # Work around bugs in pre-3.0 UWIN ksh.
32995 for as_var in ENV MAIL MAILPATH
32996 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32997 done
32998 PS1='$ '
32999 PS2='> '
33000 PS4='+ '
33001
33002 # NLS nuisances.
33003 LC_ALL=C
33004 export LC_ALL
33005 LANGUAGE=C
33006 export LANGUAGE
33007
33008 # Required to use basename.
33009 if expr a : '\(a\)' >/dev/null 2>&1 &&
33010 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33011 as_expr=expr
33012 else
33013 as_expr=false
33014 fi
33015
33016 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33017 as_basename=basename
33018 else
33019 as_basename=false
33020 fi
33021
33022
33023 # Name of the executable.
33024 as_me=`$as_basename -- "$0" ||
33025 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33026 X"$0" : 'X\(//\)$' \| \
33027 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33028 $as_echo X/"$0" |
33029 sed '/^.*\/\([^/][^/]*\)\/*$/{
33030 s//\1/
33031 q
33032 }
33033 /^X\/\(\/\/\)$/{
33034 s//\1/
33035 q
33036 }
33037 /^X\/\(\/\).*/{
33038 s//\1/
33039 q
33040 }
33041 s/.*/./; q'`
33042
33043 # CDPATH.
33044 $as_unset CDPATH
33045
33046
33047
33048 as_lineno_1=$LINENO
33049 as_lineno_2=$LINENO
33050 test "x$as_lineno_1" != "x$as_lineno_2" &&
33051 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
33052
33053 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33054 # uniformly replaced by the line number. The first 'sed' inserts a
33055 # line-number line after each line using $LINENO; the second 'sed'
33056 # does the real work. The second script uses 'N' to pair each
33057 # line-number line with the line containing $LINENO, and appends
33058 # trailing '-' during substitution so that $LINENO is not a special
33059 # case at line end.
33060 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33061 # scripts with optimization help from Paolo Bonzini. Blame Lee
33062 # E. McMahon (1931-1989) for sed's syntax. :-)
33063 sed -n '
33064 p
33065 /[$]LINENO/=
33066 ' <$as_myself |
33067 sed '
33068 s/[$]LINENO.*/&-/
33069 t lineno
33070 b
33071 :lineno
33072 N
33073 :loop
33074 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33075 t loop
33076 s/-\n.*//
33077 ' >$as_me.lineno &&
33078 chmod +x "$as_me.lineno" ||
33079 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33080 { (exit 1); exit 1; }; }
33081
33082 # Don't try to exec as it changes $[0], causing all sort of problems
33083 # (the dirname of $[0] is not the place where we might find the
33084 # original and so on. Autoconf is especially sensitive to this).
33085 . "./$as_me.lineno"
33086 # Exit status is that of the last command.
33087 exit
33088 }
33089
33090
33091 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33092 as_dirname=dirname
33093 else
33094 as_dirname=false
33095 fi
33096
33097 ECHO_C= ECHO_N= ECHO_T=
33098 case `echo -n x` in
33099 -n*)
33100 case `echo 'x\c'` in
33101 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33102 *) ECHO_C='\c';;
33103 esac;;
33104 *)
33105 ECHO_N='-n';;
33106 esac
33107 if expr a : '\(a\)' >/dev/null 2>&1 &&
33108 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33109 as_expr=expr
33110 else
33111 as_expr=false
33112 fi
33113
33114 rm -f conf$$ conf$$.exe conf$$.file
33115 if test -d conf$$.dir; then
33116 rm -f conf$$.dir/conf$$.file
33117 else
33118 rm -f conf$$.dir
33119 mkdir conf$$.dir 2>/dev/null
33120 fi
33121 if (echo >conf$$.file) 2>/dev/null; then
33122 if ln -s conf$$.file conf$$ 2>/dev/null; then
33123 as_ln_s='ln -s'
33124 # ... but there are two gotchas:
33125 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33126 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33127 # In both cases, we have to default to `cp -p'.
33128 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33129 as_ln_s='cp -p'
33130 elif ln conf$$.file conf$$ 2>/dev/null; then
33131 as_ln_s=ln
33132 else
33133 as_ln_s='cp -p'
33134 fi
33135 else
33136 as_ln_s='cp -p'
33137 fi
33138 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33139 rmdir conf$$.dir 2>/dev/null
33140
33141 if mkdir -p . 2>/dev/null; then
33142 as_mkdir_p=:
33143 else
33144 test -d ./-p && rmdir ./-p
33145 as_mkdir_p=false
33146 fi
33147
33148 if test -x / >/dev/null 2>&1; then
33149 as_test_x='test -x'
33150 else
33151 if ls -dL / >/dev/null 2>&1; then
33152 as_ls_L_option=L
33153 else
33154 as_ls_L_option=
33155 fi
33156 as_test_x='
33157 eval sh -c '\''
33158 if test -d "$1"; then
33159 test -d "$1/.";
33160 else
33161 case $1 in
33162 -*)set "./$1";;
33163 esac;
33164 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
33165 ???[sx]*):;;*)false;;esac;fi
33166 '\'' sh
33167 '
33168 fi
33169 as_executable_p=$as_test_x
33170
33171 # Sed expression to map a string onto a valid CPP name.
33172 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33173
33174 # Sed expression to map a string onto a valid variable name.
33175 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33176
33177
33178 exec 6>&1
33179
33180 # Save the log message, to keep $[0] and so on meaningful, and to
33181 # report actual input values of CONFIG_FILES etc. instead of their
33182 # values after options handling.
33183 ac_log="
33184 This file was extended by zanavi $as_me 1.0.0, which was
33185 generated by GNU Autoconf 2.62. Invocation command line was
33186
33187 CONFIG_FILES = $CONFIG_FILES
33188 CONFIG_HEADERS = $CONFIG_HEADERS
33189 CONFIG_LINKS = $CONFIG_LINKS
33190 CONFIG_COMMANDS = $CONFIG_COMMANDS
33191 $ $0 $@
33192
33193 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33194 "
33195
33196 _ACEOF
33197
33198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33199 # Files that config.status was made for.
33200 config_files="$ac_config_files"
33201 config_headers="$ac_config_headers"
33202 config_commands="$ac_config_commands"
33203
33204 _ACEOF
33205
33206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33207 ac_cs_usage="\
33208 \`$as_me' instantiates files from templates according to the
33209 current configuration.
33210
33211 Usage: $0 [OPTIONS] [FILE]...
33212
33213 -h, --help print this help, then exit
33214 -V, --version print version number and configuration settings, then exit
33215 -q, --quiet do not print progress messages
33216 -d, --debug don't remove temporary files
33217 --recheck update $as_me by reconfiguring in the same conditions
33218 --file=FILE[:TEMPLATE]
33219 instantiate the configuration file FILE
33220 --header=FILE[:TEMPLATE]
33221 instantiate the configuration header FILE
33222
33223 Configuration files:
33224 $config_files
33225
33226 Configuration headers:
33227 $config_headers
33228
33229 Configuration commands:
33230 $config_commands
33231
33232 Report bugs to <bug-autoconf@gnu.org>."
33233
33234 _ACEOF
33235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33236 ac_cs_version="\\
33237 zanavi config.status 1.0.0
33238 configured by $0, generated by GNU Autoconf 2.62,
33239 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
33240
33241 Copyright (C) 2008 Free Software Foundation, Inc.
33242 This config.status script is free software; the Free Software Foundation
33243 gives unlimited permission to copy, distribute and modify it."
33244
33245 ac_pwd='$ac_pwd'
33246 srcdir='$srcdir'
33247 INSTALL='$INSTALL'
33248 MKDIR_P='$MKDIR_P'
33249 AWK='$AWK'
33250 test -n "\$AWK" || AWK=awk
33251 _ACEOF
33252
33253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33254 # The default lists apply if the user does not specify any file.
33255 ac_need_defaults=:
33256 while test $# != 0
33257 do
33258 case $1 in
33259 --*=*)
33260 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33261 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33262 ac_shift=:
33263 ;;
33264 *)
33265 ac_option=$1
33266 ac_optarg=$2
33267 ac_shift=shift
33268 ;;
33269 esac
33270
33271 case $ac_option in
33272 # Handling of the options.
33273 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33274 ac_cs_recheck=: ;;
33275 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33276 $as_echo "$ac_cs_version"; exit ;;
33277 --debug | --debu | --deb | --de | --d | -d )
33278 debug=: ;;
33279 --file | --fil | --fi | --f )
33280 $ac_shift
33281 case $ac_optarg in
33282 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33283 esac
33284 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
33285 ac_need_defaults=false;;
33286 --header | --heade | --head | --hea )
33287 $ac_shift
33288 case $ac_optarg in
33289 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33290 esac
33291 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
33292 ac_need_defaults=false;;
33293 --he | --h)
33294 # Conflict between --help and --header
33295 { $as_echo "$as_me: error: ambiguous option: $1
33296 Try \`$0 --help' for more information." >&2
33297 { (exit 1); exit 1; }; };;
33298 --help | --hel | -h )
33299 $as_echo "$ac_cs_usage"; exit ;;
33300 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33301 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33302 ac_cs_silent=: ;;
33303
33304 # This is an error.
33305 -*) { $as_echo "$as_me: error: unrecognized option: $1
33306 Try \`$0 --help' for more information." >&2
33307 { (exit 1); exit 1; }; } ;;
33308
33309 *) ac_config_targets="$ac_config_targets $1"
33310 ac_need_defaults=false ;;
33311
33312 esac
33313 shift
33314 done
33315
33316 ac_configure_extra_args=
33317
33318 if $ac_cs_silent; then
33319 exec 6>/dev/null
33320 ac_configure_extra_args="$ac_configure_extra_args --silent"
33321 fi
33322
33323 _ACEOF
33324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33325 if \$ac_cs_recheck; then
33326 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33327 shift
33328 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33329 CONFIG_SHELL='$SHELL'
33330 export CONFIG_SHELL
33331 exec "\$@"
33332 fi
33333
33334 _ACEOF
33335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33336 exec 5>>config.log
33337 {
33338 echo
33339 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
33340 @%:@@%:@ Running $as_me. @%:@@%:@
33341 _ASBOX
33342 $as_echo "$ac_log"
33343 } >&5
33344
33345 _ACEOF
33346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33347 #
33348 # INIT-COMMANDS
33349 #
33350 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33351
33352
33353 # The HP-UX ksh and POSIX shell print the target directory to stdout
33354 # if CDPATH is set.
33355 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33356
33357 sed_quote_subst='$sed_quote_subst'
33358 double_quote_subst='$double_quote_subst'
33359 delay_variable_subst='$delay_variable_subst'
33360 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
33361 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
33362 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
33363 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
33364 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
33365 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
33366 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
33367 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
33368 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
33369 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
33370 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
33371 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
33372 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
33373 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
33374 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
33375 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
33376 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
33377 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
33378 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
33379 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
33380 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
33381 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
33382 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
33383 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
33384 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
33385 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
33386 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
33387 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33388 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
33389 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
33390 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
33391 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
33392 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33393 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
33394 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
33395 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33396 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33397 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33398 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
33399 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33400 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
33401 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
33402 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
33403 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
33404 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"`'
33405 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"`'
33406 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
33407 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
33408 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
33409 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
33410 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
33411 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
33412 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
33413 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
33414 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
33415 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
33416 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
33417 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
33418 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
33419 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33420 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
33421 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
33422 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33423 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33424 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
33425 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
33426 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33427 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33428 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
33429 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33430 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33431 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33432 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33433 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33434 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33435 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
33436 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33437 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33438 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33439 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
33440 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
33441 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
33442 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
33443 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
33444 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33445 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
33446 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
33447 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
33448 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
33449 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
33450 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33451 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33452 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33453 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33454 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
33455 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
33456 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
33457 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
33458 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
33459 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33460 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33461 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
33462 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33463 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
33464 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33465 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33466 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33467 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33468 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
33469 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
33470 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33471 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33472 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
33473 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
33474 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
33475 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
33476 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
33477 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
33478 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
33479 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33480 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33481 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
33482 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
33483 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
33484 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33485 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33486 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33487 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33488 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33489 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33490 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33491 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33492 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33493 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33494 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33495 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33496 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33497 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33498 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33499 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33500 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33501 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33502 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33503 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33504 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33505 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33506 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33507 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33508 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33509 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33510 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33511 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33512 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33513 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33514 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33515 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33516 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33517 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33518 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33519 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33520 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33521 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33522 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33523 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33524 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33525 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33526 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33527 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33528 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33529 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33530 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33531
33532 LTCC='$LTCC'
33533 LTCFLAGS='$LTCFLAGS'
33534 compiler='$compiler_DEFAULT'
33535
33536 # Quote evaled strings.
33537 for var in SED \
33538 GREP \
33539 EGREP \
33540 FGREP \
33541 LD \
33542 NM \
33543 LN_S \
33544 lt_SP2NL \
33545 lt_NL2SP \
33546 reload_flag \
33547 OBJDUMP \
33548 deplibs_check_method \
33549 file_magic_cmd \
33550 AR \
33551 AR_FLAGS \
33552 STRIP \
33553 RANLIB \
33554 CC \
33555 CFLAGS \
33556 compiler \
33557 lt_cv_sys_global_symbol_pipe \
33558 lt_cv_sys_global_symbol_to_cdecl \
33559 lt_cv_sys_global_symbol_to_c_name_address \
33560 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
33561 SHELL \
33562 ECHO \
33563 lt_prog_compiler_no_builtin_flag \
33564 lt_prog_compiler_wl \
33565 lt_prog_compiler_pic \
33566 lt_prog_compiler_static \
33567 lt_cv_prog_compiler_c_o \
33568 need_locks \
33569 DSYMUTIL \
33570 NMEDIT \
33571 LIPO \
33572 OTOOL \
33573 OTOOL64 \
33574 shrext_cmds \
33575 export_dynamic_flag_spec \
33576 whole_archive_flag_spec \
33577 compiler_needs_object \
33578 with_gnu_ld \
33579 allow_undefined_flag \
33580 no_undefined_flag \
33581 hardcode_libdir_flag_spec \
33582 hardcode_libdir_flag_spec_ld \
33583 hardcode_libdir_separator \
33584 fix_srcfile_path \
33585 exclude_expsyms \
33586 include_expsyms \
33587 file_list_spec \
33588 variables_saved_for_relink \
33589 libname_spec \
33590 library_names_spec \
33591 soname_spec \
33592 finish_eval \
33593 old_striplib \
33594 striplib \
33595 compiler_lib_search_dirs \
33596 predep_objects \
33597 postdep_objects \
33598 predeps \
33599 postdeps \
33600 compiler_lib_search_path \
33601 LD_CXX \
33602 compiler_CXX \
33603 lt_prog_compiler_no_builtin_flag_CXX \
33604 lt_prog_compiler_wl_CXX \
33605 lt_prog_compiler_pic_CXX \
33606 lt_prog_compiler_static_CXX \
33607 lt_cv_prog_compiler_c_o_CXX \
33608 export_dynamic_flag_spec_CXX \
33609 whole_archive_flag_spec_CXX \
33610 compiler_needs_object_CXX \
33611 with_gnu_ld_CXX \
33612 allow_undefined_flag_CXX \
33613 no_undefined_flag_CXX \
33614 hardcode_libdir_flag_spec_CXX \
33615 hardcode_libdir_flag_spec_ld_CXX \
33616 hardcode_libdir_separator_CXX \
33617 fix_srcfile_path_CXX \
33618 exclude_expsyms_CXX \
33619 include_expsyms_CXX \
33620 file_list_spec_CXX \
33621 compiler_lib_search_dirs_CXX \
33622 predep_objects_CXX \
33623 postdep_objects_CXX \
33624 predeps_CXX \
33625 postdeps_CXX \
33626 compiler_lib_search_path_CXX; do
33627 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
33628 *[\\\\\\\`\\"\\\$]*)
33629 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
33630 ;;
33631 *)
33632 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33633 ;;
33634 esac
33635 done
33636
33637 # Double-quote double-evaled strings.
33638 for var in reload_cmds \
33639 old_postinstall_cmds \
33640 old_postuninstall_cmds \
33641 old_archive_cmds \
33642 extract_expsyms_cmds \
33643 old_archive_from_new_cmds \
33644 old_archive_from_expsyms_cmds \
33645 archive_cmds \
33646 archive_expsym_cmds \
33647 module_cmds \
33648 module_expsym_cmds \
33649 export_symbols_cmds \
33650 prelink_cmds \
33651 postinstall_cmds \
33652 postuninstall_cmds \
33653 finish_cmds \
33654 sys_lib_search_path_spec \
33655 sys_lib_dlsearch_path_spec \
33656 old_archive_cmds_CXX \
33657 old_archive_from_new_cmds_CXX \
33658 old_archive_from_expsyms_cmds_CXX \
33659 archive_cmds_CXX \
33660 archive_expsym_cmds_CXX \
33661 module_cmds_CXX \
33662 module_expsym_cmds_CXX \
33663 export_symbols_cmds_CXX \
33664 prelink_cmds_CXX; do
33665 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
33666 *[\\\\\\\`\\"\\\$]*)
33667 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
33668 ;;
33669 *)
33670 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33671 ;;
33672 esac
33673 done
33674
33675 # Fix-up fallback echo if it was mangled by the above quoting rules.
33676 case \$lt_ECHO in
33677 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
33678 ;;
33679 esac
33680
33681 ac_aux_dir='$ac_aux_dir'
33682 xsi_shell='$xsi_shell'
33683 lt_shell_append='$lt_shell_append'
33684
33685 # See if we are running on zsh, and set the options which allow our
33686 # commands through without removal of \ escapes INIT.
33687 if test -n "\${ZSH_VERSION+set}" ; then
33688 setopt NO_GLOB_SUBST
33689 fi
33690
33691
33692 PACKAGE='$PACKAGE'
33693 VERSION='$VERSION'
33694 TIMESTAMP='$TIMESTAMP'
33695 RM='$RM'
33696 ofile='$ofile'
33697
33698
33699
33700
33701
33702 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
33703 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
33704 # from automake.
33705 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
33706 # Capture the value of LINGUAS because we need it to compute CATALOGS.
33707 LINGUAS="${LINGUAS-%UNSET%}"
33708
33709
33710 _ACEOF
33711
33712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33713
33714 # Handling of arguments.
33715 for ac_config_target in $ac_config_targets
33716 do
33717 case $ac_config_target in
33718 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
33719 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33720 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33721 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
33722 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33723 "navit/Makefile") CONFIG_FILES="$CONFIG_FILES navit/Makefile" ;;
33724 "navit/autoload/Makefile") CONFIG_FILES="$CONFIG_FILES navit/autoload/Makefile" ;;
33725 "navit/autoload/osso/Makefile") CONFIG_FILES="$CONFIG_FILES navit/autoload/osso/Makefile" ;;
33726 "navit/binding/Makefile") CONFIG_FILES="$CONFIG_FILES navit/binding/Makefile" ;;
33727 "navit/binding/python/Makefile") CONFIG_FILES="$CONFIG_FILES navit/binding/python/Makefile" ;;
33728 "navit/binding/dbus/Makefile") CONFIG_FILES="$CONFIG_FILES navit/binding/dbus/Makefile" ;;
33729 "navit/map/Makefile") CONFIG_FILES="$CONFIG_FILES navit/map/Makefile" ;;
33730 "navit/map/mg/Makefile") CONFIG_FILES="$CONFIG_FILES navit/map/mg/Makefile" ;;
33731 "navit/map/textfile/Makefile") CONFIG_FILES="$CONFIG_FILES navit/map/textfile/Makefile" ;;
33732 "navit/map/csv/Makefile") CONFIG_FILES="$CONFIG_FILES navit/map/csv/Makefile" ;;
33733 "navit/map/shapefile/Makefile") CONFIG_FILES="$CONFIG_FILES navit/map/shapefile/Makefile" ;;
33734 "navit/map/filter/Makefile") CONFIG_FILES="$CONFIG_FILES navit/map/filter/Makefile" ;;
33735 "navit/map/binfile/Makefile") CONFIG_FILES="$CONFIG_FILES navit/map/binfile/Makefile" ;;
33736 "navit/map/garmin/Makefile") CONFIG_FILES="$CONFIG_FILES navit/map/garmin/Makefile" ;;
33737 "navit/maptool/Makefile") CONFIG_FILES="$CONFIG_FILES navit/maptool/Makefile" ;;
33738 "navit/maptool/p2t/Makefile") CONFIG_FILES="$CONFIG_FILES navit/maptool/p2t/Makefile" ;;
33739 "navit/maptool/p2t/sweep/Makefile") CONFIG_FILES="$CONFIG_FILES navit/maptool/p2t/sweep/Makefile" ;;
33740 "navit/maptool/p2t/common/Makefile") CONFIG_FILES="$CONFIG_FILES navit/maptool/p2t/common/Makefile" ;;
33741 "navit/maptool/libcfu-0.03-zanavi/Makefile") CONFIG_FILES="$CONFIG_FILES navit/maptool/libcfu-0.03-zanavi/Makefile" ;;
33742 "navit/maptool/libcfu-0.03-zanavi/src/Makefile") CONFIG_FILES="$CONFIG_FILES navit/maptool/libcfu-0.03-zanavi/src/Makefile" ;;
33743 "navit/maptool/refine/Makefile") CONFIG_FILES="$CONFIG_FILES navit/maptool/refine/Makefile" ;;
33744 "navit/fib-1.1/Makefile") CONFIG_FILES="$CONFIG_FILES navit/fib-1.1/Makefile" ;;
33745 "navit/font/Makefile") CONFIG_FILES="$CONFIG_FILES navit/font/Makefile" ;;
33746 "navit/font/freetype/Makefile") CONFIG_FILES="$CONFIG_FILES navit/font/freetype/Makefile" ;;
33747 "navit/fonts/Makefile") CONFIG_FILES="$CONFIG_FILES navit/fonts/Makefile" ;;
33748 "navit/graphics/Makefile") CONFIG_FILES="$CONFIG_FILES navit/graphics/Makefile" ;;
33749 "navit/graphics/android/Makefile") CONFIG_FILES="$CONFIG_FILES navit/graphics/android/Makefile" ;;
33750 "navit/graphics/gd/Makefile") CONFIG_FILES="$CONFIG_FILES navit/graphics/gd/Makefile" ;;
33751 "navit/graphics/gtk_drawing_area/Makefile") CONFIG_FILES="$CONFIG_FILES navit/graphics/gtk_drawing_area/Makefile" ;;
33752 "navit/graphics/opengl/Makefile") CONFIG_FILES="$CONFIG_FILES navit/graphics/opengl/Makefile" ;;
33753 "navit/graphics/null/Makefile") CONFIG_FILES="$CONFIG_FILES navit/graphics/null/Makefile" ;;
33754 "navit/graphics/sdl/Makefile") CONFIG_FILES="$CONFIG_FILES navit/graphics/sdl/Makefile" ;;
33755 "navit/graphics/qt_qpainter/Makefile") CONFIG_FILES="$CONFIG_FILES navit/graphics/qt_qpainter/Makefile" ;;
33756 "navit/graphics/win32/Makefile") CONFIG_FILES="$CONFIG_FILES navit/graphics/win32/Makefile" ;;
33757 "navit/gui/Makefile") CONFIG_FILES="$CONFIG_FILES navit/gui/Makefile" ;;
33758 "navit/gui/gtk/Makefile") CONFIG_FILES="$CONFIG_FILES navit/gui/gtk/Makefile" ;;
33759 "navit/gui/internal/Makefile") CONFIG_FILES="$CONFIG_FILES navit/gui/internal/Makefile" ;;
33760 "navit/gui/win32/Makefile") CONFIG_FILES="$CONFIG_FILES navit/gui/win32/Makefile" ;;
33761 "navit/gui/qml/Makefile") CONFIG_FILES="$CONFIG_FILES navit/gui/qml/Makefile" ;;
33762 "navit/gui/qml/skins/Makefile") CONFIG_FILES="$CONFIG_FILES navit/gui/qml/skins/Makefile" ;;
33763 "navit/gui/qml/skins/navit/Makefile") CONFIG_FILES="$CONFIG_FILES navit/gui/qml/skins/navit/Makefile" ;;
33764 "navit/osd/Makefile") CONFIG_FILES="$CONFIG_FILES navit/osd/Makefile" ;;
33765 "navit/osd/core/Makefile") CONFIG_FILES="$CONFIG_FILES navit/osd/core/Makefile" ;;
33766 "navit/plugin/Makefile") CONFIG_FILES="$CONFIG_FILES navit/plugin/Makefile" ;;
33767 "navit/plugin/pedestrian/Makefile") CONFIG_FILES="$CONFIG_FILES navit/plugin/pedestrian/Makefile" ;;
33768 "navit/speech/Makefile") CONFIG_FILES="$CONFIG_FILES navit/speech/Makefile" ;;
33769 "navit/speech/android/Makefile") CONFIG_FILES="$CONFIG_FILES navit/speech/android/Makefile" ;;
33770 "navit/speech/cmdline/Makefile") CONFIG_FILES="$CONFIG_FILES navit/speech/cmdline/Makefile" ;;
33771 "navit/speech/dbus/Makefile") CONFIG_FILES="$CONFIG_FILES navit/speech/dbus/Makefile" ;;
33772 "navit/speech/espeak/Makefile") CONFIG_FILES="$CONFIG_FILES navit/speech/espeak/Makefile" ;;
33773 "navit/speech/speech_dispatcher/Makefile") CONFIG_FILES="$CONFIG_FILES navit/speech/speech_dispatcher/Makefile" ;;
33774 "navit/support/Makefile") CONFIG_FILES="$CONFIG_FILES navit/support/Makefile" ;;
33775 "navit/support/espeak/Makefile") CONFIG_FILES="$CONFIG_FILES navit/support/espeak/Makefile" ;;
33776 "navit/support/ezxml/Makefile") CONFIG_FILES="$CONFIG_FILES navit/support/ezxml/Makefile" ;;
33777 "navit/support/glib/Makefile") CONFIG_FILES="$CONFIG_FILES navit/support/glib/Makefile" ;;
33778 "navit/support/libc/Makefile") CONFIG_FILES="$CONFIG_FILES navit/support/libc/Makefile" ;;
33779 "navit/support/libpng/Makefile") CONFIG_FILES="$CONFIG_FILES navit/support/libpng/Makefile" ;;
33780 "navit/support/win32/Makefile") CONFIG_FILES="$CONFIG_FILES navit/support/win32/Makefile" ;;
33781 "navit/support/wordexp/Makefile") CONFIG_FILES="$CONFIG_FILES navit/support/wordexp/Makefile" ;;
33782 "navit/support/zlib/Makefile") CONFIG_FILES="$CONFIG_FILES navit/support/zlib/Makefile" ;;
33783 "navit/vehicle/Makefile") CONFIG_FILES="$CONFIG_FILES navit/vehicle/Makefile" ;;
33784 "navit/vehicle/android/Makefile") CONFIG_FILES="$CONFIG_FILES navit/vehicle/android/Makefile" ;;
33785 "navit/vehicle/file/Makefile") CONFIG_FILES="$CONFIG_FILES navit/vehicle/file/Makefile" ;;
33786 "navit/vehicle/gpsd/Makefile") CONFIG_FILES="$CONFIG_FILES navit/vehicle/gpsd/Makefile" ;;
33787 "navit/vehicle/gpsd_dbus/Makefile") CONFIG_FILES="$CONFIG_FILES navit/vehicle/gpsd_dbus/Makefile" ;;
33788 "navit/vehicle/gypsy/Makefile") CONFIG_FILES="$CONFIG_FILES navit/vehicle/gypsy/Makefile" ;;
33789 "navit/vehicle/maemo/Makefile") CONFIG_FILES="$CONFIG_FILES navit/vehicle/maemo/Makefile" ;;
33790 "navit/vehicle/null/Makefile") CONFIG_FILES="$CONFIG_FILES navit/vehicle/null/Makefile" ;;
33791 "navit/vehicle/demo/Makefile") CONFIG_FILES="$CONFIG_FILES navit/vehicle/demo/Makefile" ;;
33792 "navit/vehicle/wince/Makefile") CONFIG_FILES="$CONFIG_FILES navit/vehicle/wince/Makefile" ;;
33793 "navit/vehicle/iphone/Makefile") CONFIG_FILES="$CONFIG_FILES navit/vehicle/iphone/Makefile" ;;
33794 "navit/vehicle/webos/Makefile") CONFIG_FILES="$CONFIG_FILES navit/vehicle/webos/Makefile" ;;
33795 "navit/xpm/Makefile") CONFIG_FILES="$CONFIG_FILES navit/xpm/Makefile" ;;
33796 "navit/maps/Makefile") CONFIG_FILES="$CONFIG_FILES navit/maps/Makefile" ;;
33797 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
33798 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
33799 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
33800
33801 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
33802 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
33803 { (exit 1); exit 1; }; };;
33804 esac
33805 done
33806
33807
33808 # If the user did not use the arguments to specify the items to instantiate,
33809 # then the envvar interface is used. Set only those that are not.
33810 # We use the long form for the default assignment because of an extremely
33811 # bizarre bug on SunOS 4.1.3.
33812 if $ac_need_defaults; then
33813 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33814 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33815 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33816 fi
33817
33818 # Have a temporary directory for convenience. Make it in the build tree
33819 # simply because there is no reason against having it here, and in addition,
33820 # creating and moving files from /tmp can sometimes cause problems.
33821 # Hook for its removal unless debugging.
33822 # Note that there is a small window in which the directory will not be cleaned:
33823 # after its creation but before its name has been assigned to `$tmp'.
33824 $debug ||
33825 {
33826 tmp=
33827 trap 'exit_status=$?
33828 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33829 ' 0
33830 trap '{ (exit 1); exit 1; }' 1 2 13 15
33831 }
33832 # Create a (secure) tmp directory for tmp files.
33833
33834 {
33835 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33836 test -n "$tmp" && test -d "$tmp"
33837 } ||
33838 {
33839 tmp=./conf$$-$RANDOM
33840 (umask 077 && mkdir "$tmp")
33841 } ||
33842 {
33843 $as_echo "$as_me: cannot create a temporary directory in ." >&2
33844 { (exit 1); exit 1; }
33845 }
33846
33847 # Set up the scripts for CONFIG_FILES section.
33848 # No need to generate them if there are no CONFIG_FILES.
33849 # This happens for instance with `./config.status config.h'.
33850 if test -n "$CONFIG_FILES"; then
33851
33852
33853 ac_cr='
33854 '
33855 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33856 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33857 ac_cs_awk_cr='\\r'
33858 else
33859 ac_cs_awk_cr=$ac_cr
33860 fi
33861
33862 echo 'BEGIN {' >"$tmp/subs1.awk" &&
33863 _ACEOF
33864
33865
33866 {
33867 echo "cat >conf$$subs.awk <<_ACEOF" &&
33868 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33869 echo "_ACEOF"
33870 } >conf$$subs.sh ||
33871 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33872 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33873 { (exit 1); exit 1; }; }
33874 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
33875 ac_delim='%!_!# '
33876 for ac_last_try in false false false false false :; do
33877 . ./conf$$subs.sh ||
33878 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33879 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33880 { (exit 1); exit 1; }; }
33881
33882 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
33883 break
33884 elif $ac_last_try; then
33885 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33886 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33887 { (exit 1); exit 1; }; }
33888 else
33889 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33890 fi
33891 done
33892 rm -f conf$$subs.sh
33893
33894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33895 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
33896 _ACEOF
33897 sed -n '
33898 h
33899 s/^/S["/; s/!.*/"]=/
33900 p
33901 g
33902 s/^[^!]*!//
33903 :repl
33904 t repl
33905 s/'"$ac_delim"'$//
33906 t delim
33907 :nl
33908 h
33909 s/\(.\{148\}\).*/\1/
33910 t more1
33911 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33912 p
33913 n
33914 b repl
33915 :more1
33916 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33917 p
33918 g
33919 s/.\{148\}//
33920 t nl
33921 :delim
33922 h
33923 s/\(.\{148\}\).*/\1/
33924 t more2
33925 s/["\\]/\\&/g; s/^/"/; s/$/"/
33926 p
33927 b
33928 :more2
33929 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33930 p
33931 g
33932 s/.\{148\}//
33933 t delim
33934 ' <conf$$subs.awk | sed '
33935 /^[^""]/{
33936 N
33937 s/\n//
33938 }
33939 ' >>$CONFIG_STATUS || ac_write_fail=1
33940 rm -f conf$$subs.awk
33941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33942 _ACAWK
33943 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
33944 for (key in S) S_is_set[key] = 1
33945 FS = ""
33946
33947 }
33948 {
33949 line = $ 0
33950 nfields = split(line, field, "@")
33951 substed = 0
33952 len = length(field[1])
33953 for (i = 2; i < nfields; i++) {
33954 key = field[i]
33955 keylen = length(key)
33956 if (S_is_set[key]) {
33957 value = S[key]
33958 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33959 len += length(value) + length(field[++i])
33960 substed = 1
33961 } else
33962 len += 1 + keylen
33963 }
33964
33965 print line
33966 }
33967
33968 _ACAWK
33969 _ACEOF
33970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33971 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33972 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33973 else
33974 cat
33975 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
33976 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
33977 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
33978 { (exit 1); exit 1; }; }
33979 _ACEOF
33980
33981 # VPATH may cause trouble with some makes, so we remove $(srcdir),
33982 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
33983 # trailing colons and then remove the whole line if VPATH becomes empty
33984 # (actually we leave an empty line to preserve line numbers).
33985 if test "x$srcdir" = x.; then
33986 ac_vpsub='/^[ ]*VPATH[ ]*=/{
33987 s/:*\$(srcdir):*/:/
33988 s/:*\${srcdir}:*/:/
33989 s/:*@srcdir@:*/:/
33990 s/^\([^=]*=[ ]*\):*/\1/
33991 s/:*$//
33992 s/^[^=]*=[ ]*$//
33993 }'
33994 fi
33995
33996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33997 fi # test -n "$CONFIG_FILES"
33998
33999 # Set up the scripts for CONFIG_HEADERS section.
34000 # No need to generate them if there are no CONFIG_HEADERS.
34001 # This happens for instance with `./config.status Makefile'.
34002 if test -n "$CONFIG_HEADERS"; then
34003 cat >"$tmp/defines.awk" <<\_ACAWK ||
34004 BEGIN {
34005 _ACEOF
34006
34007 # Transform confdefs.h into an awk script `defines.awk', embedded as
34008 # here-document in config.status, that substitutes the proper values into
34009 # config.h.in to produce config.h.
34010
34011 # Create a delimiter string that does not exist in confdefs.h, to ease
34012 # handling of long lines.
34013 ac_delim='%!_!# '
34014 for ac_last_try in false false :; do
34015 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34016 if test -z "$ac_t"; then
34017 break
34018 elif $ac_last_try; then
34019 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
34020 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
34021 { (exit 1); exit 1; }; }
34022 else
34023 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34024 fi
34025 done
34026
34027 # For the awk script, D is an array of macro values keyed by name,
34028 # likewise P contains macro parameters if any. Preserve backslash
34029 # newline sequences.
34030
34031 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34032 sed -n '
34033 s/.\{148\}/&'"$ac_delim"'/g
34034 t rset
34035 :rset
34036 s/^[ ]*#[ ]*define[ ][ ]*/ /
34037 t def
34038 d
34039 :def
34040 s/\\$//
34041 t bsnl
34042 s/["\\]/\\&/g
34043 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34044 D["\1"]=" \3"/p
34045 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
34046 d
34047 :bsnl
34048 s/["\\]/\\&/g
34049 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34050 D["\1"]=" \3\\\\\\n"\\/p
34051 t cont
34052 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34053 t cont
34054 d
34055 :cont
34056 n
34057 s/.\{148\}/&'"$ac_delim"'/g
34058 t clear
34059 :clear
34060 s/\\$//
34061 t bsnlc
34062 s/["\\]/\\&/g; s/^/"/; s/$/"/p
34063 d
34064 :bsnlc
34065 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34066 b cont
34067 ' <confdefs.h | sed '
34068 s/'"$ac_delim"'/"\\\
34069 "/g' >>$CONFIG_STATUS || ac_write_fail=1
34070
34071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34072 for (key in D) D_is_set[key] = 1
34073 FS = ""
34074 }
34075 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34076 line = \$ 0
34077 split(line, arg, " ")
34078 if (arg[1] == "#") {
34079 defundef = arg[2]
34080 mac1 = arg[3]
34081 } else {
34082 defundef = substr(arg[1], 2)
34083 mac1 = arg[2]
34084 }
34085 split(mac1, mac2, "(") #)
34086 macro = mac2[1]
34087 if (D_is_set[macro]) {
34088 # Preserve the white space surrounding the "#".
34089 prefix = substr(line, 1, index(line, defundef) - 1)
34090 print prefix "define", macro P[macro] D[macro]
34091 next
34092 } else {
34093 # Replace #undef with comments. This is necessary, for example,
34094 # in the case of _POSIX_SOURCE, which is predefined and required
34095 # on some systems where configure will not decide to define it.
34096 if (defundef == "undef") {
34097 print "/*", line, "*/"
34098 next
34099 }
34100 }
34101 }
34102 { print }
34103 _ACAWK
34104 _ACEOF
34105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34106 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
34107 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
34108 { (exit 1); exit 1; }; }
34109 fi # test -n "$CONFIG_HEADERS"
34110
34111
34112 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
34113 shift
34114 for ac_tag
34115 do
34116 case $ac_tag in
34117 :[FHLC]) ac_mode=$ac_tag; continue;;
34118 esac
34119 case $ac_mode$ac_tag in
34120 :[FHL]*:*);;
34121 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34122 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34123 { (exit 1); exit 1; }; };;
34124 :[FH]-) ac_tag=-:-;;
34125 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34126 esac
34127 ac_save_IFS=$IFS
34128 IFS=:
34129 set x $ac_tag
34130 IFS=$ac_save_IFS
34131 shift
34132 ac_file=$1
34133 shift
34134
34135 case $ac_mode in
34136 :L) ac_source=$1;;
34137 :[FH])
34138 ac_file_inputs=
34139 for ac_f
34140 do
34141 case $ac_f in
34142 -) ac_f="$tmp/stdin";;
34143 *) # Look for the file first in the build tree, then in the source tree
34144 # (if the path is not absolute). The absolute path cannot be DOS-style,
34145 # because $ac_f cannot contain `:'.
34146 test -f "$ac_f" ||
34147 case $ac_f in
34148 [\\/$]*) false;;
34149 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34150 esac ||
34151 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34152 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34153 { (exit 1); exit 1; }; };;
34154 esac
34155 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34156 ac_file_inputs="$ac_file_inputs '$ac_f'"
34157 done
34158
34159 # Let's still pretend it is `configure' which instantiates (i.e., don't
34160 # use $as_me), people would be surprised to read:
34161 # /* config.h. Generated by config.status. */
34162 configure_input='Generated from '`
34163 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34164 `' by configure.'
34165 if test x"$ac_file" != x-; then
34166 configure_input="$ac_file. $configure_input"
34167 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
34168 $as_echo "$as_me: creating $ac_file" >&6;}
34169 fi
34170 # Neutralize special characters interpreted by sed in replacement strings.
34171 case $configure_input in #(
34172 *\&* | *\|* | *\\* )
34173 ac_sed_conf_input=`$as_echo "$configure_input" |
34174 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34175 *) ac_sed_conf_input=$configure_input;;
34176 esac
34177
34178 case $ac_tag in
34179 *:-:* | *:-) cat >"$tmp/stdin" \
34180 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
34181 $as_echo "$as_me: error: could not create $ac_file" >&2;}
34182 { (exit 1); exit 1; }; } ;;
34183 esac
34184 ;;
34185 esac
34186
34187 ac_dir=`$as_dirname -- "$ac_file" ||
34188 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34189 X"$ac_file" : 'X\(//\)[^/]' \| \
34190 X"$ac_file" : 'X\(//\)$' \| \
34191 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34192 $as_echo X"$ac_file" |
34193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34194 s//\1/
34195 q
34196 }
34197 /^X\(\/\/\)[^/].*/{
34198 s//\1/
34199 q
34200 }
34201 /^X\(\/\/\)$/{
34202 s//\1/
34203 q
34204 }
34205 /^X\(\/\).*/{
34206 s//\1/
34207 q
34208 }
34209 s/.*/./; q'`
34210 { as_dir="$ac_dir"
34211 case $as_dir in #(
34212 -*) as_dir=./$as_dir;;
34213 esac
34214 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34215 as_dirs=
34216 while :; do
34217 case $as_dir in #(
34218 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34219 *) as_qdir=$as_dir;;
34220 esac
34221 as_dirs="'$as_qdir' $as_dirs"
34222 as_dir=`$as_dirname -- "$as_dir" ||
34223 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34224 X"$as_dir" : 'X\(//\)[^/]' \| \
34225 X"$as_dir" : 'X\(//\)$' \| \
34226 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34227 $as_echo X"$as_dir" |
34228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34229 s//\1/
34230 q
34231 }
34232 /^X\(\/\/\)[^/].*/{
34233 s//\1/
34234 q
34235 }
34236 /^X\(\/\/\)$/{
34237 s//\1/
34238 q
34239 }
34240 /^X\(\/\).*/{
34241 s//\1/
34242 q
34243 }
34244 s/.*/./; q'`
34245 test -d "$as_dir" && break
34246 done
34247 test -z "$as_dirs" || eval "mkdir $as_dirs"
34248 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34249 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
34250 { (exit 1); exit 1; }; }; }
34251 ac_builddir=.
34252
34253 case "$ac_dir" in
34254 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34255 *)
34256 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34257 # A ".." for each directory in $ac_dir_suffix.
34258 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34259 case $ac_top_builddir_sub in
34260 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34261 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34262 esac ;;
34263 esac
34264 ac_abs_top_builddir=$ac_pwd
34265 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34266 # for backward compatibility:
34267 ac_top_builddir=$ac_top_build_prefix
34268
34269 case $srcdir in
34270 .) # We are building in place.
34271 ac_srcdir=.
34272 ac_top_srcdir=$ac_top_builddir_sub
34273 ac_abs_top_srcdir=$ac_pwd ;;
34274 [\\/]* | ?:[\\/]* ) # Absolute name.
34275 ac_srcdir=$srcdir$ac_dir_suffix;
34276 ac_top_srcdir=$srcdir
34277 ac_abs_top_srcdir=$srcdir ;;
34278 *) # Relative name.
34279 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34280 ac_top_srcdir=$ac_top_build_prefix$srcdir
34281 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34282 esac
34283 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34284
34285
34286 case $ac_mode in
34287 :F)
34288 #
34289 # CONFIG_FILE
34290 #
34291
34292 case $INSTALL in
34293 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34294 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34295 esac
34296 ac_MKDIR_P=$MKDIR_P
34297 case $MKDIR_P in
34298 [\\/$]* | ?:[\\/]* ) ;;
34299 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34300 esac
34301 _ACEOF
34302
34303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34304 # If the template does not know about datarootdir, expand it.
34305 # FIXME: This hack should be removed a few years after 2.60.
34306 ac_datarootdir_hack=; ac_datarootdir_seen=
34307
34308 ac_sed_dataroot='
34309 /datarootdir/ {
34310 p
34311 q
34312 }
34313 /@datadir@/p
34314 /@docdir@/p
34315 /@infodir@/p
34316 /@localedir@/p
34317 /@mandir@/p
34318 '
34319 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34320 *datarootdir*) ac_datarootdir_seen=yes;;
34321 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34322 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34323 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34324 _ACEOF
34325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34326 ac_datarootdir_hack='
34327 s&@datadir@&$datadir&g
34328 s&@docdir@&$docdir&g
34329 s&@infodir@&$infodir&g
34330 s&@localedir@&$localedir&g
34331 s&@mandir@&$mandir&g
34332 s&\\\${datarootdir}&$datarootdir&g' ;;
34333 esac
34334 _ACEOF
34335
34336 # Neutralize VPATH when `$srcdir' = `.'.
34337 # Shell code in configure.ac might set extrasub.
34338 # FIXME: do we really want to maintain this feature?
34339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34340 ac_sed_extra="$ac_vpsub
34341 $extrasub
34342 _ACEOF
34343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34344 :t
34345 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34346 s|@configure_input@|$ac_sed_conf_input|;t t
34347 s&@top_builddir@&$ac_top_builddir_sub&;t t
34348 s&@top_build_prefix@&$ac_top_build_prefix&;t t
34349 s&@srcdir@&$ac_srcdir&;t t
34350 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34351 s&@top_srcdir@&$ac_top_srcdir&;t t
34352 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34353 s&@builddir@&$ac_builddir&;t t
34354 s&@abs_builddir@&$ac_abs_builddir&;t t
34355 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34356 s&@INSTALL@&$ac_INSTALL&;t t
34357 s&@MKDIR_P@&$ac_MKDIR_P&;t t
34358 $ac_datarootdir_hack
34359 "
34360 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
34361 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
34362 $as_echo "$as_me: error: could not create $ac_file" >&2;}
34363 { (exit 1); exit 1; }; }
34364
34365 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34366 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34367 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34368 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34369 which seems to be undefined. Please make sure it is defined." >&5
34370 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34371 which seems to be undefined. Please make sure it is defined." >&2;}
34372
34373 rm -f "$tmp/stdin"
34374 case $ac_file in
34375 -) cat "$tmp/out" && rm -f "$tmp/out";;
34376 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34377 esac \
34378 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
34379 $as_echo "$as_me: error: could not create $ac_file" >&2;}
34380 { (exit 1); exit 1; }; }
34381 ;;
34382 :H)
34383 #
34384 # CONFIG_HEADER
34385 #
34386 if test x"$ac_file" != x-; then
34387 {
34388 $as_echo "/* $configure_input */" \
34389 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34390 } >"$tmp/config.h" \
34391 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
34392 $as_echo "$as_me: error: could not create $ac_file" >&2;}
34393 { (exit 1); exit 1; }; }
34394 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
34395 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34396 $as_echo "$as_me: $ac_file is unchanged" >&6;}
34397 else
34398 rm -f "$ac_file"
34399 mv "$tmp/config.h" "$ac_file" \
34400 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
34401 $as_echo "$as_me: error: could not create $ac_file" >&2;}
34402 { (exit 1); exit 1; }; }
34403 fi
34404 else
34405 $as_echo "/* $configure_input */" \
34406 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
34407 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
34408 $as_echo "$as_me: error: could not create -" >&2;}
34409 { (exit 1); exit 1; }; }
34410 fi
34411 # Compute "$ac_file"'s index in $config_headers.
34412 _am_arg="$ac_file"
34413 _am_stamp_count=1
34414 for _am_header in $config_headers :; do
34415 case $_am_header in
34416 $_am_arg | $_am_arg:* )
34417 break ;;
34418 * )
34419 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34420 esac
34421 done
34422 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34423 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34424 X"$_am_arg" : 'X\(//\)[^/]' \| \
34425 X"$_am_arg" : 'X\(//\)$' \| \
34426 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34427 $as_echo X"$_am_arg" |
34428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34429 s//\1/
34430 q
34431 }
34432 /^X\(\/\/\)[^/].*/{
34433 s//\1/
34434 q
34435 }
34436 /^X\(\/\/\)$/{
34437 s//\1/
34438 q
34439 }
34440 /^X\(\/\).*/{
34441 s//\1/
34442 q
34443 }
34444 s/.*/./; q'`/stamp-h$_am_stamp_count
34445 ;;
34446
34447 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
34448 $as_echo "$as_me: executing $ac_file commands" >&6;}
34449 ;;
34450 esac
34451
34452
34453 case $ac_file$ac_mode in
34454 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34455 # Autoconf 2.62 quotes --file arguments for eval, but not when files
34456 # are listed without --file. Let's play safe and only enable the eval
34457 # if we detect the quoting.
34458 case $CONFIG_FILES in
34459 *\'*) eval set x "$CONFIG_FILES" ;;
34460 *) set x $CONFIG_FILES ;;
34461 esac
34462 shift
34463 for mf
34464 do
34465 # Strip MF so we end up with the name of the file.
34466 mf=`echo "$mf" | sed -e 's/:.*$//'`
34467 # Check whether this is an Automake generated Makefile or not.
34468 # We used to match only the files named `Makefile.in', but
34469 # some people rename them; so instead we look at the file content.
34470 # Grep'ing the first line is not enough: some people post-process
34471 # each Makefile.in and add a new line on top of each file to say so.
34472 # Grep'ing the whole file is not good either: AIX grep has a line
34473 # limit of 2048, but all sed's we know have understand at least 4000.
34474 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34475 dirpart=`$as_dirname -- "$mf" ||
34476 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34477 X"$mf" : 'X\(//\)[^/]' \| \
34478 X"$mf" : 'X\(//\)$' \| \
34479 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34480 $as_echo X"$mf" |
34481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34482 s//\1/
34483 q
34484 }
34485 /^X\(\/\/\)[^/].*/{
34486 s//\1/
34487 q
34488 }
34489 /^X\(\/\/\)$/{
34490 s//\1/
34491 q
34492 }
34493 /^X\(\/\).*/{
34494 s//\1/
34495 q
34496 }
34497 s/.*/./; q'`
34498 else
34499 continue
34500 fi
34501 # Extract the definition of DEPDIR, am__include, and am__quote
34502 # from the Makefile without running `make'.
34503 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34504 test -z "$DEPDIR" && continue
34505 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34506 test -z "am__include" && continue
34507 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34508 # When using ansi2knr, U may be empty or an underscore; expand it
34509 U=`sed -n 's/^U = //p' < "$mf"`
34510 # Find all dependency output files, they are included files with
34511 # $(DEPDIR) in their names. We invoke sed twice because it is the
34512 # simplest approach to changing $(DEPDIR) to its actual value in the
34513 # expansion.
34514 for file in `sed -n "
34515 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34516 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34517 # Make sure the directory exists.
34518 test -f "$dirpart/$file" && continue
34519 fdir=`$as_dirname -- "$file" ||
34520 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34521 X"$file" : 'X\(//\)[^/]' \| \
34522 X"$file" : 'X\(//\)$' \| \
34523 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34524 $as_echo X"$file" |
34525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34526 s//\1/
34527 q
34528 }
34529 /^X\(\/\/\)[^/].*/{
34530 s//\1/
34531 q
34532 }
34533 /^X\(\/\/\)$/{
34534 s//\1/
34535 q
34536 }
34537 /^X\(\/\).*/{
34538 s//\1/
34539 q
34540 }
34541 s/.*/./; q'`
34542 { as_dir=$dirpart/$fdir
34543 case $as_dir in #(
34544 -*) as_dir=./$as_dir;;
34545 esac
34546 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34547 as_dirs=
34548 while :; do
34549 case $as_dir in #(
34550 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34551 *) as_qdir=$as_dir;;
34552 esac
34553 as_dirs="'$as_qdir' $as_dirs"
34554 as_dir=`$as_dirname -- "$as_dir" ||
34555 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34556 X"$as_dir" : 'X\(//\)[^/]' \| \
34557 X"$as_dir" : 'X\(//\)$' \| \
34558 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34559 $as_echo X"$as_dir" |
34560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34561 s//\1/
34562 q
34563 }
34564 /^X\(\/\/\)[^/].*/{
34565 s//\1/
34566 q
34567 }
34568 /^X\(\/\/\)$/{
34569 s//\1/
34570 q
34571 }
34572 /^X\(\/\).*/{
34573 s//\1/
34574 q
34575 }
34576 s/.*/./; q'`
34577 test -d "$as_dir" && break
34578 done
34579 test -z "$as_dirs" || eval "mkdir $as_dirs"
34580 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34581 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
34582 { (exit 1); exit 1; }; }; }
34583 # echo "creating $dirpart/$file"
34584 echo '# dummy' > "$dirpart/$file"
34585 done
34586 done
34587 }
34588 ;;
34589 "libtool":C)
34590
34591 # See if we are running on zsh, and set the options which allow our
34592 # commands through without removal of \ escapes.
34593 if test -n "${ZSH_VERSION+set}" ; then
34594 setopt NO_GLOB_SUBST
34595 fi
34596
34597 cfgfile="${ofile}T"
34598 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34599 $RM "$cfgfile"
34600
34601 cat <<_LT_EOF >> "$cfgfile"
34602 #! $SHELL
34603
34604 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34605 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34606 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34607 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
34608 #
34609 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
34610 # 2006, 2007, 2008 Free Software Foundation, Inc.
34611 # Written by Gordon Matzigkeit, 1996
34612 #
34613 # This file is part of GNU Libtool.
34614 #
34615 # GNU Libtool is free software; you can redistribute it and/or
34616 # modify it under the terms of the GNU General Public License as
34617 # published by the Free Software Foundation; either version 2 of
34618 # the License, or (at your option) any later version.
34619 #
34620 # As a special exception to the GNU General Public License,
34621 # if you distribute this file as part of a program or library that
34622 # is built using GNU Libtool, you may include this file under the
34623 # same distribution terms that you use for the rest of that program.
34624 #
34625 # GNU Libtool is distributed in the hope that it will be useful,
34626 # but WITHOUT ANY WARRANTY; without even the implied warranty of
34627 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34628 # GNU General Public License for more details.
34629 #
34630 # You should have received a copy of the GNU General Public License
34631 # along with GNU Libtool; see the file COPYING. If not, a copy
34632 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34633 # obtained by writing to the Free Software Foundation, Inc.,
34634 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34635
34636
34637 # The names of the tagged configurations supported by this script.
34638 available_tags="CXX "
34639
34640 # ### BEGIN LIBTOOL CONFIG
34641
34642 # Whether or not to build shared libraries.
34643 build_libtool_libs=$enable_shared
34644
34645 # Whether or not to build static libraries.
34646 build_old_libs=$enable_static
34647
34648 # Which release of libtool.m4 was used?
34649 macro_version=$macro_version
34650 macro_revision=$macro_revision
34651
34652 # What type of objects to build.
34653 pic_mode=$pic_mode
34654
34655 # Whether or not to optimize for fast installation.
34656 fast_install=$enable_fast_install
34657
34658 # The host system.
34659 host_alias=$host_alias
34660 host=$host
34661 host_os=$host_os
34662
34663 # The build system.
34664 build_alias=$build_alias
34665 build=$build
34666 build_os=$build_os
34667
34668 # A sed program that does not truncate output.
34669 SED=$lt_SED
34670
34671 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
34672 Xsed="\$SED -e 1s/^X//"
34673
34674 # A grep program that handles long lines.
34675 GREP=$lt_GREP
34676
34677 # An ERE matcher.
34678 EGREP=$lt_EGREP
34679
34680 # A literal string matcher.
34681 FGREP=$lt_FGREP
34682
34683 # A BSD- or MS-compatible name lister.
34684 NM=$lt_NM
34685
34686 # Whether we need soft or hard links.
34687 LN_S=$lt_LN_S
34688
34689 # What is the maximum length of a command?
34690 max_cmd_len=$max_cmd_len
34691
34692 # Object file suffix (normally "o").
34693 objext=$ac_objext
34694
34695 # Executable file suffix (normally "").
34696 exeext=$exeext
34697
34698 # whether the shell understands "unset".
34699 lt_unset=$lt_unset
34700
34701 # turn spaces into newlines.
34702 SP2NL=$lt_lt_SP2NL
34703
34704 # turn newlines into spaces.
34705 NL2SP=$lt_lt_NL2SP
34706
34707 # How to create reloadable object files.
34708 reload_flag=$lt_reload_flag
34709 reload_cmds=$lt_reload_cmds
34710
34711 # An object symbol dumper.
34712 OBJDUMP=$lt_OBJDUMP
34713
34714 # Method to check whether dependent libraries are shared objects.
34715 deplibs_check_method=$lt_deplibs_check_method
34716
34717 # Command to use when deplibs_check_method == "file_magic".
34718 file_magic_cmd=$lt_file_magic_cmd
34719
34720 # The archiver.
34721 AR=$lt_AR
34722 AR_FLAGS=$lt_AR_FLAGS
34723
34724 # A symbol stripping program.
34725 STRIP=$lt_STRIP
34726
34727 # Commands used to install an old-style archive.
34728 RANLIB=$lt_RANLIB
34729 old_postinstall_cmds=$lt_old_postinstall_cmds
34730 old_postuninstall_cmds=$lt_old_postuninstall_cmds
34731
34732 # A C compiler.
34733 LTCC=$lt_CC
34734
34735 # LTCC compiler flags.
34736 LTCFLAGS=$lt_CFLAGS
34737
34738 # Take the output of nm and produce a listing of raw symbols and C names.
34739 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34740
34741 # Transform the output of nm in a proper C declaration.
34742 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34743
34744 # Transform the output of nm in a C name address pair.
34745 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34746
34747 # Transform the output of nm in a C name address pair when lib prefix is needed.
34748 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34749
34750 # The name of the directory that contains temporary libtool files.
34751 objdir=$objdir
34752
34753 # Shell to use when invoking shell scripts.
34754 SHELL=$lt_SHELL
34755
34756 # An echo program that does not interpret backslashes.
34757 ECHO=$lt_ECHO
34758
34759 # Used to examine libraries when file_magic_cmd begins with "file".
34760 MAGIC_CMD=$MAGIC_CMD
34761
34762 # Must we lock files when doing compilation?
34763 need_locks=$lt_need_locks
34764
34765 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34766 DSYMUTIL=$lt_DSYMUTIL
34767
34768 # Tool to change global to local symbols on Mac OS X.
34769 NMEDIT=$lt_NMEDIT
34770
34771 # Tool to manipulate fat objects and archives on Mac OS X.
34772 LIPO=$lt_LIPO
34773
34774 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
34775 OTOOL=$lt_OTOOL
34776
34777 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34778 OTOOL64=$lt_OTOOL64
34779
34780 # Old archive suffix (normally "a").
34781 libext=$libext
34782
34783 # Shared library suffix (normally ".so").
34784 shrext_cmds=$lt_shrext_cmds
34785
34786 # The commands to extract the exported symbol list from a shared archive.
34787 extract_expsyms_cmds=$lt_extract_expsyms_cmds
34788
34789 # Variables whose values should be saved in libtool wrapper scripts and
34790 # restored at link time.
34791 variables_saved_for_relink=$lt_variables_saved_for_relink
34792
34793 # Do we need the "lib" prefix for modules?
34794 need_lib_prefix=$need_lib_prefix
34795
34796 # Do we need a version for libraries?
34797 need_version=$need_version
34798
34799 # Library versioning type.
34800 version_type=$version_type
34801
34802 # Shared library runtime path variable.
34803 runpath_var=$runpath_var
34804
34805 # Shared library path variable.
34806 shlibpath_var=$shlibpath_var
34807
34808 # Is shlibpath searched before the hard-coded library search path?
34809 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34810
34811 # Format of library name prefix.
34812 libname_spec=$lt_libname_spec
34813
34814 # List of archive names. First name is the real one, the rest are links.
34815 # The last name is the one that the linker finds with -lNAME
34816 library_names_spec=$lt_library_names_spec
34817
34818 # The coded name of the library, if different from the real name.
34819 soname_spec=$lt_soname_spec
34820
34821 # Command to use after installation of a shared archive.
34822 postinstall_cmds=$lt_postinstall_cmds
34823
34824 # Command to use after uninstallation of a shared archive.
34825 postuninstall_cmds=$lt_postuninstall_cmds
34826
34827 # Commands used to finish a libtool library installation in a directory.
34828 finish_cmds=$lt_finish_cmds
34829
34830 # As "finish_cmds", except a single script fragment to be evaled but
34831 # not shown.
34832 finish_eval=$lt_finish_eval
34833
34834 # Whether we should hardcode library paths into libraries.
34835 hardcode_into_libs=$hardcode_into_libs
34836
34837 # Compile-time system search path for libraries.
34838 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34839
34840 # Run-time system search path for libraries.
34841 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
34842
34843 # Whether dlopen is supported.
34844 dlopen_support=$enable_dlopen
34845
34846 # Whether dlopen of programs is supported.
34847 dlopen_self=$enable_dlopen_self
34848
34849 # Whether dlopen of statically linked programs is supported.
34850 dlopen_self_static=$enable_dlopen_self_static
34851
34852 # Commands to strip libraries.
34853 old_striplib=$lt_old_striplib
34854 striplib=$lt_striplib
34855
34856
34857 # The linker used to build libraries.
34858 LD=$lt_LD
34859
34860 # Commands used to build an old-style archive.
34861 old_archive_cmds=$lt_old_archive_cmds
34862
34863 # A language specific compiler.
34864 CC=$lt_compiler
34865
34866 # Is the compiler the GNU compiler?
34867 with_gcc=$GCC
34868
34869 # Compiler flag to turn off builtin functions.
34870 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34871
34872 # How to pass a linker flag through the compiler.
34873 wl=$lt_lt_prog_compiler_wl
34874
34875 # Additional compiler flags for building library objects.
34876 pic_flag=$lt_lt_prog_compiler_pic
34877
34878 # Compiler flag to prevent dynamic linking.
34879 link_static_flag=$lt_lt_prog_compiler_static
34880
34881 # Does compiler simultaneously support -c and -o options?
34882 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
34883
34884 # Whether or not to add -lc for building shared libraries.
34885 build_libtool_need_lc=$archive_cmds_need_lc
34886
34887 # Whether or not to disallow shared libs when runtime libs are static.
34888 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
34889
34890 # Compiler flag to allow reflexive dlopens.
34891 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
34892
34893 # Compiler flag to generate shared objects directly from archives.
34894 whole_archive_flag_spec=$lt_whole_archive_flag_spec
34895
34896 # Whether the compiler copes with passing no objects directly.
34897 compiler_needs_object=$lt_compiler_needs_object
34898
34899 # Create an old-style archive from a shared archive.
34900 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
34901
34902 # Create a temporary old-style archive to link instead of a shared archive.
34903 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
34904
34905 # Commands used to build a shared archive.
34906 archive_cmds=$lt_archive_cmds
34907 archive_expsym_cmds=$lt_archive_expsym_cmds
34908
34909 # Commands used to build a loadable module if different from building
34910 # a shared archive.
34911 module_cmds=$lt_module_cmds
34912 module_expsym_cmds=$lt_module_expsym_cmds
34913
34914 # Whether we are building with GNU ld or not.
34915 with_gnu_ld=$lt_with_gnu_ld
34916
34917 # Flag that allows shared libraries with undefined symbols to be built.
34918 allow_undefined_flag=$lt_allow_undefined_flag
34919
34920 # Flag that enforces no undefined symbols.
34921 no_undefined_flag=$lt_no_undefined_flag
34922
34923 # Flag to hardcode \$libdir into a binary during linking.
34924 # This must work even if \$libdir does not exist
34925 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
34926
34927 # If ld is used when linking, flag to hardcode \$libdir into a binary
34928 # during linking. This must work even if \$libdir does not exist.
34929 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
34930
34931 # Whether we need a single "-rpath" flag with a separated argument.
34932 hardcode_libdir_separator=$lt_hardcode_libdir_separator
34933
34934 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34935 # DIR into the resulting binary.
34936 hardcode_direct=$hardcode_direct
34937
34938 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34939 # DIR into the resulting binary and the resulting library dependency is
34940 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
34941 # library is relocated.
34942 hardcode_direct_absolute=$hardcode_direct_absolute
34943
34944 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34945 # into the resulting binary.
34946 hardcode_minus_L=$hardcode_minus_L
34947
34948 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34949 # into the resulting binary.
34950 hardcode_shlibpath_var=$hardcode_shlibpath_var
34951
34952 # Set to "yes" if building a shared library automatically hardcodes DIR
34953 # into the library and all subsequent libraries and executables linked
34954 # against it.
34955 hardcode_automatic=$hardcode_automatic
34956
34957 # Set to yes if linker adds runtime paths of dependent libraries
34958 # to runtime path list.
34959 inherit_rpath=$inherit_rpath
34960
34961 # Whether libtool must link a program against all its dependency libraries.
34962 link_all_deplibs=$link_all_deplibs
34963
34964 # Fix the shell variable \$srcfile for the compiler.
34965 fix_srcfile_path=$lt_fix_srcfile_path
34966
34967 # Set to "yes" if exported symbols are required.
34968 always_export_symbols=$always_export_symbols
34969
34970 # The commands to list exported symbols.
34971 export_symbols_cmds=$lt_export_symbols_cmds
34972
34973 # Symbols that should not be listed in the preloaded symbols.
34974 exclude_expsyms=$lt_exclude_expsyms
34975
34976 # Symbols that must always be exported.
34977 include_expsyms=$lt_include_expsyms
34978
34979 # Commands necessary for linking programs (against libraries) with templates.
34980 prelink_cmds=$lt_prelink_cmds
34981
34982 # Specify filename containing input files.
34983 file_list_spec=$lt_file_list_spec
34984
34985 # How to hardcode a shared library path into an executable.
34986 hardcode_action=$hardcode_action
34987
34988 # The directories searched by this compiler when creating a shared library.
34989 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
34990
34991 # Dependencies to place before and after the objects being linked to
34992 # create a shared library.
34993 predep_objects=$lt_predep_objects
34994 postdep_objects=$lt_postdep_objects
34995 predeps=$lt_predeps
34996 postdeps=$lt_postdeps
34997
34998 # The library search path used internally by the compiler when linking
34999 # a shared library.
35000 compiler_lib_search_path=$lt_compiler_lib_search_path
35001
35002 # ### END LIBTOOL CONFIG
35003
35004 _LT_EOF
35005
35006 case $host_os in
35007 aix3*)
35008 cat <<\_LT_EOF >> "$cfgfile"
35009 # AIX sometimes has problems with the GCC collect2 program. For some
35010 # reason, if we set the COLLECT_NAMES environment variable, the problems
35011 # vanish in a puff of smoke.
35012 if test "X${COLLECT_NAMES+set}" != Xset; then
35013 COLLECT_NAMES=
35014 export COLLECT_NAMES
35015 fi
35016 _LT_EOF
35017 ;;
35018 esac
35019
35020
35021 ltmain="$ac_aux_dir/ltmain.sh"
35022
35023
35024 # We use sed instead of cat because bash on DJGPP gets confused if
35025 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35026 # text mode, it properly converts lines to CR/LF. This bash problem
35027 # is reportedly fixed, but why not run on old versions too?
35028 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35029 || (rm -f "$cfgfile"; exit 1)
35030
35031 case $xsi_shell in
35032 yes)
35033 cat << \_LT_EOF >> "$cfgfile"
35034
35035 # func_dirname file append nondir_replacement
35036 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
35037 # otherwise set result to NONDIR_REPLACEMENT.
35038 func_dirname ()
35039 {
35040 case ${1} in
35041 */*) func_dirname_result="${1%/*}${2}" ;;
35042 * ) func_dirname_result="${3}" ;;
35043 esac
35044 }
35045
35046 # func_basename file
35047 func_basename ()
35048 {
35049 func_basename_result="${1##*/}"
35050 }
35051
35052 # func_dirname_and_basename file append nondir_replacement
35053 # perform func_basename and func_dirname in a single function
35054 # call:
35055 # dirname: Compute the dirname of FILE. If nonempty,
35056 # add APPEND to the result, otherwise set result
35057 # to NONDIR_REPLACEMENT.
35058 # value returned in "$func_dirname_result"
35059 # basename: Compute filename of FILE.
35060 # value retuned in "$func_basename_result"
35061 # Implementation must be kept synchronized with func_dirname
35062 # and func_basename. For efficiency, we do not delegate to
35063 # those functions but instead duplicate the functionality here.
35064 func_dirname_and_basename ()
35065 {
35066 case ${1} in
35067 */*) func_dirname_result="${1%/*}${2}" ;;
35068 * ) func_dirname_result="${3}" ;;
35069 esac
35070 func_basename_result="${1##*/}"
35071 }
35072
35073 # func_stripname prefix suffix name
35074 # strip PREFIX and SUFFIX off of NAME.
35075 # PREFIX and SUFFIX must not contain globbing or regex special
35076 # characters, hashes, percent signs, but SUFFIX may contain a leading
35077 # dot (in which case that matches only a dot).
35078 func_stripname ()
35079 {
35080 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35081 # positional parameters, so assign one to ordinary parameter first.
35082 func_stripname_result=${3}
35083 func_stripname_result=${func_stripname_result#"${1}"}
35084 func_stripname_result=${func_stripname_result%"${2}"}
35085 }
35086
35087 # func_opt_split
35088 func_opt_split ()
35089 {
35090 func_opt_split_opt=${1%%=*}
35091 func_opt_split_arg=${1#*=}
35092 }
35093
35094 # func_lo2o object
35095 func_lo2o ()
35096 {
35097 case ${1} in
35098 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35099 *) func_lo2o_result=${1} ;;
35100 esac
35101 }
35102
35103 # func_xform libobj-or-source
35104 func_xform ()
35105 {
35106 func_xform_result=${1%.*}.lo
35107 }
35108
35109 # func_arith arithmetic-term...
35110 func_arith ()
35111 {
35112 func_arith_result=$(( $* ))
35113 }
35114
35115 # func_len string
35116 # STRING may not start with a hyphen.
35117 func_len ()
35118 {
35119 func_len_result=${#1}
35120 }
35121
35122 _LT_EOF
35123 ;;
35124 *) # Bourne compatible functions.
35125 cat << \_LT_EOF >> "$cfgfile"
35126
35127 # func_dirname file append nondir_replacement
35128 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
35129 # otherwise set result to NONDIR_REPLACEMENT.
35130 func_dirname ()
35131 {
35132 # Extract subdirectory from the argument.
35133 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
35134 if test "X$func_dirname_result" = "X${1}"; then
35135 func_dirname_result="${3}"
35136 else
35137 func_dirname_result="$func_dirname_result${2}"
35138 fi
35139 }
35140
35141 # func_basename file
35142 func_basename ()
35143 {
35144 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
35145 }
35146
35147
35148 # func_stripname prefix suffix name
35149 # strip PREFIX and SUFFIX off of NAME.
35150 # PREFIX and SUFFIX must not contain globbing or regex special
35151 # characters, hashes, percent signs, but SUFFIX may contain a leading
35152 # dot (in which case that matches only a dot).
35153 # func_strip_suffix prefix name
35154 func_stripname ()
35155 {
35156 case ${2} in
35157 .*) func_stripname_result=`$ECHO "X${3}" \
35158 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
35159 *) func_stripname_result=`$ECHO "X${3}" \
35160 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
35161 esac
35162 }
35163
35164 # sed scripts:
35165 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35166 my_sed_long_arg='1s/^-[^=]*=//'
35167
35168 # func_opt_split
35169 func_opt_split ()
35170 {
35171 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
35172 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
35173 }
35174
35175 # func_lo2o object
35176 func_lo2o ()
35177 {
35178 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
35179 }
35180
35181 # func_xform libobj-or-source
35182 func_xform ()
35183 {
35184 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
35185 }
35186
35187 # func_arith arithmetic-term...
35188 func_arith ()
35189 {
35190 func_arith_result=`expr "$@"`
35191 }
35192
35193 # func_len string
35194 # STRING may not start with a hyphen.
35195 func_len ()
35196 {
35197 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
35198 }
35199
35200 _LT_EOF
35201 esac
35202
35203 case $lt_shell_append in
35204 yes)
35205 cat << \_LT_EOF >> "$cfgfile"
35206
35207 # func_append var value
35208 # Append VALUE to the end of shell variable VAR.
35209 func_append ()
35210 {
35211 eval "$1+=\$2"
35212 }
35213 _LT_EOF
35214 ;;
35215 *)
35216 cat << \_LT_EOF >> "$cfgfile"
35217
35218 # func_append var value
35219 # Append VALUE to the end of shell variable VAR.
35220 func_append ()
35221 {
35222 eval "$1=\$$1\$2"
35223 }
35224
35225 _LT_EOF
35226 ;;
35227 esac
35228
35229
35230 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35231 || (rm -f "$cfgfile"; exit 1)
35232
35233 mv -f "$cfgfile" "$ofile" ||
35234 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35235 chmod +x "$ofile"
35236
35237
35238 cat <<_LT_EOF >> "$ofile"
35239
35240 # ### BEGIN LIBTOOL TAG CONFIG: CXX
35241
35242 # The linker used to build libraries.
35243 LD=$lt_LD_CXX
35244
35245 # Commands used to build an old-style archive.
35246 old_archive_cmds=$lt_old_archive_cmds_CXX
35247
35248 # A language specific compiler.
35249 CC=$lt_compiler_CXX
35250
35251 # Is the compiler the GNU compiler?
35252 with_gcc=$GCC_CXX
35253
35254 # Compiler flag to turn off builtin functions.
35255 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
35256
35257 # How to pass a linker flag through the compiler.
35258 wl=$lt_lt_prog_compiler_wl_CXX
35259
35260 # Additional compiler flags for building library objects.
35261 pic_flag=$lt_lt_prog_compiler_pic_CXX
35262
35263 # Compiler flag to prevent dynamic linking.
35264 link_static_flag=$lt_lt_prog_compiler_static_CXX
35265
35266 # Does compiler simultaneously support -c and -o options?
35267 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
35268
35269 # Whether or not to add -lc for building shared libraries.
35270 build_libtool_need_lc=$archive_cmds_need_lc_CXX
35271
35272 # Whether or not to disallow shared libs when runtime libs are static.
35273 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35274
35275 # Compiler flag to allow reflexive dlopens.
35276 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35277
35278 # Compiler flag to generate shared objects directly from archives.
35279 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35280
35281 # Whether the compiler copes with passing no objects directly.
35282 compiler_needs_object=$lt_compiler_needs_object_CXX
35283
35284 # Create an old-style archive from a shared archive.
35285 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35286
35287 # Create a temporary old-style archive to link instead of a shared archive.
35288 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35289
35290 # Commands used to build a shared archive.
35291 archive_cmds=$lt_archive_cmds_CXX
35292 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
35293
35294 # Commands used to build a loadable module if different from building
35295 # a shared archive.
35296 module_cmds=$lt_module_cmds_CXX
35297 module_expsym_cmds=$lt_module_expsym_cmds_CXX
35298
35299 # Whether we are building with GNU ld or not.
35300 with_gnu_ld=$lt_with_gnu_ld_CXX
35301
35302 # Flag that allows shared libraries with undefined symbols to be built.
35303 allow_undefined_flag=$lt_allow_undefined_flag_CXX
35304
35305 # Flag that enforces no undefined symbols.
35306 no_undefined_flag=$lt_no_undefined_flag_CXX
35307
35308 # Flag to hardcode \$libdir into a binary during linking.
35309 # This must work even if \$libdir does not exist
35310 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
35311
35312 # If ld is used when linking, flag to hardcode \$libdir into a binary
35313 # during linking. This must work even if \$libdir does not exist.
35314 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
35315
35316 # Whether we need a single "-rpath" flag with a separated argument.
35317 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
35318
35319 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35320 # DIR into the resulting binary.
35321 hardcode_direct=$hardcode_direct_CXX
35322
35323 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35324 # DIR into the resulting binary and the resulting library dependency is
35325 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35326 # library is relocated.
35327 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
35328
35329 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35330 # into the resulting binary.
35331 hardcode_minus_L=$hardcode_minus_L_CXX
35332
35333 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35334 # into the resulting binary.
35335 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35336
35337 # Set to "yes" if building a shared library automatically hardcodes DIR
35338 # into the library and all subsequent libraries and executables linked
35339 # against it.
35340 hardcode_automatic=$hardcode_automatic_CXX
35341
35342 # Set to yes if linker adds runtime paths of dependent libraries
35343 # to runtime path list.
35344 inherit_rpath=$inherit_rpath_CXX
35345
35346 # Whether libtool must link a program against all its dependency libraries.
35347 link_all_deplibs=$link_all_deplibs_CXX
35348
35349 # Fix the shell variable \$srcfile for the compiler.
35350 fix_srcfile_path=$lt_fix_srcfile_path_CXX
35351
35352 # Set to "yes" if exported symbols are required.
35353 always_export_symbols=$always_export_symbols_CXX
35354
35355 # The commands to list exported symbols.
35356 export_symbols_cmds=$lt_export_symbols_cmds_CXX
35357
35358 # Symbols that should not be listed in the preloaded symbols.
35359 exclude_expsyms=$lt_exclude_expsyms_CXX
35360
35361 # Symbols that must always be exported.
35362 include_expsyms=$lt_include_expsyms_CXX
35363
35364 # Commands necessary for linking programs (against libraries) with templates.
35365 prelink_cmds=$lt_prelink_cmds_CXX
35366
35367 # Specify filename containing input files.
35368 file_list_spec=$lt_file_list_spec_CXX
35369
35370 # How to hardcode a shared library path into an executable.
35371 hardcode_action=$hardcode_action_CXX
35372
35373 # The directories searched by this compiler when creating a shared library.
35374 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
35375
35376 # Dependencies to place before and after the objects being linked to
35377 # create a shared library.
35378 predep_objects=$lt_predep_objects_CXX
35379 postdep_objects=$lt_postdep_objects_CXX
35380 predeps=$lt_predeps_CXX
35381 postdeps=$lt_postdeps_CXX
35382
35383 # The library search path used internally by the compiler when linking
35384 # a shared library.
35385 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
35386
35387 # ### END LIBTOOL TAG CONFIG: CXX
35388 _LT_EOF
35389
35390 ;;
35391 "default-1":C)
35392 for ac_file in $CONFIG_FILES; do
35393 # Support "outfile[:infile[:infile...]]"
35394 case "$ac_file" in
35395 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
35396 esac
35397 # PO directories have a Makefile.in generated from Makefile.in.in.
35398 case "$ac_file" in */Makefile.in)
35399 # Adjust a relative srcdir.
35400 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
35401 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
35402 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
35403 # In autoconf-2.13 it is called $ac_given_srcdir.
35404 # In autoconf-2.50 it is called $srcdir.
35405 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
35406 case "$ac_given_srcdir" in
35407 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
35408 /*) top_srcdir="$ac_given_srcdir" ;;
35409 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
35410 esac
35411 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
35412 rm -f "$ac_dir/POTFILES"
35413 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
35414 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
35415 POMAKEFILEDEPS="POTFILES.in"
35416 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
35417 # on $ac_dir but don't depend on user-specified configuration
35418 # parameters.
35419 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
35420 # The LINGUAS file contains the set of available languages.
35421 if test -n "$OBSOLETE_ALL_LINGUAS"; then
35422 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
35423 fi
35424 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
35425 # Hide the ALL_LINGUAS assigment from automake.
35426 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
35427 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
35428 else
35429 # The set of available languages was given in configure.in.
35430 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
35431 fi
35432 # Compute POFILES
35433 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
35434 # Compute UPDATEPOFILES
35435 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
35436 # Compute DUMMYPOFILES
35437 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
35438 # Compute GMOFILES
35439 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
35440 case "$ac_given_srcdir" in
35441 .) srcdirpre= ;;
35442 *) srcdirpre='$(srcdir)/' ;;
35443 esac
35444 POFILES=
35445 UPDATEPOFILES=
35446 DUMMYPOFILES=
35447 GMOFILES=
35448 for lang in $ALL_LINGUAS; do
35449 POFILES="$POFILES $srcdirpre$lang.po"
35450 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
35451 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
35452 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
35453 done
35454 # CATALOGS depends on both $ac_dir and the user's LINGUAS
35455 # environment variable.
35456 INST_LINGUAS=
35457 if test -n "$ALL_LINGUAS"; then
35458 for presentlang in $ALL_LINGUAS; do
35459 useit=no
35460 if test "%UNSET%" != "$LINGUAS"; then
35461 desiredlanguages="$LINGUAS"
35462 else
35463 desiredlanguages="$ALL_LINGUAS"
35464 fi
35465 for desiredlang in $desiredlanguages; do
35466 # Use the presentlang catalog if desiredlang is
35467 # a. equal to presentlang, or
35468 # b. a variant of presentlang (because in this case,
35469 # presentlang can be used as a fallback for messages
35470 # which are not translated in the desiredlang catalog).
35471 case "$desiredlang" in
35472 "$presentlang"*) useit=yes;;
35473 esac
35474 done
35475 if test $useit = yes; then
35476 INST_LINGUAS="$INST_LINGUAS $presentlang"
35477 fi
35478 done
35479 fi
35480 CATALOGS=
35481 if test -n "$INST_LINGUAS"; then
35482 for lang in $INST_LINGUAS; do
35483 CATALOGS="$CATALOGS $lang.gmo"
35484 done
35485 fi
35486 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
35487 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"
35488 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
35489 if test -f "$f"; then
35490 case "$f" in
35491 *.orig | *.bak | *~) ;;
35492 *) cat "$f" >> "$ac_dir/Makefile" ;;
35493 esac
35494 fi
35495 done
35496 fi
35497 ;;
35498 esac
35499 done ;;
35500
35501 esac
35502 done # for ac_tag
35503
35504
35505 { (exit 0); exit 0; }
35506 _ACEOF
35507 chmod +x $CONFIG_STATUS
35508 ac_clean_files=$ac_clean_files_save
35509
35510 test $ac_write_fail = 0 ||
35511 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
35512 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
35513 { (exit 1); exit 1; }; }
35514
35515
35516 # configure is writing to config.log, and then calls config.status.
35517 # config.status does its own redirection, appending to config.log.
35518 # Unfortunately, on DOS this fails, as config.log is still kept open
35519 # by configure, so config.status won't be able to write to it; its
35520 # output is simply discarded. So we exec the FD to /dev/null,
35521 # effectively closing config.log, so it can be properly (re)opened and
35522 # appended to by config.status. When coming back to configure, we
35523 # need to make the FD available again.
35524 if test "$no_create" != yes; then
35525 ac_cs_success=:
35526 ac_config_status_args=
35527 test "$silent" = yes &&
35528 ac_config_status_args="$ac_config_status_args --quiet"
35529 exec 5>/dev/null
35530 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35531 exec 5>>config.log
35532 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35533 # would make configure fail if this is the last instruction.
35534 $ac_cs_success || { (exit 1); exit 1; }
35535 fi
35536 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
35537 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
35538 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
35539 fi
35540
35541
35542
35543 echo ""
35544 echo ""
35545 echo "Summary of your installation :"
35546 # FIXME : maybe elaborate missing dependencies
35547 if test x"$graphics_sdl" != xyes
35548 then
35549 sdl_failures="(libsdl maybe?) "
35550 fi
35551 if test x"$glut" != xyes
35552 then
35553 sdl_failures=$sdl_failures"glut "
35554 fi
35555 if test x"$glc" != xyes
35556 then
35557 sdl_failures=$sdl_failures"quesoglc "
35558 fi
35559 if test -z "$sdl_failures"
35560 then
35561 echo "OpenGL gui : ENABLED, with $CEGUI_LIBS"
35562 else
35563 echo "OpenGL gui : DISABLED : you are missing $sdl_failures"
35564 fi
35565 if test x"$enable_hildon" = xyes
35566 then
35567 echo "Maemo/Hildon: ENABLED"
35568 else
35569 echo "Maemo/Hildon: DISABLED"
35570 fi
35571 if test x"$enable_osso" = xyes
35572 then
35573 echo "Maemo/OSSO: ENABLED"
35574 else
35575 echo "Maemo/OSSO: DISABLED"
35576 fi
35577 if test x"${USE_GARMIN}" = xyes
35578 then
35579 if test "x$use_libgarmin" = "xyes"
35580 then
35581 echo "Garmin IMG : ENABLED"
35582 else
35583 echo "Garmin IMG : DISABLED (you don't have libgarmin)"
35584 fi
35585 else
35586 echo "Garmin IMG : DISABLED (you requested it)"
35587 fi
35588
35589 if test x"$LIBINTL" = "x" ;then
35590 nls_libs="system gettext support"
35591 else
35592 nls_libs="$LIBINTL"
35593 fi
35594 echo "Plugins: $plugins ($plugins_reason)"
35595 echo "Postgresql: $postgresql ($postgresql_reason)"
35596 echo "Samplemap: $samplemap ($samplemap_reason)"
35597 echo "NLS Support: $enable_nls ($nls_libs)"
35598 echo "Routing: $routing ($routing_reason)"
35599 echo "Font renderers:"
35600 echo " freetype: $font_freetype ($font_freetype_reason)"
35601 echo " FriBidi enabled: $fribidi ($fribidi_reason)"
35602
35603 echo "Graphics types: $graphics ($graphics_reason)"
35604 echo " android: $graphics_android ($graphics_android_reason)"
35605 echo " gtk_drawing_area: $graphics_gtk_drawing_area ($graphics_gtk_drawing_area_reason)"
35606 echo " null: $graphics_null ($graphics_null_reason)"
35607 echo " qt_qpainter: $graphics_qt_qpainter ($graphics_qt_qpainter_reason)"
35608 echo " win32: $graphics_win32 ($graphics_win32_reason)"
35609 echo " OpenGL: $graphics_opengl ($graphics_opengl_reason)"
35610 echo " gd: $graphics_gd ($graphics_gd_reason)"
35611 echo " sdl: $graphics_sdl ($graphics_sdl_reason)"
35612
35613 echo "GUI types:"
35614 echo " gtk: $gui_gtk ($gui_gtk_reason)"
35615 echo " internal: $gui_internal ($gui_internal_reason)"
35616 echo " win32: $gui_win32 ($gui_win32_reason)"
35617 echo " qml: $gui_qml ($gui_qml_reason)"
35618
35619 echo "Map types:"
35620 echo " binfile: $map_binfile ($map_binfile_reason)"
35621 echo " filter: $map_filter ($map_filter_reason)"
35622 echo " mg: $map_mg ($map_mg_reason)"
35623 echo " shapefile: $map_shapefile ($map_shapefile_reason)"
35624 echo " textfile: $map_textfile ($map_textfile_reason)"
35625 echo " csv: $map_csv ($map_csv_reason)"
35626
35627
35628 echo "Bindings:"
35629 echo " dbus: $binding_dbus ($binding_dbus_reason)"
35630 echo " python: $binding_python ($binding_python_reason)"
35631
35632 echo "OSD types:"
35633 echo " core: $osd_core ($osd_core_reason)"
35634
35635 echo "Plugins:"
35636 echo " pedestrian: $plugin_pedestrian ($plugin_pedestrian_reason)"
35637
35638 echo "Speech types:"
35639 echo " android: $speech_android ($speech_android_reason)"
35640 echo " cmdline: $speech_cmdline ($speech_cmdline_reason)"
35641 echo " dbus: $speech_dbus ($speech_dbus_reason)"
35642 echo " espeak: $speech_espeak ($speech_espeak_reason)"
35643 echo " speech_dispatcher: $speech_speech_dispatcher ($speech_speech_dispatcher_reason)"
35644
35645 echo "Vehicle types:"
35646 echo " android: $vehicle_android ($vehicle_android_reason)"
35647 echo " demo: $vehicle_demo ($vehicle_demo_reason)"
35648 echo " file: $vehicle_file ($vehicle_file_reason)"
35649 echo " gpsd: $vehicle_gpsd ($vehicle_gpsd_reason)"
35650 echo " gpsd_dbus: $vehicle_gpsd_dbus ($vehicle_gpsd_dbus_reason)"
35651 echo " gypsy: $vehicle_gypsy ($vehicle_gypsy_reason)"
35652 echo " maemo: $vehicle_maemo ($vehicle_maemo_reason)"
35653 echo " null: $vehicle_null ($vehicle_null_reason)"
35654 echo " wince: $vehicle_wince ($vehicle_wince_reason)"
35655 echo " iphone: $vehicle_iphone ($vehicle_iphone_reason)"
35656 echo " webos: $vehicle_webos ($vehicle_webos_reason)"
35657
35658 if test "x${gtk2_pkgconfig}" != "xyes" -a "x${gui_win32}" != "xyes" -a "x${gui_internal}" != "xyes" -a "x${gui_qml}" != "xyes"
35659 then
35660 echo ""
35661 echo ""
35662 echo "*** WARNING! you have no gui that can be built! ***"
35663 echo "Please install the dependency for at least gtk or sdl gui"
35664 echo "For more details, see the wiki at http://wiki.navit-project.org/"
35665 echo ""
35666 fi
35667

   
Visit the ZANavi Wiki