Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for libIDL 0.8.14.
4 #
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=libIDL>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86 else
87 as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" "" $as_nl"
97
98 # Find who we are. Look in the path if we contain no directory separator.
99 case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110 ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115 as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140 else
141 as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146 else
147 as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181
182 if test $as_have_required = yes && (eval ":
183 (as_func_return () {
184 (exit \$1)
185 }
186 as_func_success () {
187 as_func_return 0
188 }
189 as_func_failure () {
190 as_func_return 1
191 }
192 as_func_ret_success () {
193 return 0
194 }
195 as_func_ret_failure () {
196 return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201 :
202 else
203 exitcode=1
204 echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213 :
214 else
215 exitcode=1
216 echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226 else
227 exitcode=1
228 echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239 :
240 else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
248 /*)
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253 done
254 IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289 else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299 (exit $1)
300 }
301 as_func_success () {
302 as_func_return 0
303 }
304 as_func_failure () {
305 as_func_return 1
306 }
307 as_func_ret_success () {
308 return 0
309 }
310 as_func_ret_failure () {
311 return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316 :
317 else
318 exitcode=1
319 echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328 :
329 else
330 exitcode=1
331 echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341 else
342 exitcode=1
343 echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356 break
357 fi
358
359 fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388 (exit \$1)
389 }
390 as_func_success () {
391 as_func_return 0
392 }
393 as_func_failure () {
394 as_func_return 1
395 }
396 as_func_ret_success () {
397 return 0
398 }
399 as_func_ret_failure () {
400 return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405 :
406 else
407 exitcode=1
408 echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417 :
418 else
419 exitcode=1
420 echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430 else
431 exitcode=1
432 echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell [email protected] about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
441 }
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
469 N
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490 else
491 as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501 *)
502 ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507 else
508 as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514 else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
531 fi
532 else
533 as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540 else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547 else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
579
580 case X$lt_ECHO in
581 X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584 ;;
585 esac
586
587 ECHO=${lt_ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
593 :
594 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
596 :
597 else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 fi
601
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
605 cat <<_LT_EOF
606 $*
607 _LT_EOF
608 exit 0
609 fi
610
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615 if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622 then
623 break
624 fi
625 done
626 fi
627
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
631 :
632 else
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
636 #
637 # So, first we look for a working echo in the user's PATH.
638
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
641 IFS="$lt_save_ifs"
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
646 ECHO="$dir/echo"
647 break
648 fi
649 done
650 IFS="$lt_save_ifs"
651
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
658 ECHO='print -r'
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
665 export CONFIG_SHELL
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667 else
668 # Try using printf.
669 ECHO='printf %s\n'
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 # Cool, printf works
674 :
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680 export CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
682 export SHELL
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
689 else
690 # maybe with a smaller string...
691 prev=:
692
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695 then
696 break
697 fi
698 prev="$cmd"
699 done
700
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705 else
706 # Oops. We lost completely, so just stick with echo.
707 ECHO=echo
708 fi
709 fi
710 fi
711 fi
712 fi
713 fi
714
715 # Copy echo and quote the copy suitably for passing to libtool from
716 # the Makefile, instead of quoting the original, which is used later.
717 lt_ECHO=$ECHO
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720 fi
721
722
723
724
725 exec 7<&0 </dev/null 6>&1
726
727 # Name of the host.
728 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729 # so uname gets run too.
730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732 #
733 # Initializations.
734 #
735 ac_default_prefix=/usr/local
736 ac_clean_files=
737 ac_config_libobj_dir=.
738 LIBOBJS=
739 cross_compiling=no
740 subdirs=
741 MFLAGS=
742 MAKEFLAGS=
743 SHELL=${CONFIG_SHELL-/bin/sh}
744
745 # Identity of this package.
746 PACKAGE_NAME='libIDL'
747 PACKAGE_TARNAME='libIDL'
748 PACKAGE_VERSION='0.8.14'
749 PACKAGE_STRING='libIDL 0.8.14'
750 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=libIDL'
751
752 ac_unique_file="include/libIDL/IDL.h.in"
753 # Factoring default headers for most tests.
754 ac_includes_default="\
755 #include <stdio.h>
756 #ifdef HAVE_SYS_TYPES_H
757 # include <sys/types.h>
758 #endif
759 #ifdef HAVE_SYS_STAT_H
760 # include <sys/stat.h>
761 #endif
762 #ifdef STDC_HEADERS
763 # include <stdlib.h>
764 # include <stddef.h>
765 #else
766 # ifdef HAVE_STDLIB_H
767 # include <stdlib.h>
768 # endif
769 #endif
770 #ifdef HAVE_STRING_H
771 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
772 # include <memory.h>
773 # endif
774 # include <string.h>
775 #endif
776 #ifdef HAVE_STRINGS_H
777 # include <strings.h>
778 #endif
779 #ifdef HAVE_INTTYPES_H
780 # include <inttypes.h>
781 #endif
782 #ifdef HAVE_STDINT_H
783 # include <stdint.h>
784 #endif
785 #ifdef HAVE_UNISTD_H
786 # include <unistd.h>
787 #endif"
788
789 ac_subst_vars='am__EXEEXT_FALSE
790 am__EXEEXT_TRUE
791 LTLIBOBJS
792 LIBOBJS
793 WARN_CFLAGS
794 IDL_LL
795 HAVE_WCSTR_H
796 HAVE_WCHAR_H
797 LIBIDL_LIBS
798 LIBIDL_CFLAGS
799 PKG_CONFIG
800 OS_WIN32_FALSE
801 OS_WIN32_TRUE
802 MAINT
803 MAINTAINER_MODE_FALSE
804 MAINTAINER_MODE_TRUE
805 OTOOL64
806 OTOOL
807 LIPO
808 NMEDIT
809 DSYMUTIL
810 lt_ECHO
811 RANLIB
812 AR
813 LN_S
814 NM
815 ac_ct_DUMPBIN
816 DUMPBIN
817 LD
818 FGREP
819 EGREP
820 GREP
821 SED
822 LIBTOOL
823 OBJDUMP
824 DLLTOOL
825 AS
826 host_os
827 host_vendor
828 host_cpu
829 host
830 build_os
831 build_vendor
832 build_cpu
833 build
834 HAVE_YACC
835 YFLAGS
836 YACC
837 LFLAGS
838 LEXLIB
839 LEX_OUTPUT_ROOT
840 LEX
841 CPP
842 am__fastdepCC_FALSE
843 am__fastdepCC_TRUE
844 CCDEPMODE
845 AMDEPBACKSLASH
846 AMDEP_FALSE
847 AMDEP_TRUE
848 am__quote
849 am__include
850 DEPDIR
851 OBJEXT
852 EXEEXT
853 ac_ct_CC
854 CPPFLAGS
855 LDFLAGS
856 CFLAGS
857 CC
858 ACLOCAL_AMFLAGS
859 LT_VERSION
860 LIBIDL_VERSION
861 LIBIDL_MICRO_VERSION
862 LIBIDL_MINOR_VERSION
863 LIBIDL_MAJOR_VERSION
864 AM_BACKSLASH
865 AM_DEFAULT_VERBOSITY
866 am__untar
867 am__tar
868 AMTAR
869 am__leading_dot
870 SET_MAKE
871 AWK
872 mkdir_p
873 MKDIR_P
874 INSTALL_STRIP_PROGRAM
875 STRIP
876 install_sh
877 MAKEINFO
878 AUTOHEADER
879 AUTOMAKE
880 AUTOCONF
881 ACLOCAL
882 VERSION
883 PACKAGE
884 CYGPATH_W
885 am__isrc
886 INSTALL_DATA
887 INSTALL_SCRIPT
888 INSTALL_PROGRAM
889 target_alias
890 host_alias
891 build_alias
892 LIBS
893 ECHO_T
894 ECHO_N
895 ECHO_C
896 DEFS
897 mandir
898 localedir
899 libdir
900 psdir
901 pdfdir
902 dvidir
903 htmldir
904 infodir
905 docdir
906 oldincludedir
907 includedir
908 localstatedir
909 sharedstatedir
910 sysconfdir
911 datadir
912 datarootdir
913 libexecdir
914 sbindir
915 bindir
916 program_transform_name
917 prefix
918 exec_prefix
919 PACKAGE_BUGREPORT
920 PACKAGE_STRING
921 PACKAGE_VERSION
922 PACKAGE_TARNAME
923 PACKAGE_NAME
924 PATH_SEPARATOR
925 SHELL'
926 ac_subst_files=''
927 ac_user_opts='
928 enable_option_checking
929 enable_silent_rules
930 enable_compile_warnings
931 enable_dependency_tracking
932 enable_shared
933 enable_static
934 with_pic
935 enable_fast_install
936 with_gnu_ld
937 enable_libtool_lock
938 enable_maintainer_mode
939 '
940 ac_precious_vars='build_alias
941 host_alias
942 target_alias
943 CC
944 CFLAGS
945 LDFLAGS
946 LIBS
947 CPPFLAGS
948 CPP
949 YACC
950 YFLAGS
951 PKG_CONFIG
952 LIBIDL_CFLAGS
953 LIBIDL_LIBS'
954
955
956 # Initialize some variables set by options.
957 ac_init_help=
958 ac_init_version=false
959 ac_unrecognized_opts=
960 ac_unrecognized_sep=
961 # The variables have the same names as the options, with
962 # dashes changed to underlines.
963 cache_file=/dev/null
964 exec_prefix=NONE
965 no_create=
966 no_recursion=
967 prefix=NONE
968 program_prefix=NONE
969 program_suffix=NONE
970 program_transform_name=s,x,x,
971 silent=
972 site=
973 srcdir=
974 verbose=
975 x_includes=NONE
976 x_libraries=NONE
977
978 # Installation directory options.
979 # These are left unexpanded so users can "make install exec_prefix=/foo"
980 # and all the variables that are supposed to be based on exec_prefix
981 # by default will actually change.
982 # Use braces instead of parens because sh, perl, etc. also accept them.
983 # (The list follows the same order as the GNU Coding Standards.)
984 bindir='${exec_prefix}/bin'
985 sbindir='${exec_prefix}/sbin'
986 libexecdir='${exec_prefix}/libexec'
987 datarootdir='${prefix}/share'
988 datadir='${datarootdir}'
989 sysconfdir='${prefix}/etc'
990 sharedstatedir='${prefix}/com'
991 localstatedir='${prefix}/var'
992 includedir='${prefix}/include'
993 oldincludedir='/usr/include'
994 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
995 infodir='${datarootdir}/info'
996 htmldir='${docdir}'
997 dvidir='${docdir}'
998 pdfdir='${docdir}'
999 psdir='${docdir}'
1000 libdir='${exec_prefix}/lib'
1001 localedir='${datarootdir}/locale'
1002 mandir='${datarootdir}/man'
1003
1004 ac_prev=
1005 ac_dashdash=
1006 for ac_option
1007 do
1008 # If the previous option needs an argument, assign it.
1009 if test -n "$ac_prev"; then
1010 eval $ac_prev=\$ac_option
1011 ac_prev=
1012 continue
1013 fi
1014
1015 case $ac_option in
1016 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1017 *) ac_optarg=yes ;;
1018 esac
1019
1020 # Accept the important Cygnus configure options, so we can diagnose typos.
1021
1022 case $ac_dashdash$ac_option in
1023 --)
1024 ac_dashdash=yes ;;
1025
1026 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1027 ac_prev=bindir ;;
1028 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1029 bindir=$ac_optarg ;;
1030
1031 -build | --build | --buil | --bui | --bu)
1032 ac_prev=build_alias ;;
1033 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1034 build_alias=$ac_optarg ;;
1035
1036 -cache-file | --cache-file | --cache-fil | --cache-fi \
1037 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1038 ac_prev=cache_file ;;
1039 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1040 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1041 cache_file=$ac_optarg ;;
1042
1043 --config-cache | -C)
1044 cache_file=config.cache ;;
1045
1046 -datadir | --datadir | --datadi | --datad)
1047 ac_prev=datadir ;;
1048 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1049 datadir=$ac_optarg ;;
1050
1051 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1052 | --dataroo | --dataro | --datar)
1053 ac_prev=datarootdir ;;
1054 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1055 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1056 datarootdir=$ac_optarg ;;
1057
1058 -disable-* | --disable-*)
1059 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1060 # Reject names that are not valid shell variable names.
1061 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1062 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1063 { (exit 1); exit 1; }; }
1064 ac_useropt_orig=$ac_useropt
1065 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066 case $ac_user_opts in
1067 *"
1068 "enable_$ac_useropt"
1069 "*) ;;
1070 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1071 ac_unrecognized_sep=', ';;
1072 esac
1073 eval enable_$ac_useropt=no ;;
1074
1075 -docdir | --docdir | --docdi | --doc | --do)
1076 ac_prev=docdir ;;
1077 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1078 docdir=$ac_optarg ;;
1079
1080 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1081 ac_prev=dvidir ;;
1082 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1083 dvidir=$ac_optarg ;;
1084
1085 -enable-* | --enable-*)
1086 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1090 { (exit 1); exit 1; }; }
1091 ac_useropt_orig=$ac_useropt
1092 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093 case $ac_user_opts in
1094 *"
1095 "enable_$ac_useropt"
1096 "*) ;;
1097 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1098 ac_unrecognized_sep=', ';;
1099 esac
1100 eval enable_$ac_useropt=\$ac_optarg ;;
1101
1102 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1103 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1104 | --exec | --exe | --ex)
1105 ac_prev=exec_prefix ;;
1106 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1107 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1108 | --exec=* | --exe=* | --ex=*)
1109 exec_prefix=$ac_optarg ;;
1110
1111 -gas | --gas | --ga | --g)
1112 # Obsolete; use --with-gas.
1113 with_gas=yes ;;
1114
1115 -help | --help | --hel | --he | -h)
1116 ac_init_help=long ;;
1117 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1118 ac_init_help=recursive ;;
1119 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1120 ac_init_help=short ;;
1121
1122 -host | --host | --hos | --ho)
1123 ac_prev=host_alias ;;
1124 -host=* | --host=* | --hos=* | --ho=*)
1125 host_alias=$ac_optarg ;;
1126
1127 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1128 ac_prev=htmldir ;;
1129 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1130 | --ht=*)
1131 htmldir=$ac_optarg ;;
1132
1133 -includedir | --includedir | --includedi | --included | --include \
1134 | --includ | --inclu | --incl | --inc)
1135 ac_prev=includedir ;;
1136 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1137 | --includ=* | --inclu=* | --incl=* | --inc=*)
1138 includedir=$ac_optarg ;;
1139
1140 -infodir | --infodir | --infodi | --infod | --info | --inf)
1141 ac_prev=infodir ;;
1142 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1143 infodir=$ac_optarg ;;
1144
1145 -libdir | --libdir | --libdi | --libd)
1146 ac_prev=libdir ;;
1147 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1148 libdir=$ac_optarg ;;
1149
1150 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1151 | --libexe | --libex | --libe)
1152 ac_prev=libexecdir ;;
1153 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1154 | --libexe=* | --libex=* | --libe=*)
1155 libexecdir=$ac_optarg ;;
1156
1157 -localedir | --localedir | --localedi | --localed | --locale)
1158 ac_prev=localedir ;;
1159 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1160 localedir=$ac_optarg ;;
1161
1162 -localstatedir | --localstatedir | --localstatedi | --localstated \
1163 | --localstate | --localstat | --localsta | --localst | --locals)
1164 ac_prev=localstatedir ;;
1165 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1166 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1167 localstatedir=$ac_optarg ;;
1168
1169 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1170 ac_prev=mandir ;;
1171 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1172 mandir=$ac_optarg ;;
1173
1174 -nfp | --nfp | --nf)
1175 # Obsolete; use --without-fp.
1176 with_fp=no ;;
1177
1178 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1179 | --no-cr | --no-c | -n)
1180 no_create=yes ;;
1181
1182 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1183 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1184 no_recursion=yes ;;
1185
1186 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1187 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1188 | --oldin | --oldi | --old | --ol | --o)
1189 ac_prev=oldincludedir ;;
1190 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1191 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1192 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1193 oldincludedir=$ac_optarg ;;
1194
1195 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1196 ac_prev=prefix ;;
1197 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1198 prefix=$ac_optarg ;;
1199
1200 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1201 | --program-pre | --program-pr | --program-p)
1202 ac_prev=program_prefix ;;
1203 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1204 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1205 program_prefix=$ac_optarg ;;
1206
1207 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1208 | --program-suf | --program-su | --program-s)
1209 ac_prev=program_suffix ;;
1210 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1211 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1212 program_suffix=$ac_optarg ;;
1213
1214 -program-transform-name | --program-transform-name \
1215 | --program-transform-nam | --program-transform-na \
1216 | --program-transform-n | --program-transform- \
1217 | --program-transform | --program-transfor \
1218 | --program-transfo | --program-transf \
1219 | --program-trans | --program-tran \
1220 | --progr-tra | --program-tr | --program-t)
1221 ac_prev=program_transform_name ;;
1222 -program-transform-name=* | --program-transform-name=* \
1223 | --program-transform-nam=* | --program-transform-na=* \
1224 | --program-transform-n=* | --program-transform-=* \
1225 | --program-transform=* | --program-transfor=* \
1226 | --program-transfo=* | --program-transf=* \
1227 | --program-trans=* | --program-tran=* \
1228 | --progr-tra=* | --program-tr=* | --program-t=*)
1229 program_transform_name=$ac_optarg ;;
1230
1231 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1232 ac_prev=pdfdir ;;
1233 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1234 pdfdir=$ac_optarg ;;
1235
1236 -psdir | --psdir | --psdi | --psd | --ps)
1237 ac_prev=psdir ;;
1238 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1239 psdir=$ac_optarg ;;
1240
1241 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1242 | -silent | --silent | --silen | --sile | --sil)
1243 silent=yes ;;
1244
1245 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1246 ac_prev=sbindir ;;
1247 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1248 | --sbi=* | --sb=*)
1249 sbindir=$ac_optarg ;;
1250
1251 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1252 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1253 | --sharedst | --shareds | --shared | --share | --shar \
1254 | --sha | --sh)
1255 ac_prev=sharedstatedir ;;
1256 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1257 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1258 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1259 | --sha=* | --sh=*)
1260 sharedstatedir=$ac_optarg ;;
1261
1262 -site | --site | --sit)
1263 ac_prev=site ;;
1264 -site=* | --site=* | --sit=*)
1265 site=$ac_optarg ;;
1266
1267 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1268 ac_prev=srcdir ;;
1269 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1270 srcdir=$ac_optarg ;;
1271
1272 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1273 | --syscon | --sysco | --sysc | --sys | --sy)
1274 ac_prev=sysconfdir ;;
1275 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1276 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1277 sysconfdir=$ac_optarg ;;
1278
1279 -target | --target | --targe | --targ | --tar | --ta | --t)
1280 ac_prev=target_alias ;;
1281 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1282 target_alias=$ac_optarg ;;
1283
1284 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1285 verbose=yes ;;
1286
1287 -version | --version | --versio | --versi | --vers | -V)
1288 ac_init_version=: ;;
1289
1290 -with-* | --with-*)
1291 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1294 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1295 { (exit 1); exit 1; }; }
1296 ac_useropt_orig=$ac_useropt
1297 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298 case $ac_user_opts in
1299 *"
1300 "with_$ac_useropt"
1301 "*) ;;
1302 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1303 ac_unrecognized_sep=', ';;
1304 esac
1305 eval with_$ac_useropt=\$ac_optarg ;;
1306
1307 -without-* | --without-*)
1308 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1311 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1312 { (exit 1); exit 1; }; }
1313 ac_useropt_orig=$ac_useropt
1314 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1315 case $ac_user_opts in
1316 *"
1317 "with_$ac_useropt"
1318 "*) ;;
1319 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1320 ac_unrecognized_sep=', ';;
1321 esac
1322 eval with_$ac_useropt=no ;;
1323
1324 --x)
1325 # Obsolete; use --with-x.
1326 with_x=yes ;;
1327
1328 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1329 | --x-incl | --x-inc | --x-in | --x-i)
1330 ac_prev=x_includes ;;
1331 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1332 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1333 x_includes=$ac_optarg ;;
1334
1335 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1336 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1337 ac_prev=x_libraries ;;
1338 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1339 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1340 x_libraries=$ac_optarg ;;
1341
1342 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1343 Try \`$0 --help' for more information." >&2
1344 { (exit 1); exit 1; }; }
1345 ;;
1346
1347 *=*)
1348 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1349 # Reject names that are not valid shell variable names.
1350 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1351 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1352 { (exit 1); exit 1; }; }
1353 eval $ac_envvar=\$ac_optarg
1354 export $ac_envvar ;;
1355
1356 *)
1357 # FIXME: should be removed in autoconf 3.0.
1358 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1359 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1360 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1361 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1362 ;;
1363
1364 esac
1365 done
1366
1367 if test -n "$ac_prev"; then
1368 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1369 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1370 { (exit 1); exit 1; }; }
1371 fi
1372
1373 if test -n "$ac_unrecognized_opts"; then
1374 case $enable_option_checking in
1375 no) ;;
1376 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1377 { (exit 1); exit 1; }; } ;;
1378 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1379 esac
1380 fi
1381
1382 # Check all directory arguments for consistency.
1383 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1384 datadir sysconfdir sharedstatedir localstatedir includedir \
1385 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1386 libdir localedir mandir
1387 do
1388 eval ac_val=\$$ac_var
1389 # Remove trailing slashes.
1390 case $ac_val in
1391 */ )
1392 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1393 eval $ac_var=\$ac_val;;
1394 esac
1395 # Be sure to have absolute directory names.
1396 case $ac_val in
1397 [\\/$]* | ?:[\\/]* ) continue;;
1398 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1399 esac
1400 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1401 { (exit 1); exit 1; }; }
1402 done
1403
1404 # There might be people who depend on the old broken behavior: `$host'
1405 # used to hold the argument of --host etc.
1406 # FIXME: To remove some day.
1407 build=$build_alias
1408 host=$host_alias
1409 target=$target_alias
1410
1411 # FIXME: To remove some day.
1412 if test "x$host_alias" != x; then
1413 if test "x$build_alias" = x; then
1414 cross_compiling=maybe
1415 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1416 If a cross compiler is detected then cross compile mode will be used." >&2
1417 elif test "x$build_alias" != "x$host_alias"; then
1418 cross_compiling=yes
1419 fi
1420 fi
1421
1422 ac_tool_prefix=
1423 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1424
1425 test "$silent" = yes && exec 6>/dev/null
1426
1427
1428 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1429 ac_ls_di=`ls -di .` &&
1430 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1431 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1432 { (exit 1); exit 1; }; }
1433 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1434 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1435 { (exit 1); exit 1; }; }
1436
1437
1438 # Find the source files, if location was not specified.
1439 if test -z "$srcdir"; then
1440 ac_srcdir_defaulted=yes
1441 # Try the directory containing this script, then the parent directory.
1442 ac_confdir=`$as_dirname -- "$as_myself" ||
1443 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1444 X"$as_myself" : 'X\(//\)[^/]' \| \
1445 X"$as_myself" : 'X\(//\)$' \| \
1446 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1447 $as_echo X"$as_myself" |
1448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1449 s//\1/
1450 q
1451 }
1452 /^X\(\/\/\)[^/].*/{
1453 s//\1/
1454 q
1455 }
1456 /^X\(\/\/\)$/{
1457 s//\1/
1458 q
1459 }
1460 /^X\(\/\).*/{
1461 s//\1/
1462 q
1463 }
1464 s/.*/./; q'`
1465 srcdir=$ac_confdir
1466 if test ! -r "$srcdir/$ac_unique_file"; then
1467 srcdir=..
1468 fi
1469 else
1470 ac_srcdir_defaulted=no
1471 fi
1472 if test ! -r "$srcdir/$ac_unique_file"; then
1473 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1474 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1475 { (exit 1); exit 1; }; }
1476 fi
1477 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1478 ac_abs_confdir=`(
1479 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1480 { (exit 1); exit 1; }; }
1481 pwd)`
1482 # When building in place, set srcdir=.
1483 if test "$ac_abs_confdir" = "$ac_pwd"; then
1484 srcdir=.
1485 fi
1486 # Remove unnecessary trailing slashes from srcdir.
1487 # Double slashes in file names in object file debugging info
1488 # mess up M-x gdb in Emacs.
1489 case $srcdir in
1490 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1491 esac
1492 for ac_var in $ac_precious_vars; do
1493 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1494 eval ac_env_${ac_var}_value=\$${ac_var}
1495 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1496 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1497 done
1498
1499 #
1500 # Report the --help message.
1501 #
1502 if test "$ac_init_help" = "long"; then
1503 # Omit some internal or obsolete options to make the list less imposing.
1504 # This message is too long to be a string in the A/UX 3.1 sh.
1505 cat <<_ACEOF
1506 \`configure' configures libIDL 0.8.14 to adapt to many kinds of systems.
1507
1508 Usage: $0 [OPTION]... [VAR=VALUE]...
1509
1510 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1511 VAR=VALUE. See below for descriptions of some of the useful variables.
1512
1513 Defaults for the options are specified in brackets.
1514
1515 Configuration:
1516 -h, --help display this help and exit
1517 --help=short display options specific to this package
1518 --help=recursive display the short help of all the included packages
1519 -V, --version display version information and exit
1520 -q, --quiet, --silent do not print \`checking...' messages
1521 --cache-file=FILE cache test results in FILE [disabled]
1522 -C, --config-cache alias for \`--cache-file=config.cache'
1523 -n, --no-create do not create output files
1524 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1525
1526 Installation directories:
1527 --prefix=PREFIX install architecture-independent files in PREFIX
1528 [$ac_default_prefix]
1529 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1530 [PREFIX]
1531
1532 By default, \`make install' will install all the files in
1533 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1534 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1535 for instance \`--prefix=\$HOME'.
1536
1537 For better control, use the options below.
1538
1539 Fine tuning of the installation directories:
1540 --bindir=DIR user executables [EPREFIX/bin]
1541 --sbindir=DIR system admin executables [EPREFIX/sbin]
1542 --libexecdir=DIR program executables [EPREFIX/libexec]
1543 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1544 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1545 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1546 --libdir=DIR object code libraries [EPREFIX/lib]
1547 --includedir=DIR C header files [PREFIX/include]
1548 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1549 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1550 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1551 --infodir=DIR info documentation [DATAROOTDIR/info]
1552 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1553 --mandir=DIR man documentation [DATAROOTDIR/man]
1554 --docdir=DIR documentation root [DATAROOTDIR/doc/libIDL]
1555 --htmldir=DIR html documentation [DOCDIR]
1556 --dvidir=DIR dvi documentation [DOCDIR]
1557 --pdfdir=DIR pdf documentation [DOCDIR]
1558 --psdir=DIR ps documentation [DOCDIR]
1559 _ACEOF
1560
1561 cat <<\_ACEOF
1562
1563 Program names:
1564 --program-prefix=PREFIX prepend PREFIX to installed program names
1565 --program-suffix=SUFFIX append SUFFIX to installed program names
1566 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1567
1568 System types:
1569 --build=BUILD configure for building on BUILD [guessed]
1570 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1571 _ACEOF
1572 fi
1573
1574 if test -n "$ac_init_help"; then
1575 case $ac_init_help in
1576 short | recursive ) echo "Configuration of libIDL 0.8.14:";;
1577 esac
1578 cat <<\_ACEOF
1579
1580 Optional Features:
1581 --disable-option-checking ignore unrecognized --enable/--with options
1582 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1583 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1584 --enable-silent-rules less verbose build output (undo: `make V=1')
1585 --disable-silent-rules verbose build output (undo: `make V=0')
1586 --enable-compile-warnings=[no/yes]
1587 Turn on compiler warnings.
1588 --disable-dependency-tracking speeds up one-time build
1589 --enable-dependency-tracking do not reject slow dependency extractors
1590 --enable-shared[=PKGS] build shared libraries [default=yes]
1591 --enable-static[=PKGS] build static libraries [default=yes]
1592 --enable-fast-install[=PKGS]
1593 optimize for fast installation [default=yes]
1594 --disable-libtool-lock avoid locking (might break parallel builds)
1595 --enable-maintainer-mode enable make rules and dependencies not useful
1596 (and sometimes confusing) to the casual installer
1597
1598 Optional Packages:
1599 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1600 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1601 --with-pic try to use only PIC/non-PIC objects [default=use
1602 both]
1603 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1604
1605 Some influential environment variables:
1606 CC C compiler command
1607 CFLAGS C compiler flags
1608 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1609 nonstandard directory <lib dir>
1610 LIBS libraries to pass to the linker, e.g. -l<library>
1611 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1612 you have headers in a nonstandard directory <include dir>
1613 CPP C preprocessor
1614 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1615 the first program found out of: `bison -y', `byacc', `yacc'.
1616 YFLAGS The list of arguments that will be passed by default to $YACC.
1617 This script will default YFLAGS to the empty string to avoid a
1618 default value of `-d' given by some make applications.
1619 PKG_CONFIG path to pkg-config utility
1620 LIBIDL_CFLAGS
1621 C compiler flags for LIBIDL, overriding pkg-config
1622 LIBIDL_LIBS linker flags for LIBIDL, overriding pkg-config
1623
1624 Use these variables to override the choices made by `configure' or to help
1625 it to find libraries and programs with nonstandard names/locations.
1626
1627 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=libIDL>.
1628 _ACEOF
1629 ac_status=$?
1630 fi
1631
1632 if test "$ac_init_help" = "recursive"; then
1633 # If there are subdirs, report their specific --help.
1634 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1635 test -d "$ac_dir" ||
1636 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1637 continue
1638 ac_builddir=.
1639
1640 case "$ac_dir" in
1641 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1642 *)
1643 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1644 # A ".." for each directory in $ac_dir_suffix.
1645 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1646 case $ac_top_builddir_sub in
1647 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1649 esac ;;
1650 esac
1651 ac_abs_top_builddir=$ac_pwd
1652 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1653 # for backward compatibility:
1654 ac_top_builddir=$ac_top_build_prefix
1655
1656 case $srcdir in
1657 .) # We are building in place.
1658 ac_srcdir=.
1659 ac_top_srcdir=$ac_top_builddir_sub
1660 ac_abs_top_srcdir=$ac_pwd ;;
1661 [\\/]* | ?:[\\/]* ) # Absolute name.
1662 ac_srcdir=$srcdir$ac_dir_suffix;
1663 ac_top_srcdir=$srcdir
1664 ac_abs_top_srcdir=$srcdir ;;
1665 *) # Relative name.
1666 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1667 ac_top_srcdir=$ac_top_build_prefix$srcdir
1668 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1669 esac
1670 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1671
1672 cd "$ac_dir" || { ac_status=$?; continue; }
1673 # Check for guested configure.
1674 if test -f "$ac_srcdir/configure.gnu"; then
1675 echo &&
1676 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1677 elif test -f "$ac_srcdir/configure"; then
1678 echo &&
1679 $SHELL "$ac_srcdir/configure" --help=recursive
1680 else
1681 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1682 fi || ac_status=$?
1683 cd "$ac_pwd" || { ac_status=$?; break; }
1684 done
1685 fi
1686
1687 test -n "$ac_init_help" && exit $ac_status
1688 if $ac_init_version; then
1689 cat <<\_ACEOF
1690 libIDL configure 0.8.14
1691 generated by GNU Autoconf 2.63
1692
1693 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1694 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1695 This configure script is free software; the Free Software Foundation
1696 gives unlimited permission to copy, distribute and modify it.
1697 _ACEOF
1698 exit
1699 fi
1700 cat >config.log <<_ACEOF
1701 This file contains any messages produced by compilers while
1702 running configure, to aid debugging if configure makes a mistake.
1703
1704 It was created by libIDL $as_me 0.8.14, which was
1705 generated by GNU Autoconf 2.63. Invocation command line was
1706
1707 $ $0 $@
1708
1709 _ACEOF
1710 exec 5>>config.log
1711 {
1712 cat <<_ASUNAME
1713 ## --------- ##
1714 ## Platform. ##
1715 ## --------- ##
1716
1717 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1718 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1719 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1720 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1721 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1722
1723 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1724 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1725
1726 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1727 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1728 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1729 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1730 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1731 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1732 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1733
1734 _ASUNAME
1735
1736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1737 for as_dir in $PATH
1738 do
1739 IFS=$as_save_IFS
1740 test -z "$as_dir" && as_dir=.
1741 $as_echo "PATH: $as_dir"
1742 done
1743 IFS=$as_save_IFS
1744
1745 } >&5
1746
1747 cat >&5 <<_ACEOF
1748
1749
1750 ## ----------- ##
1751 ## Core tests. ##
1752 ## ----------- ##
1753
1754 _ACEOF
1755
1756
1757 # Keep a trace of the command line.
1758 # Strip out --no-create and --no-recursion so they do not pile up.
1759 # Strip out --silent because we don't want to record it for future runs.
1760 # Also quote any args containing shell meta-characters.
1761 # Make two passes to allow for proper duplicate-argument suppression.
1762 ac_configure_args=
1763 ac_configure_args0=
1764 ac_configure_args1=
1765 ac_must_keep_next=false
1766 for ac_pass in 1 2
1767 do
1768 for ac_arg
1769 do
1770 case $ac_arg in
1771 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1772 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1773 | -silent | --silent | --silen | --sile | --sil)
1774 continue ;;
1775 *\'*)
1776 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1777 esac
1778 case $ac_pass in
1779 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1780 2)
1781 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1782 if test $ac_must_keep_next = true; then
1783 ac_must_keep_next=false # Got value, back to normal.
1784 else
1785 case $ac_arg in
1786 *=* | --config-cache | -C | -disable-* | --disable-* \
1787 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1788 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1789 | -with-* | --with-* | -without-* | --without-* | --x)
1790 case "$ac_configure_args0 " in
1791 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1792 esac
1793 ;;
1794 -* ) ac_must_keep_next=true ;;
1795 esac
1796 fi
1797 ac_configure_args="$ac_configure_args '$ac_arg'"
1798 ;;
1799 esac
1800 done
1801 done
1802 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1803 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1804
1805 # When interrupted or exit'd, cleanup temporary files, and complete
1806 # config.log. We remove comments because anyway the quotes in there
1807 # would cause problems or look ugly.
1808 # WARNING: Use '\'' to represent an apostrophe within the trap.
1809 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1810 trap 'exit_status=$?
1811 # Save into config.log some information that might help in debugging.
1812 {
1813 echo
1814
1815 cat <<\_ASBOX
1816 ## ---------------- ##
1817 ## Cache variables. ##
1818 ## ---------------- ##
1819 _ASBOX
1820 echo
1821 # The following way of writing the cache mishandles newlines in values,
1822 (
1823 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1824 eval ac_val=\$$ac_var
1825 case $ac_val in #(
1826 *${as_nl}*)
1827 case $ac_var in #(
1828 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1829 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1830 esac
1831 case $ac_var in #(
1832 _ | IFS | as_nl) ;; #(
1833 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1834 *) $as_unset $ac_var ;;
1835 esac ;;
1836 esac
1837 done
1838 (set) 2>&1 |
1839 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1840 *${as_nl}ac_space=\ *)
1841 sed -n \
1842 "s/'\''/'\''\\\\'\'''\''/g;
1843 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1844 ;; #(
1845 *)
1846 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1847 ;;
1848 esac |
1849 sort
1850 )
1851 echo
1852
1853 cat <<\_ASBOX
1854 ## ----------------- ##
1855 ## Output variables. ##
1856 ## ----------------- ##
1857 _ASBOX
1858 echo
1859 for ac_var in $ac_subst_vars
1860 do
1861 eval ac_val=\$$ac_var
1862 case $ac_val in
1863 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1864 esac
1865 $as_echo "$ac_var='\''$ac_val'\''"
1866 done | sort
1867 echo
1868
1869 if test -n "$ac_subst_files"; then
1870 cat <<\_ASBOX
1871 ## ------------------- ##
1872 ## File substitutions. ##
1873 ## ------------------- ##
1874 _ASBOX
1875 echo
1876 for ac_var in $ac_subst_files
1877 do
1878 eval ac_val=\$$ac_var
1879 case $ac_val in
1880 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1881 esac
1882 $as_echo "$ac_var='\''$ac_val'\''"
1883 done | sort
1884 echo
1885 fi
1886
1887 if test -s confdefs.h; then
1888 cat <<\_ASBOX
1889 ## ----------- ##
1890 ## confdefs.h. ##
1891 ## ----------- ##
1892 _ASBOX
1893 echo
1894 cat confdefs.h
1895 echo
1896 fi
1897 test "$ac_signal" != 0 &&
1898 $as_echo "$as_me: caught signal $ac_signal"
1899 $as_echo "$as_me: exit $exit_status"
1900 } >&5
1901 rm -f core *.core core.conftest.* &&
1902 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1903 exit $exit_status
1904 ' 0
1905 for ac_signal in 1 2 13 15; do
1906 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1907 done
1908 ac_signal=0
1909
1910 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1911 rm -f -r conftest* confdefs.h
1912
1913 # Predefined preprocessor variables.
1914
1915 cat >>confdefs.h <<_ACEOF
1916 #define PACKAGE_NAME "$PACKAGE_NAME"
1917 _ACEOF
1918
1919
1920 cat >>confdefs.h <<_ACEOF
1921 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1922 _ACEOF
1923
1924
1925 cat >>confdefs.h <<_ACEOF
1926 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1927 _ACEOF
1928
1929
1930 cat >>confdefs.h <<_ACEOF
1931 #define PACKAGE_STRING "$PACKAGE_STRING"
1932 _ACEOF
1933
1934
1935 cat >>confdefs.h <<_ACEOF
1936 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1937 _ACEOF
1938
1939
1940 # Let the site file select an alternate cache file if it wants to.
1941 # Prefer an explicitly selected file to automatically selected ones.
1942 ac_site_file1=NONE
1943 ac_site_file2=NONE
1944 if test -n "$CONFIG_SITE"; then
1945 ac_site_file1=$CONFIG_SITE
1946 elif test "x$prefix" != xNONE; then
1947 ac_site_file1=$prefix/share/config.site
1948 ac_site_file2=$prefix/etc/config.site
1949 else
1950 ac_site_file1=$ac_default_prefix/share/config.site
1951 ac_site_file2=$ac_default_prefix/etc/config.site
1952 fi
1953 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1954 do
1955 test "x$ac_site_file" = xNONE && continue
1956 if test -r "$ac_site_file"; then
1957 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1958 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1959 sed 's/^/| /' "$ac_site_file" >&5
1960 . "$ac_site_file"
1961 fi
1962 done
1963
1964 if test -r "$cache_file"; then
1965 # Some versions of bash will fail to source /dev/null (special
1966 # files actually), so we avoid doing that.
1967 if test -f "$cache_file"; then
1968 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1969 $as_echo "$as_me: loading cache $cache_file" >&6;}
1970 case $cache_file in
1971 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1972 *) . "./$cache_file";;
1973 esac
1974 fi
1975 else
1976 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1977 $as_echo "$as_me: creating cache $cache_file" >&6;}
1978 >$cache_file
1979 fi
1980
1981 # Check that the precious variables saved in the cache have kept the same
1982 # value.
1983 ac_cache_corrupted=false
1984 for ac_var in $ac_precious_vars; do
1985 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1986 eval ac_new_set=\$ac_env_${ac_var}_set
1987 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1988 eval ac_new_val=\$ac_env_${ac_var}_value
1989 case $ac_old_set,$ac_new_set in
1990 set,)
1991 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1992 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1993 ac_cache_corrupted=: ;;
1994 ,set)
1995 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1996 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1997 ac_cache_corrupted=: ;;
1998 ,);;
1999 *)
2000 if test "x$ac_old_val" != "x$ac_new_val"; then
2001 # differences in whitespace do not lead to failure.
2002 ac_old_val_w=`echo x $ac_old_val`
2003 ac_new_val_w=`echo x $ac_new_val`
2004 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2005 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2006 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2007 ac_cache_corrupted=:
2008 else
2009 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2010 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2011 eval $ac_var=\$ac_old_val
2012 fi
2013 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2014 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2015 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2016 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2017 fi;;
2018 esac
2019 # Pass precious variables to config.status.
2020 if test "$ac_new_set" = set; then
2021 case $ac_new_val in
2022 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2023 *) ac_arg=$ac_var=$ac_new_val ;;
2024 esac
2025 case " $ac_configure_args " in
2026 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2027 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2028 esac
2029 fi
2030 done
2031 if $ac_cache_corrupted; then
2032 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2034 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2035 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2036 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2037 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2038 { (exit 1); exit 1; }; }
2039 fi
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065 ac_ext=c
2066 ac_cpp='$CPP $CPPFLAGS'
2067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2070
2071
2072
2073
2074 am__api_version='1.11'
2075
2076 ac_aux_dir=
2077 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2078 if test -f "$ac_dir/install-sh"; then
2079 ac_aux_dir=$ac_dir
2080 ac_install_sh="$ac_aux_dir/install-sh -c"
2081 break
2082 elif test -f "$ac_dir/install.sh"; then
2083 ac_aux_dir=$ac_dir
2084 ac_install_sh="$ac_aux_dir/install.sh -c"
2085 break
2086 elif test -f "$ac_dir/shtool"; then
2087 ac_aux_dir=$ac_dir
2088 ac_install_sh="$ac_aux_dir/shtool install -c"
2089 break
2090 fi
2091 done
2092 if test -z "$ac_aux_dir"; then
2093 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2094 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2095 { (exit 1); exit 1; }; }
2096 fi
2097
2098 # These three variables are undocumented and unsupported,
2099 # and are intended to be withdrawn in a future Autoconf release.
2100 # They can cause serious problems if a builder's source tree is in a directory
2101 # whose full name contains unusual characters.
2102 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2103 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2104 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2105
2106
2107 # Find a good install program. We prefer a C program (faster),
2108 # so one script is as good as another. But avoid the broken or
2109 # incompatible versions:
2110 # SysV /etc/install, /usr/sbin/install
2111 # SunOS /usr/etc/install
2112 # IRIX /sbin/install
2113 # AIX /bin/install
2114 # AmigaOS /C/install, which installs bootblocks on floppy discs
2115 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2116 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2117 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2118 # OS/2's system install, which has a completely different semantic
2119 # ./install, which can be erroneously created by make from ./install.sh.
2120 # Reject install programs that cannot install multiple files.
2121 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2122 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2123 if test -z "$INSTALL"; then
2124 if test "${ac_cv_path_install+set}" = set; then
2125 $as_echo_n "(cached) " >&6
2126 else
2127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128 for as_dir in $PATH
2129 do
2130 IFS=$as_save_IFS
2131 test -z "$as_dir" && as_dir=.
2132 # Account for people who put trailing slashes in PATH elements.
2133 case $as_dir/ in
2134 ./ | .// | /cC/* | \
2135 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2136 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2137 /usr/ucb/* ) ;;
2138 *)
2139 # OSF1 and SCO ODT 3.0 have their own names for install.
2140 # Don't use installbsd from OSF since it installs stuff as root
2141 # by default.
2142 for ac_prog in ginstall scoinst install; do
2143 for ac_exec_ext in '' $ac_executable_extensions; do
2144 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2145 if test $ac_prog = install &&
2146 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2147 # AIX install. It has an incompatible calling convention.
2148 :
2149 elif test $ac_prog = install &&
2150 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2151 # program-specific install script used by HP pwplus--don't use.
2152 :
2153 else
2154 rm -rf conftest.one conftest.two conftest.dir
2155 echo one > conftest.one
2156 echo two > conftest.two
2157 mkdir conftest.dir
2158 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2159 test -s conftest.one && test -s conftest.two &&
2160 test -s conftest.dir/conftest.one &&
2161 test -s conftest.dir/conftest.two
2162 then
2163 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2164 break 3
2165 fi
2166 fi
2167 fi
2168 done
2169 done
2170 ;;
2171 esac
2172
2173 done
2174 IFS=$as_save_IFS
2175
2176 rm -rf conftest.one conftest.two conftest.dir
2177
2178 fi
2179 if test "${ac_cv_path_install+set}" = set; then
2180 INSTALL=$ac_cv_path_install
2181 else
2182 # As a last resort, use the slow shell script. Don't cache a
2183 # value for INSTALL within a source directory, because that will
2184 # break other packages using the cache if that directory is
2185 # removed, or if the value is a relative name.
2186 INSTALL=$ac_install_sh
2187 fi
2188 fi
2189 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2190 $as_echo "$INSTALL" >&6; }
2191
2192 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2193 # It thinks the first close brace ends the variable substitution.
2194 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2195
2196 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2197
2198 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2199
2200 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2201 $as_echo_n "checking whether build environment is sane... " >&6; }
2202 # Just in case
2203 sleep 1
2204 echo timestamp > conftest.file
2205 # Reject unsafe characters in $srcdir or the absolute working directory
2206 # name. Accept space and tab only in the latter.
2207 am_lf='
2208 '
2209 case `pwd` in
2210 *[\\\"\#\$\&\'\`$am_lf]*)
2211 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2212 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2213 { (exit 1); exit 1; }; };;
2214 esac
2215 case $srcdir in
2216 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2217 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2218 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2219 { (exit 1); exit 1; }; };;
2220 esac
2221
2222 # Do `set' in a subshell so we don't clobber the current shell's
2223 # arguments. Must try -L first in case configure is actually a
2224 # symlink; some systems play weird games with the mod time of symlinks
2225 # (eg FreeBSD returns the mod time of the symlink's containing
2226 # directory).
2227 if (
2228 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2229 if test "$*" = "X"; then
2230 # -L didn't work.
2231 set X `ls -t "$srcdir/configure" conftest.file`
2232 fi
2233 rm -f conftest.file
2234 if test "$*" != "X $srcdir/configure conftest.file" \
2235 && test "$*" != "X conftest.file $srcdir/configure"; then
2236
2237 # If neither matched, then we have a broken ls. This can happen
2238 # if, for instance, CONFIG_SHELL is bash and it inherits a
2239 # broken ls alias from the environment. This has actually
2240 # happened. Such a system could not be considered "sane".
2241 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2242 alias in your environment" >&5
2243 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2244 alias in your environment" >&2;}
2245 { (exit 1); exit 1; }; }
2246 fi
2247
2248 test "$2" = conftest.file
2249 )
2250 then
2251 # Ok.
2252 :
2253 else
2254 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2255 Check your system clock" >&5
2256 $as_echo "$as_me: error: newly created file is older than distributed files!
2257 Check your system clock" >&2;}
2258 { (exit 1); exit 1; }; }
2259 fi
2260 { $as_echo "$as_me:$LINENO: result: yes" >&5
2261 $as_echo "yes" >&6; }
2262 test "$program_prefix" != NONE &&
2263 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2264 # Use a double $ so make ignores it.
2265 test "$program_suffix" != NONE &&
2266 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2267 # Double any \ or $.
2268 # By default was `s,x,x', remove it if useless.
2269 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2270 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2271
2272 # expand $ac_aux_dir to an absolute path
2273 am_aux_dir=`cd $ac_aux_dir && pwd`
2274
2275 if test x"${MISSING+set}" != xset; then
2276 case $am_aux_dir in
2277 *\ * | *\ *)
2278 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2279 *)
2280 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2281 esac
2282 fi
2283 # Use eval to expand $SHELL
2284 if eval "$MISSING --run true"; then
2285 am_missing_run="$MISSING --run "
2286 else
2287 am_missing_run=
2288 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2289 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2290 fi
2291
2292 if test x"${install_sh}" != xset; then
2293 case $am_aux_dir in
2294 *\ * | *\ *)
2295 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2296 *)
2297 install_sh="\${SHELL} $am_aux_dir/install-sh"
2298 esac
2299 fi
2300
2301 # Installed binaries are usually stripped using `strip' when the user
2302 # run `make install-strip'. However `strip' might not be the right
2303 # tool to use in cross-compilation environments, therefore Automake
2304 # will honor the `STRIP' environment variable to overrule this program.
2305 if test "$cross_compiling" != no; then
2306 if test -n "$ac_tool_prefix"; then
2307 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2308 set dummy ${ac_tool_prefix}strip; ac_word=$2
2309 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2310 $as_echo_n "checking for $ac_word... " >&6; }
2311 if test "${ac_cv_prog_STRIP+set}" = set; then
2312 $as_echo_n "(cached) " >&6
2313 else
2314 if test -n "$STRIP"; then
2315 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2316 else
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318 for as_dir in $PATH
2319 do
2320 IFS=$as_save_IFS
2321 test -z "$as_dir" && as_dir=.
2322 for ac_exec_ext in '' $ac_executable_extensions; do
2323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2324 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2325 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2326 break 2
2327 fi
2328 done
2329 done
2330 IFS=$as_save_IFS
2331
2332 fi
2333 fi
2334 STRIP=$ac_cv_prog_STRIP
2335 if test -n "$STRIP"; then
2336 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2337 $as_echo "$STRIP" >&6; }
2338 else
2339 { $as_echo "$as_me:$LINENO: result: no" >&5
2340 $as_echo "no" >&6; }
2341 fi
2342
2343
2344 fi
2345 if test -z "$ac_cv_prog_STRIP"; then
2346 ac_ct_STRIP=$STRIP
2347 # Extract the first word of "strip", so it can be a program name with args.
2348 set dummy strip; ac_word=$2
2349 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2350 $as_echo_n "checking for $ac_word... " >&6; }
2351 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2352 $as_echo_n "(cached) " >&6
2353 else
2354 if test -n "$ac_ct_STRIP"; then
2355 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2356 else
2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358 for as_dir in $PATH
2359 do
2360 IFS=$as_save_IFS
2361 test -z "$as_dir" && as_dir=.
2362 for ac_exec_ext in '' $ac_executable_extensions; do
2363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2364 ac_cv_prog_ac_ct_STRIP="strip"
2365 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2366 break 2
2367 fi
2368 done
2369 done
2370 IFS=$as_save_IFS
2371
2372 fi
2373 fi
2374 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2375 if test -n "$ac_ct_STRIP"; then
2376 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2377 $as_echo "$ac_ct_STRIP" >&6; }
2378 else
2379 { $as_echo "$as_me:$LINENO: result: no" >&5
2380 $as_echo "no" >&6; }
2381 fi
2382
2383 if test "x$ac_ct_STRIP" = x; then
2384 STRIP=":"
2385 else
2386 case $cross_compiling:$ac_tool_warned in
2387 yes:)
2388 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2390 ac_tool_warned=yes ;;
2391 esac
2392 STRIP=$ac_ct_STRIP
2393 fi
2394 else
2395 STRIP="$ac_cv_prog_STRIP"
2396 fi
2397
2398 fi
2399 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2400
2401 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2402 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2403 if test -z "$MKDIR_P"; then
2404 if test "${ac_cv_path_mkdir+set}" = set; then
2405 $as_echo_n "(cached) " >&6
2406 else
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2409 do
2410 IFS=$as_save_IFS
2411 test -z "$as_dir" && as_dir=.
2412 for ac_prog in mkdir gmkdir; do
2413 for ac_exec_ext in '' $ac_executable_extensions; do
2414 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2415 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2416 'mkdir (GNU coreutils) '* | \
2417 'mkdir (coreutils) '* | \
2418 'mkdir (fileutils) '4.1*)
2419 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2420 break 3;;
2421 esac
2422 done
2423 done
2424 done
2425 IFS=$as_save_IFS
2426
2427 fi
2428
2429 if test "${ac_cv_path_mkdir+set}" = set; then
2430 MKDIR_P="$ac_cv_path_mkdir -p"
2431 else
2432 # As a last resort, use the slow shell script. Don't cache a
2433 # value for MKDIR_P within a source directory, because that will
2434 # break other packages using the cache if that directory is
2435 # removed, or if the value is a relative name.
2436 test -d ./--version && rmdir ./--version
2437 MKDIR_P="$ac_install_sh -d"
2438 fi
2439 fi
2440 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2441 $as_echo "$MKDIR_P" >&6; }
2442
2443 mkdir_p="$MKDIR_P"
2444 case $mkdir_p in
2445 [\\/$]* | ?:[\\/]*) ;;
2446 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2447 esac
2448
2449 for ac_prog in gawk mawk nawk awk
2450 do
2451 # Extract the first word of "$ac_prog", so it can be a program name with args.
2452 set dummy $ac_prog; ac_word=$2
2453 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2454 $as_echo_n "checking for $ac_word... " >&6; }
2455 if test "${ac_cv_prog_AWK+set}" = set; then
2456 $as_echo_n "(cached) " >&6
2457 else
2458 if test -n "$AWK"; then
2459 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2460 else
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462 for as_dir in $PATH
2463 do
2464 IFS=$as_save_IFS
2465 test -z "$as_dir" && as_dir=.
2466 for ac_exec_ext in '' $ac_executable_extensions; do
2467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2468 ac_cv_prog_AWK="$ac_prog"
2469 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2470 break 2
2471 fi
2472 done
2473 done
2474 IFS=$as_save_IFS
2475
2476 fi
2477 fi
2478 AWK=$ac_cv_prog_AWK
2479 if test -n "$AWK"; then
2480 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2481 $as_echo "$AWK" >&6; }
2482 else
2483 { $as_echo "$as_me:$LINENO: result: no" >&5
2484 $as_echo "no" >&6; }
2485 fi
2486
2487
2488 test -n "$AWK" && break
2489 done
2490
2491 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2492 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2493 set x ${MAKE-make}
2494 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2495 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2496 $as_echo_n "(cached) " >&6
2497 else
2498 cat >conftest.make <<\_ACEOF
2499 SHELL = /bin/sh
2500 all:
2501 @echo '@@@%%%=$(MAKE)=@@@%%%'
2502 _ACEOF
2503 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2504 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2505 *@@@%%%=?*=@@@%%%*)
2506 eval ac_cv_prog_make_${ac_make}_set=yes;;
2507 *)
2508 eval ac_cv_prog_make_${ac_make}_set=no;;
2509 esac
2510 rm -f conftest.make
2511 fi
2512 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2513 { $as_echo "$as_me:$LINENO: result: yes" >&5
2514 $as_echo "yes" >&6; }
2515 SET_MAKE=
2516 else
2517 { $as_echo "$as_me:$LINENO: result: no" >&5
2518 $as_echo "no" >&6; }
2519 SET_MAKE="MAKE=${MAKE-make}"
2520 fi
2521
2522 rm -rf .tst 2>/dev/null
2523 mkdir .tst 2>/dev/null
2524 if test -d .tst; then
2525 am__leading_dot=.
2526 else
2527 am__leading_dot=_
2528 fi
2529 rmdir .tst 2>/dev/null
2530
2531 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2532 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2533 # is not polluted with repeated "-I."
2534 am__isrc=' -I$(srcdir)'
2535 # test to see if srcdir already configured
2536 if test -f $srcdir/config.status; then
2537 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2538 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2539 { (exit 1); exit 1; }; }
2540 fi
2541 fi
2542
2543 # test whether we have cygpath
2544 if test -z "$CYGPATH_W"; then
2545 if (cygpath --version) >/dev/null 2>/dev/null; then
2546 CYGPATH_W='cygpath -w'
2547 else
2548 CYGPATH_W=echo
2549 fi
2550 fi
2551
2552
2553 # Define the identity of the package.
2554 PACKAGE='libIDL'
2555 VERSION='0.8.14'
2556
2557
2558 # Some tools Automake needs.
2559
2560 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2561
2562
2563 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2564
2565
2566 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2567
2568
2569 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2570
2571
2572 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2573
2574 # We need awk for the "check" target. The system "awk" is bad on
2575 # some platforms.
2576 # Always define AMTAR for backward compatibility.
2577
2578 AMTAR=${AMTAR-"${am_missing_run}tar"}
2579
2580 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2581
2582
2583
2584
2585
2586
2587 # Check whether --enable-silent-rules was given.
2588 if test "${enable_silent_rules+set}" = set; then
2589 enableval=$enable_silent_rules;
2590 fi
2591
2592 case $enable_silent_rules in
2593 yes) AM_DEFAULT_VERBOSITY=0;;
2594 no) AM_DEFAULT_VERBOSITY=1;;
2595 *) AM_DEFAULT_VERBOSITY=0;;
2596 esac
2597 AM_BACKSLASH='\'
2598
2599
2600 LIBIDL_MAJOR_VERSION=0
2601
2602 LIBIDL_MINOR_VERSION=8
2603
2604 LIBIDL_MICRO_VERSION=14
2605
2606 LIBIDL_VERSION=0.8.14
2607
2608 LT_VERSION=0:0:0
2609
2610
2611 cat >>confdefs.h <<_ACEOF
2612 #define LIBIDL_VERSION "0.8.14"
2613 _ACEOF
2614
2615
2616 # Check whether --enable-compile-warnings was given.
2617 if test "${enable_compile_warnings+set}" = set; then
2618 enableval=$enable_compile_warnings;
2619 else
2620 enable_compile_warnings="yes"
2621 fi
2622
2623
2624 ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
2625
2626
2627 DEPDIR="${am__leading_dot}deps"
2628
2629 ac_config_commands="$ac_config_commands depfiles"
2630
2631
2632 am_make=${MAKE-make}
2633 cat > confinc << 'END'
2634 am__doit:
2635 @echo this is the am__doit target
2636 .PHONY: am__doit
2637 END
2638 # If we don't find an include directive, just comment out the code.
2639 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2640 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2641 am__include="#"
2642 am__quote=
2643 _am_result=none
2644 # First try GNU make style include.
2645 echo "include confinc" > confmf
2646 # Ignore all kinds of additional output from `make'.
2647 case `$am_make -s -f confmf 2> /dev/null` in #(
2648 *the\ am__doit\ target*)
2649 am__include=include
2650 am__quote=
2651 _am_result=GNU
2652 ;;
2653 esac
2654 # Now try BSD make style include.
2655 if test "$am__include" = "#"; then
2656 echo '.include "confinc"' > confmf
2657 case `$am_make -s -f confmf 2> /dev/null` in #(
2658 *the\ am__doit\ target*)
2659 am__include=.include
2660 am__quote="\""
2661 _am_result=BSD
2662 ;;
2663 esac
2664 fi
2665
2666
2667 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2668 $as_echo "$_am_result" >&6; }
2669 rm -f confinc confmf
2670
2671 # Check whether --enable-dependency-tracking was given.
2672 if test "${enable_dependency_tracking+set}" = set; then
2673 enableval=$enable_dependency_tracking;
2674 fi
2675
2676 if test "x$enable_dependency_tracking" != xno; then
2677 am_depcomp="$ac_aux_dir/depcomp"
2678 AMDEPBACKSLASH='\'
2679 fi
2680 if test "x$enable_dependency_tracking" != xno; then
2681 AMDEP_TRUE=
2682 AMDEP_FALSE='#'
2683 else
2684 AMDEP_TRUE='#'
2685 AMDEP_FALSE=
2686 fi
2687
2688
2689 ac_ext=c
2690 ac_cpp='$CPP $CPPFLAGS'
2691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2694 if test -n "$ac_tool_prefix"; then
2695 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2696 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2697 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2698 $as_echo_n "checking for $ac_word... " >&6; }
2699 if test "${ac_cv_prog_CC+set}" = set; then
2700 $as_echo_n "(cached) " >&6
2701 else
2702 if test -n "$CC"; then
2703 ac_cv_prog_CC="$CC" # Let the user override the test.
2704 else
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 for as_dir in $PATH
2707 do
2708 IFS=$as_save_IFS
2709 test -z "$as_dir" && as_dir=.
2710 for ac_exec_ext in '' $ac_executable_extensions; do
2711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2712 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2713 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2714 break 2
2715 fi
2716 done
2717 done
2718 IFS=$as_save_IFS
2719
2720 fi
2721 fi
2722 CC=$ac_cv_prog_CC
2723 if test -n "$CC"; then
2724 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2725 $as_echo "$CC" >&6; }
2726 else
2727 { $as_echo "$as_me:$LINENO: result: no" >&5
2728 $as_echo "no" >&6; }
2729 fi
2730
2731
2732 fi
2733 if test -z "$ac_cv_prog_CC"; then
2734 ac_ct_CC=$CC
2735 # Extract the first word of "gcc", so it can be a program name with args.
2736 set dummy gcc; ac_word=$2
2737 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2738 $as_echo_n "checking for $ac_word... " >&6; }
2739 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2740 $as_echo_n "(cached) " >&6
2741 else
2742 if test -n "$ac_ct_CC"; then
2743 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2744 else
2745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746 for as_dir in $PATH
2747 do
2748 IFS=$as_save_IFS
2749 test -z "$as_dir" && as_dir=.
2750 for ac_exec_ext in '' $ac_executable_extensions; do
2751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2752 ac_cv_prog_ac_ct_CC="gcc"
2753 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2754 break 2
2755 fi
2756 done
2757 done
2758 IFS=$as_save_IFS
2759
2760 fi
2761 fi
2762 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2763 if test -n "$ac_ct_CC"; then
2764 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2765 $as_echo "$ac_ct_CC" >&6; }
2766 else
2767 { $as_echo "$as_me:$LINENO: result: no" >&5
2768 $as_echo "no" >&6; }
2769 fi
2770
2771 if test "x$ac_ct_CC" = x; then
2772 CC=""
2773 else
2774 case $cross_compiling:$ac_tool_warned in
2775 yes:)
2776 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2778 ac_tool_warned=yes ;;
2779 esac
2780 CC=$ac_ct_CC
2781 fi
2782 else
2783 CC="$ac_cv_prog_CC"
2784 fi
2785
2786 if test -z "$CC"; then
2787 if test -n "$ac_tool_prefix"; then
2788 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2789 set dummy ${ac_tool_prefix}cc; ac_word=$2
2790 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2791 $as_echo_n "checking for $ac_word... " >&6; }
2792 if test "${ac_cv_prog_CC+set}" = set; then
2793 $as_echo_n "(cached) " >&6
2794 else
2795 if test -n "$CC"; then
2796 ac_cv_prog_CC="$CC" # Let the user override the test.
2797 else
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 for as_dir in $PATH
2800 do
2801 IFS=$as_save_IFS
2802 test -z "$as_dir" && as_dir=.
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2805 ac_cv_prog_CC="${ac_tool_prefix}cc"
2806 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 break 2
2808 fi
2809 done
2810 done
2811 IFS=$as_save_IFS
2812
2813 fi
2814 fi
2815 CC=$ac_cv_prog_CC
2816 if test -n "$CC"; then
2817 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2818 $as_echo "$CC" >&6; }
2819 else
2820 { $as_echo "$as_me:$LINENO: result: no" >&5
2821 $as_echo "no" >&6; }
2822 fi
2823
2824
2825 fi
2826 fi
2827 if test -z "$CC"; then
2828 # Extract the first word of "cc", so it can be a program name with args.
2829 set dummy cc; ac_word=$2
2830 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2831 $as_echo_n "checking for $ac_word... " >&6; }
2832 if test "${ac_cv_prog_CC+set}" = set; then
2833 $as_echo_n "(cached) " >&6
2834 else
2835 if test -n "$CC"; then
2836 ac_cv_prog_CC="$CC" # Let the user override the test.
2837 else
2838 ac_prog_rejected=no
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 for as_dir in $PATH
2841 do
2842 IFS=$as_save_IFS
2843 test -z "$as_dir" && as_dir=.
2844 for ac_exec_ext in '' $ac_executable_extensions; do
2845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2846 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2847 ac_prog_rejected=yes
2848 continue
2849 fi
2850 ac_cv_prog_CC="cc"
2851 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2852 break 2
2853 fi
2854 done
2855 done
2856 IFS=$as_save_IFS
2857
2858 if test $ac_prog_rejected = yes; then
2859 # We found a bogon in the path, so make sure we never use it.
2860 set dummy $ac_cv_prog_CC
2861 shift
2862 if test $# != 0; then
2863 # We chose a different compiler from the bogus one.
2864 # However, it has the same basename, so the bogon will be chosen
2865 # first if we set CC to just the basename; use the full file name.
2866 shift
2867 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2868 fi
2869 fi
2870 fi
2871 fi
2872 CC=$ac_cv_prog_CC
2873 if test -n "$CC"; then
2874 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2875 $as_echo "$CC" >&6; }
2876 else
2877 { $as_echo "$as_me:$LINENO: result: no" >&5
2878 $as_echo "no" >&6; }
2879 fi
2880
2881
2882 fi
2883 if test -z "$CC"; then
2884 if test -n "$ac_tool_prefix"; then
2885 for ac_prog in cl.exe
2886 do
2887 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2888 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2889 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2890 $as_echo_n "checking for $ac_word... " >&6; }
2891 if test "${ac_cv_prog_CC+set}" = set; then
2892 $as_echo_n "(cached) " >&6
2893 else
2894 if test -n "$CC"; then
2895 ac_cv_prog_CC="$CC" # Let the user override the test.
2896 else
2897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898 for as_dir in $PATH
2899 do
2900 IFS=$as_save_IFS
2901 test -z "$as_dir" && as_dir=.
2902 for ac_exec_ext in '' $ac_executable_extensions; do
2903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2904 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2905 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2906 break 2
2907 fi
2908 done
2909 done
2910 IFS=$as_save_IFS
2911
2912 fi
2913 fi
2914 CC=$ac_cv_prog_CC
2915 if test -n "$CC"; then
2916 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2917 $as_echo "$CC" >&6; }
2918 else
2919 { $as_echo "$as_me:$LINENO: result: no" >&5
2920 $as_echo "no" >&6; }
2921 fi
2922
2923
2924 test -n "$CC" && break
2925 done
2926 fi
2927 if test -z "$CC"; then
2928 ac_ct_CC=$CC
2929 for ac_prog in cl.exe
2930 do
2931 # Extract the first word of "$ac_prog", so it can be a program name with args.
2932 set dummy $ac_prog; ac_word=$2
2933 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2934 $as_echo_n "checking for $ac_word... " >&6; }
2935 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2936 $as_echo_n "(cached) " >&6
2937 else
2938 if test -n "$ac_ct_CC"; then
2939 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2940 else
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 for as_dir in $PATH
2943 do
2944 IFS=$as_save_IFS
2945 test -z "$as_dir" && as_dir=.
2946 for ac_exec_ext in '' $ac_executable_extensions; do
2947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2948 ac_cv_prog_ac_ct_CC="$ac_prog"
2949 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2950 break 2
2951 fi
2952 done
2953 done
2954 IFS=$as_save_IFS
2955
2956 fi
2957 fi
2958 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2959 if test -n "$ac_ct_CC"; then
2960 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2961 $as_echo "$ac_ct_CC" >&6; }
2962 else
2963 { $as_echo "$as_me:$LINENO: result: no" >&5
2964 $as_echo "no" >&6; }
2965 fi
2966
2967
2968 test -n "$ac_ct_CC" && break
2969 done
2970
2971 if test "x$ac_ct_CC" = x; then
2972 CC=""
2973 else
2974 case $cross_compiling:$ac_tool_warned in
2975 yes:)
2976 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2978 ac_tool_warned=yes ;;
2979 esac
2980 CC=$ac_ct_CC
2981 fi
2982 fi
2983
2984 fi
2985
2986
2987 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2989 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2990 See \`config.log' for more details." >&5
2991 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2992 See \`config.log' for more details." >&2;}
2993 { (exit 1); exit 1; }; }; }
2994
2995 # Provide some information about the compiler.
2996 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2997 set X $ac_compile
2998 ac_compiler=$2
2999 { (ac_try="$ac_compiler --version >&5"
3000 case "(($ac_try" in
3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3003 esac
3004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3005 $as_echo "$ac_try_echo") >&5
3006 (eval "$ac_compiler --version >&5") 2>&5
3007 ac_status=$?
3008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); }
3010 { (ac_try="$ac_compiler -v >&5"
3011 case "(($ac_try" in
3012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013 *) ac_try_echo=$ac_try;;
3014 esac
3015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3016 $as_echo "$ac_try_echo") >&5
3017 (eval "$ac_compiler -v >&5") 2>&5
3018 ac_status=$?
3019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); }
3021 { (ac_try="$ac_compiler -V >&5"
3022 case "(($ac_try" in
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3025 esac
3026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3027 $as_echo "$ac_try_echo") >&5
3028 (eval "$ac_compiler -V >&5") 2>&5
3029 ac_status=$?
3030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); }
3032
3033 cat >conftest.$ac_ext <<_ACEOF
3034 /* confdefs.h. */
3035 _ACEOF
3036 cat confdefs.h >>conftest.$ac_ext
3037 cat >>conftest.$ac_ext <<_ACEOF
3038 /* end confdefs.h. */
3039
3040 int
3041 main ()
3042 {
3043
3044 ;
3045 return 0;
3046 }
3047 _ACEOF
3048 ac_clean_files_save=$ac_clean_files
3049 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3050 # Try to create an executable without -o first, disregard a.out.
3051 # It will help us diagnose broken compilers, and finding out an intuition
3052 # of exeext.
3053 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3054 $as_echo_n "checking for C compiler default output file name... " >&6; }
3055 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3056
3057 # The possible output files:
3058 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3059
3060 ac_rmfiles=
3061 for ac_file in $ac_files
3062 do
3063 case $ac_file in
3064 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3065 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3066 esac
3067 done
3068 rm -f $ac_rmfiles
3069
3070 if { (ac_try="$ac_link_default"
3071 case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074 esac
3075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3076 $as_echo "$ac_try_echo") >&5
3077 (eval "$ac_link_default") 2>&5
3078 ac_status=$?
3079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; then
3081 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3082 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3083 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3084 # so that the user can short-circuit this test for compilers unknown to
3085 # Autoconf.
3086 for ac_file in $ac_files ''
3087 do
3088 test -f "$ac_file" || continue
3089 case $ac_file in
3090 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3091 ;;
3092 [ab].out )
3093 # We found the default executable, but exeext='' is most
3094 # certainly right.
3095 break;;
3096 *.* )
3097 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3098 then :; else
3099 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3100 fi
3101 # We set ac_cv_exeext here because the later test for it is not
3102 # safe: cross compilers may not add the suffix if given an `-o'
3103 # argument, so we may need to know it at that point already.
3104 # Even if this section looks crufty: it has the advantage of
3105 # actually working.
3106 break;;
3107 * )
3108 break;;
3109 esac
3110 done
3111 test "$ac_cv_exeext" = no && ac_cv_exeext=
3112
3113 else
3114 ac_file=''
3115 fi
3116
3117 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3118 $as_echo "$ac_file" >&6; }
3119 if test -z "$ac_file"; then
3120 $as_echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.$ac_ext >&5
3122
3123 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3125 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3126 See \`config.log' for more details." >&5
3127 $as_echo "$as_me: error: C compiler cannot create executables
3128 See \`config.log' for more details." >&2;}
3129 { (exit 77); exit 77; }; }; }
3130 fi
3131
3132 ac_exeext=$ac_cv_exeext
3133
3134 # Check that the compiler produces executables we can run. If not, either
3135 # the compiler is broken, or we cross compile.
3136 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3137 $as_echo_n "checking whether the C compiler works... " >&6; }
3138 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3139 # If not cross compiling, check that we can run a simple program.
3140 if test "$cross_compiling" != yes; then
3141 if { ac_try='./$ac_file'
3142 { (case "(($ac_try" in
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3145 esac
3146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3147 $as_echo "$ac_try_echo") >&5
3148 (eval "$ac_try") 2>&5
3149 ac_status=$?
3150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }; }; then
3152 cross_compiling=no
3153 else
3154 if test "$cross_compiling" = maybe; then
3155 cross_compiling=yes
3156 else
3157 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3159 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3160 If you meant to cross compile, use \`--host'.
3161 See \`config.log' for more details." >&5
3162 $as_echo "$as_me: error: cannot run C compiled programs.
3163 If you meant to cross compile, use \`--host'.
3164 See \`config.log' for more details." >&2;}
3165 { (exit 1); exit 1; }; }; }
3166 fi
3167 fi
3168 fi
3169 { $as_echo "$as_me:$LINENO: result: yes" >&5
3170 $as_echo "yes" >&6; }
3171
3172 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3173 ac_clean_files=$ac_clean_files_save
3174 # Check that the compiler produces executables we can run. If not, either
3175 # the compiler is broken, or we cross compile.
3176 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3177 $as_echo_n "checking whether we are cross compiling... " >&6; }
3178 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3179 $as_echo "$cross_compiling" >&6; }
3180
3181 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3182 $as_echo_n "checking for suffix of executables... " >&6; }
3183 if { (ac_try="$ac_link"
3184 case "(($ac_try" in
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3187 esac
3188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3189 $as_echo "$ac_try_echo") >&5
3190 (eval "$ac_link") 2>&5
3191 ac_status=$?
3192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; then
3194 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3195 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3196 # work properly (i.e., refer to `conftest.exe'), while it won't with
3197 # `rm'.
3198 for ac_file in conftest.exe conftest conftest.*; do
3199 test -f "$ac_file" || continue
3200 case $ac_file in
3201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3202 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3203 break;;
3204 * ) break;;
3205 esac
3206 done
3207 else
3208 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3210 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3211 See \`config.log' for more details." >&5
3212 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3213 See \`config.log' for more details." >&2;}
3214 { (exit 1); exit 1; }; }; }
3215 fi
3216
3217 rm -f conftest$ac_cv_exeext
3218 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3219 $as_echo "$ac_cv_exeext" >&6; }
3220
3221 rm -f conftest.$ac_ext
3222 EXEEXT=$ac_cv_exeext
3223 ac_exeext=$EXEEXT
3224 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3225 $as_echo_n "checking for suffix of object files... " >&6; }
3226 if test "${ac_cv_objext+set}" = set; then
3227 $as_echo_n "(cached) " >&6
3228 else
3229 cat >conftest.$ac_ext <<_ACEOF
3230 /* confdefs.h. */
3231 _ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h. */
3235
3236 int
3237 main ()
3238 {
3239
3240 ;
3241 return 0;
3242 }
3243 _ACEOF
3244 rm -f conftest.o conftest.obj
3245 if { (ac_try="$ac_compile"
3246 case "(($ac_try" in
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3249 esac
3250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3251 $as_echo "$ac_try_echo") >&5
3252 (eval "$ac_compile") 2>&5
3253 ac_status=$?
3254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); }; then
3256 for ac_file in conftest.o conftest.obj conftest.*; do
3257 test -f "$ac_file" || continue;
3258 case $ac_file in
3259 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3260 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3261 break;;
3262 esac
3263 done
3264 else
3265 $as_echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3267
3268 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3270 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3271 See \`config.log' for more details." >&5
3272 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3273 See \`config.log' for more details." >&2;}
3274 { (exit 1); exit 1; }; }; }
3275 fi
3276
3277 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3278 fi
3279 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3280 $as_echo "$ac_cv_objext" >&6; }
3281 OBJEXT=$ac_cv_objext
3282 ac_objext=$OBJEXT
3283 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3284 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3285 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3286 $as_echo_n "(cached) " >&6
3287 else
3288 cat >conftest.$ac_ext <<_ACEOF
3289 /* confdefs.h. */
3290 _ACEOF
3291 cat confdefs.h >>conftest.$ac_ext
3292 cat >>conftest.$ac_ext <<_ACEOF
3293 /* end confdefs.h. */
3294
3295 int
3296 main ()
3297 {
3298 #ifndef __GNUC__
3299 choke me
3300 #endif
3301
3302 ;
3303 return 0;
3304 }
3305 _ACEOF
3306 rm -f conftest.$ac_objext
3307 if { (ac_try="$ac_compile"
3308 case "(($ac_try" in
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3311 esac
3312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3313 $as_echo "$ac_try_echo") >&5
3314 (eval "$ac_compile") 2>conftest.er1
3315 ac_status=$?
3316 grep -v '^ *+' conftest.er1 >conftest.err
3317 rm -f conftest.er1
3318 cat conftest.err >&5
3319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } && {
3321 test -z "$ac_c_werror_flag" ||
3322 test ! -s conftest.err
3323 } && test -s conftest.$ac_objext; then
3324 ac_compiler_gnu=yes
3325 else
3326 $as_echo "$as_me: failed program was:" >&5
3327 sed 's/^/| /' conftest.$ac_ext >&5
3328
3329 ac_compiler_gnu=no
3330 fi
3331
3332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3334
3335 fi
3336 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3337 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3338 if test $ac_compiler_gnu = yes; then
3339 GCC=yes
3340 else
3341 GCC=
3342 fi
3343 ac_test_CFLAGS=${CFLAGS+set}
3344 ac_save_CFLAGS=$CFLAGS
3345 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3346 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3347 if test "${ac_cv_prog_cc_g+set}" = set; then
3348 $as_echo_n "(cached) " >&6
3349 else
3350 ac_save_c_werror_flag=$ac_c_werror_flag
3351 ac_c_werror_flag=yes
3352 ac_cv_prog_cc_g=no
3353 CFLAGS="-g"
3354 cat >conftest.$ac_ext <<_ACEOF
3355 /* confdefs.h. */
3356 _ACEOF
3357 cat confdefs.h >>conftest.$ac_ext
3358 cat >>conftest.$ac_ext <<_ACEOF
3359 /* end confdefs.h. */
3360
3361 int
3362 main ()
3363 {
3364
3365 ;
3366 return 0;
3367 }
3368 _ACEOF
3369 rm -f conftest.$ac_objext
3370 if { (ac_try="$ac_compile"
3371 case "(($ac_try" in
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3374 esac
3375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3376 $as_echo "$ac_try_echo") >&5
3377 (eval "$ac_compile") 2>conftest.er1
3378 ac_status=$?
3379 grep -v '^ *+' conftest.er1 >conftest.err
3380 rm -f conftest.er1
3381 cat conftest.err >&5
3382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); } && {
3384 test -z "$ac_c_werror_flag" ||
3385 test ! -s conftest.err
3386 } && test -s conftest.$ac_objext; then
3387 ac_cv_prog_cc_g=yes
3388 else
3389 $as_echo "$as_me: failed program was:" >&5
3390 sed 's/^/| /' conftest.$ac_ext >&5
3391
3392 CFLAGS=""
3393 cat >conftest.$ac_ext <<_ACEOF
3394 /* confdefs.h. */
3395 _ACEOF
3396 cat confdefs.h >>conftest.$ac_ext
3397 cat >>conftest.$ac_ext <<_ACEOF
3398 /* end confdefs.h. */
3399
3400 int
3401 main ()
3402 {
3403
3404 ;
3405 return 0;
3406 }
3407 _ACEOF
3408 rm -f conftest.$ac_objext
3409 if { (ac_try="$ac_compile"
3410 case "(($ac_try" in
3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412 *) ac_try_echo=$ac_try;;
3413 esac
3414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3415 $as_echo "$ac_try_echo") >&5
3416 (eval "$ac_compile") 2>conftest.er1
3417 ac_status=$?
3418 grep -v '^ *+' conftest.er1 >conftest.err
3419 rm -f conftest.er1
3420 cat conftest.err >&5
3421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); } && {
3423 test -z "$ac_c_werror_flag" ||
3424 test ! -s conftest.err
3425 } && test -s conftest.$ac_objext; then
3426 :
3427 else
3428 $as_echo "$as_me: failed program was:" >&5
3429 sed 's/^/| /' conftest.$ac_ext >&5
3430
3431 ac_c_werror_flag=$ac_save_c_werror_flag
3432 CFLAGS="-g"
3433 cat >conftest.$ac_ext <<_ACEOF
3434 /* confdefs.h. */
3435 _ACEOF
3436 cat confdefs.h >>conftest.$ac_ext
3437 cat >>conftest.$ac_ext <<_ACEOF
3438 /* end confdefs.h. */
3439
3440 int
3441 main ()
3442 {
3443
3444 ;
3445 return 0;
3446 }
3447 _ACEOF
3448 rm -f conftest.$ac_objext
3449 if { (ac_try="$ac_compile"
3450 case "(($ac_try" in
3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3453 esac
3454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3455 $as_echo "$ac_try_echo") >&5
3456 (eval "$ac_compile") 2>conftest.er1
3457 ac_status=$?
3458 grep -v '^ *+' conftest.er1 >conftest.err
3459 rm -f conftest.er1
3460 cat conftest.err >&5
3461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); } && {
3463 test -z "$ac_c_werror_flag" ||
3464 test ! -s conftest.err
3465 } && test -s conftest.$ac_objext; then
3466 ac_cv_prog_cc_g=yes
3467 else
3468 $as_echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3470
3471
3472 fi
3473
3474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3475 fi
3476
3477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478 fi
3479
3480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3481 ac_c_werror_flag=$ac_save_c_werror_flag
3482 fi
3483 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3484 $as_echo "$ac_cv_prog_cc_g" >&6; }
3485 if test "$ac_test_CFLAGS" = set; then
3486 CFLAGS=$ac_save_CFLAGS
3487 elif test $ac_cv_prog_cc_g = yes; then
3488 if test "$GCC" = yes; then
3489 CFLAGS="-g -O2"
3490 else
3491 CFLAGS="-g"
3492 fi
3493 else
3494 if test "$GCC" = yes; then
3495 CFLAGS="-O2"
3496 else
3497 CFLAGS=
3498 fi
3499 fi
3500 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3501 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3502 if test "${ac_cv_prog_cc_c89+set}" = set; then
3503 $as_echo_n "(cached) " >&6
3504 else
3505 ac_cv_prog_cc_c89=no
3506 ac_save_CC=$CC
3507 cat >conftest.$ac_ext <<_ACEOF
3508 /* confdefs.h. */
3509 _ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h. */
3513 #include <stdarg.h>
3514 #include <stdio.h>
3515 #include <sys/types.h>
3516 #include <sys/stat.h>
3517 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3518 struct buf { int x; };
3519 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3520 static char *e (p, i)
3521 char **p;
3522 int i;
3523 {
3524 return p[i];
3525 }
3526 static char *f (char * (*g) (char **, int), char **p, ...)
3527 {
3528 char *s;
3529 va_list v;
3530 va_start (v,p);
3531 s = g (p, va_arg (v,int));
3532 va_end (v);
3533 return s;
3534 }
3535
3536 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3537 function prototypes and stuff, but not '\xHH' hex character constants.
3538 These don't provoke an error unfortunately, instead are silently treated
3539 as 'x'. The following induces an error, until -std is added to get
3540 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3541 array size at least. It's necessary to write '\x00'==0 to get something
3542 that's true only with -std. */
3543 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3544
3545 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3546 inside strings and character constants. */
3547 #define FOO(x) 'x'
3548 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3549
3550 int test (int i, double x);
3551 struct s1 {int (*f) (int a);};
3552 struct s2 {int (*f) (double a);};
3553 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3554 int argc;
3555 char **argv;
3556 int
3557 main ()
3558 {
3559 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3560 ;
3561 return 0;
3562 }
3563 _ACEOF
3564 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3565 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3566 do
3567 CC="$ac_save_CC $ac_arg"
3568 rm -f conftest.$ac_objext
3569 if { (ac_try="$ac_compile"
3570 case "(($ac_try" in
3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3573 esac
3574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3575 $as_echo "$ac_try_echo") >&5
3576 (eval "$ac_compile") 2>conftest.er1
3577 ac_status=$?
3578 grep -v '^ *+' conftest.er1 >conftest.err
3579 rm -f conftest.er1
3580 cat conftest.err >&5
3581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); } && {
3583 test -z "$ac_c_werror_flag" ||
3584 test ! -s conftest.err
3585 } && test -s conftest.$ac_objext; then
3586 ac_cv_prog_cc_c89=$ac_arg
3587 else
3588 $as_echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3590
3591
3592 fi
3593
3594 rm -f core conftest.err conftest.$ac_objext
3595 test "x$ac_cv_prog_cc_c89" != "xno" && break
3596 done
3597 rm -f conftest.$ac_ext
3598 CC=$ac_save_CC
3599
3600 fi
3601 # AC_CACHE_VAL
3602 case "x$ac_cv_prog_cc_c89" in
3603 x)
3604 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3605 $as_echo "none needed" >&6; } ;;
3606 xno)
3607 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3608 $as_echo "unsupported" >&6; } ;;
3609 *)
3610 CC="$CC $ac_cv_prog_cc_c89"
3611 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3612 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3613 esac
3614
3615
3616 ac_ext=c
3617 ac_cpp='$CPP $CPPFLAGS'
3618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3621
3622 depcc="$CC" am_compiler_list=
3623
3624 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3625 $as_echo_n "checking dependency style of $depcc... " >&6; }
3626 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3627 $as_echo_n "(cached) " >&6
3628 else
3629 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3630 # We make a subdir and do the tests there. Otherwise we can end up
3631 # making bogus files that we don't know about and never remove. For
3632 # instance it was reported that on HP-UX the gcc test will end up
3633 # making a dummy file named `D' -- because `-MD' means `put the output
3634 # in D'.
3635 mkdir conftest.dir
3636 # Copy depcomp to subdir because otherwise we won't find it if we're
3637 # using a relative directory.
3638 cp "$am_depcomp" conftest.dir
3639 cd conftest.dir
3640 # We will build objects and dependencies in a subdirectory because
3641 # it helps to detect inapplicable dependency modes. For instance
3642 # both Tru64's cc and ICC support -MD to output dependencies as a
3643 # side effect of compilation, but ICC will put the dependencies in
3644 # the current directory while Tru64 will put them in the object
3645 # directory.
3646 mkdir sub
3647
3648 am_cv_CC_dependencies_compiler_type=none
3649 if test "$am_compiler_list" = ""; then
3650 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3651 fi
3652 am__universal=false
3653 case " $depcc " in #(
3654 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3655 esac
3656
3657 for depmode in $am_compiler_list; do
3658 # Setup a source with many dependencies, because some compilers
3659 # like to wrap large dependency lists on column 80 (with \), and
3660 # we should not choose a depcomp mode which is confused by this.
3661 #
3662 # We need to recreate these files for each test, as the compiler may
3663 # overwrite some of them when testing with obscure command lines.
3664 # This happens at least with the AIX C compiler.
3665 : > sub/conftest.c
3666 for i in 1 2 3 4 5 6; do
3667 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3668 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3669 # Solaris 8's {/usr,}/bin/sh.
3670 touch sub/conftst$i.h
3671 done
3672 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3673
3674 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3675 # mode. It turns out that the SunPro C++ compiler does not properly
3676 # handle `-M -o', and we need to detect this. Also, some Intel
3677 # versions had trouble with output in subdirs
3678 am__obj=sub/conftest.${OBJEXT-o}
3679 am__minus_obj="-o $am__obj"
3680 case $depmode in
3681 gcc)
3682 # This depmode causes a compiler race in universal mode.
3683 test "$am__universal" = false || continue
3684 ;;
3685 nosideeffect)
3686 # after this tag, mechanisms are not by side-effect, so they'll
3687 # only be used when explicitly requested
3688 if test "x$enable_dependency_tracking" = xyes; then
3689 continue
3690 else
3691 break
3692 fi
3693 ;;
3694 msvisualcpp | msvcmsys)
3695 # This compiler won't grok `-c -o', but also, the minuso test has
3696 # not run yet. These depmodes are late enough in the game, and
3697 # so weak that their functioning should not be impacted.
3698 am__obj=conftest.${OBJEXT-o}
3699 am__minus_obj=
3700 ;;
3701 none) break ;;
3702 esac
3703 if depmode=$depmode \
3704 source=sub/conftest.c object=$am__obj \
3705 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3706 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3707 >/dev/null 2>conftest.err &&
3708 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3709 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3710 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3711 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3712 # icc doesn't choke on unknown options, it will just issue warnings
3713 # or remarks (even with -Werror). So we grep stderr for any message
3714 # that says an option was ignored or not supported.
3715 # When given -MP, icc 7.0 and 7.1 complain thusly:
3716 # icc: Command line warning: ignoring option '-M'; no argument required
3717 # The diagnosis changed in icc 8.0:
3718 # icc: Command line remark: option '-MP' not supported
3719 if (grep 'ignoring option' conftest.err ||
3720 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3721 am_cv_CC_dependencies_compiler_type=$depmode
3722 break
3723 fi
3724 fi
3725 done
3726
3727 cd ..
3728 rm -rf conftest.dir
3729 else
3730 am_cv_CC_dependencies_compiler_type=none
3731 fi
3732
3733 fi
3734 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3735 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3736 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3737
3738 if
3739 test "x$enable_dependency_tracking" != xno \
3740 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3741 am__fastdepCC_TRUE=
3742 am__fastdepCC_FALSE='#'
3743 else
3744 am__fastdepCC_TRUE='#'
3745 am__fastdepCC_FALSE=
3746 fi
3747
3748
3749
3750 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
3751 $as_echo_n "checking for library containing strerror... " >&6; }
3752 if test "${ac_cv_search_strerror+set}" = set; then
3753 $as_echo_n "(cached) " >&6
3754 else
3755 ac_func_search_save_LIBS=$LIBS
3756 cat >conftest.$ac_ext <<_ACEOF
3757 /* confdefs.h. */
3758 _ACEOF
3759 cat confdefs.h >>conftest.$ac_ext
3760 cat >>conftest.$ac_ext <<_ACEOF
3761 /* end confdefs.h. */
3762
3763 /* Override any GCC internal prototype to avoid an error.
3764 Use char because int might match the return type of a GCC
3765 builtin and then its argument prototype would still apply. */
3766 #ifdef __cplusplus
3767 extern "C"
3768 #endif
3769 char strerror ();
3770 int
3771 main ()
3772 {
3773 return strerror ();
3774 ;
3775 return 0;
3776 }
3777 _ACEOF
3778 for ac_lib in '' cposix; do
3779 if test -z "$ac_lib"; then
3780 ac_res="none required"
3781 else
3782 ac_res=-l$ac_lib
3783 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3784 fi
3785 rm -f conftest.$ac_objext conftest$ac_exeext
3786 if { (ac_try="$ac_link"
3787 case "(($ac_try" in
3788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3789 *) ac_try_echo=$ac_try;;
3790 esac
3791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3792 $as_echo "$ac_try_echo") >&5
3793 (eval "$ac_link") 2>conftest.er1
3794 ac_status=$?
3795 grep -v '^ *+' conftest.er1 >conftest.err
3796 rm -f conftest.er1
3797 cat conftest.err >&5
3798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); } && {
3800 test -z "$ac_c_werror_flag" ||
3801 test ! -s conftest.err
3802 } && test -s conftest$ac_exeext && {
3803 test "$cross_compiling" = yes ||
3804 $as_test_x conftest$ac_exeext
3805 }; then
3806 ac_cv_search_strerror=$ac_res
3807 else
3808 $as_echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3810
3811
3812 fi
3813
3814 rm -rf conftest.dSYM
3815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3816 conftest$ac_exeext
3817 if test "${ac_cv_search_strerror+set}" = set; then
3818 break
3819 fi
3820 done
3821 if test "${ac_cv_search_strerror+set}" = set; then
3822 :
3823 else
3824 ac_cv_search_strerror=no
3825 fi
3826 rm conftest.$ac_ext
3827 LIBS=$ac_func_search_save_LIBS
3828 fi
3829 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3830 $as_echo "$ac_cv_search_strerror" >&6; }
3831 ac_res=$ac_cv_search_strerror
3832 if test "$ac_res" != no; then
3833 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3834
3835 fi
3836
3837
3838 ac_ext=c
3839 ac_cpp='$CPP $CPPFLAGS'
3840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3843 if test -n "$ac_tool_prefix"; then
3844 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3845 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3846 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3847 $as_echo_n "checking for $ac_word... " >&6; }
3848 if test "${ac_cv_prog_CC+set}" = set; then
3849 $as_echo_n "(cached) " >&6
3850 else
3851 if test -n "$CC"; then
3852 ac_cv_prog_CC="$CC" # Let the user override the test.
3853 else
3854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855 for as_dir in $PATH
3856 do
3857 IFS=$as_save_IFS
3858 test -z "$as_dir" && as_dir=.
3859 for ac_exec_ext in '' $ac_executable_extensions; do
3860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3861 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3862 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3863 break 2
3864 fi
3865 done
3866 done
3867 IFS=$as_save_IFS
3868
3869 fi
3870 fi
3871 CC=$ac_cv_prog_CC
3872 if test -n "$CC"; then
3873 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3874 $as_echo "$CC" >&6; }
3875 else
3876 { $as_echo "$as_me:$LINENO: result: no" >&5
3877 $as_echo "no" >&6; }
3878 fi
3879
3880
3881 fi
3882 if test -z "$ac_cv_prog_CC"; then
3883 ac_ct_CC=$CC
3884 # Extract the first word of "gcc", so it can be a program name with args.
3885 set dummy gcc; ac_word=$2
3886 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3887 $as_echo_n "checking for $ac_word... " >&6; }
3888 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3889 $as_echo_n "(cached) " >&6
3890 else
3891 if test -n "$ac_ct_CC"; then
3892 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3893 else
3894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895 for as_dir in $PATH
3896 do
3897 IFS=$as_save_IFS
3898 test -z "$as_dir" && as_dir=.
3899 for ac_exec_ext in '' $ac_executable_extensions; do
3900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3901 ac_cv_prog_ac_ct_CC="gcc"
3902 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3903 break 2
3904 fi
3905 done
3906 done
3907 IFS=$as_save_IFS
3908
3909 fi
3910 fi
3911 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3912 if test -n "$ac_ct_CC"; then
3913 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3914 $as_echo "$ac_ct_CC" >&6; }
3915 else
3916 { $as_echo "$as_me:$LINENO: result: no" >&5
3917 $as_echo "no" >&6; }
3918 fi
3919
3920 if test "x$ac_ct_CC" = x; then
3921 CC=""
3922 else
3923 case $cross_compiling:$ac_tool_warned in
3924 yes:)
3925 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3927 ac_tool_warned=yes ;;
3928 esac
3929 CC=$ac_ct_CC
3930 fi
3931 else
3932 CC="$ac_cv_prog_CC"
3933 fi
3934
3935 if test -z "$CC"; then
3936 if test -n "$ac_tool_prefix"; then
3937 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3938 set dummy ${ac_tool_prefix}cc; ac_word=$2
3939 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3940 $as_echo_n "checking for $ac_word... " >&6; }
3941 if test "${ac_cv_prog_CC+set}" = set; then
3942 $as_echo_n "(cached) " >&6
3943 else
3944 if test -n "$CC"; then
3945 ac_cv_prog_CC="$CC" # Let the user override the test.
3946 else
3947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948 for as_dir in $PATH
3949 do
3950 IFS=$as_save_IFS
3951 test -z "$as_dir" && as_dir=.
3952 for ac_exec_ext in '' $ac_executable_extensions; do
3953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3954 ac_cv_prog_CC="${ac_tool_prefix}cc"
3955 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3956 break 2
3957 fi
3958 done
3959 done
3960 IFS=$as_save_IFS
3961
3962 fi
3963 fi
3964 CC=$ac_cv_prog_CC
3965 if test -n "$CC"; then
3966 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3967 $as_echo "$CC" >&6; }
3968 else
3969 { $as_echo "$as_me:$LINENO: result: no" >&5
3970 $as_echo "no" >&6; }
3971 fi
3972
3973
3974 fi
3975 fi
3976 if test -z "$CC"; then
3977 # Extract the first word of "cc", so it can be a program name with args.
3978 set dummy cc; ac_word=$2
3979 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3980 $as_echo_n "checking for $ac_word... " >&6; }
3981 if test "${ac_cv_prog_CC+set}" = set; then
3982 $as_echo_n "(cached) " >&6
3983 else
3984 if test -n "$CC"; then
3985 ac_cv_prog_CC="$CC" # Let the user override the test.
3986 else
3987 ac_prog_rejected=no
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH
3990 do
3991 IFS=$as_save_IFS
3992 test -z "$as_dir" && as_dir=.
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3995 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3996 ac_prog_rejected=yes
3997 continue
3998 fi
3999 ac_cv_prog_CC="cc"
4000 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4001 break 2
4002 fi
4003 done
4004 done
4005 IFS=$as_save_IFS
4006
4007 if test $ac_prog_rejected = yes; then
4008 # We found a bogon in the path, so make sure we never use it.
4009 set dummy $ac_cv_prog_CC
4010 shift
4011 if test $# != 0; then
4012 # We chose a different compiler from the bogus one.
4013 # However, it has the same basename, so the bogon will be chosen
4014 # first if we set CC to just the basename; use the full file name.
4015 shift
4016 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4017 fi
4018 fi
4019 fi
4020 fi
4021 CC=$ac_cv_prog_CC
4022 if test -n "$CC"; then
4023 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4024 $as_echo "$CC" >&6; }
4025 else
4026 { $as_echo "$as_me:$LINENO: result: no" >&5
4027 $as_echo "no" >&6; }
4028 fi
4029
4030
4031 fi
4032 if test -z "$CC"; then
4033 if test -n "$ac_tool_prefix"; then
4034 for ac_prog in cl.exe
4035 do
4036 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4037 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4038 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4039 $as_echo_n "checking for $ac_word... " >&6; }
4040 if test "${ac_cv_prog_CC+set}" = set; then
4041 $as_echo_n "(cached) " >&6
4042 else
4043 if test -n "$CC"; then
4044 ac_cv_prog_CC="$CC" # Let the user override the test.
4045 else
4046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047 for as_dir in $PATH
4048 do
4049 IFS=$as_save_IFS
4050 test -z "$as_dir" && as_dir=.
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4053 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4054 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4055 break 2
4056 fi
4057 done
4058 done
4059 IFS=$as_save_IFS
4060
4061 fi
4062 fi
4063 CC=$ac_cv_prog_CC
4064 if test -n "$CC"; then
4065 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4066 $as_echo "$CC" >&6; }
4067 else
4068 { $as_echo "$as_me:$LINENO: result: no" >&5
4069 $as_echo "no" >&6; }
4070 fi
4071
4072
4073 test -n "$CC" && break
4074 done
4075 fi
4076 if test -z "$CC"; then
4077 ac_ct_CC=$CC
4078 for ac_prog in cl.exe
4079 do
4080 # Extract the first word of "$ac_prog", so it can be a program name with args.
4081 set dummy $ac_prog; ac_word=$2
4082 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4083 $as_echo_n "checking for $ac_word... " >&6; }
4084 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4085 $as_echo_n "(cached) " >&6
4086 else
4087 if test -n "$ac_ct_CC"; then
4088 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4089 else
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH
4092 do
4093 IFS=$as_save_IFS
4094 test -z "$as_dir" && as_dir=.
4095 for ac_exec_ext in '' $ac_executable_extensions; do
4096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4097 ac_cv_prog_ac_ct_CC="$ac_prog"
4098 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4099 break 2
4100 fi
4101 done
4102 done
4103 IFS=$as_save_IFS
4104
4105 fi
4106 fi
4107 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4108 if test -n "$ac_ct_CC"; then
4109 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4110 $as_echo "$ac_ct_CC" >&6; }
4111 else
4112 { $as_echo "$as_me:$LINENO: result: no" >&5
4113 $as_echo "no" >&6; }
4114 fi
4115
4116
4117 test -n "$ac_ct_CC" && break
4118 done
4119
4120 if test "x$ac_ct_CC" = x; then
4121 CC=""
4122 else
4123 case $cross_compiling:$ac_tool_warned in
4124 yes:)
4125 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4126 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4127 ac_tool_warned=yes ;;
4128 esac
4129 CC=$ac_ct_CC
4130 fi
4131 fi
4132
4133 fi
4134
4135
4136 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4138 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4139 See \`config.log' for more details." >&5
4140 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4141 See \`config.log' for more details." >&2;}
4142 { (exit 1); exit 1; }; }; }
4143
4144 # Provide some information about the compiler.
4145 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4146 set X $ac_compile
4147 ac_compiler=$2
4148 { (ac_try="$ac_compiler --version >&5"
4149 case "(($ac_try" in
4150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151 *) ac_try_echo=$ac_try;;
4152 esac
4153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4154 $as_echo "$ac_try_echo") >&5
4155 (eval "$ac_compiler --version >&5") 2>&5
4156 ac_status=$?
4157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); }
4159 { (ac_try="$ac_compiler -v >&5"
4160 case "(($ac_try" in
4161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162 *) ac_try_echo=$ac_try;;
4163 esac
4164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4165 $as_echo "$ac_try_echo") >&5
4166 (eval "$ac_compiler -v >&5") 2>&5
4167 ac_status=$?
4168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); }
4170 { (ac_try="$ac_compiler -V >&5"
4171 case "(($ac_try" in
4172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173 *) ac_try_echo=$ac_try;;
4174 esac
4175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4176 $as_echo "$ac_try_echo") >&5
4177 (eval "$ac_compiler -V >&5") 2>&5
4178 ac_status=$?
4179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); }
4181
4182 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4183 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4184 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4185 $as_echo_n "(cached) " >&6
4186 else
4187 cat >conftest.$ac_ext <<_ACEOF
4188 /* confdefs.h. */
4189 _ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h. */
4193
4194 int
4195 main ()
4196 {
4197 #ifndef __GNUC__
4198 choke me
4199 #endif
4200
4201 ;
4202 return 0;
4203 }
4204 _ACEOF
4205 rm -f conftest.$ac_objext
4206 if { (ac_try="$ac_compile"
4207 case "(($ac_try" in
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4210 esac
4211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4212 $as_echo "$ac_try_echo") >&5
4213 (eval "$ac_compile") 2>conftest.er1
4214 ac_status=$?
4215 grep -v '^ *+' conftest.er1 >conftest.err
4216 rm -f conftest.er1
4217 cat conftest.err >&5
4218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); } && {
4220 test -z "$ac_c_werror_flag" ||
4221 test ! -s conftest.err
4222 } && test -s conftest.$ac_objext; then
4223 ac_compiler_gnu=yes
4224 else
4225 $as_echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.$ac_ext >&5
4227
4228 ac_compiler_gnu=no
4229 fi
4230
4231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4232 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4233
4234 fi
4235 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4236 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4237 if test $ac_compiler_gnu = yes; then
4238 GCC=yes
4239 else
4240 GCC=
4241 fi
4242 ac_test_CFLAGS=${CFLAGS+set}
4243 ac_save_CFLAGS=$CFLAGS
4244 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4245 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4246 if test "${ac_cv_prog_cc_g+set}" = set; then
4247 $as_echo_n "(cached) " >&6
4248 else
4249 ac_save_c_werror_flag=$ac_c_werror_flag
4250 ac_c_werror_flag=yes
4251 ac_cv_prog_cc_g=no
4252 CFLAGS="-g"
4253 cat >conftest.$ac_ext <<_ACEOF
4254 /* confdefs.h. */
4255 _ACEOF
4256 cat confdefs.h >>conftest.$ac_ext
4257 cat >>conftest.$ac_ext <<_ACEOF
4258 /* end confdefs.h. */
4259
4260 int
4261 main ()
4262 {
4263
4264 ;
4265 return 0;
4266 }
4267 _ACEOF
4268 rm -f conftest.$ac_objext
4269 if { (ac_try="$ac_compile"
4270 case "(($ac_try" in
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4273 esac
4274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4275 $as_echo "$ac_try_echo") >&5
4276 (eval "$ac_compile") 2>conftest.er1
4277 ac_status=$?
4278 grep -v '^ *+' conftest.er1 >conftest.err
4279 rm -f conftest.er1
4280 cat conftest.err >&5
4281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); } && {
4283 test -z "$ac_c_werror_flag" ||
4284 test ! -s conftest.err
4285 } && test -s conftest.$ac_objext; then
4286 ac_cv_prog_cc_g=yes
4287 else
4288 $as_echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4290
4291 CFLAGS=""
4292 cat >conftest.$ac_ext <<_ACEOF
4293 /* confdefs.h. */
4294 _ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h. */
4298
4299 int
4300 main ()
4301 {
4302
4303 ;
4304 return 0;
4305 }
4306 _ACEOF
4307 rm -f conftest.$ac_objext
4308 if { (ac_try="$ac_compile"
4309 case "(($ac_try" in
4310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4311 *) ac_try_echo=$ac_try;;
4312 esac
4313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4314 $as_echo "$ac_try_echo") >&5
4315 (eval "$ac_compile") 2>conftest.er1
4316 ac_status=$?
4317 grep -v '^ *+' conftest.er1 >conftest.err
4318 rm -f conftest.er1
4319 cat conftest.err >&5
4320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321 (exit $ac_status); } && {
4322 test -z "$ac_c_werror_flag" ||
4323 test ! -s conftest.err
4324 } && test -s conftest.$ac_objext; then
4325 :
4326 else
4327 $as_echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4329
4330 ac_c_werror_flag=$ac_save_c_werror_flag
4331 CFLAGS="-g"
4332 cat >conftest.$ac_ext <<_ACEOF
4333 /* confdefs.h. */
4334 _ACEOF
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h. */
4338
4339 int
4340 main ()
4341 {
4342
4343 ;
4344 return 0;
4345 }
4346 _ACEOF
4347 rm -f conftest.$ac_objext
4348 if { (ac_try="$ac_compile"
4349 case "(($ac_try" in
4350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4351 *) ac_try_echo=$ac_try;;
4352 esac
4353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4354 $as_echo "$ac_try_echo") >&5
4355 (eval "$ac_compile") 2>conftest.er1
4356 ac_status=$?
4357 grep -v '^ *+' conftest.er1 >conftest.err
4358 rm -f conftest.er1
4359 cat conftest.err >&5
4360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); } && {
4362 test -z "$ac_c_werror_flag" ||
4363 test ! -s conftest.err
4364 } && test -s conftest.$ac_objext; then
4365 ac_cv_prog_cc_g=yes
4366 else
4367 $as_echo "$as_me: failed program was:" >&5
4368 sed 's/^/| /' conftest.$ac_ext >&5
4369
4370
4371 fi
4372
4373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4374 fi
4375
4376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4377 fi
4378
4379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4380 ac_c_werror_flag=$ac_save_c_werror_flag
4381 fi
4382 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4383 $as_echo "$ac_cv_prog_cc_g" >&6; }
4384 if test "$ac_test_CFLAGS" = set; then
4385 CFLAGS=$ac_save_CFLAGS
4386 elif test $ac_cv_prog_cc_g = yes; then
4387 if test "$GCC" = yes; then
4388 CFLAGS="-g -O2"
4389 else
4390 CFLAGS="-g"
4391 fi
4392 else
4393 if test "$GCC" = yes; then
4394 CFLAGS="-O2"
4395 else
4396 CFLAGS=
4397 fi
4398 fi
4399 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4400 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4401 if test "${ac_cv_prog_cc_c89+set}" = set; then
4402 $as_echo_n "(cached) " >&6
4403 else
4404 ac_cv_prog_cc_c89=no
4405 ac_save_CC=$CC
4406 cat >conftest.$ac_ext <<_ACEOF
4407 /* confdefs.h. */
4408 _ACEOF
4409 cat confdefs.h >>conftest.$ac_ext
4410 cat >>conftest.$ac_ext <<_ACEOF
4411 /* end confdefs.h. */
4412 #include <stdarg.h>
4413 #include <stdio.h>
4414 #include <sys/types.h>
4415 #include <sys/stat.h>
4416 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4417 struct buf { int x; };
4418 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4419 static char *e (p, i)
4420 char **p;
4421 int i;
4422 {
4423 return p[i];
4424 }
4425 static char *f (char * (*g) (char **, int), char **p, ...)
4426 {
4427 char *s;
4428 va_list v;
4429 va_start (v,p);
4430 s = g (p, va_arg (v,int));
4431 va_end (v);
4432 return s;
4433 }
4434
4435 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4436 function prototypes and stuff, but not '\xHH' hex character constants.
4437 These don't provoke an error unfortunately, instead are silently treated
4438 as 'x'. The following induces an error, until -std is added to get
4439 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4440 array size at least. It's necessary to write '\x00'==0 to get something
4441 that's true only with -std. */
4442 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4443
4444 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4445 inside strings and character constants. */
4446 #define FOO(x) 'x'
4447 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4448
4449 int test (int i, double x);
4450 struct s1 {int (*f) (int a);};
4451 struct s2 {int (*f) (double a);};
4452 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4453 int argc;
4454 char **argv;
4455 int
4456 main ()
4457 {
4458 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4459 ;
4460 return 0;
4461 }
4462 _ACEOF
4463 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4464 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4465 do
4466 CC="$ac_save_CC $ac_arg"
4467 rm -f conftest.$ac_objext
4468 if { (ac_try="$ac_compile"
4469 case "(($ac_try" in
4470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471 *) ac_try_echo=$ac_try;;
4472 esac
4473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4474 $as_echo "$ac_try_echo") >&5
4475 (eval "$ac_compile") 2>conftest.er1
4476 ac_status=$?
4477 grep -v '^ *+' conftest.er1 >conftest.err
4478 rm -f conftest.er1
4479 cat conftest.err >&5
4480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); } && {
4482 test -z "$ac_c_werror_flag" ||
4483 test ! -s conftest.err
4484 } && test -s conftest.$ac_objext; then
4485 ac_cv_prog_cc_c89=$ac_arg
4486 else
4487 $as_echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.$ac_ext >&5
4489
4490
4491 fi
4492
4493 rm -f core conftest.err conftest.$ac_objext
4494 test "x$ac_cv_prog_cc_c89" != "xno" && break
4495 done
4496 rm -f conftest.$ac_ext
4497 CC=$ac_save_CC
4498
4499 fi
4500 # AC_CACHE_VAL
4501 case "x$ac_cv_prog_cc_c89" in
4502 x)
4503 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4504 $as_echo "none needed" >&6; } ;;
4505 xno)
4506 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4507 $as_echo "unsupported" >&6; } ;;
4508 *)
4509 CC="$CC $ac_cv_prog_cc_c89"
4510 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4511 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4512 esac
4513
4514
4515 ac_ext=c
4516 ac_cpp='$CPP $CPPFLAGS'
4517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4520
4521 depcc="$CC" am_compiler_list=
4522
4523 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4524 $as_echo_n "checking dependency style of $depcc... " >&6; }
4525 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4526 $as_echo_n "(cached) " >&6
4527 else
4528 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4529 # We make a subdir and do the tests there. Otherwise we can end up
4530 # making bogus files that we don't know about and never remove. For
4531 # instance it was reported that on HP-UX the gcc test will end up
4532 # making a dummy file named `D' -- because `-MD' means `put the output
4533 # in D'.
4534 mkdir conftest.dir
4535 # Copy depcomp to subdir because otherwise we won't find it if we're
4536 # using a relative directory.
4537 cp "$am_depcomp" conftest.dir
4538 cd conftest.dir
4539 # We will build objects and dependencies in a subdirectory because
4540 # it helps to detect inapplicable dependency modes. For instance
4541 # both Tru64's cc and ICC support -MD to output dependencies as a
4542 # side effect of compilation, but ICC will put the dependencies in
4543 # the current directory while Tru64 will put them in the object
4544 # directory.
4545 mkdir sub
4546
4547 am_cv_CC_dependencies_compiler_type=none
4548 if test "$am_compiler_list" = ""; then
4549 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4550 fi
4551 am__universal=false
4552 case " $depcc " in #(
4553 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4554 esac
4555
4556 for depmode in $am_compiler_list; do
4557 # Setup a source with many dependencies, because some compilers
4558 # like to wrap large dependency lists on column 80 (with \), and
4559 # we should not choose a depcomp mode which is confused by this.
4560 #
4561 # We need to recreate these files for each test, as the compiler may
4562 # overwrite some of them when testing with obscure command lines.
4563 # This happens at least with the AIX C compiler.
4564 : > sub/conftest.c
4565 for i in 1 2 3 4 5 6; do
4566 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4567 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4568 # Solaris 8's {/usr,}/bin/sh.
4569 touch sub/conftst$i.h
4570 done
4571 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4572
4573 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4574 # mode. It turns out that the SunPro C++ compiler does not properly
4575 # handle `-M -o', and we need to detect this. Also, some Intel
4576 # versions had trouble with output in subdirs
4577 am__obj=sub/conftest.${OBJEXT-o}
4578 am__minus_obj="-o $am__obj"
4579 case $depmode in
4580 gcc)
4581 # This depmode causes a compiler race in universal mode.
4582 test "$am__universal" = false || continue
4583 ;;
4584 nosideeffect)
4585 # after this tag, mechanisms are not by side-effect, so they'll
4586 # only be used when explicitly requested
4587 if test "x$enable_dependency_tracking" = xyes; then
4588 continue
4589 else
4590 break
4591 fi
4592 ;;
4593 msvisualcpp | msvcmsys)
4594 # This compiler won't grok `-c -o', but also, the minuso test has
4595 # not run yet. These depmodes are late enough in the game, and
4596 # so weak that their functioning should not be impacted.
4597 am__obj=conftest.${OBJEXT-o}
4598 am__minus_obj=
4599 ;;
4600 none) break ;;
4601 esac
4602 if depmode=$depmode \
4603 source=sub/conftest.c object=$am__obj \
4604 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4605 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4606 >/dev/null 2>conftest.err &&
4607 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4608 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4609 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4610 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4611 # icc doesn't choke on unknown options, it will just issue warnings
4612 # or remarks (even with -Werror). So we grep stderr for any message
4613 # that says an option was ignored or not supported.
4614 # When given -MP, icc 7.0 and 7.1 complain thusly:
4615 # icc: Command line warning: ignoring option '-M'; no argument required
4616 # The diagnosis changed in icc 8.0:
4617 # icc: Command line remark: option '-MP' not supported
4618 if (grep 'ignoring option' conftest.err ||
4619 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4620 am_cv_CC_dependencies_compiler_type=$depmode
4621 break
4622 fi
4623 fi
4624 done
4625
4626 cd ..
4627 rm -rf conftest.dir
4628 else
4629 am_cv_CC_dependencies_compiler_type=none
4630 fi
4631
4632 fi
4633 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4634 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4635 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4636
4637 if
4638 test "x$enable_dependency_tracking" != xno \
4639 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4640 am__fastdepCC_TRUE=
4641 am__fastdepCC_FALSE='#'
4642 else
4643 am__fastdepCC_TRUE='#'
4644 am__fastdepCC_FALSE=
4645 fi
4646
4647
4648 ac_ext=c
4649 ac_cpp='$CPP $CPPFLAGS'
4650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4653 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4654 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4655 # On Suns, sometimes $CPP names a directory.
4656 if test -n "$CPP" && test -d "$CPP"; then
4657 CPP=
4658 fi
4659 if test -z "$CPP"; then
4660 if test "${ac_cv_prog_CPP+set}" = set; then
4661 $as_echo_n "(cached) " >&6
4662 else
4663 # Double quotes because CPP needs to be expanded
4664 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4665 do
4666 ac_preproc_ok=false
4667 for ac_c_preproc_warn_flag in '' yes
4668 do
4669 # Use a header file that comes with gcc, so configuring glibc
4670 # with a fresh cross-compiler works.
4671 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4672 # <limits.h> exists even on freestanding compilers.
4673 # On the NeXT, cc -E runs the code through the compiler's parser,
4674 # not just through cpp. "Syntax error" is here to catch this case.
4675 cat >conftest.$ac_ext <<_ACEOF
4676 /* confdefs.h. */
4677 _ACEOF
4678 cat confdefs.h >>conftest.$ac_ext
4679 cat >>conftest.$ac_ext <<_ACEOF
4680 /* end confdefs.h. */
4681 #ifdef __STDC__
4682 # include <limits.h>
4683 #else
4684 # include <assert.h>
4685 #endif
4686 Syntax error
4687 _ACEOF
4688 if { (ac_try="$ac_cpp conftest.$ac_ext"
4689 case "(($ac_try" in
4690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4691 *) ac_try_echo=$ac_try;;
4692 esac
4693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4694 $as_echo "$ac_try_echo") >&5
4695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4696 ac_status=$?
4697 grep -v '^ *+' conftest.er1 >conftest.err
4698 rm -f conftest.er1
4699 cat conftest.err >&5
4700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); } >/dev/null && {
4702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4703 test ! -s conftest.err
4704 }; then
4705 :
4706 else
4707 $as_echo "$as_me: failed program was:" >&5
4708 sed 's/^/| /' conftest.$ac_ext >&5
4709
4710 # Broken: fails on valid input.
4711 continue
4712 fi
4713
4714 rm -f conftest.err conftest.$ac_ext
4715
4716 # OK, works on sane cases. Now check whether nonexistent headers
4717 # can be detected and how.
4718 cat >conftest.$ac_ext <<_ACEOF
4719 /* confdefs.h. */
4720 _ACEOF
4721 cat confdefs.h >>conftest.$ac_ext
4722 cat >>conftest.$ac_ext <<_ACEOF
4723 /* end confdefs.h. */
4724 #include <ac_nonexistent.h>
4725 _ACEOF
4726 if { (ac_try="$ac_cpp conftest.$ac_ext"
4727 case "(($ac_try" in
4728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729 *) ac_try_echo=$ac_try;;
4730 esac
4731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4732 $as_echo "$ac_try_echo") >&5
4733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4734 ac_status=$?
4735 grep -v '^ *+' conftest.er1 >conftest.err
4736 rm -f conftest.er1
4737 cat conftest.err >&5
4738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); } >/dev/null && {
4740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4741 test ! -s conftest.err
4742 }; then
4743 # Broken: success on invalid input.
4744 continue
4745 else
4746 $as_echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.$ac_ext >&5
4748
4749 # Passes both tests.
4750 ac_preproc_ok=:
4751 break
4752 fi
4753
4754 rm -f conftest.err conftest.$ac_ext
4755
4756 done
4757 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4758 rm -f conftest.err conftest.$ac_ext
4759 if $ac_preproc_ok; then
4760 break
4761 fi
4762
4763 done
4764 ac_cv_prog_CPP=$CPP
4765
4766 fi
4767 CPP=$ac_cv_prog_CPP
4768 else
4769 ac_cv_prog_CPP=$CPP
4770 fi
4771 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4772 $as_echo "$CPP" >&6; }
4773 ac_preproc_ok=false
4774 for ac_c_preproc_warn_flag in '' yes
4775 do
4776 # Use a header file that comes with gcc, so configuring glibc
4777 # with a fresh cross-compiler works.
4778 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4779 # <limits.h> exists even on freestanding compilers.
4780 # On the NeXT, cc -E runs the code through the compiler's parser,
4781 # not just through cpp. "Syntax error" is here to catch this case.
4782 cat >conftest.$ac_ext <<_ACEOF
4783 /* confdefs.h. */
4784 _ACEOF
4785 cat confdefs.h >>conftest.$ac_ext
4786 cat >>conftest.$ac_ext <<_ACEOF
4787 /* end confdefs.h. */
4788 #ifdef __STDC__
4789 # include <limits.h>
4790 #else
4791 # include <assert.h>
4792 #endif
4793 Syntax error
4794 _ACEOF
4795 if { (ac_try="$ac_cpp conftest.$ac_ext"
4796 case "(($ac_try" in
4797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4798 *) ac_try_echo=$ac_try;;
4799 esac
4800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4801 $as_echo "$ac_try_echo") >&5
4802 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4803 ac_status=$?
4804 grep -v '^ *+' conftest.er1 >conftest.err
4805 rm -f conftest.er1
4806 cat conftest.err >&5
4807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); } >/dev/null && {
4809 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4810 test ! -s conftest.err
4811 }; then
4812 :
4813 else
4814 $as_echo "$as_me: failed program was:" >&5
4815 sed 's/^/| /' conftest.$ac_ext >&5
4816
4817 # Broken: fails on valid input.
4818 continue
4819 fi
4820
4821 rm -f conftest.err conftest.$ac_ext
4822
4823 # OK, works on sane cases. Now check whether nonexistent headers
4824 # can be detected and how.
4825 cat >conftest.$ac_ext <<_ACEOF
4826 /* confdefs.h. */
4827 _ACEOF
4828 cat confdefs.h >>conftest.$ac_ext
4829 cat >>conftest.$ac_ext <<_ACEOF
4830 /* end confdefs.h. */
4831 #include <ac_nonexistent.h>
4832 _ACEOF
4833 if { (ac_try="$ac_cpp conftest.$ac_ext"
4834 case "(($ac_try" in
4835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4836 *) ac_try_echo=$ac_try;;
4837 esac
4838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4839 $as_echo "$ac_try_echo") >&5
4840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4841 ac_status=$?
4842 grep -v '^ *+' conftest.er1 >conftest.err
4843 rm -f conftest.er1
4844 cat conftest.err >&5
4845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } >/dev/null && {
4847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4848 test ! -s conftest.err
4849 }; then
4850 # Broken: success on invalid input.
4851 continue
4852 else
4853 $as_echo "$as_me: failed program was:" >&5
4854 sed 's/^/| /' conftest.$ac_ext >&5
4855
4856 # Passes both tests.
4857 ac_preproc_ok=:
4858 break
4859 fi
4860
4861 rm -f conftest.err conftest.$ac_ext
4862
4863 done
4864 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4865 rm -f conftest.err conftest.$ac_ext
4866 if $ac_preproc_ok; then
4867 :
4868 else
4869 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4870 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4871 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4872 See \`config.log' for more details." >&5
4873 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4874 See \`config.log' for more details." >&2;}
4875 { (exit 1); exit 1; }; }; }
4876 fi
4877
4878 ac_ext=c
4879 ac_cpp='$CPP $CPPFLAGS'
4880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4883
4884
4885 { $as_echo "$as_me:$LINENO: checking if C preprocessor likes IDL" >&5
4886 $as_echo_n "checking if C preprocessor likes IDL... " >&6; }
4887 if test "${ac_cv_cpp_accept_idl+set}" = set; then
4888 $as_echo_n "(cached) " >&6
4889 else
4890 cat >conftest.$ac_ext <<_ACEOF
4891 /* confdefs.h. */
4892 _ACEOF
4893 cat confdefs.h >>conftest.$ac_ext
4894 cat >>conftest.$ac_ext <<_ACEOF
4895 /* end confdefs.h. */
4896
4897 #pragma prefix "foo.org"
4898 module FOO {
4899 typedef unsigned long long big;
4900 interface BAR {
4901 readonly attribute big number;
4902 };
4903 };
4904
4905 _ACEOF
4906 if { (ac_try="$ac_cpp conftest.$ac_ext"
4907 case "(($ac_try" in
4908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4909 *) ac_try_echo=$ac_try;;
4910 esac
4911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4912 $as_echo "$ac_try_echo") >&5
4913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4914 ac_status=$?
4915 grep -v '^ *+' conftest.er1 >conftest.err
4916 rm -f conftest.er1
4917 cat conftest.err >&5
4918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); } >/dev/null && {
4920 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4921 test ! -s conftest.err
4922 }; then
4923 ac_cv_cpp_accept_idl=yes
4924 else
4925 $as_echo "$as_me: failed program was:" >&5
4926 sed 's/^/| /' conftest.$ac_ext >&5
4927
4928 ac_cv_cpp_accept_idl=no
4929 fi
4930
4931 rm -f conftest.err conftest.$ac_ext
4932 fi
4933 { $as_echo "$as_me:$LINENO: result: $ac_cv_cpp_accept_idl" >&5
4934 $as_echo "$ac_cv_cpp_accept_idl" >&6; }
4935 if [ "$ac_cv_cpp_accept_idl" = "no" ]; then
4936 { $as_echo "$as_me:$LINENO: WARNING: CPP does not accept IDL" >&5
4937 $as_echo "$as_me: WARNING: CPP does not accept IDL" >&2;}
4938 fi
4939 { $as_echo "$as_me:$LINENO: checking if C preprocessor can read from stdin" >&5
4940 $as_echo_n "checking if C preprocessor can read from stdin... " >&6; }
4941 if test "${ac_cv_cpp_pipe_stdin+set}" = set; then
4942 $as_echo_n "(cached) " >&6
4943 else
4944
4945 if echo | $CPP - 2>/dev/null 1>&2 ; then
4946 ac_cv_cpp_pipe_stdin=yes
4947 else
4948 ac_cv_cpp_pipe_stdin=no
4949 fi
4950 fi
4951 { $as_echo "$as_me:$LINENO: result: $ac_cv_cpp_pipe_stdin" >&5
4952 $as_echo "$ac_cv_cpp_pipe_stdin" >&6; }
4953 if test $ac_cv_cpp_pipe_stdin = yes ; then
4954 cat >>confdefs.h <<\_ACEOF
4955 #define HAVE_CPP_PIPE_STDIN 1
4956 _ACEOF
4957
4958 fi
4959 CPP_PROGRAM="$CPP"
4960 cat >>confdefs.h <<_ACEOF
4961 #define CPP_PROGRAM "$CPP"
4962 _ACEOF
4963
4964
4965 for ac_prog in flex lex
4966 do
4967 # Extract the first word of "$ac_prog", so it can be a program name with args.
4968 set dummy $ac_prog; ac_word=$2
4969 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4970 $as_echo_n "checking for $ac_word... " >&6; }
4971 if test "${ac_cv_prog_LEX+set}" = set; then
4972 $as_echo_n "(cached) " >&6
4973 else
4974 if test -n "$LEX"; then
4975 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4976 else
4977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 for as_dir in $PATH
4979 do
4980 IFS=$as_save_IFS
4981 test -z "$as_dir" && as_dir=.
4982 for ac_exec_ext in '' $ac_executable_extensions; do
4983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4984 ac_cv_prog_LEX="$ac_prog"
4985 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4986 break 2
4987 fi
4988 done
4989 done
4990 IFS=$as_save_IFS
4991
4992 fi
4993 fi
4994 LEX=$ac_cv_prog_LEX
4995 if test -n "$LEX"; then
4996 { $as_echo "$as_me:$LINENO: result: $LEX" >&5
4997 $as_echo "$LEX" >&6; }
4998 else
4999 { $as_echo "$as_me:$LINENO: result: no" >&5
5000 $as_echo "no" >&6; }
5001 fi
5002
5003
5004 test -n "$LEX" && break
5005 done
5006 test -n "$LEX" || LEX=":"
5007
5008 if test "x$LEX" != "x:"; then
5009 cat >conftest.l <<_ACEOF
5010 %%
5011 a { ECHO; }
5012 b { REJECT; }
5013 c { yymore (); }
5014 d { yyless (1); }
5015 e { yyless (input () != 0); }
5016 f { unput (yytext[0]); }
5017 . { BEGIN INITIAL; }
5018 %%
5019 #ifdef YYTEXT_POINTER
5020 extern char *yytext;
5021 #endif
5022 int
5023 main (void)
5024 {
5025 return ! yylex () + ! yywrap ();
5026 }
5027 _ACEOF
5028 { (ac_try="$LEX conftest.l"
5029 case "(($ac_try" in
5030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5031 *) ac_try_echo=$ac_try;;
5032 esac
5033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5034 $as_echo "$ac_try_echo") >&5
5035 (eval "$LEX conftest.l") 2>&5
5036 ac_status=$?
5037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); }
5039 { $as_echo "$as_me:$LINENO: checking lex output file root" >&5
5040 $as_echo_n "checking lex output file root... " >&6; }
5041 if test "${ac_cv_prog_lex_root+set}" = set; then
5042 $as_echo_n "(cached) " >&6
5043 else
5044
5045 if test -f lex.yy.c; then
5046 ac_cv_prog_lex_root=lex.yy
5047 elif test -f lexyy.c; then
5048 ac_cv_prog_lex_root=lexyy
5049 else
5050 { { $as_echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5051 $as_echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5052 { (exit 1); exit 1; }; }
5053 fi
5054 fi
5055 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5056 $as_echo "$ac_cv_prog_lex_root" >&6; }
5057 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5058
5059 if test -z "${LEXLIB+set}"; then
5060 { $as_echo "$as_me:$LINENO: checking lex library" >&5
5061 $as_echo_n "checking lex library... " >&6; }
5062 if test "${ac_cv_lib_lex+set}" = set; then
5063 $as_echo_n "(cached) " >&6
5064 else
5065
5066 ac_save_LIBS=$LIBS
5067 ac_cv_lib_lex='none needed'
5068 for ac_lib in '' -lfl -ll; do
5069 LIBS="$ac_lib $ac_save_LIBS"
5070 cat >conftest.$ac_ext <<_ACEOF
5071 `cat $LEX_OUTPUT_ROOT.c`
5072 _ACEOF
5073 rm -f conftest.$ac_objext conftest$ac_exeext
5074 if { (ac_try="$ac_link"
5075 case "(($ac_try" in
5076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5077 *) ac_try_echo=$ac_try;;
5078 esac
5079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5080 $as_echo "$ac_try_echo") >&5
5081 (eval "$ac_link") 2>conftest.er1
5082 ac_status=$?
5083 grep -v '^ *+' conftest.er1 >conftest.err
5084 rm -f conftest.er1
5085 cat conftest.err >&5
5086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); } && {
5088 test -z "$ac_c_werror_flag" ||
5089 test ! -s conftest.err
5090 } && test -s conftest$ac_exeext && {
5091 test "$cross_compiling" = yes ||
5092 $as_test_x conftest$ac_exeext
5093 }; then
5094 ac_cv_lib_lex=$ac_lib
5095 else
5096 $as_echo "$as_me: failed program was:" >&5
5097 sed 's/^/| /' conftest.$ac_ext >&5
5098
5099
5100 fi
5101
5102 rm -rf conftest.dSYM
5103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5104 conftest$ac_exeext conftest.$ac_ext
5105 test "$ac_cv_lib_lex" != 'none needed' && break
5106 done
5107 LIBS=$ac_save_LIBS
5108
5109 fi
5110 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
5111 $as_echo "$ac_cv_lib_lex" >&6; }
5112 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5113 fi
5114
5115
5116 { $as_echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5117 $as_echo_n "checking whether yytext is a pointer... " >&6; }
5118 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5119 $as_echo_n "(cached) " >&6
5120 else
5121 # POSIX says lex can declare yytext either as a pointer or an array; the
5122 # default is implementation-dependent. Figure out which it is, since
5123 # not all implementations provide the %pointer and %array declarations.
5124 ac_cv_prog_lex_yytext_pointer=no
5125 ac_save_LIBS=$LIBS
5126 LIBS="$LEXLIB $ac_save_LIBS"
5127 cat >conftest.$ac_ext <<_ACEOF
5128 #define YYTEXT_POINTER 1
5129 `cat $LEX_OUTPUT_ROOT.c`
5130 _ACEOF
5131 rm -f conftest.$ac_objext conftest$ac_exeext
5132 if { (ac_try="$ac_link"
5133 case "(($ac_try" in
5134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5135 *) ac_try_echo=$ac_try;;
5136 esac
5137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5138 $as_echo "$ac_try_echo") >&5
5139 (eval "$ac_link") 2>conftest.er1
5140 ac_status=$?
5141 grep -v '^ *+' conftest.er1 >conftest.err
5142 rm -f conftest.er1
5143 cat conftest.err >&5
5144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); } && {
5146 test -z "$ac_c_werror_flag" ||
5147 test ! -s conftest.err
5148 } && test -s conftest$ac_exeext && {
5149 test "$cross_compiling" = yes ||
5150 $as_test_x conftest$ac_exeext
5151 }; then
5152 ac_cv_prog_lex_yytext_pointer=yes
5153 else
5154 $as_echo "$as_me: failed program was:" >&5
5155 sed 's/^/| /' conftest.$ac_ext >&5
5156
5157
5158 fi
5159
5160 rm -rf conftest.dSYM
5161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5162 conftest$ac_exeext conftest.$ac_ext
5163 LIBS=$ac_save_LIBS
5164
5165 fi
5166 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5167 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5168 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5169
5170 cat >>confdefs.h <<\_ACEOF
5171 #define YYTEXT_POINTER 1
5172 _ACEOF
5173
5174 fi
5175 rm -f conftest.l $LEX_OUTPUT_ROOT.c
5176
5177 fi
5178 if test "$LEX" = :; then
5179 LEX=${am_missing_run}flex
5180 fi
5181 if [ "$LEX" != "flex" ]; then
5182 { { $as_echo "$as_me:$LINENO: error: flex is required to create the libIDL scanner" >&5
5183 $as_echo "$as_me: error: flex is required to create the libIDL scanner" >&2;}
5184 { (exit 1); exit 1; }; }
5185 fi
5186 LFLAGS="-8"
5187
5188
5189 for ac_prog in 'bison -y' byacc
5190 do
5191 # Extract the first word of "$ac_prog", so it can be a program name with args.
5192 set dummy $ac_prog; ac_word=$2
5193 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5194 $as_echo_n "checking for $ac_word... " >&6; }
5195 if test "${ac_cv_prog_YACC+set}" = set; then
5196 $as_echo_n "(cached) " >&6
5197 else
5198 if test -n "$YACC"; then
5199 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5200 else
5201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202 for as_dir in $PATH
5203 do
5204 IFS=$as_save_IFS
5205 test -z "$as_dir" && as_dir=.
5206 for ac_exec_ext in '' $ac_executable_extensions; do
5207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5208 ac_cv_prog_YACC="$ac_prog"
5209 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 break 2
5211 fi
5212 done
5213 done
5214 IFS=$as_save_IFS
5215
5216 fi
5217 fi
5218 YACC=$ac_cv_prog_YACC
5219 if test -n "$YACC"; then
5220 { $as_echo "$as_me:$LINENO: result: $YACC" >&5
5221 $as_echo "$YACC" >&6; }
5222 else
5223 { $as_echo "$as_me:$LINENO: result: no" >&5
5224 $as_echo "no" >&6; }
5225 fi
5226
5227
5228 test -n "$YACC" && break
5229 done
5230 test -n "$YACC" || YACC="yacc"
5231
5232 # Extract the first word of "$YACC", so it can be a program name with args.
5233 set dummy $YACC; ac_word=$2
5234 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5235 $as_echo_n "checking for $ac_word... " >&6; }
5236 if test "${ac_cv_prog_HAVE_YACC+set}" = set; then
5237 $as_echo_n "(cached) " >&6
5238 else
5239 if test -n "$HAVE_YACC"; then
5240 ac_cv_prog_HAVE_YACC="$HAVE_YACC" # Let the user override the test.
5241 else
5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 for as_dir in $PATH
5244 do
5245 IFS=$as_save_IFS
5246 test -z "$as_dir" && as_dir=.
5247 for ac_exec_ext in '' $ac_executable_extensions; do
5248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5249 ac_cv_prog_HAVE_YACC="yes"
5250 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5251 break 2
5252 fi
5253 done
5254 done
5255 IFS=$as_save_IFS
5256
5257 test -z "$ac_cv_prog_HAVE_YACC" && ac_cv_prog_HAVE_YACC="no"
5258 fi
5259 fi
5260 HAVE_YACC=$ac_cv_prog_HAVE_YACC
5261 if test -n "$HAVE_YACC"; then
5262 { $as_echo "$as_me:$LINENO: result: $HAVE_YACC" >&5
5263 $as_echo "$HAVE_YACC" >&6; }
5264 else
5265 { $as_echo "$as_me:$LINENO: result: no" >&5
5266 $as_echo "no" >&6; }
5267 fi
5268
5269
5270 if [ "$HAVE_YACC" = "no" ]; then
5271 { { $as_echo "$as_me:$LINENO: error: $YACC is not usable as yacc - consider using bison" >&5
5272 $as_echo "$as_me: error: $YACC is not usable as yacc - consider using bison" >&2;}
5273 { (exit 1); exit 1; }; }
5274 fi
5275
5276 # Make sure we can run config.sub.
5277 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5278 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5279 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5280 { (exit 1); exit 1; }; }
5281
5282 { $as_echo "$as_me:$LINENO: checking build system type" >&5
5283 $as_echo_n "checking build system type... " >&6; }
5284 if test "${ac_cv_build+set}" = set; then
5285 $as_echo_n "(cached) " >&6
5286 else
5287 ac_build_alias=$build_alias
5288 test "x$ac_build_alias" = x &&
5289 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5290 test "x$ac_build_alias" = x &&
5291 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5292 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5293 { (exit 1); exit 1; }; }
5294 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5295 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5296 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5297 { (exit 1); exit 1; }; }
5298
5299 fi
5300 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5301 $as_echo "$ac_cv_build" >&6; }
5302 case $ac_cv_build in
5303 *-*-*) ;;
5304 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5305 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
5306 { (exit 1); exit 1; }; };;
5307 esac
5308 build=$ac_cv_build
5309 ac_save_IFS=$IFS; IFS='-'
5310 set x $ac_cv_build
5311 shift
5312 build_cpu=$1
5313 build_vendor=$2
5314 shift; shift
5315 # Remember, the first character of IFS is used to create $*,
5316 # except with old shells:
5317 build_os=$*
5318 IFS=$ac_save_IFS
5319 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5320
5321
5322 { $as_echo "$as_me:$LINENO: checking host system type" >&5
5323 $as_echo_n "checking host system type... " >&6; }
5324 if test "${ac_cv_host+set}" = set; then
5325 $as_echo_n "(cached) " >&6
5326 else
5327 if test "x$host_alias" = x; then
5328 ac_cv_host=$ac_cv_build
5329 else
5330 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5331 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5332 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5333 { (exit 1); exit 1; }; }
5334 fi
5335
5336 fi
5337 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5338 $as_echo "$ac_cv_host" >&6; }
5339 case $ac_cv_host in
5340 *-*-*) ;;
5341 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5342 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
5343 { (exit 1); exit 1; }; };;
5344 esac
5345 host=$ac_cv_host
5346 ac_save_IFS=$IFS; IFS='-'
5347 set x $ac_cv_host
5348 shift
5349 host_cpu=$1
5350 host_vendor=$2
5351 shift; shift
5352 # Remember, the first character of IFS is used to create $*,
5353 # except with old shells:
5354 host_os=$*
5355 IFS=$ac_save_IFS
5356 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5357
5358
5359 enable_win32_dll=yes
5360
5361 case $host in
5362 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
5363 if test -n "$ac_tool_prefix"; then
5364 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5365 set dummy ${ac_tool_prefix}as; ac_word=$2
5366 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5367 $as_echo_n "checking for $ac_word... " >&6; }
5368 if test "${ac_cv_prog_AS+set}" = set; then
5369 $as_echo_n "(cached) " >&6
5370 else
5371 if test -n "$AS"; then
5372 ac_cv_prog_AS="$AS" # Let the user override the test.
5373 else
5374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375 for as_dir in $PATH
5376 do
5377 IFS=$as_save_IFS
5378 test -z "$as_dir" && as_dir=.
5379 for ac_exec_ext in '' $ac_executable_extensions; do
5380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5381 ac_cv_prog_AS="${ac_tool_prefix}as"
5382 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5383 break 2
5384 fi
5385 done
5386 done
5387 IFS=$as_save_IFS
5388
5389 fi
5390 fi
5391 AS=$ac_cv_prog_AS
5392 if test -n "$AS"; then
5393 { $as_echo "$as_me:$LINENO: result: $AS" >&5
5394 $as_echo "$AS" >&6; }
5395 else
5396 { $as_echo "$as_me:$LINENO: result: no" >&5
5397 $as_echo "no" >&6; }
5398 fi
5399
5400
5401 fi
5402 if test -z "$ac_cv_prog_AS"; then
5403 ac_ct_AS=$AS
5404 # Extract the first word of "as", so it can be a program name with args.
5405 set dummy as; ac_word=$2
5406 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5407 $as_echo_n "checking for $ac_word... " >&6; }
5408 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5409 $as_echo_n "(cached) " >&6
5410 else
5411 if test -n "$ac_ct_AS"; then
5412 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5413 else
5414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415 for as_dir in $PATH
5416 do
5417 IFS=$as_save_IFS
5418 test -z "$as_dir" && as_dir=.
5419 for ac_exec_ext in '' $ac_executable_extensions; do
5420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5421 ac_cv_prog_ac_ct_AS="as"
5422 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5423 break 2
5424 fi
5425 done
5426 done
5427 IFS=$as_save_IFS
5428
5429 fi
5430 fi
5431 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5432 if test -n "$ac_ct_AS"; then
5433 { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5434 $as_echo "$ac_ct_AS" >&6; }
5435 else
5436 { $as_echo "$as_me:$LINENO: result: no" >&5
5437 $as_echo "no" >&6; }
5438 fi
5439
5440 if test "x$ac_ct_AS" = x; then
5441 AS="false"
5442 else
5443 case $cross_compiling:$ac_tool_warned in
5444 yes:)
5445 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5447 ac_tool_warned=yes ;;
5448 esac
5449 AS=$ac_ct_AS
5450 fi
5451 else
5452 AS="$ac_cv_prog_AS"
5453 fi
5454
5455 if test -n "$ac_tool_prefix"; then
5456 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5457 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5458 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5459 $as_echo_n "checking for $ac_word... " >&6; }
5460 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5461 $as_echo_n "(cached) " >&6
5462 else
5463 if test -n "$DLLTOOL"; then
5464 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5465 else
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 for as_dir in $PATH
5468 do
5469 IFS=$as_save_IFS
5470 test -z "$as_dir" && as_dir=.
5471 for ac_exec_ext in '' $ac_executable_extensions; do
5472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5473 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5474 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5475 break 2
5476 fi
5477 done
5478 done
5479 IFS=$as_save_IFS
5480
5481 fi
5482 fi
5483 DLLTOOL=$ac_cv_prog_DLLTOOL
5484 if test -n "$DLLTOOL"; then
5485 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5486 $as_echo "$DLLTOOL" >&6; }
5487 else
5488 { $as_echo "$as_me:$LINENO: result: no" >&5
5489 $as_echo "no" >&6; }
5490 fi
5491
5492
5493 fi
5494 if test -z "$ac_cv_prog_DLLTOOL"; then
5495 ac_ct_DLLTOOL=$DLLTOOL
5496 # Extract the first word of "dlltool", so it can be a program name with args.
5497 set dummy dlltool; ac_word=$2
5498 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5499 $as_echo_n "checking for $ac_word... " >&6; }
5500 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5501 $as_echo_n "(cached) " >&6
5502 else
5503 if test -n "$ac_ct_DLLTOOL"; then
5504 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5505 else
5506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 for as_dir in $PATH
5508 do
5509 IFS=$as_save_IFS
5510 test -z "$as_dir" && as_dir=.
5511 for ac_exec_ext in '' $ac_executable_extensions; do
5512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5513 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5514 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5515 break 2
5516 fi
5517 done
5518 done
5519 IFS=$as_save_IFS
5520
5521 fi
5522 fi
5523 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5524 if test -n "$ac_ct_DLLTOOL"; then
5525 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5526 $as_echo "$ac_ct_DLLTOOL" >&6; }
5527 else
5528 { $as_echo "$as_me:$LINENO: result: no" >&5
5529 $as_echo "no" >&6; }
5530 fi
5531
5532 if test "x$ac_ct_DLLTOOL" = x; then
5533 DLLTOOL="false"
5534 else
5535 case $cross_compiling:$ac_tool_warned in
5536 yes:)
5537 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5539 ac_tool_warned=yes ;;
5540 esac
5541 DLLTOOL=$ac_ct_DLLTOOL
5542 fi
5543 else
5544 DLLTOOL="$ac_cv_prog_DLLTOOL"
5545 fi
5546
5547 if test -n "$ac_tool_prefix"; then
5548 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5549 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5550 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5551 $as_echo_n "checking for $ac_word... " >&6; }
5552 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5553 $as_echo_n "(cached) " >&6
5554 else
5555 if test -n "$OBJDUMP"; then
5556 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5557 else
5558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559 for as_dir in $PATH
5560 do
5561 IFS=$as_save_IFS
5562 test -z "$as_dir" && as_dir=.
5563 for ac_exec_ext in '' $ac_executable_extensions; do
5564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5565 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5566 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5567 break 2
5568 fi
5569 done
5570 done
5571 IFS=$as_save_IFS
5572
5573 fi
5574 fi
5575 OBJDUMP=$ac_cv_prog_OBJDUMP
5576 if test -n "$OBJDUMP"; then
5577 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5578 $as_echo "$OBJDUMP" >&6; }
5579 else
5580 { $as_echo "$as_me:$LINENO: result: no" >&5
5581 $as_echo "no" >&6; }
5582 fi
5583
5584
5585 fi
5586 if test -z "$ac_cv_prog_OBJDUMP"; then
5587 ac_ct_OBJDUMP=$OBJDUMP
5588 # Extract the first word of "objdump", so it can be a program name with args.
5589 set dummy objdump; ac_word=$2
5590 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5591 $as_echo_n "checking for $ac_word... " >&6; }
5592 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5593 $as_echo_n "(cached) " >&6
5594 else
5595 if test -n "$ac_ct_OBJDUMP"; then
5596 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5597 else
5598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599 for as_dir in $PATH
5600 do
5601 IFS=$as_save_IFS
5602 test -z "$as_dir" && as_dir=.
5603 for ac_exec_ext in '' $ac_executable_extensions; do
5604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5605 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5606 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5607 break 2
5608 fi
5609 done
5610 done
5611 IFS=$as_save_IFS
5612
5613 fi
5614 fi
5615 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5616 if test -n "$ac_ct_OBJDUMP"; then
5617 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5618 $as_echo "$ac_ct_OBJDUMP" >&6; }
5619 else
5620 { $as_echo "$as_me:$LINENO: result: no" >&5
5621 $as_echo "no" >&6; }
5622 fi
5623
5624 if test "x$ac_ct_OBJDUMP" = x; then
5625 OBJDUMP="false"
5626 else
5627 case $cross_compiling:$ac_tool_warned in
5628 yes:)
5629 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5631 ac_tool_warned=yes ;;
5632 esac
5633 OBJDUMP=$ac_ct_OBJDUMP
5634 fi
5635 else
5636 OBJDUMP="$ac_cv_prog_OBJDUMP"
5637 fi
5638
5639 ;;
5640 esac
5641
5642 test -z "$AS" && AS=as
5643
5644
5645
5646
5647
5648 test -z "$DLLTOOL" && DLLTOOL=dlltool
5649
5650
5651
5652
5653
5654 test -z "$OBJDUMP" && OBJDUMP=objdump
5655
5656
5657
5658
5659
5660
5661
5662 case `pwd` in
5663 *\ * | *\ *)
5664 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5665 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5666 esac
5667
5668
5669
5670 macro_version='2.2.6'
5671 macro_revision='1.3012'
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685 ltmain="$ac_aux_dir/ltmain.sh"
5686
5687 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5688 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5689 if test "${ac_cv_path_SED+set}" = set; then
5690 $as_echo_n "(cached) " >&6
5691 else
5692 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5693 for ac_i in 1 2 3 4 5 6 7; do
5694 ac_script="$ac_script$as_nl$ac_script"
5695 done
5696 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5697 $as_unset ac_script || ac_script=
5698 if test -z "$SED"; then
5699 ac_path_SED_found=false
5700 # Loop through the user's path and test for each of PROGNAME-LIST
5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 for as_dir in $PATH
5703 do
5704 IFS=$as_save_IFS
5705 test -z "$as_dir" && as_dir=.
5706 for ac_prog in sed gsed; do
5707 for ac_exec_ext in '' $ac_executable_extensions; do
5708 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5709 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5710 # Check for GNU ac_path_SED and select it if it is found.
5711 # Check for GNU $ac_path_SED
5712 case `"$ac_path_SED" --version 2>&1` in
5713 *GNU*)
5714 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5715 *)
5716 ac_count=0
5717 $as_echo_n 0123456789 >"conftest.in"
5718 while :
5719 do
5720 cat "conftest.in" "conftest.in" >"conftest.tmp"
5721 mv "conftest.tmp" "conftest.in"
5722 cp "conftest.in" "conftest.nl"
5723 $as_echo '' >> "conftest.nl"
5724 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5725 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5726 ac_count=`expr $ac_count + 1`
5727 if test $ac_count -gt ${ac_path_SED_max-0}; then
5728 # Best one so far, save it but keep looking for a better one
5729 ac_cv_path_SED="$ac_path_SED"
5730 ac_path_SED_max=$ac_count
5731 fi
5732 # 10*(2^10) chars as input seems more than enough
5733 test $ac_count -gt 10 && break
5734 done
5735 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5736 esac
5737
5738 $ac_path_SED_found && break 3
5739 done
5740 done
5741 done
5742 IFS=$as_save_IFS
5743 if test -z "$ac_cv_path_SED"; then
5744 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5745 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5746 { (exit 1); exit 1; }; }
5747 fi
5748 else
5749 ac_cv_path_SED=$SED
5750 fi
5751
5752 fi
5753 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5754 $as_echo "$ac_cv_path_SED" >&6; }
5755 SED="$ac_cv_path_SED"
5756 rm -f conftest.sed
5757
5758 test -z "$SED" && SED=sed
5759 Xsed="$SED -e 1s/^X//"
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5772 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5773 if test "${ac_cv_path_GREP+set}" = set; then
5774 $as_echo_n "(cached) " >&6
5775 else
5776 if test -z "$GREP"; then
5777 ac_path_GREP_found=false
5778 # Loop through the user's path and test for each of PROGNAME-LIST
5779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5781 do
5782 IFS=$as_save_IFS
5783 test -z "$as_dir" && as_dir=.
5784 for ac_prog in grep ggrep; do
5785 for ac_exec_ext in '' $ac_executable_extensions; do
5786 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5787 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5788 # Check for GNU ac_path_GREP and select it if it is found.
5789 # Check for GNU $ac_path_GREP
5790 case `"$ac_path_GREP" --version 2>&1` in
5791 *GNU*)
5792 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5793 *)
5794 ac_count=0
5795 $as_echo_n 0123456789 >"conftest.in"
5796 while :
5797 do
5798 cat "conftest.in" "conftest.in" >"conftest.tmp"
5799 mv "conftest.tmp" "conftest.in"
5800 cp "conftest.in" "conftest.nl"
5801 $as_echo 'GREP' >> "conftest.nl"
5802 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5803 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5804 ac_count=`expr $ac_count + 1`
5805 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5806 # Best one so far, save it but keep looking for a better one
5807 ac_cv_path_GREP="$ac_path_GREP"
5808 ac_path_GREP_max=$ac_count
5809 fi
5810 # 10*(2^10) chars as input seems more than enough
5811 test $ac_count -gt 10 && break
5812 done
5813 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5814 esac
5815
5816 $ac_path_GREP_found && break 3
5817 done
5818 done
5819 done
5820 IFS=$as_save_IFS
5821 if test -z "$ac_cv_path_GREP"; then
5822 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5823 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5824 { (exit 1); exit 1; }; }
5825 fi
5826 else
5827 ac_cv_path_GREP=$GREP
5828 fi
5829
5830 fi
5831 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5832 $as_echo "$ac_cv_path_GREP" >&6; }
5833 GREP="$ac_cv_path_GREP"
5834
5835
5836 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5837 $as_echo_n "checking for egrep... " >&6; }
5838 if test "${ac_cv_path_EGREP+set}" = set; then
5839 $as_echo_n "(cached) " >&6
5840 else
5841 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5842 then ac_cv_path_EGREP="$GREP -E"
5843 else
5844 if test -z "$EGREP"; then
5845 ac_path_EGREP_found=false
5846 # Loop through the user's path and test for each of PROGNAME-LIST
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5849 do
5850 IFS=$as_save_IFS
5851 test -z "$as_dir" && as_dir=.
5852 for ac_prog in egrep; do
5853 for ac_exec_ext in '' $ac_executable_extensions; do
5854 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5855 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5856 # Check for GNU ac_path_EGREP and select it if it is found.
5857 # Check for GNU $ac_path_EGREP
5858 case `"$ac_path_EGREP" --version 2>&1` in
5859 *GNU*)
5860 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5861 *)
5862 ac_count=0
5863 $as_echo_n 0123456789 >"conftest.in"
5864 while :
5865 do
5866 cat "conftest.in" "conftest.in" >"conftest.tmp"
5867 mv "conftest.tmp" "conftest.in"
5868 cp "conftest.in" "conftest.nl"
5869 $as_echo 'EGREP' >> "conftest.nl"
5870 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5871 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5872 ac_count=`expr $ac_count + 1`
5873 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5874 # Best one so far, save it but keep looking for a better one
5875 ac_cv_path_EGREP="$ac_path_EGREP"
5876 ac_path_EGREP_max=$ac_count
5877 fi
5878 # 10*(2^10) chars as input seems more than enough
5879 test $ac_count -gt 10 && break
5880 done
5881 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5882 esac
5883
5884 $ac_path_EGREP_found && break 3
5885 done
5886 done
5887 done
5888 IFS=$as_save_IFS
5889 if test -z "$ac_cv_path_EGREP"; then
5890 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5891 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5892 { (exit 1); exit 1; }; }
5893 fi
5894 else
5895 ac_cv_path_EGREP=$EGREP
5896 fi
5897
5898 fi
5899 fi
5900 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5901 $as_echo "$ac_cv_path_EGREP" >&6; }
5902 EGREP="$ac_cv_path_EGREP"
5903
5904
5905 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5906 $as_echo_n "checking for fgrep... " >&6; }
5907 if test "${ac_cv_path_FGREP+set}" = set; then
5908 $as_echo_n "(cached) " >&6
5909 else
5910 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5911 then ac_cv_path_FGREP="$GREP -F"
5912 else
5913 if test -z "$FGREP"; then
5914 ac_path_FGREP_found=false
5915 # Loop through the user's path and test for each of PROGNAME-LIST
5916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5918 do
5919 IFS=$as_save_IFS
5920 test -z "$as_dir" && as_dir=.
5921 for ac_prog in fgrep; do
5922 for ac_exec_ext in '' $ac_executable_extensions; do
5923 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5924 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5925 # Check for GNU ac_path_FGREP and select it if it is found.
5926 # Check for GNU $ac_path_FGREP
5927 case `"$ac_path_FGREP" --version 2>&1` in
5928 *GNU*)
5929 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5930 *)
5931 ac_count=0
5932 $as_echo_n 0123456789 >"conftest.in"
5933 while :
5934 do
5935 cat "conftest.in" "conftest.in" >"conftest.tmp"
5936 mv "conftest.tmp" "conftest.in"
5937 cp "conftest.in" "conftest.nl"
5938 $as_echo 'FGREP' >> "conftest.nl"
5939 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5940 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5941 ac_count=`expr $ac_count + 1`
5942 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5943 # Best one so far, save it but keep looking for a better one
5944 ac_cv_path_FGREP="$ac_path_FGREP"
5945 ac_path_FGREP_max=$ac_count
5946 fi
5947 # 10*(2^10) chars as input seems more than enough
5948 test $ac_count -gt 10 && break
5949 done
5950 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5951 esac
5952
5953 $ac_path_FGREP_found && break 3
5954 done
5955 done
5956 done
5957 IFS=$as_save_IFS
5958 if test -z "$ac_cv_path_FGREP"; then
5959 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5960 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5961 { (exit 1); exit 1; }; }
5962 fi
5963 else
5964 ac_cv_path_FGREP=$FGREP
5965 fi
5966
5967 fi
5968 fi
5969 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5970 $as_echo "$ac_cv_path_FGREP" >&6; }
5971 FGREP="$ac_cv_path_FGREP"
5972
5973
5974 test -z "$GREP" && GREP=grep
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994 # Check whether --with-gnu-ld was given.
5995 if test "${with_gnu_ld+set}" = set; then
5996 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5997 else
5998 with_gnu_ld=no
5999 fi
6000
6001 ac_prog=ld
6002 if test "$GCC" = yes; then
6003 # Check if gcc -print-prog-name=ld gives a path.
6004 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6005 $as_echo_n "checking for ld used by $CC... " >&6; }
6006 case $host in
6007 *-*-mingw*)
6008 # gcc leaves a trailing carriage return which upsets mingw
6009 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6010 *)
6011 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6012 esac
6013 case $ac_prog in
6014 # Accept absolute paths.
6015 [\\/]* | ?:[\\/]*)
6016 re_direlt='/[^/][^/]*/\.\./'
6017 # Canonicalize the pathname of ld
6018 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6019 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6020 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6021 done
6022 test -z "$LD" && LD="$ac_prog"
6023 ;;
6024 "")
6025 # If it fails, then pretend we aren't using GCC.
6026 ac_prog=ld
6027 ;;
6028 *)
6029 # If it is relative, then search for the first ld in PATH.
6030 with_gnu_ld=unknown
6031 ;;
6032 esac
6033 elif test "$with_gnu_ld" = yes; then
6034 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6035 $as_echo_n "checking for GNU ld... " >&6; }
6036 else
6037 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6038 $as_echo_n "checking for non-GNU ld... " >&6; }
6039 fi
6040 if test "${lt_cv_path_LD+set}" = set; then
6041 $as_echo_n "(cached) " >&6
6042 else
6043 if test -z "$LD"; then
6044 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6045 for ac_dir in $PATH; do
6046 IFS="$lt_save_ifs"
6047 test -z "$ac_dir" && ac_dir=.
6048 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6049 lt_cv_path_LD="$ac_dir/$ac_prog"
6050 # Check to see if the program is GNU ld. I'd rather use --version,
6051 # but apparently some variants of GNU ld only accept -v.
6052 # Break only if it was the GNU/non-GNU ld that we prefer.
6053 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6054 *GNU* | *'with BFD'*)
6055 test "$with_gnu_ld" != no && break
6056 ;;
6057 *)
6058 test "$with_gnu_ld" != yes && break
6059 ;;
6060 esac
6061 fi
6062 done
6063 IFS="$lt_save_ifs"
6064 else
6065 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6066 fi
6067 fi
6068
6069 LD="$lt_cv_path_LD"
6070 if test -n "$LD"; then
6071 { $as_echo "$as_me:$LINENO: result: $LD" >&5
6072 $as_echo "$LD" >&6; }
6073 else
6074 { $as_echo "$as_me:$LINENO: result: no" >&5
6075 $as_echo "no" >&6; }
6076 fi
6077 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6078 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6079 { (exit 1); exit 1; }; }
6080 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6081 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6082 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6083 $as_echo_n "(cached) " >&6
6084 else
6085 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6086 case `$LD -v 2>&1 </dev/null` in
6087 *GNU* | *'with BFD'*)
6088 lt_cv_prog_gnu_ld=yes
6089 ;;
6090 *)
6091 lt_cv_prog_gnu_ld=no
6092 ;;
6093 esac
6094 fi
6095 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6096 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6097 with_gnu_ld=$lt_cv_prog_gnu_ld
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
6108 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6109 if test "${lt_cv_path_NM+set}" = set; then
6110 $as_echo_n "(cached) " >&6
6111 else
6112 if test -n "$NM"; then
6113 # Let the user override the test.
6114 lt_cv_path_NM="$NM"
6115 else
6116 lt_nm_to_check="${ac_tool_prefix}nm"
6117 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6118 lt_nm_to_check="$lt_nm_to_check nm"
6119 fi
6120 for lt_tmp_nm in $lt_nm_to_check; do
6121 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6122 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6123 IFS="$lt_save_ifs"
6124 test -z "$ac_dir" && ac_dir=.
6125 tmp_nm="$ac_dir/$lt_tmp_nm"
6126 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6127 # Check to see if the nm accepts a BSD-compat flag.
6128 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6129 # nm: unknown option "B" ignored
6130 # Tru64's nm complains that /dev/null is an invalid object file
6131 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6132 */dev/null* | *'Invalid file or object type'*)
6133 lt_cv_path_NM="$tmp_nm -B"
6134 break
6135 ;;
6136 *)
6137 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6138 */dev/null*)
6139 lt_cv_path_NM="$tmp_nm -p"
6140 break
6141 ;;
6142 *)
6143 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6144 continue # so that we can try to find one that supports BSD flags
6145 ;;
6146 esac
6147 ;;
6148 esac
6149 fi
6150 done
6151 IFS="$lt_save_ifs"
6152 done
6153 : ${lt_cv_path_NM=no}
6154 fi
6155 fi
6156 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6157 $as_echo "$lt_cv_path_NM" >&6; }
6158 if test "$lt_cv_path_NM" != "no"; then
6159 NM="$lt_cv_path_NM"
6160 else
6161 # Didn't find any BSD compatible name lister, look for dumpbin.
6162 if test -n "$ac_tool_prefix"; then
6163 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6164 do
6165 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6166 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6167 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6168 $as_echo_n "checking for $ac_word... " >&6; }
6169 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
6170 $as_echo_n "(cached) " >&6
6171 else
6172 if test -n "$DUMPBIN"; then
6173 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6174 else
6175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176 for as_dir in $PATH
6177 do
6178 IFS=$as_save_IFS
6179 test -z "$as_dir" && as_dir=.
6180 for ac_exec_ext in '' $ac_executable_extensions; do
6181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6182 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6183 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6184 break 2
6185 fi
6186 done
6187 done
6188 IFS=$as_save_IFS
6189
6190 fi
6191 fi
6192 DUMPBIN=$ac_cv_prog_DUMPBIN
6193 if test -n "$DUMPBIN"; then
6194 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
6195 $as_echo "$DUMPBIN" >&6; }
6196 else
6197 { $as_echo "$as_me:$LINENO: result: no" >&5
6198 $as_echo "no" >&6; }
6199 fi
6200
6201
6202 test -n "$DUMPBIN" && break
6203 done
6204 fi
6205 if test -z "$DUMPBIN"; then
6206 ac_ct_DUMPBIN=$DUMPBIN
6207 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6208 do
6209 # Extract the first word of "$ac_prog", so it can be a program name with args.
6210 set dummy $ac_prog; ac_word=$2
6211 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6212 $as_echo_n "checking for $ac_word... " >&6; }
6213 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
6214 $as_echo_n "(cached) " >&6
6215 else
6216 if test -n "$ac_ct_DUMPBIN"; then
6217 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6218 else
6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 for as_dir in $PATH
6221 do
6222 IFS=$as_save_IFS
6223 test -z "$as_dir" && as_dir=.
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6226 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6227 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6228 break 2
6229 fi
6230 done
6231 done
6232 IFS=$as_save_IFS
6233
6234 fi
6235 fi
6236 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6237 if test -n "$ac_ct_DUMPBIN"; then
6238 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
6239 $as_echo "$ac_ct_DUMPBIN" >&6; }
6240 else
6241 { $as_echo "$as_me:$LINENO: result: no" >&5
6242 $as_echo "no" >&6; }
6243 fi
6244
6245
6246 test -n "$ac_ct_DUMPBIN" && break
6247 done
6248
6249 if test "x$ac_ct_DUMPBIN" = x; then
6250 DUMPBIN=":"
6251 else
6252 case $cross_compiling:$ac_tool_warned in
6253 yes:)
6254 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6256 ac_tool_warned=yes ;;
6257 esac
6258 DUMPBIN=$ac_ct_DUMPBIN
6259 fi
6260 fi
6261
6262
6263 if test "$DUMPBIN" != ":"; then
6264 NM="$DUMPBIN"
6265 fi
6266 fi
6267 test -z "$NM" && NM=nm
6268
6269
6270
6271
6272
6273
6274 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6275 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6276 if test "${lt_cv_nm_interface+set}" = set; then
6277 $as_echo_n "(cached) " >&6
6278 else
6279 lt_cv_nm_interface="BSD nm"
6280 echo "int some_variable = 0;" > conftest.$ac_ext
6281 (eval echo "\"\$as_me:6281: $ac_compile\"" >&5)
6282 (eval "$ac_compile" 2>conftest.err)
6283 cat conftest.err >&5
6284 (eval echo "\"\$as_me:6284: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6285 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6286 cat conftest.err >&5
6287 (eval echo "\"\$as_me:6287: output\"" >&5)
6288 cat conftest.out >&5
6289 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6290 lt_cv_nm_interface="MS dumpbin"
6291 fi
6292 rm -f conftest*
6293 fi
6294 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6295 $as_echo "$lt_cv_nm_interface" >&6; }
6296
6297 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6298 $as_echo_n "checking whether ln -s works... " >&6; }
6299 LN_S=$as_ln_s
6300 if test "$LN_S" = "ln -s"; then
6301 { $as_echo "$as_me:$LINENO: result: yes" >&5
6302 $as_echo "yes" >&6; }
6303 else
6304 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6305 $as_echo "no, using $LN_S" >&6; }
6306 fi
6307
6308 # find the maximum length of command line arguments
6309 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6310 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6311 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6312 $as_echo_n "(cached) " >&6
6313 else
6314 i=0
6315 teststring="ABCD"
6316
6317 case $build_os in
6318 msdosdjgpp*)
6319 # On DJGPP, this test can blow up pretty badly due to problems in libc
6320 # (any single argument exceeding 2000 bytes causes a buffer overrun
6321 # during glob expansion). Even if it were fixed, the result of this
6322 # check would be larger than it should be.
6323 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6324 ;;
6325
6326 gnu*)
6327 # Under GNU Hurd, this test is not required because there is
6328 # no limit to the length of command line arguments.
6329 # Libtool will interpret -1 as no limit whatsoever
6330 lt_cv_sys_max_cmd_len=-1;
6331 ;;
6332
6333 cygwin* | mingw* | cegcc*)
6334 # On Win9x/ME, this test blows up -- it succeeds, but takes
6335 # about 5 minutes as the teststring grows exponentially.
6336 # Worse, since 9x/ME are not pre-emptively multitasking,
6337 # you end up with a "frozen" computer, even though with patience
6338 # the test eventually succeeds (with a max line length of 256k).
6339 # Instead, let's just punt: use the minimum linelength reported by
6340 # all of the supported platforms: 8192 (on NT/2K/XP).
6341 lt_cv_sys_max_cmd_len=8192;
6342 ;;
6343
6344 amigaos*)
6345 # On AmigaOS with pdksh, this test takes hours, literally.
6346 # So we just punt and use a minimum line length of 8192.
6347 lt_cv_sys_max_cmd_len=8192;
6348 ;;
6349
6350 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6351 # This has been around since 386BSD, at least. Likely further.
6352 if test -x /sbin/sysctl; then
6353 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6354 elif test -x /usr/sbin/sysctl; then
6355 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6356 else
6357 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6358 fi
6359 # And add a safety zone
6360 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6361 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6362 ;;
6363
6364 interix*)
6365 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6366 lt_cv_sys_max_cmd_len=196608
6367 ;;
6368
6369 osf*)
6370 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6371 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6372 # nice to cause kernel panics so lets avoid the loop below.
6373 # First set a reasonable default.
6374 lt_cv_sys_max_cmd_len=16384
6375 #
6376 if test -x /sbin/sysconfig; then
6377 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6378 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6379 esac
6380 fi
6381 ;;
6382 sco3.2v5*)
6383 lt_cv_sys_max_cmd_len=102400
6384 ;;
6385 sysv5* | sco5v6* | sysv4.2uw2*)
6386 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6387 if test -n "$kargmax"; then
6388 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6389 else
6390 lt_cv_sys_max_cmd_len=32768
6391 fi
6392 ;;
6393 *)
6394 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6395 if test -n "$lt_cv_sys_max_cmd_len"; then
6396 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6397 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6398 else
6399 # Make teststring a little bigger before we do anything with it.
6400 # a 1K string should be a reasonable start.
6401 for i in 1 2 3 4 5 6 7 8 ; do
6402 teststring=$teststring$teststring
6403 done
6404 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6405 # If test is not a shell built-in, we'll probably end up computing a
6406 # maximum length that is only half of the actual maximum length, but
6407 # we can't tell.
6408 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6409 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6410 test $i != 17 # 1/2 MB should be enough
6411 do
6412 i=`expr $i + 1`
6413 teststring=$teststring$teststring
6414 done
6415 # Only check the string length outside the loop.
6416 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6417 teststring=
6418 # Add a significant safety factor because C++ compilers can tack on
6419 # massive amounts of additional arguments before passing them to the
6420 # linker. It appears as though 1/2 is a usable value.
6421 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6422 fi
6423 ;;
6424 esac
6425
6426 fi
6427
6428 if test -n $lt_cv_sys_max_cmd_len ; then
6429 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6430 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6431 else
6432 { $as_echo "$as_me:$LINENO: result: none" >&5
6433 $as_echo "none" >&6; }
6434 fi
6435 max_cmd_len=$lt_cv_sys_max_cmd_len
6436
6437
6438
6439
6440
6441
6442 : ${CP="cp -f"}
6443 : ${MV="mv -f"}
6444 : ${RM="rm -f"}
6445
6446 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6447 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6448 # Try some XSI features
6449 xsi_shell=no
6450 ( _lt_dummy="a/b/c"
6451 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6452 = c,a/b,, \
6453 && eval 'test $(( 1 + 1 )) -eq 2 \
6454 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6455 && xsi_shell=yes
6456 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6457 $as_echo "$xsi_shell" >&6; }
6458
6459
6460 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6461 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6462 lt_shell_append=no
6463 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6464 >/dev/null 2>&1 \
6465 && lt_shell_append=yes
6466 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6467 $as_echo "$lt_shell_append" >&6; }
6468
6469
6470 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6471 lt_unset=unset
6472 else
6473 lt_unset=false
6474 fi
6475
6476
6477
6478
6479
6480 # test EBCDIC or ASCII
6481 case `echo X|tr X '\101'` in
6482 A) # ASCII based system
6483 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6484 lt_SP2NL='tr \040 \012'
6485 lt_NL2SP='tr \015\012 \040\040'
6486 ;;
6487 *) # EBCDIC based system
6488 lt_SP2NL='tr \100 \n'
6489 lt_NL2SP='tr \r\n \100\100'
6490 ;;
6491 esac
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6502 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6503 if test "${lt_cv_ld_reload_flag+set}" = set; then
6504 $as_echo_n "(cached) " >&6
6505 else
6506 lt_cv_ld_reload_flag='-r'
6507 fi
6508 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6509 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6510 reload_flag=$lt_cv_ld_reload_flag
6511 case $reload_flag in
6512 "" | " "*) ;;
6513 *) reload_flag=" $reload_flag" ;;
6514 esac
6515 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6516 case $host_os in
6517 darwin*)
6518 if test "$GCC" = yes; then
6519 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6520 else
6521 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6522 fi
6523 ;;
6524 esac
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534 if test -n "$ac_tool_prefix"; then
6535 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6536 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6537 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6538 $as_echo_n "checking for $ac_word... " >&6; }
6539 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6540 $as_echo_n "(cached) " >&6
6541 else
6542 if test -n "$OBJDUMP"; then
6543 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6544 else
6545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546 for as_dir in $PATH
6547 do
6548 IFS=$as_save_IFS
6549 test -z "$as_dir" && as_dir=.
6550 for ac_exec_ext in '' $ac_executable_extensions; do
6551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6552 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6553 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6554 break 2
6555 fi
6556 done
6557 done
6558 IFS=$as_save_IFS
6559
6560 fi
6561 fi
6562 OBJDUMP=$ac_cv_prog_OBJDUMP
6563 if test -n "$OBJDUMP"; then
6564 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6565 $as_echo "$OBJDUMP" >&6; }
6566 else
6567 { $as_echo "$as_me:$LINENO: result: no" >&5
6568 $as_echo "no" >&6; }
6569 fi
6570
6571
6572 fi
6573 if test -z "$ac_cv_prog_OBJDUMP"; then
6574 ac_ct_OBJDUMP=$OBJDUMP
6575 # Extract the first word of "objdump", so it can be a program name with args.
6576 set dummy objdump; ac_word=$2
6577 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6578 $as_echo_n "checking for $ac_word... " >&6; }
6579 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6580 $as_echo_n "(cached) " >&6
6581 else
6582 if test -n "$ac_ct_OBJDUMP"; then
6583 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6584 else
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586 for as_dir in $PATH
6587 do
6588 IFS=$as_save_IFS
6589 test -z "$as_dir" && as_dir=.
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6592 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6593 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6594 break 2
6595 fi
6596 done
6597 done
6598 IFS=$as_save_IFS
6599
6600 fi
6601 fi
6602 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6603 if test -n "$ac_ct_OBJDUMP"; then
6604 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6605 $as_echo "$ac_ct_OBJDUMP" >&6; }
6606 else
6607 { $as_echo "$as_me:$LINENO: result: no" >&5
6608 $as_echo "no" >&6; }
6609 fi
6610
6611 if test "x$ac_ct_OBJDUMP" = x; then
6612 OBJDUMP="false"
6613 else
6614 case $cross_compiling:$ac_tool_warned in
6615 yes:)
6616 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6618 ac_tool_warned=yes ;;
6619 esac
6620 OBJDUMP=$ac_ct_OBJDUMP
6621 fi
6622 else
6623 OBJDUMP="$ac_cv_prog_OBJDUMP"
6624 fi
6625
6626 test -z "$OBJDUMP" && OBJDUMP=objdump
6627
6628
6629
6630
6631
6632
6633 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6634 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6635 if test "${lt_cv_deplibs_check_method+set}" = set; then
6636 $as_echo_n "(cached) " >&6
6637 else
6638 lt_cv_file_magic_cmd='$MAGIC_CMD'
6639 lt_cv_file_magic_test_file=
6640 lt_cv_deplibs_check_method='unknown'
6641 # Need to set the preceding variable on all platforms that support
6642 # interlibrary dependencies.
6643 # 'none' -- dependencies not supported.
6644 # `unknown' -- same as none, but documents that we really don't know.
6645 # 'pass_all' -- all dependencies passed with no checks.
6646 # 'test_compile' -- check by making test program.
6647 # 'file_magic [[regex]]' -- check by looking for files in library path
6648 # which responds to the $file_magic_cmd with a given extended regex.
6649 # If you have `file' or equivalent on your system and you're not sure
6650 # whether `pass_all' will *always* work, you probably want this one.
6651
6652 case $host_os in
6653 aix[4-9]*)
6654 lt_cv_deplibs_check_method=pass_all
6655 ;;
6656
6657 beos*)
6658 lt_cv_deplibs_check_method=pass_all
6659 ;;
6660
6661 bsdi[45]*)
6662 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6663 lt_cv_file_magic_cmd='/usr/bin/file -L'
6664 lt_cv_file_magic_test_file=/shlib/libc.so
6665 ;;
6666
6667 cygwin*)
6668 # func_win32_libid is a shell function defined in ltmain.sh
6669 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6670 lt_cv_file_magic_cmd='func_win32_libid'
6671 ;;
6672
6673 mingw* | pw32*)
6674 # Base MSYS/MinGW do not provide the 'file' command needed by
6675 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6676 # unless we find 'file', for example because we are cross-compiling.
6677 if ( file / ) >/dev/null 2>&1; then
6678 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6679 lt_cv_file_magic_cmd='func_win32_libid'
6680 else
6681 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6682 lt_cv_file_magic_cmd='$OBJDUMP -f'
6683 fi
6684 ;;
6685
6686 cegcc)
6687 # use the weaker test based on 'objdump'. See mingw*.
6688 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6689 lt_cv_file_magic_cmd='$OBJDUMP -f'
6690 ;;
6691
6692 darwin* | rhapsody*)
6693 lt_cv_deplibs_check_method=pass_all
6694 ;;
6695
6696 freebsd* | dragonfly*)
6697 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6698 case $host_cpu in
6699 i*86 )
6700 # Not sure whether the presence of OpenBSD here was a mistake.
6701 # Let's accept both of them until this is cleared up.
6702 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6703 lt_cv_file_magic_cmd=/usr/bin/file
6704 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6705 ;;
6706 esac
6707 else
6708 lt_cv_deplibs_check_method=pass_all
6709 fi
6710 ;;
6711
6712 gnu*)
6713 lt_cv_deplibs_check_method=pass_all
6714 ;;
6715
6716 hpux10.20* | hpux11*)
6717 lt_cv_file_magic_cmd=/usr/bin/file
6718 case $host_cpu in
6719 ia64*)
6720 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6721 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6722 ;;
6723 hppa*64*)
6724 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]'
6725 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6726 ;;
6727 *)
6728 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6729 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6730 ;;
6731 esac
6732 ;;
6733
6734 interix[3-9]*)
6735 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6736 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6737 ;;
6738
6739 irix5* | irix6* | nonstopux*)
6740 case $LD in
6741 *-32|*"-32 ") libmagic=32-bit;;
6742 *-n32|*"-n32 ") libmagic=N32;;
6743 *-64|*"-64 ") libmagic=64-bit;;
6744 *) libmagic=never-match;;
6745 esac
6746 lt_cv_deplibs_check_method=pass_all
6747 ;;
6748
6749 # This must be Linux ELF.
6750 linux* | k*bsd*-gnu)
6751 lt_cv_deplibs_check_method=pass_all
6752 ;;
6753
6754 netbsd*)
6755 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6756 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6757 else
6758 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6759 fi
6760 ;;
6761
6762 newos6*)
6763 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6764 lt_cv_file_magic_cmd=/usr/bin/file
6765 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6766 ;;
6767
6768 *nto* | *qnx*)
6769 lt_cv_deplibs_check_method=pass_all
6770 ;;
6771
6772 openbsd*)
6773 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6774 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6775 else
6776 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6777 fi
6778 ;;
6779
6780 osf3* | osf4* | osf5*)
6781 lt_cv_deplibs_check_method=pass_all
6782 ;;
6783
6784 rdos*)
6785 lt_cv_deplibs_check_method=pass_all
6786 ;;
6787
6788 solaris*)
6789 lt_cv_deplibs_check_method=pass_all
6790 ;;
6791
6792 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6793 lt_cv_deplibs_check_method=pass_all
6794 ;;
6795
6796 sysv4 | sysv4.3*)
6797 case $host_vendor in
6798 motorola)
6799 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]'
6800 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6801 ;;
6802 ncr)
6803 lt_cv_deplibs_check_method=pass_all
6804 ;;
6805 sequent)
6806 lt_cv_file_magic_cmd='/bin/file'
6807 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6808 ;;
6809 sni)
6810 lt_cv_file_magic_cmd='/bin/file'
6811 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6812 lt_cv_file_magic_test_file=/lib/libc.so
6813 ;;
6814 siemens)
6815 lt_cv_deplibs_check_method=pass_all
6816 ;;
6817 pc)
6818 lt_cv_deplibs_check_method=pass_all
6819 ;;
6820 esac
6821 ;;
6822
6823 tpf*)
6824 lt_cv_deplibs_check_method=pass_all
6825 ;;
6826 esac
6827
6828 fi
6829 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6830 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6831 file_magic_cmd=$lt_cv_file_magic_cmd
6832 deplibs_check_method=$lt_cv_deplibs_check_method
6833 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846 if test -n "$ac_tool_prefix"; then
6847 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6848 set dummy ${ac_tool_prefix}ar; ac_word=$2
6849 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6850 $as_echo_n "checking for $ac_word... " >&6; }
6851 if test "${ac_cv_prog_AR+set}" = set; then
6852 $as_echo_n "(cached) " >&6
6853 else
6854 if test -n "$AR"; then
6855 ac_cv_prog_AR="$AR" # Let the user override the test.
6856 else
6857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858 for as_dir in $PATH
6859 do
6860 IFS=$as_save_IFS
6861 test -z "$as_dir" && as_dir=.
6862 for ac_exec_ext in '' $ac_executable_extensions; do
6863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6864 ac_cv_prog_AR="${ac_tool_prefix}ar"
6865 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6866 break 2
6867 fi
6868 done
6869 done
6870 IFS=$as_save_IFS
6871
6872 fi
6873 fi
6874 AR=$ac_cv_prog_AR
6875 if test -n "$AR"; then
6876 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6877 $as_echo "$AR" >&6; }
6878 else
6879 { $as_echo "$as_me:$LINENO: result: no" >&5
6880 $as_echo "no" >&6; }
6881 fi
6882
6883
6884 fi
6885 if test -z "$ac_cv_prog_AR"; then
6886 ac_ct_AR=$AR
6887 # Extract the first word of "ar", so it can be a program name with args.
6888 set dummy ar; ac_word=$2
6889 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6890 $as_echo_n "checking for $ac_word... " >&6; }
6891 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6892 $as_echo_n "(cached) " >&6
6893 else
6894 if test -n "$ac_ct_AR"; then
6895 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6896 else
6897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898 for as_dir in $PATH
6899 do
6900 IFS=$as_save_IFS
6901 test -z "$as_dir" && as_dir=.
6902 for ac_exec_ext in '' $ac_executable_extensions; do
6903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6904 ac_cv_prog_ac_ct_AR="ar"
6905 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6906 break 2
6907 fi
6908 done
6909 done
6910 IFS=$as_save_IFS
6911
6912 fi
6913 fi
6914 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6915 if test -n "$ac_ct_AR"; then
6916 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6917 $as_echo "$ac_ct_AR" >&6; }
6918 else
6919 { $as_echo "$as_me:$LINENO: result: no" >&5
6920 $as_echo "no" >&6; }
6921 fi
6922
6923 if test "x$ac_ct_AR" = x; then
6924 AR="false"
6925 else
6926 case $cross_compiling:$ac_tool_warned in
6927 yes:)
6928 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6929 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6930 ac_tool_warned=yes ;;
6931 esac
6932 AR=$ac_ct_AR
6933 fi
6934 else
6935 AR="$ac_cv_prog_AR"
6936 fi
6937
6938 test -z "$AR" && AR=ar
6939 test -z "$AR_FLAGS" && AR_FLAGS=cru
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951 if test -n "$ac_tool_prefix"; then
6952 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6953 set dummy ${ac_tool_prefix}strip; ac_word=$2
6954 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6955 $as_echo_n "checking for $ac_word... " >&6; }
6956 if test "${ac_cv_prog_STRIP+set}" = set; then
6957 $as_echo_n "(cached) " >&6
6958 else
6959 if test -n "$STRIP"; then
6960 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6961 else
6962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963 for as_dir in $PATH
6964 do
6965 IFS=$as_save_IFS
6966 test -z "$as_dir" && as_dir=.
6967 for ac_exec_ext in '' $ac_executable_extensions; do
6968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6969 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6970 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6971 break 2
6972 fi
6973 done
6974 done
6975 IFS=$as_save_IFS
6976
6977 fi
6978 fi
6979 STRIP=$ac_cv_prog_STRIP
6980 if test -n "$STRIP"; then
6981 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6982 $as_echo "$STRIP" >&6; }
6983 else
6984 { $as_echo "$as_me:$LINENO: result: no" >&5
6985 $as_echo "no" >&6; }
6986 fi
6987
6988
6989 fi
6990 if test -z "$ac_cv_prog_STRIP"; then
6991 ac_ct_STRIP=$STRIP
6992 # Extract the first word of "strip", so it can be a program name with args.
6993 set dummy strip; ac_word=$2
6994 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6995 $as_echo_n "checking for $ac_word... " >&6; }
6996 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6997 $as_echo_n "(cached) " >&6
6998 else
6999 if test -n "$ac_ct_STRIP"; then
7000 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7001 else
7002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003 for as_dir in $PATH
7004 do
7005 IFS=$as_save_IFS
7006 test -z "$as_dir" && as_dir=.
7007 for ac_exec_ext in '' $ac_executable_extensions; do
7008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7009 ac_cv_prog_ac_ct_STRIP="strip"
7010 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7011 break 2
7012 fi
7013 done
7014 done
7015 IFS=$as_save_IFS
7016
7017 fi
7018 fi
7019 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7020 if test -n "$ac_ct_STRIP"; then
7021 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7022 $as_echo "$ac_ct_STRIP" >&6; }
7023 else
7024 { $as_echo "$as_me:$LINENO: result: no" >&5
7025 $as_echo "no" >&6; }
7026 fi
7027
7028 if test "x$ac_ct_STRIP" = x; then
7029 STRIP=":"
7030 else
7031 case $cross_compiling:$ac_tool_warned in
7032 yes:)
7033 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7035 ac_tool_warned=yes ;;
7036 esac
7037 STRIP=$ac_ct_STRIP
7038 fi
7039 else
7040 STRIP="$ac_cv_prog_STRIP"
7041 fi
7042
7043 test -z "$STRIP" && STRIP=:
7044
7045
7046
7047
7048
7049
7050 if test -n "$ac_tool_prefix"; then
7051 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7052 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7053 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7054 $as_echo_n "checking for $ac_word... " >&6; }
7055 if test "${ac_cv_prog_RANLIB+set}" = set; then
7056 $as_echo_n "(cached) " >&6
7057 else
7058 if test -n "$RANLIB"; then
7059 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7060 else
7061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062 for as_dir in $PATH
7063 do
7064 IFS=$as_save_IFS
7065 test -z "$as_dir" && as_dir=.
7066 for ac_exec_ext in '' $ac_executable_extensions; do
7067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7068 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7069 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7070 break 2
7071 fi
7072 done
7073 done
7074 IFS=$as_save_IFS
7075
7076 fi
7077 fi
7078 RANLIB=$ac_cv_prog_RANLIB
7079 if test -n "$RANLIB"; then
7080 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7081 $as_echo "$RANLIB" >&6; }
7082 else
7083 { $as_echo "$as_me:$LINENO: result: no" >&5
7084 $as_echo "no" >&6; }
7085 fi
7086
7087
7088 fi
7089 if test -z "$ac_cv_prog_RANLIB"; then
7090 ac_ct_RANLIB=$RANLIB
7091 # Extract the first word of "ranlib", so it can be a program name with args.
7092 set dummy ranlib; ac_word=$2
7093 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7094 $as_echo_n "checking for $ac_word... " >&6; }
7095 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7096 $as_echo_n "(cached) " >&6
7097 else
7098 if test -n "$ac_ct_RANLIB"; then
7099 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7100 else
7101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102 for as_dir in $PATH
7103 do
7104 IFS=$as_save_IFS
7105 test -z "$as_dir" && as_dir=.
7106 for ac_exec_ext in '' $ac_executable_extensions; do
7107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7108 ac_cv_prog_ac_ct_RANLIB="ranlib"
7109 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7110 break 2
7111 fi
7112 done
7113 done
7114 IFS=$as_save_IFS
7115
7116 fi
7117 fi
7118 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7119 if test -n "$ac_ct_RANLIB"; then
7120 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7121 $as_echo "$ac_ct_RANLIB" >&6; }
7122 else
7123 { $as_echo "$as_me:$LINENO: result: no" >&5
7124 $as_echo "no" >&6; }
7125 fi
7126
7127 if test "x$ac_ct_RANLIB" = x; then
7128 RANLIB=":"
7129 else
7130 case $cross_compiling:$ac_tool_warned in
7131 yes:)
7132 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7134 ac_tool_warned=yes ;;
7135 esac
7136 RANLIB=$ac_ct_RANLIB
7137 fi
7138 else
7139 RANLIB="$ac_cv_prog_RANLIB"
7140 fi
7141
7142 test -z "$RANLIB" && RANLIB=:
7143
7144
7145
7146
7147
7148
7149 # Determine commands to create old-style static archives.
7150 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7151 old_postinstall_cmds='chmod 644 $oldlib'
7152 old_postuninstall_cmds=
7153
7154 if test -n "$RANLIB"; then
7155 case $host_os in
7156 openbsd*)
7157 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7158 ;;
7159 *)
7160 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7161 ;;
7162 esac
7163 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7164 fi
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199 # If no C compiler was specified, use CC.
7200 LTCC=${LTCC-"$CC"}
7201
7202 # If no C compiler flags were specified, use CFLAGS.
7203 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7204
7205 # Allow CC to be a program name with arguments.
7206 compiler=$CC
7207
7208
7209 # Check for command to grab the raw symbol name followed by C symbol from nm.
7210 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7211 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7212 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7213 $as_echo_n "(cached) " >&6
7214 else
7215
7216 # These are sane defaults that work on at least a few old systems.
7217 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7218
7219 # Character class describing NM global symbol codes.
7220 symcode='[BCDEGRST]'
7221
7222 # Regexp to match symbols that can be accessed directly from C.
7223 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7224
7225 # Define system-specific variables.
7226 case $host_os in
7227 aix*)
7228 symcode='[BCDT]'
7229 ;;
7230 cygwin* | mingw* | pw32* | cegcc*)
7231 symcode='[ABCDGISTW]'
7232 ;;
7233 hpux*)
7234 if test "$host_cpu" = ia64; then
7235 symcode='[ABCDEGRST]'
7236 fi
7237 ;;
7238 irix* | nonstopux*)
7239 symcode='[BCDEGRST]'
7240 ;;
7241 osf*)
7242 symcode='[BCDEGQRST]'
7243 ;;
7244 solaris*)
7245 symcode='[BDRT]'
7246 ;;
7247 sco3.2v5*)
7248 symcode='[DT]'
7249 ;;
7250 sysv4.2uw2*)
7251 symcode='[DT]'
7252 ;;
7253 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7254 symcode='[ABDT]'
7255 ;;
7256 sysv4)
7257 symcode='[DFNSTU]'
7258 ;;
7259 esac
7260
7261 # If we're using GNU nm, then use its standard symbol codes.
7262 case `$NM -V 2>&1` in
7263 *GNU* | *'with BFD'*)
7264 symcode='[ABCDGIRSTW]' ;;
7265 esac
7266
7267 # Transform an extracted symbol line into a proper C declaration.
7268 # Some systems (esp. on ia64) link data and code symbols differently,
7269 # so use this general approach.
7270 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7271
7272 # Transform an extracted symbol line into symbol name and symbol address
7273 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7274 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'"
7275
7276 # Handle CRLF in mingw tool chain
7277 opt_cr=
7278 case $build_os in
7279 mingw*)
7280 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7281 ;;
7282 esac
7283
7284 # Try without a prefix underscore, then with it.
7285 for ac_symprfx in "" "_"; do
7286
7287 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7288 symxfrm="\\1 $ac_symprfx\\2 \\2"
7289
7290 # Write the raw and C identifiers.
7291 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7292 # Fake it for dumpbin and say T for any non-static function
7293 # and D for any global variable.
7294 # Also find C++ and __fastcall symbols from MSVC++,
7295 # which start with @ or ?.
7296 lt_cv_sys_global_symbol_pipe="$AWK '"\
7297 " {last_section=section; section=\$ 3};"\
7298 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7299 " \$ 0!~/External *\|/{next};"\
7300 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7301 " {if(hide[section]) next};"\
7302 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7303 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7304 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7305 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7306 " ' prfx=^$ac_symprfx"
7307 else
7308 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7309 fi
7310
7311 # Check to see that the pipe works correctly.
7312 pipe_works=no
7313
7314 rm -f conftest*
7315 cat > conftest.$ac_ext <<_LT_EOF
7316 #ifdef __cplusplus
7317 extern "C" {
7318 #endif
7319 char nm_test_var;
7320 void nm_test_func(void);
7321 void nm_test_func(void){}
7322 #ifdef __cplusplus
7323 }
7324 #endif
7325 int main(){nm_test_var='a';nm_test_func();return(0);}
7326 _LT_EOF
7327
7328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7329 (eval $ac_compile) 2>&5
7330 ac_status=$?
7331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); }; then
7333 # Now try to grab the symbols.
7334 nlist=conftest.nm
7335 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7336 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7337 ac_status=$?
7338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); } && test -s "$nlist"; then
7340 # Try sorting and uniquifying the output.
7341 if sort "$nlist" | uniq > "$nlist"T; then
7342 mv -f "$nlist"T "$nlist"
7343 else
7344 rm -f "$nlist"T
7345 fi
7346
7347 # Make sure that we snagged all the symbols we need.
7348 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7349 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7350 cat <<_LT_EOF > conftest.$ac_ext
7351 #ifdef __cplusplus
7352 extern "C" {
7353 #endif
7354
7355 _LT_EOF
7356 # Now generate the symbol file.
7357 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7358
7359 cat <<_LT_EOF >> conftest.$ac_ext
7360
7361 /* The mapping between symbol names and symbols. */
7362 const struct {
7363 const char *name;
7364 void *address;
7365 }
7366 lt__PROGRAM__LTX_preloaded_symbols[] =
7367 {
7368 { "@PROGRAM@", (void *) 0 },
7369 _LT_EOF
7370 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7371 cat <<\_LT_EOF >> conftest.$ac_ext
7372 {0, (void *) 0}
7373 };
7374
7375 /* This works around a problem in FreeBSD linker */
7376 #ifdef FREEBSD_WORKAROUND
7377 static const void *lt_preloaded_setup() {
7378 return lt__PROGRAM__LTX_preloaded_symbols;
7379 }
7380 #endif
7381
7382 #ifdef __cplusplus
7383 }
7384 #endif
7385 _LT_EOF
7386 # Now try linking the two files.
7387 mv conftest.$ac_objext conftstm.$ac_objext
7388 lt_save_LIBS="$LIBS"
7389 lt_save_CFLAGS="$CFLAGS"
7390 LIBS="conftstm.$ac_objext"
7391 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7393 (eval $ac_link) 2>&5
7394 ac_status=$?
7395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7397 pipe_works=yes
7398 fi
7399 LIBS="$lt_save_LIBS"
7400 CFLAGS="$lt_save_CFLAGS"
7401 else
7402 echo "cannot find nm_test_func in $nlist" >&5
7403 fi
7404 else
7405 echo "cannot find nm_test_var in $nlist" >&5
7406 fi
7407 else
7408 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7409 fi
7410 else
7411 echo "$progname: failed program was:" >&5
7412 cat conftest.$ac_ext >&5
7413 fi
7414 rm -rf conftest* conftst*
7415
7416 # Do not use the global_symbol_pipe unless it works.
7417 if test "$pipe_works" = yes; then
7418 break
7419 else
7420 lt_cv_sys_global_symbol_pipe=
7421 fi
7422 done
7423
7424 fi
7425
7426 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7427 lt_cv_sys_global_symbol_to_cdecl=
7428 fi
7429 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7430 { $as_echo "$as_me:$LINENO: result: failed" >&5
7431 $as_echo "failed" >&6; }
7432 else
7433 { $as_echo "$as_me:$LINENO: result: ok" >&5
7434 $as_echo "ok" >&6; }
7435 fi
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458 # Check whether --enable-libtool-lock was given.
7459 if test "${enable_libtool_lock+set}" = set; then
7460 enableval=$enable_libtool_lock;
7461 fi
7462
7463 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7464
7465 # Some flags need to be propagated to the compiler or linker for good
7466 # libtool support.
7467 case $host in
7468 ia64-*-hpux*)
7469 # Find out which ABI we are using.
7470 echo 'int i;' > conftest.$ac_ext
7471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7472 (eval $ac_compile) 2>&5
7473 ac_status=$?
7474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; then
7476 case `/usr/bin/file conftest.$ac_objext` in
7477 *ELF-32*)
7478 HPUX_IA64_MODE="32"
7479 ;;
7480 *ELF-64*)
7481 HPUX_IA64_MODE="64"
7482 ;;
7483 esac
7484 fi
7485 rm -rf conftest*
7486 ;;
7487 *-*-irix6*)
7488 # Find out which ABI we are using.
7489 echo '#line 7489 "configure"' > conftest.$ac_ext
7490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7491 (eval $ac_compile) 2>&5
7492 ac_status=$?
7493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494 (exit $ac_status); }; then
7495 if test "$lt_cv_prog_gnu_ld" = yes; then
7496 case `/usr/bin/file conftest.$ac_objext` in
7497 *32-bit*)
7498 LD="${LD-ld} -melf32bsmip"
7499 ;;
7500 *N32*)
7501 LD="${LD-ld} -melf32bmipn32"
7502 ;;
7503 *64-bit*)
7504 LD="${LD-ld} -melf64bmip"
7505 ;;
7506 esac
7507 else
7508 case `/usr/bin/file conftest.$ac_objext` in
7509 *32-bit*)
7510 LD="${LD-ld} -32"
7511 ;;
7512 *N32*)
7513 LD="${LD-ld} -n32"
7514 ;;
7515 *64-bit*)
7516 LD="${LD-ld} -64"
7517 ;;
7518 esac
7519 fi
7520 fi
7521 rm -rf conftest*
7522 ;;
7523
7524 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7525 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7526 # Find out which ABI we are using.
7527 echo 'int i;' > conftest.$ac_ext
7528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7529 (eval $ac_compile) 2>&5
7530 ac_status=$?
7531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); }; then
7533 case `/usr/bin/file conftest.o` in
7534 *32-bit*)
7535 case $host in
7536 x86_64-*kfreebsd*-gnu)
7537 LD="${LD-ld} -m elf_i386_fbsd"
7538 ;;
7539 x86_64-*linux*)
7540 LD="${LD-ld} -m elf_i386"
7541 ;;
7542 ppc64-*linux*|powerpc64-*linux*)
7543 LD="${LD-ld} -m elf32ppclinux"
7544 ;;
7545 s390x-*linux*)
7546 LD="${LD-ld} -m elf_s390"
7547 ;;
7548 sparc64-*linux*)
7549 LD="${LD-ld} -m elf32_sparc"
7550 ;;
7551 esac
7552 ;;
7553 *64-bit*)
7554 case $host in
7555 x86_64-*kfreebsd*-gnu)
7556 LD="${LD-ld} -m elf_x86_64_fbsd"
7557 ;;
7558 x86_64-*linux*)
7559 LD="${LD-ld} -m elf_x86_64"
7560 ;;
7561 ppc*-*linux*|powerpc*-*linux*)
7562 LD="${LD-ld} -m elf64ppc"
7563 ;;
7564 s390*-*linux*|s390*-*tpf*)
7565 LD="${LD-ld} -m elf64_s390"
7566 ;;
7567 sparc*-*linux*)
7568 LD="${LD-ld} -m elf64_sparc"
7569 ;;
7570 esac
7571 ;;
7572 esac
7573 fi
7574 rm -rf conftest*
7575 ;;
7576
7577 *-*-sco3.2v5*)
7578 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7579 SAVE_CFLAGS="$CFLAGS"
7580 CFLAGS="$CFLAGS -belf"
7581 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7582 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7583 if test "${lt_cv_cc_needs_belf+set}" = set; then
7584 $as_echo_n "(cached) " >&6
7585 else
7586 ac_ext=c
7587 ac_cpp='$CPP $CPPFLAGS'
7588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7591
7592 cat >conftest.$ac_ext <<_ACEOF
7593 /* confdefs.h. */
7594 _ACEOF
7595 cat confdefs.h >>conftest.$ac_ext
7596 cat >>conftest.$ac_ext <<_ACEOF
7597 /* end confdefs.h. */
7598
7599 int
7600 main ()
7601 {
7602
7603 ;
7604 return 0;
7605 }
7606 _ACEOF
7607 rm -f conftest.$ac_objext conftest$ac_exeext
7608 if { (ac_try="$ac_link"
7609 case "(($ac_try" in
7610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7611 *) ac_try_echo=$ac_try;;
7612 esac
7613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7614 $as_echo "$ac_try_echo") >&5
7615 (eval "$ac_link") 2>conftest.er1
7616 ac_status=$?
7617 grep -v '^ *+' conftest.er1 >conftest.err
7618 rm -f conftest.er1
7619 cat conftest.err >&5
7620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); } && {
7622 test -z "$ac_c_werror_flag" ||
7623 test ! -s conftest.err
7624 } && test -s conftest$ac_exeext && {
7625 test "$cross_compiling" = yes ||
7626 $as_test_x conftest$ac_exeext
7627 }; then
7628 lt_cv_cc_needs_belf=yes
7629 else
7630 $as_echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.$ac_ext >&5
7632
7633 lt_cv_cc_needs_belf=no
7634 fi
7635
7636 rm -rf conftest.dSYM
7637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7638 conftest$ac_exeext conftest.$ac_ext
7639 ac_ext=c
7640 ac_cpp='$CPP $CPPFLAGS'
7641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7644
7645 fi
7646 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7647 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7648 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7649 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7650 CFLAGS="$SAVE_CFLAGS"
7651 fi
7652 ;;
7653 sparc*-*solaris*)
7654 # Find out which ABI we are using.
7655 echo 'int i;' > conftest.$ac_ext
7656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7657 (eval $ac_compile) 2>&5
7658 ac_status=$?
7659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); }; then
7661 case `/usr/bin/file conftest.o` in
7662 *64-bit*)
7663 case $lt_cv_prog_gnu_ld in
7664 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7665 *)
7666 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7667 LD="${LD-ld} -64"
7668 fi
7669 ;;
7670 esac
7671 ;;
7672 esac
7673 fi
7674 rm -rf conftest*
7675 ;;
7676 esac
7677
7678 need_locks="$enable_libtool_lock"
7679
7680
7681 case $host_os in
7682 rhapsody* | darwin*)
7683 if test -n "$ac_tool_prefix"; then
7684 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7685 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7686 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7687 $as_echo_n "checking for $ac_word... " >&6; }
7688 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7689 $as_echo_n "(cached) " >&6
7690 else
7691 if test -n "$DSYMUTIL"; then
7692 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7693 else
7694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7695 for as_dir in $PATH
7696 do
7697 IFS=$as_save_IFS
7698 test -z "$as_dir" && as_dir=.
7699 for ac_exec_ext in '' $ac_executable_extensions; do
7700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7701 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7702 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7703 break 2
7704 fi
7705 done
7706 done
7707 IFS=$as_save_IFS
7708
7709 fi
7710 fi
7711 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7712 if test -n "$DSYMUTIL"; then
7713 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7714 $as_echo "$DSYMUTIL" >&6; }
7715 else
7716 { $as_echo "$as_me:$LINENO: result: no" >&5
7717 $as_echo "no" >&6; }
7718 fi
7719
7720
7721 fi
7722 if test -z "$ac_cv_prog_DSYMUTIL"; then
7723 ac_ct_DSYMUTIL=$DSYMUTIL
7724 # Extract the first word of "dsymutil", so it can be a program name with args.
7725 set dummy dsymutil; ac_word=$2
7726 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7727 $as_echo_n "checking for $ac_word... " >&6; }
7728 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7729 $as_echo_n "(cached) " >&6
7730 else
7731 if test -n "$ac_ct_DSYMUTIL"; then
7732 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7733 else
7734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7735 for as_dir in $PATH
7736 do
7737 IFS=$as_save_IFS
7738 test -z "$as_dir" && as_dir=.
7739 for ac_exec_ext in '' $ac_executable_extensions; do
7740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7741 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7742 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7743 break 2
7744 fi
7745 done
7746 done
7747 IFS=$as_save_IFS
7748
7749 fi
7750 fi
7751 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7752 if test -n "$ac_ct_DSYMUTIL"; then
7753 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7754 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7755 else
7756 { $as_echo "$as_me:$LINENO: result: no" >&5
7757 $as_echo "no" >&6; }
7758 fi
7759
7760 if test "x$ac_ct_DSYMUTIL" = x; then
7761 DSYMUTIL=":"
7762 else
7763 case $cross_compiling:$ac_tool_warned in
7764 yes:)
7765 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7767 ac_tool_warned=yes ;;
7768 esac
7769 DSYMUTIL=$ac_ct_DSYMUTIL
7770 fi
7771 else
7772 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7773 fi
7774
7775 if test -n "$ac_tool_prefix"; then
7776 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7777 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7778 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7779 $as_echo_n "checking for $ac_word... " >&6; }
7780 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7781 $as_echo_n "(cached) " >&6
7782 else
7783 if test -n "$NMEDIT"; then
7784 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7785 else
7786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7787 for as_dir in $PATH
7788 do
7789 IFS=$as_save_IFS
7790 test -z "$as_dir" && as_dir=.
7791 for ac_exec_ext in '' $ac_executable_extensions; do
7792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7793 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7794 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7795 break 2
7796 fi
7797 done
7798 done
7799 IFS=$as_save_IFS
7800
7801 fi
7802 fi
7803 NMEDIT=$ac_cv_prog_NMEDIT
7804 if test -n "$NMEDIT"; then
7805 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7806 $as_echo "$NMEDIT" >&6; }
7807 else
7808 { $as_echo "$as_me:$LINENO: result: no" >&5
7809 $as_echo "no" >&6; }
7810 fi
7811
7812
7813 fi
7814 if test -z "$ac_cv_prog_NMEDIT"; then
7815 ac_ct_NMEDIT=$NMEDIT
7816 # Extract the first word of "nmedit", so it can be a program name with args.
7817 set dummy nmedit; ac_word=$2
7818 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7819 $as_echo_n "checking for $ac_word... " >&6; }
7820 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7821 $as_echo_n "(cached) " >&6
7822 else
7823 if test -n "$ac_ct_NMEDIT"; then
7824 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7825 else
7826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827 for as_dir in $PATH
7828 do
7829 IFS=$as_save_IFS
7830 test -z "$as_dir" && as_dir=.
7831 for ac_exec_ext in '' $ac_executable_extensions; do
7832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7833 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7834 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7835 break 2
7836 fi
7837 done
7838 done
7839 IFS=$as_save_IFS
7840
7841 fi
7842 fi
7843 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7844 if test -n "$ac_ct_NMEDIT"; then
7845 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7846 $as_echo "$ac_ct_NMEDIT" >&6; }
7847 else
7848 { $as_echo "$as_me:$LINENO: result: no" >&5
7849 $as_echo "no" >&6; }
7850 fi
7851
7852 if test "x$ac_ct_NMEDIT" = x; then
7853 NMEDIT=":"
7854 else
7855 case $cross_compiling:$ac_tool_warned in
7856 yes:)
7857 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7859 ac_tool_warned=yes ;;
7860 esac
7861 NMEDIT=$ac_ct_NMEDIT
7862 fi
7863 else
7864 NMEDIT="$ac_cv_prog_NMEDIT"
7865 fi
7866
7867 if test -n "$ac_tool_prefix"; then
7868 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7869 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7870 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7871 $as_echo_n "checking for $ac_word... " >&6; }
7872 if test "${ac_cv_prog_LIPO+set}" = set; then
7873 $as_echo_n "(cached) " >&6
7874 else
7875 if test -n "$LIPO"; then
7876 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7877 else
7878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7879 for as_dir in $PATH
7880 do
7881 IFS=$as_save_IFS
7882 test -z "$as_dir" && as_dir=.
7883 for ac_exec_ext in '' $ac_executable_extensions; do
7884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7885 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7886 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7887 break 2
7888 fi
7889 done
7890 done
7891 IFS=$as_save_IFS
7892
7893 fi
7894 fi
7895 LIPO=$ac_cv_prog_LIPO
7896 if test -n "$LIPO"; then
7897 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7898 $as_echo "$LIPO" >&6; }
7899 else
7900 { $as_echo "$as_me:$LINENO: result: no" >&5
7901 $as_echo "no" >&6; }
7902 fi
7903
7904
7905 fi
7906 if test -z "$ac_cv_prog_LIPO"; then
7907 ac_ct_LIPO=$LIPO
7908 # Extract the first word of "lipo", so it can be a program name with args.
7909 set dummy lipo; ac_word=$2
7910 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7911 $as_echo_n "checking for $ac_word... " >&6; }
7912 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7913 $as_echo_n "(cached) " >&6
7914 else
7915 if test -n "$ac_ct_LIPO"; then
7916 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7917 else
7918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7919 for as_dir in $PATH
7920 do
7921 IFS=$as_save_IFS
7922 test -z "$as_dir" && as_dir=.
7923 for ac_exec_ext in '' $ac_executable_extensions; do
7924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7925 ac_cv_prog_ac_ct_LIPO="lipo"
7926 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7927 break 2
7928 fi
7929 done
7930 done
7931 IFS=$as_save_IFS
7932
7933 fi
7934 fi
7935 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7936 if test -n "$ac_ct_LIPO"; then
7937 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7938 $as_echo "$ac_ct_LIPO" >&6; }
7939 else
7940 { $as_echo "$as_me:$LINENO: result: no" >&5
7941 $as_echo "no" >&6; }
7942 fi
7943
7944 if test "x$ac_ct_LIPO" = x; then
7945 LIPO=":"
7946 else
7947 case $cross_compiling:$ac_tool_warned in
7948 yes:)
7949 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7951 ac_tool_warned=yes ;;
7952 esac
7953 LIPO=$ac_ct_LIPO
7954 fi
7955 else
7956 LIPO="$ac_cv_prog_LIPO"
7957 fi
7958
7959 if test -n "$ac_tool_prefix"; then
7960 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7961 set dummy ${ac_tool_prefix}otool; ac_word=$2
7962 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7963 $as_echo_n "checking for $ac_word... " >&6; }
7964 if test "${ac_cv_prog_OTOOL+set}" = set; then
7965 $as_echo_n "(cached) " >&6
7966 else
7967 if test -n "$OTOOL"; then
7968 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7969 else
7970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7971 for as_dir in $PATH
7972 do
7973 IFS=$as_save_IFS
7974 test -z "$as_dir" && as_dir=.
7975 for ac_exec_ext in '' $ac_executable_extensions; do
7976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7977 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7978 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7979 break 2
7980 fi
7981 done
7982 done
7983 IFS=$as_save_IFS
7984
7985 fi
7986 fi
7987 OTOOL=$ac_cv_prog_OTOOL
7988 if test -n "$OTOOL"; then
7989 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7990 $as_echo "$OTOOL" >&6; }
7991 else
7992 { $as_echo "$as_me:$LINENO: result: no" >&5
7993 $as_echo "no" >&6; }
7994 fi
7995
7996
7997 fi
7998 if test -z "$ac_cv_prog_OTOOL"; then
7999 ac_ct_OTOOL=$OTOOL
8000 # Extract the first word of "otool", so it can be a program name with args.
8001 set dummy otool; ac_word=$2
8002 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8003 $as_echo_n "checking for $ac_word... " >&6; }
8004 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
8005 $as_echo_n "(cached) " >&6
8006 else
8007 if test -n "$ac_ct_OTOOL"; then
8008 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8009 else
8010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8011 for as_dir in $PATH
8012 do
8013 IFS=$as_save_IFS
8014 test -z "$as_dir" && as_dir=.
8015 for ac_exec_ext in '' $ac_executable_extensions; do
8016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8017 ac_cv_prog_ac_ct_OTOOL="otool"
8018 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8019 break 2
8020 fi
8021 done
8022 done
8023 IFS=$as_save_IFS
8024
8025 fi
8026 fi
8027 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8028 if test -n "$ac_ct_OTOOL"; then
8029 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
8030 $as_echo "$ac_ct_OTOOL" >&6; }
8031 else
8032 { $as_echo "$as_me:$LINENO: result: no" >&5
8033 $as_echo "no" >&6; }
8034 fi
8035
8036 if test "x$ac_ct_OTOOL" = x; then
8037 OTOOL=":"
8038 else
8039 case $cross_compiling:$ac_tool_warned in
8040 yes:)
8041 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8043 ac_tool_warned=yes ;;
8044 esac
8045 OTOOL=$ac_ct_OTOOL
8046 fi
8047 else
8048 OTOOL="$ac_cv_prog_OTOOL"
8049 fi
8050
8051 if test -n "$ac_tool_prefix"; then
8052 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8053 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8054 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8055 $as_echo_n "checking for $ac_word... " >&6; }
8056 if test "${ac_cv_prog_OTOOL64+set}" = set; then
8057 $as_echo_n "(cached) " >&6
8058 else
8059 if test -n "$OTOOL64"; then
8060 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8061 else
8062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8063 for as_dir in $PATH
8064 do
8065 IFS=$as_save_IFS
8066 test -z "$as_dir" && as_dir=.
8067 for ac_exec_ext in '' $ac_executable_extensions; do
8068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8069 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8070 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8071 break 2
8072 fi
8073 done
8074 done
8075 IFS=$as_save_IFS
8076
8077 fi
8078 fi
8079 OTOOL64=$ac_cv_prog_OTOOL64
8080 if test -n "$OTOOL64"; then
8081 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
8082 $as_echo "$OTOOL64" >&6; }
8083 else
8084 { $as_echo "$as_me:$LINENO: result: no" >&5
8085 $as_echo "no" >&6; }
8086 fi
8087
8088
8089 fi
8090 if test -z "$ac_cv_prog_OTOOL64"; then
8091 ac_ct_OTOOL64=$OTOOL64
8092 # Extract the first word of "otool64", so it can be a program name with args.
8093 set dummy otool64; ac_word=$2
8094 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8095 $as_echo_n "checking for $ac_word... " >&6; }
8096 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
8097 $as_echo_n "(cached) " >&6
8098 else
8099 if test -n "$ac_ct_OTOOL64"; then
8100 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8101 else
8102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8103 for as_dir in $PATH
8104 do
8105 IFS=$as_save_IFS
8106 test -z "$as_dir" && as_dir=.
8107 for ac_exec_ext in '' $ac_executable_extensions; do
8108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8109 ac_cv_prog_ac_ct_OTOOL64="otool64"
8110 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8111 break 2
8112 fi
8113 done
8114 done
8115 IFS=$as_save_IFS
8116
8117 fi
8118 fi
8119 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8120 if test -n "$ac_ct_OTOOL64"; then
8121 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
8122 $as_echo "$ac_ct_OTOOL64" >&6; }
8123 else
8124 { $as_echo "$as_me:$LINENO: result: no" >&5
8125 $as_echo "no" >&6; }
8126 fi
8127
8128 if test "x$ac_ct_OTOOL64" = x; then
8129 OTOOL64=":"
8130 else
8131 case $cross_compiling:$ac_tool_warned in
8132 yes:)
8133 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8135 ac_tool_warned=yes ;;
8136 esac
8137 OTOOL64=$ac_ct_OTOOL64
8138 fi
8139 else
8140 OTOOL64="$ac_cv_prog_OTOOL64"
8141 fi
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8170 $as_echo_n "checking for -single_module linker flag... " >&6; }
8171 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8172 $as_echo_n "(cached) " >&6
8173 else
8174 lt_cv_apple_cc_single_mod=no
8175 if test -z "${LT_MULTI_MODULE}"; then
8176 # By default we will add the -single_module flag. You can override
8177 # by either setting the environment variable LT_MULTI_MODULE
8178 # non-empty at configure time, or by adding -multi_module to the
8179 # link flags.
8180 rm -rf libconftest.dylib*
8181 echo "int foo(void){return 1;}" > conftest.c
8182 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8183 -dynamiclib -Wl,-single_module conftest.c" >&5
8184 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8185 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8186 _lt_result=$?
8187 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8188 lt_cv_apple_cc_single_mod=yes
8189 else
8190 cat conftest.err >&5
8191 fi
8192 rm -rf libconftest.dylib*
8193 rm -f conftest.*
8194 fi
8195 fi
8196 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8197 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8198 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8199 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8200 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8201 $as_echo_n "(cached) " >&6
8202 else
8203 lt_cv_ld_exported_symbols_list=no
8204 save_LDFLAGS=$LDFLAGS
8205 echo "_main" > conftest.sym
8206 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8207 cat >conftest.$ac_ext <<_ACEOF
8208 /* confdefs.h. */
8209 _ACEOF
8210 cat confdefs.h >>conftest.$ac_ext
8211 cat >>conftest.$ac_ext <<_ACEOF
8212 /* end confdefs.h. */
8213
8214 int
8215 main ()
8216 {
8217
8218 ;
8219 return 0;
8220 }
8221 _ACEOF
8222 rm -f conftest.$ac_objext conftest$ac_exeext
8223 if { (ac_try="$ac_link"
8224 case "(($ac_try" in
8225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8226 *) ac_try_echo=$ac_try;;
8227 esac
8228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8229 $as_echo "$ac_try_echo") >&5
8230 (eval "$ac_link") 2>conftest.er1
8231 ac_status=$?
8232 grep -v '^ *+' conftest.er1 >conftest.err
8233 rm -f conftest.er1
8234 cat conftest.err >&5
8235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); } && {
8237 test -z "$ac_c_werror_flag" ||
8238 test ! -s conftest.err
8239 } && test -s conftest$ac_exeext && {
8240 test "$cross_compiling" = yes ||
8241 $as_test_x conftest$ac_exeext
8242 }; then
8243 lt_cv_ld_exported_symbols_list=yes
8244 else
8245 $as_echo "$as_me: failed program was:" >&5
8246 sed 's/^/| /' conftest.$ac_ext >&5
8247
8248 lt_cv_ld_exported_symbols_list=no
8249 fi
8250
8251 rm -rf conftest.dSYM
8252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8253 conftest$ac_exeext conftest.$ac_ext
8254 LDFLAGS="$save_LDFLAGS"
8255
8256 fi
8257 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8258 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8259 case $host_os in
8260 rhapsody* | darwin1.[012])
8261 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8262 darwin1.*)
8263 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8264 darwin*) # darwin 5.x on
8265 # if running on 10.5 or later, the deployment target defaults
8266 # to the OS version, if on x86, and 10.4, the deployment
8267 # target defaults to 10.4. Don't you love it?
8268 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8269 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8270 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8271 10.[012]*)
8272 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8273 10.*)
8274 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8275 esac
8276 ;;
8277 esac
8278 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8279 _lt_dar_single_mod='$single_module'
8280 fi
8281 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8282 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8283 else
8284 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8285 fi
8286 if test "$DSYMUTIL" != ":"; then
8287 _lt_dsymutil='~$DSYMUTIL $lib || :'
8288 else
8289 _lt_dsymutil=
8290 fi
8291 ;;
8292 esac
8293
8294 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8295 $as_echo_n "checking for ANSI C header files... " >&6; }
8296 if test "${ac_cv_header_stdc+set}" = set; then
8297 $as_echo_n "(cached) " >&6
8298 else
8299 cat >conftest.$ac_ext <<_ACEOF
8300 /* confdefs.h. */
8301 _ACEOF
8302 cat confdefs.h >>conftest.$ac_ext
8303 cat >>conftest.$ac_ext <<_ACEOF
8304 /* end confdefs.h. */
8305 #include <stdlib.h>
8306 #include <stdarg.h>
8307 #include <string.h>
8308 #include <float.h>
8309
8310 int
8311 main ()
8312 {
8313
8314 ;
8315 return 0;
8316 }
8317 _ACEOF
8318 rm -f conftest.$ac_objext
8319 if { (ac_try="$ac_compile"
8320 case "(($ac_try" in
8321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8322 *) ac_try_echo=$ac_try;;
8323 esac
8324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8325 $as_echo "$ac_try_echo") >&5
8326 (eval "$ac_compile") 2>conftest.er1
8327 ac_status=$?
8328 grep -v '^ *+' conftest.er1 >conftest.err
8329 rm -f conftest.er1
8330 cat conftest.err >&5
8331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); } && {
8333 test -z "$ac_c_werror_flag" ||
8334 test ! -s conftest.err
8335 } && test -s conftest.$ac_objext; then
8336 ac_cv_header_stdc=yes
8337 else
8338 $as_echo "$as_me: failed program was:" >&5
8339 sed 's/^/| /' conftest.$ac_ext >&5
8340
8341 ac_cv_header_stdc=no
8342 fi
8343
8344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8345
8346 if test $ac_cv_header_stdc = yes; then
8347 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8348 cat >conftest.$ac_ext <<_ACEOF
8349 /* confdefs.h. */
8350 _ACEOF
8351 cat confdefs.h >>conftest.$ac_ext
8352 cat >>conftest.$ac_ext <<_ACEOF
8353 /* end confdefs.h. */
8354 #include <string.h>
8355
8356 _ACEOF
8357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8358 $EGREP "memchr" >/dev/null 2>&1; then
8359 :
8360 else
8361 ac_cv_header_stdc=no
8362 fi
8363 rm -f conftest*
8364
8365 fi
8366
8367 if test $ac_cv_header_stdc = yes; then
8368 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8369 cat >conftest.$ac_ext <<_ACEOF
8370 /* confdefs.h. */
8371 _ACEOF
8372 cat confdefs.h >>conftest.$ac_ext
8373 cat >>conftest.$ac_ext <<_ACEOF
8374 /* end confdefs.h. */
8375 #include <stdlib.h>
8376
8377 _ACEOF
8378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8379 $EGREP "free" >/dev/null 2>&1; then
8380 :
8381 else
8382 ac_cv_header_stdc=no
8383 fi
8384 rm -f conftest*
8385
8386 fi
8387
8388 if test $ac_cv_header_stdc = yes; then
8389 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8390 if test "$cross_compiling" = yes; then
8391 :
8392 else
8393 cat >conftest.$ac_ext <<_ACEOF
8394 /* confdefs.h. */
8395 _ACEOF
8396 cat confdefs.h >>conftest.$ac_ext
8397 cat >>conftest.$ac_ext <<_ACEOF
8398 /* end confdefs.h. */
8399 #include <ctype.h>
8400 #include <stdlib.h>
8401 #if ((' ' & 0x0FF) == 0x020)
8402 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8403 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8404 #else
8405 # define ISLOWER(c) \
8406 (('a' <= (c) && (c) <= 'i') \
8407 || ('j' <= (c) && (c) <= 'r') \
8408 || ('s' <= (c) && (c) <= 'z'))
8409 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8410 #endif
8411
8412 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8413 int
8414 main ()
8415 {
8416 int i;
8417 for (i = 0; i < 256; i++)
8418 if (XOR (islower (i), ISLOWER (i))
8419 || toupper (i) != TOUPPER (i))
8420 return 2;
8421 return 0;
8422 }
8423 _ACEOF
8424 rm -f conftest$ac_exeext
8425 if { (ac_try="$ac_link"
8426 case "(($ac_try" in
8427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8428 *) ac_try_echo=$ac_try;;
8429 esac
8430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8431 $as_echo "$ac_try_echo") >&5
8432 (eval "$ac_link") 2>&5
8433 ac_status=$?
8434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8436 { (case "(($ac_try" in
8437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8438 *) ac_try_echo=$ac_try;;
8439 esac
8440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8441 $as_echo "$ac_try_echo") >&5
8442 (eval "$ac_try") 2>&5
8443 ac_status=$?
8444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); }; }; then
8446 :
8447 else
8448 $as_echo "$as_me: program exited with status $ac_status" >&5
8449 $as_echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.$ac_ext >&5
8451
8452 ( exit $ac_status )
8453 ac_cv_header_stdc=no
8454 fi
8455 rm -rf conftest.dSYM
8456 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8457 fi
8458
8459
8460 fi
8461 fi
8462 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8463 $as_echo "$ac_cv_header_stdc" >&6; }
8464 if test $ac_cv_header_stdc = yes; then
8465
8466 cat >>confdefs.h <<\_ACEOF
8467 #define STDC_HEADERS 1
8468 _ACEOF
8469
8470 fi
8471
8472 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8483 inttypes.h stdint.h unistd.h
8484 do
8485 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8486 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8487 $as_echo_n "checking for $ac_header... " >&6; }
8488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8489 $as_echo_n "(cached) " >&6
8490 else
8491 cat >conftest.$ac_ext <<_ACEOF
8492 /* confdefs.h. */
8493 _ACEOF
8494 cat confdefs.h >>conftest.$ac_ext
8495 cat >>conftest.$ac_ext <<_ACEOF
8496 /* end confdefs.h. */
8497 $ac_includes_default
8498
8499 #include <$ac_header>
8500 _ACEOF
8501 rm -f conftest.$ac_objext
8502 if { (ac_try="$ac_compile"
8503 case "(($ac_try" in
8504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8505 *) ac_try_echo=$ac_try;;
8506 esac
8507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8508 $as_echo "$ac_try_echo") >&5
8509 (eval "$ac_compile") 2>conftest.er1
8510 ac_status=$?
8511 grep -v '^ *+' conftest.er1 >conftest.err
8512 rm -f conftest.er1
8513 cat conftest.err >&5
8514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); } && {
8516 test -z "$ac_c_werror_flag" ||
8517 test ! -s conftest.err
8518 } && test -s conftest.$ac_objext; then
8519 eval "$as_ac_Header=yes"
8520 else
8521 $as_echo "$as_me: failed program was:" >&5
8522 sed 's/^/| /' conftest.$ac_ext >&5
8523
8524 eval "$as_ac_Header=no"
8525 fi
8526
8527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8528 fi
8529 ac_res=`eval 'as_val=${'$as_ac_Header'}
8530 $as_echo "$as_val"'`
8531 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8532 $as_echo "$ac_res" >&6; }
8533 as_val=`eval 'as_val=${'$as_ac_Header'}
8534 $as_echo "$as_val"'`
8535 if test "x$as_val" = x""yes; then
8536 cat >>confdefs.h <<_ACEOF
8537 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8538 _ACEOF
8539
8540 fi
8541
8542 done
8543
8544
8545
8546 for ac_header in dlfcn.h
8547 do
8548 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8549 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8550 $as_echo_n "checking for $ac_header... " >&6; }
8551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8552 $as_echo_n "(cached) " >&6
8553 else
8554 cat >conftest.$ac_ext <<_ACEOF
8555 /* confdefs.h. */
8556 _ACEOF
8557 cat confdefs.h >>conftest.$ac_ext
8558 cat >>conftest.$ac_ext <<_ACEOF
8559 /* end confdefs.h. */
8560 $ac_includes_default
8561
8562 #include <$ac_header>
8563 _ACEOF
8564 rm -f conftest.$ac_objext
8565 if { (ac_try="$ac_compile"
8566 case "(($ac_try" in
8567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568 *) ac_try_echo=$ac_try;;
8569 esac
8570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8571 $as_echo "$ac_try_echo") >&5
8572 (eval "$ac_compile") 2>conftest.er1
8573 ac_status=$?
8574 grep -v '^ *+' conftest.er1 >conftest.err
8575 rm -f conftest.er1
8576 cat conftest.err >&5
8577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); } && {
8579 test -z "$ac_c_werror_flag" ||
8580 test ! -s conftest.err
8581 } && test -s conftest.$ac_objext; then
8582 eval "$as_ac_Header=yes"
8583 else
8584 $as_echo "$as_me: failed program was:" >&5
8585 sed 's/^/| /' conftest.$ac_ext >&5
8586
8587 eval "$as_ac_Header=no"
8588 fi
8589
8590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8591 fi
8592 ac_res=`eval 'as_val=${'$as_ac_Header'}
8593 $as_echo "$as_val"'`
8594 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8595 $as_echo "$ac_res" >&6; }
8596 as_val=`eval 'as_val=${'$as_ac_Header'}
8597 $as_echo "$as_val"'`
8598 if test "x$as_val" = x""yes; then
8599 cat >>confdefs.h <<_ACEOF
8600 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8601 _ACEOF
8602
8603 fi
8604
8605 done
8606
8607
8608
8609 # Set options
8610
8611
8612
8613 enable_dlopen=no
8614
8615
8616
8617 # Check whether --enable-shared was given.
8618 if test "${enable_shared+set}" = set; then
8619 enableval=$enable_shared; p=${PACKAGE-default}
8620 case $enableval in
8621 yes) enable_shared=yes ;;
8622 no) enable_shared=no ;;
8623 *)
8624 enable_shared=no
8625 # Look at the argument we got. We use all the common list separators.
8626 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8627 for pkg in $enableval; do
8628 IFS="$lt_save_ifs"
8629 if test "X$pkg" = "X$p"; then
8630 enable_shared=yes
8631 fi
8632 done
8633 IFS="$lt_save_ifs"
8634 ;;
8635 esac
8636 else
8637 enable_shared=yes
8638 fi
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648 # Check whether --enable-static was given.
8649 if test "${enable_static+set}" = set; then
8650 enableval=$enable_static; p=${PACKAGE-default}
8651 case $enableval in
8652 yes) enable_static=yes ;;
8653 no) enable_static=no ;;
8654 *)
8655 enable_static=no
8656 # Look at the argument we got. We use all the common list separators.
8657 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8658 for pkg in $enableval; do
8659 IFS="$lt_save_ifs"
8660 if test "X$pkg" = "X$p"; then
8661 enable_static=yes
8662 fi
8663 done
8664 IFS="$lt_save_ifs"
8665 ;;
8666 esac
8667 else
8668 enable_static=yes
8669 fi
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680 # Check whether --with-pic was given.
8681 if test "${with_pic+set}" = set; then
8682 withval=$with_pic; pic_mode="$withval"
8683 else
8684 pic_mode=default
8685 fi
8686
8687
8688 test -z "$pic_mode" && pic_mode=default
8689
8690
8691
8692
8693
8694
8695
8696 # Check whether --enable-fast-install was given.
8697 if test "${enable_fast_install+set}" = set; then
8698 enableval=$enable_fast_install; p=${PACKAGE-default}
8699 case $enableval in
8700 yes) enable_fast_install=yes ;;
8701 no) enable_fast_install=no ;;
8702 *)
8703 enable_fast_install=no
8704 # Look at the argument we got. We use all the common list separators.
8705 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8706 for pkg in $enableval; do
8707 IFS="$lt_save_ifs"
8708 if test "X$pkg" = "X$p"; then
8709 enable_fast_install=yes
8710 fi
8711 done
8712 IFS="$lt_save_ifs"
8713 ;;
8714 esac
8715 else
8716 enable_fast_install=yes
8717 fi
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729 # This can be used to rebuild libtool when needed
8730 LIBTOOL_DEPS="$ltmain"
8731
8732 # Always use our own libtool.
8733 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759 test -z "$LN_S" && LN_S="ln -s"
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774 if test -n "${ZSH_VERSION+set}" ; then
8775 setopt NO_GLOB_SUBST
8776 fi
8777
8778 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
8779 $as_echo_n "checking for objdir... " >&6; }
8780 if test "${lt_cv_objdir+set}" = set; then
8781 $as_echo_n "(cached) " >&6
8782 else
8783 rm -f .libs 2>/dev/null
8784 mkdir .libs 2>/dev/null
8785 if test -d .libs; then
8786 lt_cv_objdir=.libs
8787 else
8788 # MS-DOS does not allow filenames that begin with a dot.
8789 lt_cv_objdir=_libs
8790 fi
8791 rmdir .libs 2>/dev/null
8792 fi
8793 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8794 $as_echo "$lt_cv_objdir" >&6; }
8795 objdir=$lt_cv_objdir
8796
8797
8798
8799
8800
8801 cat >>confdefs.h <<_ACEOF
8802 #define LT_OBJDIR "$lt_cv_objdir/"
8803 _ACEOF
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821 case $host_os in
8822 aix3*)
8823 # AIX sometimes has problems with the GCC collect2 program. For some
8824 # reason, if we set the COLLECT_NAMES environment variable, the problems
8825 # vanish in a puff of smoke.
8826 if test "X${COLLECT_NAMES+set}" != Xset; then
8827 COLLECT_NAMES=
8828 export COLLECT_NAMES
8829 fi
8830 ;;
8831 esac
8832
8833 # Sed substitution that helps us do robust quoting. It backslashifies
8834 # metacharacters that are still active within double-quoted strings.
8835 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8836
8837 # Same as above, but do not quote variable references.
8838 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8839
8840 # Sed substitution to delay expansion of an escaped shell variable in a
8841 # double_quote_subst'ed string.
8842 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8843
8844 # Sed substitution to delay expansion of an escaped single quote.
8845 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8846
8847 # Sed substitution to avoid accidental globbing in evaled expressions
8848 no_glob_subst='s/\*/\\\*/g'
8849
8850 # Global variables:
8851 ofile=libtool
8852 can_build_shared=yes
8853
8854 # All known linkers require a `.a' archive for static linking (except MSVC,
8855 # which needs '.lib').
8856 libext=a
8857
8858 with_gnu_ld="$lt_cv_prog_gnu_ld"
8859
8860 old_CC="$CC"
8861 old_CFLAGS="$CFLAGS"
8862
8863 # Set sane defaults for various variables
8864 test -z "$CC" && CC=cc
8865 test -z "$LTCC" && LTCC=$CC
8866 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8867 test -z "$LD" && LD=ld
8868 test -z "$ac_objext" && ac_objext=o
8869
8870 for cc_temp in $compiler""; do
8871 case $cc_temp in
8872 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8873 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8874 \-*) ;;
8875 *) break;;
8876 esac
8877 done
8878 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8879
8880
8881 # Only perform the check for file, if the check method requires it
8882 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8883 case $deplibs_check_method in
8884 file_magic*)
8885 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8886 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8887 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8888 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8889 $as_echo_n "(cached) " >&6
8890 else
8891 case $MAGIC_CMD in
8892 [\\/*] | ?:[\\/]*)
8893 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8894 ;;
8895 *)
8896 lt_save_MAGIC_CMD="$MAGIC_CMD"
8897 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8898 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8899 for ac_dir in $ac_dummy; do
8900 IFS="$lt_save_ifs"
8901 test -z "$ac_dir" && ac_dir=.
8902 if test -f $ac_dir/${ac_tool_prefix}file; then
8903 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8904 if test -n "$file_magic_test_file"; then
8905 case $deplibs_check_method in
8906 "file_magic "*)
8907 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8908 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8909 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8910 $EGREP "$file_magic_regex" > /dev/null; then
8911 :
8912 else
8913 cat <<_LT_EOF 1>&2
8914
8915 *** Warning: the command libtool uses to detect shared libraries,
8916 *** $file_magic_cmd, produces output that libtool cannot recognize.
8917 *** The result is that libtool may fail to recognize shared libraries
8918 *** as such. This will affect the creation of libtool libraries that
8919 *** depend on shared libraries, but programs linked with such libtool
8920 *** libraries will work regardless of this problem. Nevertheless, you
8921 *** may want to report the problem to your system manager and/or to
8922 *** [email protected]
8923
8924 _LT_EOF
8925 fi ;;
8926 esac
8927 fi
8928 break
8929 fi
8930 done
8931 IFS="$lt_save_ifs"
8932 MAGIC_CMD="$lt_save_MAGIC_CMD"
8933 ;;
8934 esac
8935 fi
8936
8937 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8938 if test -n "$MAGIC_CMD"; then
8939 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8940 $as_echo "$MAGIC_CMD" >&6; }
8941 else
8942 { $as_echo "$as_me:$LINENO: result: no" >&5
8943 $as_echo "no" >&6; }
8944 fi
8945
8946
8947
8948
8949
8950 if test -z "$lt_cv_path_MAGIC_CMD"; then
8951 if test -n "$ac_tool_prefix"; then
8952 { $as_echo "$as_me:$LINENO: checking for file" >&5
8953 $as_echo_n "checking for file... " >&6; }
8954 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8955 $as_echo_n "(cached) " >&6
8956 else
8957 case $MAGIC_CMD in
8958 [\\/*] | ?:[\\/]*)
8959 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8960 ;;
8961 *)
8962 lt_save_MAGIC_CMD="$MAGIC_CMD"
8963 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8964 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8965 for ac_dir in $ac_dummy; do
8966 IFS="$lt_save_ifs"
8967 test -z "$ac_dir" && ac_dir=.
8968 if test -f $ac_dir/file; then
8969 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8970 if test -n "$file_magic_test_file"; then
8971 case $deplibs_check_method in
8972 "file_magic "*)
8973 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8974 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8975 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8976 $EGREP "$file_magic_regex" > /dev/null; then
8977 :
8978 else
8979 cat <<_LT_EOF 1>&2
8980
8981 *** Warning: the command libtool uses to detect shared libraries,
8982 *** $file_magic_cmd, produces output that libtool cannot recognize.
8983 *** The result is that libtool may fail to recognize shared libraries
8984 *** as such. This will affect the creation of libtool libraries that
8985 *** depend on shared libraries, but programs linked with such libtool
8986 *** libraries will work regardless of this problem. Nevertheless, you
8987 *** may want to report the problem to your system manager and/or to
8988 *** [email protected]
8989
8990 _LT_EOF
8991 fi ;;
8992 esac
8993 fi
8994 break
8995 fi
8996 done
8997 IFS="$lt_save_ifs"
8998 MAGIC_CMD="$lt_save_MAGIC_CMD"
8999 ;;
9000 esac
9001 fi
9002
9003 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9004 if test -n "$MAGIC_CMD"; then
9005 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9006 $as_echo "$MAGIC_CMD" >&6; }
9007 else
9008 { $as_echo "$as_me:$LINENO: result: no" >&5
9009 $as_echo "no" >&6; }
9010 fi
9011
9012
9013 else
9014 MAGIC_CMD=:
9015 fi
9016 fi
9017
9018 fi
9019 ;;
9020 esac
9021
9022 # Use C for the default configuration in the libtool script
9023
9024 lt_save_CC="$CC"
9025 ac_ext=c
9026 ac_cpp='$CPP $CPPFLAGS'
9027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9030
9031
9032 # Source file extension for C test sources.
9033 ac_ext=c
9034
9035 # Object file extension for compiled C test sources.
9036 objext=o
9037 objext=$objext
9038
9039 # Code to be used in simple compile tests
9040 lt_simple_compile_test_code="int some_variable = 0;"
9041
9042 # Code to be used in simple link tests
9043 lt_simple_link_test_code='int main(){return(0);}'
9044
9045
9046
9047
9048
9049
9050
9051 # If no C compiler was specified, use CC.
9052 LTCC=${LTCC-"$CC"}
9053
9054 # If no C compiler flags were specified, use CFLAGS.
9055 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9056
9057 # Allow CC to be a program name with arguments.
9058 compiler=$CC
9059
9060 # Save the default compiler, since it gets overwritten when the other
9061 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9062 compiler_DEFAULT=$CC
9063
9064 # save warnings/boilerplate of simple test code
9065 ac_outfile=conftest.$ac_objext
9066 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9067 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9068 _lt_compiler_boilerplate=`cat conftest.err`
9069 $RM conftest*
9070
9071 ac_outfile=conftest.$ac_objext
9072 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9073 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9074 _lt_linker_boilerplate=`cat conftest.err`
9075 $RM -r conftest*
9076
9077
9078 if test -n "$compiler"; then
9079
9080 lt_prog_compiler_no_builtin_flag=
9081
9082 if test "$GCC" = yes; then
9083 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9084
9085 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9086 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9087 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9088 $as_echo_n "(cached) " >&6
9089 else
9090 lt_cv_prog_compiler_rtti_exceptions=no
9091 ac_outfile=conftest.$ac_objext
9092 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9093 lt_compiler_flag="-fno-rtti -fno-exceptions"
9094 # Insert the option either (1) after the last *FLAGS variable, or
9095 # (2) before a word containing "conftest.", or (3) at the end.
9096 # Note that $ac_compile itself does not contain backslashes and begins
9097 # with a dollar sign (not a hyphen), so the echo should work correctly.
9098 # The option is referenced via a variable to avoid confusing sed.
9099 lt_compile=`echo "$ac_compile" | $SED \
9100 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9101 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9102 -e 's:$: $lt_compiler_flag:'`
9103 (eval echo "\"\$as_me:9103: $lt_compile\"" >&5)
9104 (eval "$lt_compile" 2>conftest.err)
9105 ac_status=$?
9106 cat conftest.err >&5
9107 echo "$as_me:9107: \$? = $ac_status" >&5
9108 if (exit $ac_status) && test -s "$ac_outfile"; then
9109 # The compiler can only warn and ignore the option if not recognized
9110 # So say no if there are warnings other than the usual output.
9111 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9112 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9113 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9114 lt_cv_prog_compiler_rtti_exceptions=yes
9115 fi
9116 fi
9117 $RM conftest*
9118
9119 fi
9120 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9121 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9122
9123 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9124 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9125 else
9126 :
9127 fi
9128
9129 fi
9130
9131
9132
9133
9134
9135
9136 lt_prog_compiler_wl=
9137 lt_prog_compiler_pic=
9138 lt_prog_compiler_static=
9139
9140 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9141 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9142
9143 if test "$GCC" = yes; then
9144 lt_prog_compiler_wl='-Wl,'
9145 lt_prog_compiler_static='-static'
9146
9147 case $host_os in
9148 aix*)
9149 # All AIX code is PIC.
9150 if test "$host_cpu" = ia64; then
9151 # AIX 5 now supports IA64 processor
9152 lt_prog_compiler_static='-Bstatic'
9153 fi
9154 ;;
9155
9156 amigaos*)
9157 case $host_cpu in
9158 powerpc)
9159 # see comment about AmigaOS4 .so support
9160 lt_prog_compiler_pic='-fPIC'
9161 ;;
9162 m68k)
9163 # FIXME: we need at least 68020 code to build shared libraries, but
9164 # adding the `-m68020' flag to GCC prevents building anything better,
9165 # like `-m68040'.
9166 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9167 ;;
9168 esac
9169 ;;
9170
9171 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9172 # PIC is the default for these OSes.
9173 ;;
9174
9175 mingw* | cygwin* | pw32* | os2* | cegcc*)
9176 # This hack is so that the source file can tell whether it is being
9177 # built for inclusion in a dll (and should export symbols for example).
9178 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9179 # (--disable-auto-import) libraries
9180 lt_prog_compiler_pic='-DDLL_EXPORT'
9181 ;;
9182
9183 darwin* | rhapsody*)
9184 # PIC is the default on this platform
9185 # Common symbols not allowed in MH_DYLIB files
9186 lt_prog_compiler_pic='-fno-common'
9187 ;;
9188
9189 hpux*)
9190 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9191 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9192 # sets the default TLS model and affects inlining.
9193 case $host_cpu in
9194 hppa*64*)
9195 # +Z the default
9196 ;;
9197 *)
9198 lt_prog_compiler_pic='-fPIC'
9199 ;;
9200 esac
9201 ;;
9202
9203 interix[3-9]*)
9204 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9205 # Instead, we relocate shared libraries at runtime.
9206 ;;
9207
9208 msdosdjgpp*)
9209 # Just because we use GCC doesn't mean we suddenly get shared libraries
9210 # on systems that don't support them.
9211 lt_prog_compiler_can_build_shared=no
9212 enable_shared=no
9213 ;;
9214
9215 *nto* | *qnx*)
9216 # QNX uses GNU C++, but need to define -shared option too, otherwise
9217 # it will coredump.
9218 lt_prog_compiler_pic='-fPIC -shared'
9219 ;;
9220
9221 sysv4*MP*)
9222 if test -d /usr/nec; then
9223 lt_prog_compiler_pic=-Kconform_pic
9224 fi
9225 ;;
9226
9227 *)
9228 lt_prog_compiler_pic='-fPIC'
9229 ;;
9230 esac
9231 else
9232 # PORTME Check for flag to pass linker flags through the system compiler.
9233 case $host_os in
9234 aix*)
9235 lt_prog_compiler_wl='-Wl,'
9236 if test "$host_cpu" = ia64; then
9237 # AIX 5 now supports IA64 processor
9238 lt_prog_compiler_static='-Bstatic'
9239 else
9240 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9241 fi
9242 ;;
9243
9244 mingw* | cygwin* | pw32* | os2* | cegcc*)
9245 # This hack is so that the source file can tell whether it is being
9246 # built for inclusion in a dll (and should export symbols for example).
9247 lt_prog_compiler_pic='-DDLL_EXPORT'
9248 ;;
9249
9250 hpux9* | hpux10* | hpux11*)
9251 lt_prog_compiler_wl='-Wl,'
9252 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9253 # not for PA HP-UX.
9254 case $host_cpu in
9255 hppa*64*|ia64*)
9256 # +Z the default
9257 ;;
9258 *)
9259 lt_prog_compiler_pic='+Z'
9260 ;;
9261 esac
9262 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9263 lt_prog_compiler_static='${wl}-a ${wl}archive'
9264 ;;
9265
9266 irix5* | irix6* | nonstopux*)
9267 lt_prog_compiler_wl='-Wl,'
9268 # PIC (with -KPIC) is the default.
9269 lt_prog_compiler_static='-non_shared'
9270 ;;
9271
9272 linux* | k*bsd*-gnu)
9273 case $cc_basename in
9274 # old Intel for x86_64 which still supported -KPIC.
9275 ecc*)
9276 lt_prog_compiler_wl='-Wl,'
9277 lt_prog_compiler_pic='-KPIC'
9278 lt_prog_compiler_static='-static'
9279 ;;
9280 # icc used to be incompatible with GCC.
9281 # ICC 10 doesn't accept -KPIC any more.
9282 icc* | ifort*)
9283 lt_prog_compiler_wl='-Wl,'
9284 lt_prog_compiler_pic='-fPIC'
9285 lt_prog_compiler_static='-static'
9286 ;;
9287 # Lahey Fortran 8.1.
9288 lf95*)
9289 lt_prog_compiler_wl='-Wl,'
9290 lt_prog_compiler_pic='--shared'
9291 lt_prog_compiler_static='--static'
9292 ;;
9293 pgcc* | pgf77* | pgf90* | pgf95*)
9294 # Portland Group compilers (*not* the Pentium gcc compiler,
9295 # which looks to be a dead project)
9296 lt_prog_compiler_wl='-Wl,'
9297 lt_prog_compiler_pic='-fpic'
9298 lt_prog_compiler_static='-Bstatic'
9299 ;;
9300 ccc*)
9301 lt_prog_compiler_wl='-Wl,'
9302 # All Alpha code is PIC.
9303 lt_prog_compiler_static='-non_shared'
9304 ;;
9305 xl*)
9306 # IBM XL C 8.0/Fortran 10.1 on PPC
9307 lt_prog_compiler_wl='-Wl,'
9308 lt_prog_compiler_pic='-qpic'
9309 lt_prog_compiler_static='-qstaticlink'
9310 ;;
9311 *)
9312 case `$CC -V 2>&1 | sed 5q` in
9313 *Sun\ C*)
9314 # Sun C 5.9
9315 lt_prog_compiler_pic='-KPIC'
9316 lt_prog_compiler_static='-Bstatic'
9317 lt_prog_compiler_wl='-Wl,'
9318 ;;
9319 *Sun\ F*)
9320 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9321 lt_prog_compiler_pic='-KPIC'
9322 lt_prog_compiler_static='-Bstatic'
9323 lt_prog_compiler_wl=''
9324 ;;
9325 esac
9326 ;;
9327 esac
9328 ;;
9329
9330 newsos6)
9331 lt_prog_compiler_pic='-KPIC'
9332 lt_prog_compiler_static='-Bstatic'
9333 ;;
9334
9335 *nto* | *qnx*)
9336 # QNX uses GNU C++, but need to define -shared option too, otherwise
9337 # it will coredump.
9338 lt_prog_compiler_pic='-fPIC -shared'
9339 ;;
9340
9341 osf3* | osf4* | osf5*)
9342 lt_prog_compiler_wl='-Wl,'
9343 # All OSF/1 code is PIC.
9344 lt_prog_compiler_static='-non_shared'
9345 ;;
9346
9347 rdos*)
9348 lt_prog_compiler_static='-non_shared'
9349 ;;
9350
9351 solaris*)
9352 lt_prog_compiler_pic='-KPIC'
9353 lt_prog_compiler_static='-Bstatic'
9354 case $cc_basename in
9355 f77* | f90* | f95*)
9356 lt_prog_compiler_wl='-Qoption ld ';;
9357 *)
9358 lt_prog_compiler_wl='-Wl,';;
9359 esac
9360 ;;
9361
9362 sunos4*)
9363 lt_prog_compiler_wl='-Qoption ld '
9364 lt_prog_compiler_pic='-PIC'
9365 lt_prog_compiler_static='-Bstatic'
9366 ;;
9367
9368 sysv4 | sysv4.2uw2* | sysv4.3*)
9369 lt_prog_compiler_wl='-Wl,'
9370 lt_prog_compiler_pic='-KPIC'
9371 lt_prog_compiler_static='-Bstatic'
9372 ;;
9373
9374 sysv4*MP*)
9375 if test -d /usr/nec ;then
9376 lt_prog_compiler_pic='-Kconform_pic'
9377 lt_prog_compiler_static='-Bstatic'
9378 fi
9379 ;;
9380
9381 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9382 lt_prog_compiler_wl='-Wl,'
9383 lt_prog_compiler_pic='-KPIC'
9384 lt_prog_compiler_static='-Bstatic'
9385 ;;
9386
9387 unicos*)
9388 lt_prog_compiler_wl='-Wl,'
9389 lt_prog_compiler_can_build_shared=no
9390 ;;
9391
9392 uts4*)
9393 lt_prog_compiler_pic='-pic'
9394 lt_prog_compiler_static='-Bstatic'
9395 ;;
9396
9397 *)
9398 lt_prog_compiler_can_build_shared=no
9399 ;;
9400 esac
9401 fi
9402
9403 case $host_os in
9404 # For platforms which do not support PIC, -DPIC is meaningless:
9405 *djgpp*)
9406 lt_prog_compiler_pic=
9407 ;;
9408 *)
9409 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9410 ;;
9411 esac
9412 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9413 $as_echo "$lt_prog_compiler_pic" >&6; }
9414
9415
9416
9417
9418
9419
9420 #
9421 # Check to make sure the PIC flag actually works.
9422 #
9423 if test -n "$lt_prog_compiler_pic"; then
9424 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9425 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9426 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9427 $as_echo_n "(cached) " >&6
9428 else
9429 lt_cv_prog_compiler_pic_works=no
9430 ac_outfile=conftest.$ac_objext
9431 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9432 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9433 # Insert the option either (1) after the last *FLAGS variable, or
9434 # (2) before a word containing "conftest.", or (3) at the end.
9435 # Note that $ac_compile itself does not contain backslashes and begins
9436 # with a dollar sign (not a hyphen), so the echo should work correctly.
9437 # The option is referenced via a variable to avoid confusing sed.
9438 lt_compile=`echo "$ac_compile" | $SED \
9439 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9440 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9441 -e 's:$: $lt_compiler_flag:'`
9442 (eval echo "\"\$as_me:9442: $lt_compile\"" >&5)
9443 (eval "$lt_compile" 2>conftest.err)
9444 ac_status=$?
9445 cat conftest.err >&5
9446 echo "$as_me:9446: \$? = $ac_status" >&5
9447 if (exit $ac_status) && test -s "$ac_outfile"; then
9448 # The compiler can only warn and ignore the option if not recognized
9449 # So say no if there are warnings other than the usual output.
9450 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9451 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9452 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9453 lt_cv_prog_compiler_pic_works=yes
9454 fi
9455 fi
9456 $RM conftest*
9457
9458 fi
9459 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9460 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9461
9462 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9463 case $lt_prog_compiler_pic in
9464 "" | " "*) ;;
9465 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9466 esac
9467 else
9468 lt_prog_compiler_pic=
9469 lt_prog_compiler_can_build_shared=no
9470 fi
9471
9472 fi
9473
9474
9475
9476
9477
9478
9479 #
9480 # Check to make sure the static flag actually works.
9481 #
9482 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9483 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9484 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9485 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9486 $as_echo_n "(cached) " >&6
9487 else
9488 lt_cv_prog_compiler_static_works=no
9489 save_LDFLAGS="$LDFLAGS"
9490 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9491 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9492 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9493 # The linker can only warn and ignore the option if not recognized
9494 # So say no if there are warnings
9495 if test -s conftest.err; then
9496 # Append any errors to the config.log.
9497 cat conftest.err 1>&5
9498 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9499 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9500 if diff conftest.exp conftest.er2 >/dev/null; then
9501 lt_cv_prog_compiler_static_works=yes
9502 fi
9503 else
9504 lt_cv_prog_compiler_static_works=yes
9505 fi
9506 fi
9507 $RM -r conftest*
9508 LDFLAGS="$save_LDFLAGS"
9509
9510 fi
9511 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9512 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9513
9514 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9515 :
9516 else
9517 lt_prog_compiler_static=
9518 fi
9519
9520
9521
9522
9523
9524
9525
9526 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9527 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9528 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9529 $as_echo_n "(cached) " >&6
9530 else
9531 lt_cv_prog_compiler_c_o=no
9532 $RM -r conftest 2>/dev/null
9533 mkdir conftest
9534 cd conftest
9535 mkdir out
9536 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9537
9538 lt_compiler_flag="-o out/conftest2.$ac_objext"
9539 # Insert the option either (1) after the last *FLAGS variable, or
9540 # (2) before a word containing "conftest.", or (3) at the end.
9541 # Note that $ac_compile itself does not contain backslashes and begins
9542 # with a dollar sign (not a hyphen), so the echo should work correctly.
9543 lt_compile=`echo "$ac_compile" | $SED \
9544 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9545 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9546 -e 's:$: $lt_compiler_flag:'`
9547 (eval echo "\"\$as_me:9547: $lt_compile\"" >&5)
9548 (eval "$lt_compile" 2>out/conftest.err)
9549 ac_status=$?
9550 cat out/conftest.err >&5
9551 echo "$as_me:9551: \$? = $ac_status" >&5
9552 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9553 then
9554 # The compiler can only warn and ignore the option if not recognized
9555 # So say no if there are warnings
9556 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9557 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9558 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9559 lt_cv_prog_compiler_c_o=yes
9560 fi
9561 fi
9562 chmod u+w . 2>&5
9563 $RM conftest*
9564 # SGI C++ compiler will create directory out/ii_files/ for
9565 # template instantiation
9566 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9567 $RM out/* && rmdir out
9568 cd ..
9569 $RM -r conftest
9570 $RM conftest*
9571
9572 fi
9573 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9574 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9575
9576
9577
9578
9579
9580
9581 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9582 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9583 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9584 $as_echo_n "(cached) " >&6
9585 else
9586 lt_cv_prog_compiler_c_o=no
9587 $RM -r conftest 2>/dev/null
9588 mkdir conftest
9589 cd conftest
9590 mkdir out
9591 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9592
9593 lt_compiler_flag="-o out/conftest2.$ac_objext"
9594 # Insert the option either (1) after the last *FLAGS variable, or
9595 # (2) before a word containing "conftest.", or (3) at the end.
9596 # Note that $ac_compile itself does not contain backslashes and begins
9597 # with a dollar sign (not a hyphen), so the echo should work correctly.
9598 lt_compile=`echo "$ac_compile" | $SED \
9599 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9600 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9601 -e 's:$: $lt_compiler_flag:'`
9602 (eval echo "\"\$as_me:9602: $lt_compile\"" >&5)
9603 (eval "$lt_compile" 2>out/conftest.err)
9604 ac_status=$?
9605 cat out/conftest.err >&5
9606 echo "$as_me:9606: \$? = $ac_status" >&5
9607 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9608 then
9609 # The compiler can only warn and ignore the option if not recognized
9610 # So say no if there are warnings
9611 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9612 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9613 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9614 lt_cv_prog_compiler_c_o=yes
9615 fi
9616 fi
9617 chmod u+w . 2>&5
9618 $RM conftest*
9619 # SGI C++ compiler will create directory out/ii_files/ for
9620 # template instantiation
9621 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9622 $RM out/* && rmdir out
9623 cd ..
9624 $RM -r conftest
9625 $RM conftest*
9626
9627 fi
9628 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9629 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9630
9631
9632
9633
9634 hard_links="nottested"
9635 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9636 # do not overwrite the value of need_locks provided by the user
9637 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9638 $as_echo_n "checking if we can lock with hard links... " >&6; }
9639 hard_links=yes
9640 $RM conftest*
9641 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9642 touch conftest.a
9643 ln conftest.a conftest.b 2>&5 || hard_links=no
9644 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9645 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9646 $as_echo "$hard_links" >&6; }
9647 if test "$hard_links" = no; then
9648 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9649 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9650 need_locks=warn
9651 fi
9652 else
9653 need_locks=no
9654 fi
9655
9656
9657
9658
9659
9660
9661 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9662 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9663
9664 runpath_var=
9665 allow_undefined_flag=
9666 always_export_symbols=no
9667 archive_cmds=
9668 archive_expsym_cmds=
9669 compiler_needs_object=no
9670 enable_shared_with_static_runtimes=no
9671 export_dynamic_flag_spec=
9672 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9673 hardcode_automatic=no
9674 hardcode_direct=no
9675 hardcode_direct_absolute=no
9676 hardcode_libdir_flag_spec=
9677 hardcode_libdir_flag_spec_ld=
9678 hardcode_libdir_separator=
9679 hardcode_minus_L=no
9680 hardcode_shlibpath_var=unsupported
9681 inherit_rpath=no
9682 link_all_deplibs=unknown
9683 module_cmds=
9684 module_expsym_cmds=
9685 old_archive_from_new_cmds=
9686 old_archive_from_expsyms_cmds=
9687 thread_safe_flag_spec=
9688 whole_archive_flag_spec=
9689 # include_expsyms should be a list of space-separated symbols to be *always*
9690 # included in the symbol list
9691 include_expsyms=
9692 # exclude_expsyms can be an extended regexp of symbols to exclude
9693 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9694 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9695 # as well as any symbol that contains `d'.
9696 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9697 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9698 # platforms (ab)use it in PIC code, but their linkers get confused if
9699 # the symbol is explicitly referenced. Since portable code cannot
9700 # rely on this symbol name, it's probably fine to never include it in
9701 # preloaded symbol tables.
9702 # Exclude shared library initialization/finalization symbols.
9703 extract_expsyms_cmds=
9704
9705 case $host_os in
9706 cygwin* | mingw* | pw32* | cegcc*)
9707 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9708 # When not using gcc, we currently assume that we are using
9709 # Microsoft Visual C++.
9710 if test "$GCC" != yes; then
9711 with_gnu_ld=no
9712 fi
9713 ;;
9714 interix*)
9715 # we just hope/assume this is gcc and not c89 (= MSVC++)
9716 with_gnu_ld=yes
9717 ;;
9718 openbsd*)
9719 with_gnu_ld=no
9720 ;;
9721 esac
9722
9723 ld_shlibs=yes
9724 if test "$with_gnu_ld" = yes; then
9725 # If archive_cmds runs LD, not CC, wlarc should be empty
9726 wlarc='${wl}'
9727
9728 # Set some defaults for GNU ld with shared library support. These
9729 # are reset later if shared libraries are not supported. Putting them
9730 # here allows them to be overridden if necessary.
9731 runpath_var=LD_RUN_PATH
9732 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9733 export_dynamic_flag_spec='${wl}--export-dynamic'
9734 # ancient GNU ld didn't support --whole-archive et. al.
9735 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9736 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9737 else
9738 whole_archive_flag_spec=
9739 fi
9740 supports_anon_versioning=no
9741 case `$LD -v 2>&1` in
9742 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9743 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9744 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9745 *\ 2.11.*) ;; # other 2.11 versions
9746 *) supports_anon_versioning=yes ;;
9747 esac
9748
9749 # See if GNU ld supports shared libraries.
9750 case $host_os in
9751 aix[3-9]*)
9752 # On AIX/PPC, the GNU linker is very broken
9753 if test "$host_cpu" != ia64; then
9754 ld_shlibs=no
9755 cat <<_LT_EOF 1>&2
9756
9757 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9758 *** to be unable to reliably create shared libraries on AIX.
9759 *** Therefore, libtool is disabling shared libraries support. If you
9760 *** really care for shared libraries, you may want to modify your PATH
9761 *** so that a non-GNU linker is found, and then restart.
9762
9763 _LT_EOF
9764 fi
9765 ;;
9766
9767 amigaos*)
9768 case $host_cpu in
9769 powerpc)
9770 # see comment about AmigaOS4 .so support
9771 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9772 archive_expsym_cmds=''
9773 ;;
9774 m68k)
9775 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)'
9776 hardcode_libdir_flag_spec='-L$libdir'
9777 hardcode_minus_L=yes
9778 ;;
9779 esac
9780 ;;
9781
9782 beos*)
9783 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9784 allow_undefined_flag=unsupported
9785 # Joseph Beckenbach <[email protected]> says some releases of gcc
9786 # support --undefined. This deserves some investigation. FIXME
9787 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9788 else
9789 ld_shlibs=no
9790 fi
9791 ;;
9792
9793 cygwin* | mingw* | pw32* | cegcc*)
9794 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9795 # as there is no search path for DLLs.
9796 hardcode_libdir_flag_spec='-L$libdir'
9797 allow_undefined_flag=unsupported
9798 always_export_symbols=no
9799 enable_shared_with_static_runtimes=yes
9800 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9801
9802 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9803 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9804 # If the export-symbols file already is a .def file (1st line
9805 # is EXPORTS), use it as is; otherwise, prepend...
9806 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9807 cp $export_symbols $output_objdir/$soname.def;
9808 else
9809 echo EXPORTS > $output_objdir/$soname.def;
9810 cat $export_symbols >> $output_objdir/$soname.def;
9811 fi~
9812 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9813 else
9814 ld_shlibs=no
9815 fi
9816 ;;
9817
9818 interix[3-9]*)
9819 hardcode_direct=no
9820 hardcode_shlibpath_var=no
9821 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9822 export_dynamic_flag_spec='${wl}-E'
9823 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9824 # Instead, shared libraries are loaded at an image base (0x10000000 by
9825 # default) and relocated if they conflict, which is a slow very memory
9826 # consuming and fragmenting process. To avoid this, we pick a random,
9827 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9828 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9829 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9830 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'
9831 ;;
9832
9833 gnu* | linux* | tpf* | k*bsd*-gnu)
9834 tmp_diet=no
9835 if test "$host_os" = linux-dietlibc; then
9836 case $cc_basename in
9837 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9838 esac
9839 fi
9840 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9841 && test "$tmp_diet" = no
9842 then
9843 tmp_addflag=
9844 tmp_sharedflag='-shared'
9845 case $cc_basename,$host_cpu in
9846 pgcc*) # Portland Group C compiler
9847 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'
9848 tmp_addflag=' $pic_flag'
9849 ;;
9850 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9851 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'
9852 tmp_addflag=' $pic_flag -Mnomain' ;;
9853 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9854 tmp_addflag=' -i_dynamic' ;;
9855 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9856 tmp_addflag=' -i_dynamic -nofor_main' ;;
9857 ifc* | ifort*) # Intel Fortran compiler
9858 tmp_addflag=' -nofor_main' ;;
9859 lf95*) # Lahey Fortran 8.1
9860 whole_archive_flag_spec=
9861 tmp_sharedflag='--shared' ;;
9862 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9863 tmp_sharedflag='-qmkshrobj'
9864 tmp_addflag= ;;
9865 esac
9866 case `$CC -V 2>&1 | sed 5q` in
9867 *Sun\ C*) # Sun C 5.9
9868 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'
9869 compiler_needs_object=yes
9870 tmp_sharedflag='-G' ;;
9871 *Sun\ F*) # Sun Fortran 8.3
9872 tmp_sharedflag='-G' ;;
9873 esac
9874 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9875
9876 if test "x$supports_anon_versioning" = xyes; then
9877 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9878 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9879 echo "local: *; };" >> $output_objdir/$libname.ver~
9880 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9881 fi
9882
9883 case $cc_basename in
9884 xlf*)
9885 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9886 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9887 hardcode_libdir_flag_spec=
9888 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9889 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9890 if test "x$supports_anon_versioning" = xyes; then
9891 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9892 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9893 echo "local: *; };" >> $output_objdir/$libname.ver~
9894 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9895 fi
9896 ;;
9897 esac
9898 else
9899 ld_shlibs=no
9900 fi
9901 ;;
9902
9903 netbsd*)
9904 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9905 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9906 wlarc=
9907 else
9908 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9909 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9910 fi
9911 ;;
9912
9913 solaris*)
9914 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9915 ld_shlibs=no
9916 cat <<_LT_EOF 1>&2
9917
9918 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9919 *** create shared libraries on Solaris systems. Therefore, libtool
9920 *** is disabling shared libraries support. We urge you to upgrade GNU
9921 *** binutils to release 2.9.1 or newer. Another option is to modify
9922 *** your PATH or compiler configuration so that the native linker is
9923 *** used, and then restart.
9924
9925 _LT_EOF
9926 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9927 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9928 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9929 else
9930 ld_shlibs=no
9931 fi
9932 ;;
9933
9934 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9935 case `$LD -v 2>&1` in
9936 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9937 ld_shlibs=no
9938 cat <<_LT_EOF 1>&2
9939
9940 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9941 *** reliably create shared libraries on SCO systems. Therefore, libtool
9942 *** is disabling shared libraries support. We urge you to upgrade GNU
9943 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9944 *** your PATH or compiler configuration so that the native linker is
9945 *** used, and then restart.
9946
9947 _LT_EOF
9948 ;;
9949 *)
9950 # For security reasons, it is highly recommended that you always
9951 # use absolute paths for naming shared libraries, and exclude the
9952 # DT_RUNPATH tag from executables and libraries. But doing so
9953 # requires that you compile everything twice, which is a pain.
9954 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9955 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9956 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9957 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9958 else
9959 ld_shlibs=no
9960 fi
9961 ;;
9962 esac
9963 ;;
9964
9965 sunos4*)
9966 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9967 wlarc=
9968 hardcode_direct=yes
9969 hardcode_shlibpath_var=no
9970 ;;
9971
9972 *)
9973 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9974 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9975 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9976 else
9977 ld_shlibs=no
9978 fi
9979 ;;
9980 esac
9981
9982 if test "$ld_shlibs" = no; then
9983 runpath_var=
9984 hardcode_libdir_flag_spec=
9985 export_dynamic_flag_spec=
9986 whole_archive_flag_spec=
9987 fi
9988 else
9989 # PORTME fill in a description of your system's linker (not GNU ld)
9990 case $host_os in
9991 aix3*)
9992 allow_undefined_flag=unsupported
9993 always_export_symbols=yes
9994 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'
9995 # Note: this linker hardcodes the directories in LIBPATH if there
9996 # are no directories specified by -L.
9997 hardcode_minus_L=yes
9998 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9999 # Neither direct hardcoding nor static linking is supported with a
10000 # broken collect2.
10001 hardcode_direct=unsupported
10002 fi
10003 ;;
10004
10005 aix[4-9]*)
10006 if test "$host_cpu" = ia64; then
10007 # On IA64, the linker does run time linking by default, so we don't
10008 # have to do anything special.
10009 aix_use_runtimelinking=no
10010 exp_sym_flag='-Bexport'
10011 no_entry_flag=""
10012 else
10013 # If we're using GNU nm, then we don't want the "-C" option.
10014 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10015 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10016 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'
10017 else
10018 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'
10019 fi
10020 aix_use_runtimelinking=no
10021
10022 # Test if we are trying to use run time linking or normal
10023 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10024 # need to do runtime linking.
10025 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10026 for ld_flag in $LDFLAGS; do
10027 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10028 aix_use_runtimelinking=yes
10029 break
10030 fi
10031 done
10032 ;;
10033 esac
10034
10035 exp_sym_flag='-bexport'
10036 no_entry_flag='-bnoentry'
10037 fi
10038
10039 # When large executables or shared objects are built, AIX ld can
10040 # have problems creating the table of contents. If linking a library
10041 # or program results in "error TOC overflow" add -mminimal-toc to
10042 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10043 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10044
10045 archive_cmds=''
10046 hardcode_direct=yes
10047 hardcode_direct_absolute=yes
10048 hardcode_libdir_separator=':'
10049 link_all_deplibs=yes
10050 file_list_spec='${wl}-f,'
10051
10052 if test "$GCC" = yes; then
10053 case $host_os in aix4.[012]|aix4.[012].*)
10054 # We only want to do this on AIX 4.2 and lower, the check
10055 # below for broken collect2 doesn't work under 4.3+
10056 collect2name=`${CC} -print-prog-name=collect2`
10057 if test -f "$collect2name" &&
10058 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10059 then
10060 # We have reworked collect2
10061 :
10062 else
10063 # We have old collect2
10064 hardcode_direct=unsupported
10065 # It fails to find uninstalled libraries when the uninstalled
10066 # path is not listed in the libpath. Setting hardcode_minus_L
10067 # to unsupported forces relinking
10068 hardcode_minus_L=yes
10069 hardcode_libdir_flag_spec='-L$libdir'
10070 hardcode_libdir_separator=
10071 fi
10072 ;;
10073 esac
10074 shared_flag='-shared'
10075 if test "$aix_use_runtimelinking" = yes; then
10076 shared_flag="$shared_flag "'${wl}-G'
10077 fi
10078 else
10079 # not using gcc
10080 if test "$host_cpu" = ia64; then
10081 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10082 # chokes on -Wl,-G. The following line is correct:
10083 shared_flag='-G'
10084 else
10085 if test "$aix_use_runtimelinking" = yes; then
10086 shared_flag='${wl}-G'
10087 else
10088 shared_flag='${wl}-bM:SRE'
10089 fi
10090 fi
10091 fi
10092
10093 export_dynamic_flag_spec='${wl}-bexpall'
10094 # It seems that -bexpall does not export symbols beginning with
10095 # underscore (_), so it is better to generate a list of symbols to export.
10096 always_export_symbols=yes
10097 if test "$aix_use_runtimelinking" = yes; then
10098 # Warning - without using the other runtime loading flags (-brtl),
10099 # -berok will link without error, but may produce a broken library.
10100 allow_undefined_flag='-berok'
10101 # Determine the default libpath from the value encoded in an
10102 # empty executable.
10103 cat >conftest.$ac_ext <<_ACEOF
10104 /* confdefs.h. */
10105 _ACEOF
10106 cat confdefs.h >>conftest.$ac_ext
10107 cat >>conftest.$ac_ext <<_ACEOF
10108 /* end confdefs.h. */
10109
10110 int
10111 main ()
10112 {
10113
10114 ;
10115 return 0;
10116 }
10117 _ACEOF
10118 rm -f conftest.$ac_objext conftest$ac_exeext
10119 if { (ac_try="$ac_link"
10120 case "(($ac_try" in
10121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10122 *) ac_try_echo=$ac_try;;
10123 esac
10124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10125 $as_echo "$ac_try_echo") >&5
10126 (eval "$ac_link") 2>conftest.er1
10127 ac_status=$?
10128 grep -v '^ *+' conftest.er1 >conftest.err
10129 rm -f conftest.er1
10130 cat conftest.err >&5
10131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); } && {
10133 test -z "$ac_c_werror_flag" ||
10134 test ! -s conftest.err
10135 } && test -s conftest$ac_exeext && {
10136 test "$cross_compiling" = yes ||
10137 $as_test_x conftest$ac_exeext
10138 }; then
10139
10140 lt_aix_libpath_sed='
10141 /Import File Strings/,/^$/ {
10142 /^0/ {
10143 s/^0 *\(.*\)$/\1/
10144 p
10145 }
10146 }'
10147 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10148 # Check for a 64-bit object if we didn't find anything.
10149 if test -z "$aix_libpath"; then
10150 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10151 fi
10152 else
10153 $as_echo "$as_me: failed program was:" >&5
10154 sed 's/^/| /' conftest.$ac_ext >&5
10155
10156
10157 fi
10158
10159 rm -rf conftest.dSYM
10160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10161 conftest$ac_exeext conftest.$ac_ext
10162 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10163
10164 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10165 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"
10166 else
10167 if test "$host_cpu" = ia64; then
10168 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10169 allow_undefined_flag="-z nodefs"
10170 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"
10171 else
10172 # Determine the default libpath from the value encoded in an
10173 # empty executable.
10174 cat >conftest.$ac_ext <<_ACEOF
10175 /* confdefs.h. */
10176 _ACEOF
10177 cat confdefs.h >>conftest.$ac_ext
10178 cat >>conftest.$ac_ext <<_ACEOF
10179 /* end confdefs.h. */
10180
10181 int
10182 main ()
10183 {
10184
10185 ;
10186 return 0;
10187 }
10188 _ACEOF
10189 rm -f conftest.$ac_objext conftest$ac_exeext
10190 if { (ac_try="$ac_link"
10191 case "(($ac_try" in
10192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10193 *) ac_try_echo=$ac_try;;
10194 esac
10195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10196 $as_echo "$ac_try_echo") >&5
10197 (eval "$ac_link") 2>conftest.er1
10198 ac_status=$?
10199 grep -v '^ *+' conftest.er1 >conftest.err
10200 rm -f conftest.er1
10201 cat conftest.err >&5
10202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); } && {
10204 test -z "$ac_c_werror_flag" ||
10205 test ! -s conftest.err
10206 } && test -s conftest$ac_exeext && {
10207 test "$cross_compiling" = yes ||
10208 $as_test_x conftest$ac_exeext
10209 }; then
10210
10211 lt_aix_libpath_sed='
10212 /Import File Strings/,/^$/ {
10213 /^0/ {
10214 s/^0 *\(.*\)$/\1/
10215 p
10216 }
10217 }'
10218 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10219 # Check for a 64-bit object if we didn't find anything.
10220 if test -z "$aix_libpath"; then
10221 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10222 fi
10223 else
10224 $as_echo "$as_me: failed program was:" >&5
10225 sed 's/^/| /' conftest.$ac_ext >&5
10226
10227
10228 fi
10229
10230 rm -rf conftest.dSYM
10231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10232 conftest$ac_exeext conftest.$ac_ext
10233 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10234
10235 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10236 # Warning - without using the other run time loading flags,
10237 # -berok will link without error, but may produce a broken library.
10238 no_undefined_flag=' ${wl}-bernotok'
10239 allow_undefined_flag=' ${wl}-berok'
10240 # Exported symbols can be pulled into shared objects from archives
10241 whole_archive_flag_spec='$convenience'
10242 archive_cmds_need_lc=yes
10243 # This is similar to how AIX traditionally builds its shared libraries.
10244 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'
10245 fi
10246 fi
10247 ;;
10248
10249 amigaos*)
10250 case $host_cpu in
10251 powerpc)
10252 # see comment about AmigaOS4 .so support
10253 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10254 archive_expsym_cmds=''
10255 ;;
10256 m68k)
10257 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)'
10258 hardcode_libdir_flag_spec='-L$libdir'
10259 hardcode_minus_L=yes
10260 ;;
10261 esac
10262 ;;
10263
10264 bsdi[45]*)
10265 export_dynamic_flag_spec=-rdynamic
10266 ;;
10267
10268 cygwin* | mingw* | pw32* | cegcc*)
10269 # When not using gcc, we currently assume that we are using
10270 # Microsoft Visual C++.
10271 # hardcode_libdir_flag_spec is actually meaningless, as there is
10272 # no search path for DLLs.
10273 hardcode_libdir_flag_spec=' '
10274 allow_undefined_flag=unsupported
10275 # Tell ltmain to make .lib files, not .a files.
10276 libext=lib
10277 # Tell ltmain to make .dll files, not .so files.
10278 shrext_cmds=".dll"
10279 # FIXME: Setting linknames here is a bad hack.
10280 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10281 # The linker will automatically build a .lib file if we build a DLL.
10282 old_archive_from_new_cmds='true'
10283 # FIXME: Should let the user specify the lib program.
10284 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10285 fix_srcfile_path='`cygpath -w "$srcfile"`'
10286 enable_shared_with_static_runtimes=yes
10287 ;;
10288
10289 darwin* | rhapsody*)
10290
10291
10292 archive_cmds_need_lc=no
10293 hardcode_direct=no
10294 hardcode_automatic=yes
10295 hardcode_shlibpath_var=unsupported
10296 whole_archive_flag_spec=''
10297 link_all_deplibs=yes
10298 allow_undefined_flag="$_lt_dar_allow_undefined"
10299 case $cc_basename in
10300 ifort*) _lt_dar_can_shared=yes ;;
10301 *) _lt_dar_can_shared=$GCC ;;
10302 esac
10303 if test "$_lt_dar_can_shared" = "yes"; then
10304 output_verbose_link_cmd=echo
10305 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10306 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10307 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}"
10308 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}"
10309
10310 else
10311 ld_shlibs=no
10312 fi
10313
10314 ;;
10315
10316 dgux*)
10317 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10318 hardcode_libdir_flag_spec='-L$libdir'
10319 hardcode_shlibpath_var=no
10320 ;;
10321
10322 freebsd1*)
10323 ld_shlibs=no
10324 ;;
10325
10326 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10327 # support. Future versions do this automatically, but an explicit c++rt0.o
10328 # does not break anything, and helps significantly (at the cost of a little
10329 # extra space).
10330 freebsd2.2*)
10331 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10332 hardcode_libdir_flag_spec='-R$libdir'
10333 hardcode_direct=yes
10334 hardcode_shlibpath_var=no
10335 ;;
10336
10337 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10338 freebsd2*)
10339 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10340 hardcode_direct=yes
10341 hardcode_minus_L=yes
10342 hardcode_shlibpath_var=no
10343 ;;
10344
10345 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10346 freebsd* | dragonfly*)
10347 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10348 hardcode_libdir_flag_spec='-R$libdir'
10349 hardcode_direct=yes
10350 hardcode_shlibpath_var=no
10351 ;;
10352
10353 hpux9*)
10354 if test "$GCC" = yes; then
10355 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'
10356 else
10357 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'
10358 fi
10359 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10360 hardcode_libdir_separator=:
10361 hardcode_direct=yes
10362
10363 # hardcode_minus_L: Not really in the search PATH,
10364 # but as the default location of the library.
10365 hardcode_minus_L=yes
10366 export_dynamic_flag_spec='${wl}-E'
10367 ;;
10368
10369 hpux10*)
10370 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10371 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10372 else
10373 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10374 fi
10375 if test "$with_gnu_ld" = no; then
10376 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10377 hardcode_libdir_flag_spec_ld='+b $libdir'
10378 hardcode_libdir_separator=:
10379 hardcode_direct=yes
10380 hardcode_direct_absolute=yes
10381 export_dynamic_flag_spec='${wl}-E'
10382 # hardcode_minus_L: Not really in the search PATH,
10383 # but as the default location of the library.
10384 hardcode_minus_L=yes
10385 fi
10386 ;;
10387
10388 hpux11*)
10389 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10390 case $host_cpu in
10391 hppa*64*)
10392 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10393 ;;
10394 ia64*)
10395 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10396 ;;
10397 *)
10398 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10399 ;;
10400 esac
10401 else
10402 case $host_cpu in
10403 hppa*64*)
10404 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10405 ;;
10406 ia64*)
10407 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10408 ;;
10409 *)
10410 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10411 ;;
10412 esac
10413 fi
10414 if test "$with_gnu_ld" = no; then
10415 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10416 hardcode_libdir_separator=:
10417
10418 case $host_cpu in
10419 hppa*64*|ia64*)
10420 hardcode_direct=no
10421 hardcode_shlibpath_var=no
10422 ;;
10423 *)
10424 hardcode_direct=yes
10425 hardcode_direct_absolute=yes
10426 export_dynamic_flag_spec='${wl}-E'
10427
10428 # hardcode_minus_L: Not really in the search PATH,
10429 # but as the default location of the library.
10430 hardcode_minus_L=yes
10431 ;;
10432 esac
10433 fi
10434 ;;
10435
10436 irix5* | irix6* | nonstopux*)
10437 if test "$GCC" = yes; then
10438 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'
10439 # Try to use the -exported_symbol ld option, if it does not
10440 # work, assume that -exports_file does not work either and
10441 # implicitly export all symbols.
10442 save_LDFLAGS="$LDFLAGS"
10443 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10444 cat >conftest.$ac_ext <<_ACEOF
10445 int foo(void) {}
10446 _ACEOF
10447 rm -f conftest.$ac_objext conftest$ac_exeext
10448 if { (ac_try="$ac_link"
10449 case "(($ac_try" in
10450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10451 *) ac_try_echo=$ac_try;;
10452 esac
10453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10454 $as_echo "$ac_try_echo") >&5
10455 (eval "$ac_link") 2>conftest.er1
10456 ac_status=$?
10457 grep -v '^ *+' conftest.er1 >conftest.err
10458 rm -f conftest.er1
10459 cat conftest.err >&5
10460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 (exit $ac_status); } && {
10462 test -z "$ac_c_werror_flag" ||
10463 test ! -s conftest.err
10464 } && test -s conftest$ac_exeext && {
10465 test "$cross_compiling" = yes ||
10466 $as_test_x conftest$ac_exeext
10467 }; then
10468 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'
10469
10470 else
10471 $as_echo "$as_me: failed program was:" >&5
10472 sed 's/^/| /' conftest.$ac_ext >&5
10473
10474
10475 fi
10476
10477 rm -rf conftest.dSYM
10478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10479 conftest$ac_exeext conftest.$ac_ext
10480 LDFLAGS="$save_LDFLAGS"
10481 else
10482 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'
10483 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'
10484 fi
10485 archive_cmds_need_lc='no'
10486 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10487 hardcode_libdir_separator=:
10488 inherit_rpath=yes
10489 link_all_deplibs=yes
10490 ;;
10491
10492 netbsd*)
10493 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10494 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10495 else
10496 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10497 fi
10498 hardcode_libdir_flag_spec='-R$libdir'
10499 hardcode_direct=yes
10500 hardcode_shlibpath_var=no
10501 ;;
10502
10503 newsos6)
10504 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10505 hardcode_direct=yes
10506 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10507 hardcode_libdir_separator=:
10508 hardcode_shlibpath_var=no
10509 ;;
10510
10511 *nto* | *qnx*)
10512 ;;
10513
10514 openbsd*)
10515 if test -f /usr/libexec/ld.so; then
10516 hardcode_direct=yes
10517 hardcode_shlibpath_var=no
10518 hardcode_direct_absolute=yes
10519 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10520 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10521 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10522 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10523 export_dynamic_flag_spec='${wl}-E'
10524 else
10525 case $host_os in
10526 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10527 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10528 hardcode_libdir_flag_spec='-R$libdir'
10529 ;;
10530 *)
10531 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10532 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10533 ;;
10534 esac
10535 fi
10536 else
10537 ld_shlibs=no
10538 fi
10539 ;;
10540
10541 os2*)
10542 hardcode_libdir_flag_spec='-L$libdir'
10543 hardcode_minus_L=yes
10544 allow_undefined_flag=unsupported
10545 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'
10546 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10547 ;;
10548
10549 osf3*)
10550 if test "$GCC" = yes; then
10551 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10552 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'
10553 else
10554 allow_undefined_flag=' -expect_unresolved \*'
10555 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'
10556 fi
10557 archive_cmds_need_lc='no'
10558 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10559 hardcode_libdir_separator=:
10560 ;;
10561
10562 osf4* | osf5*) # as osf3* with the addition of -msym flag
10563 if test "$GCC" = yes; then
10564 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10565 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'
10566 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10567 else
10568 allow_undefined_flag=' -expect_unresolved \*'
10569 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'
10570 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~
10571 $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'
10572
10573 # Both c and cxx compiler support -rpath directly
10574 hardcode_libdir_flag_spec='-rpath $libdir'
10575 fi
10576 archive_cmds_need_lc='no'
10577 hardcode_libdir_separator=:
10578 ;;
10579
10580 solaris*)
10581 no_undefined_flag=' -z defs'
10582 if test "$GCC" = yes; then
10583 wlarc='${wl}'
10584 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10585 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10586 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10587 else
10588 case `$CC -V 2>&1` in
10589 *"Compilers 5.0"*)
10590 wlarc=''
10591 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10592 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10593 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10594 ;;
10595 *)
10596 wlarc='${wl}'
10597 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10598 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10599 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10600 ;;
10601 esac
10602 fi
10603 hardcode_libdir_flag_spec='-R$libdir'
10604 hardcode_shlibpath_var=no
10605 case $host_os in
10606 solaris2.[0-5] | solaris2.[0-5].*) ;;
10607 *)
10608 # The compiler driver will combine and reorder linker options,
10609 # but understands `-z linker_flag'. GCC discards it without `$wl',
10610 # but is careful enough not to reorder.
10611 # Supported since Solaris 2.6 (maybe 2.5.1?)
10612 if test "$GCC" = yes; then
10613 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10614 else
10615 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10616 fi
10617 ;;
10618 esac
10619 link_all_deplibs=yes
10620 ;;
10621
10622 sunos4*)
10623 if test "x$host_vendor" = xsequent; then
10624 # Use $CC to link under sequent, because it throws in some extra .o
10625 # files that make .init and .fini sections work.
10626 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10627 else
10628 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10629 fi
10630 hardcode_libdir_flag_spec='-L$libdir'
10631 hardcode_direct=yes
10632 hardcode_minus_L=yes
10633 hardcode_shlibpath_var=no
10634 ;;
10635
10636 sysv4)
10637 case $host_vendor in
10638 sni)
10639 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10640 hardcode_direct=yes # is this really true???
10641 ;;
10642 siemens)
10643 ## LD is ld it makes a PLAMLIB
10644 ## CC just makes a GrossModule.
10645 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10646 reload_cmds='$CC -r -o $output$reload_objs'
10647 hardcode_direct=no
10648 ;;
10649 motorola)
10650 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10651 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10652 ;;
10653 esac
10654 runpath_var='LD_RUN_PATH'
10655 hardcode_shlibpath_var=no
10656 ;;
10657
10658 sysv4.3*)
10659 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10660 hardcode_shlibpath_var=no
10661 export_dynamic_flag_spec='-Bexport'
10662 ;;
10663
10664 sysv4*MP*)
10665 if test -d /usr/nec; then
10666 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10667 hardcode_shlibpath_var=no
10668 runpath_var=LD_RUN_PATH
10669 hardcode_runpath_var=yes
10670 ld_shlibs=yes
10671 fi
10672 ;;
10673
10674 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10675 no_undefined_flag='${wl}-z,text'
10676 archive_cmds_need_lc=no
10677 hardcode_shlibpath_var=no
10678 runpath_var='LD_RUN_PATH'
10679
10680 if test "$GCC" = yes; then
10681 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10682 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10683 else
10684 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10685 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10686 fi
10687 ;;
10688
10689 sysv5* | sco3.2v5* | sco5v6*)
10690 # Note: We can NOT use -z defs as we might desire, because we do not
10691 # link with -lc, and that would cause any symbols used from libc to
10692 # always be unresolved, which means just about no library would
10693 # ever link correctly. If we're not using GNU ld we use -z text
10694 # though, which does catch some bad symbols but isn't as heavy-handed
10695 # as -z defs.
10696 no_undefined_flag='${wl}-z,text'
10697 allow_undefined_flag='${wl}-z,nodefs'
10698 archive_cmds_need_lc=no
10699 hardcode_shlibpath_var=no
10700 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10701 hardcode_libdir_separator=':'
10702 link_all_deplibs=yes
10703 export_dynamic_flag_spec='${wl}-Bexport'
10704 runpath_var='LD_RUN_PATH'
10705
10706 if test "$GCC" = yes; then
10707 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10708 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10709 else
10710 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10711 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10712 fi
10713 ;;
10714
10715 uts4*)
10716 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10717 hardcode_libdir_flag_spec='-L$libdir'
10718 hardcode_shlibpath_var=no
10719 ;;
10720
10721 *)
10722 ld_shlibs=no
10723 ;;
10724 esac
10725
10726 if test x$host_vendor = xsni; then
10727 case $host in
10728 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10729 export_dynamic_flag_spec='${wl}-Blargedynsym'
10730 ;;
10731 esac
10732 fi
10733 fi
10734
10735 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10736 $as_echo "$ld_shlibs" >&6; }
10737 test "$ld_shlibs" = no && can_build_shared=no
10738
10739 with_gnu_ld=$with_gnu_ld
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755 #
10756 # Do we need to explicitly link libc?
10757 #
10758 case "x$archive_cmds_need_lc" in
10759 x|xyes)
10760 # Assume -lc should be added
10761 archive_cmds_need_lc=yes
10762
10763 if test "$enable_shared" = yes && test "$GCC" = yes; then
10764 case $archive_cmds in
10765 *'~'*)
10766 # FIXME: we may have to deal with multi-command sequences.
10767 ;;
10768 '$CC '*)
10769 # Test whether the compiler implicitly links with -lc since on some
10770 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10771 # to ld, don't add -lc before -lgcc.
10772 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10773 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10774 $RM conftest*
10775 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10776
10777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10778 (eval $ac_compile) 2>&5
10779 ac_status=$?
10780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); } 2>conftest.err; then
10782 soname=conftest
10783 lib=conftest
10784 libobjs=conftest.$ac_objext
10785 deplibs=
10786 wl=$lt_prog_compiler_wl
10787 pic_flag=$lt_prog_compiler_pic
10788 compiler_flags=-v
10789 linker_flags=-v
10790 verstring=
10791 output_objdir=.
10792 libname=conftest
10793 lt_save_allow_undefined_flag=$allow_undefined_flag
10794 allow_undefined_flag=
10795 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10796 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10797 ac_status=$?
10798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }
10800 then
10801 archive_cmds_need_lc=no
10802 else
10803 archive_cmds_need_lc=yes
10804 fi
10805 allow_undefined_flag=$lt_save_allow_undefined_flag
10806 else
10807 cat conftest.err 1>&5
10808 fi
10809 $RM conftest*
10810 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10811 $as_echo "$archive_cmds_need_lc" >&6; }
10812 ;;
10813 esac
10814 fi
10815 ;;
10816 esac
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
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
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10975 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10976
10977 if test "$GCC" = yes; then
10978 case $host_os in
10979 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10980 *) lt_awk_arg="/^libraries:/" ;;
10981 esac
10982 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10983 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10984 # if the path contains ";" then we assume it to be the separator
10985 # otherwise default to the standard path separator (i.e. ":") - it is
10986 # assumed that no part of a normal pathname contains ";" but that should
10987 # okay in the real world where ";" in dirpaths is itself problematic.
10988 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10989 else
10990 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10991 fi
10992 # Ok, now we have the path, separated by spaces, we can step through it
10993 # and add multilib dir if necessary.
10994 lt_tmp_lt_search_path_spec=
10995 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10996 for lt_sys_path in $lt_search_path_spec; do
10997 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10998 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10999 else
11000 test -d "$lt_sys_path" && \
11001 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11002 fi
11003 done
11004 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11005 BEGIN {RS=" "; FS="/|\n";} {
11006 lt_foo="";
11007 lt_count=0;
11008 for (lt_i = NF; lt_i > 0; lt_i--) {
11009 if ($lt_i != "" && $lt_i != ".") {
11010 if ($lt_i == "..") {
11011 lt_count++;
11012 } else {
11013 if (lt_count == 0) {
11014 lt_foo="/" $lt_i lt_foo;
11015 } else {
11016 lt_count--;
11017 }
11018 }
11019 }
11020 }
11021 if (lt_foo != "") { lt_freq[lt_foo]++; }
11022 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11023 }'`
11024 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11025 else
11026 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11027 fi
11028 library_names_spec=
11029 libname_spec='lib$name'
11030 soname_spec=
11031 shrext_cmds=".so"
11032 postinstall_cmds=
11033 postuninstall_cmds=
11034 finish_cmds=
11035 finish_eval=
11036 shlibpath_var=
11037 shlibpath_overrides_runpath=unknown
11038 version_type=none
11039 dynamic_linker="$host_os ld.so"
11040 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11041 need_lib_prefix=unknown
11042 hardcode_into_libs=no
11043
11044 # when you set need_version to no, make sure it does not cause -set_version
11045 # flags to be left without arguments
11046 need_version=unknown
11047
11048 case $host_os in
11049 aix3*)
11050 version_type=linux
11051 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11052 shlibpath_var=LIBPATH
11053
11054 # AIX 3 has no versioning support, so we append a major version to the name.
11055 soname_spec='${libname}${release}${shared_ext}$major'
11056 ;;
11057
11058 aix[4-9]*)
11059 version_type=linux
11060 need_lib_prefix=no
11061 need_version=no
11062 hardcode_into_libs=yes
11063 if test "$host_cpu" = ia64; then
11064 # AIX 5 supports IA64
11065 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11066 shlibpath_var=LD_LIBRARY_PATH
11067 else
11068 # With GCC up to 2.95.x, collect2 would create an import file
11069 # for dependence libraries. The import file would start with
11070 # the line `#! .'. This would cause the generated library to
11071 # depend on `.', always an invalid library. This was fixed in
11072 # development snapshots of GCC prior to 3.0.
11073 case $host_os in
11074 aix4 | aix4.[01] | aix4.[01].*)
11075 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11076 echo ' yes '
11077 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11078 :
11079 else
11080 can_build_shared=no
11081 fi
11082 ;;
11083 esac
11084 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11085 # soname into executable. Probably we can add versioning support to
11086 # collect2, so additional links can be useful in future.
11087 if test "$aix_use_runtimelinking" = yes; then
11088 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11089 # instead of lib<name>.a to let people know that these are not
11090 # typical AIX shared libraries.
11091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11092 else
11093 # We preserve .a as extension for shared libraries through AIX4.2
11094 # and later when we are not doing run time linking.
11095 library_names_spec='${libname}${release}.a $libname.a'
11096 soname_spec='${libname}${release}${shared_ext}$major'
11097 fi
11098 shlibpath_var=LIBPATH
11099 fi
11100 ;;
11101
11102 amigaos*)
11103 case $host_cpu in
11104 powerpc)
11105 # Since July 2007 AmigaOS4 officially supports .so libraries.
11106 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11108 ;;
11109 m68k)
11110 library_names_spec='$libname.ixlibrary $libname.a'
11111 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11112 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'
11113 ;;
11114 esac
11115 ;;
11116
11117 beos*)
11118 library_names_spec='${libname}${shared_ext}'
11119 dynamic_linker="$host_os ld.so"
11120 shlibpath_var=LIBRARY_PATH
11121 ;;
11122
11123 bsdi[45]*)
11124 version_type=linux
11125 need_version=no
11126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11127 soname_spec='${libname}${release}${shared_ext}$major'
11128 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11129 shlibpath_var=LD_LIBRARY_PATH
11130 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11131 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11132 # the default ld.so.conf also contains /usr/contrib/lib and
11133 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11134 # libtool to hard-code these into programs
11135 ;;
11136
11137 cygwin* | mingw* | pw32* | cegcc*)
11138 version_type=windows
11139 shrext_cmds=".dll"
11140 need_version=no
11141 need_lib_prefix=no
11142
11143 case $GCC,$host_os in
11144 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11145 library_names_spec='$libname.dll.a'
11146 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11147 postinstall_cmds='base_file=`basename \${file}`~
11148 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11149 dldir=$destdir/`dirname \$dlpath`~
11150 test -d \$dldir || mkdir -p \$dldir~
11151 $install_prog $dir/$dlname \$dldir/$dlname~
11152 chmod a+x \$dldir/$dlname~
11153 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11154 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11155 fi'
11156 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11157 dlpath=$dir/\$dldll~
11158 $RM \$dlpath'
11159 shlibpath_overrides_runpath=yes
11160
11161 case $host_os in
11162 cygwin*)
11163 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11164 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11165 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11166 ;;
11167 mingw* | cegcc*)
11168 # MinGW DLLs use traditional 'lib' prefix
11169 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11170 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11171 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11172 # It is most probably a Windows format PATH printed by
11173 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11174 # path with ; separators, and with drive letters. We can handle the
11175 # drive letters (cygwin fileutils understands them), so leave them,
11176 # especially as we might pass files found there to a mingw objdump,
11177 # which wouldn't understand a cygwinified path. Ahh.
11178 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11179 else
11180 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11181 fi
11182 ;;
11183 pw32*)
11184 # pw32 DLLs use 'pw' prefix rather than 'lib'
11185 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11186 ;;
11187 esac
11188 ;;
11189
11190 *)
11191 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11192 ;;
11193 esac
11194 dynamic_linker='Win32 ld.exe'
11195 # FIXME: first we should search . and the directory the executable is in
11196 shlibpath_var=PATH
11197 ;;
11198
11199 darwin* | rhapsody*)
11200 dynamic_linker="$host_os dyld"
11201 version_type=darwin
11202 need_lib_prefix=no
11203 need_version=no
11204 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11205 soname_spec='${libname}${release}${major}$shared_ext'
11206 shlibpath_overrides_runpath=yes
11207 shlibpath_var=DYLD_LIBRARY_PATH
11208 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11209
11210 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11211 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11212 ;;
11213
11214 dgux*)
11215 version_type=linux
11216 need_lib_prefix=no
11217 need_version=no
11218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11219 soname_spec='${libname}${release}${shared_ext}$major'
11220 shlibpath_var=LD_LIBRARY_PATH
11221 ;;
11222
11223 freebsd1*)
11224 dynamic_linker=no
11225 ;;
11226
11227 freebsd* | dragonfly*)
11228 # DragonFly does not have aout. When/if they implement a new
11229 # versioning mechanism, adjust this.
11230 if test -x /usr/bin/objformat; then
11231 objformat=`/usr/bin/objformat`
11232 else
11233 case $host_os in
11234 freebsd[123]*) objformat=aout ;;
11235 *) objformat=elf ;;
11236 esac
11237 fi
11238 version_type=freebsd-$objformat
11239 case $version_type in
11240 freebsd-elf*)
11241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11242 need_version=no
11243 need_lib_prefix=no
11244 ;;
11245 freebsd-*)
11246 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11247 need_version=yes
11248 ;;
11249 esac
11250 shlibpath_var=LD_LIBRARY_PATH
11251 case $host_os in
11252 freebsd2*)
11253 shlibpath_overrides_runpath=yes
11254 ;;
11255 freebsd3.[01]* | freebsdelf3.[01]*)
11256 shlibpath_overrides_runpath=yes
11257 hardcode_into_libs=yes
11258 ;;
11259 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11260 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11261 shlibpath_overrides_runpath=no
11262 hardcode_into_libs=yes
11263 ;;
11264 *) # from 4.6 on, and DragonFly
11265 shlibpath_overrides_runpath=yes
11266 hardcode_into_libs=yes
11267 ;;
11268 esac
11269 ;;
11270
11271 gnu*)
11272 version_type=linux
11273 need_lib_prefix=no
11274 need_version=no
11275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11276 soname_spec='${libname}${release}${shared_ext}$major'
11277 shlibpath_var=LD_LIBRARY_PATH
11278 hardcode_into_libs=yes
11279 ;;
11280
11281 hpux9* | hpux10* | hpux11*)
11282 # Give a soname corresponding to the major version so that dld.sl refuses to
11283 # link against other versions.
11284 version_type=sunos
11285 need_lib_prefix=no
11286 need_version=no
11287 case $host_cpu in
11288 ia64*)
11289 shrext_cmds='.so'
11290 hardcode_into_libs=yes
11291 dynamic_linker="$host_os dld.so"
11292 shlibpath_var=LD_LIBRARY_PATH
11293 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11295 soname_spec='${libname}${release}${shared_ext}$major'
11296 if test "X$HPUX_IA64_MODE" = X32; then
11297 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11298 else
11299 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11300 fi
11301 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11302 ;;
11303 hppa*64*)
11304 shrext_cmds='.sl'
11305 hardcode_into_libs=yes
11306 dynamic_linker="$host_os dld.sl"
11307 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11308 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11310 soname_spec='${libname}${release}${shared_ext}$major'
11311 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11312 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11313 ;;
11314 *)
11315 shrext_cmds='.sl'
11316 dynamic_linker="$host_os dld.sl"
11317 shlibpath_var=SHLIB_PATH
11318 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11320 soname_spec='${libname}${release}${shared_ext}$major'
11321 ;;
11322 esac
11323 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11324 postinstall_cmds='chmod 555 $lib'
11325 ;;
11326
11327 interix[3-9]*)
11328 version_type=linux
11329 need_lib_prefix=no
11330 need_version=no
11331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11332 soname_spec='${libname}${release}${shared_ext}$major'
11333 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11334 shlibpath_var=LD_LIBRARY_PATH
11335 shlibpath_overrides_runpath=no
11336 hardcode_into_libs=yes
11337 ;;
11338
11339 irix5* | irix6* | nonstopux*)
11340 case $host_os in
11341 nonstopux*) version_type=nonstopux ;;
11342 *)
11343 if test "$lt_cv_prog_gnu_ld" = yes; then
11344 version_type=linux
11345 else
11346 version_type=irix
11347 fi ;;
11348 esac
11349 need_lib_prefix=no
11350 need_version=no
11351 soname_spec='${libname}${release}${shared_ext}$major'
11352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11353 case $host_os in
11354 irix5* | nonstopux*)
11355 libsuff= shlibsuff=
11356 ;;
11357 *)
11358 case $LD in # libtool.m4 will add one of these switches to LD
11359 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11360 libsuff= shlibsuff= libmagic=32-bit;;
11361 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11362 libsuff=32 shlibsuff=N32 libmagic=N32;;
11363 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11364 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11365 *) libsuff= shlibsuff= libmagic=never-match;;
11366 esac
11367 ;;
11368 esac
11369 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11370 shlibpath_overrides_runpath=no
11371 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11372 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11373 hardcode_into_libs=yes
11374 ;;
11375
11376 # No shared lib support for Linux oldld, aout, or coff.
11377 linux*oldld* | linux*aout* | linux*coff*)
11378 dynamic_linker=no
11379 ;;
11380
11381 # This must be Linux ELF.
11382 linux* | k*bsd*-gnu)
11383 version_type=linux
11384 need_lib_prefix=no
11385 need_version=no
11386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11387 soname_spec='${libname}${release}${shared_ext}$major'
11388 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11389 shlibpath_var=LD_LIBRARY_PATH
11390 shlibpath_overrides_runpath=no
11391 # Some binutils ld are patched to set DT_RUNPATH
11392 save_LDFLAGS=$LDFLAGS
11393 save_libdir=$libdir
11394 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11395 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11396 cat >conftest.$ac_ext <<_ACEOF
11397 /* confdefs.h. */
11398 _ACEOF
11399 cat confdefs.h >>conftest.$ac_ext
11400 cat >>conftest.$ac_ext <<_ACEOF
11401 /* end confdefs.h. */
11402
11403 int
11404 main ()
11405 {
11406
11407 ;
11408 return 0;
11409 }
11410 _ACEOF
11411 rm -f conftest.$ac_objext conftest$ac_exeext
11412 if { (ac_try="$ac_link"
11413 case "(($ac_try" in
11414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11415 *) ac_try_echo=$ac_try;;
11416 esac
11417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11418 $as_echo "$ac_try_echo") >&5
11419 (eval "$ac_link") 2>conftest.er1
11420 ac_status=$?
11421 grep -v '^ *+' conftest.er1 >conftest.err
11422 rm -f conftest.er1
11423 cat conftest.err >&5
11424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); } && {
11426 test -z "$ac_c_werror_flag" ||
11427 test ! -s conftest.err
11428 } && test -s conftest$ac_exeext && {
11429 test "$cross_compiling" = yes ||
11430 $as_test_x conftest$ac_exeext
11431 }; then
11432 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11433 shlibpath_overrides_runpath=yes
11434 fi
11435
11436 else
11437 $as_echo "$as_me: failed program was:" >&5
11438 sed 's/^/| /' conftest.$ac_ext >&5
11439
11440
11441 fi
11442
11443 rm -rf conftest.dSYM
11444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11445 conftest$ac_exeext conftest.$ac_ext
11446 LDFLAGS=$save_LDFLAGS
11447 libdir=$save_libdir
11448
11449 # This implies no fast_install, which is unacceptable.
11450 # Some rework will be needed to allow for fast_install
11451 # before this can be enabled.
11452 hardcode_into_libs=yes
11453
11454 # Append ld.so.conf contents to the search path
11455 if test -f /etc/ld.so.conf; then
11456 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' ' '`
11457 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11458 fi
11459
11460 # We used to test for /lib/ld.so.1 and disable shared libraries on
11461 # powerpc, because MkLinux only supported shared libraries with the
11462 # GNU dynamic linker. Since this was broken with cross compilers,
11463 # most powerpc-linux boxes support dynamic linking these days and
11464 # people can always --disable-shared, the test was removed, and we
11465 # assume the GNU/Linux dynamic linker is in use.
11466 dynamic_linker='GNU/Linux ld.so'
11467 ;;
11468
11469 netbsd*)
11470 version_type=sunos
11471 need_lib_prefix=no
11472 need_version=no
11473 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11475 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11476 dynamic_linker='NetBSD (a.out) ld.so'
11477 else
11478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11479 soname_spec='${libname}${release}${shared_ext}$major'
11480 dynamic_linker='NetBSD ld.elf_so'
11481 fi
11482 shlibpath_var=LD_LIBRARY_PATH
11483 shlibpath_overrides_runpath=yes
11484 hardcode_into_libs=yes
11485 ;;
11486
11487 newsos6)
11488 version_type=linux
11489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11490 shlibpath_var=LD_LIBRARY_PATH
11491 shlibpath_overrides_runpath=yes
11492 ;;
11493
11494 *nto* | *qnx*)
11495 version_type=qnx
11496 need_lib_prefix=no
11497 need_version=no
11498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11499 soname_spec='${libname}${release}${shared_ext}$major'
11500 shlibpath_var=LD_LIBRARY_PATH
11501 shlibpath_overrides_runpath=no
11502 hardcode_into_libs=yes
11503 dynamic_linker='ldqnx.so'
11504 ;;
11505
11506 openbsd*)
11507 version_type=sunos
11508 sys_lib_dlsearch_path_spec="/usr/lib"
11509 need_lib_prefix=no
11510 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11511 case $host_os in
11512 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11513 *) need_version=no ;;
11514 esac
11515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11516 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11517 shlibpath_var=LD_LIBRARY_PATH
11518 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11519 case $host_os in
11520 openbsd2.[89] | openbsd2.[89].*)
11521 shlibpath_overrides_runpath=no
11522 ;;
11523 *)
11524 shlibpath_overrides_runpath=yes
11525 ;;
11526 esac
11527 else
11528 shlibpath_overrides_runpath=yes
11529 fi
11530 ;;
11531
11532 os2*)
11533 libname_spec='$name'
11534 shrext_cmds=".dll"
11535 need_lib_prefix=no
11536 library_names_spec='$libname${shared_ext} $libname.a'
11537 dynamic_linker='OS/2 ld.exe'
11538 shlibpath_var=LIBPATH
11539 ;;
11540
11541 osf3* | osf4* | osf5*)
11542 version_type=osf
11543 need_lib_prefix=no
11544 need_version=no
11545 soname_spec='${libname}${release}${shared_ext}$major'
11546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11547 shlibpath_var=LD_LIBRARY_PATH
11548 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11549 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11550 ;;
11551
11552 rdos*)
11553 dynamic_linker=no
11554 ;;
11555
11556 solaris*)
11557 version_type=linux
11558 need_lib_prefix=no
11559 need_version=no
11560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11561 soname_spec='${libname}${release}${shared_ext}$major'
11562 shlibpath_var=LD_LIBRARY_PATH
11563 shlibpath_overrides_runpath=yes
11564 hardcode_into_libs=yes
11565 # ldd complains unless libraries are executable
11566 postinstall_cmds='chmod +x $lib'
11567 ;;
11568
11569 sunos4*)
11570 version_type=sunos
11571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11572 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11573 shlibpath_var=LD_LIBRARY_PATH
11574 shlibpath_overrides_runpath=yes
11575 if test "$with_gnu_ld" = yes; then
11576 need_lib_prefix=no
11577 fi
11578 need_version=yes
11579 ;;
11580
11581 sysv4 | sysv4.3*)
11582 version_type=linux
11583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11584 soname_spec='${libname}${release}${shared_ext}$major'
11585 shlibpath_var=LD_LIBRARY_PATH
11586 case $host_vendor in
11587 sni)
11588 shlibpath_overrides_runpath=no
11589 need_lib_prefix=no
11590 runpath_var=LD_RUN_PATH
11591 ;;
11592 siemens)
11593 need_lib_prefix=no
11594 ;;
11595 motorola)
11596 need_lib_prefix=no
11597 need_version=no
11598 shlibpath_overrides_runpath=no
11599 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11600 ;;
11601 esac
11602 ;;
11603
11604 sysv4*MP*)
11605 if test -d /usr/nec ;then
11606 version_type=linux
11607 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11608 soname_spec='$libname${shared_ext}.$major'
11609 shlibpath_var=LD_LIBRARY_PATH
11610 fi
11611 ;;
11612
11613 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11614 version_type=freebsd-elf
11615 need_lib_prefix=no
11616 need_version=no
11617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11618 soname_spec='${libname}${release}${shared_ext}$major'
11619 shlibpath_var=LD_LIBRARY_PATH
11620 shlibpath_overrides_runpath=yes
11621 hardcode_into_libs=yes
11622 if test "$with_gnu_ld" = yes; then
11623 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11624 else
11625 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11626 case $host_os in
11627 sco3.2v5*)
11628 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11629 ;;
11630 esac
11631 fi
11632 sys_lib_dlsearch_path_spec='/usr/lib'
11633 ;;
11634
11635 tpf*)
11636 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11637 version_type=linux
11638 need_lib_prefix=no
11639 need_version=no
11640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11641 shlibpath_var=LD_LIBRARY_PATH
11642 shlibpath_overrides_runpath=no
11643 hardcode_into_libs=yes
11644 ;;
11645
11646 uts4*)
11647 version_type=linux
11648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11649 soname_spec='${libname}${release}${shared_ext}$major'
11650 shlibpath_var=LD_LIBRARY_PATH
11651 ;;
11652
11653 *)
11654 dynamic_linker=no
11655 ;;
11656 esac
11657 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11658 $as_echo "$dynamic_linker" >&6; }
11659 test "$dynamic_linker" = no && can_build_shared=no
11660
11661 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11662 if test "$GCC" = yes; then
11663 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11664 fi
11665
11666 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11667 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11668 fi
11669 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11670 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11671 fi
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11760 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11761 hardcode_action=
11762 if test -n "$hardcode_libdir_flag_spec" ||
11763 test -n "$runpath_var" ||
11764 test "X$hardcode_automatic" = "Xyes" ; then
11765
11766 # We can hardcode non-existent directories.
11767 if test "$hardcode_direct" != no &&
11768 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11769 # have to relink, otherwise we might link with an installed library
11770 # when we should be linking with a yet-to-be-installed one
11771 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11772 test "$hardcode_minus_L" != no; then
11773 # Linking always hardcodes the temporary library directory.
11774 hardcode_action=relink
11775 else
11776 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11777 hardcode_action=immediate
11778 fi
11779 else
11780 # We cannot hardcode anything, or else we can only hardcode existing
11781 # directories.
11782 hardcode_action=unsupported
11783 fi
11784 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11785 $as_echo "$hardcode_action" >&6; }
11786
11787 if test "$hardcode_action" = relink ||
11788 test "$inherit_rpath" = yes; then
11789 # Fast installation is not supported
11790 enable_fast_install=no
11791 elif test "$shlibpath_overrides_runpath" = yes ||
11792 test "$enable_shared" = no; then
11793 # Fast installation is not necessary
11794 enable_fast_install=needless
11795 fi
11796
11797
11798
11799
11800
11801
11802 if test "x$enable_dlopen" != xyes; then
11803 enable_dlopen=unknown
11804 enable_dlopen_self=unknown
11805 enable_dlopen_self_static=unknown
11806 else
11807 lt_cv_dlopen=no
11808 lt_cv_dlopen_libs=
11809
11810 case $host_os in
11811 beos*)
11812 lt_cv_dlopen="load_add_on"
11813 lt_cv_dlopen_libs=
11814 lt_cv_dlopen_self=yes
11815 ;;
11816
11817 mingw* | pw32* | cegcc*)
11818 lt_cv_dlopen="LoadLibrary"
11819 lt_cv_dlopen_libs=
11820 ;;
11821
11822 cygwin*)
11823 lt_cv_dlopen="dlopen"
11824 lt_cv_dlopen_libs=
11825 ;;
11826
11827 darwin*)
11828 # if libdl is installed we need to link against it
11829 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11830 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11831 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11832 $as_echo_n "(cached) " >&6
11833 else
11834 ac_check_lib_save_LIBS=$LIBS
11835 LIBS="-ldl $LIBS"
11836 cat >conftest.$ac_ext <<_ACEOF
11837 /* confdefs.h. */
11838 _ACEOF
11839 cat confdefs.h >>conftest.$ac_ext
11840 cat >>conftest.$ac_ext <<_ACEOF
11841 /* end confdefs.h. */
11842
11843 /* Override any GCC internal prototype to avoid an error.
11844 Use char because int might match the return type of a GCC
11845 builtin and then its argument prototype would still apply. */
11846 #ifdef __cplusplus
11847 extern "C"
11848 #endif
11849 char dlopen ();
11850 int
11851 main ()
11852 {
11853 return dlopen ();
11854 ;
11855 return 0;
11856 }
11857 _ACEOF
11858 rm -f conftest.$ac_objext conftest$ac_exeext
11859 if { (ac_try="$ac_link"
11860 case "(($ac_try" in
11861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11862 *) ac_try_echo=$ac_try;;
11863 esac
11864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11865 $as_echo "$ac_try_echo") >&5
11866 (eval "$ac_link") 2>conftest.er1
11867 ac_status=$?
11868 grep -v '^ *+' conftest.er1 >conftest.err
11869 rm -f conftest.er1
11870 cat conftest.err >&5
11871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); } && {
11873 test -z "$ac_c_werror_flag" ||
11874 test ! -s conftest.err
11875 } && test -s conftest$ac_exeext && {
11876 test "$cross_compiling" = yes ||
11877 $as_test_x conftest$ac_exeext
11878 }; then
11879 ac_cv_lib_dl_dlopen=yes
11880 else
11881 $as_echo "$as_me: failed program was:" >&5
11882 sed 's/^/| /' conftest.$ac_ext >&5
11883
11884 ac_cv_lib_dl_dlopen=no
11885 fi
11886
11887 rm -rf conftest.dSYM
11888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11889 conftest$ac_exeext conftest.$ac_ext
11890 LIBS=$ac_check_lib_save_LIBS
11891 fi
11892 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11893 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11894 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11895 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11896 else
11897
11898 lt_cv_dlopen="dyld"
11899 lt_cv_dlopen_libs=
11900 lt_cv_dlopen_self=yes
11901
11902 fi
11903
11904 ;;
11905
11906 *)
11907 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11908 $as_echo_n "checking for shl_load... " >&6; }
11909 if test "${ac_cv_func_shl_load+set}" = set; then
11910 $as_echo_n "(cached) " >&6
11911 else
11912 cat >conftest.$ac_ext <<_ACEOF
11913 /* confdefs.h. */
11914 _ACEOF
11915 cat confdefs.h >>conftest.$ac_ext
11916 cat >>conftest.$ac_ext <<_ACEOF
11917 /* end confdefs.h. */
11918 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11920 #define shl_load innocuous_shl_load
11921
11922 /* System header to define __stub macros and hopefully few prototypes,
11923 which can conflict with char shl_load (); below.
11924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11925 <limits.h> exists even on freestanding compilers. */
11926
11927 #ifdef __STDC__
11928 # include <limits.h>
11929 #else
11930 # include <assert.h>
11931 #endif
11932
11933 #undef shl_load
11934
11935 /* Override any GCC internal prototype to avoid an error.
11936 Use char because int might match the return type of a GCC
11937 builtin and then its argument prototype would still apply. */
11938 #ifdef __cplusplus
11939 extern "C"
11940 #endif
11941 char shl_load ();
11942 /* The GNU C library defines this for functions which it implements
11943 to always fail with ENOSYS. Some functions are actually named
11944 something starting with __ and the normal name is an alias. */
11945 #if defined __stub_shl_load || defined __stub___shl_load
11946 choke me
11947 #endif
11948
11949 int
11950 main ()
11951 {
11952 return shl_load ();
11953 ;
11954 return 0;
11955 }
11956 _ACEOF
11957 rm -f conftest.$ac_objext conftest$ac_exeext
11958 if { (ac_try="$ac_link"
11959 case "(($ac_try" in
11960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11961 *) ac_try_echo=$ac_try;;
11962 esac
11963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11964 $as_echo "$ac_try_echo") >&5
11965 (eval "$ac_link") 2>conftest.er1
11966 ac_status=$?
11967 grep -v '^ *+' conftest.er1 >conftest.err
11968 rm -f conftest.er1
11969 cat conftest.err >&5
11970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); } && {
11972 test -z "$ac_c_werror_flag" ||
11973 test ! -s conftest.err
11974 } && test -s conftest$ac_exeext && {
11975 test "$cross_compiling" = yes ||
11976 $as_test_x conftest$ac_exeext
11977 }; then
11978 ac_cv_func_shl_load=yes
11979 else
11980 $as_echo "$as_me: failed program was:" >&5
11981 sed 's/^/| /' conftest.$ac_ext >&5
11982
11983 ac_cv_func_shl_load=no
11984 fi
11985
11986 rm -rf conftest.dSYM
11987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11988 conftest$ac_exeext conftest.$ac_ext
11989 fi
11990 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11991 $as_echo "$ac_cv_func_shl_load" >&6; }
11992 if test "x$ac_cv_func_shl_load" = x""yes; then
11993 lt_cv_dlopen="shl_load"
11994 else
11995 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11996 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11997 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11998 $as_echo_n "(cached) " >&6
11999 else
12000 ac_check_lib_save_LIBS=$LIBS
12001 LIBS="-ldld $LIBS"
12002 cat >conftest.$ac_ext <<_ACEOF
12003 /* confdefs.h. */
12004 _ACEOF
12005 cat confdefs.h >>conftest.$ac_ext
12006 cat >>conftest.$ac_ext <<_ACEOF
12007 /* end confdefs.h. */
12008
12009 /* Override any GCC internal prototype to avoid an error.
12010 Use char because int might match the return type of a GCC
12011 builtin and then its argument prototype would still apply. */
12012 #ifdef __cplusplus
12013 extern "C"
12014 #endif
12015 char shl_load ();
12016 int
12017 main ()
12018 {
12019 return shl_load ();
12020 ;
12021 return 0;
12022 }
12023 _ACEOF
12024 rm -f conftest.$ac_objext conftest$ac_exeext
12025 if { (ac_try="$ac_link"
12026 case "(($ac_try" in
12027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12028 *) ac_try_echo=$ac_try;;
12029 esac
12030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12031 $as_echo "$ac_try_echo") >&5
12032 (eval "$ac_link") 2>conftest.er1
12033 ac_status=$?
12034 grep -v '^ *+' conftest.er1 >conftest.err
12035 rm -f conftest.er1
12036 cat conftest.err >&5
12037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); } && {
12039 test -z "$ac_c_werror_flag" ||
12040 test ! -s conftest.err
12041 } && test -s conftest$ac_exeext && {
12042 test "$cross_compiling" = yes ||
12043 $as_test_x conftest$ac_exeext
12044 }; then
12045 ac_cv_lib_dld_shl_load=yes
12046 else
12047 $as_echo "$as_me: failed program was:" >&5
12048 sed 's/^/| /' conftest.$ac_ext >&5
12049
12050 ac_cv_lib_dld_shl_load=no
12051 fi
12052
12053 rm -rf conftest.dSYM
12054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12055 conftest$ac_exeext conftest.$ac_ext
12056 LIBS=$ac_check_lib_save_LIBS
12057 fi
12058 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12059 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12060 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
12061 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12062 else
12063 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
12064 $as_echo_n "checking for dlopen... " >&6; }
12065 if test "${ac_cv_func_dlopen+set}" = set; then
12066 $as_echo_n "(cached) " >&6
12067 else
12068 cat >conftest.$ac_ext <<_ACEOF
12069 /* confdefs.h. */
12070 _ACEOF
12071 cat confdefs.h >>conftest.$ac_ext
12072 cat >>conftest.$ac_ext <<_ACEOF
12073 /* end confdefs.h. */
12074 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12076 #define dlopen innocuous_dlopen
12077
12078 /* System header to define __stub macros and hopefully few prototypes,
12079 which can conflict with char dlopen (); below.
12080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12081 <limits.h> exists even on freestanding compilers. */
12082
12083 #ifdef __STDC__
12084 # include <limits.h>
12085 #else
12086 # include <assert.h>
12087 #endif
12088
12089 #undef dlopen
12090
12091 /* Override any GCC internal prototype to avoid an error.
12092 Use char because int might match the return type of a GCC
12093 builtin and then its argument prototype would still apply. */
12094 #ifdef __cplusplus
12095 extern "C"
12096 #endif
12097 char dlopen ();
12098 /* The GNU C library defines this for functions which it implements
12099 to always fail with ENOSYS. Some functions are actually named
12100 something starting with __ and the normal name is an alias. */
12101 #if defined __stub_dlopen || defined __stub___dlopen
12102 choke me
12103 #endif
12104
12105 int
12106 main ()
12107 {
12108 return dlopen ();
12109 ;
12110 return 0;
12111 }
12112 _ACEOF
12113 rm -f conftest.$ac_objext conftest$ac_exeext
12114 if { (ac_try="$ac_link"
12115 case "(($ac_try" in
12116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12117 *) ac_try_echo=$ac_try;;
12118 esac
12119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12120 $as_echo "$ac_try_echo") >&5
12121 (eval "$ac_link") 2>conftest.er1
12122 ac_status=$?
12123 grep -v '^ *+' conftest.er1 >conftest.err
12124 rm -f conftest.er1
12125 cat conftest.err >&5
12126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); } && {
12128 test -z "$ac_c_werror_flag" ||
12129 test ! -s conftest.err
12130 } && test -s conftest$ac_exeext && {
12131 test "$cross_compiling" = yes ||
12132 $as_test_x conftest$ac_exeext
12133 }; then
12134 ac_cv_func_dlopen=yes
12135 else
12136 $as_echo "$as_me: failed program was:" >&5
12137 sed 's/^/| /' conftest.$ac_ext >&5
12138
12139 ac_cv_func_dlopen=no
12140 fi
12141
12142 rm -rf conftest.dSYM
12143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12144 conftest$ac_exeext conftest.$ac_ext
12145 fi
12146 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12147 $as_echo "$ac_cv_func_dlopen" >&6; }
12148 if test "x$ac_cv_func_dlopen" = x""yes; then
12149 lt_cv_dlopen="dlopen"
12150 else
12151 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12152 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12153 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12154 $as_echo_n "(cached) " >&6
12155 else
12156 ac_check_lib_save_LIBS=$LIBS
12157 LIBS="-ldl $LIBS"
12158 cat >conftest.$ac_ext <<_ACEOF
12159 /* confdefs.h. */
12160 _ACEOF
12161 cat confdefs.h >>conftest.$ac_ext
12162 cat >>conftest.$ac_ext <<_ACEOF
12163 /* end confdefs.h. */
12164
12165 /* Override any GCC internal prototype to avoid an error.
12166 Use char because int might match the return type of a GCC
12167 builtin and then its argument prototype would still apply. */
12168 #ifdef __cplusplus
12169 extern "C"
12170 #endif
12171 char dlopen ();
12172 int
12173 main ()
12174 {
12175 return dlopen ();
12176 ;
12177 return 0;
12178 }
12179 _ACEOF
12180 rm -f conftest.$ac_objext conftest$ac_exeext
12181 if { (ac_try="$ac_link"
12182 case "(($ac_try" in
12183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12184 *) ac_try_echo=$ac_try;;
12185 esac
12186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12187 $as_echo "$ac_try_echo") >&5
12188 (eval "$ac_link") 2>conftest.er1
12189 ac_status=$?
12190 grep -v '^ *+' conftest.er1 >conftest.err
12191 rm -f conftest.er1
12192 cat conftest.err >&5
12193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); } && {
12195 test -z "$ac_c_werror_flag" ||
12196 test ! -s conftest.err
12197 } && test -s conftest$ac_exeext && {
12198 test "$cross_compiling" = yes ||
12199 $as_test_x conftest$ac_exeext
12200 }; then
12201 ac_cv_lib_dl_dlopen=yes
12202 else
12203 $as_echo "$as_me: failed program was:" >&5
12204 sed 's/^/| /' conftest.$ac_ext >&5
12205
12206 ac_cv_lib_dl_dlopen=no
12207 fi
12208
12209 rm -rf conftest.dSYM
12210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12211 conftest$ac_exeext conftest.$ac_ext
12212 LIBS=$ac_check_lib_save_LIBS
12213 fi
12214 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12215 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12216 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12217 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12218 else
12219 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12220 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12221 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12222 $as_echo_n "(cached) " >&6
12223 else
12224 ac_check_lib_save_LIBS=$LIBS
12225 LIBS="-lsvld $LIBS"
12226 cat >conftest.$ac_ext <<_ACEOF
12227 /* confdefs.h. */
12228 _ACEOF
12229 cat confdefs.h >>conftest.$ac_ext
12230 cat >>conftest.$ac_ext <<_ACEOF
12231 /* end confdefs.h. */
12232
12233 /* Override any GCC internal prototype to avoid an error.
12234 Use char because int might match the return type of a GCC
12235 builtin and then its argument prototype would still apply. */
12236 #ifdef __cplusplus
12237 extern "C"
12238 #endif
12239 char dlopen ();
12240 int
12241 main ()
12242 {
12243 return dlopen ();
12244 ;
12245 return 0;
12246 }
12247 _ACEOF
12248 rm -f conftest.$ac_objext conftest$ac_exeext
12249 if { (ac_try="$ac_link"
12250 case "(($ac_try" in
12251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12252 *) ac_try_echo=$ac_try;;
12253 esac
12254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12255 $as_echo "$ac_try_echo") >&5
12256 (eval "$ac_link") 2>conftest.er1
12257 ac_status=$?
12258 grep -v '^ *+' conftest.er1 >conftest.err
12259 rm -f conftest.er1
12260 cat conftest.err >&5
12261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); } && {
12263 test -z "$ac_c_werror_flag" ||
12264 test ! -s conftest.err
12265 } && test -s conftest$ac_exeext && {
12266 test "$cross_compiling" = yes ||
12267 $as_test_x conftest$ac_exeext
12268 }; then
12269 ac_cv_lib_svld_dlopen=yes
12270 else
12271 $as_echo "$as_me: failed program was:" >&5
12272 sed 's/^/| /' conftest.$ac_ext >&5
12273
12274 ac_cv_lib_svld_dlopen=no
12275 fi
12276
12277 rm -rf conftest.dSYM
12278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12279 conftest$ac_exeext conftest.$ac_ext
12280 LIBS=$ac_check_lib_save_LIBS
12281 fi
12282 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12283 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12284 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12285 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12286 else
12287 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12288 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12289 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12290 $as_echo_n "(cached) " >&6
12291 else
12292 ac_check_lib_save_LIBS=$LIBS
12293 LIBS="-ldld $LIBS"
12294 cat >conftest.$ac_ext <<_ACEOF
12295 /* confdefs.h. */
12296 _ACEOF
12297 cat confdefs.h >>conftest.$ac_ext
12298 cat >>conftest.$ac_ext <<_ACEOF
12299 /* end confdefs.h. */
12300
12301 /* Override any GCC internal prototype to avoid an error.
12302 Use char because int might match the return type of a GCC
12303 builtin and then its argument prototype would still apply. */
12304 #ifdef __cplusplus
12305 extern "C"
12306 #endif
12307 char dld_link ();
12308 int
12309 main ()
12310 {
12311 return dld_link ();
12312 ;
12313 return 0;
12314 }
12315 _ACEOF
12316 rm -f conftest.$ac_objext conftest$ac_exeext
12317 if { (ac_try="$ac_link"
12318 case "(($ac_try" in
12319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12320 *) ac_try_echo=$ac_try;;
12321 esac
12322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12323 $as_echo "$ac_try_echo") >&5
12324 (eval "$ac_link") 2>conftest.er1
12325 ac_status=$?
12326 grep -v '^ *+' conftest.er1 >conftest.err
12327 rm -f conftest.er1
12328 cat conftest.err >&5
12329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); } && {
12331 test -z "$ac_c_werror_flag" ||
12332 test ! -s conftest.err
12333 } && test -s conftest$ac_exeext && {
12334 test "$cross_compiling" = yes ||
12335 $as_test_x conftest$ac_exeext
12336 }; then
12337 ac_cv_lib_dld_dld_link=yes
12338 else
12339 $as_echo "$as_me: failed program was:" >&5
12340 sed 's/^/| /' conftest.$ac_ext >&5
12341
12342 ac_cv_lib_dld_dld_link=no
12343 fi
12344
12345 rm -rf conftest.dSYM
12346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12347 conftest$ac_exeext conftest.$ac_ext
12348 LIBS=$ac_check_lib_save_LIBS
12349 fi
12350 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12351 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12352 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12353 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12354 fi
12355
12356
12357 fi
12358
12359
12360 fi
12361
12362
12363 fi
12364
12365
12366 fi
12367
12368
12369 fi
12370
12371 ;;
12372 esac
12373
12374 if test "x$lt_cv_dlopen" != xno; then
12375 enable_dlopen=yes
12376 else
12377 enable_dlopen=no
12378 fi
12379
12380 case $lt_cv_dlopen in
12381 dlopen)
12382 save_CPPFLAGS="$CPPFLAGS"
12383 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12384
12385 save_LDFLAGS="$LDFLAGS"
12386 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12387
12388 save_LIBS="$LIBS"
12389 LIBS="$lt_cv_dlopen_libs $LIBS"
12390
12391 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12392 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12393 if test "${lt_cv_dlopen_self+set}" = set; then
12394 $as_echo_n "(cached) " >&6
12395 else
12396 if test "$cross_compiling" = yes; then :
12397 lt_cv_dlopen_self=cross
12398 else
12399 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12400 lt_status=$lt_dlunknown
12401 cat > conftest.$ac_ext <<_LT_EOF
12402 #line 12402 "configure"
12403 #include "confdefs.h"
12404
12405 #if HAVE_DLFCN_H
12406 #include <dlfcn.h>
12407 #endif
12408
12409 #include <stdio.h>
12410
12411 #ifdef RTLD_GLOBAL
12412 # define LT_DLGLOBAL RTLD_GLOBAL
12413 #else
12414 # ifdef DL_GLOBAL
12415 # define LT_DLGLOBAL DL_GLOBAL
12416 # else
12417 # define LT_DLGLOBAL 0
12418 # endif
12419 #endif
12420
12421 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12422 find out it does not work in some platform. */
12423 #ifndef LT_DLLAZY_OR_NOW
12424 # ifdef RTLD_LAZY
12425 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12426 # else
12427 # ifdef DL_LAZY
12428 # define LT_DLLAZY_OR_NOW DL_LAZY
12429 # else
12430 # ifdef RTLD_NOW
12431 # define LT_DLLAZY_OR_NOW RTLD_NOW
12432 # else
12433 # ifdef DL_NOW
12434 # define LT_DLLAZY_OR_NOW DL_NOW
12435 # else
12436 # define LT_DLLAZY_OR_NOW 0
12437 # endif
12438 # endif
12439 # endif
12440 # endif
12441 #endif
12442
12443 void fnord() { int i=42;}
12444 int main ()
12445 {
12446 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12447 int status = $lt_dlunknown;
12448
12449 if (self)
12450 {
12451 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12452 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12453 /* dlclose (self); */
12454 }
12455 else
12456 puts (dlerror ());
12457
12458 return status;
12459 }
12460 _LT_EOF
12461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12462 (eval $ac_link) 2>&5
12463 ac_status=$?
12464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12466 (./conftest; exit; ) >&5 2>/dev/null
12467 lt_status=$?
12468 case x$lt_status in
12469 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12470 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12471 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12472 esac
12473 else :
12474 # compilation failed
12475 lt_cv_dlopen_self=no
12476 fi
12477 fi
12478 rm -fr conftest*
12479
12480
12481 fi
12482 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12483 $as_echo "$lt_cv_dlopen_self" >&6; }
12484
12485 if test "x$lt_cv_dlopen_self" = xyes; then
12486 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12487 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12488 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12489 if test "${lt_cv_dlopen_self_static+set}" = set; then
12490 $as_echo_n "(cached) " >&6
12491 else
12492 if test "$cross_compiling" = yes; then :
12493 lt_cv_dlopen_self_static=cross
12494 else
12495 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12496 lt_status=$lt_dlunknown
12497 cat > conftest.$ac_ext <<_LT_EOF
12498 #line 12498 "configure"
12499 #include "confdefs.h"
12500
12501 #if HAVE_DLFCN_H
12502 #include <dlfcn.h>
12503 #endif
12504
12505 #include <stdio.h>
12506
12507 #ifdef RTLD_GLOBAL
12508 # define LT_DLGLOBAL RTLD_GLOBAL
12509 #else
12510 # ifdef DL_GLOBAL
12511 # define LT_DLGLOBAL DL_GLOBAL
12512 # else
12513 # define LT_DLGLOBAL 0
12514 # endif
12515 #endif
12516
12517 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12518 find out it does not work in some platform. */
12519 #ifndef LT_DLLAZY_OR_NOW
12520 # ifdef RTLD_LAZY
12521 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12522 # else
12523 # ifdef DL_LAZY
12524 # define LT_DLLAZY_OR_NOW DL_LAZY
12525 # else
12526 # ifdef RTLD_NOW
12527 # define LT_DLLAZY_OR_NOW RTLD_NOW
12528 # else
12529 # ifdef DL_NOW
12530 # define LT_DLLAZY_OR_NOW DL_NOW
12531 # else
12532 # define LT_DLLAZY_OR_NOW 0
12533 # endif
12534 # endif
12535 # endif
12536 # endif
12537 #endif
12538
12539 void fnord() { int i=42;}
12540 int main ()
12541 {
12542 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12543 int status = $lt_dlunknown;
12544
12545 if (self)
12546 {
12547 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12548 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12549 /* dlclose (self); */
12550 }
12551 else
12552 puts (dlerror ());
12553
12554 return status;
12555 }
12556 _LT_EOF
12557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12558 (eval $ac_link) 2>&5
12559 ac_status=$?
12560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12562 (./conftest; exit; ) >&5 2>/dev/null
12563 lt_status=$?
12564 case x$lt_status in
12565 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12566 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12567 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12568 esac
12569 else :
12570 # compilation failed
12571 lt_cv_dlopen_self_static=no
12572 fi
12573 fi
12574 rm -fr conftest*
12575
12576
12577 fi
12578 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12579 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12580 fi
12581
12582 CPPFLAGS="$save_CPPFLAGS"
12583 LDFLAGS="$save_LDFLAGS"
12584 LIBS="$save_LIBS"
12585 ;;
12586 esac
12587
12588 case $lt_cv_dlopen_self in
12589 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12590 *) enable_dlopen_self=unknown ;;
12591 esac
12592
12593 case $lt_cv_dlopen_self_static in
12594 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12595 *) enable_dlopen_self_static=unknown ;;
12596 esac
12597 fi
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615 striplib=
12616 old_striplib=
12617 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12618 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12619 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12620 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12621 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12622 { $as_echo "$as_me:$LINENO: result: yes" >&5
12623 $as_echo "yes" >&6; }
12624 else
12625 # FIXME - insert some real tests, host_os isn't really good enough
12626 case $host_os in
12627 darwin*)
12628 if test -n "$STRIP" ; then
12629 striplib="$STRIP -x"
12630 old_striplib="$STRIP -S"
12631 { $as_echo "$as_me:$LINENO: result: yes" >&5
12632 $as_echo "yes" >&6; }
12633 else
12634 { $as_echo "$as_me:$LINENO: result: no" >&5
12635 $as_echo "no" >&6; }
12636 fi
12637 ;;
12638 *)
12639 { $as_echo "$as_me:$LINENO: result: no" >&5
12640 $as_echo "no" >&6; }
12641 ;;
12642 esac
12643 fi
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656 # Report which library types will actually be built
12657 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12658 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12659 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12660 $as_echo "$can_build_shared" >&6; }
12661
12662 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12663 $as_echo_n "checking whether to build shared libraries... " >&6; }
12664 test "$can_build_shared" = "no" && enable_shared=no
12665
12666 # On AIX, shared libraries and static libraries use the same namespace, and
12667 # are all built from PIC.
12668 case $host_os in
12669 aix3*)
12670 test "$enable_shared" = yes && enable_static=no
12671 if test -n "$RANLIB"; then
12672 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12673 postinstall_cmds='$RANLIB $lib'
12674 fi
12675 ;;
12676
12677 aix[4-9]*)
12678 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12679 test "$enable_shared" = yes && enable_static=no
12680 fi
12681 ;;
12682 esac
12683 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12684 $as_echo "$enable_shared" >&6; }
12685
12686 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12687 $as_echo_n "checking whether to build static libraries... " >&6; }
12688 # Make sure either enable_shared or enable_static is yes.
12689 test "$enable_shared" = yes || enable_static=yes
12690 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12691 $as_echo "$enable_static" >&6; }
12692
12693
12694
12695
12696 fi
12697 ac_ext=c
12698 ac_cpp='$CPP $CPPFLAGS'
12699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12702
12703 CC="$lt_save_CC"
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717 ac_config_commands="$ac_config_commands libtool"
12718
12719
12720
12721
12722 # Only expand once:
12723
12724
12725
12726 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12727 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12728 # Check whether --enable-maintainer-mode was given.
12729 if test "${enable_maintainer_mode+set}" = set; then
12730 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12731 else
12732 USE_MAINTAINER_MODE=no
12733 fi
12734
12735 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12736 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12737 if test $USE_MAINTAINER_MODE = yes; then
12738 MAINTAINER_MODE_TRUE=
12739 MAINTAINER_MODE_FALSE='#'
12740 else
12741 MAINTAINER_MODE_TRUE='#'
12742 MAINTAINER_MODE_FALSE=
12743 fi
12744
12745 MAINT=$MAINTAINER_MODE_TRUE
12746
12747
12748
12749 { $as_echo "$as_me:$LINENO: checking for Win32" >&5
12750 $as_echo_n "checking for Win32... " >&6; }
12751 case "$host" in
12752 *-*-mingw*)
12753 os_win32=yes
12754 ;;
12755 *)
12756 os_win32=no
12757
12758 ;;
12759 esac
12760 { $as_echo "$as_me:$LINENO: result: $os_win32" >&5
12761 $as_echo "$os_win32" >&6; }
12762 if test $os_win32 = yes; then
12763 OS_WIN32_TRUE=
12764 OS_WIN32_FALSE='#'
12765 else
12766 OS_WIN32_TRUE='#'
12767 OS_WIN32_FALSE=
12768 fi
12769
12770
12771
12772
12773 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12774 if test -n "$ac_tool_prefix"; then
12775 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12776 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12777 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12778 $as_echo_n "checking for $ac_word... " >&6; }
12779 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12780 $as_echo_n "(cached) " >&6
12781 else
12782 case $PKG_CONFIG in
12783 [\\/]* | ?:[\\/]*)
12784 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12785 ;;
12786 *)
12787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12788 for as_dir in $PATH
12789 do
12790 IFS=$as_save_IFS
12791 test -z "$as_dir" && as_dir=.
12792 for ac_exec_ext in '' $ac_executable_extensions; do
12793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12794 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12795 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12796 break 2
12797 fi
12798 done
12799 done
12800 IFS=$as_save_IFS
12801
12802 ;;
12803 esac
12804 fi
12805 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12806 if test -n "$PKG_CONFIG"; then
12807 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12808 $as_echo "$PKG_CONFIG" >&6; }
12809 else
12810 { $as_echo "$as_me:$LINENO: result: no" >&5
12811 $as_echo "no" >&6; }
12812 fi
12813
12814
12815 fi
12816 if test -z "$ac_cv_path_PKG_CONFIG"; then
12817 ac_pt_PKG_CONFIG=$PKG_CONFIG
12818 # Extract the first word of "pkg-config", so it can be a program name with args.
12819 set dummy pkg-config; ac_word=$2
12820 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12821 $as_echo_n "checking for $ac_word... " >&6; }
12822 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
12823 $as_echo_n "(cached) " >&6
12824 else
12825 case $ac_pt_PKG_CONFIG in
12826 [\\/]* | ?:[\\/]*)
12827 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12828 ;;
12829 *)
12830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12831 for as_dir in $PATH
12832 do
12833 IFS=$as_save_IFS
12834 test -z "$as_dir" && as_dir=.
12835 for ac_exec_ext in '' $ac_executable_extensions; do
12836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12837 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12838 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12839 break 2
12840 fi
12841 done
12842 done
12843 IFS=$as_save_IFS
12844
12845 ;;
12846 esac
12847 fi
12848 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12849 if test -n "$ac_pt_PKG_CONFIG"; then
12850 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
12851 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12852 else
12853 { $as_echo "$as_me:$LINENO: result: no" >&5
12854 $as_echo "no" >&6; }
12855 fi
12856
12857 if test "x$ac_pt_PKG_CONFIG" = x; then
12858 PKG_CONFIG=""
12859 else
12860 case $cross_compiling:$ac_tool_warned in
12861 yes:)
12862 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12864 ac_tool_warned=yes ;;
12865 esac
12866 PKG_CONFIG=$ac_pt_PKG_CONFIG
12867 fi
12868 else
12869 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12870 fi
12871
12872 fi
12873 if test -n "$PKG_CONFIG"; then
12874 _pkg_min_version=0.9.0
12875 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
12876 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12877 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12878 { $as_echo "$as_me:$LINENO: result: yes" >&5
12879 $as_echo "yes" >&6; }
12880 else
12881 { $as_echo "$as_me:$LINENO: result: no" >&5
12882 $as_echo "no" >&6; }
12883 PKG_CONFIG=""
12884 fi
12885
12886 fi
12887
12888 pkg_failed=no
12889 { $as_echo "$as_me:$LINENO: checking for LIBIDL" >&5
12890 $as_echo_n "checking for LIBIDL... " >&6; }
12891
12892 if test -n "$LIBIDL_CFLAGS"; then
12893 pkg_cv_LIBIDL_CFLAGS="$LIBIDL_CFLAGS"
12894 elif test -n "$PKG_CONFIG"; then
12895 if test -n "$PKG_CONFIG" && \
12896 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.4.0\"") >&5
12897 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.4.0") 2>&5
12898 ac_status=$?
12899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); }; then
12901 pkg_cv_LIBIDL_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4.0" 2>/dev/null`
12902 else
12903 pkg_failed=yes
12904 fi
12905 else
12906 pkg_failed=untried
12907 fi
12908 if test -n "$LIBIDL_LIBS"; then
12909 pkg_cv_LIBIDL_LIBS="$LIBIDL_LIBS"
12910 elif test -n "$PKG_CONFIG"; then
12911 if test -n "$PKG_CONFIG" && \
12912 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.4.0\"") >&5
12913 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.4.0") 2>&5
12914 ac_status=$?
12915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); }; then
12917 pkg_cv_LIBIDL_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4.0" 2>/dev/null`
12918 else
12919 pkg_failed=yes
12920 fi
12921 else
12922 pkg_failed=untried
12923 fi
12924
12925
12926
12927 if test $pkg_failed = yes; then
12928
12929 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12930 _pkg_short_errors_supported=yes
12931 else
12932 _pkg_short_errors_supported=no
12933 fi
12934 if test $_pkg_short_errors_supported = yes; then
12935 LIBIDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= 2.4.0" 2>&1`
12936 else
12937 LIBIDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= 2.4.0" 2>&1`
12938 fi
12939 # Put the nasty error message in config.log where it belongs
12940 echo "$LIBIDL_PKG_ERRORS" >&5
12941
12942 { { $as_echo "$as_me:$LINENO: error: Package requirements (glib-2.0 >= 2.4.0) were not met:
12943
12944 $LIBIDL_PKG_ERRORS
12945
12946 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12947 installed software in a non-standard prefix.
12948
12949 Alternatively, you may set the environment variables LIBIDL_CFLAGS
12950 and LIBIDL_LIBS to avoid the need to call pkg-config.
12951 See the pkg-config man page for more details.
12952 " >&5
12953 $as_echo "$as_me: error: Package requirements (glib-2.0 >= 2.4.0) were not met:
12954
12955 $LIBIDL_PKG_ERRORS
12956
12957 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12958 installed software in a non-standard prefix.
12959
12960 Alternatively, you may set the environment variables LIBIDL_CFLAGS
12961 and LIBIDL_LIBS to avoid the need to call pkg-config.
12962 See the pkg-config man page for more details.
12963 " >&2;}
12964 { (exit 1); exit 1; }; }
12965 elif test $pkg_failed = untried; then
12966 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12968 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12969 is in your PATH or set the PKG_CONFIG environment variable to the full
12970 path to pkg-config.
12971
12972 Alternatively, you may set the environment variables LIBIDL_CFLAGS
12973 and LIBIDL_LIBS to avoid the need to call pkg-config.
12974 See the pkg-config man page for more details.
12975
12976 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12977 See \`config.log' for more details." >&5
12978 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12979 is in your PATH or set the PKG_CONFIG environment variable to the full
12980 path to pkg-config.
12981
12982 Alternatively, you may set the environment variables LIBIDL_CFLAGS
12983 and LIBIDL_LIBS to avoid the need to call pkg-config.
12984 See the pkg-config man page for more details.
12985
12986 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12987 See \`config.log' for more details." >&2;}
12988 { (exit 1); exit 1; }; }; }
12989 else
12990 LIBIDL_CFLAGS=$pkg_cv_LIBIDL_CFLAGS
12991 LIBIDL_LIBS=$pkg_cv_LIBIDL_LIBS
12992 { $as_echo "$as_me:$LINENO: result: yes" >&5
12993 $as_echo "yes" >&6; }
12994 :
12995 fi
12996
12997 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12998 $as_echo_n "checking for ANSI C header files... " >&6; }
12999 if test "${ac_cv_header_stdc+set}" = set; then
13000 $as_echo_n "(cached) " >&6
13001 else
13002 cat >conftest.$ac_ext <<_ACEOF
13003 /* confdefs.h. */
13004 _ACEOF
13005 cat confdefs.h >>conftest.$ac_ext
13006 cat >>conftest.$ac_ext <<_ACEOF
13007 /* end confdefs.h. */
13008 #include <stdlib.h>
13009 #include <stdarg.h>
13010 #include <string.h>
13011 #include <float.h>
13012
13013 int
13014 main ()
13015 {
13016
13017 ;
13018 return 0;
13019 }
13020 _ACEOF
13021 rm -f conftest.$ac_objext
13022 if { (ac_try="$ac_compile"
13023 case "(($ac_try" in
13024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13025 *) ac_try_echo=$ac_try;;
13026 esac
13027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13028 $as_echo "$ac_try_echo") >&5
13029 (eval "$ac_compile") 2>conftest.er1
13030 ac_status=$?
13031 grep -v '^ *+' conftest.er1 >conftest.err
13032 rm -f conftest.er1
13033 cat conftest.err >&5
13034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); } && {
13036 test -z "$ac_c_werror_flag" ||
13037 test ! -s conftest.err
13038 } && test -s conftest.$ac_objext; then
13039 ac_cv_header_stdc=yes
13040 else
13041 $as_echo "$as_me: failed program was:" >&5
13042 sed 's/^/| /' conftest.$ac_ext >&5
13043
13044 ac_cv_header_stdc=no
13045 fi
13046
13047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13048
13049 if test $ac_cv_header_stdc = yes; then
13050 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13051 cat >conftest.$ac_ext <<_ACEOF
13052 /* confdefs.h. */
13053 _ACEOF
13054 cat confdefs.h >>conftest.$ac_ext
13055 cat >>conftest.$ac_ext <<_ACEOF
13056 /* end confdefs.h. */
13057 #include <string.h>
13058
13059 _ACEOF
13060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13061 $EGREP "memchr" >/dev/null 2>&1; then
13062 :
13063 else
13064 ac_cv_header_stdc=no
13065 fi
13066 rm -f conftest*
13067
13068 fi
13069
13070 if test $ac_cv_header_stdc = yes; then
13071 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13072 cat >conftest.$ac_ext <<_ACEOF
13073 /* confdefs.h. */
13074 _ACEOF
13075 cat confdefs.h >>conftest.$ac_ext
13076 cat >>conftest.$ac_ext <<_ACEOF
13077 /* end confdefs.h. */
13078 #include <stdlib.h>
13079
13080 _ACEOF
13081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13082 $EGREP "free" >/dev/null 2>&1; then
13083 :
13084 else
13085 ac_cv_header_stdc=no
13086 fi
13087 rm -f conftest*
13088
13089 fi
13090
13091 if test $ac_cv_header_stdc = yes; then
13092 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13093 if test "$cross_compiling" = yes; then
13094 :
13095 else
13096 cat >conftest.$ac_ext <<_ACEOF
13097 /* confdefs.h. */
13098 _ACEOF
13099 cat confdefs.h >>conftest.$ac_ext
13100 cat >>conftest.$ac_ext <<_ACEOF
13101 /* end confdefs.h. */
13102 #include <ctype.h>
13103 #include <stdlib.h>
13104 #if ((' ' & 0x0FF) == 0x020)
13105 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13106 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13107 #else
13108 # define ISLOWER(c) \
13109 (('a' <= (c) && (c) <= 'i') \
13110 || ('j' <= (c) && (c) <= 'r') \
13111 || ('s' <= (c) && (c) <= 'z'))
13112 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13113 #endif
13114
13115 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13116 int
13117 main ()
13118 {
13119 int i;
13120 for (i = 0; i < 256; i++)
13121 if (XOR (islower (i), ISLOWER (i))
13122 || toupper (i) != TOUPPER (i))
13123 return 2;
13124 return 0;
13125 }
13126 _ACEOF
13127 rm -f conftest$ac_exeext
13128 if { (ac_try="$ac_link"
13129 case "(($ac_try" in
13130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131 *) ac_try_echo=$ac_try;;
13132 esac
13133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13134 $as_echo "$ac_try_echo") >&5
13135 (eval "$ac_link") 2>&5
13136 ac_status=$?
13137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13139 { (case "(($ac_try" in
13140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13141 *) ac_try_echo=$ac_try;;
13142 esac
13143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13144 $as_echo "$ac_try_echo") >&5
13145 (eval "$ac_try") 2>&5
13146 ac_status=$?
13147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); }; }; then
13149 :
13150 else
13151 $as_echo "$as_me: program exited with status $ac_status" >&5
13152 $as_echo "$as_me: failed program was:" >&5
13153 sed 's/^/| /' conftest.$ac_ext >&5
13154
13155 ( exit $ac_status )
13156 ac_cv_header_stdc=no
13157 fi
13158 rm -rf conftest.dSYM
13159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13160 fi
13161
13162
13163 fi
13164 fi
13165 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13166 $as_echo "$ac_cv_header_stdc" >&6; }
13167 if test $ac_cv_header_stdc = yes; then
13168
13169 cat >>confdefs.h <<\_ACEOF
13170 #define STDC_HEADERS 1
13171 _ACEOF
13172
13173 fi
13174
13175
13176 for ac_header in stddef.h
13177 do
13178 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13180 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13181 $as_echo_n "checking for $ac_header... " >&6; }
13182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13183 $as_echo_n "(cached) " >&6
13184 fi
13185 ac_res=`eval 'as_val=${'$as_ac_Header'}
13186 $as_echo "$as_val"'`
13187 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13188 $as_echo "$ac_res" >&6; }
13189 else
13190 # Is the header compilable?
13191 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13192 $as_echo_n "checking $ac_header usability... " >&6; }
13193 cat >conftest.$ac_ext <<_ACEOF
13194 /* confdefs.h. */
13195 _ACEOF
13196 cat confdefs.h >>conftest.$ac_ext
13197 cat >>conftest.$ac_ext <<_ACEOF
13198 /* end confdefs.h. */
13199 $ac_includes_default
13200 #include <$ac_header>
13201 _ACEOF
13202 rm -f conftest.$ac_objext
13203 if { (ac_try="$ac_compile"
13204 case "(($ac_try" in
13205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13206 *) ac_try_echo=$ac_try;;
13207 esac
13208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13209 $as_echo "$ac_try_echo") >&5
13210 (eval "$ac_compile") 2>conftest.er1
13211 ac_status=$?
13212 grep -v '^ *+' conftest.er1 >conftest.err
13213 rm -f conftest.er1
13214 cat conftest.err >&5
13215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); } && {
13217 test -z "$ac_c_werror_flag" ||
13218 test ! -s conftest.err
13219 } && test -s conftest.$ac_objext; then
13220 ac_header_compiler=yes
13221 else
13222 $as_echo "$as_me: failed program was:" >&5
13223 sed 's/^/| /' conftest.$ac_ext >&5
13224
13225 ac_header_compiler=no
13226 fi
13227
13228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13229 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13230 $as_echo "$ac_header_compiler" >&6; }
13231
13232 # Is the header present?
13233 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13234 $as_echo_n "checking $ac_header presence... " >&6; }
13235 cat >conftest.$ac_ext <<_ACEOF
13236 /* confdefs.h. */
13237 _ACEOF
13238 cat confdefs.h >>conftest.$ac_ext
13239 cat >>conftest.$ac_ext <<_ACEOF
13240 /* end confdefs.h. */
13241 #include <$ac_header>
13242 _ACEOF
13243 if { (ac_try="$ac_cpp conftest.$ac_ext"
13244 case "(($ac_try" in
13245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13246 *) ac_try_echo=$ac_try;;
13247 esac
13248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13249 $as_echo "$ac_try_echo") >&5
13250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13251 ac_status=$?
13252 grep -v '^ *+' conftest.er1 >conftest.err
13253 rm -f conftest.er1
13254 cat conftest.err >&5
13255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); } >/dev/null && {
13257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13258 test ! -s conftest.err
13259 }; then
13260 ac_header_preproc=yes
13261 else
13262 $as_echo "$as_me: failed program was:" >&5
13263 sed 's/^/| /' conftest.$ac_ext >&5
13264
13265 ac_header_preproc=no
13266 fi
13267
13268 rm -f conftest.err conftest.$ac_ext
13269 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13270 $as_echo "$ac_header_preproc" >&6; }
13271
13272 # So? What about this header?
13273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13274 yes:no: )
13275 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13276 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13278 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13279 ac_header_preproc=yes
13280 ;;
13281 no:yes:* )
13282 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13283 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13285 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13286 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13287 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13288 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13289 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13290 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13291 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13292 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13293 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13294 ( cat <<\_ASBOX
13295 ## --------------------------------------------------------------------- ##
13296 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=libIDL ##
13297 ## --------------------------------------------------------------------- ##
13298 _ASBOX
13299 ) | sed "s/^/$as_me: WARNING: /" >&2
13300 ;;
13301 esac
13302 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13303 $as_echo_n "checking for $ac_header... " >&6; }
13304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13305 $as_echo_n "(cached) " >&6
13306 else
13307 eval "$as_ac_Header=\$ac_header_preproc"
13308 fi
13309 ac_res=`eval 'as_val=${'$as_ac_Header'}
13310 $as_echo "$as_val"'`
13311 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13312 $as_echo "$ac_res" >&6; }
13313
13314 fi
13315 as_val=`eval 'as_val=${'$as_ac_Header'}
13316 $as_echo "$as_val"'`
13317 if test "x$as_val" = x""yes; then
13318 cat >>confdefs.h <<_ACEOF
13319 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13320 _ACEOF
13321
13322 fi
13323
13324 done
13325
13326
13327 for ac_header in unistd.h
13328 do
13329 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13331 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13332 $as_echo_n "checking for $ac_header... " >&6; }
13333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13334 $as_echo_n "(cached) " >&6
13335 fi
13336 ac_res=`eval 'as_val=${'$as_ac_Header'}
13337 $as_echo "$as_val"'`
13338 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13339 $as_echo "$ac_res" >&6; }
13340 else
13341 # Is the header compilable?
13342 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13343 $as_echo_n "checking $ac_header usability... " >&6; }
13344 cat >conftest.$ac_ext <<_ACEOF
13345 /* confdefs.h. */
13346 _ACEOF
13347 cat confdefs.h >>conftest.$ac_ext
13348 cat >>conftest.$ac_ext <<_ACEOF
13349 /* end confdefs.h. */
13350 $ac_includes_default
13351 #include <$ac_header>
13352 _ACEOF
13353 rm -f conftest.$ac_objext
13354 if { (ac_try="$ac_compile"
13355 case "(($ac_try" in
13356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13357 *) ac_try_echo=$ac_try;;
13358 esac
13359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13360 $as_echo "$ac_try_echo") >&5
13361 (eval "$ac_compile") 2>conftest.er1
13362 ac_status=$?
13363 grep -v '^ *+' conftest.er1 >conftest.err
13364 rm -f conftest.er1
13365 cat conftest.err >&5
13366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); } && {
13368 test -z "$ac_c_werror_flag" ||
13369 test ! -s conftest.err
13370 } && test -s conftest.$ac_objext; then
13371 ac_header_compiler=yes
13372 else
13373 $as_echo "$as_me: failed program was:" >&5
13374 sed 's/^/| /' conftest.$ac_ext >&5
13375
13376 ac_header_compiler=no
13377 fi
13378
13379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13380 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13381 $as_echo "$ac_header_compiler" >&6; }
13382
13383 # Is the header present?
13384 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13385 $as_echo_n "checking $ac_header presence... " >&6; }
13386 cat >conftest.$ac_ext <<_ACEOF
13387 /* confdefs.h. */
13388 _ACEOF
13389 cat confdefs.h >>conftest.$ac_ext
13390 cat >>conftest.$ac_ext <<_ACEOF
13391 /* end confdefs.h. */
13392 #include <$ac_header>
13393 _ACEOF
13394 if { (ac_try="$ac_cpp conftest.$ac_ext"
13395 case "(($ac_try" in
13396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13397 *) ac_try_echo=$ac_try;;
13398 esac
13399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13400 $as_echo "$ac_try_echo") >&5
13401 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13402 ac_status=$?
13403 grep -v '^ *+' conftest.er1 >conftest.err
13404 rm -f conftest.er1
13405 cat conftest.err >&5
13406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); } >/dev/null && {
13408 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13409 test ! -s conftest.err
13410 }; then
13411 ac_header_preproc=yes
13412 else
13413 $as_echo "$as_me: failed program was:" >&5
13414 sed 's/^/| /' conftest.$ac_ext >&5
13415
13416 ac_header_preproc=no
13417 fi
13418
13419 rm -f conftest.err conftest.$ac_ext
13420 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13421 $as_echo "$ac_header_preproc" >&6; }
13422
13423 # So? What about this header?
13424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13425 yes:no: )
13426 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13427 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13428 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13429 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13430 ac_header_preproc=yes
13431 ;;
13432 no:yes:* )
13433 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13434 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13435 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13436 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13437 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13438 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13439 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13440 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13441 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13442 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13443 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13444 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13445 ( cat <<\_ASBOX
13446 ## --------------------------------------------------------------------- ##
13447 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=libIDL ##
13448 ## --------------------------------------------------------------------- ##
13449 _ASBOX
13450 ) | sed "s/^/$as_me: WARNING: /" >&2
13451 ;;
13452 esac
13453 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13454 $as_echo_n "checking for $ac_header... " >&6; }
13455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13456 $as_echo_n "(cached) " >&6
13457 else
13458 eval "$as_ac_Header=\$ac_header_preproc"
13459 fi
13460 ac_res=`eval 'as_val=${'$as_ac_Header'}
13461 $as_echo "$as_val"'`
13462 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13463 $as_echo "$ac_res" >&6; }
13464
13465 fi
13466 as_val=`eval 'as_val=${'$as_ac_Header'}
13467 $as_echo "$as_val"'`
13468 if test "x$as_val" = x""yes; then
13469 cat >>confdefs.h <<_ACEOF
13470 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13471 _ACEOF
13472
13473 fi
13474
13475 done
13476
13477
13478 for ac_header in wchar.h
13479 do
13480 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13482 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13483 $as_echo_n "checking for $ac_header... " >&6; }
13484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13485 $as_echo_n "(cached) " >&6
13486 fi
13487 ac_res=`eval 'as_val=${'$as_ac_Header'}
13488 $as_echo "$as_val"'`
13489 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13490 $as_echo "$ac_res" >&6; }
13491 else
13492 # Is the header compilable?
13493 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13494 $as_echo_n "checking $ac_header usability... " >&6; }
13495 cat >conftest.$ac_ext <<_ACEOF
13496 /* confdefs.h. */
13497 _ACEOF
13498 cat confdefs.h >>conftest.$ac_ext
13499 cat >>conftest.$ac_ext <<_ACEOF
13500 /* end confdefs.h. */
13501 $ac_includes_default
13502 #include <$ac_header>
13503 _ACEOF
13504 rm -f conftest.$ac_objext
13505 if { (ac_try="$ac_compile"
13506 case "(($ac_try" in
13507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13508 *) ac_try_echo=$ac_try;;
13509 esac
13510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13511 $as_echo "$ac_try_echo") >&5
13512 (eval "$ac_compile") 2>conftest.er1
13513 ac_status=$?
13514 grep -v '^ *+' conftest.er1 >conftest.err
13515 rm -f conftest.er1
13516 cat conftest.err >&5
13517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); } && {
13519 test -z "$ac_c_werror_flag" ||
13520 test ! -s conftest.err
13521 } && test -s conftest.$ac_objext; then
13522 ac_header_compiler=yes
13523 else
13524 $as_echo "$as_me: failed program was:" >&5
13525 sed 's/^/| /' conftest.$ac_ext >&5
13526
13527 ac_header_compiler=no
13528 fi
13529
13530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13531 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13532 $as_echo "$ac_header_compiler" >&6; }
13533
13534 # Is the header present?
13535 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13536 $as_echo_n "checking $ac_header presence... " >&6; }
13537 cat >conftest.$ac_ext <<_ACEOF
13538 /* confdefs.h. */
13539 _ACEOF
13540 cat confdefs.h >>conftest.$ac_ext
13541 cat >>conftest.$ac_ext <<_ACEOF
13542 /* end confdefs.h. */
13543 #include <$ac_header>
13544 _ACEOF
13545 if { (ac_try="$ac_cpp conftest.$ac_ext"
13546 case "(($ac_try" in
13547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13548 *) ac_try_echo=$ac_try;;
13549 esac
13550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13551 $as_echo "$ac_try_echo") >&5
13552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13553 ac_status=$?
13554 grep -v '^ *+' conftest.er1 >conftest.err
13555 rm -f conftest.er1
13556 cat conftest.err >&5
13557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); } >/dev/null && {
13559 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13560 test ! -s conftest.err
13561 }; then
13562 ac_header_preproc=yes
13563 else
13564 $as_echo "$as_me: failed program was:" >&5
13565 sed 's/^/| /' conftest.$ac_ext >&5
13566
13567 ac_header_preproc=no
13568 fi
13569
13570 rm -f conftest.err conftest.$ac_ext
13571 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13572 $as_echo "$ac_header_preproc" >&6; }
13573
13574 # So? What about this header?
13575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13576 yes:no: )
13577 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13578 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13579 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13580 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13581 ac_header_preproc=yes
13582 ;;
13583 no:yes:* )
13584 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13585 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13586 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13587 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13588 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13589 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13590 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13591 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13592 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13593 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13594 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13595 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13596 ( cat <<\_ASBOX
13597 ## --------------------------------------------------------------------- ##
13598 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=libIDL ##
13599 ## --------------------------------------------------------------------- ##
13600 _ASBOX
13601 ) | sed "s/^/$as_me: WARNING: /" >&2
13602 ;;
13603 esac
13604 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13605 $as_echo_n "checking for $ac_header... " >&6; }
13606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13607 $as_echo_n "(cached) " >&6
13608 else
13609 eval "$as_ac_Header=\$ac_header_preproc"
13610 fi
13611 ac_res=`eval 'as_val=${'$as_ac_Header'}
13612 $as_echo "$as_val"'`
13613 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13614 $as_echo "$ac_res" >&6; }
13615
13616 fi
13617 as_val=`eval 'as_val=${'$as_ac_Header'}
13618 $as_echo "$as_val"'`
13619 if test "x$as_val" = x""yes; then
13620 cat >>confdefs.h <<_ACEOF
13621 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13622 _ACEOF
13623 HAVE_WCHAR_H=1
13624 fi
13625
13626 done
13627
13628
13629 for ac_header in wcstr.h
13630 do
13631 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13633 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13634 $as_echo_n "checking for $ac_header... " >&6; }
13635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13636 $as_echo_n "(cached) " >&6
13637 fi
13638 ac_res=`eval 'as_val=${'$as_ac_Header'}
13639 $as_echo "$as_val"'`
13640 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13641 $as_echo "$ac_res" >&6; }
13642 else
13643 # Is the header compilable?
13644 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13645 $as_echo_n "checking $ac_header usability... " >&6; }
13646 cat >conftest.$ac_ext <<_ACEOF
13647 /* confdefs.h. */
13648 _ACEOF
13649 cat confdefs.h >>conftest.$ac_ext
13650 cat >>conftest.$ac_ext <<_ACEOF
13651 /* end confdefs.h. */
13652 $ac_includes_default
13653 #include <$ac_header>
13654 _ACEOF
13655 rm -f conftest.$ac_objext
13656 if { (ac_try="$ac_compile"
13657 case "(($ac_try" in
13658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13659 *) ac_try_echo=$ac_try;;
13660 esac
13661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13662 $as_echo "$ac_try_echo") >&5
13663 (eval "$ac_compile") 2>conftest.er1
13664 ac_status=$?
13665 grep -v '^ *+' conftest.er1 >conftest.err
13666 rm -f conftest.er1
13667 cat conftest.err >&5
13668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); } && {
13670 test -z "$ac_c_werror_flag" ||
13671 test ! -s conftest.err
13672 } && test -s conftest.$ac_objext; then
13673 ac_header_compiler=yes
13674 else
13675 $as_echo "$as_me: failed program was:" >&5
13676 sed 's/^/| /' conftest.$ac_ext >&5
13677
13678 ac_header_compiler=no
13679 fi
13680
13681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13682 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13683 $as_echo "$ac_header_compiler" >&6; }
13684
13685 # Is the header present?
13686 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13687 $as_echo_n "checking $ac_header presence... " >&6; }
13688 cat >conftest.$ac_ext <<_ACEOF
13689 /* confdefs.h. */
13690 _ACEOF
13691 cat confdefs.h >>conftest.$ac_ext
13692 cat >>conftest.$ac_ext <<_ACEOF
13693 /* end confdefs.h. */
13694 #include <$ac_header>
13695 _ACEOF
13696 if { (ac_try="$ac_cpp conftest.$ac_ext"
13697 case "(($ac_try" in
13698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13699 *) ac_try_echo=$ac_try;;
13700 esac
13701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13702 $as_echo "$ac_try_echo") >&5
13703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13704 ac_status=$?
13705 grep -v '^ *+' conftest.er1 >conftest.err
13706 rm -f conftest.er1
13707 cat conftest.err >&5
13708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); } >/dev/null && {
13710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13711 test ! -s conftest.err
13712 }; then
13713 ac_header_preproc=yes
13714 else
13715 $as_echo "$as_me: failed program was:" >&5
13716 sed 's/^/| /' conftest.$ac_ext >&5
13717
13718 ac_header_preproc=no
13719 fi
13720
13721 rm -f conftest.err conftest.$ac_ext
13722 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13723 $as_echo "$ac_header_preproc" >&6; }
13724
13725 # So? What about this header?
13726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13727 yes:no: )
13728 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13729 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13730 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13731 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13732 ac_header_preproc=yes
13733 ;;
13734 no:yes:* )
13735 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13736 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13737 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13738 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13739 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13740 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13741 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13742 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13743 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13744 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13745 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13746 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13747 ( cat <<\_ASBOX
13748 ## --------------------------------------------------------------------- ##
13749 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=libIDL ##
13750 ## --------------------------------------------------------------------- ##
13751 _ASBOX
13752 ) | sed "s/^/$as_me: WARNING: /" >&2
13753 ;;
13754 esac
13755 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13756 $as_echo_n "checking for $ac_header... " >&6; }
13757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13758 $as_echo_n "(cached) " >&6
13759 else
13760 eval "$as_ac_Header=\$ac_header_preproc"
13761 fi
13762 ac_res=`eval 'as_val=${'$as_ac_Header'}
13763 $as_echo "$as_val"'`
13764 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13765 $as_echo "$ac_res" >&6; }
13766
13767 fi
13768 as_val=`eval 'as_val=${'$as_ac_Header'}
13769 $as_echo "$as_val"'`
13770 if test "x$as_val" = x""yes; then
13771 cat >>confdefs.h <<_ACEOF
13772 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13773 _ACEOF
13774 HAVE_WCSTR_H=1
13775 fi
13776
13777 done
13778
13779 if test -z "$HAVE_WCHAR_H"; then
13780 HAVE_WCHAR_H=0
13781 fi
13782 if test -z "$HAVE_WCSTR_H"; then
13783 HAVE_WCSTR_H=0
13784 fi
13785
13786
13787
13788
13789
13790 for ac_func in popen symlink access
13791 do
13792 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13793 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13794 $as_echo_n "checking for $ac_func... " >&6; }
13795 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13796 $as_echo_n "(cached) " >&6
13797 else
13798 cat >conftest.$ac_ext <<_ACEOF
13799 /* confdefs.h. */
13800 _ACEOF
13801 cat confdefs.h >>conftest.$ac_ext
13802 cat >>conftest.$ac_ext <<_ACEOF
13803 /* end confdefs.h. */
13804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13806 #define $ac_func innocuous_$ac_func
13807
13808 /* System header to define __stub macros and hopefully few prototypes,
13809 which can conflict with char $ac_func (); below.
13810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13811 <limits.h> exists even on freestanding compilers. */
13812
13813 #ifdef __STDC__
13814 # include <limits.h>
13815 #else
13816 # include <assert.h>
13817 #endif
13818
13819 #undef $ac_func
13820
13821 /* Override any GCC internal prototype to avoid an error.
13822 Use char because int might match the return type of a GCC
13823 builtin and then its argument prototype would still apply. */
13824 #ifdef __cplusplus
13825 extern "C"
13826 #endif
13827 char $ac_func ();
13828 /* The GNU C library defines this for functions which it implements
13829 to always fail with ENOSYS. Some functions are actually named
13830 something starting with __ and the normal name is an alias. */
13831 #if defined __stub_$ac_func || defined __stub___$ac_func
13832 choke me
13833 #endif
13834
13835 int
13836 main ()
13837 {
13838 return $ac_func ();
13839 ;
13840 return 0;
13841 }
13842 _ACEOF
13843 rm -f conftest.$ac_objext conftest$ac_exeext
13844 if { (ac_try="$ac_link"
13845 case "(($ac_try" in
13846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13847 *) ac_try_echo=$ac_try;;
13848 esac
13849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13850 $as_echo "$ac_try_echo") >&5
13851 (eval "$ac_link") 2>conftest.er1
13852 ac_status=$?
13853 grep -v '^ *+' conftest.er1 >conftest.err
13854 rm -f conftest.er1
13855 cat conftest.err >&5
13856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857 (exit $ac_status); } && {
13858 test -z "$ac_c_werror_flag" ||
13859 test ! -s conftest.err
13860 } && test -s conftest$ac_exeext && {
13861 test "$cross_compiling" = yes ||
13862 $as_test_x conftest$ac_exeext
13863 }; then
13864 eval "$as_ac_var=yes"
13865 else
13866 $as_echo "$as_me: failed program was:" >&5
13867 sed 's/^/| /' conftest.$ac_ext >&5
13868
13869 eval "$as_ac_var=no"
13870 fi
13871
13872 rm -rf conftest.dSYM
13873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13874 conftest$ac_exeext conftest.$ac_ext
13875 fi
13876 ac_res=`eval 'as_val=${'$as_ac_var'}
13877 $as_echo "$as_val"'`
13878 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13879 $as_echo "$ac_res" >&6; }
13880 as_val=`eval 'as_val=${'$as_ac_var'}
13881 $as_echo "$as_val"'`
13882 if test "x$as_val" = x""yes; then
13883 cat >>confdefs.h <<_ACEOF
13884 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13885 _ACEOF
13886
13887 fi
13888 done
13889
13890
13891 # The cast to long int works around a bug in the HP C Compiler
13892 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13893 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13894 # This bug is HP SR number 8606223364.
13895 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
13896 $as_echo_n "checking size of long long... " >&6; }
13897 if test "${ac_cv_sizeof_long_long+set}" = set; then
13898 $as_echo_n "(cached) " >&6
13899 else
13900 if test "$cross_compiling" = yes; then
13901 # Depending upon the size, compute the lo and hi bounds.
13902 cat >conftest.$ac_ext <<_ACEOF
13903 /* confdefs.h. */
13904 _ACEOF
13905 cat confdefs.h >>conftest.$ac_ext
13906 cat >>conftest.$ac_ext <<_ACEOF
13907 /* end confdefs.h. */
13908 $ac_includes_default
13909 int
13910 main ()
13911 {
13912 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
13913 test_array [0] = 0
13914
13915 ;
13916 return 0;
13917 }
13918 _ACEOF
13919 rm -f conftest.$ac_objext
13920 if { (ac_try="$ac_compile"
13921 case "(($ac_try" in
13922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13923 *) ac_try_echo=$ac_try;;
13924 esac
13925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13926 $as_echo "$ac_try_echo") >&5
13927 (eval "$ac_compile") 2>conftest.er1
13928 ac_status=$?
13929 grep -v '^ *+' conftest.er1 >conftest.err
13930 rm -f conftest.er1
13931 cat conftest.err >&5
13932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); } && {
13934 test -z "$ac_c_werror_flag" ||
13935 test ! -s conftest.err
13936 } && test -s conftest.$ac_objext; then
13937 ac_lo=0 ac_mid=0
13938 while :; do
13939 cat >conftest.$ac_ext <<_ACEOF
13940 /* confdefs.h. */
13941 _ACEOF
13942 cat confdefs.h >>conftest.$ac_ext
13943 cat >>conftest.$ac_ext <<_ACEOF
13944 /* end confdefs.h. */
13945 $ac_includes_default
13946 int
13947 main ()
13948 {
13949 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
13950 test_array [0] = 0
13951
13952 ;
13953 return 0;
13954 }
13955 _ACEOF
13956 rm -f conftest.$ac_objext
13957 if { (ac_try="$ac_compile"
13958 case "(($ac_try" in
13959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13960 *) ac_try_echo=$ac_try;;
13961 esac
13962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13963 $as_echo "$ac_try_echo") >&5
13964 (eval "$ac_compile") 2>conftest.er1
13965 ac_status=$?
13966 grep -v '^ *+' conftest.er1 >conftest.err
13967 rm -f conftest.er1
13968 cat conftest.err >&5
13969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); } && {
13971 test -z "$ac_c_werror_flag" ||
13972 test ! -s conftest.err
13973 } && test -s conftest.$ac_objext; then
13974 ac_hi=$ac_mid; break
13975 else
13976 $as_echo "$as_me: failed program was:" >&5
13977 sed 's/^/| /' conftest.$ac_ext >&5
13978
13979 ac_lo=`expr $ac_mid + 1`
13980 if test $ac_lo -le $ac_mid; then
13981 ac_lo= ac_hi=
13982 break
13983 fi
13984 ac_mid=`expr 2 '*' $ac_mid + 1`
13985 fi
13986
13987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13988 done
13989 else
13990 $as_echo "$as_me: failed program was:" >&5
13991 sed 's/^/| /' conftest.$ac_ext >&5
13992
13993 cat >conftest.$ac_ext <<_ACEOF
13994 /* confdefs.h. */
13995 _ACEOF
13996 cat confdefs.h >>conftest.$ac_ext
13997 cat >>conftest.$ac_ext <<_ACEOF
13998 /* end confdefs.h. */
13999 $ac_includes_default
14000 int
14001 main ()
14002 {
14003 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
14004 test_array [0] = 0
14005
14006 ;
14007 return 0;
14008 }
14009 _ACEOF
14010 rm -f conftest.$ac_objext
14011 if { (ac_try="$ac_compile"
14012 case "(($ac_try" in
14013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14014 *) ac_try_echo=$ac_try;;
14015 esac
14016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14017 $as_echo "$ac_try_echo") >&5
14018 (eval "$ac_compile") 2>conftest.er1
14019 ac_status=$?
14020 grep -v '^ *+' conftest.er1 >conftest.err
14021 rm -f conftest.er1
14022 cat conftest.err >&5
14023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); } && {
14025 test -z "$ac_c_werror_flag" ||
14026 test ! -s conftest.err
14027 } && test -s conftest.$ac_objext; then
14028 ac_hi=-1 ac_mid=-1
14029 while :; do
14030 cat >conftest.$ac_ext <<_ACEOF
14031 /* confdefs.h. */
14032 _ACEOF
14033 cat confdefs.h >>conftest.$ac_ext
14034 cat >>conftest.$ac_ext <<_ACEOF
14035 /* end confdefs.h. */
14036 $ac_includes_default
14037 int
14038 main ()
14039 {
14040 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
14041 test_array [0] = 0
14042
14043 ;
14044 return 0;
14045 }
14046 _ACEOF
14047 rm -f conftest.$ac_objext
14048 if { (ac_try="$ac_compile"
14049 case "(($ac_try" in
14050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14051 *) ac_try_echo=$ac_try;;
14052 esac
14053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14054 $as_echo "$ac_try_echo") >&5
14055 (eval "$ac_compile") 2>conftest.er1
14056 ac_status=$?
14057 grep -v '^ *+' conftest.er1 >conftest.err
14058 rm -f conftest.er1
14059 cat conftest.err >&5
14060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); } && {
14062 test -z "$ac_c_werror_flag" ||
14063 test ! -s conftest.err
14064 } && test -s conftest.$ac_objext; then
14065 ac_lo=$ac_mid; break
14066 else
14067 $as_echo "$as_me: failed program was:" >&5
14068 sed 's/^/| /' conftest.$ac_ext >&5
14069
14070 ac_hi=`expr '(' $ac_mid ')' - 1`
14071 if test $ac_mid -le $ac_hi; then
14072 ac_lo= ac_hi=
14073 break
14074 fi
14075 ac_mid=`expr 2 '*' $ac_mid`
14076 fi
14077
14078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14079 done
14080 else
14081 $as_echo "$as_me: failed program was:" >&5
14082 sed 's/^/| /' conftest.$ac_ext >&5
14083
14084 ac_lo= ac_hi=
14085 fi
14086
14087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14088 fi
14089
14090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14091 # Binary search between lo and hi bounds.
14092 while test "x$ac_lo" != "x$ac_hi"; do
14093 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14094 cat >conftest.$ac_ext <<_ACEOF
14095 /* confdefs.h. */
14096 _ACEOF
14097 cat confdefs.h >>conftest.$ac_ext
14098 cat >>conftest.$ac_ext <<_ACEOF
14099 /* end confdefs.h. */
14100 $ac_includes_default
14101 int
14102 main ()
14103 {
14104 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
14105 test_array [0] = 0
14106
14107 ;
14108 return 0;
14109 }
14110 _ACEOF
14111 rm -f conftest.$ac_objext
14112 if { (ac_try="$ac_compile"
14113 case "(($ac_try" in
14114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14115 *) ac_try_echo=$ac_try;;
14116 esac
14117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14118 $as_echo "$ac_try_echo") >&5
14119 (eval "$ac_compile") 2>conftest.er1
14120 ac_status=$?
14121 grep -v '^ *+' conftest.er1 >conftest.err
14122 rm -f conftest.er1
14123 cat conftest.err >&5
14124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); } && {
14126 test -z "$ac_c_werror_flag" ||
14127 test ! -s conftest.err
14128 } && test -s conftest.$ac_objext; then
14129 ac_hi=$ac_mid
14130 else
14131 $as_echo "$as_me: failed program was:" >&5
14132 sed 's/^/| /' conftest.$ac_ext >&5
14133
14134 ac_lo=`expr '(' $ac_mid ')' + 1`
14135 fi
14136
14137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14138 done
14139 case $ac_lo in
14140 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14141 '') if test "$ac_cv_type_long_long" = yes; then
14142 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14144 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14145 See \`config.log' for more details." >&5
14146 $as_echo "$as_me: error: cannot compute sizeof (long long)
14147 See \`config.log' for more details." >&2;}
14148 { (exit 77); exit 77; }; }; }
14149 else
14150 ac_cv_sizeof_long_long=0
14151 fi ;;
14152 esac
14153 else
14154 cat >conftest.$ac_ext <<_ACEOF
14155 /* confdefs.h. */
14156 _ACEOF
14157 cat confdefs.h >>conftest.$ac_ext
14158 cat >>conftest.$ac_ext <<_ACEOF
14159 /* end confdefs.h. */
14160 $ac_includes_default
14161 static long int longval () { return (long int) (sizeof (long long)); }
14162 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
14163 #include <stdio.h>
14164 #include <stdlib.h>
14165 int
14166 main ()
14167 {
14168
14169 FILE *f = fopen ("conftest.val", "w");
14170 if (! f)
14171 return 1;
14172 if (((long int) (sizeof (long long))) < 0)
14173 {
14174 long int i = longval ();
14175 if (i != ((long int) (sizeof (long long))))
14176 return 1;
14177 fprintf (f, "%ld", i);
14178 }
14179 else
14180 {
14181 unsigned long int i = ulongval ();
14182 if (i != ((long int) (sizeof (long long))))
14183 return 1;
14184 fprintf (f, "%lu", i);
14185 }
14186 /* Do not output a trailing newline, as this causes \r\n confusion
14187 on some platforms. */
14188 return ferror (f) || fclose (f) != 0;
14189
14190 ;
14191 return 0;
14192 }
14193 _ACEOF
14194 rm -f conftest$ac_exeext
14195 if { (ac_try="$ac_link"
14196 case "(($ac_try" in
14197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14198 *) ac_try_echo=$ac_try;;
14199 esac
14200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14201 $as_echo "$ac_try_echo") >&5
14202 (eval "$ac_link") 2>&5
14203 ac_status=$?
14204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14206 { (case "(($ac_try" in
14207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14208 *) ac_try_echo=$ac_try;;
14209 esac
14210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14211 $as_echo "$ac_try_echo") >&5
14212 (eval "$ac_try") 2>&5
14213 ac_status=$?
14214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); }; }; then
14216 ac_cv_sizeof_long_long=`cat conftest.val`
14217 else
14218 $as_echo "$as_me: program exited with status $ac_status" >&5
14219 $as_echo "$as_me: failed program was:" >&5
14220 sed 's/^/| /' conftest.$ac_ext >&5
14221
14222 ( exit $ac_status )
14223 if test "$ac_cv_type_long_long" = yes; then
14224 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14226 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14227 See \`config.log' for more details." >&5
14228 $as_echo "$as_me: error: cannot compute sizeof (long long)
14229 See \`config.log' for more details." >&2;}
14230 { (exit 77); exit 77; }; }; }
14231 else
14232 ac_cv_sizeof_long_long=0
14233 fi
14234 fi
14235 rm -rf conftest.dSYM
14236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14237 fi
14238 rm -f conftest.val
14239 fi
14240 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14241 $as_echo "$ac_cv_sizeof_long_long" >&6; }
14242
14243
14244
14245 cat >>confdefs.h <<_ACEOF
14246 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14247 _ACEOF
14248
14249
14250
14251 { $as_echo "$as_me:$LINENO: checking for format to printf and scanf a guint64" >&5
14252 $as_echo_n "checking for format to printf and scanf a guint64... " >&6; }
14253 if test "${libIDL_cv_long_long_format+set}" = set; then
14254 $as_echo_n "(cached) " >&6
14255 else
14256
14257 for format in ll q I64; do
14258 if test "$cross_compiling" = yes; then
14259 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14261 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14262 See \`config.log' for more details." >&5
14263 $as_echo "$as_me: error: cannot run test program while cross compiling
14264 See \`config.log' for more details." >&2;}
14265 { (exit 1); exit 1; }; }; }
14266 else
14267 cat >conftest.$ac_ext <<_ACEOF
14268 /* confdefs.h. */
14269 _ACEOF
14270 cat confdefs.h >>conftest.$ac_ext
14271 cat >>conftest.$ac_ext <<_ACEOF
14272 /* end confdefs.h. */
14273 #include <stdio.h>
14274 #include <stdlib.h>
14275 int main()
14276 {
14277 long long b, a = -0x3AFAFAFAFAFAFAFALL;
14278 char buffer[1000];
14279 sprintf (buffer, "%${format}u", a);
14280 sscanf (buffer, "%${format}u", &b);
14281 exit (b!=a);
14282 }
14283
14284 _ACEOF
14285 rm -f conftest$ac_exeext
14286 if { (ac_try="$ac_link"
14287 case "(($ac_try" in
14288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14289 *) ac_try_echo=$ac_try;;
14290 esac
14291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14292 $as_echo "$ac_try_echo") >&5
14293 (eval "$ac_link") 2>&5
14294 ac_status=$?
14295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14297 { (case "(($ac_try" in
14298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14299 *) ac_try_echo=$ac_try;;
14300 esac
14301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14302 $as_echo "$ac_try_echo") >&5
14303 (eval "$ac_try") 2>&5
14304 ac_status=$?
14305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); }; }; then
14307 libIDL_cv_long_long_format=${format}
14308 break
14309 else
14310 $as_echo "$as_me: program exited with status $ac_status" >&5
14311 $as_echo "$as_me: failed program was:" >&5
14312 sed 's/^/| /' conftest.$ac_ext >&5
14313
14314 fi
14315 rm -rf conftest.dSYM
14316 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14317 fi
14318
14319
14320 done
14321 fi
14322
14323 if test -n "$libIDL_cv_long_long_format"; then
14324 { $as_echo "$as_me:$LINENO: result: %${libIDL_cv_long_long_format}u" >&5
14325 $as_echo "%${libIDL_cv_long_long_format}u" >&6; }
14326 IDL_LL="\"${libIDL_cv_long_long_format}\""
14327
14328 else
14329 { $as_echo "$as_me:$LINENO: result: none" >&5
14330 $as_echo "none" >&6; }
14331 { { $as_echo "$as_me:$LINENO: error:
14332 *** libIDL requires a 64 bit format type.
14333 " >&5
14334 $as_echo "$as_me: error:
14335 *** libIDL requires a 64 bit format type.
14336 " >&2;}
14337 { (exit 1); exit 1; }; }
14338 fi
14339
14340
14341 if test "x$GCC" = "xyes" -a "x$enable_compile_warnings" != "xno"; then
14342 WARN_CFLAGS="-Wall -Wunused -Wmissing-prototypes -Wmissing-declarations"
14343 else
14344 WARN_CFLAGS=
14345 fi
14346
14347 { $as_echo "$as_me:$LINENO: checking what warning flags to pass to the C compiler" >&5
14348 $as_echo_n "checking what warning flags to pass to the C compiler... " >&6; }
14349 { $as_echo "$as_me:$LINENO: result: $WARN_CFLAGS" >&5
14350 $as_echo "$WARN_CFLAGS" >&6; }
14351
14352
14353 ac_config_files="$ac_config_files Makefile Makefile.msc libIDL-zip include/Makefile include/libIDL/Makefile include/libIDL/IDL.h libIDL-config-2 libIDL.m4 libIDL.spec libIDL-2.0.pc libIDL-2.0-uninstalled.pc"
14354
14355
14356 cat >confcache <<\_ACEOF
14357 # This file is a shell script that caches the results of configure
14358 # tests run on this system so they can be shared between configure
14359 # scripts and configure runs, see configure's option --config-cache.
14360 # It is not useful on other systems. If it contains results you don't
14361 # want to keep, you may remove or edit it.
14362 #
14363 # config.status only pays attention to the cache file if you give it
14364 # the --recheck option to rerun configure.
14365 #
14366 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14367 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14368 # following values.
14369
14370 _ACEOF
14371
14372 # The following way of writing the cache mishandles newlines in values,
14373 # but we know of no workaround that is simple, portable, and efficient.
14374 # So, we kill variables containing newlines.
14375 # Ultrix sh set writes to stderr and can't be redirected directly,
14376 # and sets the high bit in the cache file unless we assign to the vars.
14377 (
14378 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14379 eval ac_val=\$$ac_var
14380 case $ac_val in #(
14381 *${as_nl}*)
14382 case $ac_var in #(
14383 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
14384 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14385 esac
14386 case $ac_var in #(
14387 _ | IFS | as_nl) ;; #(
14388 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14389 *) $as_unset $ac_var ;;
14390 esac ;;
14391 esac
14392 done
14393
14394 (set) 2>&1 |
14395 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14396 *${as_nl}ac_space=\ *)
14397 # `set' does not quote correctly, so add quotes (double-quote
14398 # substitution turns \\\\ into \\, and sed turns \\ into \).
14399 sed -n \
14400 "s/'/'\\\\''/g;
14401 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14402 ;; #(
14403 *)
14404 # `set' quotes correctly as required by POSIX, so do not add quotes.
14405 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14406 ;;
14407 esac |
14408 sort
14409 ) |
14410 sed '
14411 /^ac_cv_env_/b end
14412 t clear
14413 :clear
14414 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14415 t end
14416 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14417 :end' >>confcache
14418 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14419 if test -w "$cache_file"; then
14420 test "x$cache_file" != "x/dev/null" &&
14421 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
14422 $as_echo "$as_me: updating cache $cache_file" >&6;}
14423 cat confcache >$cache_file
14424 else
14425 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14426 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14427 fi
14428 fi
14429 rm -f confcache
14430
14431 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14432 # Let make expand exec_prefix.
14433 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14434
14435 # Transform confdefs.h into DEFS.
14436 # Protect against shell expansion while executing Makefile rules.
14437 # Protect against Makefile macro expansion.
14438 #
14439 # If the first sed substitution is executed (which looks for macros that
14440 # take arguments), then branch to the quote section. Otherwise,
14441 # look for a macro that doesn't take arguments.
14442 ac_script='
14443 :mline
14444 /\\$/{
14445 N
14446 s,\\\n,,
14447 b mline
14448 }
14449 t clear
14450 :clear
14451 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14452 t quote
14453 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14454 t quote
14455 b any
14456 :quote
14457 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14458 s/\[/\\&/g
14459 s/\]/\\&/g
14460 s/\$/$$/g
14461 H
14462 :any
14463 ${
14464 g
14465 s/^\n//
14466 s/\n/ /g
14467 p
14468 }
14469 '
14470 DEFS=`sed -n "$ac_script" confdefs.h`
14471
14472
14473 ac_libobjs=
14474 ac_ltlibobjs=
14475 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14476 # 1. Remove the extension, and $U if already installed.
14477 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14478 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14479 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14480 # will be set to the directory where LIBOBJS objects are built.
14481 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14482 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14483 done
14484 LIBOBJS=$ac_libobjs
14485
14486 LTLIBOBJS=$ac_ltlibobjs
14487
14488
14489 if test -n "$EXEEXT"; then
14490 am__EXEEXT_TRUE=
14491 am__EXEEXT_FALSE='#'
14492 else
14493 am__EXEEXT_TRUE='#'
14494 am__EXEEXT_FALSE=
14495 fi
14496
14497 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14498 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14499 Usually this means the macro was only invoked conditionally." >&5
14500 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
14501 Usually this means the macro was only invoked conditionally." >&2;}
14502 { (exit 1); exit 1; }; }
14503 fi
14504 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14505 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14506 Usually this means the macro was only invoked conditionally." >&5
14507 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14508 Usually this means the macro was only invoked conditionally." >&2;}
14509 { (exit 1); exit 1; }; }
14510 fi
14511 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14512 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14513 Usually this means the macro was only invoked conditionally." >&5
14514 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14515 Usually this means the macro was only invoked conditionally." >&2;}
14516 { (exit 1); exit 1; }; }
14517 fi
14518 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14519 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14520 Usually this means the macro was only invoked conditionally." >&5
14521 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14522 Usually this means the macro was only invoked conditionally." >&2;}
14523 { (exit 1); exit 1; }; }
14524 fi
14525 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
14526 { { $as_echo "$as_me:$LINENO: error: conditional \"OS_WIN32\" was never defined.
14527 Usually this means the macro was only invoked conditionally." >&5
14528 $as_echo "$as_me: error: conditional \"OS_WIN32\" was never defined.
14529 Usually this means the macro was only invoked conditionally." >&2;}
14530 { (exit 1); exit 1; }; }
14531 fi
14532
14533 : ${CONFIG_STATUS=./config.status}
14534 ac_write_fail=0
14535 ac_clean_files_save=$ac_clean_files
14536 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14537 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14538 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14539 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14540 #! $SHELL
14541 # Generated by $as_me.
14542 # Run this file to recreate the current configuration.
14543 # Compiler output produced by configure, useful for debugging
14544 # configure, is in config.log if it exists.
14545
14546 debug=false
14547 ac_cs_recheck=false
14548 ac_cs_silent=false
14549 SHELL=\${CONFIG_SHELL-$SHELL}
14550 _ACEOF
14551
14552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14553 ## --------------------- ##
14554 ## M4sh Initialization. ##
14555 ## --------------------- ##
14556
14557 # Be more Bourne compatible
14558 DUALCASE=1; export DUALCASE # for MKS sh
14559 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14560 emulate sh
14561 NULLCMD=:
14562 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14563 # is contrary to our usage. Disable this feature.
14564 alias -g '${1+"$@"}'='"$@"'
14565 setopt NO_GLOB_SUBST
14566 else
14567 case `(set -o) 2>/dev/null` in
14568 *posix*) set -o posix ;;
14569 esac
14570
14571 fi
14572
14573
14574
14575
14576 # PATH needs CR
14577 # Avoid depending upon Character Ranges.
14578 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14579 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14580 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14581 as_cr_digits='0123456789'
14582 as_cr_alnum=$as_cr_Letters$as_cr_digits
14583
14584 as_nl='
14585 '
14586 export as_nl
14587 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14588 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14589 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14590 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14591 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14592 as_echo='printf %s\n'
14593 as_echo_n='printf %s'
14594 else
14595 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14596 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14597 as_echo_n='/usr/ucb/echo -n'
14598 else
14599 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14600 as_echo_n_body='eval
14601 arg=$1;
14602 case $arg in
14603 *"$as_nl"*)
14604 expr "X$arg" : "X\\(.*\\)$as_nl";
14605 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14606 esac;
14607 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14608 '
14609 export as_echo_n_body
14610 as_echo_n='sh -c $as_echo_n_body as_echo'
14611 fi
14612 export as_echo_body
14613 as_echo='sh -c $as_echo_body as_echo'
14614 fi
14615
14616 # The user is always right.
14617 if test "${PATH_SEPARATOR+set}" != set; then
14618 PATH_SEPARATOR=:
14619 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14620 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14621 PATH_SEPARATOR=';'
14622 }
14623 fi
14624
14625 # Support unset when possible.
14626 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14627 as_unset=unset
14628 else
14629 as_unset=false
14630 fi
14631
14632
14633 # IFS
14634 # We need space, tab and new line, in precisely that order. Quoting is
14635 # there to prevent editors from complaining about space-tab.
14636 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14637 # splitting by setting IFS to empty value.)
14638 IFS=" "" $as_nl"
14639
14640 # Find who we are. Look in the path if we contain no directory separator.
14641 case $0 in
14642 *[\\/]* ) as_myself=$0 ;;
14643 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14644 for as_dir in $PATH
14645 do
14646 IFS=$as_save_IFS
14647 test -z "$as_dir" && as_dir=.
14648 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14649 done
14650 IFS=$as_save_IFS
14651
14652 ;;
14653 esac
14654 # We did not find ourselves, most probably we were run as `sh COMMAND'
14655 # in which case we are not to be found in the path.
14656 if test "x$as_myself" = x; then
14657 as_myself=$0
14658 fi
14659 if test ! -f "$as_myself"; then
14660 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14661 { (exit 1); exit 1; }
14662 fi
14663
14664 # Work around bugs in pre-3.0 UWIN ksh.
14665 for as_var in ENV MAIL MAILPATH
14666 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14667 done
14668 PS1='$ '
14669 PS2='> '
14670 PS4='+ '
14671
14672 # NLS nuisances.
14673 LC_ALL=C
14674 export LC_ALL
14675 LANGUAGE=C
14676 export LANGUAGE
14677
14678 # Required to use basename.
14679 if expr a : '\(a\)' >/dev/null 2>&1 &&
14680 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14681 as_expr=expr
14682 else
14683 as_expr=false
14684 fi
14685
14686 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14687 as_basename=basename
14688 else
14689 as_basename=false
14690 fi
14691
14692
14693 # Name of the executable.
14694 as_me=`$as_basename -- "$0" ||
14695 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14696 X"$0" : 'X\(//\)$' \| \
14697 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14698 $as_echo X/"$0" |
14699 sed '/^.*\/\([^/][^/]*\)\/*$/{
14700 s//\1/
14701 q
14702 }
14703 /^X\/\(\/\/\)$/{
14704 s//\1/
14705 q
14706 }
14707 /^X\/\(\/\).*/{
14708 s//\1/
14709 q
14710 }
14711 s/.*/./; q'`
14712
14713 # CDPATH.
14714 $as_unset CDPATH
14715
14716
14717
14718 as_lineno_1=$LINENO
14719 as_lineno_2=$LINENO
14720 test "x$as_lineno_1" != "x$as_lineno_2" &&
14721 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14722
14723 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14724 # uniformly replaced by the line number. The first 'sed' inserts a
14725 # line-number line after each line using $LINENO; the second 'sed'
14726 # does the real work. The second script uses 'N' to pair each
14727 # line-number line with the line containing $LINENO, and appends
14728 # trailing '-' during substitution so that $LINENO is not a special
14729 # case at line end.
14730 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14731 # scripts with optimization help from Paolo Bonzini. Blame Lee
14732 # E. McMahon (1931-1989) for sed's syntax. :-)
14733 sed -n '
14734 p
14735 /[$]LINENO/=
14736 ' <$as_myself |
14737 sed '
14738 s/[$]LINENO.*/&-/
14739 t lineno
14740 b
14741 :lineno
14742 N
14743 :loop
14744 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14745 t loop
14746 s/-\n.*//
14747 ' >$as_me.lineno &&
14748 chmod +x "$as_me.lineno" ||
14749 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14750 { (exit 1); exit 1; }; }
14751
14752 # Don't try to exec as it changes $[0], causing all sort of problems
14753 # (the dirname of $[0] is not the place where we might find the
14754 # original and so on. Autoconf is especially sensitive to this).
14755 . "./$as_me.lineno"
14756 # Exit status is that of the last command.
14757 exit
14758 }
14759
14760
14761 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14762 as_dirname=dirname
14763 else
14764 as_dirname=false
14765 fi
14766
14767 ECHO_C= ECHO_N= ECHO_T=
14768 case `echo -n x` in
14769 -n*)
14770 case `echo 'x\c'` in
14771 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14772 *) ECHO_C='\c';;
14773 esac;;
14774 *)
14775 ECHO_N='-n';;
14776 esac
14777 if expr a : '\(a\)' >/dev/null 2>&1 &&
14778 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14779 as_expr=expr
14780 else
14781 as_expr=false
14782 fi
14783
14784 rm -f conf$$ conf$$.exe conf$$.file
14785 if test -d conf$$.dir; then
14786 rm -f conf$$.dir/conf$$.file
14787 else
14788 rm -f conf$$.dir
14789 mkdir conf$$.dir 2>/dev/null
14790 fi
14791 if (echo >conf$$.file) 2>/dev/null; then
14792 if ln -s conf$$.file conf$$ 2>/dev/null; then
14793 as_ln_s='ln -s'
14794 # ... but there are two gotchas:
14795 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14796 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14797 # In both cases, we have to default to `cp -p'.
14798 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14799 as_ln_s='cp -p'
14800 elif ln conf$$.file conf$$ 2>/dev/null; then
14801 as_ln_s=ln
14802 else
14803 as_ln_s='cp -p'
14804 fi
14805 else
14806 as_ln_s='cp -p'
14807 fi
14808 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14809 rmdir conf$$.dir 2>/dev/null
14810
14811 if mkdir -p . 2>/dev/null; then
14812 as_mkdir_p=:
14813 else
14814 test -d ./-p && rmdir ./-p
14815 as_mkdir_p=false
14816 fi
14817
14818 if test -x / >/dev/null 2>&1; then
14819 as_test_x='test -x'
14820 else
14821 if ls -dL / >/dev/null 2>&1; then
14822 as_ls_L_option=L
14823 else
14824 as_ls_L_option=
14825 fi
14826 as_test_x='
14827 eval sh -c '\''
14828 if test -d "$1"; then
14829 test -d "$1/.";
14830 else
14831 case $1 in
14832 -*)set "./$1";;
14833 esac;
14834 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14835 ???[sx]*):;;*)false;;esac;fi
14836 '\'' sh
14837 '
14838 fi
14839 as_executable_p=$as_test_x
14840
14841 # Sed expression to map a string onto a valid CPP name.
14842 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14843
14844 # Sed expression to map a string onto a valid variable name.
14845 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14846
14847
14848 exec 6>&1
14849
14850 # Save the log message, to keep $[0] and so on meaningful, and to
14851 # report actual input values of CONFIG_FILES etc. instead of their
14852 # values after options handling.
14853 ac_log="
14854 This file was extended by libIDL $as_me 0.8.14, which was
14855 generated by GNU Autoconf 2.63. Invocation command line was
14856
14857 CONFIG_FILES = $CONFIG_FILES
14858 CONFIG_HEADERS = $CONFIG_HEADERS
14859 CONFIG_LINKS = $CONFIG_LINKS
14860 CONFIG_COMMANDS = $CONFIG_COMMANDS
14861 $ $0 $@
14862
14863 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14864 "
14865
14866 _ACEOF
14867
14868 case $ac_config_files in *"
14869 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14870 esac
14871
14872
14873
14874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14875 # Files that config.status was made for.
14876 config_files="$ac_config_files"
14877 config_commands="$ac_config_commands"
14878
14879 _ACEOF
14880
14881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14882 ac_cs_usage="\
14883 \`$as_me' instantiates files from templates according to the
14884 current configuration.
14885
14886 Usage: $0 [OPTION]... [FILE]...
14887
14888 -h, --help print this help, then exit
14889 -V, --version print version number and configuration settings, then exit
14890 -q, --quiet, --silent
14891 do not print progress messages
14892 -d, --debug don't remove temporary files
14893 --recheck update $as_me by reconfiguring in the same conditions
14894 --file=FILE[:TEMPLATE]
14895 instantiate the configuration file FILE
14896
14897 Configuration files:
14898 $config_files
14899
14900 Configuration commands:
14901 $config_commands
14902
14903 Report bugs to <[email protected]>."
14904
14905 _ACEOF
14906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14907 ac_cs_version="\\
14908 libIDL config.status 0.8.14
14909 configured by $0, generated by GNU Autoconf 2.63,
14910 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14911
14912 Copyright (C) 2008 Free Software Foundation, Inc.
14913 This config.status script is free software; the Free Software Foundation
14914 gives unlimited permission to copy, distribute and modify it."
14915
14916 ac_pwd='$ac_pwd'
14917 srcdir='$srcdir'
14918 INSTALL='$INSTALL'
14919 MKDIR_P='$MKDIR_P'
14920 AWK='$AWK'
14921 test -n "\$AWK" || AWK=awk
14922 _ACEOF
14923
14924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14925 # The default lists apply if the user does not specify any file.
14926 ac_need_defaults=:
14927 while test $# != 0
14928 do
14929 case $1 in
14930 --*=*)
14931 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14932 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14933 ac_shift=:
14934 ;;
14935 *)
14936 ac_option=$1
14937 ac_optarg=$2
14938 ac_shift=shift
14939 ;;
14940 esac
14941
14942 case $ac_option in
14943 # Handling of the options.
14944 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14945 ac_cs_recheck=: ;;
14946 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14947 $as_echo "$ac_cs_version"; exit ;;
14948 --debug | --debu | --deb | --de | --d | -d )
14949 debug=: ;;
14950 --file | --fil | --fi | --f )
14951 $ac_shift
14952 case $ac_optarg in
14953 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14954 esac
14955 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14956 ac_need_defaults=false;;
14957 --he | --h | --help | --hel | -h )
14958 $as_echo "$ac_cs_usage"; exit ;;
14959 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14960 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14961 ac_cs_silent=: ;;
14962
14963 # This is an error.
14964 -*) { $as_echo "$as_me: error: unrecognized option: $1
14965 Try \`$0 --help' for more information." >&2
14966 { (exit 1); exit 1; }; } ;;
14967
14968 *) ac_config_targets="$ac_config_targets $1"
14969 ac_need_defaults=false ;;
14970
14971 esac
14972 shift
14973 done
14974
14975 ac_configure_extra_args=
14976
14977 if $ac_cs_silent; then
14978 exec 6>/dev/null
14979 ac_configure_extra_args="$ac_configure_extra_args --silent"
14980 fi
14981
14982 _ACEOF
14983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14984 if \$ac_cs_recheck; then
14985 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14986 shift
14987 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14988 CONFIG_SHELL='$SHELL'
14989 export CONFIG_SHELL
14990 exec "\$@"
14991 fi
14992
14993 _ACEOF
14994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14995 exec 5>>config.log
14996 {
14997 echo
14998 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14999 ## Running $as_me. ##
15000 _ASBOX
15001 $as_echo "$ac_log"
15002 } >&5
15003
15004 _ACEOF
15005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15006 #
15007 # INIT-COMMANDS
15008 #
15009 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15010
15011
15012 # The HP-UX ksh and POSIX shell print the target directory to stdout
15013 # if CDPATH is set.
15014 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15015
15016 sed_quote_subst='$sed_quote_subst'
15017 double_quote_subst='$double_quote_subst'
15018 delay_variable_subst='$delay_variable_subst'
15019 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
15020 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15021 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15022 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15023 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15024 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15025 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15026 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15027 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15028 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15029 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15030 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15031 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15032 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15033 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15034 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15035 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15036 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15037 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15038 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15039 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15040 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15041 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15042 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15043 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15044 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15045 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15046 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15047 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15048 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15049 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15050 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15051 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15052 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15053 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15054 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15055 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15056 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15057 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15058 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15059 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15060 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15061 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15062 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15063 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15064 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15065 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"`'
15066 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"`'
15067 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15068 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15069 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15070 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15071 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15072 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15073 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15074 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15075 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15076 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15077 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15078 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15079 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15080 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15081 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15082 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15083 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15084 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15085 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15086 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15087 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15088 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15089 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15090 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15091 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15092 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15093 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15094 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15095 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15096 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15097 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15098 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15099 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15100 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15101 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15102 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15103 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15104 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15105 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15106 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15107 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15108 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15109 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15110 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15111 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15112 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15113 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15114 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15115 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15116 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15117 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15118 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15119 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15120 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15121 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15122 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15123 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15124 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15125 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15126 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15127 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15128 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15129 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15130 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15131 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15132 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15133 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15134 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15135 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15136 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15137 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15138 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15139
15140 LTCC='$LTCC'
15141 LTCFLAGS='$LTCFLAGS'
15142 compiler='$compiler_DEFAULT'
15143
15144 # Quote evaled strings.
15145 for var in SED \
15146 GREP \
15147 EGREP \
15148 FGREP \
15149 LD \
15150 NM \
15151 LN_S \
15152 lt_SP2NL \
15153 lt_NL2SP \
15154 reload_flag \
15155 deplibs_check_method \
15156 file_magic_cmd \
15157 AR \
15158 AR_FLAGS \
15159 STRIP \
15160 RANLIB \
15161 CC \
15162 CFLAGS \
15163 compiler \
15164 lt_cv_sys_global_symbol_pipe \
15165 lt_cv_sys_global_symbol_to_cdecl \
15166 lt_cv_sys_global_symbol_to_c_name_address \
15167 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15168 SHELL \
15169 ECHO \
15170 lt_prog_compiler_no_builtin_flag \
15171 lt_prog_compiler_wl \
15172 lt_prog_compiler_pic \
15173 lt_prog_compiler_static \
15174 lt_cv_prog_compiler_c_o \
15175 need_locks \
15176 DSYMUTIL \
15177 NMEDIT \
15178 LIPO \
15179 OTOOL \
15180 OTOOL64 \
15181 shrext_cmds \
15182 export_dynamic_flag_spec \
15183 whole_archive_flag_spec \
15184 compiler_needs_object \
15185 with_gnu_ld \
15186 allow_undefined_flag \
15187 no_undefined_flag \
15188 hardcode_libdir_flag_spec \
15189 hardcode_libdir_flag_spec_ld \
15190 hardcode_libdir_separator \
15191 fix_srcfile_path \
15192 exclude_expsyms \
15193 include_expsyms \
15194 file_list_spec \
15195 variables_saved_for_relink \
15196 libname_spec \
15197 library_names_spec \
15198 soname_spec \
15199 finish_eval \
15200 old_striplib \
15201 striplib; do
15202 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15203 *[\\\\\\\`\\"\\\$]*)
15204 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15205 ;;
15206 *)
15207 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15208 ;;
15209 esac
15210 done
15211
15212 # Double-quote double-evaled strings.
15213 for var in reload_cmds \
15214 old_postinstall_cmds \
15215 old_postuninstall_cmds \
15216 old_archive_cmds \
15217 extract_expsyms_cmds \
15218 old_archive_from_new_cmds \
15219 old_archive_from_expsyms_cmds \
15220 archive_cmds \
15221 archive_expsym_cmds \
15222 module_cmds \
15223 module_expsym_cmds \
15224 export_symbols_cmds \
15225 prelink_cmds \
15226 postinstall_cmds \
15227 postuninstall_cmds \
15228 finish_cmds \
15229 sys_lib_search_path_spec \
15230 sys_lib_dlsearch_path_spec; do
15231 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15232 *[\\\\\\\`\\"\\\$]*)
15233 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15234 ;;
15235 *)
15236 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15237 ;;
15238 esac
15239 done
15240
15241 # Fix-up fallback echo if it was mangled by the above quoting rules.
15242 case \$lt_ECHO in
15243 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15244 ;;
15245 esac
15246
15247 ac_aux_dir='$ac_aux_dir'
15248 xsi_shell='$xsi_shell'
15249 lt_shell_append='$lt_shell_append'
15250
15251 # See if we are running on zsh, and set the options which allow our
15252 # commands through without removal of \ escapes INIT.
15253 if test -n "\${ZSH_VERSION+set}" ; then
15254 setopt NO_GLOB_SUBST
15255 fi
15256
15257
15258 PACKAGE='$PACKAGE'
15259 VERSION='$VERSION'
15260 TIMESTAMP='$TIMESTAMP'
15261 RM='$RM'
15262 ofile='$ofile'
15263
15264
15265
15266
15267 _ACEOF
15268
15269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15270
15271 # Handling of arguments.
15272 for ac_config_target in $ac_config_targets
15273 do
15274 case $ac_config_target in
15275 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15276 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15277 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15278 "Makefile.msc") CONFIG_FILES="$CONFIG_FILES Makefile.msc" ;;
15279 "libIDL-zip") CONFIG_FILES="$CONFIG_FILES libIDL-zip" ;;
15280 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15281 "include/libIDL/Makefile") CONFIG_FILES="$CONFIG_FILES include/libIDL/Makefile" ;;
15282 "include/libIDL/IDL.h") CONFIG_FILES="$CONFIG_FILES include/libIDL/IDL.h" ;;
15283 "libIDL-config-2") CONFIG_FILES="$CONFIG_FILES libIDL-config-2" ;;
15284 "libIDL.m4") CONFIG_FILES="$CONFIG_FILES libIDL.m4" ;;
15285 "libIDL.spec") CONFIG_FILES="$CONFIG_FILES libIDL.spec" ;;
15286 "libIDL-2.0.pc") CONFIG_FILES="$CONFIG_FILES libIDL-2.0.pc" ;;
15287 "libIDL-2.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES libIDL-2.0-uninstalled.pc" ;;
15288
15289 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15290 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15291 { (exit 1); exit 1; }; };;
15292 esac
15293 done
15294
15295
15296 # If the user did not use the arguments to specify the items to instantiate,
15297 # then the envvar interface is used. Set only those that are not.
15298 # We use the long form for the default assignment because of an extremely
15299 # bizarre bug on SunOS 4.1.3.
15300 if $ac_need_defaults; then
15301 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15302 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15303 fi
15304
15305 # Have a temporary directory for convenience. Make it in the build tree
15306 # simply because there is no reason against having it here, and in addition,
15307 # creating and moving files from /tmp can sometimes cause problems.
15308 # Hook for its removal unless debugging.
15309 # Note that there is a small window in which the directory will not be cleaned:
15310 # after its creation but before its name has been assigned to `$tmp'.
15311 $debug ||
15312 {
15313 tmp=
15314 trap 'exit_status=$?
15315 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15316 ' 0
15317 trap '{ (exit 1); exit 1; }' 1 2 13 15
15318 }
15319 # Create a (secure) tmp directory for tmp files.
15320
15321 {
15322 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15323 test -n "$tmp" && test -d "$tmp"
15324 } ||
15325 {
15326 tmp=./conf$$-$RANDOM
15327 (umask 077 && mkdir "$tmp")
15328 } ||
15329 {
15330 $as_echo "$as_me: cannot create a temporary directory in ." >&2
15331 { (exit 1); exit 1; }
15332 }
15333
15334 # Set up the scripts for CONFIG_FILES section.
15335 # No need to generate them if there are no CONFIG_FILES.
15336 # This happens for instance with `./config.status config.h'.
15337 if test -n "$CONFIG_FILES"; then
15338
15339
15340 ac_cr=' '
15341 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15342 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15343 ac_cs_awk_cr='\\r'
15344 else
15345 ac_cs_awk_cr=$ac_cr
15346 fi
15347
15348 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15349 _ACEOF
15350
15351
15352 {
15353 echo "cat >conf$$subs.awk <<_ACEOF" &&
15354 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15355 echo "_ACEOF"
15356 } >conf$$subs.sh ||
15357 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15358 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15359 { (exit 1); exit 1; }; }
15360 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15361 ac_delim='%!_!# '
15362 for ac_last_try in false false false false false :; do
15363 . ./conf$$subs.sh ||
15364 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15365 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15366 { (exit 1); exit 1; }; }
15367
15368 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15369 if test $ac_delim_n = $ac_delim_num; then
15370 break
15371 elif $ac_last_try; then
15372 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15373 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15374 { (exit 1); exit 1; }; }
15375 else
15376 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15377 fi
15378 done
15379 rm -f conf$$subs.sh
15380
15381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15382 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15383 _ACEOF
15384 sed -n '
15385 h
15386 s/^/S["/; s/!.*/"]=/
15387 p
15388 g
15389 s/^[^!]*!//
15390 :repl
15391 t repl
15392 s/'"$ac_delim"'$//
15393 t delim
15394 :nl
15395 h
15396 s/\(.\{148\}\).*/\1/
15397 t more1
15398 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15399 p
15400 n
15401 b repl
15402 :more1
15403 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15404 p
15405 g
15406 s/.\{148\}//
15407 t nl
15408 :delim
15409 h
15410 s/\(.\{148\}\).*/\1/
15411 t more2
15412 s/["\\]/\\&/g; s/^/"/; s/$/"/
15413 p
15414 b
15415 :more2
15416 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15417 p
15418 g
15419 s/.\{148\}//
15420 t delim
15421 ' <conf$$subs.awk | sed '
15422 /^[^""]/{
15423 N
15424 s/\n//
15425 }
15426 ' >>$CONFIG_STATUS || ac_write_fail=1
15427 rm -f conf$$subs.awk
15428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15429 _ACAWK
15430 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15431 for (key in S) S_is_set[key] = 1
15432 FS = ""
15433
15434 }
15435 {
15436 line = $ 0
15437 nfields = split(line, field, "@")
15438 substed = 0
15439 len = length(field[1])
15440 for (i = 2; i < nfields; i++) {
15441 key = field[i]
15442 keylen = length(key)
15443 if (S_is_set[key]) {
15444 value = S[key]
15445 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15446 len += length(value) + length(field[++i])
15447 substed = 1
15448 } else
15449 len += 1 + keylen
15450 }
15451
15452 print line
15453 }
15454
15455 _ACAWK
15456 _ACEOF
15457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15458 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15459 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15460 else
15461 cat
15462 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15463 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
15464 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
15465 { (exit 1); exit 1; }; }
15466 _ACEOF
15467
15468 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15469 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15470 # trailing colons and then remove the whole line if VPATH becomes empty
15471 # (actually we leave an empty line to preserve line numbers).
15472 if test "x$srcdir" = x.; then
15473 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15474 s/:*\$(srcdir):*/:/
15475 s/:*\${srcdir}:*/:/
15476 s/:*@srcdir@:*/:/
15477 s/^\([^=]*=[ ]*\):*/\1/
15478 s/:*$//
15479 s/^[^=]*=[ ]*$//
15480 }'
15481 fi
15482
15483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15484 fi # test -n "$CONFIG_FILES"
15485
15486
15487 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
15488 shift
15489 for ac_tag
15490 do
15491 case $ac_tag in
15492 :[FHLC]) ac_mode=$ac_tag; continue;;
15493 esac
15494 case $ac_mode$ac_tag in
15495 :[FHL]*:*);;
15496 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
15497 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
15498 { (exit 1); exit 1; }; };;
15499 :[FH]-) ac_tag=-:-;;
15500 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15501 esac
15502 ac_save_IFS=$IFS
15503 IFS=:
15504 set x $ac_tag
15505 IFS=$ac_save_IFS
15506 shift
15507 ac_file=$1
15508 shift
15509
15510 case $ac_mode in
15511 :L) ac_source=$1;;
15512 :[FH])
15513 ac_file_inputs=
15514 for ac_f
15515 do
15516 case $ac_f in
15517 -) ac_f="$tmp/stdin";;
15518 *) # Look for the file first in the build tree, then in the source tree
15519 # (if the path is not absolute). The absolute path cannot be DOS-style,
15520 # because $ac_f cannot contain `:'.
15521 test -f "$ac_f" ||
15522 case $ac_f in
15523 [\\/$]*) false;;
15524 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15525 esac ||
15526 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15527 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15528 { (exit 1); exit 1; }; };;
15529 esac
15530 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15531 ac_file_inputs="$ac_file_inputs '$ac_f'"
15532 done
15533
15534 # Let's still pretend it is `configure' which instantiates (i.e., don't
15535 # use $as_me), people would be surprised to read:
15536 # /* config.h. Generated by config.status. */
15537 configure_input='Generated from '`
15538 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15539 `' by configure.'
15540 if test x"$ac_file" != x-; then
15541 configure_input="$ac_file. $configure_input"
15542 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
15543 $as_echo "$as_me: creating $ac_file" >&6;}
15544 fi
15545 # Neutralize special characters interpreted by sed in replacement strings.
15546 case $configure_input in #(
15547 *\&* | *\|* | *\\* )
15548 ac_sed_conf_input=`$as_echo "$configure_input" |
15549 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15550 *) ac_sed_conf_input=$configure_input;;
15551 esac
15552
15553 case $ac_tag in
15554 *:-:* | *:-) cat >"$tmp/stdin" \
15555 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15556 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15557 { (exit 1); exit 1; }; } ;;
15558 esac
15559 ;;
15560 esac
15561
15562 ac_dir=`$as_dirname -- "$ac_file" ||
15563 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15564 X"$ac_file" : 'X\(//\)[^/]' \| \
15565 X"$ac_file" : 'X\(//\)$' \| \
15566 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15567 $as_echo X"$ac_file" |
15568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15569 s//\1/
15570 q
15571 }
15572 /^X\(\/\/\)[^/].*/{
15573 s//\1/
15574 q
15575 }
15576 /^X\(\/\/\)$/{
15577 s//\1/
15578 q
15579 }
15580 /^X\(\/\).*/{
15581 s//\1/
15582 q
15583 }
15584 s/.*/./; q'`
15585 { as_dir="$ac_dir"
15586 case $as_dir in #(
15587 -*) as_dir=./$as_dir;;
15588 esac
15589 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15590 as_dirs=
15591 while :; do
15592 case $as_dir in #(
15593 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15594 *) as_qdir=$as_dir;;
15595 esac
15596 as_dirs="'$as_qdir' $as_dirs"
15597 as_dir=`$as_dirname -- "$as_dir" ||
15598 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15599 X"$as_dir" : 'X\(//\)[^/]' \| \
15600 X"$as_dir" : 'X\(//\)$' \| \
15601 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15602 $as_echo X"$as_dir" |
15603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15604 s//\1/
15605 q
15606 }
15607 /^X\(\/\/\)[^/].*/{
15608 s//\1/
15609 q
15610 }
15611 /^X\(\/\/\)$/{
15612 s//\1/
15613 q
15614 }
15615 /^X\(\/\).*/{
15616 s//\1/
15617 q
15618 }
15619 s/.*/./; q'`
15620 test -d "$as_dir" && break
15621 done
15622 test -z "$as_dirs" || eval "mkdir $as_dirs"
15623 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15624 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15625 { (exit 1); exit 1; }; }; }
15626 ac_builddir=.
15627
15628 case "$ac_dir" in
15629 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15630 *)
15631 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15632 # A ".." for each directory in $ac_dir_suffix.
15633 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15634 case $ac_top_builddir_sub in
15635 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15636 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15637 esac ;;
15638 esac
15639 ac_abs_top_builddir=$ac_pwd
15640 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15641 # for backward compatibility:
15642 ac_top_builddir=$ac_top_build_prefix
15643
15644 case $srcdir in
15645 .) # We are building in place.
15646 ac_srcdir=.
15647 ac_top_srcdir=$ac_top_builddir_sub
15648 ac_abs_top_srcdir=$ac_pwd ;;
15649 [\\/]* | ?:[\\/]* ) # Absolute name.
15650 ac_srcdir=$srcdir$ac_dir_suffix;
15651 ac_top_srcdir=$srcdir
15652 ac_abs_top_srcdir=$srcdir ;;
15653 *) # Relative name.
15654 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15655 ac_top_srcdir=$ac_top_build_prefix$srcdir
15656 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15657 esac
15658 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15659
15660
15661 case $ac_mode in
15662 :F)
15663 #
15664 # CONFIG_FILE
15665 #
15666
15667 case $INSTALL in
15668 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15669 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15670 esac
15671 ac_MKDIR_P=$MKDIR_P
15672 case $MKDIR_P in
15673 [\\/$]* | ?:[\\/]* ) ;;
15674 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15675 esac
15676 _ACEOF
15677
15678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15679 # If the template does not know about datarootdir, expand it.
15680 # FIXME: This hack should be removed a few years after 2.60.
15681 ac_datarootdir_hack=; ac_datarootdir_seen=
15682
15683 ac_sed_dataroot='
15684 /datarootdir/ {
15685 p
15686 q
15687 }
15688 /@datadir@/p
15689 /@docdir@/p
15690 /@infodir@/p
15691 /@localedir@/p
15692 /@mandir@/p
15693 '
15694 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15695 *datarootdir*) ac_datarootdir_seen=yes;;
15696 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15697 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15698 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15699 _ACEOF
15700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15701 ac_datarootdir_hack='
15702 s&@datadir@&$datadir&g
15703 s&@docdir@&$docdir&g
15704 s&@infodir@&$infodir&g
15705 s&@localedir@&$localedir&g
15706 s&@mandir@&$mandir&g
15707 s&\\\${datarootdir}&$datarootdir&g' ;;
15708 esac
15709 _ACEOF
15710
15711 # Neutralize VPATH when `$srcdir' = `.'.
15712 # Shell code in configure.ac might set extrasub.
15713 # FIXME: do we really want to maintain this feature?
15714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15715 ac_sed_extra="$ac_vpsub
15716 $extrasub
15717 _ACEOF
15718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15719 :t
15720 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15721 s|@configure_input@|$ac_sed_conf_input|;t t
15722 s&@top_builddir@&$ac_top_builddir_sub&;t t
15723 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15724 s&@srcdir@&$ac_srcdir&;t t
15725 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15726 s&@top_srcdir@&$ac_top_srcdir&;t t
15727 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15728 s&@builddir@&$ac_builddir&;t t
15729 s&@abs_builddir@&$ac_abs_builddir&;t t
15730 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15731 s&@INSTALL@&$ac_INSTALL&;t t
15732 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15733 $ac_datarootdir_hack
15734 "
15735 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15736 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15737 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15738 { (exit 1); exit 1; }; }
15739
15740 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15741 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15742 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15743 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15744 which seems to be undefined. Please make sure it is defined." >&5
15745 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15746 which seems to be undefined. Please make sure it is defined." >&2;}
15747
15748 rm -f "$tmp/stdin"
15749 case $ac_file in
15750 -) cat "$tmp/out" && rm -f "$tmp/out";;
15751 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15752 esac \
15753 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15754 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15755 { (exit 1); exit 1; }; }
15756 ;;
15757
15758
15759 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
15760 $as_echo "$as_me: executing $ac_file commands" >&6;}
15761 ;;
15762 esac
15763
15764
15765 case $ac_file$ac_mode in
15766 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15767 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15768 # are listed without --file. Let's play safe and only enable the eval
15769 # if we detect the quoting.
15770 case $CONFIG_FILES in
15771 *\'*) eval set x "$CONFIG_FILES" ;;
15772 *) set x $CONFIG_FILES ;;
15773 esac
15774 shift
15775 for mf
15776 do
15777 # Strip MF so we end up with the name of the file.
15778 mf=`echo "$mf" | sed -e 's/:.*$//'`
15779 # Check whether this is an Automake generated Makefile or not.
15780 # We used to match only the files named `Makefile.in', but
15781 # some people rename them; so instead we look at the file content.
15782 # Grep'ing the first line is not enough: some people post-process
15783 # each Makefile.in and add a new line on top of each file to say so.
15784 # Grep'ing the whole file is not good either: AIX grep has a line
15785 # limit of 2048, but all sed's we know have understand at least 4000.
15786 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15787 dirpart=`$as_dirname -- "$mf" ||
15788 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15789 X"$mf" : 'X\(//\)[^/]' \| \
15790 X"$mf" : 'X\(//\)$' \| \
15791 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15792 $as_echo X"$mf" |
15793 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15794 s//\1/
15795 q
15796 }
15797 /^X\(\/\/\)[^/].*/{
15798 s//\1/
15799 q
15800 }
15801 /^X\(\/\/\)$/{
15802 s//\1/
15803 q
15804 }
15805 /^X\(\/\).*/{
15806 s//\1/
15807 q
15808 }
15809 s/.*/./; q'`
15810 else
15811 continue
15812 fi
15813 # Extract the definition of DEPDIR, am__include, and am__quote
15814 # from the Makefile without running `make'.
15815 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15816 test -z "$DEPDIR" && continue
15817 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15818 test -z "am__include" && continue
15819 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15820 # When using ansi2knr, U may be empty or an underscore; expand it
15821 U=`sed -n 's/^U = //p' < "$mf"`
15822 # Find all dependency output files, they are included files with
15823 # $(DEPDIR) in their names. We invoke sed twice because it is the
15824 # simplest approach to changing $(DEPDIR) to its actual value in the
15825 # expansion.
15826 for file in `sed -n "
15827 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15828 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15829 # Make sure the directory exists.
15830 test -f "$dirpart/$file" && continue
15831 fdir=`$as_dirname -- "$file" ||
15832 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15833 X"$file" : 'X\(//\)[^/]' \| \
15834 X"$file" : 'X\(//\)$' \| \
15835 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15836 $as_echo X"$file" |
15837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15838 s//\1/
15839 q
15840 }
15841 /^X\(\/\/\)[^/].*/{
15842 s//\1/
15843 q
15844 }
15845 /^X\(\/\/\)$/{
15846 s//\1/
15847 q
15848 }
15849 /^X\(\/\).*/{
15850 s//\1/
15851 q
15852 }
15853 s/.*/./; q'`
15854 { as_dir=$dirpart/$fdir
15855 case $as_dir in #(
15856 -*) as_dir=./$as_dir;;
15857 esac
15858 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15859 as_dirs=
15860 while :; do
15861 case $as_dir in #(
15862 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15863 *) as_qdir=$as_dir;;
15864 esac
15865 as_dirs="'$as_qdir' $as_dirs"
15866 as_dir=`$as_dirname -- "$as_dir" ||
15867 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15868 X"$as_dir" : 'X\(//\)[^/]' \| \
15869 X"$as_dir" : 'X\(//\)$' \| \
15870 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15871 $as_echo X"$as_dir" |
15872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15873 s//\1/
15874 q
15875 }
15876 /^X\(\/\/\)[^/].*/{
15877 s//\1/
15878 q
15879 }
15880 /^X\(\/\/\)$/{
15881 s//\1/
15882 q
15883 }
15884 /^X\(\/\).*/{
15885 s//\1/
15886 q
15887 }
15888 s/.*/./; q'`
15889 test -d "$as_dir" && break
15890 done
15891 test -z "$as_dirs" || eval "mkdir $as_dirs"
15892 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15893 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15894 { (exit 1); exit 1; }; }; }
15895 # echo "creating $dirpart/$file"
15896 echo '# dummy' > "$dirpart/$file"
15897 done
15898 done
15899 }
15900 ;;
15901 "libtool":C)
15902
15903 # See if we are running on zsh, and set the options which allow our
15904 # commands through without removal of \ escapes.
15905 if test -n "${ZSH_VERSION+set}" ; then
15906 setopt NO_GLOB_SUBST
15907 fi
15908
15909 cfgfile="${ofile}T"
15910 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15911 $RM "$cfgfile"
15912
15913 cat <<_LT_EOF >> "$cfgfile"
15914 #! $SHELL
15915
15916 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15917 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15918 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15919 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15920 #
15921 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15922 # 2006, 2007, 2008 Free Software Foundation, Inc.
15923 # Written by Gordon Matzigkeit, 1996
15924 #
15925 # This file is part of GNU Libtool.
15926 #
15927 # GNU Libtool is free software; you can redistribute it and/or
15928 # modify it under the terms of the GNU General Public License as
15929 # published by the Free Software Foundation; either version 2 of
15930 # the License, or (at your option) any later version.
15931 #
15932 # As a special exception to the GNU General Public License,
15933 # if you distribute this file as part of a program or library that
15934 # is built using GNU Libtool, you may include this file under the
15935 # same distribution terms that you use for the rest of that program.
15936 #
15937 # GNU Libtool is distributed in the hope that it will be useful,
15938 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15939 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15940 # GNU General Public License for more details.
15941 #
15942 # You should have received a copy of the GNU General Public License
15943 # along with GNU Libtool; see the file COPYING. If not, a copy
15944 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15945 # obtained by writing to the Free Software Foundation, Inc.,
15946 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15947
15948
15949 # The names of the tagged configurations supported by this script.
15950 available_tags=""
15951
15952 # ### BEGIN LIBTOOL CONFIG
15953
15954 # Assembler program.
15955 AS=$AS
15956
15957 # DLL creation program.
15958 DLLTOOL=$DLLTOOL
15959
15960 # Object dumper program.
15961 OBJDUMP=$OBJDUMP
15962
15963 # Which release of libtool.m4 was used?
15964 macro_version=$macro_version
15965 macro_revision=$macro_revision
15966
15967 # Whether or not to build shared libraries.
15968 build_libtool_libs=$enable_shared
15969
15970 # Whether or not to build static libraries.
15971 build_old_libs=$enable_static
15972
15973 # What type of objects to build.
15974 pic_mode=$pic_mode
15975
15976 # Whether or not to optimize for fast installation.
15977 fast_install=$enable_fast_install
15978
15979 # The host system.
15980 host_alias=$host_alias
15981 host=$host
15982 host_os=$host_os
15983
15984 # The build system.
15985 build_alias=$build_alias
15986 build=$build
15987 build_os=$build_os
15988
15989 # A sed program that does not truncate output.
15990 SED=$lt_SED
15991
15992 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15993 Xsed="\$SED -e 1s/^X//"
15994
15995 # A grep program that handles long lines.
15996 GREP=$lt_GREP
15997
15998 # An ERE matcher.
15999 EGREP=$lt_EGREP
16000
16001 # A literal string matcher.
16002 FGREP=$lt_FGREP
16003
16004 # A BSD- or MS-compatible name lister.
16005 NM=$lt_NM
16006
16007 # Whether we need soft or hard links.
16008 LN_S=$lt_LN_S
16009
16010 # What is the maximum length of a command?
16011 max_cmd_len=$max_cmd_len
16012
16013 # Object file suffix (normally "o").
16014 objext=$ac_objext
16015
16016 # Executable file suffix (normally "").
16017 exeext=$exeext
16018
16019 # whether the shell understands "unset".
16020 lt_unset=$lt_unset
16021
16022 # turn spaces into newlines.
16023 SP2NL=$lt_lt_SP2NL
16024
16025 # turn newlines into spaces.
16026 NL2SP=$lt_lt_NL2SP
16027
16028 # How to create reloadable object files.
16029 reload_flag=$lt_reload_flag
16030 reload_cmds=$lt_reload_cmds
16031
16032 # Method to check whether dependent libraries are shared objects.
16033 deplibs_check_method=$lt_deplibs_check_method
16034
16035 # Command to use when deplibs_check_method == "file_magic".
16036 file_magic_cmd=$lt_file_magic_cmd
16037
16038 # The archiver.
16039 AR=$lt_AR
16040 AR_FLAGS=$lt_AR_FLAGS
16041
16042 # A symbol stripping program.
16043 STRIP=$lt_STRIP
16044
16045 # Commands used to install an old-style archive.
16046 RANLIB=$lt_RANLIB
16047 old_postinstall_cmds=$lt_old_postinstall_cmds
16048 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16049
16050 # A C compiler.
16051 LTCC=$lt_CC
16052
16053 # LTCC compiler flags.
16054 LTCFLAGS=$lt_CFLAGS
16055
16056 # Take the output of nm and produce a listing of raw symbols and C names.
16057 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16058
16059 # Transform the output of nm in a proper C declaration.
16060 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16061
16062 # Transform the output of nm in a C name address pair.
16063 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16064
16065 # Transform the output of nm in a C name address pair when lib prefix is needed.
16066 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16067
16068 # The name of the directory that contains temporary libtool files.
16069 objdir=$objdir
16070
16071 # Shell to use when invoking shell scripts.
16072 SHELL=$lt_SHELL
16073
16074 # An echo program that does not interpret backslashes.
16075 ECHO=$lt_ECHO
16076
16077 # Used to examine libraries when file_magic_cmd begins with "file".
16078 MAGIC_CMD=$MAGIC_CMD
16079
16080 # Must we lock files when doing compilation?
16081 need_locks=$lt_need_locks
16082
16083 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16084 DSYMUTIL=$lt_DSYMUTIL
16085
16086 # Tool to change global to local symbols on Mac OS X.
16087 NMEDIT=$lt_NMEDIT
16088
16089 # Tool to manipulate fat objects and archives on Mac OS X.
16090 LIPO=$lt_LIPO
16091
16092 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16093 OTOOL=$lt_OTOOL
16094
16095 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16096 OTOOL64=$lt_OTOOL64
16097
16098 # Old archive suffix (normally "a").
16099 libext=$libext
16100
16101 # Shared library suffix (normally ".so").
16102 shrext_cmds=$lt_shrext_cmds
16103
16104 # The commands to extract the exported symbol list from a shared archive.
16105 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16106
16107 # Variables whose values should be saved in libtool wrapper scripts and
16108 # restored at link time.
16109 variables_saved_for_relink=$lt_variables_saved_for_relink
16110
16111 # Do we need the "lib" prefix for modules?
16112 need_lib_prefix=$need_lib_prefix
16113
16114 # Do we need a version for libraries?
16115 need_version=$need_version
16116
16117 # Library versioning type.
16118 version_type=$version_type
16119
16120 # Shared library runtime path variable.
16121 runpath_var=$runpath_var
16122
16123 # Shared library path variable.
16124 shlibpath_var=$shlibpath_var
16125
16126 # Is shlibpath searched before the hard-coded library search path?
16127 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16128
16129 # Format of library name prefix.
16130 libname_spec=$lt_libname_spec
16131
16132 # List of archive names. First name is the real one, the rest are links.
16133 # The last name is the one that the linker finds with -lNAME
16134 library_names_spec=$lt_library_names_spec
16135
16136 # The coded name of the library, if different from the real name.
16137 soname_spec=$lt_soname_spec
16138
16139 # Command to use after installation of a shared archive.
16140 postinstall_cmds=$lt_postinstall_cmds
16141
16142 # Command to use after uninstallation of a shared archive.
16143 postuninstall_cmds=$lt_postuninstall_cmds
16144
16145 # Commands used to finish a libtool library installation in a directory.
16146 finish_cmds=$lt_finish_cmds
16147
16148 # As "finish_cmds", except a single script fragment to be evaled but
16149 # not shown.
16150 finish_eval=$lt_finish_eval
16151
16152 # Whether we should hardcode library paths into libraries.
16153 hardcode_into_libs=$hardcode_into_libs
16154
16155 # Compile-time system search path for libraries.
16156 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16157
16158 # Run-time system search path for libraries.
16159 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16160
16161 # Whether dlopen is supported.
16162 dlopen_support=$enable_dlopen
16163
16164 # Whether dlopen of programs is supported.
16165 dlopen_self=$enable_dlopen_self
16166
16167 # Whether dlopen of statically linked programs is supported.
16168 dlopen_self_static=$enable_dlopen_self_static
16169
16170 # Commands to strip libraries.
16171 old_striplib=$lt_old_striplib
16172 striplib=$lt_striplib
16173
16174
16175 # The linker used to build libraries.
16176 LD=$lt_LD
16177
16178 # Commands used to build an old-style archive.
16179 old_archive_cmds=$lt_old_archive_cmds
16180
16181 # A language specific compiler.
16182 CC=$lt_compiler
16183
16184 # Is the compiler the GNU compiler?
16185 with_gcc=$GCC
16186
16187 # Compiler flag to turn off builtin functions.
16188 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16189
16190 # How to pass a linker flag through the compiler.
16191 wl=$lt_lt_prog_compiler_wl
16192
16193 # Additional compiler flags for building library objects.
16194 pic_flag=$lt_lt_prog_compiler_pic
16195
16196 # Compiler flag to prevent dynamic linking.
16197 link_static_flag=$lt_lt_prog_compiler_static
16198
16199 # Does compiler simultaneously support -c and -o options?
16200 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16201
16202 # Whether or not to add -lc for building shared libraries.
16203 build_libtool_need_lc=$archive_cmds_need_lc
16204
16205 # Whether or not to disallow shared libs when runtime libs are static.
16206 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16207
16208 # Compiler flag to allow reflexive dlopens.
16209 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16210
16211 # Compiler flag to generate shared objects directly from archives.
16212 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16213
16214 # Whether the compiler copes with passing no objects directly.
16215 compiler_needs_object=$lt_compiler_needs_object
16216
16217 # Create an old-style archive from a shared archive.
16218 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16219
16220 # Create a temporary old-style archive to link instead of a shared archive.
16221 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16222
16223 # Commands used to build a shared archive.
16224 archive_cmds=$lt_archive_cmds
16225 archive_expsym_cmds=$lt_archive_expsym_cmds
16226
16227 # Commands used to build a loadable module if different from building
16228 # a shared archive.
16229 module_cmds=$lt_module_cmds
16230 module_expsym_cmds=$lt_module_expsym_cmds
16231
16232 # Whether we are building with GNU ld or not.
16233 with_gnu_ld=$lt_with_gnu_ld
16234
16235 # Flag that allows shared libraries with undefined symbols to be built.
16236 allow_undefined_flag=$lt_allow_undefined_flag
16237
16238 # Flag that enforces no undefined symbols.
16239 no_undefined_flag=$lt_no_undefined_flag
16240
16241 # Flag to hardcode \$libdir into a binary during linking.
16242 # This must work even if \$libdir does not exist
16243 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16244
16245 # If ld is used when linking, flag to hardcode \$libdir into a binary
16246 # during linking. This must work even if \$libdir does not exist.
16247 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16248
16249 # Whether we need a single "-rpath" flag with a separated argument.
16250 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16251
16252 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16253 # DIR into the resulting binary.
16254 hardcode_direct=$hardcode_direct
16255
16256 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16257 # DIR into the resulting binary and the resulting library dependency is
16258 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16259 # library is relocated.
16260 hardcode_direct_absolute=$hardcode_direct_absolute
16261
16262 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16263 # into the resulting binary.
16264 hardcode_minus_L=$hardcode_minus_L
16265
16266 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16267 # into the resulting binary.
16268 hardcode_shlibpath_var=$hardcode_shlibpath_var
16269
16270 # Set to "yes" if building a shared library automatically hardcodes DIR
16271 # into the library and all subsequent libraries and executables linked
16272 # against it.
16273 hardcode_automatic=$hardcode_automatic
16274
16275 # Set to yes if linker adds runtime paths of dependent libraries
16276 # to runtime path list.
16277 inherit_rpath=$inherit_rpath
16278
16279 # Whether libtool must link a program against all its dependency libraries.
16280 link_all_deplibs=$link_all_deplibs
16281
16282 # Fix the shell variable \$srcfile for the compiler.
16283 fix_srcfile_path=$lt_fix_srcfile_path
16284
16285 # Set to "yes" if exported symbols are required.
16286 always_export_symbols=$always_export_symbols
16287
16288 # The commands to list exported symbols.
16289 export_symbols_cmds=$lt_export_symbols_cmds
16290
16291 # Symbols that should not be listed in the preloaded symbols.
16292 exclude_expsyms=$lt_exclude_expsyms
16293
16294 # Symbols that must always be exported.
16295 include_expsyms=$lt_include_expsyms
16296
16297 # Commands necessary for linking programs (against libraries) with templates.
16298 prelink_cmds=$lt_prelink_cmds
16299
16300 # Specify filename containing input files.
16301 file_list_spec=$lt_file_list_spec
16302
16303 # How to hardcode a shared library path into an executable.
16304 hardcode_action=$hardcode_action
16305
16306 # ### END LIBTOOL CONFIG
16307
16308 _LT_EOF
16309
16310 case $host_os in
16311 aix3*)
16312 cat <<\_LT_EOF >> "$cfgfile"
16313 # AIX sometimes has problems with the GCC collect2 program. For some
16314 # reason, if we set the COLLECT_NAMES environment variable, the problems
16315 # vanish in a puff of smoke.
16316 if test "X${COLLECT_NAMES+set}" != Xset; then
16317 COLLECT_NAMES=
16318 export COLLECT_NAMES
16319 fi
16320 _LT_EOF
16321 ;;
16322 esac
16323
16324
16325 ltmain="$ac_aux_dir/ltmain.sh"
16326
16327
16328 # We use sed instead of cat because bash on DJGPP gets confused if
16329 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16330 # text mode, it properly converts lines to CR/LF. This bash problem
16331 # is reportedly fixed, but why not run on old versions too?
16332 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16333 || (rm -f "$cfgfile"; exit 1)
16334
16335 case $xsi_shell in
16336 yes)
16337 cat << \_LT_EOF >> "$cfgfile"
16338
16339 # func_dirname file append nondir_replacement
16340 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16341 # otherwise set result to NONDIR_REPLACEMENT.
16342 func_dirname ()
16343 {
16344 case ${1} in
16345 */*) func_dirname_result="${1%/*}${2}" ;;
16346 * ) func_dirname_result="${3}" ;;
16347 esac
16348 }
16349
16350 # func_basename file
16351 func_basename ()
16352 {
16353 func_basename_result="${1##*/}"
16354 }
16355
16356 # func_dirname_and_basename file append nondir_replacement
16357 # perform func_basename and func_dirname in a single function
16358 # call:
16359 # dirname: Compute the dirname of FILE. If nonempty,
16360 # add APPEND to the result, otherwise set result
16361 # to NONDIR_REPLACEMENT.
16362 # value returned in "$func_dirname_result"
16363 # basename: Compute filename of FILE.
16364 # value retuned in "$func_basename_result"
16365 # Implementation must be kept synchronized with func_dirname
16366 # and func_basename. For efficiency, we do not delegate to
16367 # those functions but instead duplicate the functionality here.
16368 func_dirname_and_basename ()
16369 {
16370 case ${1} in
16371 */*) func_dirname_result="${1%/*}${2}" ;;
16372 * ) func_dirname_result="${3}" ;;
16373 esac
16374 func_basename_result="${1##*/}"
16375 }
16376
16377 # func_stripname prefix suffix name
16378 # strip PREFIX and SUFFIX off of NAME.
16379 # PREFIX and SUFFIX must not contain globbing or regex special
16380 # characters, hashes, percent signs, but SUFFIX may contain a leading
16381 # dot (in which case that matches only a dot).
16382 func_stripname ()
16383 {
16384 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16385 # positional parameters, so assign one to ordinary parameter first.
16386 func_stripname_result=${3}
16387 func_stripname_result=${func_stripname_result#"${1}"}
16388 func_stripname_result=${func_stripname_result%"${2}"}
16389 }
16390
16391 # func_opt_split
16392 func_opt_split ()
16393 {
16394 func_opt_split_opt=${1%%=*}
16395 func_opt_split_arg=${1#*=}
16396 }
16397
16398 # func_lo2o object
16399 func_lo2o ()
16400 {
16401 case ${1} in
16402 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16403 *) func_lo2o_result=${1} ;;
16404 esac
16405 }
16406
16407 # func_xform libobj-or-source
16408 func_xform ()
16409 {
16410 func_xform_result=${1%.*}.lo
16411 }
16412
16413 # func_arith arithmetic-term...
16414 func_arith ()
16415 {
16416 func_arith_result=$(( $* ))
16417 }
16418
16419 # func_len string
16420 # STRING may not start with a hyphen.
16421 func_len ()
16422 {
16423 func_len_result=${#1}
16424 }
16425
16426 _LT_EOF
16427 ;;
16428 *) # Bourne compatible functions.
16429 cat << \_LT_EOF >> "$cfgfile"
16430
16431 # func_dirname file append nondir_replacement
16432 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16433 # otherwise set result to NONDIR_REPLACEMENT.
16434 func_dirname ()
16435 {
16436 # Extract subdirectory from the argument.
16437 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16438 if test "X$func_dirname_result" = "X${1}"; then
16439 func_dirname_result="${3}"
16440 else
16441 func_dirname_result="$func_dirname_result${2}"
16442 fi
16443 }
16444
16445 # func_basename file
16446 func_basename ()
16447 {
16448 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16449 }
16450
16451
16452 # func_stripname prefix suffix name
16453 # strip PREFIX and SUFFIX off of NAME.
16454 # PREFIX and SUFFIX must not contain globbing or regex special
16455 # characters, hashes, percent signs, but SUFFIX may contain a leading
16456 # dot (in which case that matches only a dot).
16457 # func_strip_suffix prefix name
16458 func_stripname ()
16459 {
16460 case ${2} in
16461 .*) func_stripname_result=`$ECHO "X${3}" \
16462 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16463 *) func_stripname_result=`$ECHO "X${3}" \
16464 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16465 esac
16466 }
16467
16468 # sed scripts:
16469 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16470 my_sed_long_arg='1s/^-[^=]*=//'
16471
16472 # func_opt_split
16473 func_opt_split ()
16474 {
16475 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16476 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16477 }
16478
16479 # func_lo2o object
16480 func_lo2o ()
16481 {
16482 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16483 }
16484
16485 # func_xform libobj-or-source
16486 func_xform ()
16487 {
16488 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16489 }
16490
16491 # func_arith arithmetic-term...
16492 func_arith ()
16493 {
16494 func_arith_result=`expr "$@"`
16495 }
16496
16497 # func_len string
16498 # STRING may not start with a hyphen.
16499 func_len ()
16500 {
16501 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16502 }
16503
16504 _LT_EOF
16505 esac
16506
16507 case $lt_shell_append in
16508 yes)
16509 cat << \_LT_EOF >> "$cfgfile"
16510
16511 # func_append var value
16512 # Append VALUE to the end of shell variable VAR.
16513 func_append ()
16514 {
16515 eval "$1+=\$2"
16516 }
16517 _LT_EOF
16518 ;;
16519 *)
16520 cat << \_LT_EOF >> "$cfgfile"
16521
16522 # func_append var value
16523 # Append VALUE to the end of shell variable VAR.
16524 func_append ()
16525 {
16526 eval "$1=\$$1\$2"
16527 }
16528
16529 _LT_EOF
16530 ;;
16531 esac
16532
16533
16534 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16535 || (rm -f "$cfgfile"; exit 1)
16536
16537 mv -f "$cfgfile" "$ofile" ||
16538 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16539 chmod +x "$ofile"
16540
16541 ;;
16542
16543 esac
16544 done # for ac_tag
16545
16546
16547 { (exit 0); exit 0; }
16548 _ACEOF
16549 chmod +x $CONFIG_STATUS
16550 ac_clean_files=$ac_clean_files_save
16551
16552 test $ac_write_fail = 0 ||
16553 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16554 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16555 { (exit 1); exit 1; }; }
16556
16557
16558 # configure is writing to config.log, and then calls config.status.
16559 # config.status does its own redirection, appending to config.log.
16560 # Unfortunately, on DOS this fails, as config.log is still kept open
16561 # by configure, so config.status won't be able to write to it; its
16562 # output is simply discarded. So we exec the FD to /dev/null,
16563 # effectively closing config.log, so it can be properly (re)opened and
16564 # appended to by config.status. When coming back to configure, we
16565 # need to make the FD available again.
16566 if test "$no_create" != yes; then
16567 ac_cs_success=:
16568 ac_config_status_args=
16569 test "$silent" = yes &&
16570 ac_config_status_args="$ac_config_status_args --quiet"
16571 exec 5>/dev/null
16572 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16573 exec 5>>config.log
16574 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16575 # would make configure fail if this is the last instruction.
16576 $ac_cs_success || { (exit 1); exit 1; }
16577 fi
16578 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16579 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16580 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16581 fi
16582
16583
16584 echo
16585 echo libIDL $LIBIDL_VERSION configuration complete
16586 echo
16587 echo " C Preprocessor: \"$CPP_PROGRAM\""
16588 if [ "$ac_cv_cpp_pipe_stdin" = "yes" ]; then
16589 echo " Standard input supported."
16590 else
16591 echo " Using symlink method."
16592 fi
16593 echo