configure revision 1.1.1.3 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for xf86-video-tdfx 1.4.2.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
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 bug-autoconf@gnu.org 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='xf86-video-tdfx'
747 PACKAGE_TARNAME='xf86-video-tdfx'
748 PACKAGE_VERSION='1.4.2'
749 PACKAGE_STRING='xf86-video-tdfx 1.4.2'
750 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
751
752 ac_unique_file="Makefile.am"
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='LTLIBOBJS
790 LIBOBJS
791 ADMIN_MAN_DIR
792 DRIVER_MAN_DIR
793 MISC_MAN_DIR
794 FILE_MAN_DIR
795 LIB_MAN_DIR
796 APP_MAN_DIR
797 ADMIN_MAN_SUFFIX
798 DRIVER_MAN_SUFFIX
799 MISC_MAN_SUFFIX
800 FILE_MAN_SUFFIX
801 LIB_MAN_SUFFIX
802 APP_MAN_SUFFIX
803 DRIVER_NAME
804 moduledir
805 XSERVER_LIBPCIACCESS_FALSE
806 XSERVER_LIBPCIACCESS_TRUE
807 PCIACCESS_LIBS
808 PCIACCESS_CFLAGS
809 DRI_LIBS
810 DRI_CFLAGS
811 DRI_FALSE
812 DRI_TRUE
813 XORG_LIBS
814 XORG_CFLAGS
815 PKG_CONFIG
816 CPP
817 OTOOL64
818 OTOOL
819 LIPO
820 NMEDIT
821 DSYMUTIL
822 lt_ECHO
823 RANLIB
824 AR
825 OBJDUMP
826 LN_S
827 NM
828 ac_ct_DUMPBIN
829 DUMPBIN
830 LD
831 FGREP
832 EGREP
833 GREP
834 SED
835 am__fastdepCC_FALSE
836 am__fastdepCC_TRUE
837 CCDEPMODE
838 AMDEPBACKSLASH
839 AMDEP_FALSE
840 AMDEP_TRUE
841 am__quote
842 am__include
843 DEPDIR
844 OBJEXT
845 EXEEXT
846 ac_ct_CC
847 CPPFLAGS
848 LDFLAGS
849 CFLAGS
850 CC
851 host_os
852 host_vendor
853 host_cpu
854 host
855 build_os
856 build_vendor
857 build_cpu
858 build
859 LIBTOOL
860 MAINT
861 MAINTAINER_MODE_FALSE
862 MAINTAINER_MODE_TRUE
863 am__untar
864 am__tar
865 AMTAR
866 am__leading_dot
867 SET_MAKE
868 AWK
869 mkdir_p
870 MKDIR_P
871 INSTALL_STRIP_PROGRAM
872 STRIP
873 install_sh
874 MAKEINFO
875 AUTOHEADER
876 AUTOMAKE
877 AUTOCONF
878 ACLOCAL
879 VERSION
880 PACKAGE
881 CYGPATH_W
882 am__isrc
883 INSTALL_DATA
884 INSTALL_SCRIPT
885 INSTALL_PROGRAM
886 target_alias
887 host_alias
888 build_alias
889 LIBS
890 ECHO_T
891 ECHO_N
892 ECHO_C
893 DEFS
894 mandir
895 localedir
896 libdir
897 psdir
898 pdfdir
899 dvidir
900 htmldir
901 infodir
902 docdir
903 oldincludedir
904 includedir
905 localstatedir
906 sharedstatedir
907 sysconfdir
908 datadir
909 datarootdir
910 libexecdir
911 sbindir
912 bindir
913 program_transform_name
914 prefix
915 exec_prefix
916 PACKAGE_BUGREPORT
917 PACKAGE_STRING
918 PACKAGE_VERSION
919 PACKAGE_TARNAME
920 PACKAGE_NAME
921 PATH_SEPARATOR
922 SHELL'
923 ac_subst_files=''
924 ac_user_opts='
925 enable_option_checking
926 enable_maintainer_mode
927 enable_static
928 enable_shared
929 with_pic
930 enable_fast_install
931 enable_dependency_tracking
932 with_gnu_ld
933 enable_libtool_lock
934 with_xorg_module_dir
935 enable_dri
936 with_release_version
937 '
938 ac_precious_vars='build_alias
939 host_alias
940 target_alias
941 CC
942 CFLAGS
943 LDFLAGS
944 LIBS
945 CPPFLAGS
946 CPP
947 PKG_CONFIG
948 XORG_CFLAGS
949 XORG_LIBS
950 DRI_CFLAGS
951 DRI_LIBS
952 PCIACCESS_CFLAGS
953 PCIACCESS_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 xf86-video-tdfx 1.4.2 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/xf86-video-tdfx]
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 xf86-video-tdfx 1.4.2:";;
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-maintainer-mode enable make rules and dependencies not useful
1585 (and sometimes confusing) to the casual installer
1586 --enable-static[=PKGS] build static libraries [default=no]
1587 --enable-shared[=PKGS] build shared libraries [default=yes]
1588 --enable-fast-install[=PKGS]
1589 optimize for fast installation [default=yes]
1590 --disable-dependency-tracking speeds up one-time build
1591 --enable-dependency-tracking do not reject slow dependency extractors
1592 --disable-libtool-lock avoid locking (might break parallel builds)
1593 --disable-dri Disable DRI support [default=auto]
1594
1595 Optional Packages:
1596 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1597 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1598 --with-pic try to use only PIC/non-PIC objects [default=use
1599 both]
1600 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1601 --with-xorg-module-dir=DIR
1602 Default xorg module directory
1603 [default=$libdir/xorg/modules]
1604 --with-release-version=STRING
1605 Use release version string in package name
1606
1607 Some influential environment variables:
1608 CC C compiler command
1609 CFLAGS C compiler flags
1610 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1611 nonstandard directory <lib dir>
1612 LIBS libraries to pass to the linker, e.g. -l<library>
1613 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1614 you have headers in a nonstandard directory <include dir>
1615 CPP C preprocessor
1616 PKG_CONFIG path to pkg-config utility
1617 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1618 XORG_LIBS linker flags for XORG, overriding pkg-config
1619 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config
1620 DRI_LIBS linker flags for DRI, overriding pkg-config
1621 PCIACCESS_CFLAGS
1622 C compiler flags for PCIACCESS, overriding pkg-config
1623 PCIACCESS_LIBS
1624 linker flags for PCIACCESS, overriding pkg-config
1625
1626 Use these variables to override the choices made by `configure' or to help
1627 it to find libraries and programs with nonstandard names/locations.
1628
1629 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1630 _ACEOF
1631 ac_status=$?
1632 fi
1633
1634 if test "$ac_init_help" = "recursive"; then
1635 # If there are subdirs, report their specific --help.
1636 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1637 test -d "$ac_dir" ||
1638 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1639 continue
1640 ac_builddir=.
1641
1642 case "$ac_dir" in
1643 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1644 *)
1645 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1646 # A ".." for each directory in $ac_dir_suffix.
1647 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1648 case $ac_top_builddir_sub in
1649 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1651 esac ;;
1652 esac
1653 ac_abs_top_builddir=$ac_pwd
1654 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1655 # for backward compatibility:
1656 ac_top_builddir=$ac_top_build_prefix
1657
1658 case $srcdir in
1659 .) # We are building in place.
1660 ac_srcdir=.
1661 ac_top_srcdir=$ac_top_builddir_sub
1662 ac_abs_top_srcdir=$ac_pwd ;;
1663 [\\/]* | ?:[\\/]* ) # Absolute name.
1664 ac_srcdir=$srcdir$ac_dir_suffix;
1665 ac_top_srcdir=$srcdir
1666 ac_abs_top_srcdir=$srcdir ;;
1667 *) # Relative name.
1668 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1669 ac_top_srcdir=$ac_top_build_prefix$srcdir
1670 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1671 esac
1672 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1673
1674 cd "$ac_dir" || { ac_status=$?; continue; }
1675 # Check for guested configure.
1676 if test -f "$ac_srcdir/configure.gnu"; then
1677 echo &&
1678 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1679 elif test -f "$ac_srcdir/configure"; then
1680 echo &&
1681 $SHELL "$ac_srcdir/configure" --help=recursive
1682 else
1683 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1684 fi || ac_status=$?
1685 cd "$ac_pwd" || { ac_status=$?; break; }
1686 done
1687 fi
1688
1689 test -n "$ac_init_help" && exit $ac_status
1690 if $ac_init_version; then
1691 cat <<\_ACEOF
1692 xf86-video-tdfx configure 1.4.2
1693 generated by GNU Autoconf 2.63
1694
1695 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1696 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1697 This configure script is free software; the Free Software Foundation
1698 gives unlimited permission to copy, distribute and modify it.
1699 _ACEOF
1700 exit
1701 fi
1702 cat >config.log <<_ACEOF
1703 This file contains any messages produced by compilers while
1704 running configure, to aid debugging if configure makes a mistake.
1705
1706 It was created by xf86-video-tdfx $as_me 1.4.2, which was
1707 generated by GNU Autoconf 2.63. Invocation command line was
1708
1709 $ $0 $@
1710
1711 _ACEOF
1712 exec 5>>config.log
1713 {
1714 cat <<_ASUNAME
1715 ## --------- ##
1716 ## Platform. ##
1717 ## --------- ##
1718
1719 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1720 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1721 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1722 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1723 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1724
1725 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1726 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1727
1728 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1729 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1730 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1731 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1732 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1733 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1734 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1735
1736 _ASUNAME
1737
1738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1739 for as_dir in $PATH
1740 do
1741 IFS=$as_save_IFS
1742 test -z "$as_dir" && as_dir=.
1743 $as_echo "PATH: $as_dir"
1744 done
1745 IFS=$as_save_IFS
1746
1747 } >&5
1748
1749 cat >&5 <<_ACEOF
1750
1751
1752 ## ----------- ##
1753 ## Core tests. ##
1754 ## ----------- ##
1755
1756 _ACEOF
1757
1758
1759 # Keep a trace of the command line.
1760 # Strip out --no-create and --no-recursion so they do not pile up.
1761 # Strip out --silent because we don't want to record it for future runs.
1762 # Also quote any args containing shell meta-characters.
1763 # Make two passes to allow for proper duplicate-argument suppression.
1764 ac_configure_args=
1765 ac_configure_args0=
1766 ac_configure_args1=
1767 ac_must_keep_next=false
1768 for ac_pass in 1 2
1769 do
1770 for ac_arg
1771 do
1772 case $ac_arg in
1773 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1774 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1775 | -silent | --silent | --silen | --sile | --sil)
1776 continue ;;
1777 *\'*)
1778 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1779 esac
1780 case $ac_pass in
1781 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1782 2)
1783 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1784 if test $ac_must_keep_next = true; then
1785 ac_must_keep_next=false # Got value, back to normal.
1786 else
1787 case $ac_arg in
1788 *=* | --config-cache | -C | -disable-* | --disable-* \
1789 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1790 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1791 | -with-* | --with-* | -without-* | --without-* | --x)
1792 case "$ac_configure_args0 " in
1793 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1794 esac
1795 ;;
1796 -* ) ac_must_keep_next=true ;;
1797 esac
1798 fi
1799 ac_configure_args="$ac_configure_args '$ac_arg'"
1800 ;;
1801 esac
1802 done
1803 done
1804 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1805 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1806
1807 # When interrupted or exit'd, cleanup temporary files, and complete
1808 # config.log. We remove comments because anyway the quotes in there
1809 # would cause problems or look ugly.
1810 # WARNING: Use '\'' to represent an apostrophe within the trap.
1811 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1812 trap 'exit_status=$?
1813 # Save into config.log some information that might help in debugging.
1814 {
1815 echo
1816
1817 cat <<\_ASBOX
1818 ## ---------------- ##
1819 ## Cache variables. ##
1820 ## ---------------- ##
1821 _ASBOX
1822 echo
1823 # The following way of writing the cache mishandles newlines in values,
1824 (
1825 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1826 eval ac_val=\$$ac_var
1827 case $ac_val in #(
1828 *${as_nl}*)
1829 case $ac_var in #(
1830 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1831 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1832 esac
1833 case $ac_var in #(
1834 _ | IFS | as_nl) ;; #(
1835 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1836 *) $as_unset $ac_var ;;
1837 esac ;;
1838 esac
1839 done
1840 (set) 2>&1 |
1841 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1842 *${as_nl}ac_space=\ *)
1843 sed -n \
1844 "s/'\''/'\''\\\\'\'''\''/g;
1845 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1846 ;; #(
1847 *)
1848 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1849 ;;
1850 esac |
1851 sort
1852 )
1853 echo
1854
1855 cat <<\_ASBOX
1856 ## ----------------- ##
1857 ## Output variables. ##
1858 ## ----------------- ##
1859 _ASBOX
1860 echo
1861 for ac_var in $ac_subst_vars
1862 do
1863 eval ac_val=\$$ac_var
1864 case $ac_val in
1865 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1866 esac
1867 $as_echo "$ac_var='\''$ac_val'\''"
1868 done | sort
1869 echo
1870
1871 if test -n "$ac_subst_files"; then
1872 cat <<\_ASBOX
1873 ## ------------------- ##
1874 ## File substitutions. ##
1875 ## ------------------- ##
1876 _ASBOX
1877 echo
1878 for ac_var in $ac_subst_files
1879 do
1880 eval ac_val=\$$ac_var
1881 case $ac_val in
1882 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1883 esac
1884 $as_echo "$ac_var='\''$ac_val'\''"
1885 done | sort
1886 echo
1887 fi
1888
1889 if test -s confdefs.h; then
1890 cat <<\_ASBOX
1891 ## ----------- ##
1892 ## confdefs.h. ##
1893 ## ----------- ##
1894 _ASBOX
1895 echo
1896 cat confdefs.h
1897 echo
1898 fi
1899 test "$ac_signal" != 0 &&
1900 $as_echo "$as_me: caught signal $ac_signal"
1901 $as_echo "$as_me: exit $exit_status"
1902 } >&5
1903 rm -f core *.core core.conftest.* &&
1904 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1905 exit $exit_status
1906 ' 0
1907 for ac_signal in 1 2 13 15; do
1908 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1909 done
1910 ac_signal=0
1911
1912 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1913 rm -f -r conftest* confdefs.h
1914
1915 # Predefined preprocessor variables.
1916
1917 cat >>confdefs.h <<_ACEOF
1918 #define PACKAGE_NAME "$PACKAGE_NAME"
1919 _ACEOF
1920
1921
1922 cat >>confdefs.h <<_ACEOF
1923 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1924 _ACEOF
1925
1926
1927 cat >>confdefs.h <<_ACEOF
1928 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1929 _ACEOF
1930
1931
1932 cat >>confdefs.h <<_ACEOF
1933 #define PACKAGE_STRING "$PACKAGE_STRING"
1934 _ACEOF
1935
1936
1937 cat >>confdefs.h <<_ACEOF
1938 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1939 _ACEOF
1940
1941
1942 # Let the site file select an alternate cache file if it wants to.
1943 # Prefer an explicitly selected file to automatically selected ones.
1944 ac_site_file1=NONE
1945 ac_site_file2=NONE
1946 if test -n "$CONFIG_SITE"; then
1947 ac_site_file1=$CONFIG_SITE
1948 elif test "x$prefix" != xNONE; then
1949 ac_site_file1=$prefix/share/config.site
1950 ac_site_file2=$prefix/etc/config.site
1951 else
1952 ac_site_file1=$ac_default_prefix/share/config.site
1953 ac_site_file2=$ac_default_prefix/etc/config.site
1954 fi
1955 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1956 do
1957 test "x$ac_site_file" = xNONE && continue
1958 if test -r "$ac_site_file"; then
1959 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1960 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1961 sed 's/^/| /' "$ac_site_file" >&5
1962 . "$ac_site_file"
1963 fi
1964 done
1965
1966 if test -r "$cache_file"; then
1967 # Some versions of bash will fail to source /dev/null (special
1968 # files actually), so we avoid doing that.
1969 if test -f "$cache_file"; then
1970 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1971 $as_echo "$as_me: loading cache $cache_file" >&6;}
1972 case $cache_file in
1973 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1974 *) . "./$cache_file";;
1975 esac
1976 fi
1977 else
1978 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1979 $as_echo "$as_me: creating cache $cache_file" >&6;}
1980 >$cache_file
1981 fi
1982
1983 # Check that the precious variables saved in the cache have kept the same
1984 # value.
1985 ac_cache_corrupted=false
1986 for ac_var in $ac_precious_vars; do
1987 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1988 eval ac_new_set=\$ac_env_${ac_var}_set
1989 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1990 eval ac_new_val=\$ac_env_${ac_var}_value
1991 case $ac_old_set,$ac_new_set in
1992 set,)
1993 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1994 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1995 ac_cache_corrupted=: ;;
1996 ,set)
1997 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1998 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1999 ac_cache_corrupted=: ;;
2000 ,);;
2001 *)
2002 if test "x$ac_old_val" != "x$ac_new_val"; then
2003 # differences in whitespace do not lead to failure.
2004 ac_old_val_w=`echo x $ac_old_val`
2005 ac_new_val_w=`echo x $ac_new_val`
2006 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2007 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2008 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2009 ac_cache_corrupted=:
2010 else
2011 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2012 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2013 eval $ac_var=\$ac_old_val
2014 fi
2015 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2016 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2017 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2018 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2019 fi;;
2020 esac
2021 # Pass precious variables to config.status.
2022 if test "$ac_new_set" = set; then
2023 case $ac_new_val in
2024 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2025 *) ac_arg=$ac_var=$ac_new_val ;;
2026 esac
2027 case " $ac_configure_args " in
2028 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2029 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2030 esac
2031 fi
2032 done
2033 if $ac_cache_corrupted; then
2034 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2036 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2037 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2038 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2039 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2040 { (exit 1); exit 1; }; }
2041 fi
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067 ac_ext=c
2068 ac_cpp='$CPP $CPPFLAGS'
2069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2072
2073
2074
2075
2076 ac_config_headers="$ac_config_headers config.h"
2077
2078 ac_aux_dir=
2079 for ac_dir in . "$srcdir"/.; do
2080 if test -f "$ac_dir/install-sh"; then
2081 ac_aux_dir=$ac_dir
2082 ac_install_sh="$ac_aux_dir/install-sh -c"
2083 break
2084 elif test -f "$ac_dir/install.sh"; then
2085 ac_aux_dir=$ac_dir
2086 ac_install_sh="$ac_aux_dir/install.sh -c"
2087 break
2088 elif test -f "$ac_dir/shtool"; then
2089 ac_aux_dir=$ac_dir
2090 ac_install_sh="$ac_aux_dir/shtool install -c"
2091 break
2092 fi
2093 done
2094 if test -z "$ac_aux_dir"; then
2095 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2096 $as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2097 { (exit 1); exit 1; }; }
2098 fi
2099
2100 # These three variables are undocumented and unsupported,
2101 # and are intended to be withdrawn in a future Autoconf release.
2102 # They can cause serious problems if a builder's source tree is in a directory
2103 # whose full name contains unusual characters.
2104 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2105 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2106 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2107
2108
2109
2110 am__api_version='1.10'
2111
2112 # Find a good install program. We prefer a C program (faster),
2113 # so one script is as good as another. But avoid the broken or
2114 # incompatible versions:
2115 # SysV /etc/install, /usr/sbin/install
2116 # SunOS /usr/etc/install
2117 # IRIX /sbin/install
2118 # AIX /bin/install
2119 # AmigaOS /C/install, which installs bootblocks on floppy discs
2120 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2121 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2122 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2123 # OS/2's system install, which has a completely different semantic
2124 # ./install, which can be erroneously created by make from ./install.sh.
2125 # Reject install programs that cannot install multiple files.
2126 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2127 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2128 if test -z "$INSTALL"; then
2129 if test "${ac_cv_path_install+set}" = set; then
2130 $as_echo_n "(cached) " >&6
2131 else
2132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133 for as_dir in $PATH
2134 do
2135 IFS=$as_save_IFS
2136 test -z "$as_dir" && as_dir=.
2137 # Account for people who put trailing slashes in PATH elements.
2138 case $as_dir/ in
2139 ./ | .// | /cC/* | \
2140 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2141 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2142 /usr/ucb/* ) ;;
2143 *)
2144 # OSF1 and SCO ODT 3.0 have their own names for install.
2145 # Don't use installbsd from OSF since it installs stuff as root
2146 # by default.
2147 for ac_prog in ginstall scoinst install; do
2148 for ac_exec_ext in '' $ac_executable_extensions; do
2149 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2150 if test $ac_prog = install &&
2151 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2152 # AIX install. It has an incompatible calling convention.
2153 :
2154 elif test $ac_prog = install &&
2155 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2156 # program-specific install script used by HP pwplus--don't use.
2157 :
2158 else
2159 rm -rf conftest.one conftest.two conftest.dir
2160 echo one > conftest.one
2161 echo two > conftest.two
2162 mkdir conftest.dir
2163 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2164 test -s conftest.one && test -s conftest.two &&
2165 test -s conftest.dir/conftest.one &&
2166 test -s conftest.dir/conftest.two
2167 then
2168 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2169 break 3
2170 fi
2171 fi
2172 fi
2173 done
2174 done
2175 ;;
2176 esac
2177
2178 done
2179 IFS=$as_save_IFS
2180
2181 rm -rf conftest.one conftest.two conftest.dir
2182
2183 fi
2184 if test "${ac_cv_path_install+set}" = set; then
2185 INSTALL=$ac_cv_path_install
2186 else
2187 # As a last resort, use the slow shell script. Don't cache a
2188 # value for INSTALL within a source directory, because that will
2189 # break other packages using the cache if that directory is
2190 # removed, or if the value is a relative name.
2191 INSTALL=$ac_install_sh
2192 fi
2193 fi
2194 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2195 $as_echo "$INSTALL" >&6; }
2196
2197 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2198 # It thinks the first close brace ends the variable substitution.
2199 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2200
2201 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2202
2203 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2204
2205 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2206 $as_echo_n "checking whether build environment is sane... " >&6; }
2207 # Just in case
2208 sleep 1
2209 echo timestamp > conftest.file
2210 # Do `set' in a subshell so we don't clobber the current shell's
2211 # arguments. Must try -L first in case configure is actually a
2212 # symlink; some systems play weird games with the mod time of symlinks
2213 # (eg FreeBSD returns the mod time of the symlink's containing
2214 # directory).
2215 if (
2216 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2217 if test "$*" = "X"; then
2218 # -L didn't work.
2219 set X `ls -t $srcdir/configure conftest.file`
2220 fi
2221 rm -f conftest.file
2222 if test "$*" != "X $srcdir/configure conftest.file" \
2223 && test "$*" != "X conftest.file $srcdir/configure"; then
2224
2225 # If neither matched, then we have a broken ls. This can happen
2226 # if, for instance, CONFIG_SHELL is bash and it inherits a
2227 # broken ls alias from the environment. This has actually
2228 # happened. Such a system could not be considered "sane".
2229 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2230 alias in your environment" >&5
2231 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2232 alias in your environment" >&2;}
2233 { (exit 1); exit 1; }; }
2234 fi
2235
2236 test "$2" = conftest.file
2237 )
2238 then
2239 # Ok.
2240 :
2241 else
2242 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2243 Check your system clock" >&5
2244 $as_echo "$as_me: error: newly created file is older than distributed files!
2245 Check your system clock" >&2;}
2246 { (exit 1); exit 1; }; }
2247 fi
2248 { $as_echo "$as_me:$LINENO: result: yes" >&5
2249 $as_echo "yes" >&6; }
2250 test "$program_prefix" != NONE &&
2251 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2252 # Use a double $ so make ignores it.
2253 test "$program_suffix" != NONE &&
2254 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2255 # Double any \ or $.
2256 # By default was `s,x,x', remove it if useless.
2257 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2258 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2259
2260 # expand $ac_aux_dir to an absolute path
2261 am_aux_dir=`cd $ac_aux_dir && pwd`
2262
2263 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2264 # Use eval to expand $SHELL
2265 if eval "$MISSING --run true"; then
2266 am_missing_run="$MISSING --run "
2267 else
2268 am_missing_run=
2269 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2270 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2271 fi
2272
2273 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2274 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2275 if test -z "$MKDIR_P"; then
2276 if test "${ac_cv_path_mkdir+set}" = set; then
2277 $as_echo_n "(cached) " >&6
2278 else
2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2281 do
2282 IFS=$as_save_IFS
2283 test -z "$as_dir" && as_dir=.
2284 for ac_prog in mkdir gmkdir; do
2285 for ac_exec_ext in '' $ac_executable_extensions; do
2286 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2287 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2288 'mkdir (GNU coreutils) '* | \
2289 'mkdir (coreutils) '* | \
2290 'mkdir (fileutils) '4.1*)
2291 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2292 break 3;;
2293 esac
2294 done
2295 done
2296 done
2297 IFS=$as_save_IFS
2298
2299 fi
2300
2301 if test "${ac_cv_path_mkdir+set}" = set; then
2302 MKDIR_P="$ac_cv_path_mkdir -p"
2303 else
2304 # As a last resort, use the slow shell script. Don't cache a
2305 # value for MKDIR_P within a source directory, because that will
2306 # break other packages using the cache if that directory is
2307 # removed, or if the value is a relative name.
2308 test -d ./--version && rmdir ./--version
2309 MKDIR_P="$ac_install_sh -d"
2310 fi
2311 fi
2312 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2313 $as_echo "$MKDIR_P" >&6; }
2314
2315 mkdir_p="$MKDIR_P"
2316 case $mkdir_p in
2317 [\\/$]* | ?:[\\/]*) ;;
2318 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2319 esac
2320
2321 for ac_prog in gawk mawk nawk awk
2322 do
2323 # Extract the first word of "$ac_prog", so it can be a program name with args.
2324 set dummy $ac_prog; ac_word=$2
2325 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 $as_echo_n "checking for $ac_word... " >&6; }
2327 if test "${ac_cv_prog_AWK+set}" = set; then
2328 $as_echo_n "(cached) " >&6
2329 else
2330 if test -n "$AWK"; then
2331 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2332 else
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 for as_dir in $PATH
2335 do
2336 IFS=$as_save_IFS
2337 test -z "$as_dir" && as_dir=.
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2340 ac_cv_prog_AWK="$ac_prog"
2341 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342 break 2
2343 fi
2344 done
2345 done
2346 IFS=$as_save_IFS
2347
2348 fi
2349 fi
2350 AWK=$ac_cv_prog_AWK
2351 if test -n "$AWK"; then
2352 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2353 $as_echo "$AWK" >&6; }
2354 else
2355 { $as_echo "$as_me:$LINENO: result: no" >&5
2356 $as_echo "no" >&6; }
2357 fi
2358
2359
2360 test -n "$AWK" && break
2361 done
2362
2363 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2364 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2365 set x ${MAKE-make}
2366 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2367 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2368 $as_echo_n "(cached) " >&6
2369 else
2370 cat >conftest.make <<\_ACEOF
2371 SHELL = /bin/sh
2372 all:
2373 @echo '@@@%%%=$(MAKE)=@@@%%%'
2374 _ACEOF
2375 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2376 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2377 *@@@%%%=?*=@@@%%%*)
2378 eval ac_cv_prog_make_${ac_make}_set=yes;;
2379 *)
2380 eval ac_cv_prog_make_${ac_make}_set=no;;
2381 esac
2382 rm -f conftest.make
2383 fi
2384 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2385 { $as_echo "$as_me:$LINENO: result: yes" >&5
2386 $as_echo "yes" >&6; }
2387 SET_MAKE=
2388 else
2389 { $as_echo "$as_me:$LINENO: result: no" >&5
2390 $as_echo "no" >&6; }
2391 SET_MAKE="MAKE=${MAKE-make}"
2392 fi
2393
2394 rm -rf .tst 2>/dev/null
2395 mkdir .tst 2>/dev/null
2396 if test -d .tst; then
2397 am__leading_dot=.
2398 else
2399 am__leading_dot=_
2400 fi
2401 rmdir .tst 2>/dev/null
2402
2403 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2404 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2405 # is not polluted with repeated "-I."
2406 am__isrc=' -I$(srcdir)'
2407 # test to see if srcdir already configured
2408 if test -f $srcdir/config.status; then
2409 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2410 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2411 { (exit 1); exit 1; }; }
2412 fi
2413 fi
2414
2415 # test whether we have cygpath
2416 if test -z "$CYGPATH_W"; then
2417 if (cygpath --version) >/dev/null 2>/dev/null; then
2418 CYGPATH_W='cygpath -w'
2419 else
2420 CYGPATH_W=echo
2421 fi
2422 fi
2423
2424
2425 # Define the identity of the package.
2426 PACKAGE='xf86-video-tdfx'
2427 VERSION='1.4.2'
2428
2429
2430 cat >>confdefs.h <<_ACEOF
2431 #define PACKAGE "$PACKAGE"
2432 _ACEOF
2433
2434
2435 cat >>confdefs.h <<_ACEOF
2436 #define VERSION "$VERSION"
2437 _ACEOF
2438
2439 # Some tools Automake needs.
2440
2441 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2442
2443
2444 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2445
2446
2447 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2448
2449
2450 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2451
2452
2453 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2454
2455 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2456
2457 # Installed binaries are usually stripped using `strip' when the user
2458 # run `make install-strip'. However `strip' might not be the right
2459 # tool to use in cross-compilation environments, therefore Automake
2460 # will honor the `STRIP' environment variable to overrule this program.
2461 if test "$cross_compiling" != no; then
2462 if test -n "$ac_tool_prefix"; then
2463 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2464 set dummy ${ac_tool_prefix}strip; ac_word=$2
2465 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2466 $as_echo_n "checking for $ac_word... " >&6; }
2467 if test "${ac_cv_prog_STRIP+set}" = set; then
2468 $as_echo_n "(cached) " >&6
2469 else
2470 if test -n "$STRIP"; then
2471 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2472 else
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474 for as_dir in $PATH
2475 do
2476 IFS=$as_save_IFS
2477 test -z "$as_dir" && as_dir=.
2478 for ac_exec_ext in '' $ac_executable_extensions; do
2479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2480 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2481 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482 break 2
2483 fi
2484 done
2485 done
2486 IFS=$as_save_IFS
2487
2488 fi
2489 fi
2490 STRIP=$ac_cv_prog_STRIP
2491 if test -n "$STRIP"; then
2492 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2493 $as_echo "$STRIP" >&6; }
2494 else
2495 { $as_echo "$as_me:$LINENO: result: no" >&5
2496 $as_echo "no" >&6; }
2497 fi
2498
2499
2500 fi
2501 if test -z "$ac_cv_prog_STRIP"; then
2502 ac_ct_STRIP=$STRIP
2503 # Extract the first word of "strip", so it can be a program name with args.
2504 set dummy strip; ac_word=$2
2505 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2506 $as_echo_n "checking for $ac_word... " >&6; }
2507 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2508 $as_echo_n "(cached) " >&6
2509 else
2510 if test -n "$ac_ct_STRIP"; then
2511 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2512 else
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 for as_dir in $PATH
2515 do
2516 IFS=$as_save_IFS
2517 test -z "$as_dir" && as_dir=.
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2520 ac_cv_prog_ac_ct_STRIP="strip"
2521 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2522 break 2
2523 fi
2524 done
2525 done
2526 IFS=$as_save_IFS
2527
2528 fi
2529 fi
2530 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2531 if test -n "$ac_ct_STRIP"; then
2532 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2533 $as_echo "$ac_ct_STRIP" >&6; }
2534 else
2535 { $as_echo "$as_me:$LINENO: result: no" >&5
2536 $as_echo "no" >&6; }
2537 fi
2538
2539 if test "x$ac_ct_STRIP" = x; then
2540 STRIP=":"
2541 else
2542 case $cross_compiling:$ac_tool_warned in
2543 yes:)
2544 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2546 ac_tool_warned=yes ;;
2547 esac
2548 STRIP=$ac_ct_STRIP
2549 fi
2550 else
2551 STRIP="$ac_cv_prog_STRIP"
2552 fi
2553
2554 fi
2555 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2556
2557 # We need awk for the "check" target. The system "awk" is bad on
2558 # some platforms.
2559 # Always define AMTAR for backward compatibility.
2560
2561 AMTAR=${AMTAR-"${am_missing_run}tar"}
2562
2563 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2564
2565
2566
2567
2568
2569
2570 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2571 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2572 # Check whether --enable-maintainer-mode was given.
2573 if test "${enable_maintainer_mode+set}" = set; then
2574 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2575 else
2576 USE_MAINTAINER_MODE=no
2577 fi
2578
2579 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2580 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2581 if test $USE_MAINTAINER_MODE = yes; then
2582 MAINTAINER_MODE_TRUE=
2583 MAINTAINER_MODE_FALSE='#'
2584 else
2585 MAINTAINER_MODE_TRUE='#'
2586 MAINTAINER_MODE_FALSE=
2587 fi
2588
2589 MAINT=$MAINTAINER_MODE_TRUE
2590
2591
2592
2593 # Checks for programs.
2594 # Check whether --enable-static was given.
2595 if test "${enable_static+set}" = set; then
2596 enableval=$enable_static; p=${PACKAGE-default}
2597 case $enableval in
2598 yes) enable_static=yes ;;
2599 no) enable_static=no ;;
2600 *)
2601 enable_static=no
2602 # Look at the argument we got. We use all the common list separators.
2603 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2604 for pkg in $enableval; do
2605 IFS="$lt_save_ifs"
2606 if test "X$pkg" = "X$p"; then
2607 enable_static=yes
2608 fi
2609 done
2610 IFS="$lt_save_ifs"
2611 ;;
2612 esac
2613 else
2614 enable_static=no
2615 fi
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625 case `pwd` in
2626 *\ * | *\ *)
2627 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2628 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2629 esac
2630
2631
2632
2633 macro_version='2.2.6'
2634 macro_revision='1.3012'
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648 ltmain="$ac_aux_dir/ltmain.sh"
2649
2650 # Make sure we can run config.sub.
2651 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2652 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2653 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2654 { (exit 1); exit 1; }; }
2655
2656 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2657 $as_echo_n "checking build system type... " >&6; }
2658 if test "${ac_cv_build+set}" = set; then
2659 $as_echo_n "(cached) " >&6
2660 else
2661 ac_build_alias=$build_alias
2662 test "x$ac_build_alias" = x &&
2663 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2664 test "x$ac_build_alias" = x &&
2665 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2666 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2667 { (exit 1); exit 1; }; }
2668 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2669 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2670 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2671 { (exit 1); exit 1; }; }
2672
2673 fi
2674 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2675 $as_echo "$ac_cv_build" >&6; }
2676 case $ac_cv_build in
2677 *-*-*) ;;
2678 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2679 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2680 { (exit 1); exit 1; }; };;
2681 esac
2682 build=$ac_cv_build
2683 ac_save_IFS=$IFS; IFS='-'
2684 set x $ac_cv_build
2685 shift
2686 build_cpu=$1
2687 build_vendor=$2
2688 shift; shift
2689 # Remember, the first character of IFS is used to create $*,
2690 # except with old shells:
2691 build_os=$*
2692 IFS=$ac_save_IFS
2693 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2694
2695
2696 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2697 $as_echo_n "checking host system type... " >&6; }
2698 if test "${ac_cv_host+set}" = set; then
2699 $as_echo_n "(cached) " >&6
2700 else
2701 if test "x$host_alias" = x; then
2702 ac_cv_host=$ac_cv_build
2703 else
2704 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2705 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2706 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2707 { (exit 1); exit 1; }; }
2708 fi
2709
2710 fi
2711 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2712 $as_echo "$ac_cv_host" >&6; }
2713 case $ac_cv_host in
2714 *-*-*) ;;
2715 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2716 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2717 { (exit 1); exit 1; }; };;
2718 esac
2719 host=$ac_cv_host
2720 ac_save_IFS=$IFS; IFS='-'
2721 set x $ac_cv_host
2722 shift
2723 host_cpu=$1
2724 host_vendor=$2
2725 shift; shift
2726 # Remember, the first character of IFS is used to create $*,
2727 # except with old shells:
2728 host_os=$*
2729 IFS=$ac_save_IFS
2730 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2731
2732
2733 DEPDIR="${am__leading_dot}deps"
2734
2735 ac_config_commands="$ac_config_commands depfiles"
2736
2737
2738 am_make=${MAKE-make}
2739 cat > confinc << 'END'
2740 am__doit:
2741 @echo done
2742 .PHONY: am__doit
2743 END
2744 # If we don't find an include directive, just comment out the code.
2745 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2746 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2747 am__include="#"
2748 am__quote=
2749 _am_result=none
2750 # First try GNU make style include.
2751 echo "include confinc" > confmf
2752 # We grep out `Entering directory' and `Leaving directory'
2753 # messages which can occur if `w' ends up in MAKEFLAGS.
2754 # In particular we don't look at `^make:' because GNU make might
2755 # be invoked under some other name (usually "gmake"), in which
2756 # case it prints its new name instead of `make'.
2757 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2758 am__include=include
2759 am__quote=
2760 _am_result=GNU
2761 fi
2762 # Now try BSD make style include.
2763 if test "$am__include" = "#"; then
2764 echo '.include "confinc"' > confmf
2765 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2766 am__include=.include
2767 am__quote="\""
2768 _am_result=BSD
2769 fi
2770 fi
2771
2772
2773 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2774 $as_echo "$_am_result" >&6; }
2775 rm -f confinc confmf
2776
2777 # Check whether --enable-dependency-tracking was given.
2778 if test "${enable_dependency_tracking+set}" = set; then
2779 enableval=$enable_dependency_tracking;
2780 fi
2781
2782 if test "x$enable_dependency_tracking" != xno; then
2783 am_depcomp="$ac_aux_dir/depcomp"
2784 AMDEPBACKSLASH='\'
2785 fi
2786 if test "x$enable_dependency_tracking" != xno; then
2787 AMDEP_TRUE=
2788 AMDEP_FALSE='#'
2789 else
2790 AMDEP_TRUE='#'
2791 AMDEP_FALSE=
2792 fi
2793
2794
2795 ac_ext=c
2796 ac_cpp='$CPP $CPPFLAGS'
2797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2800 if test -n "$ac_tool_prefix"; then
2801 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2802 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2803 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2804 $as_echo_n "checking for $ac_word... " >&6; }
2805 if test "${ac_cv_prog_CC+set}" = set; then
2806 $as_echo_n "(cached) " >&6
2807 else
2808 if test -n "$CC"; then
2809 ac_cv_prog_CC="$CC" # Let the user override the test.
2810 else
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 for as_dir in $PATH
2813 do
2814 IFS=$as_save_IFS
2815 test -z "$as_dir" && as_dir=.
2816 for ac_exec_ext in '' $ac_executable_extensions; do
2817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2818 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2819 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2820 break 2
2821 fi
2822 done
2823 done
2824 IFS=$as_save_IFS
2825
2826 fi
2827 fi
2828 CC=$ac_cv_prog_CC
2829 if test -n "$CC"; then
2830 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2831 $as_echo "$CC" >&6; }
2832 else
2833 { $as_echo "$as_me:$LINENO: result: no" >&5
2834 $as_echo "no" >&6; }
2835 fi
2836
2837
2838 fi
2839 if test -z "$ac_cv_prog_CC"; then
2840 ac_ct_CC=$CC
2841 # Extract the first word of "gcc", so it can be a program name with args.
2842 set dummy gcc; ac_word=$2
2843 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2844 $as_echo_n "checking for $ac_word... " >&6; }
2845 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2846 $as_echo_n "(cached) " >&6
2847 else
2848 if test -n "$ac_ct_CC"; then
2849 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2850 else
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 for as_dir in $PATH
2853 do
2854 IFS=$as_save_IFS
2855 test -z "$as_dir" && as_dir=.
2856 for ac_exec_ext in '' $ac_executable_extensions; do
2857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2858 ac_cv_prog_ac_ct_CC="gcc"
2859 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2860 break 2
2861 fi
2862 done
2863 done
2864 IFS=$as_save_IFS
2865
2866 fi
2867 fi
2868 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2869 if test -n "$ac_ct_CC"; then
2870 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2871 $as_echo "$ac_ct_CC" >&6; }
2872 else
2873 { $as_echo "$as_me:$LINENO: result: no" >&5
2874 $as_echo "no" >&6; }
2875 fi
2876
2877 if test "x$ac_ct_CC" = x; then
2878 CC=""
2879 else
2880 case $cross_compiling:$ac_tool_warned in
2881 yes:)
2882 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2884 ac_tool_warned=yes ;;
2885 esac
2886 CC=$ac_ct_CC
2887 fi
2888 else
2889 CC="$ac_cv_prog_CC"
2890 fi
2891
2892 if test -z "$CC"; then
2893 if test -n "$ac_tool_prefix"; then
2894 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2895 set dummy ${ac_tool_prefix}cc; ac_word=$2
2896 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2897 $as_echo_n "checking for $ac_word... " >&6; }
2898 if test "${ac_cv_prog_CC+set}" = set; then
2899 $as_echo_n "(cached) " >&6
2900 else
2901 if test -n "$CC"; then
2902 ac_cv_prog_CC="$CC" # Let the user override the test.
2903 else
2904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905 for as_dir in $PATH
2906 do
2907 IFS=$as_save_IFS
2908 test -z "$as_dir" && as_dir=.
2909 for ac_exec_ext in '' $ac_executable_extensions; do
2910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2911 ac_cv_prog_CC="${ac_tool_prefix}cc"
2912 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2913 break 2
2914 fi
2915 done
2916 done
2917 IFS=$as_save_IFS
2918
2919 fi
2920 fi
2921 CC=$ac_cv_prog_CC
2922 if test -n "$CC"; then
2923 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2924 $as_echo "$CC" >&6; }
2925 else
2926 { $as_echo "$as_me:$LINENO: result: no" >&5
2927 $as_echo "no" >&6; }
2928 fi
2929
2930
2931 fi
2932 fi
2933 if test -z "$CC"; then
2934 # Extract the first word of "cc", so it can be a program name with args.
2935 set dummy cc; ac_word=$2
2936 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2937 $as_echo_n "checking for $ac_word... " >&6; }
2938 if test "${ac_cv_prog_CC+set}" = set; then
2939 $as_echo_n "(cached) " >&6
2940 else
2941 if test -n "$CC"; then
2942 ac_cv_prog_CC="$CC" # Let the user override the test.
2943 else
2944 ac_prog_rejected=no
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 for as_dir in $PATH
2947 do
2948 IFS=$as_save_IFS
2949 test -z "$as_dir" && as_dir=.
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2952 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2953 ac_prog_rejected=yes
2954 continue
2955 fi
2956 ac_cv_prog_CC="cc"
2957 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2958 break 2
2959 fi
2960 done
2961 done
2962 IFS=$as_save_IFS
2963
2964 if test $ac_prog_rejected = yes; then
2965 # We found a bogon in the path, so make sure we never use it.
2966 set dummy $ac_cv_prog_CC
2967 shift
2968 if test $# != 0; then
2969 # We chose a different compiler from the bogus one.
2970 # However, it has the same basename, so the bogon will be chosen
2971 # first if we set CC to just the basename; use the full file name.
2972 shift
2973 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2974 fi
2975 fi
2976 fi
2977 fi
2978 CC=$ac_cv_prog_CC
2979 if test -n "$CC"; then
2980 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2981 $as_echo "$CC" >&6; }
2982 else
2983 { $as_echo "$as_me:$LINENO: result: no" >&5
2984 $as_echo "no" >&6; }
2985 fi
2986
2987
2988 fi
2989 if test -z "$CC"; then
2990 if test -n "$ac_tool_prefix"; then
2991 for ac_prog in cl.exe
2992 do
2993 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2994 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2995 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2996 $as_echo_n "checking for $ac_word... " >&6; }
2997 if test "${ac_cv_prog_CC+set}" = set; then
2998 $as_echo_n "(cached) " >&6
2999 else
3000 if test -n "$CC"; then
3001 ac_cv_prog_CC="$CC" # Let the user override the test.
3002 else
3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 for as_dir in $PATH
3005 do
3006 IFS=$as_save_IFS
3007 test -z "$as_dir" && as_dir=.
3008 for ac_exec_ext in '' $ac_executable_extensions; do
3009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3010 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3011 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3012 break 2
3013 fi
3014 done
3015 done
3016 IFS=$as_save_IFS
3017
3018 fi
3019 fi
3020 CC=$ac_cv_prog_CC
3021 if test -n "$CC"; then
3022 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3023 $as_echo "$CC" >&6; }
3024 else
3025 { $as_echo "$as_me:$LINENO: result: no" >&5
3026 $as_echo "no" >&6; }
3027 fi
3028
3029
3030 test -n "$CC" && break
3031 done
3032 fi
3033 if test -z "$CC"; then
3034 ac_ct_CC=$CC
3035 for ac_prog in cl.exe
3036 do
3037 # Extract the first word of "$ac_prog", so it can be a program name with args.
3038 set dummy $ac_prog; ac_word=$2
3039 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3040 $as_echo_n "checking for $ac_word... " >&6; }
3041 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3042 $as_echo_n "(cached) " >&6
3043 else
3044 if test -n "$ac_ct_CC"; then
3045 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3046 else
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 for as_dir in $PATH
3049 do
3050 IFS=$as_save_IFS
3051 test -z "$as_dir" && as_dir=.
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3054 ac_cv_prog_ac_ct_CC="$ac_prog"
3055 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3056 break 2
3057 fi
3058 done
3059 done
3060 IFS=$as_save_IFS
3061
3062 fi
3063 fi
3064 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3065 if test -n "$ac_ct_CC"; then
3066 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3067 $as_echo "$ac_ct_CC" >&6; }
3068 else
3069 { $as_echo "$as_me:$LINENO: result: no" >&5
3070 $as_echo "no" >&6; }
3071 fi
3072
3073
3074 test -n "$ac_ct_CC" && break
3075 done
3076
3077 if test "x$ac_ct_CC" = x; then
3078 CC=""
3079 else
3080 case $cross_compiling:$ac_tool_warned in
3081 yes:)
3082 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3084 ac_tool_warned=yes ;;
3085 esac
3086 CC=$ac_ct_CC
3087 fi
3088 fi
3089
3090 fi
3091
3092
3093 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3095 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3096 See \`config.log' for more details." >&5
3097 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3098 See \`config.log' for more details." >&2;}
3099 { (exit 1); exit 1; }; }; }
3100
3101 # Provide some information about the compiler.
3102 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3103 set X $ac_compile
3104 ac_compiler=$2
3105 { (ac_try="$ac_compiler --version >&5"
3106 case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3109 esac
3110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3111 $as_echo "$ac_try_echo") >&5
3112 (eval "$ac_compiler --version >&5") 2>&5
3113 ac_status=$?
3114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }
3116 { (ac_try="$ac_compiler -v >&5"
3117 case "(($ac_try" in
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3120 esac
3121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3122 $as_echo "$ac_try_echo") >&5
3123 (eval "$ac_compiler -v >&5") 2>&5
3124 ac_status=$?
3125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); }
3127 { (ac_try="$ac_compiler -V >&5"
3128 case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131 esac
3132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3133 $as_echo "$ac_try_echo") >&5
3134 (eval "$ac_compiler -V >&5") 2>&5
3135 ac_status=$?
3136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); }
3138
3139 cat >conftest.$ac_ext <<_ACEOF
3140 /* confdefs.h. */
3141 _ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h. */
3145
3146 int
3147 main ()
3148 {
3149
3150 ;
3151 return 0;
3152 }
3153 _ACEOF
3154 ac_clean_files_save=$ac_clean_files
3155 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3156 # Try to create an executable without -o first, disregard a.out.
3157 # It will help us diagnose broken compilers, and finding out an intuition
3158 # of exeext.
3159 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3160 $as_echo_n "checking for C compiler default output file name... " >&6; }
3161 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3162
3163 # The possible output files:
3164 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3165
3166 ac_rmfiles=
3167 for ac_file in $ac_files
3168 do
3169 case $ac_file in
3170 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3171 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3172 esac
3173 done
3174 rm -f $ac_rmfiles
3175
3176 if { (ac_try="$ac_link_default"
3177 case "(($ac_try" in
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3180 esac
3181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3182 $as_echo "$ac_try_echo") >&5
3183 (eval "$ac_link_default") 2>&5
3184 ac_status=$?
3185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); }; then
3187 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3188 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3189 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3190 # so that the user can short-circuit this test for compilers unknown to
3191 # Autoconf.
3192 for ac_file in $ac_files ''
3193 do
3194 test -f "$ac_file" || continue
3195 case $ac_file in
3196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3197 ;;
3198 [ab].out )
3199 # We found the default executable, but exeext='' is most
3200 # certainly right.
3201 break;;
3202 *.* )
3203 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3204 then :; else
3205 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3206 fi
3207 # We set ac_cv_exeext here because the later test for it is not
3208 # safe: cross compilers may not add the suffix if given an `-o'
3209 # argument, so we may need to know it at that point already.
3210 # Even if this section looks crufty: it has the advantage of
3211 # actually working.
3212 break;;
3213 * )
3214 break;;
3215 esac
3216 done
3217 test "$ac_cv_exeext" = no && ac_cv_exeext=
3218
3219 else
3220 ac_file=''
3221 fi
3222
3223 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3224 $as_echo "$ac_file" >&6; }
3225 if test -z "$ac_file"; then
3226 $as_echo "$as_me: failed program was:" >&5
3227 sed 's/^/| /' conftest.$ac_ext >&5
3228
3229 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3231 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3232 See \`config.log' for more details." >&5
3233 $as_echo "$as_me: error: C compiler cannot create executables
3234 See \`config.log' for more details." >&2;}
3235 { (exit 77); exit 77; }; }; }
3236 fi
3237
3238 ac_exeext=$ac_cv_exeext
3239
3240 # Check that the compiler produces executables we can run. If not, either
3241 # the compiler is broken, or we cross compile.
3242 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3243 $as_echo_n "checking whether the C compiler works... " >&6; }
3244 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3245 # If not cross compiling, check that we can run a simple program.
3246 if test "$cross_compiling" != yes; then
3247 if { ac_try='./$ac_file'
3248 { (case "(($ac_try" in
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3251 esac
3252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3253 $as_echo "$ac_try_echo") >&5
3254 (eval "$ac_try") 2>&5
3255 ac_status=$?
3256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }; }; then
3258 cross_compiling=no
3259 else
3260 if test "$cross_compiling" = maybe; then
3261 cross_compiling=yes
3262 else
3263 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3265 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3266 If you meant to cross compile, use \`--host'.
3267 See \`config.log' for more details." >&5
3268 $as_echo "$as_me: error: cannot run C compiled programs.
3269 If you meant to cross compile, use \`--host'.
3270 See \`config.log' for more details." >&2;}
3271 { (exit 1); exit 1; }; }; }
3272 fi
3273 fi
3274 fi
3275 { $as_echo "$as_me:$LINENO: result: yes" >&5
3276 $as_echo "yes" >&6; }
3277
3278 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3279 ac_clean_files=$ac_clean_files_save
3280 # Check that the compiler produces executables we can run. If not, either
3281 # the compiler is broken, or we cross compile.
3282 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3283 $as_echo_n "checking whether we are cross compiling... " >&6; }
3284 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3285 $as_echo "$cross_compiling" >&6; }
3286
3287 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3288 $as_echo_n "checking for suffix of executables... " >&6; }
3289 if { (ac_try="$ac_link"
3290 case "(($ac_try" in
3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3293 esac
3294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3295 $as_echo "$ac_try_echo") >&5
3296 (eval "$ac_link") 2>&5
3297 ac_status=$?
3298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); }; then
3300 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3301 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3302 # work properly (i.e., refer to `conftest.exe'), while it won't with
3303 # `rm'.
3304 for ac_file in conftest.exe conftest conftest.*; do
3305 test -f "$ac_file" || continue
3306 case $ac_file in
3307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3308 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3309 break;;
3310 * ) break;;
3311 esac
3312 done
3313 else
3314 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3316 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3317 See \`config.log' for more details." >&5
3318 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3319 See \`config.log' for more details." >&2;}
3320 { (exit 1); exit 1; }; }; }
3321 fi
3322
3323 rm -f conftest$ac_cv_exeext
3324 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3325 $as_echo "$ac_cv_exeext" >&6; }
3326
3327 rm -f conftest.$ac_ext
3328 EXEEXT=$ac_cv_exeext
3329 ac_exeext=$EXEEXT
3330 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3331 $as_echo_n "checking for suffix of object files... " >&6; }
3332 if test "${ac_cv_objext+set}" = set; then
3333 $as_echo_n "(cached) " >&6
3334 else
3335 cat >conftest.$ac_ext <<_ACEOF
3336 /* confdefs.h. */
3337 _ACEOF
3338 cat confdefs.h >>conftest.$ac_ext
3339 cat >>conftest.$ac_ext <<_ACEOF
3340 /* end confdefs.h. */
3341
3342 int
3343 main ()
3344 {
3345
3346 ;
3347 return 0;
3348 }
3349 _ACEOF
3350 rm -f conftest.o conftest.obj
3351 if { (ac_try="$ac_compile"
3352 case "(($ac_try" in
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3355 esac
3356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3357 $as_echo "$ac_try_echo") >&5
3358 (eval "$ac_compile") 2>&5
3359 ac_status=$?
3360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }; then
3362 for ac_file in conftest.o conftest.obj conftest.*; do
3363 test -f "$ac_file" || continue;
3364 case $ac_file in
3365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3366 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3367 break;;
3368 esac
3369 done
3370 else
3371 $as_echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3373
3374 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3376 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3377 See \`config.log' for more details." >&5
3378 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3379 See \`config.log' for more details." >&2;}
3380 { (exit 1); exit 1; }; }; }
3381 fi
3382
3383 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3384 fi
3385 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3386 $as_echo "$ac_cv_objext" >&6; }
3387 OBJEXT=$ac_cv_objext
3388 ac_objext=$OBJEXT
3389 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3390 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3391 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3392 $as_echo_n "(cached) " >&6
3393 else
3394 cat >conftest.$ac_ext <<_ACEOF
3395 /* confdefs.h. */
3396 _ACEOF
3397 cat confdefs.h >>conftest.$ac_ext
3398 cat >>conftest.$ac_ext <<_ACEOF
3399 /* end confdefs.h. */
3400
3401 int
3402 main ()
3403 {
3404 #ifndef __GNUC__
3405 choke me
3406 #endif
3407
3408 ;
3409 return 0;
3410 }
3411 _ACEOF
3412 rm -f conftest.$ac_objext
3413 if { (ac_try="$ac_compile"
3414 case "(($ac_try" in
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3417 esac
3418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3419 $as_echo "$ac_try_echo") >&5
3420 (eval "$ac_compile") 2>conftest.er1
3421 ac_status=$?
3422 grep -v '^ *+' conftest.er1 >conftest.err
3423 rm -f conftest.er1
3424 cat conftest.err >&5
3425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); } && {
3427 test -z "$ac_c_werror_flag" ||
3428 test ! -s conftest.err
3429 } && test -s conftest.$ac_objext; then
3430 ac_compiler_gnu=yes
3431 else
3432 $as_echo "$as_me: failed program was:" >&5
3433 sed 's/^/| /' conftest.$ac_ext >&5
3434
3435 ac_compiler_gnu=no
3436 fi
3437
3438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3439 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3440
3441 fi
3442 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3443 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3444 if test $ac_compiler_gnu = yes; then
3445 GCC=yes
3446 else
3447 GCC=
3448 fi
3449 ac_test_CFLAGS=${CFLAGS+set}
3450 ac_save_CFLAGS=$CFLAGS
3451 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3452 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3453 if test "${ac_cv_prog_cc_g+set}" = set; then
3454 $as_echo_n "(cached) " >&6
3455 else
3456 ac_save_c_werror_flag=$ac_c_werror_flag
3457 ac_c_werror_flag=yes
3458 ac_cv_prog_cc_g=no
3459 CFLAGS="-g"
3460 cat >conftest.$ac_ext <<_ACEOF
3461 /* confdefs.h. */
3462 _ACEOF
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h. */
3466
3467 int
3468 main ()
3469 {
3470
3471 ;
3472 return 0;
3473 }
3474 _ACEOF
3475 rm -f conftest.$ac_objext
3476 if { (ac_try="$ac_compile"
3477 case "(($ac_try" in
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3480 esac
3481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3482 $as_echo "$ac_try_echo") >&5
3483 (eval "$ac_compile") 2>conftest.er1
3484 ac_status=$?
3485 grep -v '^ *+' conftest.er1 >conftest.err
3486 rm -f conftest.er1
3487 cat conftest.err >&5
3488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } && {
3490 test -z "$ac_c_werror_flag" ||
3491 test ! -s conftest.err
3492 } && test -s conftest.$ac_objext; then
3493 ac_cv_prog_cc_g=yes
3494 else
3495 $as_echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3497
3498 CFLAGS=""
3499 cat >conftest.$ac_ext <<_ACEOF
3500 /* confdefs.h. */
3501 _ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h. */
3505
3506 int
3507 main ()
3508 {
3509
3510 ;
3511 return 0;
3512 }
3513 _ACEOF
3514 rm -f conftest.$ac_objext
3515 if { (ac_try="$ac_compile"
3516 case "(($ac_try" in
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3519 esac
3520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3521 $as_echo "$ac_try_echo") >&5
3522 (eval "$ac_compile") 2>conftest.er1
3523 ac_status=$?
3524 grep -v '^ *+' conftest.er1 >conftest.err
3525 rm -f conftest.er1
3526 cat conftest.err >&5
3527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); } && {
3529 test -z "$ac_c_werror_flag" ||
3530 test ! -s conftest.err
3531 } && test -s conftest.$ac_objext; then
3532 :
3533 else
3534 $as_echo "$as_me: failed program was:" >&5
3535 sed 's/^/| /' conftest.$ac_ext >&5
3536
3537 ac_c_werror_flag=$ac_save_c_werror_flag
3538 CFLAGS="-g"
3539 cat >conftest.$ac_ext <<_ACEOF
3540 /* confdefs.h. */
3541 _ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3545
3546 int
3547 main ()
3548 {
3549
3550 ;
3551 return 0;
3552 }
3553 _ACEOF
3554 rm -f conftest.$ac_objext
3555 if { (ac_try="$ac_compile"
3556 case "(($ac_try" in
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3559 esac
3560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3561 $as_echo "$ac_try_echo") >&5
3562 (eval "$ac_compile") 2>conftest.er1
3563 ac_status=$?
3564 grep -v '^ *+' conftest.er1 >conftest.err
3565 rm -f conftest.er1
3566 cat conftest.err >&5
3567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } && {
3569 test -z "$ac_c_werror_flag" ||
3570 test ! -s conftest.err
3571 } && test -s conftest.$ac_objext; then
3572 ac_cv_prog_cc_g=yes
3573 else
3574 $as_echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3576
3577
3578 fi
3579
3580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3581 fi
3582
3583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3584 fi
3585
3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587 ac_c_werror_flag=$ac_save_c_werror_flag
3588 fi
3589 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3590 $as_echo "$ac_cv_prog_cc_g" >&6; }
3591 if test "$ac_test_CFLAGS" = set; then
3592 CFLAGS=$ac_save_CFLAGS
3593 elif test $ac_cv_prog_cc_g = yes; then
3594 if test "$GCC" = yes; then
3595 CFLAGS="-g -O2"
3596 else
3597 CFLAGS="-g"
3598 fi
3599 else
3600 if test "$GCC" = yes; then
3601 CFLAGS="-O2"
3602 else
3603 CFLAGS=
3604 fi
3605 fi
3606 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3607 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3608 if test "${ac_cv_prog_cc_c89+set}" = set; then
3609 $as_echo_n "(cached) " >&6
3610 else
3611 ac_cv_prog_cc_c89=no
3612 ac_save_CC=$CC
3613 cat >conftest.$ac_ext <<_ACEOF
3614 /* confdefs.h. */
3615 _ACEOF
3616 cat confdefs.h >>conftest.$ac_ext
3617 cat >>conftest.$ac_ext <<_ACEOF
3618 /* end confdefs.h. */
3619 #include <stdarg.h>
3620 #include <stdio.h>
3621 #include <sys/types.h>
3622 #include <sys/stat.h>
3623 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3624 struct buf { int x; };
3625 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3626 static char *e (p, i)
3627 char **p;
3628 int i;
3629 {
3630 return p[i];
3631 }
3632 static char *f (char * (*g) (char **, int), char **p, ...)
3633 {
3634 char *s;
3635 va_list v;
3636 va_start (v,p);
3637 s = g (p, va_arg (v,int));
3638 va_end (v);
3639 return s;
3640 }
3641
3642 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3643 function prototypes and stuff, but not '\xHH' hex character constants.
3644 These don't provoke an error unfortunately, instead are silently treated
3645 as 'x'. The following induces an error, until -std is added to get
3646 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3647 array size at least. It's necessary to write '\x00'==0 to get something
3648 that's true only with -std. */
3649 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3650
3651 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3652 inside strings and character constants. */
3653 #define FOO(x) 'x'
3654 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3655
3656 int test (int i, double x);
3657 struct s1 {int (*f) (int a);};
3658 struct s2 {int (*f) (double a);};
3659 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3660 int argc;
3661 char **argv;
3662 int
3663 main ()
3664 {
3665 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3666 ;
3667 return 0;
3668 }
3669 _ACEOF
3670 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3671 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3672 do
3673 CC="$ac_save_CC $ac_arg"
3674 rm -f conftest.$ac_objext
3675 if { (ac_try="$ac_compile"
3676 case "(($ac_try" in
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3679 esac
3680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3681 $as_echo "$ac_try_echo") >&5
3682 (eval "$ac_compile") 2>conftest.er1
3683 ac_status=$?
3684 grep -v '^ *+' conftest.er1 >conftest.err
3685 rm -f conftest.er1
3686 cat conftest.err >&5
3687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); } && {
3689 test -z "$ac_c_werror_flag" ||
3690 test ! -s conftest.err
3691 } && test -s conftest.$ac_objext; then
3692 ac_cv_prog_cc_c89=$ac_arg
3693 else
3694 $as_echo "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.$ac_ext >&5
3696
3697
3698 fi
3699
3700 rm -f core conftest.err conftest.$ac_objext
3701 test "x$ac_cv_prog_cc_c89" != "xno" && break
3702 done
3703 rm -f conftest.$ac_ext
3704 CC=$ac_save_CC
3705
3706 fi
3707 # AC_CACHE_VAL
3708 case "x$ac_cv_prog_cc_c89" in
3709 x)
3710 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3711 $as_echo "none needed" >&6; } ;;
3712 xno)
3713 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3714 $as_echo "unsupported" >&6; } ;;
3715 *)
3716 CC="$CC $ac_cv_prog_cc_c89"
3717 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3718 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3719 esac
3720
3721
3722 ac_ext=c
3723 ac_cpp='$CPP $CPPFLAGS'
3724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3727
3728 depcc="$CC" am_compiler_list=
3729
3730 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3731 $as_echo_n "checking dependency style of $depcc... " >&6; }
3732 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3733 $as_echo_n "(cached) " >&6
3734 else
3735 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3736 # We make a subdir and do the tests there. Otherwise we can end up
3737 # making bogus files that we don't know about and never remove. For
3738 # instance it was reported that on HP-UX the gcc test will end up
3739 # making a dummy file named `D' -- because `-MD' means `put the output
3740 # in D'.
3741 mkdir conftest.dir
3742 # Copy depcomp to subdir because otherwise we won't find it if we're
3743 # using a relative directory.
3744 cp "$am_depcomp" conftest.dir
3745 cd conftest.dir
3746 # We will build objects and dependencies in a subdirectory because
3747 # it helps to detect inapplicable dependency modes. For instance
3748 # both Tru64's cc and ICC support -MD to output dependencies as a
3749 # side effect of compilation, but ICC will put the dependencies in
3750 # the current directory while Tru64 will put them in the object
3751 # directory.
3752 mkdir sub
3753
3754 am_cv_CC_dependencies_compiler_type=none
3755 if test "$am_compiler_list" = ""; then
3756 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3757 fi
3758 for depmode in $am_compiler_list; do
3759 # Setup a source with many dependencies, because some compilers
3760 # like to wrap large dependency lists on column 80 (with \), and
3761 # we should not choose a depcomp mode which is confused by this.
3762 #
3763 # We need to recreate these files for each test, as the compiler may
3764 # overwrite some of them when testing with obscure command lines.
3765 # This happens at least with the AIX C compiler.
3766 : > sub/conftest.c
3767 for i in 1 2 3 4 5 6; do
3768 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3769 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3770 # Solaris 8's {/usr,}/bin/sh.
3771 touch sub/conftst$i.h
3772 done
3773 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3774
3775 case $depmode in
3776 nosideeffect)
3777 # after this tag, mechanisms are not by side-effect, so they'll
3778 # only be used when explicitly requested
3779 if test "x$enable_dependency_tracking" = xyes; then
3780 continue
3781 else
3782 break
3783 fi
3784 ;;
3785 none) break ;;
3786 esac
3787 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3788 # mode. It turns out that the SunPro C++ compiler does not properly
3789 # handle `-M -o', and we need to detect this.
3790 if depmode=$depmode \
3791 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3792 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3793 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3794 >/dev/null 2>conftest.err &&
3795 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3796 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3797 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3798 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3799 # icc doesn't choke on unknown options, it will just issue warnings
3800 # or remarks (even with -Werror). So we grep stderr for any message
3801 # that says an option was ignored or not supported.
3802 # When given -MP, icc 7.0 and 7.1 complain thusly:
3803 # icc: Command line warning: ignoring option '-M'; no argument required
3804 # The diagnosis changed in icc 8.0:
3805 # icc: Command line remark: option '-MP' not supported
3806 if (grep 'ignoring option' conftest.err ||
3807 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3808 am_cv_CC_dependencies_compiler_type=$depmode
3809 break
3810 fi
3811 fi
3812 done
3813
3814 cd ..
3815 rm -rf conftest.dir
3816 else
3817 am_cv_CC_dependencies_compiler_type=none
3818 fi
3819
3820 fi
3821 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3822 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3823 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3824
3825 if
3826 test "x$enable_dependency_tracking" != xno \
3827 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3828 am__fastdepCC_TRUE=
3829 am__fastdepCC_FALSE='#'
3830 else
3831 am__fastdepCC_TRUE='#'
3832 am__fastdepCC_FALSE=
3833 fi
3834
3835
3836 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3837 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3838 if test "${ac_cv_path_SED+set}" = set; then
3839 $as_echo_n "(cached) " >&6
3840 else
3841 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3842 for ac_i in 1 2 3 4 5 6 7; do
3843 ac_script="$ac_script$as_nl$ac_script"
3844 done
3845 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3846 $as_unset ac_script || ac_script=
3847 if test -z "$SED"; then
3848 ac_path_SED_found=false
3849 # Loop through the user's path and test for each of PROGNAME-LIST
3850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851 for as_dir in $PATH
3852 do
3853 IFS=$as_save_IFS
3854 test -z "$as_dir" && as_dir=.
3855 for ac_prog in sed gsed; do
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3858 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3859 # Check for GNU ac_path_SED and select it if it is found.
3860 # Check for GNU $ac_path_SED
3861 case `"$ac_path_SED" --version 2>&1` in
3862 *GNU*)
3863 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3864 *)
3865 ac_count=0
3866 $as_echo_n 0123456789 >"conftest.in"
3867 while :
3868 do
3869 cat "conftest.in" "conftest.in" >"conftest.tmp"
3870 mv "conftest.tmp" "conftest.in"
3871 cp "conftest.in" "conftest.nl"
3872 $as_echo '' >> "conftest.nl"
3873 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3874 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3875 ac_count=`expr $ac_count + 1`
3876 if test $ac_count -gt ${ac_path_SED_max-0}; then
3877 # Best one so far, save it but keep looking for a better one
3878 ac_cv_path_SED="$ac_path_SED"
3879 ac_path_SED_max=$ac_count
3880 fi
3881 # 10*(2^10) chars as input seems more than enough
3882 test $ac_count -gt 10 && break
3883 done
3884 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3885 esac
3886
3887 $ac_path_SED_found && break 3
3888 done
3889 done
3890 done
3891 IFS=$as_save_IFS
3892 if test -z "$ac_cv_path_SED"; then
3893 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3894 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3895 { (exit 1); exit 1; }; }
3896 fi
3897 else
3898 ac_cv_path_SED=$SED
3899 fi
3900
3901 fi
3902 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3903 $as_echo "$ac_cv_path_SED" >&6; }
3904 SED="$ac_cv_path_SED"
3905 rm -f conftest.sed
3906
3907 test -z "$SED" && SED=sed
3908 Xsed="$SED -e 1s/^X//"
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3921 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3922 if test "${ac_cv_path_GREP+set}" = set; then
3923 $as_echo_n "(cached) " >&6
3924 else
3925 if test -z "$GREP"; then
3926 ac_path_GREP_found=false
3927 # Loop through the user's path and test for each of PROGNAME-LIST
3928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3930 do
3931 IFS=$as_save_IFS
3932 test -z "$as_dir" && as_dir=.
3933 for ac_prog in grep ggrep; do
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3936 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3937 # Check for GNU ac_path_GREP and select it if it is found.
3938 # Check for GNU $ac_path_GREP
3939 case `"$ac_path_GREP" --version 2>&1` in
3940 *GNU*)
3941 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3942 *)
3943 ac_count=0
3944 $as_echo_n 0123456789 >"conftest.in"
3945 while :
3946 do
3947 cat "conftest.in" "conftest.in" >"conftest.tmp"
3948 mv "conftest.tmp" "conftest.in"
3949 cp "conftest.in" "conftest.nl"
3950 $as_echo 'GREP' >> "conftest.nl"
3951 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3952 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3953 ac_count=`expr $ac_count + 1`
3954 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3955 # Best one so far, save it but keep looking for a better one
3956 ac_cv_path_GREP="$ac_path_GREP"
3957 ac_path_GREP_max=$ac_count
3958 fi
3959 # 10*(2^10) chars as input seems more than enough
3960 test $ac_count -gt 10 && break
3961 done
3962 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3963 esac
3964
3965 $ac_path_GREP_found && break 3
3966 done
3967 done
3968 done
3969 IFS=$as_save_IFS
3970 if test -z "$ac_cv_path_GREP"; then
3971 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3972 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3973 { (exit 1); exit 1; }; }
3974 fi
3975 else
3976 ac_cv_path_GREP=$GREP
3977 fi
3978
3979 fi
3980 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3981 $as_echo "$ac_cv_path_GREP" >&6; }
3982 GREP="$ac_cv_path_GREP"
3983
3984
3985 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3986 $as_echo_n "checking for egrep... " >&6; }
3987 if test "${ac_cv_path_EGREP+set}" = set; then
3988 $as_echo_n "(cached) " >&6
3989 else
3990 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3991 then ac_cv_path_EGREP="$GREP -E"
3992 else
3993 if test -z "$EGREP"; then
3994 ac_path_EGREP_found=false
3995 # Loop through the user's path and test for each of PROGNAME-LIST
3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3998 do
3999 IFS=$as_save_IFS
4000 test -z "$as_dir" && as_dir=.
4001 for ac_prog in egrep; do
4002 for ac_exec_ext in '' $ac_executable_extensions; do
4003 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4004 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4005 # Check for GNU ac_path_EGREP and select it if it is found.
4006 # Check for GNU $ac_path_EGREP
4007 case `"$ac_path_EGREP" --version 2>&1` in
4008 *GNU*)
4009 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4010 *)
4011 ac_count=0
4012 $as_echo_n 0123456789 >"conftest.in"
4013 while :
4014 do
4015 cat "conftest.in" "conftest.in" >"conftest.tmp"
4016 mv "conftest.tmp" "conftest.in"
4017 cp "conftest.in" "conftest.nl"
4018 $as_echo 'EGREP' >> "conftest.nl"
4019 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4020 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4021 ac_count=`expr $ac_count + 1`
4022 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4023 # Best one so far, save it but keep looking for a better one
4024 ac_cv_path_EGREP="$ac_path_EGREP"
4025 ac_path_EGREP_max=$ac_count
4026 fi
4027 # 10*(2^10) chars as input seems more than enough
4028 test $ac_count -gt 10 && break
4029 done
4030 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4031 esac
4032
4033 $ac_path_EGREP_found && break 3
4034 done
4035 done
4036 done
4037 IFS=$as_save_IFS
4038 if test -z "$ac_cv_path_EGREP"; then
4039 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4040 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4041 { (exit 1); exit 1; }; }
4042 fi
4043 else
4044 ac_cv_path_EGREP=$EGREP
4045 fi
4046
4047 fi
4048 fi
4049 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4050 $as_echo "$ac_cv_path_EGREP" >&6; }
4051 EGREP="$ac_cv_path_EGREP"
4052
4053
4054 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4055 $as_echo_n "checking for fgrep... " >&6; }
4056 if test "${ac_cv_path_FGREP+set}" = set; then
4057 $as_echo_n "(cached) " >&6
4058 else
4059 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4060 then ac_cv_path_FGREP="$GREP -F"
4061 else
4062 if test -z "$FGREP"; then
4063 ac_path_FGREP_found=false
4064 # Loop through the user's path and test for each of PROGNAME-LIST
4065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4067 do
4068 IFS=$as_save_IFS
4069 test -z "$as_dir" && as_dir=.
4070 for ac_prog in fgrep; do
4071 for ac_exec_ext in '' $ac_executable_extensions; do
4072 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4073 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4074 # Check for GNU ac_path_FGREP and select it if it is found.
4075 # Check for GNU $ac_path_FGREP
4076 case `"$ac_path_FGREP" --version 2>&1` in
4077 *GNU*)
4078 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4079 *)
4080 ac_count=0
4081 $as_echo_n 0123456789 >"conftest.in"
4082 while :
4083 do
4084 cat "conftest.in" "conftest.in" >"conftest.tmp"
4085 mv "conftest.tmp" "conftest.in"
4086 cp "conftest.in" "conftest.nl"
4087 $as_echo 'FGREP' >> "conftest.nl"
4088 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4089 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4090 ac_count=`expr $ac_count + 1`
4091 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4092 # Best one so far, save it but keep looking for a better one
4093 ac_cv_path_FGREP="$ac_path_FGREP"
4094 ac_path_FGREP_max=$ac_count
4095 fi
4096 # 10*(2^10) chars as input seems more than enough
4097 test $ac_count -gt 10 && break
4098 done
4099 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4100 esac
4101
4102 $ac_path_FGREP_found && break 3
4103 done
4104 done
4105 done
4106 IFS=$as_save_IFS
4107 if test -z "$ac_cv_path_FGREP"; then
4108 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4109 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4110 { (exit 1); exit 1; }; }
4111 fi
4112 else
4113 ac_cv_path_FGREP=$FGREP
4114 fi
4115
4116 fi
4117 fi
4118 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4119 $as_echo "$ac_cv_path_FGREP" >&6; }
4120 FGREP="$ac_cv_path_FGREP"
4121
4122
4123 test -z "$GREP" && GREP=grep
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143 # Check whether --with-gnu-ld was given.
4144 if test "${with_gnu_ld+set}" = set; then
4145 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4146 else
4147 with_gnu_ld=no
4148 fi
4149
4150 ac_prog=ld
4151 if test "$GCC" = yes; then
4152 # Check if gcc -print-prog-name=ld gives a path.
4153 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4154 $as_echo_n "checking for ld used by $CC... " >&6; }
4155 case $host in
4156 *-*-mingw*)
4157 # gcc leaves a trailing carriage return which upsets mingw
4158 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4159 *)
4160 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4161 esac
4162 case $ac_prog in
4163 # Accept absolute paths.
4164 [\\/]* | ?:[\\/]*)
4165 re_direlt='/[^/][^/]*/\.\./'
4166 # Canonicalize the pathname of ld
4167 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4168 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4169 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4170 done
4171 test -z "$LD" && LD="$ac_prog"
4172 ;;
4173 "")
4174 # If it fails, then pretend we aren't using GCC.
4175 ac_prog=ld
4176 ;;
4177 *)
4178 # If it is relative, then search for the first ld in PATH.
4179 with_gnu_ld=unknown
4180 ;;
4181 esac
4182 elif test "$with_gnu_ld" = yes; then
4183 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4184 $as_echo_n "checking for GNU ld... " >&6; }
4185 else
4186 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4187 $as_echo_n "checking for non-GNU ld... " >&6; }
4188 fi
4189 if test "${lt_cv_path_LD+set}" = set; then
4190 $as_echo_n "(cached) " >&6
4191 else
4192 if test -z "$LD"; then
4193 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4194 for ac_dir in $PATH; do
4195 IFS="$lt_save_ifs"
4196 test -z "$ac_dir" && ac_dir=.
4197 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4198 lt_cv_path_LD="$ac_dir/$ac_prog"
4199 # Check to see if the program is GNU ld. I'd rather use --version,
4200 # but apparently some variants of GNU ld only accept -v.
4201 # Break only if it was the GNU/non-GNU ld that we prefer.
4202 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4203 *GNU* | *'with BFD'*)
4204 test "$with_gnu_ld" != no && break
4205 ;;
4206 *)
4207 test "$with_gnu_ld" != yes && break
4208 ;;
4209 esac
4210 fi
4211 done
4212 IFS="$lt_save_ifs"
4213 else
4214 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4215 fi
4216 fi
4217
4218 LD="$lt_cv_path_LD"
4219 if test -n "$LD"; then
4220 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4221 $as_echo "$LD" >&6; }
4222 else
4223 { $as_echo "$as_me:$LINENO: result: no" >&5
4224 $as_echo "no" >&6; }
4225 fi
4226 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4227 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4228 { (exit 1); exit 1; }; }
4229 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4230 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4231 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4232 $as_echo_n "(cached) " >&6
4233 else
4234 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4235 case `$LD -v 2>&1 </dev/null` in
4236 *GNU* | *'with BFD'*)
4237 lt_cv_prog_gnu_ld=yes
4238 ;;
4239 *)
4240 lt_cv_prog_gnu_ld=no
4241 ;;
4242 esac
4243 fi
4244 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4245 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4246 with_gnu_ld=$lt_cv_prog_gnu_ld
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4257 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4258 if test "${lt_cv_path_NM+set}" = set; then
4259 $as_echo_n "(cached) " >&6
4260 else
4261 if test -n "$NM"; then
4262 # Let the user override the test.
4263 lt_cv_path_NM="$NM"
4264 else
4265 lt_nm_to_check="${ac_tool_prefix}nm"
4266 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4267 lt_nm_to_check="$lt_nm_to_check nm"
4268 fi
4269 for lt_tmp_nm in $lt_nm_to_check; do
4270 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4271 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4272 IFS="$lt_save_ifs"
4273 test -z "$ac_dir" && ac_dir=.
4274 tmp_nm="$ac_dir/$lt_tmp_nm"
4275 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4276 # Check to see if the nm accepts a BSD-compat flag.
4277 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4278 # nm: unknown option "B" ignored
4279 # Tru64's nm complains that /dev/null is an invalid object file
4280 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4281 */dev/null* | *'Invalid file or object type'*)
4282 lt_cv_path_NM="$tmp_nm -B"
4283 break
4284 ;;
4285 *)
4286 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4287 */dev/null*)
4288 lt_cv_path_NM="$tmp_nm -p"
4289 break
4290 ;;
4291 *)
4292 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4293 continue # so that we can try to find one that supports BSD flags
4294 ;;
4295 esac
4296 ;;
4297 esac
4298 fi
4299 done
4300 IFS="$lt_save_ifs"
4301 done
4302 : ${lt_cv_path_NM=no}
4303 fi
4304 fi
4305 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4306 $as_echo "$lt_cv_path_NM" >&6; }
4307 if test "$lt_cv_path_NM" != "no"; then
4308 NM="$lt_cv_path_NM"
4309 else
4310 # Didn't find any BSD compatible name lister, look for dumpbin.
4311 if test -n "$ac_tool_prefix"; then
4312 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4313 do
4314 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4315 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4316 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4317 $as_echo_n "checking for $ac_word... " >&6; }
4318 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4319 $as_echo_n "(cached) " >&6
4320 else
4321 if test -n "$DUMPBIN"; then
4322 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4323 else
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 for as_dir in $PATH
4326 do
4327 IFS=$as_save_IFS
4328 test -z "$as_dir" && as_dir=.
4329 for ac_exec_ext in '' $ac_executable_extensions; do
4330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4331 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4332 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4333 break 2
4334 fi
4335 done
4336 done
4337 IFS=$as_save_IFS
4338
4339 fi
4340 fi
4341 DUMPBIN=$ac_cv_prog_DUMPBIN
4342 if test -n "$DUMPBIN"; then
4343 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4344 $as_echo "$DUMPBIN" >&6; }
4345 else
4346 { $as_echo "$as_me:$LINENO: result: no" >&5
4347 $as_echo "no" >&6; }
4348 fi
4349
4350
4351 test -n "$DUMPBIN" && break
4352 done
4353 fi
4354 if test -z "$DUMPBIN"; then
4355 ac_ct_DUMPBIN=$DUMPBIN
4356 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4357 do
4358 # Extract the first word of "$ac_prog", so it can be a program name with args.
4359 set dummy $ac_prog; ac_word=$2
4360 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4361 $as_echo_n "checking for $ac_word... " >&6; }
4362 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4363 $as_echo_n "(cached) " >&6
4364 else
4365 if test -n "$ac_ct_DUMPBIN"; then
4366 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4367 else
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH
4370 do
4371 IFS=$as_save_IFS
4372 test -z "$as_dir" && as_dir=.
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4375 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4376 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4377 break 2
4378 fi
4379 done
4380 done
4381 IFS=$as_save_IFS
4382
4383 fi
4384 fi
4385 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4386 if test -n "$ac_ct_DUMPBIN"; then
4387 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4388 $as_echo "$ac_ct_DUMPBIN" >&6; }
4389 else
4390 { $as_echo "$as_me:$LINENO: result: no" >&5
4391 $as_echo "no" >&6; }
4392 fi
4393
4394
4395 test -n "$ac_ct_DUMPBIN" && break
4396 done
4397
4398 if test "x$ac_ct_DUMPBIN" = x; then
4399 DUMPBIN=":"
4400 else
4401 case $cross_compiling:$ac_tool_warned in
4402 yes:)
4403 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4405 ac_tool_warned=yes ;;
4406 esac
4407 DUMPBIN=$ac_ct_DUMPBIN
4408 fi
4409 fi
4410
4411
4412 if test "$DUMPBIN" != ":"; then
4413 NM="$DUMPBIN"
4414 fi
4415 fi
4416 test -z "$NM" && NM=nm
4417
4418
4419
4420
4421
4422
4423 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4424 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4425 if test "${lt_cv_nm_interface+set}" = set; then
4426 $as_echo_n "(cached) " >&6
4427 else
4428 lt_cv_nm_interface="BSD nm"
4429 echo "int some_variable = 0;" > conftest.$ac_ext
4430 (eval echo "\"\$as_me:4430: $ac_compile\"" >&5)
4431 (eval "$ac_compile" 2>conftest.err)
4432 cat conftest.err >&5
4433 (eval echo "\"\$as_me:4433: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4434 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4435 cat conftest.err >&5
4436 (eval echo "\"\$as_me:4436: output\"" >&5)
4437 cat conftest.out >&5
4438 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4439 lt_cv_nm_interface="MS dumpbin"
4440 fi
4441 rm -f conftest*
4442 fi
4443 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4444 $as_echo "$lt_cv_nm_interface" >&6; }
4445
4446 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4447 $as_echo_n "checking whether ln -s works... " >&6; }
4448 LN_S=$as_ln_s
4449 if test "$LN_S" = "ln -s"; then
4450 { $as_echo "$as_me:$LINENO: result: yes" >&5
4451 $as_echo "yes" >&6; }
4452 else
4453 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4454 $as_echo "no, using $LN_S" >&6; }
4455 fi
4456
4457 # find the maximum length of command line arguments
4458 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4459 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4460 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4461 $as_echo_n "(cached) " >&6
4462 else
4463 i=0
4464 teststring="ABCD"
4465
4466 case $build_os in
4467 msdosdjgpp*)
4468 # On DJGPP, this test can blow up pretty badly due to problems in libc
4469 # (any single argument exceeding 2000 bytes causes a buffer overrun
4470 # during glob expansion). Even if it were fixed, the result of this
4471 # check would be larger than it should be.
4472 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4473 ;;
4474
4475 gnu*)
4476 # Under GNU Hurd, this test is not required because there is
4477 # no limit to the length of command line arguments.
4478 # Libtool will interpret -1 as no limit whatsoever
4479 lt_cv_sys_max_cmd_len=-1;
4480 ;;
4481
4482 cygwin* | mingw* | cegcc*)
4483 # On Win9x/ME, this test blows up -- it succeeds, but takes
4484 # about 5 minutes as the teststring grows exponentially.
4485 # Worse, since 9x/ME are not pre-emptively multitasking,
4486 # you end up with a "frozen" computer, even though with patience
4487 # the test eventually succeeds (with a max line length of 256k).
4488 # Instead, let's just punt: use the minimum linelength reported by
4489 # all of the supported platforms: 8192 (on NT/2K/XP).
4490 lt_cv_sys_max_cmd_len=8192;
4491 ;;
4492
4493 amigaos*)
4494 # On AmigaOS with pdksh, this test takes hours, literally.
4495 # So we just punt and use a minimum line length of 8192.
4496 lt_cv_sys_max_cmd_len=8192;
4497 ;;
4498
4499 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4500 # This has been around since 386BSD, at least. Likely further.
4501 if test -x /sbin/sysctl; then
4502 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4503 elif test -x /usr/sbin/sysctl; then
4504 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4505 else
4506 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4507 fi
4508 # And add a safety zone
4509 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4510 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4511 ;;
4512
4513 interix*)
4514 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4515 lt_cv_sys_max_cmd_len=196608
4516 ;;
4517
4518 osf*)
4519 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4520 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4521 # nice to cause kernel panics so lets avoid the loop below.
4522 # First set a reasonable default.
4523 lt_cv_sys_max_cmd_len=16384
4524 #
4525 if test -x /sbin/sysconfig; then
4526 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4527 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4528 esac
4529 fi
4530 ;;
4531 sco3.2v5*)
4532 lt_cv_sys_max_cmd_len=102400
4533 ;;
4534 sysv5* | sco5v6* | sysv4.2uw2*)
4535 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4536 if test -n "$kargmax"; then
4537 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4538 else
4539 lt_cv_sys_max_cmd_len=32768
4540 fi
4541 ;;
4542 *)
4543 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4544 if test -n "$lt_cv_sys_max_cmd_len"; then
4545 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4546 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4547 else
4548 # Make teststring a little bigger before we do anything with it.
4549 # a 1K string should be a reasonable start.
4550 for i in 1 2 3 4 5 6 7 8 ; do
4551 teststring=$teststring$teststring
4552 done
4553 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4554 # If test is not a shell built-in, we'll probably end up computing a
4555 # maximum length that is only half of the actual maximum length, but
4556 # we can't tell.
4557 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4558 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4559 test $i != 17 # 1/2 MB should be enough
4560 do
4561 i=`expr $i + 1`
4562 teststring=$teststring$teststring
4563 done
4564 # Only check the string length outside the loop.
4565 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4566 teststring=
4567 # Add a significant safety factor because C++ compilers can tack on
4568 # massive amounts of additional arguments before passing them to the
4569 # linker. It appears as though 1/2 is a usable value.
4570 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4571 fi
4572 ;;
4573 esac
4574
4575 fi
4576
4577 if test -n $lt_cv_sys_max_cmd_len ; then
4578 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4579 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4580 else
4581 { $as_echo "$as_me:$LINENO: result: none" >&5
4582 $as_echo "none" >&6; }
4583 fi
4584 max_cmd_len=$lt_cv_sys_max_cmd_len
4585
4586
4587
4588
4589
4590
4591 : ${CP="cp -f"}
4592 : ${MV="mv -f"}
4593 : ${RM="rm -f"}
4594
4595 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4596 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4597 # Try some XSI features
4598 xsi_shell=no
4599 ( _lt_dummy="a/b/c"
4600 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4601 = c,a/b,, \
4602 && eval 'test $(( 1 + 1 )) -eq 2 \
4603 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4604 && xsi_shell=yes
4605 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4606 $as_echo "$xsi_shell" >&6; }
4607
4608
4609 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4610 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4611 lt_shell_append=no
4612 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4613 >/dev/null 2>&1 \
4614 && lt_shell_append=yes
4615 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4616 $as_echo "$lt_shell_append" >&6; }
4617
4618
4619 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4620 lt_unset=unset
4621 else
4622 lt_unset=false
4623 fi
4624
4625
4626
4627
4628
4629 # test EBCDIC or ASCII
4630 case `echo X|tr X '\101'` in
4631 A) # ASCII based system
4632 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4633 lt_SP2NL='tr \040 \012'
4634 lt_NL2SP='tr \015\012 \040\040'
4635 ;;
4636 *) # EBCDIC based system
4637 lt_SP2NL='tr \100 \n'
4638 lt_NL2SP='tr \r\n \100\100'
4639 ;;
4640 esac
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4651 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4652 if test "${lt_cv_ld_reload_flag+set}" = set; then
4653 $as_echo_n "(cached) " >&6
4654 else
4655 lt_cv_ld_reload_flag='-r'
4656 fi
4657 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4658 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4659 reload_flag=$lt_cv_ld_reload_flag
4660 case $reload_flag in
4661 "" | " "*) ;;
4662 *) reload_flag=" $reload_flag" ;;
4663 esac
4664 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4665 case $host_os in
4666 darwin*)
4667 if test "$GCC" = yes; then
4668 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4669 else
4670 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4671 fi
4672 ;;
4673 esac
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683 if test -n "$ac_tool_prefix"; then
4684 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4685 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4686 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4687 $as_echo_n "checking for $ac_word... " >&6; }
4688 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4689 $as_echo_n "(cached) " >&6
4690 else
4691 if test -n "$OBJDUMP"; then
4692 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4693 else
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4696 do
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4701 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4702 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4703 break 2
4704 fi
4705 done
4706 done
4707 IFS=$as_save_IFS
4708
4709 fi
4710 fi
4711 OBJDUMP=$ac_cv_prog_OBJDUMP
4712 if test -n "$OBJDUMP"; then
4713 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4714 $as_echo "$OBJDUMP" >&6; }
4715 else
4716 { $as_echo "$as_me:$LINENO: result: no" >&5
4717 $as_echo "no" >&6; }
4718 fi
4719
4720
4721 fi
4722 if test -z "$ac_cv_prog_OBJDUMP"; then
4723 ac_ct_OBJDUMP=$OBJDUMP
4724 # Extract the first word of "objdump", so it can be a program name with args.
4725 set dummy objdump; ac_word=$2
4726 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4727 $as_echo_n "checking for $ac_word... " >&6; }
4728 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4729 $as_echo_n "(cached) " >&6
4730 else
4731 if test -n "$ac_ct_OBJDUMP"; then
4732 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4733 else
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 for as_dir in $PATH
4736 do
4737 IFS=$as_save_IFS
4738 test -z "$as_dir" && as_dir=.
4739 for ac_exec_ext in '' $ac_executable_extensions; do
4740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4741 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4742 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4743 break 2
4744 fi
4745 done
4746 done
4747 IFS=$as_save_IFS
4748
4749 fi
4750 fi
4751 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4752 if test -n "$ac_ct_OBJDUMP"; then
4753 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4754 $as_echo "$ac_ct_OBJDUMP" >&6; }
4755 else
4756 { $as_echo "$as_me:$LINENO: result: no" >&5
4757 $as_echo "no" >&6; }
4758 fi
4759
4760 if test "x$ac_ct_OBJDUMP" = x; then
4761 OBJDUMP="false"
4762 else
4763 case $cross_compiling:$ac_tool_warned in
4764 yes:)
4765 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4767 ac_tool_warned=yes ;;
4768 esac
4769 OBJDUMP=$ac_ct_OBJDUMP
4770 fi
4771 else
4772 OBJDUMP="$ac_cv_prog_OBJDUMP"
4773 fi
4774
4775 test -z "$OBJDUMP" && OBJDUMP=objdump
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4786 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4787 if test "${lt_cv_deplibs_check_method+set}" = set; then
4788 $as_echo_n "(cached) " >&6
4789 else
4790 lt_cv_file_magic_cmd='$MAGIC_CMD'
4791 lt_cv_file_magic_test_file=
4792 lt_cv_deplibs_check_method='unknown'
4793 # Need to set the preceding variable on all platforms that support
4794 # interlibrary dependencies.
4795 # 'none' -- dependencies not supported.
4796 # `unknown' -- same as none, but documents that we really don't know.
4797 # 'pass_all' -- all dependencies passed with no checks.
4798 # 'test_compile' -- check by making test program.
4799 # 'file_magic [[regex]]' -- check by looking for files in library path
4800 # which responds to the $file_magic_cmd with a given extended regex.
4801 # If you have `file' or equivalent on your system and you're not sure
4802 # whether `pass_all' will *always* work, you probably want this one.
4803
4804 case $host_os in
4805 aix[4-9]*)
4806 lt_cv_deplibs_check_method=pass_all
4807 ;;
4808
4809 beos*)
4810 lt_cv_deplibs_check_method=pass_all
4811 ;;
4812
4813 bsdi[45]*)
4814 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4815 lt_cv_file_magic_cmd='/usr/bin/file -L'
4816 lt_cv_file_magic_test_file=/shlib/libc.so
4817 ;;
4818
4819 cygwin*)
4820 # func_win32_libid is a shell function defined in ltmain.sh
4821 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4822 lt_cv_file_magic_cmd='func_win32_libid'
4823 ;;
4824
4825 mingw* | pw32*)
4826 # Base MSYS/MinGW do not provide the 'file' command needed by
4827 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4828 # unless we find 'file', for example because we are cross-compiling.
4829 if ( file / ) >/dev/null 2>&1; then
4830 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4831 lt_cv_file_magic_cmd='func_win32_libid'
4832 else
4833 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4834 lt_cv_file_magic_cmd='$OBJDUMP -f'
4835 fi
4836 ;;
4837
4838 cegcc)
4839 # use the weaker test based on 'objdump'. See mingw*.
4840 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4841 lt_cv_file_magic_cmd='$OBJDUMP -f'
4842 ;;
4843
4844 darwin* | rhapsody*)
4845 lt_cv_deplibs_check_method=pass_all
4846 ;;
4847
4848 freebsd* | dragonfly*)
4849 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4850 case $host_cpu in
4851 i*86 )
4852 # Not sure whether the presence of OpenBSD here was a mistake.
4853 # Let's accept both of them until this is cleared up.
4854 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4855 lt_cv_file_magic_cmd=/usr/bin/file
4856 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4857 ;;
4858 esac
4859 else
4860 lt_cv_deplibs_check_method=pass_all
4861 fi
4862 ;;
4863
4864 gnu*)
4865 lt_cv_deplibs_check_method=pass_all
4866 ;;
4867
4868 hpux10.20* | hpux11*)
4869 lt_cv_file_magic_cmd=/usr/bin/file
4870 case $host_cpu in
4871 ia64*)
4872 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4873 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4874 ;;
4875 hppa*64*)
4876 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]'
4877 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4878 ;;
4879 *)
4880 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4881 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4882 ;;
4883 esac
4884 ;;
4885
4886 interix[3-9]*)
4887 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4888 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4889 ;;
4890
4891 irix5* | irix6* | nonstopux*)
4892 case $LD in
4893 *-32|*"-32 ") libmagic=32-bit;;
4894 *-n32|*"-n32 ") libmagic=N32;;
4895 *-64|*"-64 ") libmagic=64-bit;;
4896 *) libmagic=never-match;;
4897 esac
4898 lt_cv_deplibs_check_method=pass_all
4899 ;;
4900
4901 # This must be Linux ELF.
4902 linux* | k*bsd*-gnu)
4903 lt_cv_deplibs_check_method=pass_all
4904 ;;
4905
4906 netbsd*)
4907 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4908 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4909 else
4910 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4911 fi
4912 ;;
4913
4914 newos6*)
4915 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4916 lt_cv_file_magic_cmd=/usr/bin/file
4917 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4918 ;;
4919
4920 *nto* | *qnx*)
4921 lt_cv_deplibs_check_method=pass_all
4922 ;;
4923
4924 openbsd*)
4925 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4926 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4927 else
4928 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4929 fi
4930 ;;
4931
4932 osf3* | osf4* | osf5*)
4933 lt_cv_deplibs_check_method=pass_all
4934 ;;
4935
4936 rdos*)
4937 lt_cv_deplibs_check_method=pass_all
4938 ;;
4939
4940 solaris*)
4941 lt_cv_deplibs_check_method=pass_all
4942 ;;
4943
4944 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4945 lt_cv_deplibs_check_method=pass_all
4946 ;;
4947
4948 sysv4 | sysv4.3*)
4949 case $host_vendor in
4950 motorola)
4951 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]'
4952 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4953 ;;
4954 ncr)
4955 lt_cv_deplibs_check_method=pass_all
4956 ;;
4957 sequent)
4958 lt_cv_file_magic_cmd='/bin/file'
4959 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4960 ;;
4961 sni)
4962 lt_cv_file_magic_cmd='/bin/file'
4963 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4964 lt_cv_file_magic_test_file=/lib/libc.so
4965 ;;
4966 siemens)
4967 lt_cv_deplibs_check_method=pass_all
4968 ;;
4969 pc)
4970 lt_cv_deplibs_check_method=pass_all
4971 ;;
4972 esac
4973 ;;
4974
4975 tpf*)
4976 lt_cv_deplibs_check_method=pass_all
4977 ;;
4978 esac
4979
4980 fi
4981 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4982 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4983 file_magic_cmd=$lt_cv_file_magic_cmd
4984 deplibs_check_method=$lt_cv_deplibs_check_method
4985 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998 if test -n "$ac_tool_prefix"; then
4999 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5000 set dummy ${ac_tool_prefix}ar; ac_word=$2
5001 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5002 $as_echo_n "checking for $ac_word... " >&6; }
5003 if test "${ac_cv_prog_AR+set}" = set; then
5004 $as_echo_n "(cached) " >&6
5005 else
5006 if test -n "$AR"; then
5007 ac_cv_prog_AR="$AR" # Let the user override the test.
5008 else
5009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 for as_dir in $PATH
5011 do
5012 IFS=$as_save_IFS
5013 test -z "$as_dir" && as_dir=.
5014 for ac_exec_ext in '' $ac_executable_extensions; do
5015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5016 ac_cv_prog_AR="${ac_tool_prefix}ar"
5017 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5018 break 2
5019 fi
5020 done
5021 done
5022 IFS=$as_save_IFS
5023
5024 fi
5025 fi
5026 AR=$ac_cv_prog_AR
5027 if test -n "$AR"; then
5028 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5029 $as_echo "$AR" >&6; }
5030 else
5031 { $as_echo "$as_me:$LINENO: result: no" >&5
5032 $as_echo "no" >&6; }
5033 fi
5034
5035
5036 fi
5037 if test -z "$ac_cv_prog_AR"; then
5038 ac_ct_AR=$AR
5039 # Extract the first word of "ar", so it can be a program name with args.
5040 set dummy ar; ac_word=$2
5041 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5042 $as_echo_n "checking for $ac_word... " >&6; }
5043 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5044 $as_echo_n "(cached) " >&6
5045 else
5046 if test -n "$ac_ct_AR"; then
5047 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5048 else
5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050 for as_dir in $PATH
5051 do
5052 IFS=$as_save_IFS
5053 test -z "$as_dir" && as_dir=.
5054 for ac_exec_ext in '' $ac_executable_extensions; do
5055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5056 ac_cv_prog_ac_ct_AR="ar"
5057 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5058 break 2
5059 fi
5060 done
5061 done
5062 IFS=$as_save_IFS
5063
5064 fi
5065 fi
5066 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5067 if test -n "$ac_ct_AR"; then
5068 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5069 $as_echo "$ac_ct_AR" >&6; }
5070 else
5071 { $as_echo "$as_me:$LINENO: result: no" >&5
5072 $as_echo "no" >&6; }
5073 fi
5074
5075 if test "x$ac_ct_AR" = x; then
5076 AR="false"
5077 else
5078 case $cross_compiling:$ac_tool_warned in
5079 yes:)
5080 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5082 ac_tool_warned=yes ;;
5083 esac
5084 AR=$ac_ct_AR
5085 fi
5086 else
5087 AR="$ac_cv_prog_AR"
5088 fi
5089
5090 test -z "$AR" && AR=ar
5091 test -z "$AR_FLAGS" && AR_FLAGS=cru
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103 if test -n "$ac_tool_prefix"; then
5104 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5105 set dummy ${ac_tool_prefix}strip; ac_word=$2
5106 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5107 $as_echo_n "checking for $ac_word... " >&6; }
5108 if test "${ac_cv_prog_STRIP+set}" = set; then
5109 $as_echo_n "(cached) " >&6
5110 else
5111 if test -n "$STRIP"; then
5112 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5113 else
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 for as_dir in $PATH
5116 do
5117 IFS=$as_save_IFS
5118 test -z "$as_dir" && as_dir=.
5119 for ac_exec_ext in '' $ac_executable_extensions; do
5120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5121 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5122 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5123 break 2
5124 fi
5125 done
5126 done
5127 IFS=$as_save_IFS
5128
5129 fi
5130 fi
5131 STRIP=$ac_cv_prog_STRIP
5132 if test -n "$STRIP"; then
5133 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5134 $as_echo "$STRIP" >&6; }
5135 else
5136 { $as_echo "$as_me:$LINENO: result: no" >&5
5137 $as_echo "no" >&6; }
5138 fi
5139
5140
5141 fi
5142 if test -z "$ac_cv_prog_STRIP"; then
5143 ac_ct_STRIP=$STRIP
5144 # Extract the first word of "strip", so it can be a program name with args.
5145 set dummy strip; ac_word=$2
5146 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5147 $as_echo_n "checking for $ac_word... " >&6; }
5148 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5149 $as_echo_n "(cached) " >&6
5150 else
5151 if test -n "$ac_ct_STRIP"; then
5152 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5153 else
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 for as_dir in $PATH
5156 do
5157 IFS=$as_save_IFS
5158 test -z "$as_dir" && as_dir=.
5159 for ac_exec_ext in '' $ac_executable_extensions; do
5160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5161 ac_cv_prog_ac_ct_STRIP="strip"
5162 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5163 break 2
5164 fi
5165 done
5166 done
5167 IFS=$as_save_IFS
5168
5169 fi
5170 fi
5171 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5172 if test -n "$ac_ct_STRIP"; then
5173 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5174 $as_echo "$ac_ct_STRIP" >&6; }
5175 else
5176 { $as_echo "$as_me:$LINENO: result: no" >&5
5177 $as_echo "no" >&6; }
5178 fi
5179
5180 if test "x$ac_ct_STRIP" = x; then
5181 STRIP=":"
5182 else
5183 case $cross_compiling:$ac_tool_warned in
5184 yes:)
5185 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5187 ac_tool_warned=yes ;;
5188 esac
5189 STRIP=$ac_ct_STRIP
5190 fi
5191 else
5192 STRIP="$ac_cv_prog_STRIP"
5193 fi
5194
5195 test -z "$STRIP" && STRIP=:
5196
5197
5198
5199
5200
5201
5202 if test -n "$ac_tool_prefix"; then
5203 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5204 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5205 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5206 $as_echo_n "checking for $ac_word... " >&6; }
5207 if test "${ac_cv_prog_RANLIB+set}" = set; then
5208 $as_echo_n "(cached) " >&6
5209 else
5210 if test -n "$RANLIB"; then
5211 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5212 else
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 for as_dir in $PATH
5215 do
5216 IFS=$as_save_IFS
5217 test -z "$as_dir" && as_dir=.
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5220 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5221 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 break 2
5223 fi
5224 done
5225 done
5226 IFS=$as_save_IFS
5227
5228 fi
5229 fi
5230 RANLIB=$ac_cv_prog_RANLIB
5231 if test -n "$RANLIB"; then
5232 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5233 $as_echo "$RANLIB" >&6; }
5234 else
5235 { $as_echo "$as_me:$LINENO: result: no" >&5
5236 $as_echo "no" >&6; }
5237 fi
5238
5239
5240 fi
5241 if test -z "$ac_cv_prog_RANLIB"; then
5242 ac_ct_RANLIB=$RANLIB
5243 # Extract the first word of "ranlib", so it can be a program name with args.
5244 set dummy ranlib; ac_word=$2
5245 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5246 $as_echo_n "checking for $ac_word... " >&6; }
5247 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5248 $as_echo_n "(cached) " >&6
5249 else
5250 if test -n "$ac_ct_RANLIB"; then
5251 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5252 else
5253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 for as_dir in $PATH
5255 do
5256 IFS=$as_save_IFS
5257 test -z "$as_dir" && as_dir=.
5258 for ac_exec_ext in '' $ac_executable_extensions; do
5259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5260 ac_cv_prog_ac_ct_RANLIB="ranlib"
5261 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5262 break 2
5263 fi
5264 done
5265 done
5266 IFS=$as_save_IFS
5267
5268 fi
5269 fi
5270 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5271 if test -n "$ac_ct_RANLIB"; then
5272 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5273 $as_echo "$ac_ct_RANLIB" >&6; }
5274 else
5275 { $as_echo "$as_me:$LINENO: result: no" >&5
5276 $as_echo "no" >&6; }
5277 fi
5278
5279 if test "x$ac_ct_RANLIB" = x; then
5280 RANLIB=":"
5281 else
5282 case $cross_compiling:$ac_tool_warned in
5283 yes:)
5284 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5286 ac_tool_warned=yes ;;
5287 esac
5288 RANLIB=$ac_ct_RANLIB
5289 fi
5290 else
5291 RANLIB="$ac_cv_prog_RANLIB"
5292 fi
5293
5294 test -z "$RANLIB" && RANLIB=:
5295
5296
5297
5298
5299
5300
5301 # Determine commands to create old-style static archives.
5302 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5303 old_postinstall_cmds='chmod 644 $oldlib'
5304 old_postuninstall_cmds=
5305
5306 if test -n "$RANLIB"; then
5307 case $host_os in
5308 openbsd*)
5309 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5310 ;;
5311 *)
5312 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5313 ;;
5314 esac
5315 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5316 fi
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351 # If no C compiler was specified, use CC.
5352 LTCC=${LTCC-"$CC"}
5353
5354 # If no C compiler flags were specified, use CFLAGS.
5355 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5356
5357 # Allow CC to be a program name with arguments.
5358 compiler=$CC
5359
5360
5361 # Check for command to grab the raw symbol name followed by C symbol from nm.
5362 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5363 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5364 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5365 $as_echo_n "(cached) " >&6
5366 else
5367
5368 # These are sane defaults that work on at least a few old systems.
5369 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5370
5371 # Character class describing NM global symbol codes.
5372 symcode='[BCDEGRST]'
5373
5374 # Regexp to match symbols that can be accessed directly from C.
5375 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5376
5377 # Define system-specific variables.
5378 case $host_os in
5379 aix*)
5380 symcode='[BCDT]'
5381 ;;
5382 cygwin* | mingw* | pw32* | cegcc*)
5383 symcode='[ABCDGISTW]'
5384 ;;
5385 hpux*)
5386 if test "$host_cpu" = ia64; then
5387 symcode='[ABCDEGRST]'
5388 fi
5389 ;;
5390 irix* | nonstopux*)
5391 symcode='[BCDEGRST]'
5392 ;;
5393 osf*)
5394 symcode='[BCDEGQRST]'
5395 ;;
5396 solaris*)
5397 symcode='[BDRT]'
5398 ;;
5399 sco3.2v5*)
5400 symcode='[DT]'
5401 ;;
5402 sysv4.2uw2*)
5403 symcode='[DT]'
5404 ;;
5405 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5406 symcode='[ABDT]'
5407 ;;
5408 sysv4)
5409 symcode='[DFNSTU]'
5410 ;;
5411 esac
5412
5413 # If we're using GNU nm, then use its standard symbol codes.
5414 case `$NM -V 2>&1` in
5415 *GNU* | *'with BFD'*)
5416 symcode='[ABCDGIRSTW]' ;;
5417 esac
5418
5419 # Transform an extracted symbol line into a proper C declaration.
5420 # Some systems (esp. on ia64) link data and code symbols differently,
5421 # so use this general approach.
5422 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5423
5424 # Transform an extracted symbol line into symbol name and symbol address
5425 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5426 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'"
5427
5428 # Handle CRLF in mingw tool chain
5429 opt_cr=
5430 case $build_os in
5431 mingw*)
5432 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5433 ;;
5434 esac
5435
5436 # Try without a prefix underscore, then with it.
5437 for ac_symprfx in "" "_"; do
5438
5439 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5440 symxfrm="\\1 $ac_symprfx\\2 \\2"
5441
5442 # Write the raw and C identifiers.
5443 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5444 # Fake it for dumpbin and say T for any non-static function
5445 # and D for any global variable.
5446 # Also find C++ and __fastcall symbols from MSVC++,
5447 # which start with @ or ?.
5448 lt_cv_sys_global_symbol_pipe="$AWK '"\
5449 " {last_section=section; section=\$ 3};"\
5450 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5451 " \$ 0!~/External *\|/{next};"\
5452 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5453 " {if(hide[section]) next};"\
5454 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5455 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5456 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5457 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5458 " ' prfx=^$ac_symprfx"
5459 else
5460 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5461 fi
5462
5463 # Check to see that the pipe works correctly.
5464 pipe_works=no
5465
5466 rm -f conftest*
5467 cat > conftest.$ac_ext <<_LT_EOF
5468 #ifdef __cplusplus
5469 extern "C" {
5470 #endif
5471 char nm_test_var;
5472 void nm_test_func(void);
5473 void nm_test_func(void){}
5474 #ifdef __cplusplus
5475 }
5476 #endif
5477 int main(){nm_test_var='a';nm_test_func();return(0);}
5478 _LT_EOF
5479
5480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5481 (eval $ac_compile) 2>&5
5482 ac_status=$?
5483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); }; then
5485 # Now try to grab the symbols.
5486 nlist=conftest.nm
5487 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5488 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5489 ac_status=$?
5490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); } && test -s "$nlist"; then
5492 # Try sorting and uniquifying the output.
5493 if sort "$nlist" | uniq > "$nlist"T; then
5494 mv -f "$nlist"T "$nlist"
5495 else
5496 rm -f "$nlist"T
5497 fi
5498
5499 # Make sure that we snagged all the symbols we need.
5500 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5501 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5502 cat <<_LT_EOF > conftest.$ac_ext
5503 #ifdef __cplusplus
5504 extern "C" {
5505 #endif
5506
5507 _LT_EOF
5508 # Now generate the symbol file.
5509 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5510
5511 cat <<_LT_EOF >> conftest.$ac_ext
5512
5513 /* The mapping between symbol names and symbols. */
5514 const struct {
5515 const char *name;
5516 void *address;
5517 }
5518 lt__PROGRAM__LTX_preloaded_symbols[] =
5519 {
5520 { "@PROGRAM@", (void *) 0 },
5521 _LT_EOF
5522 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5523 cat <<\_LT_EOF >> conftest.$ac_ext
5524 {0, (void *) 0}
5525 };
5526
5527 /* This works around a problem in FreeBSD linker */
5528 #ifdef FREEBSD_WORKAROUND
5529 static const void *lt_preloaded_setup() {
5530 return lt__PROGRAM__LTX_preloaded_symbols;
5531 }
5532 #endif
5533
5534 #ifdef __cplusplus
5535 }
5536 #endif
5537 _LT_EOF
5538 # Now try linking the two files.
5539 mv conftest.$ac_objext conftstm.$ac_objext
5540 lt_save_LIBS="$LIBS"
5541 lt_save_CFLAGS="$CFLAGS"
5542 LIBS="conftstm.$ac_objext"
5543 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5545 (eval $ac_link) 2>&5
5546 ac_status=$?
5547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5549 pipe_works=yes
5550 fi
5551 LIBS="$lt_save_LIBS"
5552 CFLAGS="$lt_save_CFLAGS"
5553 else
5554 echo "cannot find nm_test_func in $nlist" >&5
5555 fi
5556 else
5557 echo "cannot find nm_test_var in $nlist" >&5
5558 fi
5559 else
5560 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5561 fi
5562 else
5563 echo "$progname: failed program was:" >&5
5564 cat conftest.$ac_ext >&5
5565 fi
5566 rm -rf conftest* conftst*
5567
5568 # Do not use the global_symbol_pipe unless it works.
5569 if test "$pipe_works" = yes; then
5570 break
5571 else
5572 lt_cv_sys_global_symbol_pipe=
5573 fi
5574 done
5575
5576 fi
5577
5578 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5579 lt_cv_sys_global_symbol_to_cdecl=
5580 fi
5581 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5582 { $as_echo "$as_me:$LINENO: result: failed" >&5
5583 $as_echo "failed" >&6; }
5584 else
5585 { $as_echo "$as_me:$LINENO: result: ok" >&5
5586 $as_echo "ok" >&6; }
5587 fi
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611 # Check whether --enable-libtool-lock was given.
5612 if test "${enable_libtool_lock+set}" = set; then
5613 enableval=$enable_libtool_lock;
5614 fi
5615
5616 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5617
5618 # Some flags need to be propagated to the compiler or linker for good
5619 # libtool support.
5620 case $host in
5621 ia64-*-hpux*)
5622 # Find out which ABI we are using.
5623 echo 'int i;' > conftest.$ac_ext
5624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5625 (eval $ac_compile) 2>&5
5626 ac_status=$?
5627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; then
5629 case `/usr/bin/file conftest.$ac_objext` in
5630 *ELF-32*)
5631 HPUX_IA64_MODE="32"
5632 ;;
5633 *ELF-64*)
5634 HPUX_IA64_MODE="64"
5635 ;;
5636 esac
5637 fi
5638 rm -rf conftest*
5639 ;;
5640 *-*-irix6*)
5641 # Find out which ABI we are using.
5642 echo '#line 5642 "configure"' > conftest.$ac_ext
5643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5644 (eval $ac_compile) 2>&5
5645 ac_status=$?
5646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); }; then
5648 if test "$lt_cv_prog_gnu_ld" = yes; then
5649 case `/usr/bin/file conftest.$ac_objext` in
5650 *32-bit*)
5651 LD="${LD-ld} -melf32bsmip"
5652 ;;
5653 *N32*)
5654 LD="${LD-ld} -melf32bmipn32"
5655 ;;
5656 *64-bit*)
5657 LD="${LD-ld} -melf64bmip"
5658 ;;
5659 esac
5660 else
5661 case `/usr/bin/file conftest.$ac_objext` in
5662 *32-bit*)
5663 LD="${LD-ld} -32"
5664 ;;
5665 *N32*)
5666 LD="${LD-ld} -n32"
5667 ;;
5668 *64-bit*)
5669 LD="${LD-ld} -64"
5670 ;;
5671 esac
5672 fi
5673 fi
5674 rm -rf conftest*
5675 ;;
5676
5677 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5678 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5679 # Find out which ABI we are using.
5680 echo 'int i;' > conftest.$ac_ext
5681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5682 (eval $ac_compile) 2>&5
5683 ac_status=$?
5684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; then
5686 case `/usr/bin/file conftest.o` in
5687 *32-bit*)
5688 case $host in
5689 x86_64-*kfreebsd*-gnu)
5690 LD="${LD-ld} -m elf_i386_fbsd"
5691 ;;
5692 x86_64-*linux*)
5693 LD="${LD-ld} -m elf_i386"
5694 ;;
5695 ppc64-*linux*|powerpc64-*linux*)
5696 LD="${LD-ld} -m elf32ppclinux"
5697 ;;
5698 s390x-*linux*)
5699 LD="${LD-ld} -m elf_s390"
5700 ;;
5701 sparc64-*linux*)
5702 LD="${LD-ld} -m elf32_sparc"
5703 ;;
5704 esac
5705 ;;
5706 *64-bit*)
5707 case $host in
5708 x86_64-*kfreebsd*-gnu)
5709 LD="${LD-ld} -m elf_x86_64_fbsd"
5710 ;;
5711 x86_64-*linux*)
5712 LD="${LD-ld} -m elf_x86_64"
5713 ;;
5714 ppc*-*linux*|powerpc*-*linux*)
5715 LD="${LD-ld} -m elf64ppc"
5716 ;;
5717 s390*-*linux*|s390*-*tpf*)
5718 LD="${LD-ld} -m elf64_s390"
5719 ;;
5720 sparc*-*linux*)
5721 LD="${LD-ld} -m elf64_sparc"
5722 ;;
5723 esac
5724 ;;
5725 esac
5726 fi
5727 rm -rf conftest*
5728 ;;
5729
5730 *-*-sco3.2v5*)
5731 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5732 SAVE_CFLAGS="$CFLAGS"
5733 CFLAGS="$CFLAGS -belf"
5734 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5735 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5736 if test "${lt_cv_cc_needs_belf+set}" = set; then
5737 $as_echo_n "(cached) " >&6
5738 else
5739 ac_ext=c
5740 ac_cpp='$CPP $CPPFLAGS'
5741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5744
5745 cat >conftest.$ac_ext <<_ACEOF
5746 /* confdefs.h. */
5747 _ACEOF
5748 cat confdefs.h >>conftest.$ac_ext
5749 cat >>conftest.$ac_ext <<_ACEOF
5750 /* end confdefs.h. */
5751
5752 int
5753 main ()
5754 {
5755
5756 ;
5757 return 0;
5758 }
5759 _ACEOF
5760 rm -f conftest.$ac_objext conftest$ac_exeext
5761 if { (ac_try="$ac_link"
5762 case "(($ac_try" in
5763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5764 *) ac_try_echo=$ac_try;;
5765 esac
5766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5767 $as_echo "$ac_try_echo") >&5
5768 (eval "$ac_link") 2>conftest.er1
5769 ac_status=$?
5770 grep -v '^ *+' conftest.er1 >conftest.err
5771 rm -f conftest.er1
5772 cat conftest.err >&5
5773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } && {
5775 test -z "$ac_c_werror_flag" ||
5776 test ! -s conftest.err
5777 } && test -s conftest$ac_exeext && {
5778 test "$cross_compiling" = yes ||
5779 $as_test_x conftest$ac_exeext
5780 }; then
5781 lt_cv_cc_needs_belf=yes
5782 else
5783 $as_echo "$as_me: failed program was:" >&5
5784 sed 's/^/| /' conftest.$ac_ext >&5
5785
5786 lt_cv_cc_needs_belf=no
5787 fi
5788
5789 rm -rf conftest.dSYM
5790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5791 conftest$ac_exeext conftest.$ac_ext
5792 ac_ext=c
5793 ac_cpp='$CPP $CPPFLAGS'
5794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5797
5798 fi
5799 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5800 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5801 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5802 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5803 CFLAGS="$SAVE_CFLAGS"
5804 fi
5805 ;;
5806 sparc*-*solaris*)
5807 # Find out which ABI we are using.
5808 echo 'int i;' > conftest.$ac_ext
5809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5810 (eval $ac_compile) 2>&5
5811 ac_status=$?
5812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); }; then
5814 case `/usr/bin/file conftest.o` in
5815 *64-bit*)
5816 case $lt_cv_prog_gnu_ld in
5817 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5818 *)
5819 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5820 LD="${LD-ld} -64"
5821 fi
5822 ;;
5823 esac
5824 ;;
5825 esac
5826 fi
5827 rm -rf conftest*
5828 ;;
5829 esac
5830
5831 need_locks="$enable_libtool_lock"
5832
5833
5834 case $host_os in
5835 rhapsody* | darwin*)
5836 if test -n "$ac_tool_prefix"; then
5837 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5838 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5839 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5840 $as_echo_n "checking for $ac_word... " >&6; }
5841 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5842 $as_echo_n "(cached) " >&6
5843 else
5844 if test -n "$DSYMUTIL"; then
5845 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5846 else
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848 for as_dir in $PATH
5849 do
5850 IFS=$as_save_IFS
5851 test -z "$as_dir" && as_dir=.
5852 for ac_exec_ext in '' $ac_executable_extensions; do
5853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5854 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5855 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5856 break 2
5857 fi
5858 done
5859 done
5860 IFS=$as_save_IFS
5861
5862 fi
5863 fi
5864 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5865 if test -n "$DSYMUTIL"; then
5866 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5867 $as_echo "$DSYMUTIL" >&6; }
5868 else
5869 { $as_echo "$as_me:$LINENO: result: no" >&5
5870 $as_echo "no" >&6; }
5871 fi
5872
5873
5874 fi
5875 if test -z "$ac_cv_prog_DSYMUTIL"; then
5876 ac_ct_DSYMUTIL=$DSYMUTIL
5877 # Extract the first word of "dsymutil", so it can be a program name with args.
5878 set dummy dsymutil; ac_word=$2
5879 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5880 $as_echo_n "checking for $ac_word... " >&6; }
5881 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5882 $as_echo_n "(cached) " >&6
5883 else
5884 if test -n "$ac_ct_DSYMUTIL"; then
5885 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5886 else
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 for as_dir in $PATH
5889 do
5890 IFS=$as_save_IFS
5891 test -z "$as_dir" && as_dir=.
5892 for ac_exec_ext in '' $ac_executable_extensions; do
5893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5894 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5895 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 break 2
5897 fi
5898 done
5899 done
5900 IFS=$as_save_IFS
5901
5902 fi
5903 fi
5904 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5905 if test -n "$ac_ct_DSYMUTIL"; then
5906 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5907 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5908 else
5909 { $as_echo "$as_me:$LINENO: result: no" >&5
5910 $as_echo "no" >&6; }
5911 fi
5912
5913 if test "x$ac_ct_DSYMUTIL" = x; then
5914 DSYMUTIL=":"
5915 else
5916 case $cross_compiling:$ac_tool_warned in
5917 yes:)
5918 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5920 ac_tool_warned=yes ;;
5921 esac
5922 DSYMUTIL=$ac_ct_DSYMUTIL
5923 fi
5924 else
5925 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5926 fi
5927
5928 if test -n "$ac_tool_prefix"; then
5929 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5930 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5931 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5932 $as_echo_n "checking for $ac_word... " >&6; }
5933 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5934 $as_echo_n "(cached) " >&6
5935 else
5936 if test -n "$NMEDIT"; then
5937 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5938 else
5939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940 for as_dir in $PATH
5941 do
5942 IFS=$as_save_IFS
5943 test -z "$as_dir" && as_dir=.
5944 for ac_exec_ext in '' $ac_executable_extensions; do
5945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5946 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5947 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5948 break 2
5949 fi
5950 done
5951 done
5952 IFS=$as_save_IFS
5953
5954 fi
5955 fi
5956 NMEDIT=$ac_cv_prog_NMEDIT
5957 if test -n "$NMEDIT"; then
5958 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5959 $as_echo "$NMEDIT" >&6; }
5960 else
5961 { $as_echo "$as_me:$LINENO: result: no" >&5
5962 $as_echo "no" >&6; }
5963 fi
5964
5965
5966 fi
5967 if test -z "$ac_cv_prog_NMEDIT"; then
5968 ac_ct_NMEDIT=$NMEDIT
5969 # Extract the first word of "nmedit", so it can be a program name with args.
5970 set dummy nmedit; ac_word=$2
5971 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5972 $as_echo_n "checking for $ac_word... " >&6; }
5973 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5974 $as_echo_n "(cached) " >&6
5975 else
5976 if test -n "$ac_ct_NMEDIT"; then
5977 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5978 else
5979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980 for as_dir in $PATH
5981 do
5982 IFS=$as_save_IFS
5983 test -z "$as_dir" && as_dir=.
5984 for ac_exec_ext in '' $ac_executable_extensions; do
5985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5986 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5987 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5988 break 2
5989 fi
5990 done
5991 done
5992 IFS=$as_save_IFS
5993
5994 fi
5995 fi
5996 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5997 if test -n "$ac_ct_NMEDIT"; then
5998 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5999 $as_echo "$ac_ct_NMEDIT" >&6; }
6000 else
6001 { $as_echo "$as_me:$LINENO: result: no" >&5
6002 $as_echo "no" >&6; }
6003 fi
6004
6005 if test "x$ac_ct_NMEDIT" = x; then
6006 NMEDIT=":"
6007 else
6008 case $cross_compiling:$ac_tool_warned in
6009 yes:)
6010 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6012 ac_tool_warned=yes ;;
6013 esac
6014 NMEDIT=$ac_ct_NMEDIT
6015 fi
6016 else
6017 NMEDIT="$ac_cv_prog_NMEDIT"
6018 fi
6019
6020 if test -n "$ac_tool_prefix"; then
6021 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6022 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6023 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6024 $as_echo_n "checking for $ac_word... " >&6; }
6025 if test "${ac_cv_prog_LIPO+set}" = set; then
6026 $as_echo_n "(cached) " >&6
6027 else
6028 if test -n "$LIPO"; then
6029 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6030 else
6031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6032 for as_dir in $PATH
6033 do
6034 IFS=$as_save_IFS
6035 test -z "$as_dir" && as_dir=.
6036 for ac_exec_ext in '' $ac_executable_extensions; do
6037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6038 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6039 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6040 break 2
6041 fi
6042 done
6043 done
6044 IFS=$as_save_IFS
6045
6046 fi
6047 fi
6048 LIPO=$ac_cv_prog_LIPO
6049 if test -n "$LIPO"; then
6050 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6051 $as_echo "$LIPO" >&6; }
6052 else
6053 { $as_echo "$as_me:$LINENO: result: no" >&5
6054 $as_echo "no" >&6; }
6055 fi
6056
6057
6058 fi
6059 if test -z "$ac_cv_prog_LIPO"; then
6060 ac_ct_LIPO=$LIPO
6061 # Extract the first word of "lipo", so it can be a program name with args.
6062 set dummy lipo; ac_word=$2
6063 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6064 $as_echo_n "checking for $ac_word... " >&6; }
6065 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6066 $as_echo_n "(cached) " >&6
6067 else
6068 if test -n "$ac_ct_LIPO"; then
6069 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6070 else
6071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072 for as_dir in $PATH
6073 do
6074 IFS=$as_save_IFS
6075 test -z "$as_dir" && as_dir=.
6076 for ac_exec_ext in '' $ac_executable_extensions; do
6077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6078 ac_cv_prog_ac_ct_LIPO="lipo"
6079 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6080 break 2
6081 fi
6082 done
6083 done
6084 IFS=$as_save_IFS
6085
6086 fi
6087 fi
6088 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6089 if test -n "$ac_ct_LIPO"; then
6090 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6091 $as_echo "$ac_ct_LIPO" >&6; }
6092 else
6093 { $as_echo "$as_me:$LINENO: result: no" >&5
6094 $as_echo "no" >&6; }
6095 fi
6096
6097 if test "x$ac_ct_LIPO" = x; then
6098 LIPO=":"
6099 else
6100 case $cross_compiling:$ac_tool_warned in
6101 yes:)
6102 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6104 ac_tool_warned=yes ;;
6105 esac
6106 LIPO=$ac_ct_LIPO
6107 fi
6108 else
6109 LIPO="$ac_cv_prog_LIPO"
6110 fi
6111
6112 if test -n "$ac_tool_prefix"; then
6113 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6114 set dummy ${ac_tool_prefix}otool; ac_word=$2
6115 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6116 $as_echo_n "checking for $ac_word... " >&6; }
6117 if test "${ac_cv_prog_OTOOL+set}" = set; then
6118 $as_echo_n "(cached) " >&6
6119 else
6120 if test -n "$OTOOL"; then
6121 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6122 else
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 for as_dir in $PATH
6125 do
6126 IFS=$as_save_IFS
6127 test -z "$as_dir" && as_dir=.
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6130 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6131 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6132 break 2
6133 fi
6134 done
6135 done
6136 IFS=$as_save_IFS
6137
6138 fi
6139 fi
6140 OTOOL=$ac_cv_prog_OTOOL
6141 if test -n "$OTOOL"; then
6142 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6143 $as_echo "$OTOOL" >&6; }
6144 else
6145 { $as_echo "$as_me:$LINENO: result: no" >&5
6146 $as_echo "no" >&6; }
6147 fi
6148
6149
6150 fi
6151 if test -z "$ac_cv_prog_OTOOL"; then
6152 ac_ct_OTOOL=$OTOOL
6153 # Extract the first word of "otool", so it can be a program name with args.
6154 set dummy otool; ac_word=$2
6155 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6156 $as_echo_n "checking for $ac_word... " >&6; }
6157 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6158 $as_echo_n "(cached) " >&6
6159 else
6160 if test -n "$ac_ct_OTOOL"; then
6161 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6162 else
6163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164 for as_dir in $PATH
6165 do
6166 IFS=$as_save_IFS
6167 test -z "$as_dir" && as_dir=.
6168 for ac_exec_ext in '' $ac_executable_extensions; do
6169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6170 ac_cv_prog_ac_ct_OTOOL="otool"
6171 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6172 break 2
6173 fi
6174 done
6175 done
6176 IFS=$as_save_IFS
6177
6178 fi
6179 fi
6180 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6181 if test -n "$ac_ct_OTOOL"; then
6182 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6183 $as_echo "$ac_ct_OTOOL" >&6; }
6184 else
6185 { $as_echo "$as_me:$LINENO: result: no" >&5
6186 $as_echo "no" >&6; }
6187 fi
6188
6189 if test "x$ac_ct_OTOOL" = x; then
6190 OTOOL=":"
6191 else
6192 case $cross_compiling:$ac_tool_warned in
6193 yes:)
6194 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6196 ac_tool_warned=yes ;;
6197 esac
6198 OTOOL=$ac_ct_OTOOL
6199 fi
6200 else
6201 OTOOL="$ac_cv_prog_OTOOL"
6202 fi
6203
6204 if test -n "$ac_tool_prefix"; then
6205 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6206 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6207 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6208 $as_echo_n "checking for $ac_word... " >&6; }
6209 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6210 $as_echo_n "(cached) " >&6
6211 else
6212 if test -n "$OTOOL64"; then
6213 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6214 else
6215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216 for as_dir in $PATH
6217 do
6218 IFS=$as_save_IFS
6219 test -z "$as_dir" && as_dir=.
6220 for ac_exec_ext in '' $ac_executable_extensions; do
6221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6222 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6223 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6224 break 2
6225 fi
6226 done
6227 done
6228 IFS=$as_save_IFS
6229
6230 fi
6231 fi
6232 OTOOL64=$ac_cv_prog_OTOOL64
6233 if test -n "$OTOOL64"; then
6234 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6235 $as_echo "$OTOOL64" >&6; }
6236 else
6237 { $as_echo "$as_me:$LINENO: result: no" >&5
6238 $as_echo "no" >&6; }
6239 fi
6240
6241
6242 fi
6243 if test -z "$ac_cv_prog_OTOOL64"; then
6244 ac_ct_OTOOL64=$OTOOL64
6245 # Extract the first word of "otool64", so it can be a program name with args.
6246 set dummy otool64; ac_word=$2
6247 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6248 $as_echo_n "checking for $ac_word... " >&6; }
6249 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6250 $as_echo_n "(cached) " >&6
6251 else
6252 if test -n "$ac_ct_OTOOL64"; then
6253 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6254 else
6255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 for as_dir in $PATH
6257 do
6258 IFS=$as_save_IFS
6259 test -z "$as_dir" && as_dir=.
6260 for ac_exec_ext in '' $ac_executable_extensions; do
6261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6262 ac_cv_prog_ac_ct_OTOOL64="otool64"
6263 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6264 break 2
6265 fi
6266 done
6267 done
6268 IFS=$as_save_IFS
6269
6270 fi
6271 fi
6272 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6273 if test -n "$ac_ct_OTOOL64"; then
6274 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6275 $as_echo "$ac_ct_OTOOL64" >&6; }
6276 else
6277 { $as_echo "$as_me:$LINENO: result: no" >&5
6278 $as_echo "no" >&6; }
6279 fi
6280
6281 if test "x$ac_ct_OTOOL64" = x; then
6282 OTOOL64=":"
6283 else
6284 case $cross_compiling:$ac_tool_warned in
6285 yes:)
6286 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6288 ac_tool_warned=yes ;;
6289 esac
6290 OTOOL64=$ac_ct_OTOOL64
6291 fi
6292 else
6293 OTOOL64="$ac_cv_prog_OTOOL64"
6294 fi
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6323 $as_echo_n "checking for -single_module linker flag... " >&6; }
6324 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6325 $as_echo_n "(cached) " >&6
6326 else
6327 lt_cv_apple_cc_single_mod=no
6328 if test -z "${LT_MULTI_MODULE}"; then
6329 # By default we will add the -single_module flag. You can override
6330 # by either setting the environment variable LT_MULTI_MODULE
6331 # non-empty at configure time, or by adding -multi_module to the
6332 # link flags.
6333 rm -rf libconftest.dylib*
6334 echo "int foo(void){return 1;}" > conftest.c
6335 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6336 -dynamiclib -Wl,-single_module conftest.c" >&5
6337 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6338 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6339 _lt_result=$?
6340 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6341 lt_cv_apple_cc_single_mod=yes
6342 else
6343 cat conftest.err >&5
6344 fi
6345 rm -rf libconftest.dylib*
6346 rm -f conftest.*
6347 fi
6348 fi
6349 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6350 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6351 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6352 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6353 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6354 $as_echo_n "(cached) " >&6
6355 else
6356 lt_cv_ld_exported_symbols_list=no
6357 save_LDFLAGS=$LDFLAGS
6358 echo "_main" > conftest.sym
6359 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6360 cat >conftest.$ac_ext <<_ACEOF
6361 /* confdefs.h. */
6362 _ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h. */
6366
6367 int
6368 main ()
6369 {
6370
6371 ;
6372 return 0;
6373 }
6374 _ACEOF
6375 rm -f conftest.$ac_objext conftest$ac_exeext
6376 if { (ac_try="$ac_link"
6377 case "(($ac_try" in
6378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6379 *) ac_try_echo=$ac_try;;
6380 esac
6381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6382 $as_echo "$ac_try_echo") >&5
6383 (eval "$ac_link") 2>conftest.er1
6384 ac_status=$?
6385 grep -v '^ *+' conftest.er1 >conftest.err
6386 rm -f conftest.er1
6387 cat conftest.err >&5
6388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); } && {
6390 test -z "$ac_c_werror_flag" ||
6391 test ! -s conftest.err
6392 } && test -s conftest$ac_exeext && {
6393 test "$cross_compiling" = yes ||
6394 $as_test_x conftest$ac_exeext
6395 }; then
6396 lt_cv_ld_exported_symbols_list=yes
6397 else
6398 $as_echo "$as_me: failed program was:" >&5
6399 sed 's/^/| /' conftest.$ac_ext >&5
6400
6401 lt_cv_ld_exported_symbols_list=no
6402 fi
6403
6404 rm -rf conftest.dSYM
6405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6406 conftest$ac_exeext conftest.$ac_ext
6407 LDFLAGS="$save_LDFLAGS"
6408
6409 fi
6410 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6411 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6412 case $host_os in
6413 rhapsody* | darwin1.[012])
6414 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6415 darwin1.*)
6416 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6417 darwin*) # darwin 5.x on
6418 # if running on 10.5 or later, the deployment target defaults
6419 # to the OS version, if on x86, and 10.4, the deployment
6420 # target defaults to 10.4. Don't you love it?
6421 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6422 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6423 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6424 10.[012]*)
6425 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6426 10.*)
6427 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6428 esac
6429 ;;
6430 esac
6431 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6432 _lt_dar_single_mod='$single_module'
6433 fi
6434 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6435 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6436 else
6437 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6438 fi
6439 if test "$DSYMUTIL" != ":"; then
6440 _lt_dsymutil='~$DSYMUTIL $lib || :'
6441 else
6442 _lt_dsymutil=
6443 fi
6444 ;;
6445 esac
6446
6447 ac_ext=c
6448 ac_cpp='$CPP $CPPFLAGS'
6449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6452 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6453 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6454 # On Suns, sometimes $CPP names a directory.
6455 if test -n "$CPP" && test -d "$CPP"; then
6456 CPP=
6457 fi
6458 if test -z "$CPP"; then
6459 if test "${ac_cv_prog_CPP+set}" = set; then
6460 $as_echo_n "(cached) " >&6
6461 else
6462 # Double quotes because CPP needs to be expanded
6463 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6464 do
6465 ac_preproc_ok=false
6466 for ac_c_preproc_warn_flag in '' yes
6467 do
6468 # Use a header file that comes with gcc, so configuring glibc
6469 # with a fresh cross-compiler works.
6470 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6471 # <limits.h> exists even on freestanding compilers.
6472 # On the NeXT, cc -E runs the code through the compiler's parser,
6473 # not just through cpp. "Syntax error" is here to catch this case.
6474 cat >conftest.$ac_ext <<_ACEOF
6475 /* confdefs.h. */
6476 _ACEOF
6477 cat confdefs.h >>conftest.$ac_ext
6478 cat >>conftest.$ac_ext <<_ACEOF
6479 /* end confdefs.h. */
6480 #ifdef __STDC__
6481 # include <limits.h>
6482 #else
6483 # include <assert.h>
6484 #endif
6485 Syntax error
6486 _ACEOF
6487 if { (ac_try="$ac_cpp conftest.$ac_ext"
6488 case "(($ac_try" in
6489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6490 *) ac_try_echo=$ac_try;;
6491 esac
6492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6493 $as_echo "$ac_try_echo") >&5
6494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6495 ac_status=$?
6496 grep -v '^ *+' conftest.er1 >conftest.err
6497 rm -f conftest.er1
6498 cat conftest.err >&5
6499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); } >/dev/null && {
6501 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6502 test ! -s conftest.err
6503 }; then
6504 :
6505 else
6506 $as_echo "$as_me: failed program was:" >&5
6507 sed 's/^/| /' conftest.$ac_ext >&5
6508
6509 # Broken: fails on valid input.
6510 continue
6511 fi
6512
6513 rm -f conftest.err conftest.$ac_ext
6514
6515 # OK, works on sane cases. Now check whether nonexistent headers
6516 # can be detected and how.
6517 cat >conftest.$ac_ext <<_ACEOF
6518 /* confdefs.h. */
6519 _ACEOF
6520 cat confdefs.h >>conftest.$ac_ext
6521 cat >>conftest.$ac_ext <<_ACEOF
6522 /* end confdefs.h. */
6523 #include <ac_nonexistent.h>
6524 _ACEOF
6525 if { (ac_try="$ac_cpp conftest.$ac_ext"
6526 case "(($ac_try" in
6527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6528 *) ac_try_echo=$ac_try;;
6529 esac
6530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6531 $as_echo "$ac_try_echo") >&5
6532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6533 ac_status=$?
6534 grep -v '^ *+' conftest.er1 >conftest.err
6535 rm -f conftest.er1
6536 cat conftest.err >&5
6537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); } >/dev/null && {
6539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6540 test ! -s conftest.err
6541 }; then
6542 # Broken: success on invalid input.
6543 continue
6544 else
6545 $as_echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.$ac_ext >&5
6547
6548 # Passes both tests.
6549 ac_preproc_ok=:
6550 break
6551 fi
6552
6553 rm -f conftest.err conftest.$ac_ext
6554
6555 done
6556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6557 rm -f conftest.err conftest.$ac_ext
6558 if $ac_preproc_ok; then
6559 break
6560 fi
6561
6562 done
6563 ac_cv_prog_CPP=$CPP
6564
6565 fi
6566 CPP=$ac_cv_prog_CPP
6567 else
6568 ac_cv_prog_CPP=$CPP
6569 fi
6570 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6571 $as_echo "$CPP" >&6; }
6572 ac_preproc_ok=false
6573 for ac_c_preproc_warn_flag in '' yes
6574 do
6575 # Use a header file that comes with gcc, so configuring glibc
6576 # with a fresh cross-compiler works.
6577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6578 # <limits.h> exists even on freestanding compilers.
6579 # On the NeXT, cc -E runs the code through the compiler's parser,
6580 # not just through cpp. "Syntax error" is here to catch this case.
6581 cat >conftest.$ac_ext <<_ACEOF
6582 /* confdefs.h. */
6583 _ACEOF
6584 cat confdefs.h >>conftest.$ac_ext
6585 cat >>conftest.$ac_ext <<_ACEOF
6586 /* end confdefs.h. */
6587 #ifdef __STDC__
6588 # include <limits.h>
6589 #else
6590 # include <assert.h>
6591 #endif
6592 Syntax error
6593 _ACEOF
6594 if { (ac_try="$ac_cpp conftest.$ac_ext"
6595 case "(($ac_try" in
6596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6597 *) ac_try_echo=$ac_try;;
6598 esac
6599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6600 $as_echo "$ac_try_echo") >&5
6601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6602 ac_status=$?
6603 grep -v '^ *+' conftest.er1 >conftest.err
6604 rm -f conftest.er1
6605 cat conftest.err >&5
6606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); } >/dev/null && {
6608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6609 test ! -s conftest.err
6610 }; then
6611 :
6612 else
6613 $as_echo "$as_me: failed program was:" >&5
6614 sed 's/^/| /' conftest.$ac_ext >&5
6615
6616 # Broken: fails on valid input.
6617 continue
6618 fi
6619
6620 rm -f conftest.err conftest.$ac_ext
6621
6622 # OK, works on sane cases. Now check whether nonexistent headers
6623 # can be detected and how.
6624 cat >conftest.$ac_ext <<_ACEOF
6625 /* confdefs.h. */
6626 _ACEOF
6627 cat confdefs.h >>conftest.$ac_ext
6628 cat >>conftest.$ac_ext <<_ACEOF
6629 /* end confdefs.h. */
6630 #include <ac_nonexistent.h>
6631 _ACEOF
6632 if { (ac_try="$ac_cpp conftest.$ac_ext"
6633 case "(($ac_try" in
6634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6635 *) ac_try_echo=$ac_try;;
6636 esac
6637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6638 $as_echo "$ac_try_echo") >&5
6639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6640 ac_status=$?
6641 grep -v '^ *+' conftest.er1 >conftest.err
6642 rm -f conftest.er1
6643 cat conftest.err >&5
6644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); } >/dev/null && {
6646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6647 test ! -s conftest.err
6648 }; then
6649 # Broken: success on invalid input.
6650 continue
6651 else
6652 $as_echo "$as_me: failed program was:" >&5
6653 sed 's/^/| /' conftest.$ac_ext >&5
6654
6655 # Passes both tests.
6656 ac_preproc_ok=:
6657 break
6658 fi
6659
6660 rm -f conftest.err conftest.$ac_ext
6661
6662 done
6663 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6664 rm -f conftest.err conftest.$ac_ext
6665 if $ac_preproc_ok; then
6666 :
6667 else
6668 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6670 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6671 See \`config.log' for more details." >&5
6672 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6673 See \`config.log' for more details." >&2;}
6674 { (exit 1); exit 1; }; }; }
6675 fi
6676
6677 ac_ext=c
6678 ac_cpp='$CPP $CPPFLAGS'
6679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6682
6683
6684 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6685 $as_echo_n "checking for ANSI C header files... " >&6; }
6686 if test "${ac_cv_header_stdc+set}" = set; then
6687 $as_echo_n "(cached) " >&6
6688 else
6689 cat >conftest.$ac_ext <<_ACEOF
6690 /* confdefs.h. */
6691 _ACEOF
6692 cat confdefs.h >>conftest.$ac_ext
6693 cat >>conftest.$ac_ext <<_ACEOF
6694 /* end confdefs.h. */
6695 #include <stdlib.h>
6696 #include <stdarg.h>
6697 #include <string.h>
6698 #include <float.h>
6699
6700 int
6701 main ()
6702 {
6703
6704 ;
6705 return 0;
6706 }
6707 _ACEOF
6708 rm -f conftest.$ac_objext
6709 if { (ac_try="$ac_compile"
6710 case "(($ac_try" in
6711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6712 *) ac_try_echo=$ac_try;;
6713 esac
6714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6715 $as_echo "$ac_try_echo") >&5
6716 (eval "$ac_compile") 2>conftest.er1
6717 ac_status=$?
6718 grep -v '^ *+' conftest.er1 >conftest.err
6719 rm -f conftest.er1
6720 cat conftest.err >&5
6721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); } && {
6723 test -z "$ac_c_werror_flag" ||
6724 test ! -s conftest.err
6725 } && test -s conftest.$ac_objext; then
6726 ac_cv_header_stdc=yes
6727 else
6728 $as_echo "$as_me: failed program was:" >&5
6729 sed 's/^/| /' conftest.$ac_ext >&5
6730
6731 ac_cv_header_stdc=no
6732 fi
6733
6734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6735
6736 if test $ac_cv_header_stdc = yes; then
6737 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6738 cat >conftest.$ac_ext <<_ACEOF
6739 /* confdefs.h. */
6740 _ACEOF
6741 cat confdefs.h >>conftest.$ac_ext
6742 cat >>conftest.$ac_ext <<_ACEOF
6743 /* end confdefs.h. */
6744 #include <string.h>
6745
6746 _ACEOF
6747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6748 $EGREP "memchr" >/dev/null 2>&1; then
6749 :
6750 else
6751 ac_cv_header_stdc=no
6752 fi
6753 rm -f conftest*
6754
6755 fi
6756
6757 if test $ac_cv_header_stdc = yes; then
6758 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6759 cat >conftest.$ac_ext <<_ACEOF
6760 /* confdefs.h. */
6761 _ACEOF
6762 cat confdefs.h >>conftest.$ac_ext
6763 cat >>conftest.$ac_ext <<_ACEOF
6764 /* end confdefs.h. */
6765 #include <stdlib.h>
6766
6767 _ACEOF
6768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6769 $EGREP "free" >/dev/null 2>&1; then
6770 :
6771 else
6772 ac_cv_header_stdc=no
6773 fi
6774 rm -f conftest*
6775
6776 fi
6777
6778 if test $ac_cv_header_stdc = yes; then
6779 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6780 if test "$cross_compiling" = yes; then
6781 :
6782 else
6783 cat >conftest.$ac_ext <<_ACEOF
6784 /* confdefs.h. */
6785 _ACEOF
6786 cat confdefs.h >>conftest.$ac_ext
6787 cat >>conftest.$ac_ext <<_ACEOF
6788 /* end confdefs.h. */
6789 #include <ctype.h>
6790 #include <stdlib.h>
6791 #if ((' ' & 0x0FF) == 0x020)
6792 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6793 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6794 #else
6795 # define ISLOWER(c) \
6796 (('a' <= (c) && (c) <= 'i') \
6797 || ('j' <= (c) && (c) <= 'r') \
6798 || ('s' <= (c) && (c) <= 'z'))
6799 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6800 #endif
6801
6802 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6803 int
6804 main ()
6805 {
6806 int i;
6807 for (i = 0; i < 256; i++)
6808 if (XOR (islower (i), ISLOWER (i))
6809 || toupper (i) != TOUPPER (i))
6810 return 2;
6811 return 0;
6812 }
6813 _ACEOF
6814 rm -f conftest$ac_exeext
6815 if { (ac_try="$ac_link"
6816 case "(($ac_try" in
6817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6818 *) ac_try_echo=$ac_try;;
6819 esac
6820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6821 $as_echo "$ac_try_echo") >&5
6822 (eval "$ac_link") 2>&5
6823 ac_status=$?
6824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6826 { (case "(($ac_try" in
6827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6828 *) ac_try_echo=$ac_try;;
6829 esac
6830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6831 $as_echo "$ac_try_echo") >&5
6832 (eval "$ac_try") 2>&5
6833 ac_status=$?
6834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); }; }; then
6836 :
6837 else
6838 $as_echo "$as_me: program exited with status $ac_status" >&5
6839 $as_echo "$as_me: failed program was:" >&5
6840 sed 's/^/| /' conftest.$ac_ext >&5
6841
6842 ( exit $ac_status )
6843 ac_cv_header_stdc=no
6844 fi
6845 rm -rf conftest.dSYM
6846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6847 fi
6848
6849
6850 fi
6851 fi
6852 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6853 $as_echo "$ac_cv_header_stdc" >&6; }
6854 if test $ac_cv_header_stdc = yes; then
6855
6856 cat >>confdefs.h <<\_ACEOF
6857 #define STDC_HEADERS 1
6858 _ACEOF
6859
6860 fi
6861
6862 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6873 inttypes.h stdint.h unistd.h
6874 do
6875 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6876 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6877 $as_echo_n "checking for $ac_header... " >&6; }
6878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6879 $as_echo_n "(cached) " >&6
6880 else
6881 cat >conftest.$ac_ext <<_ACEOF
6882 /* confdefs.h. */
6883 _ACEOF
6884 cat confdefs.h >>conftest.$ac_ext
6885 cat >>conftest.$ac_ext <<_ACEOF
6886 /* end confdefs.h. */
6887 $ac_includes_default
6888
6889 #include <$ac_header>
6890 _ACEOF
6891 rm -f conftest.$ac_objext
6892 if { (ac_try="$ac_compile"
6893 case "(($ac_try" in
6894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6895 *) ac_try_echo=$ac_try;;
6896 esac
6897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6898 $as_echo "$ac_try_echo") >&5
6899 (eval "$ac_compile") 2>conftest.er1
6900 ac_status=$?
6901 grep -v '^ *+' conftest.er1 >conftest.err
6902 rm -f conftest.er1
6903 cat conftest.err >&5
6904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); } && {
6906 test -z "$ac_c_werror_flag" ||
6907 test ! -s conftest.err
6908 } && test -s conftest.$ac_objext; then
6909 eval "$as_ac_Header=yes"
6910 else
6911 $as_echo "$as_me: failed program was:" >&5
6912 sed 's/^/| /' conftest.$ac_ext >&5
6913
6914 eval "$as_ac_Header=no"
6915 fi
6916
6917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6918 fi
6919 ac_res=`eval 'as_val=${'$as_ac_Header'}
6920 $as_echo "$as_val"'`
6921 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6922 $as_echo "$ac_res" >&6; }
6923 as_val=`eval 'as_val=${'$as_ac_Header'}
6924 $as_echo "$as_val"'`
6925 if test "x$as_val" = x""yes; then
6926 cat >>confdefs.h <<_ACEOF
6927 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6928 _ACEOF
6929
6930 fi
6931
6932 done
6933
6934
6935
6936 for ac_header in dlfcn.h
6937 do
6938 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6939 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6940 $as_echo_n "checking for $ac_header... " >&6; }
6941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6942 $as_echo_n "(cached) " >&6
6943 else
6944 cat >conftest.$ac_ext <<_ACEOF
6945 /* confdefs.h. */
6946 _ACEOF
6947 cat confdefs.h >>conftest.$ac_ext
6948 cat >>conftest.$ac_ext <<_ACEOF
6949 /* end confdefs.h. */
6950 $ac_includes_default
6951
6952 #include <$ac_header>
6953 _ACEOF
6954 rm -f conftest.$ac_objext
6955 if { (ac_try="$ac_compile"
6956 case "(($ac_try" in
6957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6958 *) ac_try_echo=$ac_try;;
6959 esac
6960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6961 $as_echo "$ac_try_echo") >&5
6962 (eval "$ac_compile") 2>conftest.er1
6963 ac_status=$?
6964 grep -v '^ *+' conftest.er1 >conftest.err
6965 rm -f conftest.er1
6966 cat conftest.err >&5
6967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); } && {
6969 test -z "$ac_c_werror_flag" ||
6970 test ! -s conftest.err
6971 } && test -s conftest.$ac_objext; then
6972 eval "$as_ac_Header=yes"
6973 else
6974 $as_echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.$ac_ext >&5
6976
6977 eval "$as_ac_Header=no"
6978 fi
6979
6980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6981 fi
6982 ac_res=`eval 'as_val=${'$as_ac_Header'}
6983 $as_echo "$as_val"'`
6984 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6985 $as_echo "$ac_res" >&6; }
6986 as_val=`eval 'as_val=${'$as_ac_Header'}
6987 $as_echo "$as_val"'`
6988 if test "x$as_val" = x""yes; then
6989 cat >>confdefs.h <<_ACEOF
6990 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6991 _ACEOF
6992
6993 fi
6994
6995 done
6996
6997
6998
6999 # Set options
7000
7001
7002
7003 enable_dlopen=no
7004
7005
7006 enable_win32_dll=no
7007
7008
7009 # Check whether --enable-shared was given.
7010 if test "${enable_shared+set}" = set; then
7011 enableval=$enable_shared; p=${PACKAGE-default}
7012 case $enableval in
7013 yes) enable_shared=yes ;;
7014 no) enable_shared=no ;;
7015 *)
7016 enable_shared=no
7017 # Look at the argument we got. We use all the common list separators.
7018 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7019 for pkg in $enableval; do
7020 IFS="$lt_save_ifs"
7021 if test "X$pkg" = "X$p"; then
7022 enable_shared=yes
7023 fi
7024 done
7025 IFS="$lt_save_ifs"
7026 ;;
7027 esac
7028 else
7029 enable_shared=yes
7030 fi
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042 # Check whether --with-pic was given.
7043 if test "${with_pic+set}" = set; then
7044 withval=$with_pic; pic_mode="$withval"
7045 else
7046 pic_mode=default
7047 fi
7048
7049
7050 test -z "$pic_mode" && pic_mode=default
7051
7052
7053
7054
7055
7056
7057
7058 # Check whether --enable-fast-install was given.
7059 if test "${enable_fast_install+set}" = set; then
7060 enableval=$enable_fast_install; p=${PACKAGE-default}
7061 case $enableval in
7062 yes) enable_fast_install=yes ;;
7063 no) enable_fast_install=no ;;
7064 *)
7065 enable_fast_install=no
7066 # Look at the argument we got. We use all the common list separators.
7067 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7068 for pkg in $enableval; do
7069 IFS="$lt_save_ifs"
7070 if test "X$pkg" = "X$p"; then
7071 enable_fast_install=yes
7072 fi
7073 done
7074 IFS="$lt_save_ifs"
7075 ;;
7076 esac
7077 else
7078 enable_fast_install=yes
7079 fi
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091 # This can be used to rebuild libtool when needed
7092 LIBTOOL_DEPS="$ltmain"
7093
7094 # Always use our own libtool.
7095 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121 test -z "$LN_S" && LN_S="ln -s"
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136 if test -n "${ZSH_VERSION+set}" ; then
7137 setopt NO_GLOB_SUBST
7138 fi
7139
7140 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7141 $as_echo_n "checking for objdir... " >&6; }
7142 if test "${lt_cv_objdir+set}" = set; then
7143 $as_echo_n "(cached) " >&6
7144 else
7145 rm -f .libs 2>/dev/null
7146 mkdir .libs 2>/dev/null
7147 if test -d .libs; then
7148 lt_cv_objdir=.libs
7149 else
7150 # MS-DOS does not allow filenames that begin with a dot.
7151 lt_cv_objdir=_libs
7152 fi
7153 rmdir .libs 2>/dev/null
7154 fi
7155 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7156 $as_echo "$lt_cv_objdir" >&6; }
7157 objdir=$lt_cv_objdir
7158
7159
7160
7161
7162
7163 cat >>confdefs.h <<_ACEOF
7164 #define LT_OBJDIR "$lt_cv_objdir/"
7165 _ACEOF
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183 case $host_os in
7184 aix3*)
7185 # AIX sometimes has problems with the GCC collect2 program. For some
7186 # reason, if we set the COLLECT_NAMES environment variable, the problems
7187 # vanish in a puff of smoke.
7188 if test "X${COLLECT_NAMES+set}" != Xset; then
7189 COLLECT_NAMES=
7190 export COLLECT_NAMES
7191 fi
7192 ;;
7193 esac
7194
7195 # Sed substitution that helps us do robust quoting. It backslashifies
7196 # metacharacters that are still active within double-quoted strings.
7197 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7198
7199 # Same as above, but do not quote variable references.
7200 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7201
7202 # Sed substitution to delay expansion of an escaped shell variable in a
7203 # double_quote_subst'ed string.
7204 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7205
7206 # Sed substitution to delay expansion of an escaped single quote.
7207 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7208
7209 # Sed substitution to avoid accidental globbing in evaled expressions
7210 no_glob_subst='s/\*/\\\*/g'
7211
7212 # Global variables:
7213 ofile=libtool
7214 can_build_shared=yes
7215
7216 # All known linkers require a `.a' archive for static linking (except MSVC,
7217 # which needs '.lib').
7218 libext=a
7219
7220 with_gnu_ld="$lt_cv_prog_gnu_ld"
7221
7222 old_CC="$CC"
7223 old_CFLAGS="$CFLAGS"
7224
7225 # Set sane defaults for various variables
7226 test -z "$CC" && CC=cc
7227 test -z "$LTCC" && LTCC=$CC
7228 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7229 test -z "$LD" && LD=ld
7230 test -z "$ac_objext" && ac_objext=o
7231
7232 for cc_temp in $compiler""; do
7233 case $cc_temp in
7234 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7235 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7236 \-*) ;;
7237 *) break;;
7238 esac
7239 done
7240 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7241
7242
7243 # Only perform the check for file, if the check method requires it
7244 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7245 case $deplibs_check_method in
7246 file_magic*)
7247 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7248 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7249 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7250 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7251 $as_echo_n "(cached) " >&6
7252 else
7253 case $MAGIC_CMD in
7254 [\\/*] | ?:[\\/]*)
7255 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7256 ;;
7257 *)
7258 lt_save_MAGIC_CMD="$MAGIC_CMD"
7259 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7260 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7261 for ac_dir in $ac_dummy; do
7262 IFS="$lt_save_ifs"
7263 test -z "$ac_dir" && ac_dir=.
7264 if test -f $ac_dir/${ac_tool_prefix}file; then
7265 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7266 if test -n "$file_magic_test_file"; then
7267 case $deplibs_check_method in
7268 "file_magic "*)
7269 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7270 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7271 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7272 $EGREP "$file_magic_regex" > /dev/null; then
7273 :
7274 else
7275 cat <<_LT_EOF 1>&2
7276
7277 *** Warning: the command libtool uses to detect shared libraries,
7278 *** $file_magic_cmd, produces output that libtool cannot recognize.
7279 *** The result is that libtool may fail to recognize shared libraries
7280 *** as such. This will affect the creation of libtool libraries that
7281 *** depend on shared libraries, but programs linked with such libtool
7282 *** libraries will work regardless of this problem. Nevertheless, you
7283 *** may want to report the problem to your system manager and/or to
7284 *** bug-libtool@gnu.org
7285
7286 _LT_EOF
7287 fi ;;
7288 esac
7289 fi
7290 break
7291 fi
7292 done
7293 IFS="$lt_save_ifs"
7294 MAGIC_CMD="$lt_save_MAGIC_CMD"
7295 ;;
7296 esac
7297 fi
7298
7299 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7300 if test -n "$MAGIC_CMD"; then
7301 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7302 $as_echo "$MAGIC_CMD" >&6; }
7303 else
7304 { $as_echo "$as_me:$LINENO: result: no" >&5
7305 $as_echo "no" >&6; }
7306 fi
7307
7308
7309
7310
7311
7312 if test -z "$lt_cv_path_MAGIC_CMD"; then
7313 if test -n "$ac_tool_prefix"; then
7314 { $as_echo "$as_me:$LINENO: checking for file" >&5
7315 $as_echo_n "checking for file... " >&6; }
7316 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7317 $as_echo_n "(cached) " >&6
7318 else
7319 case $MAGIC_CMD in
7320 [\\/*] | ?:[\\/]*)
7321 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7322 ;;
7323 *)
7324 lt_save_MAGIC_CMD="$MAGIC_CMD"
7325 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7326 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7327 for ac_dir in $ac_dummy; do
7328 IFS="$lt_save_ifs"
7329 test -z "$ac_dir" && ac_dir=.
7330 if test -f $ac_dir/file; then
7331 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7332 if test -n "$file_magic_test_file"; then
7333 case $deplibs_check_method in
7334 "file_magic "*)
7335 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7336 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7337 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7338 $EGREP "$file_magic_regex" > /dev/null; then
7339 :
7340 else
7341 cat <<_LT_EOF 1>&2
7342
7343 *** Warning: the command libtool uses to detect shared libraries,
7344 *** $file_magic_cmd, produces output that libtool cannot recognize.
7345 *** The result is that libtool may fail to recognize shared libraries
7346 *** as such. This will affect the creation of libtool libraries that
7347 *** depend on shared libraries, but programs linked with such libtool
7348 *** libraries will work regardless of this problem. Nevertheless, you
7349 *** may want to report the problem to your system manager and/or to
7350 *** bug-libtool@gnu.org
7351
7352 _LT_EOF
7353 fi ;;
7354 esac
7355 fi
7356 break
7357 fi
7358 done
7359 IFS="$lt_save_ifs"
7360 MAGIC_CMD="$lt_save_MAGIC_CMD"
7361 ;;
7362 esac
7363 fi
7364
7365 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7366 if test -n "$MAGIC_CMD"; then
7367 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7368 $as_echo "$MAGIC_CMD" >&6; }
7369 else
7370 { $as_echo "$as_me:$LINENO: result: no" >&5
7371 $as_echo "no" >&6; }
7372 fi
7373
7374
7375 else
7376 MAGIC_CMD=:
7377 fi
7378 fi
7379
7380 fi
7381 ;;
7382 esac
7383
7384 # Use C for the default configuration in the libtool script
7385
7386 lt_save_CC="$CC"
7387 ac_ext=c
7388 ac_cpp='$CPP $CPPFLAGS'
7389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7392
7393
7394 # Source file extension for C test sources.
7395 ac_ext=c
7396
7397 # Object file extension for compiled C test sources.
7398 objext=o
7399 objext=$objext
7400
7401 # Code to be used in simple compile tests
7402 lt_simple_compile_test_code="int some_variable = 0;"
7403
7404 # Code to be used in simple link tests
7405 lt_simple_link_test_code='int main(){return(0);}'
7406
7407
7408
7409
7410
7411
7412
7413 # If no C compiler was specified, use CC.
7414 LTCC=${LTCC-"$CC"}
7415
7416 # If no C compiler flags were specified, use CFLAGS.
7417 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7418
7419 # Allow CC to be a program name with arguments.
7420 compiler=$CC
7421
7422 # Save the default compiler, since it gets overwritten when the other
7423 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7424 compiler_DEFAULT=$CC
7425
7426 # save warnings/boilerplate of simple test code
7427 ac_outfile=conftest.$ac_objext
7428 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7429 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7430 _lt_compiler_boilerplate=`cat conftest.err`
7431 $RM conftest*
7432
7433 ac_outfile=conftest.$ac_objext
7434 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7435 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7436 _lt_linker_boilerplate=`cat conftest.err`
7437 $RM -r conftest*
7438
7439
7440 if test -n "$compiler"; then
7441
7442 lt_prog_compiler_no_builtin_flag=
7443
7444 if test "$GCC" = yes; then
7445 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7446
7447 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7448 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7449 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7450 $as_echo_n "(cached) " >&6
7451 else
7452 lt_cv_prog_compiler_rtti_exceptions=no
7453 ac_outfile=conftest.$ac_objext
7454 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7455 lt_compiler_flag="-fno-rtti -fno-exceptions"
7456 # Insert the option either (1) after the last *FLAGS variable, or
7457 # (2) before a word containing "conftest.", or (3) at the end.
7458 # Note that $ac_compile itself does not contain backslashes and begins
7459 # with a dollar sign (not a hyphen), so the echo should work correctly.
7460 # The option is referenced via a variable to avoid confusing sed.
7461 lt_compile=`echo "$ac_compile" | $SED \
7462 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7463 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7464 -e 's:$: $lt_compiler_flag:'`
7465 (eval echo "\"\$as_me:7465: $lt_compile\"" >&5)
7466 (eval "$lt_compile" 2>conftest.err)
7467 ac_status=$?
7468 cat conftest.err >&5
7469 echo "$as_me:7469: \$? = $ac_status" >&5
7470 if (exit $ac_status) && test -s "$ac_outfile"; then
7471 # The compiler can only warn and ignore the option if not recognized
7472 # So say no if there are warnings other than the usual output.
7473 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7474 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7475 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7476 lt_cv_prog_compiler_rtti_exceptions=yes
7477 fi
7478 fi
7479 $RM conftest*
7480
7481 fi
7482 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7483 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7484
7485 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7486 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7487 else
7488 :
7489 fi
7490
7491 fi
7492
7493
7494
7495
7496
7497
7498 lt_prog_compiler_wl=
7499 lt_prog_compiler_pic=
7500 lt_prog_compiler_static=
7501
7502 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7503 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7504
7505 if test "$GCC" = yes; then
7506 lt_prog_compiler_wl='-Wl,'
7507 lt_prog_compiler_static='-static'
7508
7509 case $host_os in
7510 aix*)
7511 # All AIX code is PIC.
7512 if test "$host_cpu" = ia64; then
7513 # AIX 5 now supports IA64 processor
7514 lt_prog_compiler_static='-Bstatic'
7515 fi
7516 ;;
7517
7518 amigaos*)
7519 case $host_cpu in
7520 powerpc)
7521 # see comment about AmigaOS4 .so support
7522 lt_prog_compiler_pic='-fPIC'
7523 ;;
7524 m68k)
7525 # FIXME: we need at least 68020 code to build shared libraries, but
7526 # adding the `-m68020' flag to GCC prevents building anything better,
7527 # like `-m68040'.
7528 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7529 ;;
7530 esac
7531 ;;
7532
7533 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7534 # PIC is the default for these OSes.
7535 ;;
7536
7537 mingw* | cygwin* | pw32* | os2* | cegcc*)
7538 # This hack is so that the source file can tell whether it is being
7539 # built for inclusion in a dll (and should export symbols for example).
7540 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7541 # (--disable-auto-import) libraries
7542 lt_prog_compiler_pic='-DDLL_EXPORT'
7543 ;;
7544
7545 darwin* | rhapsody*)
7546 # PIC is the default on this platform
7547 # Common symbols not allowed in MH_DYLIB files
7548 lt_prog_compiler_pic='-fno-common'
7549 ;;
7550
7551 hpux*)
7552 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7553 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7554 # sets the default TLS model and affects inlining.
7555 case $host_cpu in
7556 hppa*64*)
7557 # +Z the default
7558 ;;
7559 *)
7560 lt_prog_compiler_pic='-fPIC'
7561 ;;
7562 esac
7563 ;;
7564
7565 interix[3-9]*)
7566 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7567 # Instead, we relocate shared libraries at runtime.
7568 ;;
7569
7570 msdosdjgpp*)
7571 # Just because we use GCC doesn't mean we suddenly get shared libraries
7572 # on systems that don't support them.
7573 lt_prog_compiler_can_build_shared=no
7574 enable_shared=no
7575 ;;
7576
7577 *nto* | *qnx*)
7578 # QNX uses GNU C++, but need to define -shared option too, otherwise
7579 # it will coredump.
7580 lt_prog_compiler_pic='-fPIC -shared'
7581 ;;
7582
7583 sysv4*MP*)
7584 if test -d /usr/nec; then
7585 lt_prog_compiler_pic=-Kconform_pic
7586 fi
7587 ;;
7588
7589 *)
7590 lt_prog_compiler_pic='-fPIC'
7591 ;;
7592 esac
7593 else
7594 # PORTME Check for flag to pass linker flags through the system compiler.
7595 case $host_os in
7596 aix*)
7597 lt_prog_compiler_wl='-Wl,'
7598 if test "$host_cpu" = ia64; then
7599 # AIX 5 now supports IA64 processor
7600 lt_prog_compiler_static='-Bstatic'
7601 else
7602 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7603 fi
7604 ;;
7605
7606 mingw* | cygwin* | pw32* | os2* | cegcc*)
7607 # This hack is so that the source file can tell whether it is being
7608 # built for inclusion in a dll (and should export symbols for example).
7609 lt_prog_compiler_pic='-DDLL_EXPORT'
7610 ;;
7611
7612 hpux9* | hpux10* | hpux11*)
7613 lt_prog_compiler_wl='-Wl,'
7614 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7615 # not for PA HP-UX.
7616 case $host_cpu in
7617 hppa*64*|ia64*)
7618 # +Z the default
7619 ;;
7620 *)
7621 lt_prog_compiler_pic='+Z'
7622 ;;
7623 esac
7624 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7625 lt_prog_compiler_static='${wl}-a ${wl}archive'
7626 ;;
7627
7628 irix5* | irix6* | nonstopux*)
7629 lt_prog_compiler_wl='-Wl,'
7630 # PIC (with -KPIC) is the default.
7631 lt_prog_compiler_static='-non_shared'
7632 ;;
7633
7634 linux* | k*bsd*-gnu)
7635 case $cc_basename in
7636 # old Intel for x86_64 which still supported -KPIC.
7637 ecc*)
7638 lt_prog_compiler_wl='-Wl,'
7639 lt_prog_compiler_pic='-KPIC'
7640 lt_prog_compiler_static='-static'
7641 ;;
7642 # icc used to be incompatible with GCC.
7643 # ICC 10 doesn't accept -KPIC any more.
7644 icc* | ifort*)
7645 lt_prog_compiler_wl='-Wl,'
7646 lt_prog_compiler_pic='-fPIC'
7647 lt_prog_compiler_static='-static'
7648 ;;
7649 # Lahey Fortran 8.1.
7650 lf95*)
7651 lt_prog_compiler_wl='-Wl,'
7652 lt_prog_compiler_pic='--shared'
7653 lt_prog_compiler_static='--static'
7654 ;;
7655 pgcc* | pgf77* | pgf90* | pgf95*)
7656 # Portland Group compilers (*not* the Pentium gcc compiler,
7657 # which looks to be a dead project)
7658 lt_prog_compiler_wl='-Wl,'
7659 lt_prog_compiler_pic='-fpic'
7660 lt_prog_compiler_static='-Bstatic'
7661 ;;
7662 ccc*)
7663 lt_prog_compiler_wl='-Wl,'
7664 # All Alpha code is PIC.
7665 lt_prog_compiler_static='-non_shared'
7666 ;;
7667 xl*)
7668 # IBM XL C 8.0/Fortran 10.1 on PPC
7669 lt_prog_compiler_wl='-Wl,'
7670 lt_prog_compiler_pic='-qpic'
7671 lt_prog_compiler_static='-qstaticlink'
7672 ;;
7673 *)
7674 case `$CC -V 2>&1 | sed 5q` in
7675 *Sun\ C*)
7676 # Sun C 5.9
7677 lt_prog_compiler_pic='-KPIC'
7678 lt_prog_compiler_static='-Bstatic'
7679 lt_prog_compiler_wl='-Wl,'
7680 ;;
7681 *Sun\ F*)
7682 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7683 lt_prog_compiler_pic='-KPIC'
7684 lt_prog_compiler_static='-Bstatic'
7685 lt_prog_compiler_wl=''
7686 ;;
7687 esac
7688 ;;
7689 esac
7690 ;;
7691
7692 newsos6)
7693 lt_prog_compiler_pic='-KPIC'
7694 lt_prog_compiler_static='-Bstatic'
7695 ;;
7696
7697 *nto* | *qnx*)
7698 # QNX uses GNU C++, but need to define -shared option too, otherwise
7699 # it will coredump.
7700 lt_prog_compiler_pic='-fPIC -shared'
7701 ;;
7702
7703 osf3* | osf4* | osf5*)
7704 lt_prog_compiler_wl='-Wl,'
7705 # All OSF/1 code is PIC.
7706 lt_prog_compiler_static='-non_shared'
7707 ;;
7708
7709 rdos*)
7710 lt_prog_compiler_static='-non_shared'
7711 ;;
7712
7713 solaris*)
7714 lt_prog_compiler_pic='-KPIC'
7715 lt_prog_compiler_static='-Bstatic'
7716 case $cc_basename in
7717 f77* | f90* | f95*)
7718 lt_prog_compiler_wl='-Qoption ld ';;
7719 *)
7720 lt_prog_compiler_wl='-Wl,';;
7721 esac
7722 ;;
7723
7724 sunos4*)
7725 lt_prog_compiler_wl='-Qoption ld '
7726 lt_prog_compiler_pic='-PIC'
7727 lt_prog_compiler_static='-Bstatic'
7728 ;;
7729
7730 sysv4 | sysv4.2uw2* | sysv4.3*)
7731 lt_prog_compiler_wl='-Wl,'
7732 lt_prog_compiler_pic='-KPIC'
7733 lt_prog_compiler_static='-Bstatic'
7734 ;;
7735
7736 sysv4*MP*)
7737 if test -d /usr/nec ;then
7738 lt_prog_compiler_pic='-Kconform_pic'
7739 lt_prog_compiler_static='-Bstatic'
7740 fi
7741 ;;
7742
7743 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7744 lt_prog_compiler_wl='-Wl,'
7745 lt_prog_compiler_pic='-KPIC'
7746 lt_prog_compiler_static='-Bstatic'
7747 ;;
7748
7749 unicos*)
7750 lt_prog_compiler_wl='-Wl,'
7751 lt_prog_compiler_can_build_shared=no
7752 ;;
7753
7754 uts4*)
7755 lt_prog_compiler_pic='-pic'
7756 lt_prog_compiler_static='-Bstatic'
7757 ;;
7758
7759 *)
7760 lt_prog_compiler_can_build_shared=no
7761 ;;
7762 esac
7763 fi
7764
7765 case $host_os in
7766 # For platforms which do not support PIC, -DPIC is meaningless:
7767 *djgpp*)
7768 lt_prog_compiler_pic=
7769 ;;
7770 *)
7771 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7772 ;;
7773 esac
7774 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7775 $as_echo "$lt_prog_compiler_pic" >&6; }
7776
7777
7778
7779
7780
7781
7782 #
7783 # Check to make sure the PIC flag actually works.
7784 #
7785 if test -n "$lt_prog_compiler_pic"; then
7786 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7787 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7788 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7789 $as_echo_n "(cached) " >&6
7790 else
7791 lt_cv_prog_compiler_pic_works=no
7792 ac_outfile=conftest.$ac_objext
7793 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7794 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7795 # Insert the option either (1) after the last *FLAGS variable, or
7796 # (2) before a word containing "conftest.", or (3) at the end.
7797 # Note that $ac_compile itself does not contain backslashes and begins
7798 # with a dollar sign (not a hyphen), so the echo should work correctly.
7799 # The option is referenced via a variable to avoid confusing sed.
7800 lt_compile=`echo "$ac_compile" | $SED \
7801 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7803 -e 's:$: $lt_compiler_flag:'`
7804 (eval echo "\"\$as_me:7804: $lt_compile\"" >&5)
7805 (eval "$lt_compile" 2>conftest.err)
7806 ac_status=$?
7807 cat conftest.err >&5
7808 echo "$as_me:7808: \$? = $ac_status" >&5
7809 if (exit $ac_status) && test -s "$ac_outfile"; then
7810 # The compiler can only warn and ignore the option if not recognized
7811 # So say no if there are warnings other than the usual output.
7812 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7813 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7814 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7815 lt_cv_prog_compiler_pic_works=yes
7816 fi
7817 fi
7818 $RM conftest*
7819
7820 fi
7821 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7822 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7823
7824 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7825 case $lt_prog_compiler_pic in
7826 "" | " "*) ;;
7827 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7828 esac
7829 else
7830 lt_prog_compiler_pic=
7831 lt_prog_compiler_can_build_shared=no
7832 fi
7833
7834 fi
7835
7836
7837
7838
7839
7840
7841 #
7842 # Check to make sure the static flag actually works.
7843 #
7844 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7845 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7846 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7847 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7848 $as_echo_n "(cached) " >&6
7849 else
7850 lt_cv_prog_compiler_static_works=no
7851 save_LDFLAGS="$LDFLAGS"
7852 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7853 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7854 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7855 # The linker can only warn and ignore the option if not recognized
7856 # So say no if there are warnings
7857 if test -s conftest.err; then
7858 # Append any errors to the config.log.
7859 cat conftest.err 1>&5
7860 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7861 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7862 if diff conftest.exp conftest.er2 >/dev/null; then
7863 lt_cv_prog_compiler_static_works=yes
7864 fi
7865 else
7866 lt_cv_prog_compiler_static_works=yes
7867 fi
7868 fi
7869 $RM -r conftest*
7870 LDFLAGS="$save_LDFLAGS"
7871
7872 fi
7873 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7874 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7875
7876 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7877 :
7878 else
7879 lt_prog_compiler_static=
7880 fi
7881
7882
7883
7884
7885
7886
7887
7888 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7889 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7890 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7891 $as_echo_n "(cached) " >&6
7892 else
7893 lt_cv_prog_compiler_c_o=no
7894 $RM -r conftest 2>/dev/null
7895 mkdir conftest
7896 cd conftest
7897 mkdir out
7898 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7899
7900 lt_compiler_flag="-o out/conftest2.$ac_objext"
7901 # Insert the option either (1) after the last *FLAGS variable, or
7902 # (2) before a word containing "conftest.", or (3) at the end.
7903 # Note that $ac_compile itself does not contain backslashes and begins
7904 # with a dollar sign (not a hyphen), so the echo should work correctly.
7905 lt_compile=`echo "$ac_compile" | $SED \
7906 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7907 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7908 -e 's:$: $lt_compiler_flag:'`
7909 (eval echo "\"\$as_me:7909: $lt_compile\"" >&5)
7910 (eval "$lt_compile" 2>out/conftest.err)
7911 ac_status=$?
7912 cat out/conftest.err >&5
7913 echo "$as_me:7913: \$? = $ac_status" >&5
7914 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7915 then
7916 # The compiler can only warn and ignore the option if not recognized
7917 # So say no if there are warnings
7918 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7919 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7920 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7921 lt_cv_prog_compiler_c_o=yes
7922 fi
7923 fi
7924 chmod u+w . 2>&5
7925 $RM conftest*
7926 # SGI C++ compiler will create directory out/ii_files/ for
7927 # template instantiation
7928 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7929 $RM out/* && rmdir out
7930 cd ..
7931 $RM -r conftest
7932 $RM conftest*
7933
7934 fi
7935 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7936 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7937
7938
7939
7940
7941
7942
7943 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7944 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7945 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7946 $as_echo_n "(cached) " >&6
7947 else
7948 lt_cv_prog_compiler_c_o=no
7949 $RM -r conftest 2>/dev/null
7950 mkdir conftest
7951 cd conftest
7952 mkdir out
7953 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7954
7955 lt_compiler_flag="-o out/conftest2.$ac_objext"
7956 # Insert the option either (1) after the last *FLAGS variable, or
7957 # (2) before a word containing "conftest.", or (3) at the end.
7958 # Note that $ac_compile itself does not contain backslashes and begins
7959 # with a dollar sign (not a hyphen), so the echo should work correctly.
7960 lt_compile=`echo "$ac_compile" | $SED \
7961 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7962 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7963 -e 's:$: $lt_compiler_flag:'`
7964 (eval echo "\"\$as_me:7964: $lt_compile\"" >&5)
7965 (eval "$lt_compile" 2>out/conftest.err)
7966 ac_status=$?
7967 cat out/conftest.err >&5
7968 echo "$as_me:7968: \$? = $ac_status" >&5
7969 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7970 then
7971 # The compiler can only warn and ignore the option if not recognized
7972 # So say no if there are warnings
7973 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7974 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7975 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7976 lt_cv_prog_compiler_c_o=yes
7977 fi
7978 fi
7979 chmod u+w . 2>&5
7980 $RM conftest*
7981 # SGI C++ compiler will create directory out/ii_files/ for
7982 # template instantiation
7983 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7984 $RM out/* && rmdir out
7985 cd ..
7986 $RM -r conftest
7987 $RM conftest*
7988
7989 fi
7990 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7991 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7992
7993
7994
7995
7996 hard_links="nottested"
7997 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7998 # do not overwrite the value of need_locks provided by the user
7999 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8000 $as_echo_n "checking if we can lock with hard links... " >&6; }
8001 hard_links=yes
8002 $RM conftest*
8003 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8004 touch conftest.a
8005 ln conftest.a conftest.b 2>&5 || hard_links=no
8006 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8007 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8008 $as_echo "$hard_links" >&6; }
8009 if test "$hard_links" = no; then
8010 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8011 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8012 need_locks=warn
8013 fi
8014 else
8015 need_locks=no
8016 fi
8017
8018
8019
8020
8021
8022
8023 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8024 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8025
8026 runpath_var=
8027 allow_undefined_flag=
8028 always_export_symbols=no
8029 archive_cmds=
8030 archive_expsym_cmds=
8031 compiler_needs_object=no
8032 enable_shared_with_static_runtimes=no
8033 export_dynamic_flag_spec=
8034 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8035 hardcode_automatic=no
8036 hardcode_direct=no
8037 hardcode_direct_absolute=no
8038 hardcode_libdir_flag_spec=
8039 hardcode_libdir_flag_spec_ld=
8040 hardcode_libdir_separator=
8041 hardcode_minus_L=no
8042 hardcode_shlibpath_var=unsupported
8043 inherit_rpath=no
8044 link_all_deplibs=unknown
8045 module_cmds=
8046 module_expsym_cmds=
8047 old_archive_from_new_cmds=
8048 old_archive_from_expsyms_cmds=
8049 thread_safe_flag_spec=
8050 whole_archive_flag_spec=
8051 # include_expsyms should be a list of space-separated symbols to be *always*
8052 # included in the symbol list
8053 include_expsyms=
8054 # exclude_expsyms can be an extended regexp of symbols to exclude
8055 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8056 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8057 # as well as any symbol that contains `d'.
8058 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8059 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8060 # platforms (ab)use it in PIC code, but their linkers get confused if
8061 # the symbol is explicitly referenced. Since portable code cannot
8062 # rely on this symbol name, it's probably fine to never include it in
8063 # preloaded symbol tables.
8064 # Exclude shared library initialization/finalization symbols.
8065 extract_expsyms_cmds=
8066
8067 case $host_os in
8068 cygwin* | mingw* | pw32* | cegcc*)
8069 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8070 # When not using gcc, we currently assume that we are using
8071 # Microsoft Visual C++.
8072 if test "$GCC" != yes; then
8073 with_gnu_ld=no
8074 fi
8075 ;;
8076 interix*)
8077 # we just hope/assume this is gcc and not c89 (= MSVC++)
8078 with_gnu_ld=yes
8079 ;;
8080 openbsd*)
8081 with_gnu_ld=no
8082 ;;
8083 esac
8084
8085 ld_shlibs=yes
8086 if test "$with_gnu_ld" = yes; then
8087 # If archive_cmds runs LD, not CC, wlarc should be empty
8088 wlarc='${wl}'
8089
8090 # Set some defaults for GNU ld with shared library support. These
8091 # are reset later if shared libraries are not supported. Putting them
8092 # here allows them to be overridden if necessary.
8093 runpath_var=LD_RUN_PATH
8094 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8095 export_dynamic_flag_spec='${wl}--export-dynamic'
8096 # ancient GNU ld didn't support --whole-archive et. al.
8097 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8098 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8099 else
8100 whole_archive_flag_spec=
8101 fi
8102 supports_anon_versioning=no
8103 case `$LD -v 2>&1` in
8104 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8105 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8106 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8107 *\ 2.11.*) ;; # other 2.11 versions
8108 *) supports_anon_versioning=yes ;;
8109 esac
8110
8111 # See if GNU ld supports shared libraries.
8112 case $host_os in
8113 aix[3-9]*)
8114 # On AIX/PPC, the GNU linker is very broken
8115 if test "$host_cpu" != ia64; then
8116 ld_shlibs=no
8117 cat <<_LT_EOF 1>&2
8118
8119 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8120 *** to be unable to reliably create shared libraries on AIX.
8121 *** Therefore, libtool is disabling shared libraries support. If you
8122 *** really care for shared libraries, you may want to modify your PATH
8123 *** so that a non-GNU linker is found, and then restart.
8124
8125 _LT_EOF
8126 fi
8127 ;;
8128
8129 amigaos*)
8130 case $host_cpu in
8131 powerpc)
8132 # see comment about AmigaOS4 .so support
8133 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8134 archive_expsym_cmds=''
8135 ;;
8136 m68k)
8137 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)'
8138 hardcode_libdir_flag_spec='-L$libdir'
8139 hardcode_minus_L=yes
8140 ;;
8141 esac
8142 ;;
8143
8144 beos*)
8145 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8146 allow_undefined_flag=unsupported
8147 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8148 # support --undefined. This deserves some investigation. FIXME
8149 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8150 else
8151 ld_shlibs=no
8152 fi
8153 ;;
8154
8155 cygwin* | mingw* | pw32* | cegcc*)
8156 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8157 # as there is no search path for DLLs.
8158 hardcode_libdir_flag_spec='-L$libdir'
8159 allow_undefined_flag=unsupported
8160 always_export_symbols=no
8161 enable_shared_with_static_runtimes=yes
8162 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8163
8164 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8165 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8166 # If the export-symbols file already is a .def file (1st line
8167 # is EXPORTS), use it as is; otherwise, prepend...
8168 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8169 cp $export_symbols $output_objdir/$soname.def;
8170 else
8171 echo EXPORTS > $output_objdir/$soname.def;
8172 cat $export_symbols >> $output_objdir/$soname.def;
8173 fi~
8174 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8175 else
8176 ld_shlibs=no
8177 fi
8178 ;;
8179
8180 interix[3-9]*)
8181 hardcode_direct=no
8182 hardcode_shlibpath_var=no
8183 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8184 export_dynamic_flag_spec='${wl}-E'
8185 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8186 # Instead, shared libraries are loaded at an image base (0x10000000 by
8187 # default) and relocated if they conflict, which is a slow very memory
8188 # consuming and fragmenting process. To avoid this, we pick a random,
8189 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8190 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8191 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8192 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'
8193 ;;
8194
8195 gnu* | linux* | tpf* | k*bsd*-gnu)
8196 tmp_diet=no
8197 if test "$host_os" = linux-dietlibc; then
8198 case $cc_basename in
8199 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8200 esac
8201 fi
8202 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8203 && test "$tmp_diet" = no
8204 then
8205 tmp_addflag=
8206 tmp_sharedflag='-shared'
8207 case $cc_basename,$host_cpu in
8208 pgcc*) # Portland Group C compiler
8209 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'
8210 tmp_addflag=' $pic_flag'
8211 ;;
8212 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8213 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'
8214 tmp_addflag=' $pic_flag -Mnomain' ;;
8215 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8216 tmp_addflag=' -i_dynamic' ;;
8217 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8218 tmp_addflag=' -i_dynamic -nofor_main' ;;
8219 ifc* | ifort*) # Intel Fortran compiler
8220 tmp_addflag=' -nofor_main' ;;
8221 lf95*) # Lahey Fortran 8.1
8222 whole_archive_flag_spec=
8223 tmp_sharedflag='--shared' ;;
8224 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8225 tmp_sharedflag='-qmkshrobj'
8226 tmp_addflag= ;;
8227 esac
8228 case `$CC -V 2>&1 | sed 5q` in
8229 *Sun\ C*) # Sun C 5.9
8230 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'
8231 compiler_needs_object=yes
8232 tmp_sharedflag='-G' ;;
8233 *Sun\ F*) # Sun Fortran 8.3
8234 tmp_sharedflag='-G' ;;
8235 esac
8236 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8237
8238 if test "x$supports_anon_versioning" = xyes; then
8239 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8240 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8241 echo "local: *; };" >> $output_objdir/$libname.ver~
8242 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8243 fi
8244
8245 case $cc_basename in
8246 xlf*)
8247 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8248 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8249 hardcode_libdir_flag_spec=
8250 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8251 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8252 if test "x$supports_anon_versioning" = xyes; then
8253 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8254 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8255 echo "local: *; };" >> $output_objdir/$libname.ver~
8256 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8257 fi
8258 ;;
8259 esac
8260 else
8261 ld_shlibs=no
8262 fi
8263 ;;
8264
8265 netbsd*)
8266 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8267 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8268 wlarc=
8269 else
8270 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8271 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8272 fi
8273 ;;
8274
8275 solaris*)
8276 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8277 ld_shlibs=no
8278 cat <<_LT_EOF 1>&2
8279
8280 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8281 *** create shared libraries on Solaris systems. Therefore, libtool
8282 *** is disabling shared libraries support. We urge you to upgrade GNU
8283 *** binutils to release 2.9.1 or newer. Another option is to modify
8284 *** your PATH or compiler configuration so that the native linker is
8285 *** used, and then restart.
8286
8287 _LT_EOF
8288 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8289 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8290 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8291 else
8292 ld_shlibs=no
8293 fi
8294 ;;
8295
8296 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8297 case `$LD -v 2>&1` in
8298 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8299 ld_shlibs=no
8300 cat <<_LT_EOF 1>&2
8301
8302 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8303 *** reliably create shared libraries on SCO systems. Therefore, libtool
8304 *** is disabling shared libraries support. We urge you to upgrade GNU
8305 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8306 *** your PATH or compiler configuration so that the native linker is
8307 *** used, and then restart.
8308
8309 _LT_EOF
8310 ;;
8311 *)
8312 # For security reasons, it is highly recommended that you always
8313 # use absolute paths for naming shared libraries, and exclude the
8314 # DT_RUNPATH tag from executables and libraries. But doing so
8315 # requires that you compile everything twice, which is a pain.
8316 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8317 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8318 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8319 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8320 else
8321 ld_shlibs=no
8322 fi
8323 ;;
8324 esac
8325 ;;
8326
8327 sunos4*)
8328 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8329 wlarc=
8330 hardcode_direct=yes
8331 hardcode_shlibpath_var=no
8332 ;;
8333
8334 *)
8335 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8336 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8337 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8338 else
8339 ld_shlibs=no
8340 fi
8341 ;;
8342 esac
8343
8344 if test "$ld_shlibs" = no; then
8345 runpath_var=
8346 hardcode_libdir_flag_spec=
8347 export_dynamic_flag_spec=
8348 whole_archive_flag_spec=
8349 fi
8350 else
8351 # PORTME fill in a description of your system's linker (not GNU ld)
8352 case $host_os in
8353 aix3*)
8354 allow_undefined_flag=unsupported
8355 always_export_symbols=yes
8356 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'
8357 # Note: this linker hardcodes the directories in LIBPATH if there
8358 # are no directories specified by -L.
8359 hardcode_minus_L=yes
8360 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8361 # Neither direct hardcoding nor static linking is supported with a
8362 # broken collect2.
8363 hardcode_direct=unsupported
8364 fi
8365 ;;
8366
8367 aix[4-9]*)
8368 if test "$host_cpu" = ia64; then
8369 # On IA64, the linker does run time linking by default, so we don't
8370 # have to do anything special.
8371 aix_use_runtimelinking=no
8372 exp_sym_flag='-Bexport'
8373 no_entry_flag=""
8374 else
8375 # If we're using GNU nm, then we don't want the "-C" option.
8376 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8377 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8378 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'
8379 else
8380 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'
8381 fi
8382 aix_use_runtimelinking=no
8383
8384 # Test if we are trying to use run time linking or normal
8385 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8386 # need to do runtime linking.
8387 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8388 for ld_flag in $LDFLAGS; do
8389 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8390 aix_use_runtimelinking=yes
8391 break
8392 fi
8393 done
8394 ;;
8395 esac
8396
8397 exp_sym_flag='-bexport'
8398 no_entry_flag='-bnoentry'
8399 fi
8400
8401 # When large executables or shared objects are built, AIX ld can
8402 # have problems creating the table of contents. If linking a library
8403 # or program results in "error TOC overflow" add -mminimal-toc to
8404 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8405 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8406
8407 archive_cmds=''
8408 hardcode_direct=yes
8409 hardcode_direct_absolute=yes
8410 hardcode_libdir_separator=':'
8411 link_all_deplibs=yes
8412 file_list_spec='${wl}-f,'
8413
8414 if test "$GCC" = yes; then
8415 case $host_os in aix4.[012]|aix4.[012].*)
8416 # We only want to do this on AIX 4.2 and lower, the check
8417 # below for broken collect2 doesn't work under 4.3+
8418 collect2name=`${CC} -print-prog-name=collect2`
8419 if test -f "$collect2name" &&
8420 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8421 then
8422 # We have reworked collect2
8423 :
8424 else
8425 # We have old collect2
8426 hardcode_direct=unsupported
8427 # It fails to find uninstalled libraries when the uninstalled
8428 # path is not listed in the libpath. Setting hardcode_minus_L
8429 # to unsupported forces relinking
8430 hardcode_minus_L=yes
8431 hardcode_libdir_flag_spec='-L$libdir'
8432 hardcode_libdir_separator=
8433 fi
8434 ;;
8435 esac
8436 shared_flag='-shared'
8437 if test "$aix_use_runtimelinking" = yes; then
8438 shared_flag="$shared_flag "'${wl}-G'
8439 fi
8440 else
8441 # not using gcc
8442 if test "$host_cpu" = ia64; then
8443 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8444 # chokes on -Wl,-G. The following line is correct:
8445 shared_flag='-G'
8446 else
8447 if test "$aix_use_runtimelinking" = yes; then
8448 shared_flag='${wl}-G'
8449 else
8450 shared_flag='${wl}-bM:SRE'
8451 fi
8452 fi
8453 fi
8454
8455 export_dynamic_flag_spec='${wl}-bexpall'
8456 # It seems that -bexpall does not export symbols beginning with
8457 # underscore (_), so it is better to generate a list of symbols to export.
8458 always_export_symbols=yes
8459 if test "$aix_use_runtimelinking" = yes; then
8460 # Warning - without using the other runtime loading flags (-brtl),
8461 # -berok will link without error, but may produce a broken library.
8462 allow_undefined_flag='-berok'
8463 # Determine the default libpath from the value encoded in an
8464 # empty executable.
8465 cat >conftest.$ac_ext <<_ACEOF
8466 /* confdefs.h. */
8467 _ACEOF
8468 cat confdefs.h >>conftest.$ac_ext
8469 cat >>conftest.$ac_ext <<_ACEOF
8470 /* end confdefs.h. */
8471
8472 int
8473 main ()
8474 {
8475
8476 ;
8477 return 0;
8478 }
8479 _ACEOF
8480 rm -f conftest.$ac_objext conftest$ac_exeext
8481 if { (ac_try="$ac_link"
8482 case "(($ac_try" in
8483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8484 *) ac_try_echo=$ac_try;;
8485 esac
8486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8487 $as_echo "$ac_try_echo") >&5
8488 (eval "$ac_link") 2>conftest.er1
8489 ac_status=$?
8490 grep -v '^ *+' conftest.er1 >conftest.err
8491 rm -f conftest.er1
8492 cat conftest.err >&5
8493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); } && {
8495 test -z "$ac_c_werror_flag" ||
8496 test ! -s conftest.err
8497 } && test -s conftest$ac_exeext && {
8498 test "$cross_compiling" = yes ||
8499 $as_test_x conftest$ac_exeext
8500 }; then
8501
8502 lt_aix_libpath_sed='
8503 /Import File Strings/,/^$/ {
8504 /^0/ {
8505 s/^0 *\(.*\)$/\1/
8506 p
8507 }
8508 }'
8509 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8510 # Check for a 64-bit object if we didn't find anything.
8511 if test -z "$aix_libpath"; then
8512 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8513 fi
8514 else
8515 $as_echo "$as_me: failed program was:" >&5
8516 sed 's/^/| /' conftest.$ac_ext >&5
8517
8518
8519 fi
8520
8521 rm -rf conftest.dSYM
8522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8523 conftest$ac_exeext conftest.$ac_ext
8524 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8525
8526 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8527 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"
8528 else
8529 if test "$host_cpu" = ia64; then
8530 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8531 allow_undefined_flag="-z nodefs"
8532 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"
8533 else
8534 # Determine the default libpath from the value encoded in an
8535 # empty executable.
8536 cat >conftest.$ac_ext <<_ACEOF
8537 /* confdefs.h. */
8538 _ACEOF
8539 cat confdefs.h >>conftest.$ac_ext
8540 cat >>conftest.$ac_ext <<_ACEOF
8541 /* end confdefs.h. */
8542
8543 int
8544 main ()
8545 {
8546
8547 ;
8548 return 0;
8549 }
8550 _ACEOF
8551 rm -f conftest.$ac_objext conftest$ac_exeext
8552 if { (ac_try="$ac_link"
8553 case "(($ac_try" in
8554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8555 *) ac_try_echo=$ac_try;;
8556 esac
8557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8558 $as_echo "$ac_try_echo") >&5
8559 (eval "$ac_link") 2>conftest.er1
8560 ac_status=$?
8561 grep -v '^ *+' conftest.er1 >conftest.err
8562 rm -f conftest.er1
8563 cat conftest.err >&5
8564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); } && {
8566 test -z "$ac_c_werror_flag" ||
8567 test ! -s conftest.err
8568 } && test -s conftest$ac_exeext && {
8569 test "$cross_compiling" = yes ||
8570 $as_test_x conftest$ac_exeext
8571 }; then
8572
8573 lt_aix_libpath_sed='
8574 /Import File Strings/,/^$/ {
8575 /^0/ {
8576 s/^0 *\(.*\)$/\1/
8577 p
8578 }
8579 }'
8580 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8581 # Check for a 64-bit object if we didn't find anything.
8582 if test -z "$aix_libpath"; then
8583 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8584 fi
8585 else
8586 $as_echo "$as_me: failed program was:" >&5
8587 sed 's/^/| /' conftest.$ac_ext >&5
8588
8589
8590 fi
8591
8592 rm -rf conftest.dSYM
8593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8594 conftest$ac_exeext conftest.$ac_ext
8595 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8596
8597 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8598 # Warning - without using the other run time loading flags,
8599 # -berok will link without error, but may produce a broken library.
8600 no_undefined_flag=' ${wl}-bernotok'
8601 allow_undefined_flag=' ${wl}-berok'
8602 # Exported symbols can be pulled into shared objects from archives
8603 whole_archive_flag_spec='$convenience'
8604 archive_cmds_need_lc=yes
8605 # This is similar to how AIX traditionally builds its shared libraries.
8606 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'
8607 fi
8608 fi
8609 ;;
8610
8611 amigaos*)
8612 case $host_cpu in
8613 powerpc)
8614 # see comment about AmigaOS4 .so support
8615 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8616 archive_expsym_cmds=''
8617 ;;
8618 m68k)
8619 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)'
8620 hardcode_libdir_flag_spec='-L$libdir'
8621 hardcode_minus_L=yes
8622 ;;
8623 esac
8624 ;;
8625
8626 bsdi[45]*)
8627 export_dynamic_flag_spec=-rdynamic
8628 ;;
8629
8630 cygwin* | mingw* | pw32* | cegcc*)
8631 # When not using gcc, we currently assume that we are using
8632 # Microsoft Visual C++.
8633 # hardcode_libdir_flag_spec is actually meaningless, as there is
8634 # no search path for DLLs.
8635 hardcode_libdir_flag_spec=' '
8636 allow_undefined_flag=unsupported
8637 # Tell ltmain to make .lib files, not .a files.
8638 libext=lib
8639 # Tell ltmain to make .dll files, not .so files.
8640 shrext_cmds=".dll"
8641 # FIXME: Setting linknames here is a bad hack.
8642 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8643 # The linker will automatically build a .lib file if we build a DLL.
8644 old_archive_from_new_cmds='true'
8645 # FIXME: Should let the user specify the lib program.
8646 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8647 fix_srcfile_path='`cygpath -w "$srcfile"`'
8648 enable_shared_with_static_runtimes=yes
8649 ;;
8650
8651 darwin* | rhapsody*)
8652
8653
8654 archive_cmds_need_lc=no
8655 hardcode_direct=no
8656 hardcode_automatic=yes
8657 hardcode_shlibpath_var=unsupported
8658 whole_archive_flag_spec=''
8659 link_all_deplibs=yes
8660 allow_undefined_flag="$_lt_dar_allow_undefined"
8661 case $cc_basename in
8662 ifort*) _lt_dar_can_shared=yes ;;
8663 *) _lt_dar_can_shared=$GCC ;;
8664 esac
8665 if test "$_lt_dar_can_shared" = "yes"; then
8666 output_verbose_link_cmd=echo
8667 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8668 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8669 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}"
8670 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}"
8671
8672 else
8673 ld_shlibs=no
8674 fi
8675
8676 ;;
8677
8678 dgux*)
8679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8680 hardcode_libdir_flag_spec='-L$libdir'
8681 hardcode_shlibpath_var=no
8682 ;;
8683
8684 freebsd1*)
8685 ld_shlibs=no
8686 ;;
8687
8688 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8689 # support. Future versions do this automatically, but an explicit c++rt0.o
8690 # does not break anything, and helps significantly (at the cost of a little
8691 # extra space).
8692 freebsd2.2*)
8693 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8694 hardcode_libdir_flag_spec='-R$libdir'
8695 hardcode_direct=yes
8696 hardcode_shlibpath_var=no
8697 ;;
8698
8699 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8700 freebsd2*)
8701 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8702 hardcode_direct=yes
8703 hardcode_minus_L=yes
8704 hardcode_shlibpath_var=no
8705 ;;
8706
8707 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8708 freebsd* | dragonfly*)
8709 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8710 hardcode_libdir_flag_spec='-R$libdir'
8711 hardcode_direct=yes
8712 hardcode_shlibpath_var=no
8713 ;;
8714
8715 hpux9*)
8716 if test "$GCC" = yes; then
8717 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'
8718 else
8719 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'
8720 fi
8721 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8722 hardcode_libdir_separator=:
8723 hardcode_direct=yes
8724
8725 # hardcode_minus_L: Not really in the search PATH,
8726 # but as the default location of the library.
8727 hardcode_minus_L=yes
8728 export_dynamic_flag_spec='${wl}-E'
8729 ;;
8730
8731 hpux10*)
8732 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8733 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8734 else
8735 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8736 fi
8737 if test "$with_gnu_ld" = no; then
8738 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8739 hardcode_libdir_flag_spec_ld='+b $libdir'
8740 hardcode_libdir_separator=:
8741 hardcode_direct=yes
8742 hardcode_direct_absolute=yes
8743 export_dynamic_flag_spec='${wl}-E'
8744 # hardcode_minus_L: Not really in the search PATH,
8745 # but as the default location of the library.
8746 hardcode_minus_L=yes
8747 fi
8748 ;;
8749
8750 hpux11*)
8751 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8752 case $host_cpu in
8753 hppa*64*)
8754 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8755 ;;
8756 ia64*)
8757 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8758 ;;
8759 *)
8760 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8761 ;;
8762 esac
8763 else
8764 case $host_cpu in
8765 hppa*64*)
8766 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8767 ;;
8768 ia64*)
8769 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8770 ;;
8771 *)
8772 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8773 ;;
8774 esac
8775 fi
8776 if test "$with_gnu_ld" = no; then
8777 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8778 hardcode_libdir_separator=:
8779
8780 case $host_cpu in
8781 hppa*64*|ia64*)
8782 hardcode_direct=no
8783 hardcode_shlibpath_var=no
8784 ;;
8785 *)
8786 hardcode_direct=yes
8787 hardcode_direct_absolute=yes
8788 export_dynamic_flag_spec='${wl}-E'
8789
8790 # hardcode_minus_L: Not really in the search PATH,
8791 # but as the default location of the library.
8792 hardcode_minus_L=yes
8793 ;;
8794 esac
8795 fi
8796 ;;
8797
8798 irix5* | irix6* | nonstopux*)
8799 if test "$GCC" = yes; then
8800 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'
8801 # Try to use the -exported_symbol ld option, if it does not
8802 # work, assume that -exports_file does not work either and
8803 # implicitly export all symbols.
8804 save_LDFLAGS="$LDFLAGS"
8805 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8806 cat >conftest.$ac_ext <<_ACEOF
8807 int foo(void) {}
8808 _ACEOF
8809 rm -f conftest.$ac_objext conftest$ac_exeext
8810 if { (ac_try="$ac_link"
8811 case "(($ac_try" in
8812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8813 *) ac_try_echo=$ac_try;;
8814 esac
8815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8816 $as_echo "$ac_try_echo") >&5
8817 (eval "$ac_link") 2>conftest.er1
8818 ac_status=$?
8819 grep -v '^ *+' conftest.er1 >conftest.err
8820 rm -f conftest.er1
8821 cat conftest.err >&5
8822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); } && {
8824 test -z "$ac_c_werror_flag" ||
8825 test ! -s conftest.err
8826 } && test -s conftest$ac_exeext && {
8827 test "$cross_compiling" = yes ||
8828 $as_test_x conftest$ac_exeext
8829 }; then
8830 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'
8831
8832 else
8833 $as_echo "$as_me: failed program was:" >&5
8834 sed 's/^/| /' conftest.$ac_ext >&5
8835
8836
8837 fi
8838
8839 rm -rf conftest.dSYM
8840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8841 conftest$ac_exeext conftest.$ac_ext
8842 LDFLAGS="$save_LDFLAGS"
8843 else
8844 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'
8845 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'
8846 fi
8847 archive_cmds_need_lc='no'
8848 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8849 hardcode_libdir_separator=:
8850 inherit_rpath=yes
8851 link_all_deplibs=yes
8852 ;;
8853
8854 netbsd*)
8855 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8856 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8857 else
8858 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8859 fi
8860 hardcode_libdir_flag_spec='-R$libdir'
8861 hardcode_direct=yes
8862 hardcode_shlibpath_var=no
8863 ;;
8864
8865 newsos6)
8866 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8867 hardcode_direct=yes
8868 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8869 hardcode_libdir_separator=:
8870 hardcode_shlibpath_var=no
8871 ;;
8872
8873 *nto* | *qnx*)
8874 ;;
8875
8876 openbsd*)
8877 if test -f /usr/libexec/ld.so; then
8878 hardcode_direct=yes
8879 hardcode_shlibpath_var=no
8880 hardcode_direct_absolute=yes
8881 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8882 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8883 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8884 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8885 export_dynamic_flag_spec='${wl}-E'
8886 else
8887 case $host_os in
8888 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8889 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8890 hardcode_libdir_flag_spec='-R$libdir'
8891 ;;
8892 *)
8893 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8894 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8895 ;;
8896 esac
8897 fi
8898 else
8899 ld_shlibs=no
8900 fi
8901 ;;
8902
8903 os2*)
8904 hardcode_libdir_flag_spec='-L$libdir'
8905 hardcode_minus_L=yes
8906 allow_undefined_flag=unsupported
8907 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'
8908 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8909 ;;
8910
8911 osf3*)
8912 if test "$GCC" = yes; then
8913 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8914 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'
8915 else
8916 allow_undefined_flag=' -expect_unresolved \*'
8917 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'
8918 fi
8919 archive_cmds_need_lc='no'
8920 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8921 hardcode_libdir_separator=:
8922 ;;
8923
8924 osf4* | osf5*) # as osf3* with the addition of -msym flag
8925 if test "$GCC" = yes; then
8926 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8927 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'
8928 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8929 else
8930 allow_undefined_flag=' -expect_unresolved \*'
8931 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'
8932 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~
8933 $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'
8934
8935 # Both c and cxx compiler support -rpath directly
8936 hardcode_libdir_flag_spec='-rpath $libdir'
8937 fi
8938 archive_cmds_need_lc='no'
8939 hardcode_libdir_separator=:
8940 ;;
8941
8942 solaris*)
8943 no_undefined_flag=' -z defs'
8944 if test "$GCC" = yes; then
8945 wlarc='${wl}'
8946 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8947 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8948 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8949 else
8950 case `$CC -V 2>&1` in
8951 *"Compilers 5.0"*)
8952 wlarc=''
8953 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8954 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8955 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8956 ;;
8957 *)
8958 wlarc='${wl}'
8959 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8960 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8961 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8962 ;;
8963 esac
8964 fi
8965 hardcode_libdir_flag_spec='-R$libdir'
8966 hardcode_shlibpath_var=no
8967 case $host_os in
8968 solaris2.[0-5] | solaris2.[0-5].*) ;;
8969 *)
8970 # The compiler driver will combine and reorder linker options,
8971 # but understands `-z linker_flag'. GCC discards it without `$wl',
8972 # but is careful enough not to reorder.
8973 # Supported since Solaris 2.6 (maybe 2.5.1?)
8974 if test "$GCC" = yes; then
8975 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8976 else
8977 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8978 fi
8979 ;;
8980 esac
8981 link_all_deplibs=yes
8982 ;;
8983
8984 sunos4*)
8985 if test "x$host_vendor" = xsequent; then
8986 # Use $CC to link under sequent, because it throws in some extra .o
8987 # files that make .init and .fini sections work.
8988 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8989 else
8990 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8991 fi
8992 hardcode_libdir_flag_spec='-L$libdir'
8993 hardcode_direct=yes
8994 hardcode_minus_L=yes
8995 hardcode_shlibpath_var=no
8996 ;;
8997
8998 sysv4)
8999 case $host_vendor in
9000 sni)
9001 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9002 hardcode_direct=yes # is this really true???
9003 ;;
9004 siemens)
9005 ## LD is ld it makes a PLAMLIB
9006 ## CC just makes a GrossModule.
9007 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9008 reload_cmds='$CC -r -o $output$reload_objs'
9009 hardcode_direct=no
9010 ;;
9011 motorola)
9012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9013 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9014 ;;
9015 esac
9016 runpath_var='LD_RUN_PATH'
9017 hardcode_shlibpath_var=no
9018 ;;
9019
9020 sysv4.3*)
9021 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9022 hardcode_shlibpath_var=no
9023 export_dynamic_flag_spec='-Bexport'
9024 ;;
9025
9026 sysv4*MP*)
9027 if test -d /usr/nec; then
9028 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9029 hardcode_shlibpath_var=no
9030 runpath_var=LD_RUN_PATH
9031 hardcode_runpath_var=yes
9032 ld_shlibs=yes
9033 fi
9034 ;;
9035
9036 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9037 no_undefined_flag='${wl}-z,text'
9038 archive_cmds_need_lc=no
9039 hardcode_shlibpath_var=no
9040 runpath_var='LD_RUN_PATH'
9041
9042 if test "$GCC" = yes; then
9043 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9044 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9045 else
9046 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9047 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9048 fi
9049 ;;
9050
9051 sysv5* | sco3.2v5* | sco5v6*)
9052 # Note: We can NOT use -z defs as we might desire, because we do not
9053 # link with -lc, and that would cause any symbols used from libc to
9054 # always be unresolved, which means just about no library would
9055 # ever link correctly. If we're not using GNU ld we use -z text
9056 # though, which does catch some bad symbols but isn't as heavy-handed
9057 # as -z defs.
9058 no_undefined_flag='${wl}-z,text'
9059 allow_undefined_flag='${wl}-z,nodefs'
9060 archive_cmds_need_lc=no
9061 hardcode_shlibpath_var=no
9062 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9063 hardcode_libdir_separator=':'
9064 link_all_deplibs=yes
9065 export_dynamic_flag_spec='${wl}-Bexport'
9066 runpath_var='LD_RUN_PATH'
9067
9068 if test "$GCC" = yes; then
9069 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9070 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9071 else
9072 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9073 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9074 fi
9075 ;;
9076
9077 uts4*)
9078 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9079 hardcode_libdir_flag_spec='-L$libdir'
9080 hardcode_shlibpath_var=no
9081 ;;
9082
9083 *)
9084 ld_shlibs=no
9085 ;;
9086 esac
9087
9088 if test x$host_vendor = xsni; then
9089 case $host in
9090 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9091 export_dynamic_flag_spec='${wl}-Blargedynsym'
9092 ;;
9093 esac
9094 fi
9095 fi
9096
9097 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9098 $as_echo "$ld_shlibs" >&6; }
9099 test "$ld_shlibs" = no && can_build_shared=no
9100
9101 with_gnu_ld=$with_gnu_ld
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117 #
9118 # Do we need to explicitly link libc?
9119 #
9120 case "x$archive_cmds_need_lc" in
9121 x|xyes)
9122 # Assume -lc should be added
9123 archive_cmds_need_lc=yes
9124
9125 if test "$enable_shared" = yes && test "$GCC" = yes; then
9126 case $archive_cmds in
9127 *'~'*)
9128 # FIXME: we may have to deal with multi-command sequences.
9129 ;;
9130 '$CC '*)
9131 # Test whether the compiler implicitly links with -lc since on some
9132 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9133 # to ld, don't add -lc before -lgcc.
9134 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9135 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9136 $RM conftest*
9137 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9138
9139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9140 (eval $ac_compile) 2>&5
9141 ac_status=$?
9142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); } 2>conftest.err; then
9144 soname=conftest
9145 lib=conftest
9146 libobjs=conftest.$ac_objext
9147 deplibs=
9148 wl=$lt_prog_compiler_wl
9149 pic_flag=$lt_prog_compiler_pic
9150 compiler_flags=-v
9151 linker_flags=-v
9152 verstring=
9153 output_objdir=.
9154 libname=conftest
9155 lt_save_allow_undefined_flag=$allow_undefined_flag
9156 allow_undefined_flag=
9157 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9158 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9159 ac_status=$?
9160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161 (exit $ac_status); }
9162 then
9163 archive_cmds_need_lc=no
9164 else
9165 archive_cmds_need_lc=yes
9166 fi
9167 allow_undefined_flag=$lt_save_allow_undefined_flag
9168 else
9169 cat conftest.err 1>&5
9170 fi
9171 $RM conftest*
9172 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9173 $as_echo "$archive_cmds_need_lc" >&6; }
9174 ;;
9175 esac
9176 fi
9177 ;;
9178 esac
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9337 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9338
9339 if test "$GCC" = yes; then
9340 case $host_os in
9341 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9342 *) lt_awk_arg="/^libraries:/" ;;
9343 esac
9344 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9345 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9346 # if the path contains ";" then we assume it to be the separator
9347 # otherwise default to the standard path separator (i.e. ":") - it is
9348 # assumed that no part of a normal pathname contains ";" but that should
9349 # okay in the real world where ";" in dirpaths is itself problematic.
9350 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9351 else
9352 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9353 fi
9354 # Ok, now we have the path, separated by spaces, we can step through it
9355 # and add multilib dir if necessary.
9356 lt_tmp_lt_search_path_spec=
9357 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9358 for lt_sys_path in $lt_search_path_spec; do
9359 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9360 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9361 else
9362 test -d "$lt_sys_path" && \
9363 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9364 fi
9365 done
9366 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9367 BEGIN {RS=" "; FS="/|\n";} {
9368 lt_foo="";
9369 lt_count=0;
9370 for (lt_i = NF; lt_i > 0; lt_i--) {
9371 if ($lt_i != "" && $lt_i != ".") {
9372 if ($lt_i == "..") {
9373 lt_count++;
9374 } else {
9375 if (lt_count == 0) {
9376 lt_foo="/" $lt_i lt_foo;
9377 } else {
9378 lt_count--;
9379 }
9380 }
9381 }
9382 }
9383 if (lt_foo != "") { lt_freq[lt_foo]++; }
9384 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9385 }'`
9386 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9387 else
9388 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9389 fi
9390 library_names_spec=
9391 libname_spec='lib$name'
9392 soname_spec=
9393 shrext_cmds=".so"
9394 postinstall_cmds=
9395 postuninstall_cmds=
9396 finish_cmds=
9397 finish_eval=
9398 shlibpath_var=
9399 shlibpath_overrides_runpath=unknown
9400 version_type=none
9401 dynamic_linker="$host_os ld.so"
9402 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9403 need_lib_prefix=unknown
9404 hardcode_into_libs=no
9405
9406 # when you set need_version to no, make sure it does not cause -set_version
9407 # flags to be left without arguments
9408 need_version=unknown
9409
9410 case $host_os in
9411 aix3*)
9412 version_type=linux
9413 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9414 shlibpath_var=LIBPATH
9415
9416 # AIX 3 has no versioning support, so we append a major version to the name.
9417 soname_spec='${libname}${release}${shared_ext}$major'
9418 ;;
9419
9420 aix[4-9]*)
9421 version_type=linux
9422 need_lib_prefix=no
9423 need_version=no
9424 hardcode_into_libs=yes
9425 if test "$host_cpu" = ia64; then
9426 # AIX 5 supports IA64
9427 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9428 shlibpath_var=LD_LIBRARY_PATH
9429 else
9430 # With GCC up to 2.95.x, collect2 would create an import file
9431 # for dependence libraries. The import file would start with
9432 # the line `#! .'. This would cause the generated library to
9433 # depend on `.', always an invalid library. This was fixed in
9434 # development snapshots of GCC prior to 3.0.
9435 case $host_os in
9436 aix4 | aix4.[01] | aix4.[01].*)
9437 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9438 echo ' yes '
9439 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9440 :
9441 else
9442 can_build_shared=no
9443 fi
9444 ;;
9445 esac
9446 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9447 # soname into executable. Probably we can add versioning support to
9448 # collect2, so additional links can be useful in future.
9449 if test "$aix_use_runtimelinking" = yes; then
9450 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9451 # instead of lib<name>.a to let people know that these are not
9452 # typical AIX shared libraries.
9453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9454 else
9455 # We preserve .a as extension for shared libraries through AIX4.2
9456 # and later when we are not doing run time linking.
9457 library_names_spec='${libname}${release}.a $libname.a'
9458 soname_spec='${libname}${release}${shared_ext}$major'
9459 fi
9460 shlibpath_var=LIBPATH
9461 fi
9462 ;;
9463
9464 amigaos*)
9465 case $host_cpu in
9466 powerpc)
9467 # Since July 2007 AmigaOS4 officially supports .so libraries.
9468 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9470 ;;
9471 m68k)
9472 library_names_spec='$libname.ixlibrary $libname.a'
9473 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9474 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'
9475 ;;
9476 esac
9477 ;;
9478
9479 beos*)
9480 library_names_spec='${libname}${shared_ext}'
9481 dynamic_linker="$host_os ld.so"
9482 shlibpath_var=LIBRARY_PATH
9483 ;;
9484
9485 bsdi[45]*)
9486 version_type=linux
9487 need_version=no
9488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9489 soname_spec='${libname}${release}${shared_ext}$major'
9490 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9491 shlibpath_var=LD_LIBRARY_PATH
9492 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9493 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9494 # the default ld.so.conf also contains /usr/contrib/lib and
9495 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9496 # libtool to hard-code these into programs
9497 ;;
9498
9499 cygwin* | mingw* | pw32* | cegcc*)
9500 version_type=windows
9501 shrext_cmds=".dll"
9502 need_version=no
9503 need_lib_prefix=no
9504
9505 case $GCC,$host_os in
9506 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9507 library_names_spec='$libname.dll.a'
9508 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9509 postinstall_cmds='base_file=`basename \${file}`~
9510 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9511 dldir=$destdir/`dirname \$dlpath`~
9512 test -d \$dldir || mkdir -p \$dldir~
9513 $install_prog $dir/$dlname \$dldir/$dlname~
9514 chmod a+x \$dldir/$dlname~
9515 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9516 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9517 fi'
9518 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9519 dlpath=$dir/\$dldll~
9520 $RM \$dlpath'
9521 shlibpath_overrides_runpath=yes
9522
9523 case $host_os in
9524 cygwin*)
9525 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9526 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9527 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9528 ;;
9529 mingw* | cegcc*)
9530 # MinGW DLLs use traditional 'lib' prefix
9531 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9532 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9533 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9534 # It is most probably a Windows format PATH printed by
9535 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9536 # path with ; separators, and with drive letters. We can handle the
9537 # drive letters (cygwin fileutils understands them), so leave them,
9538 # especially as we might pass files found there to a mingw objdump,
9539 # which wouldn't understand a cygwinified path. Ahh.
9540 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9541 else
9542 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9543 fi
9544 ;;
9545 pw32*)
9546 # pw32 DLLs use 'pw' prefix rather than 'lib'
9547 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9548 ;;
9549 esac
9550 ;;
9551
9552 *)
9553 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9554 ;;
9555 esac
9556 dynamic_linker='Win32 ld.exe'
9557 # FIXME: first we should search . and the directory the executable is in
9558 shlibpath_var=PATH
9559 ;;
9560
9561 darwin* | rhapsody*)
9562 dynamic_linker="$host_os dyld"
9563 version_type=darwin
9564 need_lib_prefix=no
9565 need_version=no
9566 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9567 soname_spec='${libname}${release}${major}$shared_ext'
9568 shlibpath_overrides_runpath=yes
9569 shlibpath_var=DYLD_LIBRARY_PATH
9570 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9571
9572 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9573 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9574 ;;
9575
9576 dgux*)
9577 version_type=linux
9578 need_lib_prefix=no
9579 need_version=no
9580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9581 soname_spec='${libname}${release}${shared_ext}$major'
9582 shlibpath_var=LD_LIBRARY_PATH
9583 ;;
9584
9585 freebsd1*)
9586 dynamic_linker=no
9587 ;;
9588
9589 freebsd* | dragonfly*)
9590 # DragonFly does not have aout. When/if they implement a new
9591 # versioning mechanism, adjust this.
9592 if test -x /usr/bin/objformat; then
9593 objformat=`/usr/bin/objformat`
9594 else
9595 case $host_os in
9596 freebsd[123]*) objformat=aout ;;
9597 *) objformat=elf ;;
9598 esac
9599 fi
9600 version_type=freebsd-$objformat
9601 case $version_type in
9602 freebsd-elf*)
9603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9604 need_version=no
9605 need_lib_prefix=no
9606 ;;
9607 freebsd-*)
9608 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9609 need_version=yes
9610 ;;
9611 esac
9612 shlibpath_var=LD_LIBRARY_PATH
9613 case $host_os in
9614 freebsd2*)
9615 shlibpath_overrides_runpath=yes
9616 ;;
9617 freebsd3.[01]* | freebsdelf3.[01]*)
9618 shlibpath_overrides_runpath=yes
9619 hardcode_into_libs=yes
9620 ;;
9621 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9622 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9623 shlibpath_overrides_runpath=no
9624 hardcode_into_libs=yes
9625 ;;
9626 *) # from 4.6 on, and DragonFly
9627 shlibpath_overrides_runpath=yes
9628 hardcode_into_libs=yes
9629 ;;
9630 esac
9631 ;;
9632
9633 gnu*)
9634 version_type=linux
9635 need_lib_prefix=no
9636 need_version=no
9637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9638 soname_spec='${libname}${release}${shared_ext}$major'
9639 shlibpath_var=LD_LIBRARY_PATH
9640 hardcode_into_libs=yes
9641 ;;
9642
9643 hpux9* | hpux10* | hpux11*)
9644 # Give a soname corresponding to the major version so that dld.sl refuses to
9645 # link against other versions.
9646 version_type=sunos
9647 need_lib_prefix=no
9648 need_version=no
9649 case $host_cpu in
9650 ia64*)
9651 shrext_cmds='.so'
9652 hardcode_into_libs=yes
9653 dynamic_linker="$host_os dld.so"
9654 shlibpath_var=LD_LIBRARY_PATH
9655 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9657 soname_spec='${libname}${release}${shared_ext}$major'
9658 if test "X$HPUX_IA64_MODE" = X32; then
9659 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9660 else
9661 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9662 fi
9663 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9664 ;;
9665 hppa*64*)
9666 shrext_cmds='.sl'
9667 hardcode_into_libs=yes
9668 dynamic_linker="$host_os dld.sl"
9669 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9670 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9672 soname_spec='${libname}${release}${shared_ext}$major'
9673 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9674 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9675 ;;
9676 *)
9677 shrext_cmds='.sl'
9678 dynamic_linker="$host_os dld.sl"
9679 shlibpath_var=SHLIB_PATH
9680 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9682 soname_spec='${libname}${release}${shared_ext}$major'
9683 ;;
9684 esac
9685 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9686 postinstall_cmds='chmod 555 $lib'
9687 ;;
9688
9689 interix[3-9]*)
9690 version_type=linux
9691 need_lib_prefix=no
9692 need_version=no
9693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9694 soname_spec='${libname}${release}${shared_ext}$major'
9695 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9696 shlibpath_var=LD_LIBRARY_PATH
9697 shlibpath_overrides_runpath=no
9698 hardcode_into_libs=yes
9699 ;;
9700
9701 irix5* | irix6* | nonstopux*)
9702 case $host_os in
9703 nonstopux*) version_type=nonstopux ;;
9704 *)
9705 if test "$lt_cv_prog_gnu_ld" = yes; then
9706 version_type=linux
9707 else
9708 version_type=irix
9709 fi ;;
9710 esac
9711 need_lib_prefix=no
9712 need_version=no
9713 soname_spec='${libname}${release}${shared_ext}$major'
9714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9715 case $host_os in
9716 irix5* | nonstopux*)
9717 libsuff= shlibsuff=
9718 ;;
9719 *)
9720 case $LD in # libtool.m4 will add one of these switches to LD
9721 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9722 libsuff= shlibsuff= libmagic=32-bit;;
9723 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9724 libsuff=32 shlibsuff=N32 libmagic=N32;;
9725 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9726 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9727 *) libsuff= shlibsuff= libmagic=never-match;;
9728 esac
9729 ;;
9730 esac
9731 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9732 shlibpath_overrides_runpath=no
9733 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9734 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9735 hardcode_into_libs=yes
9736 ;;
9737
9738 # No shared lib support for Linux oldld, aout, or coff.
9739 linux*oldld* | linux*aout* | linux*coff*)
9740 dynamic_linker=no
9741 ;;
9742
9743 # This must be Linux ELF.
9744 linux* | k*bsd*-gnu)
9745 version_type=linux
9746 need_lib_prefix=no
9747 need_version=no
9748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9749 soname_spec='${libname}${release}${shared_ext}$major'
9750 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9751 shlibpath_var=LD_LIBRARY_PATH
9752 shlibpath_overrides_runpath=no
9753 # Some binutils ld are patched to set DT_RUNPATH
9754 save_LDFLAGS=$LDFLAGS
9755 save_libdir=$libdir
9756 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9757 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9758 cat >conftest.$ac_ext <<_ACEOF
9759 /* confdefs.h. */
9760 _ACEOF
9761 cat confdefs.h >>conftest.$ac_ext
9762 cat >>conftest.$ac_ext <<_ACEOF
9763 /* end confdefs.h. */
9764
9765 int
9766 main ()
9767 {
9768
9769 ;
9770 return 0;
9771 }
9772 _ACEOF
9773 rm -f conftest.$ac_objext conftest$ac_exeext
9774 if { (ac_try="$ac_link"
9775 case "(($ac_try" in
9776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9777 *) ac_try_echo=$ac_try;;
9778 esac
9779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9780 $as_echo "$ac_try_echo") >&5
9781 (eval "$ac_link") 2>conftest.er1
9782 ac_status=$?
9783 grep -v '^ *+' conftest.er1 >conftest.err
9784 rm -f conftest.er1
9785 cat conftest.err >&5
9786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } && {
9788 test -z "$ac_c_werror_flag" ||
9789 test ! -s conftest.err
9790 } && test -s conftest$ac_exeext && {
9791 test "$cross_compiling" = yes ||
9792 $as_test_x conftest$ac_exeext
9793 }; then
9794 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9795 shlibpath_overrides_runpath=yes
9796 fi
9797
9798 else
9799 $as_echo "$as_me: failed program was:" >&5
9800 sed 's/^/| /' conftest.$ac_ext >&5
9801
9802
9803 fi
9804
9805 rm -rf conftest.dSYM
9806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9807 conftest$ac_exeext conftest.$ac_ext
9808 LDFLAGS=$save_LDFLAGS
9809 libdir=$save_libdir
9810
9811 # This implies no fast_install, which is unacceptable.
9812 # Some rework will be needed to allow for fast_install
9813 # before this can be enabled.
9814 hardcode_into_libs=yes
9815
9816 # Add ABI-specific directories to the system library path.
9817 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9818
9819 # Append ld.so.conf contents to the search path
9820 if test -f /etc/ld.so.conf; then
9821 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' ' '`
9822 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9823 fi
9824
9825 # We used to test for /lib/ld.so.1 and disable shared libraries on
9826 # powerpc, because MkLinux only supported shared libraries with the
9827 # GNU dynamic linker. Since this was broken with cross compilers,
9828 # most powerpc-linux boxes support dynamic linking these days and
9829 # people can always --disable-shared, the test was removed, and we
9830 # assume the GNU/Linux dynamic linker is in use.
9831 dynamic_linker='GNU/Linux ld.so'
9832 ;;
9833
9834 netbsd*)
9835 version_type=sunos
9836 need_lib_prefix=no
9837 need_version=no
9838 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9840 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9841 dynamic_linker='NetBSD (a.out) ld.so'
9842 else
9843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9844 soname_spec='${libname}${release}${shared_ext}$major'
9845 dynamic_linker='NetBSD ld.elf_so'
9846 fi
9847 shlibpath_var=LD_LIBRARY_PATH
9848 shlibpath_overrides_runpath=yes
9849 hardcode_into_libs=yes
9850 ;;
9851
9852 newsos6)
9853 version_type=linux
9854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9855 shlibpath_var=LD_LIBRARY_PATH
9856 shlibpath_overrides_runpath=yes
9857 ;;
9858
9859 *nto* | *qnx*)
9860 version_type=qnx
9861 need_lib_prefix=no
9862 need_version=no
9863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9864 soname_spec='${libname}${release}${shared_ext}$major'
9865 shlibpath_var=LD_LIBRARY_PATH
9866 shlibpath_overrides_runpath=no
9867 hardcode_into_libs=yes
9868 dynamic_linker='ldqnx.so'
9869 ;;
9870
9871 openbsd*)
9872 version_type=sunos
9873 sys_lib_dlsearch_path_spec="/usr/lib"
9874 need_lib_prefix=no
9875 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9876 case $host_os in
9877 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9878 *) need_version=no ;;
9879 esac
9880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9882 shlibpath_var=LD_LIBRARY_PATH
9883 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9884 case $host_os in
9885 openbsd2.[89] | openbsd2.[89].*)
9886 shlibpath_overrides_runpath=no
9887 ;;
9888 *)
9889 shlibpath_overrides_runpath=yes
9890 ;;
9891 esac
9892 else
9893 shlibpath_overrides_runpath=yes
9894 fi
9895 ;;
9896
9897 os2*)
9898 libname_spec='$name'
9899 shrext_cmds=".dll"
9900 need_lib_prefix=no
9901 library_names_spec='$libname${shared_ext} $libname.a'
9902 dynamic_linker='OS/2 ld.exe'
9903 shlibpath_var=LIBPATH
9904 ;;
9905
9906 osf3* | osf4* | osf5*)
9907 version_type=osf
9908 need_lib_prefix=no
9909 need_version=no
9910 soname_spec='${libname}${release}${shared_ext}$major'
9911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9912 shlibpath_var=LD_LIBRARY_PATH
9913 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9914 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9915 ;;
9916
9917 rdos*)
9918 dynamic_linker=no
9919 ;;
9920
9921 solaris*)
9922 version_type=linux
9923 need_lib_prefix=no
9924 need_version=no
9925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9926 soname_spec='${libname}${release}${shared_ext}$major'
9927 shlibpath_var=LD_LIBRARY_PATH
9928 shlibpath_overrides_runpath=yes
9929 hardcode_into_libs=yes
9930 # ldd complains unless libraries are executable
9931 postinstall_cmds='chmod +x $lib'
9932 ;;
9933
9934 sunos4*)
9935 version_type=sunos
9936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9937 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9938 shlibpath_var=LD_LIBRARY_PATH
9939 shlibpath_overrides_runpath=yes
9940 if test "$with_gnu_ld" = yes; then
9941 need_lib_prefix=no
9942 fi
9943 need_version=yes
9944 ;;
9945
9946 sysv4 | sysv4.3*)
9947 version_type=linux
9948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9949 soname_spec='${libname}${release}${shared_ext}$major'
9950 shlibpath_var=LD_LIBRARY_PATH
9951 case $host_vendor in
9952 sni)
9953 shlibpath_overrides_runpath=no
9954 need_lib_prefix=no
9955 runpath_var=LD_RUN_PATH
9956 ;;
9957 siemens)
9958 need_lib_prefix=no
9959 ;;
9960 motorola)
9961 need_lib_prefix=no
9962 need_version=no
9963 shlibpath_overrides_runpath=no
9964 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9965 ;;
9966 esac
9967 ;;
9968
9969 sysv4*MP*)
9970 if test -d /usr/nec ;then
9971 version_type=linux
9972 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9973 soname_spec='$libname${shared_ext}.$major'
9974 shlibpath_var=LD_LIBRARY_PATH
9975 fi
9976 ;;
9977
9978 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9979 version_type=freebsd-elf
9980 need_lib_prefix=no
9981 need_version=no
9982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9983 soname_spec='${libname}${release}${shared_ext}$major'
9984 shlibpath_var=LD_LIBRARY_PATH
9985 shlibpath_overrides_runpath=yes
9986 hardcode_into_libs=yes
9987 if test "$with_gnu_ld" = yes; then
9988 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9989 else
9990 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9991 case $host_os in
9992 sco3.2v5*)
9993 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9994 ;;
9995 esac
9996 fi
9997 sys_lib_dlsearch_path_spec='/usr/lib'
9998 ;;
9999
10000 tpf*)
10001 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10002 version_type=linux
10003 need_lib_prefix=no
10004 need_version=no
10005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10006 shlibpath_var=LD_LIBRARY_PATH
10007 shlibpath_overrides_runpath=no
10008 hardcode_into_libs=yes
10009 ;;
10010
10011 uts4*)
10012 version_type=linux
10013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10014 soname_spec='${libname}${release}${shared_ext}$major'
10015 shlibpath_var=LD_LIBRARY_PATH
10016 ;;
10017
10018 *)
10019 dynamic_linker=no
10020 ;;
10021 esac
10022 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10023 $as_echo "$dynamic_linker" >&6; }
10024 test "$dynamic_linker" = no && can_build_shared=no
10025
10026 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10027 if test "$GCC" = yes; then
10028 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10029 fi
10030
10031 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10032 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10033 fi
10034 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10035 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10036 fi
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10125 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10126 hardcode_action=
10127 if test -n "$hardcode_libdir_flag_spec" ||
10128 test -n "$runpath_var" ||
10129 test "X$hardcode_automatic" = "Xyes" ; then
10130
10131 # We can hardcode non-existent directories.
10132 if test "$hardcode_direct" != no &&
10133 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10134 # have to relink, otherwise we might link with an installed library
10135 # when we should be linking with a yet-to-be-installed one
10136 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10137 test "$hardcode_minus_L" != no; then
10138 # Linking always hardcodes the temporary library directory.
10139 hardcode_action=relink
10140 else
10141 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10142 hardcode_action=immediate
10143 fi
10144 else
10145 # We cannot hardcode anything, or else we can only hardcode existing
10146 # directories.
10147 hardcode_action=unsupported
10148 fi
10149 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10150 $as_echo "$hardcode_action" >&6; }
10151
10152 if test "$hardcode_action" = relink ||
10153 test "$inherit_rpath" = yes; then
10154 # Fast installation is not supported
10155 enable_fast_install=no
10156 elif test "$shlibpath_overrides_runpath" = yes ||
10157 test "$enable_shared" = no; then
10158 # Fast installation is not necessary
10159 enable_fast_install=needless
10160 fi
10161
10162
10163
10164
10165
10166
10167 if test "x$enable_dlopen" != xyes; then
10168 enable_dlopen=unknown
10169 enable_dlopen_self=unknown
10170 enable_dlopen_self_static=unknown
10171 else
10172 lt_cv_dlopen=no
10173 lt_cv_dlopen_libs=
10174
10175 case $host_os in
10176 beos*)
10177 lt_cv_dlopen="load_add_on"
10178 lt_cv_dlopen_libs=
10179 lt_cv_dlopen_self=yes
10180 ;;
10181
10182 mingw* | pw32* | cegcc*)
10183 lt_cv_dlopen="LoadLibrary"
10184 lt_cv_dlopen_libs=
10185 ;;
10186
10187 cygwin*)
10188 lt_cv_dlopen="dlopen"
10189 lt_cv_dlopen_libs=
10190 ;;
10191
10192 darwin*)
10193 # if libdl is installed we need to link against it
10194 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10195 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10196 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10197 $as_echo_n "(cached) " >&6
10198 else
10199 ac_check_lib_save_LIBS=$LIBS
10200 LIBS="-ldl $LIBS"
10201 cat >conftest.$ac_ext <<_ACEOF
10202 /* confdefs.h. */
10203 _ACEOF
10204 cat confdefs.h >>conftest.$ac_ext
10205 cat >>conftest.$ac_ext <<_ACEOF
10206 /* end confdefs.h. */
10207
10208 /* Override any GCC internal prototype to avoid an error.
10209 Use char because int might match the return type of a GCC
10210 builtin and then its argument prototype would still apply. */
10211 #ifdef __cplusplus
10212 extern "C"
10213 #endif
10214 char dlopen ();
10215 int
10216 main ()
10217 {
10218 return dlopen ();
10219 ;
10220 return 0;
10221 }
10222 _ACEOF
10223 rm -f conftest.$ac_objext conftest$ac_exeext
10224 if { (ac_try="$ac_link"
10225 case "(($ac_try" in
10226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227 *) ac_try_echo=$ac_try;;
10228 esac
10229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10230 $as_echo "$ac_try_echo") >&5
10231 (eval "$ac_link") 2>conftest.er1
10232 ac_status=$?
10233 grep -v '^ *+' conftest.er1 >conftest.err
10234 rm -f conftest.er1
10235 cat conftest.err >&5
10236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); } && {
10238 test -z "$ac_c_werror_flag" ||
10239 test ! -s conftest.err
10240 } && test -s conftest$ac_exeext && {
10241 test "$cross_compiling" = yes ||
10242 $as_test_x conftest$ac_exeext
10243 }; then
10244 ac_cv_lib_dl_dlopen=yes
10245 else
10246 $as_echo "$as_me: failed program was:" >&5
10247 sed 's/^/| /' conftest.$ac_ext >&5
10248
10249 ac_cv_lib_dl_dlopen=no
10250 fi
10251
10252 rm -rf conftest.dSYM
10253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10254 conftest$ac_exeext conftest.$ac_ext
10255 LIBS=$ac_check_lib_save_LIBS
10256 fi
10257 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10258 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10259 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10260 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10261 else
10262
10263 lt_cv_dlopen="dyld"
10264 lt_cv_dlopen_libs=
10265 lt_cv_dlopen_self=yes
10266
10267 fi
10268
10269 ;;
10270
10271 *)
10272 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10273 $as_echo_n "checking for shl_load... " >&6; }
10274 if test "${ac_cv_func_shl_load+set}" = set; then
10275 $as_echo_n "(cached) " >&6
10276 else
10277 cat >conftest.$ac_ext <<_ACEOF
10278 /* confdefs.h. */
10279 _ACEOF
10280 cat confdefs.h >>conftest.$ac_ext
10281 cat >>conftest.$ac_ext <<_ACEOF
10282 /* end confdefs.h. */
10283 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10285 #define shl_load innocuous_shl_load
10286
10287 /* System header to define __stub macros and hopefully few prototypes,
10288 which can conflict with char shl_load (); below.
10289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10290 <limits.h> exists even on freestanding compilers. */
10291
10292 #ifdef __STDC__
10293 # include <limits.h>
10294 #else
10295 # include <assert.h>
10296 #endif
10297
10298 #undef shl_load
10299
10300 /* Override any GCC internal prototype to avoid an error.
10301 Use char because int might match the return type of a GCC
10302 builtin and then its argument prototype would still apply. */
10303 #ifdef __cplusplus
10304 extern "C"
10305 #endif
10306 char shl_load ();
10307 /* The GNU C library defines this for functions which it implements
10308 to always fail with ENOSYS. Some functions are actually named
10309 something starting with __ and the normal name is an alias. */
10310 #if defined __stub_shl_load || defined __stub___shl_load
10311 choke me
10312 #endif
10313
10314 int
10315 main ()
10316 {
10317 return shl_load ();
10318 ;
10319 return 0;
10320 }
10321 _ACEOF
10322 rm -f conftest.$ac_objext conftest$ac_exeext
10323 if { (ac_try="$ac_link"
10324 case "(($ac_try" in
10325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10326 *) ac_try_echo=$ac_try;;
10327 esac
10328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10329 $as_echo "$ac_try_echo") >&5
10330 (eval "$ac_link") 2>conftest.er1
10331 ac_status=$?
10332 grep -v '^ *+' conftest.er1 >conftest.err
10333 rm -f conftest.er1
10334 cat conftest.err >&5
10335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); } && {
10337 test -z "$ac_c_werror_flag" ||
10338 test ! -s conftest.err
10339 } && test -s conftest$ac_exeext && {
10340 test "$cross_compiling" = yes ||
10341 $as_test_x conftest$ac_exeext
10342 }; then
10343 ac_cv_func_shl_load=yes
10344 else
10345 $as_echo "$as_me: failed program was:" >&5
10346 sed 's/^/| /' conftest.$ac_ext >&5
10347
10348 ac_cv_func_shl_load=no
10349 fi
10350
10351 rm -rf conftest.dSYM
10352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10353 conftest$ac_exeext conftest.$ac_ext
10354 fi
10355 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10356 $as_echo "$ac_cv_func_shl_load" >&6; }
10357 if test "x$ac_cv_func_shl_load" = x""yes; then
10358 lt_cv_dlopen="shl_load"
10359 else
10360 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10361 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10362 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10363 $as_echo_n "(cached) " >&6
10364 else
10365 ac_check_lib_save_LIBS=$LIBS
10366 LIBS="-ldld $LIBS"
10367 cat >conftest.$ac_ext <<_ACEOF
10368 /* confdefs.h. */
10369 _ACEOF
10370 cat confdefs.h >>conftest.$ac_ext
10371 cat >>conftest.$ac_ext <<_ACEOF
10372 /* end confdefs.h. */
10373
10374 /* Override any GCC internal prototype to avoid an error.
10375 Use char because int might match the return type of a GCC
10376 builtin and then its argument prototype would still apply. */
10377 #ifdef __cplusplus
10378 extern "C"
10379 #endif
10380 char shl_load ();
10381 int
10382 main ()
10383 {
10384 return shl_load ();
10385 ;
10386 return 0;
10387 }
10388 _ACEOF
10389 rm -f conftest.$ac_objext conftest$ac_exeext
10390 if { (ac_try="$ac_link"
10391 case "(($ac_try" in
10392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10393 *) ac_try_echo=$ac_try;;
10394 esac
10395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10396 $as_echo "$ac_try_echo") >&5
10397 (eval "$ac_link") 2>conftest.er1
10398 ac_status=$?
10399 grep -v '^ *+' conftest.er1 >conftest.err
10400 rm -f conftest.er1
10401 cat conftest.err >&5
10402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); } && {
10404 test -z "$ac_c_werror_flag" ||
10405 test ! -s conftest.err
10406 } && test -s conftest$ac_exeext && {
10407 test "$cross_compiling" = yes ||
10408 $as_test_x conftest$ac_exeext
10409 }; then
10410 ac_cv_lib_dld_shl_load=yes
10411 else
10412 $as_echo "$as_me: failed program was:" >&5
10413 sed 's/^/| /' conftest.$ac_ext >&5
10414
10415 ac_cv_lib_dld_shl_load=no
10416 fi
10417
10418 rm -rf conftest.dSYM
10419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10420 conftest$ac_exeext conftest.$ac_ext
10421 LIBS=$ac_check_lib_save_LIBS
10422 fi
10423 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10424 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10425 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10426 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10427 else
10428 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10429 $as_echo_n "checking for dlopen... " >&6; }
10430 if test "${ac_cv_func_dlopen+set}" = set; then
10431 $as_echo_n "(cached) " >&6
10432 else
10433 cat >conftest.$ac_ext <<_ACEOF
10434 /* confdefs.h. */
10435 _ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h. */
10439 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10441 #define dlopen innocuous_dlopen
10442
10443 /* System header to define __stub macros and hopefully few prototypes,
10444 which can conflict with char dlopen (); below.
10445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10446 <limits.h> exists even on freestanding compilers. */
10447
10448 #ifdef __STDC__
10449 # include <limits.h>
10450 #else
10451 # include <assert.h>
10452 #endif
10453
10454 #undef dlopen
10455
10456 /* Override any GCC internal prototype to avoid an error.
10457 Use char because int might match the return type of a GCC
10458 builtin and then its argument prototype would still apply. */
10459 #ifdef __cplusplus
10460 extern "C"
10461 #endif
10462 char dlopen ();
10463 /* The GNU C library defines this for functions which it implements
10464 to always fail with ENOSYS. Some functions are actually named
10465 something starting with __ and the normal name is an alias. */
10466 #if defined __stub_dlopen || defined __stub___dlopen
10467 choke me
10468 #endif
10469
10470 int
10471 main ()
10472 {
10473 return dlopen ();
10474 ;
10475 return 0;
10476 }
10477 _ACEOF
10478 rm -f conftest.$ac_objext conftest$ac_exeext
10479 if { (ac_try="$ac_link"
10480 case "(($ac_try" in
10481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10482 *) ac_try_echo=$ac_try;;
10483 esac
10484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10485 $as_echo "$ac_try_echo") >&5
10486 (eval "$ac_link") 2>conftest.er1
10487 ac_status=$?
10488 grep -v '^ *+' conftest.er1 >conftest.err
10489 rm -f conftest.er1
10490 cat conftest.err >&5
10491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); } && {
10493 test -z "$ac_c_werror_flag" ||
10494 test ! -s conftest.err
10495 } && test -s conftest$ac_exeext && {
10496 test "$cross_compiling" = yes ||
10497 $as_test_x conftest$ac_exeext
10498 }; then
10499 ac_cv_func_dlopen=yes
10500 else
10501 $as_echo "$as_me: failed program was:" >&5
10502 sed 's/^/| /' conftest.$ac_ext >&5
10503
10504 ac_cv_func_dlopen=no
10505 fi
10506
10507 rm -rf conftest.dSYM
10508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10509 conftest$ac_exeext conftest.$ac_ext
10510 fi
10511 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10512 $as_echo "$ac_cv_func_dlopen" >&6; }
10513 if test "x$ac_cv_func_dlopen" = x""yes; then
10514 lt_cv_dlopen="dlopen"
10515 else
10516 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10517 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10518 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10519 $as_echo_n "(cached) " >&6
10520 else
10521 ac_check_lib_save_LIBS=$LIBS
10522 LIBS="-ldl $LIBS"
10523 cat >conftest.$ac_ext <<_ACEOF
10524 /* confdefs.h. */
10525 _ACEOF
10526 cat confdefs.h >>conftest.$ac_ext
10527 cat >>conftest.$ac_ext <<_ACEOF
10528 /* end confdefs.h. */
10529
10530 /* Override any GCC internal prototype to avoid an error.
10531 Use char because int might match the return type of a GCC
10532 builtin and then its argument prototype would still apply. */
10533 #ifdef __cplusplus
10534 extern "C"
10535 #endif
10536 char dlopen ();
10537 int
10538 main ()
10539 {
10540 return dlopen ();
10541 ;
10542 return 0;
10543 }
10544 _ACEOF
10545 rm -f conftest.$ac_objext conftest$ac_exeext
10546 if { (ac_try="$ac_link"
10547 case "(($ac_try" in
10548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549 *) ac_try_echo=$ac_try;;
10550 esac
10551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10552 $as_echo "$ac_try_echo") >&5
10553 (eval "$ac_link") 2>conftest.er1
10554 ac_status=$?
10555 grep -v '^ *+' conftest.er1 >conftest.err
10556 rm -f conftest.er1
10557 cat conftest.err >&5
10558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); } && {
10560 test -z "$ac_c_werror_flag" ||
10561 test ! -s conftest.err
10562 } && test -s conftest$ac_exeext && {
10563 test "$cross_compiling" = yes ||
10564 $as_test_x conftest$ac_exeext
10565 }; then
10566 ac_cv_lib_dl_dlopen=yes
10567 else
10568 $as_echo "$as_me: failed program was:" >&5
10569 sed 's/^/| /' conftest.$ac_ext >&5
10570
10571 ac_cv_lib_dl_dlopen=no
10572 fi
10573
10574 rm -rf conftest.dSYM
10575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10576 conftest$ac_exeext conftest.$ac_ext
10577 LIBS=$ac_check_lib_save_LIBS
10578 fi
10579 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10580 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10581 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10582 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10583 else
10584 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10585 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10586 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10587 $as_echo_n "(cached) " >&6
10588 else
10589 ac_check_lib_save_LIBS=$LIBS
10590 LIBS="-lsvld $LIBS"
10591 cat >conftest.$ac_ext <<_ACEOF
10592 /* confdefs.h. */
10593 _ACEOF
10594 cat confdefs.h >>conftest.$ac_ext
10595 cat >>conftest.$ac_ext <<_ACEOF
10596 /* end confdefs.h. */
10597
10598 /* Override any GCC internal prototype to avoid an error.
10599 Use char because int might match the return type of a GCC
10600 builtin and then its argument prototype would still apply. */
10601 #ifdef __cplusplus
10602 extern "C"
10603 #endif
10604 char dlopen ();
10605 int
10606 main ()
10607 {
10608 return dlopen ();
10609 ;
10610 return 0;
10611 }
10612 _ACEOF
10613 rm -f conftest.$ac_objext conftest$ac_exeext
10614 if { (ac_try="$ac_link"
10615 case "(($ac_try" in
10616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10617 *) ac_try_echo=$ac_try;;
10618 esac
10619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10620 $as_echo "$ac_try_echo") >&5
10621 (eval "$ac_link") 2>conftest.er1
10622 ac_status=$?
10623 grep -v '^ *+' conftest.er1 >conftest.err
10624 rm -f conftest.er1
10625 cat conftest.err >&5
10626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); } && {
10628 test -z "$ac_c_werror_flag" ||
10629 test ! -s conftest.err
10630 } && test -s conftest$ac_exeext && {
10631 test "$cross_compiling" = yes ||
10632 $as_test_x conftest$ac_exeext
10633 }; then
10634 ac_cv_lib_svld_dlopen=yes
10635 else
10636 $as_echo "$as_me: failed program was:" >&5
10637 sed 's/^/| /' conftest.$ac_ext >&5
10638
10639 ac_cv_lib_svld_dlopen=no
10640 fi
10641
10642 rm -rf conftest.dSYM
10643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10644 conftest$ac_exeext conftest.$ac_ext
10645 LIBS=$ac_check_lib_save_LIBS
10646 fi
10647 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10648 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10649 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10650 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10651 else
10652 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10653 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10654 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10655 $as_echo_n "(cached) " >&6
10656 else
10657 ac_check_lib_save_LIBS=$LIBS
10658 LIBS="-ldld $LIBS"
10659 cat >conftest.$ac_ext <<_ACEOF
10660 /* confdefs.h. */
10661 _ACEOF
10662 cat confdefs.h >>conftest.$ac_ext
10663 cat >>conftest.$ac_ext <<_ACEOF
10664 /* end confdefs.h. */
10665
10666 /* Override any GCC internal prototype to avoid an error.
10667 Use char because int might match the return type of a GCC
10668 builtin and then its argument prototype would still apply. */
10669 #ifdef __cplusplus
10670 extern "C"
10671 #endif
10672 char dld_link ();
10673 int
10674 main ()
10675 {
10676 return dld_link ();
10677 ;
10678 return 0;
10679 }
10680 _ACEOF
10681 rm -f conftest.$ac_objext conftest$ac_exeext
10682 if { (ac_try="$ac_link"
10683 case "(($ac_try" in
10684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10685 *) ac_try_echo=$ac_try;;
10686 esac
10687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10688 $as_echo "$ac_try_echo") >&5
10689 (eval "$ac_link") 2>conftest.er1
10690 ac_status=$?
10691 grep -v '^ *+' conftest.er1 >conftest.err
10692 rm -f conftest.er1
10693 cat conftest.err >&5
10694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); } && {
10696 test -z "$ac_c_werror_flag" ||
10697 test ! -s conftest.err
10698 } && test -s conftest$ac_exeext && {
10699 test "$cross_compiling" = yes ||
10700 $as_test_x conftest$ac_exeext
10701 }; then
10702 ac_cv_lib_dld_dld_link=yes
10703 else
10704 $as_echo "$as_me: failed program was:" >&5
10705 sed 's/^/| /' conftest.$ac_ext >&5
10706
10707 ac_cv_lib_dld_dld_link=no
10708 fi
10709
10710 rm -rf conftest.dSYM
10711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10712 conftest$ac_exeext conftest.$ac_ext
10713 LIBS=$ac_check_lib_save_LIBS
10714 fi
10715 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10716 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10717 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10718 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10719 fi
10720
10721
10722 fi
10723
10724
10725 fi
10726
10727
10728 fi
10729
10730
10731 fi
10732
10733
10734 fi
10735
10736 ;;
10737 esac
10738
10739 if test "x$lt_cv_dlopen" != xno; then
10740 enable_dlopen=yes
10741 else
10742 enable_dlopen=no
10743 fi
10744
10745 case $lt_cv_dlopen in
10746 dlopen)
10747 save_CPPFLAGS="$CPPFLAGS"
10748 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10749
10750 save_LDFLAGS="$LDFLAGS"
10751 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10752
10753 save_LIBS="$LIBS"
10754 LIBS="$lt_cv_dlopen_libs $LIBS"
10755
10756 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10757 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10758 if test "${lt_cv_dlopen_self+set}" = set; then
10759 $as_echo_n "(cached) " >&6
10760 else
10761 if test "$cross_compiling" = yes; then :
10762 lt_cv_dlopen_self=cross
10763 else
10764 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10765 lt_status=$lt_dlunknown
10766 cat > conftest.$ac_ext <<_LT_EOF
10767 #line 10767 "configure"
10768 #include "confdefs.h"
10769
10770 #if HAVE_DLFCN_H
10771 #include <dlfcn.h>
10772 #endif
10773
10774 #include <stdio.h>
10775
10776 #ifdef RTLD_GLOBAL
10777 # define LT_DLGLOBAL RTLD_GLOBAL
10778 #else
10779 # ifdef DL_GLOBAL
10780 # define LT_DLGLOBAL DL_GLOBAL
10781 # else
10782 # define LT_DLGLOBAL 0
10783 # endif
10784 #endif
10785
10786 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10787 find out it does not work in some platform. */
10788 #ifndef LT_DLLAZY_OR_NOW
10789 # ifdef RTLD_LAZY
10790 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10791 # else
10792 # ifdef DL_LAZY
10793 # define LT_DLLAZY_OR_NOW DL_LAZY
10794 # else
10795 # ifdef RTLD_NOW
10796 # define LT_DLLAZY_OR_NOW RTLD_NOW
10797 # else
10798 # ifdef DL_NOW
10799 # define LT_DLLAZY_OR_NOW DL_NOW
10800 # else
10801 # define LT_DLLAZY_OR_NOW 0
10802 # endif
10803 # endif
10804 # endif
10805 # endif
10806 #endif
10807
10808 void fnord() { int i=42;}
10809 int main ()
10810 {
10811 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10812 int status = $lt_dlunknown;
10813
10814 if (self)
10815 {
10816 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10817 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10818 /* dlclose (self); */
10819 }
10820 else
10821 puts (dlerror ());
10822
10823 return status;
10824 }
10825 _LT_EOF
10826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10827 (eval $ac_link) 2>&5
10828 ac_status=$?
10829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10831 (./conftest; exit; ) >&5 2>/dev/null
10832 lt_status=$?
10833 case x$lt_status in
10834 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10835 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10836 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10837 esac
10838 else :
10839 # compilation failed
10840 lt_cv_dlopen_self=no
10841 fi
10842 fi
10843 rm -fr conftest*
10844
10845
10846 fi
10847 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10848 $as_echo "$lt_cv_dlopen_self" >&6; }
10849
10850 if test "x$lt_cv_dlopen_self" = xyes; then
10851 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10852 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10853 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10854 if test "${lt_cv_dlopen_self_static+set}" = set; then
10855 $as_echo_n "(cached) " >&6
10856 else
10857 if test "$cross_compiling" = yes; then :
10858 lt_cv_dlopen_self_static=cross
10859 else
10860 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10861 lt_status=$lt_dlunknown
10862 cat > conftest.$ac_ext <<_LT_EOF
10863 #line 10863 "configure"
10864 #include "confdefs.h"
10865
10866 #if HAVE_DLFCN_H
10867 #include <dlfcn.h>
10868 #endif
10869
10870 #include <stdio.h>
10871
10872 #ifdef RTLD_GLOBAL
10873 # define LT_DLGLOBAL RTLD_GLOBAL
10874 #else
10875 # ifdef DL_GLOBAL
10876 # define LT_DLGLOBAL DL_GLOBAL
10877 # else
10878 # define LT_DLGLOBAL 0
10879 # endif
10880 #endif
10881
10882 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10883 find out it does not work in some platform. */
10884 #ifndef LT_DLLAZY_OR_NOW
10885 # ifdef RTLD_LAZY
10886 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10887 # else
10888 # ifdef DL_LAZY
10889 # define LT_DLLAZY_OR_NOW DL_LAZY
10890 # else
10891 # ifdef RTLD_NOW
10892 # define LT_DLLAZY_OR_NOW RTLD_NOW
10893 # else
10894 # ifdef DL_NOW
10895 # define LT_DLLAZY_OR_NOW DL_NOW
10896 # else
10897 # define LT_DLLAZY_OR_NOW 0
10898 # endif
10899 # endif
10900 # endif
10901 # endif
10902 #endif
10903
10904 void fnord() { int i=42;}
10905 int main ()
10906 {
10907 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10908 int status = $lt_dlunknown;
10909
10910 if (self)
10911 {
10912 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10913 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10914 /* dlclose (self); */
10915 }
10916 else
10917 puts (dlerror ());
10918
10919 return status;
10920 }
10921 _LT_EOF
10922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10923 (eval $ac_link) 2>&5
10924 ac_status=$?
10925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10927 (./conftest; exit; ) >&5 2>/dev/null
10928 lt_status=$?
10929 case x$lt_status in
10930 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10931 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10932 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10933 esac
10934 else :
10935 # compilation failed
10936 lt_cv_dlopen_self_static=no
10937 fi
10938 fi
10939 rm -fr conftest*
10940
10941
10942 fi
10943 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10944 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10945 fi
10946
10947 CPPFLAGS="$save_CPPFLAGS"
10948 LDFLAGS="$save_LDFLAGS"
10949 LIBS="$save_LIBS"
10950 ;;
10951 esac
10952
10953 case $lt_cv_dlopen_self in
10954 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10955 *) enable_dlopen_self=unknown ;;
10956 esac
10957
10958 case $lt_cv_dlopen_self_static in
10959 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10960 *) enable_dlopen_self_static=unknown ;;
10961 esac
10962 fi
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980 striplib=
10981 old_striplib=
10982 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10983 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10984 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10985 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10986 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10987 { $as_echo "$as_me:$LINENO: result: yes" >&5
10988 $as_echo "yes" >&6; }
10989 else
10990 # FIXME - insert some real tests, host_os isn't really good enough
10991 case $host_os in
10992 darwin*)
10993 if test -n "$STRIP" ; then
10994 striplib="$STRIP -x"
10995 old_striplib="$STRIP -S"
10996 { $as_echo "$as_me:$LINENO: result: yes" >&5
10997 $as_echo "yes" >&6; }
10998 else
10999 { $as_echo "$as_me:$LINENO: result: no" >&5
11000 $as_echo "no" >&6; }
11001 fi
11002 ;;
11003 *)
11004 { $as_echo "$as_me:$LINENO: result: no" >&5
11005 $as_echo "no" >&6; }
11006 ;;
11007 esac
11008 fi
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021 # Report which library types will actually be built
11022 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11023 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11024 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11025 $as_echo "$can_build_shared" >&6; }
11026
11027 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11028 $as_echo_n "checking whether to build shared libraries... " >&6; }
11029 test "$can_build_shared" = "no" && enable_shared=no
11030
11031 # On AIX, shared libraries and static libraries use the same namespace, and
11032 # are all built from PIC.
11033 case $host_os in
11034 aix3*)
11035 test "$enable_shared" = yes && enable_static=no
11036 if test -n "$RANLIB"; then
11037 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11038 postinstall_cmds='$RANLIB $lib'
11039 fi
11040 ;;
11041
11042 aix[4-9]*)
11043 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11044 test "$enable_shared" = yes && enable_static=no
11045 fi
11046 ;;
11047 esac
11048 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11049 $as_echo "$enable_shared" >&6; }
11050
11051 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11052 $as_echo_n "checking whether to build static libraries... " >&6; }
11053 # Make sure either enable_shared or enable_static is yes.
11054 test "$enable_shared" = yes || enable_static=yes
11055 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11056 $as_echo "$enable_static" >&6; }
11057
11058
11059
11060
11061 fi
11062 ac_ext=c
11063 ac_cpp='$CPP $CPPFLAGS'
11064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11067
11068 CC="$lt_save_CC"
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082 ac_config_commands="$ac_config_commands libtool"
11083
11084
11085
11086
11087 # Only expand once:
11088
11089
11090 ac_ext=c
11091 ac_cpp='$CPP $CPPFLAGS'
11092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11095 if test -n "$ac_tool_prefix"; then
11096 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11097 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11098 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11099 $as_echo_n "checking for $ac_word... " >&6; }
11100 if test "${ac_cv_prog_CC+set}" = set; then
11101 $as_echo_n "(cached) " >&6
11102 else
11103 if test -n "$CC"; then
11104 ac_cv_prog_CC="$CC" # Let the user override the test.
11105 else
11106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11107 for as_dir in $PATH
11108 do
11109 IFS=$as_save_IFS
11110 test -z "$as_dir" && as_dir=.
11111 for ac_exec_ext in '' $ac_executable_extensions; do
11112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11113 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11114 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11115 break 2
11116 fi
11117 done
11118 done
11119 IFS=$as_save_IFS
11120
11121 fi
11122 fi
11123 CC=$ac_cv_prog_CC
11124 if test -n "$CC"; then
11125 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11126 $as_echo "$CC" >&6; }
11127 else
11128 { $as_echo "$as_me:$LINENO: result: no" >&5
11129 $as_echo "no" >&6; }
11130 fi
11131
11132
11133 fi
11134 if test -z "$ac_cv_prog_CC"; then
11135 ac_ct_CC=$CC
11136 # Extract the first word of "gcc", so it can be a program name with args.
11137 set dummy gcc; ac_word=$2
11138 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11139 $as_echo_n "checking for $ac_word... " >&6; }
11140 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11141 $as_echo_n "(cached) " >&6
11142 else
11143 if test -n "$ac_ct_CC"; then
11144 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11145 else
11146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11147 for as_dir in $PATH
11148 do
11149 IFS=$as_save_IFS
11150 test -z "$as_dir" && as_dir=.
11151 for ac_exec_ext in '' $ac_executable_extensions; do
11152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11153 ac_cv_prog_ac_ct_CC="gcc"
11154 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11155 break 2
11156 fi
11157 done
11158 done
11159 IFS=$as_save_IFS
11160
11161 fi
11162 fi
11163 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11164 if test -n "$ac_ct_CC"; then
11165 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11166 $as_echo "$ac_ct_CC" >&6; }
11167 else
11168 { $as_echo "$as_me:$LINENO: result: no" >&5
11169 $as_echo "no" >&6; }
11170 fi
11171
11172 if test "x$ac_ct_CC" = x; then
11173 CC=""
11174 else
11175 case $cross_compiling:$ac_tool_warned in
11176 yes:)
11177 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11179 ac_tool_warned=yes ;;
11180 esac
11181 CC=$ac_ct_CC
11182 fi
11183 else
11184 CC="$ac_cv_prog_CC"
11185 fi
11186
11187 if test -z "$CC"; then
11188 if test -n "$ac_tool_prefix"; then
11189 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11190 set dummy ${ac_tool_prefix}cc; ac_word=$2
11191 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11192 $as_echo_n "checking for $ac_word... " >&6; }
11193 if test "${ac_cv_prog_CC+set}" = set; then
11194 $as_echo_n "(cached) " >&6
11195 else
11196 if test -n "$CC"; then
11197 ac_cv_prog_CC="$CC" # Let the user override the test.
11198 else
11199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11200 for as_dir in $PATH
11201 do
11202 IFS=$as_save_IFS
11203 test -z "$as_dir" && as_dir=.
11204 for ac_exec_ext in '' $ac_executable_extensions; do
11205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11206 ac_cv_prog_CC="${ac_tool_prefix}cc"
11207 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11208 break 2
11209 fi
11210 done
11211 done
11212 IFS=$as_save_IFS
11213
11214 fi
11215 fi
11216 CC=$ac_cv_prog_CC
11217 if test -n "$CC"; then
11218 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11219 $as_echo "$CC" >&6; }
11220 else
11221 { $as_echo "$as_me:$LINENO: result: no" >&5
11222 $as_echo "no" >&6; }
11223 fi
11224
11225
11226 fi
11227 fi
11228 if test -z "$CC"; then
11229 # Extract the first word of "cc", so it can be a program name with args.
11230 set dummy cc; ac_word=$2
11231 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11232 $as_echo_n "checking for $ac_word... " >&6; }
11233 if test "${ac_cv_prog_CC+set}" = set; then
11234 $as_echo_n "(cached) " >&6
11235 else
11236 if test -n "$CC"; then
11237 ac_cv_prog_CC="$CC" # Let the user override the test.
11238 else
11239 ac_prog_rejected=no
11240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11241 for as_dir in $PATH
11242 do
11243 IFS=$as_save_IFS
11244 test -z "$as_dir" && as_dir=.
11245 for ac_exec_ext in '' $ac_executable_extensions; do
11246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11247 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11248 ac_prog_rejected=yes
11249 continue
11250 fi
11251 ac_cv_prog_CC="cc"
11252 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11253 break 2
11254 fi
11255 done
11256 done
11257 IFS=$as_save_IFS
11258
11259 if test $ac_prog_rejected = yes; then
11260 # We found a bogon in the path, so make sure we never use it.
11261 set dummy $ac_cv_prog_CC
11262 shift
11263 if test $# != 0; then
11264 # We chose a different compiler from the bogus one.
11265 # However, it has the same basename, so the bogon will be chosen
11266 # first if we set CC to just the basename; use the full file name.
11267 shift
11268 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11269 fi
11270 fi
11271 fi
11272 fi
11273 CC=$ac_cv_prog_CC
11274 if test -n "$CC"; then
11275 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11276 $as_echo "$CC" >&6; }
11277 else
11278 { $as_echo "$as_me:$LINENO: result: no" >&5
11279 $as_echo "no" >&6; }
11280 fi
11281
11282
11283 fi
11284 if test -z "$CC"; then
11285 if test -n "$ac_tool_prefix"; then
11286 for ac_prog in cl.exe
11287 do
11288 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11289 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11290 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11291 $as_echo_n "checking for $ac_word... " >&6; }
11292 if test "${ac_cv_prog_CC+set}" = set; then
11293 $as_echo_n "(cached) " >&6
11294 else
11295 if test -n "$CC"; then
11296 ac_cv_prog_CC="$CC" # Let the user override the test.
11297 else
11298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11299 for as_dir in $PATH
11300 do
11301 IFS=$as_save_IFS
11302 test -z "$as_dir" && as_dir=.
11303 for ac_exec_ext in '' $ac_executable_extensions; do
11304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11305 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11306 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11307 break 2
11308 fi
11309 done
11310 done
11311 IFS=$as_save_IFS
11312
11313 fi
11314 fi
11315 CC=$ac_cv_prog_CC
11316 if test -n "$CC"; then
11317 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11318 $as_echo "$CC" >&6; }
11319 else
11320 { $as_echo "$as_me:$LINENO: result: no" >&5
11321 $as_echo "no" >&6; }
11322 fi
11323
11324
11325 test -n "$CC" && break
11326 done
11327 fi
11328 if test -z "$CC"; then
11329 ac_ct_CC=$CC
11330 for ac_prog in cl.exe
11331 do
11332 # Extract the first word of "$ac_prog", so it can be a program name with args.
11333 set dummy $ac_prog; ac_word=$2
11334 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11335 $as_echo_n "checking for $ac_word... " >&6; }
11336 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11337 $as_echo_n "(cached) " >&6
11338 else
11339 if test -n "$ac_ct_CC"; then
11340 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11341 else
11342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11343 for as_dir in $PATH
11344 do
11345 IFS=$as_save_IFS
11346 test -z "$as_dir" && as_dir=.
11347 for ac_exec_ext in '' $ac_executable_extensions; do
11348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11349 ac_cv_prog_ac_ct_CC="$ac_prog"
11350 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11351 break 2
11352 fi
11353 done
11354 done
11355 IFS=$as_save_IFS
11356
11357 fi
11358 fi
11359 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11360 if test -n "$ac_ct_CC"; then
11361 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11362 $as_echo "$ac_ct_CC" >&6; }
11363 else
11364 { $as_echo "$as_me:$LINENO: result: no" >&5
11365 $as_echo "no" >&6; }
11366 fi
11367
11368
11369 test -n "$ac_ct_CC" && break
11370 done
11371
11372 if test "x$ac_ct_CC" = x; then
11373 CC=""
11374 else
11375 case $cross_compiling:$ac_tool_warned in
11376 yes:)
11377 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11379 ac_tool_warned=yes ;;
11380 esac
11381 CC=$ac_ct_CC
11382 fi
11383 fi
11384
11385 fi
11386
11387
11388 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11390 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11391 See \`config.log' for more details." >&5
11392 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
11393 See \`config.log' for more details." >&2;}
11394 { (exit 1); exit 1; }; }; }
11395
11396 # Provide some information about the compiler.
11397 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
11398 set X $ac_compile
11399 ac_compiler=$2
11400 { (ac_try="$ac_compiler --version >&5"
11401 case "(($ac_try" in
11402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11403 *) ac_try_echo=$ac_try;;
11404 esac
11405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11406 $as_echo "$ac_try_echo") >&5
11407 (eval "$ac_compiler --version >&5") 2>&5
11408 ac_status=$?
11409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); }
11411 { (ac_try="$ac_compiler -v >&5"
11412 case "(($ac_try" in
11413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11414 *) ac_try_echo=$ac_try;;
11415 esac
11416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11417 $as_echo "$ac_try_echo") >&5
11418 (eval "$ac_compiler -v >&5") 2>&5
11419 ac_status=$?
11420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); }
11422 { (ac_try="$ac_compiler -V >&5"
11423 case "(($ac_try" in
11424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11425 *) ac_try_echo=$ac_try;;
11426 esac
11427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11428 $as_echo "$ac_try_echo") >&5
11429 (eval "$ac_compiler -V >&5") 2>&5
11430 ac_status=$?
11431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); }
11433
11434 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11435 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11436 if test "${ac_cv_c_compiler_gnu+set}" = set; then
11437 $as_echo_n "(cached) " >&6
11438 else
11439 cat >conftest.$ac_ext <<_ACEOF
11440 /* confdefs.h. */
11441 _ACEOF
11442 cat confdefs.h >>conftest.$ac_ext
11443 cat >>conftest.$ac_ext <<_ACEOF
11444 /* end confdefs.h. */
11445
11446 int
11447 main ()
11448 {
11449 #ifndef __GNUC__
11450 choke me
11451 #endif
11452
11453 ;
11454 return 0;
11455 }
11456 _ACEOF
11457 rm -f conftest.$ac_objext
11458 if { (ac_try="$ac_compile"
11459 case "(($ac_try" in
11460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11461 *) ac_try_echo=$ac_try;;
11462 esac
11463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11464 $as_echo "$ac_try_echo") >&5
11465 (eval "$ac_compile") 2>conftest.er1
11466 ac_status=$?
11467 grep -v '^ *+' conftest.er1 >conftest.err
11468 rm -f conftest.er1
11469 cat conftest.err >&5
11470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); } && {
11472 test -z "$ac_c_werror_flag" ||
11473 test ! -s conftest.err
11474 } && test -s conftest.$ac_objext; then
11475 ac_compiler_gnu=yes
11476 else
11477 $as_echo "$as_me: failed program was:" >&5
11478 sed 's/^/| /' conftest.$ac_ext >&5
11479
11480 ac_compiler_gnu=no
11481 fi
11482
11483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11484 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11485
11486 fi
11487 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11488 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11489 if test $ac_compiler_gnu = yes; then
11490 GCC=yes
11491 else
11492 GCC=
11493 fi
11494 ac_test_CFLAGS=${CFLAGS+set}
11495 ac_save_CFLAGS=$CFLAGS
11496 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11497 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11498 if test "${ac_cv_prog_cc_g+set}" = set; then
11499 $as_echo_n "(cached) " >&6
11500 else
11501 ac_save_c_werror_flag=$ac_c_werror_flag
11502 ac_c_werror_flag=yes
11503 ac_cv_prog_cc_g=no
11504 CFLAGS="-g"
11505 cat >conftest.$ac_ext <<_ACEOF
11506 /* confdefs.h. */
11507 _ACEOF
11508 cat confdefs.h >>conftest.$ac_ext
11509 cat >>conftest.$ac_ext <<_ACEOF
11510 /* end confdefs.h. */
11511
11512 int
11513 main ()
11514 {
11515
11516 ;
11517 return 0;
11518 }
11519 _ACEOF
11520 rm -f conftest.$ac_objext
11521 if { (ac_try="$ac_compile"
11522 case "(($ac_try" in
11523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11524 *) ac_try_echo=$ac_try;;
11525 esac
11526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11527 $as_echo "$ac_try_echo") >&5
11528 (eval "$ac_compile") 2>conftest.er1
11529 ac_status=$?
11530 grep -v '^ *+' conftest.er1 >conftest.err
11531 rm -f conftest.er1
11532 cat conftest.err >&5
11533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); } && {
11535 test -z "$ac_c_werror_flag" ||
11536 test ! -s conftest.err
11537 } && test -s conftest.$ac_objext; then
11538 ac_cv_prog_cc_g=yes
11539 else
11540 $as_echo "$as_me: failed program was:" >&5
11541 sed 's/^/| /' conftest.$ac_ext >&5
11542
11543 CFLAGS=""
11544 cat >conftest.$ac_ext <<_ACEOF
11545 /* confdefs.h. */
11546 _ACEOF
11547 cat confdefs.h >>conftest.$ac_ext
11548 cat >>conftest.$ac_ext <<_ACEOF
11549 /* end confdefs.h. */
11550
11551 int
11552 main ()
11553 {
11554
11555 ;
11556 return 0;
11557 }
11558 _ACEOF
11559 rm -f conftest.$ac_objext
11560 if { (ac_try="$ac_compile"
11561 case "(($ac_try" in
11562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11563 *) ac_try_echo=$ac_try;;
11564 esac
11565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11566 $as_echo "$ac_try_echo") >&5
11567 (eval "$ac_compile") 2>conftest.er1
11568 ac_status=$?
11569 grep -v '^ *+' conftest.er1 >conftest.err
11570 rm -f conftest.er1
11571 cat conftest.err >&5
11572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); } && {
11574 test -z "$ac_c_werror_flag" ||
11575 test ! -s conftest.err
11576 } && test -s conftest.$ac_objext; then
11577 :
11578 else
11579 $as_echo "$as_me: failed program was:" >&5
11580 sed 's/^/| /' conftest.$ac_ext >&5
11581
11582 ac_c_werror_flag=$ac_save_c_werror_flag
11583 CFLAGS="-g"
11584 cat >conftest.$ac_ext <<_ACEOF
11585 /* confdefs.h. */
11586 _ACEOF
11587 cat confdefs.h >>conftest.$ac_ext
11588 cat >>conftest.$ac_ext <<_ACEOF
11589 /* end confdefs.h. */
11590
11591 int
11592 main ()
11593 {
11594
11595 ;
11596 return 0;
11597 }
11598 _ACEOF
11599 rm -f conftest.$ac_objext
11600 if { (ac_try="$ac_compile"
11601 case "(($ac_try" in
11602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11603 *) ac_try_echo=$ac_try;;
11604 esac
11605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11606 $as_echo "$ac_try_echo") >&5
11607 (eval "$ac_compile") 2>conftest.er1
11608 ac_status=$?
11609 grep -v '^ *+' conftest.er1 >conftest.err
11610 rm -f conftest.er1
11611 cat conftest.err >&5
11612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); } && {
11614 test -z "$ac_c_werror_flag" ||
11615 test ! -s conftest.err
11616 } && test -s conftest.$ac_objext; then
11617 ac_cv_prog_cc_g=yes
11618 else
11619 $as_echo "$as_me: failed program was:" >&5
11620 sed 's/^/| /' conftest.$ac_ext >&5
11621
11622
11623 fi
11624
11625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11626 fi
11627
11628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11629 fi
11630
11631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11632 ac_c_werror_flag=$ac_save_c_werror_flag
11633 fi
11634 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11635 $as_echo "$ac_cv_prog_cc_g" >&6; }
11636 if test "$ac_test_CFLAGS" = set; then
11637 CFLAGS=$ac_save_CFLAGS
11638 elif test $ac_cv_prog_cc_g = yes; then
11639 if test "$GCC" = yes; then
11640 CFLAGS="-g -O2"
11641 else
11642 CFLAGS="-g"
11643 fi
11644 else
11645 if test "$GCC" = yes; then
11646 CFLAGS="-O2"
11647 else
11648 CFLAGS=
11649 fi
11650 fi
11651 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
11652 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11653 if test "${ac_cv_prog_cc_c89+set}" = set; then
11654 $as_echo_n "(cached) " >&6
11655 else
11656 ac_cv_prog_cc_c89=no
11657 ac_save_CC=$CC
11658 cat >conftest.$ac_ext <<_ACEOF
11659 /* confdefs.h. */
11660 _ACEOF
11661 cat confdefs.h >>conftest.$ac_ext
11662 cat >>conftest.$ac_ext <<_ACEOF
11663 /* end confdefs.h. */
11664 #include <stdarg.h>
11665 #include <stdio.h>
11666 #include <sys/types.h>
11667 #include <sys/stat.h>
11668 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11669 struct buf { int x; };
11670 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11671 static char *e (p, i)
11672 char **p;
11673 int i;
11674 {
11675 return p[i];
11676 }
11677 static char *f (char * (*g) (char **, int), char **p, ...)
11678 {
11679 char *s;
11680 va_list v;
11681 va_start (v,p);
11682 s = g (p, va_arg (v,int));
11683 va_end (v);
11684 return s;
11685 }
11686
11687 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11688 function prototypes and stuff, but not '\xHH' hex character constants.
11689 These don't provoke an error unfortunately, instead are silently treated
11690 as 'x'. The following induces an error, until -std is added to get
11691 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11692 array size at least. It's necessary to write '\x00'==0 to get something
11693 that's true only with -std. */
11694 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11695
11696 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11697 inside strings and character constants. */
11698 #define FOO(x) 'x'
11699 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11700
11701 int test (int i, double x);
11702 struct s1 {int (*f) (int a);};
11703 struct s2 {int (*f) (double a);};
11704 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11705 int argc;
11706 char **argv;
11707 int
11708 main ()
11709 {
11710 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11711 ;
11712 return 0;
11713 }
11714 _ACEOF
11715 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11716 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11717 do
11718 CC="$ac_save_CC $ac_arg"
11719 rm -f conftest.$ac_objext
11720 if { (ac_try="$ac_compile"
11721 case "(($ac_try" in
11722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11723 *) ac_try_echo=$ac_try;;
11724 esac
11725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11726 $as_echo "$ac_try_echo") >&5
11727 (eval "$ac_compile") 2>conftest.er1
11728 ac_status=$?
11729 grep -v '^ *+' conftest.er1 >conftest.err
11730 rm -f conftest.er1
11731 cat conftest.err >&5
11732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); } && {
11734 test -z "$ac_c_werror_flag" ||
11735 test ! -s conftest.err
11736 } && test -s conftest.$ac_objext; then
11737 ac_cv_prog_cc_c89=$ac_arg
11738 else
11739 $as_echo "$as_me: failed program was:" >&5
11740 sed 's/^/| /' conftest.$ac_ext >&5
11741
11742
11743 fi
11744
11745 rm -f core conftest.err conftest.$ac_objext
11746 test "x$ac_cv_prog_cc_c89" != "xno" && break
11747 done
11748 rm -f conftest.$ac_ext
11749 CC=$ac_save_CC
11750
11751 fi
11752 # AC_CACHE_VAL
11753 case "x$ac_cv_prog_cc_c89" in
11754 x)
11755 { $as_echo "$as_me:$LINENO: result: none needed" >&5
11756 $as_echo "none needed" >&6; } ;;
11757 xno)
11758 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
11759 $as_echo "unsupported" >&6; } ;;
11760 *)
11761 CC="$CC $ac_cv_prog_cc_c89"
11762 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
11763 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11764 esac
11765
11766
11767 ac_ext=c
11768 ac_cpp='$CPP $CPPFLAGS'
11769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11772
11773 depcc="$CC" am_compiler_list=
11774
11775 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11776 $as_echo_n "checking dependency style of $depcc... " >&6; }
11777 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
11778 $as_echo_n "(cached) " >&6
11779 else
11780 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11781 # We make a subdir and do the tests there. Otherwise we can end up
11782 # making bogus files that we don't know about and never remove. For
11783 # instance it was reported that on HP-UX the gcc test will end up
11784 # making a dummy file named `D' -- because `-MD' means `put the output
11785 # in D'.
11786 mkdir conftest.dir
11787 # Copy depcomp to subdir because otherwise we won't find it if we're
11788 # using a relative directory.
11789 cp "$am_depcomp" conftest.dir
11790 cd conftest.dir
11791 # We will build objects and dependencies in a subdirectory because
11792 # it helps to detect inapplicable dependency modes. For instance
11793 # both Tru64's cc and ICC support -MD to output dependencies as a
11794 # side effect of compilation, but ICC will put the dependencies in
11795 # the current directory while Tru64 will put them in the object
11796 # directory.
11797 mkdir sub
11798
11799 am_cv_CC_dependencies_compiler_type=none
11800 if test "$am_compiler_list" = ""; then
11801 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11802 fi
11803 for depmode in $am_compiler_list; do
11804 # Setup a source with many dependencies, because some compilers
11805 # like to wrap large dependency lists on column 80 (with \), and
11806 # we should not choose a depcomp mode which is confused by this.
11807 #
11808 # We need to recreate these files for each test, as the compiler may
11809 # overwrite some of them when testing with obscure command lines.
11810 # This happens at least with the AIX C compiler.
11811 : > sub/conftest.c
11812 for i in 1 2 3 4 5 6; do
11813 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11814 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11815 # Solaris 8's {/usr,}/bin/sh.
11816 touch sub/conftst$i.h
11817 done
11818 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11819
11820 case $depmode in
11821 nosideeffect)
11822 # after this tag, mechanisms are not by side-effect, so they'll
11823 # only be used when explicitly requested
11824 if test "x$enable_dependency_tracking" = xyes; then
11825 continue
11826 else
11827 break
11828 fi
11829 ;;
11830 none) break ;;
11831 esac
11832 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11833 # mode. It turns out that the SunPro C++ compiler does not properly
11834 # handle `-M -o', and we need to detect this.
11835 if depmode=$depmode \
11836 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
11837 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11838 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
11839 >/dev/null 2>conftest.err &&
11840 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11841 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11842 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
11843 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11844 # icc doesn't choke on unknown options, it will just issue warnings
11845 # or remarks (even with -Werror). So we grep stderr for any message
11846 # that says an option was ignored or not supported.
11847 # When given -MP, icc 7.0 and 7.1 complain thusly:
11848 # icc: Command line warning: ignoring option '-M'; no argument required
11849 # The diagnosis changed in icc 8.0:
11850 # icc: Command line remark: option '-MP' not supported
11851 if (grep 'ignoring option' conftest.err ||
11852 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11853 am_cv_CC_dependencies_compiler_type=$depmode
11854 break
11855 fi
11856 fi
11857 done
11858
11859 cd ..
11860 rm -rf conftest.dir
11861 else
11862 am_cv_CC_dependencies_compiler_type=none
11863 fi
11864
11865 fi
11866 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
11867 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11868 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11869
11870 if
11871 test "x$enable_dependency_tracking" != xno \
11872 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11873 am__fastdepCC_TRUE=
11874 am__fastdepCC_FALSE='#'
11875 else
11876 am__fastdepCC_TRUE='#'
11877 am__fastdepCC_FALSE=
11878 fi
11879
11880
11881
11882
11883
11884
11885
11886 # Check whether --with-xorg-module-dir was given.
11887 if test "${with_xorg_module_dir+set}" = set; then
11888 withval=$with_xorg_module_dir; moduledir="$withval"
11889 else
11890 moduledir="$libdir/xorg/modules"
11891 fi
11892
11893
11894 # Check whether --enable-dri was given.
11895 if test "${enable_dri+set}" = set; then
11896 enableval=$enable_dri; DRI="$enableval"
11897 else
11898 DRI=auto
11899 fi
11900
11901
11902 # Checks for extensions
11903
11904 SAVE_CFLAGS="$CFLAGS"
11905 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
11906 cat >conftest.$ac_ext <<_ACEOF
11907 /* confdefs.h. */
11908 _ACEOF
11909 cat confdefs.h >>conftest.$ac_ext
11910 cat >>conftest.$ac_ext <<_ACEOF
11911 /* end confdefs.h. */
11912
11913 #include "xorg-server.h"
11914 #if !defined RANDR
11915 #error RANDR not defined
11916 #endif
11917
11918 int
11919 main ()
11920 {
11921
11922 ;
11923 return 0;
11924 }
11925 _ACEOF
11926 rm -f conftest.$ac_objext
11927 if { (ac_try="$ac_compile"
11928 case "(($ac_try" in
11929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11930 *) ac_try_echo=$ac_try;;
11931 esac
11932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11933 $as_echo "$ac_try_echo") >&5
11934 (eval "$ac_compile") 2>conftest.er1
11935 ac_status=$?
11936 grep -v '^ *+' conftest.er1 >conftest.err
11937 rm -f conftest.er1
11938 cat conftest.err >&5
11939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } && {
11941 test -z "$ac_c_werror_flag" ||
11942 test ! -s conftest.err
11943 } && test -s conftest.$ac_objext; then
11944 _EXT_CHECK=yes
11945 else
11946 $as_echo "$as_me: failed program was:" >&5
11947 sed 's/^/| /' conftest.$ac_ext >&5
11948
11949 _EXT_CHECK=no
11950 fi
11951
11952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11953 CFLAGS="$SAVE_CFLAGS"
11954 { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5
11955 $as_echo_n "checking if RANDR is defined... " >&6; }
11956 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
11957 $as_echo "$_EXT_CHECK" >&6; }
11958 if test "$_EXT_CHECK" != no; then
11959 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
11960 fi
11961
11962
11963 SAVE_CFLAGS="$CFLAGS"
11964 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
11965 cat >conftest.$ac_ext <<_ACEOF
11966 /* confdefs.h. */
11967 _ACEOF
11968 cat confdefs.h >>conftest.$ac_ext
11969 cat >>conftest.$ac_ext <<_ACEOF
11970 /* end confdefs.h. */
11971
11972 #include "xorg-server.h"
11973 #if !defined RENDER
11974 #error RENDER not defined
11975 #endif
11976
11977 int
11978 main ()
11979 {
11980
11981 ;
11982 return 0;
11983 }
11984 _ACEOF
11985 rm -f conftest.$ac_objext
11986 if { (ac_try="$ac_compile"
11987 case "(($ac_try" in
11988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11989 *) ac_try_echo=$ac_try;;
11990 esac
11991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11992 $as_echo "$ac_try_echo") >&5
11993 (eval "$ac_compile") 2>conftest.er1
11994 ac_status=$?
11995 grep -v '^ *+' conftest.er1 >conftest.err
11996 rm -f conftest.er1
11997 cat conftest.err >&5
11998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); } && {
12000 test -z "$ac_c_werror_flag" ||
12001 test ! -s conftest.err
12002 } && test -s conftest.$ac_objext; then
12003 _EXT_CHECK=yes
12004 else
12005 $as_echo "$as_me: failed program was:" >&5
12006 sed 's/^/| /' conftest.$ac_ext >&5
12007
12008 _EXT_CHECK=no
12009 fi
12010
12011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12012 CFLAGS="$SAVE_CFLAGS"
12013 { $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5
12014 $as_echo_n "checking if RENDER is defined... " >&6; }
12015 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12016 $as_echo "$_EXT_CHECK" >&6; }
12017 if test "$_EXT_CHECK" != no; then
12018 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
12019 fi
12020
12021
12022 SAVE_CFLAGS="$CFLAGS"
12023 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12024 cat >conftest.$ac_ext <<_ACEOF
12025 /* confdefs.h. */
12026 _ACEOF
12027 cat confdefs.h >>conftest.$ac_ext
12028 cat >>conftest.$ac_ext <<_ACEOF
12029 /* end confdefs.h. */
12030
12031 #include "xorg-server.h"
12032 #if !defined XV
12033 #error XV not defined
12034 #endif
12035
12036 int
12037 main ()
12038 {
12039
12040 ;
12041 return 0;
12042 }
12043 _ACEOF
12044 rm -f conftest.$ac_objext
12045 if { (ac_try="$ac_compile"
12046 case "(($ac_try" in
12047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12048 *) ac_try_echo=$ac_try;;
12049 esac
12050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12051 $as_echo "$ac_try_echo") >&5
12052 (eval "$ac_compile") 2>conftest.er1
12053 ac_status=$?
12054 grep -v '^ *+' conftest.er1 >conftest.err
12055 rm -f conftest.er1
12056 cat conftest.err >&5
12057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); } && {
12059 test -z "$ac_c_werror_flag" ||
12060 test ! -s conftest.err
12061 } && test -s conftest.$ac_objext; then
12062 _EXT_CHECK=yes
12063 else
12064 $as_echo "$as_me: failed program was:" >&5
12065 sed 's/^/| /' conftest.$ac_ext >&5
12066
12067 _EXT_CHECK=no
12068 fi
12069
12070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12071 CFLAGS="$SAVE_CFLAGS"
12072 { $as_echo "$as_me:$LINENO: checking if XV is defined" >&5
12073 $as_echo_n "checking if XV is defined... " >&6; }
12074 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12075 $as_echo "$_EXT_CHECK" >&6; }
12076 if test "$_EXT_CHECK" != no; then
12077 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
12078 fi
12079
12080
12081 SAVE_CFLAGS="$CFLAGS"
12082 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12083 cat >conftest.$ac_ext <<_ACEOF
12084 /* confdefs.h. */
12085 _ACEOF
12086 cat confdefs.h >>conftest.$ac_ext
12087 cat >>conftest.$ac_ext <<_ACEOF
12088 /* end confdefs.h. */
12089
12090 #include "xorg-server.h"
12091 #if !defined DPMSExtension
12092 #error DPMSExtension not defined
12093 #endif
12094
12095 int
12096 main ()
12097 {
12098
12099 ;
12100 return 0;
12101 }
12102 _ACEOF
12103 rm -f conftest.$ac_objext
12104 if { (ac_try="$ac_compile"
12105 case "(($ac_try" in
12106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12107 *) ac_try_echo=$ac_try;;
12108 esac
12109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12110 $as_echo "$ac_try_echo") >&5
12111 (eval "$ac_compile") 2>conftest.er1
12112 ac_status=$?
12113 grep -v '^ *+' conftest.er1 >conftest.err
12114 rm -f conftest.er1
12115 cat conftest.err >&5
12116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } && {
12118 test -z "$ac_c_werror_flag" ||
12119 test ! -s conftest.err
12120 } && test -s conftest.$ac_objext; then
12121 _EXT_CHECK=yes
12122 else
12123 $as_echo "$as_me: failed program was:" >&5
12124 sed 's/^/| /' conftest.$ac_ext >&5
12125
12126 _EXT_CHECK=no
12127 fi
12128
12129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12130 CFLAGS="$SAVE_CFLAGS"
12131 { $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
12132 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
12133 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12134 $as_echo "$_EXT_CHECK" >&6; }
12135 if test "$_EXT_CHECK" != no; then
12136 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
12137 fi
12138
12139
12140 # Checks for pkg-config packages
12141
12142
12143 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12144 if test -n "$ac_tool_prefix"; then
12145 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12146 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12147 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12148 $as_echo_n "checking for $ac_word... " >&6; }
12149 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12150 $as_echo_n "(cached) " >&6
12151 else
12152 case $PKG_CONFIG in
12153 [\\/]* | ?:[\\/]*)
12154 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12155 ;;
12156 *)
12157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12158 for as_dir in $PATH
12159 do
12160 IFS=$as_save_IFS
12161 test -z "$as_dir" && as_dir=.
12162 for ac_exec_ext in '' $ac_executable_extensions; do
12163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12164 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12165 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12166 break 2
12167 fi
12168 done
12169 done
12170 IFS=$as_save_IFS
12171
12172 ;;
12173 esac
12174 fi
12175 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12176 if test -n "$PKG_CONFIG"; then
12177 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12178 $as_echo "$PKG_CONFIG" >&6; }
12179 else
12180 { $as_echo "$as_me:$LINENO: result: no" >&5
12181 $as_echo "no" >&6; }
12182 fi
12183
12184
12185 fi
12186 if test -z "$ac_cv_path_PKG_CONFIG"; then
12187 ac_pt_PKG_CONFIG=$PKG_CONFIG
12188 # Extract the first word of "pkg-config", so it can be a program name with args.
12189 set dummy pkg-config; ac_word=$2
12190 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12191 $as_echo_n "checking for $ac_word... " >&6; }
12192 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
12193 $as_echo_n "(cached) " >&6
12194 else
12195 case $ac_pt_PKG_CONFIG in
12196 [\\/]* | ?:[\\/]*)
12197 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12198 ;;
12199 *)
12200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12201 for as_dir in $PATH
12202 do
12203 IFS=$as_save_IFS
12204 test -z "$as_dir" && as_dir=.
12205 for ac_exec_ext in '' $ac_executable_extensions; do
12206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12207 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12208 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12209 break 2
12210 fi
12211 done
12212 done
12213 IFS=$as_save_IFS
12214
12215 ;;
12216 esac
12217 fi
12218 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12219 if test -n "$ac_pt_PKG_CONFIG"; then
12220 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
12221 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12222 else
12223 { $as_echo "$as_me:$LINENO: result: no" >&5
12224 $as_echo "no" >&6; }
12225 fi
12226
12227 if test "x$ac_pt_PKG_CONFIG" = x; then
12228 PKG_CONFIG=""
12229 else
12230 case $cross_compiling:$ac_tool_warned in
12231 yes:)
12232 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12234 ac_tool_warned=yes ;;
12235 esac
12236 PKG_CONFIG=$ac_pt_PKG_CONFIG
12237 fi
12238 else
12239 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12240 fi
12241
12242 fi
12243 if test -n "$PKG_CONFIG"; then
12244 _pkg_min_version=0.9.0
12245 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
12246 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12247 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12248 { $as_echo "$as_me:$LINENO: result: yes" >&5
12249 $as_echo "yes" >&6; }
12250 else
12251 { $as_echo "$as_me:$LINENO: result: no" >&5
12252 $as_echo "no" >&6; }
12253 PKG_CONFIG=""
12254 fi
12255
12256 fi
12257
12258 pkg_failed=no
12259 { $as_echo "$as_me:$LINENO: checking for XORG" >&5
12260 $as_echo_n "checking for XORG... " >&6; }
12261
12262 if test -n "$XORG_CFLAGS"; then
12263 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
12264 elif test -n "$PKG_CONFIG"; then
12265 if test -n "$PKG_CONFIG" && \
12266 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
12267 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
12268 ac_status=$?
12269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); }; then
12271 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
12272 else
12273 pkg_failed=yes
12274 fi
12275 else
12276 pkg_failed=untried
12277 fi
12278 if test -n "$XORG_LIBS"; then
12279 pkg_cv_XORG_LIBS="$XORG_LIBS"
12280 elif test -n "$PKG_CONFIG"; then
12281 if test -n "$PKG_CONFIG" && \
12282 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
12283 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
12284 ac_status=$?
12285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); }; then
12287 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
12288 else
12289 pkg_failed=yes
12290 fi
12291 else
12292 pkg_failed=untried
12293 fi
12294
12295
12296
12297 if test $pkg_failed = yes; then
12298
12299 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12300 _pkg_short_errors_supported=yes
12301 else
12302 _pkg_short_errors_supported=no
12303 fi
12304 if test $_pkg_short_errors_supported = yes; then
12305 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
12306 else
12307 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
12308 fi
12309 # Put the nasty error message in config.log where it belongs
12310 echo "$XORG_PKG_ERRORS" >&5
12311
12312 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
12313
12314 $XORG_PKG_ERRORS
12315
12316 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12317 installed software in a non-standard prefix.
12318
12319 Alternatively, you may set the environment variables XORG_CFLAGS
12320 and XORG_LIBS to avoid the need to call pkg-config.
12321 See the pkg-config man page for more details.
12322 " >&5
12323 $as_echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
12324
12325 $XORG_PKG_ERRORS
12326
12327 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12328 installed software in a non-standard prefix.
12329
12330 Alternatively, you may set the environment variables XORG_CFLAGS
12331 and XORG_LIBS to avoid the need to call pkg-config.
12332 See the pkg-config man page for more details.
12333 " >&2;}
12334 { (exit 1); exit 1; }; }
12335 elif test $pkg_failed = untried; then
12336 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12338 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12339 is in your PATH or set the PKG_CONFIG environment variable to the full
12340 path to pkg-config.
12341
12342 Alternatively, you may set the environment variables XORG_CFLAGS
12343 and XORG_LIBS to avoid the need to call pkg-config.
12344 See the pkg-config man page for more details.
12345
12346 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12347 See \`config.log' for more details." >&5
12348 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12349 is in your PATH or set the PKG_CONFIG environment variable to the full
12350 path to pkg-config.
12351
12352 Alternatively, you may set the environment variables XORG_CFLAGS
12353 and XORG_LIBS to avoid the need to call pkg-config.
12354 See the pkg-config man page for more details.
12355
12356 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12357 See \`config.log' for more details." >&2;}
12358 { (exit 1); exit 1; }; }; }
12359 else
12360 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
12361 XORG_LIBS=$pkg_cv_XORG_LIBS
12362 { $as_echo "$as_me:$LINENO: result: yes" >&5
12363 $as_echo "yes" >&6; }
12364 :
12365 fi
12366 sdkdir=$(pkg-config --variable=sdkdir xorg-server)
12367
12368 # Checks for libraries.
12369 SAVE_CPPFLAGS="$CPPFLAGS"
12370 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
12371 { $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5
12372 $as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; }
12373 if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then
12374 $as_echo_n "(cached) " >&6
12375 else
12376 cat >conftest.$ac_ext <<_ACEOF
12377 /* confdefs.h. */
12378 _ACEOF
12379 cat confdefs.h >>conftest.$ac_ext
12380 cat >>conftest.$ac_ext <<_ACEOF
12381 /* end confdefs.h. */
12382 #include "xorg-server.h"
12383
12384 int
12385 main ()
12386 {
12387 #ifndef XSERVER_LIBPCIACCESS
12388 (void) XSERVER_LIBPCIACCESS;
12389 #endif
12390
12391 ;
12392 return 0;
12393 }
12394 _ACEOF
12395 rm -f conftest.$ac_objext
12396 if { (ac_try="$ac_compile"
12397 case "(($ac_try" in
12398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12399 *) ac_try_echo=$ac_try;;
12400 esac
12401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12402 $as_echo "$ac_try_echo") >&5
12403 (eval "$ac_compile") 2>conftest.er1
12404 ac_status=$?
12405 grep -v '^ *+' conftest.er1 >conftest.err
12406 rm -f conftest.er1
12407 cat conftest.err >&5
12408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); } && {
12410 test -z "$ac_c_werror_flag" ||
12411 test ! -s conftest.err
12412 } && test -s conftest.$ac_objext; then
12413 ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes
12414 else
12415 $as_echo "$as_me: failed program was:" >&5
12416 sed 's/^/| /' conftest.$ac_ext >&5
12417
12418 ac_cv_have_decl_XSERVER_LIBPCIACCESS=no
12419 fi
12420
12421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12422 fi
12423 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5
12424 $as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; }
12425 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then
12426 XSERVER_LIBPCIACCESS=yes
12427 else
12428 XSERVER_LIBPCIACCESS=no
12429 fi
12430
12431 CPPFLAGS="$SAVE_CPPFLAGS"
12432
12433 # Checks for header files.
12434 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12435 $as_echo_n "checking for ANSI C header files... " >&6; }
12436 if test "${ac_cv_header_stdc+set}" = set; then
12437 $as_echo_n "(cached) " >&6
12438 else
12439 cat >conftest.$ac_ext <<_ACEOF
12440 /* confdefs.h. */
12441 _ACEOF
12442 cat confdefs.h >>conftest.$ac_ext
12443 cat >>conftest.$ac_ext <<_ACEOF
12444 /* end confdefs.h. */
12445 #include <stdlib.h>
12446 #include <stdarg.h>
12447 #include <string.h>
12448 #include <float.h>
12449
12450 int
12451 main ()
12452 {
12453
12454 ;
12455 return 0;
12456 }
12457 _ACEOF
12458 rm -f conftest.$ac_objext
12459 if { (ac_try="$ac_compile"
12460 case "(($ac_try" in
12461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12462 *) ac_try_echo=$ac_try;;
12463 esac
12464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12465 $as_echo "$ac_try_echo") >&5
12466 (eval "$ac_compile") 2>conftest.er1
12467 ac_status=$?
12468 grep -v '^ *+' conftest.er1 >conftest.err
12469 rm -f conftest.er1
12470 cat conftest.err >&5
12471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); } && {
12473 test -z "$ac_c_werror_flag" ||
12474 test ! -s conftest.err
12475 } && test -s conftest.$ac_objext; then
12476 ac_cv_header_stdc=yes
12477 else
12478 $as_echo "$as_me: failed program was:" >&5
12479 sed 's/^/| /' conftest.$ac_ext >&5
12480
12481 ac_cv_header_stdc=no
12482 fi
12483
12484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12485
12486 if test $ac_cv_header_stdc = yes; then
12487 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12488 cat >conftest.$ac_ext <<_ACEOF
12489 /* confdefs.h. */
12490 _ACEOF
12491 cat confdefs.h >>conftest.$ac_ext
12492 cat >>conftest.$ac_ext <<_ACEOF
12493 /* end confdefs.h. */
12494 #include <string.h>
12495
12496 _ACEOF
12497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12498 $EGREP "memchr" >/dev/null 2>&1; then
12499 :
12500 else
12501 ac_cv_header_stdc=no
12502 fi
12503 rm -f conftest*
12504
12505 fi
12506
12507 if test $ac_cv_header_stdc = yes; then
12508 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12509 cat >conftest.$ac_ext <<_ACEOF
12510 /* confdefs.h. */
12511 _ACEOF
12512 cat confdefs.h >>conftest.$ac_ext
12513 cat >>conftest.$ac_ext <<_ACEOF
12514 /* end confdefs.h. */
12515 #include <stdlib.h>
12516
12517 _ACEOF
12518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12519 $EGREP "free" >/dev/null 2>&1; then
12520 :
12521 else
12522 ac_cv_header_stdc=no
12523 fi
12524 rm -f conftest*
12525
12526 fi
12527
12528 if test $ac_cv_header_stdc = yes; then
12529 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12530 if test "$cross_compiling" = yes; then
12531 :
12532 else
12533 cat >conftest.$ac_ext <<_ACEOF
12534 /* confdefs.h. */
12535 _ACEOF
12536 cat confdefs.h >>conftest.$ac_ext
12537 cat >>conftest.$ac_ext <<_ACEOF
12538 /* end confdefs.h. */
12539 #include <ctype.h>
12540 #include <stdlib.h>
12541 #if ((' ' & 0x0FF) == 0x020)
12542 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12543 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12544 #else
12545 # define ISLOWER(c) \
12546 (('a' <= (c) && (c) <= 'i') \
12547 || ('j' <= (c) && (c) <= 'r') \
12548 || ('s' <= (c) && (c) <= 'z'))
12549 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12550 #endif
12551
12552 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12553 int
12554 main ()
12555 {
12556 int i;
12557 for (i = 0; i < 256; i++)
12558 if (XOR (islower (i), ISLOWER (i))
12559 || toupper (i) != TOUPPER (i))
12560 return 2;
12561 return 0;
12562 }
12563 _ACEOF
12564 rm -f conftest$ac_exeext
12565 if { (ac_try="$ac_link"
12566 case "(($ac_try" in
12567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12568 *) ac_try_echo=$ac_try;;
12569 esac
12570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12571 $as_echo "$ac_try_echo") >&5
12572 (eval "$ac_link") 2>&5
12573 ac_status=$?
12574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12576 { (case "(($ac_try" in
12577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12578 *) ac_try_echo=$ac_try;;
12579 esac
12580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12581 $as_echo "$ac_try_echo") >&5
12582 (eval "$ac_try") 2>&5
12583 ac_status=$?
12584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); }; }; then
12586 :
12587 else
12588 $as_echo "$as_me: program exited with status $ac_status" >&5
12589 $as_echo "$as_me: failed program was:" >&5
12590 sed 's/^/| /' conftest.$ac_ext >&5
12591
12592 ( exit $ac_status )
12593 ac_cv_header_stdc=no
12594 fi
12595 rm -rf conftest.dSYM
12596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12597 fi
12598
12599
12600 fi
12601 fi
12602 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12603 $as_echo "$ac_cv_header_stdc" >&6; }
12604 if test $ac_cv_header_stdc = yes; then
12605
12606 cat >>confdefs.h <<\_ACEOF
12607 #define STDC_HEADERS 1
12608 _ACEOF
12609
12610 fi
12611
12612
12613 if test "$DRI" != no; then
12614 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
12615 { $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dri.h" >&5
12616 $as_echo_n "checking for ${sdkdir}/dri.h... " >&6; }
12617 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
12618 $as_echo_n "(cached) " >&6
12619 else
12620 test "$cross_compiling" = yes &&
12621 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
12622 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
12623 { (exit 1); exit 1; }; }
12624 if test -r "${sdkdir}/dri.h"; then
12625 eval "$as_ac_File=yes"
12626 else
12627 eval "$as_ac_File=no"
12628 fi
12629 fi
12630 ac_res=`eval 'as_val=${'$as_ac_File'}
12631 $as_echo "$as_val"'`
12632 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12633 $as_echo "$ac_res" >&6; }
12634 as_val=`eval 'as_val=${'$as_ac_File'}
12635 $as_echo "$as_val"'`
12636 if test "x$as_val" = x""yes; then
12637 have_dri_h="yes"
12638 else
12639 have_dri_h="no"
12640 fi
12641
12642 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
12643 { $as_echo "$as_me:$LINENO: checking for ${sdkdir}/sarea.h" >&5
12644 $as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; }
12645 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
12646 $as_echo_n "(cached) " >&6
12647 else
12648 test "$cross_compiling" = yes &&
12649 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
12650 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
12651 { (exit 1); exit 1; }; }
12652 if test -r "${sdkdir}/sarea.h"; then
12653 eval "$as_ac_File=yes"
12654 else
12655 eval "$as_ac_File=no"
12656 fi
12657 fi
12658 ac_res=`eval 'as_val=${'$as_ac_File'}
12659 $as_echo "$as_val"'`
12660 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12661 $as_echo "$ac_res" >&6; }
12662 as_val=`eval 'as_val=${'$as_ac_File'}
12663 $as_echo "$as_val"'`
12664 if test "x$as_val" = x""yes; then
12665 have_sarea_h="yes"
12666 else
12667 have_sarea_h="no"
12668 fi
12669
12670 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
12671 { $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dristruct.h" >&5
12672 $as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; }
12673 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
12674 $as_echo_n "(cached) " >&6
12675 else
12676 test "$cross_compiling" = yes &&
12677 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
12678 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
12679 { (exit 1); exit 1; }; }
12680 if test -r "${sdkdir}/dristruct.h"; then
12681 eval "$as_ac_File=yes"
12682 else
12683 eval "$as_ac_File=no"
12684 fi
12685 fi
12686 ac_res=`eval 'as_val=${'$as_ac_File'}
12687 $as_echo "$as_val"'`
12688 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12689 $as_echo "$ac_res" >&6; }
12690 as_val=`eval 'as_val=${'$as_ac_File'}
12691 $as_echo "$as_val"'`
12692 if test "x$as_val" = x""yes; then
12693 have_dristruct_h="yes"
12694 else
12695 have_dristruct_h="no"
12696 fi
12697
12698 fi
12699
12700 { $as_echo "$as_me:$LINENO: checking whether to include DRI support" >&5
12701 $as_echo_n "checking whether to include DRI support... " >&6; }
12702 if test x$DRI = xauto; then
12703 if test "$have_dri_h" = yes -a \
12704 "$have_sarea_h" = yes -a \
12705 "$have_dristruct_h" = yes; then
12706 DRI="yes"
12707 else
12708 DRI="no"
12709 fi
12710 fi
12711 { $as_echo "$as_me:$LINENO: result: $DRI" >&5
12712 $as_echo "$DRI" >&6; }
12713
12714 if test x$DRI = xyes; then
12715 DRI_TRUE=
12716 DRI_FALSE='#'
12717 else
12718 DRI_TRUE='#'
12719 DRI_FALSE=
12720 fi
12721
12722 if test "$DRI" = yes; then
12723
12724 pkg_failed=no
12725 { $as_echo "$as_me:$LINENO: checking for DRI" >&5
12726 $as_echo_n "checking for DRI... " >&6; }
12727
12728 if test -n "$DRI_CFLAGS"; then
12729 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
12730 elif test -n "$PKG_CONFIG"; then
12731 if test -n "$PKG_CONFIG" && \
12732 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\"") >&5
12733 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
12734 ac_status=$?
12735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); }; then
12737 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null`
12738 else
12739 pkg_failed=yes
12740 fi
12741 else
12742 pkg_failed=untried
12743 fi
12744 if test -n "$DRI_LIBS"; then
12745 pkg_cv_DRI_LIBS="$DRI_LIBS"
12746 elif test -n "$PKG_CONFIG"; then
12747 if test -n "$PKG_CONFIG" && \
12748 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\"") >&5
12749 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
12750 ac_status=$?
12751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); }; then
12753 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null`
12754 else
12755 pkg_failed=yes
12756 fi
12757 else
12758 pkg_failed=untried
12759 fi
12760
12761
12762
12763 if test $pkg_failed = yes; then
12764
12765 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12766 _pkg_short_errors_supported=yes
12767 else
12768 _pkg_short_errors_supported=no
12769 fi
12770 if test $_pkg_short_errors_supported = yes; then
12771 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.0 xf86driproto" 2>&1`
12772 else
12773 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.0 xf86driproto" 2>&1`
12774 fi
12775 # Put the nasty error message in config.log where it belongs
12776 echo "$DRI_PKG_ERRORS" >&5
12777
12778 { { $as_echo "$as_me:$LINENO: error: Package requirements (libdrm >= 2.0 xf86driproto) were not met:
12779
12780 $DRI_PKG_ERRORS
12781
12782 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12783 installed software in a non-standard prefix.
12784
12785 Alternatively, you may set the environment variables DRI_CFLAGS
12786 and DRI_LIBS to avoid the need to call pkg-config.
12787 See the pkg-config man page for more details.
12788 " >&5
12789 $as_echo "$as_me: error: Package requirements (libdrm >= 2.0 xf86driproto) were not met:
12790
12791 $DRI_PKG_ERRORS
12792
12793 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12794 installed software in a non-standard prefix.
12795
12796 Alternatively, you may set the environment variables DRI_CFLAGS
12797 and DRI_LIBS to avoid the need to call pkg-config.
12798 See the pkg-config man page for more details.
12799 " >&2;}
12800 { (exit 1); exit 1; }; }
12801 elif test $pkg_failed = untried; then
12802 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12803 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12804 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12805 is in your PATH or set the PKG_CONFIG environment variable to the full
12806 path to pkg-config.
12807
12808 Alternatively, you may set the environment variables DRI_CFLAGS
12809 and DRI_LIBS to avoid the need to call pkg-config.
12810 See the pkg-config man page for more details.
12811
12812 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12813 See \`config.log' for more details." >&5
12814 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12815 is in your PATH or set the PKG_CONFIG environment variable to the full
12816 path to pkg-config.
12817
12818 Alternatively, you may set the environment variables DRI_CFLAGS
12819 and DRI_LIBS to avoid the need to call pkg-config.
12820 See the pkg-config man page for more details.
12821
12822 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12823 See \`config.log' for more details." >&2;}
12824 { (exit 1); exit 1; }; }; }
12825 else
12826 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
12827 DRI_LIBS=$pkg_cv_DRI_LIBS
12828 { $as_echo "$as_me:$LINENO: result: yes" >&5
12829 $as_echo "yes" >&6; }
12830 :
12831 fi
12832
12833 cat >>confdefs.h <<\_ACEOF
12834 #define XF86DRI 1
12835 _ACEOF
12836
12837
12838 cat >>confdefs.h <<\_ACEOF
12839 #define XF86DRI_DEVEL 1
12840 _ACEOF
12841
12842 fi
12843
12844 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
12845
12846 pkg_failed=no
12847 { $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5
12848 $as_echo_n "checking for PCIACCESS... " >&6; }
12849
12850 if test -n "$PCIACCESS_CFLAGS"; then
12851 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
12852 elif test -n "$PKG_CONFIG"; then
12853 if test -n "$PKG_CONFIG" && \
12854 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
12855 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
12856 ac_status=$?
12857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); }; then
12859 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
12860 else
12861 pkg_failed=yes
12862 fi
12863 else
12864 pkg_failed=untried
12865 fi
12866 if test -n "$PCIACCESS_LIBS"; then
12867 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
12868 elif test -n "$PKG_CONFIG"; then
12869 if test -n "$PKG_CONFIG" && \
12870 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
12871 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
12872 ac_status=$?
12873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); }; then
12875 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
12876 else
12877 pkg_failed=yes
12878 fi
12879 else
12880 pkg_failed=untried
12881 fi
12882
12883
12884
12885 if test $pkg_failed = yes; then
12886
12887 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12888 _pkg_short_errors_supported=yes
12889 else
12890 _pkg_short_errors_supported=no
12891 fi
12892 if test $_pkg_short_errors_supported = yes; then
12893 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
12894 else
12895 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
12896 fi
12897 # Put the nasty error message in config.log where it belongs
12898 echo "$PCIACCESS_PKG_ERRORS" >&5
12899
12900 { { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met:
12901
12902 $PCIACCESS_PKG_ERRORS
12903
12904 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12905 installed software in a non-standard prefix.
12906
12907 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12908 and PCIACCESS_LIBS to avoid the need to call pkg-config.
12909 See the pkg-config man page for more details.
12910 " >&5
12911 $as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met:
12912
12913 $PCIACCESS_PKG_ERRORS
12914
12915 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12916 installed software in a non-standard prefix.
12917
12918 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12919 and PCIACCESS_LIBS to avoid the need to call pkg-config.
12920 See the pkg-config man page for more details.
12921 " >&2;}
12922 { (exit 1); exit 1; }; }
12923 elif test $pkg_failed = untried; then
12924 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12926 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12927 is in your PATH or set the PKG_CONFIG environment variable to the full
12928 path to pkg-config.
12929
12930 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12931 and PCIACCESS_LIBS to avoid the need to call pkg-config.
12932 See the pkg-config man page for more details.
12933
12934 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12935 See \`config.log' for more details." >&5
12936 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12937 is in your PATH or set the PKG_CONFIG environment variable to the full
12938 path to pkg-config.
12939
12940 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12941 and PCIACCESS_LIBS to avoid the need to call pkg-config.
12942 See the pkg-config man page for more details.
12943
12944 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12945 See \`config.log' for more details." >&2;}
12946 { (exit 1); exit 1; }; }; }
12947 else
12948 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
12949 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
12950 { $as_echo "$as_me:$LINENO: result: yes" >&5
12951 $as_echo "yes" >&6; }
12952 :
12953 fi
12954 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
12955 fi
12956 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
12957 XSERVER_LIBPCIACCESS_TRUE=
12958 XSERVER_LIBPCIACCESS_FALSE='#'
12959 else
12960 XSERVER_LIBPCIACCESS_TRUE='#'
12961 XSERVER_LIBPCIACCESS_FALSE=
12962 fi
12963
12964
12965
12966
12967
12968
12969 DRIVER_NAME=tdfx
12970
12971
12972
12973
12974
12975 if test x$APP_MAN_SUFFIX = x ; then
12976 APP_MAN_SUFFIX=1
12977 fi
12978 if test x$APP_MAN_DIR = x ; then
12979 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
12980 fi
12981
12982 if test x$LIB_MAN_SUFFIX = x ; then
12983 LIB_MAN_SUFFIX=3
12984 fi
12985 if test x$LIB_MAN_DIR = x ; then
12986 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
12987 fi
12988
12989 if test x$FILE_MAN_SUFFIX = x ; then
12990 case $host_os in
12991 solaris*) FILE_MAN_SUFFIX=4 ;;
12992 *) FILE_MAN_SUFFIX=5 ;;
12993 esac
12994 fi
12995 if test x$FILE_MAN_DIR = x ; then
12996 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
12997 fi
12998
12999 if test x$MISC_MAN_SUFFIX = x ; then
13000 case $host_os in
13001 solaris*) MISC_MAN_SUFFIX=5 ;;
13002 *) MISC_MAN_SUFFIX=7 ;;
13003 esac
13004 fi
13005 if test x$MISC_MAN_DIR = x ; then
13006 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
13007 fi
13008
13009 if test x$DRIVER_MAN_SUFFIX = x ; then
13010 case $host_os in
13011 solaris*) DRIVER_MAN_SUFFIX=7 ;;
13012 *) DRIVER_MAN_SUFFIX=4 ;;
13013 esac
13014 fi
13015 if test x$DRIVER_MAN_DIR = x ; then
13016 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
13017 fi
13018
13019 if test x$ADMIN_MAN_SUFFIX = x ; then
13020 case $host_os in
13021 solaris*) ADMIN_MAN_SUFFIX=1m ;;
13022 *) ADMIN_MAN_SUFFIX=8 ;;
13023 esac
13024 fi
13025 if test x$ADMIN_MAN_DIR = x ; then
13026 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
13027 fi
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045 # Check whether --with-release-version was given.
13046 if test "${with_release_version+set}" = set; then
13047 withval=$with_release_version; RELEASE_VERSION="$withval"
13048 else
13049 RELEASE_VERSION=""
13050 fi
13051
13052 if test "x$RELEASE_VERSION" != "x"; then
13053 PACKAGE="$PACKAGE-$RELEASE_VERSION"
13054 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
13055 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
13056 $as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
13057 fi
13058
13059 cat >>confdefs.h <<_ACEOF
13060 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
13061 _ACEOF
13062
13063 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
13064 if test "x$PVM" = "x"; then
13065 PVM="0"
13066 fi
13067
13068 cat >>confdefs.h <<_ACEOF
13069 #define PACKAGE_VERSION_MINOR $PVM
13070 _ACEOF
13071
13072 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
13073 if test "x$PVP" = "x"; then
13074 PVP="0"
13075 fi
13076
13077 cat >>confdefs.h <<_ACEOF
13078 #define PACKAGE_VERSION_PATCHLEVEL $PVP
13079 _ACEOF
13080
13081
13082
13083 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
13084
13085 cat >confcache <<\_ACEOF
13086 # This file is a shell script that caches the results of configure
13087 # tests run on this system so they can be shared between configure
13088 # scripts and configure runs, see configure's option --config-cache.
13089 # It is not useful on other systems. If it contains results you don't
13090 # want to keep, you may remove or edit it.
13091 #
13092 # config.status only pays attention to the cache file if you give it
13093 # the --recheck option to rerun configure.
13094 #
13095 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13096 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13097 # following values.
13098
13099 _ACEOF
13100
13101 # The following way of writing the cache mishandles newlines in values,
13102 # but we know of no workaround that is simple, portable, and efficient.
13103 # So, we kill variables containing newlines.
13104 # Ultrix sh set writes to stderr and can't be redirected directly,
13105 # and sets the high bit in the cache file unless we assign to the vars.
13106 (
13107 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13108 eval ac_val=\$$ac_var
13109 case $ac_val in #(
13110 *${as_nl}*)
13111 case $ac_var in #(
13112 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13113 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13114 esac
13115 case $ac_var in #(
13116 _ | IFS | as_nl) ;; #(
13117 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13118 *) $as_unset $ac_var ;;
13119 esac ;;
13120 esac
13121 done
13122
13123 (set) 2>&1 |
13124 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13125 *${as_nl}ac_space=\ *)
13126 # `set' does not quote correctly, so add quotes (double-quote
13127 # substitution turns \\\\ into \\, and sed turns \\ into \).
13128 sed -n \
13129 "s/'/'\\\\''/g;
13130 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13131 ;; #(
13132 *)
13133 # `set' quotes correctly as required by POSIX, so do not add quotes.
13134 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13135 ;;
13136 esac |
13137 sort
13138 ) |
13139 sed '
13140 /^ac_cv_env_/b end
13141 t clear
13142 :clear
13143 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13144 t end
13145 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13146 :end' >>confcache
13147 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13148 if test -w "$cache_file"; then
13149 test "x$cache_file" != "x/dev/null" &&
13150 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13151 $as_echo "$as_me: updating cache $cache_file" >&6;}
13152 cat confcache >$cache_file
13153 else
13154 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13155 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13156 fi
13157 fi
13158 rm -f confcache
13159
13160 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13161 # Let make expand exec_prefix.
13162 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13163
13164 DEFS=-DHAVE_CONFIG_H
13165
13166 ac_libobjs=
13167 ac_ltlibobjs=
13168 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13169 # 1. Remove the extension, and $U if already installed.
13170 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13171 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13172 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13173 # will be set to the directory where LIBOBJS objects are built.
13174 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13175 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13176 done
13177 LIBOBJS=$ac_libobjs
13178
13179 LTLIBOBJS=$ac_ltlibobjs
13180
13181
13182 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13183 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13184 Usually this means the macro was only invoked conditionally." >&5
13185 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13186 Usually this means the macro was only invoked conditionally." >&2;}
13187 { (exit 1); exit 1; }; }
13188 fi
13189 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13190 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13191 Usually this means the macro was only invoked conditionally." >&5
13192 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
13193 Usually this means the macro was only invoked conditionally." >&2;}
13194 { (exit 1); exit 1; }; }
13195 fi
13196 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13197 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13198 Usually this means the macro was only invoked conditionally." >&5
13199 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13200 Usually this means the macro was only invoked conditionally." >&2;}
13201 { (exit 1); exit 1; }; }
13202 fi
13203 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13204 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13205 Usually this means the macro was only invoked conditionally." >&5
13206 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13207 Usually this means the macro was only invoked conditionally." >&2;}
13208 { (exit 1); exit 1; }; }
13209 fi
13210 if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
13211 { { $as_echo "$as_me:$LINENO: error: conditional \"DRI\" was never defined.
13212 Usually this means the macro was only invoked conditionally." >&5
13213 $as_echo "$as_me: error: conditional \"DRI\" was never defined.
13214 Usually this means the macro was only invoked conditionally." >&2;}
13215 { (exit 1); exit 1; }; }
13216 fi
13217 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
13218 { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
13219 Usually this means the macro was only invoked conditionally." >&5
13220 $as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
13221 Usually this means the macro was only invoked conditionally." >&2;}
13222 { (exit 1); exit 1; }; }
13223 fi
13224
13225 : ${CONFIG_STATUS=./config.status}
13226 ac_write_fail=0
13227 ac_clean_files_save=$ac_clean_files
13228 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13229 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13230 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13231 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13232 #! $SHELL
13233 # Generated by $as_me.
13234 # Run this file to recreate the current configuration.
13235 # Compiler output produced by configure, useful for debugging
13236 # configure, is in config.log if it exists.
13237
13238 debug=false
13239 ac_cs_recheck=false
13240 ac_cs_silent=false
13241 SHELL=\${CONFIG_SHELL-$SHELL}
13242 _ACEOF
13243
13244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13245 ## --------------------- ##
13246 ## M4sh Initialization. ##
13247 ## --------------------- ##
13248
13249 # Be more Bourne compatible
13250 DUALCASE=1; export DUALCASE # for MKS sh
13251 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13252 emulate sh
13253 NULLCMD=:
13254 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13255 # is contrary to our usage. Disable this feature.
13256 alias -g '${1+"$@"}'='"$@"'
13257 setopt NO_GLOB_SUBST
13258 else
13259 case `(set -o) 2>/dev/null` in
13260 *posix*) set -o posix ;;
13261 esac
13262
13263 fi
13264
13265
13266
13267
13268 # PATH needs CR
13269 # Avoid depending upon Character Ranges.
13270 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13271 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13272 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13273 as_cr_digits='0123456789'
13274 as_cr_alnum=$as_cr_Letters$as_cr_digits
13275
13276 as_nl='
13277 '
13278 export as_nl
13279 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13280 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13281 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13282 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13283 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13284 as_echo='printf %s\n'
13285 as_echo_n='printf %s'
13286 else
13287 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13288 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13289 as_echo_n='/usr/ucb/echo -n'
13290 else
13291 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13292 as_echo_n_body='eval
13293 arg=$1;
13294 case $arg in
13295 *"$as_nl"*)
13296 expr "X$arg" : "X\\(.*\\)$as_nl";
13297 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13298 esac;
13299 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13300 '
13301 export as_echo_n_body
13302 as_echo_n='sh -c $as_echo_n_body as_echo'
13303 fi
13304 export as_echo_body
13305 as_echo='sh -c $as_echo_body as_echo'
13306 fi
13307
13308 # The user is always right.
13309 if test "${PATH_SEPARATOR+set}" != set; then
13310 PATH_SEPARATOR=:
13311 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13312 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13313 PATH_SEPARATOR=';'
13314 }
13315 fi
13316
13317 # Support unset when possible.
13318 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13319 as_unset=unset
13320 else
13321 as_unset=false
13322 fi
13323
13324
13325 # IFS
13326 # We need space, tab and new line, in precisely that order. Quoting is
13327 # there to prevent editors from complaining about space-tab.
13328 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13329 # splitting by setting IFS to empty value.)
13330 IFS=" "" $as_nl"
13331
13332 # Find who we are. Look in the path if we contain no directory separator.
13333 case $0 in
13334 *[\\/]* ) as_myself=$0 ;;
13335 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13336 for as_dir in $PATH
13337 do
13338 IFS=$as_save_IFS
13339 test -z "$as_dir" && as_dir=.
13340 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13341 done
13342 IFS=$as_save_IFS
13343
13344 ;;
13345 esac
13346 # We did not find ourselves, most probably we were run as `sh COMMAND'
13347 # in which case we are not to be found in the path.
13348 if test "x$as_myself" = x; then
13349 as_myself=$0
13350 fi
13351 if test ! -f "$as_myself"; then
13352 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13353 { (exit 1); exit 1; }
13354 fi
13355
13356 # Work around bugs in pre-3.0 UWIN ksh.
13357 for as_var in ENV MAIL MAILPATH
13358 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13359 done
13360 PS1='$ '
13361 PS2='> '
13362 PS4='+ '
13363
13364 # NLS nuisances.
13365 LC_ALL=C
13366 export LC_ALL
13367 LANGUAGE=C
13368 export LANGUAGE
13369
13370 # Required to use basename.
13371 if expr a : '\(a\)' >/dev/null 2>&1 &&
13372 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13373 as_expr=expr
13374 else
13375 as_expr=false
13376 fi
13377
13378 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13379 as_basename=basename
13380 else
13381 as_basename=false
13382 fi
13383
13384
13385 # Name of the executable.
13386 as_me=`$as_basename -- "$0" ||
13387 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13388 X"$0" : 'X\(//\)$' \| \
13389 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13390 $as_echo X/"$0" |
13391 sed '/^.*\/\([^/][^/]*\)\/*$/{
13392 s//\1/
13393 q
13394 }
13395 /^X\/\(\/\/\)$/{
13396 s//\1/
13397 q
13398 }
13399 /^X\/\(\/\).*/{
13400 s//\1/
13401 q
13402 }
13403 s/.*/./; q'`
13404
13405 # CDPATH.
13406 $as_unset CDPATH
13407
13408
13409
13410 as_lineno_1=$LINENO
13411 as_lineno_2=$LINENO
13412 test "x$as_lineno_1" != "x$as_lineno_2" &&
13413 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13414
13415 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13416 # uniformly replaced by the line number. The first 'sed' inserts a
13417 # line-number line after each line using $LINENO; the second 'sed'
13418 # does the real work. The second script uses 'N' to pair each
13419 # line-number line with the line containing $LINENO, and appends
13420 # trailing '-' during substitution so that $LINENO is not a special
13421 # case at line end.
13422 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13423 # scripts with optimization help from Paolo Bonzini. Blame Lee
13424 # E. McMahon (1931-1989) for sed's syntax. :-)
13425 sed -n '
13426 p
13427 /[$]LINENO/=
13428 ' <$as_myself |
13429 sed '
13430 s/[$]LINENO.*/&-/
13431 t lineno
13432 b
13433 :lineno
13434 N
13435 :loop
13436 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13437 t loop
13438 s/-\n.*//
13439 ' >$as_me.lineno &&
13440 chmod +x "$as_me.lineno" ||
13441 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13442 { (exit 1); exit 1; }; }
13443
13444 # Don't try to exec as it changes $[0], causing all sort of problems
13445 # (the dirname of $[0] is not the place where we might find the
13446 # original and so on. Autoconf is especially sensitive to this).
13447 . "./$as_me.lineno"
13448 # Exit status is that of the last command.
13449 exit
13450 }
13451
13452
13453 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13454 as_dirname=dirname
13455 else
13456 as_dirname=false
13457 fi
13458
13459 ECHO_C= ECHO_N= ECHO_T=
13460 case `echo -n x` in
13461 -n*)
13462 case `echo 'x\c'` in
13463 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13464 *) ECHO_C='\c';;
13465 esac;;
13466 *)
13467 ECHO_N='-n';;
13468 esac
13469 if expr a : '\(a\)' >/dev/null 2>&1 &&
13470 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13471 as_expr=expr
13472 else
13473 as_expr=false
13474 fi
13475
13476 rm -f conf$$ conf$$.exe conf$$.file
13477 if test -d conf$$.dir; then
13478 rm -f conf$$.dir/conf$$.file
13479 else
13480 rm -f conf$$.dir
13481 mkdir conf$$.dir 2>/dev/null
13482 fi
13483 if (echo >conf$$.file) 2>/dev/null; then
13484 if ln -s conf$$.file conf$$ 2>/dev/null; then
13485 as_ln_s='ln -s'
13486 # ... but there are two gotchas:
13487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13489 # In both cases, we have to default to `cp -p'.
13490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13491 as_ln_s='cp -p'
13492 elif ln conf$$.file conf$$ 2>/dev/null; then
13493 as_ln_s=ln
13494 else
13495 as_ln_s='cp -p'
13496 fi
13497 else
13498 as_ln_s='cp -p'
13499 fi
13500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13501 rmdir conf$$.dir 2>/dev/null
13502
13503 if mkdir -p . 2>/dev/null; then
13504 as_mkdir_p=:
13505 else
13506 test -d ./-p && rmdir ./-p
13507 as_mkdir_p=false
13508 fi
13509
13510 if test -x / >/dev/null 2>&1; then
13511 as_test_x='test -x'
13512 else
13513 if ls -dL / >/dev/null 2>&1; then
13514 as_ls_L_option=L
13515 else
13516 as_ls_L_option=
13517 fi
13518 as_test_x='
13519 eval sh -c '\''
13520 if test -d "$1"; then
13521 test -d "$1/.";
13522 else
13523 case $1 in
13524 -*)set "./$1";;
13525 esac;
13526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13527 ???[sx]*):;;*)false;;esac;fi
13528 '\'' sh
13529 '
13530 fi
13531 as_executable_p=$as_test_x
13532
13533 # Sed expression to map a string onto a valid CPP name.
13534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13535
13536 # Sed expression to map a string onto a valid variable name.
13537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13538
13539
13540 exec 6>&1
13541
13542 # Save the log message, to keep $[0] and so on meaningful, and to
13543 # report actual input values of CONFIG_FILES etc. instead of their
13544 # values after options handling.
13545 ac_log="
13546 This file was extended by xf86-video-tdfx $as_me 1.4.2, which was
13547 generated by GNU Autoconf 2.63. Invocation command line was
13548
13549 CONFIG_FILES = $CONFIG_FILES
13550 CONFIG_HEADERS = $CONFIG_HEADERS
13551 CONFIG_LINKS = $CONFIG_LINKS
13552 CONFIG_COMMANDS = $CONFIG_COMMANDS
13553 $ $0 $@
13554
13555 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13556 "
13557
13558 _ACEOF
13559
13560 case $ac_config_files in *"
13561 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13562 esac
13563
13564 case $ac_config_headers in *"
13565 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13566 esac
13567
13568
13569 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13570 # Files that config.status was made for.
13571 config_files="$ac_config_files"
13572 config_headers="$ac_config_headers"
13573 config_commands="$ac_config_commands"
13574
13575 _ACEOF
13576
13577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13578 ac_cs_usage="\
13579 \`$as_me' instantiates files from templates according to the
13580 current configuration.
13581
13582 Usage: $0 [OPTION]... [FILE]...
13583
13584 -h, --help print this help, then exit
13585 -V, --version print version number and configuration settings, then exit
13586 -q, --quiet, --silent
13587 do not print progress messages
13588 -d, --debug don't remove temporary files
13589 --recheck update $as_me by reconfiguring in the same conditions
13590 --file=FILE[:TEMPLATE]
13591 instantiate the configuration file FILE
13592 --header=FILE[:TEMPLATE]
13593 instantiate the configuration header FILE
13594
13595 Configuration files:
13596 $config_files
13597
13598 Configuration headers:
13599 $config_headers
13600
13601 Configuration commands:
13602 $config_commands
13603
13604 Report bugs to <bug-autoconf (at] gnu.org>."
13605
13606 _ACEOF
13607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13608 ac_cs_version="\\
13609 xf86-video-tdfx config.status 1.4.2
13610 configured by $0, generated by GNU Autoconf 2.63,
13611 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13612
13613 Copyright (C) 2008 Free Software Foundation, Inc.
13614 This config.status script is free software; the Free Software Foundation
13615 gives unlimited permission to copy, distribute and modify it."
13616
13617 ac_pwd='$ac_pwd'
13618 srcdir='$srcdir'
13619 INSTALL='$INSTALL'
13620 MKDIR_P='$MKDIR_P'
13621 AWK='$AWK'
13622 test -n "\$AWK" || AWK=awk
13623 _ACEOF
13624
13625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13626 # The default lists apply if the user does not specify any file.
13627 ac_need_defaults=:
13628 while test $# != 0
13629 do
13630 case $1 in
13631 --*=*)
13632 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13633 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13634 ac_shift=:
13635 ;;
13636 *)
13637 ac_option=$1
13638 ac_optarg=$2
13639 ac_shift=shift
13640 ;;
13641 esac
13642
13643 case $ac_option in
13644 # Handling of the options.
13645 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13646 ac_cs_recheck=: ;;
13647 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13648 $as_echo "$ac_cs_version"; exit ;;
13649 --debug | --debu | --deb | --de | --d | -d )
13650 debug=: ;;
13651 --file | --fil | --fi | --f )
13652 $ac_shift
13653 case $ac_optarg in
13654 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13655 esac
13656 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13657 ac_need_defaults=false;;
13658 --header | --heade | --head | --hea )
13659 $ac_shift
13660 case $ac_optarg in
13661 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13662 esac
13663 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13664 ac_need_defaults=false;;
13665 --he | --h)
13666 # Conflict between --help and --header
13667 { $as_echo "$as_me: error: ambiguous option: $1
13668 Try \`$0 --help' for more information." >&2
13669 { (exit 1); exit 1; }; };;
13670 --help | --hel | -h )
13671 $as_echo "$ac_cs_usage"; exit ;;
13672 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13673 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13674 ac_cs_silent=: ;;
13675
13676 # This is an error.
13677 -*) { $as_echo "$as_me: error: unrecognized option: $1
13678 Try \`$0 --help' for more information." >&2
13679 { (exit 1); exit 1; }; } ;;
13680
13681 *) ac_config_targets="$ac_config_targets $1"
13682 ac_need_defaults=false ;;
13683
13684 esac
13685 shift
13686 done
13687
13688 ac_configure_extra_args=
13689
13690 if $ac_cs_silent; then
13691 exec 6>/dev/null
13692 ac_configure_extra_args="$ac_configure_extra_args --silent"
13693 fi
13694
13695 _ACEOF
13696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13697 if \$ac_cs_recheck; then
13698 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13699 shift
13700 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13701 CONFIG_SHELL='$SHELL'
13702 export CONFIG_SHELL
13703 exec "\$@"
13704 fi
13705
13706 _ACEOF
13707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13708 exec 5>>config.log
13709 {
13710 echo
13711 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13712 ## Running $as_me. ##
13713 _ASBOX
13714 $as_echo "$ac_log"
13715 } >&5
13716
13717 _ACEOF
13718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13719 #
13720 # INIT-COMMANDS
13721 #
13722 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13723
13724
13725 # The HP-UX ksh and POSIX shell print the target directory to stdout
13726 # if CDPATH is set.
13727 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13728
13729 sed_quote_subst='$sed_quote_subst'
13730 double_quote_subst='$double_quote_subst'
13731 delay_variable_subst='$delay_variable_subst'
13732 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13733 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13734 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13735 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13736 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13737 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13738 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13739 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13740 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13741 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13742 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13743 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13744 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13745 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13746 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13747 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13748 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13749 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13750 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13751 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13752 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13753 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13754 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13755 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13756 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13757 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13758 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13759 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13760 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13761 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13762 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13763 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13764 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13765 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13766 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13767 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13768 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13769 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13770 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13771 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13772 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13773 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13774 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13775 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13776 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"`'
13777 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"`'
13778 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13779 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13780 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13781 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13782 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13783 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13784 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13785 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13786 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13787 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13788 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13789 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13790 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13791 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13792 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13793 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13794 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13795 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13796 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13797 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13798 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13799 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13800 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13801 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13802 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13803 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13804 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13805 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13806 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13807 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13808 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13809 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13810 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13811 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13812 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13813 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13814 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13815 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13816 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13817 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13818 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13819 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13820 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13821 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13822 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13823 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13824 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13825 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13826 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13827 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13828 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13829 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13830 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13831 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13832 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13833 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13834 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13835 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13836 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13837 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13838 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13839 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13840 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13841 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13842 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13843 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13844 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13845 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13846 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13847 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13848 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13849 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13850
13851 LTCC='$LTCC'
13852 LTCFLAGS='$LTCFLAGS'
13853 compiler='$compiler_DEFAULT'
13854
13855 # Quote evaled strings.
13856 for var in SED \
13857 GREP \
13858 EGREP \
13859 FGREP \
13860 LD \
13861 NM \
13862 LN_S \
13863 lt_SP2NL \
13864 lt_NL2SP \
13865 reload_flag \
13866 OBJDUMP \
13867 deplibs_check_method \
13868 file_magic_cmd \
13869 AR \
13870 AR_FLAGS \
13871 STRIP \
13872 RANLIB \
13873 CC \
13874 CFLAGS \
13875 compiler \
13876 lt_cv_sys_global_symbol_pipe \
13877 lt_cv_sys_global_symbol_to_cdecl \
13878 lt_cv_sys_global_symbol_to_c_name_address \
13879 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13880 SHELL \
13881 ECHO \
13882 lt_prog_compiler_no_builtin_flag \
13883 lt_prog_compiler_wl \
13884 lt_prog_compiler_pic \
13885 lt_prog_compiler_static \
13886 lt_cv_prog_compiler_c_o \
13887 need_locks \
13888 DSYMUTIL \
13889 NMEDIT \
13890 LIPO \
13891 OTOOL \
13892 OTOOL64 \
13893 shrext_cmds \
13894 export_dynamic_flag_spec \
13895 whole_archive_flag_spec \
13896 compiler_needs_object \
13897 with_gnu_ld \
13898 allow_undefined_flag \
13899 no_undefined_flag \
13900 hardcode_libdir_flag_spec \
13901 hardcode_libdir_flag_spec_ld \
13902 hardcode_libdir_separator \
13903 fix_srcfile_path \
13904 exclude_expsyms \
13905 include_expsyms \
13906 file_list_spec \
13907 variables_saved_for_relink \
13908 libname_spec \
13909 library_names_spec \
13910 soname_spec \
13911 finish_eval \
13912 old_striplib \
13913 striplib; do
13914 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13915 *[\\\\\\\`\\"\\\$]*)
13916 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13917 ;;
13918 *)
13919 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13920 ;;
13921 esac
13922 done
13923
13924 # Double-quote double-evaled strings.
13925 for var in reload_cmds \
13926 old_postinstall_cmds \
13927 old_postuninstall_cmds \
13928 old_archive_cmds \
13929 extract_expsyms_cmds \
13930 old_archive_from_new_cmds \
13931 old_archive_from_expsyms_cmds \
13932 archive_cmds \
13933 archive_expsym_cmds \
13934 module_cmds \
13935 module_expsym_cmds \
13936 export_symbols_cmds \
13937 prelink_cmds \
13938 postinstall_cmds \
13939 postuninstall_cmds \
13940 finish_cmds \
13941 sys_lib_search_path_spec \
13942 sys_lib_dlsearch_path_spec; do
13943 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13944 *[\\\\\\\`\\"\\\$]*)
13945 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13946 ;;
13947 *)
13948 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13949 ;;
13950 esac
13951 done
13952
13953 # Fix-up fallback echo if it was mangled by the above quoting rules.
13954 case \$lt_ECHO in
13955 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13956 ;;
13957 esac
13958
13959 ac_aux_dir='$ac_aux_dir'
13960 xsi_shell='$xsi_shell'
13961 lt_shell_append='$lt_shell_append'
13962
13963 # See if we are running on zsh, and set the options which allow our
13964 # commands through without removal of \ escapes INIT.
13965 if test -n "\${ZSH_VERSION+set}" ; then
13966 setopt NO_GLOB_SUBST
13967 fi
13968
13969
13970 PACKAGE='$PACKAGE'
13971 VERSION='$VERSION'
13972 TIMESTAMP='$TIMESTAMP'
13973 RM='$RM'
13974 ofile='$ofile'
13975
13976
13977
13978
13979 _ACEOF
13980
13981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13982
13983 # Handling of arguments.
13984 for ac_config_target in $ac_config_targets
13985 do
13986 case $ac_config_target in
13987 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13988 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13989 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13990 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13991 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13992 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13993
13994 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13995 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13996 { (exit 1); exit 1; }; };;
13997 esac
13998 done
13999
14000
14001 # If the user did not use the arguments to specify the items to instantiate,
14002 # then the envvar interface is used. Set only those that are not.
14003 # We use the long form for the default assignment because of an extremely
14004 # bizarre bug on SunOS 4.1.3.
14005 if $ac_need_defaults; then
14006 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14007 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14008 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14009 fi
14010
14011 # Have a temporary directory for convenience. Make it in the build tree
14012 # simply because there is no reason against having it here, and in addition,
14013 # creating and moving files from /tmp can sometimes cause problems.
14014 # Hook for its removal unless debugging.
14015 # Note that there is a small window in which the directory will not be cleaned:
14016 # after its creation but before its name has been assigned to `$tmp'.
14017 $debug ||
14018 {
14019 tmp=
14020 trap 'exit_status=$?
14021 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14022 ' 0
14023 trap '{ (exit 1); exit 1; }' 1 2 13 15
14024 }
14025 # Create a (secure) tmp directory for tmp files.
14026
14027 {
14028 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14029 test -n "$tmp" && test -d "$tmp"
14030 } ||
14031 {
14032 tmp=./conf$$-$RANDOM
14033 (umask 077 && mkdir "$tmp")
14034 } ||
14035 {
14036 $as_echo "$as_me: cannot create a temporary directory in ." >&2
14037 { (exit 1); exit 1; }
14038 }
14039
14040 # Set up the scripts for CONFIG_FILES section.
14041 # No need to generate them if there are no CONFIG_FILES.
14042 # This happens for instance with `./config.status config.h'.
14043 if test -n "$CONFIG_FILES"; then
14044
14045
14046 ac_cr='
'
14048 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14049 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14050 ac_cs_awk_cr='\\r'
14051 else
14052 ac_cs_awk_cr=$ac_cr
14053 fi
14054
14055 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14056 _ACEOF
14057
14058
14059 {
14060 echo "cat >conf$$subs.awk <<_ACEOF" &&
14061 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14062 echo "_ACEOF"
14063 } >conf$$subs.sh ||
14064 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14065 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14066 { (exit 1); exit 1; }; }
14067 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14068 ac_delim='%!_!# '
14069 for ac_last_try in false false false false false :; do
14070 . ./conf$$subs.sh ||
14071 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14072 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14073 { (exit 1); exit 1; }; }
14074
14075 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14076 if test $ac_delim_n = $ac_delim_num; then
14077 break
14078 elif $ac_last_try; then
14079 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14080 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14081 { (exit 1); exit 1; }; }
14082 else
14083 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14084 fi
14085 done
14086 rm -f conf$$subs.sh
14087
14088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14089 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14090 _ACEOF
14091 sed -n '
14092 h
14093 s/^/S["/; s/!.*/"]=/
14094 p
14095 g
14096 s/^[^!]*!//
14097 :repl
14098 t repl
14099 s/'"$ac_delim"'$//
14100 t delim
14101 :nl
14102 h
14103 s/\(.\{148\}\).*/\1/
14104 t more1
14105 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14106 p
14107 n
14108 b repl
14109 :more1
14110 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14111 p
14112 g
14113 s/.\{148\}//
14114 t nl
14115 :delim
14116 h
14117 s/\(.\{148\}\).*/\1/
14118 t more2
14119 s/["\\]/\\&/g; s/^/"/; s/$/"/
14120 p
14121 b
14122 :more2
14123 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14124 p
14125 g
14126 s/.\{148\}//
14127 t delim
14128 ' <conf$$subs.awk | sed '
14129 /^[^""]/{
14130 N
14131 s/\n//
14132 }
14133 ' >>$CONFIG_STATUS || ac_write_fail=1
14134 rm -f conf$$subs.awk
14135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14136 _ACAWK
14137 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14138 for (key in S) S_is_set[key] = 1
14139 FS = ""
14140
14141 }
14142 {
14143 line = $ 0
14144 nfields = split(line, field, "@")
14145 substed = 0
14146 len = length(field[1])
14147 for (i = 2; i < nfields; i++) {
14148 key = field[i]
14149 keylen = length(key)
14150 if (S_is_set[key]) {
14151 value = S[key]
14152 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14153 len += length(value) + length(field[++i])
14154 substed = 1
14155 } else
14156 len += 1 + keylen
14157 }
14158
14159 print line
14160 }
14161
14162 _ACAWK
14163 _ACEOF
14164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14165 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14166 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14167 else
14168 cat
14169 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14170 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14171 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
14172 { (exit 1); exit 1; }; }
14173 _ACEOF
14174
14175 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14176 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14177 # trailing colons and then remove the whole line if VPATH becomes empty
14178 # (actually we leave an empty line to preserve line numbers).
14179 if test "x$srcdir" = x.; then
14180 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14181 s/:*\$(srcdir):*/:/
14182 s/:*\${srcdir}:*/:/
14183 s/:*@srcdir@:*/:/
14184 s/^\([^=]*=[ ]*\):*/\1/
14185 s/:*$//
14186 s/^[^=]*=[ ]*$//
14187 }'
14188 fi
14189
14190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14191 fi # test -n "$CONFIG_FILES"
14192
14193 # Set up the scripts for CONFIG_HEADERS section.
14194 # No need to generate them if there are no CONFIG_HEADERS.
14195 # This happens for instance with `./config.status Makefile'.
14196 if test -n "$CONFIG_HEADERS"; then
14197 cat >"$tmp/defines.awk" <<\_ACAWK ||
14198 BEGIN {
14199 _ACEOF
14200
14201 # Transform confdefs.h into an awk script `defines.awk', embedded as
14202 # here-document in config.status, that substitutes the proper values into
14203 # config.h.in to produce config.h.
14204
14205 # Create a delimiter string that does not exist in confdefs.h, to ease
14206 # handling of long lines.
14207 ac_delim='%!_!# '
14208 for ac_last_try in false false :; do
14209 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14210 if test -z "$ac_t"; then
14211 break
14212 elif $ac_last_try; then
14213 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14214 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14215 { (exit 1); exit 1; }; }
14216 else
14217 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14218 fi
14219 done
14220
14221 # For the awk script, D is an array of macro values keyed by name,
14222 # likewise P contains macro parameters if any. Preserve backslash
14223 # newline sequences.
14224
14225 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14226 sed -n '
14227 s/.\{148\}/&'"$ac_delim"'/g
14228 t rset
14229 :rset
14230 s/^[ ]*#[ ]*define[ ][ ]*/ /
14231 t def
14232 d
14233 :def
14234 s/\\$//
14235 t bsnl
14236 s/["\\]/\\&/g
14237 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14238 D["\1"]=" \3"/p
14239 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14240 d
14241 :bsnl
14242 s/["\\]/\\&/g
14243 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14244 D["\1"]=" \3\\\\\\n"\\/p
14245 t cont
14246 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14247 t cont
14248 d
14249 :cont
14250 n
14251 s/.\{148\}/&'"$ac_delim"'/g
14252 t clear
14253 :clear
14254 s/\\$//
14255 t bsnlc
14256 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14257 d
14258 :bsnlc
14259 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14260 b cont
14261 ' <confdefs.h | sed '
14262 s/'"$ac_delim"'/"\\\
14263 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14264
14265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14266 for (key in D) D_is_set[key] = 1
14267 FS = ""
14268 }
14269 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14270 line = \$ 0
14271 split(line, arg, " ")
14272 if (arg[1] == "#") {
14273 defundef = arg[2]
14274 mac1 = arg[3]
14275 } else {
14276 defundef = substr(arg[1], 2)
14277 mac1 = arg[2]
14278 }
14279 split(mac1, mac2, "(") #)
14280 macro = mac2[1]
14281 prefix = substr(line, 1, index(line, defundef) - 1)
14282 if (D_is_set[macro]) {
14283 # Preserve the white space surrounding the "#".
14284 print prefix "define", macro P[macro] D[macro]
14285 next
14286 } else {
14287 # Replace #undef with comments. This is necessary, for example,
14288 # in the case of _POSIX_SOURCE, which is predefined and required
14289 # on some systems where configure will not decide to define it.
14290 if (defundef == "undef") {
14291 print "/*", prefix defundef, macro, "*/"
14292 next
14293 }
14294 }
14295 }
14296 { print }
14297 _ACAWK
14298 _ACEOF
14299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14300 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14301 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14302 { (exit 1); exit 1; }; }
14303 fi # test -n "$CONFIG_HEADERS"
14304
14305
14306 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14307 shift
14308 for ac_tag
14309 do
14310 case $ac_tag in
14311 :[FHLC]) ac_mode=$ac_tag; continue;;
14312 esac
14313 case $ac_mode$ac_tag in
14314 :[FHL]*:*);;
14315 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14316 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14317 { (exit 1); exit 1; }; };;
14318 :[FH]-) ac_tag=-:-;;
14319 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14320 esac
14321 ac_save_IFS=$IFS
14322 IFS=:
14323 set x $ac_tag
14324 IFS=$ac_save_IFS
14325 shift
14326 ac_file=$1
14327 shift
14328
14329 case $ac_mode in
14330 :L) ac_source=$1;;
14331 :[FH])
14332 ac_file_inputs=
14333 for ac_f
14334 do
14335 case $ac_f in
14336 -) ac_f="$tmp/stdin";;
14337 *) # Look for the file first in the build tree, then in the source tree
14338 # (if the path is not absolute). The absolute path cannot be DOS-style,
14339 # because $ac_f cannot contain `:'.
14340 test -f "$ac_f" ||
14341 case $ac_f in
14342 [\\/$]*) false;;
14343 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14344 esac ||
14345 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14346 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14347 { (exit 1); exit 1; }; };;
14348 esac
14349 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14350 ac_file_inputs="$ac_file_inputs '$ac_f'"
14351 done
14352
14353 # Let's still pretend it is `configure' which instantiates (i.e., don't
14354 # use $as_me), people would be surprised to read:
14355 # /* config.h. Generated by config.status. */
14356 configure_input='Generated from '`
14357 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14358 `' by configure.'
14359 if test x"$ac_file" != x-; then
14360 configure_input="$ac_file. $configure_input"
14361 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14362 $as_echo "$as_me: creating $ac_file" >&6;}
14363 fi
14364 # Neutralize special characters interpreted by sed in replacement strings.
14365 case $configure_input in #(
14366 *\&* | *\|* | *\\* )
14367 ac_sed_conf_input=`$as_echo "$configure_input" |
14368 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14369 *) ac_sed_conf_input=$configure_input;;
14370 esac
14371
14372 case $ac_tag in
14373 *:-:* | *:-) cat >"$tmp/stdin" \
14374 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14375 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14376 { (exit 1); exit 1; }; } ;;
14377 esac
14378 ;;
14379 esac
14380
14381 ac_dir=`$as_dirname -- "$ac_file" ||
14382 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14383 X"$ac_file" : 'X\(//\)[^/]' \| \
14384 X"$ac_file" : 'X\(//\)$' \| \
14385 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14386 $as_echo X"$ac_file" |
14387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14388 s//\1/
14389 q
14390 }
14391 /^X\(\/\/\)[^/].*/{
14392 s//\1/
14393 q
14394 }
14395 /^X\(\/\/\)$/{
14396 s//\1/
14397 q
14398 }
14399 /^X\(\/\).*/{
14400 s//\1/
14401 q
14402 }
14403 s/.*/./; q'`
14404 { as_dir="$ac_dir"
14405 case $as_dir in #(
14406 -*) as_dir=./$as_dir;;
14407 esac
14408 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14409 as_dirs=
14410 while :; do
14411 case $as_dir in #(
14412 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14413 *) as_qdir=$as_dir;;
14414 esac
14415 as_dirs="'$as_qdir' $as_dirs"
14416 as_dir=`$as_dirname -- "$as_dir" ||
14417 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14418 X"$as_dir" : 'X\(//\)[^/]' \| \
14419 X"$as_dir" : 'X\(//\)$' \| \
14420 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14421 $as_echo X"$as_dir" |
14422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14423 s//\1/
14424 q
14425 }
14426 /^X\(\/\/\)[^/].*/{
14427 s//\1/
14428 q
14429 }
14430 /^X\(\/\/\)$/{
14431 s//\1/
14432 q
14433 }
14434 /^X\(\/\).*/{
14435 s//\1/
14436 q
14437 }
14438 s/.*/./; q'`
14439 test -d "$as_dir" && break
14440 done
14441 test -z "$as_dirs" || eval "mkdir $as_dirs"
14442 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14443 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14444 { (exit 1); exit 1; }; }; }
14445 ac_builddir=.
14446
14447 case "$ac_dir" in
14448 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14449 *)
14450 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14451 # A ".." for each directory in $ac_dir_suffix.
14452 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14453 case $ac_top_builddir_sub in
14454 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14455 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14456 esac ;;
14457 esac
14458 ac_abs_top_builddir=$ac_pwd
14459 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14460 # for backward compatibility:
14461 ac_top_builddir=$ac_top_build_prefix
14462
14463 case $srcdir in
14464 .) # We are building in place.
14465 ac_srcdir=.
14466 ac_top_srcdir=$ac_top_builddir_sub
14467 ac_abs_top_srcdir=$ac_pwd ;;
14468 [\\/]* | ?:[\\/]* ) # Absolute name.
14469 ac_srcdir=$srcdir$ac_dir_suffix;
14470 ac_top_srcdir=$srcdir
14471 ac_abs_top_srcdir=$srcdir ;;
14472 *) # Relative name.
14473 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14474 ac_top_srcdir=$ac_top_build_prefix$srcdir
14475 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14476 esac
14477 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14478
14479
14480 case $ac_mode in
14481 :F)
14482 #
14483 # CONFIG_FILE
14484 #
14485
14486 case $INSTALL in
14487 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14488 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14489 esac
14490 ac_MKDIR_P=$MKDIR_P
14491 case $MKDIR_P in
14492 [\\/$]* | ?:[\\/]* ) ;;
14493 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14494 esac
14495 _ACEOF
14496
14497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14498 # If the template does not know about datarootdir, expand it.
14499 # FIXME: This hack should be removed a few years after 2.60.
14500 ac_datarootdir_hack=; ac_datarootdir_seen=
14501
14502 ac_sed_dataroot='
14503 /datarootdir/ {
14504 p
14505 q
14506 }
14507 /@datadir@/p
14508 /@docdir@/p
14509 /@infodir@/p
14510 /@localedir@/p
14511 /@mandir@/p
14512 '
14513 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14514 *datarootdir*) ac_datarootdir_seen=yes;;
14515 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14516 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14517 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14518 _ACEOF
14519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14520 ac_datarootdir_hack='
14521 s&@datadir@&$datadir&g
14522 s&@docdir@&$docdir&g
14523 s&@infodir@&$infodir&g
14524 s&@localedir@&$localedir&g
14525 s&@mandir@&$mandir&g
14526 s&\\\${datarootdir}&$datarootdir&g' ;;
14527 esac
14528 _ACEOF
14529
14530 # Neutralize VPATH when `$srcdir' = `.'.
14531 # Shell code in configure.ac might set extrasub.
14532 # FIXME: do we really want to maintain this feature?
14533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14534 ac_sed_extra="$ac_vpsub
14535 $extrasub
14536 _ACEOF
14537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14538 :t
14539 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14540 s|@configure_input@|$ac_sed_conf_input|;t t
14541 s&@top_builddir@&$ac_top_builddir_sub&;t t
14542 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14543 s&@srcdir@&$ac_srcdir&;t t
14544 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14545 s&@top_srcdir@&$ac_top_srcdir&;t t
14546 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14547 s&@builddir@&$ac_builddir&;t t
14548 s&@abs_builddir@&$ac_abs_builddir&;t t
14549 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14550 s&@INSTALL@&$ac_INSTALL&;t t
14551 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14552 $ac_datarootdir_hack
14553 "
14554 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14555 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14556 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14557 { (exit 1); exit 1; }; }
14558
14559 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14560 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14561 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14562 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14563 which seems to be undefined. Please make sure it is defined." >&5
14564 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14565 which seems to be undefined. Please make sure it is defined." >&2;}
14566
14567 rm -f "$tmp/stdin"
14568 case $ac_file in
14569 -) cat "$tmp/out" && rm -f "$tmp/out";;
14570 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14571 esac \
14572 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14573 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14574 { (exit 1); exit 1; }; }
14575 ;;
14576 :H)
14577 #
14578 # CONFIG_HEADER
14579 #
14580 if test x"$ac_file" != x-; then
14581 {
14582 $as_echo "/* $configure_input */" \
14583 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14584 } >"$tmp/config.h" \
14585 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14586 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14587 { (exit 1); exit 1; }; }
14588 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14589 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14590 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14591 else
14592 rm -f "$ac_file"
14593 mv "$tmp/config.h" "$ac_file" \
14594 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14595 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14596 { (exit 1); exit 1; }; }
14597 fi
14598 else
14599 $as_echo "/* $configure_input */" \
14600 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14601 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14602 $as_echo "$as_me: error: could not create -" >&2;}
14603 { (exit 1); exit 1; }; }
14604 fi
14605 # Compute "$ac_file"'s index in $config_headers.
14606 _am_arg="$ac_file"
14607 _am_stamp_count=1
14608 for _am_header in $config_headers :; do
14609 case $_am_header in
14610 $_am_arg | $_am_arg:* )
14611 break ;;
14612 * )
14613 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14614 esac
14615 done
14616 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14617 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14618 X"$_am_arg" : 'X\(//\)[^/]' \| \
14619 X"$_am_arg" : 'X\(//\)$' \| \
14620 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14621 $as_echo X"$_am_arg" |
14622 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14623 s//\1/
14624 q
14625 }
14626 /^X\(\/\/\)[^/].*/{
14627 s//\1/
14628 q
14629 }
14630 /^X\(\/\/\)$/{
14631 s//\1/
14632 q
14633 }
14634 /^X\(\/\).*/{
14635 s//\1/
14636 q
14637 }
14638 s/.*/./; q'`/stamp-h$_am_stamp_count
14639 ;;
14640
14641 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14642 $as_echo "$as_me: executing $ac_file commands" >&6;}
14643 ;;
14644 esac
14645
14646
14647 case $ac_file$ac_mode in
14648 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
14649 # are listed without --file. Let's play safe and only enable the eval
14650 # if we detect the quoting.
14651 case $CONFIG_FILES in
14652 *\'*) eval set x "$CONFIG_FILES" ;;
14653 *) set x $CONFIG_FILES ;;
14654 esac
14655 shift
14656 for mf
14657 do
14658 # Strip MF so we end up with the name of the file.
14659 mf=`echo "$mf" | sed -e 's/:.*$//'`
14660 # Check whether this is an Automake generated Makefile or not.
14661 # We used to match only the files named `Makefile.in', but
14662 # some people rename them; so instead we look at the file content.
14663 # Grep'ing the first line is not enough: some people post-process
14664 # each Makefile.in and add a new line on top of each file to say so.
14665 # Grep'ing the whole file is not good either: AIX grep has a line
14666 # limit of 2048, but all sed's we know have understand at least 4000.
14667 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14668 dirpart=`$as_dirname -- "$mf" ||
14669 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14670 X"$mf" : 'X\(//\)[^/]' \| \
14671 X"$mf" : 'X\(//\)$' \| \
14672 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14673 $as_echo X"$mf" |
14674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14675 s//\1/
14676 q
14677 }
14678 /^X\(\/\/\)[^/].*/{
14679 s//\1/
14680 q
14681 }
14682 /^X\(\/\/\)$/{
14683 s//\1/
14684 q
14685 }
14686 /^X\(\/\).*/{
14687 s//\1/
14688 q
14689 }
14690 s/.*/./; q'`
14691 else
14692 continue
14693 fi
14694 # Extract the definition of DEPDIR, am__include, and am__quote
14695 # from the Makefile without running `make'.
14696 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14697 test -z "$DEPDIR" && continue
14698 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14699 test -z "am__include" && continue
14700 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14701 # When using ansi2knr, U may be empty or an underscore; expand it
14702 U=`sed -n 's/^U = //p' < "$mf"`
14703 # Find all dependency output files, they are included files with
14704 # $(DEPDIR) in their names. We invoke sed twice because it is the
14705 # simplest approach to changing $(DEPDIR) to its actual value in the
14706 # expansion.
14707 for file in `sed -n "
14708 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14709 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14710 # Make sure the directory exists.
14711 test -f "$dirpart/$file" && continue
14712 fdir=`$as_dirname -- "$file" ||
14713 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14714 X"$file" : 'X\(//\)[^/]' \| \
14715 X"$file" : 'X\(//\)$' \| \
14716 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14717 $as_echo X"$file" |
14718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14719 s//\1/
14720 q
14721 }
14722 /^X\(\/\/\)[^/].*/{
14723 s//\1/
14724 q
14725 }
14726 /^X\(\/\/\)$/{
14727 s//\1/
14728 q
14729 }
14730 /^X\(\/\).*/{
14731 s//\1/
14732 q
14733 }
14734 s/.*/./; q'`
14735 { as_dir=$dirpart/$fdir
14736 case $as_dir in #(
14737 -*) as_dir=./$as_dir;;
14738 esac
14739 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14740 as_dirs=
14741 while :; do
14742 case $as_dir in #(
14743 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14744 *) as_qdir=$as_dir;;
14745 esac
14746 as_dirs="'$as_qdir' $as_dirs"
14747 as_dir=`$as_dirname -- "$as_dir" ||
14748 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14749 X"$as_dir" : 'X\(//\)[^/]' \| \
14750 X"$as_dir" : 'X\(//\)$' \| \
14751 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14752 $as_echo X"$as_dir" |
14753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14754 s//\1/
14755 q
14756 }
14757 /^X\(\/\/\)[^/].*/{
14758 s//\1/
14759 q
14760 }
14761 /^X\(\/\/\)$/{
14762 s//\1/
14763 q
14764 }
14765 /^X\(\/\).*/{
14766 s//\1/
14767 q
14768 }
14769 s/.*/./; q'`
14770 test -d "$as_dir" && break
14771 done
14772 test -z "$as_dirs" || eval "mkdir $as_dirs"
14773 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14774 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14775 { (exit 1); exit 1; }; }; }
14776 # echo "creating $dirpart/$file"
14777 echo '# dummy' > "$dirpart/$file"
14778 done
14779 done
14780 ;;
14781 "libtool":C)
14782
14783 # See if we are running on zsh, and set the options which allow our
14784 # commands through without removal of \ escapes.
14785 if test -n "${ZSH_VERSION+set}" ; then
14786 setopt NO_GLOB_SUBST
14787 fi
14788
14789 cfgfile="${ofile}T"
14790 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14791 $RM "$cfgfile"
14792
14793 cat <<_LT_EOF >> "$cfgfile"
14794 #! $SHELL
14795
14796 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14797 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14798 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14799 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14800 #
14801 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14802 # 2006, 2007, 2008 Free Software Foundation, Inc.
14803 # Written by Gordon Matzigkeit, 1996
14804 #
14805 # This file is part of GNU Libtool.
14806 #
14807 # GNU Libtool is free software; you can redistribute it and/or
14808 # modify it under the terms of the GNU General Public License as
14809 # published by the Free Software Foundation; either version 2 of
14810 # the License, or (at your option) any later version.
14811 #
14812 # As a special exception to the GNU General Public License,
14813 # if you distribute this file as part of a program or library that
14814 # is built using GNU Libtool, you may include this file under the
14815 # same distribution terms that you use for the rest of that program.
14816 #
14817 # GNU Libtool is distributed in the hope that it will be useful,
14818 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14819 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14820 # GNU General Public License for more details.
14821 #
14822 # You should have received a copy of the GNU General Public License
14823 # along with GNU Libtool; see the file COPYING. If not, a copy
14824 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14825 # obtained by writing to the Free Software Foundation, Inc.,
14826 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14827
14828
14829 # The names of the tagged configurations supported by this script.
14830 available_tags=""
14831
14832 # ### BEGIN LIBTOOL CONFIG
14833
14834 # Whether or not to build static libraries.
14835 build_old_libs=$enable_static
14836
14837 # Which release of libtool.m4 was used?
14838 macro_version=$macro_version
14839 macro_revision=$macro_revision
14840
14841 # Whether or not to build shared libraries.
14842 build_libtool_libs=$enable_shared
14843
14844 # What type of objects to build.
14845 pic_mode=$pic_mode
14846
14847 # Whether or not to optimize for fast installation.
14848 fast_install=$enable_fast_install
14849
14850 # The host system.
14851 host_alias=$host_alias
14852 host=$host
14853 host_os=$host_os
14854
14855 # The build system.
14856 build_alias=$build_alias
14857 build=$build
14858 build_os=$build_os
14859
14860 # A sed program that does not truncate output.
14861 SED=$lt_SED
14862
14863 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14864 Xsed="\$SED -e 1s/^X//"
14865
14866 # A grep program that handles long lines.
14867 GREP=$lt_GREP
14868
14869 # An ERE matcher.
14870 EGREP=$lt_EGREP
14871
14872 # A literal string matcher.
14873 FGREP=$lt_FGREP
14874
14875 # A BSD- or MS-compatible name lister.
14876 NM=$lt_NM
14877
14878 # Whether we need soft or hard links.
14879 LN_S=$lt_LN_S
14880
14881 # What is the maximum length of a command?
14882 max_cmd_len=$max_cmd_len
14883
14884 # Object file suffix (normally "o").
14885 objext=$ac_objext
14886
14887 # Executable file suffix (normally "").
14888 exeext=$exeext
14889
14890 # whether the shell understands "unset".
14891 lt_unset=$lt_unset
14892
14893 # turn spaces into newlines.
14894 SP2NL=$lt_lt_SP2NL
14895
14896 # turn newlines into spaces.
14897 NL2SP=$lt_lt_NL2SP
14898
14899 # How to create reloadable object files.
14900 reload_flag=$lt_reload_flag
14901 reload_cmds=$lt_reload_cmds
14902
14903 # An object symbol dumper.
14904 OBJDUMP=$lt_OBJDUMP
14905
14906 # Method to check whether dependent libraries are shared objects.
14907 deplibs_check_method=$lt_deplibs_check_method
14908
14909 # Command to use when deplibs_check_method == "file_magic".
14910 file_magic_cmd=$lt_file_magic_cmd
14911
14912 # The archiver.
14913 AR=$lt_AR
14914 AR_FLAGS=$lt_AR_FLAGS
14915
14916 # A symbol stripping program.
14917 STRIP=$lt_STRIP
14918
14919 # Commands used to install an old-style archive.
14920 RANLIB=$lt_RANLIB
14921 old_postinstall_cmds=$lt_old_postinstall_cmds
14922 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14923
14924 # A C compiler.
14925 LTCC=$lt_CC
14926
14927 # LTCC compiler flags.
14928 LTCFLAGS=$lt_CFLAGS
14929
14930 # Take the output of nm and produce a listing of raw symbols and C names.
14931 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14932
14933 # Transform the output of nm in a proper C declaration.
14934 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14935
14936 # Transform the output of nm in a C name address pair.
14937 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14938
14939 # Transform the output of nm in a C name address pair when lib prefix is needed.
14940 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14941
14942 # The name of the directory that contains temporary libtool files.
14943 objdir=$objdir
14944
14945 # Shell to use when invoking shell scripts.
14946 SHELL=$lt_SHELL
14947
14948 # An echo program that does not interpret backslashes.
14949 ECHO=$lt_ECHO
14950
14951 # Used to examine libraries when file_magic_cmd begins with "file".
14952 MAGIC_CMD=$MAGIC_CMD
14953
14954 # Must we lock files when doing compilation?
14955 need_locks=$lt_need_locks
14956
14957 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14958 DSYMUTIL=$lt_DSYMUTIL
14959
14960 # Tool to change global to local symbols on Mac OS X.
14961 NMEDIT=$lt_NMEDIT
14962
14963 # Tool to manipulate fat objects and archives on Mac OS X.
14964 LIPO=$lt_LIPO
14965
14966 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14967 OTOOL=$lt_OTOOL
14968
14969 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14970 OTOOL64=$lt_OTOOL64
14971
14972 # Old archive suffix (normally "a").
14973 libext=$libext
14974
14975 # Shared library suffix (normally ".so").
14976 shrext_cmds=$lt_shrext_cmds
14977
14978 # The commands to extract the exported symbol list from a shared archive.
14979 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14980
14981 # Variables whose values should be saved in libtool wrapper scripts and
14982 # restored at link time.
14983 variables_saved_for_relink=$lt_variables_saved_for_relink
14984
14985 # Do we need the "lib" prefix for modules?
14986 need_lib_prefix=$need_lib_prefix
14987
14988 # Do we need a version for libraries?
14989 need_version=$need_version
14990
14991 # Library versioning type.
14992 version_type=$version_type
14993
14994 # Shared library runtime path variable.
14995 runpath_var=$runpath_var
14996
14997 # Shared library path variable.
14998 shlibpath_var=$shlibpath_var
14999
15000 # Is shlibpath searched before the hard-coded library search path?
15001 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15002
15003 # Format of library name prefix.
15004 libname_spec=$lt_libname_spec
15005
15006 # List of archive names. First name is the real one, the rest are links.
15007 # The last name is the one that the linker finds with -lNAME
15008 library_names_spec=$lt_library_names_spec
15009
15010 # The coded name of the library, if different from the real name.
15011 soname_spec=$lt_soname_spec
15012
15013 # Command to use after installation of a shared archive.
15014 postinstall_cmds=$lt_postinstall_cmds
15015
15016 # Command to use after uninstallation of a shared archive.
15017 postuninstall_cmds=$lt_postuninstall_cmds
15018
15019 # Commands used to finish a libtool library installation in a directory.
15020 finish_cmds=$lt_finish_cmds
15021
15022 # As "finish_cmds", except a single script fragment to be evaled but
15023 # not shown.
15024 finish_eval=$lt_finish_eval
15025
15026 # Whether we should hardcode library paths into libraries.
15027 hardcode_into_libs=$hardcode_into_libs
15028
15029 # Compile-time system search path for libraries.
15030 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15031
15032 # Run-time system search path for libraries.
15033 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15034
15035 # Whether dlopen is supported.
15036 dlopen_support=$enable_dlopen
15037
15038 # Whether dlopen of programs is supported.
15039 dlopen_self=$enable_dlopen_self
15040
15041 # Whether dlopen of statically linked programs is supported.
15042 dlopen_self_static=$enable_dlopen_self_static
15043
15044 # Commands to strip libraries.
15045 old_striplib=$lt_old_striplib
15046 striplib=$lt_striplib
15047
15048
15049 # The linker used to build libraries.
15050 LD=$lt_LD
15051
15052 # Commands used to build an old-style archive.
15053 old_archive_cmds=$lt_old_archive_cmds
15054
15055 # A language specific compiler.
15056 CC=$lt_compiler
15057
15058 # Is the compiler the GNU compiler?
15059 with_gcc=$GCC
15060
15061 # Compiler flag to turn off builtin functions.
15062 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15063
15064 # How to pass a linker flag through the compiler.
15065 wl=$lt_lt_prog_compiler_wl
15066
15067 # Additional compiler flags for building library objects.
15068 pic_flag=$lt_lt_prog_compiler_pic
15069
15070 # Compiler flag to prevent dynamic linking.
15071 link_static_flag=$lt_lt_prog_compiler_static
15072
15073 # Does compiler simultaneously support -c and -o options?
15074 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15075
15076 # Whether or not to add -lc for building shared libraries.
15077 build_libtool_need_lc=$archive_cmds_need_lc
15078
15079 # Whether or not to disallow shared libs when runtime libs are static.
15080 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15081
15082 # Compiler flag to allow reflexive dlopens.
15083 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15084
15085 # Compiler flag to generate shared objects directly from archives.
15086 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15087
15088 # Whether the compiler copes with passing no objects directly.
15089 compiler_needs_object=$lt_compiler_needs_object
15090
15091 # Create an old-style archive from a shared archive.
15092 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15093
15094 # Create a temporary old-style archive to link instead of a shared archive.
15095 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15096
15097 # Commands used to build a shared archive.
15098 archive_cmds=$lt_archive_cmds
15099 archive_expsym_cmds=$lt_archive_expsym_cmds
15100
15101 # Commands used to build a loadable module if different from building
15102 # a shared archive.
15103 module_cmds=$lt_module_cmds
15104 module_expsym_cmds=$lt_module_expsym_cmds
15105
15106 # Whether we are building with GNU ld or not.
15107 with_gnu_ld=$lt_with_gnu_ld
15108
15109 # Flag that allows shared libraries with undefined symbols to be built.
15110 allow_undefined_flag=$lt_allow_undefined_flag
15111
15112 # Flag that enforces no undefined symbols.
15113 no_undefined_flag=$lt_no_undefined_flag
15114
15115 # Flag to hardcode \$libdir into a binary during linking.
15116 # This must work even if \$libdir does not exist
15117 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15118
15119 # If ld is used when linking, flag to hardcode \$libdir into a binary
15120 # during linking. This must work even if \$libdir does not exist.
15121 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15122
15123 # Whether we need a single "-rpath" flag with a separated argument.
15124 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15125
15126 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15127 # DIR into the resulting binary.
15128 hardcode_direct=$hardcode_direct
15129
15130 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15131 # DIR into the resulting binary and the resulting library dependency is
15132 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15133 # library is relocated.
15134 hardcode_direct_absolute=$hardcode_direct_absolute
15135
15136 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15137 # into the resulting binary.
15138 hardcode_minus_L=$hardcode_minus_L
15139
15140 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15141 # into the resulting binary.
15142 hardcode_shlibpath_var=$hardcode_shlibpath_var
15143
15144 # Set to "yes" if building a shared library automatically hardcodes DIR
15145 # into the library and all subsequent libraries and executables linked
15146 # against it.
15147 hardcode_automatic=$hardcode_automatic
15148
15149 # Set to yes if linker adds runtime paths of dependent libraries
15150 # to runtime path list.
15151 inherit_rpath=$inherit_rpath
15152
15153 # Whether libtool must link a program against all its dependency libraries.
15154 link_all_deplibs=$link_all_deplibs
15155
15156 # Fix the shell variable \$srcfile for the compiler.
15157 fix_srcfile_path=$lt_fix_srcfile_path
15158
15159 # Set to "yes" if exported symbols are required.
15160 always_export_symbols=$always_export_symbols
15161
15162 # The commands to list exported symbols.
15163 export_symbols_cmds=$lt_export_symbols_cmds
15164
15165 # Symbols that should not be listed in the preloaded symbols.
15166 exclude_expsyms=$lt_exclude_expsyms
15167
15168 # Symbols that must always be exported.
15169 include_expsyms=$lt_include_expsyms
15170
15171 # Commands necessary for linking programs (against libraries) with templates.
15172 prelink_cmds=$lt_prelink_cmds
15173
15174 # Specify filename containing input files.
15175 file_list_spec=$lt_file_list_spec
15176
15177 # How to hardcode a shared library path into an executable.
15178 hardcode_action=$hardcode_action
15179
15180 # ### END LIBTOOL CONFIG
15181
15182 _LT_EOF
15183
15184 case $host_os in
15185 aix3*)
15186 cat <<\_LT_EOF >> "$cfgfile"
15187 # AIX sometimes has problems with the GCC collect2 program. For some
15188 # reason, if we set the COLLECT_NAMES environment variable, the problems
15189 # vanish in a puff of smoke.
15190 if test "X${COLLECT_NAMES+set}" != Xset; then
15191 COLLECT_NAMES=
15192 export COLLECT_NAMES
15193 fi
15194 _LT_EOF
15195 ;;
15196 esac
15197
15198
15199 ltmain="$ac_aux_dir/ltmain.sh"
15200
15201
15202 # We use sed instead of cat because bash on DJGPP gets confused if
15203 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15204 # text mode, it properly converts lines to CR/LF. This bash problem
15205 # is reportedly fixed, but why not run on old versions too?
15206 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15207 || (rm -f "$cfgfile"; exit 1)
15208
15209 case $xsi_shell in
15210 yes)
15211 cat << \_LT_EOF >> "$cfgfile"
15212
15213 # func_dirname file append nondir_replacement
15214 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15215 # otherwise set result to NONDIR_REPLACEMENT.
15216 func_dirname ()
15217 {
15218 case ${1} in
15219 */*) func_dirname_result="${1%/*}${2}" ;;
15220 * ) func_dirname_result="${3}" ;;
15221 esac
15222 }
15223
15224 # func_basename file
15225 func_basename ()
15226 {
15227 func_basename_result="${1##*/}"
15228 }
15229
15230 # func_dirname_and_basename file append nondir_replacement
15231 # perform func_basename and func_dirname in a single function
15232 # call:
15233 # dirname: Compute the dirname of FILE. If nonempty,
15234 # add APPEND to the result, otherwise set result
15235 # to NONDIR_REPLACEMENT.
15236 # value returned in "$func_dirname_result"
15237 # basename: Compute filename of FILE.
15238 # value retuned in "$func_basename_result"
15239 # Implementation must be kept synchronized with func_dirname
15240 # and func_basename. For efficiency, we do not delegate to
15241 # those functions but instead duplicate the functionality here.
15242 func_dirname_and_basename ()
15243 {
15244 case ${1} in
15245 */*) func_dirname_result="${1%/*}${2}" ;;
15246 * ) func_dirname_result="${3}" ;;
15247 esac
15248 func_basename_result="${1##*/}"
15249 }
15250
15251 # func_stripname prefix suffix name
15252 # strip PREFIX and SUFFIX off of NAME.
15253 # PREFIX and SUFFIX must not contain globbing or regex special
15254 # characters, hashes, percent signs, but SUFFIX may contain a leading
15255 # dot (in which case that matches only a dot).
15256 func_stripname ()
15257 {
15258 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15259 # positional parameters, so assign one to ordinary parameter first.
15260 func_stripname_result=${3}
15261 func_stripname_result=${func_stripname_result#"${1}"}
15262 func_stripname_result=${func_stripname_result%"${2}"}
15263 }
15264
15265 # func_opt_split
15266 func_opt_split ()
15267 {
15268 func_opt_split_opt=${1%%=*}
15269 func_opt_split_arg=${1#*=}
15270 }
15271
15272 # func_lo2o object
15273 func_lo2o ()
15274 {
15275 case ${1} in
15276 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15277 *) func_lo2o_result=${1} ;;
15278 esac
15279 }
15280
15281 # func_xform libobj-or-source
15282 func_xform ()
15283 {
15284 func_xform_result=${1%.*}.lo
15285 }
15286
15287 # func_arith arithmetic-term...
15288 func_arith ()
15289 {
15290 func_arith_result=$(( $* ))
15291 }
15292
15293 # func_len string
15294 # STRING may not start with a hyphen.
15295 func_len ()
15296 {
15297 func_len_result=${#1}
15298 }
15299
15300 _LT_EOF
15301 ;;
15302 *) # Bourne compatible functions.
15303 cat << \_LT_EOF >> "$cfgfile"
15304
15305 # func_dirname file append nondir_replacement
15306 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15307 # otherwise set result to NONDIR_REPLACEMENT.
15308 func_dirname ()
15309 {
15310 # Extract subdirectory from the argument.
15311 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15312 if test "X$func_dirname_result" = "X${1}"; then
15313 func_dirname_result="${3}"
15314 else
15315 func_dirname_result="$func_dirname_result${2}"
15316 fi
15317 }
15318
15319 # func_basename file
15320 func_basename ()
15321 {
15322 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15323 }
15324
15325
15326 # func_stripname prefix suffix name
15327 # strip PREFIX and SUFFIX off of NAME.
15328 # PREFIX and SUFFIX must not contain globbing or regex special
15329 # characters, hashes, percent signs, but SUFFIX may contain a leading
15330 # dot (in which case that matches only a dot).
15331 # func_strip_suffix prefix name
15332 func_stripname ()
15333 {
15334 case ${2} in
15335 .*) func_stripname_result=`$ECHO "X${3}" \
15336 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15337 *) func_stripname_result=`$ECHO "X${3}" \
15338 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15339 esac
15340 }
15341
15342 # sed scripts:
15343 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15344 my_sed_long_arg='1s/^-[^=]*=//'
15345
15346 # func_opt_split
15347 func_opt_split ()
15348 {
15349 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15350 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15351 }
15352
15353 # func_lo2o object
15354 func_lo2o ()
15355 {
15356 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15357 }
15358
15359 # func_xform libobj-or-source
15360 func_xform ()
15361 {
15362 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15363 }
15364
15365 # func_arith arithmetic-term...
15366 func_arith ()
15367 {
15368 func_arith_result=`expr "$@"`
15369 }
15370
15371 # func_len string
15372 # STRING may not start with a hyphen.
15373 func_len ()
15374 {
15375 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15376 }
15377
15378 _LT_EOF
15379 esac
15380
15381 case $lt_shell_append in
15382 yes)
15383 cat << \_LT_EOF >> "$cfgfile"
15384
15385 # func_append var value
15386 # Append VALUE to the end of shell variable VAR.
15387 func_append ()
15388 {
15389 eval "$1+=\$2"
15390 }
15391 _LT_EOF
15392 ;;
15393 *)
15394 cat << \_LT_EOF >> "$cfgfile"
15395
15396 # func_append var value
15397 # Append VALUE to the end of shell variable VAR.
15398 func_append ()
15399 {
15400 eval "$1=\$$1\$2"
15401 }
15402
15403 _LT_EOF
15404 ;;
15405 esac
15406
15407
15408 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15409 || (rm -f "$cfgfile"; exit 1)
15410
15411 mv -f "$cfgfile" "$ofile" ||
15412 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15413 chmod +x "$ofile"
15414
15415 ;;
15416
15417 esac
15418 done # for ac_tag
15419
15420
15421 { (exit 0); exit 0; }
15422 _ACEOF
15423 chmod +x $CONFIG_STATUS
15424 ac_clean_files=$ac_clean_files_save
15425
15426 test $ac_write_fail = 0 ||
15427 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15428 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15429 { (exit 1); exit 1; }; }
15430
15431
15432 # configure is writing to config.log, and then calls config.status.
15433 # config.status does its own redirection, appending to config.log.
15434 # Unfortunately, on DOS this fails, as config.log is still kept open
15435 # by configure, so config.status won't be able to write to it; its
15436 # output is simply discarded. So we exec the FD to /dev/null,
15437 # effectively closing config.log, so it can be properly (re)opened and
15438 # appended to by config.status. When coming back to configure, we
15439 # need to make the FD available again.
15440 if test "$no_create" != yes; then
15441 ac_cs_success=:
15442 ac_config_status_args=
15443 test "$silent" = yes &&
15444 ac_config_status_args="$ac_config_status_args --quiet"
15445 exec 5>/dev/null
15446 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15447 exec 5>>config.log
15448 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15449 # would make configure fail if this is the last instruction.
15450 $ac_cs_success || { (exit 1); exit 1; }
15451 fi
15452 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15453 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15454 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15455 fi
15456
15457