configure revision 1.1.1.1.2.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for xf86-video-tseng 1.2.2.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86 else
87 as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" "" $as_nl"
97
98 # Find who we are. Look in the path if we contain no directory separator.
99 case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110 ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115 as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140 else
141 as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146 else
147 as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181
182 if test $as_have_required = yes && (eval ":
183 (as_func_return () {
184 (exit \$1)
185 }
186 as_func_success () {
187 as_func_return 0
188 }
189 as_func_failure () {
190 as_func_return 1
191 }
192 as_func_ret_success () {
193 return 0
194 }
195 as_func_ret_failure () {
196 return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201 :
202 else
203 exitcode=1
204 echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213 :
214 else
215 exitcode=1
216 echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226 else
227 exitcode=1
228 echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239 :
240 else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
248 /*)
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253 done
254 IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289 else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299 (exit $1)
300 }
301 as_func_success () {
302 as_func_return 0
303 }
304 as_func_failure () {
305 as_func_return 1
306 }
307 as_func_ret_success () {
308 return 0
309 }
310 as_func_ret_failure () {
311 return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316 :
317 else
318 exitcode=1
319 echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328 :
329 else
330 exitcode=1
331 echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341 else
342 exitcode=1
343 echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356 break
357 fi
358
359 fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388 (exit \$1)
389 }
390 as_func_success () {
391 as_func_return 0
392 }
393 as_func_failure () {
394 as_func_return 1
395 }
396 as_func_ret_success () {
397 return 0
398 }
399 as_func_ret_failure () {
400 return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405 :
406 else
407 exitcode=1
408 echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417 :
418 else
419 exitcode=1
420 echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430 else
431 exitcode=1
432 echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
441 }
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
469 N
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490 else
491 as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501 *)
502 ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507 else
508 as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514 else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
531 fi
532 else
533 as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540 else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547 else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
579
580 case X$lt_ECHO in
581 X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584 ;;
585 esac
586
587 ECHO=${lt_ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
593 :
594 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
596 :
597 else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 fi
601
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
605 cat <<_LT_EOF
606 $*
607 _LT_EOF
608 exit 0
609 fi
610
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615 if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622 then
623 break
624 fi
625 done
626 fi
627
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
631 :
632 else
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
636 #
637 # So, first we look for a working echo in the user's PATH.
638
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
641 IFS="$lt_save_ifs"
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
646 ECHO="$dir/echo"
647 break
648 fi
649 done
650 IFS="$lt_save_ifs"
651
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
658 ECHO='print -r'
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
665 export CONFIG_SHELL
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667 else
668 # Try using printf.
669 ECHO='printf %s\n'
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 # Cool, printf works
674 :
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680 export CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
682 export SHELL
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
689 else
690 # maybe with a smaller string...
691 prev=:
692
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695 then
696 break
697 fi
698 prev="$cmd"
699 done
700
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705 else
706 # Oops. We lost completely, so just stick with echo.
707 ECHO=echo
708 fi
709 fi
710 fi
711 fi
712 fi
713 fi
714
715 # Copy echo and quote the copy suitably for passing to libtool from
716 # the Makefile, instead of quoting the original, which is used later.
717 lt_ECHO=$ECHO
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720 fi
721
722
723
724
725 exec 7<&0 </dev/null 6>&1
726
727 # Name of the host.
728 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729 # so uname gets run too.
730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732 #
733 # Initializations.
734 #
735 ac_default_prefix=/usr/local
736 ac_clean_files=
737 ac_config_libobj_dir=.
738 LIBOBJS=
739 cross_compiling=no
740 subdirs=
741 MFLAGS=
742 MAKEFLAGS=
743 SHELL=${CONFIG_SHELL-/bin/sh}
744
745 # Identity of this package.
746 PACKAGE_NAME='xf86-video-tseng'
747 PACKAGE_TARNAME='xf86-video-tseng'
748 PACKAGE_VERSION='1.2.2'
749 PACKAGE_STRING='xf86-video-tseng 1.2.2'
750 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
751
752 ac_unique_file="Makefile.am"
753 # Factoring default headers for most tests.
754 ac_includes_default="\
755 #include <stdio.h>
756 #ifdef HAVE_SYS_TYPES_H
757 # include <sys/types.h>
758 #endif
759 #ifdef HAVE_SYS_STAT_H
760 # include <sys/stat.h>
761 #endif
762 #ifdef STDC_HEADERS
763 # include <stdlib.h>
764 # include <stddef.h>
765 #else
766 # ifdef HAVE_STDLIB_H
767 # include <stdlib.h>
768 # endif
769 #endif
770 #ifdef HAVE_STRING_H
771 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
772 # include <memory.h>
773 # endif
774 # include <string.h>
775 #endif
776 #ifdef HAVE_STRINGS_H
777 # include <strings.h>
778 #endif
779 #ifdef HAVE_INTTYPES_H
780 # include <inttypes.h>
781 #endif
782 #ifdef HAVE_STDINT_H
783 # include <stdint.h>
784 #endif
785 #ifdef HAVE_UNISTD_H
786 # include <unistd.h>
787 #endif"
788
789 ac_subst_vars='LTLIBOBJS
790 LIBOBJS
791 ADMIN_MAN_DIR
792 DRIVER_MAN_DIR
793 MISC_MAN_DIR
794 FILE_MAN_DIR
795 LIB_MAN_DIR
796 APP_MAN_DIR
797 ADMIN_MAN_SUFFIX
798 DRIVER_MAN_SUFFIX
799 MISC_MAN_SUFFIX
800 FILE_MAN_SUFFIX
801 LIB_MAN_SUFFIX
802 APP_MAN_SUFFIX
803 DRIVER_NAME
804 moduledir
805 XSERVER_LIBPCIACCESS_FALSE
806 XSERVER_LIBPCIACCESS_TRUE
807 PCIACCESS_LIBS
808 PCIACCESS_CFLAGS
809 XORG_LIBS
810 XORG_CFLAGS
811 PKG_CONFIG
812 CPP
813 OTOOL64
814 OTOOL
815 LIPO
816 NMEDIT
817 DSYMUTIL
818 lt_ECHO
819 RANLIB
820 AR
821 OBJDUMP
822 LN_S
823 NM
824 ac_ct_DUMPBIN
825 DUMPBIN
826 LD
827 FGREP
828 EGREP
829 GREP
830 SED
831 am__fastdepCC_FALSE
832 am__fastdepCC_TRUE
833 CCDEPMODE
834 AMDEPBACKSLASH
835 AMDEP_FALSE
836 AMDEP_TRUE
837 am__quote
838 am__include
839 DEPDIR
840 OBJEXT
841 EXEEXT
842 ac_ct_CC
843 CPPFLAGS
844 LDFLAGS
845 CFLAGS
846 CC
847 host_os
848 host_vendor
849 host_cpu
850 host
851 build_os
852 build_vendor
853 build_cpu
854 build
855 LIBTOOL
856 MAINT
857 MAINTAINER_MODE_FALSE
858 MAINTAINER_MODE_TRUE
859 am__untar
860 am__tar
861 AMTAR
862 am__leading_dot
863 SET_MAKE
864 AWK
865 mkdir_p
866 MKDIR_P
867 INSTALL_STRIP_PROGRAM
868 STRIP
869 install_sh
870 MAKEINFO
871 AUTOHEADER
872 AUTOMAKE
873 AUTOCONF
874 ACLOCAL
875 VERSION
876 PACKAGE
877 CYGPATH_W
878 am__isrc
879 INSTALL_DATA
880 INSTALL_SCRIPT
881 INSTALL_PROGRAM
882 target_alias
883 host_alias
884 build_alias
885 LIBS
886 ECHO_T
887 ECHO_N
888 ECHO_C
889 DEFS
890 mandir
891 localedir
892 libdir
893 psdir
894 pdfdir
895 dvidir
896 htmldir
897 infodir
898 docdir
899 oldincludedir
900 includedir
901 localstatedir
902 sharedstatedir
903 sysconfdir
904 datadir
905 datarootdir
906 libexecdir
907 sbindir
908 bindir
909 program_transform_name
910 prefix
911 exec_prefix
912 PACKAGE_BUGREPORT
913 PACKAGE_STRING
914 PACKAGE_VERSION
915 PACKAGE_TARNAME
916 PACKAGE_NAME
917 PATH_SEPARATOR
918 SHELL'
919 ac_subst_files=''
920 ac_user_opts='
921 enable_option_checking
922 enable_maintainer_mode
923 enable_static
924 enable_shared
925 with_pic
926 enable_fast_install
927 enable_dependency_tracking
928 with_gnu_ld
929 enable_libtool_lock
930 with_xorg_module_dir
931 with_release_version
932 '
933 ac_precious_vars='build_alias
934 host_alias
935 target_alias
936 CC
937 CFLAGS
938 LDFLAGS
939 LIBS
940 CPPFLAGS
941 CPP
942 PKG_CONFIG
943 XORG_CFLAGS
944 XORG_LIBS
945 PCIACCESS_CFLAGS
946 PCIACCESS_LIBS'
947
948
949 # Initialize some variables set by options.
950 ac_init_help=
951 ac_init_version=false
952 ac_unrecognized_opts=
953 ac_unrecognized_sep=
954 # The variables have the same names as the options, with
955 # dashes changed to underlines.
956 cache_file=/dev/null
957 exec_prefix=NONE
958 no_create=
959 no_recursion=
960 prefix=NONE
961 program_prefix=NONE
962 program_suffix=NONE
963 program_transform_name=s,x,x,
964 silent=
965 site=
966 srcdir=
967 verbose=
968 x_includes=NONE
969 x_libraries=NONE
970
971 # Installation directory options.
972 # These are left unexpanded so users can "make install exec_prefix=/foo"
973 # and all the variables that are supposed to be based on exec_prefix
974 # by default will actually change.
975 # Use braces instead of parens because sh, perl, etc. also accept them.
976 # (The list follows the same order as the GNU Coding Standards.)
977 bindir='${exec_prefix}/bin'
978 sbindir='${exec_prefix}/sbin'
979 libexecdir='${exec_prefix}/libexec'
980 datarootdir='${prefix}/share'
981 datadir='${datarootdir}'
982 sysconfdir='${prefix}/etc'
983 sharedstatedir='${prefix}/com'
984 localstatedir='${prefix}/var'
985 includedir='${prefix}/include'
986 oldincludedir='/usr/include'
987 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
988 infodir='${datarootdir}/info'
989 htmldir='${docdir}'
990 dvidir='${docdir}'
991 pdfdir='${docdir}'
992 psdir='${docdir}'
993 libdir='${exec_prefix}/lib'
994 localedir='${datarootdir}/locale'
995 mandir='${datarootdir}/man'
996
997 ac_prev=
998 ac_dashdash=
999 for ac_option
1000 do
1001 # If the previous option needs an argument, assign it.
1002 if test -n "$ac_prev"; then
1003 eval $ac_prev=\$ac_option
1004 ac_prev=
1005 continue
1006 fi
1007
1008 case $ac_option in
1009 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010 *) ac_optarg=yes ;;
1011 esac
1012
1013 # Accept the important Cygnus configure options, so we can diagnose typos.
1014
1015 case $ac_dashdash$ac_option in
1016 --)
1017 ac_dashdash=yes ;;
1018
1019 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1020 ac_prev=bindir ;;
1021 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1022 bindir=$ac_optarg ;;
1023
1024 -build | --build | --buil | --bui | --bu)
1025 ac_prev=build_alias ;;
1026 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1027 build_alias=$ac_optarg ;;
1028
1029 -cache-file | --cache-file | --cache-fil | --cache-fi \
1030 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1031 ac_prev=cache_file ;;
1032 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1033 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1034 cache_file=$ac_optarg ;;
1035
1036 --config-cache | -C)
1037 cache_file=config.cache ;;
1038
1039 -datadir | --datadir | --datadi | --datad)
1040 ac_prev=datadir ;;
1041 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1042 datadir=$ac_optarg ;;
1043
1044 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1045 | --dataroo | --dataro | --datar)
1046 ac_prev=datarootdir ;;
1047 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1048 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1049 datarootdir=$ac_optarg ;;
1050
1051 -disable-* | --disable-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1056 { (exit 1); exit 1; }; }
1057 ac_useropt_orig=$ac_useropt
1058 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059 case $ac_user_opts in
1060 *"
1061 "enable_$ac_useropt"
1062 "*) ;;
1063 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1064 ac_unrecognized_sep=', ';;
1065 esac
1066 eval enable_$ac_useropt=no ;;
1067
1068 -docdir | --docdir | --docdi | --doc | --do)
1069 ac_prev=docdir ;;
1070 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1071 docdir=$ac_optarg ;;
1072
1073 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1074 ac_prev=dvidir ;;
1075 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1076 dvidir=$ac_optarg ;;
1077
1078 -enable-* | --enable-*)
1079 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1083 { (exit 1); exit 1; }; }
1084 ac_useropt_orig=$ac_useropt
1085 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086 case $ac_user_opts in
1087 *"
1088 "enable_$ac_useropt"
1089 "*) ;;
1090 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1091 ac_unrecognized_sep=', ';;
1092 esac
1093 eval enable_$ac_useropt=\$ac_optarg ;;
1094
1095 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1096 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1097 | --exec | --exe | --ex)
1098 ac_prev=exec_prefix ;;
1099 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1100 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1101 | --exec=* | --exe=* | --ex=*)
1102 exec_prefix=$ac_optarg ;;
1103
1104 -gas | --gas | --ga | --g)
1105 # Obsolete; use --with-gas.
1106 with_gas=yes ;;
1107
1108 -help | --help | --hel | --he | -h)
1109 ac_init_help=long ;;
1110 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1111 ac_init_help=recursive ;;
1112 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1113 ac_init_help=short ;;
1114
1115 -host | --host | --hos | --ho)
1116 ac_prev=host_alias ;;
1117 -host=* | --host=* | --hos=* | --ho=*)
1118 host_alias=$ac_optarg ;;
1119
1120 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1121 ac_prev=htmldir ;;
1122 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1123 | --ht=*)
1124 htmldir=$ac_optarg ;;
1125
1126 -includedir | --includedir | --includedi | --included | --include \
1127 | --includ | --inclu | --incl | --inc)
1128 ac_prev=includedir ;;
1129 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1130 | --includ=* | --inclu=* | --incl=* | --inc=*)
1131 includedir=$ac_optarg ;;
1132
1133 -infodir | --infodir | --infodi | --infod | --info | --inf)
1134 ac_prev=infodir ;;
1135 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1136 infodir=$ac_optarg ;;
1137
1138 -libdir | --libdir | --libdi | --libd)
1139 ac_prev=libdir ;;
1140 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1141 libdir=$ac_optarg ;;
1142
1143 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1144 | --libexe | --libex | --libe)
1145 ac_prev=libexecdir ;;
1146 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1147 | --libexe=* | --libex=* | --libe=*)
1148 libexecdir=$ac_optarg ;;
1149
1150 -localedir | --localedir | --localedi | --localed | --locale)
1151 ac_prev=localedir ;;
1152 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1153 localedir=$ac_optarg ;;
1154
1155 -localstatedir | --localstatedir | --localstatedi | --localstated \
1156 | --localstate | --localstat | --localsta | --localst | --locals)
1157 ac_prev=localstatedir ;;
1158 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1159 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1160 localstatedir=$ac_optarg ;;
1161
1162 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1163 ac_prev=mandir ;;
1164 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1165 mandir=$ac_optarg ;;
1166
1167 -nfp | --nfp | --nf)
1168 # Obsolete; use --without-fp.
1169 with_fp=no ;;
1170
1171 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1172 | --no-cr | --no-c | -n)
1173 no_create=yes ;;
1174
1175 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1176 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1177 no_recursion=yes ;;
1178
1179 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1180 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1181 | --oldin | --oldi | --old | --ol | --o)
1182 ac_prev=oldincludedir ;;
1183 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1184 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1185 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1186 oldincludedir=$ac_optarg ;;
1187
1188 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1189 ac_prev=prefix ;;
1190 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1191 prefix=$ac_optarg ;;
1192
1193 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1194 | --program-pre | --program-pr | --program-p)
1195 ac_prev=program_prefix ;;
1196 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1197 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1198 program_prefix=$ac_optarg ;;
1199
1200 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1201 | --program-suf | --program-su | --program-s)
1202 ac_prev=program_suffix ;;
1203 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1204 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1205 program_suffix=$ac_optarg ;;
1206
1207 -program-transform-name | --program-transform-name \
1208 | --program-transform-nam | --program-transform-na \
1209 | --program-transform-n | --program-transform- \
1210 | --program-transform | --program-transfor \
1211 | --program-transfo | --program-transf \
1212 | --program-trans | --program-tran \
1213 | --progr-tra | --program-tr | --program-t)
1214 ac_prev=program_transform_name ;;
1215 -program-transform-name=* | --program-transform-name=* \
1216 | --program-transform-nam=* | --program-transform-na=* \
1217 | --program-transform-n=* | --program-transform-=* \
1218 | --program-transform=* | --program-transfor=* \
1219 | --program-transfo=* | --program-transf=* \
1220 | --program-trans=* | --program-tran=* \
1221 | --progr-tra=* | --program-tr=* | --program-t=*)
1222 program_transform_name=$ac_optarg ;;
1223
1224 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1225 ac_prev=pdfdir ;;
1226 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1227 pdfdir=$ac_optarg ;;
1228
1229 -psdir | --psdir | --psdi | --psd | --ps)
1230 ac_prev=psdir ;;
1231 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1232 psdir=$ac_optarg ;;
1233
1234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1235 | -silent | --silent | --silen | --sile | --sil)
1236 silent=yes ;;
1237
1238 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1239 ac_prev=sbindir ;;
1240 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1241 | --sbi=* | --sb=*)
1242 sbindir=$ac_optarg ;;
1243
1244 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1245 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1246 | --sharedst | --shareds | --shared | --share | --shar \
1247 | --sha | --sh)
1248 ac_prev=sharedstatedir ;;
1249 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1250 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1251 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1252 | --sha=* | --sh=*)
1253 sharedstatedir=$ac_optarg ;;
1254
1255 -site | --site | --sit)
1256 ac_prev=site ;;
1257 -site=* | --site=* | --sit=*)
1258 site=$ac_optarg ;;
1259
1260 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1261 ac_prev=srcdir ;;
1262 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1263 srcdir=$ac_optarg ;;
1264
1265 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1266 | --syscon | --sysco | --sysc | --sys | --sy)
1267 ac_prev=sysconfdir ;;
1268 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1269 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1270 sysconfdir=$ac_optarg ;;
1271
1272 -target | --target | --targe | --targ | --tar | --ta | --t)
1273 ac_prev=target_alias ;;
1274 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1275 target_alias=$ac_optarg ;;
1276
1277 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1278 verbose=yes ;;
1279
1280 -version | --version | --versio | --versi | --vers | -V)
1281 ac_init_version=: ;;
1282
1283 -with-* | --with-*)
1284 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1285 # Reject names that are not valid shell variable names.
1286 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1287 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1288 { (exit 1); exit 1; }; }
1289 ac_useropt_orig=$ac_useropt
1290 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1291 case $ac_user_opts in
1292 *"
1293 "with_$ac_useropt"
1294 "*) ;;
1295 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1296 ac_unrecognized_sep=', ';;
1297 esac
1298 eval with_$ac_useropt=\$ac_optarg ;;
1299
1300 -without-* | --without-*)
1301 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1302 # Reject names that are not valid shell variable names.
1303 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1304 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1305 { (exit 1); exit 1; }; }
1306 ac_useropt_orig=$ac_useropt
1307 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308 case $ac_user_opts in
1309 *"
1310 "with_$ac_useropt"
1311 "*) ;;
1312 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1313 ac_unrecognized_sep=', ';;
1314 esac
1315 eval with_$ac_useropt=no ;;
1316
1317 --x)
1318 # Obsolete; use --with-x.
1319 with_x=yes ;;
1320
1321 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1322 | --x-incl | --x-inc | --x-in | --x-i)
1323 ac_prev=x_includes ;;
1324 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1325 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1326 x_includes=$ac_optarg ;;
1327
1328 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1329 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1330 ac_prev=x_libraries ;;
1331 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1332 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1333 x_libraries=$ac_optarg ;;
1334
1335 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1336 Try \`$0 --help' for more information." >&2
1337 { (exit 1); exit 1; }; }
1338 ;;
1339
1340 *=*)
1341 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1342 # Reject names that are not valid shell variable names.
1343 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1344 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1345 { (exit 1); exit 1; }; }
1346 eval $ac_envvar=\$ac_optarg
1347 export $ac_envvar ;;
1348
1349 *)
1350 # FIXME: should be removed in autoconf 3.0.
1351 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1352 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1353 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1354 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1355 ;;
1356
1357 esac
1358 done
1359
1360 if test -n "$ac_prev"; then
1361 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1362 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1363 { (exit 1); exit 1; }; }
1364 fi
1365
1366 if test -n "$ac_unrecognized_opts"; then
1367 case $enable_option_checking in
1368 no) ;;
1369 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1370 { (exit 1); exit 1; }; } ;;
1371 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1372 esac
1373 fi
1374
1375 # Check all directory arguments for consistency.
1376 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1377 datadir sysconfdir sharedstatedir localstatedir includedir \
1378 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1379 libdir localedir mandir
1380 do
1381 eval ac_val=\$$ac_var
1382 # Remove trailing slashes.
1383 case $ac_val in
1384 */ )
1385 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1386 eval $ac_var=\$ac_val;;
1387 esac
1388 # Be sure to have absolute directory names.
1389 case $ac_val in
1390 [\\/$]* | ?:[\\/]* ) continue;;
1391 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1392 esac
1393 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1394 { (exit 1); exit 1; }; }
1395 done
1396
1397 # There might be people who depend on the old broken behavior: `$host'
1398 # used to hold the argument of --host etc.
1399 # FIXME: To remove some day.
1400 build=$build_alias
1401 host=$host_alias
1402 target=$target_alias
1403
1404 # FIXME: To remove some day.
1405 if test "x$host_alias" != x; then
1406 if test "x$build_alias" = x; then
1407 cross_compiling=maybe
1408 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1409 If a cross compiler is detected then cross compile mode will be used." >&2
1410 elif test "x$build_alias" != "x$host_alias"; then
1411 cross_compiling=yes
1412 fi
1413 fi
1414
1415 ac_tool_prefix=
1416 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1417
1418 test "$silent" = yes && exec 6>/dev/null
1419
1420
1421 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1422 ac_ls_di=`ls -di .` &&
1423 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1424 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1425 { (exit 1); exit 1; }; }
1426 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1427 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1428 { (exit 1); exit 1; }; }
1429
1430
1431 # Find the source files, if location was not specified.
1432 if test -z "$srcdir"; then
1433 ac_srcdir_defaulted=yes
1434 # Try the directory containing this script, then the parent directory.
1435 ac_confdir=`$as_dirname -- "$as_myself" ||
1436 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1437 X"$as_myself" : 'X\(//\)[^/]' \| \
1438 X"$as_myself" : 'X\(//\)$' \| \
1439 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1440 $as_echo X"$as_myself" |
1441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1442 s//\1/
1443 q
1444 }
1445 /^X\(\/\/\)[^/].*/{
1446 s//\1/
1447 q
1448 }
1449 /^X\(\/\/\)$/{
1450 s//\1/
1451 q
1452 }
1453 /^X\(\/\).*/{
1454 s//\1/
1455 q
1456 }
1457 s/.*/./; q'`
1458 srcdir=$ac_confdir
1459 if test ! -r "$srcdir/$ac_unique_file"; then
1460 srcdir=..
1461 fi
1462 else
1463 ac_srcdir_defaulted=no
1464 fi
1465 if test ! -r "$srcdir/$ac_unique_file"; then
1466 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1467 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1468 { (exit 1); exit 1; }; }
1469 fi
1470 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1471 ac_abs_confdir=`(
1472 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1473 { (exit 1); exit 1; }; }
1474 pwd)`
1475 # When building in place, set srcdir=.
1476 if test "$ac_abs_confdir" = "$ac_pwd"; then
1477 srcdir=.
1478 fi
1479 # Remove unnecessary trailing slashes from srcdir.
1480 # Double slashes in file names in object file debugging info
1481 # mess up M-x gdb in Emacs.
1482 case $srcdir in
1483 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1484 esac
1485 for ac_var in $ac_precious_vars; do
1486 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1487 eval ac_env_${ac_var}_value=\$${ac_var}
1488 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1489 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1490 done
1491
1492 #
1493 # Report the --help message.
1494 #
1495 if test "$ac_init_help" = "long"; then
1496 # Omit some internal or obsolete options to make the list less imposing.
1497 # This message is too long to be a string in the A/UX 3.1 sh.
1498 cat <<_ACEOF
1499 \`configure' configures xf86-video-tseng 1.2.2 to adapt to many kinds of systems.
1500
1501 Usage: $0 [OPTION]... [VAR=VALUE]...
1502
1503 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1504 VAR=VALUE. See below for descriptions of some of the useful variables.
1505
1506 Defaults for the options are specified in brackets.
1507
1508 Configuration:
1509 -h, --help display this help and exit
1510 --help=short display options specific to this package
1511 --help=recursive display the short help of all the included packages
1512 -V, --version display version information and exit
1513 -q, --quiet, --silent do not print \`checking...' messages
1514 --cache-file=FILE cache test results in FILE [disabled]
1515 -C, --config-cache alias for \`--cache-file=config.cache'
1516 -n, --no-create do not create output files
1517 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1518
1519 Installation directories:
1520 --prefix=PREFIX install architecture-independent files in PREFIX
1521 [$ac_default_prefix]
1522 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1523 [PREFIX]
1524
1525 By default, \`make install' will install all the files in
1526 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1527 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1528 for instance \`--prefix=\$HOME'.
1529
1530 For better control, use the options below.
1531
1532 Fine tuning of the installation directories:
1533 --bindir=DIR user executables [EPREFIX/bin]
1534 --sbindir=DIR system admin executables [EPREFIX/sbin]
1535 --libexecdir=DIR program executables [EPREFIX/libexec]
1536 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1537 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1538 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1539 --libdir=DIR object code libraries [EPREFIX/lib]
1540 --includedir=DIR C header files [PREFIX/include]
1541 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1542 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1543 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1544 --infodir=DIR info documentation [DATAROOTDIR/info]
1545 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1546 --mandir=DIR man documentation [DATAROOTDIR/man]
1547 --docdir=DIR documentation root
1548 [DATAROOTDIR/doc/xf86-video-tseng]
1549 --htmldir=DIR html documentation [DOCDIR]
1550 --dvidir=DIR dvi documentation [DOCDIR]
1551 --pdfdir=DIR pdf documentation [DOCDIR]
1552 --psdir=DIR ps documentation [DOCDIR]
1553 _ACEOF
1554
1555 cat <<\_ACEOF
1556
1557 Program names:
1558 --program-prefix=PREFIX prepend PREFIX to installed program names
1559 --program-suffix=SUFFIX append SUFFIX to installed program names
1560 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1561
1562 System types:
1563 --build=BUILD configure for building on BUILD [guessed]
1564 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1565 _ACEOF
1566 fi
1567
1568 if test -n "$ac_init_help"; then
1569 case $ac_init_help in
1570 short | recursive ) echo "Configuration of xf86-video-tseng 1.2.2:";;
1571 esac
1572 cat <<\_ACEOF
1573
1574 Optional Features:
1575 --disable-option-checking ignore unrecognized --enable/--with options
1576 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1577 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1578 --enable-maintainer-mode enable make rules and dependencies not useful
1579 (and sometimes confusing) to the casual installer
1580 --enable-static[=PKGS] build static libraries [default=no]
1581 --enable-shared[=PKGS] build shared libraries [default=yes]
1582 --enable-fast-install[=PKGS]
1583 optimize for fast installation [default=yes]
1584 --disable-dependency-tracking speeds up one-time build
1585 --enable-dependency-tracking do not reject slow dependency extractors
1586 --disable-libtool-lock avoid locking (might break parallel builds)
1587
1588 Optional Packages:
1589 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1590 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1591 --with-pic try to use only PIC/non-PIC objects [default=use
1592 both]
1593 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1594 --with-xorg-module-dir=DIR
1595 Default xorg module directory
1596 [default=$libdir/xorg/modules]
1597 --with-release-version=STRING
1598 Use release version string in package name
1599
1600 Some influential environment variables:
1601 CC C compiler command
1602 CFLAGS C compiler flags
1603 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1604 nonstandard directory <lib dir>
1605 LIBS libraries to pass to the linker, e.g. -l<library>
1606 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1607 you have headers in a nonstandard directory <include dir>
1608 CPP C preprocessor
1609 PKG_CONFIG path to pkg-config utility
1610 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1611 XORG_LIBS linker flags for XORG, overriding pkg-config
1612 PCIACCESS_CFLAGS
1613 C compiler flags for PCIACCESS, overriding pkg-config
1614 PCIACCESS_LIBS
1615 linker flags for PCIACCESS, overriding pkg-config
1616
1617 Use these variables to override the choices made by `configure' or to help
1618 it to find libraries and programs with nonstandard names/locations.
1619
1620 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1621 _ACEOF
1622 ac_status=$?
1623 fi
1624
1625 if test "$ac_init_help" = "recursive"; then
1626 # If there are subdirs, report their specific --help.
1627 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1628 test -d "$ac_dir" ||
1629 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1630 continue
1631 ac_builddir=.
1632
1633 case "$ac_dir" in
1634 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1635 *)
1636 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1637 # A ".." for each directory in $ac_dir_suffix.
1638 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1639 case $ac_top_builddir_sub in
1640 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1641 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1642 esac ;;
1643 esac
1644 ac_abs_top_builddir=$ac_pwd
1645 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1646 # for backward compatibility:
1647 ac_top_builddir=$ac_top_build_prefix
1648
1649 case $srcdir in
1650 .) # We are building in place.
1651 ac_srcdir=.
1652 ac_top_srcdir=$ac_top_builddir_sub
1653 ac_abs_top_srcdir=$ac_pwd ;;
1654 [\\/]* | ?:[\\/]* ) # Absolute name.
1655 ac_srcdir=$srcdir$ac_dir_suffix;
1656 ac_top_srcdir=$srcdir
1657 ac_abs_top_srcdir=$srcdir ;;
1658 *) # Relative name.
1659 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1660 ac_top_srcdir=$ac_top_build_prefix$srcdir
1661 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1662 esac
1663 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1664
1665 cd "$ac_dir" || { ac_status=$?; continue; }
1666 # Check for guested configure.
1667 if test -f "$ac_srcdir/configure.gnu"; then
1668 echo &&
1669 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1670 elif test -f "$ac_srcdir/configure"; then
1671 echo &&
1672 $SHELL "$ac_srcdir/configure" --help=recursive
1673 else
1674 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1675 fi || ac_status=$?
1676 cd "$ac_pwd" || { ac_status=$?; break; }
1677 done
1678 fi
1679
1680 test -n "$ac_init_help" && exit $ac_status
1681 if $ac_init_version; then
1682 cat <<\_ACEOF
1683 xf86-video-tseng configure 1.2.2
1684 generated by GNU Autoconf 2.63
1685
1686 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1687 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1688 This configure script is free software; the Free Software Foundation
1689 gives unlimited permission to copy, distribute and modify it.
1690 _ACEOF
1691 exit
1692 fi
1693 cat >config.log <<_ACEOF
1694 This file contains any messages produced by compilers while
1695 running configure, to aid debugging if configure makes a mistake.
1696
1697 It was created by xf86-video-tseng $as_me 1.2.2, which was
1698 generated by GNU Autoconf 2.63. Invocation command line was
1699
1700 $ $0 $@
1701
1702 _ACEOF
1703 exec 5>>config.log
1704 {
1705 cat <<_ASUNAME
1706 ## --------- ##
1707 ## Platform. ##
1708 ## --------- ##
1709
1710 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1711 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1712 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1713 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1714 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1715
1716 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1717 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1718
1719 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1720 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1721 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1722 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1723 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1724 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1725 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1726
1727 _ASUNAME
1728
1729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1730 for as_dir in $PATH
1731 do
1732 IFS=$as_save_IFS
1733 test -z "$as_dir" && as_dir=.
1734 $as_echo "PATH: $as_dir"
1735 done
1736 IFS=$as_save_IFS
1737
1738 } >&5
1739
1740 cat >&5 <<_ACEOF
1741
1742
1743 ## ----------- ##
1744 ## Core tests. ##
1745 ## ----------- ##
1746
1747 _ACEOF
1748
1749
1750 # Keep a trace of the command line.
1751 # Strip out --no-create and --no-recursion so they do not pile up.
1752 # Strip out --silent because we don't want to record it for future runs.
1753 # Also quote any args containing shell meta-characters.
1754 # Make two passes to allow for proper duplicate-argument suppression.
1755 ac_configure_args=
1756 ac_configure_args0=
1757 ac_configure_args1=
1758 ac_must_keep_next=false
1759 for ac_pass in 1 2
1760 do
1761 for ac_arg
1762 do
1763 case $ac_arg in
1764 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1765 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1766 | -silent | --silent | --silen | --sile | --sil)
1767 continue ;;
1768 *\'*)
1769 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1770 esac
1771 case $ac_pass in
1772 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1773 2)
1774 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1775 if test $ac_must_keep_next = true; then
1776 ac_must_keep_next=false # Got value, back to normal.
1777 else
1778 case $ac_arg in
1779 *=* | --config-cache | -C | -disable-* | --disable-* \
1780 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1781 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1782 | -with-* | --with-* | -without-* | --without-* | --x)
1783 case "$ac_configure_args0 " in
1784 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1785 esac
1786 ;;
1787 -* ) ac_must_keep_next=true ;;
1788 esac
1789 fi
1790 ac_configure_args="$ac_configure_args '$ac_arg'"
1791 ;;
1792 esac
1793 done
1794 done
1795 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1796 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1797
1798 # When interrupted or exit'd, cleanup temporary files, and complete
1799 # config.log. We remove comments because anyway the quotes in there
1800 # would cause problems or look ugly.
1801 # WARNING: Use '\'' to represent an apostrophe within the trap.
1802 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1803 trap 'exit_status=$?
1804 # Save into config.log some information that might help in debugging.
1805 {
1806 echo
1807
1808 cat <<\_ASBOX
1809 ## ---------------- ##
1810 ## Cache variables. ##
1811 ## ---------------- ##
1812 _ASBOX
1813 echo
1814 # The following way of writing the cache mishandles newlines in values,
1815 (
1816 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1817 eval ac_val=\$$ac_var
1818 case $ac_val in #(
1819 *${as_nl}*)
1820 case $ac_var in #(
1821 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1822 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1823 esac
1824 case $ac_var in #(
1825 _ | IFS | as_nl) ;; #(
1826 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1827 *) $as_unset $ac_var ;;
1828 esac ;;
1829 esac
1830 done
1831 (set) 2>&1 |
1832 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1833 *${as_nl}ac_space=\ *)
1834 sed -n \
1835 "s/'\''/'\''\\\\'\'''\''/g;
1836 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1837 ;; #(
1838 *)
1839 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1840 ;;
1841 esac |
1842 sort
1843 )
1844 echo
1845
1846 cat <<\_ASBOX
1847 ## ----------------- ##
1848 ## Output variables. ##
1849 ## ----------------- ##
1850 _ASBOX
1851 echo
1852 for ac_var in $ac_subst_vars
1853 do
1854 eval ac_val=\$$ac_var
1855 case $ac_val in
1856 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1857 esac
1858 $as_echo "$ac_var='\''$ac_val'\''"
1859 done | sort
1860 echo
1861
1862 if test -n "$ac_subst_files"; then
1863 cat <<\_ASBOX
1864 ## ------------------- ##
1865 ## File substitutions. ##
1866 ## ------------------- ##
1867 _ASBOX
1868 echo
1869 for ac_var in $ac_subst_files
1870 do
1871 eval ac_val=\$$ac_var
1872 case $ac_val in
1873 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1874 esac
1875 $as_echo "$ac_var='\''$ac_val'\''"
1876 done | sort
1877 echo
1878 fi
1879
1880 if test -s confdefs.h; then
1881 cat <<\_ASBOX
1882 ## ----------- ##
1883 ## confdefs.h. ##
1884 ## ----------- ##
1885 _ASBOX
1886 echo
1887 cat confdefs.h
1888 echo
1889 fi
1890 test "$ac_signal" != 0 &&
1891 $as_echo "$as_me: caught signal $ac_signal"
1892 $as_echo "$as_me: exit $exit_status"
1893 } >&5
1894 rm -f core *.core core.conftest.* &&
1895 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1896 exit $exit_status
1897 ' 0
1898 for ac_signal in 1 2 13 15; do
1899 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1900 done
1901 ac_signal=0
1902
1903 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1904 rm -f -r conftest* confdefs.h
1905
1906 # Predefined preprocessor variables.
1907
1908 cat >>confdefs.h <<_ACEOF
1909 #define PACKAGE_NAME "$PACKAGE_NAME"
1910 _ACEOF
1911
1912
1913 cat >>confdefs.h <<_ACEOF
1914 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1915 _ACEOF
1916
1917
1918 cat >>confdefs.h <<_ACEOF
1919 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1920 _ACEOF
1921
1922
1923 cat >>confdefs.h <<_ACEOF
1924 #define PACKAGE_STRING "$PACKAGE_STRING"
1925 _ACEOF
1926
1927
1928 cat >>confdefs.h <<_ACEOF
1929 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1930 _ACEOF
1931
1932
1933 # Let the site file select an alternate cache file if it wants to.
1934 # Prefer an explicitly selected file to automatically selected ones.
1935 ac_site_file1=NONE
1936 ac_site_file2=NONE
1937 if test -n "$CONFIG_SITE"; then
1938 ac_site_file1=$CONFIG_SITE
1939 elif test "x$prefix" != xNONE; then
1940 ac_site_file1=$prefix/share/config.site
1941 ac_site_file2=$prefix/etc/config.site
1942 else
1943 ac_site_file1=$ac_default_prefix/share/config.site
1944 ac_site_file2=$ac_default_prefix/etc/config.site
1945 fi
1946 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1947 do
1948 test "x$ac_site_file" = xNONE && continue
1949 if test -r "$ac_site_file"; then
1950 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1951 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1952 sed 's/^/| /' "$ac_site_file" >&5
1953 . "$ac_site_file"
1954 fi
1955 done
1956
1957 if test -r "$cache_file"; then
1958 # Some versions of bash will fail to source /dev/null (special
1959 # files actually), so we avoid doing that.
1960 if test -f "$cache_file"; then
1961 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1962 $as_echo "$as_me: loading cache $cache_file" >&6;}
1963 case $cache_file in
1964 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1965 *) . "./$cache_file";;
1966 esac
1967 fi
1968 else
1969 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1970 $as_echo "$as_me: creating cache $cache_file" >&6;}
1971 >$cache_file
1972 fi
1973
1974 # Check that the precious variables saved in the cache have kept the same
1975 # value.
1976 ac_cache_corrupted=false
1977 for ac_var in $ac_precious_vars; do
1978 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1979 eval ac_new_set=\$ac_env_${ac_var}_set
1980 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1981 eval ac_new_val=\$ac_env_${ac_var}_value
1982 case $ac_old_set,$ac_new_set in
1983 set,)
1984 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1985 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1986 ac_cache_corrupted=: ;;
1987 ,set)
1988 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1989 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1990 ac_cache_corrupted=: ;;
1991 ,);;
1992 *)
1993 if test "x$ac_old_val" != "x$ac_new_val"; then
1994 # differences in whitespace do not lead to failure.
1995 ac_old_val_w=`echo x $ac_old_val`
1996 ac_new_val_w=`echo x $ac_new_val`
1997 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1998 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1999 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2000 ac_cache_corrupted=:
2001 else
2002 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2003 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2004 eval $ac_var=\$ac_old_val
2005 fi
2006 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2007 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2008 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2009 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2010 fi;;
2011 esac
2012 # Pass precious variables to config.status.
2013 if test "$ac_new_set" = set; then
2014 case $ac_new_val in
2015 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2016 *) ac_arg=$ac_var=$ac_new_val ;;
2017 esac
2018 case " $ac_configure_args " in
2019 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2020 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2021 esac
2022 fi
2023 done
2024 if $ac_cache_corrupted; then
2025 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2027 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2028 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2029 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2030 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2031 { (exit 1); exit 1; }; }
2032 fi
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058 ac_ext=c
2059 ac_cpp='$CPP $CPPFLAGS'
2060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2063
2064
2065
2066
2067 ac_config_headers="$ac_config_headers config.h"
2068
2069 ac_aux_dir=
2070 for ac_dir in . "$srcdir"/.; do
2071 if test -f "$ac_dir/install-sh"; then
2072 ac_aux_dir=$ac_dir
2073 ac_install_sh="$ac_aux_dir/install-sh -c"
2074 break
2075 elif test -f "$ac_dir/install.sh"; then
2076 ac_aux_dir=$ac_dir
2077 ac_install_sh="$ac_aux_dir/install.sh -c"
2078 break
2079 elif test -f "$ac_dir/shtool"; then
2080 ac_aux_dir=$ac_dir
2081 ac_install_sh="$ac_aux_dir/shtool install -c"
2082 break
2083 fi
2084 done
2085 if test -z "$ac_aux_dir"; then
2086 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2087 $as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2088 { (exit 1); exit 1; }; }
2089 fi
2090
2091 # These three variables are undocumented and unsupported,
2092 # and are intended to be withdrawn in a future Autoconf release.
2093 # They can cause serious problems if a builder's source tree is in a directory
2094 # whose full name contains unusual characters.
2095 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2096 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2097 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2098
2099
2100
2101 am__api_version='1.10'
2102
2103 # Find a good install program. We prefer a C program (faster),
2104 # so one script is as good as another. But avoid the broken or
2105 # incompatible versions:
2106 # SysV /etc/install, /usr/sbin/install
2107 # SunOS /usr/etc/install
2108 # IRIX /sbin/install
2109 # AIX /bin/install
2110 # AmigaOS /C/install, which installs bootblocks on floppy discs
2111 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2112 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2113 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2114 # OS/2's system install, which has a completely different semantic
2115 # ./install, which can be erroneously created by make from ./install.sh.
2116 # Reject install programs that cannot install multiple files.
2117 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2118 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2119 if test -z "$INSTALL"; then
2120 if test "${ac_cv_path_install+set}" = set; then
2121 $as_echo_n "(cached) " >&6
2122 else
2123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2124 for as_dir in $PATH
2125 do
2126 IFS=$as_save_IFS
2127 test -z "$as_dir" && as_dir=.
2128 # Account for people who put trailing slashes in PATH elements.
2129 case $as_dir/ in
2130 ./ | .// | /cC/* | \
2131 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2132 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2133 /usr/ucb/* ) ;;
2134 *)
2135 # OSF1 and SCO ODT 3.0 have their own names for install.
2136 # Don't use installbsd from OSF since it installs stuff as root
2137 # by default.
2138 for ac_prog in ginstall scoinst install; do
2139 for ac_exec_ext in '' $ac_executable_extensions; do
2140 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2141 if test $ac_prog = install &&
2142 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2143 # AIX install. It has an incompatible calling convention.
2144 :
2145 elif test $ac_prog = install &&
2146 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2147 # program-specific install script used by HP pwplus--don't use.
2148 :
2149 else
2150 rm -rf conftest.one conftest.two conftest.dir
2151 echo one > conftest.one
2152 echo two > conftest.two
2153 mkdir conftest.dir
2154 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2155 test -s conftest.one && test -s conftest.two &&
2156 test -s conftest.dir/conftest.one &&
2157 test -s conftest.dir/conftest.two
2158 then
2159 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2160 break 3
2161 fi
2162 fi
2163 fi
2164 done
2165 done
2166 ;;
2167 esac
2168
2169 done
2170 IFS=$as_save_IFS
2171
2172 rm -rf conftest.one conftest.two conftest.dir
2173
2174 fi
2175 if test "${ac_cv_path_install+set}" = set; then
2176 INSTALL=$ac_cv_path_install
2177 else
2178 # As a last resort, use the slow shell script. Don't cache a
2179 # value for INSTALL within a source directory, because that will
2180 # break other packages using the cache if that directory is
2181 # removed, or if the value is a relative name.
2182 INSTALL=$ac_install_sh
2183 fi
2184 fi
2185 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2186 $as_echo "$INSTALL" >&6; }
2187
2188 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2189 # It thinks the first close brace ends the variable substitution.
2190 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2191
2192 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2193
2194 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2195
2196 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2197 $as_echo_n "checking whether build environment is sane... " >&6; }
2198 # Just in case
2199 sleep 1
2200 echo timestamp > conftest.file
2201 # Do `set' in a subshell so we don't clobber the current shell's
2202 # arguments. Must try -L first in case configure is actually a
2203 # symlink; some systems play weird games with the mod time of symlinks
2204 # (eg FreeBSD returns the mod time of the symlink's containing
2205 # directory).
2206 if (
2207 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2208 if test "$*" = "X"; then
2209 # -L didn't work.
2210 set X `ls -t $srcdir/configure conftest.file`
2211 fi
2212 rm -f conftest.file
2213 if test "$*" != "X $srcdir/configure conftest.file" \
2214 && test "$*" != "X conftest.file $srcdir/configure"; then
2215
2216 # If neither matched, then we have a broken ls. This can happen
2217 # if, for instance, CONFIG_SHELL is bash and it inherits a
2218 # broken ls alias from the environment. This has actually
2219 # happened. Such a system could not be considered "sane".
2220 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2221 alias in your environment" >&5
2222 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2223 alias in your environment" >&2;}
2224 { (exit 1); exit 1; }; }
2225 fi
2226
2227 test "$2" = conftest.file
2228 )
2229 then
2230 # Ok.
2231 :
2232 else
2233 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2234 Check your system clock" >&5
2235 $as_echo "$as_me: error: newly created file is older than distributed files!
2236 Check your system clock" >&2;}
2237 { (exit 1); exit 1; }; }
2238 fi
2239 { $as_echo "$as_me:$LINENO: result: yes" >&5
2240 $as_echo "yes" >&6; }
2241 test "$program_prefix" != NONE &&
2242 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2243 # Use a double $ so make ignores it.
2244 test "$program_suffix" != NONE &&
2245 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2246 # Double any \ or $.
2247 # By default was `s,x,x', remove it if useless.
2248 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2249 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2250
2251 # expand $ac_aux_dir to an absolute path
2252 am_aux_dir=`cd $ac_aux_dir && pwd`
2253
2254 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2255 # Use eval to expand $SHELL
2256 if eval "$MISSING --run true"; then
2257 am_missing_run="$MISSING --run "
2258 else
2259 am_missing_run=
2260 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2261 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2262 fi
2263
2264 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2265 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2266 if test -z "$MKDIR_P"; then
2267 if test "${ac_cv_path_mkdir+set}" = set; then
2268 $as_echo_n "(cached) " >&6
2269 else
2270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2271 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2272 do
2273 IFS=$as_save_IFS
2274 test -z "$as_dir" && as_dir=.
2275 for ac_prog in mkdir gmkdir; do
2276 for ac_exec_ext in '' $ac_executable_extensions; do
2277 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2278 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2279 'mkdir (GNU coreutils) '* | \
2280 'mkdir (coreutils) '* | \
2281 'mkdir (fileutils) '4.1*)
2282 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2283 break 3;;
2284 esac
2285 done
2286 done
2287 done
2288 IFS=$as_save_IFS
2289
2290 fi
2291
2292 if test "${ac_cv_path_mkdir+set}" = set; then
2293 MKDIR_P="$ac_cv_path_mkdir -p"
2294 else
2295 # As a last resort, use the slow shell script. Don't cache a
2296 # value for MKDIR_P within a source directory, because that will
2297 # break other packages using the cache if that directory is
2298 # removed, or if the value is a relative name.
2299 test -d ./--version && rmdir ./--version
2300 MKDIR_P="$ac_install_sh -d"
2301 fi
2302 fi
2303 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2304 $as_echo "$MKDIR_P" >&6; }
2305
2306 mkdir_p="$MKDIR_P"
2307 case $mkdir_p in
2308 [\\/$]* | ?:[\\/]*) ;;
2309 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2310 esac
2311
2312 for ac_prog in gawk mawk nawk awk
2313 do
2314 # Extract the first word of "$ac_prog", so it can be a program name with args.
2315 set dummy $ac_prog; ac_word=$2
2316 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2317 $as_echo_n "checking for $ac_word... " >&6; }
2318 if test "${ac_cv_prog_AWK+set}" = set; then
2319 $as_echo_n "(cached) " >&6
2320 else
2321 if test -n "$AWK"; then
2322 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2323 else
2324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325 for as_dir in $PATH
2326 do
2327 IFS=$as_save_IFS
2328 test -z "$as_dir" && as_dir=.
2329 for ac_exec_ext in '' $ac_executable_extensions; do
2330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2331 ac_cv_prog_AWK="$ac_prog"
2332 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2333 break 2
2334 fi
2335 done
2336 done
2337 IFS=$as_save_IFS
2338
2339 fi
2340 fi
2341 AWK=$ac_cv_prog_AWK
2342 if test -n "$AWK"; then
2343 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2344 $as_echo "$AWK" >&6; }
2345 else
2346 { $as_echo "$as_me:$LINENO: result: no" >&5
2347 $as_echo "no" >&6; }
2348 fi
2349
2350
2351 test -n "$AWK" && break
2352 done
2353
2354 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2355 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2356 set x ${MAKE-make}
2357 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2358 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2359 $as_echo_n "(cached) " >&6
2360 else
2361 cat >conftest.make <<\_ACEOF
2362 SHELL = /bin/sh
2363 all:
2364 @echo '@@@%%%=$(MAKE)=@@@%%%'
2365 _ACEOF
2366 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2367 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2368 *@@@%%%=?*=@@@%%%*)
2369 eval ac_cv_prog_make_${ac_make}_set=yes;;
2370 *)
2371 eval ac_cv_prog_make_${ac_make}_set=no;;
2372 esac
2373 rm -f conftest.make
2374 fi
2375 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2376 { $as_echo "$as_me:$LINENO: result: yes" >&5
2377 $as_echo "yes" >&6; }
2378 SET_MAKE=
2379 else
2380 { $as_echo "$as_me:$LINENO: result: no" >&5
2381 $as_echo "no" >&6; }
2382 SET_MAKE="MAKE=${MAKE-make}"
2383 fi
2384
2385 rm -rf .tst 2>/dev/null
2386 mkdir .tst 2>/dev/null
2387 if test -d .tst; then
2388 am__leading_dot=.
2389 else
2390 am__leading_dot=_
2391 fi
2392 rmdir .tst 2>/dev/null
2393
2394 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2395 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2396 # is not polluted with repeated "-I."
2397 am__isrc=' -I$(srcdir)'
2398 # test to see if srcdir already configured
2399 if test -f $srcdir/config.status; then
2400 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2401 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2402 { (exit 1); exit 1; }; }
2403 fi
2404 fi
2405
2406 # test whether we have cygpath
2407 if test -z "$CYGPATH_W"; then
2408 if (cygpath --version) >/dev/null 2>/dev/null; then
2409 CYGPATH_W='cygpath -w'
2410 else
2411 CYGPATH_W=echo
2412 fi
2413 fi
2414
2415
2416 # Define the identity of the package.
2417 PACKAGE='xf86-video-tseng'
2418 VERSION='1.2.2'
2419
2420
2421 cat >>confdefs.h <<_ACEOF
2422 #define PACKAGE "$PACKAGE"
2423 _ACEOF
2424
2425
2426 cat >>confdefs.h <<_ACEOF
2427 #define VERSION "$VERSION"
2428 _ACEOF
2429
2430 # Some tools Automake needs.
2431
2432 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2433
2434
2435 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2436
2437
2438 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2439
2440
2441 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2442
2443
2444 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2445
2446 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2447
2448 # Installed binaries are usually stripped using `strip' when the user
2449 # run `make install-strip'. However `strip' might not be the right
2450 # tool to use in cross-compilation environments, therefore Automake
2451 # will honor the `STRIP' environment variable to overrule this program.
2452 if test "$cross_compiling" != no; then
2453 if test -n "$ac_tool_prefix"; then
2454 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2455 set dummy ${ac_tool_prefix}strip; ac_word=$2
2456 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2457 $as_echo_n "checking for $ac_word... " >&6; }
2458 if test "${ac_cv_prog_STRIP+set}" = set; then
2459 $as_echo_n "(cached) " >&6
2460 else
2461 if test -n "$STRIP"; then
2462 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2463 else
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465 for as_dir in $PATH
2466 do
2467 IFS=$as_save_IFS
2468 test -z "$as_dir" && as_dir=.
2469 for ac_exec_ext in '' $ac_executable_extensions; do
2470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2471 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2472 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2473 break 2
2474 fi
2475 done
2476 done
2477 IFS=$as_save_IFS
2478
2479 fi
2480 fi
2481 STRIP=$ac_cv_prog_STRIP
2482 if test -n "$STRIP"; then
2483 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2484 $as_echo "$STRIP" >&6; }
2485 else
2486 { $as_echo "$as_me:$LINENO: result: no" >&5
2487 $as_echo "no" >&6; }
2488 fi
2489
2490
2491 fi
2492 if test -z "$ac_cv_prog_STRIP"; then
2493 ac_ct_STRIP=$STRIP
2494 # Extract the first word of "strip", so it can be a program name with args.
2495 set dummy strip; ac_word=$2
2496 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2497 $as_echo_n "checking for $ac_word... " >&6; }
2498 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2499 $as_echo_n "(cached) " >&6
2500 else
2501 if test -n "$ac_ct_STRIP"; then
2502 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2503 else
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 for as_dir in $PATH
2506 do
2507 IFS=$as_save_IFS
2508 test -z "$as_dir" && as_dir=.
2509 for ac_exec_ext in '' $ac_executable_extensions; do
2510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2511 ac_cv_prog_ac_ct_STRIP="strip"
2512 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2513 break 2
2514 fi
2515 done
2516 done
2517 IFS=$as_save_IFS
2518
2519 fi
2520 fi
2521 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2522 if test -n "$ac_ct_STRIP"; then
2523 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2524 $as_echo "$ac_ct_STRIP" >&6; }
2525 else
2526 { $as_echo "$as_me:$LINENO: result: no" >&5
2527 $as_echo "no" >&6; }
2528 fi
2529
2530 if test "x$ac_ct_STRIP" = x; then
2531 STRIP=":"
2532 else
2533 case $cross_compiling:$ac_tool_warned in
2534 yes:)
2535 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2537 ac_tool_warned=yes ;;
2538 esac
2539 STRIP=$ac_ct_STRIP
2540 fi
2541 else
2542 STRIP="$ac_cv_prog_STRIP"
2543 fi
2544
2545 fi
2546 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2547
2548 # We need awk for the "check" target. The system "awk" is bad on
2549 # some platforms.
2550 # Always define AMTAR for backward compatibility.
2551
2552 AMTAR=${AMTAR-"${am_missing_run}tar"}
2553
2554 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2555
2556
2557
2558
2559
2560
2561 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2562 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2563 # Check whether --enable-maintainer-mode was given.
2564 if test "${enable_maintainer_mode+set}" = set; then
2565 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2566 else
2567 USE_MAINTAINER_MODE=no
2568 fi
2569
2570 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2571 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2572 if test $USE_MAINTAINER_MODE = yes; then
2573 MAINTAINER_MODE_TRUE=
2574 MAINTAINER_MODE_FALSE='#'
2575 else
2576 MAINTAINER_MODE_TRUE='#'
2577 MAINTAINER_MODE_FALSE=
2578 fi
2579
2580 MAINT=$MAINTAINER_MODE_TRUE
2581
2582
2583
2584 # Checks for programs.
2585 # Check whether --enable-static was given.
2586 if test "${enable_static+set}" = set; then
2587 enableval=$enable_static; p=${PACKAGE-default}
2588 case $enableval in
2589 yes) enable_static=yes ;;
2590 no) enable_static=no ;;
2591 *)
2592 enable_static=no
2593 # Look at the argument we got. We use all the common list separators.
2594 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2595 for pkg in $enableval; do
2596 IFS="$lt_save_ifs"
2597 if test "X$pkg" = "X$p"; then
2598 enable_static=yes
2599 fi
2600 done
2601 IFS="$lt_save_ifs"
2602 ;;
2603 esac
2604 else
2605 enable_static=no
2606 fi
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616 case `pwd` in
2617 *\ * | *\ *)
2618 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2619 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2620 esac
2621
2622
2623
2624 macro_version='2.2.6'
2625 macro_revision='1.3012'
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639 ltmain="$ac_aux_dir/ltmain.sh"
2640
2641 # Make sure we can run config.sub.
2642 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2643 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2644 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2645 { (exit 1); exit 1; }; }
2646
2647 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2648 $as_echo_n "checking build system type... " >&6; }
2649 if test "${ac_cv_build+set}" = set; then
2650 $as_echo_n "(cached) " >&6
2651 else
2652 ac_build_alias=$build_alias
2653 test "x$ac_build_alias" = x &&
2654 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2655 test "x$ac_build_alias" = x &&
2656 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2657 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2658 { (exit 1); exit 1; }; }
2659 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2660 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2661 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2662 { (exit 1); exit 1; }; }
2663
2664 fi
2665 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2666 $as_echo "$ac_cv_build" >&6; }
2667 case $ac_cv_build in
2668 *-*-*) ;;
2669 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2670 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2671 { (exit 1); exit 1; }; };;
2672 esac
2673 build=$ac_cv_build
2674 ac_save_IFS=$IFS; IFS='-'
2675 set x $ac_cv_build
2676 shift
2677 build_cpu=$1
2678 build_vendor=$2
2679 shift; shift
2680 # Remember, the first character of IFS is used to create $*,
2681 # except with old shells:
2682 build_os=$*
2683 IFS=$ac_save_IFS
2684 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2685
2686
2687 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2688 $as_echo_n "checking host system type... " >&6; }
2689 if test "${ac_cv_host+set}" = set; then
2690 $as_echo_n "(cached) " >&6
2691 else
2692 if test "x$host_alias" = x; then
2693 ac_cv_host=$ac_cv_build
2694 else
2695 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2696 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2697 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2698 { (exit 1); exit 1; }; }
2699 fi
2700
2701 fi
2702 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2703 $as_echo "$ac_cv_host" >&6; }
2704 case $ac_cv_host in
2705 *-*-*) ;;
2706 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2707 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2708 { (exit 1); exit 1; }; };;
2709 esac
2710 host=$ac_cv_host
2711 ac_save_IFS=$IFS; IFS='-'
2712 set x $ac_cv_host
2713 shift
2714 host_cpu=$1
2715 host_vendor=$2
2716 shift; shift
2717 # Remember, the first character of IFS is used to create $*,
2718 # except with old shells:
2719 host_os=$*
2720 IFS=$ac_save_IFS
2721 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2722
2723
2724 DEPDIR="${am__leading_dot}deps"
2725
2726 ac_config_commands="$ac_config_commands depfiles"
2727
2728
2729 am_make=${MAKE-make}
2730 cat > confinc << 'END'
2731 am__doit:
2732 @echo done
2733 .PHONY: am__doit
2734 END
2735 # If we don't find an include directive, just comment out the code.
2736 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2737 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2738 am__include="#"
2739 am__quote=
2740 _am_result=none
2741 # First try GNU make style include.
2742 echo "include confinc" > confmf
2743 # We grep out `Entering directory' and `Leaving directory'
2744 # messages which can occur if `w' ends up in MAKEFLAGS.
2745 # In particular we don't look at `^make:' because GNU make might
2746 # be invoked under some other name (usually "gmake"), in which
2747 # case it prints its new name instead of `make'.
2748 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2749 am__include=include
2750 am__quote=
2751 _am_result=GNU
2752 fi
2753 # Now try BSD make style include.
2754 if test "$am__include" = "#"; then
2755 echo '.include "confinc"' > confmf
2756 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2757 am__include=.include
2758 am__quote="\""
2759 _am_result=BSD
2760 fi
2761 fi
2762
2763
2764 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2765 $as_echo "$_am_result" >&6; }
2766 rm -f confinc confmf
2767
2768 # Check whether --enable-dependency-tracking was given.
2769 if test "${enable_dependency_tracking+set}" = set; then
2770 enableval=$enable_dependency_tracking;
2771 fi
2772
2773 if test "x$enable_dependency_tracking" != xno; then
2774 am_depcomp="$ac_aux_dir/depcomp"
2775 AMDEPBACKSLASH='\'
2776 fi
2777 if test "x$enable_dependency_tracking" != xno; then
2778 AMDEP_TRUE=
2779 AMDEP_FALSE='#'
2780 else
2781 AMDEP_TRUE='#'
2782 AMDEP_FALSE=
2783 fi
2784
2785
2786 ac_ext=c
2787 ac_cpp='$CPP $CPPFLAGS'
2788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2791 if test -n "$ac_tool_prefix"; then
2792 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2793 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2794 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2795 $as_echo_n "checking for $ac_word... " >&6; }
2796 if test "${ac_cv_prog_CC+set}" = set; then
2797 $as_echo_n "(cached) " >&6
2798 else
2799 if test -n "$CC"; then
2800 ac_cv_prog_CC="$CC" # Let the user override the test.
2801 else
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803 for as_dir in $PATH
2804 do
2805 IFS=$as_save_IFS
2806 test -z "$as_dir" && as_dir=.
2807 for ac_exec_ext in '' $ac_executable_extensions; do
2808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2809 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2810 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2811 break 2
2812 fi
2813 done
2814 done
2815 IFS=$as_save_IFS
2816
2817 fi
2818 fi
2819 CC=$ac_cv_prog_CC
2820 if test -n "$CC"; then
2821 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2822 $as_echo "$CC" >&6; }
2823 else
2824 { $as_echo "$as_me:$LINENO: result: no" >&5
2825 $as_echo "no" >&6; }
2826 fi
2827
2828
2829 fi
2830 if test -z "$ac_cv_prog_CC"; then
2831 ac_ct_CC=$CC
2832 # Extract the first word of "gcc", so it can be a program name with args.
2833 set dummy gcc; ac_word=$2
2834 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2835 $as_echo_n "checking for $ac_word... " >&6; }
2836 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2837 $as_echo_n "(cached) " >&6
2838 else
2839 if test -n "$ac_ct_CC"; then
2840 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2841 else
2842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843 for as_dir in $PATH
2844 do
2845 IFS=$as_save_IFS
2846 test -z "$as_dir" && as_dir=.
2847 for ac_exec_ext in '' $ac_executable_extensions; do
2848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2849 ac_cv_prog_ac_ct_CC="gcc"
2850 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2851 break 2
2852 fi
2853 done
2854 done
2855 IFS=$as_save_IFS
2856
2857 fi
2858 fi
2859 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2860 if test -n "$ac_ct_CC"; then
2861 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2862 $as_echo "$ac_ct_CC" >&6; }
2863 else
2864 { $as_echo "$as_me:$LINENO: result: no" >&5
2865 $as_echo "no" >&6; }
2866 fi
2867
2868 if test "x$ac_ct_CC" = x; then
2869 CC=""
2870 else
2871 case $cross_compiling:$ac_tool_warned in
2872 yes:)
2873 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2875 ac_tool_warned=yes ;;
2876 esac
2877 CC=$ac_ct_CC
2878 fi
2879 else
2880 CC="$ac_cv_prog_CC"
2881 fi
2882
2883 if test -z "$CC"; then
2884 if test -n "$ac_tool_prefix"; then
2885 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2886 set dummy ${ac_tool_prefix}cc; ac_word=$2
2887 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2888 $as_echo_n "checking for $ac_word... " >&6; }
2889 if test "${ac_cv_prog_CC+set}" = set; then
2890 $as_echo_n "(cached) " >&6
2891 else
2892 if test -n "$CC"; then
2893 ac_cv_prog_CC="$CC" # Let the user override the test.
2894 else
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 for as_dir in $PATH
2897 do
2898 IFS=$as_save_IFS
2899 test -z "$as_dir" && as_dir=.
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2902 ac_cv_prog_CC="${ac_tool_prefix}cc"
2903 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2904 break 2
2905 fi
2906 done
2907 done
2908 IFS=$as_save_IFS
2909
2910 fi
2911 fi
2912 CC=$ac_cv_prog_CC
2913 if test -n "$CC"; then
2914 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2915 $as_echo "$CC" >&6; }
2916 else
2917 { $as_echo "$as_me:$LINENO: result: no" >&5
2918 $as_echo "no" >&6; }
2919 fi
2920
2921
2922 fi
2923 fi
2924 if test -z "$CC"; then
2925 # Extract the first word of "cc", so it can be a program name with args.
2926 set dummy cc; ac_word=$2
2927 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2928 $as_echo_n "checking for $ac_word... " >&6; }
2929 if test "${ac_cv_prog_CC+set}" = set; then
2930 $as_echo_n "(cached) " >&6
2931 else
2932 if test -n "$CC"; then
2933 ac_cv_prog_CC="$CC" # Let the user override the test.
2934 else
2935 ac_prog_rejected=no
2936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937 for as_dir in $PATH
2938 do
2939 IFS=$as_save_IFS
2940 test -z "$as_dir" && as_dir=.
2941 for ac_exec_ext in '' $ac_executable_extensions; do
2942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2943 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2944 ac_prog_rejected=yes
2945 continue
2946 fi
2947 ac_cv_prog_CC="cc"
2948 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 break 2
2950 fi
2951 done
2952 done
2953 IFS=$as_save_IFS
2954
2955 if test $ac_prog_rejected = yes; then
2956 # We found a bogon in the path, so make sure we never use it.
2957 set dummy $ac_cv_prog_CC
2958 shift
2959 if test $# != 0; then
2960 # We chose a different compiler from the bogus one.
2961 # However, it has the same basename, so the bogon will be chosen
2962 # first if we set CC to just the basename; use the full file name.
2963 shift
2964 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2965 fi
2966 fi
2967 fi
2968 fi
2969 CC=$ac_cv_prog_CC
2970 if test -n "$CC"; then
2971 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2972 $as_echo "$CC" >&6; }
2973 else
2974 { $as_echo "$as_me:$LINENO: result: no" >&5
2975 $as_echo "no" >&6; }
2976 fi
2977
2978
2979 fi
2980 if test -z "$CC"; then
2981 if test -n "$ac_tool_prefix"; then
2982 for ac_prog in cl.exe
2983 do
2984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2985 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2986 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2987 $as_echo_n "checking for $ac_word... " >&6; }
2988 if test "${ac_cv_prog_CC+set}" = set; then
2989 $as_echo_n "(cached) " >&6
2990 else
2991 if test -n "$CC"; then
2992 ac_cv_prog_CC="$CC" # Let the user override the test.
2993 else
2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995 for as_dir in $PATH
2996 do
2997 IFS=$as_save_IFS
2998 test -z "$as_dir" && as_dir=.
2999 for ac_exec_ext in '' $ac_executable_extensions; do
3000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3001 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3002 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3003 break 2
3004 fi
3005 done
3006 done
3007 IFS=$as_save_IFS
3008
3009 fi
3010 fi
3011 CC=$ac_cv_prog_CC
3012 if test -n "$CC"; then
3013 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3014 $as_echo "$CC" >&6; }
3015 else
3016 { $as_echo "$as_me:$LINENO: result: no" >&5
3017 $as_echo "no" >&6; }
3018 fi
3019
3020
3021 test -n "$CC" && break
3022 done
3023 fi
3024 if test -z "$CC"; then
3025 ac_ct_CC=$CC
3026 for ac_prog in cl.exe
3027 do
3028 # Extract the first word of "$ac_prog", so it can be a program name with args.
3029 set dummy $ac_prog; ac_word=$2
3030 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3031 $as_echo_n "checking for $ac_word... " >&6; }
3032 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3033 $as_echo_n "(cached) " >&6
3034 else
3035 if test -n "$ac_ct_CC"; then
3036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3037 else
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 for as_dir in $PATH
3040 do
3041 IFS=$as_save_IFS
3042 test -z "$as_dir" && as_dir=.
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3045 ac_cv_prog_ac_ct_CC="$ac_prog"
3046 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3047 break 2
3048 fi
3049 done
3050 done
3051 IFS=$as_save_IFS
3052
3053 fi
3054 fi
3055 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3056 if test -n "$ac_ct_CC"; then
3057 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3058 $as_echo "$ac_ct_CC" >&6; }
3059 else
3060 { $as_echo "$as_me:$LINENO: result: no" >&5
3061 $as_echo "no" >&6; }
3062 fi
3063
3064
3065 test -n "$ac_ct_CC" && break
3066 done
3067
3068 if test "x$ac_ct_CC" = x; then
3069 CC=""
3070 else
3071 case $cross_compiling:$ac_tool_warned in
3072 yes:)
3073 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3075 ac_tool_warned=yes ;;
3076 esac
3077 CC=$ac_ct_CC
3078 fi
3079 fi
3080
3081 fi
3082
3083
3084 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3086 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3087 See \`config.log' for more details." >&5
3088 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3089 See \`config.log' for more details." >&2;}
3090 { (exit 1); exit 1; }; }; }
3091
3092 # Provide some information about the compiler.
3093 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3094 set X $ac_compile
3095 ac_compiler=$2
3096 { (ac_try="$ac_compiler --version >&5"
3097 case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3100 esac
3101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3102 $as_echo "$ac_try_echo") >&5
3103 (eval "$ac_compiler --version >&5") 2>&5
3104 ac_status=$?
3105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); }
3107 { (ac_try="$ac_compiler -v >&5"
3108 case "(($ac_try" in
3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110 *) ac_try_echo=$ac_try;;
3111 esac
3112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3113 $as_echo "$ac_try_echo") >&5
3114 (eval "$ac_compiler -v >&5") 2>&5
3115 ac_status=$?
3116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); }
3118 { (ac_try="$ac_compiler -V >&5"
3119 case "(($ac_try" in
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3122 esac
3123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3124 $as_echo "$ac_try_echo") >&5
3125 (eval "$ac_compiler -V >&5") 2>&5
3126 ac_status=$?
3127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); }
3129
3130 cat >conftest.$ac_ext <<_ACEOF
3131 /* confdefs.h. */
3132 _ACEOF
3133 cat confdefs.h >>conftest.$ac_ext
3134 cat >>conftest.$ac_ext <<_ACEOF
3135 /* end confdefs.h. */
3136
3137 int
3138 main ()
3139 {
3140
3141 ;
3142 return 0;
3143 }
3144 _ACEOF
3145 ac_clean_files_save=$ac_clean_files
3146 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3147 # Try to create an executable without -o first, disregard a.out.
3148 # It will help us diagnose broken compilers, and finding out an intuition
3149 # of exeext.
3150 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3151 $as_echo_n "checking for C compiler default output file name... " >&6; }
3152 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3153
3154 # The possible output files:
3155 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3156
3157 ac_rmfiles=
3158 for ac_file in $ac_files
3159 do
3160 case $ac_file in
3161 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3162 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3163 esac
3164 done
3165 rm -f $ac_rmfiles
3166
3167 if { (ac_try="$ac_link_default"
3168 case "(($ac_try" in
3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170 *) ac_try_echo=$ac_try;;
3171 esac
3172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3173 $as_echo "$ac_try_echo") >&5
3174 (eval "$ac_link_default") 2>&5
3175 ac_status=$?
3176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); }; then
3178 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3179 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3180 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3181 # so that the user can short-circuit this test for compilers unknown to
3182 # Autoconf.
3183 for ac_file in $ac_files ''
3184 do
3185 test -f "$ac_file" || continue
3186 case $ac_file in
3187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3188 ;;
3189 [ab].out )
3190 # We found the default executable, but exeext='' is most
3191 # certainly right.
3192 break;;
3193 *.* )
3194 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3195 then :; else
3196 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3197 fi
3198 # We set ac_cv_exeext here because the later test for it is not
3199 # safe: cross compilers may not add the suffix if given an `-o'
3200 # argument, so we may need to know it at that point already.
3201 # Even if this section looks crufty: it has the advantage of
3202 # actually working.
3203 break;;
3204 * )
3205 break;;
3206 esac
3207 done
3208 test "$ac_cv_exeext" = no && ac_cv_exeext=
3209
3210 else
3211 ac_file=''
3212 fi
3213
3214 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3215 $as_echo "$ac_file" >&6; }
3216 if test -z "$ac_file"; then
3217 $as_echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3219
3220 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3222 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3223 See \`config.log' for more details." >&5
3224 $as_echo "$as_me: error: C compiler cannot create executables
3225 See \`config.log' for more details." >&2;}
3226 { (exit 77); exit 77; }; }; }
3227 fi
3228
3229 ac_exeext=$ac_cv_exeext
3230
3231 # Check that the compiler produces executables we can run. If not, either
3232 # the compiler is broken, or we cross compile.
3233 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3234 $as_echo_n "checking whether the C compiler works... " >&6; }
3235 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3236 # If not cross compiling, check that we can run a simple program.
3237 if test "$cross_compiling" != yes; then
3238 if { ac_try='./$ac_file'
3239 { (case "(($ac_try" in
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3242 esac
3243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3244 $as_echo "$ac_try_echo") >&5
3245 (eval "$ac_try") 2>&5
3246 ac_status=$?
3247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }; }; then
3249 cross_compiling=no
3250 else
3251 if test "$cross_compiling" = maybe; then
3252 cross_compiling=yes
3253 else
3254 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3257 If you meant to cross compile, use \`--host'.
3258 See \`config.log' for more details." >&5
3259 $as_echo "$as_me: error: cannot run C compiled programs.
3260 If you meant to cross compile, use \`--host'.
3261 See \`config.log' for more details." >&2;}
3262 { (exit 1); exit 1; }; }; }
3263 fi
3264 fi
3265 fi
3266 { $as_echo "$as_me:$LINENO: result: yes" >&5
3267 $as_echo "yes" >&6; }
3268
3269 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3270 ac_clean_files=$ac_clean_files_save
3271 # Check that the compiler produces executables we can run. If not, either
3272 # the compiler is broken, or we cross compile.
3273 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3274 $as_echo_n "checking whether we are cross compiling... " >&6; }
3275 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3276 $as_echo "$cross_compiling" >&6; }
3277
3278 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3279 $as_echo_n "checking for suffix of executables... " >&6; }
3280 if { (ac_try="$ac_link"
3281 case "(($ac_try" in
3282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283 *) ac_try_echo=$ac_try;;
3284 esac
3285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3286 $as_echo "$ac_try_echo") >&5
3287 (eval "$ac_link") 2>&5
3288 ac_status=$?
3289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); }; then
3291 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3292 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3293 # work properly (i.e., refer to `conftest.exe'), while it won't with
3294 # `rm'.
3295 for ac_file in conftest.exe conftest conftest.*; do
3296 test -f "$ac_file" || continue
3297 case $ac_file in
3298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3299 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3300 break;;
3301 * ) break;;
3302 esac
3303 done
3304 else
3305 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3307 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3308 See \`config.log' for more details." >&5
3309 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3310 See \`config.log' for more details." >&2;}
3311 { (exit 1); exit 1; }; }; }
3312 fi
3313
3314 rm -f conftest$ac_cv_exeext
3315 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3316 $as_echo "$ac_cv_exeext" >&6; }
3317
3318 rm -f conftest.$ac_ext
3319 EXEEXT=$ac_cv_exeext
3320 ac_exeext=$EXEEXT
3321 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3322 $as_echo_n "checking for suffix of object files... " >&6; }
3323 if test "${ac_cv_objext+set}" = set; then
3324 $as_echo_n "(cached) " >&6
3325 else
3326 cat >conftest.$ac_ext <<_ACEOF
3327 /* confdefs.h. */
3328 _ACEOF
3329 cat confdefs.h >>conftest.$ac_ext
3330 cat >>conftest.$ac_ext <<_ACEOF
3331 /* end confdefs.h. */
3332
3333 int
3334 main ()
3335 {
3336
3337 ;
3338 return 0;
3339 }
3340 _ACEOF
3341 rm -f conftest.o conftest.obj
3342 if { (ac_try="$ac_compile"
3343 case "(($ac_try" in
3344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345 *) ac_try_echo=$ac_try;;
3346 esac
3347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3348 $as_echo "$ac_try_echo") >&5
3349 (eval "$ac_compile") 2>&5
3350 ac_status=$?
3351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; then
3353 for ac_file in conftest.o conftest.obj conftest.*; do
3354 test -f "$ac_file" || continue;
3355 case $ac_file in
3356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3357 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3358 break;;
3359 esac
3360 done
3361 else
3362 $as_echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3364
3365 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3367 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3368 See \`config.log' for more details." >&5
3369 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3370 See \`config.log' for more details." >&2;}
3371 { (exit 1); exit 1; }; }; }
3372 fi
3373
3374 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3375 fi
3376 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3377 $as_echo "$ac_cv_objext" >&6; }
3378 OBJEXT=$ac_cv_objext
3379 ac_objext=$OBJEXT
3380 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3381 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3382 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3383 $as_echo_n "(cached) " >&6
3384 else
3385 cat >conftest.$ac_ext <<_ACEOF
3386 /* confdefs.h. */
3387 _ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h. */
3391
3392 int
3393 main ()
3394 {
3395 #ifndef __GNUC__
3396 choke me
3397 #endif
3398
3399 ;
3400 return 0;
3401 }
3402 _ACEOF
3403 rm -f conftest.$ac_objext
3404 if { (ac_try="$ac_compile"
3405 case "(($ac_try" in
3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407 *) ac_try_echo=$ac_try;;
3408 esac
3409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3410 $as_echo "$ac_try_echo") >&5
3411 (eval "$ac_compile") 2>conftest.er1
3412 ac_status=$?
3413 grep -v '^ *+' conftest.er1 >conftest.err
3414 rm -f conftest.er1
3415 cat conftest.err >&5
3416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); } && {
3418 test -z "$ac_c_werror_flag" ||
3419 test ! -s conftest.err
3420 } && test -s conftest.$ac_objext; then
3421 ac_compiler_gnu=yes
3422 else
3423 $as_echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3425
3426 ac_compiler_gnu=no
3427 fi
3428
3429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3430 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3431
3432 fi
3433 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3434 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3435 if test $ac_compiler_gnu = yes; then
3436 GCC=yes
3437 else
3438 GCC=
3439 fi
3440 ac_test_CFLAGS=${CFLAGS+set}
3441 ac_save_CFLAGS=$CFLAGS
3442 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3443 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3444 if test "${ac_cv_prog_cc_g+set}" = set; then
3445 $as_echo_n "(cached) " >&6
3446 else
3447 ac_save_c_werror_flag=$ac_c_werror_flag
3448 ac_c_werror_flag=yes
3449 ac_cv_prog_cc_g=no
3450 CFLAGS="-g"
3451 cat >conftest.$ac_ext <<_ACEOF
3452 /* confdefs.h. */
3453 _ACEOF
3454 cat confdefs.h >>conftest.$ac_ext
3455 cat >>conftest.$ac_ext <<_ACEOF
3456 /* end confdefs.h. */
3457
3458 int
3459 main ()
3460 {
3461
3462 ;
3463 return 0;
3464 }
3465 _ACEOF
3466 rm -f conftest.$ac_objext
3467 if { (ac_try="$ac_compile"
3468 case "(($ac_try" in
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3471 esac
3472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3473 $as_echo "$ac_try_echo") >&5
3474 (eval "$ac_compile") 2>conftest.er1
3475 ac_status=$?
3476 grep -v '^ *+' conftest.er1 >conftest.err
3477 rm -f conftest.er1
3478 cat conftest.err >&5
3479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); } && {
3481 test -z "$ac_c_werror_flag" ||
3482 test ! -s conftest.err
3483 } && test -s conftest.$ac_objext; then
3484 ac_cv_prog_cc_g=yes
3485 else
3486 $as_echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3488
3489 CFLAGS=""
3490 cat >conftest.$ac_ext <<_ACEOF
3491 /* confdefs.h. */
3492 _ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h. */
3496
3497 int
3498 main ()
3499 {
3500
3501 ;
3502 return 0;
3503 }
3504 _ACEOF
3505 rm -f conftest.$ac_objext
3506 if { (ac_try="$ac_compile"
3507 case "(($ac_try" in
3508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509 *) ac_try_echo=$ac_try;;
3510 esac
3511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3512 $as_echo "$ac_try_echo") >&5
3513 (eval "$ac_compile") 2>conftest.er1
3514 ac_status=$?
3515 grep -v '^ *+' conftest.er1 >conftest.err
3516 rm -f conftest.er1
3517 cat conftest.err >&5
3518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); } && {
3520 test -z "$ac_c_werror_flag" ||
3521 test ! -s conftest.err
3522 } && test -s conftest.$ac_objext; then
3523 :
3524 else
3525 $as_echo "$as_me: failed program was:" >&5
3526 sed 's/^/| /' conftest.$ac_ext >&5
3527
3528 ac_c_werror_flag=$ac_save_c_werror_flag
3529 CFLAGS="-g"
3530 cat >conftest.$ac_ext <<_ACEOF
3531 /* confdefs.h. */
3532 _ACEOF
3533 cat confdefs.h >>conftest.$ac_ext
3534 cat >>conftest.$ac_ext <<_ACEOF
3535 /* end confdefs.h. */
3536
3537 int
3538 main ()
3539 {
3540
3541 ;
3542 return 0;
3543 }
3544 _ACEOF
3545 rm -f conftest.$ac_objext
3546 if { (ac_try="$ac_compile"
3547 case "(($ac_try" in
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3550 esac
3551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3552 $as_echo "$ac_try_echo") >&5
3553 (eval "$ac_compile") 2>conftest.er1
3554 ac_status=$?
3555 grep -v '^ *+' conftest.er1 >conftest.err
3556 rm -f conftest.er1
3557 cat conftest.err >&5
3558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } && {
3560 test -z "$ac_c_werror_flag" ||
3561 test ! -s conftest.err
3562 } && test -s conftest.$ac_objext; then
3563 ac_cv_prog_cc_g=yes
3564 else
3565 $as_echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3567
3568
3569 fi
3570
3571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572 fi
3573
3574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3575 fi
3576
3577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3578 ac_c_werror_flag=$ac_save_c_werror_flag
3579 fi
3580 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3581 $as_echo "$ac_cv_prog_cc_g" >&6; }
3582 if test "$ac_test_CFLAGS" = set; then
3583 CFLAGS=$ac_save_CFLAGS
3584 elif test $ac_cv_prog_cc_g = yes; then
3585 if test "$GCC" = yes; then
3586 CFLAGS="-g -O2"
3587 else
3588 CFLAGS="-g"
3589 fi
3590 else
3591 if test "$GCC" = yes; then
3592 CFLAGS="-O2"
3593 else
3594 CFLAGS=
3595 fi
3596 fi
3597 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3598 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3599 if test "${ac_cv_prog_cc_c89+set}" = set; then
3600 $as_echo_n "(cached) " >&6
3601 else
3602 ac_cv_prog_cc_c89=no
3603 ac_save_CC=$CC
3604 cat >conftest.$ac_ext <<_ACEOF
3605 /* confdefs.h. */
3606 _ACEOF
3607 cat confdefs.h >>conftest.$ac_ext
3608 cat >>conftest.$ac_ext <<_ACEOF
3609 /* end confdefs.h. */
3610 #include <stdarg.h>
3611 #include <stdio.h>
3612 #include <sys/types.h>
3613 #include <sys/stat.h>
3614 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3615 struct buf { int x; };
3616 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3617 static char *e (p, i)
3618 char **p;
3619 int i;
3620 {
3621 return p[i];
3622 }
3623 static char *f (char * (*g) (char **, int), char **p, ...)
3624 {
3625 char *s;
3626 va_list v;
3627 va_start (v,p);
3628 s = g (p, va_arg (v,int));
3629 va_end (v);
3630 return s;
3631 }
3632
3633 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3634 function prototypes and stuff, but not '\xHH' hex character constants.
3635 These don't provoke an error unfortunately, instead are silently treated
3636 as 'x'. The following induces an error, until -std is added to get
3637 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3638 array size at least. It's necessary to write '\x00'==0 to get something
3639 that's true only with -std. */
3640 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3641
3642 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3643 inside strings and character constants. */
3644 #define FOO(x) 'x'
3645 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3646
3647 int test (int i, double x);
3648 struct s1 {int (*f) (int a);};
3649 struct s2 {int (*f) (double a);};
3650 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3651 int argc;
3652 char **argv;
3653 int
3654 main ()
3655 {
3656 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3657 ;
3658 return 0;
3659 }
3660 _ACEOF
3661 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3662 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3663 do
3664 CC="$ac_save_CC $ac_arg"
3665 rm -f conftest.$ac_objext
3666 if { (ac_try="$ac_compile"
3667 case "(($ac_try" in
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3670 esac
3671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3672 $as_echo "$ac_try_echo") >&5
3673 (eval "$ac_compile") 2>conftest.er1
3674 ac_status=$?
3675 grep -v '^ *+' conftest.er1 >conftest.err
3676 rm -f conftest.er1
3677 cat conftest.err >&5
3678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); } && {
3680 test -z "$ac_c_werror_flag" ||
3681 test ! -s conftest.err
3682 } && test -s conftest.$ac_objext; then
3683 ac_cv_prog_cc_c89=$ac_arg
3684 else
3685 $as_echo "$as_me: failed program was:" >&5
3686 sed 's/^/| /' conftest.$ac_ext >&5
3687
3688
3689 fi
3690
3691 rm -f core conftest.err conftest.$ac_objext
3692 test "x$ac_cv_prog_cc_c89" != "xno" && break
3693 done
3694 rm -f conftest.$ac_ext
3695 CC=$ac_save_CC
3696
3697 fi
3698 # AC_CACHE_VAL
3699 case "x$ac_cv_prog_cc_c89" in
3700 x)
3701 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3702 $as_echo "none needed" >&6; } ;;
3703 xno)
3704 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3705 $as_echo "unsupported" >&6; } ;;
3706 *)
3707 CC="$CC $ac_cv_prog_cc_c89"
3708 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3709 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3710 esac
3711
3712
3713 ac_ext=c
3714 ac_cpp='$CPP $CPPFLAGS'
3715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3718
3719 depcc="$CC" am_compiler_list=
3720
3721 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3722 $as_echo_n "checking dependency style of $depcc... " >&6; }
3723 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3724 $as_echo_n "(cached) " >&6
3725 else
3726 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3727 # We make a subdir and do the tests there. Otherwise we can end up
3728 # making bogus files that we don't know about and never remove. For
3729 # instance it was reported that on HP-UX the gcc test will end up
3730 # making a dummy file named `D' -- because `-MD' means `put the output
3731 # in D'.
3732 mkdir conftest.dir
3733 # Copy depcomp to subdir because otherwise we won't find it if we're
3734 # using a relative directory.
3735 cp "$am_depcomp" conftest.dir
3736 cd conftest.dir
3737 # We will build objects and dependencies in a subdirectory because
3738 # it helps to detect inapplicable dependency modes. For instance
3739 # both Tru64's cc and ICC support -MD to output dependencies as a
3740 # side effect of compilation, but ICC will put the dependencies in
3741 # the current directory while Tru64 will put them in the object
3742 # directory.
3743 mkdir sub
3744
3745 am_cv_CC_dependencies_compiler_type=none
3746 if test "$am_compiler_list" = ""; then
3747 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3748 fi
3749 for depmode in $am_compiler_list; do
3750 # Setup a source with many dependencies, because some compilers
3751 # like to wrap large dependency lists on column 80 (with \), and
3752 # we should not choose a depcomp mode which is confused by this.
3753 #
3754 # We need to recreate these files for each test, as the compiler may
3755 # overwrite some of them when testing with obscure command lines.
3756 # This happens at least with the AIX C compiler.
3757 : > sub/conftest.c
3758 for i in 1 2 3 4 5 6; do
3759 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3760 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3761 # Solaris 8's {/usr,}/bin/sh.
3762 touch sub/conftst$i.h
3763 done
3764 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3765
3766 case $depmode in
3767 nosideeffect)
3768 # after this tag, mechanisms are not by side-effect, so they'll
3769 # only be used when explicitly requested
3770 if test "x$enable_dependency_tracking" = xyes; then
3771 continue
3772 else
3773 break
3774 fi
3775 ;;
3776 none) break ;;
3777 esac
3778 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3779 # mode. It turns out that the SunPro C++ compiler does not properly
3780 # handle `-M -o', and we need to detect this.
3781 if depmode=$depmode \
3782 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3783 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3784 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3785 >/dev/null 2>conftest.err &&
3786 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3787 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3788 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3789 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3790 # icc doesn't choke on unknown options, it will just issue warnings
3791 # or remarks (even with -Werror). So we grep stderr for any message
3792 # that says an option was ignored or not supported.
3793 # When given -MP, icc 7.0 and 7.1 complain thusly:
3794 # icc: Command line warning: ignoring option '-M'; no argument required
3795 # The diagnosis changed in icc 8.0:
3796 # icc: Command line remark: option '-MP' not supported
3797 if (grep 'ignoring option' conftest.err ||
3798 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3799 am_cv_CC_dependencies_compiler_type=$depmode
3800 break
3801 fi
3802 fi
3803 done
3804
3805 cd ..
3806 rm -rf conftest.dir
3807 else
3808 am_cv_CC_dependencies_compiler_type=none
3809 fi
3810
3811 fi
3812 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3813 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3814 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3815
3816 if
3817 test "x$enable_dependency_tracking" != xno \
3818 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3819 am__fastdepCC_TRUE=
3820 am__fastdepCC_FALSE='#'
3821 else
3822 am__fastdepCC_TRUE='#'
3823 am__fastdepCC_FALSE=
3824 fi
3825
3826
3827 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3828 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3829 if test "${ac_cv_path_SED+set}" = set; then
3830 $as_echo_n "(cached) " >&6
3831 else
3832 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3833 for ac_i in 1 2 3 4 5 6 7; do
3834 ac_script="$ac_script$as_nl$ac_script"
3835 done
3836 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3837 $as_unset ac_script || ac_script=
3838 if test -z "$SED"; then
3839 ac_path_SED_found=false
3840 # Loop through the user's path and test for each of PROGNAME-LIST
3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842 for as_dir in $PATH
3843 do
3844 IFS=$as_save_IFS
3845 test -z "$as_dir" && as_dir=.
3846 for ac_prog in sed gsed; do
3847 for ac_exec_ext in '' $ac_executable_extensions; do
3848 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3849 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3850 # Check for GNU ac_path_SED and select it if it is found.
3851 # Check for GNU $ac_path_SED
3852 case `"$ac_path_SED" --version 2>&1` in
3853 *GNU*)
3854 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3855 *)
3856 ac_count=0
3857 $as_echo_n 0123456789 >"conftest.in"
3858 while :
3859 do
3860 cat "conftest.in" "conftest.in" >"conftest.tmp"
3861 mv "conftest.tmp" "conftest.in"
3862 cp "conftest.in" "conftest.nl"
3863 $as_echo '' >> "conftest.nl"
3864 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3865 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3866 ac_count=`expr $ac_count + 1`
3867 if test $ac_count -gt ${ac_path_SED_max-0}; then
3868 # Best one so far, save it but keep looking for a better one
3869 ac_cv_path_SED="$ac_path_SED"
3870 ac_path_SED_max=$ac_count
3871 fi
3872 # 10*(2^10) chars as input seems more than enough
3873 test $ac_count -gt 10 && break
3874 done
3875 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3876 esac
3877
3878 $ac_path_SED_found && break 3
3879 done
3880 done
3881 done
3882 IFS=$as_save_IFS
3883 if test -z "$ac_cv_path_SED"; then
3884 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3885 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3886 { (exit 1); exit 1; }; }
3887 fi
3888 else
3889 ac_cv_path_SED=$SED
3890 fi
3891
3892 fi
3893 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3894 $as_echo "$ac_cv_path_SED" >&6; }
3895 SED="$ac_cv_path_SED"
3896 rm -f conftest.sed
3897
3898 test -z "$SED" && SED=sed
3899 Xsed="$SED -e 1s/^X//"
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3912 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3913 if test "${ac_cv_path_GREP+set}" = set; then
3914 $as_echo_n "(cached) " >&6
3915 else
3916 if test -z "$GREP"; then
3917 ac_path_GREP_found=false
3918 # Loop through the user's path and test for each of PROGNAME-LIST
3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3921 do
3922 IFS=$as_save_IFS
3923 test -z "$as_dir" && as_dir=.
3924 for ac_prog in grep ggrep; do
3925 for ac_exec_ext in '' $ac_executable_extensions; do
3926 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3927 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3928 # Check for GNU ac_path_GREP and select it if it is found.
3929 # Check for GNU $ac_path_GREP
3930 case `"$ac_path_GREP" --version 2>&1` in
3931 *GNU*)
3932 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3933 *)
3934 ac_count=0
3935 $as_echo_n 0123456789 >"conftest.in"
3936 while :
3937 do
3938 cat "conftest.in" "conftest.in" >"conftest.tmp"
3939 mv "conftest.tmp" "conftest.in"
3940 cp "conftest.in" "conftest.nl"
3941 $as_echo 'GREP' >> "conftest.nl"
3942 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3943 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3944 ac_count=`expr $ac_count + 1`
3945 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3946 # Best one so far, save it but keep looking for a better one
3947 ac_cv_path_GREP="$ac_path_GREP"
3948 ac_path_GREP_max=$ac_count
3949 fi
3950 # 10*(2^10) chars as input seems more than enough
3951 test $ac_count -gt 10 && break
3952 done
3953 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3954 esac
3955
3956 $ac_path_GREP_found && break 3
3957 done
3958 done
3959 done
3960 IFS=$as_save_IFS
3961 if test -z "$ac_cv_path_GREP"; then
3962 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3963 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3964 { (exit 1); exit 1; }; }
3965 fi
3966 else
3967 ac_cv_path_GREP=$GREP
3968 fi
3969
3970 fi
3971 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3972 $as_echo "$ac_cv_path_GREP" >&6; }
3973 GREP="$ac_cv_path_GREP"
3974
3975
3976 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3977 $as_echo_n "checking for egrep... " >&6; }
3978 if test "${ac_cv_path_EGREP+set}" = set; then
3979 $as_echo_n "(cached) " >&6
3980 else
3981 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3982 then ac_cv_path_EGREP="$GREP -E"
3983 else
3984 if test -z "$EGREP"; then
3985 ac_path_EGREP_found=false
3986 # Loop through the user's path and test for each of PROGNAME-LIST
3987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3989 do
3990 IFS=$as_save_IFS
3991 test -z "$as_dir" && as_dir=.
3992 for ac_prog in egrep; do
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3995 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3996 # Check for GNU ac_path_EGREP and select it if it is found.
3997 # Check for GNU $ac_path_EGREP
3998 case `"$ac_path_EGREP" --version 2>&1` in
3999 *GNU*)
4000 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4001 *)
4002 ac_count=0
4003 $as_echo_n 0123456789 >"conftest.in"
4004 while :
4005 do
4006 cat "conftest.in" "conftest.in" >"conftest.tmp"
4007 mv "conftest.tmp" "conftest.in"
4008 cp "conftest.in" "conftest.nl"
4009 $as_echo 'EGREP' >> "conftest.nl"
4010 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4011 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4012 ac_count=`expr $ac_count + 1`
4013 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4014 # Best one so far, save it but keep looking for a better one
4015 ac_cv_path_EGREP="$ac_path_EGREP"
4016 ac_path_EGREP_max=$ac_count
4017 fi
4018 # 10*(2^10) chars as input seems more than enough
4019 test $ac_count -gt 10 && break
4020 done
4021 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4022 esac
4023
4024 $ac_path_EGREP_found && break 3
4025 done
4026 done
4027 done
4028 IFS=$as_save_IFS
4029 if test -z "$ac_cv_path_EGREP"; then
4030 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4031 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4032 { (exit 1); exit 1; }; }
4033 fi
4034 else
4035 ac_cv_path_EGREP=$EGREP
4036 fi
4037
4038 fi
4039 fi
4040 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4041 $as_echo "$ac_cv_path_EGREP" >&6; }
4042 EGREP="$ac_cv_path_EGREP"
4043
4044
4045 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4046 $as_echo_n "checking for fgrep... " >&6; }
4047 if test "${ac_cv_path_FGREP+set}" = set; then
4048 $as_echo_n "(cached) " >&6
4049 else
4050 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4051 then ac_cv_path_FGREP="$GREP -F"
4052 else
4053 if test -z "$FGREP"; then
4054 ac_path_FGREP_found=false
4055 # Loop through the user's path and test for each of PROGNAME-LIST
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4058 do
4059 IFS=$as_save_IFS
4060 test -z "$as_dir" && as_dir=.
4061 for ac_prog in fgrep; do
4062 for ac_exec_ext in '' $ac_executable_extensions; do
4063 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4064 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4065 # Check for GNU ac_path_FGREP and select it if it is found.
4066 # Check for GNU $ac_path_FGREP
4067 case `"$ac_path_FGREP" --version 2>&1` in
4068 *GNU*)
4069 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4070 *)
4071 ac_count=0
4072 $as_echo_n 0123456789 >"conftest.in"
4073 while :
4074 do
4075 cat "conftest.in" "conftest.in" >"conftest.tmp"
4076 mv "conftest.tmp" "conftest.in"
4077 cp "conftest.in" "conftest.nl"
4078 $as_echo 'FGREP' >> "conftest.nl"
4079 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4080 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4081 ac_count=`expr $ac_count + 1`
4082 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4083 # Best one so far, save it but keep looking for a better one
4084 ac_cv_path_FGREP="$ac_path_FGREP"
4085 ac_path_FGREP_max=$ac_count
4086 fi
4087 # 10*(2^10) chars as input seems more than enough
4088 test $ac_count -gt 10 && break
4089 done
4090 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4091 esac
4092
4093 $ac_path_FGREP_found && break 3
4094 done
4095 done
4096 done
4097 IFS=$as_save_IFS
4098 if test -z "$ac_cv_path_FGREP"; then
4099 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4100 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4101 { (exit 1); exit 1; }; }
4102 fi
4103 else
4104 ac_cv_path_FGREP=$FGREP
4105 fi
4106
4107 fi
4108 fi
4109 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4110 $as_echo "$ac_cv_path_FGREP" >&6; }
4111 FGREP="$ac_cv_path_FGREP"
4112
4113
4114 test -z "$GREP" && GREP=grep
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134 # Check whether --with-gnu-ld was given.
4135 if test "${with_gnu_ld+set}" = set; then
4136 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4137 else
4138 with_gnu_ld=no
4139 fi
4140
4141 ac_prog=ld
4142 if test "$GCC" = yes; then
4143 # Check if gcc -print-prog-name=ld gives a path.
4144 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4145 $as_echo_n "checking for ld used by $CC... " >&6; }
4146 case $host in
4147 *-*-mingw*)
4148 # gcc leaves a trailing carriage return which upsets mingw
4149 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4150 *)
4151 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4152 esac
4153 case $ac_prog in
4154 # Accept absolute paths.
4155 [\\/]* | ?:[\\/]*)
4156 re_direlt='/[^/][^/]*/\.\./'
4157 # Canonicalize the pathname of ld
4158 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4159 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4160 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4161 done
4162 test -z "$LD" && LD="$ac_prog"
4163 ;;
4164 "")
4165 # If it fails, then pretend we aren't using GCC.
4166 ac_prog=ld
4167 ;;
4168 *)
4169 # If it is relative, then search for the first ld in PATH.
4170 with_gnu_ld=unknown
4171 ;;
4172 esac
4173 elif test "$with_gnu_ld" = yes; then
4174 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4175 $as_echo_n "checking for GNU ld... " >&6; }
4176 else
4177 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4178 $as_echo_n "checking for non-GNU ld... " >&6; }
4179 fi
4180 if test "${lt_cv_path_LD+set}" = set; then
4181 $as_echo_n "(cached) " >&6
4182 else
4183 if test -z "$LD"; then
4184 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4185 for ac_dir in $PATH; do
4186 IFS="$lt_save_ifs"
4187 test -z "$ac_dir" && ac_dir=.
4188 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4189 lt_cv_path_LD="$ac_dir/$ac_prog"
4190 # Check to see if the program is GNU ld. I'd rather use --version,
4191 # but apparently some variants of GNU ld only accept -v.
4192 # Break only if it was the GNU/non-GNU ld that we prefer.
4193 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4194 *GNU* | *'with BFD'*)
4195 test "$with_gnu_ld" != no && break
4196 ;;
4197 *)
4198 test "$with_gnu_ld" != yes && break
4199 ;;
4200 esac
4201 fi
4202 done
4203 IFS="$lt_save_ifs"
4204 else
4205 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4206 fi
4207 fi
4208
4209 LD="$lt_cv_path_LD"
4210 if test -n "$LD"; then
4211 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4212 $as_echo "$LD" >&6; }
4213 else
4214 { $as_echo "$as_me:$LINENO: result: no" >&5
4215 $as_echo "no" >&6; }
4216 fi
4217 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4218 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4219 { (exit 1); exit 1; }; }
4220 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4221 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4222 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4223 $as_echo_n "(cached) " >&6
4224 else
4225 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4226 case `$LD -v 2>&1 </dev/null` in
4227 *GNU* | *'with BFD'*)
4228 lt_cv_prog_gnu_ld=yes
4229 ;;
4230 *)
4231 lt_cv_prog_gnu_ld=no
4232 ;;
4233 esac
4234 fi
4235 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4236 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4237 with_gnu_ld=$lt_cv_prog_gnu_ld
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4248 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4249 if test "${lt_cv_path_NM+set}" = set; then
4250 $as_echo_n "(cached) " >&6
4251 else
4252 if test -n "$NM"; then
4253 # Let the user override the test.
4254 lt_cv_path_NM="$NM"
4255 else
4256 lt_nm_to_check="${ac_tool_prefix}nm"
4257 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4258 lt_nm_to_check="$lt_nm_to_check nm"
4259 fi
4260 for lt_tmp_nm in $lt_nm_to_check; do
4261 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4262 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4263 IFS="$lt_save_ifs"
4264 test -z "$ac_dir" && ac_dir=.
4265 tmp_nm="$ac_dir/$lt_tmp_nm"
4266 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4267 # Check to see if the nm accepts a BSD-compat flag.
4268 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4269 # nm: unknown option "B" ignored
4270 # Tru64's nm complains that /dev/null is an invalid object file
4271 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4272 */dev/null* | *'Invalid file or object type'*)
4273 lt_cv_path_NM="$tmp_nm -B"
4274 break
4275 ;;
4276 *)
4277 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4278 */dev/null*)
4279 lt_cv_path_NM="$tmp_nm -p"
4280 break
4281 ;;
4282 *)
4283 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4284 continue # so that we can try to find one that supports BSD flags
4285 ;;
4286 esac
4287 ;;
4288 esac
4289 fi
4290 done
4291 IFS="$lt_save_ifs"
4292 done
4293 : ${lt_cv_path_NM=no}
4294 fi
4295 fi
4296 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4297 $as_echo "$lt_cv_path_NM" >&6; }
4298 if test "$lt_cv_path_NM" != "no"; then
4299 NM="$lt_cv_path_NM"
4300 else
4301 # Didn't find any BSD compatible name lister, look for dumpbin.
4302 if test -n "$ac_tool_prefix"; then
4303 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4304 do
4305 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4306 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4307 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4308 $as_echo_n "checking for $ac_word... " >&6; }
4309 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4310 $as_echo_n "(cached) " >&6
4311 else
4312 if test -n "$DUMPBIN"; then
4313 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4314 else
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 for as_dir in $PATH
4317 do
4318 IFS=$as_save_IFS
4319 test -z "$as_dir" && as_dir=.
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4322 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4323 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4324 break 2
4325 fi
4326 done
4327 done
4328 IFS=$as_save_IFS
4329
4330 fi
4331 fi
4332 DUMPBIN=$ac_cv_prog_DUMPBIN
4333 if test -n "$DUMPBIN"; then
4334 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4335 $as_echo "$DUMPBIN" >&6; }
4336 else
4337 { $as_echo "$as_me:$LINENO: result: no" >&5
4338 $as_echo "no" >&6; }
4339 fi
4340
4341
4342 test -n "$DUMPBIN" && break
4343 done
4344 fi
4345 if test -z "$DUMPBIN"; then
4346 ac_ct_DUMPBIN=$DUMPBIN
4347 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4348 do
4349 # Extract the first word of "$ac_prog", so it can be a program name with args.
4350 set dummy $ac_prog; ac_word=$2
4351 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4352 $as_echo_n "checking for $ac_word... " >&6; }
4353 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4354 $as_echo_n "(cached) " >&6
4355 else
4356 if test -n "$ac_ct_DUMPBIN"; then
4357 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4358 else
4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360 for as_dir in $PATH
4361 do
4362 IFS=$as_save_IFS
4363 test -z "$as_dir" && as_dir=.
4364 for ac_exec_ext in '' $ac_executable_extensions; do
4365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4366 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4367 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4368 break 2
4369 fi
4370 done
4371 done
4372 IFS=$as_save_IFS
4373
4374 fi
4375 fi
4376 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4377 if test -n "$ac_ct_DUMPBIN"; then
4378 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4379 $as_echo "$ac_ct_DUMPBIN" >&6; }
4380 else
4381 { $as_echo "$as_me:$LINENO: result: no" >&5
4382 $as_echo "no" >&6; }
4383 fi
4384
4385
4386 test -n "$ac_ct_DUMPBIN" && break
4387 done
4388
4389 if test "x$ac_ct_DUMPBIN" = x; then
4390 DUMPBIN=":"
4391 else
4392 case $cross_compiling:$ac_tool_warned in
4393 yes:)
4394 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4396 ac_tool_warned=yes ;;
4397 esac
4398 DUMPBIN=$ac_ct_DUMPBIN
4399 fi
4400 fi
4401
4402
4403 if test "$DUMPBIN" != ":"; then
4404 NM="$DUMPBIN"
4405 fi
4406 fi
4407 test -z "$NM" && NM=nm
4408
4409
4410
4411
4412
4413
4414 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4415 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4416 if test "${lt_cv_nm_interface+set}" = set; then
4417 $as_echo_n "(cached) " >&6
4418 else
4419 lt_cv_nm_interface="BSD nm"
4420 echo "int some_variable = 0;" > conftest.$ac_ext
4421 (eval echo "\"\$as_me:4421: $ac_compile\"" >&5)
4422 (eval "$ac_compile" 2>conftest.err)
4423 cat conftest.err >&5
4424 (eval echo "\"\$as_me:4424: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4425 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4426 cat conftest.err >&5
4427 (eval echo "\"\$as_me:4427: output\"" >&5)
4428 cat conftest.out >&5
4429 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4430 lt_cv_nm_interface="MS dumpbin"
4431 fi
4432 rm -f conftest*
4433 fi
4434 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4435 $as_echo "$lt_cv_nm_interface" >&6; }
4436
4437 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4438 $as_echo_n "checking whether ln -s works... " >&6; }
4439 LN_S=$as_ln_s
4440 if test "$LN_S" = "ln -s"; then
4441 { $as_echo "$as_me:$LINENO: result: yes" >&5
4442 $as_echo "yes" >&6; }
4443 else
4444 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4445 $as_echo "no, using $LN_S" >&6; }
4446 fi
4447
4448 # find the maximum length of command line arguments
4449 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4450 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4451 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4452 $as_echo_n "(cached) " >&6
4453 else
4454 i=0
4455 teststring="ABCD"
4456
4457 case $build_os in
4458 msdosdjgpp*)
4459 # On DJGPP, this test can blow up pretty badly due to problems in libc
4460 # (any single argument exceeding 2000 bytes causes a buffer overrun
4461 # during glob expansion). Even if it were fixed, the result of this
4462 # check would be larger than it should be.
4463 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4464 ;;
4465
4466 gnu*)
4467 # Under GNU Hurd, this test is not required because there is
4468 # no limit to the length of command line arguments.
4469 # Libtool will interpret -1 as no limit whatsoever
4470 lt_cv_sys_max_cmd_len=-1;
4471 ;;
4472
4473 cygwin* | mingw* | cegcc*)
4474 # On Win9x/ME, this test blows up -- it succeeds, but takes
4475 # about 5 minutes as the teststring grows exponentially.
4476 # Worse, since 9x/ME are not pre-emptively multitasking,
4477 # you end up with a "frozen" computer, even though with patience
4478 # the test eventually succeeds (with a max line length of 256k).
4479 # Instead, let's just punt: use the minimum linelength reported by
4480 # all of the supported platforms: 8192 (on NT/2K/XP).
4481 lt_cv_sys_max_cmd_len=8192;
4482 ;;
4483
4484 amigaos*)
4485 # On AmigaOS with pdksh, this test takes hours, literally.
4486 # So we just punt and use a minimum line length of 8192.
4487 lt_cv_sys_max_cmd_len=8192;
4488 ;;
4489
4490 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4491 # This has been around since 386BSD, at least. Likely further.
4492 if test -x /sbin/sysctl; then
4493 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4494 elif test -x /usr/sbin/sysctl; then
4495 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4496 else
4497 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4498 fi
4499 # And add a safety zone
4500 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4501 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4502 ;;
4503
4504 interix*)
4505 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4506 lt_cv_sys_max_cmd_len=196608
4507 ;;
4508
4509 osf*)
4510 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4511 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4512 # nice to cause kernel panics so lets avoid the loop below.
4513 # First set a reasonable default.
4514 lt_cv_sys_max_cmd_len=16384
4515 #
4516 if test -x /sbin/sysconfig; then
4517 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4518 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4519 esac
4520 fi
4521 ;;
4522 sco3.2v5*)
4523 lt_cv_sys_max_cmd_len=102400
4524 ;;
4525 sysv5* | sco5v6* | sysv4.2uw2*)
4526 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4527 if test -n "$kargmax"; then
4528 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4529 else
4530 lt_cv_sys_max_cmd_len=32768
4531 fi
4532 ;;
4533 *)
4534 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4535 if test -n "$lt_cv_sys_max_cmd_len"; then
4536 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4537 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4538 else
4539 # Make teststring a little bigger before we do anything with it.
4540 # a 1K string should be a reasonable start.
4541 for i in 1 2 3 4 5 6 7 8 ; do
4542 teststring=$teststring$teststring
4543 done
4544 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4545 # If test is not a shell built-in, we'll probably end up computing a
4546 # maximum length that is only half of the actual maximum length, but
4547 # we can't tell.
4548 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4549 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4550 test $i != 17 # 1/2 MB should be enough
4551 do
4552 i=`expr $i + 1`
4553 teststring=$teststring$teststring
4554 done
4555 # Only check the string length outside the loop.
4556 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4557 teststring=
4558 # Add a significant safety factor because C++ compilers can tack on
4559 # massive amounts of additional arguments before passing them to the
4560 # linker. It appears as though 1/2 is a usable value.
4561 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4562 fi
4563 ;;
4564 esac
4565
4566 fi
4567
4568 if test -n $lt_cv_sys_max_cmd_len ; then
4569 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4570 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4571 else
4572 { $as_echo "$as_me:$LINENO: result: none" >&5
4573 $as_echo "none" >&6; }
4574 fi
4575 max_cmd_len=$lt_cv_sys_max_cmd_len
4576
4577
4578
4579
4580
4581
4582 : ${CP="cp -f"}
4583 : ${MV="mv -f"}
4584 : ${RM="rm -f"}
4585
4586 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4587 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4588 # Try some XSI features
4589 xsi_shell=no
4590 ( _lt_dummy="a/b/c"
4591 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4592 = c,a/b,, \
4593 && eval 'test $(( 1 + 1 )) -eq 2 \
4594 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4595 && xsi_shell=yes
4596 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4597 $as_echo "$xsi_shell" >&6; }
4598
4599
4600 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4601 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4602 lt_shell_append=no
4603 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4604 >/dev/null 2>&1 \
4605 && lt_shell_append=yes
4606 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4607 $as_echo "$lt_shell_append" >&6; }
4608
4609
4610 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4611 lt_unset=unset
4612 else
4613 lt_unset=false
4614 fi
4615
4616
4617
4618
4619
4620 # test EBCDIC or ASCII
4621 case `echo X|tr X '\101'` in
4622 A) # ASCII based system
4623 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4624 lt_SP2NL='tr \040 \012'
4625 lt_NL2SP='tr \015\012 \040\040'
4626 ;;
4627 *) # EBCDIC based system
4628 lt_SP2NL='tr \100 \n'
4629 lt_NL2SP='tr \r\n \100\100'
4630 ;;
4631 esac
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4642 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4643 if test "${lt_cv_ld_reload_flag+set}" = set; then
4644 $as_echo_n "(cached) " >&6
4645 else
4646 lt_cv_ld_reload_flag='-r'
4647 fi
4648 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4649 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4650 reload_flag=$lt_cv_ld_reload_flag
4651 case $reload_flag in
4652 "" | " "*) ;;
4653 *) reload_flag=" $reload_flag" ;;
4654 esac
4655 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4656 case $host_os in
4657 darwin*)
4658 if test "$GCC" = yes; then
4659 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4660 else
4661 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4662 fi
4663 ;;
4664 esac
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674 if test -n "$ac_tool_prefix"; then
4675 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4676 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4677 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4678 $as_echo_n "checking for $ac_word... " >&6; }
4679 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4680 $as_echo_n "(cached) " >&6
4681 else
4682 if test -n "$OBJDUMP"; then
4683 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4684 else
4685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 for as_dir in $PATH
4687 do
4688 IFS=$as_save_IFS
4689 test -z "$as_dir" && as_dir=.
4690 for ac_exec_ext in '' $ac_executable_extensions; do
4691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4692 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4693 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4694 break 2
4695 fi
4696 done
4697 done
4698 IFS=$as_save_IFS
4699
4700 fi
4701 fi
4702 OBJDUMP=$ac_cv_prog_OBJDUMP
4703 if test -n "$OBJDUMP"; then
4704 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4705 $as_echo "$OBJDUMP" >&6; }
4706 else
4707 { $as_echo "$as_me:$LINENO: result: no" >&5
4708 $as_echo "no" >&6; }
4709 fi
4710
4711
4712 fi
4713 if test -z "$ac_cv_prog_OBJDUMP"; then
4714 ac_ct_OBJDUMP=$OBJDUMP
4715 # Extract the first word of "objdump", so it can be a program name with args.
4716 set dummy objdump; ac_word=$2
4717 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4718 $as_echo_n "checking for $ac_word... " >&6; }
4719 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4720 $as_echo_n "(cached) " >&6
4721 else
4722 if test -n "$ac_ct_OBJDUMP"; then
4723 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4724 else
4725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726 for as_dir in $PATH
4727 do
4728 IFS=$as_save_IFS
4729 test -z "$as_dir" && as_dir=.
4730 for ac_exec_ext in '' $ac_executable_extensions; do
4731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4732 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4733 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4734 break 2
4735 fi
4736 done
4737 done
4738 IFS=$as_save_IFS
4739
4740 fi
4741 fi
4742 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4743 if test -n "$ac_ct_OBJDUMP"; then
4744 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4745 $as_echo "$ac_ct_OBJDUMP" >&6; }
4746 else
4747 { $as_echo "$as_me:$LINENO: result: no" >&5
4748 $as_echo "no" >&6; }
4749 fi
4750
4751 if test "x$ac_ct_OBJDUMP" = x; then
4752 OBJDUMP="false"
4753 else
4754 case $cross_compiling:$ac_tool_warned in
4755 yes:)
4756 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4758 ac_tool_warned=yes ;;
4759 esac
4760 OBJDUMP=$ac_ct_OBJDUMP
4761 fi
4762 else
4763 OBJDUMP="$ac_cv_prog_OBJDUMP"
4764 fi
4765
4766 test -z "$OBJDUMP" && OBJDUMP=objdump
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4777 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4778 if test "${lt_cv_deplibs_check_method+set}" = set; then
4779 $as_echo_n "(cached) " >&6
4780 else
4781 lt_cv_file_magic_cmd='$MAGIC_CMD'
4782 lt_cv_file_magic_test_file=
4783 lt_cv_deplibs_check_method='unknown'
4784 # Need to set the preceding variable on all platforms that support
4785 # interlibrary dependencies.
4786 # 'none' -- dependencies not supported.
4787 # `unknown' -- same as none, but documents that we really don't know.
4788 # 'pass_all' -- all dependencies passed with no checks.
4789 # 'test_compile' -- check by making test program.
4790 # 'file_magic [[regex]]' -- check by looking for files in library path
4791 # which responds to the $file_magic_cmd with a given extended regex.
4792 # If you have `file' or equivalent on your system and you're not sure
4793 # whether `pass_all' will *always* work, you probably want this one.
4794
4795 case $host_os in
4796 aix[4-9]*)
4797 lt_cv_deplibs_check_method=pass_all
4798 ;;
4799
4800 beos*)
4801 lt_cv_deplibs_check_method=pass_all
4802 ;;
4803
4804 bsdi[45]*)
4805 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4806 lt_cv_file_magic_cmd='/usr/bin/file -L'
4807 lt_cv_file_magic_test_file=/shlib/libc.so
4808 ;;
4809
4810 cygwin*)
4811 # func_win32_libid is a shell function defined in ltmain.sh
4812 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4813 lt_cv_file_magic_cmd='func_win32_libid'
4814 ;;
4815
4816 mingw* | pw32*)
4817 # Base MSYS/MinGW do not provide the 'file' command needed by
4818 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4819 # unless we find 'file', for example because we are cross-compiling.
4820 if ( file / ) >/dev/null 2>&1; then
4821 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4822 lt_cv_file_magic_cmd='func_win32_libid'
4823 else
4824 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4825 lt_cv_file_magic_cmd='$OBJDUMP -f'
4826 fi
4827 ;;
4828
4829 cegcc)
4830 # use the weaker test based on 'objdump'. See mingw*.
4831 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4832 lt_cv_file_magic_cmd='$OBJDUMP -f'
4833 ;;
4834
4835 darwin* | rhapsody*)
4836 lt_cv_deplibs_check_method=pass_all
4837 ;;
4838
4839 freebsd* | dragonfly*)
4840 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4841 case $host_cpu in
4842 i*86 )
4843 # Not sure whether the presence of OpenBSD here was a mistake.
4844 # Let's accept both of them until this is cleared up.
4845 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4846 lt_cv_file_magic_cmd=/usr/bin/file
4847 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4848 ;;
4849 esac
4850 else
4851 lt_cv_deplibs_check_method=pass_all
4852 fi
4853 ;;
4854
4855 gnu*)
4856 lt_cv_deplibs_check_method=pass_all
4857 ;;
4858
4859 hpux10.20* | hpux11*)
4860 lt_cv_file_magic_cmd=/usr/bin/file
4861 case $host_cpu in
4862 ia64*)
4863 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4864 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4865 ;;
4866 hppa*64*)
4867 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]'
4868 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4869 ;;
4870 *)
4871 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4872 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4873 ;;
4874 esac
4875 ;;
4876
4877 interix[3-9]*)
4878 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4879 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4880 ;;
4881
4882 irix5* | irix6* | nonstopux*)
4883 case $LD in
4884 *-32|*"-32 ") libmagic=32-bit;;
4885 *-n32|*"-n32 ") libmagic=N32;;
4886 *-64|*"-64 ") libmagic=64-bit;;
4887 *) libmagic=never-match;;
4888 esac
4889 lt_cv_deplibs_check_method=pass_all
4890 ;;
4891
4892 # This must be Linux ELF.
4893 linux* | k*bsd*-gnu)
4894 lt_cv_deplibs_check_method=pass_all
4895 ;;
4896
4897 netbsd*)
4898 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4899 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4900 else
4901 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4902 fi
4903 ;;
4904
4905 newos6*)
4906 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4907 lt_cv_file_magic_cmd=/usr/bin/file
4908 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4909 ;;
4910
4911 *nto* | *qnx*)
4912 lt_cv_deplibs_check_method=pass_all
4913 ;;
4914
4915 openbsd*)
4916 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4917 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4918 else
4919 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4920 fi
4921 ;;
4922
4923 osf3* | osf4* | osf5*)
4924 lt_cv_deplibs_check_method=pass_all
4925 ;;
4926
4927 rdos*)
4928 lt_cv_deplibs_check_method=pass_all
4929 ;;
4930
4931 solaris*)
4932 lt_cv_deplibs_check_method=pass_all
4933 ;;
4934
4935 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4936 lt_cv_deplibs_check_method=pass_all
4937 ;;
4938
4939 sysv4 | sysv4.3*)
4940 case $host_vendor in
4941 motorola)
4942 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]'
4943 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4944 ;;
4945 ncr)
4946 lt_cv_deplibs_check_method=pass_all
4947 ;;
4948 sequent)
4949 lt_cv_file_magic_cmd='/bin/file'
4950 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4951 ;;
4952 sni)
4953 lt_cv_file_magic_cmd='/bin/file'
4954 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4955 lt_cv_file_magic_test_file=/lib/libc.so
4956 ;;
4957 siemens)
4958 lt_cv_deplibs_check_method=pass_all
4959 ;;
4960 pc)
4961 lt_cv_deplibs_check_method=pass_all
4962 ;;
4963 esac
4964 ;;
4965
4966 tpf*)
4967 lt_cv_deplibs_check_method=pass_all
4968 ;;
4969 esac
4970
4971 fi
4972 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4973 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4974 file_magic_cmd=$lt_cv_file_magic_cmd
4975 deplibs_check_method=$lt_cv_deplibs_check_method
4976 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989 if test -n "$ac_tool_prefix"; then
4990 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4991 set dummy ${ac_tool_prefix}ar; ac_word=$2
4992 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4993 $as_echo_n "checking for $ac_word... " >&6; }
4994 if test "${ac_cv_prog_AR+set}" = set; then
4995 $as_echo_n "(cached) " >&6
4996 else
4997 if test -n "$AR"; then
4998 ac_cv_prog_AR="$AR" # Let the user override the test.
4999 else
5000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001 for as_dir in $PATH
5002 do
5003 IFS=$as_save_IFS
5004 test -z "$as_dir" && as_dir=.
5005 for ac_exec_ext in '' $ac_executable_extensions; do
5006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5007 ac_cv_prog_AR="${ac_tool_prefix}ar"
5008 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5009 break 2
5010 fi
5011 done
5012 done
5013 IFS=$as_save_IFS
5014
5015 fi
5016 fi
5017 AR=$ac_cv_prog_AR
5018 if test -n "$AR"; then
5019 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5020 $as_echo "$AR" >&6; }
5021 else
5022 { $as_echo "$as_me:$LINENO: result: no" >&5
5023 $as_echo "no" >&6; }
5024 fi
5025
5026
5027 fi
5028 if test -z "$ac_cv_prog_AR"; then
5029 ac_ct_AR=$AR
5030 # Extract the first word of "ar", so it can be a program name with args.
5031 set dummy ar; ac_word=$2
5032 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5033 $as_echo_n "checking for $ac_word... " >&6; }
5034 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5035 $as_echo_n "(cached) " >&6
5036 else
5037 if test -n "$ac_ct_AR"; then
5038 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5039 else
5040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041 for as_dir in $PATH
5042 do
5043 IFS=$as_save_IFS
5044 test -z "$as_dir" && as_dir=.
5045 for ac_exec_ext in '' $ac_executable_extensions; do
5046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5047 ac_cv_prog_ac_ct_AR="ar"
5048 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5049 break 2
5050 fi
5051 done
5052 done
5053 IFS=$as_save_IFS
5054
5055 fi
5056 fi
5057 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5058 if test -n "$ac_ct_AR"; then
5059 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5060 $as_echo "$ac_ct_AR" >&6; }
5061 else
5062 { $as_echo "$as_me:$LINENO: result: no" >&5
5063 $as_echo "no" >&6; }
5064 fi
5065
5066 if test "x$ac_ct_AR" = x; then
5067 AR="false"
5068 else
5069 case $cross_compiling:$ac_tool_warned in
5070 yes:)
5071 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5073 ac_tool_warned=yes ;;
5074 esac
5075 AR=$ac_ct_AR
5076 fi
5077 else
5078 AR="$ac_cv_prog_AR"
5079 fi
5080
5081 test -z "$AR" && AR=ar
5082 test -z "$AR_FLAGS" && AR_FLAGS=cru
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094 if test -n "$ac_tool_prefix"; then
5095 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5096 set dummy ${ac_tool_prefix}strip; ac_word=$2
5097 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5098 $as_echo_n "checking for $ac_word... " >&6; }
5099 if test "${ac_cv_prog_STRIP+set}" = set; then
5100 $as_echo_n "(cached) " >&6
5101 else
5102 if test -n "$STRIP"; then
5103 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5104 else
5105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106 for as_dir in $PATH
5107 do
5108 IFS=$as_save_IFS
5109 test -z "$as_dir" && as_dir=.
5110 for ac_exec_ext in '' $ac_executable_extensions; do
5111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5112 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5113 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5114 break 2
5115 fi
5116 done
5117 done
5118 IFS=$as_save_IFS
5119
5120 fi
5121 fi
5122 STRIP=$ac_cv_prog_STRIP
5123 if test -n "$STRIP"; then
5124 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5125 $as_echo "$STRIP" >&6; }
5126 else
5127 { $as_echo "$as_me:$LINENO: result: no" >&5
5128 $as_echo "no" >&6; }
5129 fi
5130
5131
5132 fi
5133 if test -z "$ac_cv_prog_STRIP"; then
5134 ac_ct_STRIP=$STRIP
5135 # Extract the first word of "strip", so it can be a program name with args.
5136 set dummy strip; ac_word=$2
5137 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5138 $as_echo_n "checking for $ac_word... " >&6; }
5139 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5140 $as_echo_n "(cached) " >&6
5141 else
5142 if test -n "$ac_ct_STRIP"; then
5143 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5144 else
5145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 for as_dir in $PATH
5147 do
5148 IFS=$as_save_IFS
5149 test -z "$as_dir" && as_dir=.
5150 for ac_exec_ext in '' $ac_executable_extensions; do
5151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5152 ac_cv_prog_ac_ct_STRIP="strip"
5153 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5154 break 2
5155 fi
5156 done
5157 done
5158 IFS=$as_save_IFS
5159
5160 fi
5161 fi
5162 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5163 if test -n "$ac_ct_STRIP"; then
5164 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5165 $as_echo "$ac_ct_STRIP" >&6; }
5166 else
5167 { $as_echo "$as_me:$LINENO: result: no" >&5
5168 $as_echo "no" >&6; }
5169 fi
5170
5171 if test "x$ac_ct_STRIP" = x; then
5172 STRIP=":"
5173 else
5174 case $cross_compiling:$ac_tool_warned in
5175 yes:)
5176 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5178 ac_tool_warned=yes ;;
5179 esac
5180 STRIP=$ac_ct_STRIP
5181 fi
5182 else
5183 STRIP="$ac_cv_prog_STRIP"
5184 fi
5185
5186 test -z "$STRIP" && STRIP=:
5187
5188
5189
5190
5191
5192
5193 if test -n "$ac_tool_prefix"; then
5194 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5195 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5196 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5197 $as_echo_n "checking for $ac_word... " >&6; }
5198 if test "${ac_cv_prog_RANLIB+set}" = set; then
5199 $as_echo_n "(cached) " >&6
5200 else
5201 if test -n "$RANLIB"; then
5202 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5203 else
5204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205 for as_dir in $PATH
5206 do
5207 IFS=$as_save_IFS
5208 test -z "$as_dir" && as_dir=.
5209 for ac_exec_ext in '' $ac_executable_extensions; do
5210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5211 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5212 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5213 break 2
5214 fi
5215 done
5216 done
5217 IFS=$as_save_IFS
5218
5219 fi
5220 fi
5221 RANLIB=$ac_cv_prog_RANLIB
5222 if test -n "$RANLIB"; then
5223 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5224 $as_echo "$RANLIB" >&6; }
5225 else
5226 { $as_echo "$as_me:$LINENO: result: no" >&5
5227 $as_echo "no" >&6; }
5228 fi
5229
5230
5231 fi
5232 if test -z "$ac_cv_prog_RANLIB"; then
5233 ac_ct_RANLIB=$RANLIB
5234 # Extract the first word of "ranlib", so it can be a program name with args.
5235 set dummy ranlib; ac_word=$2
5236 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5237 $as_echo_n "checking for $ac_word... " >&6; }
5238 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5239 $as_echo_n "(cached) " >&6
5240 else
5241 if test -n "$ac_ct_RANLIB"; then
5242 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5243 else
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 for as_dir in $PATH
5246 do
5247 IFS=$as_save_IFS
5248 test -z "$as_dir" && as_dir=.
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5251 ac_cv_prog_ac_ct_RANLIB="ranlib"
5252 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5253 break 2
5254 fi
5255 done
5256 done
5257 IFS=$as_save_IFS
5258
5259 fi
5260 fi
5261 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5262 if test -n "$ac_ct_RANLIB"; then
5263 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5264 $as_echo "$ac_ct_RANLIB" >&6; }
5265 else
5266 { $as_echo "$as_me:$LINENO: result: no" >&5
5267 $as_echo "no" >&6; }
5268 fi
5269
5270 if test "x$ac_ct_RANLIB" = x; then
5271 RANLIB=":"
5272 else
5273 case $cross_compiling:$ac_tool_warned in
5274 yes:)
5275 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5277 ac_tool_warned=yes ;;
5278 esac
5279 RANLIB=$ac_ct_RANLIB
5280 fi
5281 else
5282 RANLIB="$ac_cv_prog_RANLIB"
5283 fi
5284
5285 test -z "$RANLIB" && RANLIB=:
5286
5287
5288
5289
5290
5291
5292 # Determine commands to create old-style static archives.
5293 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5294 old_postinstall_cmds='chmod 644 $oldlib'
5295 old_postuninstall_cmds=
5296
5297 if test -n "$RANLIB"; then
5298 case $host_os in
5299 openbsd*)
5300 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5301 ;;
5302 *)
5303 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5304 ;;
5305 esac
5306 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5307 fi
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342 # If no C compiler was specified, use CC.
5343 LTCC=${LTCC-"$CC"}
5344
5345 # If no C compiler flags were specified, use CFLAGS.
5346 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5347
5348 # Allow CC to be a program name with arguments.
5349 compiler=$CC
5350
5351
5352 # Check for command to grab the raw symbol name followed by C symbol from nm.
5353 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5354 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5355 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5356 $as_echo_n "(cached) " >&6
5357 else
5358
5359 # These are sane defaults that work on at least a few old systems.
5360 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5361
5362 # Character class describing NM global symbol codes.
5363 symcode='[BCDEGRST]'
5364
5365 # Regexp to match symbols that can be accessed directly from C.
5366 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5367
5368 # Define system-specific variables.
5369 case $host_os in
5370 aix*)
5371 symcode='[BCDT]'
5372 ;;
5373 cygwin* | mingw* | pw32* | cegcc*)
5374 symcode='[ABCDGISTW]'
5375 ;;
5376 hpux*)
5377 if test "$host_cpu" = ia64; then
5378 symcode='[ABCDEGRST]'
5379 fi
5380 ;;
5381 irix* | nonstopux*)
5382 symcode='[BCDEGRST]'
5383 ;;
5384 osf*)
5385 symcode='[BCDEGQRST]'
5386 ;;
5387 solaris*)
5388 symcode='[BDRT]'
5389 ;;
5390 sco3.2v5*)
5391 symcode='[DT]'
5392 ;;
5393 sysv4.2uw2*)
5394 symcode='[DT]'
5395 ;;
5396 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5397 symcode='[ABDT]'
5398 ;;
5399 sysv4)
5400 symcode='[DFNSTU]'
5401 ;;
5402 esac
5403
5404 # If we're using GNU nm, then use its standard symbol codes.
5405 case `$NM -V 2>&1` in
5406 *GNU* | *'with BFD'*)
5407 symcode='[ABCDGIRSTW]' ;;
5408 esac
5409
5410 # Transform an extracted symbol line into a proper C declaration.
5411 # Some systems (esp. on ia64) link data and code symbols differently,
5412 # so use this general approach.
5413 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5414
5415 # Transform an extracted symbol line into symbol name and symbol address
5416 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5417 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'"
5418
5419 # Handle CRLF in mingw tool chain
5420 opt_cr=
5421 case $build_os in
5422 mingw*)
5423 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5424 ;;
5425 esac
5426
5427 # Try without a prefix underscore, then with it.
5428 for ac_symprfx in "" "_"; do
5429
5430 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5431 symxfrm="\\1 $ac_symprfx\\2 \\2"
5432
5433 # Write the raw and C identifiers.
5434 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5435 # Fake it for dumpbin and say T for any non-static function
5436 # and D for any global variable.
5437 # Also find C++ and __fastcall symbols from MSVC++,
5438 # which start with @ or ?.
5439 lt_cv_sys_global_symbol_pipe="$AWK '"\
5440 " {last_section=section; section=\$ 3};"\
5441 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5442 " \$ 0!~/External *\|/{next};"\
5443 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5444 " {if(hide[section]) next};"\
5445 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5446 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5447 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5448 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5449 " ' prfx=^$ac_symprfx"
5450 else
5451 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5452 fi
5453
5454 # Check to see that the pipe works correctly.
5455 pipe_works=no
5456
5457 rm -f conftest*
5458 cat > conftest.$ac_ext <<_LT_EOF
5459 #ifdef __cplusplus
5460 extern "C" {
5461 #endif
5462 char nm_test_var;
5463 void nm_test_func(void);
5464 void nm_test_func(void){}
5465 #ifdef __cplusplus
5466 }
5467 #endif
5468 int main(){nm_test_var='a';nm_test_func();return(0);}
5469 _LT_EOF
5470
5471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5472 (eval $ac_compile) 2>&5
5473 ac_status=$?
5474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); }; then
5476 # Now try to grab the symbols.
5477 nlist=conftest.nm
5478 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5479 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5480 ac_status=$?
5481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); } && test -s "$nlist"; then
5483 # Try sorting and uniquifying the output.
5484 if sort "$nlist" | uniq > "$nlist"T; then
5485 mv -f "$nlist"T "$nlist"
5486 else
5487 rm -f "$nlist"T
5488 fi
5489
5490 # Make sure that we snagged all the symbols we need.
5491 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5492 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5493 cat <<_LT_EOF > conftest.$ac_ext
5494 #ifdef __cplusplus
5495 extern "C" {
5496 #endif
5497
5498 _LT_EOF
5499 # Now generate the symbol file.
5500 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5501
5502 cat <<_LT_EOF >> conftest.$ac_ext
5503
5504 /* The mapping between symbol names and symbols. */
5505 const struct {
5506 const char *name;
5507 void *address;
5508 }
5509 lt__PROGRAM__LTX_preloaded_symbols[] =
5510 {
5511 { "@PROGRAM@", (void *) 0 },
5512 _LT_EOF
5513 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5514 cat <<\_LT_EOF >> conftest.$ac_ext
5515 {0, (void *) 0}
5516 };
5517
5518 /* This works around a problem in FreeBSD linker */
5519 #ifdef FREEBSD_WORKAROUND
5520 static const void *lt_preloaded_setup() {
5521 return lt__PROGRAM__LTX_preloaded_symbols;
5522 }
5523 #endif
5524
5525 #ifdef __cplusplus
5526 }
5527 #endif
5528 _LT_EOF
5529 # Now try linking the two files.
5530 mv conftest.$ac_objext conftstm.$ac_objext
5531 lt_save_LIBS="$LIBS"
5532 lt_save_CFLAGS="$CFLAGS"
5533 LIBS="conftstm.$ac_objext"
5534 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5536 (eval $ac_link) 2>&5
5537 ac_status=$?
5538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5540 pipe_works=yes
5541 fi
5542 LIBS="$lt_save_LIBS"
5543 CFLAGS="$lt_save_CFLAGS"
5544 else
5545 echo "cannot find nm_test_func in $nlist" >&5
5546 fi
5547 else
5548 echo "cannot find nm_test_var in $nlist" >&5
5549 fi
5550 else
5551 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5552 fi
5553 else
5554 echo "$progname: failed program was:" >&5
5555 cat conftest.$ac_ext >&5
5556 fi
5557 rm -rf conftest* conftst*
5558
5559 # Do not use the global_symbol_pipe unless it works.
5560 if test "$pipe_works" = yes; then
5561 break
5562 else
5563 lt_cv_sys_global_symbol_pipe=
5564 fi
5565 done
5566
5567 fi
5568
5569 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5570 lt_cv_sys_global_symbol_to_cdecl=
5571 fi
5572 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5573 { $as_echo "$as_me:$LINENO: result: failed" >&5
5574 $as_echo "failed" >&6; }
5575 else
5576 { $as_echo "$as_me:$LINENO: result: ok" >&5
5577 $as_echo "ok" >&6; }
5578 fi
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602 # Check whether --enable-libtool-lock was given.
5603 if test "${enable_libtool_lock+set}" = set; then
5604 enableval=$enable_libtool_lock;
5605 fi
5606
5607 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5608
5609 # Some flags need to be propagated to the compiler or linker for good
5610 # libtool support.
5611 case $host in
5612 ia64-*-hpux*)
5613 # Find out which ABI we are using.
5614 echo 'int i;' > conftest.$ac_ext
5615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5616 (eval $ac_compile) 2>&5
5617 ac_status=$?
5618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); }; then
5620 case `/usr/bin/file conftest.$ac_objext` in
5621 *ELF-32*)
5622 HPUX_IA64_MODE="32"
5623 ;;
5624 *ELF-64*)
5625 HPUX_IA64_MODE="64"
5626 ;;
5627 esac
5628 fi
5629 rm -rf conftest*
5630 ;;
5631 *-*-irix6*)
5632 # Find out which ABI we are using.
5633 echo '#line 5633 "configure"' > conftest.$ac_ext
5634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5635 (eval $ac_compile) 2>&5
5636 ac_status=$?
5637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); }; then
5639 if test "$lt_cv_prog_gnu_ld" = yes; then
5640 case `/usr/bin/file conftest.$ac_objext` in
5641 *32-bit*)
5642 LD="${LD-ld} -melf32bsmip"
5643 ;;
5644 *N32*)
5645 LD="${LD-ld} -melf32bmipn32"
5646 ;;
5647 *64-bit*)
5648 LD="${LD-ld} -melf64bmip"
5649 ;;
5650 esac
5651 else
5652 case `/usr/bin/file conftest.$ac_objext` in
5653 *32-bit*)
5654 LD="${LD-ld} -32"
5655 ;;
5656 *N32*)
5657 LD="${LD-ld} -n32"
5658 ;;
5659 *64-bit*)
5660 LD="${LD-ld} -64"
5661 ;;
5662 esac
5663 fi
5664 fi
5665 rm -rf conftest*
5666 ;;
5667
5668 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5669 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5670 # Find out which ABI we are using.
5671 echo 'int i;' > conftest.$ac_ext
5672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5673 (eval $ac_compile) 2>&5
5674 ac_status=$?
5675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); }; then
5677 case `/usr/bin/file conftest.o` in
5678 *32-bit*)
5679 case $host in
5680 x86_64-*kfreebsd*-gnu)
5681 LD="${LD-ld} -m elf_i386_fbsd"
5682 ;;
5683 x86_64-*linux*)
5684 LD="${LD-ld} -m elf_i386"
5685 ;;
5686 ppc64-*linux*|powerpc64-*linux*)
5687 LD="${LD-ld} -m elf32ppclinux"
5688 ;;
5689 s390x-*linux*)
5690 LD="${LD-ld} -m elf_s390"
5691 ;;
5692 sparc64-*linux*)
5693 LD="${LD-ld} -m elf32_sparc"
5694 ;;
5695 esac
5696 ;;
5697 *64-bit*)
5698 case $host in
5699 x86_64-*kfreebsd*-gnu)
5700 LD="${LD-ld} -m elf_x86_64_fbsd"
5701 ;;
5702 x86_64-*linux*)
5703 LD="${LD-ld} -m elf_x86_64"
5704 ;;
5705 ppc*-*linux*|powerpc*-*linux*)
5706 LD="${LD-ld} -m elf64ppc"
5707 ;;
5708 s390*-*linux*|s390*-*tpf*)
5709 LD="${LD-ld} -m elf64_s390"
5710 ;;
5711 sparc*-*linux*)
5712 LD="${LD-ld} -m elf64_sparc"
5713 ;;
5714 esac
5715 ;;
5716 esac
5717 fi
5718 rm -rf conftest*
5719 ;;
5720
5721 *-*-sco3.2v5*)
5722 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5723 SAVE_CFLAGS="$CFLAGS"
5724 CFLAGS="$CFLAGS -belf"
5725 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5726 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5727 if test "${lt_cv_cc_needs_belf+set}" = set; then
5728 $as_echo_n "(cached) " >&6
5729 else
5730 ac_ext=c
5731 ac_cpp='$CPP $CPPFLAGS'
5732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5735
5736 cat >conftest.$ac_ext <<_ACEOF
5737 /* confdefs.h. */
5738 _ACEOF
5739 cat confdefs.h >>conftest.$ac_ext
5740 cat >>conftest.$ac_ext <<_ACEOF
5741 /* end confdefs.h. */
5742
5743 int
5744 main ()
5745 {
5746
5747 ;
5748 return 0;
5749 }
5750 _ACEOF
5751 rm -f conftest.$ac_objext conftest$ac_exeext
5752 if { (ac_try="$ac_link"
5753 case "(($ac_try" in
5754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755 *) ac_try_echo=$ac_try;;
5756 esac
5757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5758 $as_echo "$ac_try_echo") >&5
5759 (eval "$ac_link") 2>conftest.er1
5760 ac_status=$?
5761 grep -v '^ *+' conftest.er1 >conftest.err
5762 rm -f conftest.er1
5763 cat conftest.err >&5
5764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); } && {
5766 test -z "$ac_c_werror_flag" ||
5767 test ! -s conftest.err
5768 } && test -s conftest$ac_exeext && {
5769 test "$cross_compiling" = yes ||
5770 $as_test_x conftest$ac_exeext
5771 }; then
5772 lt_cv_cc_needs_belf=yes
5773 else
5774 $as_echo "$as_me: failed program was:" >&5
5775 sed 's/^/| /' conftest.$ac_ext >&5
5776
5777 lt_cv_cc_needs_belf=no
5778 fi
5779
5780 rm -rf conftest.dSYM
5781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5782 conftest$ac_exeext conftest.$ac_ext
5783 ac_ext=c
5784 ac_cpp='$CPP $CPPFLAGS'
5785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5788
5789 fi
5790 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5791 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5792 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5793 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5794 CFLAGS="$SAVE_CFLAGS"
5795 fi
5796 ;;
5797 sparc*-*solaris*)
5798 # Find out which ABI we are using.
5799 echo 'int i;' > conftest.$ac_ext
5800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5801 (eval $ac_compile) 2>&5
5802 ac_status=$?
5803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); }; then
5805 case `/usr/bin/file conftest.o` in
5806 *64-bit*)
5807 case $lt_cv_prog_gnu_ld in
5808 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5809 *)
5810 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5811 LD="${LD-ld} -64"
5812 fi
5813 ;;
5814 esac
5815 ;;
5816 esac
5817 fi
5818 rm -rf conftest*
5819 ;;
5820 esac
5821
5822 need_locks="$enable_libtool_lock"
5823
5824
5825 case $host_os in
5826 rhapsody* | darwin*)
5827 if test -n "$ac_tool_prefix"; then
5828 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5829 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5830 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5831 $as_echo_n "checking for $ac_word... " >&6; }
5832 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5833 $as_echo_n "(cached) " >&6
5834 else
5835 if test -n "$DSYMUTIL"; then
5836 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5837 else
5838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839 for as_dir in $PATH
5840 do
5841 IFS=$as_save_IFS
5842 test -z "$as_dir" && as_dir=.
5843 for ac_exec_ext in '' $ac_executable_extensions; do
5844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5845 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5846 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5847 break 2
5848 fi
5849 done
5850 done
5851 IFS=$as_save_IFS
5852
5853 fi
5854 fi
5855 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5856 if test -n "$DSYMUTIL"; then
5857 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5858 $as_echo "$DSYMUTIL" >&6; }
5859 else
5860 { $as_echo "$as_me:$LINENO: result: no" >&5
5861 $as_echo "no" >&6; }
5862 fi
5863
5864
5865 fi
5866 if test -z "$ac_cv_prog_DSYMUTIL"; then
5867 ac_ct_DSYMUTIL=$DSYMUTIL
5868 # Extract the first word of "dsymutil", so it can be a program name with args.
5869 set dummy dsymutil; ac_word=$2
5870 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5871 $as_echo_n "checking for $ac_word... " >&6; }
5872 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5873 $as_echo_n "(cached) " >&6
5874 else
5875 if test -n "$ac_ct_DSYMUTIL"; then
5876 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5877 else
5878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879 for as_dir in $PATH
5880 do
5881 IFS=$as_save_IFS
5882 test -z "$as_dir" && as_dir=.
5883 for ac_exec_ext in '' $ac_executable_extensions; do
5884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5885 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5886 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5887 break 2
5888 fi
5889 done
5890 done
5891 IFS=$as_save_IFS
5892
5893 fi
5894 fi
5895 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5896 if test -n "$ac_ct_DSYMUTIL"; then
5897 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5898 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5899 else
5900 { $as_echo "$as_me:$LINENO: result: no" >&5
5901 $as_echo "no" >&6; }
5902 fi
5903
5904 if test "x$ac_ct_DSYMUTIL" = x; then
5905 DSYMUTIL=":"
5906 else
5907 case $cross_compiling:$ac_tool_warned in
5908 yes:)
5909 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5911 ac_tool_warned=yes ;;
5912 esac
5913 DSYMUTIL=$ac_ct_DSYMUTIL
5914 fi
5915 else
5916 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5917 fi
5918
5919 if test -n "$ac_tool_prefix"; then
5920 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5921 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5922 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5923 $as_echo_n "checking for $ac_word... " >&6; }
5924 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5925 $as_echo_n "(cached) " >&6
5926 else
5927 if test -n "$NMEDIT"; then
5928 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5929 else
5930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 for as_dir in $PATH
5932 do
5933 IFS=$as_save_IFS
5934 test -z "$as_dir" && as_dir=.
5935 for ac_exec_ext in '' $ac_executable_extensions; do
5936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5937 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5938 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5939 break 2
5940 fi
5941 done
5942 done
5943 IFS=$as_save_IFS
5944
5945 fi
5946 fi
5947 NMEDIT=$ac_cv_prog_NMEDIT
5948 if test -n "$NMEDIT"; then
5949 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5950 $as_echo "$NMEDIT" >&6; }
5951 else
5952 { $as_echo "$as_me:$LINENO: result: no" >&5
5953 $as_echo "no" >&6; }
5954 fi
5955
5956
5957 fi
5958 if test -z "$ac_cv_prog_NMEDIT"; then
5959 ac_ct_NMEDIT=$NMEDIT
5960 # Extract the first word of "nmedit", so it can be a program name with args.
5961 set dummy nmedit; ac_word=$2
5962 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5963 $as_echo_n "checking for $ac_word... " >&6; }
5964 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5965 $as_echo_n "(cached) " >&6
5966 else
5967 if test -n "$ac_ct_NMEDIT"; then
5968 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5969 else
5970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971 for as_dir in $PATH
5972 do
5973 IFS=$as_save_IFS
5974 test -z "$as_dir" && as_dir=.
5975 for ac_exec_ext in '' $ac_executable_extensions; do
5976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5977 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5978 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5979 break 2
5980 fi
5981 done
5982 done
5983 IFS=$as_save_IFS
5984
5985 fi
5986 fi
5987 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5988 if test -n "$ac_ct_NMEDIT"; then
5989 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5990 $as_echo "$ac_ct_NMEDIT" >&6; }
5991 else
5992 { $as_echo "$as_me:$LINENO: result: no" >&5
5993 $as_echo "no" >&6; }
5994 fi
5995
5996 if test "x$ac_ct_NMEDIT" = x; then
5997 NMEDIT=":"
5998 else
5999 case $cross_compiling:$ac_tool_warned in
6000 yes:)
6001 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6003 ac_tool_warned=yes ;;
6004 esac
6005 NMEDIT=$ac_ct_NMEDIT
6006 fi
6007 else
6008 NMEDIT="$ac_cv_prog_NMEDIT"
6009 fi
6010
6011 if test -n "$ac_tool_prefix"; then
6012 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6013 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6014 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6015 $as_echo_n "checking for $ac_word... " >&6; }
6016 if test "${ac_cv_prog_LIPO+set}" = set; then
6017 $as_echo_n "(cached) " >&6
6018 else
6019 if test -n "$LIPO"; then
6020 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6021 else
6022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023 for as_dir in $PATH
6024 do
6025 IFS=$as_save_IFS
6026 test -z "$as_dir" && as_dir=.
6027 for ac_exec_ext in '' $ac_executable_extensions; do
6028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6029 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6030 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6031 break 2
6032 fi
6033 done
6034 done
6035 IFS=$as_save_IFS
6036
6037 fi
6038 fi
6039 LIPO=$ac_cv_prog_LIPO
6040 if test -n "$LIPO"; then
6041 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6042 $as_echo "$LIPO" >&6; }
6043 else
6044 { $as_echo "$as_me:$LINENO: result: no" >&5
6045 $as_echo "no" >&6; }
6046 fi
6047
6048
6049 fi
6050 if test -z "$ac_cv_prog_LIPO"; then
6051 ac_ct_LIPO=$LIPO
6052 # Extract the first word of "lipo", so it can be a program name with args.
6053 set dummy lipo; ac_word=$2
6054 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6055 $as_echo_n "checking for $ac_word... " >&6; }
6056 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6057 $as_echo_n "(cached) " >&6
6058 else
6059 if test -n "$ac_ct_LIPO"; then
6060 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6061 else
6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 for as_dir in $PATH
6064 do
6065 IFS=$as_save_IFS
6066 test -z "$as_dir" && as_dir=.
6067 for ac_exec_ext in '' $ac_executable_extensions; do
6068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6069 ac_cv_prog_ac_ct_LIPO="lipo"
6070 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6071 break 2
6072 fi
6073 done
6074 done
6075 IFS=$as_save_IFS
6076
6077 fi
6078 fi
6079 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6080 if test -n "$ac_ct_LIPO"; then
6081 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6082 $as_echo "$ac_ct_LIPO" >&6; }
6083 else
6084 { $as_echo "$as_me:$LINENO: result: no" >&5
6085 $as_echo "no" >&6; }
6086 fi
6087
6088 if test "x$ac_ct_LIPO" = x; then
6089 LIPO=":"
6090 else
6091 case $cross_compiling:$ac_tool_warned in
6092 yes:)
6093 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6095 ac_tool_warned=yes ;;
6096 esac
6097 LIPO=$ac_ct_LIPO
6098 fi
6099 else
6100 LIPO="$ac_cv_prog_LIPO"
6101 fi
6102
6103 if test -n "$ac_tool_prefix"; then
6104 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6105 set dummy ${ac_tool_prefix}otool; ac_word=$2
6106 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6107 $as_echo_n "checking for $ac_word... " >&6; }
6108 if test "${ac_cv_prog_OTOOL+set}" = set; then
6109 $as_echo_n "(cached) " >&6
6110 else
6111 if test -n "$OTOOL"; then
6112 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6113 else
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 for as_dir in $PATH
6116 do
6117 IFS=$as_save_IFS
6118 test -z "$as_dir" && as_dir=.
6119 for ac_exec_ext in '' $ac_executable_extensions; do
6120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6121 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6122 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6123 break 2
6124 fi
6125 done
6126 done
6127 IFS=$as_save_IFS
6128
6129 fi
6130 fi
6131 OTOOL=$ac_cv_prog_OTOOL
6132 if test -n "$OTOOL"; then
6133 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6134 $as_echo "$OTOOL" >&6; }
6135 else
6136 { $as_echo "$as_me:$LINENO: result: no" >&5
6137 $as_echo "no" >&6; }
6138 fi
6139
6140
6141 fi
6142 if test -z "$ac_cv_prog_OTOOL"; then
6143 ac_ct_OTOOL=$OTOOL
6144 # Extract the first word of "otool", so it can be a program name with args.
6145 set dummy otool; ac_word=$2
6146 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6147 $as_echo_n "checking for $ac_word... " >&6; }
6148 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6149 $as_echo_n "(cached) " >&6
6150 else
6151 if test -n "$ac_ct_OTOOL"; then
6152 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6153 else
6154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155 for as_dir in $PATH
6156 do
6157 IFS=$as_save_IFS
6158 test -z "$as_dir" && as_dir=.
6159 for ac_exec_ext in '' $ac_executable_extensions; do
6160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6161 ac_cv_prog_ac_ct_OTOOL="otool"
6162 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6163 break 2
6164 fi
6165 done
6166 done
6167 IFS=$as_save_IFS
6168
6169 fi
6170 fi
6171 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6172 if test -n "$ac_ct_OTOOL"; then
6173 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6174 $as_echo "$ac_ct_OTOOL" >&6; }
6175 else
6176 { $as_echo "$as_me:$LINENO: result: no" >&5
6177 $as_echo "no" >&6; }
6178 fi
6179
6180 if test "x$ac_ct_OTOOL" = x; then
6181 OTOOL=":"
6182 else
6183 case $cross_compiling:$ac_tool_warned in
6184 yes:)
6185 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6187 ac_tool_warned=yes ;;
6188 esac
6189 OTOOL=$ac_ct_OTOOL
6190 fi
6191 else
6192 OTOOL="$ac_cv_prog_OTOOL"
6193 fi
6194
6195 if test -n "$ac_tool_prefix"; then
6196 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6197 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6198 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6199 $as_echo_n "checking for $ac_word... " >&6; }
6200 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6201 $as_echo_n "(cached) " >&6
6202 else
6203 if test -n "$OTOOL64"; then
6204 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6205 else
6206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207 for as_dir in $PATH
6208 do
6209 IFS=$as_save_IFS
6210 test -z "$as_dir" && as_dir=.
6211 for ac_exec_ext in '' $ac_executable_extensions; do
6212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6213 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6214 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6215 break 2
6216 fi
6217 done
6218 done
6219 IFS=$as_save_IFS
6220
6221 fi
6222 fi
6223 OTOOL64=$ac_cv_prog_OTOOL64
6224 if test -n "$OTOOL64"; then
6225 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6226 $as_echo "$OTOOL64" >&6; }
6227 else
6228 { $as_echo "$as_me:$LINENO: result: no" >&5
6229 $as_echo "no" >&6; }
6230 fi
6231
6232
6233 fi
6234 if test -z "$ac_cv_prog_OTOOL64"; then
6235 ac_ct_OTOOL64=$OTOOL64
6236 # Extract the first word of "otool64", so it can be a program name with args.
6237 set dummy otool64; ac_word=$2
6238 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6239 $as_echo_n "checking for $ac_word... " >&6; }
6240 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6241 $as_echo_n "(cached) " >&6
6242 else
6243 if test -n "$ac_ct_OTOOL64"; then
6244 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6245 else
6246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247 for as_dir in $PATH
6248 do
6249 IFS=$as_save_IFS
6250 test -z "$as_dir" && as_dir=.
6251 for ac_exec_ext in '' $ac_executable_extensions; do
6252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6253 ac_cv_prog_ac_ct_OTOOL64="otool64"
6254 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6255 break 2
6256 fi
6257 done
6258 done
6259 IFS=$as_save_IFS
6260
6261 fi
6262 fi
6263 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6264 if test -n "$ac_ct_OTOOL64"; then
6265 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6266 $as_echo "$ac_ct_OTOOL64" >&6; }
6267 else
6268 { $as_echo "$as_me:$LINENO: result: no" >&5
6269 $as_echo "no" >&6; }
6270 fi
6271
6272 if test "x$ac_ct_OTOOL64" = x; then
6273 OTOOL64=":"
6274 else
6275 case $cross_compiling:$ac_tool_warned in
6276 yes:)
6277 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6279 ac_tool_warned=yes ;;
6280 esac
6281 OTOOL64=$ac_ct_OTOOL64
6282 fi
6283 else
6284 OTOOL64="$ac_cv_prog_OTOOL64"
6285 fi
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6314 $as_echo_n "checking for -single_module linker flag... " >&6; }
6315 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6316 $as_echo_n "(cached) " >&6
6317 else
6318 lt_cv_apple_cc_single_mod=no
6319 if test -z "${LT_MULTI_MODULE}"; then
6320 # By default we will add the -single_module flag. You can override
6321 # by either setting the environment variable LT_MULTI_MODULE
6322 # non-empty at configure time, or by adding -multi_module to the
6323 # link flags.
6324 rm -rf libconftest.dylib*
6325 echo "int foo(void){return 1;}" > conftest.c
6326 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6327 -dynamiclib -Wl,-single_module conftest.c" >&5
6328 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6329 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6330 _lt_result=$?
6331 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6332 lt_cv_apple_cc_single_mod=yes
6333 else
6334 cat conftest.err >&5
6335 fi
6336 rm -rf libconftest.dylib*
6337 rm -f conftest.*
6338 fi
6339 fi
6340 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6341 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6342 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6343 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6344 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6345 $as_echo_n "(cached) " >&6
6346 else
6347 lt_cv_ld_exported_symbols_list=no
6348 save_LDFLAGS=$LDFLAGS
6349 echo "_main" > conftest.sym
6350 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6351 cat >conftest.$ac_ext <<_ACEOF
6352 /* confdefs.h. */
6353 _ACEOF
6354 cat confdefs.h >>conftest.$ac_ext
6355 cat >>conftest.$ac_ext <<_ACEOF
6356 /* end confdefs.h. */
6357
6358 int
6359 main ()
6360 {
6361
6362 ;
6363 return 0;
6364 }
6365 _ACEOF
6366 rm -f conftest.$ac_objext conftest$ac_exeext
6367 if { (ac_try="$ac_link"
6368 case "(($ac_try" in
6369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6370 *) ac_try_echo=$ac_try;;
6371 esac
6372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6373 $as_echo "$ac_try_echo") >&5
6374 (eval "$ac_link") 2>conftest.er1
6375 ac_status=$?
6376 grep -v '^ *+' conftest.er1 >conftest.err
6377 rm -f conftest.er1
6378 cat conftest.err >&5
6379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); } && {
6381 test -z "$ac_c_werror_flag" ||
6382 test ! -s conftest.err
6383 } && test -s conftest$ac_exeext && {
6384 test "$cross_compiling" = yes ||
6385 $as_test_x conftest$ac_exeext
6386 }; then
6387 lt_cv_ld_exported_symbols_list=yes
6388 else
6389 $as_echo "$as_me: failed program was:" >&5
6390 sed 's/^/| /' conftest.$ac_ext >&5
6391
6392 lt_cv_ld_exported_symbols_list=no
6393 fi
6394
6395 rm -rf conftest.dSYM
6396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6397 conftest$ac_exeext conftest.$ac_ext
6398 LDFLAGS="$save_LDFLAGS"
6399
6400 fi
6401 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6402 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6403 case $host_os in
6404 rhapsody* | darwin1.[012])
6405 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6406 darwin1.*)
6407 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6408 darwin*) # darwin 5.x on
6409 # if running on 10.5 or later, the deployment target defaults
6410 # to the OS version, if on x86, and 10.4, the deployment
6411 # target defaults to 10.4. Don't you love it?
6412 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6413 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6414 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6415 10.[012]*)
6416 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6417 10.*)
6418 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6419 esac
6420 ;;
6421 esac
6422 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6423 _lt_dar_single_mod='$single_module'
6424 fi
6425 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6426 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6427 else
6428 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6429 fi
6430 if test "$DSYMUTIL" != ":"; then
6431 _lt_dsymutil='~$DSYMUTIL $lib || :'
6432 else
6433 _lt_dsymutil=
6434 fi
6435 ;;
6436 esac
6437
6438 ac_ext=c
6439 ac_cpp='$CPP $CPPFLAGS'
6440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6443 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6444 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6445 # On Suns, sometimes $CPP names a directory.
6446 if test -n "$CPP" && test -d "$CPP"; then
6447 CPP=
6448 fi
6449 if test -z "$CPP"; then
6450 if test "${ac_cv_prog_CPP+set}" = set; then
6451 $as_echo_n "(cached) " >&6
6452 else
6453 # Double quotes because CPP needs to be expanded
6454 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6455 do
6456 ac_preproc_ok=false
6457 for ac_c_preproc_warn_flag in '' yes
6458 do
6459 # Use a header file that comes with gcc, so configuring glibc
6460 # with a fresh cross-compiler works.
6461 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6462 # <limits.h> exists even on freestanding compilers.
6463 # On the NeXT, cc -E runs the code through the compiler's parser,
6464 # not just through cpp. "Syntax error" is here to catch this case.
6465 cat >conftest.$ac_ext <<_ACEOF
6466 /* confdefs.h. */
6467 _ACEOF
6468 cat confdefs.h >>conftest.$ac_ext
6469 cat >>conftest.$ac_ext <<_ACEOF
6470 /* end confdefs.h. */
6471 #ifdef __STDC__
6472 # include <limits.h>
6473 #else
6474 # include <assert.h>
6475 #endif
6476 Syntax error
6477 _ACEOF
6478 if { (ac_try="$ac_cpp conftest.$ac_ext"
6479 case "(($ac_try" in
6480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6481 *) ac_try_echo=$ac_try;;
6482 esac
6483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6484 $as_echo "$ac_try_echo") >&5
6485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6486 ac_status=$?
6487 grep -v '^ *+' conftest.er1 >conftest.err
6488 rm -f conftest.er1
6489 cat conftest.err >&5
6490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); } >/dev/null && {
6492 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6493 test ! -s conftest.err
6494 }; then
6495 :
6496 else
6497 $as_echo "$as_me: failed program was:" >&5
6498 sed 's/^/| /' conftest.$ac_ext >&5
6499
6500 # Broken: fails on valid input.
6501 continue
6502 fi
6503
6504 rm -f conftest.err conftest.$ac_ext
6505
6506 # OK, works on sane cases. Now check whether nonexistent headers
6507 # can be detected and how.
6508 cat >conftest.$ac_ext <<_ACEOF
6509 /* confdefs.h. */
6510 _ACEOF
6511 cat confdefs.h >>conftest.$ac_ext
6512 cat >>conftest.$ac_ext <<_ACEOF
6513 /* end confdefs.h. */
6514 #include <ac_nonexistent.h>
6515 _ACEOF
6516 if { (ac_try="$ac_cpp conftest.$ac_ext"
6517 case "(($ac_try" in
6518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6519 *) ac_try_echo=$ac_try;;
6520 esac
6521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6522 $as_echo "$ac_try_echo") >&5
6523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6524 ac_status=$?
6525 grep -v '^ *+' conftest.er1 >conftest.err
6526 rm -f conftest.er1
6527 cat conftest.err >&5
6528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } >/dev/null && {
6530 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6531 test ! -s conftest.err
6532 }; then
6533 # Broken: success on invalid input.
6534 continue
6535 else
6536 $as_echo "$as_me: failed program was:" >&5
6537 sed 's/^/| /' conftest.$ac_ext >&5
6538
6539 # Passes both tests.
6540 ac_preproc_ok=:
6541 break
6542 fi
6543
6544 rm -f conftest.err conftest.$ac_ext
6545
6546 done
6547 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6548 rm -f conftest.err conftest.$ac_ext
6549 if $ac_preproc_ok; then
6550 break
6551 fi
6552
6553 done
6554 ac_cv_prog_CPP=$CPP
6555
6556 fi
6557 CPP=$ac_cv_prog_CPP
6558 else
6559 ac_cv_prog_CPP=$CPP
6560 fi
6561 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6562 $as_echo "$CPP" >&6; }
6563 ac_preproc_ok=false
6564 for ac_c_preproc_warn_flag in '' yes
6565 do
6566 # Use a header file that comes with gcc, so configuring glibc
6567 # with a fresh cross-compiler works.
6568 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6569 # <limits.h> exists even on freestanding compilers.
6570 # On the NeXT, cc -E runs the code through the compiler's parser,
6571 # not just through cpp. "Syntax error" is here to catch this case.
6572 cat >conftest.$ac_ext <<_ACEOF
6573 /* confdefs.h. */
6574 _ACEOF
6575 cat confdefs.h >>conftest.$ac_ext
6576 cat >>conftest.$ac_ext <<_ACEOF
6577 /* end confdefs.h. */
6578 #ifdef __STDC__
6579 # include <limits.h>
6580 #else
6581 # include <assert.h>
6582 #endif
6583 Syntax error
6584 _ACEOF
6585 if { (ac_try="$ac_cpp conftest.$ac_ext"
6586 case "(($ac_try" in
6587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6588 *) ac_try_echo=$ac_try;;
6589 esac
6590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6591 $as_echo "$ac_try_echo") >&5
6592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6593 ac_status=$?
6594 grep -v '^ *+' conftest.er1 >conftest.err
6595 rm -f conftest.er1
6596 cat conftest.err >&5
6597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); } >/dev/null && {
6599 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6600 test ! -s conftest.err
6601 }; then
6602 :
6603 else
6604 $as_echo "$as_me: failed program was:" >&5
6605 sed 's/^/| /' conftest.$ac_ext >&5
6606
6607 # Broken: fails on valid input.
6608 continue
6609 fi
6610
6611 rm -f conftest.err conftest.$ac_ext
6612
6613 # OK, works on sane cases. Now check whether nonexistent headers
6614 # can be detected and how.
6615 cat >conftest.$ac_ext <<_ACEOF
6616 /* confdefs.h. */
6617 _ACEOF
6618 cat confdefs.h >>conftest.$ac_ext
6619 cat >>conftest.$ac_ext <<_ACEOF
6620 /* end confdefs.h. */
6621 #include <ac_nonexistent.h>
6622 _ACEOF
6623 if { (ac_try="$ac_cpp conftest.$ac_ext"
6624 case "(($ac_try" in
6625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6626 *) ac_try_echo=$ac_try;;
6627 esac
6628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6629 $as_echo "$ac_try_echo") >&5
6630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6631 ac_status=$?
6632 grep -v '^ *+' conftest.er1 >conftest.err
6633 rm -f conftest.er1
6634 cat conftest.err >&5
6635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } >/dev/null && {
6637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6638 test ! -s conftest.err
6639 }; then
6640 # Broken: success on invalid input.
6641 continue
6642 else
6643 $as_echo "$as_me: failed program was:" >&5
6644 sed 's/^/| /' conftest.$ac_ext >&5
6645
6646 # Passes both tests.
6647 ac_preproc_ok=:
6648 break
6649 fi
6650
6651 rm -f conftest.err conftest.$ac_ext
6652
6653 done
6654 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6655 rm -f conftest.err conftest.$ac_ext
6656 if $ac_preproc_ok; then
6657 :
6658 else
6659 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6661 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6662 See \`config.log' for more details." >&5
6663 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6664 See \`config.log' for more details." >&2;}
6665 { (exit 1); exit 1; }; }; }
6666 fi
6667
6668 ac_ext=c
6669 ac_cpp='$CPP $CPPFLAGS'
6670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6673
6674
6675 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6676 $as_echo_n "checking for ANSI C header files... " >&6; }
6677 if test "${ac_cv_header_stdc+set}" = set; then
6678 $as_echo_n "(cached) " >&6
6679 else
6680 cat >conftest.$ac_ext <<_ACEOF
6681 /* confdefs.h. */
6682 _ACEOF
6683 cat confdefs.h >>conftest.$ac_ext
6684 cat >>conftest.$ac_ext <<_ACEOF
6685 /* end confdefs.h. */
6686 #include <stdlib.h>
6687 #include <stdarg.h>
6688 #include <string.h>
6689 #include <float.h>
6690
6691 int
6692 main ()
6693 {
6694
6695 ;
6696 return 0;
6697 }
6698 _ACEOF
6699 rm -f conftest.$ac_objext
6700 if { (ac_try="$ac_compile"
6701 case "(($ac_try" in
6702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6703 *) ac_try_echo=$ac_try;;
6704 esac
6705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6706 $as_echo "$ac_try_echo") >&5
6707 (eval "$ac_compile") 2>conftest.er1
6708 ac_status=$?
6709 grep -v '^ *+' conftest.er1 >conftest.err
6710 rm -f conftest.er1
6711 cat conftest.err >&5
6712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); } && {
6714 test -z "$ac_c_werror_flag" ||
6715 test ! -s conftest.err
6716 } && test -s conftest.$ac_objext; then
6717 ac_cv_header_stdc=yes
6718 else
6719 $as_echo "$as_me: failed program was:" >&5
6720 sed 's/^/| /' conftest.$ac_ext >&5
6721
6722 ac_cv_header_stdc=no
6723 fi
6724
6725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6726
6727 if test $ac_cv_header_stdc = yes; then
6728 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6729 cat >conftest.$ac_ext <<_ACEOF
6730 /* confdefs.h. */
6731 _ACEOF
6732 cat confdefs.h >>conftest.$ac_ext
6733 cat >>conftest.$ac_ext <<_ACEOF
6734 /* end confdefs.h. */
6735 #include <string.h>
6736
6737 _ACEOF
6738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6739 $EGREP "memchr" >/dev/null 2>&1; then
6740 :
6741 else
6742 ac_cv_header_stdc=no
6743 fi
6744 rm -f conftest*
6745
6746 fi
6747
6748 if test $ac_cv_header_stdc = yes; then
6749 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6750 cat >conftest.$ac_ext <<_ACEOF
6751 /* confdefs.h. */
6752 _ACEOF
6753 cat confdefs.h >>conftest.$ac_ext
6754 cat >>conftest.$ac_ext <<_ACEOF
6755 /* end confdefs.h. */
6756 #include <stdlib.h>
6757
6758 _ACEOF
6759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6760 $EGREP "free" >/dev/null 2>&1; then
6761 :
6762 else
6763 ac_cv_header_stdc=no
6764 fi
6765 rm -f conftest*
6766
6767 fi
6768
6769 if test $ac_cv_header_stdc = yes; then
6770 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6771 if test "$cross_compiling" = yes; then
6772 :
6773 else
6774 cat >conftest.$ac_ext <<_ACEOF
6775 /* confdefs.h. */
6776 _ACEOF
6777 cat confdefs.h >>conftest.$ac_ext
6778 cat >>conftest.$ac_ext <<_ACEOF
6779 /* end confdefs.h. */
6780 #include <ctype.h>
6781 #include <stdlib.h>
6782 #if ((' ' & 0x0FF) == 0x020)
6783 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6784 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6785 #else
6786 # define ISLOWER(c) \
6787 (('a' <= (c) && (c) <= 'i') \
6788 || ('j' <= (c) && (c) <= 'r') \
6789 || ('s' <= (c) && (c) <= 'z'))
6790 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6791 #endif
6792
6793 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6794 int
6795 main ()
6796 {
6797 int i;
6798 for (i = 0; i < 256; i++)
6799 if (XOR (islower (i), ISLOWER (i))
6800 || toupper (i) != TOUPPER (i))
6801 return 2;
6802 return 0;
6803 }
6804 _ACEOF
6805 rm -f conftest$ac_exeext
6806 if { (ac_try="$ac_link"
6807 case "(($ac_try" in
6808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6809 *) ac_try_echo=$ac_try;;
6810 esac
6811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6812 $as_echo "$ac_try_echo") >&5
6813 (eval "$ac_link") 2>&5
6814 ac_status=$?
6815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
6824 ac_status=$?
6825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); }; }; then
6827 :
6828 else
6829 $as_echo "$as_me: program exited with status $ac_status" >&5
6830 $as_echo "$as_me: failed program was:" >&5
6831 sed 's/^/| /' conftest.$ac_ext >&5
6832
6833 ( exit $ac_status )
6834 ac_cv_header_stdc=no
6835 fi
6836 rm -rf conftest.dSYM
6837 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6838 fi
6839
6840
6841 fi
6842 fi
6843 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6844 $as_echo "$ac_cv_header_stdc" >&6; }
6845 if test $ac_cv_header_stdc = yes; then
6846
6847 cat >>confdefs.h <<\_ACEOF
6848 #define STDC_HEADERS 1
6849 _ACEOF
6850
6851 fi
6852
6853 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6864 inttypes.h stdint.h unistd.h
6865 do
6866 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6867 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6868 $as_echo_n "checking for $ac_header... " >&6; }
6869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6870 $as_echo_n "(cached) " >&6
6871 else
6872 cat >conftest.$ac_ext <<_ACEOF
6873 /* confdefs.h. */
6874 _ACEOF
6875 cat confdefs.h >>conftest.$ac_ext
6876 cat >>conftest.$ac_ext <<_ACEOF
6877 /* end confdefs.h. */
6878 $ac_includes_default
6879
6880 #include <$ac_header>
6881 _ACEOF
6882 rm -f conftest.$ac_objext
6883 if { (ac_try="$ac_compile"
6884 case "(($ac_try" in
6885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6886 *) ac_try_echo=$ac_try;;
6887 esac
6888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6889 $as_echo "$ac_try_echo") >&5
6890 (eval "$ac_compile") 2>conftest.er1
6891 ac_status=$?
6892 grep -v '^ *+' conftest.er1 >conftest.err
6893 rm -f conftest.er1
6894 cat conftest.err >&5
6895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } && {
6897 test -z "$ac_c_werror_flag" ||
6898 test ! -s conftest.err
6899 } && test -s conftest.$ac_objext; then
6900 eval "$as_ac_Header=yes"
6901 else
6902 $as_echo "$as_me: failed program was:" >&5
6903 sed 's/^/| /' conftest.$ac_ext >&5
6904
6905 eval "$as_ac_Header=no"
6906 fi
6907
6908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6909 fi
6910 ac_res=`eval 'as_val=${'$as_ac_Header'}
6911 $as_echo "$as_val"'`
6912 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6913 $as_echo "$ac_res" >&6; }
6914 as_val=`eval 'as_val=${'$as_ac_Header'}
6915 $as_echo "$as_val"'`
6916 if test "x$as_val" = x""yes; then
6917 cat >>confdefs.h <<_ACEOF
6918 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6919 _ACEOF
6920
6921 fi
6922
6923 done
6924
6925
6926
6927 for ac_header in dlfcn.h
6928 do
6929 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6930 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6931 $as_echo_n "checking for $ac_header... " >&6; }
6932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6933 $as_echo_n "(cached) " >&6
6934 else
6935 cat >conftest.$ac_ext <<_ACEOF
6936 /* confdefs.h. */
6937 _ACEOF
6938 cat confdefs.h >>conftest.$ac_ext
6939 cat >>conftest.$ac_ext <<_ACEOF
6940 /* end confdefs.h. */
6941 $ac_includes_default
6942
6943 #include <$ac_header>
6944 _ACEOF
6945 rm -f conftest.$ac_objext
6946 if { (ac_try="$ac_compile"
6947 case "(($ac_try" in
6948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6949 *) ac_try_echo=$ac_try;;
6950 esac
6951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6952 $as_echo "$ac_try_echo") >&5
6953 (eval "$ac_compile") 2>conftest.er1
6954 ac_status=$?
6955 grep -v '^ *+' conftest.er1 >conftest.err
6956 rm -f conftest.er1
6957 cat conftest.err >&5
6958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); } && {
6960 test -z "$ac_c_werror_flag" ||
6961 test ! -s conftest.err
6962 } && test -s conftest.$ac_objext; then
6963 eval "$as_ac_Header=yes"
6964 else
6965 $as_echo "$as_me: failed program was:" >&5
6966 sed 's/^/| /' conftest.$ac_ext >&5
6967
6968 eval "$as_ac_Header=no"
6969 fi
6970
6971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6972 fi
6973 ac_res=`eval 'as_val=${'$as_ac_Header'}
6974 $as_echo "$as_val"'`
6975 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6976 $as_echo "$ac_res" >&6; }
6977 as_val=`eval 'as_val=${'$as_ac_Header'}
6978 $as_echo "$as_val"'`
6979 if test "x$as_val" = x""yes; then
6980 cat >>confdefs.h <<_ACEOF
6981 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6982 _ACEOF
6983
6984 fi
6985
6986 done
6987
6988
6989
6990 # Set options
6991
6992
6993
6994 enable_dlopen=no
6995
6996
6997 enable_win32_dll=no
6998
6999
7000 # Check whether --enable-shared was given.
7001 if test "${enable_shared+set}" = set; then
7002 enableval=$enable_shared; p=${PACKAGE-default}
7003 case $enableval in
7004 yes) enable_shared=yes ;;
7005 no) enable_shared=no ;;
7006 *)
7007 enable_shared=no
7008 # Look at the argument we got. We use all the common list separators.
7009 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7010 for pkg in $enableval; do
7011 IFS="$lt_save_ifs"
7012 if test "X$pkg" = "X$p"; then
7013 enable_shared=yes
7014 fi
7015 done
7016 IFS="$lt_save_ifs"
7017 ;;
7018 esac
7019 else
7020 enable_shared=yes
7021 fi
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033 # Check whether --with-pic was given.
7034 if test "${with_pic+set}" = set; then
7035 withval=$with_pic; pic_mode="$withval"
7036 else
7037 pic_mode=default
7038 fi
7039
7040
7041 test -z "$pic_mode" && pic_mode=default
7042
7043
7044
7045
7046
7047
7048
7049 # Check whether --enable-fast-install was given.
7050 if test "${enable_fast_install+set}" = set; then
7051 enableval=$enable_fast_install; p=${PACKAGE-default}
7052 case $enableval in
7053 yes) enable_fast_install=yes ;;
7054 no) enable_fast_install=no ;;
7055 *)
7056 enable_fast_install=no
7057 # Look at the argument we got. We use all the common list separators.
7058 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7059 for pkg in $enableval; do
7060 IFS="$lt_save_ifs"
7061 if test "X$pkg" = "X$p"; then
7062 enable_fast_install=yes
7063 fi
7064 done
7065 IFS="$lt_save_ifs"
7066 ;;
7067 esac
7068 else
7069 enable_fast_install=yes
7070 fi
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082 # This can be used to rebuild libtool when needed
7083 LIBTOOL_DEPS="$ltmain"
7084
7085 # Always use our own libtool.
7086 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112 test -z "$LN_S" && LN_S="ln -s"
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127 if test -n "${ZSH_VERSION+set}" ; then
7128 setopt NO_GLOB_SUBST
7129 fi
7130
7131 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7132 $as_echo_n "checking for objdir... " >&6; }
7133 if test "${lt_cv_objdir+set}" = set; then
7134 $as_echo_n "(cached) " >&6
7135 else
7136 rm -f .libs 2>/dev/null
7137 mkdir .libs 2>/dev/null
7138 if test -d .libs; then
7139 lt_cv_objdir=.libs
7140 else
7141 # MS-DOS does not allow filenames that begin with a dot.
7142 lt_cv_objdir=_libs
7143 fi
7144 rmdir .libs 2>/dev/null
7145 fi
7146 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7147 $as_echo "$lt_cv_objdir" >&6; }
7148 objdir=$lt_cv_objdir
7149
7150
7151
7152
7153
7154 cat >>confdefs.h <<_ACEOF
7155 #define LT_OBJDIR "$lt_cv_objdir/"
7156 _ACEOF
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174 case $host_os in
7175 aix3*)
7176 # AIX sometimes has problems with the GCC collect2 program. For some
7177 # reason, if we set the COLLECT_NAMES environment variable, the problems
7178 # vanish in a puff of smoke.
7179 if test "X${COLLECT_NAMES+set}" != Xset; then
7180 COLLECT_NAMES=
7181 export COLLECT_NAMES
7182 fi
7183 ;;
7184 esac
7185
7186 # Sed substitution that helps us do robust quoting. It backslashifies
7187 # metacharacters that are still active within double-quoted strings.
7188 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7189
7190 # Same as above, but do not quote variable references.
7191 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7192
7193 # Sed substitution to delay expansion of an escaped shell variable in a
7194 # double_quote_subst'ed string.
7195 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7196
7197 # Sed substitution to delay expansion of an escaped single quote.
7198 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7199
7200 # Sed substitution to avoid accidental globbing in evaled expressions
7201 no_glob_subst='s/\*/\\\*/g'
7202
7203 # Global variables:
7204 ofile=libtool
7205 can_build_shared=yes
7206
7207 # All known linkers require a `.a' archive for static linking (except MSVC,
7208 # which needs '.lib').
7209 libext=a
7210
7211 with_gnu_ld="$lt_cv_prog_gnu_ld"
7212
7213 old_CC="$CC"
7214 old_CFLAGS="$CFLAGS"
7215
7216 # Set sane defaults for various variables
7217 test -z "$CC" && CC=cc
7218 test -z "$LTCC" && LTCC=$CC
7219 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7220 test -z "$LD" && LD=ld
7221 test -z "$ac_objext" && ac_objext=o
7222
7223 for cc_temp in $compiler""; do
7224 case $cc_temp in
7225 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7226 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7227 \-*) ;;
7228 *) break;;
7229 esac
7230 done
7231 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7232
7233
7234 # Only perform the check for file, if the check method requires it
7235 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7236 case $deplibs_check_method in
7237 file_magic*)
7238 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7239 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7240 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7241 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7242 $as_echo_n "(cached) " >&6
7243 else
7244 case $MAGIC_CMD in
7245 [\\/*] | ?:[\\/]*)
7246 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7247 ;;
7248 *)
7249 lt_save_MAGIC_CMD="$MAGIC_CMD"
7250 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7251 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7252 for ac_dir in $ac_dummy; do
7253 IFS="$lt_save_ifs"
7254 test -z "$ac_dir" && ac_dir=.
7255 if test -f $ac_dir/${ac_tool_prefix}file; then
7256 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7257 if test -n "$file_magic_test_file"; then
7258 case $deplibs_check_method in
7259 "file_magic "*)
7260 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7261 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7262 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7263 $EGREP "$file_magic_regex" > /dev/null; then
7264 :
7265 else
7266 cat <<_LT_EOF 1>&2
7267
7268 *** Warning: the command libtool uses to detect shared libraries,
7269 *** $file_magic_cmd, produces output that libtool cannot recognize.
7270 *** The result is that libtool may fail to recognize shared libraries
7271 *** as such. This will affect the creation of libtool libraries that
7272 *** depend on shared libraries, but programs linked with such libtool
7273 *** libraries will work regardless of this problem. Nevertheless, you
7274 *** may want to report the problem to your system manager and/or to
7275 *** bug-libtool@gnu.org
7276
7277 _LT_EOF
7278 fi ;;
7279 esac
7280 fi
7281 break
7282 fi
7283 done
7284 IFS="$lt_save_ifs"
7285 MAGIC_CMD="$lt_save_MAGIC_CMD"
7286 ;;
7287 esac
7288 fi
7289
7290 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7291 if test -n "$MAGIC_CMD"; then
7292 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7293 $as_echo "$MAGIC_CMD" >&6; }
7294 else
7295 { $as_echo "$as_me:$LINENO: result: no" >&5
7296 $as_echo "no" >&6; }
7297 fi
7298
7299
7300
7301
7302
7303 if test -z "$lt_cv_path_MAGIC_CMD"; then
7304 if test -n "$ac_tool_prefix"; then
7305 { $as_echo "$as_me:$LINENO: checking for file" >&5
7306 $as_echo_n "checking for file... " >&6; }
7307 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7308 $as_echo_n "(cached) " >&6
7309 else
7310 case $MAGIC_CMD in
7311 [\\/*] | ?:[\\/]*)
7312 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7313 ;;
7314 *)
7315 lt_save_MAGIC_CMD="$MAGIC_CMD"
7316 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7317 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7318 for ac_dir in $ac_dummy; do
7319 IFS="$lt_save_ifs"
7320 test -z "$ac_dir" && ac_dir=.
7321 if test -f $ac_dir/file; then
7322 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7323 if test -n "$file_magic_test_file"; then
7324 case $deplibs_check_method in
7325 "file_magic "*)
7326 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7327 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7328 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7329 $EGREP "$file_magic_regex" > /dev/null; then
7330 :
7331 else
7332 cat <<_LT_EOF 1>&2
7333
7334 *** Warning: the command libtool uses to detect shared libraries,
7335 *** $file_magic_cmd, produces output that libtool cannot recognize.
7336 *** The result is that libtool may fail to recognize shared libraries
7337 *** as such. This will affect the creation of libtool libraries that
7338 *** depend on shared libraries, but programs linked with such libtool
7339 *** libraries will work regardless of this problem. Nevertheless, you
7340 *** may want to report the problem to your system manager and/or to
7341 *** bug-libtool@gnu.org
7342
7343 _LT_EOF
7344 fi ;;
7345 esac
7346 fi
7347 break
7348 fi
7349 done
7350 IFS="$lt_save_ifs"
7351 MAGIC_CMD="$lt_save_MAGIC_CMD"
7352 ;;
7353 esac
7354 fi
7355
7356 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7357 if test -n "$MAGIC_CMD"; then
7358 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7359 $as_echo "$MAGIC_CMD" >&6; }
7360 else
7361 { $as_echo "$as_me:$LINENO: result: no" >&5
7362 $as_echo "no" >&6; }
7363 fi
7364
7365
7366 else
7367 MAGIC_CMD=:
7368 fi
7369 fi
7370
7371 fi
7372 ;;
7373 esac
7374
7375 # Use C for the default configuration in the libtool script
7376
7377 lt_save_CC="$CC"
7378 ac_ext=c
7379 ac_cpp='$CPP $CPPFLAGS'
7380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7383
7384
7385 # Source file extension for C test sources.
7386 ac_ext=c
7387
7388 # Object file extension for compiled C test sources.
7389 objext=o
7390 objext=$objext
7391
7392 # Code to be used in simple compile tests
7393 lt_simple_compile_test_code="int some_variable = 0;"
7394
7395 # Code to be used in simple link tests
7396 lt_simple_link_test_code='int main(){return(0);}'
7397
7398
7399
7400
7401
7402
7403
7404 # If no C compiler was specified, use CC.
7405 LTCC=${LTCC-"$CC"}
7406
7407 # If no C compiler flags were specified, use CFLAGS.
7408 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7409
7410 # Allow CC to be a program name with arguments.
7411 compiler=$CC
7412
7413 # Save the default compiler, since it gets overwritten when the other
7414 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7415 compiler_DEFAULT=$CC
7416
7417 # save warnings/boilerplate of simple test code
7418 ac_outfile=conftest.$ac_objext
7419 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7420 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7421 _lt_compiler_boilerplate=`cat conftest.err`
7422 $RM conftest*
7423
7424 ac_outfile=conftest.$ac_objext
7425 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7426 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7427 _lt_linker_boilerplate=`cat conftest.err`
7428 $RM -r conftest*
7429
7430
7431 if test -n "$compiler"; then
7432
7433 lt_prog_compiler_no_builtin_flag=
7434
7435 if test "$GCC" = yes; then
7436 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7437
7438 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7439 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7440 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7441 $as_echo_n "(cached) " >&6
7442 else
7443 lt_cv_prog_compiler_rtti_exceptions=no
7444 ac_outfile=conftest.$ac_objext
7445 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7446 lt_compiler_flag="-fno-rtti -fno-exceptions"
7447 # Insert the option either (1) after the last *FLAGS variable, or
7448 # (2) before a word containing "conftest.", or (3) at the end.
7449 # Note that $ac_compile itself does not contain backslashes and begins
7450 # with a dollar sign (not a hyphen), so the echo should work correctly.
7451 # The option is referenced via a variable to avoid confusing sed.
7452 lt_compile=`echo "$ac_compile" | $SED \
7453 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7454 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7455 -e 's:$: $lt_compiler_flag:'`
7456 (eval echo "\"\$as_me:7456: $lt_compile\"" >&5)
7457 (eval "$lt_compile" 2>conftest.err)
7458 ac_status=$?
7459 cat conftest.err >&5
7460 echo "$as_me:7460: \$? = $ac_status" >&5
7461 if (exit $ac_status) && test -s "$ac_outfile"; then
7462 # The compiler can only warn and ignore the option if not recognized
7463 # So say no if there are warnings other than the usual output.
7464 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7465 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7466 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7467 lt_cv_prog_compiler_rtti_exceptions=yes
7468 fi
7469 fi
7470 $RM conftest*
7471
7472 fi
7473 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7474 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7475
7476 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7477 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7478 else
7479 :
7480 fi
7481
7482 fi
7483
7484
7485
7486
7487
7488
7489 lt_prog_compiler_wl=
7490 lt_prog_compiler_pic=
7491 lt_prog_compiler_static=
7492
7493 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7494 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7495
7496 if test "$GCC" = yes; then
7497 lt_prog_compiler_wl='-Wl,'
7498 lt_prog_compiler_static='-static'
7499
7500 case $host_os in
7501 aix*)
7502 # All AIX code is PIC.
7503 if test "$host_cpu" = ia64; then
7504 # AIX 5 now supports IA64 processor
7505 lt_prog_compiler_static='-Bstatic'
7506 fi
7507 ;;
7508
7509 amigaos*)
7510 case $host_cpu in
7511 powerpc)
7512 # see comment about AmigaOS4 .so support
7513 lt_prog_compiler_pic='-fPIC'
7514 ;;
7515 m68k)
7516 # FIXME: we need at least 68020 code to build shared libraries, but
7517 # adding the `-m68020' flag to GCC prevents building anything better,
7518 # like `-m68040'.
7519 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7520 ;;
7521 esac
7522 ;;
7523
7524 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7525 # PIC is the default for these OSes.
7526 ;;
7527
7528 mingw* | cygwin* | pw32* | os2* | cegcc*)
7529 # This hack is so that the source file can tell whether it is being
7530 # built for inclusion in a dll (and should export symbols for example).
7531 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7532 # (--disable-auto-import) libraries
7533 lt_prog_compiler_pic='-DDLL_EXPORT'
7534 ;;
7535
7536 darwin* | rhapsody*)
7537 # PIC is the default on this platform
7538 # Common symbols not allowed in MH_DYLIB files
7539 lt_prog_compiler_pic='-fno-common'
7540 ;;
7541
7542 hpux*)
7543 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7544 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7545 # sets the default TLS model and affects inlining.
7546 case $host_cpu in
7547 hppa*64*)
7548 # +Z the default
7549 ;;
7550 *)
7551 lt_prog_compiler_pic='-fPIC'
7552 ;;
7553 esac
7554 ;;
7555
7556 interix[3-9]*)
7557 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7558 # Instead, we relocate shared libraries at runtime.
7559 ;;
7560
7561 msdosdjgpp*)
7562 # Just because we use GCC doesn't mean we suddenly get shared libraries
7563 # on systems that don't support them.
7564 lt_prog_compiler_can_build_shared=no
7565 enable_shared=no
7566 ;;
7567
7568 *nto* | *qnx*)
7569 # QNX uses GNU C++, but need to define -shared option too, otherwise
7570 # it will coredump.
7571 lt_prog_compiler_pic='-fPIC -shared'
7572 ;;
7573
7574 sysv4*MP*)
7575 if test -d /usr/nec; then
7576 lt_prog_compiler_pic=-Kconform_pic
7577 fi
7578 ;;
7579
7580 *)
7581 lt_prog_compiler_pic='-fPIC'
7582 ;;
7583 esac
7584 else
7585 # PORTME Check for flag to pass linker flags through the system compiler.
7586 case $host_os in
7587 aix*)
7588 lt_prog_compiler_wl='-Wl,'
7589 if test "$host_cpu" = ia64; then
7590 # AIX 5 now supports IA64 processor
7591 lt_prog_compiler_static='-Bstatic'
7592 else
7593 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7594 fi
7595 ;;
7596
7597 mingw* | cygwin* | pw32* | os2* | cegcc*)
7598 # This hack is so that the source file can tell whether it is being
7599 # built for inclusion in a dll (and should export symbols for example).
7600 lt_prog_compiler_pic='-DDLL_EXPORT'
7601 ;;
7602
7603 hpux9* | hpux10* | hpux11*)
7604 lt_prog_compiler_wl='-Wl,'
7605 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7606 # not for PA HP-UX.
7607 case $host_cpu in
7608 hppa*64*|ia64*)
7609 # +Z the default
7610 ;;
7611 *)
7612 lt_prog_compiler_pic='+Z'
7613 ;;
7614 esac
7615 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7616 lt_prog_compiler_static='${wl}-a ${wl}archive'
7617 ;;
7618
7619 irix5* | irix6* | nonstopux*)
7620 lt_prog_compiler_wl='-Wl,'
7621 # PIC (with -KPIC) is the default.
7622 lt_prog_compiler_static='-non_shared'
7623 ;;
7624
7625 linux* | k*bsd*-gnu)
7626 case $cc_basename in
7627 # old Intel for x86_64 which still supported -KPIC.
7628 ecc*)
7629 lt_prog_compiler_wl='-Wl,'
7630 lt_prog_compiler_pic='-KPIC'
7631 lt_prog_compiler_static='-static'
7632 ;;
7633 # icc used to be incompatible with GCC.
7634 # ICC 10 doesn't accept -KPIC any more.
7635 icc* | ifort*)
7636 lt_prog_compiler_wl='-Wl,'
7637 lt_prog_compiler_pic='-fPIC'
7638 lt_prog_compiler_static='-static'
7639 ;;
7640 # Lahey Fortran 8.1.
7641 lf95*)
7642 lt_prog_compiler_wl='-Wl,'
7643 lt_prog_compiler_pic='--shared'
7644 lt_prog_compiler_static='--static'
7645 ;;
7646 pgcc* | pgf77* | pgf90* | pgf95*)
7647 # Portland Group compilers (*not* the Pentium gcc compiler,
7648 # which looks to be a dead project)
7649 lt_prog_compiler_wl='-Wl,'
7650 lt_prog_compiler_pic='-fpic'
7651 lt_prog_compiler_static='-Bstatic'
7652 ;;
7653 ccc*)
7654 lt_prog_compiler_wl='-Wl,'
7655 # All Alpha code is PIC.
7656 lt_prog_compiler_static='-non_shared'
7657 ;;
7658 xl*)
7659 # IBM XL C 8.0/Fortran 10.1 on PPC
7660 lt_prog_compiler_wl='-Wl,'
7661 lt_prog_compiler_pic='-qpic'
7662 lt_prog_compiler_static='-qstaticlink'
7663 ;;
7664 *)
7665 case `$CC -V 2>&1 | sed 5q` in
7666 *Sun\ C*)
7667 # Sun C 5.9
7668 lt_prog_compiler_pic='-KPIC'
7669 lt_prog_compiler_static='-Bstatic'
7670 lt_prog_compiler_wl='-Wl,'
7671 ;;
7672 *Sun\ F*)
7673 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7674 lt_prog_compiler_pic='-KPIC'
7675 lt_prog_compiler_static='-Bstatic'
7676 lt_prog_compiler_wl=''
7677 ;;
7678 esac
7679 ;;
7680 esac
7681 ;;
7682
7683 newsos6)
7684 lt_prog_compiler_pic='-KPIC'
7685 lt_prog_compiler_static='-Bstatic'
7686 ;;
7687
7688 *nto* | *qnx*)
7689 # QNX uses GNU C++, but need to define -shared option too, otherwise
7690 # it will coredump.
7691 lt_prog_compiler_pic='-fPIC -shared'
7692 ;;
7693
7694 osf3* | osf4* | osf5*)
7695 lt_prog_compiler_wl='-Wl,'
7696 # All OSF/1 code is PIC.
7697 lt_prog_compiler_static='-non_shared'
7698 ;;
7699
7700 rdos*)
7701 lt_prog_compiler_static='-non_shared'
7702 ;;
7703
7704 solaris*)
7705 lt_prog_compiler_pic='-KPIC'
7706 lt_prog_compiler_static='-Bstatic'
7707 case $cc_basename in
7708 f77* | f90* | f95*)
7709 lt_prog_compiler_wl='-Qoption ld ';;
7710 *)
7711 lt_prog_compiler_wl='-Wl,';;
7712 esac
7713 ;;
7714
7715 sunos4*)
7716 lt_prog_compiler_wl='-Qoption ld '
7717 lt_prog_compiler_pic='-PIC'
7718 lt_prog_compiler_static='-Bstatic'
7719 ;;
7720
7721 sysv4 | sysv4.2uw2* | sysv4.3*)
7722 lt_prog_compiler_wl='-Wl,'
7723 lt_prog_compiler_pic='-KPIC'
7724 lt_prog_compiler_static='-Bstatic'
7725 ;;
7726
7727 sysv4*MP*)
7728 if test -d /usr/nec ;then
7729 lt_prog_compiler_pic='-Kconform_pic'
7730 lt_prog_compiler_static='-Bstatic'
7731 fi
7732 ;;
7733
7734 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7735 lt_prog_compiler_wl='-Wl,'
7736 lt_prog_compiler_pic='-KPIC'
7737 lt_prog_compiler_static='-Bstatic'
7738 ;;
7739
7740 unicos*)
7741 lt_prog_compiler_wl='-Wl,'
7742 lt_prog_compiler_can_build_shared=no
7743 ;;
7744
7745 uts4*)
7746 lt_prog_compiler_pic='-pic'
7747 lt_prog_compiler_static='-Bstatic'
7748 ;;
7749
7750 *)
7751 lt_prog_compiler_can_build_shared=no
7752 ;;
7753 esac
7754 fi
7755
7756 case $host_os in
7757 # For platforms which do not support PIC, -DPIC is meaningless:
7758 *djgpp*)
7759 lt_prog_compiler_pic=
7760 ;;
7761 *)
7762 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7763 ;;
7764 esac
7765 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7766 $as_echo "$lt_prog_compiler_pic" >&6; }
7767
7768
7769
7770
7771
7772
7773 #
7774 # Check to make sure the PIC flag actually works.
7775 #
7776 if test -n "$lt_prog_compiler_pic"; then
7777 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7778 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7779 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7780 $as_echo_n "(cached) " >&6
7781 else
7782 lt_cv_prog_compiler_pic_works=no
7783 ac_outfile=conftest.$ac_objext
7784 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7785 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7786 # Insert the option either (1) after the last *FLAGS variable, or
7787 # (2) before a word containing "conftest.", or (3) at the end.
7788 # Note that $ac_compile itself does not contain backslashes and begins
7789 # with a dollar sign (not a hyphen), so the echo should work correctly.
7790 # The option is referenced via a variable to avoid confusing sed.
7791 lt_compile=`echo "$ac_compile" | $SED \
7792 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7793 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7794 -e 's:$: $lt_compiler_flag:'`
7795 (eval echo "\"\$as_me:7795: $lt_compile\"" >&5)
7796 (eval "$lt_compile" 2>conftest.err)
7797 ac_status=$?
7798 cat conftest.err >&5
7799 echo "$as_me:7799: \$? = $ac_status" >&5
7800 if (exit $ac_status) && test -s "$ac_outfile"; then
7801 # The compiler can only warn and ignore the option if not recognized
7802 # So say no if there are warnings other than the usual output.
7803 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7804 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7805 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7806 lt_cv_prog_compiler_pic_works=yes
7807 fi
7808 fi
7809 $RM conftest*
7810
7811 fi
7812 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7813 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7814
7815 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7816 case $lt_prog_compiler_pic in
7817 "" | " "*) ;;
7818 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7819 esac
7820 else
7821 lt_prog_compiler_pic=
7822 lt_prog_compiler_can_build_shared=no
7823 fi
7824
7825 fi
7826
7827
7828
7829
7830
7831
7832 #
7833 # Check to make sure the static flag actually works.
7834 #
7835 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7836 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7837 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7838 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7839 $as_echo_n "(cached) " >&6
7840 else
7841 lt_cv_prog_compiler_static_works=no
7842 save_LDFLAGS="$LDFLAGS"
7843 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7844 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7845 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7846 # The linker can only warn and ignore the option if not recognized
7847 # So say no if there are warnings
7848 if test -s conftest.err; then
7849 # Append any errors to the config.log.
7850 cat conftest.err 1>&5
7851 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7852 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7853 if diff conftest.exp conftest.er2 >/dev/null; then
7854 lt_cv_prog_compiler_static_works=yes
7855 fi
7856 else
7857 lt_cv_prog_compiler_static_works=yes
7858 fi
7859 fi
7860 $RM -r conftest*
7861 LDFLAGS="$save_LDFLAGS"
7862
7863 fi
7864 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7865 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7866
7867 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7868 :
7869 else
7870 lt_prog_compiler_static=
7871 fi
7872
7873
7874
7875
7876
7877
7878
7879 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7880 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7881 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7882 $as_echo_n "(cached) " >&6
7883 else
7884 lt_cv_prog_compiler_c_o=no
7885 $RM -r conftest 2>/dev/null
7886 mkdir conftest
7887 cd conftest
7888 mkdir out
7889 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7890
7891 lt_compiler_flag="-o out/conftest2.$ac_objext"
7892 # Insert the option either (1) after the last *FLAGS variable, or
7893 # (2) before a word containing "conftest.", or (3) at the end.
7894 # Note that $ac_compile itself does not contain backslashes and begins
7895 # with a dollar sign (not a hyphen), so the echo should work correctly.
7896 lt_compile=`echo "$ac_compile" | $SED \
7897 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7898 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7899 -e 's:$: $lt_compiler_flag:'`
7900 (eval echo "\"\$as_me:7900: $lt_compile\"" >&5)
7901 (eval "$lt_compile" 2>out/conftest.err)
7902 ac_status=$?
7903 cat out/conftest.err >&5
7904 echo "$as_me:7904: \$? = $ac_status" >&5
7905 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7906 then
7907 # The compiler can only warn and ignore the option if not recognized
7908 # So say no if there are warnings
7909 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7910 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7911 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7912 lt_cv_prog_compiler_c_o=yes
7913 fi
7914 fi
7915 chmod u+w . 2>&5
7916 $RM conftest*
7917 # SGI C++ compiler will create directory out/ii_files/ for
7918 # template instantiation
7919 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7920 $RM out/* && rmdir out
7921 cd ..
7922 $RM -r conftest
7923 $RM conftest*
7924
7925 fi
7926 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7927 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7928
7929
7930
7931
7932
7933
7934 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7935 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7936 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7937 $as_echo_n "(cached) " >&6
7938 else
7939 lt_cv_prog_compiler_c_o=no
7940 $RM -r conftest 2>/dev/null
7941 mkdir conftest
7942 cd conftest
7943 mkdir out
7944 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7945
7946 lt_compiler_flag="-o out/conftest2.$ac_objext"
7947 # Insert the option either (1) after the last *FLAGS variable, or
7948 # (2) before a word containing "conftest.", or (3) at the end.
7949 # Note that $ac_compile itself does not contain backslashes and begins
7950 # with a dollar sign (not a hyphen), so the echo should work correctly.
7951 lt_compile=`echo "$ac_compile" | $SED \
7952 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7953 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7954 -e 's:$: $lt_compiler_flag:'`
7955 (eval echo "\"\$as_me:7955: $lt_compile\"" >&5)
7956 (eval "$lt_compile" 2>out/conftest.err)
7957 ac_status=$?
7958 cat out/conftest.err >&5
7959 echo "$as_me:7959: \$? = $ac_status" >&5
7960 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7961 then
7962 # The compiler can only warn and ignore the option if not recognized
7963 # So say no if there are warnings
7964 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7965 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7966 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7967 lt_cv_prog_compiler_c_o=yes
7968 fi
7969 fi
7970 chmod u+w . 2>&5
7971 $RM conftest*
7972 # SGI C++ compiler will create directory out/ii_files/ for
7973 # template instantiation
7974 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7975 $RM out/* && rmdir out
7976 cd ..
7977 $RM -r conftest
7978 $RM conftest*
7979
7980 fi
7981 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7982 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7983
7984
7985
7986
7987 hard_links="nottested"
7988 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7989 # do not overwrite the value of need_locks provided by the user
7990 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7991 $as_echo_n "checking if we can lock with hard links... " >&6; }
7992 hard_links=yes
7993 $RM conftest*
7994 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7995 touch conftest.a
7996 ln conftest.a conftest.b 2>&5 || hard_links=no
7997 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7998 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7999 $as_echo "$hard_links" >&6; }
8000 if test "$hard_links" = no; then
8001 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8002 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8003 need_locks=warn
8004 fi
8005 else
8006 need_locks=no
8007 fi
8008
8009
8010
8011
8012
8013
8014 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8015 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8016
8017 runpath_var=
8018 allow_undefined_flag=
8019 always_export_symbols=no
8020 archive_cmds=
8021 archive_expsym_cmds=
8022 compiler_needs_object=no
8023 enable_shared_with_static_runtimes=no
8024 export_dynamic_flag_spec=
8025 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8026 hardcode_automatic=no
8027 hardcode_direct=no
8028 hardcode_direct_absolute=no
8029 hardcode_libdir_flag_spec=
8030 hardcode_libdir_flag_spec_ld=
8031 hardcode_libdir_separator=
8032 hardcode_minus_L=no
8033 hardcode_shlibpath_var=unsupported
8034 inherit_rpath=no
8035 link_all_deplibs=unknown
8036 module_cmds=
8037 module_expsym_cmds=
8038 old_archive_from_new_cmds=
8039 old_archive_from_expsyms_cmds=
8040 thread_safe_flag_spec=
8041 whole_archive_flag_spec=
8042 # include_expsyms should be a list of space-separated symbols to be *always*
8043 # included in the symbol list
8044 include_expsyms=
8045 # exclude_expsyms can be an extended regexp of symbols to exclude
8046 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8047 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8048 # as well as any symbol that contains `d'.
8049 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8050 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8051 # platforms (ab)use it in PIC code, but their linkers get confused if
8052 # the symbol is explicitly referenced. Since portable code cannot
8053 # rely on this symbol name, it's probably fine to never include it in
8054 # preloaded symbol tables.
8055 # Exclude shared library initialization/finalization symbols.
8056 extract_expsyms_cmds=
8057
8058 case $host_os in
8059 cygwin* | mingw* | pw32* | cegcc*)
8060 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8061 # When not using gcc, we currently assume that we are using
8062 # Microsoft Visual C++.
8063 if test "$GCC" != yes; then
8064 with_gnu_ld=no
8065 fi
8066 ;;
8067 interix*)
8068 # we just hope/assume this is gcc and not c89 (= MSVC++)
8069 with_gnu_ld=yes
8070 ;;
8071 openbsd*)
8072 with_gnu_ld=no
8073 ;;
8074 esac
8075
8076 ld_shlibs=yes
8077 if test "$with_gnu_ld" = yes; then
8078 # If archive_cmds runs LD, not CC, wlarc should be empty
8079 wlarc='${wl}'
8080
8081 # Set some defaults for GNU ld with shared library support. These
8082 # are reset later if shared libraries are not supported. Putting them
8083 # here allows them to be overridden if necessary.
8084 runpath_var=LD_RUN_PATH
8085 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8086 export_dynamic_flag_spec='${wl}--export-dynamic'
8087 # ancient GNU ld didn't support --whole-archive et. al.
8088 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8089 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8090 else
8091 whole_archive_flag_spec=
8092 fi
8093 supports_anon_versioning=no
8094 case `$LD -v 2>&1` in
8095 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8096 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8097 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8098 *\ 2.11.*) ;; # other 2.11 versions
8099 *) supports_anon_versioning=yes ;;
8100 esac
8101
8102 # See if GNU ld supports shared libraries.
8103 case $host_os in
8104 aix[3-9]*)
8105 # On AIX/PPC, the GNU linker is very broken
8106 if test "$host_cpu" != ia64; then
8107 ld_shlibs=no
8108 cat <<_LT_EOF 1>&2
8109
8110 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8111 *** to be unable to reliably create shared libraries on AIX.
8112 *** Therefore, libtool is disabling shared libraries support. If you
8113 *** really care for shared libraries, you may want to modify your PATH
8114 *** so that a non-GNU linker is found, and then restart.
8115
8116 _LT_EOF
8117 fi
8118 ;;
8119
8120 amigaos*)
8121 case $host_cpu in
8122 powerpc)
8123 # see comment about AmigaOS4 .so support
8124 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8125 archive_expsym_cmds=''
8126 ;;
8127 m68k)
8128 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)'
8129 hardcode_libdir_flag_spec='-L$libdir'
8130 hardcode_minus_L=yes
8131 ;;
8132 esac
8133 ;;
8134
8135 beos*)
8136 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8137 allow_undefined_flag=unsupported
8138 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8139 # support --undefined. This deserves some investigation. FIXME
8140 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8141 else
8142 ld_shlibs=no
8143 fi
8144 ;;
8145
8146 cygwin* | mingw* | pw32* | cegcc*)
8147 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8148 # as there is no search path for DLLs.
8149 hardcode_libdir_flag_spec='-L$libdir'
8150 allow_undefined_flag=unsupported
8151 always_export_symbols=no
8152 enable_shared_with_static_runtimes=yes
8153 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8154
8155 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8156 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8157 # If the export-symbols file already is a .def file (1st line
8158 # is EXPORTS), use it as is; otherwise, prepend...
8159 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8160 cp $export_symbols $output_objdir/$soname.def;
8161 else
8162 echo EXPORTS > $output_objdir/$soname.def;
8163 cat $export_symbols >> $output_objdir/$soname.def;
8164 fi~
8165 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8166 else
8167 ld_shlibs=no
8168 fi
8169 ;;
8170
8171 interix[3-9]*)
8172 hardcode_direct=no
8173 hardcode_shlibpath_var=no
8174 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8175 export_dynamic_flag_spec='${wl}-E'
8176 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8177 # Instead, shared libraries are loaded at an image base (0x10000000 by
8178 # default) and relocated if they conflict, which is a slow very memory
8179 # consuming and fragmenting process. To avoid this, we pick a random,
8180 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8181 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8182 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8183 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'
8184 ;;
8185
8186 gnu* | linux* | tpf* | k*bsd*-gnu)
8187 tmp_diet=no
8188 if test "$host_os" = linux-dietlibc; then
8189 case $cc_basename in
8190 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8191 esac
8192 fi
8193 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8194 && test "$tmp_diet" = no
8195 then
8196 tmp_addflag=
8197 tmp_sharedflag='-shared'
8198 case $cc_basename,$host_cpu in
8199 pgcc*) # Portland Group C compiler
8200 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'
8201 tmp_addflag=' $pic_flag'
8202 ;;
8203 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8204 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'
8205 tmp_addflag=' $pic_flag -Mnomain' ;;
8206 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8207 tmp_addflag=' -i_dynamic' ;;
8208 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8209 tmp_addflag=' -i_dynamic -nofor_main' ;;
8210 ifc* | ifort*) # Intel Fortran compiler
8211 tmp_addflag=' -nofor_main' ;;
8212 lf95*) # Lahey Fortran 8.1
8213 whole_archive_flag_spec=
8214 tmp_sharedflag='--shared' ;;
8215 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8216 tmp_sharedflag='-qmkshrobj'
8217 tmp_addflag= ;;
8218 esac
8219 case `$CC -V 2>&1 | sed 5q` in
8220 *Sun\ C*) # Sun C 5.9
8221 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'
8222 compiler_needs_object=yes
8223 tmp_sharedflag='-G' ;;
8224 *Sun\ F*) # Sun Fortran 8.3
8225 tmp_sharedflag='-G' ;;
8226 esac
8227 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8228
8229 if test "x$supports_anon_versioning" = xyes; then
8230 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8231 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8232 echo "local: *; };" >> $output_objdir/$libname.ver~
8233 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8234 fi
8235
8236 case $cc_basename in
8237 xlf*)
8238 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8239 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8240 hardcode_libdir_flag_spec=
8241 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8242 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8243 if test "x$supports_anon_versioning" = xyes; then
8244 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8245 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8246 echo "local: *; };" >> $output_objdir/$libname.ver~
8247 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8248 fi
8249 ;;
8250 esac
8251 else
8252 ld_shlibs=no
8253 fi
8254 ;;
8255
8256 netbsd*)
8257 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8258 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8259 wlarc=
8260 else
8261 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8262 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8263 fi
8264 ;;
8265
8266 solaris*)
8267 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8268 ld_shlibs=no
8269 cat <<_LT_EOF 1>&2
8270
8271 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8272 *** create shared libraries on Solaris systems. Therefore, libtool
8273 *** is disabling shared libraries support. We urge you to upgrade GNU
8274 *** binutils to release 2.9.1 or newer. Another option is to modify
8275 *** your PATH or compiler configuration so that the native linker is
8276 *** used, and then restart.
8277
8278 _LT_EOF
8279 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8280 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8281 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8282 else
8283 ld_shlibs=no
8284 fi
8285 ;;
8286
8287 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8288 case `$LD -v 2>&1` in
8289 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8290 ld_shlibs=no
8291 cat <<_LT_EOF 1>&2
8292
8293 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8294 *** reliably create shared libraries on SCO systems. Therefore, libtool
8295 *** is disabling shared libraries support. We urge you to upgrade GNU
8296 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8297 *** your PATH or compiler configuration so that the native linker is
8298 *** used, and then restart.
8299
8300 _LT_EOF
8301 ;;
8302 *)
8303 # For security reasons, it is highly recommended that you always
8304 # use absolute paths for naming shared libraries, and exclude the
8305 # DT_RUNPATH tag from executables and libraries. But doing so
8306 # requires that you compile everything twice, which is a pain.
8307 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8308 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8309 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8310 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8311 else
8312 ld_shlibs=no
8313 fi
8314 ;;
8315 esac
8316 ;;
8317
8318 sunos4*)
8319 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8320 wlarc=
8321 hardcode_direct=yes
8322 hardcode_shlibpath_var=no
8323 ;;
8324
8325 *)
8326 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8327 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8328 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8329 else
8330 ld_shlibs=no
8331 fi
8332 ;;
8333 esac
8334
8335 if test "$ld_shlibs" = no; then
8336 runpath_var=
8337 hardcode_libdir_flag_spec=
8338 export_dynamic_flag_spec=
8339 whole_archive_flag_spec=
8340 fi
8341 else
8342 # PORTME fill in a description of your system's linker (not GNU ld)
8343 case $host_os in
8344 aix3*)
8345 allow_undefined_flag=unsupported
8346 always_export_symbols=yes
8347 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'
8348 # Note: this linker hardcodes the directories in LIBPATH if there
8349 # are no directories specified by -L.
8350 hardcode_minus_L=yes
8351 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8352 # Neither direct hardcoding nor static linking is supported with a
8353 # broken collect2.
8354 hardcode_direct=unsupported
8355 fi
8356 ;;
8357
8358 aix[4-9]*)
8359 if test "$host_cpu" = ia64; then
8360 # On IA64, the linker does run time linking by default, so we don't
8361 # have to do anything special.
8362 aix_use_runtimelinking=no
8363 exp_sym_flag='-Bexport'
8364 no_entry_flag=""
8365 else
8366 # If we're using GNU nm, then we don't want the "-C" option.
8367 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8368 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8369 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'
8370 else
8371 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'
8372 fi
8373 aix_use_runtimelinking=no
8374
8375 # Test if we are trying to use run time linking or normal
8376 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8377 # need to do runtime linking.
8378 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8379 for ld_flag in $LDFLAGS; do
8380 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8381 aix_use_runtimelinking=yes
8382 break
8383 fi
8384 done
8385 ;;
8386 esac
8387
8388 exp_sym_flag='-bexport'
8389 no_entry_flag='-bnoentry'
8390 fi
8391
8392 # When large executables or shared objects are built, AIX ld can
8393 # have problems creating the table of contents. If linking a library
8394 # or program results in "error TOC overflow" add -mminimal-toc to
8395 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8396 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8397
8398 archive_cmds=''
8399 hardcode_direct=yes
8400 hardcode_direct_absolute=yes
8401 hardcode_libdir_separator=':'
8402 link_all_deplibs=yes
8403 file_list_spec='${wl}-f,'
8404
8405 if test "$GCC" = yes; then
8406 case $host_os in aix4.[012]|aix4.[012].*)
8407 # We only want to do this on AIX 4.2 and lower, the check
8408 # below for broken collect2 doesn't work under 4.3+
8409 collect2name=`${CC} -print-prog-name=collect2`
8410 if test -f "$collect2name" &&
8411 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8412 then
8413 # We have reworked collect2
8414 :
8415 else
8416 # We have old collect2
8417 hardcode_direct=unsupported
8418 # It fails to find uninstalled libraries when the uninstalled
8419 # path is not listed in the libpath. Setting hardcode_minus_L
8420 # to unsupported forces relinking
8421 hardcode_minus_L=yes
8422 hardcode_libdir_flag_spec='-L$libdir'
8423 hardcode_libdir_separator=
8424 fi
8425 ;;
8426 esac
8427 shared_flag='-shared'
8428 if test "$aix_use_runtimelinking" = yes; then
8429 shared_flag="$shared_flag "'${wl}-G'
8430 fi
8431 else
8432 # not using gcc
8433 if test "$host_cpu" = ia64; then
8434 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8435 # chokes on -Wl,-G. The following line is correct:
8436 shared_flag='-G'
8437 else
8438 if test "$aix_use_runtimelinking" = yes; then
8439 shared_flag='${wl}-G'
8440 else
8441 shared_flag='${wl}-bM:SRE'
8442 fi
8443 fi
8444 fi
8445
8446 export_dynamic_flag_spec='${wl}-bexpall'
8447 # It seems that -bexpall does not export symbols beginning with
8448 # underscore (_), so it is better to generate a list of symbols to export.
8449 always_export_symbols=yes
8450 if test "$aix_use_runtimelinking" = yes; then
8451 # Warning - without using the other runtime loading flags (-brtl),
8452 # -berok will link without error, but may produce a broken library.
8453 allow_undefined_flag='-berok'
8454 # Determine the default libpath from the value encoded in an
8455 # empty executable.
8456 cat >conftest.$ac_ext <<_ACEOF
8457 /* confdefs.h. */
8458 _ACEOF
8459 cat confdefs.h >>conftest.$ac_ext
8460 cat >>conftest.$ac_ext <<_ACEOF
8461 /* end confdefs.h. */
8462
8463 int
8464 main ()
8465 {
8466
8467 ;
8468 return 0;
8469 }
8470 _ACEOF
8471 rm -f conftest.$ac_objext conftest$ac_exeext
8472 if { (ac_try="$ac_link"
8473 case "(($ac_try" in
8474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8475 *) ac_try_echo=$ac_try;;
8476 esac
8477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8478 $as_echo "$ac_try_echo") >&5
8479 (eval "$ac_link") 2>conftest.er1
8480 ac_status=$?
8481 grep -v '^ *+' conftest.er1 >conftest.err
8482 rm -f conftest.er1
8483 cat conftest.err >&5
8484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } && {
8486 test -z "$ac_c_werror_flag" ||
8487 test ! -s conftest.err
8488 } && test -s conftest$ac_exeext && {
8489 test "$cross_compiling" = yes ||
8490 $as_test_x conftest$ac_exeext
8491 }; then
8492
8493 lt_aix_libpath_sed='
8494 /Import File Strings/,/^$/ {
8495 /^0/ {
8496 s/^0 *\(.*\)$/\1/
8497 p
8498 }
8499 }'
8500 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8501 # Check for a 64-bit object if we didn't find anything.
8502 if test -z "$aix_libpath"; then
8503 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8504 fi
8505 else
8506 $as_echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8508
8509
8510 fi
8511
8512 rm -rf conftest.dSYM
8513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8514 conftest$ac_exeext conftest.$ac_ext
8515 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8516
8517 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8518 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"
8519 else
8520 if test "$host_cpu" = ia64; then
8521 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8522 allow_undefined_flag="-z nodefs"
8523 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"
8524 else
8525 # Determine the default libpath from the value encoded in an
8526 # empty executable.
8527 cat >conftest.$ac_ext <<_ACEOF
8528 /* confdefs.h. */
8529 _ACEOF
8530 cat confdefs.h >>conftest.$ac_ext
8531 cat >>conftest.$ac_ext <<_ACEOF
8532 /* end confdefs.h. */
8533
8534 int
8535 main ()
8536 {
8537
8538 ;
8539 return 0;
8540 }
8541 _ACEOF
8542 rm -f conftest.$ac_objext conftest$ac_exeext
8543 if { (ac_try="$ac_link"
8544 case "(($ac_try" in
8545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8546 *) ac_try_echo=$ac_try;;
8547 esac
8548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8549 $as_echo "$ac_try_echo") >&5
8550 (eval "$ac_link") 2>conftest.er1
8551 ac_status=$?
8552 grep -v '^ *+' conftest.er1 >conftest.err
8553 rm -f conftest.er1
8554 cat conftest.err >&5
8555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); } && {
8557 test -z "$ac_c_werror_flag" ||
8558 test ! -s conftest.err
8559 } && test -s conftest$ac_exeext && {
8560 test "$cross_compiling" = yes ||
8561 $as_test_x conftest$ac_exeext
8562 }; then
8563
8564 lt_aix_libpath_sed='
8565 /Import File Strings/,/^$/ {
8566 /^0/ {
8567 s/^0 *\(.*\)$/\1/
8568 p
8569 }
8570 }'
8571 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8572 # Check for a 64-bit object if we didn't find anything.
8573 if test -z "$aix_libpath"; then
8574 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8575 fi
8576 else
8577 $as_echo "$as_me: failed program was:" >&5
8578 sed 's/^/| /' conftest.$ac_ext >&5
8579
8580
8581 fi
8582
8583 rm -rf conftest.dSYM
8584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8585 conftest$ac_exeext conftest.$ac_ext
8586 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8587
8588 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8589 # Warning - without using the other run time loading flags,
8590 # -berok will link without error, but may produce a broken library.
8591 no_undefined_flag=' ${wl}-bernotok'
8592 allow_undefined_flag=' ${wl}-berok'
8593 # Exported symbols can be pulled into shared objects from archives
8594 whole_archive_flag_spec='$convenience'
8595 archive_cmds_need_lc=yes
8596 # This is similar to how AIX traditionally builds its shared libraries.
8597 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'
8598 fi
8599 fi
8600 ;;
8601
8602 amigaos*)
8603 case $host_cpu in
8604 powerpc)
8605 # see comment about AmigaOS4 .so support
8606 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8607 archive_expsym_cmds=''
8608 ;;
8609 m68k)
8610 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)'
8611 hardcode_libdir_flag_spec='-L$libdir'
8612 hardcode_minus_L=yes
8613 ;;
8614 esac
8615 ;;
8616
8617 bsdi[45]*)
8618 export_dynamic_flag_spec=-rdynamic
8619 ;;
8620
8621 cygwin* | mingw* | pw32* | cegcc*)
8622 # When not using gcc, we currently assume that we are using
8623 # Microsoft Visual C++.
8624 # hardcode_libdir_flag_spec is actually meaningless, as there is
8625 # no search path for DLLs.
8626 hardcode_libdir_flag_spec=' '
8627 allow_undefined_flag=unsupported
8628 # Tell ltmain to make .lib files, not .a files.
8629 libext=lib
8630 # Tell ltmain to make .dll files, not .so files.
8631 shrext_cmds=".dll"
8632 # FIXME: Setting linknames here is a bad hack.
8633 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8634 # The linker will automatically build a .lib file if we build a DLL.
8635 old_archive_from_new_cmds='true'
8636 # FIXME: Should let the user specify the lib program.
8637 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8638 fix_srcfile_path='`cygpath -w "$srcfile"`'
8639 enable_shared_with_static_runtimes=yes
8640 ;;
8641
8642 darwin* | rhapsody*)
8643
8644
8645 archive_cmds_need_lc=no
8646 hardcode_direct=no
8647 hardcode_automatic=yes
8648 hardcode_shlibpath_var=unsupported
8649 whole_archive_flag_spec=''
8650 link_all_deplibs=yes
8651 allow_undefined_flag="$_lt_dar_allow_undefined"
8652 case $cc_basename in
8653 ifort*) _lt_dar_can_shared=yes ;;
8654 *) _lt_dar_can_shared=$GCC ;;
8655 esac
8656 if test "$_lt_dar_can_shared" = "yes"; then
8657 output_verbose_link_cmd=echo
8658 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8659 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8660 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}"
8661 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}"
8662
8663 else
8664 ld_shlibs=no
8665 fi
8666
8667 ;;
8668
8669 dgux*)
8670 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8671 hardcode_libdir_flag_spec='-L$libdir'
8672 hardcode_shlibpath_var=no
8673 ;;
8674
8675 freebsd1*)
8676 ld_shlibs=no
8677 ;;
8678
8679 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8680 # support. Future versions do this automatically, but an explicit c++rt0.o
8681 # does not break anything, and helps significantly (at the cost of a little
8682 # extra space).
8683 freebsd2.2*)
8684 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8685 hardcode_libdir_flag_spec='-R$libdir'
8686 hardcode_direct=yes
8687 hardcode_shlibpath_var=no
8688 ;;
8689
8690 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8691 freebsd2*)
8692 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8693 hardcode_direct=yes
8694 hardcode_minus_L=yes
8695 hardcode_shlibpath_var=no
8696 ;;
8697
8698 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8699 freebsd* | dragonfly*)
8700 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8701 hardcode_libdir_flag_spec='-R$libdir'
8702 hardcode_direct=yes
8703 hardcode_shlibpath_var=no
8704 ;;
8705
8706 hpux9*)
8707 if test "$GCC" = yes; then
8708 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'
8709 else
8710 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'
8711 fi
8712 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8713 hardcode_libdir_separator=:
8714 hardcode_direct=yes
8715
8716 # hardcode_minus_L: Not really in the search PATH,
8717 # but as the default location of the library.
8718 hardcode_minus_L=yes
8719 export_dynamic_flag_spec='${wl}-E'
8720 ;;
8721
8722 hpux10*)
8723 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8724 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8725 else
8726 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8727 fi
8728 if test "$with_gnu_ld" = no; then
8729 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8730 hardcode_libdir_flag_spec_ld='+b $libdir'
8731 hardcode_libdir_separator=:
8732 hardcode_direct=yes
8733 hardcode_direct_absolute=yes
8734 export_dynamic_flag_spec='${wl}-E'
8735 # hardcode_minus_L: Not really in the search PATH,
8736 # but as the default location of the library.
8737 hardcode_minus_L=yes
8738 fi
8739 ;;
8740
8741 hpux11*)
8742 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8743 case $host_cpu in
8744 hppa*64*)
8745 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8746 ;;
8747 ia64*)
8748 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8749 ;;
8750 *)
8751 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8752 ;;
8753 esac
8754 else
8755 case $host_cpu in
8756 hppa*64*)
8757 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8758 ;;
8759 ia64*)
8760 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8761 ;;
8762 *)
8763 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8764 ;;
8765 esac
8766 fi
8767 if test "$with_gnu_ld" = no; then
8768 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8769 hardcode_libdir_separator=:
8770
8771 case $host_cpu in
8772 hppa*64*|ia64*)
8773 hardcode_direct=no
8774 hardcode_shlibpath_var=no
8775 ;;
8776 *)
8777 hardcode_direct=yes
8778 hardcode_direct_absolute=yes
8779 export_dynamic_flag_spec='${wl}-E'
8780
8781 # hardcode_minus_L: Not really in the search PATH,
8782 # but as the default location of the library.
8783 hardcode_minus_L=yes
8784 ;;
8785 esac
8786 fi
8787 ;;
8788
8789 irix5* | irix6* | nonstopux*)
8790 if test "$GCC" = yes; then
8791 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'
8792 # Try to use the -exported_symbol ld option, if it does not
8793 # work, assume that -exports_file does not work either and
8794 # implicitly export all symbols.
8795 save_LDFLAGS="$LDFLAGS"
8796 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8797 cat >conftest.$ac_ext <<_ACEOF
8798 int foo(void) {}
8799 _ACEOF
8800 rm -f conftest.$ac_objext conftest$ac_exeext
8801 if { (ac_try="$ac_link"
8802 case "(($ac_try" in
8803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8804 *) ac_try_echo=$ac_try;;
8805 esac
8806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8807 $as_echo "$ac_try_echo") >&5
8808 (eval "$ac_link") 2>conftest.er1
8809 ac_status=$?
8810 grep -v '^ *+' conftest.er1 >conftest.err
8811 rm -f conftest.er1
8812 cat conftest.err >&5
8813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); } && {
8815 test -z "$ac_c_werror_flag" ||
8816 test ! -s conftest.err
8817 } && test -s conftest$ac_exeext && {
8818 test "$cross_compiling" = yes ||
8819 $as_test_x conftest$ac_exeext
8820 }; then
8821 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'
8822
8823 else
8824 $as_echo "$as_me: failed program was:" >&5
8825 sed 's/^/| /' conftest.$ac_ext >&5
8826
8827
8828 fi
8829
8830 rm -rf conftest.dSYM
8831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8832 conftest$ac_exeext conftest.$ac_ext
8833 LDFLAGS="$save_LDFLAGS"
8834 else
8835 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'
8836 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'
8837 fi
8838 archive_cmds_need_lc='no'
8839 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8840 hardcode_libdir_separator=:
8841 inherit_rpath=yes
8842 link_all_deplibs=yes
8843 ;;
8844
8845 netbsd*)
8846 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8847 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8848 else
8849 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8850 fi
8851 hardcode_libdir_flag_spec='-R$libdir'
8852 hardcode_direct=yes
8853 hardcode_shlibpath_var=no
8854 ;;
8855
8856 newsos6)
8857 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8858 hardcode_direct=yes
8859 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8860 hardcode_libdir_separator=:
8861 hardcode_shlibpath_var=no
8862 ;;
8863
8864 *nto* | *qnx*)
8865 ;;
8866
8867 openbsd*)
8868 if test -f /usr/libexec/ld.so; then
8869 hardcode_direct=yes
8870 hardcode_shlibpath_var=no
8871 hardcode_direct_absolute=yes
8872 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8873 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8874 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8875 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8876 export_dynamic_flag_spec='${wl}-E'
8877 else
8878 case $host_os in
8879 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8880 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8881 hardcode_libdir_flag_spec='-R$libdir'
8882 ;;
8883 *)
8884 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8885 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8886 ;;
8887 esac
8888 fi
8889 else
8890 ld_shlibs=no
8891 fi
8892 ;;
8893
8894 os2*)
8895 hardcode_libdir_flag_spec='-L$libdir'
8896 hardcode_minus_L=yes
8897 allow_undefined_flag=unsupported
8898 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'
8899 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8900 ;;
8901
8902 osf3*)
8903 if test "$GCC" = yes; then
8904 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8905 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'
8906 else
8907 allow_undefined_flag=' -expect_unresolved \*'
8908 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'
8909 fi
8910 archive_cmds_need_lc='no'
8911 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8912 hardcode_libdir_separator=:
8913 ;;
8914
8915 osf4* | osf5*) # as osf3* with the addition of -msym flag
8916 if test "$GCC" = yes; then
8917 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8918 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'
8919 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8920 else
8921 allow_undefined_flag=' -expect_unresolved \*'
8922 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'
8923 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~
8924 $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'
8925
8926 # Both c and cxx compiler support -rpath directly
8927 hardcode_libdir_flag_spec='-rpath $libdir'
8928 fi
8929 archive_cmds_need_lc='no'
8930 hardcode_libdir_separator=:
8931 ;;
8932
8933 solaris*)
8934 no_undefined_flag=' -z defs'
8935 if test "$GCC" = yes; then
8936 wlarc='${wl}'
8937 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8938 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8939 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8940 else
8941 case `$CC -V 2>&1` in
8942 *"Compilers 5.0"*)
8943 wlarc=''
8944 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8945 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8946 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8947 ;;
8948 *)
8949 wlarc='${wl}'
8950 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8951 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8952 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8953 ;;
8954 esac
8955 fi
8956 hardcode_libdir_flag_spec='-R$libdir'
8957 hardcode_shlibpath_var=no
8958 case $host_os in
8959 solaris2.[0-5] | solaris2.[0-5].*) ;;
8960 *)
8961 # The compiler driver will combine and reorder linker options,
8962 # but understands `-z linker_flag'. GCC discards it without `$wl',
8963 # but is careful enough not to reorder.
8964 # Supported since Solaris 2.6 (maybe 2.5.1?)
8965 if test "$GCC" = yes; then
8966 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8967 else
8968 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8969 fi
8970 ;;
8971 esac
8972 link_all_deplibs=yes
8973 ;;
8974
8975 sunos4*)
8976 if test "x$host_vendor" = xsequent; then
8977 # Use $CC to link under sequent, because it throws in some extra .o
8978 # files that make .init and .fini sections work.
8979 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8980 else
8981 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8982 fi
8983 hardcode_libdir_flag_spec='-L$libdir'
8984 hardcode_direct=yes
8985 hardcode_minus_L=yes
8986 hardcode_shlibpath_var=no
8987 ;;
8988
8989 sysv4)
8990 case $host_vendor in
8991 sni)
8992 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8993 hardcode_direct=yes # is this really true???
8994 ;;
8995 siemens)
8996 ## LD is ld it makes a PLAMLIB
8997 ## CC just makes a GrossModule.
8998 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8999 reload_cmds='$CC -r -o $output$reload_objs'
9000 hardcode_direct=no
9001 ;;
9002 motorola)
9003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9004 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9005 ;;
9006 esac
9007 runpath_var='LD_RUN_PATH'
9008 hardcode_shlibpath_var=no
9009 ;;
9010
9011 sysv4.3*)
9012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9013 hardcode_shlibpath_var=no
9014 export_dynamic_flag_spec='-Bexport'
9015 ;;
9016
9017 sysv4*MP*)
9018 if test -d /usr/nec; then
9019 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9020 hardcode_shlibpath_var=no
9021 runpath_var=LD_RUN_PATH
9022 hardcode_runpath_var=yes
9023 ld_shlibs=yes
9024 fi
9025 ;;
9026
9027 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9028 no_undefined_flag='${wl}-z,text'
9029 archive_cmds_need_lc=no
9030 hardcode_shlibpath_var=no
9031 runpath_var='LD_RUN_PATH'
9032
9033 if test "$GCC" = yes; then
9034 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9035 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9036 else
9037 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9038 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9039 fi
9040 ;;
9041
9042 sysv5* | sco3.2v5* | sco5v6*)
9043 # Note: We can NOT use -z defs as we might desire, because we do not
9044 # link with -lc, and that would cause any symbols used from libc to
9045 # always be unresolved, which means just about no library would
9046 # ever link correctly. If we're not using GNU ld we use -z text
9047 # though, which does catch some bad symbols but isn't as heavy-handed
9048 # as -z defs.
9049 no_undefined_flag='${wl}-z,text'
9050 allow_undefined_flag='${wl}-z,nodefs'
9051 archive_cmds_need_lc=no
9052 hardcode_shlibpath_var=no
9053 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9054 hardcode_libdir_separator=':'
9055 link_all_deplibs=yes
9056 export_dynamic_flag_spec='${wl}-Bexport'
9057 runpath_var='LD_RUN_PATH'
9058
9059 if test "$GCC" = yes; then
9060 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9061 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9062 else
9063 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9064 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9065 fi
9066 ;;
9067
9068 uts4*)
9069 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9070 hardcode_libdir_flag_spec='-L$libdir'
9071 hardcode_shlibpath_var=no
9072 ;;
9073
9074 *)
9075 ld_shlibs=no
9076 ;;
9077 esac
9078
9079 if test x$host_vendor = xsni; then
9080 case $host in
9081 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9082 export_dynamic_flag_spec='${wl}-Blargedynsym'
9083 ;;
9084 esac
9085 fi
9086 fi
9087
9088 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9089 $as_echo "$ld_shlibs" >&6; }
9090 test "$ld_shlibs" = no && can_build_shared=no
9091
9092 with_gnu_ld=$with_gnu_ld
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108 #
9109 # Do we need to explicitly link libc?
9110 #
9111 case "x$archive_cmds_need_lc" in
9112 x|xyes)
9113 # Assume -lc should be added
9114 archive_cmds_need_lc=yes
9115
9116 if test "$enable_shared" = yes && test "$GCC" = yes; then
9117 case $archive_cmds in
9118 *'~'*)
9119 # FIXME: we may have to deal with multi-command sequences.
9120 ;;
9121 '$CC '*)
9122 # Test whether the compiler implicitly links with -lc since on some
9123 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9124 # to ld, don't add -lc before -lgcc.
9125 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9126 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9127 $RM conftest*
9128 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9129
9130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9131 (eval $ac_compile) 2>&5
9132 ac_status=$?
9133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); } 2>conftest.err; then
9135 soname=conftest
9136 lib=conftest
9137 libobjs=conftest.$ac_objext
9138 deplibs=
9139 wl=$lt_prog_compiler_wl
9140 pic_flag=$lt_prog_compiler_pic
9141 compiler_flags=-v
9142 linker_flags=-v
9143 verstring=
9144 output_objdir=.
9145 libname=conftest
9146 lt_save_allow_undefined_flag=$allow_undefined_flag
9147 allow_undefined_flag=
9148 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9149 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9150 ac_status=$?
9151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); }
9153 then
9154 archive_cmds_need_lc=no
9155 else
9156 archive_cmds_need_lc=yes
9157 fi
9158 allow_undefined_flag=$lt_save_allow_undefined_flag
9159 else
9160 cat conftest.err 1>&5
9161 fi
9162 $RM conftest*
9163 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9164 $as_echo "$archive_cmds_need_lc" >&6; }
9165 ;;
9166 esac
9167 fi
9168 ;;
9169 esac
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9328 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9329
9330 if test "$GCC" = yes; then
9331 case $host_os in
9332 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9333 *) lt_awk_arg="/^libraries:/" ;;
9334 esac
9335 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9336 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9337 # if the path contains ";" then we assume it to be the separator
9338 # otherwise default to the standard path separator (i.e. ":") - it is
9339 # assumed that no part of a normal pathname contains ";" but that should
9340 # okay in the real world where ";" in dirpaths is itself problematic.
9341 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9342 else
9343 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9344 fi
9345 # Ok, now we have the path, separated by spaces, we can step through it
9346 # and add multilib dir if necessary.
9347 lt_tmp_lt_search_path_spec=
9348 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9349 for lt_sys_path in $lt_search_path_spec; do
9350 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9351 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9352 else
9353 test -d "$lt_sys_path" && \
9354 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9355 fi
9356 done
9357 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9358 BEGIN {RS=" "; FS="/|\n";} {
9359 lt_foo="";
9360 lt_count=0;
9361 for (lt_i = NF; lt_i > 0; lt_i--) {
9362 if ($lt_i != "" && $lt_i != ".") {
9363 if ($lt_i == "..") {
9364 lt_count++;
9365 } else {
9366 if (lt_count == 0) {
9367 lt_foo="/" $lt_i lt_foo;
9368 } else {
9369 lt_count--;
9370 }
9371 }
9372 }
9373 }
9374 if (lt_foo != "") { lt_freq[lt_foo]++; }
9375 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9376 }'`
9377 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9378 else
9379 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9380 fi
9381 library_names_spec=
9382 libname_spec='lib$name'
9383 soname_spec=
9384 shrext_cmds=".so"
9385 postinstall_cmds=
9386 postuninstall_cmds=
9387 finish_cmds=
9388 finish_eval=
9389 shlibpath_var=
9390 shlibpath_overrides_runpath=unknown
9391 version_type=none
9392 dynamic_linker="$host_os ld.so"
9393 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9394 need_lib_prefix=unknown
9395 hardcode_into_libs=no
9396
9397 # when you set need_version to no, make sure it does not cause -set_version
9398 # flags to be left without arguments
9399 need_version=unknown
9400
9401 case $host_os in
9402 aix3*)
9403 version_type=linux
9404 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9405 shlibpath_var=LIBPATH
9406
9407 # AIX 3 has no versioning support, so we append a major version to the name.
9408 soname_spec='${libname}${release}${shared_ext}$major'
9409 ;;
9410
9411 aix[4-9]*)
9412 version_type=linux
9413 need_lib_prefix=no
9414 need_version=no
9415 hardcode_into_libs=yes
9416 if test "$host_cpu" = ia64; then
9417 # AIX 5 supports IA64
9418 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9419 shlibpath_var=LD_LIBRARY_PATH
9420 else
9421 # With GCC up to 2.95.x, collect2 would create an import file
9422 # for dependence libraries. The import file would start with
9423 # the line `#! .'. This would cause the generated library to
9424 # depend on `.', always an invalid library. This was fixed in
9425 # development snapshots of GCC prior to 3.0.
9426 case $host_os in
9427 aix4 | aix4.[01] | aix4.[01].*)
9428 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9429 echo ' yes '
9430 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9431 :
9432 else
9433 can_build_shared=no
9434 fi
9435 ;;
9436 esac
9437 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9438 # soname into executable. Probably we can add versioning support to
9439 # collect2, so additional links can be useful in future.
9440 if test "$aix_use_runtimelinking" = yes; then
9441 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9442 # instead of lib<name>.a to let people know that these are not
9443 # typical AIX shared libraries.
9444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9445 else
9446 # We preserve .a as extension for shared libraries through AIX4.2
9447 # and later when we are not doing run time linking.
9448 library_names_spec='${libname}${release}.a $libname.a'
9449 soname_spec='${libname}${release}${shared_ext}$major'
9450 fi
9451 shlibpath_var=LIBPATH
9452 fi
9453 ;;
9454
9455 amigaos*)
9456 case $host_cpu in
9457 powerpc)
9458 # Since July 2007 AmigaOS4 officially supports .so libraries.
9459 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9461 ;;
9462 m68k)
9463 library_names_spec='$libname.ixlibrary $libname.a'
9464 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9465 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'
9466 ;;
9467 esac
9468 ;;
9469
9470 beos*)
9471 library_names_spec='${libname}${shared_ext}'
9472 dynamic_linker="$host_os ld.so"
9473 shlibpath_var=LIBRARY_PATH
9474 ;;
9475
9476 bsdi[45]*)
9477 version_type=linux
9478 need_version=no
9479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9480 soname_spec='${libname}${release}${shared_ext}$major'
9481 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9482 shlibpath_var=LD_LIBRARY_PATH
9483 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9484 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9485 # the default ld.so.conf also contains /usr/contrib/lib and
9486 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9487 # libtool to hard-code these into programs
9488 ;;
9489
9490 cygwin* | mingw* | pw32* | cegcc*)
9491 version_type=windows
9492 shrext_cmds=".dll"
9493 need_version=no
9494 need_lib_prefix=no
9495
9496 case $GCC,$host_os in
9497 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9498 library_names_spec='$libname.dll.a'
9499 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9500 postinstall_cmds='base_file=`basename \${file}`~
9501 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9502 dldir=$destdir/`dirname \$dlpath`~
9503 test -d \$dldir || mkdir -p \$dldir~
9504 $install_prog $dir/$dlname \$dldir/$dlname~
9505 chmod a+x \$dldir/$dlname~
9506 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9507 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9508 fi'
9509 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9510 dlpath=$dir/\$dldll~
9511 $RM \$dlpath'
9512 shlibpath_overrides_runpath=yes
9513
9514 case $host_os in
9515 cygwin*)
9516 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9517 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9518 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9519 ;;
9520 mingw* | cegcc*)
9521 # MinGW DLLs use traditional 'lib' prefix
9522 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9523 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9524 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9525 # It is most probably a Windows format PATH printed by
9526 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9527 # path with ; separators, and with drive letters. We can handle the
9528 # drive letters (cygwin fileutils understands them), so leave them,
9529 # especially as we might pass files found there to a mingw objdump,
9530 # which wouldn't understand a cygwinified path. Ahh.
9531 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9532 else
9533 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9534 fi
9535 ;;
9536 pw32*)
9537 # pw32 DLLs use 'pw' prefix rather than 'lib'
9538 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9539 ;;
9540 esac
9541 ;;
9542
9543 *)
9544 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9545 ;;
9546 esac
9547 dynamic_linker='Win32 ld.exe'
9548 # FIXME: first we should search . and the directory the executable is in
9549 shlibpath_var=PATH
9550 ;;
9551
9552 darwin* | rhapsody*)
9553 dynamic_linker="$host_os dyld"
9554 version_type=darwin
9555 need_lib_prefix=no
9556 need_version=no
9557 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9558 soname_spec='${libname}${release}${major}$shared_ext'
9559 shlibpath_overrides_runpath=yes
9560 shlibpath_var=DYLD_LIBRARY_PATH
9561 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9562
9563 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9564 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9565 ;;
9566
9567 dgux*)
9568 version_type=linux
9569 need_lib_prefix=no
9570 need_version=no
9571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9572 soname_spec='${libname}${release}${shared_ext}$major'
9573 shlibpath_var=LD_LIBRARY_PATH
9574 ;;
9575
9576 freebsd1*)
9577 dynamic_linker=no
9578 ;;
9579
9580 freebsd* | dragonfly*)
9581 # DragonFly does not have aout. When/if they implement a new
9582 # versioning mechanism, adjust this.
9583 if test -x /usr/bin/objformat; then
9584 objformat=`/usr/bin/objformat`
9585 else
9586 case $host_os in
9587 freebsd[123]*) objformat=aout ;;
9588 *) objformat=elf ;;
9589 esac
9590 fi
9591 version_type=freebsd-$objformat
9592 case $version_type in
9593 freebsd-elf*)
9594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9595 need_version=no
9596 need_lib_prefix=no
9597 ;;
9598 freebsd-*)
9599 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9600 need_version=yes
9601 ;;
9602 esac
9603 shlibpath_var=LD_LIBRARY_PATH
9604 case $host_os in
9605 freebsd2*)
9606 shlibpath_overrides_runpath=yes
9607 ;;
9608 freebsd3.[01]* | freebsdelf3.[01]*)
9609 shlibpath_overrides_runpath=yes
9610 hardcode_into_libs=yes
9611 ;;
9612 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9613 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9614 shlibpath_overrides_runpath=no
9615 hardcode_into_libs=yes
9616 ;;
9617 *) # from 4.6 on, and DragonFly
9618 shlibpath_overrides_runpath=yes
9619 hardcode_into_libs=yes
9620 ;;
9621 esac
9622 ;;
9623
9624 gnu*)
9625 version_type=linux
9626 need_lib_prefix=no
9627 need_version=no
9628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9629 soname_spec='${libname}${release}${shared_ext}$major'
9630 shlibpath_var=LD_LIBRARY_PATH
9631 hardcode_into_libs=yes
9632 ;;
9633
9634 hpux9* | hpux10* | hpux11*)
9635 # Give a soname corresponding to the major version so that dld.sl refuses to
9636 # link against other versions.
9637 version_type=sunos
9638 need_lib_prefix=no
9639 need_version=no
9640 case $host_cpu in
9641 ia64*)
9642 shrext_cmds='.so'
9643 hardcode_into_libs=yes
9644 dynamic_linker="$host_os dld.so"
9645 shlibpath_var=LD_LIBRARY_PATH
9646 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9648 soname_spec='${libname}${release}${shared_ext}$major'
9649 if test "X$HPUX_IA64_MODE" = X32; then
9650 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9651 else
9652 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9653 fi
9654 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9655 ;;
9656 hppa*64*)
9657 shrext_cmds='.sl'
9658 hardcode_into_libs=yes
9659 dynamic_linker="$host_os dld.sl"
9660 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9661 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9663 soname_spec='${libname}${release}${shared_ext}$major'
9664 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9665 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9666 ;;
9667 *)
9668 shrext_cmds='.sl'
9669 dynamic_linker="$host_os dld.sl"
9670 shlibpath_var=SHLIB_PATH
9671 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
9675 esac
9676 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9677 postinstall_cmds='chmod 555 $lib'
9678 ;;
9679
9680 interix[3-9]*)
9681 version_type=linux
9682 need_lib_prefix=no
9683 need_version=no
9684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9685 soname_spec='${libname}${release}${shared_ext}$major'
9686 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9687 shlibpath_var=LD_LIBRARY_PATH
9688 shlibpath_overrides_runpath=no
9689 hardcode_into_libs=yes
9690 ;;
9691
9692 irix5* | irix6* | nonstopux*)
9693 case $host_os in
9694 nonstopux*) version_type=nonstopux ;;
9695 *)
9696 if test "$lt_cv_prog_gnu_ld" = yes; then
9697 version_type=linux
9698 else
9699 version_type=irix
9700 fi ;;
9701 esac
9702 need_lib_prefix=no
9703 need_version=no
9704 soname_spec='${libname}${release}${shared_ext}$major'
9705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9706 case $host_os in
9707 irix5* | nonstopux*)
9708 libsuff= shlibsuff=
9709 ;;
9710 *)
9711 case $LD in # libtool.m4 will add one of these switches to LD
9712 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9713 libsuff= shlibsuff= libmagic=32-bit;;
9714 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9715 libsuff=32 shlibsuff=N32 libmagic=N32;;
9716 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9717 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9718 *) libsuff= shlibsuff= libmagic=never-match;;
9719 esac
9720 ;;
9721 esac
9722 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9723 shlibpath_overrides_runpath=no
9724 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9725 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9726 hardcode_into_libs=yes
9727 ;;
9728
9729 # No shared lib support for Linux oldld, aout, or coff.
9730 linux*oldld* | linux*aout* | linux*coff*)
9731 dynamic_linker=no
9732 ;;
9733
9734 # This must be Linux ELF.
9735 linux* | k*bsd*-gnu)
9736 version_type=linux
9737 need_lib_prefix=no
9738 need_version=no
9739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9740 soname_spec='${libname}${release}${shared_ext}$major'
9741 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9742 shlibpath_var=LD_LIBRARY_PATH
9743 shlibpath_overrides_runpath=no
9744 # Some binutils ld are patched to set DT_RUNPATH
9745 save_LDFLAGS=$LDFLAGS
9746 save_libdir=$libdir
9747 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9748 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9749 cat >conftest.$ac_ext <<_ACEOF
9750 /* confdefs.h. */
9751 _ACEOF
9752 cat confdefs.h >>conftest.$ac_ext
9753 cat >>conftest.$ac_ext <<_ACEOF
9754 /* end confdefs.h. */
9755
9756 int
9757 main ()
9758 {
9759
9760 ;
9761 return 0;
9762 }
9763 _ACEOF
9764 rm -f conftest.$ac_objext conftest$ac_exeext
9765 if { (ac_try="$ac_link"
9766 case "(($ac_try" in
9767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9768 *) ac_try_echo=$ac_try;;
9769 esac
9770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9771 $as_echo "$ac_try_echo") >&5
9772 (eval "$ac_link") 2>conftest.er1
9773 ac_status=$?
9774 grep -v '^ *+' conftest.er1 >conftest.err
9775 rm -f conftest.er1
9776 cat conftest.err >&5
9777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); } && {
9779 test -z "$ac_c_werror_flag" ||
9780 test ! -s conftest.err
9781 } && test -s conftest$ac_exeext && {
9782 test "$cross_compiling" = yes ||
9783 $as_test_x conftest$ac_exeext
9784 }; then
9785 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9786 shlibpath_overrides_runpath=yes
9787 fi
9788
9789 else
9790 $as_echo "$as_me: failed program was:" >&5
9791 sed 's/^/| /' conftest.$ac_ext >&5
9792
9793
9794 fi
9795
9796 rm -rf conftest.dSYM
9797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9798 conftest$ac_exeext conftest.$ac_ext
9799 LDFLAGS=$save_LDFLAGS
9800 libdir=$save_libdir
9801
9802 # This implies no fast_install, which is unacceptable.
9803 # Some rework will be needed to allow for fast_install
9804 # before this can be enabled.
9805 hardcode_into_libs=yes
9806
9807 # Add ABI-specific directories to the system library path.
9808 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9809
9810 # Append ld.so.conf contents to the search path
9811 if test -f /etc/ld.so.conf; then
9812 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' ' '`
9813 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9814 fi
9815
9816 # We used to test for /lib/ld.so.1 and disable shared libraries on
9817 # powerpc, because MkLinux only supported shared libraries with the
9818 # GNU dynamic linker. Since this was broken with cross compilers,
9819 # most powerpc-linux boxes support dynamic linking these days and
9820 # people can always --disable-shared, the test was removed, and we
9821 # assume the GNU/Linux dynamic linker is in use.
9822 dynamic_linker='GNU/Linux ld.so'
9823 ;;
9824
9825 netbsd*)
9826 version_type=sunos
9827 need_lib_prefix=no
9828 need_version=no
9829 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9831 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9832 dynamic_linker='NetBSD (a.out) ld.so'
9833 else
9834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9835 soname_spec='${libname}${release}${shared_ext}$major'
9836 dynamic_linker='NetBSD ld.elf_so'
9837 fi
9838 shlibpath_var=LD_LIBRARY_PATH
9839 shlibpath_overrides_runpath=yes
9840 hardcode_into_libs=yes
9841 ;;
9842
9843 newsos6)
9844 version_type=linux
9845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9846 shlibpath_var=LD_LIBRARY_PATH
9847 shlibpath_overrides_runpath=yes
9848 ;;
9849
9850 *nto* | *qnx*)
9851 version_type=qnx
9852 need_lib_prefix=no
9853 need_version=no
9854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9855 soname_spec='${libname}${release}${shared_ext}$major'
9856 shlibpath_var=LD_LIBRARY_PATH
9857 shlibpath_overrides_runpath=no
9858 hardcode_into_libs=yes
9859 dynamic_linker='ldqnx.so'
9860 ;;
9861
9862 openbsd*)
9863 version_type=sunos
9864 sys_lib_dlsearch_path_spec="/usr/lib"
9865 need_lib_prefix=no
9866 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9867 case $host_os in
9868 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9869 *) need_version=no ;;
9870 esac
9871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9872 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9873 shlibpath_var=LD_LIBRARY_PATH
9874 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9875 case $host_os in
9876 openbsd2.[89] | openbsd2.[89].*)
9877 shlibpath_overrides_runpath=no
9878 ;;
9879 *)
9880 shlibpath_overrides_runpath=yes
9881 ;;
9882 esac
9883 else
9884 shlibpath_overrides_runpath=yes
9885 fi
9886 ;;
9887
9888 os2*)
9889 libname_spec='$name'
9890 shrext_cmds=".dll"
9891 need_lib_prefix=no
9892 library_names_spec='$libname${shared_ext} $libname.a'
9893 dynamic_linker='OS/2 ld.exe'
9894 shlibpath_var=LIBPATH
9895 ;;
9896
9897 osf3* | osf4* | osf5*)
9898 version_type=osf
9899 need_lib_prefix=no
9900 need_version=no
9901 soname_spec='${libname}${release}${shared_ext}$major'
9902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9903 shlibpath_var=LD_LIBRARY_PATH
9904 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9905 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9906 ;;
9907
9908 rdos*)
9909 dynamic_linker=no
9910 ;;
9911
9912 solaris*)
9913 version_type=linux
9914 need_lib_prefix=no
9915 need_version=no
9916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9917 soname_spec='${libname}${release}${shared_ext}$major'
9918 shlibpath_var=LD_LIBRARY_PATH
9919 shlibpath_overrides_runpath=yes
9920 hardcode_into_libs=yes
9921 # ldd complains unless libraries are executable
9922 postinstall_cmds='chmod +x $lib'
9923 ;;
9924
9925 sunos4*)
9926 version_type=sunos
9927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9928 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9929 shlibpath_var=LD_LIBRARY_PATH
9930 shlibpath_overrides_runpath=yes
9931 if test "$with_gnu_ld" = yes; then
9932 need_lib_prefix=no
9933 fi
9934 need_version=yes
9935 ;;
9936
9937 sysv4 | sysv4.3*)
9938 version_type=linux
9939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9940 soname_spec='${libname}${release}${shared_ext}$major'
9941 shlibpath_var=LD_LIBRARY_PATH
9942 case $host_vendor in
9943 sni)
9944 shlibpath_overrides_runpath=no
9945 need_lib_prefix=no
9946 runpath_var=LD_RUN_PATH
9947 ;;
9948 siemens)
9949 need_lib_prefix=no
9950 ;;
9951 motorola)
9952 need_lib_prefix=no
9953 need_version=no
9954 shlibpath_overrides_runpath=no
9955 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9956 ;;
9957 esac
9958 ;;
9959
9960 sysv4*MP*)
9961 if test -d /usr/nec ;then
9962 version_type=linux
9963 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9964 soname_spec='$libname${shared_ext}.$major'
9965 shlibpath_var=LD_LIBRARY_PATH
9966 fi
9967 ;;
9968
9969 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9970 version_type=freebsd-elf
9971 need_lib_prefix=no
9972 need_version=no
9973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9974 soname_spec='${libname}${release}${shared_ext}$major'
9975 shlibpath_var=LD_LIBRARY_PATH
9976 shlibpath_overrides_runpath=yes
9977 hardcode_into_libs=yes
9978 if test "$with_gnu_ld" = yes; then
9979 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9980 else
9981 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9982 case $host_os in
9983 sco3.2v5*)
9984 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9985 ;;
9986 esac
9987 fi
9988 sys_lib_dlsearch_path_spec='/usr/lib'
9989 ;;
9990
9991 tpf*)
9992 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9993 version_type=linux
9994 need_lib_prefix=no
9995 need_version=no
9996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9997 shlibpath_var=LD_LIBRARY_PATH
9998 shlibpath_overrides_runpath=no
9999 hardcode_into_libs=yes
10000 ;;
10001
10002 uts4*)
10003 version_type=linux
10004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10005 soname_spec='${libname}${release}${shared_ext}$major'
10006 shlibpath_var=LD_LIBRARY_PATH
10007 ;;
10008
10009 *)
10010 dynamic_linker=no
10011 ;;
10012 esac
10013 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10014 $as_echo "$dynamic_linker" >&6; }
10015 test "$dynamic_linker" = no && can_build_shared=no
10016
10017 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10018 if test "$GCC" = yes; then
10019 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10020 fi
10021
10022 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10023 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10024 fi
10025 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10026 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10027 fi
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10116 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10117 hardcode_action=
10118 if test -n "$hardcode_libdir_flag_spec" ||
10119 test -n "$runpath_var" ||
10120 test "X$hardcode_automatic" = "Xyes" ; then
10121
10122 # We can hardcode non-existent directories.
10123 if test "$hardcode_direct" != no &&
10124 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10125 # have to relink, otherwise we might link with an installed library
10126 # when we should be linking with a yet-to-be-installed one
10127 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10128 test "$hardcode_minus_L" != no; then
10129 # Linking always hardcodes the temporary library directory.
10130 hardcode_action=relink
10131 else
10132 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10133 hardcode_action=immediate
10134 fi
10135 else
10136 # We cannot hardcode anything, or else we can only hardcode existing
10137 # directories.
10138 hardcode_action=unsupported
10139 fi
10140 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10141 $as_echo "$hardcode_action" >&6; }
10142
10143 if test "$hardcode_action" = relink ||
10144 test "$inherit_rpath" = yes; then
10145 # Fast installation is not supported
10146 enable_fast_install=no
10147 elif test "$shlibpath_overrides_runpath" = yes ||
10148 test "$enable_shared" = no; then
10149 # Fast installation is not necessary
10150 enable_fast_install=needless
10151 fi
10152
10153
10154
10155
10156
10157
10158 if test "x$enable_dlopen" != xyes; then
10159 enable_dlopen=unknown
10160 enable_dlopen_self=unknown
10161 enable_dlopen_self_static=unknown
10162 else
10163 lt_cv_dlopen=no
10164 lt_cv_dlopen_libs=
10165
10166 case $host_os in
10167 beos*)
10168 lt_cv_dlopen="load_add_on"
10169 lt_cv_dlopen_libs=
10170 lt_cv_dlopen_self=yes
10171 ;;
10172
10173 mingw* | pw32* | cegcc*)
10174 lt_cv_dlopen="LoadLibrary"
10175 lt_cv_dlopen_libs=
10176 ;;
10177
10178 cygwin*)
10179 lt_cv_dlopen="dlopen"
10180 lt_cv_dlopen_libs=
10181 ;;
10182
10183 darwin*)
10184 # if libdl is installed we need to link against it
10185 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10186 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10187 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10188 $as_echo_n "(cached) " >&6
10189 else
10190 ac_check_lib_save_LIBS=$LIBS
10191 LIBS="-ldl $LIBS"
10192 cat >conftest.$ac_ext <<_ACEOF
10193 /* confdefs.h. */
10194 _ACEOF
10195 cat confdefs.h >>conftest.$ac_ext
10196 cat >>conftest.$ac_ext <<_ACEOF
10197 /* end confdefs.h. */
10198
10199 /* Override any GCC internal prototype to avoid an error.
10200 Use char because int might match the return type of a GCC
10201 builtin and then its argument prototype would still apply. */
10202 #ifdef __cplusplus
10203 extern "C"
10204 #endif
10205 char dlopen ();
10206 int
10207 main ()
10208 {
10209 return dlopen ();
10210 ;
10211 return 0;
10212 }
10213 _ACEOF
10214 rm -f conftest.$ac_objext conftest$ac_exeext
10215 if { (ac_try="$ac_link"
10216 case "(($ac_try" in
10217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218 *) ac_try_echo=$ac_try;;
10219 esac
10220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10221 $as_echo "$ac_try_echo") >&5
10222 (eval "$ac_link") 2>conftest.er1
10223 ac_status=$?
10224 grep -v '^ *+' conftest.er1 >conftest.err
10225 rm -f conftest.er1
10226 cat conftest.err >&5
10227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 (exit $ac_status); } && {
10229 test -z "$ac_c_werror_flag" ||
10230 test ! -s conftest.err
10231 } && test -s conftest$ac_exeext && {
10232 test "$cross_compiling" = yes ||
10233 $as_test_x conftest$ac_exeext
10234 }; then
10235 ac_cv_lib_dl_dlopen=yes
10236 else
10237 $as_echo "$as_me: failed program was:" >&5
10238 sed 's/^/| /' conftest.$ac_ext >&5
10239
10240 ac_cv_lib_dl_dlopen=no
10241 fi
10242
10243 rm -rf conftest.dSYM
10244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10245 conftest$ac_exeext conftest.$ac_ext
10246 LIBS=$ac_check_lib_save_LIBS
10247 fi
10248 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10249 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10250 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10251 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10252 else
10253
10254 lt_cv_dlopen="dyld"
10255 lt_cv_dlopen_libs=
10256 lt_cv_dlopen_self=yes
10257
10258 fi
10259
10260 ;;
10261
10262 *)
10263 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10264 $as_echo_n "checking for shl_load... " >&6; }
10265 if test "${ac_cv_func_shl_load+set}" = set; then
10266 $as_echo_n "(cached) " >&6
10267 else
10268 cat >conftest.$ac_ext <<_ACEOF
10269 /* confdefs.h. */
10270 _ACEOF
10271 cat confdefs.h >>conftest.$ac_ext
10272 cat >>conftest.$ac_ext <<_ACEOF
10273 /* end confdefs.h. */
10274 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10276 #define shl_load innocuous_shl_load
10277
10278 /* System header to define __stub macros and hopefully few prototypes,
10279 which can conflict with char shl_load (); below.
10280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10281 <limits.h> exists even on freestanding compilers. */
10282
10283 #ifdef __STDC__
10284 # include <limits.h>
10285 #else
10286 # include <assert.h>
10287 #endif
10288
10289 #undef shl_load
10290
10291 /* Override any GCC internal prototype to avoid an error.
10292 Use char because int might match the return type of a GCC
10293 builtin and then its argument prototype would still apply. */
10294 #ifdef __cplusplus
10295 extern "C"
10296 #endif
10297 char shl_load ();
10298 /* The GNU C library defines this for functions which it implements
10299 to always fail with ENOSYS. Some functions are actually named
10300 something starting with __ and the normal name is an alias. */
10301 #if defined __stub_shl_load || defined __stub___shl_load
10302 choke me
10303 #endif
10304
10305 int
10306 main ()
10307 {
10308 return shl_load ();
10309 ;
10310 return 0;
10311 }
10312 _ACEOF
10313 rm -f conftest.$ac_objext conftest$ac_exeext
10314 if { (ac_try="$ac_link"
10315 case "(($ac_try" in
10316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10317 *) ac_try_echo=$ac_try;;
10318 esac
10319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10320 $as_echo "$ac_try_echo") >&5
10321 (eval "$ac_link") 2>conftest.er1
10322 ac_status=$?
10323 grep -v '^ *+' conftest.er1 >conftest.err
10324 rm -f conftest.er1
10325 cat conftest.err >&5
10326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); } && {
10328 test -z "$ac_c_werror_flag" ||
10329 test ! -s conftest.err
10330 } && test -s conftest$ac_exeext && {
10331 test "$cross_compiling" = yes ||
10332 $as_test_x conftest$ac_exeext
10333 }; then
10334 ac_cv_func_shl_load=yes
10335 else
10336 $as_echo "$as_me: failed program was:" >&5
10337 sed 's/^/| /' conftest.$ac_ext >&5
10338
10339 ac_cv_func_shl_load=no
10340 fi
10341
10342 rm -rf conftest.dSYM
10343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10344 conftest$ac_exeext conftest.$ac_ext
10345 fi
10346 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10347 $as_echo "$ac_cv_func_shl_load" >&6; }
10348 if test "x$ac_cv_func_shl_load" = x""yes; then
10349 lt_cv_dlopen="shl_load"
10350 else
10351 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10352 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10353 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10354 $as_echo_n "(cached) " >&6
10355 else
10356 ac_check_lib_save_LIBS=$LIBS
10357 LIBS="-ldld $LIBS"
10358 cat >conftest.$ac_ext <<_ACEOF
10359 /* confdefs.h. */
10360 _ACEOF
10361 cat confdefs.h >>conftest.$ac_ext
10362 cat >>conftest.$ac_ext <<_ACEOF
10363 /* end confdefs.h. */
10364
10365 /* Override any GCC internal prototype to avoid an error.
10366 Use char because int might match the return type of a GCC
10367 builtin and then its argument prototype would still apply. */
10368 #ifdef __cplusplus
10369 extern "C"
10370 #endif
10371 char shl_load ();
10372 int
10373 main ()
10374 {
10375 return shl_load ();
10376 ;
10377 return 0;
10378 }
10379 _ACEOF
10380 rm -f conftest.$ac_objext conftest$ac_exeext
10381 if { (ac_try="$ac_link"
10382 case "(($ac_try" in
10383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10384 *) ac_try_echo=$ac_try;;
10385 esac
10386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10387 $as_echo "$ac_try_echo") >&5
10388 (eval "$ac_link") 2>conftest.er1
10389 ac_status=$?
10390 grep -v '^ *+' conftest.er1 >conftest.err
10391 rm -f conftest.er1
10392 cat conftest.err >&5
10393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); } && {
10395 test -z "$ac_c_werror_flag" ||
10396 test ! -s conftest.err
10397 } && test -s conftest$ac_exeext && {
10398 test "$cross_compiling" = yes ||
10399 $as_test_x conftest$ac_exeext
10400 }; then
10401 ac_cv_lib_dld_shl_load=yes
10402 else
10403 $as_echo "$as_me: failed program was:" >&5
10404 sed 's/^/| /' conftest.$ac_ext >&5
10405
10406 ac_cv_lib_dld_shl_load=no
10407 fi
10408
10409 rm -rf conftest.dSYM
10410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10411 conftest$ac_exeext conftest.$ac_ext
10412 LIBS=$ac_check_lib_save_LIBS
10413 fi
10414 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10415 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10416 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10417 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10418 else
10419 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10420 $as_echo_n "checking for dlopen... " >&6; }
10421 if test "${ac_cv_func_dlopen+set}" = set; then
10422 $as_echo_n "(cached) " >&6
10423 else
10424 cat >conftest.$ac_ext <<_ACEOF
10425 /* confdefs.h. */
10426 _ACEOF
10427 cat confdefs.h >>conftest.$ac_ext
10428 cat >>conftest.$ac_ext <<_ACEOF
10429 /* end confdefs.h. */
10430 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10432 #define dlopen innocuous_dlopen
10433
10434 /* System header to define __stub macros and hopefully few prototypes,
10435 which can conflict with char dlopen (); below.
10436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10437 <limits.h> exists even on freestanding compilers. */
10438
10439 #ifdef __STDC__
10440 # include <limits.h>
10441 #else
10442 # include <assert.h>
10443 #endif
10444
10445 #undef dlopen
10446
10447 /* Override any GCC internal prototype to avoid an error.
10448 Use char because int might match the return type of a GCC
10449 builtin and then its argument prototype would still apply. */
10450 #ifdef __cplusplus
10451 extern "C"
10452 #endif
10453 char dlopen ();
10454 /* The GNU C library defines this for functions which it implements
10455 to always fail with ENOSYS. Some functions are actually named
10456 something starting with __ and the normal name is an alias. */
10457 #if defined __stub_dlopen || defined __stub___dlopen
10458 choke me
10459 #endif
10460
10461 int
10462 main ()
10463 {
10464 return dlopen ();
10465 ;
10466 return 0;
10467 }
10468 _ACEOF
10469 rm -f conftest.$ac_objext conftest$ac_exeext
10470 if { (ac_try="$ac_link"
10471 case "(($ac_try" in
10472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10473 *) ac_try_echo=$ac_try;;
10474 esac
10475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10476 $as_echo "$ac_try_echo") >&5
10477 (eval "$ac_link") 2>conftest.er1
10478 ac_status=$?
10479 grep -v '^ *+' conftest.er1 >conftest.err
10480 rm -f conftest.er1
10481 cat conftest.err >&5
10482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); } && {
10484 test -z "$ac_c_werror_flag" ||
10485 test ! -s conftest.err
10486 } && test -s conftest$ac_exeext && {
10487 test "$cross_compiling" = yes ||
10488 $as_test_x conftest$ac_exeext
10489 }; then
10490 ac_cv_func_dlopen=yes
10491 else
10492 $as_echo "$as_me: failed program was:" >&5
10493 sed 's/^/| /' conftest.$ac_ext >&5
10494
10495 ac_cv_func_dlopen=no
10496 fi
10497
10498 rm -rf conftest.dSYM
10499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10500 conftest$ac_exeext conftest.$ac_ext
10501 fi
10502 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10503 $as_echo "$ac_cv_func_dlopen" >&6; }
10504 if test "x$ac_cv_func_dlopen" = x""yes; then
10505 lt_cv_dlopen="dlopen"
10506 else
10507 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10508 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10509 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10510 $as_echo_n "(cached) " >&6
10511 else
10512 ac_check_lib_save_LIBS=$LIBS
10513 LIBS="-ldl $LIBS"
10514 cat >conftest.$ac_ext <<_ACEOF
10515 /* confdefs.h. */
10516 _ACEOF
10517 cat confdefs.h >>conftest.$ac_ext
10518 cat >>conftest.$ac_ext <<_ACEOF
10519 /* end confdefs.h. */
10520
10521 /* Override any GCC internal prototype to avoid an error.
10522 Use char because int might match the return type of a GCC
10523 builtin and then its argument prototype would still apply. */
10524 #ifdef __cplusplus
10525 extern "C"
10526 #endif
10527 char dlopen ();
10528 int
10529 main ()
10530 {
10531 return dlopen ();
10532 ;
10533 return 0;
10534 }
10535 _ACEOF
10536 rm -f conftest.$ac_objext conftest$ac_exeext
10537 if { (ac_try="$ac_link"
10538 case "(($ac_try" in
10539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540 *) ac_try_echo=$ac_try;;
10541 esac
10542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10543 $as_echo "$ac_try_echo") >&5
10544 (eval "$ac_link") 2>conftest.er1
10545 ac_status=$?
10546 grep -v '^ *+' conftest.er1 >conftest.err
10547 rm -f conftest.er1
10548 cat conftest.err >&5
10549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); } && {
10551 test -z "$ac_c_werror_flag" ||
10552 test ! -s conftest.err
10553 } && test -s conftest$ac_exeext && {
10554 test "$cross_compiling" = yes ||
10555 $as_test_x conftest$ac_exeext
10556 }; then
10557 ac_cv_lib_dl_dlopen=yes
10558 else
10559 $as_echo "$as_me: failed program was:" >&5
10560 sed 's/^/| /' conftest.$ac_ext >&5
10561
10562 ac_cv_lib_dl_dlopen=no
10563 fi
10564
10565 rm -rf conftest.dSYM
10566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10567 conftest$ac_exeext conftest.$ac_ext
10568 LIBS=$ac_check_lib_save_LIBS
10569 fi
10570 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10571 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10572 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10573 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10574 else
10575 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10576 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10577 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10578 $as_echo_n "(cached) " >&6
10579 else
10580 ac_check_lib_save_LIBS=$LIBS
10581 LIBS="-lsvld $LIBS"
10582 cat >conftest.$ac_ext <<_ACEOF
10583 /* confdefs.h. */
10584 _ACEOF
10585 cat confdefs.h >>conftest.$ac_ext
10586 cat >>conftest.$ac_ext <<_ACEOF
10587 /* end confdefs.h. */
10588
10589 /* Override any GCC internal prototype to avoid an error.
10590 Use char because int might match the return type of a GCC
10591 builtin and then its argument prototype would still apply. */
10592 #ifdef __cplusplus
10593 extern "C"
10594 #endif
10595 char dlopen ();
10596 int
10597 main ()
10598 {
10599 return dlopen ();
10600 ;
10601 return 0;
10602 }
10603 _ACEOF
10604 rm -f conftest.$ac_objext conftest$ac_exeext
10605 if { (ac_try="$ac_link"
10606 case "(($ac_try" in
10607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10608 *) ac_try_echo=$ac_try;;
10609 esac
10610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10611 $as_echo "$ac_try_echo") >&5
10612 (eval "$ac_link") 2>conftest.er1
10613 ac_status=$?
10614 grep -v '^ *+' conftest.er1 >conftest.err
10615 rm -f conftest.er1
10616 cat conftest.err >&5
10617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); } && {
10619 test -z "$ac_c_werror_flag" ||
10620 test ! -s conftest.err
10621 } && test -s conftest$ac_exeext && {
10622 test "$cross_compiling" = yes ||
10623 $as_test_x conftest$ac_exeext
10624 }; then
10625 ac_cv_lib_svld_dlopen=yes
10626 else
10627 $as_echo "$as_me: failed program was:" >&5
10628 sed 's/^/| /' conftest.$ac_ext >&5
10629
10630 ac_cv_lib_svld_dlopen=no
10631 fi
10632
10633 rm -rf conftest.dSYM
10634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10635 conftest$ac_exeext conftest.$ac_ext
10636 LIBS=$ac_check_lib_save_LIBS
10637 fi
10638 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10639 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10640 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10641 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10642 else
10643 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10644 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10645 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10646 $as_echo_n "(cached) " >&6
10647 else
10648 ac_check_lib_save_LIBS=$LIBS
10649 LIBS="-ldld $LIBS"
10650 cat >conftest.$ac_ext <<_ACEOF
10651 /* confdefs.h. */
10652 _ACEOF
10653 cat confdefs.h >>conftest.$ac_ext
10654 cat >>conftest.$ac_ext <<_ACEOF
10655 /* end confdefs.h. */
10656
10657 /* Override any GCC internal prototype to avoid an error.
10658 Use char because int might match the return type of a GCC
10659 builtin and then its argument prototype would still apply. */
10660 #ifdef __cplusplus
10661 extern "C"
10662 #endif
10663 char dld_link ();
10664 int
10665 main ()
10666 {
10667 return dld_link ();
10668 ;
10669 return 0;
10670 }
10671 _ACEOF
10672 rm -f conftest.$ac_objext conftest$ac_exeext
10673 if { (ac_try="$ac_link"
10674 case "(($ac_try" in
10675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10676 *) ac_try_echo=$ac_try;;
10677 esac
10678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10679 $as_echo "$ac_try_echo") >&5
10680 (eval "$ac_link") 2>conftest.er1
10681 ac_status=$?
10682 grep -v '^ *+' conftest.er1 >conftest.err
10683 rm -f conftest.er1
10684 cat conftest.err >&5
10685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); } && {
10687 test -z "$ac_c_werror_flag" ||
10688 test ! -s conftest.err
10689 } && test -s conftest$ac_exeext && {
10690 test "$cross_compiling" = yes ||
10691 $as_test_x conftest$ac_exeext
10692 }; then
10693 ac_cv_lib_dld_dld_link=yes
10694 else
10695 $as_echo "$as_me: failed program was:" >&5
10696 sed 's/^/| /' conftest.$ac_ext >&5
10697
10698 ac_cv_lib_dld_dld_link=no
10699 fi
10700
10701 rm -rf conftest.dSYM
10702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10703 conftest$ac_exeext conftest.$ac_ext
10704 LIBS=$ac_check_lib_save_LIBS
10705 fi
10706 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10707 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10708 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10709 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10710 fi
10711
10712
10713 fi
10714
10715
10716 fi
10717
10718
10719 fi
10720
10721
10722 fi
10723
10724
10725 fi
10726
10727 ;;
10728 esac
10729
10730 if test "x$lt_cv_dlopen" != xno; then
10731 enable_dlopen=yes
10732 else
10733 enable_dlopen=no
10734 fi
10735
10736 case $lt_cv_dlopen in
10737 dlopen)
10738 save_CPPFLAGS="$CPPFLAGS"
10739 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10740
10741 save_LDFLAGS="$LDFLAGS"
10742 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10743
10744 save_LIBS="$LIBS"
10745 LIBS="$lt_cv_dlopen_libs $LIBS"
10746
10747 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10748 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10749 if test "${lt_cv_dlopen_self+set}" = set; then
10750 $as_echo_n "(cached) " >&6
10751 else
10752 if test "$cross_compiling" = yes; then :
10753 lt_cv_dlopen_self=cross
10754 else
10755 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10756 lt_status=$lt_dlunknown
10757 cat > conftest.$ac_ext <<_LT_EOF
10758 #line 10758 "configure"
10759 #include "confdefs.h"
10760
10761 #if HAVE_DLFCN_H
10762 #include <dlfcn.h>
10763 #endif
10764
10765 #include <stdio.h>
10766
10767 #ifdef RTLD_GLOBAL
10768 # define LT_DLGLOBAL RTLD_GLOBAL
10769 #else
10770 # ifdef DL_GLOBAL
10771 # define LT_DLGLOBAL DL_GLOBAL
10772 # else
10773 # define LT_DLGLOBAL 0
10774 # endif
10775 #endif
10776
10777 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10778 find out it does not work in some platform. */
10779 #ifndef LT_DLLAZY_OR_NOW
10780 # ifdef RTLD_LAZY
10781 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10782 # else
10783 # ifdef DL_LAZY
10784 # define LT_DLLAZY_OR_NOW DL_LAZY
10785 # else
10786 # ifdef RTLD_NOW
10787 # define LT_DLLAZY_OR_NOW RTLD_NOW
10788 # else
10789 # ifdef DL_NOW
10790 # define LT_DLLAZY_OR_NOW DL_NOW
10791 # else
10792 # define LT_DLLAZY_OR_NOW 0
10793 # endif
10794 # endif
10795 # endif
10796 # endif
10797 #endif
10798
10799 void fnord() { int i=42;}
10800 int main ()
10801 {
10802 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10803 int status = $lt_dlunknown;
10804
10805 if (self)
10806 {
10807 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10808 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10809 /* dlclose (self); */
10810 }
10811 else
10812 puts (dlerror ());
10813
10814 return status;
10815 }
10816 _LT_EOF
10817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10818 (eval $ac_link) 2>&5
10819 ac_status=$?
10820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10822 (./conftest; exit; ) >&5 2>/dev/null
10823 lt_status=$?
10824 case x$lt_status in
10825 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10826 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10827 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10828 esac
10829 else :
10830 # compilation failed
10831 lt_cv_dlopen_self=no
10832 fi
10833 fi
10834 rm -fr conftest*
10835
10836
10837 fi
10838 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10839 $as_echo "$lt_cv_dlopen_self" >&6; }
10840
10841 if test "x$lt_cv_dlopen_self" = xyes; then
10842 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10843 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10844 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10845 if test "${lt_cv_dlopen_self_static+set}" = set; then
10846 $as_echo_n "(cached) " >&6
10847 else
10848 if test "$cross_compiling" = yes; then :
10849 lt_cv_dlopen_self_static=cross
10850 else
10851 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10852 lt_status=$lt_dlunknown
10853 cat > conftest.$ac_ext <<_LT_EOF
10854 #line 10854 "configure"
10855 #include "confdefs.h"
10856
10857 #if HAVE_DLFCN_H
10858 #include <dlfcn.h>
10859 #endif
10860
10861 #include <stdio.h>
10862
10863 #ifdef RTLD_GLOBAL
10864 # define LT_DLGLOBAL RTLD_GLOBAL
10865 #else
10866 # ifdef DL_GLOBAL
10867 # define LT_DLGLOBAL DL_GLOBAL
10868 # else
10869 # define LT_DLGLOBAL 0
10870 # endif
10871 #endif
10872
10873 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10874 find out it does not work in some platform. */
10875 #ifndef LT_DLLAZY_OR_NOW
10876 # ifdef RTLD_LAZY
10877 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10878 # else
10879 # ifdef DL_LAZY
10880 # define LT_DLLAZY_OR_NOW DL_LAZY
10881 # else
10882 # ifdef RTLD_NOW
10883 # define LT_DLLAZY_OR_NOW RTLD_NOW
10884 # else
10885 # ifdef DL_NOW
10886 # define LT_DLLAZY_OR_NOW DL_NOW
10887 # else
10888 # define LT_DLLAZY_OR_NOW 0
10889 # endif
10890 # endif
10891 # endif
10892 # endif
10893 #endif
10894
10895 void fnord() { int i=42;}
10896 int main ()
10897 {
10898 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10899 int status = $lt_dlunknown;
10900
10901 if (self)
10902 {
10903 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10904 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10905 /* dlclose (self); */
10906 }
10907 else
10908 puts (dlerror ());
10909
10910 return status;
10911 }
10912 _LT_EOF
10913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10914 (eval $ac_link) 2>&5
10915 ac_status=$?
10916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10918 (./conftest; exit; ) >&5 2>/dev/null
10919 lt_status=$?
10920 case x$lt_status in
10921 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10922 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10923 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10924 esac
10925 else :
10926 # compilation failed
10927 lt_cv_dlopen_self_static=no
10928 fi
10929 fi
10930 rm -fr conftest*
10931
10932
10933 fi
10934 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10935 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10936 fi
10937
10938 CPPFLAGS="$save_CPPFLAGS"
10939 LDFLAGS="$save_LDFLAGS"
10940 LIBS="$save_LIBS"
10941 ;;
10942 esac
10943
10944 case $lt_cv_dlopen_self in
10945 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10946 *) enable_dlopen_self=unknown ;;
10947 esac
10948
10949 case $lt_cv_dlopen_self_static in
10950 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10951 *) enable_dlopen_self_static=unknown ;;
10952 esac
10953 fi
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971 striplib=
10972 old_striplib=
10973 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10974 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10975 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10976 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10977 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10978 { $as_echo "$as_me:$LINENO: result: yes" >&5
10979 $as_echo "yes" >&6; }
10980 else
10981 # FIXME - insert some real tests, host_os isn't really good enough
10982 case $host_os in
10983 darwin*)
10984 if test -n "$STRIP" ; then
10985 striplib="$STRIP -x"
10986 old_striplib="$STRIP -S"
10987 { $as_echo "$as_me:$LINENO: result: yes" >&5
10988 $as_echo "yes" >&6; }
10989 else
10990 { $as_echo "$as_me:$LINENO: result: no" >&5
10991 $as_echo "no" >&6; }
10992 fi
10993 ;;
10994 *)
10995 { $as_echo "$as_me:$LINENO: result: no" >&5
10996 $as_echo "no" >&6; }
10997 ;;
10998 esac
10999 fi
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012 # Report which library types will actually be built
11013 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11014 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11015 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11016 $as_echo "$can_build_shared" >&6; }
11017
11018 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11019 $as_echo_n "checking whether to build shared libraries... " >&6; }
11020 test "$can_build_shared" = "no" && enable_shared=no
11021
11022 # On AIX, shared libraries and static libraries use the same namespace, and
11023 # are all built from PIC.
11024 case $host_os in
11025 aix3*)
11026 test "$enable_shared" = yes && enable_static=no
11027 if test -n "$RANLIB"; then
11028 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11029 postinstall_cmds='$RANLIB $lib'
11030 fi
11031 ;;
11032
11033 aix[4-9]*)
11034 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11035 test "$enable_shared" = yes && enable_static=no
11036 fi
11037 ;;
11038 esac
11039 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11040 $as_echo "$enable_shared" >&6; }
11041
11042 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11043 $as_echo_n "checking whether to build static libraries... " >&6; }
11044 # Make sure either enable_shared or enable_static is yes.
11045 test "$enable_shared" = yes || enable_static=yes
11046 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11047 $as_echo "$enable_static" >&6; }
11048
11049
11050
11051
11052 fi
11053 ac_ext=c
11054 ac_cpp='$CPP $CPPFLAGS'
11055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11058
11059 CC="$lt_save_CC"
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073 ac_config_commands="$ac_config_commands libtool"
11074
11075
11076
11077
11078 # Only expand once:
11079
11080
11081 ac_ext=c
11082 ac_cpp='$CPP $CPPFLAGS'
11083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11086 if test -n "$ac_tool_prefix"; then
11087 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11088 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11089 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11090 $as_echo_n "checking for $ac_word... " >&6; }
11091 if test "${ac_cv_prog_CC+set}" = set; then
11092 $as_echo_n "(cached) " >&6
11093 else
11094 if test -n "$CC"; then
11095 ac_cv_prog_CC="$CC" # Let the user override the test.
11096 else
11097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11098 for as_dir in $PATH
11099 do
11100 IFS=$as_save_IFS
11101 test -z "$as_dir" && as_dir=.
11102 for ac_exec_ext in '' $ac_executable_extensions; do
11103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11104 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11105 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11106 break 2
11107 fi
11108 done
11109 done
11110 IFS=$as_save_IFS
11111
11112 fi
11113 fi
11114 CC=$ac_cv_prog_CC
11115 if test -n "$CC"; then
11116 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11117 $as_echo "$CC" >&6; }
11118 else
11119 { $as_echo "$as_me:$LINENO: result: no" >&5
11120 $as_echo "no" >&6; }
11121 fi
11122
11123
11124 fi
11125 if test -z "$ac_cv_prog_CC"; then
11126 ac_ct_CC=$CC
11127 # Extract the first word of "gcc", so it can be a program name with args.
11128 set dummy gcc; ac_word=$2
11129 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11130 $as_echo_n "checking for $ac_word... " >&6; }
11131 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11132 $as_echo_n "(cached) " >&6
11133 else
11134 if test -n "$ac_ct_CC"; then
11135 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11136 else
11137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11138 for as_dir in $PATH
11139 do
11140 IFS=$as_save_IFS
11141 test -z "$as_dir" && as_dir=.
11142 for ac_exec_ext in '' $ac_executable_extensions; do
11143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11144 ac_cv_prog_ac_ct_CC="gcc"
11145 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11146 break 2
11147 fi
11148 done
11149 done
11150 IFS=$as_save_IFS
11151
11152 fi
11153 fi
11154 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11155 if test -n "$ac_ct_CC"; then
11156 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11157 $as_echo "$ac_ct_CC" >&6; }
11158 else
11159 { $as_echo "$as_me:$LINENO: result: no" >&5
11160 $as_echo "no" >&6; }
11161 fi
11162
11163 if test "x$ac_ct_CC" = x; then
11164 CC=""
11165 else
11166 case $cross_compiling:$ac_tool_warned in
11167 yes:)
11168 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11170 ac_tool_warned=yes ;;
11171 esac
11172 CC=$ac_ct_CC
11173 fi
11174 else
11175 CC="$ac_cv_prog_CC"
11176 fi
11177
11178 if test -z "$CC"; then
11179 if test -n "$ac_tool_prefix"; then
11180 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11181 set dummy ${ac_tool_prefix}cc; ac_word=$2
11182 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11183 $as_echo_n "checking for $ac_word... " >&6; }
11184 if test "${ac_cv_prog_CC+set}" = set; then
11185 $as_echo_n "(cached) " >&6
11186 else
11187 if test -n "$CC"; then
11188 ac_cv_prog_CC="$CC" # Let the user override the test.
11189 else
11190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11191 for as_dir in $PATH
11192 do
11193 IFS=$as_save_IFS
11194 test -z "$as_dir" && as_dir=.
11195 for ac_exec_ext in '' $ac_executable_extensions; do
11196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11197 ac_cv_prog_CC="${ac_tool_prefix}cc"
11198 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11199 break 2
11200 fi
11201 done
11202 done
11203 IFS=$as_save_IFS
11204
11205 fi
11206 fi
11207 CC=$ac_cv_prog_CC
11208 if test -n "$CC"; then
11209 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11210 $as_echo "$CC" >&6; }
11211 else
11212 { $as_echo "$as_me:$LINENO: result: no" >&5
11213 $as_echo "no" >&6; }
11214 fi
11215
11216
11217 fi
11218 fi
11219 if test -z "$CC"; then
11220 # Extract the first word of "cc", so it can be a program name with args.
11221 set dummy cc; ac_word=$2
11222 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11223 $as_echo_n "checking for $ac_word... " >&6; }
11224 if test "${ac_cv_prog_CC+set}" = set; then
11225 $as_echo_n "(cached) " >&6
11226 else
11227 if test -n "$CC"; then
11228 ac_cv_prog_CC="$CC" # Let the user override the test.
11229 else
11230 ac_prog_rejected=no
11231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11232 for as_dir in $PATH
11233 do
11234 IFS=$as_save_IFS
11235 test -z "$as_dir" && as_dir=.
11236 for ac_exec_ext in '' $ac_executable_extensions; do
11237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11238 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11239 ac_prog_rejected=yes
11240 continue
11241 fi
11242 ac_cv_prog_CC="cc"
11243 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11244 break 2
11245 fi
11246 done
11247 done
11248 IFS=$as_save_IFS
11249
11250 if test $ac_prog_rejected = yes; then
11251 # We found a bogon in the path, so make sure we never use it.
11252 set dummy $ac_cv_prog_CC
11253 shift
11254 if test $# != 0; then
11255 # We chose a different compiler from the bogus one.
11256 # However, it has the same basename, so the bogon will be chosen
11257 # first if we set CC to just the basename; use the full file name.
11258 shift
11259 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11260 fi
11261 fi
11262 fi
11263 fi
11264 CC=$ac_cv_prog_CC
11265 if test -n "$CC"; then
11266 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11267 $as_echo "$CC" >&6; }
11268 else
11269 { $as_echo "$as_me:$LINENO: result: no" >&5
11270 $as_echo "no" >&6; }
11271 fi
11272
11273
11274 fi
11275 if test -z "$CC"; then
11276 if test -n "$ac_tool_prefix"; then
11277 for ac_prog in cl.exe
11278 do
11279 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11280 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11281 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11282 $as_echo_n "checking for $ac_word... " >&6; }
11283 if test "${ac_cv_prog_CC+set}" = set; then
11284 $as_echo_n "(cached) " >&6
11285 else
11286 if test -n "$CC"; then
11287 ac_cv_prog_CC="$CC" # Let the user override the test.
11288 else
11289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11290 for as_dir in $PATH
11291 do
11292 IFS=$as_save_IFS
11293 test -z "$as_dir" && as_dir=.
11294 for ac_exec_ext in '' $ac_executable_extensions; do
11295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11296 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11297 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11298 break 2
11299 fi
11300 done
11301 done
11302 IFS=$as_save_IFS
11303
11304 fi
11305 fi
11306 CC=$ac_cv_prog_CC
11307 if test -n "$CC"; then
11308 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11309 $as_echo "$CC" >&6; }
11310 else
11311 { $as_echo "$as_me:$LINENO: result: no" >&5
11312 $as_echo "no" >&6; }
11313 fi
11314
11315
11316 test -n "$CC" && break
11317 done
11318 fi
11319 if test -z "$CC"; then
11320 ac_ct_CC=$CC
11321 for ac_prog in cl.exe
11322 do
11323 # Extract the first word of "$ac_prog", so it can be a program name with args.
11324 set dummy $ac_prog; ac_word=$2
11325 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11326 $as_echo_n "checking for $ac_word... " >&6; }
11327 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11328 $as_echo_n "(cached) " >&6
11329 else
11330 if test -n "$ac_ct_CC"; then
11331 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11332 else
11333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11334 for as_dir in $PATH
11335 do
11336 IFS=$as_save_IFS
11337 test -z "$as_dir" && as_dir=.
11338 for ac_exec_ext in '' $ac_executable_extensions; do
11339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11340 ac_cv_prog_ac_ct_CC="$ac_prog"
11341 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11342 break 2
11343 fi
11344 done
11345 done
11346 IFS=$as_save_IFS
11347
11348 fi
11349 fi
11350 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11351 if test -n "$ac_ct_CC"; then
11352 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11353 $as_echo "$ac_ct_CC" >&6; }
11354 else
11355 { $as_echo "$as_me:$LINENO: result: no" >&5
11356 $as_echo "no" >&6; }
11357 fi
11358
11359
11360 test -n "$ac_ct_CC" && break
11361 done
11362
11363 if test "x$ac_ct_CC" = x; then
11364 CC=""
11365 else
11366 case $cross_compiling:$ac_tool_warned in
11367 yes:)
11368 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11370 ac_tool_warned=yes ;;
11371 esac
11372 CC=$ac_ct_CC
11373 fi
11374 fi
11375
11376 fi
11377
11378
11379 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11381 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11382 See \`config.log' for more details." >&5
11383 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
11384 See \`config.log' for more details." >&2;}
11385 { (exit 1); exit 1; }; }; }
11386
11387 # Provide some information about the compiler.
11388 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
11389 set X $ac_compile
11390 ac_compiler=$2
11391 { (ac_try="$ac_compiler --version >&5"
11392 case "(($ac_try" in
11393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11394 *) ac_try_echo=$ac_try;;
11395 esac
11396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11397 $as_echo "$ac_try_echo") >&5
11398 (eval "$ac_compiler --version >&5") 2>&5
11399 ac_status=$?
11400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); }
11402 { (ac_try="$ac_compiler -v >&5"
11403 case "(($ac_try" in
11404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11405 *) ac_try_echo=$ac_try;;
11406 esac
11407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11408 $as_echo "$ac_try_echo") >&5
11409 (eval "$ac_compiler -v >&5") 2>&5
11410 ac_status=$?
11411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); }
11413 { (ac_try="$ac_compiler -V >&5"
11414 case "(($ac_try" in
11415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11416 *) ac_try_echo=$ac_try;;
11417 esac
11418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11419 $as_echo "$ac_try_echo") >&5
11420 (eval "$ac_compiler -V >&5") 2>&5
11421 ac_status=$?
11422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); }
11424
11425 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11426 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11427 if test "${ac_cv_c_compiler_gnu+set}" = set; then
11428 $as_echo_n "(cached) " >&6
11429 else
11430 cat >conftest.$ac_ext <<_ACEOF
11431 /* confdefs.h. */
11432 _ACEOF
11433 cat confdefs.h >>conftest.$ac_ext
11434 cat >>conftest.$ac_ext <<_ACEOF
11435 /* end confdefs.h. */
11436
11437 int
11438 main ()
11439 {
11440 #ifndef __GNUC__
11441 choke me
11442 #endif
11443
11444 ;
11445 return 0;
11446 }
11447 _ACEOF
11448 rm -f conftest.$ac_objext
11449 if { (ac_try="$ac_compile"
11450 case "(($ac_try" in
11451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11452 *) ac_try_echo=$ac_try;;
11453 esac
11454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11455 $as_echo "$ac_try_echo") >&5
11456 (eval "$ac_compile") 2>conftest.er1
11457 ac_status=$?
11458 grep -v '^ *+' conftest.er1 >conftest.err
11459 rm -f conftest.er1
11460 cat conftest.err >&5
11461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); } && {
11463 test -z "$ac_c_werror_flag" ||
11464 test ! -s conftest.err
11465 } && test -s conftest.$ac_objext; then
11466 ac_compiler_gnu=yes
11467 else
11468 $as_echo "$as_me: failed program was:" >&5
11469 sed 's/^/| /' conftest.$ac_ext >&5
11470
11471 ac_compiler_gnu=no
11472 fi
11473
11474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11475 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11476
11477 fi
11478 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11479 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11480 if test $ac_compiler_gnu = yes; then
11481 GCC=yes
11482 else
11483 GCC=
11484 fi
11485 ac_test_CFLAGS=${CFLAGS+set}
11486 ac_save_CFLAGS=$CFLAGS
11487 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11488 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11489 if test "${ac_cv_prog_cc_g+set}" = set; then
11490 $as_echo_n "(cached) " >&6
11491 else
11492 ac_save_c_werror_flag=$ac_c_werror_flag
11493 ac_c_werror_flag=yes
11494 ac_cv_prog_cc_g=no
11495 CFLAGS="-g"
11496 cat >conftest.$ac_ext <<_ACEOF
11497 /* confdefs.h. */
11498 _ACEOF
11499 cat confdefs.h >>conftest.$ac_ext
11500 cat >>conftest.$ac_ext <<_ACEOF
11501 /* end confdefs.h. */
11502
11503 int
11504 main ()
11505 {
11506
11507 ;
11508 return 0;
11509 }
11510 _ACEOF
11511 rm -f conftest.$ac_objext
11512 if { (ac_try="$ac_compile"
11513 case "(($ac_try" in
11514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11515 *) ac_try_echo=$ac_try;;
11516 esac
11517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11518 $as_echo "$ac_try_echo") >&5
11519 (eval "$ac_compile") 2>conftest.er1
11520 ac_status=$?
11521 grep -v '^ *+' conftest.er1 >conftest.err
11522 rm -f conftest.er1
11523 cat conftest.err >&5
11524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); } && {
11526 test -z "$ac_c_werror_flag" ||
11527 test ! -s conftest.err
11528 } && test -s conftest.$ac_objext; then
11529 ac_cv_prog_cc_g=yes
11530 else
11531 $as_echo "$as_me: failed program was:" >&5
11532 sed 's/^/| /' conftest.$ac_ext >&5
11533
11534 CFLAGS=""
11535 cat >conftest.$ac_ext <<_ACEOF
11536 /* confdefs.h. */
11537 _ACEOF
11538 cat confdefs.h >>conftest.$ac_ext
11539 cat >>conftest.$ac_ext <<_ACEOF
11540 /* end confdefs.h. */
11541
11542 int
11543 main ()
11544 {
11545
11546 ;
11547 return 0;
11548 }
11549 _ACEOF
11550 rm -f conftest.$ac_objext
11551 if { (ac_try="$ac_compile"
11552 case "(($ac_try" in
11553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11554 *) ac_try_echo=$ac_try;;
11555 esac
11556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11557 $as_echo "$ac_try_echo") >&5
11558 (eval "$ac_compile") 2>conftest.er1
11559 ac_status=$?
11560 grep -v '^ *+' conftest.er1 >conftest.err
11561 rm -f conftest.er1
11562 cat conftest.err >&5
11563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); } && {
11565 test -z "$ac_c_werror_flag" ||
11566 test ! -s conftest.err
11567 } && test -s conftest.$ac_objext; then
11568 :
11569 else
11570 $as_echo "$as_me: failed program was:" >&5
11571 sed 's/^/| /' conftest.$ac_ext >&5
11572
11573 ac_c_werror_flag=$ac_save_c_werror_flag
11574 CFLAGS="-g"
11575 cat >conftest.$ac_ext <<_ACEOF
11576 /* confdefs.h. */
11577 _ACEOF
11578 cat confdefs.h >>conftest.$ac_ext
11579 cat >>conftest.$ac_ext <<_ACEOF
11580 /* end confdefs.h. */
11581
11582 int
11583 main ()
11584 {
11585
11586 ;
11587 return 0;
11588 }
11589 _ACEOF
11590 rm -f conftest.$ac_objext
11591 if { (ac_try="$ac_compile"
11592 case "(($ac_try" in
11593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11594 *) ac_try_echo=$ac_try;;
11595 esac
11596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11597 $as_echo "$ac_try_echo") >&5
11598 (eval "$ac_compile") 2>conftest.er1
11599 ac_status=$?
11600 grep -v '^ *+' conftest.er1 >conftest.err
11601 rm -f conftest.er1
11602 cat conftest.err >&5
11603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); } && {
11605 test -z "$ac_c_werror_flag" ||
11606 test ! -s conftest.err
11607 } && test -s conftest.$ac_objext; then
11608 ac_cv_prog_cc_g=yes
11609 else
11610 $as_echo "$as_me: failed program was:" >&5
11611 sed 's/^/| /' conftest.$ac_ext >&5
11612
11613
11614 fi
11615
11616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11617 fi
11618
11619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11620 fi
11621
11622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11623 ac_c_werror_flag=$ac_save_c_werror_flag
11624 fi
11625 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11626 $as_echo "$ac_cv_prog_cc_g" >&6; }
11627 if test "$ac_test_CFLAGS" = set; then
11628 CFLAGS=$ac_save_CFLAGS
11629 elif test $ac_cv_prog_cc_g = yes; then
11630 if test "$GCC" = yes; then
11631 CFLAGS="-g -O2"
11632 else
11633 CFLAGS="-g"
11634 fi
11635 else
11636 if test "$GCC" = yes; then
11637 CFLAGS="-O2"
11638 else
11639 CFLAGS=
11640 fi
11641 fi
11642 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
11643 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11644 if test "${ac_cv_prog_cc_c89+set}" = set; then
11645 $as_echo_n "(cached) " >&6
11646 else
11647 ac_cv_prog_cc_c89=no
11648 ac_save_CC=$CC
11649 cat >conftest.$ac_ext <<_ACEOF
11650 /* confdefs.h. */
11651 _ACEOF
11652 cat confdefs.h >>conftest.$ac_ext
11653 cat >>conftest.$ac_ext <<_ACEOF
11654 /* end confdefs.h. */
11655 #include <stdarg.h>
11656 #include <stdio.h>
11657 #include <sys/types.h>
11658 #include <sys/stat.h>
11659 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11660 struct buf { int x; };
11661 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11662 static char *e (p, i)
11663 char **p;
11664 int i;
11665 {
11666 return p[i];
11667 }
11668 static char *f (char * (*g) (char **, int), char **p, ...)
11669 {
11670 char *s;
11671 va_list v;
11672 va_start (v,p);
11673 s = g (p, va_arg (v,int));
11674 va_end (v);
11675 return s;
11676 }
11677
11678 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11679 function prototypes and stuff, but not '\xHH' hex character constants.
11680 These don't provoke an error unfortunately, instead are silently treated
11681 as 'x'. The following induces an error, until -std is added to get
11682 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11683 array size at least. It's necessary to write '\x00'==0 to get something
11684 that's true only with -std. */
11685 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11686
11687 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11688 inside strings and character constants. */
11689 #define FOO(x) 'x'
11690 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11691
11692 int test (int i, double x);
11693 struct s1 {int (*f) (int a);};
11694 struct s2 {int (*f) (double a);};
11695 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11696 int argc;
11697 char **argv;
11698 int
11699 main ()
11700 {
11701 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11702 ;
11703 return 0;
11704 }
11705 _ACEOF
11706 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11707 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11708 do
11709 CC="$ac_save_CC $ac_arg"
11710 rm -f conftest.$ac_objext
11711 if { (ac_try="$ac_compile"
11712 case "(($ac_try" in
11713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11714 *) ac_try_echo=$ac_try;;
11715 esac
11716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11717 $as_echo "$ac_try_echo") >&5
11718 (eval "$ac_compile") 2>conftest.er1
11719 ac_status=$?
11720 grep -v '^ *+' conftest.er1 >conftest.err
11721 rm -f conftest.er1
11722 cat conftest.err >&5
11723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); } && {
11725 test -z "$ac_c_werror_flag" ||
11726 test ! -s conftest.err
11727 } && test -s conftest.$ac_objext; then
11728 ac_cv_prog_cc_c89=$ac_arg
11729 else
11730 $as_echo "$as_me: failed program was:" >&5
11731 sed 's/^/| /' conftest.$ac_ext >&5
11732
11733
11734 fi
11735
11736 rm -f core conftest.err conftest.$ac_objext
11737 test "x$ac_cv_prog_cc_c89" != "xno" && break
11738 done
11739 rm -f conftest.$ac_ext
11740 CC=$ac_save_CC
11741
11742 fi
11743 # AC_CACHE_VAL
11744 case "x$ac_cv_prog_cc_c89" in
11745 x)
11746 { $as_echo "$as_me:$LINENO: result: none needed" >&5
11747 $as_echo "none needed" >&6; } ;;
11748 xno)
11749 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
11750 $as_echo "unsupported" >&6; } ;;
11751 *)
11752 CC="$CC $ac_cv_prog_cc_c89"
11753 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
11754 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11755 esac
11756
11757
11758 ac_ext=c
11759 ac_cpp='$CPP $CPPFLAGS'
11760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11763
11764 depcc="$CC" am_compiler_list=
11765
11766 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11767 $as_echo_n "checking dependency style of $depcc... " >&6; }
11768 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
11769 $as_echo_n "(cached) " >&6
11770 else
11771 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11772 # We make a subdir and do the tests there. Otherwise we can end up
11773 # making bogus files that we don't know about and never remove. For
11774 # instance it was reported that on HP-UX the gcc test will end up
11775 # making a dummy file named `D' -- because `-MD' means `put the output
11776 # in D'.
11777 mkdir conftest.dir
11778 # Copy depcomp to subdir because otherwise we won't find it if we're
11779 # using a relative directory.
11780 cp "$am_depcomp" conftest.dir
11781 cd conftest.dir
11782 # We will build objects and dependencies in a subdirectory because
11783 # it helps to detect inapplicable dependency modes. For instance
11784 # both Tru64's cc and ICC support -MD to output dependencies as a
11785 # side effect of compilation, but ICC will put the dependencies in
11786 # the current directory while Tru64 will put them in the object
11787 # directory.
11788 mkdir sub
11789
11790 am_cv_CC_dependencies_compiler_type=none
11791 if test "$am_compiler_list" = ""; then
11792 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11793 fi
11794 for depmode in $am_compiler_list; do
11795 # Setup a source with many dependencies, because some compilers
11796 # like to wrap large dependency lists on column 80 (with \), and
11797 # we should not choose a depcomp mode which is confused by this.
11798 #
11799 # We need to recreate these files for each test, as the compiler may
11800 # overwrite some of them when testing with obscure command lines.
11801 # This happens at least with the AIX C compiler.
11802 : > sub/conftest.c
11803 for i in 1 2 3 4 5 6; do
11804 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11805 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11806 # Solaris 8's {/usr,}/bin/sh.
11807 touch sub/conftst$i.h
11808 done
11809 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11810
11811 case $depmode in
11812 nosideeffect)
11813 # after this tag, mechanisms are not by side-effect, so they'll
11814 # only be used when explicitly requested
11815 if test "x$enable_dependency_tracking" = xyes; then
11816 continue
11817 else
11818 break
11819 fi
11820 ;;
11821 none) break ;;
11822 esac
11823 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11824 # mode. It turns out that the SunPro C++ compiler does not properly
11825 # handle `-M -o', and we need to detect this.
11826 if depmode=$depmode \
11827 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
11828 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11829 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
11830 >/dev/null 2>conftest.err &&
11831 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11832 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11833 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
11834 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11835 # icc doesn't choke on unknown options, it will just issue warnings
11836 # or remarks (even with -Werror). So we grep stderr for any message
11837 # that says an option was ignored or not supported.
11838 # When given -MP, icc 7.0 and 7.1 complain thusly:
11839 # icc: Command line warning: ignoring option '-M'; no argument required
11840 # The diagnosis changed in icc 8.0:
11841 # icc: Command line remark: option '-MP' not supported
11842 if (grep 'ignoring option' conftest.err ||
11843 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11844 am_cv_CC_dependencies_compiler_type=$depmode
11845 break
11846 fi
11847 fi
11848 done
11849
11850 cd ..
11851 rm -rf conftest.dir
11852 else
11853 am_cv_CC_dependencies_compiler_type=none
11854 fi
11855
11856 fi
11857 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
11858 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11859 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11860
11861 if
11862 test "x$enable_dependency_tracking" != xno \
11863 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11864 am__fastdepCC_TRUE=
11865 am__fastdepCC_FALSE='#'
11866 else
11867 am__fastdepCC_TRUE='#'
11868 am__fastdepCC_FALSE=
11869 fi
11870
11871
11872
11873 if test "x$GCC" = "xyes"; then
11874 CFLAGS="$CFLAGS -Wall -pedantic"
11875 fi
11876
11877
11878
11879
11880
11881 # Check whether --with-xorg-module-dir was given.
11882 if test "${with_xorg_module_dir+set}" = set; then
11883 withval=$with_xorg_module_dir; moduledir="$withval"
11884 else
11885 moduledir="$libdir/xorg/modules"
11886 fi
11887
11888
11889 # Checks for extensions
11890
11891 SAVE_CFLAGS="$CFLAGS"
11892 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
11893 cat >conftest.$ac_ext <<_ACEOF
11894 /* confdefs.h. */
11895 _ACEOF
11896 cat confdefs.h >>conftest.$ac_ext
11897 cat >>conftest.$ac_ext <<_ACEOF
11898 /* end confdefs.h. */
11899
11900 #include "xorg-server.h"
11901 #if !defined RANDR
11902 #error RANDR not defined
11903 #endif
11904
11905 int
11906 main ()
11907 {
11908
11909 ;
11910 return 0;
11911 }
11912 _ACEOF
11913 rm -f conftest.$ac_objext
11914 if { (ac_try="$ac_compile"
11915 case "(($ac_try" in
11916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11917 *) ac_try_echo=$ac_try;;
11918 esac
11919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11920 $as_echo "$ac_try_echo") >&5
11921 (eval "$ac_compile") 2>conftest.er1
11922 ac_status=$?
11923 grep -v '^ *+' conftest.er1 >conftest.err
11924 rm -f conftest.er1
11925 cat conftest.err >&5
11926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); } && {
11928 test -z "$ac_c_werror_flag" ||
11929 test ! -s conftest.err
11930 } && test -s conftest.$ac_objext; then
11931 _EXT_CHECK=yes
11932 else
11933 $as_echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.$ac_ext >&5
11935
11936 _EXT_CHECK=no
11937 fi
11938
11939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11940 CFLAGS="$SAVE_CFLAGS"
11941 { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5
11942 $as_echo_n "checking if RANDR is defined... " >&6; }
11943 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
11944 $as_echo "$_EXT_CHECK" >&6; }
11945 if test "$_EXT_CHECK" != no; then
11946 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
11947 fi
11948
11949
11950 SAVE_CFLAGS="$CFLAGS"
11951 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
11952 cat >conftest.$ac_ext <<_ACEOF
11953 /* confdefs.h. */
11954 _ACEOF
11955 cat confdefs.h >>conftest.$ac_ext
11956 cat >>conftest.$ac_ext <<_ACEOF
11957 /* end confdefs.h. */
11958
11959 #include "xorg-server.h"
11960 #if !defined RENDER
11961 #error RENDER not defined
11962 #endif
11963
11964 int
11965 main ()
11966 {
11967
11968 ;
11969 return 0;
11970 }
11971 _ACEOF
11972 rm -f conftest.$ac_objext
11973 if { (ac_try="$ac_compile"
11974 case "(($ac_try" in
11975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11976 *) ac_try_echo=$ac_try;;
11977 esac
11978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11979 $as_echo "$ac_try_echo") >&5
11980 (eval "$ac_compile") 2>conftest.er1
11981 ac_status=$?
11982 grep -v '^ *+' conftest.er1 >conftest.err
11983 rm -f conftest.er1
11984 cat conftest.err >&5
11985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); } && {
11987 test -z "$ac_c_werror_flag" ||
11988 test ! -s conftest.err
11989 } && test -s conftest.$ac_objext; then
11990 _EXT_CHECK=yes
11991 else
11992 $as_echo "$as_me: failed program was:" >&5
11993 sed 's/^/| /' conftest.$ac_ext >&5
11994
11995 _EXT_CHECK=no
11996 fi
11997
11998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11999 CFLAGS="$SAVE_CFLAGS"
12000 { $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5
12001 $as_echo_n "checking if RENDER is defined... " >&6; }
12002 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12003 $as_echo "$_EXT_CHECK" >&6; }
12004 if test "$_EXT_CHECK" != no; then
12005 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
12006 fi
12007
12008
12009 SAVE_CFLAGS="$CFLAGS"
12010 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12011 cat >conftest.$ac_ext <<_ACEOF
12012 /* confdefs.h. */
12013 _ACEOF
12014 cat confdefs.h >>conftest.$ac_ext
12015 cat >>conftest.$ac_ext <<_ACEOF
12016 /* end confdefs.h. */
12017
12018 #include "xorg-server.h"
12019 #if !defined XV
12020 #error XV not defined
12021 #endif
12022
12023 int
12024 main ()
12025 {
12026
12027 ;
12028 return 0;
12029 }
12030 _ACEOF
12031 rm -f conftest.$ac_objext
12032 if { (ac_try="$ac_compile"
12033 case "(($ac_try" in
12034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12035 *) ac_try_echo=$ac_try;;
12036 esac
12037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12038 $as_echo "$ac_try_echo") >&5
12039 (eval "$ac_compile") 2>conftest.er1
12040 ac_status=$?
12041 grep -v '^ *+' conftest.er1 >conftest.err
12042 rm -f conftest.er1
12043 cat conftest.err >&5
12044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); } && {
12046 test -z "$ac_c_werror_flag" ||
12047 test ! -s conftest.err
12048 } && test -s conftest.$ac_objext; then
12049 _EXT_CHECK=yes
12050 else
12051 $as_echo "$as_me: failed program was:" >&5
12052 sed 's/^/| /' conftest.$ac_ext >&5
12053
12054 _EXT_CHECK=no
12055 fi
12056
12057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12058 CFLAGS="$SAVE_CFLAGS"
12059 { $as_echo "$as_me:$LINENO: checking if XV is defined" >&5
12060 $as_echo_n "checking if XV is defined... " >&6; }
12061 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12062 $as_echo "$_EXT_CHECK" >&6; }
12063 if test "$_EXT_CHECK" != no; then
12064 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
12065 fi
12066
12067
12068 SAVE_CFLAGS="$CFLAGS"
12069 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12070 cat >conftest.$ac_ext <<_ACEOF
12071 /* confdefs.h. */
12072 _ACEOF
12073 cat confdefs.h >>conftest.$ac_ext
12074 cat >>conftest.$ac_ext <<_ACEOF
12075 /* end confdefs.h. */
12076
12077 #include "xorg-server.h"
12078 #if !defined DPMSExtension
12079 #error DPMSExtension not defined
12080 #endif
12081
12082 int
12083 main ()
12084 {
12085
12086 ;
12087 return 0;
12088 }
12089 _ACEOF
12090 rm -f conftest.$ac_objext
12091 if { (ac_try="$ac_compile"
12092 case "(($ac_try" in
12093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12094 *) ac_try_echo=$ac_try;;
12095 esac
12096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12097 $as_echo "$ac_try_echo") >&5
12098 (eval "$ac_compile") 2>conftest.er1
12099 ac_status=$?
12100 grep -v '^ *+' conftest.er1 >conftest.err
12101 rm -f conftest.er1
12102 cat conftest.err >&5
12103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); } && {
12105 test -z "$ac_c_werror_flag" ||
12106 test ! -s conftest.err
12107 } && test -s conftest.$ac_objext; then
12108 _EXT_CHECK=yes
12109 else
12110 $as_echo "$as_me: failed program was:" >&5
12111 sed 's/^/| /' conftest.$ac_ext >&5
12112
12113 _EXT_CHECK=no
12114 fi
12115
12116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12117 CFLAGS="$SAVE_CFLAGS"
12118 { $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
12119 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
12120 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12121 $as_echo "$_EXT_CHECK" >&6; }
12122 if test "$_EXT_CHECK" != no; then
12123 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
12124 fi
12125
12126
12127 # Checks for pkg-config packages
12128
12129
12130 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12131 if test -n "$ac_tool_prefix"; then
12132 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12133 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12134 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12135 $as_echo_n "checking for $ac_word... " >&6; }
12136 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12137 $as_echo_n "(cached) " >&6
12138 else
12139 case $PKG_CONFIG in
12140 [\\/]* | ?:[\\/]*)
12141 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12142 ;;
12143 *)
12144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12145 for as_dir in $PATH
12146 do
12147 IFS=$as_save_IFS
12148 test -z "$as_dir" && as_dir=.
12149 for ac_exec_ext in '' $ac_executable_extensions; do
12150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12151 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12152 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12153 break 2
12154 fi
12155 done
12156 done
12157 IFS=$as_save_IFS
12158
12159 ;;
12160 esac
12161 fi
12162 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12163 if test -n "$PKG_CONFIG"; then
12164 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12165 $as_echo "$PKG_CONFIG" >&6; }
12166 else
12167 { $as_echo "$as_me:$LINENO: result: no" >&5
12168 $as_echo "no" >&6; }
12169 fi
12170
12171
12172 fi
12173 if test -z "$ac_cv_path_PKG_CONFIG"; then
12174 ac_pt_PKG_CONFIG=$PKG_CONFIG
12175 # Extract the first word of "pkg-config", so it can be a program name with args.
12176 set dummy pkg-config; ac_word=$2
12177 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12178 $as_echo_n "checking for $ac_word... " >&6; }
12179 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
12180 $as_echo_n "(cached) " >&6
12181 else
12182 case $ac_pt_PKG_CONFIG in
12183 [\\/]* | ?:[\\/]*)
12184 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12185 ;;
12186 *)
12187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12188 for as_dir in $PATH
12189 do
12190 IFS=$as_save_IFS
12191 test -z "$as_dir" && as_dir=.
12192 for ac_exec_ext in '' $ac_executable_extensions; do
12193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12194 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12195 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12196 break 2
12197 fi
12198 done
12199 done
12200 IFS=$as_save_IFS
12201
12202 ;;
12203 esac
12204 fi
12205 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12206 if test -n "$ac_pt_PKG_CONFIG"; then
12207 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
12208 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12209 else
12210 { $as_echo "$as_me:$LINENO: result: no" >&5
12211 $as_echo "no" >&6; }
12212 fi
12213
12214 if test "x$ac_pt_PKG_CONFIG" = x; then
12215 PKG_CONFIG=""
12216 else
12217 case $cross_compiling:$ac_tool_warned in
12218 yes:)
12219 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12221 ac_tool_warned=yes ;;
12222 esac
12223 PKG_CONFIG=$ac_pt_PKG_CONFIG
12224 fi
12225 else
12226 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12227 fi
12228
12229 fi
12230 if test -n "$PKG_CONFIG"; then
12231 _pkg_min_version=0.9.0
12232 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
12233 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12234 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12235 { $as_echo "$as_me:$LINENO: result: yes" >&5
12236 $as_echo "yes" >&6; }
12237 else
12238 { $as_echo "$as_me:$LINENO: result: no" >&5
12239 $as_echo "no" >&6; }
12240 PKG_CONFIG=""
12241 fi
12242
12243 fi
12244
12245 pkg_failed=no
12246 { $as_echo "$as_me:$LINENO: checking for XORG" >&5
12247 $as_echo_n "checking for XORG... " >&6; }
12248
12249 if test -n "$XORG_CFLAGS"; then
12250 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
12251 elif test -n "$PKG_CONFIG"; then
12252 if test -n "$PKG_CONFIG" && \
12253 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
12254 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
12255 ac_status=$?
12256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); }; then
12258 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
12259 else
12260 pkg_failed=yes
12261 fi
12262 else
12263 pkg_failed=untried
12264 fi
12265 if test -n "$XORG_LIBS"; then
12266 pkg_cv_XORG_LIBS="$XORG_LIBS"
12267 elif test -n "$PKG_CONFIG"; then
12268 if test -n "$PKG_CONFIG" && \
12269 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
12270 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
12271 ac_status=$?
12272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); }; then
12274 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
12275 else
12276 pkg_failed=yes
12277 fi
12278 else
12279 pkg_failed=untried
12280 fi
12281
12282
12283
12284 if test $pkg_failed = yes; then
12285
12286 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12287 _pkg_short_errors_supported=yes
12288 else
12289 _pkg_short_errors_supported=no
12290 fi
12291 if test $_pkg_short_errors_supported = yes; then
12292 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
12293 else
12294 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
12295 fi
12296 # Put the nasty error message in config.log where it belongs
12297 echo "$XORG_PKG_ERRORS" >&5
12298
12299 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
12300
12301 $XORG_PKG_ERRORS
12302
12303 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12304 installed software in a non-standard prefix.
12305
12306 Alternatively, you may set the environment variables XORG_CFLAGS
12307 and XORG_LIBS to avoid the need to call pkg-config.
12308 See the pkg-config man page for more details.
12309 " >&5
12310 $as_echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
12311
12312 $XORG_PKG_ERRORS
12313
12314 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12315 installed software in a non-standard prefix.
12316
12317 Alternatively, you may set the environment variables XORG_CFLAGS
12318 and XORG_LIBS to avoid the need to call pkg-config.
12319 See the pkg-config man page for more details.
12320 " >&2;}
12321 { (exit 1); exit 1; }; }
12322 elif test $pkg_failed = untried; then
12323 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12325 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12326 is in your PATH or set the PKG_CONFIG environment variable to the full
12327 path to pkg-config.
12328
12329 Alternatively, you may set the environment variables XORG_CFLAGS
12330 and XORG_LIBS to avoid the need to call pkg-config.
12331 See the pkg-config man page for more details.
12332
12333 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12334 See \`config.log' for more details." >&5
12335 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12336 is in your PATH or set the PKG_CONFIG environment variable to the full
12337 path to pkg-config.
12338
12339 Alternatively, you may set the environment variables XORG_CFLAGS
12340 and XORG_LIBS to avoid the need to call pkg-config.
12341 See the pkg-config man page for more details.
12342
12343 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12344 See \`config.log' for more details." >&2;}
12345 { (exit 1); exit 1; }; }; }
12346 else
12347 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
12348 XORG_LIBS=$pkg_cv_XORG_LIBS
12349 { $as_echo "$as_me:$LINENO: result: yes" >&5
12350 $as_echo "yes" >&6; }
12351 :
12352 fi
12353 sdkdir=$(pkg-config --variable=sdkdir xorg-server)
12354
12355 # Checks for libraries.
12356 SAVE_CPPFLAGS="$CPPFLAGS"
12357 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
12358 { $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5
12359 $as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; }
12360 if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then
12361 $as_echo_n "(cached) " >&6
12362 else
12363 cat >conftest.$ac_ext <<_ACEOF
12364 /* confdefs.h. */
12365 _ACEOF
12366 cat confdefs.h >>conftest.$ac_ext
12367 cat >>conftest.$ac_ext <<_ACEOF
12368 /* end confdefs.h. */
12369 #include "xorg-server.h"
12370
12371 int
12372 main ()
12373 {
12374 #ifndef XSERVER_LIBPCIACCESS
12375 (void) XSERVER_LIBPCIACCESS;
12376 #endif
12377
12378 ;
12379 return 0;
12380 }
12381 _ACEOF
12382 rm -f conftest.$ac_objext
12383 if { (ac_try="$ac_compile"
12384 case "(($ac_try" in
12385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12386 *) ac_try_echo=$ac_try;;
12387 esac
12388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12389 $as_echo "$ac_try_echo") >&5
12390 (eval "$ac_compile") 2>conftest.er1
12391 ac_status=$?
12392 grep -v '^ *+' conftest.er1 >conftest.err
12393 rm -f conftest.er1
12394 cat conftest.err >&5
12395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); } && {
12397 test -z "$ac_c_werror_flag" ||
12398 test ! -s conftest.err
12399 } && test -s conftest.$ac_objext; then
12400 ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes
12401 else
12402 $as_echo "$as_me: failed program was:" >&5
12403 sed 's/^/| /' conftest.$ac_ext >&5
12404
12405 ac_cv_have_decl_XSERVER_LIBPCIACCESS=no
12406 fi
12407
12408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12409 fi
12410 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5
12411 $as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; }
12412 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then
12413 XSERVER_LIBPCIACCESS=yes
12414 else
12415 XSERVER_LIBPCIACCESS=no
12416 fi
12417
12418 if test "${ac_cv_header_xf1bpp_h+set}" = set; then
12419 { $as_echo "$as_me:$LINENO: checking for xf1bpp.h" >&5
12420 $as_echo_n "checking for xf1bpp.h... " >&6; }
12421 if test "${ac_cv_header_xf1bpp_h+set}" = set; then
12422 $as_echo_n "(cached) " >&6
12423 fi
12424 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf1bpp_h" >&5
12425 $as_echo "$ac_cv_header_xf1bpp_h" >&6; }
12426 else
12427 # Is the header compilable?
12428 { $as_echo "$as_me:$LINENO: checking xf1bpp.h usability" >&5
12429 $as_echo_n "checking xf1bpp.h usability... " >&6; }
12430 cat >conftest.$ac_ext <<_ACEOF
12431 /* confdefs.h. */
12432 _ACEOF
12433 cat confdefs.h >>conftest.$ac_ext
12434 cat >>conftest.$ac_ext <<_ACEOF
12435 /* end confdefs.h. */
12436 $ac_includes_default
12437 #include <xf1bpp.h>
12438 _ACEOF
12439 rm -f conftest.$ac_objext
12440 if { (ac_try="$ac_compile"
12441 case "(($ac_try" in
12442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12443 *) ac_try_echo=$ac_try;;
12444 esac
12445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12446 $as_echo "$ac_try_echo") >&5
12447 (eval "$ac_compile") 2>conftest.er1
12448 ac_status=$?
12449 grep -v '^ *+' conftest.er1 >conftest.err
12450 rm -f conftest.er1
12451 cat conftest.err >&5
12452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); } && {
12454 test -z "$ac_c_werror_flag" ||
12455 test ! -s conftest.err
12456 } && test -s conftest.$ac_objext; then
12457 ac_header_compiler=yes
12458 else
12459 $as_echo "$as_me: failed program was:" >&5
12460 sed 's/^/| /' conftest.$ac_ext >&5
12461
12462 ac_header_compiler=no
12463 fi
12464
12465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12466 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12467 $as_echo "$ac_header_compiler" >&6; }
12468
12469 # Is the header present?
12470 { $as_echo "$as_me:$LINENO: checking xf1bpp.h presence" >&5
12471 $as_echo_n "checking xf1bpp.h presence... " >&6; }
12472 cat >conftest.$ac_ext <<_ACEOF
12473 /* confdefs.h. */
12474 _ACEOF
12475 cat confdefs.h >>conftest.$ac_ext
12476 cat >>conftest.$ac_ext <<_ACEOF
12477 /* end confdefs.h. */
12478 #include <xf1bpp.h>
12479 _ACEOF
12480 if { (ac_try="$ac_cpp conftest.$ac_ext"
12481 case "(($ac_try" in
12482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12483 *) ac_try_echo=$ac_try;;
12484 esac
12485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12486 $as_echo "$ac_try_echo") >&5
12487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12488 ac_status=$?
12489 grep -v '^ *+' conftest.er1 >conftest.err
12490 rm -f conftest.er1
12491 cat conftest.err >&5
12492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); } >/dev/null && {
12494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12495 test ! -s conftest.err
12496 }; then
12497 ac_header_preproc=yes
12498 else
12499 $as_echo "$as_me: failed program was:" >&5
12500 sed 's/^/| /' conftest.$ac_ext >&5
12501
12502 ac_header_preproc=no
12503 fi
12504
12505 rm -f conftest.err conftest.$ac_ext
12506 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12507 $as_echo "$ac_header_preproc" >&6; }
12508
12509 # So? What about this header?
12510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12511 yes:no: )
12512 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: accepted by the compiler, rejected by the preprocessor!" >&5
12513 $as_echo "$as_me: WARNING: xf1bpp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12514 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: proceeding with the compiler's result" >&5
12515 $as_echo "$as_me: WARNING: xf1bpp.h: proceeding with the compiler's result" >&2;}
12516 ac_header_preproc=yes
12517 ;;
12518 no:yes:* )
12519 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: present but cannot be compiled" >&5
12520 $as_echo "$as_me: WARNING: xf1bpp.h: present but cannot be compiled" >&2;}
12521 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: check for missing prerequisite headers?" >&5
12522 $as_echo "$as_me: WARNING: xf1bpp.h: check for missing prerequisite headers?" >&2;}
12523 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: see the Autoconf documentation" >&5
12524 $as_echo "$as_me: WARNING: xf1bpp.h: see the Autoconf documentation" >&2;}
12525 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: section \"Present But Cannot Be Compiled\"" >&5
12526 $as_echo "$as_me: WARNING: xf1bpp.h: section \"Present But Cannot Be Compiled\"" >&2;}
12527 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: proceeding with the preprocessor's result" >&5
12528 $as_echo "$as_me: WARNING: xf1bpp.h: proceeding with the preprocessor's result" >&2;}
12529 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: in the future, the compiler will take precedence" >&5
12530 $as_echo "$as_me: WARNING: xf1bpp.h: in the future, the compiler will take precedence" >&2;}
12531 ( cat <<\_ASBOX
12532 ## ---------------------------------------------------------------------- ##
12533 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
12534 ## ---------------------------------------------------------------------- ##
12535 _ASBOX
12536 ) | sed "s/^/$as_me: WARNING: /" >&2
12537 ;;
12538 esac
12539 { $as_echo "$as_me:$LINENO: checking for xf1bpp.h" >&5
12540 $as_echo_n "checking for xf1bpp.h... " >&6; }
12541 if test "${ac_cv_header_xf1bpp_h+set}" = set; then
12542 $as_echo_n "(cached) " >&6
12543 else
12544 ac_cv_header_xf1bpp_h=$ac_header_preproc
12545 fi
12546 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf1bpp_h" >&5
12547 $as_echo "$ac_cv_header_xf1bpp_h" >&6; }
12548
12549 fi
12550 if test "x$ac_cv_header_xf1bpp_h" = x""yes; then
12551
12552 cat >>confdefs.h <<\_ACEOF
12553 #define HAVE_XF1BPP 1
12554 _ACEOF
12555
12556 fi
12557
12558
12559 if test "${ac_cv_header_xf4bpp_h+set}" = set; then
12560 { $as_echo "$as_me:$LINENO: checking for xf4bpp.h" >&5
12561 $as_echo_n "checking for xf4bpp.h... " >&6; }
12562 if test "${ac_cv_header_xf4bpp_h+set}" = set; then
12563 $as_echo_n "(cached) " >&6
12564 fi
12565 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf4bpp_h" >&5
12566 $as_echo "$ac_cv_header_xf4bpp_h" >&6; }
12567 else
12568 # Is the header compilable?
12569 { $as_echo "$as_me:$LINENO: checking xf4bpp.h usability" >&5
12570 $as_echo_n "checking xf4bpp.h usability... " >&6; }
12571 cat >conftest.$ac_ext <<_ACEOF
12572 /* confdefs.h. */
12573 _ACEOF
12574 cat confdefs.h >>conftest.$ac_ext
12575 cat >>conftest.$ac_ext <<_ACEOF
12576 /* end confdefs.h. */
12577 $ac_includes_default
12578 #include <xf4bpp.h>
12579 _ACEOF
12580 rm -f conftest.$ac_objext
12581 if { (ac_try="$ac_compile"
12582 case "(($ac_try" in
12583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12584 *) ac_try_echo=$ac_try;;
12585 esac
12586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12587 $as_echo "$ac_try_echo") >&5
12588 (eval "$ac_compile") 2>conftest.er1
12589 ac_status=$?
12590 grep -v '^ *+' conftest.er1 >conftest.err
12591 rm -f conftest.er1
12592 cat conftest.err >&5
12593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); } && {
12595 test -z "$ac_c_werror_flag" ||
12596 test ! -s conftest.err
12597 } && test -s conftest.$ac_objext; then
12598 ac_header_compiler=yes
12599 else
12600 $as_echo "$as_me: failed program was:" >&5
12601 sed 's/^/| /' conftest.$ac_ext >&5
12602
12603 ac_header_compiler=no
12604 fi
12605
12606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12607 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12608 $as_echo "$ac_header_compiler" >&6; }
12609
12610 # Is the header present?
12611 { $as_echo "$as_me:$LINENO: checking xf4bpp.h presence" >&5
12612 $as_echo_n "checking xf4bpp.h presence... " >&6; }
12613 cat >conftest.$ac_ext <<_ACEOF
12614 /* confdefs.h. */
12615 _ACEOF
12616 cat confdefs.h >>conftest.$ac_ext
12617 cat >>conftest.$ac_ext <<_ACEOF
12618 /* end confdefs.h. */
12619 #include <xf4bpp.h>
12620 _ACEOF
12621 if { (ac_try="$ac_cpp conftest.$ac_ext"
12622 case "(($ac_try" in
12623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12624 *) ac_try_echo=$ac_try;;
12625 esac
12626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12627 $as_echo "$ac_try_echo") >&5
12628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12629 ac_status=$?
12630 grep -v '^ *+' conftest.er1 >conftest.err
12631 rm -f conftest.er1
12632 cat conftest.err >&5
12633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); } >/dev/null && {
12635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12636 test ! -s conftest.err
12637 }; then
12638 ac_header_preproc=yes
12639 else
12640 $as_echo "$as_me: failed program was:" >&5
12641 sed 's/^/| /' conftest.$ac_ext >&5
12642
12643 ac_header_preproc=no
12644 fi
12645
12646 rm -f conftest.err conftest.$ac_ext
12647 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12648 $as_echo "$ac_header_preproc" >&6; }
12649
12650 # So? What about this header?
12651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12652 yes:no: )
12653 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: accepted by the compiler, rejected by the preprocessor!" >&5
12654 $as_echo "$as_me: WARNING: xf4bpp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12655 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: proceeding with the compiler's result" >&5
12656 $as_echo "$as_me: WARNING: xf4bpp.h: proceeding with the compiler's result" >&2;}
12657 ac_header_preproc=yes
12658 ;;
12659 no:yes:* )
12660 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: present but cannot be compiled" >&5
12661 $as_echo "$as_me: WARNING: xf4bpp.h: present but cannot be compiled" >&2;}
12662 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: check for missing prerequisite headers?" >&5
12663 $as_echo "$as_me: WARNING: xf4bpp.h: check for missing prerequisite headers?" >&2;}
12664 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: see the Autoconf documentation" >&5
12665 $as_echo "$as_me: WARNING: xf4bpp.h: see the Autoconf documentation" >&2;}
12666 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: section \"Present But Cannot Be Compiled\"" >&5
12667 $as_echo "$as_me: WARNING: xf4bpp.h: section \"Present But Cannot Be Compiled\"" >&2;}
12668 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: proceeding with the preprocessor's result" >&5
12669 $as_echo "$as_me: WARNING: xf4bpp.h: proceeding with the preprocessor's result" >&2;}
12670 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: in the future, the compiler will take precedence" >&5
12671 $as_echo "$as_me: WARNING: xf4bpp.h: in the future, the compiler will take precedence" >&2;}
12672 ( cat <<\_ASBOX
12673 ## ---------------------------------------------------------------------- ##
12674 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
12675 ## ---------------------------------------------------------------------- ##
12676 _ASBOX
12677 ) | sed "s/^/$as_me: WARNING: /" >&2
12678 ;;
12679 esac
12680 { $as_echo "$as_me:$LINENO: checking for xf4bpp.h" >&5
12681 $as_echo_n "checking for xf4bpp.h... " >&6; }
12682 if test "${ac_cv_header_xf4bpp_h+set}" = set; then
12683 $as_echo_n "(cached) " >&6
12684 else
12685 ac_cv_header_xf4bpp_h=$ac_header_preproc
12686 fi
12687 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf4bpp_h" >&5
12688 $as_echo "$ac_cv_header_xf4bpp_h" >&6; }
12689
12690 fi
12691 if test "x$ac_cv_header_xf4bpp_h" = x""yes; then
12692
12693 cat >>confdefs.h <<\_ACEOF
12694 #define HAVE_XF4BPP 1
12695 _ACEOF
12696
12697 fi
12698
12699
12700 CPPFLAGS="$SAVE_CPPFLAGS"
12701
12702 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
12703
12704 pkg_failed=no
12705 { $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5
12706 $as_echo_n "checking for PCIACCESS... " >&6; }
12707
12708 if test -n "$PCIACCESS_CFLAGS"; then
12709 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
12710 elif test -n "$PKG_CONFIG"; then
12711 if test -n "$PKG_CONFIG" && \
12712 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
12713 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
12714 ac_status=$?
12715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); }; then
12717 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
12718 else
12719 pkg_failed=yes
12720 fi
12721 else
12722 pkg_failed=untried
12723 fi
12724 if test -n "$PCIACCESS_LIBS"; then
12725 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
12726 elif test -n "$PKG_CONFIG"; then
12727 if test -n "$PKG_CONFIG" && \
12728 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
12729 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
12730 ac_status=$?
12731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); }; then
12733 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
12734 else
12735 pkg_failed=yes
12736 fi
12737 else
12738 pkg_failed=untried
12739 fi
12740
12741
12742
12743 if test $pkg_failed = yes; then
12744
12745 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12746 _pkg_short_errors_supported=yes
12747 else
12748 _pkg_short_errors_supported=no
12749 fi
12750 if test $_pkg_short_errors_supported = yes; then
12751 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
12752 else
12753 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
12754 fi
12755 # Put the nasty error message in config.log where it belongs
12756 echo "$PCIACCESS_PKG_ERRORS" >&5
12757
12758 { { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met:
12759
12760 $PCIACCESS_PKG_ERRORS
12761
12762 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12763 installed software in a non-standard prefix.
12764
12765 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12766 and PCIACCESS_LIBS to avoid the need to call pkg-config.
12767 See the pkg-config man page for more details.
12768 " >&5
12769 $as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met:
12770
12771 $PCIACCESS_PKG_ERRORS
12772
12773 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12774 installed software in a non-standard prefix.
12775
12776 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12777 and PCIACCESS_LIBS to avoid the need to call pkg-config.
12778 See the pkg-config man page for more details.
12779 " >&2;}
12780 { (exit 1); exit 1; }; }
12781 elif test $pkg_failed = untried; then
12782 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12784 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12785 is in your PATH or set the PKG_CONFIG environment variable to the full
12786 path to pkg-config.
12787
12788 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12789 and PCIACCESS_LIBS to avoid the need to call pkg-config.
12790 See the pkg-config man page for more details.
12791
12792 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12793 See \`config.log' for more details." >&5
12794 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12795 is in your PATH or set the PKG_CONFIG environment variable to the full
12796 path to pkg-config.
12797
12798 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12799 and PCIACCESS_LIBS to avoid the need to call pkg-config.
12800 See the pkg-config man page for more details.
12801
12802 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12803 See \`config.log' for more details." >&2;}
12804 { (exit 1); exit 1; }; }; }
12805 else
12806 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
12807 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
12808 { $as_echo "$as_me:$LINENO: result: yes" >&5
12809 $as_echo "yes" >&6; }
12810 :
12811 fi
12812 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
12813 fi
12814 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
12815 XSERVER_LIBPCIACCESS_TRUE=
12816 XSERVER_LIBPCIACCESS_FALSE='#'
12817 else
12818 XSERVER_LIBPCIACCESS_TRUE='#'
12819 XSERVER_LIBPCIACCESS_FALSE=
12820 fi
12821
12822
12823 # Checks for header files.
12824 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12825 $as_echo_n "checking for ANSI C header files... " >&6; }
12826 if test "${ac_cv_header_stdc+set}" = set; then
12827 $as_echo_n "(cached) " >&6
12828 else
12829 cat >conftest.$ac_ext <<_ACEOF
12830 /* confdefs.h. */
12831 _ACEOF
12832 cat confdefs.h >>conftest.$ac_ext
12833 cat >>conftest.$ac_ext <<_ACEOF
12834 /* end confdefs.h. */
12835 #include <stdlib.h>
12836 #include <stdarg.h>
12837 #include <string.h>
12838 #include <float.h>
12839
12840 int
12841 main ()
12842 {
12843
12844 ;
12845 return 0;
12846 }
12847 _ACEOF
12848 rm -f conftest.$ac_objext
12849 if { (ac_try="$ac_compile"
12850 case "(($ac_try" in
12851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12852 *) ac_try_echo=$ac_try;;
12853 esac
12854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12855 $as_echo "$ac_try_echo") >&5
12856 (eval "$ac_compile") 2>conftest.er1
12857 ac_status=$?
12858 grep -v '^ *+' conftest.er1 >conftest.err
12859 rm -f conftest.er1
12860 cat conftest.err >&5
12861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); } && {
12863 test -z "$ac_c_werror_flag" ||
12864 test ! -s conftest.err
12865 } && test -s conftest.$ac_objext; then
12866 ac_cv_header_stdc=yes
12867 else
12868 $as_echo "$as_me: failed program was:" >&5
12869 sed 's/^/| /' conftest.$ac_ext >&5
12870
12871 ac_cv_header_stdc=no
12872 fi
12873
12874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12875
12876 if test $ac_cv_header_stdc = yes; then
12877 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12878 cat >conftest.$ac_ext <<_ACEOF
12879 /* confdefs.h. */
12880 _ACEOF
12881 cat confdefs.h >>conftest.$ac_ext
12882 cat >>conftest.$ac_ext <<_ACEOF
12883 /* end confdefs.h. */
12884 #include <string.h>
12885
12886 _ACEOF
12887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12888 $EGREP "memchr" >/dev/null 2>&1; then
12889 :
12890 else
12891 ac_cv_header_stdc=no
12892 fi
12893 rm -f conftest*
12894
12895 fi
12896
12897 if test $ac_cv_header_stdc = yes; then
12898 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12899 cat >conftest.$ac_ext <<_ACEOF
12900 /* confdefs.h. */
12901 _ACEOF
12902 cat confdefs.h >>conftest.$ac_ext
12903 cat >>conftest.$ac_ext <<_ACEOF
12904 /* end confdefs.h. */
12905 #include <stdlib.h>
12906
12907 _ACEOF
12908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12909 $EGREP "free" >/dev/null 2>&1; then
12910 :
12911 else
12912 ac_cv_header_stdc=no
12913 fi
12914 rm -f conftest*
12915
12916 fi
12917
12918 if test $ac_cv_header_stdc = yes; then
12919 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12920 if test "$cross_compiling" = yes; then
12921 :
12922 else
12923 cat >conftest.$ac_ext <<_ACEOF
12924 /* confdefs.h. */
12925 _ACEOF
12926 cat confdefs.h >>conftest.$ac_ext
12927 cat >>conftest.$ac_ext <<_ACEOF
12928 /* end confdefs.h. */
12929 #include <ctype.h>
12930 #include <stdlib.h>
12931 #if ((' ' & 0x0FF) == 0x020)
12932 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12933 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12934 #else
12935 # define ISLOWER(c) \
12936 (('a' <= (c) && (c) <= 'i') \
12937 || ('j' <= (c) && (c) <= 'r') \
12938 || ('s' <= (c) && (c) <= 'z'))
12939 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12940 #endif
12941
12942 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12943 int
12944 main ()
12945 {
12946 int i;
12947 for (i = 0; i < 256; i++)
12948 if (XOR (islower (i), ISLOWER (i))
12949 || toupper (i) != TOUPPER (i))
12950 return 2;
12951 return 0;
12952 }
12953 _ACEOF
12954 rm -f conftest$ac_exeext
12955 if { (ac_try="$ac_link"
12956 case "(($ac_try" in
12957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12958 *) ac_try_echo=$ac_try;;
12959 esac
12960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12961 $as_echo "$ac_try_echo") >&5
12962 (eval "$ac_link") 2>&5
12963 ac_status=$?
12964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12966 { (case "(($ac_try" in
12967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12968 *) ac_try_echo=$ac_try;;
12969 esac
12970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12971 $as_echo "$ac_try_echo") >&5
12972 (eval "$ac_try") 2>&5
12973 ac_status=$?
12974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); }; }; then
12976 :
12977 else
12978 $as_echo "$as_me: program exited with status $ac_status" >&5
12979 $as_echo "$as_me: failed program was:" >&5
12980 sed 's/^/| /' conftest.$ac_ext >&5
12981
12982 ( exit $ac_status )
12983 ac_cv_header_stdc=no
12984 fi
12985 rm -rf conftest.dSYM
12986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12987 fi
12988
12989
12990 fi
12991 fi
12992 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12993 $as_echo "$ac_cv_header_stdc" >&6; }
12994 if test $ac_cv_header_stdc = yes; then
12995
12996 cat >>confdefs.h <<\_ACEOF
12997 #define STDC_HEADERS 1
12998 _ACEOF
12999
13000 fi
13001
13002
13003
13004
13005
13006 DRIVER_NAME=tseng
13007
13008
13009
13010
13011
13012 if test x$APP_MAN_SUFFIX = x ; then
13013 APP_MAN_SUFFIX=1
13014 fi
13015 if test x$APP_MAN_DIR = x ; then
13016 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
13017 fi
13018
13019 if test x$LIB_MAN_SUFFIX = x ; then
13020 LIB_MAN_SUFFIX=3
13021 fi
13022 if test x$LIB_MAN_DIR = x ; then
13023 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
13024 fi
13025
13026 if test x$FILE_MAN_SUFFIX = x ; then
13027 case $host_os in
13028 solaris*) FILE_MAN_SUFFIX=4 ;;
13029 *) FILE_MAN_SUFFIX=5 ;;
13030 esac
13031 fi
13032 if test x$FILE_MAN_DIR = x ; then
13033 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
13034 fi
13035
13036 if test x$MISC_MAN_SUFFIX = x ; then
13037 case $host_os in
13038 solaris*) MISC_MAN_SUFFIX=5 ;;
13039 *) MISC_MAN_SUFFIX=7 ;;
13040 esac
13041 fi
13042 if test x$MISC_MAN_DIR = x ; then
13043 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
13044 fi
13045
13046 if test x$DRIVER_MAN_SUFFIX = x ; then
13047 case $host_os in
13048 solaris*) DRIVER_MAN_SUFFIX=7 ;;
13049 *) DRIVER_MAN_SUFFIX=4 ;;
13050 esac
13051 fi
13052 if test x$DRIVER_MAN_DIR = x ; then
13053 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
13054 fi
13055
13056 if test x$ADMIN_MAN_SUFFIX = x ; then
13057 case $host_os in
13058 solaris*) ADMIN_MAN_SUFFIX=1m ;;
13059 *) ADMIN_MAN_SUFFIX=8 ;;
13060 esac
13061 fi
13062 if test x$ADMIN_MAN_DIR = x ; then
13063 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
13064 fi
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082 # Check whether --with-release-version was given.
13083 if test "${with_release_version+set}" = set; then
13084 withval=$with_release_version; RELEASE_VERSION="$withval"
13085 else
13086 RELEASE_VERSION=""
13087 fi
13088
13089 if test "x$RELEASE_VERSION" != "x"; then
13090 PACKAGE="$PACKAGE-$RELEASE_VERSION"
13091 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
13092 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
13093 $as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
13094 fi
13095
13096 cat >>confdefs.h <<_ACEOF
13097 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
13098 _ACEOF
13099
13100 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
13101 if test "x$PVM" = "x"; then
13102 PVM="0"
13103 fi
13104
13105 cat >>confdefs.h <<_ACEOF
13106 #define PACKAGE_VERSION_MINOR $PVM
13107 _ACEOF
13108
13109 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
13110 if test "x$PVP" = "x"; then
13111 PVP="0"
13112 fi
13113
13114 cat >>confdefs.h <<_ACEOF
13115 #define PACKAGE_VERSION_PATCHLEVEL $PVP
13116 _ACEOF
13117
13118
13119
13120 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
13121
13122 cat >confcache <<\_ACEOF
13123 # This file is a shell script that caches the results of configure
13124 # tests run on this system so they can be shared between configure
13125 # scripts and configure runs, see configure's option --config-cache.
13126 # It is not useful on other systems. If it contains results you don't
13127 # want to keep, you may remove or edit it.
13128 #
13129 # config.status only pays attention to the cache file if you give it
13130 # the --recheck option to rerun configure.
13131 #
13132 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13133 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13134 # following values.
13135
13136 _ACEOF
13137
13138 # The following way of writing the cache mishandles newlines in values,
13139 # but we know of no workaround that is simple, portable, and efficient.
13140 # So, we kill variables containing newlines.
13141 # Ultrix sh set writes to stderr and can't be redirected directly,
13142 # and sets the high bit in the cache file unless we assign to the vars.
13143 (
13144 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13145 eval ac_val=\$$ac_var
13146 case $ac_val in #(
13147 *${as_nl}*)
13148 case $ac_var in #(
13149 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13150 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13151 esac
13152 case $ac_var in #(
13153 _ | IFS | as_nl) ;; #(
13154 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13155 *) $as_unset $ac_var ;;
13156 esac ;;
13157 esac
13158 done
13159
13160 (set) 2>&1 |
13161 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13162 *${as_nl}ac_space=\ *)
13163 # `set' does not quote correctly, so add quotes (double-quote
13164 # substitution turns \\\\ into \\, and sed turns \\ into \).
13165 sed -n \
13166 "s/'/'\\\\''/g;
13167 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13168 ;; #(
13169 *)
13170 # `set' quotes correctly as required by POSIX, so do not add quotes.
13171 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13172 ;;
13173 esac |
13174 sort
13175 ) |
13176 sed '
13177 /^ac_cv_env_/b end
13178 t clear
13179 :clear
13180 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13181 t end
13182 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13183 :end' >>confcache
13184 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13185 if test -w "$cache_file"; then
13186 test "x$cache_file" != "x/dev/null" &&
13187 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13188 $as_echo "$as_me: updating cache $cache_file" >&6;}
13189 cat confcache >$cache_file
13190 else
13191 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13192 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13193 fi
13194 fi
13195 rm -f confcache
13196
13197 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13198 # Let make expand exec_prefix.
13199 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13200
13201 DEFS=-DHAVE_CONFIG_H
13202
13203 ac_libobjs=
13204 ac_ltlibobjs=
13205 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13206 # 1. Remove the extension, and $U if already installed.
13207 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13208 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13209 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13210 # will be set to the directory where LIBOBJS objects are built.
13211 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13212 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13213 done
13214 LIBOBJS=$ac_libobjs
13215
13216 LTLIBOBJS=$ac_ltlibobjs
13217
13218
13219 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13220 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13221 Usually this means the macro was only invoked conditionally." >&5
13222 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13223 Usually this means the macro was only invoked conditionally." >&2;}
13224 { (exit 1); exit 1; }; }
13225 fi
13226 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13227 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13228 Usually this means the macro was only invoked conditionally." >&5
13229 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
13230 Usually this means the macro was only invoked conditionally." >&2;}
13231 { (exit 1); exit 1; }; }
13232 fi
13233 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13234 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13235 Usually this means the macro was only invoked conditionally." >&5
13236 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13237 Usually this means the macro was only invoked conditionally." >&2;}
13238 { (exit 1); exit 1; }; }
13239 fi
13240 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13241 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13242 Usually this means the macro was only invoked conditionally." >&5
13243 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13244 Usually this means the macro was only invoked conditionally." >&2;}
13245 { (exit 1); exit 1; }; }
13246 fi
13247 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
13248 { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
13249 Usually this means the macro was only invoked conditionally." >&5
13250 $as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
13251 Usually this means the macro was only invoked conditionally." >&2;}
13252 { (exit 1); exit 1; }; }
13253 fi
13254
13255 : ${CONFIG_STATUS=./config.status}
13256 ac_write_fail=0
13257 ac_clean_files_save=$ac_clean_files
13258 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13259 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13260 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13261 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13262 #! $SHELL
13263 # Generated by $as_me.
13264 # Run this file to recreate the current configuration.
13265 # Compiler output produced by configure, useful for debugging
13266 # configure, is in config.log if it exists.
13267
13268 debug=false
13269 ac_cs_recheck=false
13270 ac_cs_silent=false
13271 SHELL=\${CONFIG_SHELL-$SHELL}
13272 _ACEOF
13273
13274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13275 ## --------------------- ##
13276 ## M4sh Initialization. ##
13277 ## --------------------- ##
13278
13279 # Be more Bourne compatible
13280 DUALCASE=1; export DUALCASE # for MKS sh
13281 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13282 emulate sh
13283 NULLCMD=:
13284 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13285 # is contrary to our usage. Disable this feature.
13286 alias -g '${1+"$@"}'='"$@"'
13287 setopt NO_GLOB_SUBST
13288 else
13289 case `(set -o) 2>/dev/null` in
13290 *posix*) set -o posix ;;
13291 esac
13292
13293 fi
13294
13295
13296
13297
13298 # PATH needs CR
13299 # Avoid depending upon Character Ranges.
13300 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13301 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13302 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13303 as_cr_digits='0123456789'
13304 as_cr_alnum=$as_cr_Letters$as_cr_digits
13305
13306 as_nl='
13307 '
13308 export as_nl
13309 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13310 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13311 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13312 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13313 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13314 as_echo='printf %s\n'
13315 as_echo_n='printf %s'
13316 else
13317 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13318 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13319 as_echo_n='/usr/ucb/echo -n'
13320 else
13321 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13322 as_echo_n_body='eval
13323 arg=$1;
13324 case $arg in
13325 *"$as_nl"*)
13326 expr "X$arg" : "X\\(.*\\)$as_nl";
13327 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13328 esac;
13329 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13330 '
13331 export as_echo_n_body
13332 as_echo_n='sh -c $as_echo_n_body as_echo'
13333 fi
13334 export as_echo_body
13335 as_echo='sh -c $as_echo_body as_echo'
13336 fi
13337
13338 # The user is always right.
13339 if test "${PATH_SEPARATOR+set}" != set; then
13340 PATH_SEPARATOR=:
13341 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13342 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13343 PATH_SEPARATOR=';'
13344 }
13345 fi
13346
13347 # Support unset when possible.
13348 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13349 as_unset=unset
13350 else
13351 as_unset=false
13352 fi
13353
13354
13355 # IFS
13356 # We need space, tab and new line, in precisely that order. Quoting is
13357 # there to prevent editors from complaining about space-tab.
13358 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13359 # splitting by setting IFS to empty value.)
13360 IFS=" "" $as_nl"
13361
13362 # Find who we are. Look in the path if we contain no directory separator.
13363 case $0 in
13364 *[\\/]* ) as_myself=$0 ;;
13365 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13366 for as_dir in $PATH
13367 do
13368 IFS=$as_save_IFS
13369 test -z "$as_dir" && as_dir=.
13370 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13371 done
13372 IFS=$as_save_IFS
13373
13374 ;;
13375 esac
13376 # We did not find ourselves, most probably we were run as `sh COMMAND'
13377 # in which case we are not to be found in the path.
13378 if test "x$as_myself" = x; then
13379 as_myself=$0
13380 fi
13381 if test ! -f "$as_myself"; then
13382 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13383 { (exit 1); exit 1; }
13384 fi
13385
13386 # Work around bugs in pre-3.0 UWIN ksh.
13387 for as_var in ENV MAIL MAILPATH
13388 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13389 done
13390 PS1='$ '
13391 PS2='> '
13392 PS4='+ '
13393
13394 # NLS nuisances.
13395 LC_ALL=C
13396 export LC_ALL
13397 LANGUAGE=C
13398 export LANGUAGE
13399
13400 # Required to use basename.
13401 if expr a : '\(a\)' >/dev/null 2>&1 &&
13402 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13403 as_expr=expr
13404 else
13405 as_expr=false
13406 fi
13407
13408 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13409 as_basename=basename
13410 else
13411 as_basename=false
13412 fi
13413
13414
13415 # Name of the executable.
13416 as_me=`$as_basename -- "$0" ||
13417 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13418 X"$0" : 'X\(//\)$' \| \
13419 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13420 $as_echo X/"$0" |
13421 sed '/^.*\/\([^/][^/]*\)\/*$/{
13422 s//\1/
13423 q
13424 }
13425 /^X\/\(\/\/\)$/{
13426 s//\1/
13427 q
13428 }
13429 /^X\/\(\/\).*/{
13430 s//\1/
13431 q
13432 }
13433 s/.*/./; q'`
13434
13435 # CDPATH.
13436 $as_unset CDPATH
13437
13438
13439
13440 as_lineno_1=$LINENO
13441 as_lineno_2=$LINENO
13442 test "x$as_lineno_1" != "x$as_lineno_2" &&
13443 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13444
13445 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13446 # uniformly replaced by the line number. The first 'sed' inserts a
13447 # line-number line after each line using $LINENO; the second 'sed'
13448 # does the real work. The second script uses 'N' to pair each
13449 # line-number line with the line containing $LINENO, and appends
13450 # trailing '-' during substitution so that $LINENO is not a special
13451 # case at line end.
13452 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13453 # scripts with optimization help from Paolo Bonzini. Blame Lee
13454 # E. McMahon (1931-1989) for sed's syntax. :-)
13455 sed -n '
13456 p
13457 /[$]LINENO/=
13458 ' <$as_myself |
13459 sed '
13460 s/[$]LINENO.*/&-/
13461 t lineno
13462 b
13463 :lineno
13464 N
13465 :loop
13466 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13467 t loop
13468 s/-\n.*//
13469 ' >$as_me.lineno &&
13470 chmod +x "$as_me.lineno" ||
13471 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13472 { (exit 1); exit 1; }; }
13473
13474 # Don't try to exec as it changes $[0], causing all sort of problems
13475 # (the dirname of $[0] is not the place where we might find the
13476 # original and so on. Autoconf is especially sensitive to this).
13477 . "./$as_me.lineno"
13478 # Exit status is that of the last command.
13479 exit
13480 }
13481
13482
13483 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13484 as_dirname=dirname
13485 else
13486 as_dirname=false
13487 fi
13488
13489 ECHO_C= ECHO_N= ECHO_T=
13490 case `echo -n x` in
13491 -n*)
13492 case `echo 'x\c'` in
13493 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13494 *) ECHO_C='\c';;
13495 esac;;
13496 *)
13497 ECHO_N='-n';;
13498 esac
13499 if expr a : '\(a\)' >/dev/null 2>&1 &&
13500 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13501 as_expr=expr
13502 else
13503 as_expr=false
13504 fi
13505
13506 rm -f conf$$ conf$$.exe conf$$.file
13507 if test -d conf$$.dir; then
13508 rm -f conf$$.dir/conf$$.file
13509 else
13510 rm -f conf$$.dir
13511 mkdir conf$$.dir 2>/dev/null
13512 fi
13513 if (echo >conf$$.file) 2>/dev/null; then
13514 if ln -s conf$$.file conf$$ 2>/dev/null; then
13515 as_ln_s='ln -s'
13516 # ... but there are two gotchas:
13517 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13518 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13519 # In both cases, we have to default to `cp -p'.
13520 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13521 as_ln_s='cp -p'
13522 elif ln conf$$.file conf$$ 2>/dev/null; then
13523 as_ln_s=ln
13524 else
13525 as_ln_s='cp -p'
13526 fi
13527 else
13528 as_ln_s='cp -p'
13529 fi
13530 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13531 rmdir conf$$.dir 2>/dev/null
13532
13533 if mkdir -p . 2>/dev/null; then
13534 as_mkdir_p=:
13535 else
13536 test -d ./-p && rmdir ./-p
13537 as_mkdir_p=false
13538 fi
13539
13540 if test -x / >/dev/null 2>&1; then
13541 as_test_x='test -x'
13542 else
13543 if ls -dL / >/dev/null 2>&1; then
13544 as_ls_L_option=L
13545 else
13546 as_ls_L_option=
13547 fi
13548 as_test_x='
13549 eval sh -c '\''
13550 if test -d "$1"; then
13551 test -d "$1/.";
13552 else
13553 case $1 in
13554 -*)set "./$1";;
13555 esac;
13556 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13557 ???[sx]*):;;*)false;;esac;fi
13558 '\'' sh
13559 '
13560 fi
13561 as_executable_p=$as_test_x
13562
13563 # Sed expression to map a string onto a valid CPP name.
13564 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13565
13566 # Sed expression to map a string onto a valid variable name.
13567 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13568
13569
13570 exec 6>&1
13571
13572 # Save the log message, to keep $[0] and so on meaningful, and to
13573 # report actual input values of CONFIG_FILES etc. instead of their
13574 # values after options handling.
13575 ac_log="
13576 This file was extended by xf86-video-tseng $as_me 1.2.2, which was
13577 generated by GNU Autoconf 2.63. Invocation command line was
13578
13579 CONFIG_FILES = $CONFIG_FILES
13580 CONFIG_HEADERS = $CONFIG_HEADERS
13581 CONFIG_LINKS = $CONFIG_LINKS
13582 CONFIG_COMMANDS = $CONFIG_COMMANDS
13583 $ $0 $@
13584
13585 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13586 "
13587
13588 _ACEOF
13589
13590 case $ac_config_files in *"
13591 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13592 esac
13593
13594 case $ac_config_headers in *"
13595 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13596 esac
13597
13598
13599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13600 # Files that config.status was made for.
13601 config_files="$ac_config_files"
13602 config_headers="$ac_config_headers"
13603 config_commands="$ac_config_commands"
13604
13605 _ACEOF
13606
13607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13608 ac_cs_usage="\
13609 \`$as_me' instantiates files from templates according to the
13610 current configuration.
13611
13612 Usage: $0 [OPTION]... [FILE]...
13613
13614 -h, --help print this help, then exit
13615 -V, --version print version number and configuration settings, then exit
13616 -q, --quiet, --silent
13617 do not print progress messages
13618 -d, --debug don't remove temporary files
13619 --recheck update $as_me by reconfiguring in the same conditions
13620 --file=FILE[:TEMPLATE]
13621 instantiate the configuration file FILE
13622 --header=FILE[:TEMPLATE]
13623 instantiate the configuration header FILE
13624
13625 Configuration files:
13626 $config_files
13627
13628 Configuration headers:
13629 $config_headers
13630
13631 Configuration commands:
13632 $config_commands
13633
13634 Report bugs to <bug-autoconf (at] gnu.org>."
13635
13636 _ACEOF
13637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13638 ac_cs_version="\\
13639 xf86-video-tseng config.status 1.2.2
13640 configured by $0, generated by GNU Autoconf 2.63,
13641 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13642
13643 Copyright (C) 2008 Free Software Foundation, Inc.
13644 This config.status script is free software; the Free Software Foundation
13645 gives unlimited permission to copy, distribute and modify it."
13646
13647 ac_pwd='$ac_pwd'
13648 srcdir='$srcdir'
13649 INSTALL='$INSTALL'
13650 MKDIR_P='$MKDIR_P'
13651 AWK='$AWK'
13652 test -n "\$AWK" || AWK=awk
13653 _ACEOF
13654
13655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13656 # The default lists apply if the user does not specify any file.
13657 ac_need_defaults=:
13658 while test $# != 0
13659 do
13660 case $1 in
13661 --*=*)
13662 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13663 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13664 ac_shift=:
13665 ;;
13666 *)
13667 ac_option=$1
13668 ac_optarg=$2
13669 ac_shift=shift
13670 ;;
13671 esac
13672
13673 case $ac_option in
13674 # Handling of the options.
13675 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13676 ac_cs_recheck=: ;;
13677 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13678 $as_echo "$ac_cs_version"; exit ;;
13679 --debug | --debu | --deb | --de | --d | -d )
13680 debug=: ;;
13681 --file | --fil | --fi | --f )
13682 $ac_shift
13683 case $ac_optarg in
13684 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13685 esac
13686 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13687 ac_need_defaults=false;;
13688 --header | --heade | --head | --hea )
13689 $ac_shift
13690 case $ac_optarg in
13691 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13692 esac
13693 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13694 ac_need_defaults=false;;
13695 --he | --h)
13696 # Conflict between --help and --header
13697 { $as_echo "$as_me: error: ambiguous option: $1
13698 Try \`$0 --help' for more information." >&2
13699 { (exit 1); exit 1; }; };;
13700 --help | --hel | -h )
13701 $as_echo "$ac_cs_usage"; exit ;;
13702 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13703 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13704 ac_cs_silent=: ;;
13705
13706 # This is an error.
13707 -*) { $as_echo "$as_me: error: unrecognized option: $1
13708 Try \`$0 --help' for more information." >&2
13709 { (exit 1); exit 1; }; } ;;
13710
13711 *) ac_config_targets="$ac_config_targets $1"
13712 ac_need_defaults=false ;;
13713
13714 esac
13715 shift
13716 done
13717
13718 ac_configure_extra_args=
13719
13720 if $ac_cs_silent; then
13721 exec 6>/dev/null
13722 ac_configure_extra_args="$ac_configure_extra_args --silent"
13723 fi
13724
13725 _ACEOF
13726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13727 if \$ac_cs_recheck; then
13728 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13729 shift
13730 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13731 CONFIG_SHELL='$SHELL'
13732 export CONFIG_SHELL
13733 exec "\$@"
13734 fi
13735
13736 _ACEOF
13737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13738 exec 5>>config.log
13739 {
13740 echo
13741 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13742 ## Running $as_me. ##
13743 _ASBOX
13744 $as_echo "$ac_log"
13745 } >&5
13746
13747 _ACEOF
13748 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13749 #
13750 # INIT-COMMANDS
13751 #
13752 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13753
13754
13755 # The HP-UX ksh and POSIX shell print the target directory to stdout
13756 # if CDPATH is set.
13757 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13758
13759 sed_quote_subst='$sed_quote_subst'
13760 double_quote_subst='$double_quote_subst'
13761 delay_variable_subst='$delay_variable_subst'
13762 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13763 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13764 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13765 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13766 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13767 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13768 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13769 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13770 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13771 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13772 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13773 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13774 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13775 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13776 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13777 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13778 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13779 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13780 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13781 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13782 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13783 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13784 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13785 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13786 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13787 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13788 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13789 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13790 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13791 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13792 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13793 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13794 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13795 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13796 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13797 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13798 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13799 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13800 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13801 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13802 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13803 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13804 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13805 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13806 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"`'
13807 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"`'
13808 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13809 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13810 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13811 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13812 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13813 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13814 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13815 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13816 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13817 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13818 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13819 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13820 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13821 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13822 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13823 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13824 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13825 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13826 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13827 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13828 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13829 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13830 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13831 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13832 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13833 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13834 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13835 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13836 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13837 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13838 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13839 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13840 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13841 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13842 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13843 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13844 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13845 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13846 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13847 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13848 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13849 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13850 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13851 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13852 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13853 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13854 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13855 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13856 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13857 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13858 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13859 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13860 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13861 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13862 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13863 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13864 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13865 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13866 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13867 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13868 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13869 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13870 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13871 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13872 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13873 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13874 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13875 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13876 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13877 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13878 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13879 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13880
13881 LTCC='$LTCC'
13882 LTCFLAGS='$LTCFLAGS'
13883 compiler='$compiler_DEFAULT'
13884
13885 # Quote evaled strings.
13886 for var in SED \
13887 GREP \
13888 EGREP \
13889 FGREP \
13890 LD \
13891 NM \
13892 LN_S \
13893 lt_SP2NL \
13894 lt_NL2SP \
13895 reload_flag \
13896 OBJDUMP \
13897 deplibs_check_method \
13898 file_magic_cmd \
13899 AR \
13900 AR_FLAGS \
13901 STRIP \
13902 RANLIB \
13903 CC \
13904 CFLAGS \
13905 compiler \
13906 lt_cv_sys_global_symbol_pipe \
13907 lt_cv_sys_global_symbol_to_cdecl \
13908 lt_cv_sys_global_symbol_to_c_name_address \
13909 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13910 SHELL \
13911 ECHO \
13912 lt_prog_compiler_no_builtin_flag \
13913 lt_prog_compiler_wl \
13914 lt_prog_compiler_pic \
13915 lt_prog_compiler_static \
13916 lt_cv_prog_compiler_c_o \
13917 need_locks \
13918 DSYMUTIL \
13919 NMEDIT \
13920 LIPO \
13921 OTOOL \
13922 OTOOL64 \
13923 shrext_cmds \
13924 export_dynamic_flag_spec \
13925 whole_archive_flag_spec \
13926 compiler_needs_object \
13927 with_gnu_ld \
13928 allow_undefined_flag \
13929 no_undefined_flag \
13930 hardcode_libdir_flag_spec \
13931 hardcode_libdir_flag_spec_ld \
13932 hardcode_libdir_separator \
13933 fix_srcfile_path \
13934 exclude_expsyms \
13935 include_expsyms \
13936 file_list_spec \
13937 variables_saved_for_relink \
13938 libname_spec \
13939 library_names_spec \
13940 soname_spec \
13941 finish_eval \
13942 old_striplib \
13943 striplib; do
13944 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13945 *[\\\\\\\`\\"\\\$]*)
13946 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13947 ;;
13948 *)
13949 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13950 ;;
13951 esac
13952 done
13953
13954 # Double-quote double-evaled strings.
13955 for var in reload_cmds \
13956 old_postinstall_cmds \
13957 old_postuninstall_cmds \
13958 old_archive_cmds \
13959 extract_expsyms_cmds \
13960 old_archive_from_new_cmds \
13961 old_archive_from_expsyms_cmds \
13962 archive_cmds \
13963 archive_expsym_cmds \
13964 module_cmds \
13965 module_expsym_cmds \
13966 export_symbols_cmds \
13967 prelink_cmds \
13968 postinstall_cmds \
13969 postuninstall_cmds \
13970 finish_cmds \
13971 sys_lib_search_path_spec \
13972 sys_lib_dlsearch_path_spec; do
13973 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13974 *[\\\\\\\`\\"\\\$]*)
13975 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13976 ;;
13977 *)
13978 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13979 ;;
13980 esac
13981 done
13982
13983 # Fix-up fallback echo if it was mangled by the above quoting rules.
13984 case \$lt_ECHO in
13985 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13986 ;;
13987 esac
13988
13989 ac_aux_dir='$ac_aux_dir'
13990 xsi_shell='$xsi_shell'
13991 lt_shell_append='$lt_shell_append'
13992
13993 # See if we are running on zsh, and set the options which allow our
13994 # commands through without removal of \ escapes INIT.
13995 if test -n "\${ZSH_VERSION+set}" ; then
13996 setopt NO_GLOB_SUBST
13997 fi
13998
13999
14000 PACKAGE='$PACKAGE'
14001 VERSION='$VERSION'
14002 TIMESTAMP='$TIMESTAMP'
14003 RM='$RM'
14004 ofile='$ofile'
14005
14006
14007
14008
14009 _ACEOF
14010
14011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14012
14013 # Handling of arguments.
14014 for ac_config_target in $ac_config_targets
14015 do
14016 case $ac_config_target in
14017 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14018 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14019 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14020 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14021 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14022 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14023
14024 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14025 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14026 { (exit 1); exit 1; }; };;
14027 esac
14028 done
14029
14030
14031 # If the user did not use the arguments to specify the items to instantiate,
14032 # then the envvar interface is used. Set only those that are not.
14033 # We use the long form for the default assignment because of an extremely
14034 # bizarre bug on SunOS 4.1.3.
14035 if $ac_need_defaults; then
14036 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14037 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14038 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14039 fi
14040
14041 # Have a temporary directory for convenience. Make it in the build tree
14042 # simply because there is no reason against having it here, and in addition,
14043 # creating and moving files from /tmp can sometimes cause problems.
14044 # Hook for its removal unless debugging.
14045 # Note that there is a small window in which the directory will not be cleaned:
14046 # after its creation but before its name has been assigned to `$tmp'.
14047 $debug ||
14048 {
14049 tmp=
14050 trap 'exit_status=$?
14051 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14052 ' 0
14053 trap '{ (exit 1); exit 1; }' 1 2 13 15
14054 }
14055 # Create a (secure) tmp directory for tmp files.
14056
14057 {
14058 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14059 test -n "$tmp" && test -d "$tmp"
14060 } ||
14061 {
14062 tmp=./conf$$-$RANDOM
14063 (umask 077 && mkdir "$tmp")
14064 } ||
14065 {
14066 $as_echo "$as_me: cannot create a temporary directory in ." >&2
14067 { (exit 1); exit 1; }
14068 }
14069
14070 # Set up the scripts for CONFIG_FILES section.
14071 # No need to generate them if there are no CONFIG_FILES.
14072 # This happens for instance with `./config.status config.h'.
14073 if test -n "$CONFIG_FILES"; then
14074
14075
14076 ac_cr='
'
14078 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14079 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14080 ac_cs_awk_cr='\\r'
14081 else
14082 ac_cs_awk_cr=$ac_cr
14083 fi
14084
14085 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14086 _ACEOF
14087
14088
14089 {
14090 echo "cat >conf$$subs.awk <<_ACEOF" &&
14091 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14092 echo "_ACEOF"
14093 } >conf$$subs.sh ||
14094 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14095 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14096 { (exit 1); exit 1; }; }
14097 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14098 ac_delim='%!_!# '
14099 for ac_last_try in false false false false false :; do
14100 . ./conf$$subs.sh ||
14101 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14102 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14103 { (exit 1); exit 1; }; }
14104
14105 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14106 if test $ac_delim_n = $ac_delim_num; then
14107 break
14108 elif $ac_last_try; then
14109 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14110 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14111 { (exit 1); exit 1; }; }
14112 else
14113 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14114 fi
14115 done
14116 rm -f conf$$subs.sh
14117
14118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14119 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14120 _ACEOF
14121 sed -n '
14122 h
14123 s/^/S["/; s/!.*/"]=/
14124 p
14125 g
14126 s/^[^!]*!//
14127 :repl
14128 t repl
14129 s/'"$ac_delim"'$//
14130 t delim
14131 :nl
14132 h
14133 s/\(.\{148\}\).*/\1/
14134 t more1
14135 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14136 p
14137 n
14138 b repl
14139 :more1
14140 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14141 p
14142 g
14143 s/.\{148\}//
14144 t nl
14145 :delim
14146 h
14147 s/\(.\{148\}\).*/\1/
14148 t more2
14149 s/["\\]/\\&/g; s/^/"/; s/$/"/
14150 p
14151 b
14152 :more2
14153 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14154 p
14155 g
14156 s/.\{148\}//
14157 t delim
14158 ' <conf$$subs.awk | sed '
14159 /^[^""]/{
14160 N
14161 s/\n//
14162 }
14163 ' >>$CONFIG_STATUS || ac_write_fail=1
14164 rm -f conf$$subs.awk
14165 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14166 _ACAWK
14167 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14168 for (key in S) S_is_set[key] = 1
14169 FS = ""
14170
14171 }
14172 {
14173 line = $ 0
14174 nfields = split(line, field, "@")
14175 substed = 0
14176 len = length(field[1])
14177 for (i = 2; i < nfields; i++) {
14178 key = field[i]
14179 keylen = length(key)
14180 if (S_is_set[key]) {
14181 value = S[key]
14182 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14183 len += length(value) + length(field[++i])
14184 substed = 1
14185 } else
14186 len += 1 + keylen
14187 }
14188
14189 print line
14190 }
14191
14192 _ACAWK
14193 _ACEOF
14194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14195 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14196 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14197 else
14198 cat
14199 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14200 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14201 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
14202 { (exit 1); exit 1; }; }
14203 _ACEOF
14204
14205 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14206 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14207 # trailing colons and then remove the whole line if VPATH becomes empty
14208 # (actually we leave an empty line to preserve line numbers).
14209 if test "x$srcdir" = x.; then
14210 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14211 s/:*\$(srcdir):*/:/
14212 s/:*\${srcdir}:*/:/
14213 s/:*@srcdir@:*/:/
14214 s/^\([^=]*=[ ]*\):*/\1/
14215 s/:*$//
14216 s/^[^=]*=[ ]*$//
14217 }'
14218 fi
14219
14220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14221 fi # test -n "$CONFIG_FILES"
14222
14223 # Set up the scripts for CONFIG_HEADERS section.
14224 # No need to generate them if there are no CONFIG_HEADERS.
14225 # This happens for instance with `./config.status Makefile'.
14226 if test -n "$CONFIG_HEADERS"; then
14227 cat >"$tmp/defines.awk" <<\_ACAWK ||
14228 BEGIN {
14229 _ACEOF
14230
14231 # Transform confdefs.h into an awk script `defines.awk', embedded as
14232 # here-document in config.status, that substitutes the proper values into
14233 # config.h.in to produce config.h.
14234
14235 # Create a delimiter string that does not exist in confdefs.h, to ease
14236 # handling of long lines.
14237 ac_delim='%!_!# '
14238 for ac_last_try in false false :; do
14239 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14240 if test -z "$ac_t"; then
14241 break
14242 elif $ac_last_try; then
14243 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14244 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14245 { (exit 1); exit 1; }; }
14246 else
14247 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14248 fi
14249 done
14250
14251 # For the awk script, D is an array of macro values keyed by name,
14252 # likewise P contains macro parameters if any. Preserve backslash
14253 # newline sequences.
14254
14255 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14256 sed -n '
14257 s/.\{148\}/&'"$ac_delim"'/g
14258 t rset
14259 :rset
14260 s/^[ ]*#[ ]*define[ ][ ]*/ /
14261 t def
14262 d
14263 :def
14264 s/\\$//
14265 t bsnl
14266 s/["\\]/\\&/g
14267 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14268 D["\1"]=" \3"/p
14269 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14270 d
14271 :bsnl
14272 s/["\\]/\\&/g
14273 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14274 D["\1"]=" \3\\\\\\n"\\/p
14275 t cont
14276 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14277 t cont
14278 d
14279 :cont
14280 n
14281 s/.\{148\}/&'"$ac_delim"'/g
14282 t clear
14283 :clear
14284 s/\\$//
14285 t bsnlc
14286 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14287 d
14288 :bsnlc
14289 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14290 b cont
14291 ' <confdefs.h | sed '
14292 s/'"$ac_delim"'/"\\\
14293 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14294
14295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14296 for (key in D) D_is_set[key] = 1
14297 FS = ""
14298 }
14299 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14300 line = \$ 0
14301 split(line, arg, " ")
14302 if (arg[1] == "#") {
14303 defundef = arg[2]
14304 mac1 = arg[3]
14305 } else {
14306 defundef = substr(arg[1], 2)
14307 mac1 = arg[2]
14308 }
14309 split(mac1, mac2, "(") #)
14310 macro = mac2[1]
14311 prefix = substr(line, 1, index(line, defundef) - 1)
14312 if (D_is_set[macro]) {
14313 # Preserve the white space surrounding the "#".
14314 print prefix "define", macro P[macro] D[macro]
14315 next
14316 } else {
14317 # Replace #undef with comments. This is necessary, for example,
14318 # in the case of _POSIX_SOURCE, which is predefined and required
14319 # on some systems where configure will not decide to define it.
14320 if (defundef == "undef") {
14321 print "/*", prefix defundef, macro, "*/"
14322 next
14323 }
14324 }
14325 }
14326 { print }
14327 _ACAWK
14328 _ACEOF
14329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14330 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14331 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14332 { (exit 1); exit 1; }; }
14333 fi # test -n "$CONFIG_HEADERS"
14334
14335
14336 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14337 shift
14338 for ac_tag
14339 do
14340 case $ac_tag in
14341 :[FHLC]) ac_mode=$ac_tag; continue;;
14342 esac
14343 case $ac_mode$ac_tag in
14344 :[FHL]*:*);;
14345 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14346 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14347 { (exit 1); exit 1; }; };;
14348 :[FH]-) ac_tag=-:-;;
14349 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14350 esac
14351 ac_save_IFS=$IFS
14352 IFS=:
14353 set x $ac_tag
14354 IFS=$ac_save_IFS
14355 shift
14356 ac_file=$1
14357 shift
14358
14359 case $ac_mode in
14360 :L) ac_source=$1;;
14361 :[FH])
14362 ac_file_inputs=
14363 for ac_f
14364 do
14365 case $ac_f in
14366 -) ac_f="$tmp/stdin";;
14367 *) # Look for the file first in the build tree, then in the source tree
14368 # (if the path is not absolute). The absolute path cannot be DOS-style,
14369 # because $ac_f cannot contain `:'.
14370 test -f "$ac_f" ||
14371 case $ac_f in
14372 [\\/$]*) false;;
14373 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14374 esac ||
14375 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14376 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14377 { (exit 1); exit 1; }; };;
14378 esac
14379 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14380 ac_file_inputs="$ac_file_inputs '$ac_f'"
14381 done
14382
14383 # Let's still pretend it is `configure' which instantiates (i.e., don't
14384 # use $as_me), people would be surprised to read:
14385 # /* config.h. Generated by config.status. */
14386 configure_input='Generated from '`
14387 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14388 `' by configure.'
14389 if test x"$ac_file" != x-; then
14390 configure_input="$ac_file. $configure_input"
14391 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14392 $as_echo "$as_me: creating $ac_file" >&6;}
14393 fi
14394 # Neutralize special characters interpreted by sed in replacement strings.
14395 case $configure_input in #(
14396 *\&* | *\|* | *\\* )
14397 ac_sed_conf_input=`$as_echo "$configure_input" |
14398 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14399 *) ac_sed_conf_input=$configure_input;;
14400 esac
14401
14402 case $ac_tag in
14403 *:-:* | *:-) cat >"$tmp/stdin" \
14404 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14405 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14406 { (exit 1); exit 1; }; } ;;
14407 esac
14408 ;;
14409 esac
14410
14411 ac_dir=`$as_dirname -- "$ac_file" ||
14412 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14413 X"$ac_file" : 'X\(//\)[^/]' \| \
14414 X"$ac_file" : 'X\(//\)$' \| \
14415 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14416 $as_echo X"$ac_file" |
14417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14418 s//\1/
14419 q
14420 }
14421 /^X\(\/\/\)[^/].*/{
14422 s//\1/
14423 q
14424 }
14425 /^X\(\/\/\)$/{
14426 s//\1/
14427 q
14428 }
14429 /^X\(\/\).*/{
14430 s//\1/
14431 q
14432 }
14433 s/.*/./; q'`
14434 { as_dir="$ac_dir"
14435 case $as_dir in #(
14436 -*) as_dir=./$as_dir;;
14437 esac
14438 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14439 as_dirs=
14440 while :; do
14441 case $as_dir in #(
14442 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14443 *) as_qdir=$as_dir;;
14444 esac
14445 as_dirs="'$as_qdir' $as_dirs"
14446 as_dir=`$as_dirname -- "$as_dir" ||
14447 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14448 X"$as_dir" : 'X\(//\)[^/]' \| \
14449 X"$as_dir" : 'X\(//\)$' \| \
14450 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14451 $as_echo X"$as_dir" |
14452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14453 s//\1/
14454 q
14455 }
14456 /^X\(\/\/\)[^/].*/{
14457 s//\1/
14458 q
14459 }
14460 /^X\(\/\/\)$/{
14461 s//\1/
14462 q
14463 }
14464 /^X\(\/\).*/{
14465 s//\1/
14466 q
14467 }
14468 s/.*/./; q'`
14469 test -d "$as_dir" && break
14470 done
14471 test -z "$as_dirs" || eval "mkdir $as_dirs"
14472 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14473 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14474 { (exit 1); exit 1; }; }; }
14475 ac_builddir=.
14476
14477 case "$ac_dir" in
14478 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14479 *)
14480 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14481 # A ".." for each directory in $ac_dir_suffix.
14482 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14483 case $ac_top_builddir_sub in
14484 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14485 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14486 esac ;;
14487 esac
14488 ac_abs_top_builddir=$ac_pwd
14489 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14490 # for backward compatibility:
14491 ac_top_builddir=$ac_top_build_prefix
14492
14493 case $srcdir in
14494 .) # We are building in place.
14495 ac_srcdir=.
14496 ac_top_srcdir=$ac_top_builddir_sub
14497 ac_abs_top_srcdir=$ac_pwd ;;
14498 [\\/]* | ?:[\\/]* ) # Absolute name.
14499 ac_srcdir=$srcdir$ac_dir_suffix;
14500 ac_top_srcdir=$srcdir
14501 ac_abs_top_srcdir=$srcdir ;;
14502 *) # Relative name.
14503 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14504 ac_top_srcdir=$ac_top_build_prefix$srcdir
14505 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14506 esac
14507 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14508
14509
14510 case $ac_mode in
14511 :F)
14512 #
14513 # CONFIG_FILE
14514 #
14515
14516 case $INSTALL in
14517 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14518 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14519 esac
14520 ac_MKDIR_P=$MKDIR_P
14521 case $MKDIR_P in
14522 [\\/$]* | ?:[\\/]* ) ;;
14523 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14524 esac
14525 _ACEOF
14526
14527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14528 # If the template does not know about datarootdir, expand it.
14529 # FIXME: This hack should be removed a few years after 2.60.
14530 ac_datarootdir_hack=; ac_datarootdir_seen=
14531
14532 ac_sed_dataroot='
14533 /datarootdir/ {
14534 p
14535 q
14536 }
14537 /@datadir@/p
14538 /@docdir@/p
14539 /@infodir@/p
14540 /@localedir@/p
14541 /@mandir@/p
14542 '
14543 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14544 *datarootdir*) ac_datarootdir_seen=yes;;
14545 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14546 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14547 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14548 _ACEOF
14549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14550 ac_datarootdir_hack='
14551 s&@datadir@&$datadir&g
14552 s&@docdir@&$docdir&g
14553 s&@infodir@&$infodir&g
14554 s&@localedir@&$localedir&g
14555 s&@mandir@&$mandir&g
14556 s&\\\${datarootdir}&$datarootdir&g' ;;
14557 esac
14558 _ACEOF
14559
14560 # Neutralize VPATH when `$srcdir' = `.'.
14561 # Shell code in configure.ac might set extrasub.
14562 # FIXME: do we really want to maintain this feature?
14563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14564 ac_sed_extra="$ac_vpsub
14565 $extrasub
14566 _ACEOF
14567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14568 :t
14569 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14570 s|@configure_input@|$ac_sed_conf_input|;t t
14571 s&@top_builddir@&$ac_top_builddir_sub&;t t
14572 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14573 s&@srcdir@&$ac_srcdir&;t t
14574 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14575 s&@top_srcdir@&$ac_top_srcdir&;t t
14576 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14577 s&@builddir@&$ac_builddir&;t t
14578 s&@abs_builddir@&$ac_abs_builddir&;t t
14579 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14580 s&@INSTALL@&$ac_INSTALL&;t t
14581 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14582 $ac_datarootdir_hack
14583 "
14584 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14585 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14586 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14587 { (exit 1); exit 1; }; }
14588
14589 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14590 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14591 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14592 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14593 which seems to be undefined. Please make sure it is defined." >&5
14594 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14595 which seems to be undefined. Please make sure it is defined." >&2;}
14596
14597 rm -f "$tmp/stdin"
14598 case $ac_file in
14599 -) cat "$tmp/out" && rm -f "$tmp/out";;
14600 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14601 esac \
14602 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14603 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14604 { (exit 1); exit 1; }; }
14605 ;;
14606 :H)
14607 #
14608 # CONFIG_HEADER
14609 #
14610 if test x"$ac_file" != x-; then
14611 {
14612 $as_echo "/* $configure_input */" \
14613 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14614 } >"$tmp/config.h" \
14615 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14616 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14617 { (exit 1); exit 1; }; }
14618 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14619 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14620 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14621 else
14622 rm -f "$ac_file"
14623 mv "$tmp/config.h" "$ac_file" \
14624 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14625 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14626 { (exit 1); exit 1; }; }
14627 fi
14628 else
14629 $as_echo "/* $configure_input */" \
14630 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14631 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14632 $as_echo "$as_me: error: could not create -" >&2;}
14633 { (exit 1); exit 1; }; }
14634 fi
14635 # Compute "$ac_file"'s index in $config_headers.
14636 _am_arg="$ac_file"
14637 _am_stamp_count=1
14638 for _am_header in $config_headers :; do
14639 case $_am_header in
14640 $_am_arg | $_am_arg:* )
14641 break ;;
14642 * )
14643 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14644 esac
14645 done
14646 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14647 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14648 X"$_am_arg" : 'X\(//\)[^/]' \| \
14649 X"$_am_arg" : 'X\(//\)$' \| \
14650 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14651 $as_echo X"$_am_arg" |
14652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14653 s//\1/
14654 q
14655 }
14656 /^X\(\/\/\)[^/].*/{
14657 s//\1/
14658 q
14659 }
14660 /^X\(\/\/\)$/{
14661 s//\1/
14662 q
14663 }
14664 /^X\(\/\).*/{
14665 s//\1/
14666 q
14667 }
14668 s/.*/./; q'`/stamp-h$_am_stamp_count
14669 ;;
14670
14671 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14672 $as_echo "$as_me: executing $ac_file commands" >&6;}
14673 ;;
14674 esac
14675
14676
14677 case $ac_file$ac_mode in
14678 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
14679 # are listed without --file. Let's play safe and only enable the eval
14680 # if we detect the quoting.
14681 case $CONFIG_FILES in
14682 *\'*) eval set x "$CONFIG_FILES" ;;
14683 *) set x $CONFIG_FILES ;;
14684 esac
14685 shift
14686 for mf
14687 do
14688 # Strip MF so we end up with the name of the file.
14689 mf=`echo "$mf" | sed -e 's/:.*$//'`
14690 # Check whether this is an Automake generated Makefile or not.
14691 # We used to match only the files named `Makefile.in', but
14692 # some people rename them; so instead we look at the file content.
14693 # Grep'ing the first line is not enough: some people post-process
14694 # each Makefile.in and add a new line on top of each file to say so.
14695 # Grep'ing the whole file is not good either: AIX grep has a line
14696 # limit of 2048, but all sed's we know have understand at least 4000.
14697 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14698 dirpart=`$as_dirname -- "$mf" ||
14699 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14700 X"$mf" : 'X\(//\)[^/]' \| \
14701 X"$mf" : 'X\(//\)$' \| \
14702 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14703 $as_echo X"$mf" |
14704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14705 s//\1/
14706 q
14707 }
14708 /^X\(\/\/\)[^/].*/{
14709 s//\1/
14710 q
14711 }
14712 /^X\(\/\/\)$/{
14713 s//\1/
14714 q
14715 }
14716 /^X\(\/\).*/{
14717 s//\1/
14718 q
14719 }
14720 s/.*/./; q'`
14721 else
14722 continue
14723 fi
14724 # Extract the definition of DEPDIR, am__include, and am__quote
14725 # from the Makefile without running `make'.
14726 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14727 test -z "$DEPDIR" && continue
14728 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14729 test -z "am__include" && continue
14730 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14731 # When using ansi2knr, U may be empty or an underscore; expand it
14732 U=`sed -n 's/^U = //p' < "$mf"`
14733 # Find all dependency output files, they are included files with
14734 # $(DEPDIR) in their names. We invoke sed twice because it is the
14735 # simplest approach to changing $(DEPDIR) to its actual value in the
14736 # expansion.
14737 for file in `sed -n "
14738 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14739 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14740 # Make sure the directory exists.
14741 test -f "$dirpart/$file" && continue
14742 fdir=`$as_dirname -- "$file" ||
14743 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14744 X"$file" : 'X\(//\)[^/]' \| \
14745 X"$file" : 'X\(//\)$' \| \
14746 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14747 $as_echo X"$file" |
14748 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14749 s//\1/
14750 q
14751 }
14752 /^X\(\/\/\)[^/].*/{
14753 s//\1/
14754 q
14755 }
14756 /^X\(\/\/\)$/{
14757 s//\1/
14758 q
14759 }
14760 /^X\(\/\).*/{
14761 s//\1/
14762 q
14763 }
14764 s/.*/./; q'`
14765 { as_dir=$dirpart/$fdir
14766 case $as_dir in #(
14767 -*) as_dir=./$as_dir;;
14768 esac
14769 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14770 as_dirs=
14771 while :; do
14772 case $as_dir in #(
14773 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14774 *) as_qdir=$as_dir;;
14775 esac
14776 as_dirs="'$as_qdir' $as_dirs"
14777 as_dir=`$as_dirname -- "$as_dir" ||
14778 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14779 X"$as_dir" : 'X\(//\)[^/]' \| \
14780 X"$as_dir" : 'X\(//\)$' \| \
14781 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14782 $as_echo X"$as_dir" |
14783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14784 s//\1/
14785 q
14786 }
14787 /^X\(\/\/\)[^/].*/{
14788 s//\1/
14789 q
14790 }
14791 /^X\(\/\/\)$/{
14792 s//\1/
14793 q
14794 }
14795 /^X\(\/\).*/{
14796 s//\1/
14797 q
14798 }
14799 s/.*/./; q'`
14800 test -d "$as_dir" && break
14801 done
14802 test -z "$as_dirs" || eval "mkdir $as_dirs"
14803 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14804 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14805 { (exit 1); exit 1; }; }; }
14806 # echo "creating $dirpart/$file"
14807 echo '# dummy' > "$dirpart/$file"
14808 done
14809 done
14810 ;;
14811 "libtool":C)
14812
14813 # See if we are running on zsh, and set the options which allow our
14814 # commands through without removal of \ escapes.
14815 if test -n "${ZSH_VERSION+set}" ; then
14816 setopt NO_GLOB_SUBST
14817 fi
14818
14819 cfgfile="${ofile}T"
14820 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14821 $RM "$cfgfile"
14822
14823 cat <<_LT_EOF >> "$cfgfile"
14824 #! $SHELL
14825
14826 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14827 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14828 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14829 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14830 #
14831 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14832 # 2006, 2007, 2008 Free Software Foundation, Inc.
14833 # Written by Gordon Matzigkeit, 1996
14834 #
14835 # This file is part of GNU Libtool.
14836 #
14837 # GNU Libtool is free software; you can redistribute it and/or
14838 # modify it under the terms of the GNU General Public License as
14839 # published by the Free Software Foundation; either version 2 of
14840 # the License, or (at your option) any later version.
14841 #
14842 # As a special exception to the GNU General Public License,
14843 # if you distribute this file as part of a program or library that
14844 # is built using GNU Libtool, you may include this file under the
14845 # same distribution terms that you use for the rest of that program.
14846 #
14847 # GNU Libtool is distributed in the hope that it will be useful,
14848 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14849 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14850 # GNU General Public License for more details.
14851 #
14852 # You should have received a copy of the GNU General Public License
14853 # along with GNU Libtool; see the file COPYING. If not, a copy
14854 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14855 # obtained by writing to the Free Software Foundation, Inc.,
14856 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14857
14858
14859 # The names of the tagged configurations supported by this script.
14860 available_tags=""
14861
14862 # ### BEGIN LIBTOOL CONFIG
14863
14864 # Whether or not to build static libraries.
14865 build_old_libs=$enable_static
14866
14867 # Which release of libtool.m4 was used?
14868 macro_version=$macro_version
14869 macro_revision=$macro_revision
14870
14871 # Whether or not to build shared libraries.
14872 build_libtool_libs=$enable_shared
14873
14874 # What type of objects to build.
14875 pic_mode=$pic_mode
14876
14877 # Whether or not to optimize for fast installation.
14878 fast_install=$enable_fast_install
14879
14880 # The host system.
14881 host_alias=$host_alias
14882 host=$host
14883 host_os=$host_os
14884
14885 # The build system.
14886 build_alias=$build_alias
14887 build=$build
14888 build_os=$build_os
14889
14890 # A sed program that does not truncate output.
14891 SED=$lt_SED
14892
14893 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14894 Xsed="\$SED -e 1s/^X//"
14895
14896 # A grep program that handles long lines.
14897 GREP=$lt_GREP
14898
14899 # An ERE matcher.
14900 EGREP=$lt_EGREP
14901
14902 # A literal string matcher.
14903 FGREP=$lt_FGREP
14904
14905 # A BSD- or MS-compatible name lister.
14906 NM=$lt_NM
14907
14908 # Whether we need soft or hard links.
14909 LN_S=$lt_LN_S
14910
14911 # What is the maximum length of a command?
14912 max_cmd_len=$max_cmd_len
14913
14914 # Object file suffix (normally "o").
14915 objext=$ac_objext
14916
14917 # Executable file suffix (normally "").
14918 exeext=$exeext
14919
14920 # whether the shell understands "unset".
14921 lt_unset=$lt_unset
14922
14923 # turn spaces into newlines.
14924 SP2NL=$lt_lt_SP2NL
14925
14926 # turn newlines into spaces.
14927 NL2SP=$lt_lt_NL2SP
14928
14929 # How to create reloadable object files.
14930 reload_flag=$lt_reload_flag
14931 reload_cmds=$lt_reload_cmds
14932
14933 # An object symbol dumper.
14934 OBJDUMP=$lt_OBJDUMP
14935
14936 # Method to check whether dependent libraries are shared objects.
14937 deplibs_check_method=$lt_deplibs_check_method
14938
14939 # Command to use when deplibs_check_method == "file_magic".
14940 file_magic_cmd=$lt_file_magic_cmd
14941
14942 # The archiver.
14943 AR=$lt_AR
14944 AR_FLAGS=$lt_AR_FLAGS
14945
14946 # A symbol stripping program.
14947 STRIP=$lt_STRIP
14948
14949 # Commands used to install an old-style archive.
14950 RANLIB=$lt_RANLIB
14951 old_postinstall_cmds=$lt_old_postinstall_cmds
14952 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14953
14954 # A C compiler.
14955 LTCC=$lt_CC
14956
14957 # LTCC compiler flags.
14958 LTCFLAGS=$lt_CFLAGS
14959
14960 # Take the output of nm and produce a listing of raw symbols and C names.
14961 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14962
14963 # Transform the output of nm in a proper C declaration.
14964 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14965
14966 # Transform the output of nm in a C name address pair.
14967 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14968
14969 # Transform the output of nm in a C name address pair when lib prefix is needed.
14970 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14971
14972 # The name of the directory that contains temporary libtool files.
14973 objdir=$objdir
14974
14975 # Shell to use when invoking shell scripts.
14976 SHELL=$lt_SHELL
14977
14978 # An echo program that does not interpret backslashes.
14979 ECHO=$lt_ECHO
14980
14981 # Used to examine libraries when file_magic_cmd begins with "file".
14982 MAGIC_CMD=$MAGIC_CMD
14983
14984 # Must we lock files when doing compilation?
14985 need_locks=$lt_need_locks
14986
14987 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14988 DSYMUTIL=$lt_DSYMUTIL
14989
14990 # Tool to change global to local symbols on Mac OS X.
14991 NMEDIT=$lt_NMEDIT
14992
14993 # Tool to manipulate fat objects and archives on Mac OS X.
14994 LIPO=$lt_LIPO
14995
14996 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14997 OTOOL=$lt_OTOOL
14998
14999 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15000 OTOOL64=$lt_OTOOL64
15001
15002 # Old archive suffix (normally "a").
15003 libext=$libext
15004
15005 # Shared library suffix (normally ".so").
15006 shrext_cmds=$lt_shrext_cmds
15007
15008 # The commands to extract the exported symbol list from a shared archive.
15009 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15010
15011 # Variables whose values should be saved in libtool wrapper scripts and
15012 # restored at link time.
15013 variables_saved_for_relink=$lt_variables_saved_for_relink
15014
15015 # Do we need the "lib" prefix for modules?
15016 need_lib_prefix=$need_lib_prefix
15017
15018 # Do we need a version for libraries?
15019 need_version=$need_version
15020
15021 # Library versioning type.
15022 version_type=$version_type
15023
15024 # Shared library runtime path variable.
15025 runpath_var=$runpath_var
15026
15027 # Shared library path variable.
15028 shlibpath_var=$shlibpath_var
15029
15030 # Is shlibpath searched before the hard-coded library search path?
15031 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15032
15033 # Format of library name prefix.
15034 libname_spec=$lt_libname_spec
15035
15036 # List of archive names. First name is the real one, the rest are links.
15037 # The last name is the one that the linker finds with -lNAME
15038 library_names_spec=$lt_library_names_spec
15039
15040 # The coded name of the library, if different from the real name.
15041 soname_spec=$lt_soname_spec
15042
15043 # Command to use after installation of a shared archive.
15044 postinstall_cmds=$lt_postinstall_cmds
15045
15046 # Command to use after uninstallation of a shared archive.
15047 postuninstall_cmds=$lt_postuninstall_cmds
15048
15049 # Commands used to finish a libtool library installation in a directory.
15050 finish_cmds=$lt_finish_cmds
15051
15052 # As "finish_cmds", except a single script fragment to be evaled but
15053 # not shown.
15054 finish_eval=$lt_finish_eval
15055
15056 # Whether we should hardcode library paths into libraries.
15057 hardcode_into_libs=$hardcode_into_libs
15058
15059 # Compile-time system search path for libraries.
15060 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15061
15062 # Run-time system search path for libraries.
15063 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15064
15065 # Whether dlopen is supported.
15066 dlopen_support=$enable_dlopen
15067
15068 # Whether dlopen of programs is supported.
15069 dlopen_self=$enable_dlopen_self
15070
15071 # Whether dlopen of statically linked programs is supported.
15072 dlopen_self_static=$enable_dlopen_self_static
15073
15074 # Commands to strip libraries.
15075 old_striplib=$lt_old_striplib
15076 striplib=$lt_striplib
15077
15078
15079 # The linker used to build libraries.
15080 LD=$lt_LD
15081
15082 # Commands used to build an old-style archive.
15083 old_archive_cmds=$lt_old_archive_cmds
15084
15085 # A language specific compiler.
15086 CC=$lt_compiler
15087
15088 # Is the compiler the GNU compiler?
15089 with_gcc=$GCC
15090
15091 # Compiler flag to turn off builtin functions.
15092 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15093
15094 # How to pass a linker flag through the compiler.
15095 wl=$lt_lt_prog_compiler_wl
15096
15097 # Additional compiler flags for building library objects.
15098 pic_flag=$lt_lt_prog_compiler_pic
15099
15100 # Compiler flag to prevent dynamic linking.
15101 link_static_flag=$lt_lt_prog_compiler_static
15102
15103 # Does compiler simultaneously support -c and -o options?
15104 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15105
15106 # Whether or not to add -lc for building shared libraries.
15107 build_libtool_need_lc=$archive_cmds_need_lc
15108
15109 # Whether or not to disallow shared libs when runtime libs are static.
15110 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15111
15112 # Compiler flag to allow reflexive dlopens.
15113 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15114
15115 # Compiler flag to generate shared objects directly from archives.
15116 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15117
15118 # Whether the compiler copes with passing no objects directly.
15119 compiler_needs_object=$lt_compiler_needs_object
15120
15121 # Create an old-style archive from a shared archive.
15122 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15123
15124 # Create a temporary old-style archive to link instead of a shared archive.
15125 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15126
15127 # Commands used to build a shared archive.
15128 archive_cmds=$lt_archive_cmds
15129 archive_expsym_cmds=$lt_archive_expsym_cmds
15130
15131 # Commands used to build a loadable module if different from building
15132 # a shared archive.
15133 module_cmds=$lt_module_cmds
15134 module_expsym_cmds=$lt_module_expsym_cmds
15135
15136 # Whether we are building with GNU ld or not.
15137 with_gnu_ld=$lt_with_gnu_ld
15138
15139 # Flag that allows shared libraries with undefined symbols to be built.
15140 allow_undefined_flag=$lt_allow_undefined_flag
15141
15142 # Flag that enforces no undefined symbols.
15143 no_undefined_flag=$lt_no_undefined_flag
15144
15145 # Flag to hardcode \$libdir into a binary during linking.
15146 # This must work even if \$libdir does not exist
15147 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15148
15149 # If ld is used when linking, flag to hardcode \$libdir into a binary
15150 # during linking. This must work even if \$libdir does not exist.
15151 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15152
15153 # Whether we need a single "-rpath" flag with a separated argument.
15154 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15155
15156 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15157 # DIR into the resulting binary.
15158 hardcode_direct=$hardcode_direct
15159
15160 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15161 # DIR into the resulting binary and the resulting library dependency is
15162 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15163 # library is relocated.
15164 hardcode_direct_absolute=$hardcode_direct_absolute
15165
15166 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15167 # into the resulting binary.
15168 hardcode_minus_L=$hardcode_minus_L
15169
15170 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15171 # into the resulting binary.
15172 hardcode_shlibpath_var=$hardcode_shlibpath_var
15173
15174 # Set to "yes" if building a shared library automatically hardcodes DIR
15175 # into the library and all subsequent libraries and executables linked
15176 # against it.
15177 hardcode_automatic=$hardcode_automatic
15178
15179 # Set to yes if linker adds runtime paths of dependent libraries
15180 # to runtime path list.
15181 inherit_rpath=$inherit_rpath
15182
15183 # Whether libtool must link a program against all its dependency libraries.
15184 link_all_deplibs=$link_all_deplibs
15185
15186 # Fix the shell variable \$srcfile for the compiler.
15187 fix_srcfile_path=$lt_fix_srcfile_path
15188
15189 # Set to "yes" if exported symbols are required.
15190 always_export_symbols=$always_export_symbols
15191
15192 # The commands to list exported symbols.
15193 export_symbols_cmds=$lt_export_symbols_cmds
15194
15195 # Symbols that should not be listed in the preloaded symbols.
15196 exclude_expsyms=$lt_exclude_expsyms
15197
15198 # Symbols that must always be exported.
15199 include_expsyms=$lt_include_expsyms
15200
15201 # Commands necessary for linking programs (against libraries) with templates.
15202 prelink_cmds=$lt_prelink_cmds
15203
15204 # Specify filename containing input files.
15205 file_list_spec=$lt_file_list_spec
15206
15207 # How to hardcode a shared library path into an executable.
15208 hardcode_action=$hardcode_action
15209
15210 # ### END LIBTOOL CONFIG
15211
15212 _LT_EOF
15213
15214 case $host_os in
15215 aix3*)
15216 cat <<\_LT_EOF >> "$cfgfile"
15217 # AIX sometimes has problems with the GCC collect2 program. For some
15218 # reason, if we set the COLLECT_NAMES environment variable, the problems
15219 # vanish in a puff of smoke.
15220 if test "X${COLLECT_NAMES+set}" != Xset; then
15221 COLLECT_NAMES=
15222 export COLLECT_NAMES
15223 fi
15224 _LT_EOF
15225 ;;
15226 esac
15227
15228
15229 ltmain="$ac_aux_dir/ltmain.sh"
15230
15231
15232 # We use sed instead of cat because bash on DJGPP gets confused if
15233 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15234 # text mode, it properly converts lines to CR/LF. This bash problem
15235 # is reportedly fixed, but why not run on old versions too?
15236 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15237 || (rm -f "$cfgfile"; exit 1)
15238
15239 case $xsi_shell in
15240 yes)
15241 cat << \_LT_EOF >> "$cfgfile"
15242
15243 # func_dirname file append nondir_replacement
15244 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15245 # otherwise set result to NONDIR_REPLACEMENT.
15246 func_dirname ()
15247 {
15248 case ${1} in
15249 */*) func_dirname_result="${1%/*}${2}" ;;
15250 * ) func_dirname_result="${3}" ;;
15251 esac
15252 }
15253
15254 # func_basename file
15255 func_basename ()
15256 {
15257 func_basename_result="${1##*/}"
15258 }
15259
15260 # func_dirname_and_basename file append nondir_replacement
15261 # perform func_basename and func_dirname in a single function
15262 # call:
15263 # dirname: Compute the dirname of FILE. If nonempty,
15264 # add APPEND to the result, otherwise set result
15265 # to NONDIR_REPLACEMENT.
15266 # value returned in "$func_dirname_result"
15267 # basename: Compute filename of FILE.
15268 # value retuned in "$func_basename_result"
15269 # Implementation must be kept synchronized with func_dirname
15270 # and func_basename. For efficiency, we do not delegate to
15271 # those functions but instead duplicate the functionality here.
15272 func_dirname_and_basename ()
15273 {
15274 case ${1} in
15275 */*) func_dirname_result="${1%/*}${2}" ;;
15276 * ) func_dirname_result="${3}" ;;
15277 esac
15278 func_basename_result="${1##*/}"
15279 }
15280
15281 # func_stripname prefix suffix name
15282 # strip PREFIX and SUFFIX off of NAME.
15283 # PREFIX and SUFFIX must not contain globbing or regex special
15284 # characters, hashes, percent signs, but SUFFIX may contain a leading
15285 # dot (in which case that matches only a dot).
15286 func_stripname ()
15287 {
15288 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15289 # positional parameters, so assign one to ordinary parameter first.
15290 func_stripname_result=${3}
15291 func_stripname_result=${func_stripname_result#"${1}"}
15292 func_stripname_result=${func_stripname_result%"${2}"}
15293 }
15294
15295 # func_opt_split
15296 func_opt_split ()
15297 {
15298 func_opt_split_opt=${1%%=*}
15299 func_opt_split_arg=${1#*=}
15300 }
15301
15302 # func_lo2o object
15303 func_lo2o ()
15304 {
15305 case ${1} in
15306 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15307 *) func_lo2o_result=${1} ;;
15308 esac
15309 }
15310
15311 # func_xform libobj-or-source
15312 func_xform ()
15313 {
15314 func_xform_result=${1%.*}.lo
15315 }
15316
15317 # func_arith arithmetic-term...
15318 func_arith ()
15319 {
15320 func_arith_result=$(( $* ))
15321 }
15322
15323 # func_len string
15324 # STRING may not start with a hyphen.
15325 func_len ()
15326 {
15327 func_len_result=${#1}
15328 }
15329
15330 _LT_EOF
15331 ;;
15332 *) # Bourne compatible functions.
15333 cat << \_LT_EOF >> "$cfgfile"
15334
15335 # func_dirname file append nondir_replacement
15336 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15337 # otherwise set result to NONDIR_REPLACEMENT.
15338 func_dirname ()
15339 {
15340 # Extract subdirectory from the argument.
15341 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15342 if test "X$func_dirname_result" = "X${1}"; then
15343 func_dirname_result="${3}"
15344 else
15345 func_dirname_result="$func_dirname_result${2}"
15346 fi
15347 }
15348
15349 # func_basename file
15350 func_basename ()
15351 {
15352 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15353 }
15354
15355
15356 # func_stripname prefix suffix name
15357 # strip PREFIX and SUFFIX off of NAME.
15358 # PREFIX and SUFFIX must not contain globbing or regex special
15359 # characters, hashes, percent signs, but SUFFIX may contain a leading
15360 # dot (in which case that matches only a dot).
15361 # func_strip_suffix prefix name
15362 func_stripname ()
15363 {
15364 case ${2} in
15365 .*) func_stripname_result=`$ECHO "X${3}" \
15366 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15367 *) func_stripname_result=`$ECHO "X${3}" \
15368 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15369 esac
15370 }
15371
15372 # sed scripts:
15373 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15374 my_sed_long_arg='1s/^-[^=]*=//'
15375
15376 # func_opt_split
15377 func_opt_split ()
15378 {
15379 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15380 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15381 }
15382
15383 # func_lo2o object
15384 func_lo2o ()
15385 {
15386 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15387 }
15388
15389 # func_xform libobj-or-source
15390 func_xform ()
15391 {
15392 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15393 }
15394
15395 # func_arith arithmetic-term...
15396 func_arith ()
15397 {
15398 func_arith_result=`expr "$@"`
15399 }
15400
15401 # func_len string
15402 # STRING may not start with a hyphen.
15403 func_len ()
15404 {
15405 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15406 }
15407
15408 _LT_EOF
15409 esac
15410
15411 case $lt_shell_append in
15412 yes)
15413 cat << \_LT_EOF >> "$cfgfile"
15414
15415 # func_append var value
15416 # Append VALUE to the end of shell variable VAR.
15417 func_append ()
15418 {
15419 eval "$1+=\$2"
15420 }
15421 _LT_EOF
15422 ;;
15423 *)
15424 cat << \_LT_EOF >> "$cfgfile"
15425
15426 # func_append var value
15427 # Append VALUE to the end of shell variable VAR.
15428 func_append ()
15429 {
15430 eval "$1=\$$1\$2"
15431 }
15432
15433 _LT_EOF
15434 ;;
15435 esac
15436
15437
15438 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15439 || (rm -f "$cfgfile"; exit 1)
15440
15441 mv -f "$cfgfile" "$ofile" ||
15442 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15443 chmod +x "$ofile"
15444
15445 ;;
15446
15447 esac
15448 done # for ac_tag
15449
15450
15451 { (exit 0); exit 0; }
15452 _ACEOF
15453 chmod +x $CONFIG_STATUS
15454 ac_clean_files=$ac_clean_files_save
15455
15456 test $ac_write_fail = 0 ||
15457 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15458 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15459 { (exit 1); exit 1; }; }
15460
15461
15462 # configure is writing to config.log, and then calls config.status.
15463 # config.status does its own redirection, appending to config.log.
15464 # Unfortunately, on DOS this fails, as config.log is still kept open
15465 # by configure, so config.status won't be able to write to it; its
15466 # output is simply discarded. So we exec the FD to /dev/null,
15467 # effectively closing config.log, so it can be properly (re)opened and
15468 # appended to by config.status. When coming back to configure, we
15469 # need to make the FD available again.
15470 if test "$no_create" != yes; then
15471 ac_cs_success=:
15472 ac_config_status_args=
15473 test "$silent" = yes &&
15474 ac_config_status_args="$ac_config_status_args --quiet"
15475 exec 5>/dev/null
15476 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15477 exec 5>>config.log
15478 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15479 # would make configure fail if this is the last instruction.
15480 $ac_cs_success || { (exit 1); exit 1; }
15481 fi
15482 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15483 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15484 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15485 fi
15486
15487