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-savage 2.3.0.
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-savage'
747 PACKAGE_TARNAME='xf86-video-savage'
748 PACKAGE_VERSION='2.3.0'
749 PACKAGE_STRING='xf86-video-savage 2.3.0'
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-savage 2.3.0 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
1555 [DATAROOTDIR/doc/xf86-video-savage]
1556 --htmldir=DIR html documentation [DOCDIR]
1557 --dvidir=DIR dvi documentation [DOCDIR]
1558 --pdfdir=DIR pdf documentation [DOCDIR]
1559 --psdir=DIR ps documentation [DOCDIR]
1560 _ACEOF
1561
1562 cat <<\_ACEOF
1563
1564 Program names:
1565 --program-prefix=PREFIX prepend PREFIX to installed program names
1566 --program-suffix=SUFFIX append SUFFIX to installed program names
1567 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1568
1569 System types:
1570 --build=BUILD configure for building on BUILD [guessed]
1571 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1572 _ACEOF
1573 fi
1574
1575 if test -n "$ac_init_help"; then
1576 case $ac_init_help in
1577 short | recursive ) echo "Configuration of xf86-video-savage 2.3.0:";;
1578 esac
1579 cat <<\_ACEOF
1580
1581 Optional Features:
1582 --disable-option-checking ignore unrecognized --enable/--with options
1583 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1584 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1585 --enable-maintainer-mode enable make rules and dependencies not useful
1586 (and sometimes confusing) to the casual installer
1587 --enable-static[=PKGS] build static libraries [default=no]
1588 --enable-shared[=PKGS] build shared libraries [default=yes]
1589 --enable-fast-install[=PKGS]
1590 optimize for fast installation [default=yes]
1591 --disable-dependency-tracking speeds up one-time build
1592 --enable-dependency-tracking do not reject slow dependency extractors
1593 --disable-libtool-lock avoid locking (might break parallel builds)
1594 --disable-dri Disable DRI support [default=auto]
1595
1596 Optional Packages:
1597 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1598 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1599 --with-pic try to use only PIC/non-PIC objects [default=use
1600 both]
1601 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1602 --with-xorg-module-dir=DIR
1603 Default xorg module directory
1604 [default=$libdir/xorg/modules]
1605 --with-release-version=STRING
1606 Use release version string in package name
1607
1608 Some influential environment variables:
1609 CC C compiler command
1610 CFLAGS C compiler flags
1611 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1612 nonstandard directory <lib dir>
1613 LIBS libraries to pass to the linker, e.g. -l<library>
1614 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1615 you have headers in a nonstandard directory <include dir>
1616 CPP C preprocessor
1617 PKG_CONFIG path to pkg-config utility
1618 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1619 XORG_LIBS linker flags for XORG, overriding pkg-config
1620 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config
1621 DRI_LIBS linker flags for DRI, overriding pkg-config
1622 PCIACCESS_CFLAGS
1623 C compiler flags for PCIACCESS, overriding pkg-config
1624 PCIACCESS_LIBS
1625 linker flags for PCIACCESS, overriding pkg-config
1626
1627 Use these variables to override the choices made by `configure' or to help
1628 it to find libraries and programs with nonstandard names/locations.
1629
1630 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1631 _ACEOF
1632 ac_status=$?
1633 fi
1634
1635 if test "$ac_init_help" = "recursive"; then
1636 # If there are subdirs, report their specific --help.
1637 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1638 test -d "$ac_dir" ||
1639 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1640 continue
1641 ac_builddir=.
1642
1643 case "$ac_dir" in
1644 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1645 *)
1646 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1647 # A ".." for each directory in $ac_dir_suffix.
1648 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1649 case $ac_top_builddir_sub in
1650 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1651 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1652 esac ;;
1653 esac
1654 ac_abs_top_builddir=$ac_pwd
1655 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1656 # for backward compatibility:
1657 ac_top_builddir=$ac_top_build_prefix
1658
1659 case $srcdir in
1660 .) # We are building in place.
1661 ac_srcdir=.
1662 ac_top_srcdir=$ac_top_builddir_sub
1663 ac_abs_top_srcdir=$ac_pwd ;;
1664 [\\/]* | ?:[\\/]* ) # Absolute name.
1665 ac_srcdir=$srcdir$ac_dir_suffix;
1666 ac_top_srcdir=$srcdir
1667 ac_abs_top_srcdir=$srcdir ;;
1668 *) # Relative name.
1669 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1670 ac_top_srcdir=$ac_top_build_prefix$srcdir
1671 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1672 esac
1673 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1674
1675 cd "$ac_dir" || { ac_status=$?; continue; }
1676 # Check for guested configure.
1677 if test -f "$ac_srcdir/configure.gnu"; then
1678 echo &&
1679 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1680 elif test -f "$ac_srcdir/configure"; then
1681 echo &&
1682 $SHELL "$ac_srcdir/configure" --help=recursive
1683 else
1684 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1685 fi || ac_status=$?
1686 cd "$ac_pwd" || { ac_status=$?; break; }
1687 done
1688 fi
1689
1690 test -n "$ac_init_help" && exit $ac_status
1691 if $ac_init_version; then
1692 cat <<\_ACEOF
1693 xf86-video-savage configure 2.3.0
1694 generated by GNU Autoconf 2.63
1695
1696 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1697 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1698 This configure script is free software; the Free Software Foundation
1699 gives unlimited permission to copy, distribute and modify it.
1700 _ACEOF
1701 exit
1702 fi
1703 cat >config.log <<_ACEOF
1704 This file contains any messages produced by compilers while
1705 running configure, to aid debugging if configure makes a mistake.
1706
1707 It was created by xf86-video-savage $as_me 2.3.0, which was
1708 generated by GNU Autoconf 2.63. Invocation command line was
1709
1710 $ $0 $@
1711
1712 _ACEOF
1713 exec 5>>config.log
1714 {
1715 cat <<_ASUNAME
1716 ## --------- ##
1717 ## Platform. ##
1718 ## --------- ##
1719
1720 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1721 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1722 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1723 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1724 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1725
1726 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1727 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1728
1729 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1730 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1731 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1732 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1733 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1734 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1735 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1736
1737 _ASUNAME
1738
1739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1740 for as_dir in $PATH
1741 do
1742 IFS=$as_save_IFS
1743 test -z "$as_dir" && as_dir=.
1744 $as_echo "PATH: $as_dir"
1745 done
1746 IFS=$as_save_IFS
1747
1748 } >&5
1749
1750 cat >&5 <<_ACEOF
1751
1752
1753 ## ----------- ##
1754 ## Core tests. ##
1755 ## ----------- ##
1756
1757 _ACEOF
1758
1759
1760 # Keep a trace of the command line.
1761 # Strip out --no-create and --no-recursion so they do not pile up.
1762 # Strip out --silent because we don't want to record it for future runs.
1763 # Also quote any args containing shell meta-characters.
1764 # Make two passes to allow for proper duplicate-argument suppression.
1765 ac_configure_args=
1766 ac_configure_args0=
1767 ac_configure_args1=
1768 ac_must_keep_next=false
1769 for ac_pass in 1 2
1770 do
1771 for ac_arg
1772 do
1773 case $ac_arg in
1774 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1775 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1776 | -silent | --silent | --silen | --sile | --sil)
1777 continue ;;
1778 *\'*)
1779 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1780 esac
1781 case $ac_pass in
1782 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1783 2)
1784 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1785 if test $ac_must_keep_next = true; then
1786 ac_must_keep_next=false # Got value, back to normal.
1787 else
1788 case $ac_arg in
1789 *=* | --config-cache | -C | -disable-* | --disable-* \
1790 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1791 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1792 | -with-* | --with-* | -without-* | --without-* | --x)
1793 case "$ac_configure_args0 " in
1794 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1795 esac
1796 ;;
1797 -* ) ac_must_keep_next=true ;;
1798 esac
1799 fi
1800 ac_configure_args="$ac_configure_args '$ac_arg'"
1801 ;;
1802 esac
1803 done
1804 done
1805 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1806 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1807
1808 # When interrupted or exit'd, cleanup temporary files, and complete
1809 # config.log. We remove comments because anyway the quotes in there
1810 # would cause problems or look ugly.
1811 # WARNING: Use '\'' to represent an apostrophe within the trap.
1812 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1813 trap 'exit_status=$?
1814 # Save into config.log some information that might help in debugging.
1815 {
1816 echo
1817
1818 cat <<\_ASBOX
1819 ## ---------------- ##
1820 ## Cache variables. ##
1821 ## ---------------- ##
1822 _ASBOX
1823 echo
1824 # The following way of writing the cache mishandles newlines in values,
1825 (
1826 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1827 eval ac_val=\$$ac_var
1828 case $ac_val in #(
1829 *${as_nl}*)
1830 case $ac_var in #(
1831 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1832 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1833 esac
1834 case $ac_var in #(
1835 _ | IFS | as_nl) ;; #(
1836 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1837 *) $as_unset $ac_var ;;
1838 esac ;;
1839 esac
1840 done
1841 (set) 2>&1 |
1842 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1843 *${as_nl}ac_space=\ *)
1844 sed -n \
1845 "s/'\''/'\''\\\\'\'''\''/g;
1846 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1847 ;; #(
1848 *)
1849 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1850 ;;
1851 esac |
1852 sort
1853 )
1854 echo
1855
1856 cat <<\_ASBOX
1857 ## ----------------- ##
1858 ## Output variables. ##
1859 ## ----------------- ##
1860 _ASBOX
1861 echo
1862 for ac_var in $ac_subst_vars
1863 do
1864 eval ac_val=\$$ac_var
1865 case $ac_val in
1866 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1867 esac
1868 $as_echo "$ac_var='\''$ac_val'\''"
1869 done | sort
1870 echo
1871
1872 if test -n "$ac_subst_files"; then
1873 cat <<\_ASBOX
1874 ## ------------------- ##
1875 ## File substitutions. ##
1876 ## ------------------- ##
1877 _ASBOX
1878 echo
1879 for ac_var in $ac_subst_files
1880 do
1881 eval ac_val=\$$ac_var
1882 case $ac_val in
1883 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1884 esac
1885 $as_echo "$ac_var='\''$ac_val'\''"
1886 done | sort
1887 echo
1888 fi
1889
1890 if test -s confdefs.h; then
1891 cat <<\_ASBOX
1892 ## ----------- ##
1893 ## confdefs.h. ##
1894 ## ----------- ##
1895 _ASBOX
1896 echo
1897 cat confdefs.h
1898 echo
1899 fi
1900 test "$ac_signal" != 0 &&
1901 $as_echo "$as_me: caught signal $ac_signal"
1902 $as_echo "$as_me: exit $exit_status"
1903 } >&5
1904 rm -f core *.core core.conftest.* &&
1905 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1906 exit $exit_status
1907 ' 0
1908 for ac_signal in 1 2 13 15; do
1909 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1910 done
1911 ac_signal=0
1912
1913 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1914 rm -f -r conftest* confdefs.h
1915
1916 # Predefined preprocessor variables.
1917
1918 cat >>confdefs.h <<_ACEOF
1919 #define PACKAGE_NAME "$PACKAGE_NAME"
1920 _ACEOF
1921
1922
1923 cat >>confdefs.h <<_ACEOF
1924 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1925 _ACEOF
1926
1927
1928 cat >>confdefs.h <<_ACEOF
1929 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1930 _ACEOF
1931
1932
1933 cat >>confdefs.h <<_ACEOF
1934 #define PACKAGE_STRING "$PACKAGE_STRING"
1935 _ACEOF
1936
1937
1938 cat >>confdefs.h <<_ACEOF
1939 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1940 _ACEOF
1941
1942
1943 # Let the site file select an alternate cache file if it wants to.
1944 # Prefer an explicitly selected file to automatically selected ones.
1945 ac_site_file1=NONE
1946 ac_site_file2=NONE
1947 if test -n "$CONFIG_SITE"; then
1948 ac_site_file1=$CONFIG_SITE
1949 elif test "x$prefix" != xNONE; then
1950 ac_site_file1=$prefix/share/config.site
1951 ac_site_file2=$prefix/etc/config.site
1952 else
1953 ac_site_file1=$ac_default_prefix/share/config.site
1954 ac_site_file2=$ac_default_prefix/etc/config.site
1955 fi
1956 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1957 do
1958 test "x$ac_site_file" = xNONE && continue
1959 if test -r "$ac_site_file"; then
1960 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1961 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1962 sed 's/^/| /' "$ac_site_file" >&5
1963 . "$ac_site_file"
1964 fi
1965 done
1966
1967 if test -r "$cache_file"; then
1968 # Some versions of bash will fail to source /dev/null (special
1969 # files actually), so we avoid doing that.
1970 if test -f "$cache_file"; then
1971 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1972 $as_echo "$as_me: loading cache $cache_file" >&6;}
1973 case $cache_file in
1974 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1975 *) . "./$cache_file";;
1976 esac
1977 fi
1978 else
1979 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1980 $as_echo "$as_me: creating cache $cache_file" >&6;}
1981 >$cache_file
1982 fi
1983
1984 # Check that the precious variables saved in the cache have kept the same
1985 # value.
1986 ac_cache_corrupted=false
1987 for ac_var in $ac_precious_vars; do
1988 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1989 eval ac_new_set=\$ac_env_${ac_var}_set
1990 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1991 eval ac_new_val=\$ac_env_${ac_var}_value
1992 case $ac_old_set,$ac_new_set in
1993 set,)
1994 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1995 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1996 ac_cache_corrupted=: ;;
1997 ,set)
1998 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1999 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2000 ac_cache_corrupted=: ;;
2001 ,);;
2002 *)
2003 if test "x$ac_old_val" != "x$ac_new_val"; then
2004 # differences in whitespace do not lead to failure.
2005 ac_old_val_w=`echo x $ac_old_val`
2006 ac_new_val_w=`echo x $ac_new_val`
2007 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2008 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2009 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2010 ac_cache_corrupted=:
2011 else
2012 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2013 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2014 eval $ac_var=\$ac_old_val
2015 fi
2016 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2017 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2018 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2019 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2020 fi;;
2021 esac
2022 # Pass precious variables to config.status.
2023 if test "$ac_new_set" = set; then
2024 case $ac_new_val in
2025 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2026 *) ac_arg=$ac_var=$ac_new_val ;;
2027 esac
2028 case " $ac_configure_args " in
2029 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2030 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2031 esac
2032 fi
2033 done
2034 if $ac_cache_corrupted; then
2035 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2037 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2038 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2039 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2040 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2041 { (exit 1); exit 1; }; }
2042 fi
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
2068 ac_ext=c
2069 ac_cpp='$CPP $CPPFLAGS'
2070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2073
2074
2075
2076
2077 ac_config_headers="$ac_config_headers config.h"
2078
2079 ac_aux_dir=
2080 for ac_dir in . "$srcdir"/.; do
2081 if test -f "$ac_dir/install-sh"; then
2082 ac_aux_dir=$ac_dir
2083 ac_install_sh="$ac_aux_dir/install-sh -c"
2084 break
2085 elif test -f "$ac_dir/install.sh"; then
2086 ac_aux_dir=$ac_dir
2087 ac_install_sh="$ac_aux_dir/install.sh -c"
2088 break
2089 elif test -f "$ac_dir/shtool"; then
2090 ac_aux_dir=$ac_dir
2091 ac_install_sh="$ac_aux_dir/shtool install -c"
2092 break
2093 fi
2094 done
2095 if test -z "$ac_aux_dir"; then
2096 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2097 $as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2098 { (exit 1); exit 1; }; }
2099 fi
2100
2101 # These three variables are undocumented and unsupported,
2102 # and are intended to be withdrawn in a future Autoconf release.
2103 # They can cause serious problems if a builder's source tree is in a directory
2104 # whose full name contains unusual characters.
2105 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2106 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2107 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2108
2109
2110
2111 am__api_version='1.10'
2112
2113 # Find a good install program. We prefer a C program (faster),
2114 # so one script is as good as another. But avoid the broken or
2115 # incompatible versions:
2116 # SysV /etc/install, /usr/sbin/install
2117 # SunOS /usr/etc/install
2118 # IRIX /sbin/install
2119 # AIX /bin/install
2120 # AmigaOS /C/install, which installs bootblocks on floppy discs
2121 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2122 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2123 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2124 # OS/2's system install, which has a completely different semantic
2125 # ./install, which can be erroneously created by make from ./install.sh.
2126 # Reject install programs that cannot install multiple files.
2127 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2128 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2129 if test -z "$INSTALL"; then
2130 if test "${ac_cv_path_install+set}" = set; then
2131 $as_echo_n "(cached) " >&6
2132 else
2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134 for as_dir in $PATH
2135 do
2136 IFS=$as_save_IFS
2137 test -z "$as_dir" && as_dir=.
2138 # Account for people who put trailing slashes in PATH elements.
2139 case $as_dir/ in
2140 ./ | .// | /cC/* | \
2141 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2142 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2143 /usr/ucb/* ) ;;
2144 *)
2145 # OSF1 and SCO ODT 3.0 have their own names for install.
2146 # Don't use installbsd from OSF since it installs stuff as root
2147 # by default.
2148 for ac_prog in ginstall scoinst install; do
2149 for ac_exec_ext in '' $ac_executable_extensions; do
2150 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2151 if test $ac_prog = install &&
2152 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2153 # AIX install. It has an incompatible calling convention.
2154 :
2155 elif test $ac_prog = install &&
2156 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2157 # program-specific install script used by HP pwplus--don't use.
2158 :
2159 else
2160 rm -rf conftest.one conftest.two conftest.dir
2161 echo one > conftest.one
2162 echo two > conftest.two
2163 mkdir conftest.dir
2164 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2165 test -s conftest.one && test -s conftest.two &&
2166 test -s conftest.dir/conftest.one &&
2167 test -s conftest.dir/conftest.two
2168 then
2169 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2170 break 3
2171 fi
2172 fi
2173 fi
2174 done
2175 done
2176 ;;
2177 esac
2178
2179 done
2180 IFS=$as_save_IFS
2181
2182 rm -rf conftest.one conftest.two conftest.dir
2183
2184 fi
2185 if test "${ac_cv_path_install+set}" = set; then
2186 INSTALL=$ac_cv_path_install
2187 else
2188 # As a last resort, use the slow shell script. Don't cache a
2189 # value for INSTALL within a source directory, because that will
2190 # break other packages using the cache if that directory is
2191 # removed, or if the value is a relative name.
2192 INSTALL=$ac_install_sh
2193 fi
2194 fi
2195 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2196 $as_echo "$INSTALL" >&6; }
2197
2198 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2199 # It thinks the first close brace ends the variable substitution.
2200 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2201
2202 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2203
2204 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2205
2206 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2207 $as_echo_n "checking whether build environment is sane... " >&6; }
2208 # Just in case
2209 sleep 1
2210 echo timestamp > conftest.file
2211 # Do `set' in a subshell so we don't clobber the current shell's
2212 # arguments. Must try -L first in case configure is actually a
2213 # symlink; some systems play weird games with the mod time of symlinks
2214 # (eg FreeBSD returns the mod time of the symlink's containing
2215 # directory).
2216 if (
2217 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2218 if test "$*" = "X"; then
2219 # -L didn't work.
2220 set X `ls -t $srcdir/configure conftest.file`
2221 fi
2222 rm -f conftest.file
2223 if test "$*" != "X $srcdir/configure conftest.file" \
2224 && test "$*" != "X conftest.file $srcdir/configure"; then
2225
2226 # If neither matched, then we have a broken ls. This can happen
2227 # if, for instance, CONFIG_SHELL is bash and it inherits a
2228 # broken ls alias from the environment. This has actually
2229 # happened. Such a system could not be considered "sane".
2230 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2231 alias in your environment" >&5
2232 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2233 alias in your environment" >&2;}
2234 { (exit 1); exit 1; }; }
2235 fi
2236
2237 test "$2" = conftest.file
2238 )
2239 then
2240 # Ok.
2241 :
2242 else
2243 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2244 Check your system clock" >&5
2245 $as_echo "$as_me: error: newly created file is older than distributed files!
2246 Check your system clock" >&2;}
2247 { (exit 1); exit 1; }; }
2248 fi
2249 { $as_echo "$as_me:$LINENO: result: yes" >&5
2250 $as_echo "yes" >&6; }
2251 test "$program_prefix" != NONE &&
2252 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2253 # Use a double $ so make ignores it.
2254 test "$program_suffix" != NONE &&
2255 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2256 # Double any \ or $.
2257 # By default was `s,x,x', remove it if useless.
2258 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2259 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2260
2261 # expand $ac_aux_dir to an absolute path
2262 am_aux_dir=`cd $ac_aux_dir && pwd`
2263
2264 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2265 # Use eval to expand $SHELL
2266 if eval "$MISSING --run true"; then
2267 am_missing_run="$MISSING --run "
2268 else
2269 am_missing_run=
2270 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2271 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2272 fi
2273
2274 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2275 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2276 if test -z "$MKDIR_P"; then
2277 if test "${ac_cv_path_mkdir+set}" = set; then
2278 $as_echo_n "(cached) " >&6
2279 else
2280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2282 do
2283 IFS=$as_save_IFS
2284 test -z "$as_dir" && as_dir=.
2285 for ac_prog in mkdir gmkdir; do
2286 for ac_exec_ext in '' $ac_executable_extensions; do
2287 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2288 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2289 'mkdir (GNU coreutils) '* | \
2290 'mkdir (coreutils) '* | \
2291 'mkdir (fileutils) '4.1*)
2292 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2293 break 3;;
2294 esac
2295 done
2296 done
2297 done
2298 IFS=$as_save_IFS
2299
2300 fi
2301
2302 if test "${ac_cv_path_mkdir+set}" = set; then
2303 MKDIR_P="$ac_cv_path_mkdir -p"
2304 else
2305 # As a last resort, use the slow shell script. Don't cache a
2306 # value for MKDIR_P within a source directory, because that will
2307 # break other packages using the cache if that directory is
2308 # removed, or if the value is a relative name.
2309 test -d ./--version && rmdir ./--version
2310 MKDIR_P="$ac_install_sh -d"
2311 fi
2312 fi
2313 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2314 $as_echo "$MKDIR_P" >&6; }
2315
2316 mkdir_p="$MKDIR_P"
2317 case $mkdir_p in
2318 [\\/$]* | ?:[\\/]*) ;;
2319 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2320 esac
2321
2322 for ac_prog in gawk mawk nawk awk
2323 do
2324 # Extract the first word of "$ac_prog", so it can be a program name with args.
2325 set dummy $ac_prog; ac_word=$2
2326 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2327 $as_echo_n "checking for $ac_word... " >&6; }
2328 if test "${ac_cv_prog_AWK+set}" = set; then
2329 $as_echo_n "(cached) " >&6
2330 else
2331 if test -n "$AWK"; then
2332 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2333 else
2334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335 for as_dir in $PATH
2336 do
2337 IFS=$as_save_IFS
2338 test -z "$as_dir" && as_dir=.
2339 for ac_exec_ext in '' $ac_executable_extensions; do
2340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2341 ac_cv_prog_AWK="$ac_prog"
2342 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2343 break 2
2344 fi
2345 done
2346 done
2347 IFS=$as_save_IFS
2348
2349 fi
2350 fi
2351 AWK=$ac_cv_prog_AWK
2352 if test -n "$AWK"; then
2353 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2354 $as_echo "$AWK" >&6; }
2355 else
2356 { $as_echo "$as_me:$LINENO: result: no" >&5
2357 $as_echo "no" >&6; }
2358 fi
2359
2360
2361 test -n "$AWK" && break
2362 done
2363
2364 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2365 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2366 set x ${MAKE-make}
2367 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2368 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2369 $as_echo_n "(cached) " >&6
2370 else
2371 cat >conftest.make <<\_ACEOF
2372 SHELL = /bin/sh
2373 all:
2374 @echo '@@@%%%=$(MAKE)=@@@%%%'
2375 _ACEOF
2376 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2377 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2378 *@@@%%%=?*=@@@%%%*)
2379 eval ac_cv_prog_make_${ac_make}_set=yes;;
2380 *)
2381 eval ac_cv_prog_make_${ac_make}_set=no;;
2382 esac
2383 rm -f conftest.make
2384 fi
2385 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2386 { $as_echo "$as_me:$LINENO: result: yes" >&5
2387 $as_echo "yes" >&6; }
2388 SET_MAKE=
2389 else
2390 { $as_echo "$as_me:$LINENO: result: no" >&5
2391 $as_echo "no" >&6; }
2392 SET_MAKE="MAKE=${MAKE-make}"
2393 fi
2394
2395 rm -rf .tst 2>/dev/null
2396 mkdir .tst 2>/dev/null
2397 if test -d .tst; then
2398 am__leading_dot=.
2399 else
2400 am__leading_dot=_
2401 fi
2402 rmdir .tst 2>/dev/null
2403
2404 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2405 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2406 # is not polluted with repeated "-I."
2407 am__isrc=' -I$(srcdir)'
2408 # test to see if srcdir already configured
2409 if test -f $srcdir/config.status; then
2410 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2411 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2412 { (exit 1); exit 1; }; }
2413 fi
2414 fi
2415
2416 # test whether we have cygpath
2417 if test -z "$CYGPATH_W"; then
2418 if (cygpath --version) >/dev/null 2>/dev/null; then
2419 CYGPATH_W='cygpath -w'
2420 else
2421 CYGPATH_W=echo
2422 fi
2423 fi
2424
2425
2426 # Define the identity of the package.
2427 PACKAGE='xf86-video-savage'
2428 VERSION='2.3.0'
2429
2430
2431 cat >>confdefs.h <<_ACEOF
2432 #define PACKAGE "$PACKAGE"
2433 _ACEOF
2434
2435
2436 cat >>confdefs.h <<_ACEOF
2437 #define VERSION "$VERSION"
2438 _ACEOF
2439
2440 # Some tools Automake needs.
2441
2442 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2443
2444
2445 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2446
2447
2448 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2449
2450
2451 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2452
2453
2454 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2455
2456 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2457
2458 # Installed binaries are usually stripped using `strip' when the user
2459 # run `make install-strip'. However `strip' might not be the right
2460 # tool to use in cross-compilation environments, therefore Automake
2461 # will honor the `STRIP' environment variable to overrule this program.
2462 if test "$cross_compiling" != no; then
2463 if test -n "$ac_tool_prefix"; then
2464 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2465 set dummy ${ac_tool_prefix}strip; ac_word=$2
2466 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2467 $as_echo_n "checking for $ac_word... " >&6; }
2468 if test "${ac_cv_prog_STRIP+set}" = set; then
2469 $as_echo_n "(cached) " >&6
2470 else
2471 if test -n "$STRIP"; then
2472 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2473 else
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 for as_dir in $PATH
2476 do
2477 IFS=$as_save_IFS
2478 test -z "$as_dir" && as_dir=.
2479 for ac_exec_ext in '' $ac_executable_extensions; do
2480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2481 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2482 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483 break 2
2484 fi
2485 done
2486 done
2487 IFS=$as_save_IFS
2488
2489 fi
2490 fi
2491 STRIP=$ac_cv_prog_STRIP
2492 if test -n "$STRIP"; then
2493 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2494 $as_echo "$STRIP" >&6; }
2495 else
2496 { $as_echo "$as_me:$LINENO: result: no" >&5
2497 $as_echo "no" >&6; }
2498 fi
2499
2500
2501 fi
2502 if test -z "$ac_cv_prog_STRIP"; then
2503 ac_ct_STRIP=$STRIP
2504 # Extract the first word of "strip", so it can be a program name with args.
2505 set dummy strip; ac_word=$2
2506 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2507 $as_echo_n "checking for $ac_word... " >&6; }
2508 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2509 $as_echo_n "(cached) " >&6
2510 else
2511 if test -n "$ac_ct_STRIP"; then
2512 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2513 else
2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515 for as_dir in $PATH
2516 do
2517 IFS=$as_save_IFS
2518 test -z "$as_dir" && as_dir=.
2519 for ac_exec_ext in '' $ac_executable_extensions; do
2520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2521 ac_cv_prog_ac_ct_STRIP="strip"
2522 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2523 break 2
2524 fi
2525 done
2526 done
2527 IFS=$as_save_IFS
2528
2529 fi
2530 fi
2531 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2532 if test -n "$ac_ct_STRIP"; then
2533 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2534 $as_echo "$ac_ct_STRIP" >&6; }
2535 else
2536 { $as_echo "$as_me:$LINENO: result: no" >&5
2537 $as_echo "no" >&6; }
2538 fi
2539
2540 if test "x$ac_ct_STRIP" = x; then
2541 STRIP=":"
2542 else
2543 case $cross_compiling:$ac_tool_warned in
2544 yes:)
2545 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2547 ac_tool_warned=yes ;;
2548 esac
2549 STRIP=$ac_ct_STRIP
2550 fi
2551 else
2552 STRIP="$ac_cv_prog_STRIP"
2553 fi
2554
2555 fi
2556 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2557
2558 # We need awk for the "check" target. The system "awk" is bad on
2559 # some platforms.
2560 # Always define AMTAR for backward compatibility.
2561
2562 AMTAR=${AMTAR-"${am_missing_run}tar"}
2563
2564 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2565
2566
2567
2568
2569
2570
2571 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2572 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2573 # Check whether --enable-maintainer-mode was given.
2574 if test "${enable_maintainer_mode+set}" = set; then
2575 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2576 else
2577 USE_MAINTAINER_MODE=no
2578 fi
2579
2580 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2581 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2582 if test $USE_MAINTAINER_MODE = yes; then
2583 MAINTAINER_MODE_TRUE=
2584 MAINTAINER_MODE_FALSE='#'
2585 else
2586 MAINTAINER_MODE_TRUE='#'
2587 MAINTAINER_MODE_FALSE=
2588 fi
2589
2590 MAINT=$MAINTAINER_MODE_TRUE
2591
2592
2593
2594 # Checks for programs.
2595 # Check whether --enable-static was given.
2596 if test "${enable_static+set}" = set; then
2597 enableval=$enable_static; p=${PACKAGE-default}
2598 case $enableval in
2599 yes) enable_static=yes ;;
2600 no) enable_static=no ;;
2601 *)
2602 enable_static=no
2603 # Look at the argument we got. We use all the common list separators.
2604 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2605 for pkg in $enableval; do
2606 IFS="$lt_save_ifs"
2607 if test "X$pkg" = "X$p"; then
2608 enable_static=yes
2609 fi
2610 done
2611 IFS="$lt_save_ifs"
2612 ;;
2613 esac
2614 else
2615 enable_static=no
2616 fi
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626 case `pwd` in
2627 *\ * | *\ *)
2628 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2629 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2630 esac
2631
2632
2633
2634 macro_version='2.2.6'
2635 macro_revision='1.3012'
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649 ltmain="$ac_aux_dir/ltmain.sh"
2650
2651 # Make sure we can run config.sub.
2652 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2653 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2654 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2655 { (exit 1); exit 1; }; }
2656
2657 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2658 $as_echo_n "checking build system type... " >&6; }
2659 if test "${ac_cv_build+set}" = set; then
2660 $as_echo_n "(cached) " >&6
2661 else
2662 ac_build_alias=$build_alias
2663 test "x$ac_build_alias" = x &&
2664 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2665 test "x$ac_build_alias" = x &&
2666 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2667 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2668 { (exit 1); exit 1; }; }
2669 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2670 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2671 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2672 { (exit 1); exit 1; }; }
2673
2674 fi
2675 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2676 $as_echo "$ac_cv_build" >&6; }
2677 case $ac_cv_build in
2678 *-*-*) ;;
2679 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2680 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2681 { (exit 1); exit 1; }; };;
2682 esac
2683 build=$ac_cv_build
2684 ac_save_IFS=$IFS; IFS='-'
2685 set x $ac_cv_build
2686 shift
2687 build_cpu=$1
2688 build_vendor=$2
2689 shift; shift
2690 # Remember, the first character of IFS is used to create $*,
2691 # except with old shells:
2692 build_os=$*
2693 IFS=$ac_save_IFS
2694 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2695
2696
2697 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2698 $as_echo_n "checking host system type... " >&6; }
2699 if test "${ac_cv_host+set}" = set; then
2700 $as_echo_n "(cached) " >&6
2701 else
2702 if test "x$host_alias" = x; then
2703 ac_cv_host=$ac_cv_build
2704 else
2705 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2706 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2707 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2708 { (exit 1); exit 1; }; }
2709 fi
2710
2711 fi
2712 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2713 $as_echo "$ac_cv_host" >&6; }
2714 case $ac_cv_host in
2715 *-*-*) ;;
2716 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2717 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2718 { (exit 1); exit 1; }; };;
2719 esac
2720 host=$ac_cv_host
2721 ac_save_IFS=$IFS; IFS='-'
2722 set x $ac_cv_host
2723 shift
2724 host_cpu=$1
2725 host_vendor=$2
2726 shift; shift
2727 # Remember, the first character of IFS is used to create $*,
2728 # except with old shells:
2729 host_os=$*
2730 IFS=$ac_save_IFS
2731 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2732
2733
2734 DEPDIR="${am__leading_dot}deps"
2735
2736 ac_config_commands="$ac_config_commands depfiles"
2737
2738
2739 am_make=${MAKE-make}
2740 cat > confinc << 'END'
2741 am__doit:
2742 @echo done
2743 .PHONY: am__doit
2744 END
2745 # If we don't find an include directive, just comment out the code.
2746 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2747 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2748 am__include="#"
2749 am__quote=
2750 _am_result=none
2751 # First try GNU make style include.
2752 echo "include confinc" > confmf
2753 # We grep out `Entering directory' and `Leaving directory'
2754 # messages which can occur if `w' ends up in MAKEFLAGS.
2755 # In particular we don't look at `^make:' because GNU make might
2756 # be invoked under some other name (usually "gmake"), in which
2757 # case it prints its new name instead of `make'.
2758 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2759 am__include=include
2760 am__quote=
2761 _am_result=GNU
2762 fi
2763 # Now try BSD make style include.
2764 if test "$am__include" = "#"; then
2765 echo '.include "confinc"' > confmf
2766 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2767 am__include=.include
2768 am__quote="\""
2769 _am_result=BSD
2770 fi
2771 fi
2772
2773
2774 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2775 $as_echo "$_am_result" >&6; }
2776 rm -f confinc confmf
2777
2778 # Check whether --enable-dependency-tracking was given.
2779 if test "${enable_dependency_tracking+set}" = set; then
2780 enableval=$enable_dependency_tracking;
2781 fi
2782
2783 if test "x$enable_dependency_tracking" != xno; then
2784 am_depcomp="$ac_aux_dir/depcomp"
2785 AMDEPBACKSLASH='\'
2786 fi
2787 if test "x$enable_dependency_tracking" != xno; then
2788 AMDEP_TRUE=
2789 AMDEP_FALSE='#'
2790 else
2791 AMDEP_TRUE='#'
2792 AMDEP_FALSE=
2793 fi
2794
2795
2796 ac_ext=c
2797 ac_cpp='$CPP $CPPFLAGS'
2798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2801 if test -n "$ac_tool_prefix"; then
2802 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2803 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2804 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2805 $as_echo_n "checking for $ac_word... " >&6; }
2806 if test "${ac_cv_prog_CC+set}" = set; then
2807 $as_echo_n "(cached) " >&6
2808 else
2809 if test -n "$CC"; then
2810 ac_cv_prog_CC="$CC" # Let the user override the test.
2811 else
2812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 for as_dir in $PATH
2814 do
2815 IFS=$as_save_IFS
2816 test -z "$as_dir" && as_dir=.
2817 for ac_exec_ext in '' $ac_executable_extensions; do
2818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2819 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2820 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2821 break 2
2822 fi
2823 done
2824 done
2825 IFS=$as_save_IFS
2826
2827 fi
2828 fi
2829 CC=$ac_cv_prog_CC
2830 if test -n "$CC"; then
2831 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2832 $as_echo "$CC" >&6; }
2833 else
2834 { $as_echo "$as_me:$LINENO: result: no" >&5
2835 $as_echo "no" >&6; }
2836 fi
2837
2838
2839 fi
2840 if test -z "$ac_cv_prog_CC"; then
2841 ac_ct_CC=$CC
2842 # Extract the first word of "gcc", so it can be a program name with args.
2843 set dummy gcc; ac_word=$2
2844 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2845 $as_echo_n "checking for $ac_word... " >&6; }
2846 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2847 $as_echo_n "(cached) " >&6
2848 else
2849 if test -n "$ac_ct_CC"; then
2850 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2851 else
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH
2854 do
2855 IFS=$as_save_IFS
2856 test -z "$as_dir" && as_dir=.
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2859 ac_cv_prog_ac_ct_CC="gcc"
2860 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 break 2
2862 fi
2863 done
2864 done
2865 IFS=$as_save_IFS
2866
2867 fi
2868 fi
2869 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2870 if test -n "$ac_ct_CC"; then
2871 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2872 $as_echo "$ac_ct_CC" >&6; }
2873 else
2874 { $as_echo "$as_me:$LINENO: result: no" >&5
2875 $as_echo "no" >&6; }
2876 fi
2877
2878 if test "x$ac_ct_CC" = x; then
2879 CC=""
2880 else
2881 case $cross_compiling:$ac_tool_warned in
2882 yes:)
2883 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2885 ac_tool_warned=yes ;;
2886 esac
2887 CC=$ac_ct_CC
2888 fi
2889 else
2890 CC="$ac_cv_prog_CC"
2891 fi
2892
2893 if test -z "$CC"; then
2894 if test -n "$ac_tool_prefix"; then
2895 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2896 set dummy ${ac_tool_prefix}cc; ac_word=$2
2897 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2898 $as_echo_n "checking for $ac_word... " >&6; }
2899 if test "${ac_cv_prog_CC+set}" = set; then
2900 $as_echo_n "(cached) " >&6
2901 else
2902 if test -n "$CC"; then
2903 ac_cv_prog_CC="$CC" # Let the user override the test.
2904 else
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2907 do
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2912 ac_cv_prog_CC="${ac_tool_prefix}cc"
2913 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2914 break 2
2915 fi
2916 done
2917 done
2918 IFS=$as_save_IFS
2919
2920 fi
2921 fi
2922 CC=$ac_cv_prog_CC
2923 if test -n "$CC"; then
2924 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2925 $as_echo "$CC" >&6; }
2926 else
2927 { $as_echo "$as_me:$LINENO: result: no" >&5
2928 $as_echo "no" >&6; }
2929 fi
2930
2931
2932 fi
2933 fi
2934 if test -z "$CC"; then
2935 # Extract the first word of "cc", so it can be a program name with args.
2936 set dummy cc; ac_word=$2
2937 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2938 $as_echo_n "checking for $ac_word... " >&6; }
2939 if test "${ac_cv_prog_CC+set}" = set; then
2940 $as_echo_n "(cached) " >&6
2941 else
2942 if test -n "$CC"; then
2943 ac_cv_prog_CC="$CC" # Let the user override the test.
2944 else
2945 ac_prog_rejected=no
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 for as_dir in $PATH
2948 do
2949 IFS=$as_save_IFS
2950 test -z "$as_dir" && as_dir=.
2951 for ac_exec_ext in '' $ac_executable_extensions; do
2952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2953 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2954 ac_prog_rejected=yes
2955 continue
2956 fi
2957 ac_cv_prog_CC="cc"
2958 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2959 break 2
2960 fi
2961 done
2962 done
2963 IFS=$as_save_IFS
2964
2965 if test $ac_prog_rejected = yes; then
2966 # We found a bogon in the path, so make sure we never use it.
2967 set dummy $ac_cv_prog_CC
2968 shift
2969 if test $# != 0; then
2970 # We chose a different compiler from the bogus one.
2971 # However, it has the same basename, so the bogon will be chosen
2972 # first if we set CC to just the basename; use the full file name.
2973 shift
2974 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2975 fi
2976 fi
2977 fi
2978 fi
2979 CC=$ac_cv_prog_CC
2980 if test -n "$CC"; then
2981 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2982 $as_echo "$CC" >&6; }
2983 else
2984 { $as_echo "$as_me:$LINENO: result: no" >&5
2985 $as_echo "no" >&6; }
2986 fi
2987
2988
2989 fi
2990 if test -z "$CC"; then
2991 if test -n "$ac_tool_prefix"; then
2992 for ac_prog in cl.exe
2993 do
2994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2995 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2996 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2997 $as_echo_n "checking for $ac_word... " >&6; }
2998 if test "${ac_cv_prog_CC+set}" = set; then
2999 $as_echo_n "(cached) " >&6
3000 else
3001 if test -n "$CC"; then
3002 ac_cv_prog_CC="$CC" # Let the user override the test.
3003 else
3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005 for as_dir in $PATH
3006 do
3007 IFS=$as_save_IFS
3008 test -z "$as_dir" && as_dir=.
3009 for ac_exec_ext in '' $ac_executable_extensions; do
3010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3011 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3012 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3013 break 2
3014 fi
3015 done
3016 done
3017 IFS=$as_save_IFS
3018
3019 fi
3020 fi
3021 CC=$ac_cv_prog_CC
3022 if test -n "$CC"; then
3023 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3024 $as_echo "$CC" >&6; }
3025 else
3026 { $as_echo "$as_me:$LINENO: result: no" >&5
3027 $as_echo "no" >&6; }
3028 fi
3029
3030
3031 test -n "$CC" && break
3032 done
3033 fi
3034 if test -z "$CC"; then
3035 ac_ct_CC=$CC
3036 for ac_prog in cl.exe
3037 do
3038 # Extract the first word of "$ac_prog", so it can be a program name with args.
3039 set dummy $ac_prog; ac_word=$2
3040 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3041 $as_echo_n "checking for $ac_word... " >&6; }
3042 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3043 $as_echo_n "(cached) " >&6
3044 else
3045 if test -n "$ac_ct_CC"; then
3046 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3047 else
3048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049 for as_dir in $PATH
3050 do
3051 IFS=$as_save_IFS
3052 test -z "$as_dir" && as_dir=.
3053 for ac_exec_ext in '' $ac_executable_extensions; do
3054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3055 ac_cv_prog_ac_ct_CC="$ac_prog"
3056 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3057 break 2
3058 fi
3059 done
3060 done
3061 IFS=$as_save_IFS
3062
3063 fi
3064 fi
3065 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3066 if test -n "$ac_ct_CC"; then
3067 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3068 $as_echo "$ac_ct_CC" >&6; }
3069 else
3070 { $as_echo "$as_me:$LINENO: result: no" >&5
3071 $as_echo "no" >&6; }
3072 fi
3073
3074
3075 test -n "$ac_ct_CC" && break
3076 done
3077
3078 if test "x$ac_ct_CC" = x; then
3079 CC=""
3080 else
3081 case $cross_compiling:$ac_tool_warned in
3082 yes:)
3083 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3085 ac_tool_warned=yes ;;
3086 esac
3087 CC=$ac_ct_CC
3088 fi
3089 fi
3090
3091 fi
3092
3093
3094 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3096 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3097 See \`config.log' for more details." >&5
3098 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3099 See \`config.log' for more details." >&2;}
3100 { (exit 1); exit 1; }; }; }
3101
3102 # Provide some information about the compiler.
3103 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3104 set X $ac_compile
3105 ac_compiler=$2
3106 { (ac_try="$ac_compiler --version >&5"
3107 case "(($ac_try" in
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3110 esac
3111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3112 $as_echo "$ac_try_echo") >&5
3113 (eval "$ac_compiler --version >&5") 2>&5
3114 ac_status=$?
3115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); }
3117 { (ac_try="$ac_compiler -v >&5"
3118 case "(($ac_try" in
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3121 esac
3122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3123 $as_echo "$ac_try_echo") >&5
3124 (eval "$ac_compiler -v >&5") 2>&5
3125 ac_status=$?
3126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }
3128 { (ac_try="$ac_compiler -V >&5"
3129 case "(($ac_try" in
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3132 esac
3133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3134 $as_echo "$ac_try_echo") >&5
3135 (eval "$ac_compiler -V >&5") 2>&5
3136 ac_status=$?
3137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }
3139
3140 cat >conftest.$ac_ext <<_ACEOF
3141 /* confdefs.h. */
3142 _ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h. */
3146
3147 int
3148 main ()
3149 {
3150
3151 ;
3152 return 0;
3153 }
3154 _ACEOF
3155 ac_clean_files_save=$ac_clean_files
3156 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3157 # Try to create an executable without -o first, disregard a.out.
3158 # It will help us diagnose broken compilers, and finding out an intuition
3159 # of exeext.
3160 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3161 $as_echo_n "checking for C compiler default output file name... " >&6; }
3162 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3163
3164 # The possible output files:
3165 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3166
3167 ac_rmfiles=
3168 for ac_file in $ac_files
3169 do
3170 case $ac_file in
3171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3172 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3173 esac
3174 done
3175 rm -f $ac_rmfiles
3176
3177 if { (ac_try="$ac_link_default"
3178 case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3181 esac
3182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3183 $as_echo "$ac_try_echo") >&5
3184 (eval "$ac_link_default") 2>&5
3185 ac_status=$?
3186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; then
3188 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3189 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3190 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3191 # so that the user can short-circuit this test for compilers unknown to
3192 # Autoconf.
3193 for ac_file in $ac_files ''
3194 do
3195 test -f "$ac_file" || continue
3196 case $ac_file in
3197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3198 ;;
3199 [ab].out )
3200 # We found the default executable, but exeext='' is most
3201 # certainly right.
3202 break;;
3203 *.* )
3204 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3205 then :; else
3206 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3207 fi
3208 # We set ac_cv_exeext here because the later test for it is not
3209 # safe: cross compilers may not add the suffix if given an `-o'
3210 # argument, so we may need to know it at that point already.
3211 # Even if this section looks crufty: it has the advantage of
3212 # actually working.
3213 break;;
3214 * )
3215 break;;
3216 esac
3217 done
3218 test "$ac_cv_exeext" = no && ac_cv_exeext=
3219
3220 else
3221 ac_file=''
3222 fi
3223
3224 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3225 $as_echo "$ac_file" >&6; }
3226 if test -z "$ac_file"; then
3227 $as_echo "$as_me: failed program was:" >&5
3228 sed 's/^/| /' conftest.$ac_ext >&5
3229
3230 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3232 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3233 See \`config.log' for more details." >&5
3234 $as_echo "$as_me: error: C compiler cannot create executables
3235 See \`config.log' for more details." >&2;}
3236 { (exit 77); exit 77; }; }; }
3237 fi
3238
3239 ac_exeext=$ac_cv_exeext
3240
3241 # Check that the compiler produces executables we can run. If not, either
3242 # the compiler is broken, or we cross compile.
3243 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3244 $as_echo_n "checking whether the C compiler works... " >&6; }
3245 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3246 # If not cross compiling, check that we can run a simple program.
3247 if test "$cross_compiling" != yes; then
3248 if { ac_try='./$ac_file'
3249 { (case "(($ac_try" in
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3252 esac
3253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3254 $as_echo "$ac_try_echo") >&5
3255 (eval "$ac_try") 2>&5
3256 ac_status=$?
3257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; }; then
3259 cross_compiling=no
3260 else
3261 if test "$cross_compiling" = maybe; then
3262 cross_compiling=yes
3263 else
3264 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3266 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3267 If you meant to cross compile, use \`--host'.
3268 See \`config.log' for more details." >&5
3269 $as_echo "$as_me: error: cannot run C compiled programs.
3270 If you meant to cross compile, use \`--host'.
3271 See \`config.log' for more details." >&2;}
3272 { (exit 1); exit 1; }; }; }
3273 fi
3274 fi
3275 fi
3276 { $as_echo "$as_me:$LINENO: result: yes" >&5
3277 $as_echo "yes" >&6; }
3278
3279 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3280 ac_clean_files=$ac_clean_files_save
3281 # Check that the compiler produces executables we can run. If not, either
3282 # the compiler is broken, or we cross compile.
3283 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3284 $as_echo_n "checking whether we are cross compiling... " >&6; }
3285 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3286 $as_echo "$cross_compiling" >&6; }
3287
3288 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3289 $as_echo_n "checking for suffix of executables... " >&6; }
3290 if { (ac_try="$ac_link"
3291 case "(($ac_try" in
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3294 esac
3295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3296 $as_echo "$ac_try_echo") >&5
3297 (eval "$ac_link") 2>&5
3298 ac_status=$?
3299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); }; then
3301 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3302 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3303 # work properly (i.e., refer to `conftest.exe'), while it won't with
3304 # `rm'.
3305 for ac_file in conftest.exe conftest conftest.*; do
3306 test -f "$ac_file" || continue
3307 case $ac_file in
3308 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3309 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3310 break;;
3311 * ) break;;
3312 esac
3313 done
3314 else
3315 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3317 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3318 See \`config.log' for more details." >&5
3319 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3320 See \`config.log' for more details." >&2;}
3321 { (exit 1); exit 1; }; }; }
3322 fi
3323
3324 rm -f conftest$ac_cv_exeext
3325 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3326 $as_echo "$ac_cv_exeext" >&6; }
3327
3328 rm -f conftest.$ac_ext
3329 EXEEXT=$ac_cv_exeext
3330 ac_exeext=$EXEEXT
3331 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3332 $as_echo_n "checking for suffix of object files... " >&6; }
3333 if test "${ac_cv_objext+set}" = set; then
3334 $as_echo_n "(cached) " >&6
3335 else
3336 cat >conftest.$ac_ext <<_ACEOF
3337 /* confdefs.h. */
3338 _ACEOF
3339 cat confdefs.h >>conftest.$ac_ext
3340 cat >>conftest.$ac_ext <<_ACEOF
3341 /* end confdefs.h. */
3342
3343 int
3344 main ()
3345 {
3346
3347 ;
3348 return 0;
3349 }
3350 _ACEOF
3351 rm -f conftest.o conftest.obj
3352 if { (ac_try="$ac_compile"
3353 case "(($ac_try" in
3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355 *) ac_try_echo=$ac_try;;
3356 esac
3357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3358 $as_echo "$ac_try_echo") >&5
3359 (eval "$ac_compile") 2>&5
3360 ac_status=$?
3361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); }; then
3363 for ac_file in conftest.o conftest.obj conftest.*; do
3364 test -f "$ac_file" || continue;
3365 case $ac_file in
3366 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3367 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3368 break;;
3369 esac
3370 done
3371 else
3372 $as_echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3374
3375 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3377 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3378 See \`config.log' for more details." >&5
3379 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3380 See \`config.log' for more details." >&2;}
3381 { (exit 1); exit 1; }; }; }
3382 fi
3383
3384 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3385 fi
3386 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3387 $as_echo "$ac_cv_objext" >&6; }
3388 OBJEXT=$ac_cv_objext
3389 ac_objext=$OBJEXT
3390 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3391 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3392 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3393 $as_echo_n "(cached) " >&6
3394 else
3395 cat >conftest.$ac_ext <<_ACEOF
3396 /* confdefs.h. */
3397 _ACEOF
3398 cat confdefs.h >>conftest.$ac_ext
3399 cat >>conftest.$ac_ext <<_ACEOF
3400 /* end confdefs.h. */
3401
3402 int
3403 main ()
3404 {
3405 #ifndef __GNUC__
3406 choke me
3407 #endif
3408
3409 ;
3410 return 0;
3411 }
3412 _ACEOF
3413 rm -f conftest.$ac_objext
3414 if { (ac_try="$ac_compile"
3415 case "(($ac_try" in
3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417 *) ac_try_echo=$ac_try;;
3418 esac
3419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3420 $as_echo "$ac_try_echo") >&5
3421 (eval "$ac_compile") 2>conftest.er1
3422 ac_status=$?
3423 grep -v '^ *+' conftest.er1 >conftest.err
3424 rm -f conftest.er1
3425 cat conftest.err >&5
3426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); } && {
3428 test -z "$ac_c_werror_flag" ||
3429 test ! -s conftest.err
3430 } && test -s conftest.$ac_objext; then
3431 ac_compiler_gnu=yes
3432 else
3433 $as_echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3435
3436 ac_compiler_gnu=no
3437 fi
3438
3439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3440 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3441
3442 fi
3443 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3444 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3445 if test $ac_compiler_gnu = yes; then
3446 GCC=yes
3447 else
3448 GCC=
3449 fi
3450 ac_test_CFLAGS=${CFLAGS+set}
3451 ac_save_CFLAGS=$CFLAGS
3452 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3453 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3454 if test "${ac_cv_prog_cc_g+set}" = set; then
3455 $as_echo_n "(cached) " >&6
3456 else
3457 ac_save_c_werror_flag=$ac_c_werror_flag
3458 ac_c_werror_flag=yes
3459 ac_cv_prog_cc_g=no
3460 CFLAGS="-g"
3461 cat >conftest.$ac_ext <<_ACEOF
3462 /* confdefs.h. */
3463 _ACEOF
3464 cat confdefs.h >>conftest.$ac_ext
3465 cat >>conftest.$ac_ext <<_ACEOF
3466 /* end confdefs.h. */
3467
3468 int
3469 main ()
3470 {
3471
3472 ;
3473 return 0;
3474 }
3475 _ACEOF
3476 rm -f conftest.$ac_objext
3477 if { (ac_try="$ac_compile"
3478 case "(($ac_try" in
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3481 esac
3482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3483 $as_echo "$ac_try_echo") >&5
3484 (eval "$ac_compile") 2>conftest.er1
3485 ac_status=$?
3486 grep -v '^ *+' conftest.er1 >conftest.err
3487 rm -f conftest.er1
3488 cat conftest.err >&5
3489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); } && {
3491 test -z "$ac_c_werror_flag" ||
3492 test ! -s conftest.err
3493 } && test -s conftest.$ac_objext; then
3494 ac_cv_prog_cc_g=yes
3495 else
3496 $as_echo "$as_me: failed program was:" >&5
3497 sed 's/^/| /' conftest.$ac_ext >&5
3498
3499 CFLAGS=""
3500 cat >conftest.$ac_ext <<_ACEOF
3501 /* confdefs.h. */
3502 _ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3506
3507 int
3508 main ()
3509 {
3510
3511 ;
3512 return 0;
3513 }
3514 _ACEOF
3515 rm -f conftest.$ac_objext
3516 if { (ac_try="$ac_compile"
3517 case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520 esac
3521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3522 $as_echo "$ac_try_echo") >&5
3523 (eval "$ac_compile") 2>conftest.er1
3524 ac_status=$?
3525 grep -v '^ *+' conftest.er1 >conftest.err
3526 rm -f conftest.er1
3527 cat conftest.err >&5
3528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } && {
3530 test -z "$ac_c_werror_flag" ||
3531 test ! -s conftest.err
3532 } && test -s conftest.$ac_objext; then
3533 :
3534 else
3535 $as_echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3537
3538 ac_c_werror_flag=$ac_save_c_werror_flag
3539 CFLAGS="-g"
3540 cat >conftest.$ac_ext <<_ACEOF
3541 /* confdefs.h. */
3542 _ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h. */
3546
3547 int
3548 main ()
3549 {
3550
3551 ;
3552 return 0;
3553 }
3554 _ACEOF
3555 rm -f conftest.$ac_objext
3556 if { (ac_try="$ac_compile"
3557 case "(($ac_try" in
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3560 esac
3561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3562 $as_echo "$ac_try_echo") >&5
3563 (eval "$ac_compile") 2>conftest.er1
3564 ac_status=$?
3565 grep -v '^ *+' conftest.er1 >conftest.err
3566 rm -f conftest.er1
3567 cat conftest.err >&5
3568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } && {
3570 test -z "$ac_c_werror_flag" ||
3571 test ! -s conftest.err
3572 } && test -s conftest.$ac_objext; then
3573 ac_cv_prog_cc_g=yes
3574 else
3575 $as_echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3577
3578
3579 fi
3580
3581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3582 fi
3583
3584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585 fi
3586
3587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588 ac_c_werror_flag=$ac_save_c_werror_flag
3589 fi
3590 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3591 $as_echo "$ac_cv_prog_cc_g" >&6; }
3592 if test "$ac_test_CFLAGS" = set; then
3593 CFLAGS=$ac_save_CFLAGS
3594 elif test $ac_cv_prog_cc_g = yes; then
3595 if test "$GCC" = yes; then
3596 CFLAGS="-g -O2"
3597 else
3598 CFLAGS="-g"
3599 fi
3600 else
3601 if test "$GCC" = yes; then
3602 CFLAGS="-O2"
3603 else
3604 CFLAGS=
3605 fi
3606 fi
3607 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3608 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3609 if test "${ac_cv_prog_cc_c89+set}" = set; then
3610 $as_echo_n "(cached) " >&6
3611 else
3612 ac_cv_prog_cc_c89=no
3613 ac_save_CC=$CC
3614 cat >conftest.$ac_ext <<_ACEOF
3615 /* confdefs.h. */
3616 _ACEOF
3617 cat confdefs.h >>conftest.$ac_ext
3618 cat >>conftest.$ac_ext <<_ACEOF
3619 /* end confdefs.h. */
3620 #include <stdarg.h>
3621 #include <stdio.h>
3622 #include <sys/types.h>
3623 #include <sys/stat.h>
3624 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3625 struct buf { int x; };
3626 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3627 static char *e (p, i)
3628 char **p;
3629 int i;
3630 {
3631 return p[i];
3632 }
3633 static char *f (char * (*g) (char **, int), char **p, ...)
3634 {
3635 char *s;
3636 va_list v;
3637 va_start (v,p);
3638 s = g (p, va_arg (v,int));
3639 va_end (v);
3640 return s;
3641 }
3642
3643 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3644 function prototypes and stuff, but not '\xHH' hex character constants.
3645 These don't provoke an error unfortunately, instead are silently treated
3646 as 'x'. The following induces an error, until -std is added to get
3647 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3648 array size at least. It's necessary to write '\x00'==0 to get something
3649 that's true only with -std. */
3650 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3651
3652 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3653 inside strings and character constants. */
3654 #define FOO(x) 'x'
3655 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3656
3657 int test (int i, double x);
3658 struct s1 {int (*f) (int a);};
3659 struct s2 {int (*f) (double a);};
3660 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3661 int argc;
3662 char **argv;
3663 int
3664 main ()
3665 {
3666 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3667 ;
3668 return 0;
3669 }
3670 _ACEOF
3671 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3672 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3673 do
3674 CC="$ac_save_CC $ac_arg"
3675 rm -f conftest.$ac_objext
3676 if { (ac_try="$ac_compile"
3677 case "(($ac_try" in
3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3680 esac
3681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3682 $as_echo "$ac_try_echo") >&5
3683 (eval "$ac_compile") 2>conftest.er1
3684 ac_status=$?
3685 grep -v '^ *+' conftest.er1 >conftest.err
3686 rm -f conftest.er1
3687 cat conftest.err >&5
3688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); } && {
3690 test -z "$ac_c_werror_flag" ||
3691 test ! -s conftest.err
3692 } && test -s conftest.$ac_objext; then
3693 ac_cv_prog_cc_c89=$ac_arg
3694 else
3695 $as_echo "$as_me: failed program was:" >&5
3696 sed 's/^/| /' conftest.$ac_ext >&5
3697
3698
3699 fi
3700
3701 rm -f core conftest.err conftest.$ac_objext
3702 test "x$ac_cv_prog_cc_c89" != "xno" && break
3703 done
3704 rm -f conftest.$ac_ext
3705 CC=$ac_save_CC
3706
3707 fi
3708 # AC_CACHE_VAL
3709 case "x$ac_cv_prog_cc_c89" in
3710 x)
3711 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3712 $as_echo "none needed" >&6; } ;;
3713 xno)
3714 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3715 $as_echo "unsupported" >&6; } ;;
3716 *)
3717 CC="$CC $ac_cv_prog_cc_c89"
3718 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3719 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3720 esac
3721
3722
3723 ac_ext=c
3724 ac_cpp='$CPP $CPPFLAGS'
3725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3728
3729 depcc="$CC" am_compiler_list=
3730
3731 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3732 $as_echo_n "checking dependency style of $depcc... " >&6; }
3733 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3734 $as_echo_n "(cached) " >&6
3735 else
3736 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3737 # We make a subdir and do the tests there. Otherwise we can end up
3738 # making bogus files that we don't know about and never remove. For
3739 # instance it was reported that on HP-UX the gcc test will end up
3740 # making a dummy file named `D' -- because `-MD' means `put the output
3741 # in D'.
3742 mkdir conftest.dir
3743 # Copy depcomp to subdir because otherwise we won't find it if we're
3744 # using a relative directory.
3745 cp "$am_depcomp" conftest.dir
3746 cd conftest.dir
3747 # We will build objects and dependencies in a subdirectory because
3748 # it helps to detect inapplicable dependency modes. For instance
3749 # both Tru64's cc and ICC support -MD to output dependencies as a
3750 # side effect of compilation, but ICC will put the dependencies in
3751 # the current directory while Tru64 will put them in the object
3752 # directory.
3753 mkdir sub
3754
3755 am_cv_CC_dependencies_compiler_type=none
3756 if test "$am_compiler_list" = ""; then
3757 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3758 fi
3759 for depmode in $am_compiler_list; do
3760 # Setup a source with many dependencies, because some compilers
3761 # like to wrap large dependency lists on column 80 (with \), and
3762 # we should not choose a depcomp mode which is confused by this.
3763 #
3764 # We need to recreate these files for each test, as the compiler may
3765 # overwrite some of them when testing with obscure command lines.
3766 # This happens at least with the AIX C compiler.
3767 : > sub/conftest.c
3768 for i in 1 2 3 4 5 6; do
3769 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3770 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3771 # Solaris 8's {/usr,}/bin/sh.
3772 touch sub/conftst$i.h
3773 done
3774 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3775
3776 case $depmode in
3777 nosideeffect)
3778 # after this tag, mechanisms are not by side-effect, so they'll
3779 # only be used when explicitly requested
3780 if test "x$enable_dependency_tracking" = xyes; then
3781 continue
3782 else
3783 break
3784 fi
3785 ;;
3786 none) break ;;
3787 esac
3788 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3789 # mode. It turns out that the SunPro C++ compiler does not properly
3790 # handle `-M -o', and we need to detect this.
3791 if depmode=$depmode \
3792 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3793 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3794 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3795 >/dev/null 2>conftest.err &&
3796 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3797 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3798 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3799 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3800 # icc doesn't choke on unknown options, it will just issue warnings
3801 # or remarks (even with -Werror). So we grep stderr for any message
3802 # that says an option was ignored or not supported.
3803 # When given -MP, icc 7.0 and 7.1 complain thusly:
3804 # icc: Command line warning: ignoring option '-M'; no argument required
3805 # The diagnosis changed in icc 8.0:
3806 # icc: Command line remark: option '-MP' not supported
3807 if (grep 'ignoring option' conftest.err ||
3808 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3809 am_cv_CC_dependencies_compiler_type=$depmode
3810 break
3811 fi
3812 fi
3813 done
3814
3815 cd ..
3816 rm -rf conftest.dir
3817 else
3818 am_cv_CC_dependencies_compiler_type=none
3819 fi
3820
3821 fi
3822 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3823 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3824 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3825
3826 if
3827 test "x$enable_dependency_tracking" != xno \
3828 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3829 am__fastdepCC_TRUE=
3830 am__fastdepCC_FALSE='#'
3831 else
3832 am__fastdepCC_TRUE='#'
3833 am__fastdepCC_FALSE=
3834 fi
3835
3836
3837 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3838 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3839 if test "${ac_cv_path_SED+set}" = set; then
3840 $as_echo_n "(cached) " >&6
3841 else
3842 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3843 for ac_i in 1 2 3 4 5 6 7; do
3844 ac_script="$ac_script$as_nl$ac_script"
3845 done
3846 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3847 $as_unset ac_script || ac_script=
3848 if test -z "$SED"; then
3849 ac_path_SED_found=false
3850 # Loop through the user's path and test for each of PROGNAME-LIST
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 for as_dir in $PATH
3853 do
3854 IFS=$as_save_IFS
3855 test -z "$as_dir" && as_dir=.
3856 for ac_prog in sed gsed; do
3857 for ac_exec_ext in '' $ac_executable_extensions; do
3858 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3859 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3860 # Check for GNU ac_path_SED and select it if it is found.
3861 # Check for GNU $ac_path_SED
3862 case `"$ac_path_SED" --version 2>&1` in
3863 *GNU*)
3864 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3865 *)
3866 ac_count=0
3867 $as_echo_n 0123456789 >"conftest.in"
3868 while :
3869 do
3870 cat "conftest.in" "conftest.in" >"conftest.tmp"
3871 mv "conftest.tmp" "conftest.in"
3872 cp "conftest.in" "conftest.nl"
3873 $as_echo '' >> "conftest.nl"
3874 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3875 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3876 ac_count=`expr $ac_count + 1`
3877 if test $ac_count -gt ${ac_path_SED_max-0}; then
3878 # Best one so far, save it but keep looking for a better one
3879 ac_cv_path_SED="$ac_path_SED"
3880 ac_path_SED_max=$ac_count
3881 fi
3882 # 10*(2^10) chars as input seems more than enough
3883 test $ac_count -gt 10 && break
3884 done
3885 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3886 esac
3887
3888 $ac_path_SED_found && break 3
3889 done
3890 done
3891 done
3892 IFS=$as_save_IFS
3893 if test -z "$ac_cv_path_SED"; then
3894 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3895 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3896 { (exit 1); exit 1; }; }
3897 fi
3898 else
3899 ac_cv_path_SED=$SED
3900 fi
3901
3902 fi
3903 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3904 $as_echo "$ac_cv_path_SED" >&6; }
3905 SED="$ac_cv_path_SED"
3906 rm -f conftest.sed
3907
3908 test -z "$SED" && SED=sed
3909 Xsed="$SED -e 1s/^X//"
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3922 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3923 if test "${ac_cv_path_GREP+set}" = set; then
3924 $as_echo_n "(cached) " >&6
3925 else
3926 if test -z "$GREP"; then
3927 ac_path_GREP_found=false
3928 # Loop through the user's path and test for each of PROGNAME-LIST
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3931 do
3932 IFS=$as_save_IFS
3933 test -z "$as_dir" && as_dir=.
3934 for ac_prog in grep ggrep; do
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3937 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3938 # Check for GNU ac_path_GREP and select it if it is found.
3939 # Check for GNU $ac_path_GREP
3940 case `"$ac_path_GREP" --version 2>&1` in
3941 *GNU*)
3942 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3943 *)
3944 ac_count=0
3945 $as_echo_n 0123456789 >"conftest.in"
3946 while :
3947 do
3948 cat "conftest.in" "conftest.in" >"conftest.tmp"
3949 mv "conftest.tmp" "conftest.in"
3950 cp "conftest.in" "conftest.nl"
3951 $as_echo 'GREP' >> "conftest.nl"
3952 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3953 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3954 ac_count=`expr $ac_count + 1`
3955 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3956 # Best one so far, save it but keep looking for a better one
3957 ac_cv_path_GREP="$ac_path_GREP"
3958 ac_path_GREP_max=$ac_count
3959 fi
3960 # 10*(2^10) chars as input seems more than enough
3961 test $ac_count -gt 10 && break
3962 done
3963 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3964 esac
3965
3966 $ac_path_GREP_found && break 3
3967 done
3968 done
3969 done
3970 IFS=$as_save_IFS
3971 if test -z "$ac_cv_path_GREP"; then
3972 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3973 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3974 { (exit 1); exit 1; }; }
3975 fi
3976 else
3977 ac_cv_path_GREP=$GREP
3978 fi
3979
3980 fi
3981 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3982 $as_echo "$ac_cv_path_GREP" >&6; }
3983 GREP="$ac_cv_path_GREP"
3984
3985
3986 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3987 $as_echo_n "checking for egrep... " >&6; }
3988 if test "${ac_cv_path_EGREP+set}" = set; then
3989 $as_echo_n "(cached) " >&6
3990 else
3991 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3992 then ac_cv_path_EGREP="$GREP -E"
3993 else
3994 if test -z "$EGREP"; then
3995 ac_path_EGREP_found=false
3996 # Loop through the user's path and test for each of PROGNAME-LIST
3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3999 do
4000 IFS=$as_save_IFS
4001 test -z "$as_dir" && as_dir=.
4002 for ac_prog in egrep; do
4003 for ac_exec_ext in '' $ac_executable_extensions; do
4004 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4005 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4006 # Check for GNU ac_path_EGREP and select it if it is found.
4007 # Check for GNU $ac_path_EGREP
4008 case `"$ac_path_EGREP" --version 2>&1` in
4009 *GNU*)
4010 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4011 *)
4012 ac_count=0
4013 $as_echo_n 0123456789 >"conftest.in"
4014 while :
4015 do
4016 cat "conftest.in" "conftest.in" >"conftest.tmp"
4017 mv "conftest.tmp" "conftest.in"
4018 cp "conftest.in" "conftest.nl"
4019 $as_echo 'EGREP' >> "conftest.nl"
4020 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4021 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4022 ac_count=`expr $ac_count + 1`
4023 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4024 # Best one so far, save it but keep looking for a better one
4025 ac_cv_path_EGREP="$ac_path_EGREP"
4026 ac_path_EGREP_max=$ac_count
4027 fi
4028 # 10*(2^10) chars as input seems more than enough
4029 test $ac_count -gt 10 && break
4030 done
4031 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4032 esac
4033
4034 $ac_path_EGREP_found && break 3
4035 done
4036 done
4037 done
4038 IFS=$as_save_IFS
4039 if test -z "$ac_cv_path_EGREP"; then
4040 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4041 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4042 { (exit 1); exit 1; }; }
4043 fi
4044 else
4045 ac_cv_path_EGREP=$EGREP
4046 fi
4047
4048 fi
4049 fi
4050 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4051 $as_echo "$ac_cv_path_EGREP" >&6; }
4052 EGREP="$ac_cv_path_EGREP"
4053
4054
4055 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4056 $as_echo_n "checking for fgrep... " >&6; }
4057 if test "${ac_cv_path_FGREP+set}" = set; then
4058 $as_echo_n "(cached) " >&6
4059 else
4060 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4061 then ac_cv_path_FGREP="$GREP -F"
4062 else
4063 if test -z "$FGREP"; then
4064 ac_path_FGREP_found=false
4065 # Loop through the user's path and test for each of PROGNAME-LIST
4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4068 do
4069 IFS=$as_save_IFS
4070 test -z "$as_dir" && as_dir=.
4071 for ac_prog in fgrep; do
4072 for ac_exec_ext in '' $ac_executable_extensions; do
4073 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4074 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4075 # Check for GNU ac_path_FGREP and select it if it is found.
4076 # Check for GNU $ac_path_FGREP
4077 case `"$ac_path_FGREP" --version 2>&1` in
4078 *GNU*)
4079 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4080 *)
4081 ac_count=0
4082 $as_echo_n 0123456789 >"conftest.in"
4083 while :
4084 do
4085 cat "conftest.in" "conftest.in" >"conftest.tmp"
4086 mv "conftest.tmp" "conftest.in"
4087 cp "conftest.in" "conftest.nl"
4088 $as_echo 'FGREP' >> "conftest.nl"
4089 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4090 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4091 ac_count=`expr $ac_count + 1`
4092 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4093 # Best one so far, save it but keep looking for a better one
4094 ac_cv_path_FGREP="$ac_path_FGREP"
4095 ac_path_FGREP_max=$ac_count
4096 fi
4097 # 10*(2^10) chars as input seems more than enough
4098 test $ac_count -gt 10 && break
4099 done
4100 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4101 esac
4102
4103 $ac_path_FGREP_found && break 3
4104 done
4105 done
4106 done
4107 IFS=$as_save_IFS
4108 if test -z "$ac_cv_path_FGREP"; then
4109 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4110 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4111 { (exit 1); exit 1; }; }
4112 fi
4113 else
4114 ac_cv_path_FGREP=$FGREP
4115 fi
4116
4117 fi
4118 fi
4119 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4120 $as_echo "$ac_cv_path_FGREP" >&6; }
4121 FGREP="$ac_cv_path_FGREP"
4122
4123
4124 test -z "$GREP" && GREP=grep
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144 # Check whether --with-gnu-ld was given.
4145 if test "${with_gnu_ld+set}" = set; then
4146 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4147 else
4148 with_gnu_ld=no
4149 fi
4150
4151 ac_prog=ld
4152 if test "$GCC" = yes; then
4153 # Check if gcc -print-prog-name=ld gives a path.
4154 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4155 $as_echo_n "checking for ld used by $CC... " >&6; }
4156 case $host in
4157 *-*-mingw*)
4158 # gcc leaves a trailing carriage return which upsets mingw
4159 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4160 *)
4161 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4162 esac
4163 case $ac_prog in
4164 # Accept absolute paths.
4165 [\\/]* | ?:[\\/]*)
4166 re_direlt='/[^/][^/]*/\.\./'
4167 # Canonicalize the pathname of ld
4168 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4169 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4170 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4171 done
4172 test -z "$LD" && LD="$ac_prog"
4173 ;;
4174 "")
4175 # If it fails, then pretend we aren't using GCC.
4176 ac_prog=ld
4177 ;;
4178 *)
4179 # If it is relative, then search for the first ld in PATH.
4180 with_gnu_ld=unknown
4181 ;;
4182 esac
4183 elif test "$with_gnu_ld" = yes; then
4184 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4185 $as_echo_n "checking for GNU ld... " >&6; }
4186 else
4187 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4188 $as_echo_n "checking for non-GNU ld... " >&6; }
4189 fi
4190 if test "${lt_cv_path_LD+set}" = set; then
4191 $as_echo_n "(cached) " >&6
4192 else
4193 if test -z "$LD"; then
4194 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4195 for ac_dir in $PATH; do
4196 IFS="$lt_save_ifs"
4197 test -z "$ac_dir" && ac_dir=.
4198 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4199 lt_cv_path_LD="$ac_dir/$ac_prog"
4200 # Check to see if the program is GNU ld. I'd rather use --version,
4201 # but apparently some variants of GNU ld only accept -v.
4202 # Break only if it was the GNU/non-GNU ld that we prefer.
4203 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4204 *GNU* | *'with BFD'*)
4205 test "$with_gnu_ld" != no && break
4206 ;;
4207 *)
4208 test "$with_gnu_ld" != yes && break
4209 ;;
4210 esac
4211 fi
4212 done
4213 IFS="$lt_save_ifs"
4214 else
4215 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4216 fi
4217 fi
4218
4219 LD="$lt_cv_path_LD"
4220 if test -n "$LD"; then
4221 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4222 $as_echo "$LD" >&6; }
4223 else
4224 { $as_echo "$as_me:$LINENO: result: no" >&5
4225 $as_echo "no" >&6; }
4226 fi
4227 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4228 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4229 { (exit 1); exit 1; }; }
4230 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4231 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4232 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4233 $as_echo_n "(cached) " >&6
4234 else
4235 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4236 case `$LD -v 2>&1 </dev/null` in
4237 *GNU* | *'with BFD'*)
4238 lt_cv_prog_gnu_ld=yes
4239 ;;
4240 *)
4241 lt_cv_prog_gnu_ld=no
4242 ;;
4243 esac
4244 fi
4245 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4246 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4247 with_gnu_ld=$lt_cv_prog_gnu_ld
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4258 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4259 if test "${lt_cv_path_NM+set}" = set; then
4260 $as_echo_n "(cached) " >&6
4261 else
4262 if test -n "$NM"; then
4263 # Let the user override the test.
4264 lt_cv_path_NM="$NM"
4265 else
4266 lt_nm_to_check="${ac_tool_prefix}nm"
4267 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4268 lt_nm_to_check="$lt_nm_to_check nm"
4269 fi
4270 for lt_tmp_nm in $lt_nm_to_check; do
4271 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4272 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4273 IFS="$lt_save_ifs"
4274 test -z "$ac_dir" && ac_dir=.
4275 tmp_nm="$ac_dir/$lt_tmp_nm"
4276 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4277 # Check to see if the nm accepts a BSD-compat flag.
4278 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4279 # nm: unknown option "B" ignored
4280 # Tru64's nm complains that /dev/null is an invalid object file
4281 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4282 */dev/null* | *'Invalid file or object type'*)
4283 lt_cv_path_NM="$tmp_nm -B"
4284 break
4285 ;;
4286 *)
4287 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4288 */dev/null*)
4289 lt_cv_path_NM="$tmp_nm -p"
4290 break
4291 ;;
4292 *)
4293 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4294 continue # so that we can try to find one that supports BSD flags
4295 ;;
4296 esac
4297 ;;
4298 esac
4299 fi
4300 done
4301 IFS="$lt_save_ifs"
4302 done
4303 : ${lt_cv_path_NM=no}
4304 fi
4305 fi
4306 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4307 $as_echo "$lt_cv_path_NM" >&6; }
4308 if test "$lt_cv_path_NM" != "no"; then
4309 NM="$lt_cv_path_NM"
4310 else
4311 # Didn't find any BSD compatible name lister, look for dumpbin.
4312 if test -n "$ac_tool_prefix"; then
4313 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4314 do
4315 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4316 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4317 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4318 $as_echo_n "checking for $ac_word... " >&6; }
4319 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4320 $as_echo_n "(cached) " >&6
4321 else
4322 if test -n "$DUMPBIN"; then
4323 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4324 else
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 for as_dir in $PATH
4327 do
4328 IFS=$as_save_IFS
4329 test -z "$as_dir" && as_dir=.
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4332 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4333 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 break 2
4335 fi
4336 done
4337 done
4338 IFS=$as_save_IFS
4339
4340 fi
4341 fi
4342 DUMPBIN=$ac_cv_prog_DUMPBIN
4343 if test -n "$DUMPBIN"; then
4344 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4345 $as_echo "$DUMPBIN" >&6; }
4346 else
4347 { $as_echo "$as_me:$LINENO: result: no" >&5
4348 $as_echo "no" >&6; }
4349 fi
4350
4351
4352 test -n "$DUMPBIN" && break
4353 done
4354 fi
4355 if test -z "$DUMPBIN"; then
4356 ac_ct_DUMPBIN=$DUMPBIN
4357 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4358 do
4359 # Extract the first word of "$ac_prog", so it can be a program name with args.
4360 set dummy $ac_prog; ac_word=$2
4361 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4362 $as_echo_n "checking for $ac_word... " >&6; }
4363 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4364 $as_echo_n "(cached) " >&6
4365 else
4366 if test -n "$ac_ct_DUMPBIN"; then
4367 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4368 else
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH
4371 do
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4376 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4377 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4378 break 2
4379 fi
4380 done
4381 done
4382 IFS=$as_save_IFS
4383
4384 fi
4385 fi
4386 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4387 if test -n "$ac_ct_DUMPBIN"; then
4388 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4389 $as_echo "$ac_ct_DUMPBIN" >&6; }
4390 else
4391 { $as_echo "$as_me:$LINENO: result: no" >&5
4392 $as_echo "no" >&6; }
4393 fi
4394
4395
4396 test -n "$ac_ct_DUMPBIN" && break
4397 done
4398
4399 if test "x$ac_ct_DUMPBIN" = x; then
4400 DUMPBIN=":"
4401 else
4402 case $cross_compiling:$ac_tool_warned in
4403 yes:)
4404 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4406 ac_tool_warned=yes ;;
4407 esac
4408 DUMPBIN=$ac_ct_DUMPBIN
4409 fi
4410 fi
4411
4412
4413 if test "$DUMPBIN" != ":"; then
4414 NM="$DUMPBIN"
4415 fi
4416 fi
4417 test -z "$NM" && NM=nm
4418
4419
4420
4421
4422
4423
4424 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4425 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4426 if test "${lt_cv_nm_interface+set}" = set; then
4427 $as_echo_n "(cached) " >&6
4428 else
4429 lt_cv_nm_interface="BSD nm"
4430 echo "int some_variable = 0;" > conftest.$ac_ext
4431 (eval echo "\"\$as_me:4431: $ac_compile\"" >&5)
4432 (eval "$ac_compile" 2>conftest.err)
4433 cat conftest.err >&5
4434 (eval echo "\"\$as_me:4434: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4435 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4436 cat conftest.err >&5
4437 (eval echo "\"\$as_me:4437: output\"" >&5)
4438 cat conftest.out >&5
4439 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4440 lt_cv_nm_interface="MS dumpbin"
4441 fi
4442 rm -f conftest*
4443 fi
4444 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4445 $as_echo "$lt_cv_nm_interface" >&6; }
4446
4447 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4448 $as_echo_n "checking whether ln -s works... " >&6; }
4449 LN_S=$as_ln_s
4450 if test "$LN_S" = "ln -s"; then
4451 { $as_echo "$as_me:$LINENO: result: yes" >&5
4452 $as_echo "yes" >&6; }
4453 else
4454 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4455 $as_echo "no, using $LN_S" >&6; }
4456 fi
4457
4458 # find the maximum length of command line arguments
4459 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4460 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4461 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4462 $as_echo_n "(cached) " >&6
4463 else
4464 i=0
4465 teststring="ABCD"
4466
4467 case $build_os in
4468 msdosdjgpp*)
4469 # On DJGPP, this test can blow up pretty badly due to problems in libc
4470 # (any single argument exceeding 2000 bytes causes a buffer overrun
4471 # during glob expansion). Even if it were fixed, the result of this
4472 # check would be larger than it should be.
4473 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4474 ;;
4475
4476 gnu*)
4477 # Under GNU Hurd, this test is not required because there is
4478 # no limit to the length of command line arguments.
4479 # Libtool will interpret -1 as no limit whatsoever
4480 lt_cv_sys_max_cmd_len=-1;
4481 ;;
4482
4483 cygwin* | mingw* | cegcc*)
4484 # On Win9x/ME, this test blows up -- it succeeds, but takes
4485 # about 5 minutes as the teststring grows exponentially.
4486 # Worse, since 9x/ME are not pre-emptively multitasking,
4487 # you end up with a "frozen" computer, even though with patience
4488 # the test eventually succeeds (with a max line length of 256k).
4489 # Instead, let's just punt: use the minimum linelength reported by
4490 # all of the supported platforms: 8192 (on NT/2K/XP).
4491 lt_cv_sys_max_cmd_len=8192;
4492 ;;
4493
4494 amigaos*)
4495 # On AmigaOS with pdksh, this test takes hours, literally.
4496 # So we just punt and use a minimum line length of 8192.
4497 lt_cv_sys_max_cmd_len=8192;
4498 ;;
4499
4500 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4501 # This has been around since 386BSD, at least. Likely further.
4502 if test -x /sbin/sysctl; then
4503 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4504 elif test -x /usr/sbin/sysctl; then
4505 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4506 else
4507 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4508 fi
4509 # And add a safety zone
4510 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4511 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4512 ;;
4513
4514 interix*)
4515 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4516 lt_cv_sys_max_cmd_len=196608
4517 ;;
4518
4519 osf*)
4520 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4521 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4522 # nice to cause kernel panics so lets avoid the loop below.
4523 # First set a reasonable default.
4524 lt_cv_sys_max_cmd_len=16384
4525 #
4526 if test -x /sbin/sysconfig; then
4527 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4528 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4529 esac
4530 fi
4531 ;;
4532 sco3.2v5*)
4533 lt_cv_sys_max_cmd_len=102400
4534 ;;
4535 sysv5* | sco5v6* | sysv4.2uw2*)
4536 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4537 if test -n "$kargmax"; then
4538 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4539 else
4540 lt_cv_sys_max_cmd_len=32768
4541 fi
4542 ;;
4543 *)
4544 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4545 if test -n "$lt_cv_sys_max_cmd_len"; then
4546 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4547 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4548 else
4549 # Make teststring a little bigger before we do anything with it.
4550 # a 1K string should be a reasonable start.
4551 for i in 1 2 3 4 5 6 7 8 ; do
4552 teststring=$teststring$teststring
4553 done
4554 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4555 # If test is not a shell built-in, we'll probably end up computing a
4556 # maximum length that is only half of the actual maximum length, but
4557 # we can't tell.
4558 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4559 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4560 test $i != 17 # 1/2 MB should be enough
4561 do
4562 i=`expr $i + 1`
4563 teststring=$teststring$teststring
4564 done
4565 # Only check the string length outside the loop.
4566 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4567 teststring=
4568 # Add a significant safety factor because C++ compilers can tack on
4569 # massive amounts of additional arguments before passing them to the
4570 # linker. It appears as though 1/2 is a usable value.
4571 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4572 fi
4573 ;;
4574 esac
4575
4576 fi
4577
4578 if test -n $lt_cv_sys_max_cmd_len ; then
4579 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4580 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4581 else
4582 { $as_echo "$as_me:$LINENO: result: none" >&5
4583 $as_echo "none" >&6; }
4584 fi
4585 max_cmd_len=$lt_cv_sys_max_cmd_len
4586
4587
4588
4589
4590
4591
4592 : ${CP="cp -f"}
4593 : ${MV="mv -f"}
4594 : ${RM="rm -f"}
4595
4596 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4597 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4598 # Try some XSI features
4599 xsi_shell=no
4600 ( _lt_dummy="a/b/c"
4601 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4602 = c,a/b,, \
4603 && eval 'test $(( 1 + 1 )) -eq 2 \
4604 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4605 && xsi_shell=yes
4606 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4607 $as_echo "$xsi_shell" >&6; }
4608
4609
4610 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4611 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4612 lt_shell_append=no
4613 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4614 >/dev/null 2>&1 \
4615 && lt_shell_append=yes
4616 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4617 $as_echo "$lt_shell_append" >&6; }
4618
4619
4620 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4621 lt_unset=unset
4622 else
4623 lt_unset=false
4624 fi
4625
4626
4627
4628
4629
4630 # test EBCDIC or ASCII
4631 case `echo X|tr X '\101'` in
4632 A) # ASCII based system
4633 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4634 lt_SP2NL='tr \040 \012'
4635 lt_NL2SP='tr \015\012 \040\040'
4636 ;;
4637 *) # EBCDIC based system
4638 lt_SP2NL='tr \100 \n'
4639 lt_NL2SP='tr \r\n \100\100'
4640 ;;
4641 esac
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4652 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4653 if test "${lt_cv_ld_reload_flag+set}" = set; then
4654 $as_echo_n "(cached) " >&6
4655 else
4656 lt_cv_ld_reload_flag='-r'
4657 fi
4658 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4659 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4660 reload_flag=$lt_cv_ld_reload_flag
4661 case $reload_flag in
4662 "" | " "*) ;;
4663 *) reload_flag=" $reload_flag" ;;
4664 esac
4665 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4666 case $host_os in
4667 darwin*)
4668 if test "$GCC" = yes; then
4669 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4670 else
4671 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4672 fi
4673 ;;
4674 esac
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684 if test -n "$ac_tool_prefix"; then
4685 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4686 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4687 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4688 $as_echo_n "checking for $ac_word... " >&6; }
4689 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4690 $as_echo_n "(cached) " >&6
4691 else
4692 if test -n "$OBJDUMP"; then
4693 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4694 else
4695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696 for as_dir in $PATH
4697 do
4698 IFS=$as_save_IFS
4699 test -z "$as_dir" && as_dir=.
4700 for ac_exec_ext in '' $ac_executable_extensions; do
4701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4702 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4703 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4704 break 2
4705 fi
4706 done
4707 done
4708 IFS=$as_save_IFS
4709
4710 fi
4711 fi
4712 OBJDUMP=$ac_cv_prog_OBJDUMP
4713 if test -n "$OBJDUMP"; then
4714 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4715 $as_echo "$OBJDUMP" >&6; }
4716 else
4717 { $as_echo "$as_me:$LINENO: result: no" >&5
4718 $as_echo "no" >&6; }
4719 fi
4720
4721
4722 fi
4723 if test -z "$ac_cv_prog_OBJDUMP"; then
4724 ac_ct_OBJDUMP=$OBJDUMP
4725 # Extract the first word of "objdump", so it can be a program name with args.
4726 set dummy objdump; ac_word=$2
4727 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4728 $as_echo_n "checking for $ac_word... " >&6; }
4729 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4730 $as_echo_n "(cached) " >&6
4731 else
4732 if test -n "$ac_ct_OBJDUMP"; then
4733 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4734 else
4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 for as_dir in $PATH
4737 do
4738 IFS=$as_save_IFS
4739 test -z "$as_dir" && as_dir=.
4740 for ac_exec_ext in '' $ac_executable_extensions; do
4741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4742 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4743 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4744 break 2
4745 fi
4746 done
4747 done
4748 IFS=$as_save_IFS
4749
4750 fi
4751 fi
4752 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4753 if test -n "$ac_ct_OBJDUMP"; then
4754 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4755 $as_echo "$ac_ct_OBJDUMP" >&6; }
4756 else
4757 { $as_echo "$as_me:$LINENO: result: no" >&5
4758 $as_echo "no" >&6; }
4759 fi
4760
4761 if test "x$ac_ct_OBJDUMP" = x; then
4762 OBJDUMP="false"
4763 else
4764 case $cross_compiling:$ac_tool_warned in
4765 yes:)
4766 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4768 ac_tool_warned=yes ;;
4769 esac
4770 OBJDUMP=$ac_ct_OBJDUMP
4771 fi
4772 else
4773 OBJDUMP="$ac_cv_prog_OBJDUMP"
4774 fi
4775
4776 test -z "$OBJDUMP" && OBJDUMP=objdump
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4787 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4788 if test "${lt_cv_deplibs_check_method+set}" = set; then
4789 $as_echo_n "(cached) " >&6
4790 else
4791 lt_cv_file_magic_cmd='$MAGIC_CMD'
4792 lt_cv_file_magic_test_file=
4793 lt_cv_deplibs_check_method='unknown'
4794 # Need to set the preceding variable on all platforms that support
4795 # interlibrary dependencies.
4796 # 'none' -- dependencies not supported.
4797 # `unknown' -- same as none, but documents that we really don't know.
4798 # 'pass_all' -- all dependencies passed with no checks.
4799 # 'test_compile' -- check by making test program.
4800 # 'file_magic [[regex]]' -- check by looking for files in library path
4801 # which responds to the $file_magic_cmd with a given extended regex.
4802 # If you have `file' or equivalent on your system and you're not sure
4803 # whether `pass_all' will *always* work, you probably want this one.
4804
4805 case $host_os in
4806 aix[4-9]*)
4807 lt_cv_deplibs_check_method=pass_all
4808 ;;
4809
4810 beos*)
4811 lt_cv_deplibs_check_method=pass_all
4812 ;;
4813
4814 bsdi[45]*)
4815 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4816 lt_cv_file_magic_cmd='/usr/bin/file -L'
4817 lt_cv_file_magic_test_file=/shlib/libc.so
4818 ;;
4819
4820 cygwin*)
4821 # func_win32_libid is a shell function defined in ltmain.sh
4822 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4823 lt_cv_file_magic_cmd='func_win32_libid'
4824 ;;
4825
4826 mingw* | pw32*)
4827 # Base MSYS/MinGW do not provide the 'file' command needed by
4828 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4829 # unless we find 'file', for example because we are cross-compiling.
4830 if ( file / ) >/dev/null 2>&1; then
4831 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4832 lt_cv_file_magic_cmd='func_win32_libid'
4833 else
4834 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4835 lt_cv_file_magic_cmd='$OBJDUMP -f'
4836 fi
4837 ;;
4838
4839 cegcc)
4840 # use the weaker test based on 'objdump'. See mingw*.
4841 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4842 lt_cv_file_magic_cmd='$OBJDUMP -f'
4843 ;;
4844
4845 darwin* | rhapsody*)
4846 lt_cv_deplibs_check_method=pass_all
4847 ;;
4848
4849 freebsd* | dragonfly*)
4850 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4851 case $host_cpu in
4852 i*86 )
4853 # Not sure whether the presence of OpenBSD here was a mistake.
4854 # Let's accept both of them until this is cleared up.
4855 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4856 lt_cv_file_magic_cmd=/usr/bin/file
4857 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4858 ;;
4859 esac
4860 else
4861 lt_cv_deplibs_check_method=pass_all
4862 fi
4863 ;;
4864
4865 gnu*)
4866 lt_cv_deplibs_check_method=pass_all
4867 ;;
4868
4869 hpux10.20* | hpux11*)
4870 lt_cv_file_magic_cmd=/usr/bin/file
4871 case $host_cpu in
4872 ia64*)
4873 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4874 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4875 ;;
4876 hppa*64*)
4877 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]'
4878 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4879 ;;
4880 *)
4881 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4882 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4883 ;;
4884 esac
4885 ;;
4886
4887 interix[3-9]*)
4888 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4889 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4890 ;;
4891
4892 irix5* | irix6* | nonstopux*)
4893 case $LD in
4894 *-32|*"-32 ") libmagic=32-bit;;
4895 *-n32|*"-n32 ") libmagic=N32;;
4896 *-64|*"-64 ") libmagic=64-bit;;
4897 *) libmagic=never-match;;
4898 esac
4899 lt_cv_deplibs_check_method=pass_all
4900 ;;
4901
4902 # This must be Linux ELF.
4903 linux* | k*bsd*-gnu)
4904 lt_cv_deplibs_check_method=pass_all
4905 ;;
4906
4907 netbsd*)
4908 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4909 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4910 else
4911 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4912 fi
4913 ;;
4914
4915 newos6*)
4916 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4917 lt_cv_file_magic_cmd=/usr/bin/file
4918 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4919 ;;
4920
4921 *nto* | *qnx*)
4922 lt_cv_deplibs_check_method=pass_all
4923 ;;
4924
4925 openbsd*)
4926 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4927 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4928 else
4929 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4930 fi
4931 ;;
4932
4933 osf3* | osf4* | osf5*)
4934 lt_cv_deplibs_check_method=pass_all
4935 ;;
4936
4937 rdos*)
4938 lt_cv_deplibs_check_method=pass_all
4939 ;;
4940
4941 solaris*)
4942 lt_cv_deplibs_check_method=pass_all
4943 ;;
4944
4945 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4946 lt_cv_deplibs_check_method=pass_all
4947 ;;
4948
4949 sysv4 | sysv4.3*)
4950 case $host_vendor in
4951 motorola)
4952 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]'
4953 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4954 ;;
4955 ncr)
4956 lt_cv_deplibs_check_method=pass_all
4957 ;;
4958 sequent)
4959 lt_cv_file_magic_cmd='/bin/file'
4960 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4961 ;;
4962 sni)
4963 lt_cv_file_magic_cmd='/bin/file'
4964 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4965 lt_cv_file_magic_test_file=/lib/libc.so
4966 ;;
4967 siemens)
4968 lt_cv_deplibs_check_method=pass_all
4969 ;;
4970 pc)
4971 lt_cv_deplibs_check_method=pass_all
4972 ;;
4973 esac
4974 ;;
4975
4976 tpf*)
4977 lt_cv_deplibs_check_method=pass_all
4978 ;;
4979 esac
4980
4981 fi
4982 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4983 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4984 file_magic_cmd=$lt_cv_file_magic_cmd
4985 deplibs_check_method=$lt_cv_deplibs_check_method
4986 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999 if test -n "$ac_tool_prefix"; then
5000 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5001 set dummy ${ac_tool_prefix}ar; ac_word=$2
5002 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5003 $as_echo_n "checking for $ac_word... " >&6; }
5004 if test "${ac_cv_prog_AR+set}" = set; then
5005 $as_echo_n "(cached) " >&6
5006 else
5007 if test -n "$AR"; then
5008 ac_cv_prog_AR="$AR" # Let the user override the test.
5009 else
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 for as_dir in $PATH
5012 do
5013 IFS=$as_save_IFS
5014 test -z "$as_dir" && as_dir=.
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5017 ac_cv_prog_AR="${ac_tool_prefix}ar"
5018 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5019 break 2
5020 fi
5021 done
5022 done
5023 IFS=$as_save_IFS
5024
5025 fi
5026 fi
5027 AR=$ac_cv_prog_AR
5028 if test -n "$AR"; then
5029 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5030 $as_echo "$AR" >&6; }
5031 else
5032 { $as_echo "$as_me:$LINENO: result: no" >&5
5033 $as_echo "no" >&6; }
5034 fi
5035
5036
5037 fi
5038 if test -z "$ac_cv_prog_AR"; then
5039 ac_ct_AR=$AR
5040 # Extract the first word of "ar", so it can be a program name with args.
5041 set dummy ar; ac_word=$2
5042 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5043 $as_echo_n "checking for $ac_word... " >&6; }
5044 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5045 $as_echo_n "(cached) " >&6
5046 else
5047 if test -n "$ac_ct_AR"; then
5048 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5049 else
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 for as_dir in $PATH
5052 do
5053 IFS=$as_save_IFS
5054 test -z "$as_dir" && as_dir=.
5055 for ac_exec_ext in '' $ac_executable_extensions; do
5056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5057 ac_cv_prog_ac_ct_AR="ar"
5058 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5059 break 2
5060 fi
5061 done
5062 done
5063 IFS=$as_save_IFS
5064
5065 fi
5066 fi
5067 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5068 if test -n "$ac_ct_AR"; then
5069 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5070 $as_echo "$ac_ct_AR" >&6; }
5071 else
5072 { $as_echo "$as_me:$LINENO: result: no" >&5
5073 $as_echo "no" >&6; }
5074 fi
5075
5076 if test "x$ac_ct_AR" = x; then
5077 AR="false"
5078 else
5079 case $cross_compiling:$ac_tool_warned in
5080 yes:)
5081 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5083 ac_tool_warned=yes ;;
5084 esac
5085 AR=$ac_ct_AR
5086 fi
5087 else
5088 AR="$ac_cv_prog_AR"
5089 fi
5090
5091 test -z "$AR" && AR=ar
5092 test -z "$AR_FLAGS" && AR_FLAGS=cru
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104 if test -n "$ac_tool_prefix"; then
5105 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5106 set dummy ${ac_tool_prefix}strip; ac_word=$2
5107 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5108 $as_echo_n "checking for $ac_word... " >&6; }
5109 if test "${ac_cv_prog_STRIP+set}" = set; then
5110 $as_echo_n "(cached) " >&6
5111 else
5112 if test -n "$STRIP"; then
5113 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5114 else
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH
5117 do
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5122 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5123 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 break 2
5125 fi
5126 done
5127 done
5128 IFS=$as_save_IFS
5129
5130 fi
5131 fi
5132 STRIP=$ac_cv_prog_STRIP
5133 if test -n "$STRIP"; then
5134 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5135 $as_echo "$STRIP" >&6; }
5136 else
5137 { $as_echo "$as_me:$LINENO: result: no" >&5
5138 $as_echo "no" >&6; }
5139 fi
5140
5141
5142 fi
5143 if test -z "$ac_cv_prog_STRIP"; then
5144 ac_ct_STRIP=$STRIP
5145 # Extract the first word of "strip", so it can be a program name with args.
5146 set dummy strip; ac_word=$2
5147 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5148 $as_echo_n "checking for $ac_word... " >&6; }
5149 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5150 $as_echo_n "(cached) " >&6
5151 else
5152 if test -n "$ac_ct_STRIP"; then
5153 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5154 else
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156 for as_dir in $PATH
5157 do
5158 IFS=$as_save_IFS
5159 test -z "$as_dir" && as_dir=.
5160 for ac_exec_ext in '' $ac_executable_extensions; do
5161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5162 ac_cv_prog_ac_ct_STRIP="strip"
5163 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 break 2
5165 fi
5166 done
5167 done
5168 IFS=$as_save_IFS
5169
5170 fi
5171 fi
5172 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5173 if test -n "$ac_ct_STRIP"; then
5174 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5175 $as_echo "$ac_ct_STRIP" >&6; }
5176 else
5177 { $as_echo "$as_me:$LINENO: result: no" >&5
5178 $as_echo "no" >&6; }
5179 fi
5180
5181 if test "x$ac_ct_STRIP" = x; then
5182 STRIP=":"
5183 else
5184 case $cross_compiling:$ac_tool_warned in
5185 yes:)
5186 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5188 ac_tool_warned=yes ;;
5189 esac
5190 STRIP=$ac_ct_STRIP
5191 fi
5192 else
5193 STRIP="$ac_cv_prog_STRIP"
5194 fi
5195
5196 test -z "$STRIP" && STRIP=:
5197
5198
5199
5200
5201
5202
5203 if test -n "$ac_tool_prefix"; then
5204 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5205 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5206 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5207 $as_echo_n "checking for $ac_word... " >&6; }
5208 if test "${ac_cv_prog_RANLIB+set}" = set; then
5209 $as_echo_n "(cached) " >&6
5210 else
5211 if test -n "$RANLIB"; then
5212 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5213 else
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $PATH
5216 do
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
5220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5221 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5222 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5223 break 2
5224 fi
5225 done
5226 done
5227 IFS=$as_save_IFS
5228
5229 fi
5230 fi
5231 RANLIB=$ac_cv_prog_RANLIB
5232 if test -n "$RANLIB"; then
5233 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5234 $as_echo "$RANLIB" >&6; }
5235 else
5236 { $as_echo "$as_me:$LINENO: result: no" >&5
5237 $as_echo "no" >&6; }
5238 fi
5239
5240
5241 fi
5242 if test -z "$ac_cv_prog_RANLIB"; then
5243 ac_ct_RANLIB=$RANLIB
5244 # Extract the first word of "ranlib", so it can be a program name with args.
5245 set dummy ranlib; ac_word=$2
5246 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5247 $as_echo_n "checking for $ac_word... " >&6; }
5248 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5249 $as_echo_n "(cached) " >&6
5250 else
5251 if test -n "$ac_ct_RANLIB"; then
5252 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5253 else
5254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255 for as_dir in $PATH
5256 do
5257 IFS=$as_save_IFS
5258 test -z "$as_dir" && as_dir=.
5259 for ac_exec_ext in '' $ac_executable_extensions; do
5260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5261 ac_cv_prog_ac_ct_RANLIB="ranlib"
5262 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5263 break 2
5264 fi
5265 done
5266 done
5267 IFS=$as_save_IFS
5268
5269 fi
5270 fi
5271 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5272 if test -n "$ac_ct_RANLIB"; then
5273 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5274 $as_echo "$ac_ct_RANLIB" >&6; }
5275 else
5276 { $as_echo "$as_me:$LINENO: result: no" >&5
5277 $as_echo "no" >&6; }
5278 fi
5279
5280 if test "x$ac_ct_RANLIB" = x; then
5281 RANLIB=":"
5282 else
5283 case $cross_compiling:$ac_tool_warned in
5284 yes:)
5285 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5287 ac_tool_warned=yes ;;
5288 esac
5289 RANLIB=$ac_ct_RANLIB
5290 fi
5291 else
5292 RANLIB="$ac_cv_prog_RANLIB"
5293 fi
5294
5295 test -z "$RANLIB" && RANLIB=:
5296
5297
5298
5299
5300
5301
5302 # Determine commands to create old-style static archives.
5303 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5304 old_postinstall_cmds='chmod 644 $oldlib'
5305 old_postuninstall_cmds=
5306
5307 if test -n "$RANLIB"; then
5308 case $host_os in
5309 openbsd*)
5310 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5311 ;;
5312 *)
5313 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5314 ;;
5315 esac
5316 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5317 fi
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
5352 # If no C compiler was specified, use CC.
5353 LTCC=${LTCC-"$CC"}
5354
5355 # If no C compiler flags were specified, use CFLAGS.
5356 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5357
5358 # Allow CC to be a program name with arguments.
5359 compiler=$CC
5360
5361
5362 # Check for command to grab the raw symbol name followed by C symbol from nm.
5363 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5364 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5365 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5366 $as_echo_n "(cached) " >&6
5367 else
5368
5369 # These are sane defaults that work on at least a few old systems.
5370 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5371
5372 # Character class describing NM global symbol codes.
5373 symcode='[BCDEGRST]'
5374
5375 # Regexp to match symbols that can be accessed directly from C.
5376 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5377
5378 # Define system-specific variables.
5379 case $host_os in
5380 aix*)
5381 symcode='[BCDT]'
5382 ;;
5383 cygwin* | mingw* | pw32* | cegcc*)
5384 symcode='[ABCDGISTW]'
5385 ;;
5386 hpux*)
5387 if test "$host_cpu" = ia64; then
5388 symcode='[ABCDEGRST]'
5389 fi
5390 ;;
5391 irix* | nonstopux*)
5392 symcode='[BCDEGRST]'
5393 ;;
5394 osf*)
5395 symcode='[BCDEGQRST]'
5396 ;;
5397 solaris*)
5398 symcode='[BDRT]'
5399 ;;
5400 sco3.2v5*)
5401 symcode='[DT]'
5402 ;;
5403 sysv4.2uw2*)
5404 symcode='[DT]'
5405 ;;
5406 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5407 symcode='[ABDT]'
5408 ;;
5409 sysv4)
5410 symcode='[DFNSTU]'
5411 ;;
5412 esac
5413
5414 # If we're using GNU nm, then use its standard symbol codes.
5415 case `$NM -V 2>&1` in
5416 *GNU* | *'with BFD'*)
5417 symcode='[ABCDGIRSTW]' ;;
5418 esac
5419
5420 # Transform an extracted symbol line into a proper C declaration.
5421 # Some systems (esp. on ia64) link data and code symbols differently,
5422 # so use this general approach.
5423 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5424
5425 # Transform an extracted symbol line into symbol name and symbol address
5426 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5427 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'"
5428
5429 # Handle CRLF in mingw tool chain
5430 opt_cr=
5431 case $build_os in
5432 mingw*)
5433 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5434 ;;
5435 esac
5436
5437 # Try without a prefix underscore, then with it.
5438 for ac_symprfx in "" "_"; do
5439
5440 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5441 symxfrm="\\1 $ac_symprfx\\2 \\2"
5442
5443 # Write the raw and C identifiers.
5444 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5445 # Fake it for dumpbin and say T for any non-static function
5446 # and D for any global variable.
5447 # Also find C++ and __fastcall symbols from MSVC++,
5448 # which start with @ or ?.
5449 lt_cv_sys_global_symbol_pipe="$AWK '"\
5450 " {last_section=section; section=\$ 3};"\
5451 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5452 " \$ 0!~/External *\|/{next};"\
5453 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5454 " {if(hide[section]) next};"\
5455 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5456 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5457 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5458 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5459 " ' prfx=^$ac_symprfx"
5460 else
5461 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5462 fi
5463
5464 # Check to see that the pipe works correctly.
5465 pipe_works=no
5466
5467 rm -f conftest*
5468 cat > conftest.$ac_ext <<_LT_EOF
5469 #ifdef __cplusplus
5470 extern "C" {
5471 #endif
5472 char nm_test_var;
5473 void nm_test_func(void);
5474 void nm_test_func(void){}
5475 #ifdef __cplusplus
5476 }
5477 #endif
5478 int main(){nm_test_var='a';nm_test_func();return(0);}
5479 _LT_EOF
5480
5481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5482 (eval $ac_compile) 2>&5
5483 ac_status=$?
5484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); }; then
5486 # Now try to grab the symbols.
5487 nlist=conftest.nm
5488 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5489 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5490 ac_status=$?
5491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); } && test -s "$nlist"; then
5493 # Try sorting and uniquifying the output.
5494 if sort "$nlist" | uniq > "$nlist"T; then
5495 mv -f "$nlist"T "$nlist"
5496 else
5497 rm -f "$nlist"T
5498 fi
5499
5500 # Make sure that we snagged all the symbols we need.
5501 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5502 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5503 cat <<_LT_EOF > conftest.$ac_ext
5504 #ifdef __cplusplus
5505 extern "C" {
5506 #endif
5507
5508 _LT_EOF
5509 # Now generate the symbol file.
5510 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5511
5512 cat <<_LT_EOF >> conftest.$ac_ext
5513
5514 /* The mapping between symbol names and symbols. */
5515 const struct {
5516 const char *name;
5517 void *address;
5518 }
5519 lt__PROGRAM__LTX_preloaded_symbols[] =
5520 {
5521 { "@PROGRAM@", (void *) 0 },
5522 _LT_EOF
5523 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5524 cat <<\_LT_EOF >> conftest.$ac_ext
5525 {0, (void *) 0}
5526 };
5527
5528 /* This works around a problem in FreeBSD linker */
5529 #ifdef FREEBSD_WORKAROUND
5530 static const void *lt_preloaded_setup() {
5531 return lt__PROGRAM__LTX_preloaded_symbols;
5532 }
5533 #endif
5534
5535 #ifdef __cplusplus
5536 }
5537 #endif
5538 _LT_EOF
5539 # Now try linking the two files.
5540 mv conftest.$ac_objext conftstm.$ac_objext
5541 lt_save_LIBS="$LIBS"
5542 lt_save_CFLAGS="$CFLAGS"
5543 LIBS="conftstm.$ac_objext"
5544 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5546 (eval $ac_link) 2>&5
5547 ac_status=$?
5548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5550 pipe_works=yes
5551 fi
5552 LIBS="$lt_save_LIBS"
5553 CFLAGS="$lt_save_CFLAGS"
5554 else
5555 echo "cannot find nm_test_func in $nlist" >&5
5556 fi
5557 else
5558 echo "cannot find nm_test_var in $nlist" >&5
5559 fi
5560 else
5561 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5562 fi
5563 else
5564 echo "$progname: failed program was:" >&5
5565 cat conftest.$ac_ext >&5
5566 fi
5567 rm -rf conftest* conftst*
5568
5569 # Do not use the global_symbol_pipe unless it works.
5570 if test "$pipe_works" = yes; then
5571 break
5572 else
5573 lt_cv_sys_global_symbol_pipe=
5574 fi
5575 done
5576
5577 fi
5578
5579 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5580 lt_cv_sys_global_symbol_to_cdecl=
5581 fi
5582 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5583 { $as_echo "$as_me:$LINENO: result: failed" >&5
5584 $as_echo "failed" >&6; }
5585 else
5586 { $as_echo "$as_me:$LINENO: result: ok" >&5
5587 $as_echo "ok" >&6; }
5588 fi
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612 # Check whether --enable-libtool-lock was given.
5613 if test "${enable_libtool_lock+set}" = set; then
5614 enableval=$enable_libtool_lock;
5615 fi
5616
5617 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5618
5619 # Some flags need to be propagated to the compiler or linker for good
5620 # libtool support.
5621 case $host in
5622 ia64-*-hpux*)
5623 # Find out which ABI we are using.
5624 echo 'int i;' > conftest.$ac_ext
5625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5626 (eval $ac_compile) 2>&5
5627 ac_status=$?
5628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); }; then
5630 case `/usr/bin/file conftest.$ac_objext` in
5631 *ELF-32*)
5632 HPUX_IA64_MODE="32"
5633 ;;
5634 *ELF-64*)
5635 HPUX_IA64_MODE="64"
5636 ;;
5637 esac
5638 fi
5639 rm -rf conftest*
5640 ;;
5641 *-*-irix6*)
5642 # Find out which ABI we are using.
5643 echo '#line 5643 "configure"' > conftest.$ac_ext
5644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5645 (eval $ac_compile) 2>&5
5646 ac_status=$?
5647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); }; then
5649 if test "$lt_cv_prog_gnu_ld" = yes; then
5650 case `/usr/bin/file conftest.$ac_objext` in
5651 *32-bit*)
5652 LD="${LD-ld} -melf32bsmip"
5653 ;;
5654 *N32*)
5655 LD="${LD-ld} -melf32bmipn32"
5656 ;;
5657 *64-bit*)
5658 LD="${LD-ld} -melf64bmip"
5659 ;;
5660 esac
5661 else
5662 case `/usr/bin/file conftest.$ac_objext` in
5663 *32-bit*)
5664 LD="${LD-ld} -32"
5665 ;;
5666 *N32*)
5667 LD="${LD-ld} -n32"
5668 ;;
5669 *64-bit*)
5670 LD="${LD-ld} -64"
5671 ;;
5672 esac
5673 fi
5674 fi
5675 rm -rf conftest*
5676 ;;
5677
5678 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5679 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5680 # Find out which ABI we are using.
5681 echo 'int i;' > conftest.$ac_ext
5682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5683 (eval $ac_compile) 2>&5
5684 ac_status=$?
5685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); }; then
5687 case `/usr/bin/file conftest.o` in
5688 *32-bit*)
5689 case $host in
5690 x86_64-*kfreebsd*-gnu)
5691 LD="${LD-ld} -m elf_i386_fbsd"
5692 ;;
5693 x86_64-*linux*)
5694 LD="${LD-ld} -m elf_i386"
5695 ;;
5696 ppc64-*linux*|powerpc64-*linux*)
5697 LD="${LD-ld} -m elf32ppclinux"
5698 ;;
5699 s390x-*linux*)
5700 LD="${LD-ld} -m elf_s390"
5701 ;;
5702 sparc64-*linux*)
5703 LD="${LD-ld} -m elf32_sparc"
5704 ;;
5705 esac
5706 ;;
5707 *64-bit*)
5708 case $host in
5709 x86_64-*kfreebsd*-gnu)
5710 LD="${LD-ld} -m elf_x86_64_fbsd"
5711 ;;
5712 x86_64-*linux*)
5713 LD="${LD-ld} -m elf_x86_64"
5714 ;;
5715 ppc*-*linux*|powerpc*-*linux*)
5716 LD="${LD-ld} -m elf64ppc"
5717 ;;
5718 s390*-*linux*|s390*-*tpf*)
5719 LD="${LD-ld} -m elf64_s390"
5720 ;;
5721 sparc*-*linux*)
5722 LD="${LD-ld} -m elf64_sparc"
5723 ;;
5724 esac
5725 ;;
5726 esac
5727 fi
5728 rm -rf conftest*
5729 ;;
5730
5731 *-*-sco3.2v5*)
5732 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5733 SAVE_CFLAGS="$CFLAGS"
5734 CFLAGS="$CFLAGS -belf"
5735 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5736 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5737 if test "${lt_cv_cc_needs_belf+set}" = set; then
5738 $as_echo_n "(cached) " >&6
5739 else
5740 ac_ext=c
5741 ac_cpp='$CPP $CPPFLAGS'
5742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5745
5746 cat >conftest.$ac_ext <<_ACEOF
5747 /* confdefs.h. */
5748 _ACEOF
5749 cat confdefs.h >>conftest.$ac_ext
5750 cat >>conftest.$ac_ext <<_ACEOF
5751 /* end confdefs.h. */
5752
5753 int
5754 main ()
5755 {
5756
5757 ;
5758 return 0;
5759 }
5760 _ACEOF
5761 rm -f conftest.$ac_objext conftest$ac_exeext
5762 if { (ac_try="$ac_link"
5763 case "(($ac_try" in
5764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765 *) ac_try_echo=$ac_try;;
5766 esac
5767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5768 $as_echo "$ac_try_echo") >&5
5769 (eval "$ac_link") 2>conftest.er1
5770 ac_status=$?
5771 grep -v '^ *+' conftest.er1 >conftest.err
5772 rm -f conftest.er1
5773 cat conftest.err >&5
5774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); } && {
5776 test -z "$ac_c_werror_flag" ||
5777 test ! -s conftest.err
5778 } && test -s conftest$ac_exeext && {
5779 test "$cross_compiling" = yes ||
5780 $as_test_x conftest$ac_exeext
5781 }; then
5782 lt_cv_cc_needs_belf=yes
5783 else
5784 $as_echo "$as_me: failed program was:" >&5
5785 sed 's/^/| /' conftest.$ac_ext >&5
5786
5787 lt_cv_cc_needs_belf=no
5788 fi
5789
5790 rm -rf conftest.dSYM
5791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5792 conftest$ac_exeext conftest.$ac_ext
5793 ac_ext=c
5794 ac_cpp='$CPP $CPPFLAGS'
5795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5798
5799 fi
5800 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5801 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5802 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5803 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5804 CFLAGS="$SAVE_CFLAGS"
5805 fi
5806 ;;
5807 sparc*-*solaris*)
5808 # Find out which ABI we are using.
5809 echo 'int i;' > conftest.$ac_ext
5810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5811 (eval $ac_compile) 2>&5
5812 ac_status=$?
5813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; then
5815 case `/usr/bin/file conftest.o` in
5816 *64-bit*)
5817 case $lt_cv_prog_gnu_ld in
5818 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5819 *)
5820 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5821 LD="${LD-ld} -64"
5822 fi
5823 ;;
5824 esac
5825 ;;
5826 esac
5827 fi
5828 rm -rf conftest*
5829 ;;
5830 esac
5831
5832 need_locks="$enable_libtool_lock"
5833
5834
5835 case $host_os in
5836 rhapsody* | darwin*)
5837 if test -n "$ac_tool_prefix"; then
5838 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5839 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5840 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5841 $as_echo_n "checking for $ac_word... " >&6; }
5842 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5843 $as_echo_n "(cached) " >&6
5844 else
5845 if test -n "$DSYMUTIL"; then
5846 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5847 else
5848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849 for as_dir in $PATH
5850 do
5851 IFS=$as_save_IFS
5852 test -z "$as_dir" && as_dir=.
5853 for ac_exec_ext in '' $ac_executable_extensions; do
5854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5855 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5856 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5857 break 2
5858 fi
5859 done
5860 done
5861 IFS=$as_save_IFS
5862
5863 fi
5864 fi
5865 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5866 if test -n "$DSYMUTIL"; then
5867 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5868 $as_echo "$DSYMUTIL" >&6; }
5869 else
5870 { $as_echo "$as_me:$LINENO: result: no" >&5
5871 $as_echo "no" >&6; }
5872 fi
5873
5874
5875 fi
5876 if test -z "$ac_cv_prog_DSYMUTIL"; then
5877 ac_ct_DSYMUTIL=$DSYMUTIL
5878 # Extract the first word of "dsymutil", so it can be a program name with args.
5879 set dummy dsymutil; ac_word=$2
5880 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5881 $as_echo_n "checking for $ac_word... " >&6; }
5882 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5883 $as_echo_n "(cached) " >&6
5884 else
5885 if test -n "$ac_ct_DSYMUTIL"; then
5886 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5887 else
5888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889 for as_dir in $PATH
5890 do
5891 IFS=$as_save_IFS
5892 test -z "$as_dir" && as_dir=.
5893 for ac_exec_ext in '' $ac_executable_extensions; do
5894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5895 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5896 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5897 break 2
5898 fi
5899 done
5900 done
5901 IFS=$as_save_IFS
5902
5903 fi
5904 fi
5905 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5906 if test -n "$ac_ct_DSYMUTIL"; then
5907 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5908 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5909 else
5910 { $as_echo "$as_me:$LINENO: result: no" >&5
5911 $as_echo "no" >&6; }
5912 fi
5913
5914 if test "x$ac_ct_DSYMUTIL" = x; then
5915 DSYMUTIL=":"
5916 else
5917 case $cross_compiling:$ac_tool_warned in
5918 yes:)
5919 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5921 ac_tool_warned=yes ;;
5922 esac
5923 DSYMUTIL=$ac_ct_DSYMUTIL
5924 fi
5925 else
5926 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5927 fi
5928
5929 if test -n "$ac_tool_prefix"; then
5930 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5931 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5932 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5933 $as_echo_n "checking for $ac_word... " >&6; }
5934 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5935 $as_echo_n "(cached) " >&6
5936 else
5937 if test -n "$NMEDIT"; then
5938 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5939 else
5940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941 for as_dir in $PATH
5942 do
5943 IFS=$as_save_IFS
5944 test -z "$as_dir" && as_dir=.
5945 for ac_exec_ext in '' $ac_executable_extensions; do
5946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5947 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5948 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5949 break 2
5950 fi
5951 done
5952 done
5953 IFS=$as_save_IFS
5954
5955 fi
5956 fi
5957 NMEDIT=$ac_cv_prog_NMEDIT
5958 if test -n "$NMEDIT"; then
5959 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5960 $as_echo "$NMEDIT" >&6; }
5961 else
5962 { $as_echo "$as_me:$LINENO: result: no" >&5
5963 $as_echo "no" >&6; }
5964 fi
5965
5966
5967 fi
5968 if test -z "$ac_cv_prog_NMEDIT"; then
5969 ac_ct_NMEDIT=$NMEDIT
5970 # Extract the first word of "nmedit", so it can be a program name with args.
5971 set dummy nmedit; ac_word=$2
5972 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5973 $as_echo_n "checking for $ac_word... " >&6; }
5974 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5975 $as_echo_n "(cached) " >&6
5976 else
5977 if test -n "$ac_ct_NMEDIT"; then
5978 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5979 else
5980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981 for as_dir in $PATH
5982 do
5983 IFS=$as_save_IFS
5984 test -z "$as_dir" && as_dir=.
5985 for ac_exec_ext in '' $ac_executable_extensions; do
5986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5987 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5988 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5989 break 2
5990 fi
5991 done
5992 done
5993 IFS=$as_save_IFS
5994
5995 fi
5996 fi
5997 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5998 if test -n "$ac_ct_NMEDIT"; then
5999 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6000 $as_echo "$ac_ct_NMEDIT" >&6; }
6001 else
6002 { $as_echo "$as_me:$LINENO: result: no" >&5
6003 $as_echo "no" >&6; }
6004 fi
6005
6006 if test "x$ac_ct_NMEDIT" = x; then
6007 NMEDIT=":"
6008 else
6009 case $cross_compiling:$ac_tool_warned in
6010 yes:)
6011 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6012 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6013 ac_tool_warned=yes ;;
6014 esac
6015 NMEDIT=$ac_ct_NMEDIT
6016 fi
6017 else
6018 NMEDIT="$ac_cv_prog_NMEDIT"
6019 fi
6020
6021 if test -n "$ac_tool_prefix"; then
6022 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6023 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6024 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6025 $as_echo_n "checking for $ac_word... " >&6; }
6026 if test "${ac_cv_prog_LIPO+set}" = set; then
6027 $as_echo_n "(cached) " >&6
6028 else
6029 if test -n "$LIPO"; then
6030 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6031 else
6032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6033 for as_dir in $PATH
6034 do
6035 IFS=$as_save_IFS
6036 test -z "$as_dir" && as_dir=.
6037 for ac_exec_ext in '' $ac_executable_extensions; do
6038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6039 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6040 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6041 break 2
6042 fi
6043 done
6044 done
6045 IFS=$as_save_IFS
6046
6047 fi
6048 fi
6049 LIPO=$ac_cv_prog_LIPO
6050 if test -n "$LIPO"; then
6051 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6052 $as_echo "$LIPO" >&6; }
6053 else
6054 { $as_echo "$as_me:$LINENO: result: no" >&5
6055 $as_echo "no" >&6; }
6056 fi
6057
6058
6059 fi
6060 if test -z "$ac_cv_prog_LIPO"; then
6061 ac_ct_LIPO=$LIPO
6062 # Extract the first word of "lipo", so it can be a program name with args.
6063 set dummy lipo; ac_word=$2
6064 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6065 $as_echo_n "checking for $ac_word... " >&6; }
6066 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6067 $as_echo_n "(cached) " >&6
6068 else
6069 if test -n "$ac_ct_LIPO"; then
6070 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6071 else
6072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073 for as_dir in $PATH
6074 do
6075 IFS=$as_save_IFS
6076 test -z "$as_dir" && as_dir=.
6077 for ac_exec_ext in '' $ac_executable_extensions; do
6078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6079 ac_cv_prog_ac_ct_LIPO="lipo"
6080 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6081 break 2
6082 fi
6083 done
6084 done
6085 IFS=$as_save_IFS
6086
6087 fi
6088 fi
6089 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6090 if test -n "$ac_ct_LIPO"; then
6091 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6092 $as_echo "$ac_ct_LIPO" >&6; }
6093 else
6094 { $as_echo "$as_me:$LINENO: result: no" >&5
6095 $as_echo "no" >&6; }
6096 fi
6097
6098 if test "x$ac_ct_LIPO" = x; then
6099 LIPO=":"
6100 else
6101 case $cross_compiling:$ac_tool_warned in
6102 yes:)
6103 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6105 ac_tool_warned=yes ;;
6106 esac
6107 LIPO=$ac_ct_LIPO
6108 fi
6109 else
6110 LIPO="$ac_cv_prog_LIPO"
6111 fi
6112
6113 if test -n "$ac_tool_prefix"; then
6114 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6115 set dummy ${ac_tool_prefix}otool; ac_word=$2
6116 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6117 $as_echo_n "checking for $ac_word... " >&6; }
6118 if test "${ac_cv_prog_OTOOL+set}" = set; then
6119 $as_echo_n "(cached) " >&6
6120 else
6121 if test -n "$OTOOL"; then
6122 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6123 else
6124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125 for as_dir in $PATH
6126 do
6127 IFS=$as_save_IFS
6128 test -z "$as_dir" && as_dir=.
6129 for ac_exec_ext in '' $ac_executable_extensions; do
6130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6131 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6132 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6133 break 2
6134 fi
6135 done
6136 done
6137 IFS=$as_save_IFS
6138
6139 fi
6140 fi
6141 OTOOL=$ac_cv_prog_OTOOL
6142 if test -n "$OTOOL"; then
6143 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6144 $as_echo "$OTOOL" >&6; }
6145 else
6146 { $as_echo "$as_me:$LINENO: result: no" >&5
6147 $as_echo "no" >&6; }
6148 fi
6149
6150
6151 fi
6152 if test -z "$ac_cv_prog_OTOOL"; then
6153 ac_ct_OTOOL=$OTOOL
6154 # Extract the first word of "otool", so it can be a program name with args.
6155 set dummy otool; ac_word=$2
6156 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6157 $as_echo_n "checking for $ac_word... " >&6; }
6158 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6159 $as_echo_n "(cached) " >&6
6160 else
6161 if test -n "$ac_ct_OTOOL"; then
6162 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6163 else
6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 for as_dir in $PATH
6166 do
6167 IFS=$as_save_IFS
6168 test -z "$as_dir" && as_dir=.
6169 for ac_exec_ext in '' $ac_executable_extensions; do
6170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6171 ac_cv_prog_ac_ct_OTOOL="otool"
6172 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6173 break 2
6174 fi
6175 done
6176 done
6177 IFS=$as_save_IFS
6178
6179 fi
6180 fi
6181 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6182 if test -n "$ac_ct_OTOOL"; then
6183 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6184 $as_echo "$ac_ct_OTOOL" >&6; }
6185 else
6186 { $as_echo "$as_me:$LINENO: result: no" >&5
6187 $as_echo "no" >&6; }
6188 fi
6189
6190 if test "x$ac_ct_OTOOL" = x; then
6191 OTOOL=":"
6192 else
6193 case $cross_compiling:$ac_tool_warned in
6194 yes:)
6195 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6197 ac_tool_warned=yes ;;
6198 esac
6199 OTOOL=$ac_ct_OTOOL
6200 fi
6201 else
6202 OTOOL="$ac_cv_prog_OTOOL"
6203 fi
6204
6205 if test -n "$ac_tool_prefix"; then
6206 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6207 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6208 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6209 $as_echo_n "checking for $ac_word... " >&6; }
6210 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6211 $as_echo_n "(cached) " >&6
6212 else
6213 if test -n "$OTOOL64"; then
6214 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6215 else
6216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217 for as_dir in $PATH
6218 do
6219 IFS=$as_save_IFS
6220 test -z "$as_dir" && as_dir=.
6221 for ac_exec_ext in '' $ac_executable_extensions; do
6222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6223 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6224 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6225 break 2
6226 fi
6227 done
6228 done
6229 IFS=$as_save_IFS
6230
6231 fi
6232 fi
6233 OTOOL64=$ac_cv_prog_OTOOL64
6234 if test -n "$OTOOL64"; then
6235 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6236 $as_echo "$OTOOL64" >&6; }
6237 else
6238 { $as_echo "$as_me:$LINENO: result: no" >&5
6239 $as_echo "no" >&6; }
6240 fi
6241
6242
6243 fi
6244 if test -z "$ac_cv_prog_OTOOL64"; then
6245 ac_ct_OTOOL64=$OTOOL64
6246 # Extract the first word of "otool64", so it can be a program name with args.
6247 set dummy otool64; ac_word=$2
6248 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6249 $as_echo_n "checking for $ac_word... " >&6; }
6250 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6251 $as_echo_n "(cached) " >&6
6252 else
6253 if test -n "$ac_ct_OTOOL64"; then
6254 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6255 else
6256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257 for as_dir in $PATH
6258 do
6259 IFS=$as_save_IFS
6260 test -z "$as_dir" && as_dir=.
6261 for ac_exec_ext in '' $ac_executable_extensions; do
6262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6263 ac_cv_prog_ac_ct_OTOOL64="otool64"
6264 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6265 break 2
6266 fi
6267 done
6268 done
6269 IFS=$as_save_IFS
6270
6271 fi
6272 fi
6273 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6274 if test -n "$ac_ct_OTOOL64"; then
6275 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6276 $as_echo "$ac_ct_OTOOL64" >&6; }
6277 else
6278 { $as_echo "$as_me:$LINENO: result: no" >&5
6279 $as_echo "no" >&6; }
6280 fi
6281
6282 if test "x$ac_ct_OTOOL64" = x; then
6283 OTOOL64=":"
6284 else
6285 case $cross_compiling:$ac_tool_warned in
6286 yes:)
6287 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6289 ac_tool_warned=yes ;;
6290 esac
6291 OTOOL64=$ac_ct_OTOOL64
6292 fi
6293 else
6294 OTOOL64="$ac_cv_prog_OTOOL64"
6295 fi
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
6323 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6324 $as_echo_n "checking for -single_module linker flag... " >&6; }
6325 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6326 $as_echo_n "(cached) " >&6
6327 else
6328 lt_cv_apple_cc_single_mod=no
6329 if test -z "${LT_MULTI_MODULE}"; then
6330 # By default we will add the -single_module flag. You can override
6331 # by either setting the environment variable LT_MULTI_MODULE
6332 # non-empty at configure time, or by adding -multi_module to the
6333 # link flags.
6334 rm -rf libconftest.dylib*
6335 echo "int foo(void){return 1;}" > conftest.c
6336 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6337 -dynamiclib -Wl,-single_module conftest.c" >&5
6338 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6339 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6340 _lt_result=$?
6341 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6342 lt_cv_apple_cc_single_mod=yes
6343 else
6344 cat conftest.err >&5
6345 fi
6346 rm -rf libconftest.dylib*
6347 rm -f conftest.*
6348 fi
6349 fi
6350 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6351 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6352 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6353 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6354 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6355 $as_echo_n "(cached) " >&6
6356 else
6357 lt_cv_ld_exported_symbols_list=no
6358 save_LDFLAGS=$LDFLAGS
6359 echo "_main" > conftest.sym
6360 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6361 cat >conftest.$ac_ext <<_ACEOF
6362 /* confdefs.h. */
6363 _ACEOF
6364 cat confdefs.h >>conftest.$ac_ext
6365 cat >>conftest.$ac_ext <<_ACEOF
6366 /* end confdefs.h. */
6367
6368 int
6369 main ()
6370 {
6371
6372 ;
6373 return 0;
6374 }
6375 _ACEOF
6376 rm -f conftest.$ac_objext conftest$ac_exeext
6377 if { (ac_try="$ac_link"
6378 case "(($ac_try" in
6379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6380 *) ac_try_echo=$ac_try;;
6381 esac
6382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6383 $as_echo "$ac_try_echo") >&5
6384 (eval "$ac_link") 2>conftest.er1
6385 ac_status=$?
6386 grep -v '^ *+' conftest.er1 >conftest.err
6387 rm -f conftest.er1
6388 cat conftest.err >&5
6389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); } && {
6391 test -z "$ac_c_werror_flag" ||
6392 test ! -s conftest.err
6393 } && test -s conftest$ac_exeext && {
6394 test "$cross_compiling" = yes ||
6395 $as_test_x conftest$ac_exeext
6396 }; then
6397 lt_cv_ld_exported_symbols_list=yes
6398 else
6399 $as_echo "$as_me: failed program was:" >&5
6400 sed 's/^/| /' conftest.$ac_ext >&5
6401
6402 lt_cv_ld_exported_symbols_list=no
6403 fi
6404
6405 rm -rf conftest.dSYM
6406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6407 conftest$ac_exeext conftest.$ac_ext
6408 LDFLAGS="$save_LDFLAGS"
6409
6410 fi
6411 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6412 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6413 case $host_os in
6414 rhapsody* | darwin1.[012])
6415 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6416 darwin1.*)
6417 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6418 darwin*) # darwin 5.x on
6419 # if running on 10.5 or later, the deployment target defaults
6420 # to the OS version, if on x86, and 10.4, the deployment
6421 # target defaults to 10.4. Don't you love it?
6422 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6423 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6424 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6425 10.[012]*)
6426 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6427 10.*)
6428 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6429 esac
6430 ;;
6431 esac
6432 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6433 _lt_dar_single_mod='$single_module'
6434 fi
6435 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6436 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6437 else
6438 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6439 fi
6440 if test "$DSYMUTIL" != ":"; then
6441 _lt_dsymutil='~$DSYMUTIL $lib || :'
6442 else
6443 _lt_dsymutil=
6444 fi
6445 ;;
6446 esac
6447
6448 ac_ext=c
6449 ac_cpp='$CPP $CPPFLAGS'
6450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6453 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6454 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6455 # On Suns, sometimes $CPP names a directory.
6456 if test -n "$CPP" && test -d "$CPP"; then
6457 CPP=
6458 fi
6459 if test -z "$CPP"; then
6460 if test "${ac_cv_prog_CPP+set}" = set; then
6461 $as_echo_n "(cached) " >&6
6462 else
6463 # Double quotes because CPP needs to be expanded
6464 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6465 do
6466 ac_preproc_ok=false
6467 for ac_c_preproc_warn_flag in '' yes
6468 do
6469 # Use a header file that comes with gcc, so configuring glibc
6470 # with a fresh cross-compiler works.
6471 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6472 # <limits.h> exists even on freestanding compilers.
6473 # On the NeXT, cc -E runs the code through the compiler's parser,
6474 # not just through cpp. "Syntax error" is here to catch this case.
6475 cat >conftest.$ac_ext <<_ACEOF
6476 /* confdefs.h. */
6477 _ACEOF
6478 cat confdefs.h >>conftest.$ac_ext
6479 cat >>conftest.$ac_ext <<_ACEOF
6480 /* end confdefs.h. */
6481 #ifdef __STDC__
6482 # include <limits.h>
6483 #else
6484 # include <assert.h>
6485 #endif
6486 Syntax error
6487 _ACEOF
6488 if { (ac_try="$ac_cpp conftest.$ac_ext"
6489 case "(($ac_try" in
6490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6491 *) ac_try_echo=$ac_try;;
6492 esac
6493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6494 $as_echo "$ac_try_echo") >&5
6495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6496 ac_status=$?
6497 grep -v '^ *+' conftest.er1 >conftest.err
6498 rm -f conftest.er1
6499 cat conftest.err >&5
6500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); } >/dev/null && {
6502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6503 test ! -s conftest.err
6504 }; then
6505 :
6506 else
6507 $as_echo "$as_me: failed program was:" >&5
6508 sed 's/^/| /' conftest.$ac_ext >&5
6509
6510 # Broken: fails on valid input.
6511 continue
6512 fi
6513
6514 rm -f conftest.err conftest.$ac_ext
6515
6516 # OK, works on sane cases. Now check whether nonexistent headers
6517 # can be detected and how.
6518 cat >conftest.$ac_ext <<_ACEOF
6519 /* confdefs.h. */
6520 _ACEOF
6521 cat confdefs.h >>conftest.$ac_ext
6522 cat >>conftest.$ac_ext <<_ACEOF
6523 /* end confdefs.h. */
6524 #include <ac_nonexistent.h>
6525 _ACEOF
6526 if { (ac_try="$ac_cpp conftest.$ac_ext"
6527 case "(($ac_try" in
6528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6529 *) ac_try_echo=$ac_try;;
6530 esac
6531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6532 $as_echo "$ac_try_echo") >&5
6533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6534 ac_status=$?
6535 grep -v '^ *+' conftest.er1 >conftest.err
6536 rm -f conftest.er1
6537 cat conftest.err >&5
6538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); } >/dev/null && {
6540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6541 test ! -s conftest.err
6542 }; then
6543 # Broken: success on invalid input.
6544 continue
6545 else
6546 $as_echo "$as_me: failed program was:" >&5
6547 sed 's/^/| /' conftest.$ac_ext >&5
6548
6549 # Passes both tests.
6550 ac_preproc_ok=:
6551 break
6552 fi
6553
6554 rm -f conftest.err conftest.$ac_ext
6555
6556 done
6557 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6558 rm -f conftest.err conftest.$ac_ext
6559 if $ac_preproc_ok; then
6560 break
6561 fi
6562
6563 done
6564 ac_cv_prog_CPP=$CPP
6565
6566 fi
6567 CPP=$ac_cv_prog_CPP
6568 else
6569 ac_cv_prog_CPP=$CPP
6570 fi
6571 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6572 $as_echo "$CPP" >&6; }
6573 ac_preproc_ok=false
6574 for ac_c_preproc_warn_flag in '' yes
6575 do
6576 # Use a header file that comes with gcc, so configuring glibc
6577 # with a fresh cross-compiler works.
6578 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6579 # <limits.h> exists even on freestanding compilers.
6580 # On the NeXT, cc -E runs the code through the compiler's parser,
6581 # not just through cpp. "Syntax error" is here to catch this case.
6582 cat >conftest.$ac_ext <<_ACEOF
6583 /* confdefs.h. */
6584 _ACEOF
6585 cat confdefs.h >>conftest.$ac_ext
6586 cat >>conftest.$ac_ext <<_ACEOF
6587 /* end confdefs.h. */
6588 #ifdef __STDC__
6589 # include <limits.h>
6590 #else
6591 # include <assert.h>
6592 #endif
6593 Syntax error
6594 _ACEOF
6595 if { (ac_try="$ac_cpp conftest.$ac_ext"
6596 case "(($ac_try" in
6597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6598 *) ac_try_echo=$ac_try;;
6599 esac
6600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6601 $as_echo "$ac_try_echo") >&5
6602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6603 ac_status=$?
6604 grep -v '^ *+' conftest.er1 >conftest.err
6605 rm -f conftest.er1
6606 cat conftest.err >&5
6607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); } >/dev/null && {
6609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6610 test ! -s conftest.err
6611 }; then
6612 :
6613 else
6614 $as_echo "$as_me: failed program was:" >&5
6615 sed 's/^/| /' conftest.$ac_ext >&5
6616
6617 # Broken: fails on valid input.
6618 continue
6619 fi
6620
6621 rm -f conftest.err conftest.$ac_ext
6622
6623 # OK, works on sane cases. Now check whether nonexistent headers
6624 # can be detected and how.
6625 cat >conftest.$ac_ext <<_ACEOF
6626 /* confdefs.h. */
6627 _ACEOF
6628 cat confdefs.h >>conftest.$ac_ext
6629 cat >>conftest.$ac_ext <<_ACEOF
6630 /* end confdefs.h. */
6631 #include <ac_nonexistent.h>
6632 _ACEOF
6633 if { (ac_try="$ac_cpp conftest.$ac_ext"
6634 case "(($ac_try" in
6635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6636 *) ac_try_echo=$ac_try;;
6637 esac
6638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6639 $as_echo "$ac_try_echo") >&5
6640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6641 ac_status=$?
6642 grep -v '^ *+' conftest.er1 >conftest.err
6643 rm -f conftest.er1
6644 cat conftest.err >&5
6645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); } >/dev/null && {
6647 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6648 test ! -s conftest.err
6649 }; then
6650 # Broken: success on invalid input.
6651 continue
6652 else
6653 $as_echo "$as_me: failed program was:" >&5
6654 sed 's/^/| /' conftest.$ac_ext >&5
6655
6656 # Passes both tests.
6657 ac_preproc_ok=:
6658 break
6659 fi
6660
6661 rm -f conftest.err conftest.$ac_ext
6662
6663 done
6664 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6665 rm -f conftest.err conftest.$ac_ext
6666 if $ac_preproc_ok; then
6667 :
6668 else
6669 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6671 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6672 See \`config.log' for more details." >&5
6673 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6674 See \`config.log' for more details." >&2;}
6675 { (exit 1); exit 1; }; }; }
6676 fi
6677
6678 ac_ext=c
6679 ac_cpp='$CPP $CPPFLAGS'
6680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6683
6684
6685 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6686 $as_echo_n "checking for ANSI C header files... " >&6; }
6687 if test "${ac_cv_header_stdc+set}" = set; then
6688 $as_echo_n "(cached) " >&6
6689 else
6690 cat >conftest.$ac_ext <<_ACEOF
6691 /* confdefs.h. */
6692 _ACEOF
6693 cat confdefs.h >>conftest.$ac_ext
6694 cat >>conftest.$ac_ext <<_ACEOF
6695 /* end confdefs.h. */
6696 #include <stdlib.h>
6697 #include <stdarg.h>
6698 #include <string.h>
6699 #include <float.h>
6700
6701 int
6702 main ()
6703 {
6704
6705 ;
6706 return 0;
6707 }
6708 _ACEOF
6709 rm -f conftest.$ac_objext
6710 if { (ac_try="$ac_compile"
6711 case "(($ac_try" in
6712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6713 *) ac_try_echo=$ac_try;;
6714 esac
6715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6716 $as_echo "$ac_try_echo") >&5
6717 (eval "$ac_compile") 2>conftest.er1
6718 ac_status=$?
6719 grep -v '^ *+' conftest.er1 >conftest.err
6720 rm -f conftest.er1
6721 cat conftest.err >&5
6722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); } && {
6724 test -z "$ac_c_werror_flag" ||
6725 test ! -s conftest.err
6726 } && test -s conftest.$ac_objext; then
6727 ac_cv_header_stdc=yes
6728 else
6729 $as_echo "$as_me: failed program was:" >&5
6730 sed 's/^/| /' conftest.$ac_ext >&5
6731
6732 ac_cv_header_stdc=no
6733 fi
6734
6735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6736
6737 if test $ac_cv_header_stdc = yes; then
6738 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6739 cat >conftest.$ac_ext <<_ACEOF
6740 /* confdefs.h. */
6741 _ACEOF
6742 cat confdefs.h >>conftest.$ac_ext
6743 cat >>conftest.$ac_ext <<_ACEOF
6744 /* end confdefs.h. */
6745 #include <string.h>
6746
6747 _ACEOF
6748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6749 $EGREP "memchr" >/dev/null 2>&1; then
6750 :
6751 else
6752 ac_cv_header_stdc=no
6753 fi
6754 rm -f conftest*
6755
6756 fi
6757
6758 if test $ac_cv_header_stdc = yes; then
6759 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6760 cat >conftest.$ac_ext <<_ACEOF
6761 /* confdefs.h. */
6762 _ACEOF
6763 cat confdefs.h >>conftest.$ac_ext
6764 cat >>conftest.$ac_ext <<_ACEOF
6765 /* end confdefs.h. */
6766 #include <stdlib.h>
6767
6768 _ACEOF
6769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6770 $EGREP "free" >/dev/null 2>&1; then
6771 :
6772 else
6773 ac_cv_header_stdc=no
6774 fi
6775 rm -f conftest*
6776
6777 fi
6778
6779 if test $ac_cv_header_stdc = yes; then
6780 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6781 if test "$cross_compiling" = yes; then
6782 :
6783 else
6784 cat >conftest.$ac_ext <<_ACEOF
6785 /* confdefs.h. */
6786 _ACEOF
6787 cat confdefs.h >>conftest.$ac_ext
6788 cat >>conftest.$ac_ext <<_ACEOF
6789 /* end confdefs.h. */
6790 #include <ctype.h>
6791 #include <stdlib.h>
6792 #if ((' ' & 0x0FF) == 0x020)
6793 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6794 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6795 #else
6796 # define ISLOWER(c) \
6797 (('a' <= (c) && (c) <= 'i') \
6798 || ('j' <= (c) && (c) <= 'r') \
6799 || ('s' <= (c) && (c) <= 'z'))
6800 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6801 #endif
6802
6803 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6804 int
6805 main ()
6806 {
6807 int i;
6808 for (i = 0; i < 256; i++)
6809 if (XOR (islower (i), ISLOWER (i))
6810 || toupper (i) != TOUPPER (i))
6811 return 2;
6812 return 0;
6813 }
6814 _ACEOF
6815 rm -f conftest$ac_exeext
6816 if { (ac_try="$ac_link"
6817 case "(($ac_try" in
6818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6819 *) ac_try_echo=$ac_try;;
6820 esac
6821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6822 $as_echo "$ac_try_echo") >&5
6823 (eval "$ac_link") 2>&5
6824 ac_status=$?
6825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6827 { (case "(($ac_try" in
6828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6829 *) ac_try_echo=$ac_try;;
6830 esac
6831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6832 $as_echo "$ac_try_echo") >&5
6833 (eval "$ac_try") 2>&5
6834 ac_status=$?
6835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); }; }; then
6837 :
6838 else
6839 $as_echo "$as_me: program exited with status $ac_status" >&5
6840 $as_echo "$as_me: failed program was:" >&5
6841 sed 's/^/| /' conftest.$ac_ext >&5
6842
6843 ( exit $ac_status )
6844 ac_cv_header_stdc=no
6845 fi
6846 rm -rf conftest.dSYM
6847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6848 fi
6849
6850
6851 fi
6852 fi
6853 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6854 $as_echo "$ac_cv_header_stdc" >&6; }
6855 if test $ac_cv_header_stdc = yes; then
6856
6857 cat >>confdefs.h <<\_ACEOF
6858 #define STDC_HEADERS 1
6859 _ACEOF
6860
6861 fi
6862
6863 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6874 inttypes.h stdint.h unistd.h
6875 do
6876 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6877 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6878 $as_echo_n "checking for $ac_header... " >&6; }
6879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6880 $as_echo_n "(cached) " >&6
6881 else
6882 cat >conftest.$ac_ext <<_ACEOF
6883 /* confdefs.h. */
6884 _ACEOF
6885 cat confdefs.h >>conftest.$ac_ext
6886 cat >>conftest.$ac_ext <<_ACEOF
6887 /* end confdefs.h. */
6888 $ac_includes_default
6889
6890 #include <$ac_header>
6891 _ACEOF
6892 rm -f conftest.$ac_objext
6893 if { (ac_try="$ac_compile"
6894 case "(($ac_try" in
6895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6896 *) ac_try_echo=$ac_try;;
6897 esac
6898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6899 $as_echo "$ac_try_echo") >&5
6900 (eval "$ac_compile") 2>conftest.er1
6901 ac_status=$?
6902 grep -v '^ *+' conftest.er1 >conftest.err
6903 rm -f conftest.er1
6904 cat conftest.err >&5
6905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); } && {
6907 test -z "$ac_c_werror_flag" ||
6908 test ! -s conftest.err
6909 } && test -s conftest.$ac_objext; then
6910 eval "$as_ac_Header=yes"
6911 else
6912 $as_echo "$as_me: failed program was:" >&5
6913 sed 's/^/| /' conftest.$ac_ext >&5
6914
6915 eval "$as_ac_Header=no"
6916 fi
6917
6918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6919 fi
6920 ac_res=`eval 'as_val=${'$as_ac_Header'}
6921 $as_echo "$as_val"'`
6922 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6923 $as_echo "$ac_res" >&6; }
6924 as_val=`eval 'as_val=${'$as_ac_Header'}
6925 $as_echo "$as_val"'`
6926 if test "x$as_val" = x""yes; then
6927 cat >>confdefs.h <<_ACEOF
6928 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6929 _ACEOF
6930
6931 fi
6932
6933 done
6934
6935
6936
6937 for ac_header in dlfcn.h
6938 do
6939 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6940 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6941 $as_echo_n "checking for $ac_header... " >&6; }
6942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6943 $as_echo_n "(cached) " >&6
6944 else
6945 cat >conftest.$ac_ext <<_ACEOF
6946 /* confdefs.h. */
6947 _ACEOF
6948 cat confdefs.h >>conftest.$ac_ext
6949 cat >>conftest.$ac_ext <<_ACEOF
6950 /* end confdefs.h. */
6951 $ac_includes_default
6952
6953 #include <$ac_header>
6954 _ACEOF
6955 rm -f conftest.$ac_objext
6956 if { (ac_try="$ac_compile"
6957 case "(($ac_try" in
6958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6959 *) ac_try_echo=$ac_try;;
6960 esac
6961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6962 $as_echo "$ac_try_echo") >&5
6963 (eval "$ac_compile") 2>conftest.er1
6964 ac_status=$?
6965 grep -v '^ *+' conftest.er1 >conftest.err
6966 rm -f conftest.er1
6967 cat conftest.err >&5
6968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); } && {
6970 test -z "$ac_c_werror_flag" ||
6971 test ! -s conftest.err
6972 } && test -s conftest.$ac_objext; then
6973 eval "$as_ac_Header=yes"
6974 else
6975 $as_echo "$as_me: failed program was:" >&5
6976 sed 's/^/| /' conftest.$ac_ext >&5
6977
6978 eval "$as_ac_Header=no"
6979 fi
6980
6981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6982 fi
6983 ac_res=`eval 'as_val=${'$as_ac_Header'}
6984 $as_echo "$as_val"'`
6985 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6986 $as_echo "$ac_res" >&6; }
6987 as_val=`eval 'as_val=${'$as_ac_Header'}
6988 $as_echo "$as_val"'`
6989 if test "x$as_val" = x""yes; then
6990 cat >>confdefs.h <<_ACEOF
6991 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6992 _ACEOF
6993
6994 fi
6995
6996 done
6997
6998
6999
7000 # Set options
7001
7002
7003
7004 enable_dlopen=no
7005
7006
7007 enable_win32_dll=no
7008
7009
7010 # Check whether --enable-shared was given.
7011 if test "${enable_shared+set}" = set; then
7012 enableval=$enable_shared; p=${PACKAGE-default}
7013 case $enableval in
7014 yes) enable_shared=yes ;;
7015 no) enable_shared=no ;;
7016 *)
7017 enable_shared=no
7018 # Look at the argument we got. We use all the common list separators.
7019 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7020 for pkg in $enableval; do
7021 IFS="$lt_save_ifs"
7022 if test "X$pkg" = "X$p"; then
7023 enable_shared=yes
7024 fi
7025 done
7026 IFS="$lt_save_ifs"
7027 ;;
7028 esac
7029 else
7030 enable_shared=yes
7031 fi
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043 # Check whether --with-pic was given.
7044 if test "${with_pic+set}" = set; then
7045 withval=$with_pic; pic_mode="$withval"
7046 else
7047 pic_mode=default
7048 fi
7049
7050
7051 test -z "$pic_mode" && pic_mode=default
7052
7053
7054
7055
7056
7057
7058
7059 # Check whether --enable-fast-install was given.
7060 if test "${enable_fast_install+set}" = set; then
7061 enableval=$enable_fast_install; p=${PACKAGE-default}
7062 case $enableval in
7063 yes) enable_fast_install=yes ;;
7064 no) enable_fast_install=no ;;
7065 *)
7066 enable_fast_install=no
7067 # Look at the argument we got. We use all the common list separators.
7068 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7069 for pkg in $enableval; do
7070 IFS="$lt_save_ifs"
7071 if test "X$pkg" = "X$p"; then
7072 enable_fast_install=yes
7073 fi
7074 done
7075 IFS="$lt_save_ifs"
7076 ;;
7077 esac
7078 else
7079 enable_fast_install=yes
7080 fi
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092 # This can be used to rebuild libtool when needed
7093 LIBTOOL_DEPS="$ltmain"
7094
7095 # Always use our own libtool.
7096 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
7122 test -z "$LN_S" && LN_S="ln -s"
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137 if test -n "${ZSH_VERSION+set}" ; then
7138 setopt NO_GLOB_SUBST
7139 fi
7140
7141 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7142 $as_echo_n "checking for objdir... " >&6; }
7143 if test "${lt_cv_objdir+set}" = set; then
7144 $as_echo_n "(cached) " >&6
7145 else
7146 rm -f .libs 2>/dev/null
7147 mkdir .libs 2>/dev/null
7148 if test -d .libs; then
7149 lt_cv_objdir=.libs
7150 else
7151 # MS-DOS does not allow filenames that begin with a dot.
7152 lt_cv_objdir=_libs
7153 fi
7154 rmdir .libs 2>/dev/null
7155 fi
7156 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7157 $as_echo "$lt_cv_objdir" >&6; }
7158 objdir=$lt_cv_objdir
7159
7160
7161
7162
7163
7164 cat >>confdefs.h <<_ACEOF
7165 #define LT_OBJDIR "$lt_cv_objdir/"
7166 _ACEOF
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184 case $host_os in
7185 aix3*)
7186 # AIX sometimes has problems with the GCC collect2 program. For some
7187 # reason, if we set the COLLECT_NAMES environment variable, the problems
7188 # vanish in a puff of smoke.
7189 if test "X${COLLECT_NAMES+set}" != Xset; then
7190 COLLECT_NAMES=
7191 export COLLECT_NAMES
7192 fi
7193 ;;
7194 esac
7195
7196 # Sed substitution that helps us do robust quoting. It backslashifies
7197 # metacharacters that are still active within double-quoted strings.
7198 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7199
7200 # Same as above, but do not quote variable references.
7201 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7202
7203 # Sed substitution to delay expansion of an escaped shell variable in a
7204 # double_quote_subst'ed string.
7205 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7206
7207 # Sed substitution to delay expansion of an escaped single quote.
7208 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7209
7210 # Sed substitution to avoid accidental globbing in evaled expressions
7211 no_glob_subst='s/\*/\\\*/g'
7212
7213 # Global variables:
7214 ofile=libtool
7215 can_build_shared=yes
7216
7217 # All known linkers require a `.a' archive for static linking (except MSVC,
7218 # which needs '.lib').
7219 libext=a
7220
7221 with_gnu_ld="$lt_cv_prog_gnu_ld"
7222
7223 old_CC="$CC"
7224 old_CFLAGS="$CFLAGS"
7225
7226 # Set sane defaults for various variables
7227 test -z "$CC" && CC=cc
7228 test -z "$LTCC" && LTCC=$CC
7229 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7230 test -z "$LD" && LD=ld
7231 test -z "$ac_objext" && ac_objext=o
7232
7233 for cc_temp in $compiler""; do
7234 case $cc_temp in
7235 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7236 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7237 \-*) ;;
7238 *) break;;
7239 esac
7240 done
7241 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7242
7243
7244 # Only perform the check for file, if the check method requires it
7245 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7246 case $deplibs_check_method in
7247 file_magic*)
7248 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7249 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7250 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7251 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7252 $as_echo_n "(cached) " >&6
7253 else
7254 case $MAGIC_CMD in
7255 [\\/*] | ?:[\\/]*)
7256 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7257 ;;
7258 *)
7259 lt_save_MAGIC_CMD="$MAGIC_CMD"
7260 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7261 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7262 for ac_dir in $ac_dummy; do
7263 IFS="$lt_save_ifs"
7264 test -z "$ac_dir" && ac_dir=.
7265 if test -f $ac_dir/${ac_tool_prefix}file; then
7266 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7267 if test -n "$file_magic_test_file"; then
7268 case $deplibs_check_method in
7269 "file_magic "*)
7270 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7271 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7272 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7273 $EGREP "$file_magic_regex" > /dev/null; then
7274 :
7275 else
7276 cat <<_LT_EOF 1>&2
7277
7278 *** Warning: the command libtool uses to detect shared libraries,
7279 *** $file_magic_cmd, produces output that libtool cannot recognize.
7280 *** The result is that libtool may fail to recognize shared libraries
7281 *** as such. This will affect the creation of libtool libraries that
7282 *** depend on shared libraries, but programs linked with such libtool
7283 *** libraries will work regardless of this problem. Nevertheless, you
7284 *** may want to report the problem to your system manager and/or to
7285 *** bug-libtool@gnu.org
7286
7287 _LT_EOF
7288 fi ;;
7289 esac
7290 fi
7291 break
7292 fi
7293 done
7294 IFS="$lt_save_ifs"
7295 MAGIC_CMD="$lt_save_MAGIC_CMD"
7296 ;;
7297 esac
7298 fi
7299
7300 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7301 if test -n "$MAGIC_CMD"; then
7302 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7303 $as_echo "$MAGIC_CMD" >&6; }
7304 else
7305 { $as_echo "$as_me:$LINENO: result: no" >&5
7306 $as_echo "no" >&6; }
7307 fi
7308
7309
7310
7311
7312
7313 if test -z "$lt_cv_path_MAGIC_CMD"; then
7314 if test -n "$ac_tool_prefix"; then
7315 { $as_echo "$as_me:$LINENO: checking for file" >&5
7316 $as_echo_n "checking for file... " >&6; }
7317 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7318 $as_echo_n "(cached) " >&6
7319 else
7320 case $MAGIC_CMD in
7321 [\\/*] | ?:[\\/]*)
7322 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7323 ;;
7324 *)
7325 lt_save_MAGIC_CMD="$MAGIC_CMD"
7326 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7327 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7328 for ac_dir in $ac_dummy; do
7329 IFS="$lt_save_ifs"
7330 test -z "$ac_dir" && ac_dir=.
7331 if test -f $ac_dir/file; then
7332 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7333 if test -n "$file_magic_test_file"; then
7334 case $deplibs_check_method in
7335 "file_magic "*)
7336 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7337 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7338 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7339 $EGREP "$file_magic_regex" > /dev/null; then
7340 :
7341 else
7342 cat <<_LT_EOF 1>&2
7343
7344 *** Warning: the command libtool uses to detect shared libraries,
7345 *** $file_magic_cmd, produces output that libtool cannot recognize.
7346 *** The result is that libtool may fail to recognize shared libraries
7347 *** as such. This will affect the creation of libtool libraries that
7348 *** depend on shared libraries, but programs linked with such libtool
7349 *** libraries will work regardless of this problem. Nevertheless, you
7350 *** may want to report the problem to your system manager and/or to
7351 *** bug-libtool@gnu.org
7352
7353 _LT_EOF
7354 fi ;;
7355 esac
7356 fi
7357 break
7358 fi
7359 done
7360 IFS="$lt_save_ifs"
7361 MAGIC_CMD="$lt_save_MAGIC_CMD"
7362 ;;
7363 esac
7364 fi
7365
7366 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7367 if test -n "$MAGIC_CMD"; then
7368 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7369 $as_echo "$MAGIC_CMD" >&6; }
7370 else
7371 { $as_echo "$as_me:$LINENO: result: no" >&5
7372 $as_echo "no" >&6; }
7373 fi
7374
7375
7376 else
7377 MAGIC_CMD=:
7378 fi
7379 fi
7380
7381 fi
7382 ;;
7383 esac
7384
7385 # Use C for the default configuration in the libtool script
7386
7387 lt_save_CC="$CC"
7388 ac_ext=c
7389 ac_cpp='$CPP $CPPFLAGS'
7390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7393
7394
7395 # Source file extension for C test sources.
7396 ac_ext=c
7397
7398 # Object file extension for compiled C test sources.
7399 objext=o
7400 objext=$objext
7401
7402 # Code to be used in simple compile tests
7403 lt_simple_compile_test_code="int some_variable = 0;"
7404
7405 # Code to be used in simple link tests
7406 lt_simple_link_test_code='int main(){return(0);}'
7407
7408
7409
7410
7411
7412
7413
7414 # If no C compiler was specified, use CC.
7415 LTCC=${LTCC-"$CC"}
7416
7417 # If no C compiler flags were specified, use CFLAGS.
7418 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7419
7420 # Allow CC to be a program name with arguments.
7421 compiler=$CC
7422
7423 # Save the default compiler, since it gets overwritten when the other
7424 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7425 compiler_DEFAULT=$CC
7426
7427 # save warnings/boilerplate of simple test code
7428 ac_outfile=conftest.$ac_objext
7429 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7430 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7431 _lt_compiler_boilerplate=`cat conftest.err`
7432 $RM conftest*
7433
7434 ac_outfile=conftest.$ac_objext
7435 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7436 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7437 _lt_linker_boilerplate=`cat conftest.err`
7438 $RM -r conftest*
7439
7440
7441 if test -n "$compiler"; then
7442
7443 lt_prog_compiler_no_builtin_flag=
7444
7445 if test "$GCC" = yes; then
7446 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7447
7448 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7449 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7450 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7451 $as_echo_n "(cached) " >&6
7452 else
7453 lt_cv_prog_compiler_rtti_exceptions=no
7454 ac_outfile=conftest.$ac_objext
7455 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7456 lt_compiler_flag="-fno-rtti -fno-exceptions"
7457 # Insert the option either (1) after the last *FLAGS variable, or
7458 # (2) before a word containing "conftest.", or (3) at the end.
7459 # Note that $ac_compile itself does not contain backslashes and begins
7460 # with a dollar sign (not a hyphen), so the echo should work correctly.
7461 # The option is referenced via a variable to avoid confusing sed.
7462 lt_compile=`echo "$ac_compile" | $SED \
7463 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7464 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7465 -e 's:$: $lt_compiler_flag:'`
7466 (eval echo "\"\$as_me:7466: $lt_compile\"" >&5)
7467 (eval "$lt_compile" 2>conftest.err)
7468 ac_status=$?
7469 cat conftest.err >&5
7470 echo "$as_me:7470: \$? = $ac_status" >&5
7471 if (exit $ac_status) && test -s "$ac_outfile"; then
7472 # The compiler can only warn and ignore the option if not recognized
7473 # So say no if there are warnings other than the usual output.
7474 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7475 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7476 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7477 lt_cv_prog_compiler_rtti_exceptions=yes
7478 fi
7479 fi
7480 $RM conftest*
7481
7482 fi
7483 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7484 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7485
7486 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7487 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7488 else
7489 :
7490 fi
7491
7492 fi
7493
7494
7495
7496
7497
7498
7499 lt_prog_compiler_wl=
7500 lt_prog_compiler_pic=
7501 lt_prog_compiler_static=
7502
7503 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7504 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7505
7506 if test "$GCC" = yes; then
7507 lt_prog_compiler_wl='-Wl,'
7508 lt_prog_compiler_static='-static'
7509
7510 case $host_os in
7511 aix*)
7512 # All AIX code is PIC.
7513 if test "$host_cpu" = ia64; then
7514 # AIX 5 now supports IA64 processor
7515 lt_prog_compiler_static='-Bstatic'
7516 fi
7517 ;;
7518
7519 amigaos*)
7520 case $host_cpu in
7521 powerpc)
7522 # see comment about AmigaOS4 .so support
7523 lt_prog_compiler_pic='-fPIC'
7524 ;;
7525 m68k)
7526 # FIXME: we need at least 68020 code to build shared libraries, but
7527 # adding the `-m68020' flag to GCC prevents building anything better,
7528 # like `-m68040'.
7529 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7530 ;;
7531 esac
7532 ;;
7533
7534 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7535 # PIC is the default for these OSes.
7536 ;;
7537
7538 mingw* | cygwin* | pw32* | os2* | cegcc*)
7539 # This hack is so that the source file can tell whether it is being
7540 # built for inclusion in a dll (and should export symbols for example).
7541 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7542 # (--disable-auto-import) libraries
7543 lt_prog_compiler_pic='-DDLL_EXPORT'
7544 ;;
7545
7546 darwin* | rhapsody*)
7547 # PIC is the default on this platform
7548 # Common symbols not allowed in MH_DYLIB files
7549 lt_prog_compiler_pic='-fno-common'
7550 ;;
7551
7552 hpux*)
7553 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7554 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7555 # sets the default TLS model and affects inlining.
7556 case $host_cpu in
7557 hppa*64*)
7558 # +Z the default
7559 ;;
7560 *)
7561 lt_prog_compiler_pic='-fPIC'
7562 ;;
7563 esac
7564 ;;
7565
7566 interix[3-9]*)
7567 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7568 # Instead, we relocate shared libraries at runtime.
7569 ;;
7570
7571 msdosdjgpp*)
7572 # Just because we use GCC doesn't mean we suddenly get shared libraries
7573 # on systems that don't support them.
7574 lt_prog_compiler_can_build_shared=no
7575 enable_shared=no
7576 ;;
7577
7578 *nto* | *qnx*)
7579 # QNX uses GNU C++, but need to define -shared option too, otherwise
7580 # it will coredump.
7581 lt_prog_compiler_pic='-fPIC -shared'
7582 ;;
7583
7584 sysv4*MP*)
7585 if test -d /usr/nec; then
7586 lt_prog_compiler_pic=-Kconform_pic
7587 fi
7588 ;;
7589
7590 *)
7591 lt_prog_compiler_pic='-fPIC'
7592 ;;
7593 esac
7594 else
7595 # PORTME Check for flag to pass linker flags through the system compiler.
7596 case $host_os in
7597 aix*)
7598 lt_prog_compiler_wl='-Wl,'
7599 if test "$host_cpu" = ia64; then
7600 # AIX 5 now supports IA64 processor
7601 lt_prog_compiler_static='-Bstatic'
7602 else
7603 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7604 fi
7605 ;;
7606
7607 mingw* | cygwin* | pw32* | os2* | cegcc*)
7608 # This hack is so that the source file can tell whether it is being
7609 # built for inclusion in a dll (and should export symbols for example).
7610 lt_prog_compiler_pic='-DDLL_EXPORT'
7611 ;;
7612
7613 hpux9* | hpux10* | hpux11*)
7614 lt_prog_compiler_wl='-Wl,'
7615 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7616 # not for PA HP-UX.
7617 case $host_cpu in
7618 hppa*64*|ia64*)
7619 # +Z the default
7620 ;;
7621 *)
7622 lt_prog_compiler_pic='+Z'
7623 ;;
7624 esac
7625 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7626 lt_prog_compiler_static='${wl}-a ${wl}archive'
7627 ;;
7628
7629 irix5* | irix6* | nonstopux*)
7630 lt_prog_compiler_wl='-Wl,'
7631 # PIC (with -KPIC) is the default.
7632 lt_prog_compiler_static='-non_shared'
7633 ;;
7634
7635 linux* | k*bsd*-gnu)
7636 case $cc_basename in
7637 # old Intel for x86_64 which still supported -KPIC.
7638 ecc*)
7639 lt_prog_compiler_wl='-Wl,'
7640 lt_prog_compiler_pic='-KPIC'
7641 lt_prog_compiler_static='-static'
7642 ;;
7643 # icc used to be incompatible with GCC.
7644 # ICC 10 doesn't accept -KPIC any more.
7645 icc* | ifort*)
7646 lt_prog_compiler_wl='-Wl,'
7647 lt_prog_compiler_pic='-fPIC'
7648 lt_prog_compiler_static='-static'
7649 ;;
7650 # Lahey Fortran 8.1.
7651 lf95*)
7652 lt_prog_compiler_wl='-Wl,'
7653 lt_prog_compiler_pic='--shared'
7654 lt_prog_compiler_static='--static'
7655 ;;
7656 pgcc* | pgf77* | pgf90* | pgf95*)
7657 # Portland Group compilers (*not* the Pentium gcc compiler,
7658 # which looks to be a dead project)
7659 lt_prog_compiler_wl='-Wl,'
7660 lt_prog_compiler_pic='-fpic'
7661 lt_prog_compiler_static='-Bstatic'
7662 ;;
7663 ccc*)
7664 lt_prog_compiler_wl='-Wl,'
7665 # All Alpha code is PIC.
7666 lt_prog_compiler_static='-non_shared'
7667 ;;
7668 xl*)
7669 # IBM XL C 8.0/Fortran 10.1 on PPC
7670 lt_prog_compiler_wl='-Wl,'
7671 lt_prog_compiler_pic='-qpic'
7672 lt_prog_compiler_static='-qstaticlink'
7673 ;;
7674 *)
7675 case `$CC -V 2>&1 | sed 5q` in
7676 *Sun\ C*)
7677 # Sun C 5.9
7678 lt_prog_compiler_pic='-KPIC'
7679 lt_prog_compiler_static='-Bstatic'
7680 lt_prog_compiler_wl='-Wl,'
7681 ;;
7682 *Sun\ F*)
7683 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7684 lt_prog_compiler_pic='-KPIC'
7685 lt_prog_compiler_static='-Bstatic'
7686 lt_prog_compiler_wl=''
7687 ;;
7688 esac
7689 ;;
7690 esac
7691 ;;
7692
7693 newsos6)
7694 lt_prog_compiler_pic='-KPIC'
7695 lt_prog_compiler_static='-Bstatic'
7696 ;;
7697
7698 *nto* | *qnx*)
7699 # QNX uses GNU C++, but need to define -shared option too, otherwise
7700 # it will coredump.
7701 lt_prog_compiler_pic='-fPIC -shared'
7702 ;;
7703
7704 osf3* | osf4* | osf5*)
7705 lt_prog_compiler_wl='-Wl,'
7706 # All OSF/1 code is PIC.
7707 lt_prog_compiler_static='-non_shared'
7708 ;;
7709
7710 rdos*)
7711 lt_prog_compiler_static='-non_shared'
7712 ;;
7713
7714 solaris*)
7715 lt_prog_compiler_pic='-KPIC'
7716 lt_prog_compiler_static='-Bstatic'
7717 case $cc_basename in
7718 f77* | f90* | f95*)
7719 lt_prog_compiler_wl='-Qoption ld ';;
7720 *)
7721 lt_prog_compiler_wl='-Wl,';;
7722 esac
7723 ;;
7724
7725 sunos4*)
7726 lt_prog_compiler_wl='-Qoption ld '
7727 lt_prog_compiler_pic='-PIC'
7728 lt_prog_compiler_static='-Bstatic'
7729 ;;
7730
7731 sysv4 | sysv4.2uw2* | sysv4.3*)
7732 lt_prog_compiler_wl='-Wl,'
7733 lt_prog_compiler_pic='-KPIC'
7734 lt_prog_compiler_static='-Bstatic'
7735 ;;
7736
7737 sysv4*MP*)
7738 if test -d /usr/nec ;then
7739 lt_prog_compiler_pic='-Kconform_pic'
7740 lt_prog_compiler_static='-Bstatic'
7741 fi
7742 ;;
7743
7744 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7745 lt_prog_compiler_wl='-Wl,'
7746 lt_prog_compiler_pic='-KPIC'
7747 lt_prog_compiler_static='-Bstatic'
7748 ;;
7749
7750 unicos*)
7751 lt_prog_compiler_wl='-Wl,'
7752 lt_prog_compiler_can_build_shared=no
7753 ;;
7754
7755 uts4*)
7756 lt_prog_compiler_pic='-pic'
7757 lt_prog_compiler_static='-Bstatic'
7758 ;;
7759
7760 *)
7761 lt_prog_compiler_can_build_shared=no
7762 ;;
7763 esac
7764 fi
7765
7766 case $host_os in
7767 # For platforms which do not support PIC, -DPIC is meaningless:
7768 *djgpp*)
7769 lt_prog_compiler_pic=
7770 ;;
7771 *)
7772 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7773 ;;
7774 esac
7775 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7776 $as_echo "$lt_prog_compiler_pic" >&6; }
7777
7778
7779
7780
7781
7782
7783 #
7784 # Check to make sure the PIC flag actually works.
7785 #
7786 if test -n "$lt_prog_compiler_pic"; then
7787 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7788 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7789 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7790 $as_echo_n "(cached) " >&6
7791 else
7792 lt_cv_prog_compiler_pic_works=no
7793 ac_outfile=conftest.$ac_objext
7794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7795 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7796 # Insert the option either (1) after the last *FLAGS variable, or
7797 # (2) before a word containing "conftest.", or (3) at the end.
7798 # Note that $ac_compile itself does not contain backslashes and begins
7799 # with a dollar sign (not a hyphen), so the echo should work correctly.
7800 # The option is referenced via a variable to avoid confusing sed.
7801 lt_compile=`echo "$ac_compile" | $SED \
7802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7804 -e 's:$: $lt_compiler_flag:'`
7805 (eval echo "\"\$as_me:7805: $lt_compile\"" >&5)
7806 (eval "$lt_compile" 2>conftest.err)
7807 ac_status=$?
7808 cat conftest.err >&5
7809 echo "$as_me:7809: \$? = $ac_status" >&5
7810 if (exit $ac_status) && test -s "$ac_outfile"; then
7811 # The compiler can only warn and ignore the option if not recognized
7812 # So say no if there are warnings other than the usual output.
7813 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7814 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7815 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7816 lt_cv_prog_compiler_pic_works=yes
7817 fi
7818 fi
7819 $RM conftest*
7820
7821 fi
7822 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7823 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7824
7825 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7826 case $lt_prog_compiler_pic in
7827 "" | " "*) ;;
7828 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7829 esac
7830 else
7831 lt_prog_compiler_pic=
7832 lt_prog_compiler_can_build_shared=no
7833 fi
7834
7835 fi
7836
7837
7838
7839
7840
7841
7842 #
7843 # Check to make sure the static flag actually works.
7844 #
7845 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7846 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7847 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7848 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7849 $as_echo_n "(cached) " >&6
7850 else
7851 lt_cv_prog_compiler_static_works=no
7852 save_LDFLAGS="$LDFLAGS"
7853 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7854 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7855 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7856 # The linker can only warn and ignore the option if not recognized
7857 # So say no if there are warnings
7858 if test -s conftest.err; then
7859 # Append any errors to the config.log.
7860 cat conftest.err 1>&5
7861 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7862 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7863 if diff conftest.exp conftest.er2 >/dev/null; then
7864 lt_cv_prog_compiler_static_works=yes
7865 fi
7866 else
7867 lt_cv_prog_compiler_static_works=yes
7868 fi
7869 fi
7870 $RM -r conftest*
7871 LDFLAGS="$save_LDFLAGS"
7872
7873 fi
7874 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7875 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7876
7877 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7878 :
7879 else
7880 lt_prog_compiler_static=
7881 fi
7882
7883
7884
7885
7886
7887
7888
7889 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7890 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7891 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7892 $as_echo_n "(cached) " >&6
7893 else
7894 lt_cv_prog_compiler_c_o=no
7895 $RM -r conftest 2>/dev/null
7896 mkdir conftest
7897 cd conftest
7898 mkdir out
7899 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7900
7901 lt_compiler_flag="-o out/conftest2.$ac_objext"
7902 # Insert the option either (1) after the last *FLAGS variable, or
7903 # (2) before a word containing "conftest.", or (3) at the end.
7904 # Note that $ac_compile itself does not contain backslashes and begins
7905 # with a dollar sign (not a hyphen), so the echo should work correctly.
7906 lt_compile=`echo "$ac_compile" | $SED \
7907 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7908 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7909 -e 's:$: $lt_compiler_flag:'`
7910 (eval echo "\"\$as_me:7910: $lt_compile\"" >&5)
7911 (eval "$lt_compile" 2>out/conftest.err)
7912 ac_status=$?
7913 cat out/conftest.err >&5
7914 echo "$as_me:7914: \$? = $ac_status" >&5
7915 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7916 then
7917 # The compiler can only warn and ignore the option if not recognized
7918 # So say no if there are warnings
7919 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7920 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7921 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7922 lt_cv_prog_compiler_c_o=yes
7923 fi
7924 fi
7925 chmod u+w . 2>&5
7926 $RM conftest*
7927 # SGI C++ compiler will create directory out/ii_files/ for
7928 # template instantiation
7929 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7930 $RM out/* && rmdir out
7931 cd ..
7932 $RM -r conftest
7933 $RM conftest*
7934
7935 fi
7936 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7937 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7938
7939
7940
7941
7942
7943
7944 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7945 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7946 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7947 $as_echo_n "(cached) " >&6
7948 else
7949 lt_cv_prog_compiler_c_o=no
7950 $RM -r conftest 2>/dev/null
7951 mkdir conftest
7952 cd conftest
7953 mkdir out
7954 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7955
7956 lt_compiler_flag="-o out/conftest2.$ac_objext"
7957 # Insert the option either (1) after the last *FLAGS variable, or
7958 # (2) before a word containing "conftest.", or (3) at the end.
7959 # Note that $ac_compile itself does not contain backslashes and begins
7960 # with a dollar sign (not a hyphen), so the echo should work correctly.
7961 lt_compile=`echo "$ac_compile" | $SED \
7962 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7963 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7964 -e 's:$: $lt_compiler_flag:'`
7965 (eval echo "\"\$as_me:7965: $lt_compile\"" >&5)
7966 (eval "$lt_compile" 2>out/conftest.err)
7967 ac_status=$?
7968 cat out/conftest.err >&5
7969 echo "$as_me:7969: \$? = $ac_status" >&5
7970 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7971 then
7972 # The compiler can only warn and ignore the option if not recognized
7973 # So say no if there are warnings
7974 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7975 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7976 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7977 lt_cv_prog_compiler_c_o=yes
7978 fi
7979 fi
7980 chmod u+w . 2>&5
7981 $RM conftest*
7982 # SGI C++ compiler will create directory out/ii_files/ for
7983 # template instantiation
7984 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7985 $RM out/* && rmdir out
7986 cd ..
7987 $RM -r conftest
7988 $RM conftest*
7989
7990 fi
7991 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7992 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7993
7994
7995
7996
7997 hard_links="nottested"
7998 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7999 # do not overwrite the value of need_locks provided by the user
8000 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8001 $as_echo_n "checking if we can lock with hard links... " >&6; }
8002 hard_links=yes
8003 $RM conftest*
8004 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8005 touch conftest.a
8006 ln conftest.a conftest.b 2>&5 || hard_links=no
8007 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8008 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8009 $as_echo "$hard_links" >&6; }
8010 if test "$hard_links" = no; then
8011 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8012 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8013 need_locks=warn
8014 fi
8015 else
8016 need_locks=no
8017 fi
8018
8019
8020
8021
8022
8023
8024 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8025 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8026
8027 runpath_var=
8028 allow_undefined_flag=
8029 always_export_symbols=no
8030 archive_cmds=
8031 archive_expsym_cmds=
8032 compiler_needs_object=no
8033 enable_shared_with_static_runtimes=no
8034 export_dynamic_flag_spec=
8035 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8036 hardcode_automatic=no
8037 hardcode_direct=no
8038 hardcode_direct_absolute=no
8039 hardcode_libdir_flag_spec=
8040 hardcode_libdir_flag_spec_ld=
8041 hardcode_libdir_separator=
8042 hardcode_minus_L=no
8043 hardcode_shlibpath_var=unsupported
8044 inherit_rpath=no
8045 link_all_deplibs=unknown
8046 module_cmds=
8047 module_expsym_cmds=
8048 old_archive_from_new_cmds=
8049 old_archive_from_expsyms_cmds=
8050 thread_safe_flag_spec=
8051 whole_archive_flag_spec=
8052 # include_expsyms should be a list of space-separated symbols to be *always*
8053 # included in the symbol list
8054 include_expsyms=
8055 # exclude_expsyms can be an extended regexp of symbols to exclude
8056 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8057 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8058 # as well as any symbol that contains `d'.
8059 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8060 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8061 # platforms (ab)use it in PIC code, but their linkers get confused if
8062 # the symbol is explicitly referenced. Since portable code cannot
8063 # rely on this symbol name, it's probably fine to never include it in
8064 # preloaded symbol tables.
8065 # Exclude shared library initialization/finalization symbols.
8066 extract_expsyms_cmds=
8067
8068 case $host_os in
8069 cygwin* | mingw* | pw32* | cegcc*)
8070 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8071 # When not using gcc, we currently assume that we are using
8072 # Microsoft Visual C++.
8073 if test "$GCC" != yes; then
8074 with_gnu_ld=no
8075 fi
8076 ;;
8077 interix*)
8078 # we just hope/assume this is gcc and not c89 (= MSVC++)
8079 with_gnu_ld=yes
8080 ;;
8081 openbsd*)
8082 with_gnu_ld=no
8083 ;;
8084 esac
8085
8086 ld_shlibs=yes
8087 if test "$with_gnu_ld" = yes; then
8088 # If archive_cmds runs LD, not CC, wlarc should be empty
8089 wlarc='${wl}'
8090
8091 # Set some defaults for GNU ld with shared library support. These
8092 # are reset later if shared libraries are not supported. Putting them
8093 # here allows them to be overridden if necessary.
8094 runpath_var=LD_RUN_PATH
8095 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8096 export_dynamic_flag_spec='${wl}--export-dynamic'
8097 # ancient GNU ld didn't support --whole-archive et. al.
8098 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8099 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8100 else
8101 whole_archive_flag_spec=
8102 fi
8103 supports_anon_versioning=no
8104 case `$LD -v 2>&1` in
8105 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8106 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8107 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8108 *\ 2.11.*) ;; # other 2.11 versions
8109 *) supports_anon_versioning=yes ;;
8110 esac
8111
8112 # See if GNU ld supports shared libraries.
8113 case $host_os in
8114 aix[3-9]*)
8115 # On AIX/PPC, the GNU linker is very broken
8116 if test "$host_cpu" != ia64; then
8117 ld_shlibs=no
8118 cat <<_LT_EOF 1>&2
8119
8120 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8121 *** to be unable to reliably create shared libraries on AIX.
8122 *** Therefore, libtool is disabling shared libraries support. If you
8123 *** really care for shared libraries, you may want to modify your PATH
8124 *** so that a non-GNU linker is found, and then restart.
8125
8126 _LT_EOF
8127 fi
8128 ;;
8129
8130 amigaos*)
8131 case $host_cpu in
8132 powerpc)
8133 # see comment about AmigaOS4 .so support
8134 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8135 archive_expsym_cmds=''
8136 ;;
8137 m68k)
8138 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)'
8139 hardcode_libdir_flag_spec='-L$libdir'
8140 hardcode_minus_L=yes
8141 ;;
8142 esac
8143 ;;
8144
8145 beos*)
8146 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8147 allow_undefined_flag=unsupported
8148 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8149 # support --undefined. This deserves some investigation. FIXME
8150 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8151 else
8152 ld_shlibs=no
8153 fi
8154 ;;
8155
8156 cygwin* | mingw* | pw32* | cegcc*)
8157 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8158 # as there is no search path for DLLs.
8159 hardcode_libdir_flag_spec='-L$libdir'
8160 allow_undefined_flag=unsupported
8161 always_export_symbols=no
8162 enable_shared_with_static_runtimes=yes
8163 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8164
8165 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8166 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8167 # If the export-symbols file already is a .def file (1st line
8168 # is EXPORTS), use it as is; otherwise, prepend...
8169 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8170 cp $export_symbols $output_objdir/$soname.def;
8171 else
8172 echo EXPORTS > $output_objdir/$soname.def;
8173 cat $export_symbols >> $output_objdir/$soname.def;
8174 fi~
8175 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8176 else
8177 ld_shlibs=no
8178 fi
8179 ;;
8180
8181 interix[3-9]*)
8182 hardcode_direct=no
8183 hardcode_shlibpath_var=no
8184 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8185 export_dynamic_flag_spec='${wl}-E'
8186 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8187 # Instead, shared libraries are loaded at an image base (0x10000000 by
8188 # default) and relocated if they conflict, which is a slow very memory
8189 # consuming and fragmenting process. To avoid this, we pick a random,
8190 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8191 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8192 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8193 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'
8194 ;;
8195
8196 gnu* | linux* | tpf* | k*bsd*-gnu)
8197 tmp_diet=no
8198 if test "$host_os" = linux-dietlibc; then
8199 case $cc_basename in
8200 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8201 esac
8202 fi
8203 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8204 && test "$tmp_diet" = no
8205 then
8206 tmp_addflag=
8207 tmp_sharedflag='-shared'
8208 case $cc_basename,$host_cpu in
8209 pgcc*) # Portland Group C compiler
8210 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'
8211 tmp_addflag=' $pic_flag'
8212 ;;
8213 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8214 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'
8215 tmp_addflag=' $pic_flag -Mnomain' ;;
8216 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8217 tmp_addflag=' -i_dynamic' ;;
8218 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8219 tmp_addflag=' -i_dynamic -nofor_main' ;;
8220 ifc* | ifort*) # Intel Fortran compiler
8221 tmp_addflag=' -nofor_main' ;;
8222 lf95*) # Lahey Fortran 8.1
8223 whole_archive_flag_spec=
8224 tmp_sharedflag='--shared' ;;
8225 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8226 tmp_sharedflag='-qmkshrobj'
8227 tmp_addflag= ;;
8228 esac
8229 case `$CC -V 2>&1 | sed 5q` in
8230 *Sun\ C*) # Sun C 5.9
8231 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'
8232 compiler_needs_object=yes
8233 tmp_sharedflag='-G' ;;
8234 *Sun\ F*) # Sun Fortran 8.3
8235 tmp_sharedflag='-G' ;;
8236 esac
8237 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8238
8239 if test "x$supports_anon_versioning" = xyes; then
8240 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8241 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8242 echo "local: *; };" >> $output_objdir/$libname.ver~
8243 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8244 fi
8245
8246 case $cc_basename in
8247 xlf*)
8248 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8249 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8250 hardcode_libdir_flag_spec=
8251 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8252 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8253 if test "x$supports_anon_versioning" = xyes; then
8254 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8255 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8256 echo "local: *; };" >> $output_objdir/$libname.ver~
8257 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8258 fi
8259 ;;
8260 esac
8261 else
8262 ld_shlibs=no
8263 fi
8264 ;;
8265
8266 netbsd*)
8267 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8268 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8269 wlarc=
8270 else
8271 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8272 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8273 fi
8274 ;;
8275
8276 solaris*)
8277 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8278 ld_shlibs=no
8279 cat <<_LT_EOF 1>&2
8280
8281 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8282 *** create shared libraries on Solaris systems. Therefore, libtool
8283 *** is disabling shared libraries support. We urge you to upgrade GNU
8284 *** binutils to release 2.9.1 or newer. Another option is to modify
8285 *** your PATH or compiler configuration so that the native linker is
8286 *** used, and then restart.
8287
8288 _LT_EOF
8289 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8290 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8291 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8292 else
8293 ld_shlibs=no
8294 fi
8295 ;;
8296
8297 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8298 case `$LD -v 2>&1` in
8299 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8300 ld_shlibs=no
8301 cat <<_LT_EOF 1>&2
8302
8303 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8304 *** reliably create shared libraries on SCO systems. Therefore, libtool
8305 *** is disabling shared libraries support. We urge you to upgrade GNU
8306 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8307 *** your PATH or compiler configuration so that the native linker is
8308 *** used, and then restart.
8309
8310 _LT_EOF
8311 ;;
8312 *)
8313 # For security reasons, it is highly recommended that you always
8314 # use absolute paths for naming shared libraries, and exclude the
8315 # DT_RUNPATH tag from executables and libraries. But doing so
8316 # requires that you compile everything twice, which is a pain.
8317 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8318 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8319 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8320 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8321 else
8322 ld_shlibs=no
8323 fi
8324 ;;
8325 esac
8326 ;;
8327
8328 sunos4*)
8329 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8330 wlarc=
8331 hardcode_direct=yes
8332 hardcode_shlibpath_var=no
8333 ;;
8334
8335 *)
8336 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8337 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8338 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8339 else
8340 ld_shlibs=no
8341 fi
8342 ;;
8343 esac
8344
8345 if test "$ld_shlibs" = no; then
8346 runpath_var=
8347 hardcode_libdir_flag_spec=
8348 export_dynamic_flag_spec=
8349 whole_archive_flag_spec=
8350 fi
8351 else
8352 # PORTME fill in a description of your system's linker (not GNU ld)
8353 case $host_os in
8354 aix3*)
8355 allow_undefined_flag=unsupported
8356 always_export_symbols=yes
8357 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'
8358 # Note: this linker hardcodes the directories in LIBPATH if there
8359 # are no directories specified by -L.
8360 hardcode_minus_L=yes
8361 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8362 # Neither direct hardcoding nor static linking is supported with a
8363 # broken collect2.
8364 hardcode_direct=unsupported
8365 fi
8366 ;;
8367
8368 aix[4-9]*)
8369 if test "$host_cpu" = ia64; then
8370 # On IA64, the linker does run time linking by default, so we don't
8371 # have to do anything special.
8372 aix_use_runtimelinking=no
8373 exp_sym_flag='-Bexport'
8374 no_entry_flag=""
8375 else
8376 # If we're using GNU nm, then we don't want the "-C" option.
8377 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8378 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8379 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'
8380 else
8381 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'
8382 fi
8383 aix_use_runtimelinking=no
8384
8385 # Test if we are trying to use run time linking or normal
8386 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8387 # need to do runtime linking.
8388 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8389 for ld_flag in $LDFLAGS; do
8390 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8391 aix_use_runtimelinking=yes
8392 break
8393 fi
8394 done
8395 ;;
8396 esac
8397
8398 exp_sym_flag='-bexport'
8399 no_entry_flag='-bnoentry'
8400 fi
8401
8402 # When large executables or shared objects are built, AIX ld can
8403 # have problems creating the table of contents. If linking a library
8404 # or program results in "error TOC overflow" add -mminimal-toc to
8405 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8406 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8407
8408 archive_cmds=''
8409 hardcode_direct=yes
8410 hardcode_direct_absolute=yes
8411 hardcode_libdir_separator=':'
8412 link_all_deplibs=yes
8413 file_list_spec='${wl}-f,'
8414
8415 if test "$GCC" = yes; then
8416 case $host_os in aix4.[012]|aix4.[012].*)
8417 # We only want to do this on AIX 4.2 and lower, the check
8418 # below for broken collect2 doesn't work under 4.3+
8419 collect2name=`${CC} -print-prog-name=collect2`
8420 if test -f "$collect2name" &&
8421 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8422 then
8423 # We have reworked collect2
8424 :
8425 else
8426 # We have old collect2
8427 hardcode_direct=unsupported
8428 # It fails to find uninstalled libraries when the uninstalled
8429 # path is not listed in the libpath. Setting hardcode_minus_L
8430 # to unsupported forces relinking
8431 hardcode_minus_L=yes
8432 hardcode_libdir_flag_spec='-L$libdir'
8433 hardcode_libdir_separator=
8434 fi
8435 ;;
8436 esac
8437 shared_flag='-shared'
8438 if test "$aix_use_runtimelinking" = yes; then
8439 shared_flag="$shared_flag "'${wl}-G'
8440 fi
8441 else
8442 # not using gcc
8443 if test "$host_cpu" = ia64; then
8444 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8445 # chokes on -Wl,-G. The following line is correct:
8446 shared_flag='-G'
8447 else
8448 if test "$aix_use_runtimelinking" = yes; then
8449 shared_flag='${wl}-G'
8450 else
8451 shared_flag='${wl}-bM:SRE'
8452 fi
8453 fi
8454 fi
8455
8456 export_dynamic_flag_spec='${wl}-bexpall'
8457 # It seems that -bexpall does not export symbols beginning with
8458 # underscore (_), so it is better to generate a list of symbols to export.
8459 always_export_symbols=yes
8460 if test "$aix_use_runtimelinking" = yes; then
8461 # Warning - without using the other runtime loading flags (-brtl),
8462 # -berok will link without error, but may produce a broken library.
8463 allow_undefined_flag='-berok'
8464 # Determine the default libpath from the value encoded in an
8465 # empty executable.
8466 cat >conftest.$ac_ext <<_ACEOF
8467 /* confdefs.h. */
8468 _ACEOF
8469 cat confdefs.h >>conftest.$ac_ext
8470 cat >>conftest.$ac_ext <<_ACEOF
8471 /* end confdefs.h. */
8472
8473 int
8474 main ()
8475 {
8476
8477 ;
8478 return 0;
8479 }
8480 _ACEOF
8481 rm -f conftest.$ac_objext conftest$ac_exeext
8482 if { (ac_try="$ac_link"
8483 case "(($ac_try" in
8484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8485 *) ac_try_echo=$ac_try;;
8486 esac
8487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8488 $as_echo "$ac_try_echo") >&5
8489 (eval "$ac_link") 2>conftest.er1
8490 ac_status=$?
8491 grep -v '^ *+' conftest.er1 >conftest.err
8492 rm -f conftest.er1
8493 cat conftest.err >&5
8494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); } && {
8496 test -z "$ac_c_werror_flag" ||
8497 test ! -s conftest.err
8498 } && test -s conftest$ac_exeext && {
8499 test "$cross_compiling" = yes ||
8500 $as_test_x conftest$ac_exeext
8501 }; then
8502
8503 lt_aix_libpath_sed='
8504 /Import File Strings/,/^$/ {
8505 /^0/ {
8506 s/^0 *\(.*\)$/\1/
8507 p
8508 }
8509 }'
8510 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8511 # Check for a 64-bit object if we didn't find anything.
8512 if test -z "$aix_libpath"; then
8513 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8514 fi
8515 else
8516 $as_echo "$as_me: failed program was:" >&5
8517 sed 's/^/| /' conftest.$ac_ext >&5
8518
8519
8520 fi
8521
8522 rm -rf conftest.dSYM
8523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8524 conftest$ac_exeext conftest.$ac_ext
8525 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8526
8527 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8528 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"
8529 else
8530 if test "$host_cpu" = ia64; then
8531 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8532 allow_undefined_flag="-z nodefs"
8533 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"
8534 else
8535 # Determine the default libpath from the value encoded in an
8536 # empty executable.
8537 cat >conftest.$ac_ext <<_ACEOF
8538 /* confdefs.h. */
8539 _ACEOF
8540 cat confdefs.h >>conftest.$ac_ext
8541 cat >>conftest.$ac_ext <<_ACEOF
8542 /* end confdefs.h. */
8543
8544 int
8545 main ()
8546 {
8547
8548 ;
8549 return 0;
8550 }
8551 _ACEOF
8552 rm -f conftest.$ac_objext conftest$ac_exeext
8553 if { (ac_try="$ac_link"
8554 case "(($ac_try" in
8555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8556 *) ac_try_echo=$ac_try;;
8557 esac
8558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8559 $as_echo "$ac_try_echo") >&5
8560 (eval "$ac_link") 2>conftest.er1
8561 ac_status=$?
8562 grep -v '^ *+' conftest.er1 >conftest.err
8563 rm -f conftest.er1
8564 cat conftest.err >&5
8565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); } && {
8567 test -z "$ac_c_werror_flag" ||
8568 test ! -s conftest.err
8569 } && test -s conftest$ac_exeext && {
8570 test "$cross_compiling" = yes ||
8571 $as_test_x conftest$ac_exeext
8572 }; then
8573
8574 lt_aix_libpath_sed='
8575 /Import File Strings/,/^$/ {
8576 /^0/ {
8577 s/^0 *\(.*\)$/\1/
8578 p
8579 }
8580 }'
8581 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8582 # Check for a 64-bit object if we didn't find anything.
8583 if test -z "$aix_libpath"; then
8584 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8585 fi
8586 else
8587 $as_echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.$ac_ext >&5
8589
8590
8591 fi
8592
8593 rm -rf conftest.dSYM
8594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8595 conftest$ac_exeext conftest.$ac_ext
8596 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8597
8598 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8599 # Warning - without using the other run time loading flags,
8600 # -berok will link without error, but may produce a broken library.
8601 no_undefined_flag=' ${wl}-bernotok'
8602 allow_undefined_flag=' ${wl}-berok'
8603 # Exported symbols can be pulled into shared objects from archives
8604 whole_archive_flag_spec='$convenience'
8605 archive_cmds_need_lc=yes
8606 # This is similar to how AIX traditionally builds its shared libraries.
8607 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'
8608 fi
8609 fi
8610 ;;
8611
8612 amigaos*)
8613 case $host_cpu in
8614 powerpc)
8615 # see comment about AmigaOS4 .so support
8616 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8617 archive_expsym_cmds=''
8618 ;;
8619 m68k)
8620 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)'
8621 hardcode_libdir_flag_spec='-L$libdir'
8622 hardcode_minus_L=yes
8623 ;;
8624 esac
8625 ;;
8626
8627 bsdi[45]*)
8628 export_dynamic_flag_spec=-rdynamic
8629 ;;
8630
8631 cygwin* | mingw* | pw32* | cegcc*)
8632 # When not using gcc, we currently assume that we are using
8633 # Microsoft Visual C++.
8634 # hardcode_libdir_flag_spec is actually meaningless, as there is
8635 # no search path for DLLs.
8636 hardcode_libdir_flag_spec=' '
8637 allow_undefined_flag=unsupported
8638 # Tell ltmain to make .lib files, not .a files.
8639 libext=lib
8640 # Tell ltmain to make .dll files, not .so files.
8641 shrext_cmds=".dll"
8642 # FIXME: Setting linknames here is a bad hack.
8643 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8644 # The linker will automatically build a .lib file if we build a DLL.
8645 old_archive_from_new_cmds='true'
8646 # FIXME: Should let the user specify the lib program.
8647 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8648 fix_srcfile_path='`cygpath -w "$srcfile"`'
8649 enable_shared_with_static_runtimes=yes
8650 ;;
8651
8652 darwin* | rhapsody*)
8653
8654
8655 archive_cmds_need_lc=no
8656 hardcode_direct=no
8657 hardcode_automatic=yes
8658 hardcode_shlibpath_var=unsupported
8659 whole_archive_flag_spec=''
8660 link_all_deplibs=yes
8661 allow_undefined_flag="$_lt_dar_allow_undefined"
8662 case $cc_basename in
8663 ifort*) _lt_dar_can_shared=yes ;;
8664 *) _lt_dar_can_shared=$GCC ;;
8665 esac
8666 if test "$_lt_dar_can_shared" = "yes"; then
8667 output_verbose_link_cmd=echo
8668 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8669 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8670 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}"
8671 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}"
8672
8673 else
8674 ld_shlibs=no
8675 fi
8676
8677 ;;
8678
8679 dgux*)
8680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8681 hardcode_libdir_flag_spec='-L$libdir'
8682 hardcode_shlibpath_var=no
8683 ;;
8684
8685 freebsd1*)
8686 ld_shlibs=no
8687 ;;
8688
8689 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8690 # support. Future versions do this automatically, but an explicit c++rt0.o
8691 # does not break anything, and helps significantly (at the cost of a little
8692 # extra space).
8693 freebsd2.2*)
8694 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8695 hardcode_libdir_flag_spec='-R$libdir'
8696 hardcode_direct=yes
8697 hardcode_shlibpath_var=no
8698 ;;
8699
8700 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8701 freebsd2*)
8702 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8703 hardcode_direct=yes
8704 hardcode_minus_L=yes
8705 hardcode_shlibpath_var=no
8706 ;;
8707
8708 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8709 freebsd* | dragonfly*)
8710 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8711 hardcode_libdir_flag_spec='-R$libdir'
8712 hardcode_direct=yes
8713 hardcode_shlibpath_var=no
8714 ;;
8715
8716 hpux9*)
8717 if test "$GCC" = yes; then
8718 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'
8719 else
8720 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'
8721 fi
8722 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8723 hardcode_libdir_separator=:
8724 hardcode_direct=yes
8725
8726 # hardcode_minus_L: Not really in the search PATH,
8727 # but as the default location of the library.
8728 hardcode_minus_L=yes
8729 export_dynamic_flag_spec='${wl}-E'
8730 ;;
8731
8732 hpux10*)
8733 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8734 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8735 else
8736 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8737 fi
8738 if test "$with_gnu_ld" = no; then
8739 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8740 hardcode_libdir_flag_spec_ld='+b $libdir'
8741 hardcode_libdir_separator=:
8742 hardcode_direct=yes
8743 hardcode_direct_absolute=yes
8744 export_dynamic_flag_spec='${wl}-E'
8745 # hardcode_minus_L: Not really in the search PATH,
8746 # but as the default location of the library.
8747 hardcode_minus_L=yes
8748 fi
8749 ;;
8750
8751 hpux11*)
8752 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8753 case $host_cpu in
8754 hppa*64*)
8755 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8756 ;;
8757 ia64*)
8758 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8759 ;;
8760 *)
8761 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8762 ;;
8763 esac
8764 else
8765 case $host_cpu in
8766 hppa*64*)
8767 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8768 ;;
8769 ia64*)
8770 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8771 ;;
8772 *)
8773 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8774 ;;
8775 esac
8776 fi
8777 if test "$with_gnu_ld" = no; then
8778 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8779 hardcode_libdir_separator=:
8780
8781 case $host_cpu in
8782 hppa*64*|ia64*)
8783 hardcode_direct=no
8784 hardcode_shlibpath_var=no
8785 ;;
8786 *)
8787 hardcode_direct=yes
8788 hardcode_direct_absolute=yes
8789 export_dynamic_flag_spec='${wl}-E'
8790
8791 # hardcode_minus_L: Not really in the search PATH,
8792 # but as the default location of the library.
8793 hardcode_minus_L=yes
8794 ;;
8795 esac
8796 fi
8797 ;;
8798
8799 irix5* | irix6* | nonstopux*)
8800 if test "$GCC" = yes; then
8801 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'
8802 # Try to use the -exported_symbol ld option, if it does not
8803 # work, assume that -exports_file does not work either and
8804 # implicitly export all symbols.
8805 save_LDFLAGS="$LDFLAGS"
8806 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8807 cat >conftest.$ac_ext <<_ACEOF
8808 int foo(void) {}
8809 _ACEOF
8810 rm -f conftest.$ac_objext conftest$ac_exeext
8811 if { (ac_try="$ac_link"
8812 case "(($ac_try" in
8813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8814 *) ac_try_echo=$ac_try;;
8815 esac
8816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8817 $as_echo "$ac_try_echo") >&5
8818 (eval "$ac_link") 2>conftest.er1
8819 ac_status=$?
8820 grep -v '^ *+' conftest.er1 >conftest.err
8821 rm -f conftest.er1
8822 cat conftest.err >&5
8823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); } && {
8825 test -z "$ac_c_werror_flag" ||
8826 test ! -s conftest.err
8827 } && test -s conftest$ac_exeext && {
8828 test "$cross_compiling" = yes ||
8829 $as_test_x conftest$ac_exeext
8830 }; then
8831 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'
8832
8833 else
8834 $as_echo "$as_me: failed program was:" >&5
8835 sed 's/^/| /' conftest.$ac_ext >&5
8836
8837
8838 fi
8839
8840 rm -rf conftest.dSYM
8841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8842 conftest$ac_exeext conftest.$ac_ext
8843 LDFLAGS="$save_LDFLAGS"
8844 else
8845 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'
8846 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'
8847 fi
8848 archive_cmds_need_lc='no'
8849 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8850 hardcode_libdir_separator=:
8851 inherit_rpath=yes
8852 link_all_deplibs=yes
8853 ;;
8854
8855 netbsd*)
8856 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8857 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8858 else
8859 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8860 fi
8861 hardcode_libdir_flag_spec='-R$libdir'
8862 hardcode_direct=yes
8863 hardcode_shlibpath_var=no
8864 ;;
8865
8866 newsos6)
8867 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8868 hardcode_direct=yes
8869 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8870 hardcode_libdir_separator=:
8871 hardcode_shlibpath_var=no
8872 ;;
8873
8874 *nto* | *qnx*)
8875 ;;
8876
8877 openbsd*)
8878 if test -f /usr/libexec/ld.so; then
8879 hardcode_direct=yes
8880 hardcode_shlibpath_var=no
8881 hardcode_direct_absolute=yes
8882 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8883 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8884 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8885 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8886 export_dynamic_flag_spec='${wl}-E'
8887 else
8888 case $host_os in
8889 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8890 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8891 hardcode_libdir_flag_spec='-R$libdir'
8892 ;;
8893 *)
8894 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8895 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8896 ;;
8897 esac
8898 fi
8899 else
8900 ld_shlibs=no
8901 fi
8902 ;;
8903
8904 os2*)
8905 hardcode_libdir_flag_spec='-L$libdir'
8906 hardcode_minus_L=yes
8907 allow_undefined_flag=unsupported
8908 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'
8909 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8910 ;;
8911
8912 osf3*)
8913 if test "$GCC" = yes; then
8914 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8915 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'
8916 else
8917 allow_undefined_flag=' -expect_unresolved \*'
8918 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'
8919 fi
8920 archive_cmds_need_lc='no'
8921 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8922 hardcode_libdir_separator=:
8923 ;;
8924
8925 osf4* | osf5*) # as osf3* with the addition of -msym flag
8926 if test "$GCC" = yes; then
8927 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8928 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'
8929 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8930 else
8931 allow_undefined_flag=' -expect_unresolved \*'
8932 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'
8933 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~
8934 $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'
8935
8936 # Both c and cxx compiler support -rpath directly
8937 hardcode_libdir_flag_spec='-rpath $libdir'
8938 fi
8939 archive_cmds_need_lc='no'
8940 hardcode_libdir_separator=:
8941 ;;
8942
8943 solaris*)
8944 no_undefined_flag=' -z defs'
8945 if test "$GCC" = yes; then
8946 wlarc='${wl}'
8947 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8948 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8949 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8950 else
8951 case `$CC -V 2>&1` in
8952 *"Compilers 5.0"*)
8953 wlarc=''
8954 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8955 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8956 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8957 ;;
8958 *)
8959 wlarc='${wl}'
8960 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8961 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8962 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8963 ;;
8964 esac
8965 fi
8966 hardcode_libdir_flag_spec='-R$libdir'
8967 hardcode_shlibpath_var=no
8968 case $host_os in
8969 solaris2.[0-5] | solaris2.[0-5].*) ;;
8970 *)
8971 # The compiler driver will combine and reorder linker options,
8972 # but understands `-z linker_flag'. GCC discards it without `$wl',
8973 # but is careful enough not to reorder.
8974 # Supported since Solaris 2.6 (maybe 2.5.1?)
8975 if test "$GCC" = yes; then
8976 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8977 else
8978 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8979 fi
8980 ;;
8981 esac
8982 link_all_deplibs=yes
8983 ;;
8984
8985 sunos4*)
8986 if test "x$host_vendor" = xsequent; then
8987 # Use $CC to link under sequent, because it throws in some extra .o
8988 # files that make .init and .fini sections work.
8989 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8990 else
8991 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8992 fi
8993 hardcode_libdir_flag_spec='-L$libdir'
8994 hardcode_direct=yes
8995 hardcode_minus_L=yes
8996 hardcode_shlibpath_var=no
8997 ;;
8998
8999 sysv4)
9000 case $host_vendor in
9001 sni)
9002 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9003 hardcode_direct=yes # is this really true???
9004 ;;
9005 siemens)
9006 ## LD is ld it makes a PLAMLIB
9007 ## CC just makes a GrossModule.
9008 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9009 reload_cmds='$CC -r -o $output$reload_objs'
9010 hardcode_direct=no
9011 ;;
9012 motorola)
9013 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9014 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9015 ;;
9016 esac
9017 runpath_var='LD_RUN_PATH'
9018 hardcode_shlibpath_var=no
9019 ;;
9020
9021 sysv4.3*)
9022 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9023 hardcode_shlibpath_var=no
9024 export_dynamic_flag_spec='-Bexport'
9025 ;;
9026
9027 sysv4*MP*)
9028 if test -d /usr/nec; then
9029 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9030 hardcode_shlibpath_var=no
9031 runpath_var=LD_RUN_PATH
9032 hardcode_runpath_var=yes
9033 ld_shlibs=yes
9034 fi
9035 ;;
9036
9037 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9038 no_undefined_flag='${wl}-z,text'
9039 archive_cmds_need_lc=no
9040 hardcode_shlibpath_var=no
9041 runpath_var='LD_RUN_PATH'
9042
9043 if test "$GCC" = yes; then
9044 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9045 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9046 else
9047 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9048 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9049 fi
9050 ;;
9051
9052 sysv5* | sco3.2v5* | sco5v6*)
9053 # Note: We can NOT use -z defs as we might desire, because we do not
9054 # link with -lc, and that would cause any symbols used from libc to
9055 # always be unresolved, which means just about no library would
9056 # ever link correctly. If we're not using GNU ld we use -z text
9057 # though, which does catch some bad symbols but isn't as heavy-handed
9058 # as -z defs.
9059 no_undefined_flag='${wl}-z,text'
9060 allow_undefined_flag='${wl}-z,nodefs'
9061 archive_cmds_need_lc=no
9062 hardcode_shlibpath_var=no
9063 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9064 hardcode_libdir_separator=':'
9065 link_all_deplibs=yes
9066 export_dynamic_flag_spec='${wl}-Bexport'
9067 runpath_var='LD_RUN_PATH'
9068
9069 if test "$GCC" = yes; then
9070 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9071 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9072 else
9073 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9074 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9075 fi
9076 ;;
9077
9078 uts4*)
9079 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9080 hardcode_libdir_flag_spec='-L$libdir'
9081 hardcode_shlibpath_var=no
9082 ;;
9083
9084 *)
9085 ld_shlibs=no
9086 ;;
9087 esac
9088
9089 if test x$host_vendor = xsni; then
9090 case $host in
9091 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9092 export_dynamic_flag_spec='${wl}-Blargedynsym'
9093 ;;
9094 esac
9095 fi
9096 fi
9097
9098 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9099 $as_echo "$ld_shlibs" >&6; }
9100 test "$ld_shlibs" = no && can_build_shared=no
9101
9102 with_gnu_ld=$with_gnu_ld
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118 #
9119 # Do we need to explicitly link libc?
9120 #
9121 case "x$archive_cmds_need_lc" in
9122 x|xyes)
9123 # Assume -lc should be added
9124 archive_cmds_need_lc=yes
9125
9126 if test "$enable_shared" = yes && test "$GCC" = yes; then
9127 case $archive_cmds in
9128 *'~'*)
9129 # FIXME: we may have to deal with multi-command sequences.
9130 ;;
9131 '$CC '*)
9132 # Test whether the compiler implicitly links with -lc since on some
9133 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9134 # to ld, don't add -lc before -lgcc.
9135 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9136 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9137 $RM conftest*
9138 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9139
9140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9141 (eval $ac_compile) 2>&5
9142 ac_status=$?
9143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); } 2>conftest.err; then
9145 soname=conftest
9146 lib=conftest
9147 libobjs=conftest.$ac_objext
9148 deplibs=
9149 wl=$lt_prog_compiler_wl
9150 pic_flag=$lt_prog_compiler_pic
9151 compiler_flags=-v
9152 linker_flags=-v
9153 verstring=
9154 output_objdir=.
9155 libname=conftest
9156 lt_save_allow_undefined_flag=$allow_undefined_flag
9157 allow_undefined_flag=
9158 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9159 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9160 ac_status=$?
9161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); }
9163 then
9164 archive_cmds_need_lc=no
9165 else
9166 archive_cmds_need_lc=yes
9167 fi
9168 allow_undefined_flag=$lt_save_allow_undefined_flag
9169 else
9170 cat conftest.err 1>&5
9171 fi
9172 $RM conftest*
9173 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9174 $as_echo "$archive_cmds_need_lc" >&6; }
9175 ;;
9176 esac
9177 fi
9178 ;;
9179 esac
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
9337 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9338 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9339
9340 if test "$GCC" = yes; then
9341 case $host_os in
9342 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9343 *) lt_awk_arg="/^libraries:/" ;;
9344 esac
9345 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9346 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9347 # if the path contains ";" then we assume it to be the separator
9348 # otherwise default to the standard path separator (i.e. ":") - it is
9349 # assumed that no part of a normal pathname contains ";" but that should
9350 # okay in the real world where ";" in dirpaths is itself problematic.
9351 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9352 else
9353 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9354 fi
9355 # Ok, now we have the path, separated by spaces, we can step through it
9356 # and add multilib dir if necessary.
9357 lt_tmp_lt_search_path_spec=
9358 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9359 for lt_sys_path in $lt_search_path_spec; do
9360 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9361 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9362 else
9363 test -d "$lt_sys_path" && \
9364 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9365 fi
9366 done
9367 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9368 BEGIN {RS=" "; FS="/|\n";} {
9369 lt_foo="";
9370 lt_count=0;
9371 for (lt_i = NF; lt_i > 0; lt_i--) {
9372 if ($lt_i != "" && $lt_i != ".") {
9373 if ($lt_i == "..") {
9374 lt_count++;
9375 } else {
9376 if (lt_count == 0) {
9377 lt_foo="/" $lt_i lt_foo;
9378 } else {
9379 lt_count--;
9380 }
9381 }
9382 }
9383 }
9384 if (lt_foo != "") { lt_freq[lt_foo]++; }
9385 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9386 }'`
9387 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9388 else
9389 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9390 fi
9391 library_names_spec=
9392 libname_spec='lib$name'
9393 soname_spec=
9394 shrext_cmds=".so"
9395 postinstall_cmds=
9396 postuninstall_cmds=
9397 finish_cmds=
9398 finish_eval=
9399 shlibpath_var=
9400 shlibpath_overrides_runpath=unknown
9401 version_type=none
9402 dynamic_linker="$host_os ld.so"
9403 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9404 need_lib_prefix=unknown
9405 hardcode_into_libs=no
9406
9407 # when you set need_version to no, make sure it does not cause -set_version
9408 # flags to be left without arguments
9409 need_version=unknown
9410
9411 case $host_os in
9412 aix3*)
9413 version_type=linux
9414 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9415 shlibpath_var=LIBPATH
9416
9417 # AIX 3 has no versioning support, so we append a major version to the name.
9418 soname_spec='${libname}${release}${shared_ext}$major'
9419 ;;
9420
9421 aix[4-9]*)
9422 version_type=linux
9423 need_lib_prefix=no
9424 need_version=no
9425 hardcode_into_libs=yes
9426 if test "$host_cpu" = ia64; then
9427 # AIX 5 supports IA64
9428 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9429 shlibpath_var=LD_LIBRARY_PATH
9430 else
9431 # With GCC up to 2.95.x, collect2 would create an import file
9432 # for dependence libraries. The import file would start with
9433 # the line `#! .'. This would cause the generated library to
9434 # depend on `.', always an invalid library. This was fixed in
9435 # development snapshots of GCC prior to 3.0.
9436 case $host_os in
9437 aix4 | aix4.[01] | aix4.[01].*)
9438 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9439 echo ' yes '
9440 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9441 :
9442 else
9443 can_build_shared=no
9444 fi
9445 ;;
9446 esac
9447 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9448 # soname into executable. Probably we can add versioning support to
9449 # collect2, so additional links can be useful in future.
9450 if test "$aix_use_runtimelinking" = yes; then
9451 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9452 # instead of lib<name>.a to let people know that these are not
9453 # typical AIX shared libraries.
9454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9455 else
9456 # We preserve .a as extension for shared libraries through AIX4.2
9457 # and later when we are not doing run time linking.
9458 library_names_spec='${libname}${release}.a $libname.a'
9459 soname_spec='${libname}${release}${shared_ext}$major'
9460 fi
9461 shlibpath_var=LIBPATH
9462 fi
9463 ;;
9464
9465 amigaos*)
9466 case $host_cpu in
9467 powerpc)
9468 # Since July 2007 AmigaOS4 officially supports .so libraries.
9469 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9471 ;;
9472 m68k)
9473 library_names_spec='$libname.ixlibrary $libname.a'
9474 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9475 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'
9476 ;;
9477 esac
9478 ;;
9479
9480 beos*)
9481 library_names_spec='${libname}${shared_ext}'
9482 dynamic_linker="$host_os ld.so"
9483 shlibpath_var=LIBRARY_PATH
9484 ;;
9485
9486 bsdi[45]*)
9487 version_type=linux
9488 need_version=no
9489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9490 soname_spec='${libname}${release}${shared_ext}$major'
9491 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9492 shlibpath_var=LD_LIBRARY_PATH
9493 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9494 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9495 # the default ld.so.conf also contains /usr/contrib/lib and
9496 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9497 # libtool to hard-code these into programs
9498 ;;
9499
9500 cygwin* | mingw* | pw32* | cegcc*)
9501 version_type=windows
9502 shrext_cmds=".dll"
9503 need_version=no
9504 need_lib_prefix=no
9505
9506 case $GCC,$host_os in
9507 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9508 library_names_spec='$libname.dll.a'
9509 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9510 postinstall_cmds='base_file=`basename \${file}`~
9511 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9512 dldir=$destdir/`dirname \$dlpath`~
9513 test -d \$dldir || mkdir -p \$dldir~
9514 $install_prog $dir/$dlname \$dldir/$dlname~
9515 chmod a+x \$dldir/$dlname~
9516 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9517 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9518 fi'
9519 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9520 dlpath=$dir/\$dldll~
9521 $RM \$dlpath'
9522 shlibpath_overrides_runpath=yes
9523
9524 case $host_os in
9525 cygwin*)
9526 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9527 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9528 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9529 ;;
9530 mingw* | cegcc*)
9531 # MinGW DLLs use traditional 'lib' prefix
9532 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9533 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9534 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9535 # It is most probably a Windows format PATH printed by
9536 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9537 # path with ; separators, and with drive letters. We can handle the
9538 # drive letters (cygwin fileutils understands them), so leave them,
9539 # especially as we might pass files found there to a mingw objdump,
9540 # which wouldn't understand a cygwinified path. Ahh.
9541 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9542 else
9543 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9544 fi
9545 ;;
9546 pw32*)
9547 # pw32 DLLs use 'pw' prefix rather than 'lib'
9548 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9549 ;;
9550 esac
9551 ;;
9552
9553 *)
9554 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9555 ;;
9556 esac
9557 dynamic_linker='Win32 ld.exe'
9558 # FIXME: first we should search . and the directory the executable is in
9559 shlibpath_var=PATH
9560 ;;
9561
9562 darwin* | rhapsody*)
9563 dynamic_linker="$host_os dyld"
9564 version_type=darwin
9565 need_lib_prefix=no
9566 need_version=no
9567 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9568 soname_spec='${libname}${release}${major}$shared_ext'
9569 shlibpath_overrides_runpath=yes
9570 shlibpath_var=DYLD_LIBRARY_PATH
9571 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9572
9573 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9574 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9575 ;;
9576
9577 dgux*)
9578 version_type=linux
9579 need_lib_prefix=no
9580 need_version=no
9581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9582 soname_spec='${libname}${release}${shared_ext}$major'
9583 shlibpath_var=LD_LIBRARY_PATH
9584 ;;
9585
9586 freebsd1*)
9587 dynamic_linker=no
9588 ;;
9589
9590 freebsd* | dragonfly*)
9591 # DragonFly does not have aout. When/if they implement a new
9592 # versioning mechanism, adjust this.
9593 if test -x /usr/bin/objformat; then
9594 objformat=`/usr/bin/objformat`
9595 else
9596 case $host_os in
9597 freebsd[123]*) objformat=aout ;;
9598 *) objformat=elf ;;
9599 esac
9600 fi
9601 version_type=freebsd-$objformat
9602 case $version_type in
9603 freebsd-elf*)
9604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9605 need_version=no
9606 need_lib_prefix=no
9607 ;;
9608 freebsd-*)
9609 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9610 need_version=yes
9611 ;;
9612 esac
9613 shlibpath_var=LD_LIBRARY_PATH
9614 case $host_os in
9615 freebsd2*)
9616 shlibpath_overrides_runpath=yes
9617 ;;
9618 freebsd3.[01]* | freebsdelf3.[01]*)
9619 shlibpath_overrides_runpath=yes
9620 hardcode_into_libs=yes
9621 ;;
9622 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9623 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9624 shlibpath_overrides_runpath=no
9625 hardcode_into_libs=yes
9626 ;;
9627 *) # from 4.6 on, and DragonFly
9628 shlibpath_overrides_runpath=yes
9629 hardcode_into_libs=yes
9630 ;;
9631 esac
9632 ;;
9633
9634 gnu*)
9635 version_type=linux
9636 need_lib_prefix=no
9637 need_version=no
9638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9639 soname_spec='${libname}${release}${shared_ext}$major'
9640 shlibpath_var=LD_LIBRARY_PATH
9641 hardcode_into_libs=yes
9642 ;;
9643
9644 hpux9* | hpux10* | hpux11*)
9645 # Give a soname corresponding to the major version so that dld.sl refuses to
9646 # link against other versions.
9647 version_type=sunos
9648 need_lib_prefix=no
9649 need_version=no
9650 case $host_cpu in
9651 ia64*)
9652 shrext_cmds='.so'
9653 hardcode_into_libs=yes
9654 dynamic_linker="$host_os dld.so"
9655 shlibpath_var=LD_LIBRARY_PATH
9656 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9658 soname_spec='${libname}${release}${shared_ext}$major'
9659 if test "X$HPUX_IA64_MODE" = X32; then
9660 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9661 else
9662 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9663 fi
9664 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9665 ;;
9666 hppa*64*)
9667 shrext_cmds='.sl'
9668 hardcode_into_libs=yes
9669 dynamic_linker="$host_os dld.sl"
9670 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9671 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9673 soname_spec='${libname}${release}${shared_ext}$major'
9674 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9675 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9676 ;;
9677 *)
9678 shrext_cmds='.sl'
9679 dynamic_linker="$host_os dld.sl"
9680 shlibpath_var=SHLIB_PATH
9681 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9683 soname_spec='${libname}${release}${shared_ext}$major'
9684 ;;
9685 esac
9686 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9687 postinstall_cmds='chmod 555 $lib'
9688 ;;
9689
9690 interix[3-9]*)
9691 version_type=linux
9692 need_lib_prefix=no
9693 need_version=no
9694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9695 soname_spec='${libname}${release}${shared_ext}$major'
9696 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9697 shlibpath_var=LD_LIBRARY_PATH
9698 shlibpath_overrides_runpath=no
9699 hardcode_into_libs=yes
9700 ;;
9701
9702 irix5* | irix6* | nonstopux*)
9703 case $host_os in
9704 nonstopux*) version_type=nonstopux ;;
9705 *)
9706 if test "$lt_cv_prog_gnu_ld" = yes; then
9707 version_type=linux
9708 else
9709 version_type=irix
9710 fi ;;
9711 esac
9712 need_lib_prefix=no
9713 need_version=no
9714 soname_spec='${libname}${release}${shared_ext}$major'
9715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9716 case $host_os in
9717 irix5* | nonstopux*)
9718 libsuff= shlibsuff=
9719 ;;
9720 *)
9721 case $LD in # libtool.m4 will add one of these switches to LD
9722 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9723 libsuff= shlibsuff= libmagic=32-bit;;
9724 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9725 libsuff=32 shlibsuff=N32 libmagic=N32;;
9726 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9727 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9728 *) libsuff= shlibsuff= libmagic=never-match;;
9729 esac
9730 ;;
9731 esac
9732 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9733 shlibpath_overrides_runpath=no
9734 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9735 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9736 hardcode_into_libs=yes
9737 ;;
9738
9739 # No shared lib support for Linux oldld, aout, or coff.
9740 linux*oldld* | linux*aout* | linux*coff*)
9741 dynamic_linker=no
9742 ;;
9743
9744 # This must be Linux ELF.
9745 linux* | k*bsd*-gnu)
9746 version_type=linux
9747 need_lib_prefix=no
9748 need_version=no
9749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9750 soname_spec='${libname}${release}${shared_ext}$major'
9751 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9752 shlibpath_var=LD_LIBRARY_PATH
9753 shlibpath_overrides_runpath=no
9754 # Some binutils ld are patched to set DT_RUNPATH
9755 save_LDFLAGS=$LDFLAGS
9756 save_libdir=$libdir
9757 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9758 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9759 cat >conftest.$ac_ext <<_ACEOF
9760 /* confdefs.h. */
9761 _ACEOF
9762 cat confdefs.h >>conftest.$ac_ext
9763 cat >>conftest.$ac_ext <<_ACEOF
9764 /* end confdefs.h. */
9765
9766 int
9767 main ()
9768 {
9769
9770 ;
9771 return 0;
9772 }
9773 _ACEOF
9774 rm -f conftest.$ac_objext conftest$ac_exeext
9775 if { (ac_try="$ac_link"
9776 case "(($ac_try" in
9777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9778 *) ac_try_echo=$ac_try;;
9779 esac
9780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9781 $as_echo "$ac_try_echo") >&5
9782 (eval "$ac_link") 2>conftest.er1
9783 ac_status=$?
9784 grep -v '^ *+' conftest.er1 >conftest.err
9785 rm -f conftest.er1
9786 cat conftest.err >&5
9787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); } && {
9789 test -z "$ac_c_werror_flag" ||
9790 test ! -s conftest.err
9791 } && test -s conftest$ac_exeext && {
9792 test "$cross_compiling" = yes ||
9793 $as_test_x conftest$ac_exeext
9794 }; then
9795 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9796 shlibpath_overrides_runpath=yes
9797 fi
9798
9799 else
9800 $as_echo "$as_me: failed program was:" >&5
9801 sed 's/^/| /' conftest.$ac_ext >&5
9802
9803
9804 fi
9805
9806 rm -rf conftest.dSYM
9807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9808 conftest$ac_exeext conftest.$ac_ext
9809 LDFLAGS=$save_LDFLAGS
9810 libdir=$save_libdir
9811
9812 # This implies no fast_install, which is unacceptable.
9813 # Some rework will be needed to allow for fast_install
9814 # before this can be enabled.
9815 hardcode_into_libs=yes
9816
9817 # Add ABI-specific directories to the system library path.
9818 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9819
9820 # Append ld.so.conf contents to the search path
9821 if test -f /etc/ld.so.conf; then
9822 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' ' '`
9823 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9824 fi
9825
9826 # We used to test for /lib/ld.so.1 and disable shared libraries on
9827 # powerpc, because MkLinux only supported shared libraries with the
9828 # GNU dynamic linker. Since this was broken with cross compilers,
9829 # most powerpc-linux boxes support dynamic linking these days and
9830 # people can always --disable-shared, the test was removed, and we
9831 # assume the GNU/Linux dynamic linker is in use.
9832 dynamic_linker='GNU/Linux ld.so'
9833 ;;
9834
9835 netbsd*)
9836 version_type=sunos
9837 need_lib_prefix=no
9838 need_version=no
9839 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9841 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9842 dynamic_linker='NetBSD (a.out) ld.so'
9843 else
9844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9845 soname_spec='${libname}${release}${shared_ext}$major'
9846 dynamic_linker='NetBSD ld.elf_so'
9847 fi
9848 shlibpath_var=LD_LIBRARY_PATH
9849 shlibpath_overrides_runpath=yes
9850 hardcode_into_libs=yes
9851 ;;
9852
9853 newsos6)
9854 version_type=linux
9855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9856 shlibpath_var=LD_LIBRARY_PATH
9857 shlibpath_overrides_runpath=yes
9858 ;;
9859
9860 *nto* | *qnx*)
9861 version_type=qnx
9862 need_lib_prefix=no
9863 need_version=no
9864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9865 soname_spec='${libname}${release}${shared_ext}$major'
9866 shlibpath_var=LD_LIBRARY_PATH
9867 shlibpath_overrides_runpath=no
9868 hardcode_into_libs=yes
9869 dynamic_linker='ldqnx.so'
9870 ;;
9871
9872 openbsd*)
9873 version_type=sunos
9874 sys_lib_dlsearch_path_spec="/usr/lib"
9875 need_lib_prefix=no
9876 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9877 case $host_os in
9878 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9879 *) need_version=no ;;
9880 esac
9881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9882 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9883 shlibpath_var=LD_LIBRARY_PATH
9884 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9885 case $host_os in
9886 openbsd2.[89] | openbsd2.[89].*)
9887 shlibpath_overrides_runpath=no
9888 ;;
9889 *)
9890 shlibpath_overrides_runpath=yes
9891 ;;
9892 esac
9893 else
9894 shlibpath_overrides_runpath=yes
9895 fi
9896 ;;
9897
9898 os2*)
9899 libname_spec='$name'
9900 shrext_cmds=".dll"
9901 need_lib_prefix=no
9902 library_names_spec='$libname${shared_ext} $libname.a'
9903 dynamic_linker='OS/2 ld.exe'
9904 shlibpath_var=LIBPATH
9905 ;;
9906
9907 osf3* | osf4* | osf5*)
9908 version_type=osf
9909 need_lib_prefix=no
9910 need_version=no
9911 soname_spec='${libname}${release}${shared_ext}$major'
9912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9913 shlibpath_var=LD_LIBRARY_PATH
9914 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9915 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9916 ;;
9917
9918 rdos*)
9919 dynamic_linker=no
9920 ;;
9921
9922 solaris*)
9923 version_type=linux
9924 need_lib_prefix=no
9925 need_version=no
9926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9927 soname_spec='${libname}${release}${shared_ext}$major'
9928 shlibpath_var=LD_LIBRARY_PATH
9929 shlibpath_overrides_runpath=yes
9930 hardcode_into_libs=yes
9931 # ldd complains unless libraries are executable
9932 postinstall_cmds='chmod +x $lib'
9933 ;;
9934
9935 sunos4*)
9936 version_type=sunos
9937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9938 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9939 shlibpath_var=LD_LIBRARY_PATH
9940 shlibpath_overrides_runpath=yes
9941 if test "$with_gnu_ld" = yes; then
9942 need_lib_prefix=no
9943 fi
9944 need_version=yes
9945 ;;
9946
9947 sysv4 | sysv4.3*)
9948 version_type=linux
9949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9950 soname_spec='${libname}${release}${shared_ext}$major'
9951 shlibpath_var=LD_LIBRARY_PATH
9952 case $host_vendor in
9953 sni)
9954 shlibpath_overrides_runpath=no
9955 need_lib_prefix=no
9956 runpath_var=LD_RUN_PATH
9957 ;;
9958 siemens)
9959 need_lib_prefix=no
9960 ;;
9961 motorola)
9962 need_lib_prefix=no
9963 need_version=no
9964 shlibpath_overrides_runpath=no
9965 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9966 ;;
9967 esac
9968 ;;
9969
9970 sysv4*MP*)
9971 if test -d /usr/nec ;then
9972 version_type=linux
9973 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9974 soname_spec='$libname${shared_ext}.$major'
9975 shlibpath_var=LD_LIBRARY_PATH
9976 fi
9977 ;;
9978
9979 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9980 version_type=freebsd-elf
9981 need_lib_prefix=no
9982 need_version=no
9983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9984 soname_spec='${libname}${release}${shared_ext}$major'
9985 shlibpath_var=LD_LIBRARY_PATH
9986 shlibpath_overrides_runpath=yes
9987 hardcode_into_libs=yes
9988 if test "$with_gnu_ld" = yes; then
9989 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9990 else
9991 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9992 case $host_os in
9993 sco3.2v5*)
9994 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9995 ;;
9996 esac
9997 fi
9998 sys_lib_dlsearch_path_spec='/usr/lib'
9999 ;;
10000
10001 tpf*)
10002 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10003 version_type=linux
10004 need_lib_prefix=no
10005 need_version=no
10006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10007 shlibpath_var=LD_LIBRARY_PATH
10008 shlibpath_overrides_runpath=no
10009 hardcode_into_libs=yes
10010 ;;
10011
10012 uts4*)
10013 version_type=linux
10014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10015 soname_spec='${libname}${release}${shared_ext}$major'
10016 shlibpath_var=LD_LIBRARY_PATH
10017 ;;
10018
10019 *)
10020 dynamic_linker=no
10021 ;;
10022 esac
10023 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10024 $as_echo "$dynamic_linker" >&6; }
10025 test "$dynamic_linker" = no && can_build_shared=no
10026
10027 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10028 if test "$GCC" = yes; then
10029 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10030 fi
10031
10032 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10033 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10034 fi
10035 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10036 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10037 fi
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
10125 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10126 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10127 hardcode_action=
10128 if test -n "$hardcode_libdir_flag_spec" ||
10129 test -n "$runpath_var" ||
10130 test "X$hardcode_automatic" = "Xyes" ; then
10131
10132 # We can hardcode non-existent directories.
10133 if test "$hardcode_direct" != no &&
10134 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10135 # have to relink, otherwise we might link with an installed library
10136 # when we should be linking with a yet-to-be-installed one
10137 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10138 test "$hardcode_minus_L" != no; then
10139 # Linking always hardcodes the temporary library directory.
10140 hardcode_action=relink
10141 else
10142 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10143 hardcode_action=immediate
10144 fi
10145 else
10146 # We cannot hardcode anything, or else we can only hardcode existing
10147 # directories.
10148 hardcode_action=unsupported
10149 fi
10150 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10151 $as_echo "$hardcode_action" >&6; }
10152
10153 if test "$hardcode_action" = relink ||
10154 test "$inherit_rpath" = yes; then
10155 # Fast installation is not supported
10156 enable_fast_install=no
10157 elif test "$shlibpath_overrides_runpath" = yes ||
10158 test "$enable_shared" = no; then
10159 # Fast installation is not necessary
10160 enable_fast_install=needless
10161 fi
10162
10163
10164
10165
10166
10167
10168 if test "x$enable_dlopen" != xyes; then
10169 enable_dlopen=unknown
10170 enable_dlopen_self=unknown
10171 enable_dlopen_self_static=unknown
10172 else
10173 lt_cv_dlopen=no
10174 lt_cv_dlopen_libs=
10175
10176 case $host_os in
10177 beos*)
10178 lt_cv_dlopen="load_add_on"
10179 lt_cv_dlopen_libs=
10180 lt_cv_dlopen_self=yes
10181 ;;
10182
10183 mingw* | pw32* | cegcc*)
10184 lt_cv_dlopen="LoadLibrary"
10185 lt_cv_dlopen_libs=
10186 ;;
10187
10188 cygwin*)
10189 lt_cv_dlopen="dlopen"
10190 lt_cv_dlopen_libs=
10191 ;;
10192
10193 darwin*)
10194 # if libdl is installed we need to link against it
10195 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10196 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10197 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10198 $as_echo_n "(cached) " >&6
10199 else
10200 ac_check_lib_save_LIBS=$LIBS
10201 LIBS="-ldl $LIBS"
10202 cat >conftest.$ac_ext <<_ACEOF
10203 /* confdefs.h. */
10204 _ACEOF
10205 cat confdefs.h >>conftest.$ac_ext
10206 cat >>conftest.$ac_ext <<_ACEOF
10207 /* end confdefs.h. */
10208
10209 /* Override any GCC internal prototype to avoid an error.
10210 Use char because int might match the return type of a GCC
10211 builtin and then its argument prototype would still apply. */
10212 #ifdef __cplusplus
10213 extern "C"
10214 #endif
10215 char dlopen ();
10216 int
10217 main ()
10218 {
10219 return dlopen ();
10220 ;
10221 return 0;
10222 }
10223 _ACEOF
10224 rm -f conftest.$ac_objext conftest$ac_exeext
10225 if { (ac_try="$ac_link"
10226 case "(($ac_try" in
10227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10228 *) ac_try_echo=$ac_try;;
10229 esac
10230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10231 $as_echo "$ac_try_echo") >&5
10232 (eval "$ac_link") 2>conftest.er1
10233 ac_status=$?
10234 grep -v '^ *+' conftest.er1 >conftest.err
10235 rm -f conftest.er1
10236 cat conftest.err >&5
10237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238 (exit $ac_status); } && {
10239 test -z "$ac_c_werror_flag" ||
10240 test ! -s conftest.err
10241 } && test -s conftest$ac_exeext && {
10242 test "$cross_compiling" = yes ||
10243 $as_test_x conftest$ac_exeext
10244 }; then
10245 ac_cv_lib_dl_dlopen=yes
10246 else
10247 $as_echo "$as_me: failed program was:" >&5
10248 sed 's/^/| /' conftest.$ac_ext >&5
10249
10250 ac_cv_lib_dl_dlopen=no
10251 fi
10252
10253 rm -rf conftest.dSYM
10254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10255 conftest$ac_exeext conftest.$ac_ext
10256 LIBS=$ac_check_lib_save_LIBS
10257 fi
10258 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10259 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10260 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10261 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10262 else
10263
10264 lt_cv_dlopen="dyld"
10265 lt_cv_dlopen_libs=
10266 lt_cv_dlopen_self=yes
10267
10268 fi
10269
10270 ;;
10271
10272 *)
10273 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10274 $as_echo_n "checking for shl_load... " >&6; }
10275 if test "${ac_cv_func_shl_load+set}" = set; then
10276 $as_echo_n "(cached) " >&6
10277 else
10278 cat >conftest.$ac_ext <<_ACEOF
10279 /* confdefs.h. */
10280 _ACEOF
10281 cat confdefs.h >>conftest.$ac_ext
10282 cat >>conftest.$ac_ext <<_ACEOF
10283 /* end confdefs.h. */
10284 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10286 #define shl_load innocuous_shl_load
10287
10288 /* System header to define __stub macros and hopefully few prototypes,
10289 which can conflict with char shl_load (); below.
10290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10291 <limits.h> exists even on freestanding compilers. */
10292
10293 #ifdef __STDC__
10294 # include <limits.h>
10295 #else
10296 # include <assert.h>
10297 #endif
10298
10299 #undef shl_load
10300
10301 /* Override any GCC internal prototype to avoid an error.
10302 Use char because int might match the return type of a GCC
10303 builtin and then its argument prototype would still apply. */
10304 #ifdef __cplusplus
10305 extern "C"
10306 #endif
10307 char shl_load ();
10308 /* The GNU C library defines this for functions which it implements
10309 to always fail with ENOSYS. Some functions are actually named
10310 something starting with __ and the normal name is an alias. */
10311 #if defined __stub_shl_load || defined __stub___shl_load
10312 choke me
10313 #endif
10314
10315 int
10316 main ()
10317 {
10318 return shl_load ();
10319 ;
10320 return 0;
10321 }
10322 _ACEOF
10323 rm -f conftest.$ac_objext conftest$ac_exeext
10324 if { (ac_try="$ac_link"
10325 case "(($ac_try" in
10326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10327 *) ac_try_echo=$ac_try;;
10328 esac
10329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10330 $as_echo "$ac_try_echo") >&5
10331 (eval "$ac_link") 2>conftest.er1
10332 ac_status=$?
10333 grep -v '^ *+' conftest.er1 >conftest.err
10334 rm -f conftest.er1
10335 cat conftest.err >&5
10336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); } && {
10338 test -z "$ac_c_werror_flag" ||
10339 test ! -s conftest.err
10340 } && test -s conftest$ac_exeext && {
10341 test "$cross_compiling" = yes ||
10342 $as_test_x conftest$ac_exeext
10343 }; then
10344 ac_cv_func_shl_load=yes
10345 else
10346 $as_echo "$as_me: failed program was:" >&5
10347 sed 's/^/| /' conftest.$ac_ext >&5
10348
10349 ac_cv_func_shl_load=no
10350 fi
10351
10352 rm -rf conftest.dSYM
10353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10354 conftest$ac_exeext conftest.$ac_ext
10355 fi
10356 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10357 $as_echo "$ac_cv_func_shl_load" >&6; }
10358 if test "x$ac_cv_func_shl_load" = x""yes; then
10359 lt_cv_dlopen="shl_load"
10360 else
10361 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10362 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10363 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10364 $as_echo_n "(cached) " >&6
10365 else
10366 ac_check_lib_save_LIBS=$LIBS
10367 LIBS="-ldld $LIBS"
10368 cat >conftest.$ac_ext <<_ACEOF
10369 /* confdefs.h. */
10370 _ACEOF
10371 cat confdefs.h >>conftest.$ac_ext
10372 cat >>conftest.$ac_ext <<_ACEOF
10373 /* end confdefs.h. */
10374
10375 /* Override any GCC internal prototype to avoid an error.
10376 Use char because int might match the return type of a GCC
10377 builtin and then its argument prototype would still apply. */
10378 #ifdef __cplusplus
10379 extern "C"
10380 #endif
10381 char shl_load ();
10382 int
10383 main ()
10384 {
10385 return shl_load ();
10386 ;
10387 return 0;
10388 }
10389 _ACEOF
10390 rm -f conftest.$ac_objext conftest$ac_exeext
10391 if { (ac_try="$ac_link"
10392 case "(($ac_try" in
10393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10394 *) ac_try_echo=$ac_try;;
10395 esac
10396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10397 $as_echo "$ac_try_echo") >&5
10398 (eval "$ac_link") 2>conftest.er1
10399 ac_status=$?
10400 grep -v '^ *+' conftest.er1 >conftest.err
10401 rm -f conftest.er1
10402 cat conftest.err >&5
10403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } && {
10405 test -z "$ac_c_werror_flag" ||
10406 test ! -s conftest.err
10407 } && test -s conftest$ac_exeext && {
10408 test "$cross_compiling" = yes ||
10409 $as_test_x conftest$ac_exeext
10410 }; then
10411 ac_cv_lib_dld_shl_load=yes
10412 else
10413 $as_echo "$as_me: failed program was:" >&5
10414 sed 's/^/| /' conftest.$ac_ext >&5
10415
10416 ac_cv_lib_dld_shl_load=no
10417 fi
10418
10419 rm -rf conftest.dSYM
10420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10421 conftest$ac_exeext conftest.$ac_ext
10422 LIBS=$ac_check_lib_save_LIBS
10423 fi
10424 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10425 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10426 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10427 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10428 else
10429 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10430 $as_echo_n "checking for dlopen... " >&6; }
10431 if test "${ac_cv_func_dlopen+set}" = set; then
10432 $as_echo_n "(cached) " >&6
10433 else
10434 cat >conftest.$ac_ext <<_ACEOF
10435 /* confdefs.h. */
10436 _ACEOF
10437 cat confdefs.h >>conftest.$ac_ext
10438 cat >>conftest.$ac_ext <<_ACEOF
10439 /* end confdefs.h. */
10440 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10442 #define dlopen innocuous_dlopen
10443
10444 /* System header to define __stub macros and hopefully few prototypes,
10445 which can conflict with char dlopen (); below.
10446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10447 <limits.h> exists even on freestanding compilers. */
10448
10449 #ifdef __STDC__
10450 # include <limits.h>
10451 #else
10452 # include <assert.h>
10453 #endif
10454
10455 #undef dlopen
10456
10457 /* Override any GCC internal prototype to avoid an error.
10458 Use char because int might match the return type of a GCC
10459 builtin and then its argument prototype would still apply. */
10460 #ifdef __cplusplus
10461 extern "C"
10462 #endif
10463 char dlopen ();
10464 /* The GNU C library defines this for functions which it implements
10465 to always fail with ENOSYS. Some functions are actually named
10466 something starting with __ and the normal name is an alias. */
10467 #if defined __stub_dlopen || defined __stub___dlopen
10468 choke me
10469 #endif
10470
10471 int
10472 main ()
10473 {
10474 return dlopen ();
10475 ;
10476 return 0;
10477 }
10478 _ACEOF
10479 rm -f conftest.$ac_objext conftest$ac_exeext
10480 if { (ac_try="$ac_link"
10481 case "(($ac_try" in
10482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10483 *) ac_try_echo=$ac_try;;
10484 esac
10485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10486 $as_echo "$ac_try_echo") >&5
10487 (eval "$ac_link") 2>conftest.er1
10488 ac_status=$?
10489 grep -v '^ *+' conftest.er1 >conftest.err
10490 rm -f conftest.er1
10491 cat conftest.err >&5
10492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); } && {
10494 test -z "$ac_c_werror_flag" ||
10495 test ! -s conftest.err
10496 } && test -s conftest$ac_exeext && {
10497 test "$cross_compiling" = yes ||
10498 $as_test_x conftest$ac_exeext
10499 }; then
10500 ac_cv_func_dlopen=yes
10501 else
10502 $as_echo "$as_me: failed program was:" >&5
10503 sed 's/^/| /' conftest.$ac_ext >&5
10504
10505 ac_cv_func_dlopen=no
10506 fi
10507
10508 rm -rf conftest.dSYM
10509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10510 conftest$ac_exeext conftest.$ac_ext
10511 fi
10512 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10513 $as_echo "$ac_cv_func_dlopen" >&6; }
10514 if test "x$ac_cv_func_dlopen" = x""yes; then
10515 lt_cv_dlopen="dlopen"
10516 else
10517 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10518 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10519 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10520 $as_echo_n "(cached) " >&6
10521 else
10522 ac_check_lib_save_LIBS=$LIBS
10523 LIBS="-ldl $LIBS"
10524 cat >conftest.$ac_ext <<_ACEOF
10525 /* confdefs.h. */
10526 _ACEOF
10527 cat confdefs.h >>conftest.$ac_ext
10528 cat >>conftest.$ac_ext <<_ACEOF
10529 /* end confdefs.h. */
10530
10531 /* Override any GCC internal prototype to avoid an error.
10532 Use char because int might match the return type of a GCC
10533 builtin and then its argument prototype would still apply. */
10534 #ifdef __cplusplus
10535 extern "C"
10536 #endif
10537 char dlopen ();
10538 int
10539 main ()
10540 {
10541 return dlopen ();
10542 ;
10543 return 0;
10544 }
10545 _ACEOF
10546 rm -f conftest.$ac_objext conftest$ac_exeext
10547 if { (ac_try="$ac_link"
10548 case "(($ac_try" in
10549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10550 *) ac_try_echo=$ac_try;;
10551 esac
10552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10553 $as_echo "$ac_try_echo") >&5
10554 (eval "$ac_link") 2>conftest.er1
10555 ac_status=$?
10556 grep -v '^ *+' conftest.er1 >conftest.err
10557 rm -f conftest.er1
10558 cat conftest.err >&5
10559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); } && {
10561 test -z "$ac_c_werror_flag" ||
10562 test ! -s conftest.err
10563 } && test -s conftest$ac_exeext && {
10564 test "$cross_compiling" = yes ||
10565 $as_test_x conftest$ac_exeext
10566 }; then
10567 ac_cv_lib_dl_dlopen=yes
10568 else
10569 $as_echo "$as_me: failed program was:" >&5
10570 sed 's/^/| /' conftest.$ac_ext >&5
10571
10572 ac_cv_lib_dl_dlopen=no
10573 fi
10574
10575 rm -rf conftest.dSYM
10576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10577 conftest$ac_exeext conftest.$ac_ext
10578 LIBS=$ac_check_lib_save_LIBS
10579 fi
10580 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10581 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10582 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10583 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10584 else
10585 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10586 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10587 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10588 $as_echo_n "(cached) " >&6
10589 else
10590 ac_check_lib_save_LIBS=$LIBS
10591 LIBS="-lsvld $LIBS"
10592 cat >conftest.$ac_ext <<_ACEOF
10593 /* confdefs.h. */
10594 _ACEOF
10595 cat confdefs.h >>conftest.$ac_ext
10596 cat >>conftest.$ac_ext <<_ACEOF
10597 /* end confdefs.h. */
10598
10599 /* Override any GCC internal prototype to avoid an error.
10600 Use char because int might match the return type of a GCC
10601 builtin and then its argument prototype would still apply. */
10602 #ifdef __cplusplus
10603 extern "C"
10604 #endif
10605 char dlopen ();
10606 int
10607 main ()
10608 {
10609 return dlopen ();
10610 ;
10611 return 0;
10612 }
10613 _ACEOF
10614 rm -f conftest.$ac_objext conftest$ac_exeext
10615 if { (ac_try="$ac_link"
10616 case "(($ac_try" in
10617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10618 *) ac_try_echo=$ac_try;;
10619 esac
10620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10621 $as_echo "$ac_try_echo") >&5
10622 (eval "$ac_link") 2>conftest.er1
10623 ac_status=$?
10624 grep -v '^ *+' conftest.er1 >conftest.err
10625 rm -f conftest.er1
10626 cat conftest.err >&5
10627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); } && {
10629 test -z "$ac_c_werror_flag" ||
10630 test ! -s conftest.err
10631 } && test -s conftest$ac_exeext && {
10632 test "$cross_compiling" = yes ||
10633 $as_test_x conftest$ac_exeext
10634 }; then
10635 ac_cv_lib_svld_dlopen=yes
10636 else
10637 $as_echo "$as_me: failed program was:" >&5
10638 sed 's/^/| /' conftest.$ac_ext >&5
10639
10640 ac_cv_lib_svld_dlopen=no
10641 fi
10642
10643 rm -rf conftest.dSYM
10644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10645 conftest$ac_exeext conftest.$ac_ext
10646 LIBS=$ac_check_lib_save_LIBS
10647 fi
10648 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10649 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10650 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10651 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10652 else
10653 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10654 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10655 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10656 $as_echo_n "(cached) " >&6
10657 else
10658 ac_check_lib_save_LIBS=$LIBS
10659 LIBS="-ldld $LIBS"
10660 cat >conftest.$ac_ext <<_ACEOF
10661 /* confdefs.h. */
10662 _ACEOF
10663 cat confdefs.h >>conftest.$ac_ext
10664 cat >>conftest.$ac_ext <<_ACEOF
10665 /* end confdefs.h. */
10666
10667 /* Override any GCC internal prototype to avoid an error.
10668 Use char because int might match the return type of a GCC
10669 builtin and then its argument prototype would still apply. */
10670 #ifdef __cplusplus
10671 extern "C"
10672 #endif
10673 char dld_link ();
10674 int
10675 main ()
10676 {
10677 return dld_link ();
10678 ;
10679 return 0;
10680 }
10681 _ACEOF
10682 rm -f conftest.$ac_objext conftest$ac_exeext
10683 if { (ac_try="$ac_link"
10684 case "(($ac_try" in
10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686 *) ac_try_echo=$ac_try;;
10687 esac
10688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10689 $as_echo "$ac_try_echo") >&5
10690 (eval "$ac_link") 2>conftest.er1
10691 ac_status=$?
10692 grep -v '^ *+' conftest.er1 >conftest.err
10693 rm -f conftest.er1
10694 cat conftest.err >&5
10695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); } && {
10697 test -z "$ac_c_werror_flag" ||
10698 test ! -s conftest.err
10699 } && test -s conftest$ac_exeext && {
10700 test "$cross_compiling" = yes ||
10701 $as_test_x conftest$ac_exeext
10702 }; then
10703 ac_cv_lib_dld_dld_link=yes
10704 else
10705 $as_echo "$as_me: failed program was:" >&5
10706 sed 's/^/| /' conftest.$ac_ext >&5
10707
10708 ac_cv_lib_dld_dld_link=no
10709 fi
10710
10711 rm -rf conftest.dSYM
10712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10713 conftest$ac_exeext conftest.$ac_ext
10714 LIBS=$ac_check_lib_save_LIBS
10715 fi
10716 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10717 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10718 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10719 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10720 fi
10721
10722
10723 fi
10724
10725
10726 fi
10727
10728
10729 fi
10730
10731
10732 fi
10733
10734
10735 fi
10736
10737 ;;
10738 esac
10739
10740 if test "x$lt_cv_dlopen" != xno; then
10741 enable_dlopen=yes
10742 else
10743 enable_dlopen=no
10744 fi
10745
10746 case $lt_cv_dlopen in
10747 dlopen)
10748 save_CPPFLAGS="$CPPFLAGS"
10749 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10750
10751 save_LDFLAGS="$LDFLAGS"
10752 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10753
10754 save_LIBS="$LIBS"
10755 LIBS="$lt_cv_dlopen_libs $LIBS"
10756
10757 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10758 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10759 if test "${lt_cv_dlopen_self+set}" = set; then
10760 $as_echo_n "(cached) " >&6
10761 else
10762 if test "$cross_compiling" = yes; then :
10763 lt_cv_dlopen_self=cross
10764 else
10765 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10766 lt_status=$lt_dlunknown
10767 cat > conftest.$ac_ext <<_LT_EOF
10768 #line 10768 "configure"
10769 #include "confdefs.h"
10770
10771 #if HAVE_DLFCN_H
10772 #include <dlfcn.h>
10773 #endif
10774
10775 #include <stdio.h>
10776
10777 #ifdef RTLD_GLOBAL
10778 # define LT_DLGLOBAL RTLD_GLOBAL
10779 #else
10780 # ifdef DL_GLOBAL
10781 # define LT_DLGLOBAL DL_GLOBAL
10782 # else
10783 # define LT_DLGLOBAL 0
10784 # endif
10785 #endif
10786
10787 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10788 find out it does not work in some platform. */
10789 #ifndef LT_DLLAZY_OR_NOW
10790 # ifdef RTLD_LAZY
10791 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10792 # else
10793 # ifdef DL_LAZY
10794 # define LT_DLLAZY_OR_NOW DL_LAZY
10795 # else
10796 # ifdef RTLD_NOW
10797 # define LT_DLLAZY_OR_NOW RTLD_NOW
10798 # else
10799 # ifdef DL_NOW
10800 # define LT_DLLAZY_OR_NOW DL_NOW
10801 # else
10802 # define LT_DLLAZY_OR_NOW 0
10803 # endif
10804 # endif
10805 # endif
10806 # endif
10807 #endif
10808
10809 void fnord() { int i=42;}
10810 int main ()
10811 {
10812 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10813 int status = $lt_dlunknown;
10814
10815 if (self)
10816 {
10817 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10818 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10819 /* dlclose (self); */
10820 }
10821 else
10822 puts (dlerror ());
10823
10824 return status;
10825 }
10826 _LT_EOF
10827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10828 (eval $ac_link) 2>&5
10829 ac_status=$?
10830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10832 (./conftest; exit; ) >&5 2>/dev/null
10833 lt_status=$?
10834 case x$lt_status in
10835 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10836 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10837 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10838 esac
10839 else :
10840 # compilation failed
10841 lt_cv_dlopen_self=no
10842 fi
10843 fi
10844 rm -fr conftest*
10845
10846
10847 fi
10848 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10849 $as_echo "$lt_cv_dlopen_self" >&6; }
10850
10851 if test "x$lt_cv_dlopen_self" = xyes; then
10852 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10853 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10854 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10855 if test "${lt_cv_dlopen_self_static+set}" = set; then
10856 $as_echo_n "(cached) " >&6
10857 else
10858 if test "$cross_compiling" = yes; then :
10859 lt_cv_dlopen_self_static=cross
10860 else
10861 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10862 lt_status=$lt_dlunknown
10863 cat > conftest.$ac_ext <<_LT_EOF
10864 #line 10864 "configure"
10865 #include "confdefs.h"
10866
10867 #if HAVE_DLFCN_H
10868 #include <dlfcn.h>
10869 #endif
10870
10871 #include <stdio.h>
10872
10873 #ifdef RTLD_GLOBAL
10874 # define LT_DLGLOBAL RTLD_GLOBAL
10875 #else
10876 # ifdef DL_GLOBAL
10877 # define LT_DLGLOBAL DL_GLOBAL
10878 # else
10879 # define LT_DLGLOBAL 0
10880 # endif
10881 #endif
10882
10883 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10884 find out it does not work in some platform. */
10885 #ifndef LT_DLLAZY_OR_NOW
10886 # ifdef RTLD_LAZY
10887 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10888 # else
10889 # ifdef DL_LAZY
10890 # define LT_DLLAZY_OR_NOW DL_LAZY
10891 # else
10892 # ifdef RTLD_NOW
10893 # define LT_DLLAZY_OR_NOW RTLD_NOW
10894 # else
10895 # ifdef DL_NOW
10896 # define LT_DLLAZY_OR_NOW DL_NOW
10897 # else
10898 # define LT_DLLAZY_OR_NOW 0
10899 # endif
10900 # endif
10901 # endif
10902 # endif
10903 #endif
10904
10905 void fnord() { int i=42;}
10906 int main ()
10907 {
10908 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10909 int status = $lt_dlunknown;
10910
10911 if (self)
10912 {
10913 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10914 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10915 /* dlclose (self); */
10916 }
10917 else
10918 puts (dlerror ());
10919
10920 return status;
10921 }
10922 _LT_EOF
10923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10924 (eval $ac_link) 2>&5
10925 ac_status=$?
10926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10928 (./conftest; exit; ) >&5 2>/dev/null
10929 lt_status=$?
10930 case x$lt_status in
10931 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10932 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10933 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10934 esac
10935 else :
10936 # compilation failed
10937 lt_cv_dlopen_self_static=no
10938 fi
10939 fi
10940 rm -fr conftest*
10941
10942
10943 fi
10944 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10945 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10946 fi
10947
10948 CPPFLAGS="$save_CPPFLAGS"
10949 LDFLAGS="$save_LDFLAGS"
10950 LIBS="$save_LIBS"
10951 ;;
10952 esac
10953
10954 case $lt_cv_dlopen_self in
10955 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10956 *) enable_dlopen_self=unknown ;;
10957 esac
10958
10959 case $lt_cv_dlopen_self_static in
10960 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10961 *) enable_dlopen_self_static=unknown ;;
10962 esac
10963 fi
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981 striplib=
10982 old_striplib=
10983 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10984 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10985 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10986 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10987 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10988 { $as_echo "$as_me:$LINENO: result: yes" >&5
10989 $as_echo "yes" >&6; }
10990 else
10991 # FIXME - insert some real tests, host_os isn't really good enough
10992 case $host_os in
10993 darwin*)
10994 if test -n "$STRIP" ; then
10995 striplib="$STRIP -x"
10996 old_striplib="$STRIP -S"
10997 { $as_echo "$as_me:$LINENO: result: yes" >&5
10998 $as_echo "yes" >&6; }
10999 else
11000 { $as_echo "$as_me:$LINENO: result: no" >&5
11001 $as_echo "no" >&6; }
11002 fi
11003 ;;
11004 *)
11005 { $as_echo "$as_me:$LINENO: result: no" >&5
11006 $as_echo "no" >&6; }
11007 ;;
11008 esac
11009 fi
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022 # Report which library types will actually be built
11023 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11024 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11025 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11026 $as_echo "$can_build_shared" >&6; }
11027
11028 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11029 $as_echo_n "checking whether to build shared libraries... " >&6; }
11030 test "$can_build_shared" = "no" && enable_shared=no
11031
11032 # On AIX, shared libraries and static libraries use the same namespace, and
11033 # are all built from PIC.
11034 case $host_os in
11035 aix3*)
11036 test "$enable_shared" = yes && enable_static=no
11037 if test -n "$RANLIB"; then
11038 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11039 postinstall_cmds='$RANLIB $lib'
11040 fi
11041 ;;
11042
11043 aix[4-9]*)
11044 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11045 test "$enable_shared" = yes && enable_static=no
11046 fi
11047 ;;
11048 esac
11049 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11050 $as_echo "$enable_shared" >&6; }
11051
11052 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11053 $as_echo_n "checking whether to build static libraries... " >&6; }
11054 # Make sure either enable_shared or enable_static is yes.
11055 test "$enable_shared" = yes || enable_static=yes
11056 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11057 $as_echo "$enable_static" >&6; }
11058
11059
11060
11061
11062 fi
11063 ac_ext=c
11064 ac_cpp='$CPP $CPPFLAGS'
11065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11068
11069 CC="$lt_save_CC"
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083 ac_config_commands="$ac_config_commands libtool"
11084
11085
11086
11087
11088 # Only expand once:
11089
11090
11091 ac_ext=c
11092 ac_cpp='$CPP $CPPFLAGS'
11093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11096 if test -n "$ac_tool_prefix"; then
11097 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11098 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11099 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11100 $as_echo_n "checking for $ac_word... " >&6; }
11101 if test "${ac_cv_prog_CC+set}" = set; then
11102 $as_echo_n "(cached) " >&6
11103 else
11104 if test -n "$CC"; then
11105 ac_cv_prog_CC="$CC" # Let the user override the test.
11106 else
11107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11108 for as_dir in $PATH
11109 do
11110 IFS=$as_save_IFS
11111 test -z "$as_dir" && as_dir=.
11112 for ac_exec_ext in '' $ac_executable_extensions; do
11113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11114 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11115 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11116 break 2
11117 fi
11118 done
11119 done
11120 IFS=$as_save_IFS
11121
11122 fi
11123 fi
11124 CC=$ac_cv_prog_CC
11125 if test -n "$CC"; then
11126 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11127 $as_echo "$CC" >&6; }
11128 else
11129 { $as_echo "$as_me:$LINENO: result: no" >&5
11130 $as_echo "no" >&6; }
11131 fi
11132
11133
11134 fi
11135 if test -z "$ac_cv_prog_CC"; then
11136 ac_ct_CC=$CC
11137 # Extract the first word of "gcc", so it can be a program name with args.
11138 set dummy gcc; ac_word=$2
11139 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11140 $as_echo_n "checking for $ac_word... " >&6; }
11141 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11142 $as_echo_n "(cached) " >&6
11143 else
11144 if test -n "$ac_ct_CC"; then
11145 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11146 else
11147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11148 for as_dir in $PATH
11149 do
11150 IFS=$as_save_IFS
11151 test -z "$as_dir" && as_dir=.
11152 for ac_exec_ext in '' $ac_executable_extensions; do
11153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11154 ac_cv_prog_ac_ct_CC="gcc"
11155 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11156 break 2
11157 fi
11158 done
11159 done
11160 IFS=$as_save_IFS
11161
11162 fi
11163 fi
11164 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11165 if test -n "$ac_ct_CC"; then
11166 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11167 $as_echo "$ac_ct_CC" >&6; }
11168 else
11169 { $as_echo "$as_me:$LINENO: result: no" >&5
11170 $as_echo "no" >&6; }
11171 fi
11172
11173 if test "x$ac_ct_CC" = x; then
11174 CC=""
11175 else
11176 case $cross_compiling:$ac_tool_warned in
11177 yes:)
11178 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11180 ac_tool_warned=yes ;;
11181 esac
11182 CC=$ac_ct_CC
11183 fi
11184 else
11185 CC="$ac_cv_prog_CC"
11186 fi
11187
11188 if test -z "$CC"; then
11189 if test -n "$ac_tool_prefix"; then
11190 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11191 set dummy ${ac_tool_prefix}cc; ac_word=$2
11192 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11193 $as_echo_n "checking for $ac_word... " >&6; }
11194 if test "${ac_cv_prog_CC+set}" = set; then
11195 $as_echo_n "(cached) " >&6
11196 else
11197 if test -n "$CC"; then
11198 ac_cv_prog_CC="$CC" # Let the user override the test.
11199 else
11200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11201 for as_dir in $PATH
11202 do
11203 IFS=$as_save_IFS
11204 test -z "$as_dir" && as_dir=.
11205 for ac_exec_ext in '' $ac_executable_extensions; do
11206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11207 ac_cv_prog_CC="${ac_tool_prefix}cc"
11208 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11209 break 2
11210 fi
11211 done
11212 done
11213 IFS=$as_save_IFS
11214
11215 fi
11216 fi
11217 CC=$ac_cv_prog_CC
11218 if test -n "$CC"; then
11219 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11220 $as_echo "$CC" >&6; }
11221 else
11222 { $as_echo "$as_me:$LINENO: result: no" >&5
11223 $as_echo "no" >&6; }
11224 fi
11225
11226
11227 fi
11228 fi
11229 if test -z "$CC"; then
11230 # Extract the first word of "cc", so it can be a program name with args.
11231 set dummy cc; ac_word=$2
11232 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11233 $as_echo_n "checking for $ac_word... " >&6; }
11234 if test "${ac_cv_prog_CC+set}" = set; then
11235 $as_echo_n "(cached) " >&6
11236 else
11237 if test -n "$CC"; then
11238 ac_cv_prog_CC="$CC" # Let the user override the test.
11239 else
11240 ac_prog_rejected=no
11241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11242 for as_dir in $PATH
11243 do
11244 IFS=$as_save_IFS
11245 test -z "$as_dir" && as_dir=.
11246 for ac_exec_ext in '' $ac_executable_extensions; do
11247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11248 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11249 ac_prog_rejected=yes
11250 continue
11251 fi
11252 ac_cv_prog_CC="cc"
11253 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11254 break 2
11255 fi
11256 done
11257 done
11258 IFS=$as_save_IFS
11259
11260 if test $ac_prog_rejected = yes; then
11261 # We found a bogon in the path, so make sure we never use it.
11262 set dummy $ac_cv_prog_CC
11263 shift
11264 if test $# != 0; then
11265 # We chose a different compiler from the bogus one.
11266 # However, it has the same basename, so the bogon will be chosen
11267 # first if we set CC to just the basename; use the full file name.
11268 shift
11269 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11270 fi
11271 fi
11272 fi
11273 fi
11274 CC=$ac_cv_prog_CC
11275 if test -n "$CC"; then
11276 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11277 $as_echo "$CC" >&6; }
11278 else
11279 { $as_echo "$as_me:$LINENO: result: no" >&5
11280 $as_echo "no" >&6; }
11281 fi
11282
11283
11284 fi
11285 if test -z "$CC"; then
11286 if test -n "$ac_tool_prefix"; then
11287 for ac_prog in cl.exe
11288 do
11289 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11290 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11291 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11292 $as_echo_n "checking for $ac_word... " >&6; }
11293 if test "${ac_cv_prog_CC+set}" = set; then
11294 $as_echo_n "(cached) " >&6
11295 else
11296 if test -n "$CC"; then
11297 ac_cv_prog_CC="$CC" # Let the user override the test.
11298 else
11299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11300 for as_dir in $PATH
11301 do
11302 IFS=$as_save_IFS
11303 test -z "$as_dir" && as_dir=.
11304 for ac_exec_ext in '' $ac_executable_extensions; do
11305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11306 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11307 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11308 break 2
11309 fi
11310 done
11311 done
11312 IFS=$as_save_IFS
11313
11314 fi
11315 fi
11316 CC=$ac_cv_prog_CC
11317 if test -n "$CC"; then
11318 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11319 $as_echo "$CC" >&6; }
11320 else
11321 { $as_echo "$as_me:$LINENO: result: no" >&5
11322 $as_echo "no" >&6; }
11323 fi
11324
11325
11326 test -n "$CC" && break
11327 done
11328 fi
11329 if test -z "$CC"; then
11330 ac_ct_CC=$CC
11331 for ac_prog in cl.exe
11332 do
11333 # Extract the first word of "$ac_prog", so it can be a program name with args.
11334 set dummy $ac_prog; ac_word=$2
11335 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11336 $as_echo_n "checking for $ac_word... " >&6; }
11337 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11338 $as_echo_n "(cached) " >&6
11339 else
11340 if test -n "$ac_ct_CC"; then
11341 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11342 else
11343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11344 for as_dir in $PATH
11345 do
11346 IFS=$as_save_IFS
11347 test -z "$as_dir" && as_dir=.
11348 for ac_exec_ext in '' $ac_executable_extensions; do
11349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11350 ac_cv_prog_ac_ct_CC="$ac_prog"
11351 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11352 break 2
11353 fi
11354 done
11355 done
11356 IFS=$as_save_IFS
11357
11358 fi
11359 fi
11360 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11361 if test -n "$ac_ct_CC"; then
11362 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11363 $as_echo "$ac_ct_CC" >&6; }
11364 else
11365 { $as_echo "$as_me:$LINENO: result: no" >&5
11366 $as_echo "no" >&6; }
11367 fi
11368
11369
11370 test -n "$ac_ct_CC" && break
11371 done
11372
11373 if test "x$ac_ct_CC" = x; then
11374 CC=""
11375 else
11376 case $cross_compiling:$ac_tool_warned in
11377 yes:)
11378 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11380 ac_tool_warned=yes ;;
11381 esac
11382 CC=$ac_ct_CC
11383 fi
11384 fi
11385
11386 fi
11387
11388
11389 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11391 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11392 See \`config.log' for more details." >&5
11393 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
11394 See \`config.log' for more details." >&2;}
11395 { (exit 1); exit 1; }; }; }
11396
11397 # Provide some information about the compiler.
11398 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
11399 set X $ac_compile
11400 ac_compiler=$2
11401 { (ac_try="$ac_compiler --version >&5"
11402 case "(($ac_try" in
11403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11404 *) ac_try_echo=$ac_try;;
11405 esac
11406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11407 $as_echo "$ac_try_echo") >&5
11408 (eval "$ac_compiler --version >&5") 2>&5
11409 ac_status=$?
11410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); }
11412 { (ac_try="$ac_compiler -v >&5"
11413 case "(($ac_try" in
11414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11415 *) ac_try_echo=$ac_try;;
11416 esac
11417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11418 $as_echo "$ac_try_echo") >&5
11419 (eval "$ac_compiler -v >&5") 2>&5
11420 ac_status=$?
11421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); }
11423 { (ac_try="$ac_compiler -V >&5"
11424 case "(($ac_try" in
11425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11426 *) ac_try_echo=$ac_try;;
11427 esac
11428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11429 $as_echo "$ac_try_echo") >&5
11430 (eval "$ac_compiler -V >&5") 2>&5
11431 ac_status=$?
11432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); }
11434
11435 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11436 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11437 if test "${ac_cv_c_compiler_gnu+set}" = set; then
11438 $as_echo_n "(cached) " >&6
11439 else
11440 cat >conftest.$ac_ext <<_ACEOF
11441 /* confdefs.h. */
11442 _ACEOF
11443 cat confdefs.h >>conftest.$ac_ext
11444 cat >>conftest.$ac_ext <<_ACEOF
11445 /* end confdefs.h. */
11446
11447 int
11448 main ()
11449 {
11450 #ifndef __GNUC__
11451 choke me
11452 #endif
11453
11454 ;
11455 return 0;
11456 }
11457 _ACEOF
11458 rm -f conftest.$ac_objext
11459 if { (ac_try="$ac_compile"
11460 case "(($ac_try" in
11461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11462 *) ac_try_echo=$ac_try;;
11463 esac
11464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11465 $as_echo "$ac_try_echo") >&5
11466 (eval "$ac_compile") 2>conftest.er1
11467 ac_status=$?
11468 grep -v '^ *+' conftest.er1 >conftest.err
11469 rm -f conftest.er1
11470 cat conftest.err >&5
11471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); } && {
11473 test -z "$ac_c_werror_flag" ||
11474 test ! -s conftest.err
11475 } && test -s conftest.$ac_objext; then
11476 ac_compiler_gnu=yes
11477 else
11478 $as_echo "$as_me: failed program was:" >&5
11479 sed 's/^/| /' conftest.$ac_ext >&5
11480
11481 ac_compiler_gnu=no
11482 fi
11483
11484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11485 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11486
11487 fi
11488 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11489 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11490 if test $ac_compiler_gnu = yes; then
11491 GCC=yes
11492 else
11493 GCC=
11494 fi
11495 ac_test_CFLAGS=${CFLAGS+set}
11496 ac_save_CFLAGS=$CFLAGS
11497 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11498 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11499 if test "${ac_cv_prog_cc_g+set}" = set; then
11500 $as_echo_n "(cached) " >&6
11501 else
11502 ac_save_c_werror_flag=$ac_c_werror_flag
11503 ac_c_werror_flag=yes
11504 ac_cv_prog_cc_g=no
11505 CFLAGS="-g"
11506 cat >conftest.$ac_ext <<_ACEOF
11507 /* confdefs.h. */
11508 _ACEOF
11509 cat confdefs.h >>conftest.$ac_ext
11510 cat >>conftest.$ac_ext <<_ACEOF
11511 /* end confdefs.h. */
11512
11513 int
11514 main ()
11515 {
11516
11517 ;
11518 return 0;
11519 }
11520 _ACEOF
11521 rm -f conftest.$ac_objext
11522 if { (ac_try="$ac_compile"
11523 case "(($ac_try" in
11524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11525 *) ac_try_echo=$ac_try;;
11526 esac
11527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11528 $as_echo "$ac_try_echo") >&5
11529 (eval "$ac_compile") 2>conftest.er1
11530 ac_status=$?
11531 grep -v '^ *+' conftest.er1 >conftest.err
11532 rm -f conftest.er1
11533 cat conftest.err >&5
11534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); } && {
11536 test -z "$ac_c_werror_flag" ||
11537 test ! -s conftest.err
11538 } && test -s conftest.$ac_objext; then
11539 ac_cv_prog_cc_g=yes
11540 else
11541 $as_echo "$as_me: failed program was:" >&5
11542 sed 's/^/| /' conftest.$ac_ext >&5
11543
11544 CFLAGS=""
11545 cat >conftest.$ac_ext <<_ACEOF
11546 /* confdefs.h. */
11547 _ACEOF
11548 cat confdefs.h >>conftest.$ac_ext
11549 cat >>conftest.$ac_ext <<_ACEOF
11550 /* end confdefs.h. */
11551
11552 int
11553 main ()
11554 {
11555
11556 ;
11557 return 0;
11558 }
11559 _ACEOF
11560 rm -f conftest.$ac_objext
11561 if { (ac_try="$ac_compile"
11562 case "(($ac_try" in
11563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11564 *) ac_try_echo=$ac_try;;
11565 esac
11566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11567 $as_echo "$ac_try_echo") >&5
11568 (eval "$ac_compile") 2>conftest.er1
11569 ac_status=$?
11570 grep -v '^ *+' conftest.er1 >conftest.err
11571 rm -f conftest.er1
11572 cat conftest.err >&5
11573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); } && {
11575 test -z "$ac_c_werror_flag" ||
11576 test ! -s conftest.err
11577 } && test -s conftest.$ac_objext; then
11578 :
11579 else
11580 $as_echo "$as_me: failed program was:" >&5
11581 sed 's/^/| /' conftest.$ac_ext >&5
11582
11583 ac_c_werror_flag=$ac_save_c_werror_flag
11584 CFLAGS="-g"
11585 cat >conftest.$ac_ext <<_ACEOF
11586 /* confdefs.h. */
11587 _ACEOF
11588 cat confdefs.h >>conftest.$ac_ext
11589 cat >>conftest.$ac_ext <<_ACEOF
11590 /* end confdefs.h. */
11591
11592 int
11593 main ()
11594 {
11595
11596 ;
11597 return 0;
11598 }
11599 _ACEOF
11600 rm -f conftest.$ac_objext
11601 if { (ac_try="$ac_compile"
11602 case "(($ac_try" in
11603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11604 *) ac_try_echo=$ac_try;;
11605 esac
11606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11607 $as_echo "$ac_try_echo") >&5
11608 (eval "$ac_compile") 2>conftest.er1
11609 ac_status=$?
11610 grep -v '^ *+' conftest.er1 >conftest.err
11611 rm -f conftest.er1
11612 cat conftest.err >&5
11613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); } && {
11615 test -z "$ac_c_werror_flag" ||
11616 test ! -s conftest.err
11617 } && test -s conftest.$ac_objext; then
11618 ac_cv_prog_cc_g=yes
11619 else
11620 $as_echo "$as_me: failed program was:" >&5
11621 sed 's/^/| /' conftest.$ac_ext >&5
11622
11623
11624 fi
11625
11626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11627 fi
11628
11629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11630 fi
11631
11632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11633 ac_c_werror_flag=$ac_save_c_werror_flag
11634 fi
11635 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11636 $as_echo "$ac_cv_prog_cc_g" >&6; }
11637 if test "$ac_test_CFLAGS" = set; then
11638 CFLAGS=$ac_save_CFLAGS
11639 elif test $ac_cv_prog_cc_g = yes; then
11640 if test "$GCC" = yes; then
11641 CFLAGS="-g -O2"
11642 else
11643 CFLAGS="-g"
11644 fi
11645 else
11646 if test "$GCC" = yes; then
11647 CFLAGS="-O2"
11648 else
11649 CFLAGS=
11650 fi
11651 fi
11652 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
11653 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11654 if test "${ac_cv_prog_cc_c89+set}" = set; then
11655 $as_echo_n "(cached) " >&6
11656 else
11657 ac_cv_prog_cc_c89=no
11658 ac_save_CC=$CC
11659 cat >conftest.$ac_ext <<_ACEOF
11660 /* confdefs.h. */
11661 _ACEOF
11662 cat confdefs.h >>conftest.$ac_ext
11663 cat >>conftest.$ac_ext <<_ACEOF
11664 /* end confdefs.h. */
11665 #include <stdarg.h>
11666 #include <stdio.h>
11667 #include <sys/types.h>
11668 #include <sys/stat.h>
11669 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11670 struct buf { int x; };
11671 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11672 static char *e (p, i)
11673 char **p;
11674 int i;
11675 {
11676 return p[i];
11677 }
11678 static char *f (char * (*g) (char **, int), char **p, ...)
11679 {
11680 char *s;
11681 va_list v;
11682 va_start (v,p);
11683 s = g (p, va_arg (v,int));
11684 va_end (v);
11685 return s;
11686 }
11687
11688 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11689 function prototypes and stuff, but not '\xHH' hex character constants.
11690 These don't provoke an error unfortunately, instead are silently treated
11691 as 'x'. The following induces an error, until -std is added to get
11692 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11693 array size at least. It's necessary to write '\x00'==0 to get something
11694 that's true only with -std. */
11695 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11696
11697 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11698 inside strings and character constants. */
11699 #define FOO(x) 'x'
11700 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11701
11702 int test (int i, double x);
11703 struct s1 {int (*f) (int a);};
11704 struct s2 {int (*f) (double a);};
11705 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11706 int argc;
11707 char **argv;
11708 int
11709 main ()
11710 {
11711 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11712 ;
11713 return 0;
11714 }
11715 _ACEOF
11716 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11717 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11718 do
11719 CC="$ac_save_CC $ac_arg"
11720 rm -f conftest.$ac_objext
11721 if { (ac_try="$ac_compile"
11722 case "(($ac_try" in
11723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11724 *) ac_try_echo=$ac_try;;
11725 esac
11726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11727 $as_echo "$ac_try_echo") >&5
11728 (eval "$ac_compile") 2>conftest.er1
11729 ac_status=$?
11730 grep -v '^ *+' conftest.er1 >conftest.err
11731 rm -f conftest.er1
11732 cat conftest.err >&5
11733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); } && {
11735 test -z "$ac_c_werror_flag" ||
11736 test ! -s conftest.err
11737 } && test -s conftest.$ac_objext; then
11738 ac_cv_prog_cc_c89=$ac_arg
11739 else
11740 $as_echo "$as_me: failed program was:" >&5
11741 sed 's/^/| /' conftest.$ac_ext >&5
11742
11743
11744 fi
11745
11746 rm -f core conftest.err conftest.$ac_objext
11747 test "x$ac_cv_prog_cc_c89" != "xno" && break
11748 done
11749 rm -f conftest.$ac_ext
11750 CC=$ac_save_CC
11751
11752 fi
11753 # AC_CACHE_VAL
11754 case "x$ac_cv_prog_cc_c89" in
11755 x)
11756 { $as_echo "$as_me:$LINENO: result: none needed" >&5
11757 $as_echo "none needed" >&6; } ;;
11758 xno)
11759 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
11760 $as_echo "unsupported" >&6; } ;;
11761 *)
11762 CC="$CC $ac_cv_prog_cc_c89"
11763 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
11764 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11765 esac
11766
11767
11768 ac_ext=c
11769 ac_cpp='$CPP $CPPFLAGS'
11770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11773
11774 depcc="$CC" am_compiler_list=
11775
11776 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11777 $as_echo_n "checking dependency style of $depcc... " >&6; }
11778 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
11779 $as_echo_n "(cached) " >&6
11780 else
11781 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11782 # We make a subdir and do the tests there. Otherwise we can end up
11783 # making bogus files that we don't know about and never remove. For
11784 # instance it was reported that on HP-UX the gcc test will end up
11785 # making a dummy file named `D' -- because `-MD' means `put the output
11786 # in D'.
11787 mkdir conftest.dir
11788 # Copy depcomp to subdir because otherwise we won't find it if we're
11789 # using a relative directory.
11790 cp "$am_depcomp" conftest.dir
11791 cd conftest.dir
11792 # We will build objects and dependencies in a subdirectory because
11793 # it helps to detect inapplicable dependency modes. For instance
11794 # both Tru64's cc and ICC support -MD to output dependencies as a
11795 # side effect of compilation, but ICC will put the dependencies in
11796 # the current directory while Tru64 will put them in the object
11797 # directory.
11798 mkdir sub
11799
11800 am_cv_CC_dependencies_compiler_type=none
11801 if test "$am_compiler_list" = ""; then
11802 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11803 fi
11804 for depmode in $am_compiler_list; do
11805 # Setup a source with many dependencies, because some compilers
11806 # like to wrap large dependency lists on column 80 (with \), and
11807 # we should not choose a depcomp mode which is confused by this.
11808 #
11809 # We need to recreate these files for each test, as the compiler may
11810 # overwrite some of them when testing with obscure command lines.
11811 # This happens at least with the AIX C compiler.
11812 : > sub/conftest.c
11813 for i in 1 2 3 4 5 6; do
11814 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11815 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11816 # Solaris 8's {/usr,}/bin/sh.
11817 touch sub/conftst$i.h
11818 done
11819 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11820
11821 case $depmode in
11822 nosideeffect)
11823 # after this tag, mechanisms are not by side-effect, so they'll
11824 # only be used when explicitly requested
11825 if test "x$enable_dependency_tracking" = xyes; then
11826 continue
11827 else
11828 break
11829 fi
11830 ;;
11831 none) break ;;
11832 esac
11833 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11834 # mode. It turns out that the SunPro C++ compiler does not properly
11835 # handle `-M -o', and we need to detect this.
11836 if depmode=$depmode \
11837 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
11838 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11839 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
11840 >/dev/null 2>conftest.err &&
11841 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11842 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11843 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
11844 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11845 # icc doesn't choke on unknown options, it will just issue warnings
11846 # or remarks (even with -Werror). So we grep stderr for any message
11847 # that says an option was ignored or not supported.
11848 # When given -MP, icc 7.0 and 7.1 complain thusly:
11849 # icc: Command line warning: ignoring option '-M'; no argument required
11850 # The diagnosis changed in icc 8.0:
11851 # icc: Command line remark: option '-MP' not supported
11852 if (grep 'ignoring option' conftest.err ||
11853 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11854 am_cv_CC_dependencies_compiler_type=$depmode
11855 break
11856 fi
11857 fi
11858 done
11859
11860 cd ..
11861 rm -rf conftest.dir
11862 else
11863 am_cv_CC_dependencies_compiler_type=none
11864 fi
11865
11866 fi
11867 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
11868 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11869 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11870
11871 if
11872 test "x$enable_dependency_tracking" != xno \
11873 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11874 am__fastdepCC_TRUE=
11875 am__fastdepCC_FALSE='#'
11876 else
11877 am__fastdepCC_TRUE='#'
11878 am__fastdepCC_FALSE=
11879 fi
11880
11881
11882
11883
11884
11885
11886
11887 # Check whether --with-xorg-module-dir was given.
11888 if test "${with_xorg_module_dir+set}" = set; then
11889 withval=$with_xorg_module_dir; moduledir="$withval"
11890 else
11891 moduledir="$libdir/xorg/modules"
11892 fi
11893
11894
11895 # Check whether --enable-dri was given.
11896 if test "${enable_dri+set}" = set; then
11897 enableval=$enable_dri; DRI="$enableval"
11898 else
11899 DRI=auto
11900 fi
11901
11902
11903 # Checks for extensions
11904
11905 SAVE_CFLAGS="$CFLAGS"
11906 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
11907 cat >conftest.$ac_ext <<_ACEOF
11908 /* confdefs.h. */
11909 _ACEOF
11910 cat confdefs.h >>conftest.$ac_ext
11911 cat >>conftest.$ac_ext <<_ACEOF
11912 /* end confdefs.h. */
11913
11914 #include "xorg-server.h"
11915 #if !defined RANDR
11916 #error RANDR not defined
11917 #endif
11918
11919 int
11920 main ()
11921 {
11922
11923 ;
11924 return 0;
11925 }
11926 _ACEOF
11927 rm -f conftest.$ac_objext
11928 if { (ac_try="$ac_compile"
11929 case "(($ac_try" in
11930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11931 *) ac_try_echo=$ac_try;;
11932 esac
11933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11934 $as_echo "$ac_try_echo") >&5
11935 (eval "$ac_compile") 2>conftest.er1
11936 ac_status=$?
11937 grep -v '^ *+' conftest.er1 >conftest.err
11938 rm -f conftest.er1
11939 cat conftest.err >&5
11940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); } && {
11942 test -z "$ac_c_werror_flag" ||
11943 test ! -s conftest.err
11944 } && test -s conftest.$ac_objext; then
11945 _EXT_CHECK=yes
11946 else
11947 $as_echo "$as_me: failed program was:" >&5
11948 sed 's/^/| /' conftest.$ac_ext >&5
11949
11950 _EXT_CHECK=no
11951 fi
11952
11953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11954 CFLAGS="$SAVE_CFLAGS"
11955 { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5
11956 $as_echo_n "checking if RANDR is defined... " >&6; }
11957 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
11958 $as_echo "$_EXT_CHECK" >&6; }
11959 if test "$_EXT_CHECK" != no; then
11960 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
11961 fi
11962
11963
11964 SAVE_CFLAGS="$CFLAGS"
11965 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
11966 cat >conftest.$ac_ext <<_ACEOF
11967 /* confdefs.h. */
11968 _ACEOF
11969 cat confdefs.h >>conftest.$ac_ext
11970 cat >>conftest.$ac_ext <<_ACEOF
11971 /* end confdefs.h. */
11972
11973 #include "xorg-server.h"
11974 #if !defined RENDER
11975 #error RENDER not defined
11976 #endif
11977
11978 int
11979 main ()
11980 {
11981
11982 ;
11983 return 0;
11984 }
11985 _ACEOF
11986 rm -f conftest.$ac_objext
11987 if { (ac_try="$ac_compile"
11988 case "(($ac_try" in
11989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11990 *) ac_try_echo=$ac_try;;
11991 esac
11992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11993 $as_echo "$ac_try_echo") >&5
11994 (eval "$ac_compile") 2>conftest.er1
11995 ac_status=$?
11996 grep -v '^ *+' conftest.er1 >conftest.err
11997 rm -f conftest.er1
11998 cat conftest.err >&5
11999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); } && {
12001 test -z "$ac_c_werror_flag" ||
12002 test ! -s conftest.err
12003 } && test -s conftest.$ac_objext; then
12004 _EXT_CHECK=yes
12005 else
12006 $as_echo "$as_me: failed program was:" >&5
12007 sed 's/^/| /' conftest.$ac_ext >&5
12008
12009 _EXT_CHECK=no
12010 fi
12011
12012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12013 CFLAGS="$SAVE_CFLAGS"
12014 { $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5
12015 $as_echo_n "checking if RENDER is defined... " >&6; }
12016 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12017 $as_echo "$_EXT_CHECK" >&6; }
12018 if test "$_EXT_CHECK" != no; then
12019 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
12020 fi
12021
12022
12023 SAVE_CFLAGS="$CFLAGS"
12024 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12025 cat >conftest.$ac_ext <<_ACEOF
12026 /* confdefs.h. */
12027 _ACEOF
12028 cat confdefs.h >>conftest.$ac_ext
12029 cat >>conftest.$ac_ext <<_ACEOF
12030 /* end confdefs.h. */
12031
12032 #include "xorg-server.h"
12033 #if !defined XV
12034 #error XV not defined
12035 #endif
12036
12037 int
12038 main ()
12039 {
12040
12041 ;
12042 return 0;
12043 }
12044 _ACEOF
12045 rm -f conftest.$ac_objext
12046 if { (ac_try="$ac_compile"
12047 case "(($ac_try" in
12048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12049 *) ac_try_echo=$ac_try;;
12050 esac
12051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12052 $as_echo "$ac_try_echo") >&5
12053 (eval "$ac_compile") 2>conftest.er1
12054 ac_status=$?
12055 grep -v '^ *+' conftest.er1 >conftest.err
12056 rm -f conftest.er1
12057 cat conftest.err >&5
12058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); } && {
12060 test -z "$ac_c_werror_flag" ||
12061 test ! -s conftest.err
12062 } && test -s conftest.$ac_objext; then
12063 _EXT_CHECK=yes
12064 else
12065 $as_echo "$as_me: failed program was:" >&5
12066 sed 's/^/| /' conftest.$ac_ext >&5
12067
12068 _EXT_CHECK=no
12069 fi
12070
12071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12072 CFLAGS="$SAVE_CFLAGS"
12073 { $as_echo "$as_me:$LINENO: checking if XV is defined" >&5
12074 $as_echo_n "checking if XV is defined... " >&6; }
12075 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12076 $as_echo "$_EXT_CHECK" >&6; }
12077 if test "$_EXT_CHECK" != no; then
12078 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
12079 fi
12080
12081
12082 SAVE_CFLAGS="$CFLAGS"
12083 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12084 cat >conftest.$ac_ext <<_ACEOF
12085 /* confdefs.h. */
12086 _ACEOF
12087 cat confdefs.h >>conftest.$ac_ext
12088 cat >>conftest.$ac_ext <<_ACEOF
12089 /* end confdefs.h. */
12090
12091 #include "xorg-server.h"
12092 #if !defined DPMSExtension
12093 #error DPMSExtension not defined
12094 #endif
12095
12096 int
12097 main ()
12098 {
12099
12100 ;
12101 return 0;
12102 }
12103 _ACEOF
12104 rm -f conftest.$ac_objext
12105 if { (ac_try="$ac_compile"
12106 case "(($ac_try" in
12107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108 *) ac_try_echo=$ac_try;;
12109 esac
12110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12111 $as_echo "$ac_try_echo") >&5
12112 (eval "$ac_compile") 2>conftest.er1
12113 ac_status=$?
12114 grep -v '^ *+' conftest.er1 >conftest.err
12115 rm -f conftest.er1
12116 cat conftest.err >&5
12117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); } && {
12119 test -z "$ac_c_werror_flag" ||
12120 test ! -s conftest.err
12121 } && test -s conftest.$ac_objext; then
12122 _EXT_CHECK=yes
12123 else
12124 $as_echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.$ac_ext >&5
12126
12127 _EXT_CHECK=no
12128 fi
12129
12130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12131 CFLAGS="$SAVE_CFLAGS"
12132 { $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
12133 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
12134 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12135 $as_echo "$_EXT_CHECK" >&6; }
12136 if test "$_EXT_CHECK" != no; then
12137 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
12138 fi
12139
12140
12141 # Checks for pkg-config packages
12142
12143
12144 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12145 if test -n "$ac_tool_prefix"; then
12146 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12147 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12148 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12149 $as_echo_n "checking for $ac_word... " >&6; }
12150 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12151 $as_echo_n "(cached) " >&6
12152 else
12153 case $PKG_CONFIG in
12154 [\\/]* | ?:[\\/]*)
12155 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12156 ;;
12157 *)
12158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12159 for as_dir in $PATH
12160 do
12161 IFS=$as_save_IFS
12162 test -z "$as_dir" && as_dir=.
12163 for ac_exec_ext in '' $ac_executable_extensions; do
12164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12165 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12166 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12167 break 2
12168 fi
12169 done
12170 done
12171 IFS=$as_save_IFS
12172
12173 ;;
12174 esac
12175 fi
12176 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12177 if test -n "$PKG_CONFIG"; then
12178 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12179 $as_echo "$PKG_CONFIG" >&6; }
12180 else
12181 { $as_echo "$as_me:$LINENO: result: no" >&5
12182 $as_echo "no" >&6; }
12183 fi
12184
12185
12186 fi
12187 if test -z "$ac_cv_path_PKG_CONFIG"; then
12188 ac_pt_PKG_CONFIG=$PKG_CONFIG
12189 # Extract the first word of "pkg-config", so it can be a program name with args.
12190 set dummy pkg-config; ac_word=$2
12191 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12192 $as_echo_n "checking for $ac_word... " >&6; }
12193 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
12194 $as_echo_n "(cached) " >&6
12195 else
12196 case $ac_pt_PKG_CONFIG in
12197 [\\/]* | ?:[\\/]*)
12198 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12199 ;;
12200 *)
12201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12202 for as_dir in $PATH
12203 do
12204 IFS=$as_save_IFS
12205 test -z "$as_dir" && as_dir=.
12206 for ac_exec_ext in '' $ac_executable_extensions; do
12207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12208 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12209 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12210 break 2
12211 fi
12212 done
12213 done
12214 IFS=$as_save_IFS
12215
12216 ;;
12217 esac
12218 fi
12219 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12220 if test -n "$ac_pt_PKG_CONFIG"; then
12221 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
12222 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12223 else
12224 { $as_echo "$as_me:$LINENO: result: no" >&5
12225 $as_echo "no" >&6; }
12226 fi
12227
12228 if test "x$ac_pt_PKG_CONFIG" = x; then
12229 PKG_CONFIG=""
12230 else
12231 case $cross_compiling:$ac_tool_warned in
12232 yes:)
12233 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12235 ac_tool_warned=yes ;;
12236 esac
12237 PKG_CONFIG=$ac_pt_PKG_CONFIG
12238 fi
12239 else
12240 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12241 fi
12242
12243 fi
12244 if test -n "$PKG_CONFIG"; then
12245 _pkg_min_version=0.9.0
12246 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
12247 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12248 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12249 { $as_echo "$as_me:$LINENO: result: yes" >&5
12250 $as_echo "yes" >&6; }
12251 else
12252 { $as_echo "$as_me:$LINENO: result: no" >&5
12253 $as_echo "no" >&6; }
12254 PKG_CONFIG=""
12255 fi
12256
12257 fi
12258
12259 pkg_failed=no
12260 { $as_echo "$as_me:$LINENO: checking for XORG" >&5
12261 $as_echo_n "checking for XORG... " >&6; }
12262
12263 if test -n "$XORG_CFLAGS"; then
12264 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
12265 elif test -n "$PKG_CONFIG"; then
12266 if test -n "$PKG_CONFIG" && \
12267 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\"") >&5
12268 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5
12269 ac_status=$?
12270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); }; then
12272 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
12273 else
12274 pkg_failed=yes
12275 fi
12276 else
12277 pkg_failed=untried
12278 fi
12279 if test -n "$XORG_LIBS"; then
12280 pkg_cv_XORG_LIBS="$XORG_LIBS"
12281 elif test -n "$PKG_CONFIG"; then
12282 if test -n "$PKG_CONFIG" && \
12283 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\"") >&5
12284 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5
12285 ac_status=$?
12286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); }; then
12288 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
12289 else
12290 pkg_failed=yes
12291 fi
12292 else
12293 pkg_failed=untried
12294 fi
12295
12296
12297
12298 if test $pkg_failed = yes; then
12299
12300 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12301 _pkg_short_errors_supported=yes
12302 else
12303 _pkg_short_errors_supported=no
12304 fi
12305 if test $_pkg_short_errors_supported = yes; then
12306 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1`
12307 else
12308 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1`
12309 fi
12310 # Put the nasty error message in config.log where it belongs
12311 echo "$XORG_PKG_ERRORS" >&5
12312
12313 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES) were not met:
12314
12315 $XORG_PKG_ERRORS
12316
12317 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12318 installed software in a non-standard prefix.
12319
12320 Alternatively, you may set the environment variables XORG_CFLAGS
12321 and XORG_LIBS to avoid the need to call pkg-config.
12322 See the pkg-config man page for more details.
12323 " >&5
12324 $as_echo "$as_me: error: Package requirements (xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES) were not met:
12325
12326 $XORG_PKG_ERRORS
12327
12328 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12329 installed software in a non-standard prefix.
12330
12331 Alternatively, you may set the environment variables XORG_CFLAGS
12332 and XORG_LIBS to avoid the need to call pkg-config.
12333 See the pkg-config man page for more details.
12334 " >&2;}
12335 { (exit 1); exit 1; }; }
12336 elif test $pkg_failed = untried; then
12337 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12338 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12339 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12340 is in your PATH or set the PKG_CONFIG environment variable to the full
12341 path to pkg-config.
12342
12343 Alternatively, you may set the environment variables XORG_CFLAGS
12344 and XORG_LIBS to avoid the need to call pkg-config.
12345 See the pkg-config man page for more details.
12346
12347 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12348 See \`config.log' for more details." >&5
12349 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12350 is in your PATH or set the PKG_CONFIG environment variable to the full
12351 path to pkg-config.
12352
12353 Alternatively, you may set the environment variables XORG_CFLAGS
12354 and XORG_LIBS to avoid the need to call pkg-config.
12355 See the pkg-config man page for more details.
12356
12357 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12358 See \`config.log' for more details." >&2;}
12359 { (exit 1); exit 1; }; }; }
12360 else
12361 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
12362 XORG_LIBS=$pkg_cv_XORG_LIBS
12363 { $as_echo "$as_me:$LINENO: result: yes" >&5
12364 $as_echo "yes" >&6; }
12365 :
12366 fi
12367 sdkdir=$(pkg-config --variable=sdkdir xorg-server)
12368
12369 # Checks for libraries.
12370
12371 # Checks for header files.
12372 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12373 $as_echo_n "checking for ANSI C header files... " >&6; }
12374 if test "${ac_cv_header_stdc+set}" = set; then
12375 $as_echo_n "(cached) " >&6
12376 else
12377 cat >conftest.$ac_ext <<_ACEOF
12378 /* confdefs.h. */
12379 _ACEOF
12380 cat confdefs.h >>conftest.$ac_ext
12381 cat >>conftest.$ac_ext <<_ACEOF
12382 /* end confdefs.h. */
12383 #include <stdlib.h>
12384 #include <stdarg.h>
12385 #include <string.h>
12386 #include <float.h>
12387
12388 int
12389 main ()
12390 {
12391
12392 ;
12393 return 0;
12394 }
12395 _ACEOF
12396 rm -f conftest.$ac_objext
12397 if { (ac_try="$ac_compile"
12398 case "(($ac_try" in
12399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12400 *) ac_try_echo=$ac_try;;
12401 esac
12402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12403 $as_echo "$ac_try_echo") >&5
12404 (eval "$ac_compile") 2>conftest.er1
12405 ac_status=$?
12406 grep -v '^ *+' conftest.er1 >conftest.err
12407 rm -f conftest.er1
12408 cat conftest.err >&5
12409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); } && {
12411 test -z "$ac_c_werror_flag" ||
12412 test ! -s conftest.err
12413 } && test -s conftest.$ac_objext; then
12414 ac_cv_header_stdc=yes
12415 else
12416 $as_echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12418
12419 ac_cv_header_stdc=no
12420 fi
12421
12422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12423
12424 if test $ac_cv_header_stdc = yes; then
12425 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12426 cat >conftest.$ac_ext <<_ACEOF
12427 /* confdefs.h. */
12428 _ACEOF
12429 cat confdefs.h >>conftest.$ac_ext
12430 cat >>conftest.$ac_ext <<_ACEOF
12431 /* end confdefs.h. */
12432 #include <string.h>
12433
12434 _ACEOF
12435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12436 $EGREP "memchr" >/dev/null 2>&1; then
12437 :
12438 else
12439 ac_cv_header_stdc=no
12440 fi
12441 rm -f conftest*
12442
12443 fi
12444
12445 if test $ac_cv_header_stdc = yes; then
12446 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12447 cat >conftest.$ac_ext <<_ACEOF
12448 /* confdefs.h. */
12449 _ACEOF
12450 cat confdefs.h >>conftest.$ac_ext
12451 cat >>conftest.$ac_ext <<_ACEOF
12452 /* end confdefs.h. */
12453 #include <stdlib.h>
12454
12455 _ACEOF
12456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12457 $EGREP "free" >/dev/null 2>&1; then
12458 :
12459 else
12460 ac_cv_header_stdc=no
12461 fi
12462 rm -f conftest*
12463
12464 fi
12465
12466 if test $ac_cv_header_stdc = yes; then
12467 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12468 if test "$cross_compiling" = yes; then
12469 :
12470 else
12471 cat >conftest.$ac_ext <<_ACEOF
12472 /* confdefs.h. */
12473 _ACEOF
12474 cat confdefs.h >>conftest.$ac_ext
12475 cat >>conftest.$ac_ext <<_ACEOF
12476 /* end confdefs.h. */
12477 #include <ctype.h>
12478 #include <stdlib.h>
12479 #if ((' ' & 0x0FF) == 0x020)
12480 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12481 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12482 #else
12483 # define ISLOWER(c) \
12484 (('a' <= (c) && (c) <= 'i') \
12485 || ('j' <= (c) && (c) <= 'r') \
12486 || ('s' <= (c) && (c) <= 'z'))
12487 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12488 #endif
12489
12490 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12491 int
12492 main ()
12493 {
12494 int i;
12495 for (i = 0; i < 256; i++)
12496 if (XOR (islower (i), ISLOWER (i))
12497 || toupper (i) != TOUPPER (i))
12498 return 2;
12499 return 0;
12500 }
12501 _ACEOF
12502 rm -f conftest$ac_exeext
12503 if { (ac_try="$ac_link"
12504 case "(($ac_try" in
12505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12506 *) ac_try_echo=$ac_try;;
12507 esac
12508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12509 $as_echo "$ac_try_echo") >&5
12510 (eval "$ac_link") 2>&5
12511 ac_status=$?
12512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12514 { (case "(($ac_try" in
12515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12516 *) ac_try_echo=$ac_try;;
12517 esac
12518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12519 $as_echo "$ac_try_echo") >&5
12520 (eval "$ac_try") 2>&5
12521 ac_status=$?
12522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); }; }; then
12524 :
12525 else
12526 $as_echo "$as_me: program exited with status $ac_status" >&5
12527 $as_echo "$as_me: failed program was:" >&5
12528 sed 's/^/| /' conftest.$ac_ext >&5
12529
12530 ( exit $ac_status )
12531 ac_cv_header_stdc=no
12532 fi
12533 rm -rf conftest.dSYM
12534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12535 fi
12536
12537
12538 fi
12539 fi
12540 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12541 $as_echo "$ac_cv_header_stdc" >&6; }
12542 if test $ac_cv_header_stdc = yes; then
12543
12544 cat >>confdefs.h <<\_ACEOF
12545 #define STDC_HEADERS 1
12546 _ACEOF
12547
12548 fi
12549
12550
12551 if test "$DRI" != no; then
12552 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
12553 { $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dri.h" >&5
12554 $as_echo_n "checking for ${sdkdir}/dri.h... " >&6; }
12555 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
12556 $as_echo_n "(cached) " >&6
12557 else
12558 test "$cross_compiling" = yes &&
12559 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
12560 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
12561 { (exit 1); exit 1; }; }
12562 if test -r "${sdkdir}/dri.h"; then
12563 eval "$as_ac_File=yes"
12564 else
12565 eval "$as_ac_File=no"
12566 fi
12567 fi
12568 ac_res=`eval 'as_val=${'$as_ac_File'}
12569 $as_echo "$as_val"'`
12570 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12571 $as_echo "$ac_res" >&6; }
12572 as_val=`eval 'as_val=${'$as_ac_File'}
12573 $as_echo "$as_val"'`
12574 if test "x$as_val" = x""yes; then
12575 have_dri_h="yes"
12576 else
12577 have_dri_h="no"
12578 fi
12579
12580 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
12581 { $as_echo "$as_me:$LINENO: checking for ${sdkdir}/sarea.h" >&5
12582 $as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; }
12583 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
12584 $as_echo_n "(cached) " >&6
12585 else
12586 test "$cross_compiling" = yes &&
12587 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
12588 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
12589 { (exit 1); exit 1; }; }
12590 if test -r "${sdkdir}/sarea.h"; then
12591 eval "$as_ac_File=yes"
12592 else
12593 eval "$as_ac_File=no"
12594 fi
12595 fi
12596 ac_res=`eval 'as_val=${'$as_ac_File'}
12597 $as_echo "$as_val"'`
12598 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12599 $as_echo "$ac_res" >&6; }
12600 as_val=`eval 'as_val=${'$as_ac_File'}
12601 $as_echo "$as_val"'`
12602 if test "x$as_val" = x""yes; then
12603 have_sarea_h="yes"
12604 else
12605 have_sarea_h="no"
12606 fi
12607
12608 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
12609 { $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dristruct.h" >&5
12610 $as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; }
12611 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
12612 $as_echo_n "(cached) " >&6
12613 else
12614 test "$cross_compiling" = yes &&
12615 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
12616 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
12617 { (exit 1); exit 1; }; }
12618 if test -r "${sdkdir}/dristruct.h"; then
12619 eval "$as_ac_File=yes"
12620 else
12621 eval "$as_ac_File=no"
12622 fi
12623 fi
12624 ac_res=`eval 'as_val=${'$as_ac_File'}
12625 $as_echo "$as_val"'`
12626 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12627 $as_echo "$ac_res" >&6; }
12628 as_val=`eval 'as_val=${'$as_ac_File'}
12629 $as_echo "$as_val"'`
12630 if test "x$as_val" = x""yes; then
12631 have_dristruct_h="yes"
12632 else
12633 have_dristruct_h="no"
12634 fi
12635
12636 fi
12637
12638 { $as_echo "$as_me:$LINENO: checking whether to include DRI support" >&5
12639 $as_echo_n "checking whether to include DRI support... " >&6; }
12640 if test x$DRI = xauto; then
12641 if test "$have_dri_h" = yes -a \
12642 "$have_sarea_h" = yes -a \
12643 "$have_dristruct_h" = yes; then
12644 DRI="yes"
12645 else
12646 DRI="no"
12647 fi
12648 fi
12649 { $as_echo "$as_me:$LINENO: result: $DRI" >&5
12650 $as_echo "$DRI" >&6; }
12651
12652 if test x$DRI = xyes; then
12653 DRI_TRUE=
12654 DRI_FALSE='#'
12655 else
12656 DRI_TRUE='#'
12657 DRI_FALSE=
12658 fi
12659
12660 if test "$DRI" = yes; then
12661
12662 pkg_failed=no
12663 { $as_echo "$as_me:$LINENO: checking for DRI" >&5
12664 $as_echo_n "checking for DRI... " >&6; }
12665
12666 if test -n "$DRI_CFLAGS"; then
12667 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
12668 elif test -n "$PKG_CONFIG"; then
12669 if test -n "$PKG_CONFIG" && \
12670 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\"") >&5
12671 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
12672 ac_status=$?
12673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); }; then
12675 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null`
12676 else
12677 pkg_failed=yes
12678 fi
12679 else
12680 pkg_failed=untried
12681 fi
12682 if test -n "$DRI_LIBS"; then
12683 pkg_cv_DRI_LIBS="$DRI_LIBS"
12684 elif test -n "$PKG_CONFIG"; then
12685 if test -n "$PKG_CONFIG" && \
12686 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\"") >&5
12687 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
12688 ac_status=$?
12689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); }; then
12691 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null`
12692 else
12693 pkg_failed=yes
12694 fi
12695 else
12696 pkg_failed=untried
12697 fi
12698
12699
12700
12701 if test $pkg_failed = yes; then
12702
12703 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12704 _pkg_short_errors_supported=yes
12705 else
12706 _pkg_short_errors_supported=no
12707 fi
12708 if test $_pkg_short_errors_supported = yes; then
12709 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.0 xf86driproto" 2>&1`
12710 else
12711 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.0 xf86driproto" 2>&1`
12712 fi
12713 # Put the nasty error message in config.log where it belongs
12714 echo "$DRI_PKG_ERRORS" >&5
12715
12716 { { $as_echo "$as_me:$LINENO: error: Package requirements (libdrm >= 2.0 xf86driproto) were not met:
12717
12718 $DRI_PKG_ERRORS
12719
12720 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12721 installed software in a non-standard prefix.
12722
12723 Alternatively, you may set the environment variables DRI_CFLAGS
12724 and DRI_LIBS to avoid the need to call pkg-config.
12725 See the pkg-config man page for more details.
12726 " >&5
12727 $as_echo "$as_me: error: Package requirements (libdrm >= 2.0 xf86driproto) were not met:
12728
12729 $DRI_PKG_ERRORS
12730
12731 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12732 installed software in a non-standard prefix.
12733
12734 Alternatively, you may set the environment variables DRI_CFLAGS
12735 and DRI_LIBS to avoid the need to call pkg-config.
12736 See the pkg-config man page for more details.
12737 " >&2;}
12738 { (exit 1); exit 1; }; }
12739 elif test $pkg_failed = untried; then
12740 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12742 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12743 is in your PATH or set the PKG_CONFIG environment variable to the full
12744 path to pkg-config.
12745
12746 Alternatively, you may set the environment variables DRI_CFLAGS
12747 and DRI_LIBS to avoid the need to call pkg-config.
12748 See the pkg-config man page for more details.
12749
12750 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12751 See \`config.log' for more details." >&5
12752 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12753 is in your PATH or set the PKG_CONFIG environment variable to the full
12754 path to pkg-config.
12755
12756 Alternatively, you may set the environment variables DRI_CFLAGS
12757 and DRI_LIBS to avoid the need to call pkg-config.
12758 See the pkg-config man page for more details.
12759
12760 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12761 See \`config.log' for more details." >&2;}
12762 { (exit 1); exit 1; }; }; }
12763 else
12764 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
12765 DRI_LIBS=$pkg_cv_DRI_LIBS
12766 { $as_echo "$as_me:$LINENO: result: yes" >&5
12767 $as_echo "yes" >&6; }
12768 :
12769 fi
12770
12771 cat >>confdefs.h <<\_ACEOF
12772 #define XF86DRI 1
12773 _ACEOF
12774
12775
12776 cat >>confdefs.h <<\_ACEOF
12777 #define XF86DRI_DEVEL 1
12778 _ACEOF
12779
12780 fi
12781
12782 save_CFLAGS="$CFLAGS"
12783 CFLAGS="$XORG_CFLAGS"
12784 { $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5
12785 $as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; }
12786 if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then
12787 $as_echo_n "(cached) " >&6
12788 else
12789 cat >conftest.$ac_ext <<_ACEOF
12790 /* confdefs.h. */
12791 _ACEOF
12792 cat confdefs.h >>conftest.$ac_ext
12793 cat >>conftest.$ac_ext <<_ACEOF
12794 /* end confdefs.h. */
12795 #include "xorg-server.h"
12796
12797 int
12798 main ()
12799 {
12800 #ifndef XSERVER_LIBPCIACCESS
12801 (void) XSERVER_LIBPCIACCESS;
12802 #endif
12803
12804 ;
12805 return 0;
12806 }
12807 _ACEOF
12808 rm -f conftest.$ac_objext
12809 if { (ac_try="$ac_compile"
12810 case "(($ac_try" in
12811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12812 *) ac_try_echo=$ac_try;;
12813 esac
12814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12815 $as_echo "$ac_try_echo") >&5
12816 (eval "$ac_compile") 2>conftest.er1
12817 ac_status=$?
12818 grep -v '^ *+' conftest.er1 >conftest.err
12819 rm -f conftest.er1
12820 cat conftest.err >&5
12821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); } && {
12823 test -z "$ac_c_werror_flag" ||
12824 test ! -s conftest.err
12825 } && test -s conftest.$ac_objext; then
12826 ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes
12827 else
12828 $as_echo "$as_me: failed program was:" >&5
12829 sed 's/^/| /' conftest.$ac_ext >&5
12830
12831 ac_cv_have_decl_XSERVER_LIBPCIACCESS=no
12832 fi
12833
12834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12835 fi
12836 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5
12837 $as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; }
12838 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then
12839 XSERVER_LIBPCIACCESS=yes
12840 else
12841 XSERVER_LIBPCIACCESS=no
12842 fi
12843
12844 { $as_echo "$as_me:$LINENO: checking whether xf86XVFillKeyHelperDrawable is declared" >&5
12845 $as_echo_n "checking whether xf86XVFillKeyHelperDrawable is declared... " >&6; }
12846 if test "${ac_cv_have_decl_xf86XVFillKeyHelperDrawable+set}" = set; then
12847 $as_echo_n "(cached) " >&6
12848 else
12849 cat >conftest.$ac_ext <<_ACEOF
12850 /* confdefs.h. */
12851 _ACEOF
12852 cat confdefs.h >>conftest.$ac_ext
12853 cat >>conftest.$ac_ext <<_ACEOF
12854 /* end confdefs.h. */
12855 #include "xf86xv.h"
12856
12857 int
12858 main ()
12859 {
12860 #ifndef xf86XVFillKeyHelperDrawable
12861 (void) xf86XVFillKeyHelperDrawable;
12862 #endif
12863
12864 ;
12865 return 0;
12866 }
12867 _ACEOF
12868 rm -f conftest.$ac_objext
12869 if { (ac_try="$ac_compile"
12870 case "(($ac_try" in
12871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12872 *) ac_try_echo=$ac_try;;
12873 esac
12874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12875 $as_echo "$ac_try_echo") >&5
12876 (eval "$ac_compile") 2>conftest.er1
12877 ac_status=$?
12878 grep -v '^ *+' conftest.er1 >conftest.err
12879 rm -f conftest.er1
12880 cat conftest.err >&5
12881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); } && {
12883 test -z "$ac_c_werror_flag" ||
12884 test ! -s conftest.err
12885 } && test -s conftest.$ac_objext; then
12886 ac_cv_have_decl_xf86XVFillKeyHelperDrawable=yes
12887 else
12888 $as_echo "$as_me: failed program was:" >&5
12889 sed 's/^/| /' conftest.$ac_ext >&5
12890
12891 ac_cv_have_decl_xf86XVFillKeyHelperDrawable=no
12892 fi
12893
12894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12895 fi
12896 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_xf86XVFillKeyHelperDrawable" >&5
12897 $as_echo "$ac_cv_have_decl_xf86XVFillKeyHelperDrawable" >&6; }
12898 if test "x$ac_cv_have_decl_xf86XVFillKeyHelperDrawable" = x""yes; then
12899
12900 cat >>confdefs.h <<\_ACEOF
12901 #define HAVE_XV_DRAWABLE_HELPER 1
12902 _ACEOF
12903
12904 fi
12905
12906 CFLAGS="$save_CFLAGS"
12907
12908 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
12909
12910 pkg_failed=no
12911 { $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5
12912 $as_echo_n "checking for PCIACCESS... " >&6; }
12913
12914 if test -n "$PCIACCESS_CFLAGS"; then
12915 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
12916 elif test -n "$PKG_CONFIG"; then
12917 if test -n "$PKG_CONFIG" && \
12918 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\"") >&5
12919 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
12920 ac_status=$?
12921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); }; then
12923 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null`
12924 else
12925 pkg_failed=yes
12926 fi
12927 else
12928 pkg_failed=untried
12929 fi
12930 if test -n "$PCIACCESS_LIBS"; then
12931 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
12932 elif test -n "$PKG_CONFIG"; then
12933 if test -n "$PKG_CONFIG" && \
12934 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\"") >&5
12935 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
12936 ac_status=$?
12937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }; then
12939 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null`
12940 else
12941 pkg_failed=yes
12942 fi
12943 else
12944 pkg_failed=untried
12945 fi
12946
12947
12948
12949 if test $pkg_failed = yes; then
12950
12951 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12952 _pkg_short_errors_supported=yes
12953 else
12954 _pkg_short_errors_supported=no
12955 fi
12956 if test $_pkg_short_errors_supported = yes; then
12957 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.10" 2>&1`
12958 else
12959 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.10" 2>&1`
12960 fi
12961 # Put the nasty error message in config.log where it belongs
12962 echo "$PCIACCESS_PKG_ERRORS" >&5
12963
12964 { { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.10) were not met:
12965
12966 $PCIACCESS_PKG_ERRORS
12967
12968 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12969 installed software in a non-standard prefix.
12970
12971 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12972 and PCIACCESS_LIBS to avoid the need to call pkg-config.
12973 See the pkg-config man page for more details.
12974 " >&5
12975 $as_echo "$as_me: error: Package requirements (pciaccess >= 0.10) were not met:
12976
12977 $PCIACCESS_PKG_ERRORS
12978
12979 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12980 installed software in a non-standard prefix.
12981
12982 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12983 and PCIACCESS_LIBS to avoid the need to call pkg-config.
12984 See the pkg-config man page for more details.
12985 " >&2;}
12986 { (exit 1); exit 1; }; }
12987 elif test $pkg_failed = untried; then
12988 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12990 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12991 is in your PATH or set the PKG_CONFIG environment variable to the full
12992 path to pkg-config.
12993
12994 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12995 and PCIACCESS_LIBS to avoid the need to call pkg-config.
12996 See the pkg-config man page for more details.
12997
12998 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12999 See \`config.log' for more details." >&5
13000 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
13001 is in your PATH or set the PKG_CONFIG environment variable to the full
13002 path to pkg-config.
13003
13004 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
13005 and PCIACCESS_LIBS to avoid the need to call pkg-config.
13006 See the pkg-config man page for more details.
13007
13008 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13009 See \`config.log' for more details." >&2;}
13010 { (exit 1); exit 1; }; }; }
13011 else
13012 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
13013 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
13014 { $as_echo "$as_me:$LINENO: result: yes" >&5
13015 $as_echo "yes" >&6; }
13016 :
13017 fi
13018 fi
13019 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
13020 XSERVER_LIBPCIACCESS_TRUE=
13021 XSERVER_LIBPCIACCESS_FALSE='#'
13022 else
13023 XSERVER_LIBPCIACCESS_TRUE='#'
13024 XSERVER_LIBPCIACCESS_FALSE=
13025 fi
13026
13027
13028
13029
13030
13031
13032 DRIVER_NAME=savage
13033
13034
13035
13036
13037
13038 if test x$APP_MAN_SUFFIX = x ; then
13039 APP_MAN_SUFFIX=1
13040 fi
13041 if test x$APP_MAN_DIR = x ; then
13042 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
13043 fi
13044
13045 if test x$LIB_MAN_SUFFIX = x ; then
13046 LIB_MAN_SUFFIX=3
13047 fi
13048 if test x$LIB_MAN_DIR = x ; then
13049 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
13050 fi
13051
13052 if test x$FILE_MAN_SUFFIX = x ; then
13053 case $host_os in
13054 solaris*) FILE_MAN_SUFFIX=4 ;;
13055 *) FILE_MAN_SUFFIX=5 ;;
13056 esac
13057 fi
13058 if test x$FILE_MAN_DIR = x ; then
13059 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
13060 fi
13061
13062 if test x$MISC_MAN_SUFFIX = x ; then
13063 case $host_os in
13064 solaris*) MISC_MAN_SUFFIX=5 ;;
13065 *) MISC_MAN_SUFFIX=7 ;;
13066 esac
13067 fi
13068 if test x$MISC_MAN_DIR = x ; then
13069 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
13070 fi
13071
13072 if test x$DRIVER_MAN_SUFFIX = x ; then
13073 case $host_os in
13074 solaris*) DRIVER_MAN_SUFFIX=7 ;;
13075 *) DRIVER_MAN_SUFFIX=4 ;;
13076 esac
13077 fi
13078 if test x$DRIVER_MAN_DIR = x ; then
13079 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
13080 fi
13081
13082 if test x$ADMIN_MAN_SUFFIX = x ; then
13083 case $host_os in
13084 solaris*) ADMIN_MAN_SUFFIX=1m ;;
13085 *) ADMIN_MAN_SUFFIX=8 ;;
13086 esac
13087 fi
13088 if test x$ADMIN_MAN_DIR = x ; then
13089 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
13090 fi
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108 # Check whether --with-release-version was given.
13109 if test "${with_release_version+set}" = set; then
13110 withval=$with_release_version; RELEASE_VERSION="$withval"
13111 else
13112 RELEASE_VERSION=""
13113 fi
13114
13115 if test "x$RELEASE_VERSION" != "x"; then
13116 PACKAGE="$PACKAGE-$RELEASE_VERSION"
13117 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
13118 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
13119 $as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
13120 fi
13121
13122 cat >>confdefs.h <<_ACEOF
13123 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
13124 _ACEOF
13125
13126 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
13127 if test "x$PVM" = "x"; then
13128 PVM="0"
13129 fi
13130
13131 cat >>confdefs.h <<_ACEOF
13132 #define PACKAGE_VERSION_MINOR $PVM
13133 _ACEOF
13134
13135 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
13136 if test "x$PVP" = "x"; then
13137 PVP="0"
13138 fi
13139
13140 cat >>confdefs.h <<_ACEOF
13141 #define PACKAGE_VERSION_PATCHLEVEL $PVP
13142 _ACEOF
13143
13144
13145
13146 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
13147
13148 cat >confcache <<\_ACEOF
13149 # This file is a shell script that caches the results of configure
13150 # tests run on this system so they can be shared between configure
13151 # scripts and configure runs, see configure's option --config-cache.
13152 # It is not useful on other systems. If it contains results you don't
13153 # want to keep, you may remove or edit it.
13154 #
13155 # config.status only pays attention to the cache file if you give it
13156 # the --recheck option to rerun configure.
13157 #
13158 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13159 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13160 # following values.
13161
13162 _ACEOF
13163
13164 # The following way of writing the cache mishandles newlines in values,
13165 # but we know of no workaround that is simple, portable, and efficient.
13166 # So, we kill variables containing newlines.
13167 # Ultrix sh set writes to stderr and can't be redirected directly,
13168 # and sets the high bit in the cache file unless we assign to the vars.
13169 (
13170 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13171 eval ac_val=\$$ac_var
13172 case $ac_val in #(
13173 *${as_nl}*)
13174 case $ac_var in #(
13175 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13176 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13177 esac
13178 case $ac_var in #(
13179 _ | IFS | as_nl) ;; #(
13180 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13181 *) $as_unset $ac_var ;;
13182 esac ;;
13183 esac
13184 done
13185
13186 (set) 2>&1 |
13187 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13188 *${as_nl}ac_space=\ *)
13189 # `set' does not quote correctly, so add quotes (double-quote
13190 # substitution turns \\\\ into \\, and sed turns \\ into \).
13191 sed -n \
13192 "s/'/'\\\\''/g;
13193 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13194 ;; #(
13195 *)
13196 # `set' quotes correctly as required by POSIX, so do not add quotes.
13197 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13198 ;;
13199 esac |
13200 sort
13201 ) |
13202 sed '
13203 /^ac_cv_env_/b end
13204 t clear
13205 :clear
13206 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13207 t end
13208 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13209 :end' >>confcache
13210 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13211 if test -w "$cache_file"; then
13212 test "x$cache_file" != "x/dev/null" &&
13213 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13214 $as_echo "$as_me: updating cache $cache_file" >&6;}
13215 cat confcache >$cache_file
13216 else
13217 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13218 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13219 fi
13220 fi
13221 rm -f confcache
13222
13223 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13224 # Let make expand exec_prefix.
13225 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13226
13227 DEFS=-DHAVE_CONFIG_H
13228
13229 ac_libobjs=
13230 ac_ltlibobjs=
13231 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13232 # 1. Remove the extension, and $U if already installed.
13233 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13234 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13235 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13236 # will be set to the directory where LIBOBJS objects are built.
13237 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13238 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13239 done
13240 LIBOBJS=$ac_libobjs
13241
13242 LTLIBOBJS=$ac_ltlibobjs
13243
13244
13245 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13246 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13247 Usually this means the macro was only invoked conditionally." >&5
13248 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13249 Usually this means the macro was only invoked conditionally." >&2;}
13250 { (exit 1); exit 1; }; }
13251 fi
13252 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13253 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13254 Usually this means the macro was only invoked conditionally." >&5
13255 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
13256 Usually this means the macro was only invoked conditionally." >&2;}
13257 { (exit 1); exit 1; }; }
13258 fi
13259 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13260 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13261 Usually this means the macro was only invoked conditionally." >&5
13262 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13263 Usually this means the macro was only invoked conditionally." >&2;}
13264 { (exit 1); exit 1; }; }
13265 fi
13266 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13267 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13268 Usually this means the macro was only invoked conditionally." >&5
13269 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13270 Usually this means the macro was only invoked conditionally." >&2;}
13271 { (exit 1); exit 1; }; }
13272 fi
13273 if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
13274 { { $as_echo "$as_me:$LINENO: error: conditional \"DRI\" was never defined.
13275 Usually this means the macro was only invoked conditionally." >&5
13276 $as_echo "$as_me: error: conditional \"DRI\" was never defined.
13277 Usually this means the macro was only invoked conditionally." >&2;}
13278 { (exit 1); exit 1; }; }
13279 fi
13280 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
13281 { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
13282 Usually this means the macro was only invoked conditionally." >&5
13283 $as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
13284 Usually this means the macro was only invoked conditionally." >&2;}
13285 { (exit 1); exit 1; }; }
13286 fi
13287
13288 : ${CONFIG_STATUS=./config.status}
13289 ac_write_fail=0
13290 ac_clean_files_save=$ac_clean_files
13291 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13292 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13293 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13294 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13295 #! $SHELL
13296 # Generated by $as_me.
13297 # Run this file to recreate the current configuration.
13298 # Compiler output produced by configure, useful for debugging
13299 # configure, is in config.log if it exists.
13300
13301 debug=false
13302 ac_cs_recheck=false
13303 ac_cs_silent=false
13304 SHELL=\${CONFIG_SHELL-$SHELL}
13305 _ACEOF
13306
13307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13308 ## --------------------- ##
13309 ## M4sh Initialization. ##
13310 ## --------------------- ##
13311
13312 # Be more Bourne compatible
13313 DUALCASE=1; export DUALCASE # for MKS sh
13314 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13315 emulate sh
13316 NULLCMD=:
13317 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13318 # is contrary to our usage. Disable this feature.
13319 alias -g '${1+"$@"}'='"$@"'
13320 setopt NO_GLOB_SUBST
13321 else
13322 case `(set -o) 2>/dev/null` in
13323 *posix*) set -o posix ;;
13324 esac
13325
13326 fi
13327
13328
13329
13330
13331 # PATH needs CR
13332 # Avoid depending upon Character Ranges.
13333 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13334 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13335 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13336 as_cr_digits='0123456789'
13337 as_cr_alnum=$as_cr_Letters$as_cr_digits
13338
13339 as_nl='
13340 '
13341 export as_nl
13342 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13343 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13344 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13345 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13346 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13347 as_echo='printf %s\n'
13348 as_echo_n='printf %s'
13349 else
13350 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13351 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13352 as_echo_n='/usr/ucb/echo -n'
13353 else
13354 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13355 as_echo_n_body='eval
13356 arg=$1;
13357 case $arg in
13358 *"$as_nl"*)
13359 expr "X$arg" : "X\\(.*\\)$as_nl";
13360 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13361 esac;
13362 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13363 '
13364 export as_echo_n_body
13365 as_echo_n='sh -c $as_echo_n_body as_echo'
13366 fi
13367 export as_echo_body
13368 as_echo='sh -c $as_echo_body as_echo'
13369 fi
13370
13371 # The user is always right.
13372 if test "${PATH_SEPARATOR+set}" != set; then
13373 PATH_SEPARATOR=:
13374 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13375 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13376 PATH_SEPARATOR=';'
13377 }
13378 fi
13379
13380 # Support unset when possible.
13381 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13382 as_unset=unset
13383 else
13384 as_unset=false
13385 fi
13386
13387
13388 # IFS
13389 # We need space, tab and new line, in precisely that order. Quoting is
13390 # there to prevent editors from complaining about space-tab.
13391 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13392 # splitting by setting IFS to empty value.)
13393 IFS=" "" $as_nl"
13394
13395 # Find who we are. Look in the path if we contain no directory separator.
13396 case $0 in
13397 *[\\/]* ) as_myself=$0 ;;
13398 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13399 for as_dir in $PATH
13400 do
13401 IFS=$as_save_IFS
13402 test -z "$as_dir" && as_dir=.
13403 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13404 done
13405 IFS=$as_save_IFS
13406
13407 ;;
13408 esac
13409 # We did not find ourselves, most probably we were run as `sh COMMAND'
13410 # in which case we are not to be found in the path.
13411 if test "x$as_myself" = x; then
13412 as_myself=$0
13413 fi
13414 if test ! -f "$as_myself"; then
13415 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13416 { (exit 1); exit 1; }
13417 fi
13418
13419 # Work around bugs in pre-3.0 UWIN ksh.
13420 for as_var in ENV MAIL MAILPATH
13421 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13422 done
13423 PS1='$ '
13424 PS2='> '
13425 PS4='+ '
13426
13427 # NLS nuisances.
13428 LC_ALL=C
13429 export LC_ALL
13430 LANGUAGE=C
13431 export LANGUAGE
13432
13433 # Required to use basename.
13434 if expr a : '\(a\)' >/dev/null 2>&1 &&
13435 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13436 as_expr=expr
13437 else
13438 as_expr=false
13439 fi
13440
13441 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13442 as_basename=basename
13443 else
13444 as_basename=false
13445 fi
13446
13447
13448 # Name of the executable.
13449 as_me=`$as_basename -- "$0" ||
13450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13451 X"$0" : 'X\(//\)$' \| \
13452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13453 $as_echo X/"$0" |
13454 sed '/^.*\/\([^/][^/]*\)\/*$/{
13455 s//\1/
13456 q
13457 }
13458 /^X\/\(\/\/\)$/{
13459 s//\1/
13460 q
13461 }
13462 /^X\/\(\/\).*/{
13463 s//\1/
13464 q
13465 }
13466 s/.*/./; q'`
13467
13468 # CDPATH.
13469 $as_unset CDPATH
13470
13471
13472
13473 as_lineno_1=$LINENO
13474 as_lineno_2=$LINENO
13475 test "x$as_lineno_1" != "x$as_lineno_2" &&
13476 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13477
13478 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13479 # uniformly replaced by the line number. The first 'sed' inserts a
13480 # line-number line after each line using $LINENO; the second 'sed'
13481 # does the real work. The second script uses 'N' to pair each
13482 # line-number line with the line containing $LINENO, and appends
13483 # trailing '-' during substitution so that $LINENO is not a special
13484 # case at line end.
13485 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13486 # scripts with optimization help from Paolo Bonzini. Blame Lee
13487 # E. McMahon (1931-1989) for sed's syntax. :-)
13488 sed -n '
13489 p
13490 /[$]LINENO/=
13491 ' <$as_myself |
13492 sed '
13493 s/[$]LINENO.*/&-/
13494 t lineno
13495 b
13496 :lineno
13497 N
13498 :loop
13499 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13500 t loop
13501 s/-\n.*//
13502 ' >$as_me.lineno &&
13503 chmod +x "$as_me.lineno" ||
13504 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13505 { (exit 1); exit 1; }; }
13506
13507 # Don't try to exec as it changes $[0], causing all sort of problems
13508 # (the dirname of $[0] is not the place where we might find the
13509 # original and so on. Autoconf is especially sensitive to this).
13510 . "./$as_me.lineno"
13511 # Exit status is that of the last command.
13512 exit
13513 }
13514
13515
13516 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13517 as_dirname=dirname
13518 else
13519 as_dirname=false
13520 fi
13521
13522 ECHO_C= ECHO_N= ECHO_T=
13523 case `echo -n x` in
13524 -n*)
13525 case `echo 'x\c'` in
13526 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13527 *) ECHO_C='\c';;
13528 esac;;
13529 *)
13530 ECHO_N='-n';;
13531 esac
13532 if expr a : '\(a\)' >/dev/null 2>&1 &&
13533 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13534 as_expr=expr
13535 else
13536 as_expr=false
13537 fi
13538
13539 rm -f conf$$ conf$$.exe conf$$.file
13540 if test -d conf$$.dir; then
13541 rm -f conf$$.dir/conf$$.file
13542 else
13543 rm -f conf$$.dir
13544 mkdir conf$$.dir 2>/dev/null
13545 fi
13546 if (echo >conf$$.file) 2>/dev/null; then
13547 if ln -s conf$$.file conf$$ 2>/dev/null; then
13548 as_ln_s='ln -s'
13549 # ... but there are two gotchas:
13550 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13551 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13552 # In both cases, we have to default to `cp -p'.
13553 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13554 as_ln_s='cp -p'
13555 elif ln conf$$.file conf$$ 2>/dev/null; then
13556 as_ln_s=ln
13557 else
13558 as_ln_s='cp -p'
13559 fi
13560 else
13561 as_ln_s='cp -p'
13562 fi
13563 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13564 rmdir conf$$.dir 2>/dev/null
13565
13566 if mkdir -p . 2>/dev/null; then
13567 as_mkdir_p=:
13568 else
13569 test -d ./-p && rmdir ./-p
13570 as_mkdir_p=false
13571 fi
13572
13573 if test -x / >/dev/null 2>&1; then
13574 as_test_x='test -x'
13575 else
13576 if ls -dL / >/dev/null 2>&1; then
13577 as_ls_L_option=L
13578 else
13579 as_ls_L_option=
13580 fi
13581 as_test_x='
13582 eval sh -c '\''
13583 if test -d "$1"; then
13584 test -d "$1/.";
13585 else
13586 case $1 in
13587 -*)set "./$1";;
13588 esac;
13589 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13590 ???[sx]*):;;*)false;;esac;fi
13591 '\'' sh
13592 '
13593 fi
13594 as_executable_p=$as_test_x
13595
13596 # Sed expression to map a string onto a valid CPP name.
13597 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13598
13599 # Sed expression to map a string onto a valid variable name.
13600 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13601
13602
13603 exec 6>&1
13604
13605 # Save the log message, to keep $[0] and so on meaningful, and to
13606 # report actual input values of CONFIG_FILES etc. instead of their
13607 # values after options handling.
13608 ac_log="
13609 This file was extended by xf86-video-savage $as_me 2.3.0, which was
13610 generated by GNU Autoconf 2.63. Invocation command line was
13611
13612 CONFIG_FILES = $CONFIG_FILES
13613 CONFIG_HEADERS = $CONFIG_HEADERS
13614 CONFIG_LINKS = $CONFIG_LINKS
13615 CONFIG_COMMANDS = $CONFIG_COMMANDS
13616 $ $0 $@
13617
13618 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13619 "
13620
13621 _ACEOF
13622
13623 case $ac_config_files in *"
13624 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13625 esac
13626
13627 case $ac_config_headers in *"
13628 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13629 esac
13630
13631
13632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13633 # Files that config.status was made for.
13634 config_files="$ac_config_files"
13635 config_headers="$ac_config_headers"
13636 config_commands="$ac_config_commands"
13637
13638 _ACEOF
13639
13640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13641 ac_cs_usage="\
13642 \`$as_me' instantiates files from templates according to the
13643 current configuration.
13644
13645 Usage: $0 [OPTION]... [FILE]...
13646
13647 -h, --help print this help, then exit
13648 -V, --version print version number and configuration settings, then exit
13649 -q, --quiet, --silent
13650 do not print progress messages
13651 -d, --debug don't remove temporary files
13652 --recheck update $as_me by reconfiguring in the same conditions
13653 --file=FILE[:TEMPLATE]
13654 instantiate the configuration file FILE
13655 --header=FILE[:TEMPLATE]
13656 instantiate the configuration header FILE
13657
13658 Configuration files:
13659 $config_files
13660
13661 Configuration headers:
13662 $config_headers
13663
13664 Configuration commands:
13665 $config_commands
13666
13667 Report bugs to <bug-autoconf (at] gnu.org>."
13668
13669 _ACEOF
13670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13671 ac_cs_version="\\
13672 xf86-video-savage config.status 2.3.0
13673 configured by $0, generated by GNU Autoconf 2.63,
13674 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13675
13676 Copyright (C) 2008 Free Software Foundation, Inc.
13677 This config.status script is free software; the Free Software Foundation
13678 gives unlimited permission to copy, distribute and modify it."
13679
13680 ac_pwd='$ac_pwd'
13681 srcdir='$srcdir'
13682 INSTALL='$INSTALL'
13683 MKDIR_P='$MKDIR_P'
13684 AWK='$AWK'
13685 test -n "\$AWK" || AWK=awk
13686 _ACEOF
13687
13688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13689 # The default lists apply if the user does not specify any file.
13690 ac_need_defaults=:
13691 while test $# != 0
13692 do
13693 case $1 in
13694 --*=*)
13695 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13696 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13697 ac_shift=:
13698 ;;
13699 *)
13700 ac_option=$1
13701 ac_optarg=$2
13702 ac_shift=shift
13703 ;;
13704 esac
13705
13706 case $ac_option in
13707 # Handling of the options.
13708 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13709 ac_cs_recheck=: ;;
13710 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13711 $as_echo "$ac_cs_version"; exit ;;
13712 --debug | --debu | --deb | --de | --d | -d )
13713 debug=: ;;
13714 --file | --fil | --fi | --f )
13715 $ac_shift
13716 case $ac_optarg in
13717 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13718 esac
13719 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13720 ac_need_defaults=false;;
13721 --header | --heade | --head | --hea )
13722 $ac_shift
13723 case $ac_optarg in
13724 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13725 esac
13726 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13727 ac_need_defaults=false;;
13728 --he | --h)
13729 # Conflict between --help and --header
13730 { $as_echo "$as_me: error: ambiguous option: $1
13731 Try \`$0 --help' for more information." >&2
13732 { (exit 1); exit 1; }; };;
13733 --help | --hel | -h )
13734 $as_echo "$ac_cs_usage"; exit ;;
13735 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13736 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13737 ac_cs_silent=: ;;
13738
13739 # This is an error.
13740 -*) { $as_echo "$as_me: error: unrecognized option: $1
13741 Try \`$0 --help' for more information." >&2
13742 { (exit 1); exit 1; }; } ;;
13743
13744 *) ac_config_targets="$ac_config_targets $1"
13745 ac_need_defaults=false ;;
13746
13747 esac
13748 shift
13749 done
13750
13751 ac_configure_extra_args=
13752
13753 if $ac_cs_silent; then
13754 exec 6>/dev/null
13755 ac_configure_extra_args="$ac_configure_extra_args --silent"
13756 fi
13757
13758 _ACEOF
13759 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13760 if \$ac_cs_recheck; then
13761 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13762 shift
13763 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13764 CONFIG_SHELL='$SHELL'
13765 export CONFIG_SHELL
13766 exec "\$@"
13767 fi
13768
13769 _ACEOF
13770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13771 exec 5>>config.log
13772 {
13773 echo
13774 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13775 ## Running $as_me. ##
13776 _ASBOX
13777 $as_echo "$ac_log"
13778 } >&5
13779
13780 _ACEOF
13781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13782 #
13783 # INIT-COMMANDS
13784 #
13785 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13786
13787
13788 # The HP-UX ksh and POSIX shell print the target directory to stdout
13789 # if CDPATH is set.
13790 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13791
13792 sed_quote_subst='$sed_quote_subst'
13793 double_quote_subst='$double_quote_subst'
13794 delay_variable_subst='$delay_variable_subst'
13795 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13796 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13797 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13798 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13799 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13800 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13801 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13802 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13803 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13804 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13805 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13806 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13807 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13808 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13809 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13810 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13811 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13812 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13813 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13814 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13815 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13816 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13817 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13818 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13819 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13820 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13821 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13822 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13823 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13824 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13825 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13826 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13827 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13828 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13829 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13830 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13831 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13832 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13833 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13834 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13835 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13836 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13837 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13838 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13839 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"`'
13840 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"`'
13841 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13842 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13843 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13844 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13845 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13846 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13847 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13848 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13849 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13850 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13851 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13852 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13853 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13854 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13855 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13856 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13857 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13858 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13859 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13860 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13861 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13862 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13863 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13864 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13865 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13866 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13867 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13868 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13869 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13870 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13871 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13872 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13873 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13874 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13875 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13876 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13877 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13878 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13879 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13880 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13881 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13882 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13883 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13884 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13885 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13886 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13887 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13888 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13889 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13890 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13891 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13892 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13893 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13894 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13895 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13896 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13897 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13898 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13899 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13900 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13901 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13902 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13903 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13904 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13905 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13906 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13907 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13908 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13909 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13910 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13911 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13912 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13913
13914 LTCC='$LTCC'
13915 LTCFLAGS='$LTCFLAGS'
13916 compiler='$compiler_DEFAULT'
13917
13918 # Quote evaled strings.
13919 for var in SED \
13920 GREP \
13921 EGREP \
13922 FGREP \
13923 LD \
13924 NM \
13925 LN_S \
13926 lt_SP2NL \
13927 lt_NL2SP \
13928 reload_flag \
13929 OBJDUMP \
13930 deplibs_check_method \
13931 file_magic_cmd \
13932 AR \
13933 AR_FLAGS \
13934 STRIP \
13935 RANLIB \
13936 CC \
13937 CFLAGS \
13938 compiler \
13939 lt_cv_sys_global_symbol_pipe \
13940 lt_cv_sys_global_symbol_to_cdecl \
13941 lt_cv_sys_global_symbol_to_c_name_address \
13942 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13943 SHELL \
13944 ECHO \
13945 lt_prog_compiler_no_builtin_flag \
13946 lt_prog_compiler_wl \
13947 lt_prog_compiler_pic \
13948 lt_prog_compiler_static \
13949 lt_cv_prog_compiler_c_o \
13950 need_locks \
13951 DSYMUTIL \
13952 NMEDIT \
13953 LIPO \
13954 OTOOL \
13955 OTOOL64 \
13956 shrext_cmds \
13957 export_dynamic_flag_spec \
13958 whole_archive_flag_spec \
13959 compiler_needs_object \
13960 with_gnu_ld \
13961 allow_undefined_flag \
13962 no_undefined_flag \
13963 hardcode_libdir_flag_spec \
13964 hardcode_libdir_flag_spec_ld \
13965 hardcode_libdir_separator \
13966 fix_srcfile_path \
13967 exclude_expsyms \
13968 include_expsyms \
13969 file_list_spec \
13970 variables_saved_for_relink \
13971 libname_spec \
13972 library_names_spec \
13973 soname_spec \
13974 finish_eval \
13975 old_striplib \
13976 striplib; do
13977 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13978 *[\\\\\\\`\\"\\\$]*)
13979 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13980 ;;
13981 *)
13982 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13983 ;;
13984 esac
13985 done
13986
13987 # Double-quote double-evaled strings.
13988 for var in reload_cmds \
13989 old_postinstall_cmds \
13990 old_postuninstall_cmds \
13991 old_archive_cmds \
13992 extract_expsyms_cmds \
13993 old_archive_from_new_cmds \
13994 old_archive_from_expsyms_cmds \
13995 archive_cmds \
13996 archive_expsym_cmds \
13997 module_cmds \
13998 module_expsym_cmds \
13999 export_symbols_cmds \
14000 prelink_cmds \
14001 postinstall_cmds \
14002 postuninstall_cmds \
14003 finish_cmds \
14004 sys_lib_search_path_spec \
14005 sys_lib_dlsearch_path_spec; do
14006 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14007 *[\\\\\\\`\\"\\\$]*)
14008 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14009 ;;
14010 *)
14011 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14012 ;;
14013 esac
14014 done
14015
14016 # Fix-up fallback echo if it was mangled by the above quoting rules.
14017 case \$lt_ECHO in
14018 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14019 ;;
14020 esac
14021
14022 ac_aux_dir='$ac_aux_dir'
14023 xsi_shell='$xsi_shell'
14024 lt_shell_append='$lt_shell_append'
14025
14026 # See if we are running on zsh, and set the options which allow our
14027 # commands through without removal of \ escapes INIT.
14028 if test -n "\${ZSH_VERSION+set}" ; then
14029 setopt NO_GLOB_SUBST
14030 fi
14031
14032
14033 PACKAGE='$PACKAGE'
14034 VERSION='$VERSION'
14035 TIMESTAMP='$TIMESTAMP'
14036 RM='$RM'
14037 ofile='$ofile'
14038
14039
14040
14041
14042 _ACEOF
14043
14044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14045
14046 # Handling of arguments.
14047 for ac_config_target in $ac_config_targets
14048 do
14049 case $ac_config_target in
14050 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14051 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14052 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14053 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14054 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14055 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14056
14057 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14058 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14059 { (exit 1); exit 1; }; };;
14060 esac
14061 done
14062
14063
14064 # If the user did not use the arguments to specify the items to instantiate,
14065 # then the envvar interface is used. Set only those that are not.
14066 # We use the long form for the default assignment because of an extremely
14067 # bizarre bug on SunOS 4.1.3.
14068 if $ac_need_defaults; then
14069 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14070 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14071 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14072 fi
14073
14074 # Have a temporary directory for convenience. Make it in the build tree
14075 # simply because there is no reason against having it here, and in addition,
14076 # creating and moving files from /tmp can sometimes cause problems.
14077 # Hook for its removal unless debugging.
14078 # Note that there is a small window in which the directory will not be cleaned:
14079 # after its creation but before its name has been assigned to `$tmp'.
14080 $debug ||
14081 {
14082 tmp=
14083 trap 'exit_status=$?
14084 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14085 ' 0
14086 trap '{ (exit 1); exit 1; }' 1 2 13 15
14087 }
14088 # Create a (secure) tmp directory for tmp files.
14089
14090 {
14091 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14092 test -n "$tmp" && test -d "$tmp"
14093 } ||
14094 {
14095 tmp=./conf$$-$RANDOM
14096 (umask 077 && mkdir "$tmp")
14097 } ||
14098 {
14099 $as_echo "$as_me: cannot create a temporary directory in ." >&2
14100 { (exit 1); exit 1; }
14101 }
14102
14103 # Set up the scripts for CONFIG_FILES section.
14104 # No need to generate them if there are no CONFIG_FILES.
14105 # This happens for instance with `./config.status config.h'.
14106 if test -n "$CONFIG_FILES"; then
14107
14108
14109 ac_cr='
'
14111 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14112 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14113 ac_cs_awk_cr='\\r'
14114 else
14115 ac_cs_awk_cr=$ac_cr
14116 fi
14117
14118 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14119 _ACEOF
14120
14121
14122 {
14123 echo "cat >conf$$subs.awk <<_ACEOF" &&
14124 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14125 echo "_ACEOF"
14126 } >conf$$subs.sh ||
14127 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14128 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14129 { (exit 1); exit 1; }; }
14130 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14131 ac_delim='%!_!# '
14132 for ac_last_try in false false false false false :; do
14133 . ./conf$$subs.sh ||
14134 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14135 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14136 { (exit 1); exit 1; }; }
14137
14138 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14139 if test $ac_delim_n = $ac_delim_num; then
14140 break
14141 elif $ac_last_try; then
14142 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14143 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14144 { (exit 1); exit 1; }; }
14145 else
14146 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14147 fi
14148 done
14149 rm -f conf$$subs.sh
14150
14151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14152 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14153 _ACEOF
14154 sed -n '
14155 h
14156 s/^/S["/; s/!.*/"]=/
14157 p
14158 g
14159 s/^[^!]*!//
14160 :repl
14161 t repl
14162 s/'"$ac_delim"'$//
14163 t delim
14164 :nl
14165 h
14166 s/\(.\{148\}\).*/\1/
14167 t more1
14168 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14169 p
14170 n
14171 b repl
14172 :more1
14173 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14174 p
14175 g
14176 s/.\{148\}//
14177 t nl
14178 :delim
14179 h
14180 s/\(.\{148\}\).*/\1/
14181 t more2
14182 s/["\\]/\\&/g; s/^/"/; s/$/"/
14183 p
14184 b
14185 :more2
14186 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14187 p
14188 g
14189 s/.\{148\}//
14190 t delim
14191 ' <conf$$subs.awk | sed '
14192 /^[^""]/{
14193 N
14194 s/\n//
14195 }
14196 ' >>$CONFIG_STATUS || ac_write_fail=1
14197 rm -f conf$$subs.awk
14198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14199 _ACAWK
14200 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14201 for (key in S) S_is_set[key] = 1
14202 FS = ""
14203
14204 }
14205 {
14206 line = $ 0
14207 nfields = split(line, field, "@")
14208 substed = 0
14209 len = length(field[1])
14210 for (i = 2; i < nfields; i++) {
14211 key = field[i]
14212 keylen = length(key)
14213 if (S_is_set[key]) {
14214 value = S[key]
14215 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14216 len += length(value) + length(field[++i])
14217 substed = 1
14218 } else
14219 len += 1 + keylen
14220 }
14221
14222 print line
14223 }
14224
14225 _ACAWK
14226 _ACEOF
14227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14228 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14229 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14230 else
14231 cat
14232 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14233 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14234 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
14235 { (exit 1); exit 1; }; }
14236 _ACEOF
14237
14238 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14239 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14240 # trailing colons and then remove the whole line if VPATH becomes empty
14241 # (actually we leave an empty line to preserve line numbers).
14242 if test "x$srcdir" = x.; then
14243 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14244 s/:*\$(srcdir):*/:/
14245 s/:*\${srcdir}:*/:/
14246 s/:*@srcdir@:*/:/
14247 s/^\([^=]*=[ ]*\):*/\1/
14248 s/:*$//
14249 s/^[^=]*=[ ]*$//
14250 }'
14251 fi
14252
14253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14254 fi # test -n "$CONFIG_FILES"
14255
14256 # Set up the scripts for CONFIG_HEADERS section.
14257 # No need to generate them if there are no CONFIG_HEADERS.
14258 # This happens for instance with `./config.status Makefile'.
14259 if test -n "$CONFIG_HEADERS"; then
14260 cat >"$tmp/defines.awk" <<\_ACAWK ||
14261 BEGIN {
14262 _ACEOF
14263
14264 # Transform confdefs.h into an awk script `defines.awk', embedded as
14265 # here-document in config.status, that substitutes the proper values into
14266 # config.h.in to produce config.h.
14267
14268 # Create a delimiter string that does not exist in confdefs.h, to ease
14269 # handling of long lines.
14270 ac_delim='%!_!# '
14271 for ac_last_try in false false :; do
14272 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14273 if test -z "$ac_t"; then
14274 break
14275 elif $ac_last_try; then
14276 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14277 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14278 { (exit 1); exit 1; }; }
14279 else
14280 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14281 fi
14282 done
14283
14284 # For the awk script, D is an array of macro values keyed by name,
14285 # likewise P contains macro parameters if any. Preserve backslash
14286 # newline sequences.
14287
14288 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14289 sed -n '
14290 s/.\{148\}/&'"$ac_delim"'/g
14291 t rset
14292 :rset
14293 s/^[ ]*#[ ]*define[ ][ ]*/ /
14294 t def
14295 d
14296 :def
14297 s/\\$//
14298 t bsnl
14299 s/["\\]/\\&/g
14300 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14301 D["\1"]=" \3"/p
14302 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14303 d
14304 :bsnl
14305 s/["\\]/\\&/g
14306 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14307 D["\1"]=" \3\\\\\\n"\\/p
14308 t cont
14309 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14310 t cont
14311 d
14312 :cont
14313 n
14314 s/.\{148\}/&'"$ac_delim"'/g
14315 t clear
14316 :clear
14317 s/\\$//
14318 t bsnlc
14319 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14320 d
14321 :bsnlc
14322 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14323 b cont
14324 ' <confdefs.h | sed '
14325 s/'"$ac_delim"'/"\\\
14326 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14327
14328 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14329 for (key in D) D_is_set[key] = 1
14330 FS = ""
14331 }
14332 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14333 line = \$ 0
14334 split(line, arg, " ")
14335 if (arg[1] == "#") {
14336 defundef = arg[2]
14337 mac1 = arg[3]
14338 } else {
14339 defundef = substr(arg[1], 2)
14340 mac1 = arg[2]
14341 }
14342 split(mac1, mac2, "(") #)
14343 macro = mac2[1]
14344 prefix = substr(line, 1, index(line, defundef) - 1)
14345 if (D_is_set[macro]) {
14346 # Preserve the white space surrounding the "#".
14347 print prefix "define", macro P[macro] D[macro]
14348 next
14349 } else {
14350 # Replace #undef with comments. This is necessary, for example,
14351 # in the case of _POSIX_SOURCE, which is predefined and required
14352 # on some systems where configure will not decide to define it.
14353 if (defundef == "undef") {
14354 print "/*", prefix defundef, macro, "*/"
14355 next
14356 }
14357 }
14358 }
14359 { print }
14360 _ACAWK
14361 _ACEOF
14362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14363 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14364 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14365 { (exit 1); exit 1; }; }
14366 fi # test -n "$CONFIG_HEADERS"
14367
14368
14369 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14370 shift
14371 for ac_tag
14372 do
14373 case $ac_tag in
14374 :[FHLC]) ac_mode=$ac_tag; continue;;
14375 esac
14376 case $ac_mode$ac_tag in
14377 :[FHL]*:*);;
14378 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14379 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14380 { (exit 1); exit 1; }; };;
14381 :[FH]-) ac_tag=-:-;;
14382 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14383 esac
14384 ac_save_IFS=$IFS
14385 IFS=:
14386 set x $ac_tag
14387 IFS=$ac_save_IFS
14388 shift
14389 ac_file=$1
14390 shift
14391
14392 case $ac_mode in
14393 :L) ac_source=$1;;
14394 :[FH])
14395 ac_file_inputs=
14396 for ac_f
14397 do
14398 case $ac_f in
14399 -) ac_f="$tmp/stdin";;
14400 *) # Look for the file first in the build tree, then in the source tree
14401 # (if the path is not absolute). The absolute path cannot be DOS-style,
14402 # because $ac_f cannot contain `:'.
14403 test -f "$ac_f" ||
14404 case $ac_f in
14405 [\\/$]*) false;;
14406 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14407 esac ||
14408 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14409 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14410 { (exit 1); exit 1; }; };;
14411 esac
14412 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14413 ac_file_inputs="$ac_file_inputs '$ac_f'"
14414 done
14415
14416 # Let's still pretend it is `configure' which instantiates (i.e., don't
14417 # use $as_me), people would be surprised to read:
14418 # /* config.h. Generated by config.status. */
14419 configure_input='Generated from '`
14420 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14421 `' by configure.'
14422 if test x"$ac_file" != x-; then
14423 configure_input="$ac_file. $configure_input"
14424 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14425 $as_echo "$as_me: creating $ac_file" >&6;}
14426 fi
14427 # Neutralize special characters interpreted by sed in replacement strings.
14428 case $configure_input in #(
14429 *\&* | *\|* | *\\* )
14430 ac_sed_conf_input=`$as_echo "$configure_input" |
14431 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14432 *) ac_sed_conf_input=$configure_input;;
14433 esac
14434
14435 case $ac_tag in
14436 *:-:* | *:-) cat >"$tmp/stdin" \
14437 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14438 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14439 { (exit 1); exit 1; }; } ;;
14440 esac
14441 ;;
14442 esac
14443
14444 ac_dir=`$as_dirname -- "$ac_file" ||
14445 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14446 X"$ac_file" : 'X\(//\)[^/]' \| \
14447 X"$ac_file" : 'X\(//\)$' \| \
14448 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14449 $as_echo X"$ac_file" |
14450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14451 s//\1/
14452 q
14453 }
14454 /^X\(\/\/\)[^/].*/{
14455 s//\1/
14456 q
14457 }
14458 /^X\(\/\/\)$/{
14459 s//\1/
14460 q
14461 }
14462 /^X\(\/\).*/{
14463 s//\1/
14464 q
14465 }
14466 s/.*/./; q'`
14467 { as_dir="$ac_dir"
14468 case $as_dir in #(
14469 -*) as_dir=./$as_dir;;
14470 esac
14471 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14472 as_dirs=
14473 while :; do
14474 case $as_dir in #(
14475 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14476 *) as_qdir=$as_dir;;
14477 esac
14478 as_dirs="'$as_qdir' $as_dirs"
14479 as_dir=`$as_dirname -- "$as_dir" ||
14480 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14481 X"$as_dir" : 'X\(//\)[^/]' \| \
14482 X"$as_dir" : 'X\(//\)$' \| \
14483 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14484 $as_echo X"$as_dir" |
14485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14486 s//\1/
14487 q
14488 }
14489 /^X\(\/\/\)[^/].*/{
14490 s//\1/
14491 q
14492 }
14493 /^X\(\/\/\)$/{
14494 s//\1/
14495 q
14496 }
14497 /^X\(\/\).*/{
14498 s//\1/
14499 q
14500 }
14501 s/.*/./; q'`
14502 test -d "$as_dir" && break
14503 done
14504 test -z "$as_dirs" || eval "mkdir $as_dirs"
14505 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14506 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14507 { (exit 1); exit 1; }; }; }
14508 ac_builddir=.
14509
14510 case "$ac_dir" in
14511 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14512 *)
14513 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14514 # A ".." for each directory in $ac_dir_suffix.
14515 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14516 case $ac_top_builddir_sub in
14517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14519 esac ;;
14520 esac
14521 ac_abs_top_builddir=$ac_pwd
14522 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14523 # for backward compatibility:
14524 ac_top_builddir=$ac_top_build_prefix
14525
14526 case $srcdir in
14527 .) # We are building in place.
14528 ac_srcdir=.
14529 ac_top_srcdir=$ac_top_builddir_sub
14530 ac_abs_top_srcdir=$ac_pwd ;;
14531 [\\/]* | ?:[\\/]* ) # Absolute name.
14532 ac_srcdir=$srcdir$ac_dir_suffix;
14533 ac_top_srcdir=$srcdir
14534 ac_abs_top_srcdir=$srcdir ;;
14535 *) # Relative name.
14536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14537 ac_top_srcdir=$ac_top_build_prefix$srcdir
14538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14539 esac
14540 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14541
14542
14543 case $ac_mode in
14544 :F)
14545 #
14546 # CONFIG_FILE
14547 #
14548
14549 case $INSTALL in
14550 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14551 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14552 esac
14553 ac_MKDIR_P=$MKDIR_P
14554 case $MKDIR_P in
14555 [\\/$]* | ?:[\\/]* ) ;;
14556 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14557 esac
14558 _ACEOF
14559
14560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14561 # If the template does not know about datarootdir, expand it.
14562 # FIXME: This hack should be removed a few years after 2.60.
14563 ac_datarootdir_hack=; ac_datarootdir_seen=
14564
14565 ac_sed_dataroot='
14566 /datarootdir/ {
14567 p
14568 q
14569 }
14570 /@datadir@/p
14571 /@docdir@/p
14572 /@infodir@/p
14573 /@localedir@/p
14574 /@mandir@/p
14575 '
14576 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14577 *datarootdir*) ac_datarootdir_seen=yes;;
14578 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14579 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14580 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14581 _ACEOF
14582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14583 ac_datarootdir_hack='
14584 s&@datadir@&$datadir&g
14585 s&@docdir@&$docdir&g
14586 s&@infodir@&$infodir&g
14587 s&@localedir@&$localedir&g
14588 s&@mandir@&$mandir&g
14589 s&\\\${datarootdir}&$datarootdir&g' ;;
14590 esac
14591 _ACEOF
14592
14593 # Neutralize VPATH when `$srcdir' = `.'.
14594 # Shell code in configure.ac might set extrasub.
14595 # FIXME: do we really want to maintain this feature?
14596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14597 ac_sed_extra="$ac_vpsub
14598 $extrasub
14599 _ACEOF
14600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14601 :t
14602 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14603 s|@configure_input@|$ac_sed_conf_input|;t t
14604 s&@top_builddir@&$ac_top_builddir_sub&;t t
14605 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14606 s&@srcdir@&$ac_srcdir&;t t
14607 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14608 s&@top_srcdir@&$ac_top_srcdir&;t t
14609 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14610 s&@builddir@&$ac_builddir&;t t
14611 s&@abs_builddir@&$ac_abs_builddir&;t t
14612 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14613 s&@INSTALL@&$ac_INSTALL&;t t
14614 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14615 $ac_datarootdir_hack
14616 "
14617 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14618 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14619 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14620 { (exit 1); exit 1; }; }
14621
14622 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14623 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14624 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14625 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14626 which seems to be undefined. Please make sure it is defined." >&5
14627 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14628 which seems to be undefined. Please make sure it is defined." >&2;}
14629
14630 rm -f "$tmp/stdin"
14631 case $ac_file in
14632 -) cat "$tmp/out" && rm -f "$tmp/out";;
14633 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14634 esac \
14635 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14636 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14637 { (exit 1); exit 1; }; }
14638 ;;
14639 :H)
14640 #
14641 # CONFIG_HEADER
14642 #
14643 if test x"$ac_file" != x-; then
14644 {
14645 $as_echo "/* $configure_input */" \
14646 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14647 } >"$tmp/config.h" \
14648 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14649 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14650 { (exit 1); exit 1; }; }
14651 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14652 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14653 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14654 else
14655 rm -f "$ac_file"
14656 mv "$tmp/config.h" "$ac_file" \
14657 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14658 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14659 { (exit 1); exit 1; }; }
14660 fi
14661 else
14662 $as_echo "/* $configure_input */" \
14663 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14664 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14665 $as_echo "$as_me: error: could not create -" >&2;}
14666 { (exit 1); exit 1; }; }
14667 fi
14668 # Compute "$ac_file"'s index in $config_headers.
14669 _am_arg="$ac_file"
14670 _am_stamp_count=1
14671 for _am_header in $config_headers :; do
14672 case $_am_header in
14673 $_am_arg | $_am_arg:* )
14674 break ;;
14675 * )
14676 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14677 esac
14678 done
14679 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14680 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14681 X"$_am_arg" : 'X\(//\)[^/]' \| \
14682 X"$_am_arg" : 'X\(//\)$' \| \
14683 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14684 $as_echo X"$_am_arg" |
14685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14686 s//\1/
14687 q
14688 }
14689 /^X\(\/\/\)[^/].*/{
14690 s//\1/
14691 q
14692 }
14693 /^X\(\/\/\)$/{
14694 s//\1/
14695 q
14696 }
14697 /^X\(\/\).*/{
14698 s//\1/
14699 q
14700 }
14701 s/.*/./; q'`/stamp-h$_am_stamp_count
14702 ;;
14703
14704 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14705 $as_echo "$as_me: executing $ac_file commands" >&6;}
14706 ;;
14707 esac
14708
14709
14710 case $ac_file$ac_mode in
14711 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
14712 # are listed without --file. Let's play safe and only enable the eval
14713 # if we detect the quoting.
14714 case $CONFIG_FILES in
14715 *\'*) eval set x "$CONFIG_FILES" ;;
14716 *) set x $CONFIG_FILES ;;
14717 esac
14718 shift
14719 for mf
14720 do
14721 # Strip MF so we end up with the name of the file.
14722 mf=`echo "$mf" | sed -e 's/:.*$//'`
14723 # Check whether this is an Automake generated Makefile or not.
14724 # We used to match only the files named `Makefile.in', but
14725 # some people rename them; so instead we look at the file content.
14726 # Grep'ing the first line is not enough: some people post-process
14727 # each Makefile.in and add a new line on top of each file to say so.
14728 # Grep'ing the whole file is not good either: AIX grep has a line
14729 # limit of 2048, but all sed's we know have understand at least 4000.
14730 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14731 dirpart=`$as_dirname -- "$mf" ||
14732 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14733 X"$mf" : 'X\(//\)[^/]' \| \
14734 X"$mf" : 'X\(//\)$' \| \
14735 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14736 $as_echo X"$mf" |
14737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14738 s//\1/
14739 q
14740 }
14741 /^X\(\/\/\)[^/].*/{
14742 s//\1/
14743 q
14744 }
14745 /^X\(\/\/\)$/{
14746 s//\1/
14747 q
14748 }
14749 /^X\(\/\).*/{
14750 s//\1/
14751 q
14752 }
14753 s/.*/./; q'`
14754 else
14755 continue
14756 fi
14757 # Extract the definition of DEPDIR, am__include, and am__quote
14758 # from the Makefile without running `make'.
14759 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14760 test -z "$DEPDIR" && continue
14761 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14762 test -z "am__include" && continue
14763 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14764 # When using ansi2knr, U may be empty or an underscore; expand it
14765 U=`sed -n 's/^U = //p' < "$mf"`
14766 # Find all dependency output files, they are included files with
14767 # $(DEPDIR) in their names. We invoke sed twice because it is the
14768 # simplest approach to changing $(DEPDIR) to its actual value in the
14769 # expansion.
14770 for file in `sed -n "
14771 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14772 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14773 # Make sure the directory exists.
14774 test -f "$dirpart/$file" && continue
14775 fdir=`$as_dirname -- "$file" ||
14776 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14777 X"$file" : 'X\(//\)[^/]' \| \
14778 X"$file" : 'X\(//\)$' \| \
14779 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14780 $as_echo X"$file" |
14781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14782 s//\1/
14783 q
14784 }
14785 /^X\(\/\/\)[^/].*/{
14786 s//\1/
14787 q
14788 }
14789 /^X\(\/\/\)$/{
14790 s//\1/
14791 q
14792 }
14793 /^X\(\/\).*/{
14794 s//\1/
14795 q
14796 }
14797 s/.*/./; q'`
14798 { as_dir=$dirpart/$fdir
14799 case $as_dir in #(
14800 -*) as_dir=./$as_dir;;
14801 esac
14802 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14803 as_dirs=
14804 while :; do
14805 case $as_dir in #(
14806 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14807 *) as_qdir=$as_dir;;
14808 esac
14809 as_dirs="'$as_qdir' $as_dirs"
14810 as_dir=`$as_dirname -- "$as_dir" ||
14811 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14812 X"$as_dir" : 'X\(//\)[^/]' \| \
14813 X"$as_dir" : 'X\(//\)$' \| \
14814 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14815 $as_echo X"$as_dir" |
14816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14817 s//\1/
14818 q
14819 }
14820 /^X\(\/\/\)[^/].*/{
14821 s//\1/
14822 q
14823 }
14824 /^X\(\/\/\)$/{
14825 s//\1/
14826 q
14827 }
14828 /^X\(\/\).*/{
14829 s//\1/
14830 q
14831 }
14832 s/.*/./; q'`
14833 test -d "$as_dir" && break
14834 done
14835 test -z "$as_dirs" || eval "mkdir $as_dirs"
14836 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14837 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14838 { (exit 1); exit 1; }; }; }
14839 # echo "creating $dirpart/$file"
14840 echo '# dummy' > "$dirpart/$file"
14841 done
14842 done
14843 ;;
14844 "libtool":C)
14845
14846 # See if we are running on zsh, and set the options which allow our
14847 # commands through without removal of \ escapes.
14848 if test -n "${ZSH_VERSION+set}" ; then
14849 setopt NO_GLOB_SUBST
14850 fi
14851
14852 cfgfile="${ofile}T"
14853 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14854 $RM "$cfgfile"
14855
14856 cat <<_LT_EOF >> "$cfgfile"
14857 #! $SHELL
14858
14859 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14860 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14861 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14862 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14863 #
14864 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14865 # 2006, 2007, 2008 Free Software Foundation, Inc.
14866 # Written by Gordon Matzigkeit, 1996
14867 #
14868 # This file is part of GNU Libtool.
14869 #
14870 # GNU Libtool is free software; you can redistribute it and/or
14871 # modify it under the terms of the GNU General Public License as
14872 # published by the Free Software Foundation; either version 2 of
14873 # the License, or (at your option) any later version.
14874 #
14875 # As a special exception to the GNU General Public License,
14876 # if you distribute this file as part of a program or library that
14877 # is built using GNU Libtool, you may include this file under the
14878 # same distribution terms that you use for the rest of that program.
14879 #
14880 # GNU Libtool is distributed in the hope that it will be useful,
14881 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14882 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14883 # GNU General Public License for more details.
14884 #
14885 # You should have received a copy of the GNU General Public License
14886 # along with GNU Libtool; see the file COPYING. If not, a copy
14887 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14888 # obtained by writing to the Free Software Foundation, Inc.,
14889 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14890
14891
14892 # The names of the tagged configurations supported by this script.
14893 available_tags=""
14894
14895 # ### BEGIN LIBTOOL CONFIG
14896
14897 # Whether or not to build static libraries.
14898 build_old_libs=$enable_static
14899
14900 # Which release of libtool.m4 was used?
14901 macro_version=$macro_version
14902 macro_revision=$macro_revision
14903
14904 # Whether or not to build shared libraries.
14905 build_libtool_libs=$enable_shared
14906
14907 # What type of objects to build.
14908 pic_mode=$pic_mode
14909
14910 # Whether or not to optimize for fast installation.
14911 fast_install=$enable_fast_install
14912
14913 # The host system.
14914 host_alias=$host_alias
14915 host=$host
14916 host_os=$host_os
14917
14918 # The build system.
14919 build_alias=$build_alias
14920 build=$build
14921 build_os=$build_os
14922
14923 # A sed program that does not truncate output.
14924 SED=$lt_SED
14925
14926 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14927 Xsed="\$SED -e 1s/^X//"
14928
14929 # A grep program that handles long lines.
14930 GREP=$lt_GREP
14931
14932 # An ERE matcher.
14933 EGREP=$lt_EGREP
14934
14935 # A literal string matcher.
14936 FGREP=$lt_FGREP
14937
14938 # A BSD- or MS-compatible name lister.
14939 NM=$lt_NM
14940
14941 # Whether we need soft or hard links.
14942 LN_S=$lt_LN_S
14943
14944 # What is the maximum length of a command?
14945 max_cmd_len=$max_cmd_len
14946
14947 # Object file suffix (normally "o").
14948 objext=$ac_objext
14949
14950 # Executable file suffix (normally "").
14951 exeext=$exeext
14952
14953 # whether the shell understands "unset".
14954 lt_unset=$lt_unset
14955
14956 # turn spaces into newlines.
14957 SP2NL=$lt_lt_SP2NL
14958
14959 # turn newlines into spaces.
14960 NL2SP=$lt_lt_NL2SP
14961
14962 # How to create reloadable object files.
14963 reload_flag=$lt_reload_flag
14964 reload_cmds=$lt_reload_cmds
14965
14966 # An object symbol dumper.
14967 OBJDUMP=$lt_OBJDUMP
14968
14969 # Method to check whether dependent libraries are shared objects.
14970 deplibs_check_method=$lt_deplibs_check_method
14971
14972 # Command to use when deplibs_check_method == "file_magic".
14973 file_magic_cmd=$lt_file_magic_cmd
14974
14975 # The archiver.
14976 AR=$lt_AR
14977 AR_FLAGS=$lt_AR_FLAGS
14978
14979 # A symbol stripping program.
14980 STRIP=$lt_STRIP
14981
14982 # Commands used to install an old-style archive.
14983 RANLIB=$lt_RANLIB
14984 old_postinstall_cmds=$lt_old_postinstall_cmds
14985 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14986
14987 # A C compiler.
14988 LTCC=$lt_CC
14989
14990 # LTCC compiler flags.
14991 LTCFLAGS=$lt_CFLAGS
14992
14993 # Take the output of nm and produce a listing of raw symbols and C names.
14994 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14995
14996 # Transform the output of nm in a proper C declaration.
14997 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14998
14999 # Transform the output of nm in a C name address pair.
15000 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15001
15002 # Transform the output of nm in a C name address pair when lib prefix is needed.
15003 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15004
15005 # The name of the directory that contains temporary libtool files.
15006 objdir=$objdir
15007
15008 # Shell to use when invoking shell scripts.
15009 SHELL=$lt_SHELL
15010
15011 # An echo program that does not interpret backslashes.
15012 ECHO=$lt_ECHO
15013
15014 # Used to examine libraries when file_magic_cmd begins with "file".
15015 MAGIC_CMD=$MAGIC_CMD
15016
15017 # Must we lock files when doing compilation?
15018 need_locks=$lt_need_locks
15019
15020 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15021 DSYMUTIL=$lt_DSYMUTIL
15022
15023 # Tool to change global to local symbols on Mac OS X.
15024 NMEDIT=$lt_NMEDIT
15025
15026 # Tool to manipulate fat objects and archives on Mac OS X.
15027 LIPO=$lt_LIPO
15028
15029 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15030 OTOOL=$lt_OTOOL
15031
15032 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15033 OTOOL64=$lt_OTOOL64
15034
15035 # Old archive suffix (normally "a").
15036 libext=$libext
15037
15038 # Shared library suffix (normally ".so").
15039 shrext_cmds=$lt_shrext_cmds
15040
15041 # The commands to extract the exported symbol list from a shared archive.
15042 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15043
15044 # Variables whose values should be saved in libtool wrapper scripts and
15045 # restored at link time.
15046 variables_saved_for_relink=$lt_variables_saved_for_relink
15047
15048 # Do we need the "lib" prefix for modules?
15049 need_lib_prefix=$need_lib_prefix
15050
15051 # Do we need a version for libraries?
15052 need_version=$need_version
15053
15054 # Library versioning type.
15055 version_type=$version_type
15056
15057 # Shared library runtime path variable.
15058 runpath_var=$runpath_var
15059
15060 # Shared library path variable.
15061 shlibpath_var=$shlibpath_var
15062
15063 # Is shlibpath searched before the hard-coded library search path?
15064 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15065
15066 # Format of library name prefix.
15067 libname_spec=$lt_libname_spec
15068
15069 # List of archive names. First name is the real one, the rest are links.
15070 # The last name is the one that the linker finds with -lNAME
15071 library_names_spec=$lt_library_names_spec
15072
15073 # The coded name of the library, if different from the real name.
15074 soname_spec=$lt_soname_spec
15075
15076 # Command to use after installation of a shared archive.
15077 postinstall_cmds=$lt_postinstall_cmds
15078
15079 # Command to use after uninstallation of a shared archive.
15080 postuninstall_cmds=$lt_postuninstall_cmds
15081
15082 # Commands used to finish a libtool library installation in a directory.
15083 finish_cmds=$lt_finish_cmds
15084
15085 # As "finish_cmds", except a single script fragment to be evaled but
15086 # not shown.
15087 finish_eval=$lt_finish_eval
15088
15089 # Whether we should hardcode library paths into libraries.
15090 hardcode_into_libs=$hardcode_into_libs
15091
15092 # Compile-time system search path for libraries.
15093 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15094
15095 # Run-time system search path for libraries.
15096 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15097
15098 # Whether dlopen is supported.
15099 dlopen_support=$enable_dlopen
15100
15101 # Whether dlopen of programs is supported.
15102 dlopen_self=$enable_dlopen_self
15103
15104 # Whether dlopen of statically linked programs is supported.
15105 dlopen_self_static=$enable_dlopen_self_static
15106
15107 # Commands to strip libraries.
15108 old_striplib=$lt_old_striplib
15109 striplib=$lt_striplib
15110
15111
15112 # The linker used to build libraries.
15113 LD=$lt_LD
15114
15115 # Commands used to build an old-style archive.
15116 old_archive_cmds=$lt_old_archive_cmds
15117
15118 # A language specific compiler.
15119 CC=$lt_compiler
15120
15121 # Is the compiler the GNU compiler?
15122 with_gcc=$GCC
15123
15124 # Compiler flag to turn off builtin functions.
15125 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15126
15127 # How to pass a linker flag through the compiler.
15128 wl=$lt_lt_prog_compiler_wl
15129
15130 # Additional compiler flags for building library objects.
15131 pic_flag=$lt_lt_prog_compiler_pic
15132
15133 # Compiler flag to prevent dynamic linking.
15134 link_static_flag=$lt_lt_prog_compiler_static
15135
15136 # Does compiler simultaneously support -c and -o options?
15137 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15138
15139 # Whether or not to add -lc for building shared libraries.
15140 build_libtool_need_lc=$archive_cmds_need_lc
15141
15142 # Whether or not to disallow shared libs when runtime libs are static.
15143 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15144
15145 # Compiler flag to allow reflexive dlopens.
15146 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15147
15148 # Compiler flag to generate shared objects directly from archives.
15149 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15150
15151 # Whether the compiler copes with passing no objects directly.
15152 compiler_needs_object=$lt_compiler_needs_object
15153
15154 # Create an old-style archive from a shared archive.
15155 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15156
15157 # Create a temporary old-style archive to link instead of a shared archive.
15158 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15159
15160 # Commands used to build a shared archive.
15161 archive_cmds=$lt_archive_cmds
15162 archive_expsym_cmds=$lt_archive_expsym_cmds
15163
15164 # Commands used to build a loadable module if different from building
15165 # a shared archive.
15166 module_cmds=$lt_module_cmds
15167 module_expsym_cmds=$lt_module_expsym_cmds
15168
15169 # Whether we are building with GNU ld or not.
15170 with_gnu_ld=$lt_with_gnu_ld
15171
15172 # Flag that allows shared libraries with undefined symbols to be built.
15173 allow_undefined_flag=$lt_allow_undefined_flag
15174
15175 # Flag that enforces no undefined symbols.
15176 no_undefined_flag=$lt_no_undefined_flag
15177
15178 # Flag to hardcode \$libdir into a binary during linking.
15179 # This must work even if \$libdir does not exist
15180 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15181
15182 # If ld is used when linking, flag to hardcode \$libdir into a binary
15183 # during linking. This must work even if \$libdir does not exist.
15184 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15185
15186 # Whether we need a single "-rpath" flag with a separated argument.
15187 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15188
15189 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15190 # DIR into the resulting binary.
15191 hardcode_direct=$hardcode_direct
15192
15193 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15194 # DIR into the resulting binary and the resulting library dependency is
15195 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15196 # library is relocated.
15197 hardcode_direct_absolute=$hardcode_direct_absolute
15198
15199 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15200 # into the resulting binary.
15201 hardcode_minus_L=$hardcode_minus_L
15202
15203 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15204 # into the resulting binary.
15205 hardcode_shlibpath_var=$hardcode_shlibpath_var
15206
15207 # Set to "yes" if building a shared library automatically hardcodes DIR
15208 # into the library and all subsequent libraries and executables linked
15209 # against it.
15210 hardcode_automatic=$hardcode_automatic
15211
15212 # Set to yes if linker adds runtime paths of dependent libraries
15213 # to runtime path list.
15214 inherit_rpath=$inherit_rpath
15215
15216 # Whether libtool must link a program against all its dependency libraries.
15217 link_all_deplibs=$link_all_deplibs
15218
15219 # Fix the shell variable \$srcfile for the compiler.
15220 fix_srcfile_path=$lt_fix_srcfile_path
15221
15222 # Set to "yes" if exported symbols are required.
15223 always_export_symbols=$always_export_symbols
15224
15225 # The commands to list exported symbols.
15226 export_symbols_cmds=$lt_export_symbols_cmds
15227
15228 # Symbols that should not be listed in the preloaded symbols.
15229 exclude_expsyms=$lt_exclude_expsyms
15230
15231 # Symbols that must always be exported.
15232 include_expsyms=$lt_include_expsyms
15233
15234 # Commands necessary for linking programs (against libraries) with templates.
15235 prelink_cmds=$lt_prelink_cmds
15236
15237 # Specify filename containing input files.
15238 file_list_spec=$lt_file_list_spec
15239
15240 # How to hardcode a shared library path into an executable.
15241 hardcode_action=$hardcode_action
15242
15243 # ### END LIBTOOL CONFIG
15244
15245 _LT_EOF
15246
15247 case $host_os in
15248 aix3*)
15249 cat <<\_LT_EOF >> "$cfgfile"
15250 # AIX sometimes has problems with the GCC collect2 program. For some
15251 # reason, if we set the COLLECT_NAMES environment variable, the problems
15252 # vanish in a puff of smoke.
15253 if test "X${COLLECT_NAMES+set}" != Xset; then
15254 COLLECT_NAMES=
15255 export COLLECT_NAMES
15256 fi
15257 _LT_EOF
15258 ;;
15259 esac
15260
15261
15262 ltmain="$ac_aux_dir/ltmain.sh"
15263
15264
15265 # We use sed instead of cat because bash on DJGPP gets confused if
15266 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15267 # text mode, it properly converts lines to CR/LF. This bash problem
15268 # is reportedly fixed, but why not run on old versions too?
15269 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15270 || (rm -f "$cfgfile"; exit 1)
15271
15272 case $xsi_shell in
15273 yes)
15274 cat << \_LT_EOF >> "$cfgfile"
15275
15276 # func_dirname file append nondir_replacement
15277 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15278 # otherwise set result to NONDIR_REPLACEMENT.
15279 func_dirname ()
15280 {
15281 case ${1} in
15282 */*) func_dirname_result="${1%/*}${2}" ;;
15283 * ) func_dirname_result="${3}" ;;
15284 esac
15285 }
15286
15287 # func_basename file
15288 func_basename ()
15289 {
15290 func_basename_result="${1##*/}"
15291 }
15292
15293 # func_dirname_and_basename file append nondir_replacement
15294 # perform func_basename and func_dirname in a single function
15295 # call:
15296 # dirname: Compute the dirname of FILE. If nonempty,
15297 # add APPEND to the result, otherwise set result
15298 # to NONDIR_REPLACEMENT.
15299 # value returned in "$func_dirname_result"
15300 # basename: Compute filename of FILE.
15301 # value retuned in "$func_basename_result"
15302 # Implementation must be kept synchronized with func_dirname
15303 # and func_basename. For efficiency, we do not delegate to
15304 # those functions but instead duplicate the functionality here.
15305 func_dirname_and_basename ()
15306 {
15307 case ${1} in
15308 */*) func_dirname_result="${1%/*}${2}" ;;
15309 * ) func_dirname_result="${3}" ;;
15310 esac
15311 func_basename_result="${1##*/}"
15312 }
15313
15314 # func_stripname prefix suffix name
15315 # strip PREFIX and SUFFIX off of NAME.
15316 # PREFIX and SUFFIX must not contain globbing or regex special
15317 # characters, hashes, percent signs, but SUFFIX may contain a leading
15318 # dot (in which case that matches only a dot).
15319 func_stripname ()
15320 {
15321 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15322 # positional parameters, so assign one to ordinary parameter first.
15323 func_stripname_result=${3}
15324 func_stripname_result=${func_stripname_result#"${1}"}
15325 func_stripname_result=${func_stripname_result%"${2}"}
15326 }
15327
15328 # func_opt_split
15329 func_opt_split ()
15330 {
15331 func_opt_split_opt=${1%%=*}
15332 func_opt_split_arg=${1#*=}
15333 }
15334
15335 # func_lo2o object
15336 func_lo2o ()
15337 {
15338 case ${1} in
15339 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15340 *) func_lo2o_result=${1} ;;
15341 esac
15342 }
15343
15344 # func_xform libobj-or-source
15345 func_xform ()
15346 {
15347 func_xform_result=${1%.*}.lo
15348 }
15349
15350 # func_arith arithmetic-term...
15351 func_arith ()
15352 {
15353 func_arith_result=$(( $* ))
15354 }
15355
15356 # func_len string
15357 # STRING may not start with a hyphen.
15358 func_len ()
15359 {
15360 func_len_result=${#1}
15361 }
15362
15363 _LT_EOF
15364 ;;
15365 *) # Bourne compatible functions.
15366 cat << \_LT_EOF >> "$cfgfile"
15367
15368 # func_dirname file append nondir_replacement
15369 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15370 # otherwise set result to NONDIR_REPLACEMENT.
15371 func_dirname ()
15372 {
15373 # Extract subdirectory from the argument.
15374 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15375 if test "X$func_dirname_result" = "X${1}"; then
15376 func_dirname_result="${3}"
15377 else
15378 func_dirname_result="$func_dirname_result${2}"
15379 fi
15380 }
15381
15382 # func_basename file
15383 func_basename ()
15384 {
15385 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15386 }
15387
15388
15389 # func_stripname prefix suffix name
15390 # strip PREFIX and SUFFIX off of NAME.
15391 # PREFIX and SUFFIX must not contain globbing or regex special
15392 # characters, hashes, percent signs, but SUFFIX may contain a leading
15393 # dot (in which case that matches only a dot).
15394 # func_strip_suffix prefix name
15395 func_stripname ()
15396 {
15397 case ${2} in
15398 .*) func_stripname_result=`$ECHO "X${3}" \
15399 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15400 *) func_stripname_result=`$ECHO "X${3}" \
15401 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15402 esac
15403 }
15404
15405 # sed scripts:
15406 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15407 my_sed_long_arg='1s/^-[^=]*=//'
15408
15409 # func_opt_split
15410 func_opt_split ()
15411 {
15412 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15413 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15414 }
15415
15416 # func_lo2o object
15417 func_lo2o ()
15418 {
15419 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15420 }
15421
15422 # func_xform libobj-or-source
15423 func_xform ()
15424 {
15425 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15426 }
15427
15428 # func_arith arithmetic-term...
15429 func_arith ()
15430 {
15431 func_arith_result=`expr "$@"`
15432 }
15433
15434 # func_len string
15435 # STRING may not start with a hyphen.
15436 func_len ()
15437 {
15438 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15439 }
15440
15441 _LT_EOF
15442 esac
15443
15444 case $lt_shell_append in
15445 yes)
15446 cat << \_LT_EOF >> "$cfgfile"
15447
15448 # func_append var value
15449 # Append VALUE to the end of shell variable VAR.
15450 func_append ()
15451 {
15452 eval "$1+=\$2"
15453 }
15454 _LT_EOF
15455 ;;
15456 *)
15457 cat << \_LT_EOF >> "$cfgfile"
15458
15459 # func_append var value
15460 # Append VALUE to the end of shell variable VAR.
15461 func_append ()
15462 {
15463 eval "$1=\$$1\$2"
15464 }
15465
15466 _LT_EOF
15467 ;;
15468 esac
15469
15470
15471 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15472 || (rm -f "$cfgfile"; exit 1)
15473
15474 mv -f "$cfgfile" "$ofile" ||
15475 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15476 chmod +x "$ofile"
15477
15478 ;;
15479
15480 esac
15481 done # for ac_tag
15482
15483
15484 { (exit 0); exit 0; }
15485 _ACEOF
15486 chmod +x $CONFIG_STATUS
15487 ac_clean_files=$ac_clean_files_save
15488
15489 test $ac_write_fail = 0 ||
15490 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15491 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15492 { (exit 1); exit 1; }; }
15493
15494
15495 # configure is writing to config.log, and then calls config.status.
15496 # config.status does its own redirection, appending to config.log.
15497 # Unfortunately, on DOS this fails, as config.log is still kept open
15498 # by configure, so config.status won't be able to write to it; its
15499 # output is simply discarded. So we exec the FD to /dev/null,
15500 # effectively closing config.log, so it can be properly (re)opened and
15501 # appended to by config.status. When coming back to configure, we
15502 # need to make the FD available again.
15503 if test "$no_create" != yes; then
15504 ac_cs_success=:
15505 ac_config_status_args=
15506 test "$silent" = yes &&
15507 ac_config_status_args="$ac_config_status_args --quiet"
15508 exec 5>/dev/null
15509 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15510 exec 5>>config.log
15511 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15512 # would make configure fail if this is the last instruction.
15513 $ac_cs_success || { (exit 1); exit 1; }
15514 fi
15515 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15516 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15517 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15518 fi
15519
15520