configure revision 1.1.1.6 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for xf86-video-vmware 11.0.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-vmware'
747 PACKAGE_TARNAME='xf86-video-vmware'
748 PACKAGE_VERSION='11.0.2'
749 PACKAGE_STRING='xf86-video-vmware 11.0.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='am__EXEEXT_FALSE
790 am__EXEEXT_TRUE
791 LTLIBOBJS
792 LIBOBJS
793 DRIVER_NAME
794 moduledir
795 XSERVER_LIBPCIACCESS_FALSE
796 XSERVER_LIBPCIACCESS_TRUE
797 PCIACCESS_LIBS
798 PCIACCESS_CFLAGS
799 DRM_LIBS
800 DRM_CFLAGS
801 XORG_LIBS
802 XORG_CFLAGS
803 OTOOL64
804 OTOOL
805 LIPO
806 NMEDIT
807 DSYMUTIL
808 lt_ECHO
809 RANLIB
810 AR
811 OBJDUMP
812 LN_S
813 NM
814 ac_ct_DUMPBIN
815 DUMPBIN
816 LD
817 FGREP
818 LIBTOOL
819 AM_BACKSLASH
820 AM_DEFAULT_VERBOSITY
821 MAN_SUBSTS
822 XORG_MAN_PAGE
823 ADMIN_MAN_DIR
824 DRIVER_MAN_DIR
825 MISC_MAN_DIR
826 FILE_MAN_DIR
827 LIB_MAN_DIR
828 APP_MAN_DIR
829 ADMIN_MAN_SUFFIX
830 DRIVER_MAN_SUFFIX
831 MISC_MAN_SUFFIX
832 FILE_MAN_SUFFIX
833 LIB_MAN_SUFFIX
834 APP_MAN_SUFFIX
835 SED
836 host_os
837 host_vendor
838 host_cpu
839 host
840 build_os
841 build_vendor
842 build_cpu
843 build
844 INSTALL_CMD
845 PKG_CONFIG
846 CHANGELOG_CMD
847 CWARNFLAGS
848 EGREP
849 GREP
850 CPP
851 am__fastdepCC_FALSE
852 am__fastdepCC_TRUE
853 CCDEPMODE
854 AMDEPBACKSLASH
855 AMDEP_FALSE
856 AMDEP_TRUE
857 am__quote
858 am__include
859 DEPDIR
860 OBJEXT
861 EXEEXT
862 ac_ct_CC
863 CPPFLAGS
864 LDFLAGS
865 CFLAGS
866 CC
867 MAINT
868 MAINTAINER_MODE_FALSE
869 MAINTAINER_MODE_TRUE
870 am__untar
871 am__tar
872 AMTAR
873 am__leading_dot
874 SET_MAKE
875 AWK
876 mkdir_p
877 MKDIR_P
878 INSTALL_STRIP_PROGRAM
879 STRIP
880 install_sh
881 MAKEINFO
882 AUTOHEADER
883 AUTOMAKE
884 AUTOCONF
885 ACLOCAL
886 VERSION
887 PACKAGE
888 CYGPATH_W
889 am__isrc
890 INSTALL_DATA
891 INSTALL_SCRIPT
892 INSTALL_PROGRAM
893 target_alias
894 host_alias
895 build_alias
896 LIBS
897 ECHO_T
898 ECHO_N
899 ECHO_C
900 DEFS
901 mandir
902 localedir
903 libdir
904 psdir
905 pdfdir
906 dvidir
907 htmldir
908 infodir
909 docdir
910 oldincludedir
911 includedir
912 localstatedir
913 sharedstatedir
914 sysconfdir
915 datadir
916 datarootdir
917 libexecdir
918 sbindir
919 bindir
920 program_transform_name
921 prefix
922 exec_prefix
923 PACKAGE_BUGREPORT
924 PACKAGE_STRING
925 PACKAGE_VERSION
926 PACKAGE_TARNAME
927 PACKAGE_NAME
928 PATH_SEPARATOR
929 SHELL'
930 ac_subst_files=''
931 ac_user_opts='
932 enable_option_checking
933 enable_maintainer_mode
934 enable_dependency_tracking
935 enable_strict_compilation
936 enable_silent_rules
937 enable_static
938 enable_shared
939 with_pic
940 enable_fast_install
941 with_gnu_ld
942 enable_libtool_lock
943 with_xorg_module_dir
944 '
945 ac_precious_vars='build_alias
946 host_alias
947 target_alias
948 CC
949 CFLAGS
950 LDFLAGS
951 LIBS
952 CPPFLAGS
953 CPP
954 PKG_CONFIG
955 XORG_CFLAGS
956 XORG_LIBS
957 DRM_CFLAGS
958 DRM_LIBS
959 PCIACCESS_CFLAGS
960 PCIACCESS_LIBS'
961
962
963 # Initialize some variables set by options.
964 ac_init_help=
965 ac_init_version=false
966 ac_unrecognized_opts=
967 ac_unrecognized_sep=
968 # The variables have the same names as the options, with
969 # dashes changed to underlines.
970 cache_file=/dev/null
971 exec_prefix=NONE
972 no_create=
973 no_recursion=
974 prefix=NONE
975 program_prefix=NONE
976 program_suffix=NONE
977 program_transform_name=s,x,x,
978 silent=
979 site=
980 srcdir=
981 verbose=
982 x_includes=NONE
983 x_libraries=NONE
984
985 # Installation directory options.
986 # These are left unexpanded so users can "make install exec_prefix=/foo"
987 # and all the variables that are supposed to be based on exec_prefix
988 # by default will actually change.
989 # Use braces instead of parens because sh, perl, etc. also accept them.
990 # (The list follows the same order as the GNU Coding Standards.)
991 bindir='${exec_prefix}/bin'
992 sbindir='${exec_prefix}/sbin'
993 libexecdir='${exec_prefix}/libexec'
994 datarootdir='${prefix}/share'
995 datadir='${datarootdir}'
996 sysconfdir='${prefix}/etc'
997 sharedstatedir='${prefix}/com'
998 localstatedir='${prefix}/var'
999 includedir='${prefix}/include'
1000 oldincludedir='/usr/include'
1001 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1002 infodir='${datarootdir}/info'
1003 htmldir='${docdir}'
1004 dvidir='${docdir}'
1005 pdfdir='${docdir}'
1006 psdir='${docdir}'
1007 libdir='${exec_prefix}/lib'
1008 localedir='${datarootdir}/locale'
1009 mandir='${datarootdir}/man'
1010
1011 ac_prev=
1012 ac_dashdash=
1013 for ac_option
1014 do
1015 # If the previous option needs an argument, assign it.
1016 if test -n "$ac_prev"; then
1017 eval $ac_prev=\$ac_option
1018 ac_prev=
1019 continue
1020 fi
1021
1022 case $ac_option in
1023 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1024 *) ac_optarg=yes ;;
1025 esac
1026
1027 # Accept the important Cygnus configure options, so we can diagnose typos.
1028
1029 case $ac_dashdash$ac_option in
1030 --)
1031 ac_dashdash=yes ;;
1032
1033 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1034 ac_prev=bindir ;;
1035 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1036 bindir=$ac_optarg ;;
1037
1038 -build | --build | --buil | --bui | --bu)
1039 ac_prev=build_alias ;;
1040 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1041 build_alias=$ac_optarg ;;
1042
1043 -cache-file | --cache-file | --cache-fil | --cache-fi \
1044 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1045 ac_prev=cache_file ;;
1046 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1047 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1048 cache_file=$ac_optarg ;;
1049
1050 --config-cache | -C)
1051 cache_file=config.cache ;;
1052
1053 -datadir | --datadir | --datadi | --datad)
1054 ac_prev=datadir ;;
1055 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1056 datadir=$ac_optarg ;;
1057
1058 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1059 | --dataroo | --dataro | --datar)
1060 ac_prev=datarootdir ;;
1061 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1062 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1063 datarootdir=$ac_optarg ;;
1064
1065 -disable-* | --disable-*)
1066 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1070 { (exit 1); exit 1; }; }
1071 ac_useropt_orig=$ac_useropt
1072 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1073 case $ac_user_opts in
1074 *"
1075 "enable_$ac_useropt"
1076 "*) ;;
1077 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1078 ac_unrecognized_sep=', ';;
1079 esac
1080 eval enable_$ac_useropt=no ;;
1081
1082 -docdir | --docdir | --docdi | --doc | --do)
1083 ac_prev=docdir ;;
1084 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1085 docdir=$ac_optarg ;;
1086
1087 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1088 ac_prev=dvidir ;;
1089 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1090 dvidir=$ac_optarg ;;
1091
1092 -enable-* | --enable-*)
1093 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1096 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1097 { (exit 1); exit 1; }; }
1098 ac_useropt_orig=$ac_useropt
1099 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100 case $ac_user_opts in
1101 *"
1102 "enable_$ac_useropt"
1103 "*) ;;
1104 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1105 ac_unrecognized_sep=', ';;
1106 esac
1107 eval enable_$ac_useropt=\$ac_optarg ;;
1108
1109 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1110 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1111 | --exec | --exe | --ex)
1112 ac_prev=exec_prefix ;;
1113 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1114 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1115 | --exec=* | --exe=* | --ex=*)
1116 exec_prefix=$ac_optarg ;;
1117
1118 -gas | --gas | --ga | --g)
1119 # Obsolete; use --with-gas.
1120 with_gas=yes ;;
1121
1122 -help | --help | --hel | --he | -h)
1123 ac_init_help=long ;;
1124 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1125 ac_init_help=recursive ;;
1126 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1127 ac_init_help=short ;;
1128
1129 -host | --host | --hos | --ho)
1130 ac_prev=host_alias ;;
1131 -host=* | --host=* | --hos=* | --ho=*)
1132 host_alias=$ac_optarg ;;
1133
1134 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1135 ac_prev=htmldir ;;
1136 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1137 | --ht=*)
1138 htmldir=$ac_optarg ;;
1139
1140 -includedir | --includedir | --includedi | --included | --include \
1141 | --includ | --inclu | --incl | --inc)
1142 ac_prev=includedir ;;
1143 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1144 | --includ=* | --inclu=* | --incl=* | --inc=*)
1145 includedir=$ac_optarg ;;
1146
1147 -infodir | --infodir | --infodi | --infod | --info | --inf)
1148 ac_prev=infodir ;;
1149 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1150 infodir=$ac_optarg ;;
1151
1152 -libdir | --libdir | --libdi | --libd)
1153 ac_prev=libdir ;;
1154 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1155 libdir=$ac_optarg ;;
1156
1157 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1158 | --libexe | --libex | --libe)
1159 ac_prev=libexecdir ;;
1160 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1161 | --libexe=* | --libex=* | --libe=*)
1162 libexecdir=$ac_optarg ;;
1163
1164 -localedir | --localedir | --localedi | --localed | --locale)
1165 ac_prev=localedir ;;
1166 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1167 localedir=$ac_optarg ;;
1168
1169 -localstatedir | --localstatedir | --localstatedi | --localstated \
1170 | --localstate | --localstat | --localsta | --localst | --locals)
1171 ac_prev=localstatedir ;;
1172 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1173 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1174 localstatedir=$ac_optarg ;;
1175
1176 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1177 ac_prev=mandir ;;
1178 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1179 mandir=$ac_optarg ;;
1180
1181 -nfp | --nfp | --nf)
1182 # Obsolete; use --without-fp.
1183 with_fp=no ;;
1184
1185 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1186 | --no-cr | --no-c | -n)
1187 no_create=yes ;;
1188
1189 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1190 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1191 no_recursion=yes ;;
1192
1193 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1194 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1195 | --oldin | --oldi | --old | --ol | --o)
1196 ac_prev=oldincludedir ;;
1197 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1198 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1199 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1200 oldincludedir=$ac_optarg ;;
1201
1202 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1203 ac_prev=prefix ;;
1204 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1205 prefix=$ac_optarg ;;
1206
1207 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1208 | --program-pre | --program-pr | --program-p)
1209 ac_prev=program_prefix ;;
1210 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1211 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1212 program_prefix=$ac_optarg ;;
1213
1214 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1215 | --program-suf | --program-su | --program-s)
1216 ac_prev=program_suffix ;;
1217 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1218 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1219 program_suffix=$ac_optarg ;;
1220
1221 -program-transform-name | --program-transform-name \
1222 | --program-transform-nam | --program-transform-na \
1223 | --program-transform-n | --program-transform- \
1224 | --program-transform | --program-transfor \
1225 | --program-transfo | --program-transf \
1226 | --program-trans | --program-tran \
1227 | --progr-tra | --program-tr | --program-t)
1228 ac_prev=program_transform_name ;;
1229 -program-transform-name=* | --program-transform-name=* \
1230 | --program-transform-nam=* | --program-transform-na=* \
1231 | --program-transform-n=* | --program-transform-=* \
1232 | --program-transform=* | --program-transfor=* \
1233 | --program-transfo=* | --program-transf=* \
1234 | --program-trans=* | --program-tran=* \
1235 | --progr-tra=* | --program-tr=* | --program-t=*)
1236 program_transform_name=$ac_optarg ;;
1237
1238 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1239 ac_prev=pdfdir ;;
1240 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1241 pdfdir=$ac_optarg ;;
1242
1243 -psdir | --psdir | --psdi | --psd | --ps)
1244 ac_prev=psdir ;;
1245 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1246 psdir=$ac_optarg ;;
1247
1248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1249 | -silent | --silent | --silen | --sile | --sil)
1250 silent=yes ;;
1251
1252 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1253 ac_prev=sbindir ;;
1254 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1255 | --sbi=* | --sb=*)
1256 sbindir=$ac_optarg ;;
1257
1258 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1259 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1260 | --sharedst | --shareds | --shared | --share | --shar \
1261 | --sha | --sh)
1262 ac_prev=sharedstatedir ;;
1263 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1264 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1265 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1266 | --sha=* | --sh=*)
1267 sharedstatedir=$ac_optarg ;;
1268
1269 -site | --site | --sit)
1270 ac_prev=site ;;
1271 -site=* | --site=* | --sit=*)
1272 site=$ac_optarg ;;
1273
1274 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1275 ac_prev=srcdir ;;
1276 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1277 srcdir=$ac_optarg ;;
1278
1279 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1280 | --syscon | --sysco | --sysc | --sys | --sy)
1281 ac_prev=sysconfdir ;;
1282 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1283 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1284 sysconfdir=$ac_optarg ;;
1285
1286 -target | --target | --targe | --targ | --tar | --ta | --t)
1287 ac_prev=target_alias ;;
1288 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1289 target_alias=$ac_optarg ;;
1290
1291 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1292 verbose=yes ;;
1293
1294 -version | --version | --versio | --versi | --vers | -V)
1295 ac_init_version=: ;;
1296
1297 -with-* | --with-*)
1298 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1301 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1302 { (exit 1); exit 1; }; }
1303 ac_useropt_orig=$ac_useropt
1304 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1305 case $ac_user_opts in
1306 *"
1307 "with_$ac_useropt"
1308 "*) ;;
1309 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1310 ac_unrecognized_sep=', ';;
1311 esac
1312 eval with_$ac_useropt=\$ac_optarg ;;
1313
1314 -without-* | --without-*)
1315 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1316 # Reject names that are not valid shell variable names.
1317 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1318 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1319 { (exit 1); exit 1; }; }
1320 ac_useropt_orig=$ac_useropt
1321 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1322 case $ac_user_opts in
1323 *"
1324 "with_$ac_useropt"
1325 "*) ;;
1326 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1327 ac_unrecognized_sep=', ';;
1328 esac
1329 eval with_$ac_useropt=no ;;
1330
1331 --x)
1332 # Obsolete; use --with-x.
1333 with_x=yes ;;
1334
1335 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1336 | --x-incl | --x-inc | --x-in | --x-i)
1337 ac_prev=x_includes ;;
1338 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1339 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1340 x_includes=$ac_optarg ;;
1341
1342 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1343 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1344 ac_prev=x_libraries ;;
1345 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1346 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1347 x_libraries=$ac_optarg ;;
1348
1349 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1350 Try \`$0 --help' for more information." >&2
1351 { (exit 1); exit 1; }; }
1352 ;;
1353
1354 *=*)
1355 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1356 # Reject names that are not valid shell variable names.
1357 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1358 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1359 { (exit 1); exit 1; }; }
1360 eval $ac_envvar=\$ac_optarg
1361 export $ac_envvar ;;
1362
1363 *)
1364 # FIXME: should be removed in autoconf 3.0.
1365 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1366 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1367 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1368 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1369 ;;
1370
1371 esac
1372 done
1373
1374 if test -n "$ac_prev"; then
1375 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1376 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1377 { (exit 1); exit 1; }; }
1378 fi
1379
1380 if test -n "$ac_unrecognized_opts"; then
1381 case $enable_option_checking in
1382 no) ;;
1383 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1384 { (exit 1); exit 1; }; } ;;
1385 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1386 esac
1387 fi
1388
1389 # Check all directory arguments for consistency.
1390 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1391 datadir sysconfdir sharedstatedir localstatedir includedir \
1392 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1393 libdir localedir mandir
1394 do
1395 eval ac_val=\$$ac_var
1396 # Remove trailing slashes.
1397 case $ac_val in
1398 */ )
1399 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1400 eval $ac_var=\$ac_val;;
1401 esac
1402 # Be sure to have absolute directory names.
1403 case $ac_val in
1404 [\\/$]* | ?:[\\/]* ) continue;;
1405 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1406 esac
1407 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1408 { (exit 1); exit 1; }; }
1409 done
1410
1411 # There might be people who depend on the old broken behavior: `$host'
1412 # used to hold the argument of --host etc.
1413 # FIXME: To remove some day.
1414 build=$build_alias
1415 host=$host_alias
1416 target=$target_alias
1417
1418 # FIXME: To remove some day.
1419 if test "x$host_alias" != x; then
1420 if test "x$build_alias" = x; then
1421 cross_compiling=maybe
1422 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1423 If a cross compiler is detected then cross compile mode will be used." >&2
1424 elif test "x$build_alias" != "x$host_alias"; then
1425 cross_compiling=yes
1426 fi
1427 fi
1428
1429 ac_tool_prefix=
1430 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1431
1432 test "$silent" = yes && exec 6>/dev/null
1433
1434
1435 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1436 ac_ls_di=`ls -di .` &&
1437 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1438 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1439 { (exit 1); exit 1; }; }
1440 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1441 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1442 { (exit 1); exit 1; }; }
1443
1444
1445 # Find the source files, if location was not specified.
1446 if test -z "$srcdir"; then
1447 ac_srcdir_defaulted=yes
1448 # Try the directory containing this script, then the parent directory.
1449 ac_confdir=`$as_dirname -- "$as_myself" ||
1450 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1451 X"$as_myself" : 'X\(//\)[^/]' \| \
1452 X"$as_myself" : 'X\(//\)$' \| \
1453 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1454 $as_echo X"$as_myself" |
1455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1456 s//\1/
1457 q
1458 }
1459 /^X\(\/\/\)[^/].*/{
1460 s//\1/
1461 q
1462 }
1463 /^X\(\/\/\)$/{
1464 s//\1/
1465 q
1466 }
1467 /^X\(\/\).*/{
1468 s//\1/
1469 q
1470 }
1471 s/.*/./; q'`
1472 srcdir=$ac_confdir
1473 if test ! -r "$srcdir/$ac_unique_file"; then
1474 srcdir=..
1475 fi
1476 else
1477 ac_srcdir_defaulted=no
1478 fi
1479 if test ! -r "$srcdir/$ac_unique_file"; then
1480 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1481 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1482 { (exit 1); exit 1; }; }
1483 fi
1484 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1485 ac_abs_confdir=`(
1486 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1487 { (exit 1); exit 1; }; }
1488 pwd)`
1489 # When building in place, set srcdir=.
1490 if test "$ac_abs_confdir" = "$ac_pwd"; then
1491 srcdir=.
1492 fi
1493 # Remove unnecessary trailing slashes from srcdir.
1494 # Double slashes in file names in object file debugging info
1495 # mess up M-x gdb in Emacs.
1496 case $srcdir in
1497 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1498 esac
1499 for ac_var in $ac_precious_vars; do
1500 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1501 eval ac_env_${ac_var}_value=\$${ac_var}
1502 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1503 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1504 done
1505
1506 #
1507 # Report the --help message.
1508 #
1509 if test "$ac_init_help" = "long"; then
1510 # Omit some internal or obsolete options to make the list less imposing.
1511 # This message is too long to be a string in the A/UX 3.1 sh.
1512 cat <<_ACEOF
1513 \`configure' configures xf86-video-vmware 11.0.2 to adapt to many kinds of systems.
1514
1515 Usage: $0 [OPTION]... [VAR=VALUE]...
1516
1517 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1518 VAR=VALUE. See below for descriptions of some of the useful variables.
1519
1520 Defaults for the options are specified in brackets.
1521
1522 Configuration:
1523 -h, --help display this help and exit
1524 --help=short display options specific to this package
1525 --help=recursive display the short help of all the included packages
1526 -V, --version display version information and exit
1527 -q, --quiet, --silent do not print \`checking...' messages
1528 --cache-file=FILE cache test results in FILE [disabled]
1529 -C, --config-cache alias for \`--cache-file=config.cache'
1530 -n, --no-create do not create output files
1531 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1532
1533 Installation directories:
1534 --prefix=PREFIX install architecture-independent files in PREFIX
1535 [$ac_default_prefix]
1536 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1537 [PREFIX]
1538
1539 By default, \`make install' will install all the files in
1540 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1541 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1542 for instance \`--prefix=\$HOME'.
1543
1544 For better control, use the options below.
1545
1546 Fine tuning of the installation directories:
1547 --bindir=DIR user executables [EPREFIX/bin]
1548 --sbindir=DIR system admin executables [EPREFIX/sbin]
1549 --libexecdir=DIR program executables [EPREFIX/libexec]
1550 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1551 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1552 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1553 --libdir=DIR object code libraries [EPREFIX/lib]
1554 --includedir=DIR C header files [PREFIX/include]
1555 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1556 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1557 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1558 --infodir=DIR info documentation [DATAROOTDIR/info]
1559 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1560 --mandir=DIR man documentation [DATAROOTDIR/man]
1561 --docdir=DIR documentation root
1562 [DATAROOTDIR/doc/xf86-video-vmware]
1563 --htmldir=DIR html documentation [DOCDIR]
1564 --dvidir=DIR dvi documentation [DOCDIR]
1565 --pdfdir=DIR pdf documentation [DOCDIR]
1566 --psdir=DIR ps documentation [DOCDIR]
1567 _ACEOF
1568
1569 cat <<\_ACEOF
1570
1571 Program names:
1572 --program-prefix=PREFIX prepend PREFIX to installed program names
1573 --program-suffix=SUFFIX append SUFFIX to installed program names
1574 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1575
1576 System types:
1577 --build=BUILD configure for building on BUILD [guessed]
1578 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1579 _ACEOF
1580 fi
1581
1582 if test -n "$ac_init_help"; then
1583 case $ac_init_help in
1584 short | recursive ) echo "Configuration of xf86-video-vmware 11.0.2:";;
1585 esac
1586 cat <<\_ACEOF
1587
1588 Optional Features:
1589 --disable-option-checking ignore unrecognized --enable/--with options
1590 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1591 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1592 --enable-maintainer-mode enable make rules and dependencies not useful
1593 (and sometimes confusing) to the casual installer
1594 --disable-dependency-tracking speeds up one-time build
1595 --enable-dependency-tracking do not reject slow dependency extractors
1596 --enable-strict-compilation
1597 Enable all warnings from compiler and make them
1598 errors (default: disabled)
1599 --enable-silent-rules less verbose build output (undo: `make V=1')
1600 --disable-silent-rules verbose build output (undo: `make V=0')
1601 --enable-static[=PKGS] build static libraries [default=no]
1602 --enable-shared[=PKGS] build shared libraries [default=yes]
1603 --enable-fast-install[=PKGS]
1604 optimize for fast installation [default=yes]
1605 --disable-libtool-lock avoid locking (might break parallel builds)
1606
1607 Optional Packages:
1608 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1609 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1610 --with-pic try to use only PIC/non-PIC objects [default=use
1611 both]
1612 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1613 --with-xorg-module-dir=DIR
1614 Default xorg module directory
1615 [default=$libdir/xorg/modules]
1616
1617 Some influential environment variables:
1618 CC C compiler command
1619 CFLAGS C compiler flags
1620 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1621 nonstandard directory <lib dir>
1622 LIBS libraries to pass to the linker, e.g. -l<library>
1623 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1624 you have headers in a nonstandard directory <include dir>
1625 CPP C preprocessor
1626 PKG_CONFIG path to pkg-config utility
1627 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1628 XORG_LIBS linker flags for XORG, overriding pkg-config
1629 DRM_CFLAGS C compiler flags for DRM, overriding pkg-config
1630 DRM_LIBS linker flags for DRM, overriding pkg-config
1631 PCIACCESS_CFLAGS
1632 C compiler flags for PCIACCESS, overriding pkg-config
1633 PCIACCESS_LIBS
1634 linker flags for PCIACCESS, overriding pkg-config
1635
1636 Use these variables to override the choices made by `configure' or to help
1637 it to find libraries and programs with nonstandard names/locations.
1638
1639 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1640 _ACEOF
1641 ac_status=$?
1642 fi
1643
1644 if test "$ac_init_help" = "recursive"; then
1645 # If there are subdirs, report their specific --help.
1646 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1647 test -d "$ac_dir" ||
1648 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1649 continue
1650 ac_builddir=.
1651
1652 case "$ac_dir" in
1653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654 *)
1655 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1656 # A ".." for each directory in $ac_dir_suffix.
1657 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1658 case $ac_top_builddir_sub in
1659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1661 esac ;;
1662 esac
1663 ac_abs_top_builddir=$ac_pwd
1664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1665 # for backward compatibility:
1666 ac_top_builddir=$ac_top_build_prefix
1667
1668 case $srcdir in
1669 .) # We are building in place.
1670 ac_srcdir=.
1671 ac_top_srcdir=$ac_top_builddir_sub
1672 ac_abs_top_srcdir=$ac_pwd ;;
1673 [\\/]* | ?:[\\/]* ) # Absolute name.
1674 ac_srcdir=$srcdir$ac_dir_suffix;
1675 ac_top_srcdir=$srcdir
1676 ac_abs_top_srcdir=$srcdir ;;
1677 *) # Relative name.
1678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1679 ac_top_srcdir=$ac_top_build_prefix$srcdir
1680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1681 esac
1682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1683
1684 cd "$ac_dir" || { ac_status=$?; continue; }
1685 # Check for guested configure.
1686 if test -f "$ac_srcdir/configure.gnu"; then
1687 echo &&
1688 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1689 elif test -f "$ac_srcdir/configure"; then
1690 echo &&
1691 $SHELL "$ac_srcdir/configure" --help=recursive
1692 else
1693 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1694 fi || ac_status=$?
1695 cd "$ac_pwd" || { ac_status=$?; break; }
1696 done
1697 fi
1698
1699 test -n "$ac_init_help" && exit $ac_status
1700 if $ac_init_version; then
1701 cat <<\_ACEOF
1702 xf86-video-vmware configure 11.0.2
1703 generated by GNU Autoconf 2.63
1704
1705 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1706 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1707 This configure script is free software; the Free Software Foundation
1708 gives unlimited permission to copy, distribute and modify it.
1709 _ACEOF
1710 exit
1711 fi
1712 cat >config.log <<_ACEOF
1713 This file contains any messages produced by compilers while
1714 running configure, to aid debugging if configure makes a mistake.
1715
1716 It was created by xf86-video-vmware $as_me 11.0.2, which was
1717 generated by GNU Autoconf 2.63. Invocation command line was
1718
1719 $ $0 $@
1720
1721 _ACEOF
1722 exec 5>>config.log
1723 {
1724 cat <<_ASUNAME
1725 ## --------- ##
1726 ## Platform. ##
1727 ## --------- ##
1728
1729 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1730 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1731 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1732 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1733 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1734
1735 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1736 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1737
1738 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1739 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1740 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1741 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1742 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1743 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1744 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1745
1746 _ASUNAME
1747
1748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749 for as_dir in $PATH
1750 do
1751 IFS=$as_save_IFS
1752 test -z "$as_dir" && as_dir=.
1753 $as_echo "PATH: $as_dir"
1754 done
1755 IFS=$as_save_IFS
1756
1757 } >&5
1758
1759 cat >&5 <<_ACEOF
1760
1761
1762 ## ----------- ##
1763 ## Core tests. ##
1764 ## ----------- ##
1765
1766 _ACEOF
1767
1768
1769 # Keep a trace of the command line.
1770 # Strip out --no-create and --no-recursion so they do not pile up.
1771 # Strip out --silent because we don't want to record it for future runs.
1772 # Also quote any args containing shell meta-characters.
1773 # Make two passes to allow for proper duplicate-argument suppression.
1774 ac_configure_args=
1775 ac_configure_args0=
1776 ac_configure_args1=
1777 ac_must_keep_next=false
1778 for ac_pass in 1 2
1779 do
1780 for ac_arg
1781 do
1782 case $ac_arg in
1783 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1784 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1785 | -silent | --silent | --silen | --sile | --sil)
1786 continue ;;
1787 *\'*)
1788 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1789 esac
1790 case $ac_pass in
1791 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1792 2)
1793 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1794 if test $ac_must_keep_next = true; then
1795 ac_must_keep_next=false # Got value, back to normal.
1796 else
1797 case $ac_arg in
1798 *=* | --config-cache | -C | -disable-* | --disable-* \
1799 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1800 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1801 | -with-* | --with-* | -without-* | --without-* | --x)
1802 case "$ac_configure_args0 " in
1803 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1804 esac
1805 ;;
1806 -* ) ac_must_keep_next=true ;;
1807 esac
1808 fi
1809 ac_configure_args="$ac_configure_args '$ac_arg'"
1810 ;;
1811 esac
1812 done
1813 done
1814 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1815 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1816
1817 # When interrupted or exit'd, cleanup temporary files, and complete
1818 # config.log. We remove comments because anyway the quotes in there
1819 # would cause problems or look ugly.
1820 # WARNING: Use '\'' to represent an apostrophe within the trap.
1821 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1822 trap 'exit_status=$?
1823 # Save into config.log some information that might help in debugging.
1824 {
1825 echo
1826
1827 cat <<\_ASBOX
1828 ## ---------------- ##
1829 ## Cache variables. ##
1830 ## ---------------- ##
1831 _ASBOX
1832 echo
1833 # The following way of writing the cache mishandles newlines in values,
1834 (
1835 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1836 eval ac_val=\$$ac_var
1837 case $ac_val in #(
1838 *${as_nl}*)
1839 case $ac_var in #(
1840 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1841 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1842 esac
1843 case $ac_var in #(
1844 _ | IFS | as_nl) ;; #(
1845 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1846 *) $as_unset $ac_var ;;
1847 esac ;;
1848 esac
1849 done
1850 (set) 2>&1 |
1851 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1852 *${as_nl}ac_space=\ *)
1853 sed -n \
1854 "s/'\''/'\''\\\\'\'''\''/g;
1855 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1856 ;; #(
1857 *)
1858 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1859 ;;
1860 esac |
1861 sort
1862 )
1863 echo
1864
1865 cat <<\_ASBOX
1866 ## ----------------- ##
1867 ## Output variables. ##
1868 ## ----------------- ##
1869 _ASBOX
1870 echo
1871 for ac_var in $ac_subst_vars
1872 do
1873 eval ac_val=\$$ac_var
1874 case $ac_val in
1875 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1876 esac
1877 $as_echo "$ac_var='\''$ac_val'\''"
1878 done | sort
1879 echo
1880
1881 if test -n "$ac_subst_files"; then
1882 cat <<\_ASBOX
1883 ## ------------------- ##
1884 ## File substitutions. ##
1885 ## ------------------- ##
1886 _ASBOX
1887 echo
1888 for ac_var in $ac_subst_files
1889 do
1890 eval ac_val=\$$ac_var
1891 case $ac_val in
1892 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1893 esac
1894 $as_echo "$ac_var='\''$ac_val'\''"
1895 done | sort
1896 echo
1897 fi
1898
1899 if test -s confdefs.h; then
1900 cat <<\_ASBOX
1901 ## ----------- ##
1902 ## confdefs.h. ##
1903 ## ----------- ##
1904 _ASBOX
1905 echo
1906 cat confdefs.h
1907 echo
1908 fi
1909 test "$ac_signal" != 0 &&
1910 $as_echo "$as_me: caught signal $ac_signal"
1911 $as_echo "$as_me: exit $exit_status"
1912 } >&5
1913 rm -f core *.core core.conftest.* &&
1914 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1915 exit $exit_status
1916 ' 0
1917 for ac_signal in 1 2 13 15; do
1918 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1919 done
1920 ac_signal=0
1921
1922 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1923 rm -f -r conftest* confdefs.h
1924
1925 # Predefined preprocessor variables.
1926
1927 cat >>confdefs.h <<_ACEOF
1928 #define PACKAGE_NAME "$PACKAGE_NAME"
1929 _ACEOF
1930
1931
1932 cat >>confdefs.h <<_ACEOF
1933 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1934 _ACEOF
1935
1936
1937 cat >>confdefs.h <<_ACEOF
1938 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1939 _ACEOF
1940
1941
1942 cat >>confdefs.h <<_ACEOF
1943 #define PACKAGE_STRING "$PACKAGE_STRING"
1944 _ACEOF
1945
1946
1947 cat >>confdefs.h <<_ACEOF
1948 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1949 _ACEOF
1950
1951
1952 # Let the site file select an alternate cache file if it wants to.
1953 # Prefer an explicitly selected file to automatically selected ones.
1954 ac_site_file1=NONE
1955 ac_site_file2=NONE
1956 if test -n "$CONFIG_SITE"; then
1957 ac_site_file1=$CONFIG_SITE
1958 elif test "x$prefix" != xNONE; then
1959 ac_site_file1=$prefix/share/config.site
1960 ac_site_file2=$prefix/etc/config.site
1961 else
1962 ac_site_file1=$ac_default_prefix/share/config.site
1963 ac_site_file2=$ac_default_prefix/etc/config.site
1964 fi
1965 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1966 do
1967 test "x$ac_site_file" = xNONE && continue
1968 if test -r "$ac_site_file"; then
1969 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1970 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1971 sed 's/^/| /' "$ac_site_file" >&5
1972 . "$ac_site_file"
1973 fi
1974 done
1975
1976 if test -r "$cache_file"; then
1977 # Some versions of bash will fail to source /dev/null (special
1978 # files actually), so we avoid doing that.
1979 if test -f "$cache_file"; then
1980 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1981 $as_echo "$as_me: loading cache $cache_file" >&6;}
1982 case $cache_file in
1983 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1984 *) . "./$cache_file";;
1985 esac
1986 fi
1987 else
1988 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1989 $as_echo "$as_me: creating cache $cache_file" >&6;}
1990 >$cache_file
1991 fi
1992
1993 # Check that the precious variables saved in the cache have kept the same
1994 # value.
1995 ac_cache_corrupted=false
1996 for ac_var in $ac_precious_vars; do
1997 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1998 eval ac_new_set=\$ac_env_${ac_var}_set
1999 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2000 eval ac_new_val=\$ac_env_${ac_var}_value
2001 case $ac_old_set,$ac_new_set in
2002 set,)
2003 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2004 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2005 ac_cache_corrupted=: ;;
2006 ,set)
2007 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2008 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2009 ac_cache_corrupted=: ;;
2010 ,);;
2011 *)
2012 if test "x$ac_old_val" != "x$ac_new_val"; then
2013 # differences in whitespace do not lead to failure.
2014 ac_old_val_w=`echo x $ac_old_val`
2015 ac_new_val_w=`echo x $ac_new_val`
2016 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2017 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2018 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2019 ac_cache_corrupted=:
2020 else
2021 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2022 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2023 eval $ac_var=\$ac_old_val
2024 fi
2025 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2026 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2027 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2028 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2029 fi;;
2030 esac
2031 # Pass precious variables to config.status.
2032 if test "$ac_new_set" = set; then
2033 case $ac_new_val in
2034 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2035 *) ac_arg=$ac_var=$ac_new_val ;;
2036 esac
2037 case " $ac_configure_args " in
2038 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2039 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2040 esac
2041 fi
2042 done
2043 if $ac_cache_corrupted; then
2044 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2046 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2047 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2048 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2049 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2050 { (exit 1); exit 1; }; }
2051 fi
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077 ac_ext=c
2078 ac_cpp='$CPP $CPPFLAGS'
2079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2082
2083
2084
2085 ac_config_headers="$ac_config_headers config.h"
2086
2087 ac_aux_dir=
2088 for ac_dir in . "$srcdir"/.; do
2089 if test -f "$ac_dir/install-sh"; then
2090 ac_aux_dir=$ac_dir
2091 ac_install_sh="$ac_aux_dir/install-sh -c"
2092 break
2093 elif test -f "$ac_dir/install.sh"; then
2094 ac_aux_dir=$ac_dir
2095 ac_install_sh="$ac_aux_dir/install.sh -c"
2096 break
2097 elif test -f "$ac_dir/shtool"; then
2098 ac_aux_dir=$ac_dir
2099 ac_install_sh="$ac_aux_dir/shtool install -c"
2100 break
2101 fi
2102 done
2103 if test -z "$ac_aux_dir"; then
2104 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2105 $as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2106 { (exit 1); exit 1; }; }
2107 fi
2108
2109 # These three variables are undocumented and unsupported,
2110 # and are intended to be withdrawn in a future Autoconf release.
2111 # They can cause serious problems if a builder's source tree is in a directory
2112 # whose full name contains unusual characters.
2113 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2114 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2115 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2116
2117
2118
2119 # Initialize Automake
2120 am__api_version='1.11'
2121
2122 # Find a good install program. We prefer a C program (faster),
2123 # so one script is as good as another. But avoid the broken or
2124 # incompatible versions:
2125 # SysV /etc/install, /usr/sbin/install
2126 # SunOS /usr/etc/install
2127 # IRIX /sbin/install
2128 # AIX /bin/install
2129 # AmigaOS /C/install, which installs bootblocks on floppy discs
2130 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2131 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2132 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2133 # OS/2's system install, which has a completely different semantic
2134 # ./install, which can be erroneously created by make from ./install.sh.
2135 # Reject install programs that cannot install multiple files.
2136 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2137 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2138 if test -z "$INSTALL"; then
2139 if test "${ac_cv_path_install+set}" = set; then
2140 $as_echo_n "(cached) " >&6
2141 else
2142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143 for as_dir in $PATH
2144 do
2145 IFS=$as_save_IFS
2146 test -z "$as_dir" && as_dir=.
2147 # Account for people who put trailing slashes in PATH elements.
2148 case $as_dir/ in
2149 ./ | .// | /cC/* | \
2150 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2151 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2152 /usr/ucb/* ) ;;
2153 *)
2154 # OSF1 and SCO ODT 3.0 have their own names for install.
2155 # Don't use installbsd from OSF since it installs stuff as root
2156 # by default.
2157 for ac_prog in ginstall scoinst install; do
2158 for ac_exec_ext in '' $ac_executable_extensions; do
2159 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2160 if test $ac_prog = install &&
2161 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2162 # AIX install. It has an incompatible calling convention.
2163 :
2164 elif test $ac_prog = install &&
2165 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2166 # program-specific install script used by HP pwplus--don't use.
2167 :
2168 else
2169 rm -rf conftest.one conftest.two conftest.dir
2170 echo one > conftest.one
2171 echo two > conftest.two
2172 mkdir conftest.dir
2173 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2174 test -s conftest.one && test -s conftest.two &&
2175 test -s conftest.dir/conftest.one &&
2176 test -s conftest.dir/conftest.two
2177 then
2178 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2179 break 3
2180 fi
2181 fi
2182 fi
2183 done
2184 done
2185 ;;
2186 esac
2187
2188 done
2189 IFS=$as_save_IFS
2190
2191 rm -rf conftest.one conftest.two conftest.dir
2192
2193 fi
2194 if test "${ac_cv_path_install+set}" = set; then
2195 INSTALL=$ac_cv_path_install
2196 else
2197 # As a last resort, use the slow shell script. Don't cache a
2198 # value for INSTALL within a source directory, because that will
2199 # break other packages using the cache if that directory is
2200 # removed, or if the value is a relative name.
2201 INSTALL=$ac_install_sh
2202 fi
2203 fi
2204 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2205 $as_echo "$INSTALL" >&6; }
2206
2207 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2208 # It thinks the first close brace ends the variable substitution.
2209 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2210
2211 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2212
2213 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2214
2215 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2216 $as_echo_n "checking whether build environment is sane... " >&6; }
2217 # Just in case
2218 sleep 1
2219 echo timestamp > conftest.file
2220 # Reject unsafe characters in $srcdir or the absolute working directory
2221 # name. Accept space and tab only in the latter.
2222 am_lf='
2223 '
2224 case `pwd` in
2225 *[\\\"\#\$\&\'\`$am_lf]*)
2226 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2227 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2228 { (exit 1); exit 1; }; };;
2229 esac
2230 case $srcdir in
2231 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2232 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2233 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2234 { (exit 1); exit 1; }; };;
2235 esac
2236
2237 # Do `set' in a subshell so we don't clobber the current shell's
2238 # arguments. Must try -L first in case configure is actually a
2239 # symlink; some systems play weird games with the mod time of symlinks
2240 # (eg FreeBSD returns the mod time of the symlink's containing
2241 # directory).
2242 if (
2243 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2244 if test "$*" = "X"; then
2245 # -L didn't work.
2246 set X `ls -t "$srcdir/configure" conftest.file`
2247 fi
2248 rm -f conftest.file
2249 if test "$*" != "X $srcdir/configure conftest.file" \
2250 && test "$*" != "X conftest.file $srcdir/configure"; then
2251
2252 # If neither matched, then we have a broken ls. This can happen
2253 # if, for instance, CONFIG_SHELL is bash and it inherits a
2254 # broken ls alias from the environment. This has actually
2255 # happened. Such a system could not be considered "sane".
2256 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2257 alias in your environment" >&5
2258 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2259 alias in your environment" >&2;}
2260 { (exit 1); exit 1; }; }
2261 fi
2262
2263 test "$2" = conftest.file
2264 )
2265 then
2266 # Ok.
2267 :
2268 else
2269 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2270 Check your system clock" >&5
2271 $as_echo "$as_me: error: newly created file is older than distributed files!
2272 Check your system clock" >&2;}
2273 { (exit 1); exit 1; }; }
2274 fi
2275 { $as_echo "$as_me:$LINENO: result: yes" >&5
2276 $as_echo "yes" >&6; }
2277 test "$program_prefix" != NONE &&
2278 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2279 # Use a double $ so make ignores it.
2280 test "$program_suffix" != NONE &&
2281 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2282 # Double any \ or $.
2283 # By default was `s,x,x', remove it if useless.
2284 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2285 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2286
2287 # expand $ac_aux_dir to an absolute path
2288 am_aux_dir=`cd $ac_aux_dir && pwd`
2289
2290 if test x"${MISSING+set}" != xset; then
2291 case $am_aux_dir in
2292 *\ * | *\ *)
2293 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2294 *)
2295 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2296 esac
2297 fi
2298 # Use eval to expand $SHELL
2299 if eval "$MISSING --run true"; then
2300 am_missing_run="$MISSING --run "
2301 else
2302 am_missing_run=
2303 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2304 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2305 fi
2306
2307 if test x"${install_sh}" != xset; then
2308 case $am_aux_dir in
2309 *\ * | *\ *)
2310 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2311 *)
2312 install_sh="\${SHELL} $am_aux_dir/install-sh"
2313 esac
2314 fi
2315
2316 # Installed binaries are usually stripped using `strip' when the user
2317 # run `make install-strip'. However `strip' might not be the right
2318 # tool to use in cross-compilation environments, therefore Automake
2319 # will honor the `STRIP' environment variable to overrule this program.
2320 if test "$cross_compiling" != no; then
2321 if test -n "$ac_tool_prefix"; then
2322 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2323 set dummy ${ac_tool_prefix}strip; ac_word=$2
2324 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2325 $as_echo_n "checking for $ac_word... " >&6; }
2326 if test "${ac_cv_prog_STRIP+set}" = set; then
2327 $as_echo_n "(cached) " >&6
2328 else
2329 if test -n "$STRIP"; then
2330 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2331 else
2332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333 for as_dir in $PATH
2334 do
2335 IFS=$as_save_IFS
2336 test -z "$as_dir" && as_dir=.
2337 for ac_exec_ext in '' $ac_executable_extensions; do
2338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2339 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2340 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2341 break 2
2342 fi
2343 done
2344 done
2345 IFS=$as_save_IFS
2346
2347 fi
2348 fi
2349 STRIP=$ac_cv_prog_STRIP
2350 if test -n "$STRIP"; then
2351 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2352 $as_echo "$STRIP" >&6; }
2353 else
2354 { $as_echo "$as_me:$LINENO: result: no" >&5
2355 $as_echo "no" >&6; }
2356 fi
2357
2358
2359 fi
2360 if test -z "$ac_cv_prog_STRIP"; then
2361 ac_ct_STRIP=$STRIP
2362 # Extract the first word of "strip", so it can be a program name with args.
2363 set dummy strip; ac_word=$2
2364 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2365 $as_echo_n "checking for $ac_word... " >&6; }
2366 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2367 $as_echo_n "(cached) " >&6
2368 else
2369 if test -n "$ac_ct_STRIP"; then
2370 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2371 else
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 for as_dir in $PATH
2374 do
2375 IFS=$as_save_IFS
2376 test -z "$as_dir" && as_dir=.
2377 for ac_exec_ext in '' $ac_executable_extensions; do
2378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2379 ac_cv_prog_ac_ct_STRIP="strip"
2380 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2381 break 2
2382 fi
2383 done
2384 done
2385 IFS=$as_save_IFS
2386
2387 fi
2388 fi
2389 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2390 if test -n "$ac_ct_STRIP"; then
2391 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2392 $as_echo "$ac_ct_STRIP" >&6; }
2393 else
2394 { $as_echo "$as_me:$LINENO: result: no" >&5
2395 $as_echo "no" >&6; }
2396 fi
2397
2398 if test "x$ac_ct_STRIP" = x; then
2399 STRIP=":"
2400 else
2401 case $cross_compiling:$ac_tool_warned in
2402 yes:)
2403 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2405 ac_tool_warned=yes ;;
2406 esac
2407 STRIP=$ac_ct_STRIP
2408 fi
2409 else
2410 STRIP="$ac_cv_prog_STRIP"
2411 fi
2412
2413 fi
2414 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2415
2416 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2417 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2418 if test -z "$MKDIR_P"; then
2419 if test "${ac_cv_path_mkdir+set}" = set; then
2420 $as_echo_n "(cached) " >&6
2421 else
2422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2424 do
2425 IFS=$as_save_IFS
2426 test -z "$as_dir" && as_dir=.
2427 for ac_prog in mkdir gmkdir; do
2428 for ac_exec_ext in '' $ac_executable_extensions; do
2429 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2430 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2431 'mkdir (GNU coreutils) '* | \
2432 'mkdir (coreutils) '* | \
2433 'mkdir (fileutils) '4.1*)
2434 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2435 break 3;;
2436 esac
2437 done
2438 done
2439 done
2440 IFS=$as_save_IFS
2441
2442 fi
2443
2444 if test "${ac_cv_path_mkdir+set}" = set; then
2445 MKDIR_P="$ac_cv_path_mkdir -p"
2446 else
2447 # As a last resort, use the slow shell script. Don't cache a
2448 # value for MKDIR_P within a source directory, because that will
2449 # break other packages using the cache if that directory is
2450 # removed, or if the value is a relative name.
2451 test -d ./--version && rmdir ./--version
2452 MKDIR_P="$ac_install_sh -d"
2453 fi
2454 fi
2455 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2456 $as_echo "$MKDIR_P" >&6; }
2457
2458 mkdir_p="$MKDIR_P"
2459 case $mkdir_p in
2460 [\\/$]* | ?:[\\/]*) ;;
2461 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2462 esac
2463
2464 for ac_prog in gawk mawk nawk awk
2465 do
2466 # Extract the first word of "$ac_prog", so it can be a program name with args.
2467 set dummy $ac_prog; ac_word=$2
2468 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2469 $as_echo_n "checking for $ac_word... " >&6; }
2470 if test "${ac_cv_prog_AWK+set}" = set; then
2471 $as_echo_n "(cached) " >&6
2472 else
2473 if test -n "$AWK"; then
2474 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2475 else
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 for as_dir in $PATH
2478 do
2479 IFS=$as_save_IFS
2480 test -z "$as_dir" && as_dir=.
2481 for ac_exec_ext in '' $ac_executable_extensions; do
2482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2483 ac_cv_prog_AWK="$ac_prog"
2484 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2485 break 2
2486 fi
2487 done
2488 done
2489 IFS=$as_save_IFS
2490
2491 fi
2492 fi
2493 AWK=$ac_cv_prog_AWK
2494 if test -n "$AWK"; then
2495 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2496 $as_echo "$AWK" >&6; }
2497 else
2498 { $as_echo "$as_me:$LINENO: result: no" >&5
2499 $as_echo "no" >&6; }
2500 fi
2501
2502
2503 test -n "$AWK" && break
2504 done
2505
2506 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2507 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2508 set x ${MAKE-make}
2509 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2510 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2511 $as_echo_n "(cached) " >&6
2512 else
2513 cat >conftest.make <<\_ACEOF
2514 SHELL = /bin/sh
2515 all:
2516 @echo '@@@%%%=$(MAKE)=@@@%%%'
2517 _ACEOF
2518 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2519 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2520 *@@@%%%=?*=@@@%%%*)
2521 eval ac_cv_prog_make_${ac_make}_set=yes;;
2522 *)
2523 eval ac_cv_prog_make_${ac_make}_set=no;;
2524 esac
2525 rm -f conftest.make
2526 fi
2527 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2528 { $as_echo "$as_me:$LINENO: result: yes" >&5
2529 $as_echo "yes" >&6; }
2530 SET_MAKE=
2531 else
2532 { $as_echo "$as_me:$LINENO: result: no" >&5
2533 $as_echo "no" >&6; }
2534 SET_MAKE="MAKE=${MAKE-make}"
2535 fi
2536
2537 rm -rf .tst 2>/dev/null
2538 mkdir .tst 2>/dev/null
2539 if test -d .tst; then
2540 am__leading_dot=.
2541 else
2542 am__leading_dot=_
2543 fi
2544 rmdir .tst 2>/dev/null
2545
2546 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2547 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2548 # is not polluted with repeated "-I."
2549 am__isrc=' -I$(srcdir)'
2550 # test to see if srcdir already configured
2551 if test -f $srcdir/config.status; then
2552 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2553 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2554 { (exit 1); exit 1; }; }
2555 fi
2556 fi
2557
2558 # test whether we have cygpath
2559 if test -z "$CYGPATH_W"; then
2560 if (cygpath --version) >/dev/null 2>/dev/null; then
2561 CYGPATH_W='cygpath -w'
2562 else
2563 CYGPATH_W=echo
2564 fi
2565 fi
2566
2567
2568 # Define the identity of the package.
2569 PACKAGE='xf86-video-vmware'
2570 VERSION='11.0.2'
2571
2572
2573 cat >>confdefs.h <<_ACEOF
2574 #define PACKAGE "$PACKAGE"
2575 _ACEOF
2576
2577
2578 cat >>confdefs.h <<_ACEOF
2579 #define VERSION "$VERSION"
2580 _ACEOF
2581
2582 # Some tools Automake needs.
2583
2584 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2585
2586
2587 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2588
2589
2590 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2591
2592
2593 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2594
2595
2596 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2597
2598 # We need awk for the "check" target. The system "awk" is bad on
2599 # some platforms.
2600 # Always define AMTAR for backward compatibility.
2601
2602 AMTAR=${AMTAR-"${am_missing_run}tar"}
2603
2604 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2605
2606
2607
2608
2609
2610
2611 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2612 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2613 # Check whether --enable-maintainer-mode was given.
2614 if test "${enable_maintainer_mode+set}" = set; then
2615 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2616 else
2617 USE_MAINTAINER_MODE=no
2618 fi
2619
2620 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2621 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2622 if test $USE_MAINTAINER_MODE = yes; then
2623 MAINTAINER_MODE_TRUE=
2624 MAINTAINER_MODE_FALSE='#'
2625 else
2626 MAINTAINER_MODE_TRUE='#'
2627 MAINTAINER_MODE_FALSE=
2628 fi
2629
2630 MAINT=$MAINTAINER_MODE_TRUE
2631
2632
2633
2634 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646 DEPDIR="${am__leading_dot}deps"
2647
2648 ac_config_commands="$ac_config_commands depfiles"
2649
2650
2651 am_make=${MAKE-make}
2652 cat > confinc << 'END'
2653 am__doit:
2654 @echo this is the am__doit target
2655 .PHONY: am__doit
2656 END
2657 # If we don't find an include directive, just comment out the code.
2658 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2659 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2660 am__include="#"
2661 am__quote=
2662 _am_result=none
2663 # First try GNU make style include.
2664 echo "include confinc" > confmf
2665 # Ignore all kinds of additional output from `make'.
2666 case `$am_make -s -f confmf 2> /dev/null` in #(
2667 *the\ am__doit\ target*)
2668 am__include=include
2669 am__quote=
2670 _am_result=GNU
2671 ;;
2672 esac
2673 # Now try BSD make style include.
2674 if test "$am__include" = "#"; then
2675 echo '.include "confinc"' > confmf
2676 case `$am_make -s -f confmf 2> /dev/null` in #(
2677 *the\ am__doit\ target*)
2678 am__include=.include
2679 am__quote="\""
2680 _am_result=BSD
2681 ;;
2682 esac
2683 fi
2684
2685
2686 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2687 $as_echo "$_am_result" >&6; }
2688 rm -f confinc confmf
2689
2690 # Check whether --enable-dependency-tracking was given.
2691 if test "${enable_dependency_tracking+set}" = set; then
2692 enableval=$enable_dependency_tracking;
2693 fi
2694
2695 if test "x$enable_dependency_tracking" != xno; then
2696 am_depcomp="$ac_aux_dir/depcomp"
2697 AMDEPBACKSLASH='\'
2698 fi
2699 if test "x$enable_dependency_tracking" != xno; then
2700 AMDEP_TRUE=
2701 AMDEP_FALSE='#'
2702 else
2703 AMDEP_TRUE='#'
2704 AMDEP_FALSE=
2705 fi
2706
2707
2708 ac_ext=c
2709 ac_cpp='$CPP $CPPFLAGS'
2710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2713 if test -n "$ac_tool_prefix"; then
2714 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2715 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2716 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2717 $as_echo_n "checking for $ac_word... " >&6; }
2718 if test "${ac_cv_prog_CC+set}" = set; then
2719 $as_echo_n "(cached) " >&6
2720 else
2721 if test -n "$CC"; then
2722 ac_cv_prog_CC="$CC" # Let the user override the test.
2723 else
2724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725 for as_dir in $PATH
2726 do
2727 IFS=$as_save_IFS
2728 test -z "$as_dir" && as_dir=.
2729 for ac_exec_ext in '' $ac_executable_extensions; do
2730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2731 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2732 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2733 break 2
2734 fi
2735 done
2736 done
2737 IFS=$as_save_IFS
2738
2739 fi
2740 fi
2741 CC=$ac_cv_prog_CC
2742 if test -n "$CC"; then
2743 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2744 $as_echo "$CC" >&6; }
2745 else
2746 { $as_echo "$as_me:$LINENO: result: no" >&5
2747 $as_echo "no" >&6; }
2748 fi
2749
2750
2751 fi
2752 if test -z "$ac_cv_prog_CC"; then
2753 ac_ct_CC=$CC
2754 # Extract the first word of "gcc", so it can be a program name with args.
2755 set dummy gcc; ac_word=$2
2756 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2757 $as_echo_n "checking for $ac_word... " >&6; }
2758 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2759 $as_echo_n "(cached) " >&6
2760 else
2761 if test -n "$ac_ct_CC"; then
2762 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2763 else
2764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765 for as_dir in $PATH
2766 do
2767 IFS=$as_save_IFS
2768 test -z "$as_dir" && as_dir=.
2769 for ac_exec_ext in '' $ac_executable_extensions; do
2770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2771 ac_cv_prog_ac_ct_CC="gcc"
2772 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2773 break 2
2774 fi
2775 done
2776 done
2777 IFS=$as_save_IFS
2778
2779 fi
2780 fi
2781 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2782 if test -n "$ac_ct_CC"; then
2783 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2784 $as_echo "$ac_ct_CC" >&6; }
2785 else
2786 { $as_echo "$as_me:$LINENO: result: no" >&5
2787 $as_echo "no" >&6; }
2788 fi
2789
2790 if test "x$ac_ct_CC" = x; then
2791 CC=""
2792 else
2793 case $cross_compiling:$ac_tool_warned in
2794 yes:)
2795 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2797 ac_tool_warned=yes ;;
2798 esac
2799 CC=$ac_ct_CC
2800 fi
2801 else
2802 CC="$ac_cv_prog_CC"
2803 fi
2804
2805 if test -z "$CC"; then
2806 if test -n "$ac_tool_prefix"; then
2807 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2808 set dummy ${ac_tool_prefix}cc; ac_word=$2
2809 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2810 $as_echo_n "checking for $ac_word... " >&6; }
2811 if test "${ac_cv_prog_CC+set}" = set; then
2812 $as_echo_n "(cached) " >&6
2813 else
2814 if test -n "$CC"; then
2815 ac_cv_prog_CC="$CC" # Let the user override the test.
2816 else
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 for as_dir in $PATH
2819 do
2820 IFS=$as_save_IFS
2821 test -z "$as_dir" && as_dir=.
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2824 ac_cv_prog_CC="${ac_tool_prefix}cc"
2825 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 break 2
2827 fi
2828 done
2829 done
2830 IFS=$as_save_IFS
2831
2832 fi
2833 fi
2834 CC=$ac_cv_prog_CC
2835 if test -n "$CC"; then
2836 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2837 $as_echo "$CC" >&6; }
2838 else
2839 { $as_echo "$as_me:$LINENO: result: no" >&5
2840 $as_echo "no" >&6; }
2841 fi
2842
2843
2844 fi
2845 fi
2846 if test -z "$CC"; then
2847 # Extract the first word of "cc", so it can be a program name with args.
2848 set dummy cc; ac_word=$2
2849 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2850 $as_echo_n "checking for $ac_word... " >&6; }
2851 if test "${ac_cv_prog_CC+set}" = set; then
2852 $as_echo_n "(cached) " >&6
2853 else
2854 if test -n "$CC"; then
2855 ac_cv_prog_CC="$CC" # Let the user override the test.
2856 else
2857 ac_prog_rejected=no
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 for as_dir in $PATH
2860 do
2861 IFS=$as_save_IFS
2862 test -z "$as_dir" && as_dir=.
2863 for ac_exec_ext in '' $ac_executable_extensions; do
2864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2865 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2866 ac_prog_rejected=yes
2867 continue
2868 fi
2869 ac_cv_prog_CC="cc"
2870 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2871 break 2
2872 fi
2873 done
2874 done
2875 IFS=$as_save_IFS
2876
2877 if test $ac_prog_rejected = yes; then
2878 # We found a bogon in the path, so make sure we never use it.
2879 set dummy $ac_cv_prog_CC
2880 shift
2881 if test $# != 0; then
2882 # We chose a different compiler from the bogus one.
2883 # However, it has the same basename, so the bogon will be chosen
2884 # first if we set CC to just the basename; use the full file name.
2885 shift
2886 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2887 fi
2888 fi
2889 fi
2890 fi
2891 CC=$ac_cv_prog_CC
2892 if test -n "$CC"; then
2893 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2894 $as_echo "$CC" >&6; }
2895 else
2896 { $as_echo "$as_me:$LINENO: result: no" >&5
2897 $as_echo "no" >&6; }
2898 fi
2899
2900
2901 fi
2902 if test -z "$CC"; then
2903 if test -n "$ac_tool_prefix"; then
2904 for ac_prog in cl.exe
2905 do
2906 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2907 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2908 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2909 $as_echo_n "checking for $ac_word... " >&6; }
2910 if test "${ac_cv_prog_CC+set}" = set; then
2911 $as_echo_n "(cached) " >&6
2912 else
2913 if test -n "$CC"; then
2914 ac_cv_prog_CC="$CC" # Let the user override the test.
2915 else
2916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917 for as_dir in $PATH
2918 do
2919 IFS=$as_save_IFS
2920 test -z "$as_dir" && as_dir=.
2921 for ac_exec_ext in '' $ac_executable_extensions; do
2922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2923 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2924 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2925 break 2
2926 fi
2927 done
2928 done
2929 IFS=$as_save_IFS
2930
2931 fi
2932 fi
2933 CC=$ac_cv_prog_CC
2934 if test -n "$CC"; then
2935 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2936 $as_echo "$CC" >&6; }
2937 else
2938 { $as_echo "$as_me:$LINENO: result: no" >&5
2939 $as_echo "no" >&6; }
2940 fi
2941
2942
2943 test -n "$CC" && break
2944 done
2945 fi
2946 if test -z "$CC"; then
2947 ac_ct_CC=$CC
2948 for ac_prog in cl.exe
2949 do
2950 # Extract the first word of "$ac_prog", so it can be a program name with args.
2951 set dummy $ac_prog; ac_word=$2
2952 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2953 $as_echo_n "checking for $ac_word... " >&6; }
2954 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2955 $as_echo_n "(cached) " >&6
2956 else
2957 if test -n "$ac_ct_CC"; then
2958 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2959 else
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 for as_dir in $PATH
2962 do
2963 IFS=$as_save_IFS
2964 test -z "$as_dir" && as_dir=.
2965 for ac_exec_ext in '' $ac_executable_extensions; do
2966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2967 ac_cv_prog_ac_ct_CC="$ac_prog"
2968 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2969 break 2
2970 fi
2971 done
2972 done
2973 IFS=$as_save_IFS
2974
2975 fi
2976 fi
2977 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2978 if test -n "$ac_ct_CC"; then
2979 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2980 $as_echo "$ac_ct_CC" >&6; }
2981 else
2982 { $as_echo "$as_me:$LINENO: result: no" >&5
2983 $as_echo "no" >&6; }
2984 fi
2985
2986
2987 test -n "$ac_ct_CC" && break
2988 done
2989
2990 if test "x$ac_ct_CC" = x; then
2991 CC=""
2992 else
2993 case $cross_compiling:$ac_tool_warned in
2994 yes:)
2995 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2997 ac_tool_warned=yes ;;
2998 esac
2999 CC=$ac_ct_CC
3000 fi
3001 fi
3002
3003 fi
3004
3005
3006 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3008 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3009 See \`config.log' for more details." >&5
3010 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3011 See \`config.log' for more details." >&2;}
3012 { (exit 1); exit 1; }; }; }
3013
3014 # Provide some information about the compiler.
3015 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3016 set X $ac_compile
3017 ac_compiler=$2
3018 { (ac_try="$ac_compiler --version >&5"
3019 case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3022 esac
3023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3024 $as_echo "$ac_try_echo") >&5
3025 (eval "$ac_compiler --version >&5") 2>&5
3026 ac_status=$?
3027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }
3029 { (ac_try="$ac_compiler -v >&5"
3030 case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3033 esac
3034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3035 $as_echo "$ac_try_echo") >&5
3036 (eval "$ac_compiler -v >&5") 2>&5
3037 ac_status=$?
3038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); }
3040 { (ac_try="$ac_compiler -V >&5"
3041 case "(($ac_try" in
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3044 esac
3045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3046 $as_echo "$ac_try_echo") >&5
3047 (eval "$ac_compiler -V >&5") 2>&5
3048 ac_status=$?
3049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }
3051
3052 cat >conftest.$ac_ext <<_ACEOF
3053 /* confdefs.h. */
3054 _ACEOF
3055 cat confdefs.h >>conftest.$ac_ext
3056 cat >>conftest.$ac_ext <<_ACEOF
3057 /* end confdefs.h. */
3058
3059 int
3060 main ()
3061 {
3062
3063 ;
3064 return 0;
3065 }
3066 _ACEOF
3067 ac_clean_files_save=$ac_clean_files
3068 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3069 # Try to create an executable without -o first, disregard a.out.
3070 # It will help us diagnose broken compilers, and finding out an intuition
3071 # of exeext.
3072 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3073 $as_echo_n "checking for C compiler default output file name... " >&6; }
3074 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3075
3076 # The possible output files:
3077 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3078
3079 ac_rmfiles=
3080 for ac_file in $ac_files
3081 do
3082 case $ac_file in
3083 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3084 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3085 esac
3086 done
3087 rm -f $ac_rmfiles
3088
3089 if { (ac_try="$ac_link_default"
3090 case "(($ac_try" in
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3093 esac
3094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3095 $as_echo "$ac_try_echo") >&5
3096 (eval "$ac_link_default") 2>&5
3097 ac_status=$?
3098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; then
3100 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3101 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3102 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3103 # so that the user can short-circuit this test for compilers unknown to
3104 # Autoconf.
3105 for ac_file in $ac_files ''
3106 do
3107 test -f "$ac_file" || continue
3108 case $ac_file in
3109 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3110 ;;
3111 [ab].out )
3112 # We found the default executable, but exeext='' is most
3113 # certainly right.
3114 break;;
3115 *.* )
3116 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3117 then :; else
3118 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3119 fi
3120 # We set ac_cv_exeext here because the later test for it is not
3121 # safe: cross compilers may not add the suffix if given an `-o'
3122 # argument, so we may need to know it at that point already.
3123 # Even if this section looks crufty: it has the advantage of
3124 # actually working.
3125 break;;
3126 * )
3127 break;;
3128 esac
3129 done
3130 test "$ac_cv_exeext" = no && ac_cv_exeext=
3131
3132 else
3133 ac_file=''
3134 fi
3135
3136 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3137 $as_echo "$ac_file" >&6; }
3138 if test -z "$ac_file"; then
3139 $as_echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.$ac_ext >&5
3141
3142 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3144 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3145 See \`config.log' for more details." >&5
3146 $as_echo "$as_me: error: C compiler cannot create executables
3147 See \`config.log' for more details." >&2;}
3148 { (exit 77); exit 77; }; }; }
3149 fi
3150
3151 ac_exeext=$ac_cv_exeext
3152
3153 # Check that the compiler produces executables we can run. If not, either
3154 # the compiler is broken, or we cross compile.
3155 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3156 $as_echo_n "checking whether the C compiler works... " >&6; }
3157 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3158 # If not cross compiling, check that we can run a simple program.
3159 if test "$cross_compiling" != yes; then
3160 if { ac_try='./$ac_file'
3161 { (case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3164 esac
3165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3166 $as_echo "$ac_try_echo") >&5
3167 (eval "$ac_try") 2>&5
3168 ac_status=$?
3169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; }; then
3171 cross_compiling=no
3172 else
3173 if test "$cross_compiling" = maybe; then
3174 cross_compiling=yes
3175 else
3176 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3178 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3179 If you meant to cross compile, use \`--host'.
3180 See \`config.log' for more details." >&5
3181 $as_echo "$as_me: error: cannot run C compiled programs.
3182 If you meant to cross compile, use \`--host'.
3183 See \`config.log' for more details." >&2;}
3184 { (exit 1); exit 1; }; }; }
3185 fi
3186 fi
3187 fi
3188 { $as_echo "$as_me:$LINENO: result: yes" >&5
3189 $as_echo "yes" >&6; }
3190
3191 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3192 ac_clean_files=$ac_clean_files_save
3193 # Check that the compiler produces executables we can run. If not, either
3194 # the compiler is broken, or we cross compile.
3195 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3196 $as_echo_n "checking whether we are cross compiling... " >&6; }
3197 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3198 $as_echo "$cross_compiling" >&6; }
3199
3200 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3201 $as_echo_n "checking for suffix of executables... " >&6; }
3202 if { (ac_try="$ac_link"
3203 case "(($ac_try" in
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3206 esac
3207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3208 $as_echo "$ac_try_echo") >&5
3209 (eval "$ac_link") 2>&5
3210 ac_status=$?
3211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); }; then
3213 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3214 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3215 # work properly (i.e., refer to `conftest.exe'), while it won't with
3216 # `rm'.
3217 for ac_file in conftest.exe conftest conftest.*; do
3218 test -f "$ac_file" || continue
3219 case $ac_file in
3220 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3221 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3222 break;;
3223 * ) break;;
3224 esac
3225 done
3226 else
3227 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3229 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3230 See \`config.log' for more details." >&5
3231 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3232 See \`config.log' for more details." >&2;}
3233 { (exit 1); exit 1; }; }; }
3234 fi
3235
3236 rm -f conftest$ac_cv_exeext
3237 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3238 $as_echo "$ac_cv_exeext" >&6; }
3239
3240 rm -f conftest.$ac_ext
3241 EXEEXT=$ac_cv_exeext
3242 ac_exeext=$EXEEXT
3243 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3244 $as_echo_n "checking for suffix of object files... " >&6; }
3245 if test "${ac_cv_objext+set}" = set; then
3246 $as_echo_n "(cached) " >&6
3247 else
3248 cat >conftest.$ac_ext <<_ACEOF
3249 /* confdefs.h. */
3250 _ACEOF
3251 cat confdefs.h >>conftest.$ac_ext
3252 cat >>conftest.$ac_ext <<_ACEOF
3253 /* end confdefs.h. */
3254
3255 int
3256 main ()
3257 {
3258
3259 ;
3260 return 0;
3261 }
3262 _ACEOF
3263 rm -f conftest.o conftest.obj
3264 if { (ac_try="$ac_compile"
3265 case "(($ac_try" in
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3268 esac
3269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3270 $as_echo "$ac_try_echo") >&5
3271 (eval "$ac_compile") 2>&5
3272 ac_status=$?
3273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }; then
3275 for ac_file in conftest.o conftest.obj conftest.*; do
3276 test -f "$ac_file" || continue;
3277 case $ac_file in
3278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3279 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3280 break;;
3281 esac
3282 done
3283 else
3284 $as_echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3286
3287 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3289 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3290 See \`config.log' for more details." >&5
3291 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3292 See \`config.log' for more details." >&2;}
3293 { (exit 1); exit 1; }; }; }
3294 fi
3295
3296 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3297 fi
3298 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3299 $as_echo "$ac_cv_objext" >&6; }
3300 OBJEXT=$ac_cv_objext
3301 ac_objext=$OBJEXT
3302 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3303 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3304 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3305 $as_echo_n "(cached) " >&6
3306 else
3307 cat >conftest.$ac_ext <<_ACEOF
3308 /* confdefs.h. */
3309 _ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h. */
3313
3314 int
3315 main ()
3316 {
3317 #ifndef __GNUC__
3318 choke me
3319 #endif
3320
3321 ;
3322 return 0;
3323 }
3324 _ACEOF
3325 rm -f conftest.$ac_objext
3326 if { (ac_try="$ac_compile"
3327 case "(($ac_try" in
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3330 esac
3331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3332 $as_echo "$ac_try_echo") >&5
3333 (eval "$ac_compile") 2>conftest.er1
3334 ac_status=$?
3335 grep -v '^ *+' conftest.er1 >conftest.err
3336 rm -f conftest.er1
3337 cat conftest.err >&5
3338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } && {
3340 test -z "$ac_c_werror_flag" ||
3341 test ! -s conftest.err
3342 } && test -s conftest.$ac_objext; then
3343 ac_compiler_gnu=yes
3344 else
3345 $as_echo "$as_me: failed program was:" >&5
3346 sed 's/^/| /' conftest.$ac_ext >&5
3347
3348 ac_compiler_gnu=no
3349 fi
3350
3351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3352 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3353
3354 fi
3355 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3356 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3357 if test $ac_compiler_gnu = yes; then
3358 GCC=yes
3359 else
3360 GCC=
3361 fi
3362 ac_test_CFLAGS=${CFLAGS+set}
3363 ac_save_CFLAGS=$CFLAGS
3364 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3365 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3366 if test "${ac_cv_prog_cc_g+set}" = set; then
3367 $as_echo_n "(cached) " >&6
3368 else
3369 ac_save_c_werror_flag=$ac_c_werror_flag
3370 ac_c_werror_flag=yes
3371 ac_cv_prog_cc_g=no
3372 CFLAGS="-g"
3373 cat >conftest.$ac_ext <<_ACEOF
3374 /* confdefs.h. */
3375 _ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h. */
3379
3380 int
3381 main ()
3382 {
3383
3384 ;
3385 return 0;
3386 }
3387 _ACEOF
3388 rm -f conftest.$ac_objext
3389 if { (ac_try="$ac_compile"
3390 case "(($ac_try" in
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3393 esac
3394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3395 $as_echo "$ac_try_echo") >&5
3396 (eval "$ac_compile") 2>conftest.er1
3397 ac_status=$?
3398 grep -v '^ *+' conftest.er1 >conftest.err
3399 rm -f conftest.er1
3400 cat conftest.err >&5
3401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); } && {
3403 test -z "$ac_c_werror_flag" ||
3404 test ! -s conftest.err
3405 } && test -s conftest.$ac_objext; then
3406 ac_cv_prog_cc_g=yes
3407 else
3408 $as_echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3410
3411 CFLAGS=""
3412 cat >conftest.$ac_ext <<_ACEOF
3413 /* confdefs.h. */
3414 _ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h. */
3418
3419 int
3420 main ()
3421 {
3422
3423 ;
3424 return 0;
3425 }
3426 _ACEOF
3427 rm -f conftest.$ac_objext
3428 if { (ac_try="$ac_compile"
3429 case "(($ac_try" in
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3432 esac
3433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3434 $as_echo "$ac_try_echo") >&5
3435 (eval "$ac_compile") 2>conftest.er1
3436 ac_status=$?
3437 grep -v '^ *+' conftest.er1 >conftest.err
3438 rm -f conftest.er1
3439 cat conftest.err >&5
3440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } && {
3442 test -z "$ac_c_werror_flag" ||
3443 test ! -s conftest.err
3444 } && test -s conftest.$ac_objext; then
3445 :
3446 else
3447 $as_echo "$as_me: failed program was:" >&5
3448 sed 's/^/| /' conftest.$ac_ext >&5
3449
3450 ac_c_werror_flag=$ac_save_c_werror_flag
3451 CFLAGS="-g"
3452 cat >conftest.$ac_ext <<_ACEOF
3453 /* confdefs.h. */
3454 _ACEOF
3455 cat confdefs.h >>conftest.$ac_ext
3456 cat >>conftest.$ac_ext <<_ACEOF
3457 /* end confdefs.h. */
3458
3459 int
3460 main ()
3461 {
3462
3463 ;
3464 return 0;
3465 }
3466 _ACEOF
3467 rm -f conftest.$ac_objext
3468 if { (ac_try="$ac_compile"
3469 case "(($ac_try" in
3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471 *) ac_try_echo=$ac_try;;
3472 esac
3473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3474 $as_echo "$ac_try_echo") >&5
3475 (eval "$ac_compile") 2>conftest.er1
3476 ac_status=$?
3477 grep -v '^ *+' conftest.er1 >conftest.err
3478 rm -f conftest.er1
3479 cat conftest.err >&5
3480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); } && {
3482 test -z "$ac_c_werror_flag" ||
3483 test ! -s conftest.err
3484 } && test -s conftest.$ac_objext; then
3485 ac_cv_prog_cc_g=yes
3486 else
3487 $as_echo "$as_me: failed program was:" >&5
3488 sed 's/^/| /' conftest.$ac_ext >&5
3489
3490
3491 fi
3492
3493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3494 fi
3495
3496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3497 fi
3498
3499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500 ac_c_werror_flag=$ac_save_c_werror_flag
3501 fi
3502 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3503 $as_echo "$ac_cv_prog_cc_g" >&6; }
3504 if test "$ac_test_CFLAGS" = set; then
3505 CFLAGS=$ac_save_CFLAGS
3506 elif test $ac_cv_prog_cc_g = yes; then
3507 if test "$GCC" = yes; then
3508 CFLAGS="-g -O2"
3509 else
3510 CFLAGS="-g"
3511 fi
3512 else
3513 if test "$GCC" = yes; then
3514 CFLAGS="-O2"
3515 else
3516 CFLAGS=
3517 fi
3518 fi
3519 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3520 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3521 if test "${ac_cv_prog_cc_c89+set}" = set; then
3522 $as_echo_n "(cached) " >&6
3523 else
3524 ac_cv_prog_cc_c89=no
3525 ac_save_CC=$CC
3526 cat >conftest.$ac_ext <<_ACEOF
3527 /* confdefs.h. */
3528 _ACEOF
3529 cat confdefs.h >>conftest.$ac_ext
3530 cat >>conftest.$ac_ext <<_ACEOF
3531 /* end confdefs.h. */
3532 #include <stdarg.h>
3533 #include <stdio.h>
3534 #include <sys/types.h>
3535 #include <sys/stat.h>
3536 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3537 struct buf { int x; };
3538 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3539 static char *e (p, i)
3540 char **p;
3541 int i;
3542 {
3543 return p[i];
3544 }
3545 static char *f (char * (*g) (char **, int), char **p, ...)
3546 {
3547 char *s;
3548 va_list v;
3549 va_start (v,p);
3550 s = g (p, va_arg (v,int));
3551 va_end (v);
3552 return s;
3553 }
3554
3555 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3556 function prototypes and stuff, but not '\xHH' hex character constants.
3557 These don't provoke an error unfortunately, instead are silently treated
3558 as 'x'. The following induces an error, until -std is added to get
3559 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3560 array size at least. It's necessary to write '\x00'==0 to get something
3561 that's true only with -std. */
3562 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3563
3564 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3565 inside strings and character constants. */
3566 #define FOO(x) 'x'
3567 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3568
3569 int test (int i, double x);
3570 struct s1 {int (*f) (int a);};
3571 struct s2 {int (*f) (double a);};
3572 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3573 int argc;
3574 char **argv;
3575 int
3576 main ()
3577 {
3578 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3579 ;
3580 return 0;
3581 }
3582 _ACEOF
3583 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3584 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3585 do
3586 CC="$ac_save_CC $ac_arg"
3587 rm -f conftest.$ac_objext
3588 if { (ac_try="$ac_compile"
3589 case "(($ac_try" in
3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591 *) ac_try_echo=$ac_try;;
3592 esac
3593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3594 $as_echo "$ac_try_echo") >&5
3595 (eval "$ac_compile") 2>conftest.er1
3596 ac_status=$?
3597 grep -v '^ *+' conftest.er1 >conftest.err
3598 rm -f conftest.er1
3599 cat conftest.err >&5
3600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); } && {
3602 test -z "$ac_c_werror_flag" ||
3603 test ! -s conftest.err
3604 } && test -s conftest.$ac_objext; then
3605 ac_cv_prog_cc_c89=$ac_arg
3606 else
3607 $as_echo "$as_me: failed program was:" >&5
3608 sed 's/^/| /' conftest.$ac_ext >&5
3609
3610
3611 fi
3612
3613 rm -f core conftest.err conftest.$ac_objext
3614 test "x$ac_cv_prog_cc_c89" != "xno" && break
3615 done
3616 rm -f conftest.$ac_ext
3617 CC=$ac_save_CC
3618
3619 fi
3620 # AC_CACHE_VAL
3621 case "x$ac_cv_prog_cc_c89" in
3622 x)
3623 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3624 $as_echo "none needed" >&6; } ;;
3625 xno)
3626 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3627 $as_echo "unsupported" >&6; } ;;
3628 *)
3629 CC="$CC $ac_cv_prog_cc_c89"
3630 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3631 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3632 esac
3633
3634
3635 ac_ext=c
3636 ac_cpp='$CPP $CPPFLAGS'
3637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3640
3641 depcc="$CC" am_compiler_list=
3642
3643 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3644 $as_echo_n "checking dependency style of $depcc... " >&6; }
3645 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3646 $as_echo_n "(cached) " >&6
3647 else
3648 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3649 # We make a subdir and do the tests there. Otherwise we can end up
3650 # making bogus files that we don't know about and never remove. For
3651 # instance it was reported that on HP-UX the gcc test will end up
3652 # making a dummy file named `D' -- because `-MD' means `put the output
3653 # in D'.
3654 mkdir conftest.dir
3655 # Copy depcomp to subdir because otherwise we won't find it if we're
3656 # using a relative directory.
3657 cp "$am_depcomp" conftest.dir
3658 cd conftest.dir
3659 # We will build objects and dependencies in a subdirectory because
3660 # it helps to detect inapplicable dependency modes. For instance
3661 # both Tru64's cc and ICC support -MD to output dependencies as a
3662 # side effect of compilation, but ICC will put the dependencies in
3663 # the current directory while Tru64 will put them in the object
3664 # directory.
3665 mkdir sub
3666
3667 am_cv_CC_dependencies_compiler_type=none
3668 if test "$am_compiler_list" = ""; then
3669 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3670 fi
3671 am__universal=false
3672 case " $depcc " in #(
3673 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3674 esac
3675
3676 for depmode in $am_compiler_list; do
3677 # Setup a source with many dependencies, because some compilers
3678 # like to wrap large dependency lists on column 80 (with \), and
3679 # we should not choose a depcomp mode which is confused by this.
3680 #
3681 # We need to recreate these files for each test, as the compiler may
3682 # overwrite some of them when testing with obscure command lines.
3683 # This happens at least with the AIX C compiler.
3684 : > sub/conftest.c
3685 for i in 1 2 3 4 5 6; do
3686 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3687 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3688 # Solaris 8's {/usr,}/bin/sh.
3689 touch sub/conftst$i.h
3690 done
3691 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3692
3693 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3694 # mode. It turns out that the SunPro C++ compiler does not properly
3695 # handle `-M -o', and we need to detect this. Also, some Intel
3696 # versions had trouble with output in subdirs
3697 am__obj=sub/conftest.${OBJEXT-o}
3698 am__minus_obj="-o $am__obj"
3699 case $depmode in
3700 gcc)
3701 # This depmode causes a compiler race in universal mode.
3702 test "$am__universal" = false || continue
3703 ;;
3704 nosideeffect)
3705 # after this tag, mechanisms are not by side-effect, so they'll
3706 # only be used when explicitly requested
3707 if test "x$enable_dependency_tracking" = xyes; then
3708 continue
3709 else
3710 break
3711 fi
3712 ;;
3713 msvisualcpp | msvcmsys)
3714 # This compiler won't grok `-c -o', but also, the minuso test has
3715 # not run yet. These depmodes are late enough in the game, and
3716 # so weak that their functioning should not be impacted.
3717 am__obj=conftest.${OBJEXT-o}
3718 am__minus_obj=
3719 ;;
3720 none) break ;;
3721 esac
3722 if depmode=$depmode \
3723 source=sub/conftest.c object=$am__obj \
3724 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3725 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3726 >/dev/null 2>conftest.err &&
3727 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3728 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3729 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3730 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3731 # icc doesn't choke on unknown options, it will just issue warnings
3732 # or remarks (even with -Werror). So we grep stderr for any message
3733 # that says an option was ignored or not supported.
3734 # When given -MP, icc 7.0 and 7.1 complain thusly:
3735 # icc: Command line warning: ignoring option '-M'; no argument required
3736 # The diagnosis changed in icc 8.0:
3737 # icc: Command line remark: option '-MP' not supported
3738 if (grep 'ignoring option' conftest.err ||
3739 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3740 am_cv_CC_dependencies_compiler_type=$depmode
3741 break
3742 fi
3743 fi
3744 done
3745
3746 cd ..
3747 rm -rf conftest.dir
3748 else
3749 am_cv_CC_dependencies_compiler_type=none
3750 fi
3751
3752 fi
3753 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3754 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3755 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3756
3757 if
3758 test "x$enable_dependency_tracking" != xno \
3759 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3760 am__fastdepCC_TRUE=
3761 am__fastdepCC_FALSE='#'
3762 else
3763 am__fastdepCC_TRUE='#'
3764 am__fastdepCC_FALSE=
3765 fi
3766
3767
3768 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3769 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3770 if test "${ac_cv_prog_cc_c99+set}" = set; then
3771 $as_echo_n "(cached) " >&6
3772 else
3773 ac_cv_prog_cc_c99=no
3774 ac_save_CC=$CC
3775 cat >conftest.$ac_ext <<_ACEOF
3776 /* confdefs.h. */
3777 _ACEOF
3778 cat confdefs.h >>conftest.$ac_ext
3779 cat >>conftest.$ac_ext <<_ACEOF
3780 /* end confdefs.h. */
3781 #include <stdarg.h>
3782 #include <stdbool.h>
3783 #include <stdlib.h>
3784 #include <wchar.h>
3785 #include <stdio.h>
3786
3787 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3788 #define debug(...) fprintf (stderr, __VA_ARGS__)
3789 #define showlist(...) puts (#__VA_ARGS__)
3790 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3791 static void
3792 test_varargs_macros (void)
3793 {
3794 int x = 1234;
3795 int y = 5678;
3796 debug ("Flag");
3797 debug ("X = %d\n", x);
3798 showlist (The first, second, and third items.);
3799 report (x>y, "x is %d but y is %d", x, y);
3800 }
3801
3802 // Check long long types.
3803 #define BIG64 18446744073709551615ull
3804 #define BIG32 4294967295ul
3805 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3806 #if !BIG_OK
3807 your preprocessor is broken;
3808 #endif
3809 #if BIG_OK
3810 #else
3811 your preprocessor is broken;
3812 #endif
3813 static long long int bignum = -9223372036854775807LL;
3814 static unsigned long long int ubignum = BIG64;
3815
3816 struct incomplete_array
3817 {
3818 int datasize;
3819 double data[];
3820 };
3821
3822 struct named_init {
3823 int number;
3824 const wchar_t *name;
3825 double average;
3826 };
3827
3828 typedef const char *ccp;
3829
3830 static inline int
3831 test_restrict (ccp restrict text)
3832 {
3833 // See if C++-style comments work.
3834 // Iterate through items via the restricted pointer.
3835 // Also check for declarations in for loops.
3836 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3837 continue;
3838 return 0;
3839 }
3840
3841 // Check varargs and va_copy.
3842 static void
3843 test_varargs (const char *format, ...)
3844 {
3845 va_list args;
3846 va_start (args, format);
3847 va_list args_copy;
3848 va_copy (args_copy, args);
3849
3850 const char *str;
3851 int number;
3852 float fnumber;
3853
3854 while (*format)
3855 {
3856 switch (*format++)
3857 {
3858 case 's': // string
3859 str = va_arg (args_copy, const char *);
3860 break;
3861 case 'd': // int
3862 number = va_arg (args_copy, int);
3863 break;
3864 case 'f': // float
3865 fnumber = va_arg (args_copy, double);
3866 break;
3867 default:
3868 break;
3869 }
3870 }
3871 va_end (args_copy);
3872 va_end (args);
3873 }
3874
3875 int
3876 main ()
3877 {
3878
3879 // Check bool.
3880 _Bool success = false;
3881
3882 // Check restrict.
3883 if (test_restrict ("String literal") == 0)
3884 success = true;
3885 char *restrict newvar = "Another string";
3886
3887 // Check varargs.
3888 test_varargs ("s, d' f .", "string", 65, 34.234);
3889 test_varargs_macros ();
3890
3891 // Check flexible array members.
3892 struct incomplete_array *ia =
3893 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3894 ia->datasize = 10;
3895 for (int i = 0; i < ia->datasize; ++i)
3896 ia->data[i] = i * 1.234;
3897
3898 // Check named initializers.
3899 struct named_init ni = {
3900 .number = 34,
3901 .name = L"Test wide string",
3902 .average = 543.34343,
3903 };
3904
3905 ni.number = 58;
3906
3907 int dynamic_array[ni.number];
3908 dynamic_array[ni.number - 1] = 543;
3909
3910 // work around unused variable warnings
3911 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3912 || dynamic_array[ni.number - 1] != 543);
3913
3914 ;
3915 return 0;
3916 }
3917 _ACEOF
3918 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3919 do
3920 CC="$ac_save_CC $ac_arg"
3921 rm -f conftest.$ac_objext
3922 if { (ac_try="$ac_compile"
3923 case "(($ac_try" in
3924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925 *) ac_try_echo=$ac_try;;
3926 esac
3927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3928 $as_echo "$ac_try_echo") >&5
3929 (eval "$ac_compile") 2>conftest.er1
3930 ac_status=$?
3931 grep -v '^ *+' conftest.er1 >conftest.err
3932 rm -f conftest.er1
3933 cat conftest.err >&5
3934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); } && {
3936 test -z "$ac_c_werror_flag" ||
3937 test ! -s conftest.err
3938 } && test -s conftest.$ac_objext; then
3939 ac_cv_prog_cc_c99=$ac_arg
3940 else
3941 $as_echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3943
3944
3945 fi
3946
3947 rm -f core conftest.err conftest.$ac_objext
3948 test "x$ac_cv_prog_cc_c99" != "xno" && break
3949 done
3950 rm -f conftest.$ac_ext
3951 CC=$ac_save_CC
3952
3953 fi
3954 # AC_CACHE_VAL
3955 case "x$ac_cv_prog_cc_c99" in
3956 x)
3957 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3958 $as_echo "none needed" >&6; } ;;
3959 xno)
3960 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3961 $as_echo "unsupported" >&6; } ;;
3962 *)
3963 CC="$CC $ac_cv_prog_cc_c99"
3964 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3965 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3966 esac
3967
3968
3969
3970
3971 ac_ext=c
3972 ac_cpp='$CPP $CPPFLAGS'
3973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3976 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3977 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3978 # On Suns, sometimes $CPP names a directory.
3979 if test -n "$CPP" && test -d "$CPP"; then
3980 CPP=
3981 fi
3982 if test -z "$CPP"; then
3983 if test "${ac_cv_prog_CPP+set}" = set; then
3984 $as_echo_n "(cached) " >&6
3985 else
3986 # Double quotes because CPP needs to be expanded
3987 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3988 do
3989 ac_preproc_ok=false
3990 for ac_c_preproc_warn_flag in '' yes
3991 do
3992 # Use a header file that comes with gcc, so configuring glibc
3993 # with a fresh cross-compiler works.
3994 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3995 # <limits.h> exists even on freestanding compilers.
3996 # On the NeXT, cc -E runs the code through the compiler's parser,
3997 # not just through cpp. "Syntax error" is here to catch this case.
3998 cat >conftest.$ac_ext <<_ACEOF
3999 /* confdefs.h. */
4000 _ACEOF
4001 cat confdefs.h >>conftest.$ac_ext
4002 cat >>conftest.$ac_ext <<_ACEOF
4003 /* end confdefs.h. */
4004 #ifdef __STDC__
4005 # include <limits.h>
4006 #else
4007 # include <assert.h>
4008 #endif
4009 Syntax error
4010 _ACEOF
4011 if { (ac_try="$ac_cpp conftest.$ac_ext"
4012 case "(($ac_try" in
4013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014 *) ac_try_echo=$ac_try;;
4015 esac
4016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4017 $as_echo "$ac_try_echo") >&5
4018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4019 ac_status=$?
4020 grep -v '^ *+' conftest.er1 >conftest.err
4021 rm -f conftest.er1
4022 cat conftest.err >&5
4023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); } >/dev/null && {
4025 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4026 test ! -s conftest.err
4027 }; then
4028 :
4029 else
4030 $as_echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.$ac_ext >&5
4032
4033 # Broken: fails on valid input.
4034 continue
4035 fi
4036
4037 rm -f conftest.err conftest.$ac_ext
4038
4039 # OK, works on sane cases. Now check whether nonexistent headers
4040 # can be detected and how.
4041 cat >conftest.$ac_ext <<_ACEOF
4042 /* confdefs.h. */
4043 _ACEOF
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h. */
4047 #include <ac_nonexistent.h>
4048 _ACEOF
4049 if { (ac_try="$ac_cpp conftest.$ac_ext"
4050 case "(($ac_try" in
4051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052 *) ac_try_echo=$ac_try;;
4053 esac
4054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4055 $as_echo "$ac_try_echo") >&5
4056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4057 ac_status=$?
4058 grep -v '^ *+' conftest.er1 >conftest.err
4059 rm -f conftest.er1
4060 cat conftest.err >&5
4061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); } >/dev/null && {
4063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4064 test ! -s conftest.err
4065 }; then
4066 # Broken: success on invalid input.
4067 continue
4068 else
4069 $as_echo "$as_me: failed program was:" >&5
4070 sed 's/^/| /' conftest.$ac_ext >&5
4071
4072 # Passes both tests.
4073 ac_preproc_ok=:
4074 break
4075 fi
4076
4077 rm -f conftest.err conftest.$ac_ext
4078
4079 done
4080 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4081 rm -f conftest.err conftest.$ac_ext
4082 if $ac_preproc_ok; then
4083 break
4084 fi
4085
4086 done
4087 ac_cv_prog_CPP=$CPP
4088
4089 fi
4090 CPP=$ac_cv_prog_CPP
4091 else
4092 ac_cv_prog_CPP=$CPP
4093 fi
4094 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4095 $as_echo "$CPP" >&6; }
4096 ac_preproc_ok=false
4097 for ac_c_preproc_warn_flag in '' yes
4098 do
4099 # Use a header file that comes with gcc, so configuring glibc
4100 # with a fresh cross-compiler works.
4101 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4102 # <limits.h> exists even on freestanding compilers.
4103 # On the NeXT, cc -E runs the code through the compiler's parser,
4104 # not just through cpp. "Syntax error" is here to catch this case.
4105 cat >conftest.$ac_ext <<_ACEOF
4106 /* confdefs.h. */
4107 _ACEOF
4108 cat confdefs.h >>conftest.$ac_ext
4109 cat >>conftest.$ac_ext <<_ACEOF
4110 /* end confdefs.h. */
4111 #ifdef __STDC__
4112 # include <limits.h>
4113 #else
4114 # include <assert.h>
4115 #endif
4116 Syntax error
4117 _ACEOF
4118 if { (ac_try="$ac_cpp conftest.$ac_ext"
4119 case "(($ac_try" in
4120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121 *) ac_try_echo=$ac_try;;
4122 esac
4123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4124 $as_echo "$ac_try_echo") >&5
4125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4126 ac_status=$?
4127 grep -v '^ *+' conftest.er1 >conftest.err
4128 rm -f conftest.er1
4129 cat conftest.err >&5
4130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); } >/dev/null && {
4132 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4133 test ! -s conftest.err
4134 }; then
4135 :
4136 else
4137 $as_echo "$as_me: failed program was:" >&5
4138 sed 's/^/| /' conftest.$ac_ext >&5
4139
4140 # Broken: fails on valid input.
4141 continue
4142 fi
4143
4144 rm -f conftest.err conftest.$ac_ext
4145
4146 # OK, works on sane cases. Now check whether nonexistent headers
4147 # can be detected and how.
4148 cat >conftest.$ac_ext <<_ACEOF
4149 /* confdefs.h. */
4150 _ACEOF
4151 cat confdefs.h >>conftest.$ac_ext
4152 cat >>conftest.$ac_ext <<_ACEOF
4153 /* end confdefs.h. */
4154 #include <ac_nonexistent.h>
4155 _ACEOF
4156 if { (ac_try="$ac_cpp conftest.$ac_ext"
4157 case "(($ac_try" in
4158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159 *) ac_try_echo=$ac_try;;
4160 esac
4161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4162 $as_echo "$ac_try_echo") >&5
4163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4164 ac_status=$?
4165 grep -v '^ *+' conftest.er1 >conftest.err
4166 rm -f conftest.er1
4167 cat conftest.err >&5
4168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); } >/dev/null && {
4170 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4171 test ! -s conftest.err
4172 }; then
4173 # Broken: success on invalid input.
4174 continue
4175 else
4176 $as_echo "$as_me: failed program was:" >&5
4177 sed 's/^/| /' conftest.$ac_ext >&5
4178
4179 # Passes both tests.
4180 ac_preproc_ok=:
4181 break
4182 fi
4183
4184 rm -f conftest.err conftest.$ac_ext
4185
4186 done
4187 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4188 rm -f conftest.err conftest.$ac_ext
4189 if $ac_preproc_ok; then
4190 :
4191 else
4192 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4194 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4195 See \`config.log' for more details." >&5
4196 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4197 See \`config.log' for more details." >&2;}
4198 { (exit 1); exit 1; }; }; }
4199 fi
4200
4201 ac_ext=c
4202 ac_cpp='$CPP $CPPFLAGS'
4203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4206
4207
4208 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4209 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4210 if test "${ac_cv_path_GREP+set}" = set; then
4211 $as_echo_n "(cached) " >&6
4212 else
4213 if test -z "$GREP"; then
4214 ac_path_GREP_found=false
4215 # Loop through the user's path and test for each of PROGNAME-LIST
4216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4218 do
4219 IFS=$as_save_IFS
4220 test -z "$as_dir" && as_dir=.
4221 for ac_prog in grep ggrep; do
4222 for ac_exec_ext in '' $ac_executable_extensions; do
4223 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4224 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4225 # Check for GNU ac_path_GREP and select it if it is found.
4226 # Check for GNU $ac_path_GREP
4227 case `"$ac_path_GREP" --version 2>&1` in
4228 *GNU*)
4229 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4230 *)
4231 ac_count=0
4232 $as_echo_n 0123456789 >"conftest.in"
4233 while :
4234 do
4235 cat "conftest.in" "conftest.in" >"conftest.tmp"
4236 mv "conftest.tmp" "conftest.in"
4237 cp "conftest.in" "conftest.nl"
4238 $as_echo 'GREP' >> "conftest.nl"
4239 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4240 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4241 ac_count=`expr $ac_count + 1`
4242 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4243 # Best one so far, save it but keep looking for a better one
4244 ac_cv_path_GREP="$ac_path_GREP"
4245 ac_path_GREP_max=$ac_count
4246 fi
4247 # 10*(2^10) chars as input seems more than enough
4248 test $ac_count -gt 10 && break
4249 done
4250 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4251 esac
4252
4253 $ac_path_GREP_found && break 3
4254 done
4255 done
4256 done
4257 IFS=$as_save_IFS
4258 if test -z "$ac_cv_path_GREP"; then
4259 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4260 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4261 { (exit 1); exit 1; }; }
4262 fi
4263 else
4264 ac_cv_path_GREP=$GREP
4265 fi
4266
4267 fi
4268 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4269 $as_echo "$ac_cv_path_GREP" >&6; }
4270 GREP="$ac_cv_path_GREP"
4271
4272
4273 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4274 $as_echo_n "checking for egrep... " >&6; }
4275 if test "${ac_cv_path_EGREP+set}" = set; then
4276 $as_echo_n "(cached) " >&6
4277 else
4278 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4279 then ac_cv_path_EGREP="$GREP -E"
4280 else
4281 if test -z "$EGREP"; then
4282 ac_path_EGREP_found=false
4283 # Loop through the user's path and test for each of PROGNAME-LIST
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4286 do
4287 IFS=$as_save_IFS
4288 test -z "$as_dir" && as_dir=.
4289 for ac_prog in egrep; do
4290 for ac_exec_ext in '' $ac_executable_extensions; do
4291 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4292 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4293 # Check for GNU ac_path_EGREP and select it if it is found.
4294 # Check for GNU $ac_path_EGREP
4295 case `"$ac_path_EGREP" --version 2>&1` in
4296 *GNU*)
4297 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4298 *)
4299 ac_count=0
4300 $as_echo_n 0123456789 >"conftest.in"
4301 while :
4302 do
4303 cat "conftest.in" "conftest.in" >"conftest.tmp"
4304 mv "conftest.tmp" "conftest.in"
4305 cp "conftest.in" "conftest.nl"
4306 $as_echo 'EGREP' >> "conftest.nl"
4307 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4308 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4309 ac_count=`expr $ac_count + 1`
4310 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4311 # Best one so far, save it but keep looking for a better one
4312 ac_cv_path_EGREP="$ac_path_EGREP"
4313 ac_path_EGREP_max=$ac_count
4314 fi
4315 # 10*(2^10) chars as input seems more than enough
4316 test $ac_count -gt 10 && break
4317 done
4318 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4319 esac
4320
4321 $ac_path_EGREP_found && break 3
4322 done
4323 done
4324 done
4325 IFS=$as_save_IFS
4326 if test -z "$ac_cv_path_EGREP"; then
4327 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4328 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4329 { (exit 1); exit 1; }; }
4330 fi
4331 else
4332 ac_cv_path_EGREP=$EGREP
4333 fi
4334
4335 fi
4336 fi
4337 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4338 $as_echo "$ac_cv_path_EGREP" >&6; }
4339 EGREP="$ac_cv_path_EGREP"
4340
4341
4342 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4343 $as_echo_n "checking for ANSI C header files... " >&6; }
4344 if test "${ac_cv_header_stdc+set}" = set; then
4345 $as_echo_n "(cached) " >&6
4346 else
4347 cat >conftest.$ac_ext <<_ACEOF
4348 /* confdefs.h. */
4349 _ACEOF
4350 cat confdefs.h >>conftest.$ac_ext
4351 cat >>conftest.$ac_ext <<_ACEOF
4352 /* end confdefs.h. */
4353 #include <stdlib.h>
4354 #include <stdarg.h>
4355 #include <string.h>
4356 #include <float.h>
4357
4358 int
4359 main ()
4360 {
4361
4362 ;
4363 return 0;
4364 }
4365 _ACEOF
4366 rm -f conftest.$ac_objext
4367 if { (ac_try="$ac_compile"
4368 case "(($ac_try" in
4369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4370 *) ac_try_echo=$ac_try;;
4371 esac
4372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4373 $as_echo "$ac_try_echo") >&5
4374 (eval "$ac_compile") 2>conftest.er1
4375 ac_status=$?
4376 grep -v '^ *+' conftest.er1 >conftest.err
4377 rm -f conftest.er1
4378 cat conftest.err >&5
4379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); } && {
4381 test -z "$ac_c_werror_flag" ||
4382 test ! -s conftest.err
4383 } && test -s conftest.$ac_objext; then
4384 ac_cv_header_stdc=yes
4385 else
4386 $as_echo "$as_me: failed program was:" >&5
4387 sed 's/^/| /' conftest.$ac_ext >&5
4388
4389 ac_cv_header_stdc=no
4390 fi
4391
4392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4393
4394 if test $ac_cv_header_stdc = yes; then
4395 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4396 cat >conftest.$ac_ext <<_ACEOF
4397 /* confdefs.h. */
4398 _ACEOF
4399 cat confdefs.h >>conftest.$ac_ext
4400 cat >>conftest.$ac_ext <<_ACEOF
4401 /* end confdefs.h. */
4402 #include <string.h>
4403
4404 _ACEOF
4405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4406 $EGREP "memchr" >/dev/null 2>&1; then
4407 :
4408 else
4409 ac_cv_header_stdc=no
4410 fi
4411 rm -f conftest*
4412
4413 fi
4414
4415 if test $ac_cv_header_stdc = yes; then
4416 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4417 cat >conftest.$ac_ext <<_ACEOF
4418 /* confdefs.h. */
4419 _ACEOF
4420 cat confdefs.h >>conftest.$ac_ext
4421 cat >>conftest.$ac_ext <<_ACEOF
4422 /* end confdefs.h. */
4423 #include <stdlib.h>
4424
4425 _ACEOF
4426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4427 $EGREP "free" >/dev/null 2>&1; then
4428 :
4429 else
4430 ac_cv_header_stdc=no
4431 fi
4432 rm -f conftest*
4433
4434 fi
4435
4436 if test $ac_cv_header_stdc = yes; then
4437 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4438 if test "$cross_compiling" = yes; then
4439 :
4440 else
4441 cat >conftest.$ac_ext <<_ACEOF
4442 /* confdefs.h. */
4443 _ACEOF
4444 cat confdefs.h >>conftest.$ac_ext
4445 cat >>conftest.$ac_ext <<_ACEOF
4446 /* end confdefs.h. */
4447 #include <ctype.h>
4448 #include <stdlib.h>
4449 #if ((' ' & 0x0FF) == 0x020)
4450 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4451 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4452 #else
4453 # define ISLOWER(c) \
4454 (('a' <= (c) && (c) <= 'i') \
4455 || ('j' <= (c) && (c) <= 'r') \
4456 || ('s' <= (c) && (c) <= 'z'))
4457 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4458 #endif
4459
4460 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4461 int
4462 main ()
4463 {
4464 int i;
4465 for (i = 0; i < 256; i++)
4466 if (XOR (islower (i), ISLOWER (i))
4467 || toupper (i) != TOUPPER (i))
4468 return 2;
4469 return 0;
4470 }
4471 _ACEOF
4472 rm -f conftest$ac_exeext
4473 if { (ac_try="$ac_link"
4474 case "(($ac_try" in
4475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476 *) ac_try_echo=$ac_try;;
4477 esac
4478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4479 $as_echo "$ac_try_echo") >&5
4480 (eval "$ac_link") 2>&5
4481 ac_status=$?
4482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4484 { (case "(($ac_try" in
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4487 esac
4488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4489 $as_echo "$ac_try_echo") >&5
4490 (eval "$ac_try") 2>&5
4491 ac_status=$?
4492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; }; then
4494 :
4495 else
4496 $as_echo "$as_me: program exited with status $ac_status" >&5
4497 $as_echo "$as_me: failed program was:" >&5
4498 sed 's/^/| /' conftest.$ac_ext >&5
4499
4500 ( exit $ac_status )
4501 ac_cv_header_stdc=no
4502 fi
4503 rm -rf conftest.dSYM
4504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4505 fi
4506
4507
4508 fi
4509 fi
4510 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4511 $as_echo "$ac_cv_header_stdc" >&6; }
4512 if test $ac_cv_header_stdc = yes; then
4513
4514 cat >>confdefs.h <<\_ACEOF
4515 #define STDC_HEADERS 1
4516 _ACEOF
4517
4518 fi
4519
4520 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4531 inttypes.h stdint.h unistd.h
4532 do
4533 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4534 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4535 $as_echo_n "checking for $ac_header... " >&6; }
4536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4537 $as_echo_n "(cached) " >&6
4538 else
4539 cat >conftest.$ac_ext <<_ACEOF
4540 /* confdefs.h. */
4541 _ACEOF
4542 cat confdefs.h >>conftest.$ac_ext
4543 cat >>conftest.$ac_ext <<_ACEOF
4544 /* end confdefs.h. */
4545 $ac_includes_default
4546
4547 #include <$ac_header>
4548 _ACEOF
4549 rm -f conftest.$ac_objext
4550 if { (ac_try="$ac_compile"
4551 case "(($ac_try" in
4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553 *) ac_try_echo=$ac_try;;
4554 esac
4555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4556 $as_echo "$ac_try_echo") >&5
4557 (eval "$ac_compile") 2>conftest.er1
4558 ac_status=$?
4559 grep -v '^ *+' conftest.er1 >conftest.err
4560 rm -f conftest.er1
4561 cat conftest.err >&5
4562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } && {
4564 test -z "$ac_c_werror_flag" ||
4565 test ! -s conftest.err
4566 } && test -s conftest.$ac_objext; then
4567 eval "$as_ac_Header=yes"
4568 else
4569 $as_echo "$as_me: failed program was:" >&5
4570 sed 's/^/| /' conftest.$ac_ext >&5
4571
4572 eval "$as_ac_Header=no"
4573 fi
4574
4575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4576 fi
4577 ac_res=`eval 'as_val=${'$as_ac_Header'}
4578 $as_echo "$as_val"'`
4579 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4580 $as_echo "$ac_res" >&6; }
4581 as_val=`eval 'as_val=${'$as_ac_Header'}
4582 $as_echo "$as_val"'`
4583 if test "x$as_val" = x""yes; then
4584 cat >>confdefs.h <<_ACEOF
4585 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4586 _ACEOF
4587
4588 fi
4589
4590 done
4591
4592
4593
4594
4595 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4596 if test -n "$ac_tool_prefix"; then
4597 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4598 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4599 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4600 $as_echo_n "checking for $ac_word... " >&6; }
4601 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4602 $as_echo_n "(cached) " >&6
4603 else
4604 case $PKG_CONFIG in
4605 [\\/]* | ?:[\\/]*)
4606 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4607 ;;
4608 *)
4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610 for as_dir in $PATH
4611 do
4612 IFS=$as_save_IFS
4613 test -z "$as_dir" && as_dir=.
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4616 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4617 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4618 break 2
4619 fi
4620 done
4621 done
4622 IFS=$as_save_IFS
4623
4624 ;;
4625 esac
4626 fi
4627 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4628 if test -n "$PKG_CONFIG"; then
4629 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4630 $as_echo "$PKG_CONFIG" >&6; }
4631 else
4632 { $as_echo "$as_me:$LINENO: result: no" >&5
4633 $as_echo "no" >&6; }
4634 fi
4635
4636
4637 fi
4638 if test -z "$ac_cv_path_PKG_CONFIG"; then
4639 ac_pt_PKG_CONFIG=$PKG_CONFIG
4640 # Extract the first word of "pkg-config", so it can be a program name with args.
4641 set dummy pkg-config; ac_word=$2
4642 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4643 $as_echo_n "checking for $ac_word... " >&6; }
4644 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4645 $as_echo_n "(cached) " >&6
4646 else
4647 case $ac_pt_PKG_CONFIG in
4648 [\\/]* | ?:[\\/]*)
4649 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4650 ;;
4651 *)
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in $PATH
4654 do
4655 IFS=$as_save_IFS
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4659 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4660 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4661 break 2
4662 fi
4663 done
4664 done
4665 IFS=$as_save_IFS
4666
4667 ;;
4668 esac
4669 fi
4670 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4671 if test -n "$ac_pt_PKG_CONFIG"; then
4672 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4673 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4674 else
4675 { $as_echo "$as_me:$LINENO: result: no" >&5
4676 $as_echo "no" >&6; }
4677 fi
4678
4679 if test "x$ac_pt_PKG_CONFIG" = x; then
4680 PKG_CONFIG=""
4681 else
4682 case $cross_compiling:$ac_tool_warned in
4683 yes:)
4684 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4686 ac_tool_warned=yes ;;
4687 esac
4688 PKG_CONFIG=$ac_pt_PKG_CONFIG
4689 fi
4690 else
4691 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4692 fi
4693
4694 fi
4695 if test -n "$PKG_CONFIG"; then
4696 _pkg_min_version=0.9.0
4697 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4698 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4699 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4700 { $as_echo "$as_me:$LINENO: result: yes" >&5
4701 $as_echo "yes" >&6; }
4702 else
4703 { $as_echo "$as_me:$LINENO: result: no" >&5
4704 $as_echo "no" >&6; }
4705 PKG_CONFIG=""
4706 fi
4707
4708 fi
4709 # Make sure we can run config.sub.
4710 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4711 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4712 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4713 { (exit 1); exit 1; }; }
4714
4715 { $as_echo "$as_me:$LINENO: checking build system type" >&5
4716 $as_echo_n "checking build system type... " >&6; }
4717 if test "${ac_cv_build+set}" = set; then
4718 $as_echo_n "(cached) " >&6
4719 else
4720 ac_build_alias=$build_alias
4721 test "x$ac_build_alias" = x &&
4722 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4723 test "x$ac_build_alias" = x &&
4724 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4725 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4726 { (exit 1); exit 1; }; }
4727 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4728 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4729 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4730 { (exit 1); exit 1; }; }
4731
4732 fi
4733 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4734 $as_echo "$ac_cv_build" >&6; }
4735 case $ac_cv_build in
4736 *-*-*) ;;
4737 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4738 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
4739 { (exit 1); exit 1; }; };;
4740 esac
4741 build=$ac_cv_build
4742 ac_save_IFS=$IFS; IFS='-'
4743 set x $ac_cv_build
4744 shift
4745 build_cpu=$1
4746 build_vendor=$2
4747 shift; shift
4748 # Remember, the first character of IFS is used to create $*,
4749 # except with old shells:
4750 build_os=$*
4751 IFS=$ac_save_IFS
4752 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4753
4754
4755 { $as_echo "$as_me:$LINENO: checking host system type" >&5
4756 $as_echo_n "checking host system type... " >&6; }
4757 if test "${ac_cv_host+set}" = set; then
4758 $as_echo_n "(cached) " >&6
4759 else
4760 if test "x$host_alias" = x; then
4761 ac_cv_host=$ac_cv_build
4762 else
4763 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4764 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4765 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4766 { (exit 1); exit 1; }; }
4767 fi
4768
4769 fi
4770 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4771 $as_echo "$ac_cv_host" >&6; }
4772 case $ac_cv_host in
4773 *-*-*) ;;
4774 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4775 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
4776 { (exit 1); exit 1; }; };;
4777 esac
4778 host=$ac_cv_host
4779 ac_save_IFS=$IFS; IFS='-'
4780 set x $ac_cv_host
4781 shift
4782 host_cpu=$1
4783 host_vendor=$2
4784 shift; shift
4785 # Remember, the first character of IFS is used to create $*,
4786 # except with old shells:
4787 host_os=$*
4788 IFS=$ac_save_IFS
4789 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4790
4791
4792 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4793 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4794 if test "${ac_cv_path_SED+set}" = set; then
4795 $as_echo_n "(cached) " >&6
4796 else
4797 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4798 for ac_i in 1 2 3 4 5 6 7; do
4799 ac_script="$ac_script$as_nl$ac_script"
4800 done
4801 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4802 $as_unset ac_script || ac_script=
4803 if test -z "$SED"; then
4804 ac_path_SED_found=false
4805 # Loop through the user's path and test for each of PROGNAME-LIST
4806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807 for as_dir in $PATH
4808 do
4809 IFS=$as_save_IFS
4810 test -z "$as_dir" && as_dir=.
4811 for ac_prog in sed gsed; do
4812 for ac_exec_ext in '' $ac_executable_extensions; do
4813 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4814 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4815 # Check for GNU ac_path_SED and select it if it is found.
4816 # Check for GNU $ac_path_SED
4817 case `"$ac_path_SED" --version 2>&1` in
4818 *GNU*)
4819 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4820 *)
4821 ac_count=0
4822 $as_echo_n 0123456789 >"conftest.in"
4823 while :
4824 do
4825 cat "conftest.in" "conftest.in" >"conftest.tmp"
4826 mv "conftest.tmp" "conftest.in"
4827 cp "conftest.in" "conftest.nl"
4828 $as_echo '' >> "conftest.nl"
4829 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4830 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4831 ac_count=`expr $ac_count + 1`
4832 if test $ac_count -gt ${ac_path_SED_max-0}; then
4833 # Best one so far, save it but keep looking for a better one
4834 ac_cv_path_SED="$ac_path_SED"
4835 ac_path_SED_max=$ac_count
4836 fi
4837 # 10*(2^10) chars as input seems more than enough
4838 test $ac_count -gt 10 && break
4839 done
4840 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4841 esac
4842
4843 $ac_path_SED_found && break 3
4844 done
4845 done
4846 done
4847 IFS=$as_save_IFS
4848 if test -z "$ac_cv_path_SED"; then
4849 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4850 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4851 { (exit 1); exit 1; }; }
4852 fi
4853 else
4854 ac_cv_path_SED=$SED
4855 fi
4856
4857 fi
4858 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4859 $as_echo "$ac_cv_path_SED" >&6; }
4860 SED="$ac_cv_path_SED"
4861 rm -f conftest.sed
4862
4863
4864
4865
4866
4867 if test "x$GCC" = xyes ; then
4868 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4869 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4870 -Wbad-function-cast -Wformat=2"
4871 case `$CC -dumpversion` in
4872 3.4.* | 4.*)
4873 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4874 ;;
4875 esac
4876 else
4877 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4878 $as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
4879 if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4880 $as_echo_n "(cached) " >&6
4881 else
4882 cat >conftest.$ac_ext <<_ACEOF
4883 /* confdefs.h. */
4884 _ACEOF
4885 cat confdefs.h >>conftest.$ac_ext
4886 cat >>conftest.$ac_ext <<_ACEOF
4887 /* end confdefs.h. */
4888 $ac_includes_default
4889 int
4890 main ()
4891 {
4892 #ifndef __SUNPRO_C
4893 (void) __SUNPRO_C;
4894 #endif
4895
4896 ;
4897 return 0;
4898 }
4899 _ACEOF
4900 rm -f conftest.$ac_objext
4901 if { (ac_try="$ac_compile"
4902 case "(($ac_try" in
4903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904 *) ac_try_echo=$ac_try;;
4905 esac
4906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4907 $as_echo "$ac_try_echo") >&5
4908 (eval "$ac_compile") 2>conftest.er1
4909 ac_status=$?
4910 grep -v '^ *+' conftest.er1 >conftest.err
4911 rm -f conftest.er1
4912 cat conftest.err >&5
4913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); } && {
4915 test -z "$ac_c_werror_flag" ||
4916 test ! -s conftest.err
4917 } && test -s conftest.$ac_objext; then
4918 ac_cv_have_decl___SUNPRO_C=yes
4919 else
4920 $as_echo "$as_me: failed program was:" >&5
4921 sed 's/^/| /' conftest.$ac_ext >&5
4922
4923 ac_cv_have_decl___SUNPRO_C=no
4924 fi
4925
4926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4927 fi
4928 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
4929 $as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
4930 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
4931 SUNCC="yes"
4932 else
4933 SUNCC="no"
4934 fi
4935
4936 if test "x$SUNCC" = "xyes"; then
4937 CWARNFLAGS="-v"
4938 fi
4939 fi
4940
4941
4942
4943 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4944
4945
4946
4947 # Check whether --enable-strict-compilation was given.
4948 if test "${enable_strict_compilation+set}" = set; then
4949 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4950 else
4951 STRICT_COMPILE=no
4952 fi
4953
4954 if test "x$STRICT_COMPILE" = "xyes"; then
4955 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4956 $as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
4957 if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4958 $as_echo_n "(cached) " >&6
4959 else
4960 cat >conftest.$ac_ext <<_ACEOF
4961 /* confdefs.h. */
4962 _ACEOF
4963 cat confdefs.h >>conftest.$ac_ext
4964 cat >>conftest.$ac_ext <<_ACEOF
4965 /* end confdefs.h. */
4966 $ac_includes_default
4967 int
4968 main ()
4969 {
4970 #ifndef __SUNPRO_C
4971 (void) __SUNPRO_C;
4972 #endif
4973
4974 ;
4975 return 0;
4976 }
4977 _ACEOF
4978 rm -f conftest.$ac_objext
4979 if { (ac_try="$ac_compile"
4980 case "(($ac_try" in
4981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4982 *) ac_try_echo=$ac_try;;
4983 esac
4984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4985 $as_echo "$ac_try_echo") >&5
4986 (eval "$ac_compile") 2>conftest.er1
4987 ac_status=$?
4988 grep -v '^ *+' conftest.er1 >conftest.err
4989 rm -f conftest.er1
4990 cat conftest.err >&5
4991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); } && {
4993 test -z "$ac_c_werror_flag" ||
4994 test ! -s conftest.err
4995 } && test -s conftest.$ac_objext; then
4996 ac_cv_have_decl___SUNPRO_C=yes
4997 else
4998 $as_echo "$as_me: failed program was:" >&5
4999 sed 's/^/| /' conftest.$ac_ext >&5
5000
5001 ac_cv_have_decl___SUNPRO_C=no
5002 fi
5003
5004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5005 fi
5006 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
5007 $as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
5008 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
5009 SUNCC="yes"
5010 else
5011 SUNCC="no"
5012 fi
5013
5014 { $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
5015 $as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; }
5016 if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
5017 $as_echo_n "(cached) " >&6
5018 else
5019 cat >conftest.$ac_ext <<_ACEOF
5020 /* confdefs.h. */
5021 _ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h. */
5025 $ac_includes_default
5026 int
5027 main ()
5028 {
5029 #ifndef __INTEL_COMPILER
5030 (void) __INTEL_COMPILER;
5031 #endif
5032
5033 ;
5034 return 0;
5035 }
5036 _ACEOF
5037 rm -f conftest.$ac_objext
5038 if { (ac_try="$ac_compile"
5039 case "(($ac_try" in
5040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5041 *) ac_try_echo=$ac_try;;
5042 esac
5043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5044 $as_echo "$ac_try_echo") >&5
5045 (eval "$ac_compile") 2>conftest.er1
5046 ac_status=$?
5047 grep -v '^ *+' conftest.er1 >conftest.err
5048 rm -f conftest.er1
5049 cat conftest.err >&5
5050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); } && {
5052 test -z "$ac_c_werror_flag" ||
5053 test ! -s conftest.err
5054 } && test -s conftest.$ac_objext; then
5055 ac_cv_have_decl___INTEL_COMPILER=yes
5056 else
5057 $as_echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.$ac_ext >&5
5059
5060 ac_cv_have_decl___INTEL_COMPILER=no
5061 fi
5062
5063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5064 fi
5065 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
5066 $as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; }
5067 if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then
5068 INTELCC="yes"
5069 else
5070 INTELCC="no"
5071 fi
5072
5073 if test "x$GCC" = xyes ; then
5074 STRICT_CFLAGS="-pedantic -Werror"
5075 elif test "x$SUNCC" = "xyes"; then
5076 STRICT_CFLAGS="-errwarn"
5077 elif test "x$INTELCC" = "xyes"; then
5078 STRICT_CFLAGS="-Werror"
5079 fi
5080 fi
5081 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
5082
5083
5084
5085
5086 cat >>confdefs.h <<_ACEOF
5087 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
5088 _ACEOF
5089
5090 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
5091 if test "x$PVM" = "x"; then
5092 PVM="0"
5093 fi
5094
5095 cat >>confdefs.h <<_ACEOF
5096 #define PACKAGE_VERSION_MINOR $PVM
5097 _ACEOF
5098
5099 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
5100 if test "x$PVP" = "x"; then
5101 PVP="0"
5102 fi
5103
5104 cat >>confdefs.h <<_ACEOF
5105 #define PACKAGE_VERSION_PATCHLEVEL $PVP
5106 _ACEOF
5107
5108
5109
5110 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
5111 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
5112 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
5113 echo 'git directory not found: installing possibly empty changelog.' >&2)"
5114
5115
5116
5117
5118 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
5119 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
5120 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
5121 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
5122 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
5123
5124
5125
5126
5127
5128
5129 if test x$APP_MAN_SUFFIX = x ; then
5130 APP_MAN_SUFFIX=1
5131 fi
5132 if test x$APP_MAN_DIR = x ; then
5133 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
5134 fi
5135
5136 if test x$LIB_MAN_SUFFIX = x ; then
5137 LIB_MAN_SUFFIX=3
5138 fi
5139 if test x$LIB_MAN_DIR = x ; then
5140 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
5141 fi
5142
5143 if test x$FILE_MAN_SUFFIX = x ; then
5144 case $host_os in
5145 solaris*) FILE_MAN_SUFFIX=4 ;;
5146 *) FILE_MAN_SUFFIX=5 ;;
5147 esac
5148 fi
5149 if test x$FILE_MAN_DIR = x ; then
5150 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
5151 fi
5152
5153 if test x$MISC_MAN_SUFFIX = x ; then
5154 case $host_os in
5155 solaris*) MISC_MAN_SUFFIX=5 ;;
5156 *) MISC_MAN_SUFFIX=7 ;;
5157 esac
5158 fi
5159 if test x$MISC_MAN_DIR = x ; then
5160 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
5161 fi
5162
5163 if test x$DRIVER_MAN_SUFFIX = x ; then
5164 case $host_os in
5165 solaris*) DRIVER_MAN_SUFFIX=7 ;;
5166 *) DRIVER_MAN_SUFFIX=4 ;;
5167 esac
5168 fi
5169 if test x$DRIVER_MAN_DIR = x ; then
5170 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
5171 fi
5172
5173 if test x$ADMIN_MAN_SUFFIX = x ; then
5174 case $host_os in
5175 solaris*) ADMIN_MAN_SUFFIX=1m ;;
5176 *) ADMIN_MAN_SUFFIX=8 ;;
5177 esac
5178 fi
5179 if test x$ADMIN_MAN_DIR = x ; then
5180 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
5181 fi
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197 XORG_MAN_PAGE="X Version 11"
5198
5199 MAN_SUBSTS="\
5200 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
5201 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
5202 -e 's|__xservername__|Xorg|g' \
5203 -e 's|__xconfigfile__|xorg.conf|g' \
5204 -e 's|__projectroot__|\$(prefix)|g' \
5205 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
5206 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
5207 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
5208 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
5209 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
5210 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
5211
5212
5213
5214 # Check whether --enable-silent-rules was given.
5215 if test "${enable_silent_rules+set}" = set; then
5216 enableval=$enable_silent_rules;
5217 fi
5218
5219 case $enable_silent_rules in
5220 yes) AM_DEFAULT_VERBOSITY=0;;
5221 no) AM_DEFAULT_VERBOSITY=1;;
5222 *) AM_DEFAULT_VERBOSITY=0;;
5223 esac
5224 AM_BACKSLASH='\'
5225
5226
5227
5228 # Initialize libtool
5229 # Check whether --enable-static was given.
5230 if test "${enable_static+set}" = set; then
5231 enableval=$enable_static; p=${PACKAGE-default}
5232 case $enableval in
5233 yes) enable_static=yes ;;
5234 no) enable_static=no ;;
5235 *)
5236 enable_static=no
5237 # Look at the argument we got. We use all the common list separators.
5238 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5239 for pkg in $enableval; do
5240 IFS="$lt_save_ifs"
5241 if test "X$pkg" = "X$p"; then
5242 enable_static=yes
5243 fi
5244 done
5245 IFS="$lt_save_ifs"
5246 ;;
5247 esac
5248 else
5249 enable_static=no
5250 fi
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260 case `pwd` in
5261 *\ * | *\ *)
5262 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5263 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5264 esac
5265
5266
5267
5268 macro_version='2.2.6b'
5269 macro_revision='1.3017'
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283 ltmain="$ac_aux_dir/ltmain.sh"
5284
5285 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5286 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5287 if test "${ac_cv_path_SED+set}" = set; then
5288 $as_echo_n "(cached) " >&6
5289 else
5290 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5291 for ac_i in 1 2 3 4 5 6 7; do
5292 ac_script="$ac_script$as_nl$ac_script"
5293 done
5294 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5295 $as_unset ac_script || ac_script=
5296 if test -z "$SED"; then
5297 ac_path_SED_found=false
5298 # Loop through the user's path and test for each of PROGNAME-LIST
5299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300 for as_dir in $PATH
5301 do
5302 IFS=$as_save_IFS
5303 test -z "$as_dir" && as_dir=.
5304 for ac_prog in sed gsed; do
5305 for ac_exec_ext in '' $ac_executable_extensions; do
5306 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5307 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5308 # Check for GNU ac_path_SED and select it if it is found.
5309 # Check for GNU $ac_path_SED
5310 case `"$ac_path_SED" --version 2>&1` in
5311 *GNU*)
5312 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5313 *)
5314 ac_count=0
5315 $as_echo_n 0123456789 >"conftest.in"
5316 while :
5317 do
5318 cat "conftest.in" "conftest.in" >"conftest.tmp"
5319 mv "conftest.tmp" "conftest.in"
5320 cp "conftest.in" "conftest.nl"
5321 $as_echo '' >> "conftest.nl"
5322 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5323 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5324 ac_count=`expr $ac_count + 1`
5325 if test $ac_count -gt ${ac_path_SED_max-0}; then
5326 # Best one so far, save it but keep looking for a better one
5327 ac_cv_path_SED="$ac_path_SED"
5328 ac_path_SED_max=$ac_count
5329 fi
5330 # 10*(2^10) chars as input seems more than enough
5331 test $ac_count -gt 10 && break
5332 done
5333 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5334 esac
5335
5336 $ac_path_SED_found && break 3
5337 done
5338 done
5339 done
5340 IFS=$as_save_IFS
5341 if test -z "$ac_cv_path_SED"; then
5342 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5343 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5344 { (exit 1); exit 1; }; }
5345 fi
5346 else
5347 ac_cv_path_SED=$SED
5348 fi
5349
5350 fi
5351 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5352 $as_echo "$ac_cv_path_SED" >&6; }
5353 SED="$ac_cv_path_SED"
5354 rm -f conftest.sed
5355
5356 test -z "$SED" && SED=sed
5357 Xsed="$SED -e 1s/^X//"
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5370 $as_echo_n "checking for fgrep... " >&6; }
5371 if test "${ac_cv_path_FGREP+set}" = set; then
5372 $as_echo_n "(cached) " >&6
5373 else
5374 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5375 then ac_cv_path_FGREP="$GREP -F"
5376 else
5377 if test -z "$FGREP"; then
5378 ac_path_FGREP_found=false
5379 # Loop through the user's path and test for each of PROGNAME-LIST
5380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5381 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5382 do
5383 IFS=$as_save_IFS
5384 test -z "$as_dir" && as_dir=.
5385 for ac_prog in fgrep; do
5386 for ac_exec_ext in '' $ac_executable_extensions; do
5387 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5388 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5389 # Check for GNU ac_path_FGREP and select it if it is found.
5390 # Check for GNU $ac_path_FGREP
5391 case `"$ac_path_FGREP" --version 2>&1` in
5392 *GNU*)
5393 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5394 *)
5395 ac_count=0
5396 $as_echo_n 0123456789 >"conftest.in"
5397 while :
5398 do
5399 cat "conftest.in" "conftest.in" >"conftest.tmp"
5400 mv "conftest.tmp" "conftest.in"
5401 cp "conftest.in" "conftest.nl"
5402 $as_echo 'FGREP' >> "conftest.nl"
5403 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5404 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5405 ac_count=`expr $ac_count + 1`
5406 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5407 # Best one so far, save it but keep looking for a better one
5408 ac_cv_path_FGREP="$ac_path_FGREP"
5409 ac_path_FGREP_max=$ac_count
5410 fi
5411 # 10*(2^10) chars as input seems more than enough
5412 test $ac_count -gt 10 && break
5413 done
5414 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5415 esac
5416
5417 $ac_path_FGREP_found && break 3
5418 done
5419 done
5420 done
5421 IFS=$as_save_IFS
5422 if test -z "$ac_cv_path_FGREP"; then
5423 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5424 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5425 { (exit 1); exit 1; }; }
5426 fi
5427 else
5428 ac_cv_path_FGREP=$FGREP
5429 fi
5430
5431 fi
5432 fi
5433 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5434 $as_echo "$ac_cv_path_FGREP" >&6; }
5435 FGREP="$ac_cv_path_FGREP"
5436
5437
5438 test -z "$GREP" && GREP=grep
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458 # Check whether --with-gnu-ld was given.
5459 if test "${with_gnu_ld+set}" = set; then
5460 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5461 else
5462 with_gnu_ld=no
5463 fi
5464
5465 ac_prog=ld
5466 if test "$GCC" = yes; then
5467 # Check if gcc -print-prog-name=ld gives a path.
5468 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5469 $as_echo_n "checking for ld used by $CC... " >&6; }
5470 case $host in
5471 *-*-mingw*)
5472 # gcc leaves a trailing carriage return which upsets mingw
5473 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5474 *)
5475 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5476 esac
5477 case $ac_prog in
5478 # Accept absolute paths.
5479 [\\/]* | ?:[\\/]*)
5480 re_direlt='/[^/][^/]*/\.\./'
5481 # Canonicalize the pathname of ld
5482 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5483 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5484 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5485 done
5486 test -z "$LD" && LD="$ac_prog"
5487 ;;
5488 "")
5489 # If it fails, then pretend we aren't using GCC.
5490 ac_prog=ld
5491 ;;
5492 *)
5493 # If it is relative, then search for the first ld in PATH.
5494 with_gnu_ld=unknown
5495 ;;
5496 esac
5497 elif test "$with_gnu_ld" = yes; then
5498 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5499 $as_echo_n "checking for GNU ld... " >&6; }
5500 else
5501 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5502 $as_echo_n "checking for non-GNU ld... " >&6; }
5503 fi
5504 if test "${lt_cv_path_LD+set}" = set; then
5505 $as_echo_n "(cached) " >&6
5506 else
5507 if test -z "$LD"; then
5508 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5509 for ac_dir in $PATH; do
5510 IFS="$lt_save_ifs"
5511 test -z "$ac_dir" && ac_dir=.
5512 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5513 lt_cv_path_LD="$ac_dir/$ac_prog"
5514 # Check to see if the program is GNU ld. I'd rather use --version,
5515 # but apparently some variants of GNU ld only accept -v.
5516 # Break only if it was the GNU/non-GNU ld that we prefer.
5517 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5518 *GNU* | *'with BFD'*)
5519 test "$with_gnu_ld" != no && break
5520 ;;
5521 *)
5522 test "$with_gnu_ld" != yes && break
5523 ;;
5524 esac
5525 fi
5526 done
5527 IFS="$lt_save_ifs"
5528 else
5529 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5530 fi
5531 fi
5532
5533 LD="$lt_cv_path_LD"
5534 if test -n "$LD"; then
5535 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5536 $as_echo "$LD" >&6; }
5537 else
5538 { $as_echo "$as_me:$LINENO: result: no" >&5
5539 $as_echo "no" >&6; }
5540 fi
5541 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5542 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5543 { (exit 1); exit 1; }; }
5544 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5545 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5546 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5547 $as_echo_n "(cached) " >&6
5548 else
5549 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5550 case `$LD -v 2>&1 </dev/null` in
5551 *GNU* | *'with BFD'*)
5552 lt_cv_prog_gnu_ld=yes
5553 ;;
5554 *)
5555 lt_cv_prog_gnu_ld=no
5556 ;;
5557 esac
5558 fi
5559 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5560 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5561 with_gnu_ld=$lt_cv_prog_gnu_ld
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5572 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5573 if test "${lt_cv_path_NM+set}" = set; then
5574 $as_echo_n "(cached) " >&6
5575 else
5576 if test -n "$NM"; then
5577 # Let the user override the test.
5578 lt_cv_path_NM="$NM"
5579 else
5580 lt_nm_to_check="${ac_tool_prefix}nm"
5581 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5582 lt_nm_to_check="$lt_nm_to_check nm"
5583 fi
5584 for lt_tmp_nm in $lt_nm_to_check; do
5585 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5586 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5587 IFS="$lt_save_ifs"
5588 test -z "$ac_dir" && ac_dir=.
5589 tmp_nm="$ac_dir/$lt_tmp_nm"
5590 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5591 # Check to see if the nm accepts a BSD-compat flag.
5592 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5593 # nm: unknown option "B" ignored
5594 # Tru64's nm complains that /dev/null is an invalid object file
5595 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5596 */dev/null* | *'Invalid file or object type'*)
5597 lt_cv_path_NM="$tmp_nm -B"
5598 break
5599 ;;
5600 *)
5601 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5602 */dev/null*)
5603 lt_cv_path_NM="$tmp_nm -p"
5604 break
5605 ;;
5606 *)
5607 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5608 continue # so that we can try to find one that supports BSD flags
5609 ;;
5610 esac
5611 ;;
5612 esac
5613 fi
5614 done
5615 IFS="$lt_save_ifs"
5616 done
5617 : ${lt_cv_path_NM=no}
5618 fi
5619 fi
5620 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5621 $as_echo "$lt_cv_path_NM" >&6; }
5622 if test "$lt_cv_path_NM" != "no"; then
5623 NM="$lt_cv_path_NM"
5624 else
5625 # Didn't find any BSD compatible name lister, look for dumpbin.
5626 if test -n "$ac_tool_prefix"; then
5627 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5628 do
5629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5630 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5631 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5632 $as_echo_n "checking for $ac_word... " >&6; }
5633 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5634 $as_echo_n "(cached) " >&6
5635 else
5636 if test -n "$DUMPBIN"; then
5637 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5638 else
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640 for as_dir in $PATH
5641 do
5642 IFS=$as_save_IFS
5643 test -z "$as_dir" && as_dir=.
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5646 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5647 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5648 break 2
5649 fi
5650 done
5651 done
5652 IFS=$as_save_IFS
5653
5654 fi
5655 fi
5656 DUMPBIN=$ac_cv_prog_DUMPBIN
5657 if test -n "$DUMPBIN"; then
5658 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5659 $as_echo "$DUMPBIN" >&6; }
5660 else
5661 { $as_echo "$as_me:$LINENO: result: no" >&5
5662 $as_echo "no" >&6; }
5663 fi
5664
5665
5666 test -n "$DUMPBIN" && break
5667 done
5668 fi
5669 if test -z "$DUMPBIN"; then
5670 ac_ct_DUMPBIN=$DUMPBIN
5671 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5672 do
5673 # Extract the first word of "$ac_prog", so it can be a program name with args.
5674 set dummy $ac_prog; ac_word=$2
5675 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5676 $as_echo_n "checking for $ac_word... " >&6; }
5677 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5678 $as_echo_n "(cached) " >&6
5679 else
5680 if test -n "$ac_ct_DUMPBIN"; then
5681 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5682 else
5683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684 for as_dir in $PATH
5685 do
5686 IFS=$as_save_IFS
5687 test -z "$as_dir" && as_dir=.
5688 for ac_exec_ext in '' $ac_executable_extensions; do
5689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5690 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5691 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5692 break 2
5693 fi
5694 done
5695 done
5696 IFS=$as_save_IFS
5697
5698 fi
5699 fi
5700 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5701 if test -n "$ac_ct_DUMPBIN"; then
5702 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5703 $as_echo "$ac_ct_DUMPBIN" >&6; }
5704 else
5705 { $as_echo "$as_me:$LINENO: result: no" >&5
5706 $as_echo "no" >&6; }
5707 fi
5708
5709
5710 test -n "$ac_ct_DUMPBIN" && break
5711 done
5712
5713 if test "x$ac_ct_DUMPBIN" = x; then
5714 DUMPBIN=":"
5715 else
5716 case $cross_compiling:$ac_tool_warned in
5717 yes:)
5718 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5720 ac_tool_warned=yes ;;
5721 esac
5722 DUMPBIN=$ac_ct_DUMPBIN
5723 fi
5724 fi
5725
5726
5727 if test "$DUMPBIN" != ":"; then
5728 NM="$DUMPBIN"
5729 fi
5730 fi
5731 test -z "$NM" && NM=nm
5732
5733
5734
5735
5736
5737
5738 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5739 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5740 if test "${lt_cv_nm_interface+set}" = set; then
5741 $as_echo_n "(cached) " >&6
5742 else
5743 lt_cv_nm_interface="BSD nm"
5744 echo "int some_variable = 0;" > conftest.$ac_ext
5745 (eval echo "\"\$as_me:5745: $ac_compile\"" >&5)
5746 (eval "$ac_compile" 2>conftest.err)
5747 cat conftest.err >&5
5748 (eval echo "\"\$as_me:5748: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5749 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5750 cat conftest.err >&5
5751 (eval echo "\"\$as_me:5751: output\"" >&5)
5752 cat conftest.out >&5
5753 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5754 lt_cv_nm_interface="MS dumpbin"
5755 fi
5756 rm -f conftest*
5757 fi
5758 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5759 $as_echo "$lt_cv_nm_interface" >&6; }
5760
5761 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5762 $as_echo_n "checking whether ln -s works... " >&6; }
5763 LN_S=$as_ln_s
5764 if test "$LN_S" = "ln -s"; then
5765 { $as_echo "$as_me:$LINENO: result: yes" >&5
5766 $as_echo "yes" >&6; }
5767 else
5768 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5769 $as_echo "no, using $LN_S" >&6; }
5770 fi
5771
5772 # find the maximum length of command line arguments
5773 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5774 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5775 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5776 $as_echo_n "(cached) " >&6
5777 else
5778 i=0
5779 teststring="ABCD"
5780
5781 case $build_os in
5782 msdosdjgpp*)
5783 # On DJGPP, this test can blow up pretty badly due to problems in libc
5784 # (any single argument exceeding 2000 bytes causes a buffer overrun
5785 # during glob expansion). Even if it were fixed, the result of this
5786 # check would be larger than it should be.
5787 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5788 ;;
5789
5790 gnu*)
5791 # Under GNU Hurd, this test is not required because there is
5792 # no limit to the length of command line arguments.
5793 # Libtool will interpret -1 as no limit whatsoever
5794 lt_cv_sys_max_cmd_len=-1;
5795 ;;
5796
5797 cygwin* | mingw* | cegcc*)
5798 # On Win9x/ME, this test blows up -- it succeeds, but takes
5799 # about 5 minutes as the teststring grows exponentially.
5800 # Worse, since 9x/ME are not pre-emptively multitasking,
5801 # you end up with a "frozen" computer, even though with patience
5802 # the test eventually succeeds (with a max line length of 256k).
5803 # Instead, let's just punt: use the minimum linelength reported by
5804 # all of the supported platforms: 8192 (on NT/2K/XP).
5805 lt_cv_sys_max_cmd_len=8192;
5806 ;;
5807
5808 amigaos*)
5809 # On AmigaOS with pdksh, this test takes hours, literally.
5810 # So we just punt and use a minimum line length of 8192.
5811 lt_cv_sys_max_cmd_len=8192;
5812 ;;
5813
5814 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5815 # This has been around since 386BSD, at least. Likely further.
5816 if test -x /sbin/sysctl; then
5817 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5818 elif test -x /usr/sbin/sysctl; then
5819 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5820 else
5821 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5822 fi
5823 # And add a safety zone
5824 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5825 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5826 ;;
5827
5828 interix*)
5829 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5830 lt_cv_sys_max_cmd_len=196608
5831 ;;
5832
5833 osf*)
5834 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5835 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5836 # nice to cause kernel panics so lets avoid the loop below.
5837 # First set a reasonable default.
5838 lt_cv_sys_max_cmd_len=16384
5839 #
5840 if test -x /sbin/sysconfig; then
5841 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5842 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5843 esac
5844 fi
5845 ;;
5846 sco3.2v5*)
5847 lt_cv_sys_max_cmd_len=102400
5848 ;;
5849 sysv5* | sco5v6* | sysv4.2uw2*)
5850 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5851 if test -n "$kargmax"; then
5852 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5853 else
5854 lt_cv_sys_max_cmd_len=32768
5855 fi
5856 ;;
5857 *)
5858 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5859 if test -n "$lt_cv_sys_max_cmd_len"; then
5860 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5861 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5862 else
5863 # Make teststring a little bigger before we do anything with it.
5864 # a 1K string should be a reasonable start.
5865 for i in 1 2 3 4 5 6 7 8 ; do
5866 teststring=$teststring$teststring
5867 done
5868 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5869 # If test is not a shell built-in, we'll probably end up computing a
5870 # maximum length that is only half of the actual maximum length, but
5871 # we can't tell.
5872 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5873 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5874 test $i != 17 # 1/2 MB should be enough
5875 do
5876 i=`expr $i + 1`
5877 teststring=$teststring$teststring
5878 done
5879 # Only check the string length outside the loop.
5880 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5881 teststring=
5882 # Add a significant safety factor because C++ compilers can tack on
5883 # massive amounts of additional arguments before passing them to the
5884 # linker. It appears as though 1/2 is a usable value.
5885 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5886 fi
5887 ;;
5888 esac
5889
5890 fi
5891
5892 if test -n $lt_cv_sys_max_cmd_len ; then
5893 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5894 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5895 else
5896 { $as_echo "$as_me:$LINENO: result: none" >&5
5897 $as_echo "none" >&6; }
5898 fi
5899 max_cmd_len=$lt_cv_sys_max_cmd_len
5900
5901
5902
5903
5904
5905
5906 : ${CP="cp -f"}
5907 : ${MV="mv -f"}
5908 : ${RM="rm -f"}
5909
5910 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5911 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5912 # Try some XSI features
5913 xsi_shell=no
5914 ( _lt_dummy="a/b/c"
5915 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5916 = c,a/b,, \
5917 && eval 'test $(( 1 + 1 )) -eq 2 \
5918 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5919 && xsi_shell=yes
5920 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5921 $as_echo "$xsi_shell" >&6; }
5922
5923
5924 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5925 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5926 lt_shell_append=no
5927 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5928 >/dev/null 2>&1 \
5929 && lt_shell_append=yes
5930 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5931 $as_echo "$lt_shell_append" >&6; }
5932
5933
5934 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5935 lt_unset=unset
5936 else
5937 lt_unset=false
5938 fi
5939
5940
5941
5942
5943
5944 # test EBCDIC or ASCII
5945 case `echo X|tr X '\101'` in
5946 A) # ASCII based system
5947 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5948 lt_SP2NL='tr \040 \012'
5949 lt_NL2SP='tr \015\012 \040\040'
5950 ;;
5951 *) # EBCDIC based system
5952 lt_SP2NL='tr \100 \n'
5953 lt_NL2SP='tr \r\n \100\100'
5954 ;;
5955 esac
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5966 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5967 if test "${lt_cv_ld_reload_flag+set}" = set; then
5968 $as_echo_n "(cached) " >&6
5969 else
5970 lt_cv_ld_reload_flag='-r'
5971 fi
5972 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5973 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5974 reload_flag=$lt_cv_ld_reload_flag
5975 case $reload_flag in
5976 "" | " "*) ;;
5977 *) reload_flag=" $reload_flag" ;;
5978 esac
5979 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5980 case $host_os in
5981 darwin*)
5982 if test "$GCC" = yes; then
5983 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5984 else
5985 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5986 fi
5987 ;;
5988 esac
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998 if test -n "$ac_tool_prefix"; then
5999 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6000 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6001 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6002 $as_echo_n "checking for $ac_word... " >&6; }
6003 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6004 $as_echo_n "(cached) " >&6
6005 else
6006 if test -n "$OBJDUMP"; then
6007 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6008 else
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH
6011 do
6012 IFS=$as_save_IFS
6013 test -z "$as_dir" && as_dir=.
6014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6016 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6017 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6018 break 2
6019 fi
6020 done
6021 done
6022 IFS=$as_save_IFS
6023
6024 fi
6025 fi
6026 OBJDUMP=$ac_cv_prog_OBJDUMP
6027 if test -n "$OBJDUMP"; then
6028 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6029 $as_echo "$OBJDUMP" >&6; }
6030 else
6031 { $as_echo "$as_me:$LINENO: result: no" >&5
6032 $as_echo "no" >&6; }
6033 fi
6034
6035
6036 fi
6037 if test -z "$ac_cv_prog_OBJDUMP"; then
6038 ac_ct_OBJDUMP=$OBJDUMP
6039 # Extract the first word of "objdump", so it can be a program name with args.
6040 set dummy objdump; ac_word=$2
6041 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6042 $as_echo_n "checking for $ac_word... " >&6; }
6043 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6044 $as_echo_n "(cached) " >&6
6045 else
6046 if test -n "$ac_ct_OBJDUMP"; then
6047 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6048 else
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050 for as_dir in $PATH
6051 do
6052 IFS=$as_save_IFS
6053 test -z "$as_dir" && as_dir=.
6054 for ac_exec_ext in '' $ac_executable_extensions; do
6055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6056 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6057 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6058 break 2
6059 fi
6060 done
6061 done
6062 IFS=$as_save_IFS
6063
6064 fi
6065 fi
6066 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6067 if test -n "$ac_ct_OBJDUMP"; then
6068 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6069 $as_echo "$ac_ct_OBJDUMP" >&6; }
6070 else
6071 { $as_echo "$as_me:$LINENO: result: no" >&5
6072 $as_echo "no" >&6; }
6073 fi
6074
6075 if test "x$ac_ct_OBJDUMP" = x; then
6076 OBJDUMP="false"
6077 else
6078 case $cross_compiling:$ac_tool_warned in
6079 yes:)
6080 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6082 ac_tool_warned=yes ;;
6083 esac
6084 OBJDUMP=$ac_ct_OBJDUMP
6085 fi
6086 else
6087 OBJDUMP="$ac_cv_prog_OBJDUMP"
6088 fi
6089
6090 test -z "$OBJDUMP" && OBJDUMP=objdump
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6101 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6102 if test "${lt_cv_deplibs_check_method+set}" = set; then
6103 $as_echo_n "(cached) " >&6
6104 else
6105 lt_cv_file_magic_cmd='$MAGIC_CMD'
6106 lt_cv_file_magic_test_file=
6107 lt_cv_deplibs_check_method='unknown'
6108 # Need to set the preceding variable on all platforms that support
6109 # interlibrary dependencies.
6110 # 'none' -- dependencies not supported.
6111 # `unknown' -- same as none, but documents that we really don't know.
6112 # 'pass_all' -- all dependencies passed with no checks.
6113 # 'test_compile' -- check by making test program.
6114 # 'file_magic [[regex]]' -- check by looking for files in library path
6115 # which responds to the $file_magic_cmd with a given extended regex.
6116 # If you have `file' or equivalent on your system and you're not sure
6117 # whether `pass_all' will *always* work, you probably want this one.
6118
6119 case $host_os in
6120 aix[4-9]*)
6121 lt_cv_deplibs_check_method=pass_all
6122 ;;
6123
6124 beos*)
6125 lt_cv_deplibs_check_method=pass_all
6126 ;;
6127
6128 bsdi[45]*)
6129 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6130 lt_cv_file_magic_cmd='/usr/bin/file -L'
6131 lt_cv_file_magic_test_file=/shlib/libc.so
6132 ;;
6133
6134 cygwin*)
6135 # func_win32_libid is a shell function defined in ltmain.sh
6136 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6137 lt_cv_file_magic_cmd='func_win32_libid'
6138 ;;
6139
6140 mingw* | pw32*)
6141 # Base MSYS/MinGW do not provide the 'file' command needed by
6142 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6143 # unless we find 'file', for example because we are cross-compiling.
6144 if ( file / ) >/dev/null 2>&1; then
6145 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6146 lt_cv_file_magic_cmd='func_win32_libid'
6147 else
6148 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6149 lt_cv_file_magic_cmd='$OBJDUMP -f'
6150 fi
6151 ;;
6152
6153 cegcc)
6154 # use the weaker test based on 'objdump'. See mingw*.
6155 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6156 lt_cv_file_magic_cmd='$OBJDUMP -f'
6157 ;;
6158
6159 darwin* | rhapsody*)
6160 lt_cv_deplibs_check_method=pass_all
6161 ;;
6162
6163 freebsd* | dragonfly*)
6164 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6165 case $host_cpu in
6166 i*86 )
6167 # Not sure whether the presence of OpenBSD here was a mistake.
6168 # Let's accept both of them until this is cleared up.
6169 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6170 lt_cv_file_magic_cmd=/usr/bin/file
6171 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6172 ;;
6173 esac
6174 else
6175 lt_cv_deplibs_check_method=pass_all
6176 fi
6177 ;;
6178
6179 gnu*)
6180 lt_cv_deplibs_check_method=pass_all
6181 ;;
6182
6183 hpux10.20* | hpux11*)
6184 lt_cv_file_magic_cmd=/usr/bin/file
6185 case $host_cpu in
6186 ia64*)
6187 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6188 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6189 ;;
6190 hppa*64*)
6191 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]'
6192 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6193 ;;
6194 *)
6195 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6196 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6197 ;;
6198 esac
6199 ;;
6200
6201 interix[3-9]*)
6202 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6203 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6204 ;;
6205
6206 irix5* | irix6* | nonstopux*)
6207 case $LD in
6208 *-32|*"-32 ") libmagic=32-bit;;
6209 *-n32|*"-n32 ") libmagic=N32;;
6210 *-64|*"-64 ") libmagic=64-bit;;
6211 *) libmagic=never-match;;
6212 esac
6213 lt_cv_deplibs_check_method=pass_all
6214 ;;
6215
6216 # This must be Linux ELF.
6217 linux* | k*bsd*-gnu)
6218 lt_cv_deplibs_check_method=pass_all
6219 ;;
6220
6221 netbsd*)
6222 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6223 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6224 else
6225 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6226 fi
6227 ;;
6228
6229 newos6*)
6230 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6231 lt_cv_file_magic_cmd=/usr/bin/file
6232 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6233 ;;
6234
6235 *nto* | *qnx*)
6236 lt_cv_deplibs_check_method=pass_all
6237 ;;
6238
6239 openbsd*)
6240 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6241 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6242 else
6243 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6244 fi
6245 ;;
6246
6247 osf3* | osf4* | osf5*)
6248 lt_cv_deplibs_check_method=pass_all
6249 ;;
6250
6251 rdos*)
6252 lt_cv_deplibs_check_method=pass_all
6253 ;;
6254
6255 solaris*)
6256 lt_cv_deplibs_check_method=pass_all
6257 ;;
6258
6259 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6260 lt_cv_deplibs_check_method=pass_all
6261 ;;
6262
6263 sysv4 | sysv4.3*)
6264 case $host_vendor in
6265 motorola)
6266 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]'
6267 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6268 ;;
6269 ncr)
6270 lt_cv_deplibs_check_method=pass_all
6271 ;;
6272 sequent)
6273 lt_cv_file_magic_cmd='/bin/file'
6274 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6275 ;;
6276 sni)
6277 lt_cv_file_magic_cmd='/bin/file'
6278 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6279 lt_cv_file_magic_test_file=/lib/libc.so
6280 ;;
6281 siemens)
6282 lt_cv_deplibs_check_method=pass_all
6283 ;;
6284 pc)
6285 lt_cv_deplibs_check_method=pass_all
6286 ;;
6287 esac
6288 ;;
6289
6290 tpf*)
6291 lt_cv_deplibs_check_method=pass_all
6292 ;;
6293 esac
6294
6295 fi
6296 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6297 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6298 file_magic_cmd=$lt_cv_file_magic_cmd
6299 deplibs_check_method=$lt_cv_deplibs_check_method
6300 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313 if test -n "$ac_tool_prefix"; then
6314 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6315 set dummy ${ac_tool_prefix}ar; ac_word=$2
6316 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6317 $as_echo_n "checking for $ac_word... " >&6; }
6318 if test "${ac_cv_prog_AR+set}" = set; then
6319 $as_echo_n "(cached) " >&6
6320 else
6321 if test -n "$AR"; then
6322 ac_cv_prog_AR="$AR" # Let the user override the test.
6323 else
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325 for as_dir in $PATH
6326 do
6327 IFS=$as_save_IFS
6328 test -z "$as_dir" && as_dir=.
6329 for ac_exec_ext in '' $ac_executable_extensions; do
6330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6331 ac_cv_prog_AR="${ac_tool_prefix}ar"
6332 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6333 break 2
6334 fi
6335 done
6336 done
6337 IFS=$as_save_IFS
6338
6339 fi
6340 fi
6341 AR=$ac_cv_prog_AR
6342 if test -n "$AR"; then
6343 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6344 $as_echo "$AR" >&6; }
6345 else
6346 { $as_echo "$as_me:$LINENO: result: no" >&5
6347 $as_echo "no" >&6; }
6348 fi
6349
6350
6351 fi
6352 if test -z "$ac_cv_prog_AR"; then
6353 ac_ct_AR=$AR
6354 # Extract the first word of "ar", so it can be a program name with args.
6355 set dummy ar; ac_word=$2
6356 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6357 $as_echo_n "checking for $ac_word... " >&6; }
6358 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6359 $as_echo_n "(cached) " >&6
6360 else
6361 if test -n "$ac_ct_AR"; then
6362 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6363 else
6364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365 for as_dir in $PATH
6366 do
6367 IFS=$as_save_IFS
6368 test -z "$as_dir" && as_dir=.
6369 for ac_exec_ext in '' $ac_executable_extensions; do
6370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6371 ac_cv_prog_ac_ct_AR="ar"
6372 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6373 break 2
6374 fi
6375 done
6376 done
6377 IFS=$as_save_IFS
6378
6379 fi
6380 fi
6381 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6382 if test -n "$ac_ct_AR"; then
6383 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6384 $as_echo "$ac_ct_AR" >&6; }
6385 else
6386 { $as_echo "$as_me:$LINENO: result: no" >&5
6387 $as_echo "no" >&6; }
6388 fi
6389
6390 if test "x$ac_ct_AR" = x; then
6391 AR="false"
6392 else
6393 case $cross_compiling:$ac_tool_warned in
6394 yes:)
6395 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6397 ac_tool_warned=yes ;;
6398 esac
6399 AR=$ac_ct_AR
6400 fi
6401 else
6402 AR="$ac_cv_prog_AR"
6403 fi
6404
6405 test -z "$AR" && AR=ar
6406 test -z "$AR_FLAGS" && AR_FLAGS=cru
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418 if test -n "$ac_tool_prefix"; then
6419 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6420 set dummy ${ac_tool_prefix}strip; ac_word=$2
6421 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6422 $as_echo_n "checking for $ac_word... " >&6; }
6423 if test "${ac_cv_prog_STRIP+set}" = set; then
6424 $as_echo_n "(cached) " >&6
6425 else
6426 if test -n "$STRIP"; then
6427 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6428 else
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 for as_dir in $PATH
6431 do
6432 IFS=$as_save_IFS
6433 test -z "$as_dir" && as_dir=.
6434 for ac_exec_ext in '' $ac_executable_extensions; do
6435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6436 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6437 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6438 break 2
6439 fi
6440 done
6441 done
6442 IFS=$as_save_IFS
6443
6444 fi
6445 fi
6446 STRIP=$ac_cv_prog_STRIP
6447 if test -n "$STRIP"; then
6448 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6449 $as_echo "$STRIP" >&6; }
6450 else
6451 { $as_echo "$as_me:$LINENO: result: no" >&5
6452 $as_echo "no" >&6; }
6453 fi
6454
6455
6456 fi
6457 if test -z "$ac_cv_prog_STRIP"; then
6458 ac_ct_STRIP=$STRIP
6459 # Extract the first word of "strip", so it can be a program name with args.
6460 set dummy strip; ac_word=$2
6461 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6462 $as_echo_n "checking for $ac_word... " >&6; }
6463 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6464 $as_echo_n "(cached) " >&6
6465 else
6466 if test -n "$ac_ct_STRIP"; then
6467 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6468 else
6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 for as_dir in $PATH
6471 do
6472 IFS=$as_save_IFS
6473 test -z "$as_dir" && as_dir=.
6474 for ac_exec_ext in '' $ac_executable_extensions; do
6475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6476 ac_cv_prog_ac_ct_STRIP="strip"
6477 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6478 break 2
6479 fi
6480 done
6481 done
6482 IFS=$as_save_IFS
6483
6484 fi
6485 fi
6486 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6487 if test -n "$ac_ct_STRIP"; then
6488 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6489 $as_echo "$ac_ct_STRIP" >&6; }
6490 else
6491 { $as_echo "$as_me:$LINENO: result: no" >&5
6492 $as_echo "no" >&6; }
6493 fi
6494
6495 if test "x$ac_ct_STRIP" = x; then
6496 STRIP=":"
6497 else
6498 case $cross_compiling:$ac_tool_warned in
6499 yes:)
6500 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6502 ac_tool_warned=yes ;;
6503 esac
6504 STRIP=$ac_ct_STRIP
6505 fi
6506 else
6507 STRIP="$ac_cv_prog_STRIP"
6508 fi
6509
6510 test -z "$STRIP" && STRIP=:
6511
6512
6513
6514
6515
6516
6517 if test -n "$ac_tool_prefix"; then
6518 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6519 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6520 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6521 $as_echo_n "checking for $ac_word... " >&6; }
6522 if test "${ac_cv_prog_RANLIB+set}" = set; then
6523 $as_echo_n "(cached) " >&6
6524 else
6525 if test -n "$RANLIB"; then
6526 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6527 else
6528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 for as_dir in $PATH
6530 do
6531 IFS=$as_save_IFS
6532 test -z "$as_dir" && as_dir=.
6533 for ac_exec_ext in '' $ac_executable_extensions; do
6534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6535 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6536 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6537 break 2
6538 fi
6539 done
6540 done
6541 IFS=$as_save_IFS
6542
6543 fi
6544 fi
6545 RANLIB=$ac_cv_prog_RANLIB
6546 if test -n "$RANLIB"; then
6547 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6548 $as_echo "$RANLIB" >&6; }
6549 else
6550 { $as_echo "$as_me:$LINENO: result: no" >&5
6551 $as_echo "no" >&6; }
6552 fi
6553
6554
6555 fi
6556 if test -z "$ac_cv_prog_RANLIB"; then
6557 ac_ct_RANLIB=$RANLIB
6558 # Extract the first word of "ranlib", so it can be a program name with args.
6559 set dummy ranlib; ac_word=$2
6560 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6561 $as_echo_n "checking for $ac_word... " >&6; }
6562 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6563 $as_echo_n "(cached) " >&6
6564 else
6565 if test -n "$ac_ct_RANLIB"; then
6566 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6567 else
6568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569 for as_dir in $PATH
6570 do
6571 IFS=$as_save_IFS
6572 test -z "$as_dir" && as_dir=.
6573 for ac_exec_ext in '' $ac_executable_extensions; do
6574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6575 ac_cv_prog_ac_ct_RANLIB="ranlib"
6576 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6577 break 2
6578 fi
6579 done
6580 done
6581 IFS=$as_save_IFS
6582
6583 fi
6584 fi
6585 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6586 if test -n "$ac_ct_RANLIB"; then
6587 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6588 $as_echo "$ac_ct_RANLIB" >&6; }
6589 else
6590 { $as_echo "$as_me:$LINENO: result: no" >&5
6591 $as_echo "no" >&6; }
6592 fi
6593
6594 if test "x$ac_ct_RANLIB" = x; then
6595 RANLIB=":"
6596 else
6597 case $cross_compiling:$ac_tool_warned in
6598 yes:)
6599 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6601 ac_tool_warned=yes ;;
6602 esac
6603 RANLIB=$ac_ct_RANLIB
6604 fi
6605 else
6606 RANLIB="$ac_cv_prog_RANLIB"
6607 fi
6608
6609 test -z "$RANLIB" && RANLIB=:
6610
6611
6612
6613
6614
6615
6616 # Determine commands to create old-style static archives.
6617 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6618 old_postinstall_cmds='chmod 644 $oldlib'
6619 old_postuninstall_cmds=
6620
6621 if test -n "$RANLIB"; then
6622 case $host_os in
6623 openbsd*)
6624 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6625 ;;
6626 *)
6627 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6628 ;;
6629 esac
6630 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6631 fi
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666 # If no C compiler was specified, use CC.
6667 LTCC=${LTCC-"$CC"}
6668
6669 # If no C compiler flags were specified, use CFLAGS.
6670 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6671
6672 # Allow CC to be a program name with arguments.
6673 compiler=$CC
6674
6675
6676 # Check for command to grab the raw symbol name followed by C symbol from nm.
6677 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6678 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6679 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6680 $as_echo_n "(cached) " >&6
6681 else
6682
6683 # These are sane defaults that work on at least a few old systems.
6684 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6685
6686 # Character class describing NM global symbol codes.
6687 symcode='[BCDEGRST]'
6688
6689 # Regexp to match symbols that can be accessed directly from C.
6690 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6691
6692 # Define system-specific variables.
6693 case $host_os in
6694 aix*)
6695 symcode='[BCDT]'
6696 ;;
6697 cygwin* | mingw* | pw32* | cegcc*)
6698 symcode='[ABCDGISTW]'
6699 ;;
6700 hpux*)
6701 if test "$host_cpu" = ia64; then
6702 symcode='[ABCDEGRST]'
6703 fi
6704 ;;
6705 irix* | nonstopux*)
6706 symcode='[BCDEGRST]'
6707 ;;
6708 osf*)
6709 symcode='[BCDEGQRST]'
6710 ;;
6711 solaris*)
6712 symcode='[BDRT]'
6713 ;;
6714 sco3.2v5*)
6715 symcode='[DT]'
6716 ;;
6717 sysv4.2uw2*)
6718 symcode='[DT]'
6719 ;;
6720 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6721 symcode='[ABDT]'
6722 ;;
6723 sysv4)
6724 symcode='[DFNSTU]'
6725 ;;
6726 esac
6727
6728 # If we're using GNU nm, then use its standard symbol codes.
6729 case `$NM -V 2>&1` in
6730 *GNU* | *'with BFD'*)
6731 symcode='[ABCDGIRSTW]' ;;
6732 esac
6733
6734 # Transform an extracted symbol line into a proper C declaration.
6735 # Some systems (esp. on ia64) link data and code symbols differently,
6736 # so use this general approach.
6737 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6738
6739 # Transform an extracted symbol line into symbol name and symbol address
6740 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6741 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'"
6742
6743 # Handle CRLF in mingw tool chain
6744 opt_cr=
6745 case $build_os in
6746 mingw*)
6747 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6748 ;;
6749 esac
6750
6751 # Try without a prefix underscore, then with it.
6752 for ac_symprfx in "" "_"; do
6753
6754 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6755 symxfrm="\\1 $ac_symprfx\\2 \\2"
6756
6757 # Write the raw and C identifiers.
6758 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6759 # Fake it for dumpbin and say T for any non-static function
6760 # and D for any global variable.
6761 # Also find C++ and __fastcall symbols from MSVC++,
6762 # which start with @ or ?.
6763 lt_cv_sys_global_symbol_pipe="$AWK '"\
6764 " {last_section=section; section=\$ 3};"\
6765 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6766 " \$ 0!~/External *\|/{next};"\
6767 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6768 " {if(hide[section]) next};"\
6769 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6770 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6771 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6772 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6773 " ' prfx=^$ac_symprfx"
6774 else
6775 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6776 fi
6777
6778 # Check to see that the pipe works correctly.
6779 pipe_works=no
6780
6781 rm -f conftest*
6782 cat > conftest.$ac_ext <<_LT_EOF
6783 #ifdef __cplusplus
6784 extern "C" {
6785 #endif
6786 char nm_test_var;
6787 void nm_test_func(void);
6788 void nm_test_func(void){}
6789 #ifdef __cplusplus
6790 }
6791 #endif
6792 int main(){nm_test_var='a';nm_test_func();return(0);}
6793 _LT_EOF
6794
6795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6796 (eval $ac_compile) 2>&5
6797 ac_status=$?
6798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); }; then
6800 # Now try to grab the symbols.
6801 nlist=conftest.nm
6802 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6803 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6804 ac_status=$?
6805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); } && test -s "$nlist"; then
6807 # Try sorting and uniquifying the output.
6808 if sort "$nlist" | uniq > "$nlist"T; then
6809 mv -f "$nlist"T "$nlist"
6810 else
6811 rm -f "$nlist"T
6812 fi
6813
6814 # Make sure that we snagged all the symbols we need.
6815 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6816 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6817 cat <<_LT_EOF > conftest.$ac_ext
6818 #ifdef __cplusplus
6819 extern "C" {
6820 #endif
6821
6822 _LT_EOF
6823 # Now generate the symbol file.
6824 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6825
6826 cat <<_LT_EOF >> conftest.$ac_ext
6827
6828 /* The mapping between symbol names and symbols. */
6829 const struct {
6830 const char *name;
6831 void *address;
6832 }
6833 lt__PROGRAM__LTX_preloaded_symbols[] =
6834 {
6835 { "@PROGRAM@", (void *) 0 },
6836 _LT_EOF
6837 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6838 cat <<\_LT_EOF >> conftest.$ac_ext
6839 {0, (void *) 0}
6840 };
6841
6842 /* This works around a problem in FreeBSD linker */
6843 #ifdef FREEBSD_WORKAROUND
6844 static const void *lt_preloaded_setup() {
6845 return lt__PROGRAM__LTX_preloaded_symbols;
6846 }
6847 #endif
6848
6849 #ifdef __cplusplus
6850 }
6851 #endif
6852 _LT_EOF
6853 # Now try linking the two files.
6854 mv conftest.$ac_objext conftstm.$ac_objext
6855 lt_save_LIBS="$LIBS"
6856 lt_save_CFLAGS="$CFLAGS"
6857 LIBS="conftstm.$ac_objext"
6858 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6860 (eval $ac_link) 2>&5
6861 ac_status=$?
6862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6864 pipe_works=yes
6865 fi
6866 LIBS="$lt_save_LIBS"
6867 CFLAGS="$lt_save_CFLAGS"
6868 else
6869 echo "cannot find nm_test_func in $nlist" >&5
6870 fi
6871 else
6872 echo "cannot find nm_test_var in $nlist" >&5
6873 fi
6874 else
6875 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6876 fi
6877 else
6878 echo "$progname: failed program was:" >&5
6879 cat conftest.$ac_ext >&5
6880 fi
6881 rm -rf conftest* conftst*
6882
6883 # Do not use the global_symbol_pipe unless it works.
6884 if test "$pipe_works" = yes; then
6885 break
6886 else
6887 lt_cv_sys_global_symbol_pipe=
6888 fi
6889 done
6890
6891 fi
6892
6893 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6894 lt_cv_sys_global_symbol_to_cdecl=
6895 fi
6896 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6897 { $as_echo "$as_me:$LINENO: result: failed" >&5
6898 $as_echo "failed" >&6; }
6899 else
6900 { $as_echo "$as_me:$LINENO: result: ok" >&5
6901 $as_echo "ok" >&6; }
6902 fi
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925 # Check whether --enable-libtool-lock was given.
6926 if test "${enable_libtool_lock+set}" = set; then
6927 enableval=$enable_libtool_lock;
6928 fi
6929
6930 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6931
6932 # Some flags need to be propagated to the compiler or linker for good
6933 # libtool support.
6934 case $host in
6935 ia64-*-hpux*)
6936 # Find out which ABI we are using.
6937 echo 'int i;' > conftest.$ac_ext
6938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6939 (eval $ac_compile) 2>&5
6940 ac_status=$?
6941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942 (exit $ac_status); }; then
6943 case `/usr/bin/file conftest.$ac_objext` in
6944 *ELF-32*)
6945 HPUX_IA64_MODE="32"
6946 ;;
6947 *ELF-64*)
6948 HPUX_IA64_MODE="64"
6949 ;;
6950 esac
6951 fi
6952 rm -rf conftest*
6953 ;;
6954 *-*-irix6*)
6955 # Find out which ABI we are using.
6956 echo '#line 6956 "configure"' > conftest.$ac_ext
6957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6958 (eval $ac_compile) 2>&5
6959 ac_status=$?
6960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); }; then
6962 if test "$lt_cv_prog_gnu_ld" = yes; then
6963 case `/usr/bin/file conftest.$ac_objext` in
6964 *32-bit*)
6965 LD="${LD-ld} -melf32bsmip"
6966 ;;
6967 *N32*)
6968 LD="${LD-ld} -melf32bmipn32"
6969 ;;
6970 *64-bit*)
6971 LD="${LD-ld} -melf64bmip"
6972 ;;
6973 esac
6974 else
6975 case `/usr/bin/file conftest.$ac_objext` in
6976 *32-bit*)
6977 LD="${LD-ld} -32"
6978 ;;
6979 *N32*)
6980 LD="${LD-ld} -n32"
6981 ;;
6982 *64-bit*)
6983 LD="${LD-ld} -64"
6984 ;;
6985 esac
6986 fi
6987 fi
6988 rm -rf conftest*
6989 ;;
6990
6991 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6992 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6993 # Find out which ABI we are using.
6994 echo 'int i;' > conftest.$ac_ext
6995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6996 (eval $ac_compile) 2>&5
6997 ac_status=$?
6998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); }; then
7000 case `/usr/bin/file conftest.o` in
7001 *32-bit*)
7002 case $host in
7003 x86_64-*kfreebsd*-gnu)
7004 LD="${LD-ld} -m elf_i386_fbsd"
7005 ;;
7006 x86_64-*linux*)
7007 LD="${LD-ld} -m elf_i386"
7008 ;;
7009 ppc64-*linux*|powerpc64-*linux*)
7010 LD="${LD-ld} -m elf32ppclinux"
7011 ;;
7012 s390x-*linux*)
7013 LD="${LD-ld} -m elf_s390"
7014 ;;
7015 sparc64-*linux*)
7016 LD="${LD-ld} -m elf32_sparc"
7017 ;;
7018 esac
7019 ;;
7020 *64-bit*)
7021 case $host in
7022 x86_64-*kfreebsd*-gnu)
7023 LD="${LD-ld} -m elf_x86_64_fbsd"
7024 ;;
7025 x86_64-*linux*)
7026 LD="${LD-ld} -m elf_x86_64"
7027 ;;
7028 ppc*-*linux*|powerpc*-*linux*)
7029 LD="${LD-ld} -m elf64ppc"
7030 ;;
7031 s390*-*linux*|s390*-*tpf*)
7032 LD="${LD-ld} -m elf64_s390"
7033 ;;
7034 sparc*-*linux*)
7035 LD="${LD-ld} -m elf64_sparc"
7036 ;;
7037 esac
7038 ;;
7039 esac
7040 fi
7041 rm -rf conftest*
7042 ;;
7043
7044 *-*-sco3.2v5*)
7045 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7046 SAVE_CFLAGS="$CFLAGS"
7047 CFLAGS="$CFLAGS -belf"
7048 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7049 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7050 if test "${lt_cv_cc_needs_belf+set}" = set; then
7051 $as_echo_n "(cached) " >&6
7052 else
7053 ac_ext=c
7054 ac_cpp='$CPP $CPPFLAGS'
7055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7058
7059 cat >conftest.$ac_ext <<_ACEOF
7060 /* confdefs.h. */
7061 _ACEOF
7062 cat confdefs.h >>conftest.$ac_ext
7063 cat >>conftest.$ac_ext <<_ACEOF
7064 /* end confdefs.h. */
7065
7066 int
7067 main ()
7068 {
7069
7070 ;
7071 return 0;
7072 }
7073 _ACEOF
7074 rm -f conftest.$ac_objext conftest$ac_exeext
7075 if { (ac_try="$ac_link"
7076 case "(($ac_try" in
7077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7078 *) ac_try_echo=$ac_try;;
7079 esac
7080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7081 $as_echo "$ac_try_echo") >&5
7082 (eval "$ac_link") 2>conftest.er1
7083 ac_status=$?
7084 grep -v '^ *+' conftest.er1 >conftest.err
7085 rm -f conftest.er1
7086 cat conftest.err >&5
7087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); } && {
7089 test -z "$ac_c_werror_flag" ||
7090 test ! -s conftest.err
7091 } && test -s conftest$ac_exeext && {
7092 test "$cross_compiling" = yes ||
7093 $as_test_x conftest$ac_exeext
7094 }; then
7095 lt_cv_cc_needs_belf=yes
7096 else
7097 $as_echo "$as_me: failed program was:" >&5
7098 sed 's/^/| /' conftest.$ac_ext >&5
7099
7100 lt_cv_cc_needs_belf=no
7101 fi
7102
7103 rm -rf conftest.dSYM
7104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7105 conftest$ac_exeext conftest.$ac_ext
7106 ac_ext=c
7107 ac_cpp='$CPP $CPPFLAGS'
7108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7111
7112 fi
7113 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7114 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7115 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7116 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7117 CFLAGS="$SAVE_CFLAGS"
7118 fi
7119 ;;
7120 sparc*-*solaris*)
7121 # Find out which ABI we are using.
7122 echo 'int i;' > conftest.$ac_ext
7123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7124 (eval $ac_compile) 2>&5
7125 ac_status=$?
7126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); }; then
7128 case `/usr/bin/file conftest.o` in
7129 *64-bit*)
7130 case $lt_cv_prog_gnu_ld in
7131 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7132 *)
7133 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7134 LD="${LD-ld} -64"
7135 fi
7136 ;;
7137 esac
7138 ;;
7139 esac
7140 fi
7141 rm -rf conftest*
7142 ;;
7143 esac
7144
7145 need_locks="$enable_libtool_lock"
7146
7147
7148 case $host_os in
7149 rhapsody* | darwin*)
7150 if test -n "$ac_tool_prefix"; then
7151 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7152 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7153 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7154 $as_echo_n "checking for $ac_word... " >&6; }
7155 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7156 $as_echo_n "(cached) " >&6
7157 else
7158 if test -n "$DSYMUTIL"; then
7159 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7160 else
7161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162 for as_dir in $PATH
7163 do
7164 IFS=$as_save_IFS
7165 test -z "$as_dir" && as_dir=.
7166 for ac_exec_ext in '' $ac_executable_extensions; do
7167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7168 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7169 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7170 break 2
7171 fi
7172 done
7173 done
7174 IFS=$as_save_IFS
7175
7176 fi
7177 fi
7178 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7179 if test -n "$DSYMUTIL"; then
7180 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7181 $as_echo "$DSYMUTIL" >&6; }
7182 else
7183 { $as_echo "$as_me:$LINENO: result: no" >&5
7184 $as_echo "no" >&6; }
7185 fi
7186
7187
7188 fi
7189 if test -z "$ac_cv_prog_DSYMUTIL"; then
7190 ac_ct_DSYMUTIL=$DSYMUTIL
7191 # Extract the first word of "dsymutil", so it can be a program name with args.
7192 set dummy dsymutil; ac_word=$2
7193 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7194 $as_echo_n "checking for $ac_word... " >&6; }
7195 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7196 $as_echo_n "(cached) " >&6
7197 else
7198 if test -n "$ac_ct_DSYMUTIL"; then
7199 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7200 else
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202 for as_dir in $PATH
7203 do
7204 IFS=$as_save_IFS
7205 test -z "$as_dir" && as_dir=.
7206 for ac_exec_ext in '' $ac_executable_extensions; do
7207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7208 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7209 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7210 break 2
7211 fi
7212 done
7213 done
7214 IFS=$as_save_IFS
7215
7216 fi
7217 fi
7218 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7219 if test -n "$ac_ct_DSYMUTIL"; then
7220 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7221 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7222 else
7223 { $as_echo "$as_me:$LINENO: result: no" >&5
7224 $as_echo "no" >&6; }
7225 fi
7226
7227 if test "x$ac_ct_DSYMUTIL" = x; then
7228 DSYMUTIL=":"
7229 else
7230 case $cross_compiling:$ac_tool_warned in
7231 yes:)
7232 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7234 ac_tool_warned=yes ;;
7235 esac
7236 DSYMUTIL=$ac_ct_DSYMUTIL
7237 fi
7238 else
7239 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7240 fi
7241
7242 if test -n "$ac_tool_prefix"; then
7243 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7244 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7245 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7246 $as_echo_n "checking for $ac_word... " >&6; }
7247 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7248 $as_echo_n "(cached) " >&6
7249 else
7250 if test -n "$NMEDIT"; then
7251 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7252 else
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 for as_dir in $PATH
7255 do
7256 IFS=$as_save_IFS
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7260 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7261 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7262 break 2
7263 fi
7264 done
7265 done
7266 IFS=$as_save_IFS
7267
7268 fi
7269 fi
7270 NMEDIT=$ac_cv_prog_NMEDIT
7271 if test -n "$NMEDIT"; then
7272 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7273 $as_echo "$NMEDIT" >&6; }
7274 else
7275 { $as_echo "$as_me:$LINENO: result: no" >&5
7276 $as_echo "no" >&6; }
7277 fi
7278
7279
7280 fi
7281 if test -z "$ac_cv_prog_NMEDIT"; then
7282 ac_ct_NMEDIT=$NMEDIT
7283 # Extract the first word of "nmedit", so it can be a program name with args.
7284 set dummy nmedit; ac_word=$2
7285 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7286 $as_echo_n "checking for $ac_word... " >&6; }
7287 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7288 $as_echo_n "(cached) " >&6
7289 else
7290 if test -n "$ac_ct_NMEDIT"; then
7291 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7292 else
7293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294 for as_dir in $PATH
7295 do
7296 IFS=$as_save_IFS
7297 test -z "$as_dir" && as_dir=.
7298 for ac_exec_ext in '' $ac_executable_extensions; do
7299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7300 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7301 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7302 break 2
7303 fi
7304 done
7305 done
7306 IFS=$as_save_IFS
7307
7308 fi
7309 fi
7310 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7311 if test -n "$ac_ct_NMEDIT"; then
7312 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7313 $as_echo "$ac_ct_NMEDIT" >&6; }
7314 else
7315 { $as_echo "$as_me:$LINENO: result: no" >&5
7316 $as_echo "no" >&6; }
7317 fi
7318
7319 if test "x$ac_ct_NMEDIT" = x; then
7320 NMEDIT=":"
7321 else
7322 case $cross_compiling:$ac_tool_warned in
7323 yes:)
7324 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7326 ac_tool_warned=yes ;;
7327 esac
7328 NMEDIT=$ac_ct_NMEDIT
7329 fi
7330 else
7331 NMEDIT="$ac_cv_prog_NMEDIT"
7332 fi
7333
7334 if test -n "$ac_tool_prefix"; then
7335 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7336 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7337 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7338 $as_echo_n "checking for $ac_word... " >&6; }
7339 if test "${ac_cv_prog_LIPO+set}" = set; then
7340 $as_echo_n "(cached) " >&6
7341 else
7342 if test -n "$LIPO"; then
7343 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7344 else
7345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346 for as_dir in $PATH
7347 do
7348 IFS=$as_save_IFS
7349 test -z "$as_dir" && as_dir=.
7350 for ac_exec_ext in '' $ac_executable_extensions; do
7351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7352 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7353 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7354 break 2
7355 fi
7356 done
7357 done
7358 IFS=$as_save_IFS
7359
7360 fi
7361 fi
7362 LIPO=$ac_cv_prog_LIPO
7363 if test -n "$LIPO"; then
7364 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7365 $as_echo "$LIPO" >&6; }
7366 else
7367 { $as_echo "$as_me:$LINENO: result: no" >&5
7368 $as_echo "no" >&6; }
7369 fi
7370
7371
7372 fi
7373 if test -z "$ac_cv_prog_LIPO"; then
7374 ac_ct_LIPO=$LIPO
7375 # Extract the first word of "lipo", so it can be a program name with args.
7376 set dummy lipo; ac_word=$2
7377 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7378 $as_echo_n "checking for $ac_word... " >&6; }
7379 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7380 $as_echo_n "(cached) " >&6
7381 else
7382 if test -n "$ac_ct_LIPO"; then
7383 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7384 else
7385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386 for as_dir in $PATH
7387 do
7388 IFS=$as_save_IFS
7389 test -z "$as_dir" && as_dir=.
7390 for ac_exec_ext in '' $ac_executable_extensions; do
7391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7392 ac_cv_prog_ac_ct_LIPO="lipo"
7393 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7394 break 2
7395 fi
7396 done
7397 done
7398 IFS=$as_save_IFS
7399
7400 fi
7401 fi
7402 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7403 if test -n "$ac_ct_LIPO"; then
7404 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7405 $as_echo "$ac_ct_LIPO" >&6; }
7406 else
7407 { $as_echo "$as_me:$LINENO: result: no" >&5
7408 $as_echo "no" >&6; }
7409 fi
7410
7411 if test "x$ac_ct_LIPO" = x; then
7412 LIPO=":"
7413 else
7414 case $cross_compiling:$ac_tool_warned in
7415 yes:)
7416 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7417 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7418 ac_tool_warned=yes ;;
7419 esac
7420 LIPO=$ac_ct_LIPO
7421 fi
7422 else
7423 LIPO="$ac_cv_prog_LIPO"
7424 fi
7425
7426 if test -n "$ac_tool_prefix"; then
7427 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7428 set dummy ${ac_tool_prefix}otool; ac_word=$2
7429 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7430 $as_echo_n "checking for $ac_word... " >&6; }
7431 if test "${ac_cv_prog_OTOOL+set}" = set; then
7432 $as_echo_n "(cached) " >&6
7433 else
7434 if test -n "$OTOOL"; then
7435 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7436 else
7437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438 for as_dir in $PATH
7439 do
7440 IFS=$as_save_IFS
7441 test -z "$as_dir" && as_dir=.
7442 for ac_exec_ext in '' $ac_executable_extensions; do
7443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7444 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7445 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7446 break 2
7447 fi
7448 done
7449 done
7450 IFS=$as_save_IFS
7451
7452 fi
7453 fi
7454 OTOOL=$ac_cv_prog_OTOOL
7455 if test -n "$OTOOL"; then
7456 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7457 $as_echo "$OTOOL" >&6; }
7458 else
7459 { $as_echo "$as_me:$LINENO: result: no" >&5
7460 $as_echo "no" >&6; }
7461 fi
7462
7463
7464 fi
7465 if test -z "$ac_cv_prog_OTOOL"; then
7466 ac_ct_OTOOL=$OTOOL
7467 # Extract the first word of "otool", so it can be a program name with args.
7468 set dummy otool; ac_word=$2
7469 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7470 $as_echo_n "checking for $ac_word... " >&6; }
7471 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7472 $as_echo_n "(cached) " >&6
7473 else
7474 if test -n "$ac_ct_OTOOL"; then
7475 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7476 else
7477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478 for as_dir in $PATH
7479 do
7480 IFS=$as_save_IFS
7481 test -z "$as_dir" && as_dir=.
7482 for ac_exec_ext in '' $ac_executable_extensions; do
7483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7484 ac_cv_prog_ac_ct_OTOOL="otool"
7485 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7486 break 2
7487 fi
7488 done
7489 done
7490 IFS=$as_save_IFS
7491
7492 fi
7493 fi
7494 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7495 if test -n "$ac_ct_OTOOL"; then
7496 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7497 $as_echo "$ac_ct_OTOOL" >&6; }
7498 else
7499 { $as_echo "$as_me:$LINENO: result: no" >&5
7500 $as_echo "no" >&6; }
7501 fi
7502
7503 if test "x$ac_ct_OTOOL" = x; then
7504 OTOOL=":"
7505 else
7506 case $cross_compiling:$ac_tool_warned in
7507 yes:)
7508 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7510 ac_tool_warned=yes ;;
7511 esac
7512 OTOOL=$ac_ct_OTOOL
7513 fi
7514 else
7515 OTOOL="$ac_cv_prog_OTOOL"
7516 fi
7517
7518 if test -n "$ac_tool_prefix"; then
7519 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7520 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7521 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7522 $as_echo_n "checking for $ac_word... " >&6; }
7523 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7524 $as_echo_n "(cached) " >&6
7525 else
7526 if test -n "$OTOOL64"; then
7527 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7528 else
7529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7530 for as_dir in $PATH
7531 do
7532 IFS=$as_save_IFS
7533 test -z "$as_dir" && as_dir=.
7534 for ac_exec_ext in '' $ac_executable_extensions; do
7535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7536 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7537 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7538 break 2
7539 fi
7540 done
7541 done
7542 IFS=$as_save_IFS
7543
7544 fi
7545 fi
7546 OTOOL64=$ac_cv_prog_OTOOL64
7547 if test -n "$OTOOL64"; then
7548 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7549 $as_echo "$OTOOL64" >&6; }
7550 else
7551 { $as_echo "$as_me:$LINENO: result: no" >&5
7552 $as_echo "no" >&6; }
7553 fi
7554
7555
7556 fi
7557 if test -z "$ac_cv_prog_OTOOL64"; then
7558 ac_ct_OTOOL64=$OTOOL64
7559 # Extract the first word of "otool64", so it can be a program name with args.
7560 set dummy otool64; ac_word=$2
7561 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7562 $as_echo_n "checking for $ac_word... " >&6; }
7563 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7564 $as_echo_n "(cached) " >&6
7565 else
7566 if test -n "$ac_ct_OTOOL64"; then
7567 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7568 else
7569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7570 for as_dir in $PATH
7571 do
7572 IFS=$as_save_IFS
7573 test -z "$as_dir" && as_dir=.
7574 for ac_exec_ext in '' $ac_executable_extensions; do
7575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7576 ac_cv_prog_ac_ct_OTOOL64="otool64"
7577 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7578 break 2
7579 fi
7580 done
7581 done
7582 IFS=$as_save_IFS
7583
7584 fi
7585 fi
7586 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7587 if test -n "$ac_ct_OTOOL64"; then
7588 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7589 $as_echo "$ac_ct_OTOOL64" >&6; }
7590 else
7591 { $as_echo "$as_me:$LINENO: result: no" >&5
7592 $as_echo "no" >&6; }
7593 fi
7594
7595 if test "x$ac_ct_OTOOL64" = x; then
7596 OTOOL64=":"
7597 else
7598 case $cross_compiling:$ac_tool_warned in
7599 yes:)
7600 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7602 ac_tool_warned=yes ;;
7603 esac
7604 OTOOL64=$ac_ct_OTOOL64
7605 fi
7606 else
7607 OTOOL64="$ac_cv_prog_OTOOL64"
7608 fi
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7637 $as_echo_n "checking for -single_module linker flag... " >&6; }
7638 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7639 $as_echo_n "(cached) " >&6
7640 else
7641 lt_cv_apple_cc_single_mod=no
7642 if test -z "${LT_MULTI_MODULE}"; then
7643 # By default we will add the -single_module flag. You can override
7644 # by either setting the environment variable LT_MULTI_MODULE
7645 # non-empty at configure time, or by adding -multi_module to the
7646 # link flags.
7647 rm -rf libconftest.dylib*
7648 echo "int foo(void){return 1;}" > conftest.c
7649 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7650 -dynamiclib -Wl,-single_module conftest.c" >&5
7651 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7652 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7653 _lt_result=$?
7654 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7655 lt_cv_apple_cc_single_mod=yes
7656 else
7657 cat conftest.err >&5
7658 fi
7659 rm -rf libconftest.dylib*
7660 rm -f conftest.*
7661 fi
7662 fi
7663 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7664 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7665 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7666 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7667 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7668 $as_echo_n "(cached) " >&6
7669 else
7670 lt_cv_ld_exported_symbols_list=no
7671 save_LDFLAGS=$LDFLAGS
7672 echo "_main" > conftest.sym
7673 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7674 cat >conftest.$ac_ext <<_ACEOF
7675 /* confdefs.h. */
7676 _ACEOF
7677 cat confdefs.h >>conftest.$ac_ext
7678 cat >>conftest.$ac_ext <<_ACEOF
7679 /* end confdefs.h. */
7680
7681 int
7682 main ()
7683 {
7684
7685 ;
7686 return 0;
7687 }
7688 _ACEOF
7689 rm -f conftest.$ac_objext conftest$ac_exeext
7690 if { (ac_try="$ac_link"
7691 case "(($ac_try" in
7692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7693 *) ac_try_echo=$ac_try;;
7694 esac
7695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7696 $as_echo "$ac_try_echo") >&5
7697 (eval "$ac_link") 2>conftest.er1
7698 ac_status=$?
7699 grep -v '^ *+' conftest.er1 >conftest.err
7700 rm -f conftest.er1
7701 cat conftest.err >&5
7702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); } && {
7704 test -z "$ac_c_werror_flag" ||
7705 test ! -s conftest.err
7706 } && test -s conftest$ac_exeext && {
7707 test "$cross_compiling" = yes ||
7708 $as_test_x conftest$ac_exeext
7709 }; then
7710 lt_cv_ld_exported_symbols_list=yes
7711 else
7712 $as_echo "$as_me: failed program was:" >&5
7713 sed 's/^/| /' conftest.$ac_ext >&5
7714
7715 lt_cv_ld_exported_symbols_list=no
7716 fi
7717
7718 rm -rf conftest.dSYM
7719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7720 conftest$ac_exeext conftest.$ac_ext
7721 LDFLAGS="$save_LDFLAGS"
7722
7723 fi
7724 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7725 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7726 case $host_os in
7727 rhapsody* | darwin1.[012])
7728 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7729 darwin1.*)
7730 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7731 darwin*) # darwin 5.x on
7732 # if running on 10.5 or later, the deployment target defaults
7733 # to the OS version, if on x86, and 10.4, the deployment
7734 # target defaults to 10.4. Don't you love it?
7735 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7736 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7737 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7738 10.[012]*)
7739 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7740 10.*)
7741 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7742 esac
7743 ;;
7744 esac
7745 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7746 _lt_dar_single_mod='$single_module'
7747 fi
7748 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7749 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7750 else
7751 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7752 fi
7753 if test "$DSYMUTIL" != ":"; then
7754 _lt_dsymutil='~$DSYMUTIL $lib || :'
7755 else
7756 _lt_dsymutil=
7757 fi
7758 ;;
7759 esac
7760
7761
7762 for ac_header in dlfcn.h
7763 do
7764 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7765 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7766 $as_echo_n "checking for $ac_header... " >&6; }
7767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7768 $as_echo_n "(cached) " >&6
7769 else
7770 cat >conftest.$ac_ext <<_ACEOF
7771 /* confdefs.h. */
7772 _ACEOF
7773 cat confdefs.h >>conftest.$ac_ext
7774 cat >>conftest.$ac_ext <<_ACEOF
7775 /* end confdefs.h. */
7776 $ac_includes_default
7777
7778 #include <$ac_header>
7779 _ACEOF
7780 rm -f conftest.$ac_objext
7781 if { (ac_try="$ac_compile"
7782 case "(($ac_try" in
7783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7784 *) ac_try_echo=$ac_try;;
7785 esac
7786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7787 $as_echo "$ac_try_echo") >&5
7788 (eval "$ac_compile") 2>conftest.er1
7789 ac_status=$?
7790 grep -v '^ *+' conftest.er1 >conftest.err
7791 rm -f conftest.er1
7792 cat conftest.err >&5
7793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794 (exit $ac_status); } && {
7795 test -z "$ac_c_werror_flag" ||
7796 test ! -s conftest.err
7797 } && test -s conftest.$ac_objext; then
7798 eval "$as_ac_Header=yes"
7799 else
7800 $as_echo "$as_me: failed program was:" >&5
7801 sed 's/^/| /' conftest.$ac_ext >&5
7802
7803 eval "$as_ac_Header=no"
7804 fi
7805
7806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7807 fi
7808 ac_res=`eval 'as_val=${'$as_ac_Header'}
7809 $as_echo "$as_val"'`
7810 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7811 $as_echo "$ac_res" >&6; }
7812 as_val=`eval 'as_val=${'$as_ac_Header'}
7813 $as_echo "$as_val"'`
7814 if test "x$as_val" = x""yes; then
7815 cat >>confdefs.h <<_ACEOF
7816 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7817 _ACEOF
7818
7819 fi
7820
7821 done
7822
7823
7824
7825 # Set options
7826
7827
7828
7829 enable_dlopen=no
7830
7831
7832 enable_win32_dll=no
7833
7834
7835 # Check whether --enable-shared was given.
7836 if test "${enable_shared+set}" = set; then
7837 enableval=$enable_shared; p=${PACKAGE-default}
7838 case $enableval in
7839 yes) enable_shared=yes ;;
7840 no) enable_shared=no ;;
7841 *)
7842 enable_shared=no
7843 # Look at the argument we got. We use all the common list separators.
7844 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7845 for pkg in $enableval; do
7846 IFS="$lt_save_ifs"
7847 if test "X$pkg" = "X$p"; then
7848 enable_shared=yes
7849 fi
7850 done
7851 IFS="$lt_save_ifs"
7852 ;;
7853 esac
7854 else
7855 enable_shared=yes
7856 fi
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868 # Check whether --with-pic was given.
7869 if test "${with_pic+set}" = set; then
7870 withval=$with_pic; pic_mode="$withval"
7871 else
7872 pic_mode=default
7873 fi
7874
7875
7876 test -z "$pic_mode" && pic_mode=default
7877
7878
7879
7880
7881
7882
7883
7884 # Check whether --enable-fast-install was given.
7885 if test "${enable_fast_install+set}" = set; then
7886 enableval=$enable_fast_install; p=${PACKAGE-default}
7887 case $enableval in
7888 yes) enable_fast_install=yes ;;
7889 no) enable_fast_install=no ;;
7890 *)
7891 enable_fast_install=no
7892 # Look at the argument we got. We use all the common list separators.
7893 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7894 for pkg in $enableval; do
7895 IFS="$lt_save_ifs"
7896 if test "X$pkg" = "X$p"; then
7897 enable_fast_install=yes
7898 fi
7899 done
7900 IFS="$lt_save_ifs"
7901 ;;
7902 esac
7903 else
7904 enable_fast_install=yes
7905 fi
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917 # This can be used to rebuild libtool when needed
7918 LIBTOOL_DEPS="$ltmain"
7919
7920 # Always use our own libtool.
7921 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947 test -z "$LN_S" && LN_S="ln -s"
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962 if test -n "${ZSH_VERSION+set}" ; then
7963 setopt NO_GLOB_SUBST
7964 fi
7965
7966 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7967 $as_echo_n "checking for objdir... " >&6; }
7968 if test "${lt_cv_objdir+set}" = set; then
7969 $as_echo_n "(cached) " >&6
7970 else
7971 rm -f .libs 2>/dev/null
7972 mkdir .libs 2>/dev/null
7973 if test -d .libs; then
7974 lt_cv_objdir=.libs
7975 else
7976 # MS-DOS does not allow filenames that begin with a dot.
7977 lt_cv_objdir=_libs
7978 fi
7979 rmdir .libs 2>/dev/null
7980 fi
7981 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7982 $as_echo "$lt_cv_objdir" >&6; }
7983 objdir=$lt_cv_objdir
7984
7985
7986
7987
7988
7989 cat >>confdefs.h <<_ACEOF
7990 #define LT_OBJDIR "$lt_cv_objdir/"
7991 _ACEOF
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009 case $host_os in
8010 aix3*)
8011 # AIX sometimes has problems with the GCC collect2 program. For some
8012 # reason, if we set the COLLECT_NAMES environment variable, the problems
8013 # vanish in a puff of smoke.
8014 if test "X${COLLECT_NAMES+set}" != Xset; then
8015 COLLECT_NAMES=
8016 export COLLECT_NAMES
8017 fi
8018 ;;
8019 esac
8020
8021 # Sed substitution that helps us do robust quoting. It backslashifies
8022 # metacharacters that are still active within double-quoted strings.
8023 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8024
8025 # Same as above, but do not quote variable references.
8026 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8027
8028 # Sed substitution to delay expansion of an escaped shell variable in a
8029 # double_quote_subst'ed string.
8030 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8031
8032 # Sed substitution to delay expansion of an escaped single quote.
8033 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8034
8035 # Sed substitution to avoid accidental globbing in evaled expressions
8036 no_glob_subst='s/\*/\\\*/g'
8037
8038 # Global variables:
8039 ofile=libtool
8040 can_build_shared=yes
8041
8042 # All known linkers require a `.a' archive for static linking (except MSVC,
8043 # which needs '.lib').
8044 libext=a
8045
8046 with_gnu_ld="$lt_cv_prog_gnu_ld"
8047
8048 old_CC="$CC"
8049 old_CFLAGS="$CFLAGS"
8050
8051 # Set sane defaults for various variables
8052 test -z "$CC" && CC=cc
8053 test -z "$LTCC" && LTCC=$CC
8054 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8055 test -z "$LD" && LD=ld
8056 test -z "$ac_objext" && ac_objext=o
8057
8058 for cc_temp in $compiler""; do
8059 case $cc_temp in
8060 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8061 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8062 \-*) ;;
8063 *) break;;
8064 esac
8065 done
8066 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8067
8068
8069 # Only perform the check for file, if the check method requires it
8070 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8071 case $deplibs_check_method in
8072 file_magic*)
8073 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8074 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8075 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8076 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8077 $as_echo_n "(cached) " >&6
8078 else
8079 case $MAGIC_CMD in
8080 [\\/*] | ?:[\\/]*)
8081 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8082 ;;
8083 *)
8084 lt_save_MAGIC_CMD="$MAGIC_CMD"
8085 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8086 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8087 for ac_dir in $ac_dummy; do
8088 IFS="$lt_save_ifs"
8089 test -z "$ac_dir" && ac_dir=.
8090 if test -f $ac_dir/${ac_tool_prefix}file; then
8091 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8092 if test -n "$file_magic_test_file"; then
8093 case $deplibs_check_method in
8094 "file_magic "*)
8095 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8096 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8097 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8098 $EGREP "$file_magic_regex" > /dev/null; then
8099 :
8100 else
8101 cat <<_LT_EOF 1>&2
8102
8103 *** Warning: the command libtool uses to detect shared libraries,
8104 *** $file_magic_cmd, produces output that libtool cannot recognize.
8105 *** The result is that libtool may fail to recognize shared libraries
8106 *** as such. This will affect the creation of libtool libraries that
8107 *** depend on shared libraries, but programs linked with such libtool
8108 *** libraries will work regardless of this problem. Nevertheless, you
8109 *** may want to report the problem to your system manager and/or to
8110 *** bug-libtool@gnu.org
8111
8112 _LT_EOF
8113 fi ;;
8114 esac
8115 fi
8116 break
8117 fi
8118 done
8119 IFS="$lt_save_ifs"
8120 MAGIC_CMD="$lt_save_MAGIC_CMD"
8121 ;;
8122 esac
8123 fi
8124
8125 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8126 if test -n "$MAGIC_CMD"; then
8127 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8128 $as_echo "$MAGIC_CMD" >&6; }
8129 else
8130 { $as_echo "$as_me:$LINENO: result: no" >&5
8131 $as_echo "no" >&6; }
8132 fi
8133
8134
8135
8136
8137
8138 if test -z "$lt_cv_path_MAGIC_CMD"; then
8139 if test -n "$ac_tool_prefix"; then
8140 { $as_echo "$as_me:$LINENO: checking for file" >&5
8141 $as_echo_n "checking for file... " >&6; }
8142 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8143 $as_echo_n "(cached) " >&6
8144 else
8145 case $MAGIC_CMD in
8146 [\\/*] | ?:[\\/]*)
8147 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8148 ;;
8149 *)
8150 lt_save_MAGIC_CMD="$MAGIC_CMD"
8151 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8152 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8153 for ac_dir in $ac_dummy; do
8154 IFS="$lt_save_ifs"
8155 test -z "$ac_dir" && ac_dir=.
8156 if test -f $ac_dir/file; then
8157 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8158 if test -n "$file_magic_test_file"; then
8159 case $deplibs_check_method in
8160 "file_magic "*)
8161 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8162 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8163 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8164 $EGREP "$file_magic_regex" > /dev/null; then
8165 :
8166 else
8167 cat <<_LT_EOF 1>&2
8168
8169 *** Warning: the command libtool uses to detect shared libraries,
8170 *** $file_magic_cmd, produces output that libtool cannot recognize.
8171 *** The result is that libtool may fail to recognize shared libraries
8172 *** as such. This will affect the creation of libtool libraries that
8173 *** depend on shared libraries, but programs linked with such libtool
8174 *** libraries will work regardless of this problem. Nevertheless, you
8175 *** may want to report the problem to your system manager and/or to
8176 *** bug-libtool@gnu.org
8177
8178 _LT_EOF
8179 fi ;;
8180 esac
8181 fi
8182 break
8183 fi
8184 done
8185 IFS="$lt_save_ifs"
8186 MAGIC_CMD="$lt_save_MAGIC_CMD"
8187 ;;
8188 esac
8189 fi
8190
8191 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8192 if test -n "$MAGIC_CMD"; then
8193 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8194 $as_echo "$MAGIC_CMD" >&6; }
8195 else
8196 { $as_echo "$as_me:$LINENO: result: no" >&5
8197 $as_echo "no" >&6; }
8198 fi
8199
8200
8201 else
8202 MAGIC_CMD=:
8203 fi
8204 fi
8205
8206 fi
8207 ;;
8208 esac
8209
8210 # Use C for the default configuration in the libtool script
8211
8212 lt_save_CC="$CC"
8213 ac_ext=c
8214 ac_cpp='$CPP $CPPFLAGS'
8215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8218
8219
8220 # Source file extension for C test sources.
8221 ac_ext=c
8222
8223 # Object file extension for compiled C test sources.
8224 objext=o
8225 objext=$objext
8226
8227 # Code to be used in simple compile tests
8228 lt_simple_compile_test_code="int some_variable = 0;"
8229
8230 # Code to be used in simple link tests
8231 lt_simple_link_test_code='int main(){return(0);}'
8232
8233
8234
8235
8236
8237
8238
8239 # If no C compiler was specified, use CC.
8240 LTCC=${LTCC-"$CC"}
8241
8242 # If no C compiler flags were specified, use CFLAGS.
8243 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8244
8245 # Allow CC to be a program name with arguments.
8246 compiler=$CC
8247
8248 # Save the default compiler, since it gets overwritten when the other
8249 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8250 compiler_DEFAULT=$CC
8251
8252 # save warnings/boilerplate of simple test code
8253 ac_outfile=conftest.$ac_objext
8254 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8255 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8256 _lt_compiler_boilerplate=`cat conftest.err`
8257 $RM conftest*
8258
8259 ac_outfile=conftest.$ac_objext
8260 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8261 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8262 _lt_linker_boilerplate=`cat conftest.err`
8263 $RM -r conftest*
8264
8265
8266 if test -n "$compiler"; then
8267
8268 lt_prog_compiler_no_builtin_flag=
8269
8270 if test "$GCC" = yes; then
8271 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8272
8273 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8274 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8275 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8276 $as_echo_n "(cached) " >&6
8277 else
8278 lt_cv_prog_compiler_rtti_exceptions=no
8279 ac_outfile=conftest.$ac_objext
8280 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8281 lt_compiler_flag="-fno-rtti -fno-exceptions"
8282 # Insert the option either (1) after the last *FLAGS variable, or
8283 # (2) before a word containing "conftest.", or (3) at the end.
8284 # Note that $ac_compile itself does not contain backslashes and begins
8285 # with a dollar sign (not a hyphen), so the echo should work correctly.
8286 # The option is referenced via a variable to avoid confusing sed.
8287 lt_compile=`echo "$ac_compile" | $SED \
8288 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8289 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8290 -e 's:$: $lt_compiler_flag:'`
8291 (eval echo "\"\$as_me:8291: $lt_compile\"" >&5)
8292 (eval "$lt_compile" 2>conftest.err)
8293 ac_status=$?
8294 cat conftest.err >&5
8295 echo "$as_me:8295: \$? = $ac_status" >&5
8296 if (exit $ac_status) && test -s "$ac_outfile"; then
8297 # The compiler can only warn and ignore the option if not recognized
8298 # So say no if there are warnings other than the usual output.
8299 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8300 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8301 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8302 lt_cv_prog_compiler_rtti_exceptions=yes
8303 fi
8304 fi
8305 $RM conftest*
8306
8307 fi
8308 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8309 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8310
8311 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8312 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8313 else
8314 :
8315 fi
8316
8317 fi
8318
8319
8320
8321
8322
8323
8324 lt_prog_compiler_wl=
8325 lt_prog_compiler_pic=
8326 lt_prog_compiler_static=
8327
8328 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8329 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8330
8331 if test "$GCC" = yes; then
8332 lt_prog_compiler_wl='-Wl,'
8333 lt_prog_compiler_static='-static'
8334
8335 case $host_os in
8336 aix*)
8337 # All AIX code is PIC.
8338 if test "$host_cpu" = ia64; then
8339 # AIX 5 now supports IA64 processor
8340 lt_prog_compiler_static='-Bstatic'
8341 fi
8342 ;;
8343
8344 amigaos*)
8345 case $host_cpu in
8346 powerpc)
8347 # see comment about AmigaOS4 .so support
8348 lt_prog_compiler_pic='-fPIC'
8349 ;;
8350 m68k)
8351 # FIXME: we need at least 68020 code to build shared libraries, but
8352 # adding the `-m68020' flag to GCC prevents building anything better,
8353 # like `-m68040'.
8354 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8355 ;;
8356 esac
8357 ;;
8358
8359 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8360 # PIC is the default for these OSes.
8361 ;;
8362
8363 mingw* | cygwin* | pw32* | os2* | cegcc*)
8364 # This hack is so that the source file can tell whether it is being
8365 # built for inclusion in a dll (and should export symbols for example).
8366 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8367 # (--disable-auto-import) libraries
8368 lt_prog_compiler_pic='-DDLL_EXPORT'
8369 ;;
8370
8371 darwin* | rhapsody*)
8372 # PIC is the default on this platform
8373 # Common symbols not allowed in MH_DYLIB files
8374 lt_prog_compiler_pic='-fno-common'
8375 ;;
8376
8377 hpux*)
8378 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8379 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8380 # sets the default TLS model and affects inlining.
8381 case $host_cpu in
8382 hppa*64*)
8383 # +Z the default
8384 ;;
8385 *)
8386 lt_prog_compiler_pic='-fPIC'
8387 ;;
8388 esac
8389 ;;
8390
8391 interix[3-9]*)
8392 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8393 # Instead, we relocate shared libraries at runtime.
8394 ;;
8395
8396 msdosdjgpp*)
8397 # Just because we use GCC doesn't mean we suddenly get shared libraries
8398 # on systems that don't support them.
8399 lt_prog_compiler_can_build_shared=no
8400 enable_shared=no
8401 ;;
8402
8403 *nto* | *qnx*)
8404 # QNX uses GNU C++, but need to define -shared option too, otherwise
8405 # it will coredump.
8406 lt_prog_compiler_pic='-fPIC -shared'
8407 ;;
8408
8409 sysv4*MP*)
8410 if test -d /usr/nec; then
8411 lt_prog_compiler_pic=-Kconform_pic
8412 fi
8413 ;;
8414
8415 *)
8416 lt_prog_compiler_pic='-fPIC'
8417 ;;
8418 esac
8419 else
8420 # PORTME Check for flag to pass linker flags through the system compiler.
8421 case $host_os in
8422 aix*)
8423 lt_prog_compiler_wl='-Wl,'
8424 if test "$host_cpu" = ia64; then
8425 # AIX 5 now supports IA64 processor
8426 lt_prog_compiler_static='-Bstatic'
8427 else
8428 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8429 fi
8430 ;;
8431
8432 mingw* | cygwin* | pw32* | os2* | cegcc*)
8433 # This hack is so that the source file can tell whether it is being
8434 # built for inclusion in a dll (and should export symbols for example).
8435 lt_prog_compiler_pic='-DDLL_EXPORT'
8436 ;;
8437
8438 hpux9* | hpux10* | hpux11*)
8439 lt_prog_compiler_wl='-Wl,'
8440 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8441 # not for PA HP-UX.
8442 case $host_cpu in
8443 hppa*64*|ia64*)
8444 # +Z the default
8445 ;;
8446 *)
8447 lt_prog_compiler_pic='+Z'
8448 ;;
8449 esac
8450 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8451 lt_prog_compiler_static='${wl}-a ${wl}archive'
8452 ;;
8453
8454 irix5* | irix6* | nonstopux*)
8455 lt_prog_compiler_wl='-Wl,'
8456 # PIC (with -KPIC) is the default.
8457 lt_prog_compiler_static='-non_shared'
8458 ;;
8459
8460 linux* | k*bsd*-gnu)
8461 case $cc_basename in
8462 # old Intel for x86_64 which still supported -KPIC.
8463 ecc*)
8464 lt_prog_compiler_wl='-Wl,'
8465 lt_prog_compiler_pic='-KPIC'
8466 lt_prog_compiler_static='-static'
8467 ;;
8468 # icc used to be incompatible with GCC.
8469 # ICC 10 doesn't accept -KPIC any more.
8470 icc* | ifort*)
8471 lt_prog_compiler_wl='-Wl,'
8472 lt_prog_compiler_pic='-fPIC'
8473 lt_prog_compiler_static='-static'
8474 ;;
8475 # Lahey Fortran 8.1.
8476 lf95*)
8477 lt_prog_compiler_wl='-Wl,'
8478 lt_prog_compiler_pic='--shared'
8479 lt_prog_compiler_static='--static'
8480 ;;
8481 pgcc* | pgf77* | pgf90* | pgf95*)
8482 # Portland Group compilers (*not* the Pentium gcc compiler,
8483 # which looks to be a dead project)
8484 lt_prog_compiler_wl='-Wl,'
8485 lt_prog_compiler_pic='-fpic'
8486 lt_prog_compiler_static='-Bstatic'
8487 ;;
8488 ccc*)
8489 lt_prog_compiler_wl='-Wl,'
8490 # All Alpha code is PIC.
8491 lt_prog_compiler_static='-non_shared'
8492 ;;
8493 xl*)
8494 # IBM XL C 8.0/Fortran 10.1 on PPC
8495 lt_prog_compiler_wl='-Wl,'
8496 lt_prog_compiler_pic='-qpic'
8497 lt_prog_compiler_static='-qstaticlink'
8498 ;;
8499 *)
8500 case `$CC -V 2>&1 | sed 5q` in
8501 *Sun\ C*)
8502 # Sun C 5.9
8503 lt_prog_compiler_pic='-KPIC'
8504 lt_prog_compiler_static='-Bstatic'
8505 lt_prog_compiler_wl='-Wl,'
8506 ;;
8507 *Sun\ F*)
8508 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8509 lt_prog_compiler_pic='-KPIC'
8510 lt_prog_compiler_static='-Bstatic'
8511 lt_prog_compiler_wl=''
8512 ;;
8513 esac
8514 ;;
8515 esac
8516 ;;
8517
8518 newsos6)
8519 lt_prog_compiler_pic='-KPIC'
8520 lt_prog_compiler_static='-Bstatic'
8521 ;;
8522
8523 *nto* | *qnx*)
8524 # QNX uses GNU C++, but need to define -shared option too, otherwise
8525 # it will coredump.
8526 lt_prog_compiler_pic='-fPIC -shared'
8527 ;;
8528
8529 osf3* | osf4* | osf5*)
8530 lt_prog_compiler_wl='-Wl,'
8531 # All OSF/1 code is PIC.
8532 lt_prog_compiler_static='-non_shared'
8533 ;;
8534
8535 rdos*)
8536 lt_prog_compiler_static='-non_shared'
8537 ;;
8538
8539 solaris*)
8540 lt_prog_compiler_pic='-KPIC'
8541 lt_prog_compiler_static='-Bstatic'
8542 case $cc_basename in
8543 f77* | f90* | f95*)
8544 lt_prog_compiler_wl='-Qoption ld ';;
8545 *)
8546 lt_prog_compiler_wl='-Wl,';;
8547 esac
8548 ;;
8549
8550 sunos4*)
8551 lt_prog_compiler_wl='-Qoption ld '
8552 lt_prog_compiler_pic='-PIC'
8553 lt_prog_compiler_static='-Bstatic'
8554 ;;
8555
8556 sysv4 | sysv4.2uw2* | sysv4.3*)
8557 lt_prog_compiler_wl='-Wl,'
8558 lt_prog_compiler_pic='-KPIC'
8559 lt_prog_compiler_static='-Bstatic'
8560 ;;
8561
8562 sysv4*MP*)
8563 if test -d /usr/nec ;then
8564 lt_prog_compiler_pic='-Kconform_pic'
8565 lt_prog_compiler_static='-Bstatic'
8566 fi
8567 ;;
8568
8569 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8570 lt_prog_compiler_wl='-Wl,'
8571 lt_prog_compiler_pic='-KPIC'
8572 lt_prog_compiler_static='-Bstatic'
8573 ;;
8574
8575 unicos*)
8576 lt_prog_compiler_wl='-Wl,'
8577 lt_prog_compiler_can_build_shared=no
8578 ;;
8579
8580 uts4*)
8581 lt_prog_compiler_pic='-pic'
8582 lt_prog_compiler_static='-Bstatic'
8583 ;;
8584
8585 *)
8586 lt_prog_compiler_can_build_shared=no
8587 ;;
8588 esac
8589 fi
8590
8591 case $host_os in
8592 # For platforms which do not support PIC, -DPIC is meaningless:
8593 *djgpp*)
8594 lt_prog_compiler_pic=
8595 ;;
8596 *)
8597 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8598 ;;
8599 esac
8600 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8601 $as_echo "$lt_prog_compiler_pic" >&6; }
8602
8603
8604
8605
8606
8607
8608 #
8609 # Check to make sure the PIC flag actually works.
8610 #
8611 if test -n "$lt_prog_compiler_pic"; then
8612 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8613 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8614 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8615 $as_echo_n "(cached) " >&6
8616 else
8617 lt_cv_prog_compiler_pic_works=no
8618 ac_outfile=conftest.$ac_objext
8619 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8620 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8621 # Insert the option either (1) after the last *FLAGS variable, or
8622 # (2) before a word containing "conftest.", or (3) at the end.
8623 # Note that $ac_compile itself does not contain backslashes and begins
8624 # with a dollar sign (not a hyphen), so the echo should work correctly.
8625 # The option is referenced via a variable to avoid confusing sed.
8626 lt_compile=`echo "$ac_compile" | $SED \
8627 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8628 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8629 -e 's:$: $lt_compiler_flag:'`
8630 (eval echo "\"\$as_me:8630: $lt_compile\"" >&5)
8631 (eval "$lt_compile" 2>conftest.err)
8632 ac_status=$?
8633 cat conftest.err >&5
8634 echo "$as_me:8634: \$? = $ac_status" >&5
8635 if (exit $ac_status) && test -s "$ac_outfile"; then
8636 # The compiler can only warn and ignore the option if not recognized
8637 # So say no if there are warnings other than the usual output.
8638 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8639 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8640 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8641 lt_cv_prog_compiler_pic_works=yes
8642 fi
8643 fi
8644 $RM conftest*
8645
8646 fi
8647 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8648 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8649
8650 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8651 case $lt_prog_compiler_pic in
8652 "" | " "*) ;;
8653 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8654 esac
8655 else
8656 lt_prog_compiler_pic=
8657 lt_prog_compiler_can_build_shared=no
8658 fi
8659
8660 fi
8661
8662
8663
8664
8665
8666
8667 #
8668 # Check to make sure the static flag actually works.
8669 #
8670 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8671 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8672 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8673 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8674 $as_echo_n "(cached) " >&6
8675 else
8676 lt_cv_prog_compiler_static_works=no
8677 save_LDFLAGS="$LDFLAGS"
8678 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8679 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8680 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8681 # The linker can only warn and ignore the option if not recognized
8682 # So say no if there are warnings
8683 if test -s conftest.err; then
8684 # Append any errors to the config.log.
8685 cat conftest.err 1>&5
8686 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8687 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8688 if diff conftest.exp conftest.er2 >/dev/null; then
8689 lt_cv_prog_compiler_static_works=yes
8690 fi
8691 else
8692 lt_cv_prog_compiler_static_works=yes
8693 fi
8694 fi
8695 $RM -r conftest*
8696 LDFLAGS="$save_LDFLAGS"
8697
8698 fi
8699 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8700 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8701
8702 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8703 :
8704 else
8705 lt_prog_compiler_static=
8706 fi
8707
8708
8709
8710
8711
8712
8713
8714 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8715 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8716 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8717 $as_echo_n "(cached) " >&6
8718 else
8719 lt_cv_prog_compiler_c_o=no
8720 $RM -r conftest 2>/dev/null
8721 mkdir conftest
8722 cd conftest
8723 mkdir out
8724 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8725
8726 lt_compiler_flag="-o out/conftest2.$ac_objext"
8727 # Insert the option either (1) after the last *FLAGS variable, or
8728 # (2) before a word containing "conftest.", or (3) at the end.
8729 # Note that $ac_compile itself does not contain backslashes and begins
8730 # with a dollar sign (not a hyphen), so the echo should work correctly.
8731 lt_compile=`echo "$ac_compile" | $SED \
8732 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8733 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8734 -e 's:$: $lt_compiler_flag:'`
8735 (eval echo "\"\$as_me:8735: $lt_compile\"" >&5)
8736 (eval "$lt_compile" 2>out/conftest.err)
8737 ac_status=$?
8738 cat out/conftest.err >&5
8739 echo "$as_me:8739: \$? = $ac_status" >&5
8740 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8741 then
8742 # The compiler can only warn and ignore the option if not recognized
8743 # So say no if there are warnings
8744 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8745 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8746 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8747 lt_cv_prog_compiler_c_o=yes
8748 fi
8749 fi
8750 chmod u+w . 2>&5
8751 $RM conftest*
8752 # SGI C++ compiler will create directory out/ii_files/ for
8753 # template instantiation
8754 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8755 $RM out/* && rmdir out
8756 cd ..
8757 $RM -r conftest
8758 $RM conftest*
8759
8760 fi
8761 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8762 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8763
8764
8765
8766
8767
8768
8769 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8770 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8771 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8772 $as_echo_n "(cached) " >&6
8773 else
8774 lt_cv_prog_compiler_c_o=no
8775 $RM -r conftest 2>/dev/null
8776 mkdir conftest
8777 cd conftest
8778 mkdir out
8779 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8780
8781 lt_compiler_flag="-o out/conftest2.$ac_objext"
8782 # Insert the option either (1) after the last *FLAGS variable, or
8783 # (2) before a word containing "conftest.", or (3) at the end.
8784 # Note that $ac_compile itself does not contain backslashes and begins
8785 # with a dollar sign (not a hyphen), so the echo should work correctly.
8786 lt_compile=`echo "$ac_compile" | $SED \
8787 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8788 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8789 -e 's:$: $lt_compiler_flag:'`
8790 (eval echo "\"\$as_me:8790: $lt_compile\"" >&5)
8791 (eval "$lt_compile" 2>out/conftest.err)
8792 ac_status=$?
8793 cat out/conftest.err >&5
8794 echo "$as_me:8794: \$? = $ac_status" >&5
8795 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8796 then
8797 # The compiler can only warn and ignore the option if not recognized
8798 # So say no if there are warnings
8799 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8800 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8801 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8802 lt_cv_prog_compiler_c_o=yes
8803 fi
8804 fi
8805 chmod u+w . 2>&5
8806 $RM conftest*
8807 # SGI C++ compiler will create directory out/ii_files/ for
8808 # template instantiation
8809 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8810 $RM out/* && rmdir out
8811 cd ..
8812 $RM -r conftest
8813 $RM conftest*
8814
8815 fi
8816 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8817 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8818
8819
8820
8821
8822 hard_links="nottested"
8823 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8824 # do not overwrite the value of need_locks provided by the user
8825 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8826 $as_echo_n "checking if we can lock with hard links... " >&6; }
8827 hard_links=yes
8828 $RM conftest*
8829 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8830 touch conftest.a
8831 ln conftest.a conftest.b 2>&5 || hard_links=no
8832 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8833 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8834 $as_echo "$hard_links" >&6; }
8835 if test "$hard_links" = no; then
8836 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8837 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8838 need_locks=warn
8839 fi
8840 else
8841 need_locks=no
8842 fi
8843
8844
8845
8846
8847
8848
8849 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8850 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8851
8852 runpath_var=
8853 allow_undefined_flag=
8854 always_export_symbols=no
8855 archive_cmds=
8856 archive_expsym_cmds=
8857 compiler_needs_object=no
8858 enable_shared_with_static_runtimes=no
8859 export_dynamic_flag_spec=
8860 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8861 hardcode_automatic=no
8862 hardcode_direct=no
8863 hardcode_direct_absolute=no
8864 hardcode_libdir_flag_spec=
8865 hardcode_libdir_flag_spec_ld=
8866 hardcode_libdir_separator=
8867 hardcode_minus_L=no
8868 hardcode_shlibpath_var=unsupported
8869 inherit_rpath=no
8870 link_all_deplibs=unknown
8871 module_cmds=
8872 module_expsym_cmds=
8873 old_archive_from_new_cmds=
8874 old_archive_from_expsyms_cmds=
8875 thread_safe_flag_spec=
8876 whole_archive_flag_spec=
8877 # include_expsyms should be a list of space-separated symbols to be *always*
8878 # included in the symbol list
8879 include_expsyms=
8880 # exclude_expsyms can be an extended regexp of symbols to exclude
8881 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8882 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8883 # as well as any symbol that contains `d'.
8884 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8885 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8886 # platforms (ab)use it in PIC code, but their linkers get confused if
8887 # the symbol is explicitly referenced. Since portable code cannot
8888 # rely on this symbol name, it's probably fine to never include it in
8889 # preloaded symbol tables.
8890 # Exclude shared library initialization/finalization symbols.
8891 extract_expsyms_cmds=
8892
8893 case $host_os in
8894 cygwin* | mingw* | pw32* | cegcc*)
8895 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8896 # When not using gcc, we currently assume that we are using
8897 # Microsoft Visual C++.
8898 if test "$GCC" != yes; then
8899 with_gnu_ld=no
8900 fi
8901 ;;
8902 interix*)
8903 # we just hope/assume this is gcc and not c89 (= MSVC++)
8904 with_gnu_ld=yes
8905 ;;
8906 openbsd*)
8907 with_gnu_ld=no
8908 ;;
8909 esac
8910
8911 ld_shlibs=yes
8912 if test "$with_gnu_ld" = yes; then
8913 # If archive_cmds runs LD, not CC, wlarc should be empty
8914 wlarc='${wl}'
8915
8916 # Set some defaults for GNU ld with shared library support. These
8917 # are reset later if shared libraries are not supported. Putting them
8918 # here allows them to be overridden if necessary.
8919 runpath_var=LD_RUN_PATH
8920 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8921 export_dynamic_flag_spec='${wl}--export-dynamic'
8922 # ancient GNU ld didn't support --whole-archive et. al.
8923 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8924 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8925 else
8926 whole_archive_flag_spec=
8927 fi
8928 supports_anon_versioning=no
8929 case `$LD -v 2>&1` in
8930 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8931 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8932 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8933 *\ 2.11.*) ;; # other 2.11 versions
8934 *) supports_anon_versioning=yes ;;
8935 esac
8936
8937 # See if GNU ld supports shared libraries.
8938 case $host_os in
8939 aix[3-9]*)
8940 # On AIX/PPC, the GNU linker is very broken
8941 if test "$host_cpu" != ia64; then
8942 ld_shlibs=no
8943 cat <<_LT_EOF 1>&2
8944
8945 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8946 *** to be unable to reliably create shared libraries on AIX.
8947 *** Therefore, libtool is disabling shared libraries support. If you
8948 *** really care for shared libraries, you may want to modify your PATH
8949 *** so that a non-GNU linker is found, and then restart.
8950
8951 _LT_EOF
8952 fi
8953 ;;
8954
8955 amigaos*)
8956 case $host_cpu in
8957 powerpc)
8958 # see comment about AmigaOS4 .so support
8959 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8960 archive_expsym_cmds=''
8961 ;;
8962 m68k)
8963 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)'
8964 hardcode_libdir_flag_spec='-L$libdir'
8965 hardcode_minus_L=yes
8966 ;;
8967 esac
8968 ;;
8969
8970 beos*)
8971 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8972 allow_undefined_flag=unsupported
8973 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8974 # support --undefined. This deserves some investigation. FIXME
8975 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8976 else
8977 ld_shlibs=no
8978 fi
8979 ;;
8980
8981 cygwin* | mingw* | pw32* | cegcc*)
8982 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8983 # as there is no search path for DLLs.
8984 hardcode_libdir_flag_spec='-L$libdir'
8985 allow_undefined_flag=unsupported
8986 always_export_symbols=no
8987 enable_shared_with_static_runtimes=yes
8988 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8989
8990 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8991 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8992 # If the export-symbols file already is a .def file (1st line
8993 # is EXPORTS), use it as is; otherwise, prepend...
8994 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8995 cp $export_symbols $output_objdir/$soname.def;
8996 else
8997 echo EXPORTS > $output_objdir/$soname.def;
8998 cat $export_symbols >> $output_objdir/$soname.def;
8999 fi~
9000 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9001 else
9002 ld_shlibs=no
9003 fi
9004 ;;
9005
9006 interix[3-9]*)
9007 hardcode_direct=no
9008 hardcode_shlibpath_var=no
9009 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9010 export_dynamic_flag_spec='${wl}-E'
9011 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9012 # Instead, shared libraries are loaded at an image base (0x10000000 by
9013 # default) and relocated if they conflict, which is a slow very memory
9014 # consuming and fragmenting process. To avoid this, we pick a random,
9015 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9016 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9017 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9018 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'
9019 ;;
9020
9021 gnu* | linux* | tpf* | k*bsd*-gnu)
9022 tmp_diet=no
9023 if test "$host_os" = linux-dietlibc; then
9024 case $cc_basename in
9025 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9026 esac
9027 fi
9028 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9029 && test "$tmp_diet" = no
9030 then
9031 tmp_addflag=
9032 tmp_sharedflag='-shared'
9033 case $cc_basename,$host_cpu in
9034 pgcc*) # Portland Group C compiler
9035 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'
9036 tmp_addflag=' $pic_flag'
9037 ;;
9038 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9039 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'
9040 tmp_addflag=' $pic_flag -Mnomain' ;;
9041 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9042 tmp_addflag=' -i_dynamic' ;;
9043 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9044 tmp_addflag=' -i_dynamic -nofor_main' ;;
9045 ifc* | ifort*) # Intel Fortran compiler
9046 tmp_addflag=' -nofor_main' ;;
9047 lf95*) # Lahey Fortran 8.1
9048 whole_archive_flag_spec=
9049 tmp_sharedflag='--shared' ;;
9050 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9051 tmp_sharedflag='-qmkshrobj'
9052 tmp_addflag= ;;
9053 esac
9054 case `$CC -V 2>&1 | sed 5q` in
9055 *Sun\ C*) # Sun C 5.9
9056 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'
9057 compiler_needs_object=yes
9058 tmp_sharedflag='-G' ;;
9059 *Sun\ F*) # Sun Fortran 8.3
9060 tmp_sharedflag='-G' ;;
9061 esac
9062 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9063
9064 if test "x$supports_anon_versioning" = xyes; then
9065 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9066 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9067 echo "local: *; };" >> $output_objdir/$libname.ver~
9068 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9069 fi
9070
9071 case $cc_basename in
9072 xlf*)
9073 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9074 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9075 hardcode_libdir_flag_spec=
9076 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9077 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9078 if test "x$supports_anon_versioning" = xyes; then
9079 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9080 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9081 echo "local: *; };" >> $output_objdir/$libname.ver~
9082 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9083 fi
9084 ;;
9085 esac
9086 else
9087 ld_shlibs=no
9088 fi
9089 ;;
9090
9091 netbsd*)
9092 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9093 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9094 wlarc=
9095 else
9096 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9097 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9098 fi
9099 ;;
9100
9101 solaris*)
9102 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9103 ld_shlibs=no
9104 cat <<_LT_EOF 1>&2
9105
9106 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9107 *** create shared libraries on Solaris systems. Therefore, libtool
9108 *** is disabling shared libraries support. We urge you to upgrade GNU
9109 *** binutils to release 2.9.1 or newer. Another option is to modify
9110 *** your PATH or compiler configuration so that the native linker is
9111 *** used, and then restart.
9112
9113 _LT_EOF
9114 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9115 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9116 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9117 else
9118 ld_shlibs=no
9119 fi
9120 ;;
9121
9122 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9123 case `$LD -v 2>&1` in
9124 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9125 ld_shlibs=no
9126 cat <<_LT_EOF 1>&2
9127
9128 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9129 *** reliably create shared libraries on SCO systems. Therefore, libtool
9130 *** is disabling shared libraries support. We urge you to upgrade GNU
9131 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9132 *** your PATH or compiler configuration so that the native linker is
9133 *** used, and then restart.
9134
9135 _LT_EOF
9136 ;;
9137 *)
9138 # For security reasons, it is highly recommended that you always
9139 # use absolute paths for naming shared libraries, and exclude the
9140 # DT_RUNPATH tag from executables and libraries. But doing so
9141 # requires that you compile everything twice, which is a pain.
9142 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9143 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9144 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9145 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9146 else
9147 ld_shlibs=no
9148 fi
9149 ;;
9150 esac
9151 ;;
9152
9153 sunos4*)
9154 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9155 wlarc=
9156 hardcode_direct=yes
9157 hardcode_shlibpath_var=no
9158 ;;
9159
9160 *)
9161 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9162 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9163 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9164 else
9165 ld_shlibs=no
9166 fi
9167 ;;
9168 esac
9169
9170 if test "$ld_shlibs" = no; then
9171 runpath_var=
9172 hardcode_libdir_flag_spec=
9173 export_dynamic_flag_spec=
9174 whole_archive_flag_spec=
9175 fi
9176 else
9177 # PORTME fill in a description of your system's linker (not GNU ld)
9178 case $host_os in
9179 aix3*)
9180 allow_undefined_flag=unsupported
9181 always_export_symbols=yes
9182 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'
9183 # Note: this linker hardcodes the directories in LIBPATH if there
9184 # are no directories specified by -L.
9185 hardcode_minus_L=yes
9186 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9187 # Neither direct hardcoding nor static linking is supported with a
9188 # broken collect2.
9189 hardcode_direct=unsupported
9190 fi
9191 ;;
9192
9193 aix[4-9]*)
9194 if test "$host_cpu" = ia64; then
9195 # On IA64, the linker does run time linking by default, so we don't
9196 # have to do anything special.
9197 aix_use_runtimelinking=no
9198 exp_sym_flag='-Bexport'
9199 no_entry_flag=""
9200 else
9201 # If we're using GNU nm, then we don't want the "-C" option.
9202 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9203 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9204 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'
9205 else
9206 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'
9207 fi
9208 aix_use_runtimelinking=no
9209
9210 # Test if we are trying to use run time linking or normal
9211 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9212 # need to do runtime linking.
9213 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9214 for ld_flag in $LDFLAGS; do
9215 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9216 aix_use_runtimelinking=yes
9217 break
9218 fi
9219 done
9220 ;;
9221 esac
9222
9223 exp_sym_flag='-bexport'
9224 no_entry_flag='-bnoentry'
9225 fi
9226
9227 # When large executables or shared objects are built, AIX ld can
9228 # have problems creating the table of contents. If linking a library
9229 # or program results in "error TOC overflow" add -mminimal-toc to
9230 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9231 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9232
9233 archive_cmds=''
9234 hardcode_direct=yes
9235 hardcode_direct_absolute=yes
9236 hardcode_libdir_separator=':'
9237 link_all_deplibs=yes
9238 file_list_spec='${wl}-f,'
9239
9240 if test "$GCC" = yes; then
9241 case $host_os in aix4.[012]|aix4.[012].*)
9242 # We only want to do this on AIX 4.2 and lower, the check
9243 # below for broken collect2 doesn't work under 4.3+
9244 collect2name=`${CC} -print-prog-name=collect2`
9245 if test -f "$collect2name" &&
9246 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9247 then
9248 # We have reworked collect2
9249 :
9250 else
9251 # We have old collect2
9252 hardcode_direct=unsupported
9253 # It fails to find uninstalled libraries when the uninstalled
9254 # path is not listed in the libpath. Setting hardcode_minus_L
9255 # to unsupported forces relinking
9256 hardcode_minus_L=yes
9257 hardcode_libdir_flag_spec='-L$libdir'
9258 hardcode_libdir_separator=
9259 fi
9260 ;;
9261 esac
9262 shared_flag='-shared'
9263 if test "$aix_use_runtimelinking" = yes; then
9264 shared_flag="$shared_flag "'${wl}-G'
9265 fi
9266 else
9267 # not using gcc
9268 if test "$host_cpu" = ia64; then
9269 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9270 # chokes on -Wl,-G. The following line is correct:
9271 shared_flag='-G'
9272 else
9273 if test "$aix_use_runtimelinking" = yes; then
9274 shared_flag='${wl}-G'
9275 else
9276 shared_flag='${wl}-bM:SRE'
9277 fi
9278 fi
9279 fi
9280
9281 export_dynamic_flag_spec='${wl}-bexpall'
9282 # It seems that -bexpall does not export symbols beginning with
9283 # underscore (_), so it is better to generate a list of symbols to export.
9284 always_export_symbols=yes
9285 if test "$aix_use_runtimelinking" = yes; then
9286 # Warning - without using the other runtime loading flags (-brtl),
9287 # -berok will link without error, but may produce a broken library.
9288 allow_undefined_flag='-berok'
9289 # Determine the default libpath from the value encoded in an
9290 # empty executable.
9291 cat >conftest.$ac_ext <<_ACEOF
9292 /* confdefs.h. */
9293 _ACEOF
9294 cat confdefs.h >>conftest.$ac_ext
9295 cat >>conftest.$ac_ext <<_ACEOF
9296 /* end confdefs.h. */
9297
9298 int
9299 main ()
9300 {
9301
9302 ;
9303 return 0;
9304 }
9305 _ACEOF
9306 rm -f conftest.$ac_objext conftest$ac_exeext
9307 if { (ac_try="$ac_link"
9308 case "(($ac_try" in
9309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9310 *) ac_try_echo=$ac_try;;
9311 esac
9312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9313 $as_echo "$ac_try_echo") >&5
9314 (eval "$ac_link") 2>conftest.er1
9315 ac_status=$?
9316 grep -v '^ *+' conftest.er1 >conftest.err
9317 rm -f conftest.er1
9318 cat conftest.err >&5
9319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); } && {
9321 test -z "$ac_c_werror_flag" ||
9322 test ! -s conftest.err
9323 } && test -s conftest$ac_exeext && {
9324 test "$cross_compiling" = yes ||
9325 $as_test_x conftest$ac_exeext
9326 }; then
9327
9328 lt_aix_libpath_sed='
9329 /Import File Strings/,/^$/ {
9330 /^0/ {
9331 s/^0 *\(.*\)$/\1/
9332 p
9333 }
9334 }'
9335 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9336 # Check for a 64-bit object if we didn't find anything.
9337 if test -z "$aix_libpath"; then
9338 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9339 fi
9340 else
9341 $as_echo "$as_me: failed program was:" >&5
9342 sed 's/^/| /' conftest.$ac_ext >&5
9343
9344
9345 fi
9346
9347 rm -rf conftest.dSYM
9348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9349 conftest$ac_exeext conftest.$ac_ext
9350 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9351
9352 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9353 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"
9354 else
9355 if test "$host_cpu" = ia64; then
9356 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9357 allow_undefined_flag="-z nodefs"
9358 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"
9359 else
9360 # Determine the default libpath from the value encoded in an
9361 # empty executable.
9362 cat >conftest.$ac_ext <<_ACEOF
9363 /* confdefs.h. */
9364 _ACEOF
9365 cat confdefs.h >>conftest.$ac_ext
9366 cat >>conftest.$ac_ext <<_ACEOF
9367 /* end confdefs.h. */
9368
9369 int
9370 main ()
9371 {
9372
9373 ;
9374 return 0;
9375 }
9376 _ACEOF
9377 rm -f conftest.$ac_objext conftest$ac_exeext
9378 if { (ac_try="$ac_link"
9379 case "(($ac_try" in
9380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9381 *) ac_try_echo=$ac_try;;
9382 esac
9383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9384 $as_echo "$ac_try_echo") >&5
9385 (eval "$ac_link") 2>conftest.er1
9386 ac_status=$?
9387 grep -v '^ *+' conftest.er1 >conftest.err
9388 rm -f conftest.er1
9389 cat conftest.err >&5
9390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); } && {
9392 test -z "$ac_c_werror_flag" ||
9393 test ! -s conftest.err
9394 } && test -s conftest$ac_exeext && {
9395 test "$cross_compiling" = yes ||
9396 $as_test_x conftest$ac_exeext
9397 }; then
9398
9399 lt_aix_libpath_sed='
9400 /Import File Strings/,/^$/ {
9401 /^0/ {
9402 s/^0 *\(.*\)$/\1/
9403 p
9404 }
9405 }'
9406 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9407 # Check for a 64-bit object if we didn't find anything.
9408 if test -z "$aix_libpath"; then
9409 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9410 fi
9411 else
9412 $as_echo "$as_me: failed program was:" >&5
9413 sed 's/^/| /' conftest.$ac_ext >&5
9414
9415
9416 fi
9417
9418 rm -rf conftest.dSYM
9419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9420 conftest$ac_exeext conftest.$ac_ext
9421 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9422
9423 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9424 # Warning - without using the other run time loading flags,
9425 # -berok will link without error, but may produce a broken library.
9426 no_undefined_flag=' ${wl}-bernotok'
9427 allow_undefined_flag=' ${wl}-berok'
9428 # Exported symbols can be pulled into shared objects from archives
9429 whole_archive_flag_spec='$convenience'
9430 archive_cmds_need_lc=yes
9431 # This is similar to how AIX traditionally builds its shared libraries.
9432 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'
9433 fi
9434 fi
9435 ;;
9436
9437 amigaos*)
9438 case $host_cpu in
9439 powerpc)
9440 # see comment about AmigaOS4 .so support
9441 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9442 archive_expsym_cmds=''
9443 ;;
9444 m68k)
9445 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)'
9446 hardcode_libdir_flag_spec='-L$libdir'
9447 hardcode_minus_L=yes
9448 ;;
9449 esac
9450 ;;
9451
9452 bsdi[45]*)
9453 export_dynamic_flag_spec=-rdynamic
9454 ;;
9455
9456 cygwin* | mingw* | pw32* | cegcc*)
9457 # When not using gcc, we currently assume that we are using
9458 # Microsoft Visual C++.
9459 # hardcode_libdir_flag_spec is actually meaningless, as there is
9460 # no search path for DLLs.
9461 hardcode_libdir_flag_spec=' '
9462 allow_undefined_flag=unsupported
9463 # Tell ltmain to make .lib files, not .a files.
9464 libext=lib
9465 # Tell ltmain to make .dll files, not .so files.
9466 shrext_cmds=".dll"
9467 # FIXME: Setting linknames here is a bad hack.
9468 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9469 # The linker will automatically build a .lib file if we build a DLL.
9470 old_archive_from_new_cmds='true'
9471 # FIXME: Should let the user specify the lib program.
9472 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9473 fix_srcfile_path='`cygpath -w "$srcfile"`'
9474 enable_shared_with_static_runtimes=yes
9475 ;;
9476
9477 darwin* | rhapsody*)
9478
9479
9480 archive_cmds_need_lc=no
9481 hardcode_direct=no
9482 hardcode_automatic=yes
9483 hardcode_shlibpath_var=unsupported
9484 whole_archive_flag_spec=''
9485 link_all_deplibs=yes
9486 allow_undefined_flag="$_lt_dar_allow_undefined"
9487 case $cc_basename in
9488 ifort*) _lt_dar_can_shared=yes ;;
9489 *) _lt_dar_can_shared=$GCC ;;
9490 esac
9491 if test "$_lt_dar_can_shared" = "yes"; then
9492 output_verbose_link_cmd=echo
9493 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9494 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9495 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}"
9496 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}"
9497
9498 else
9499 ld_shlibs=no
9500 fi
9501
9502 ;;
9503
9504 dgux*)
9505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9506 hardcode_libdir_flag_spec='-L$libdir'
9507 hardcode_shlibpath_var=no
9508 ;;
9509
9510 freebsd1*)
9511 ld_shlibs=no
9512 ;;
9513
9514 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9515 # support. Future versions do this automatically, but an explicit c++rt0.o
9516 # does not break anything, and helps significantly (at the cost of a little
9517 # extra space).
9518 freebsd2.2*)
9519 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9520 hardcode_libdir_flag_spec='-R$libdir'
9521 hardcode_direct=yes
9522 hardcode_shlibpath_var=no
9523 ;;
9524
9525 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9526 freebsd2*)
9527 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9528 hardcode_direct=yes
9529 hardcode_minus_L=yes
9530 hardcode_shlibpath_var=no
9531 ;;
9532
9533 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9534 freebsd* | dragonfly*)
9535 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9536 hardcode_libdir_flag_spec='-R$libdir'
9537 hardcode_direct=yes
9538 hardcode_shlibpath_var=no
9539 ;;
9540
9541 hpux9*)
9542 if test "$GCC" = yes; then
9543 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'
9544 else
9545 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'
9546 fi
9547 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9548 hardcode_libdir_separator=:
9549 hardcode_direct=yes
9550
9551 # hardcode_minus_L: Not really in the search PATH,
9552 # but as the default location of the library.
9553 hardcode_minus_L=yes
9554 export_dynamic_flag_spec='${wl}-E'
9555 ;;
9556
9557 hpux10*)
9558 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9559 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9560 else
9561 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9562 fi
9563 if test "$with_gnu_ld" = no; then
9564 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9565 hardcode_libdir_flag_spec_ld='+b $libdir'
9566 hardcode_libdir_separator=:
9567 hardcode_direct=yes
9568 hardcode_direct_absolute=yes
9569 export_dynamic_flag_spec='${wl}-E'
9570 # hardcode_minus_L: Not really in the search PATH,
9571 # but as the default location of the library.
9572 hardcode_minus_L=yes
9573 fi
9574 ;;
9575
9576 hpux11*)
9577 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9578 case $host_cpu in
9579 hppa*64*)
9580 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9581 ;;
9582 ia64*)
9583 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9584 ;;
9585 *)
9586 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9587 ;;
9588 esac
9589 else
9590 case $host_cpu in
9591 hppa*64*)
9592 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9593 ;;
9594 ia64*)
9595 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9596 ;;
9597 *)
9598 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9599 ;;
9600 esac
9601 fi
9602 if test "$with_gnu_ld" = no; then
9603 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9604 hardcode_libdir_separator=:
9605
9606 case $host_cpu in
9607 hppa*64*|ia64*)
9608 hardcode_direct=no
9609 hardcode_shlibpath_var=no
9610 ;;
9611 *)
9612 hardcode_direct=yes
9613 hardcode_direct_absolute=yes
9614 export_dynamic_flag_spec='${wl}-E'
9615
9616 # hardcode_minus_L: Not really in the search PATH,
9617 # but as the default location of the library.
9618 hardcode_minus_L=yes
9619 ;;
9620 esac
9621 fi
9622 ;;
9623
9624 irix5* | irix6* | nonstopux*)
9625 if test "$GCC" = yes; then
9626 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'
9627 # Try to use the -exported_symbol ld option, if it does not
9628 # work, assume that -exports_file does not work either and
9629 # implicitly export all symbols.
9630 save_LDFLAGS="$LDFLAGS"
9631 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9632 cat >conftest.$ac_ext <<_ACEOF
9633 int foo(void) {}
9634 _ACEOF
9635 rm -f conftest.$ac_objext conftest$ac_exeext
9636 if { (ac_try="$ac_link"
9637 case "(($ac_try" in
9638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9639 *) ac_try_echo=$ac_try;;
9640 esac
9641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9642 $as_echo "$ac_try_echo") >&5
9643 (eval "$ac_link") 2>conftest.er1
9644 ac_status=$?
9645 grep -v '^ *+' conftest.er1 >conftest.err
9646 rm -f conftest.er1
9647 cat conftest.err >&5
9648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } && {
9650 test -z "$ac_c_werror_flag" ||
9651 test ! -s conftest.err
9652 } && test -s conftest$ac_exeext && {
9653 test "$cross_compiling" = yes ||
9654 $as_test_x conftest$ac_exeext
9655 }; then
9656 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'
9657
9658 else
9659 $as_echo "$as_me: failed program was:" >&5
9660 sed 's/^/| /' conftest.$ac_ext >&5
9661
9662
9663 fi
9664
9665 rm -rf conftest.dSYM
9666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9667 conftest$ac_exeext conftest.$ac_ext
9668 LDFLAGS="$save_LDFLAGS"
9669 else
9670 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'
9671 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'
9672 fi
9673 archive_cmds_need_lc='no'
9674 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9675 hardcode_libdir_separator=:
9676 inherit_rpath=yes
9677 link_all_deplibs=yes
9678 ;;
9679
9680 netbsd*)
9681 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9682 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9683 else
9684 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9685 fi
9686 hardcode_libdir_flag_spec='-R$libdir'
9687 hardcode_direct=yes
9688 hardcode_shlibpath_var=no
9689 ;;
9690
9691 newsos6)
9692 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9693 hardcode_direct=yes
9694 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9695 hardcode_libdir_separator=:
9696 hardcode_shlibpath_var=no
9697 ;;
9698
9699 *nto* | *qnx*)
9700 ;;
9701
9702 openbsd*)
9703 if test -f /usr/libexec/ld.so; then
9704 hardcode_direct=yes
9705 hardcode_shlibpath_var=no
9706 hardcode_direct_absolute=yes
9707 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9708 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9709 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9710 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9711 export_dynamic_flag_spec='${wl}-E'
9712 else
9713 case $host_os in
9714 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9715 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9716 hardcode_libdir_flag_spec='-R$libdir'
9717 ;;
9718 *)
9719 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9720 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9721 ;;
9722 esac
9723 fi
9724 else
9725 ld_shlibs=no
9726 fi
9727 ;;
9728
9729 os2*)
9730 hardcode_libdir_flag_spec='-L$libdir'
9731 hardcode_minus_L=yes
9732 allow_undefined_flag=unsupported
9733 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'
9734 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9735 ;;
9736
9737 osf3*)
9738 if test "$GCC" = yes; then
9739 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9740 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'
9741 else
9742 allow_undefined_flag=' -expect_unresolved \*'
9743 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'
9744 fi
9745 archive_cmds_need_lc='no'
9746 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9747 hardcode_libdir_separator=:
9748 ;;
9749
9750 osf4* | osf5*) # as osf3* with the addition of -msym flag
9751 if test "$GCC" = yes; then
9752 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9753 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'
9754 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9755 else
9756 allow_undefined_flag=' -expect_unresolved \*'
9757 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'
9758 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~
9759 $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'
9760
9761 # Both c and cxx compiler support -rpath directly
9762 hardcode_libdir_flag_spec='-rpath $libdir'
9763 fi
9764 archive_cmds_need_lc='no'
9765 hardcode_libdir_separator=:
9766 ;;
9767
9768 solaris*)
9769 no_undefined_flag=' -z defs'
9770 if test "$GCC" = yes; then
9771 wlarc='${wl}'
9772 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9773 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9774 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9775 else
9776 case `$CC -V 2>&1` in
9777 *"Compilers 5.0"*)
9778 wlarc=''
9779 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9780 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9781 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9782 ;;
9783 *)
9784 wlarc='${wl}'
9785 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9786 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9787 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9788 ;;
9789 esac
9790 fi
9791 hardcode_libdir_flag_spec='-R$libdir'
9792 hardcode_shlibpath_var=no
9793 case $host_os in
9794 solaris2.[0-5] | solaris2.[0-5].*) ;;
9795 *)
9796 # The compiler driver will combine and reorder linker options,
9797 # but understands `-z linker_flag'. GCC discards it without `$wl',
9798 # but is careful enough not to reorder.
9799 # Supported since Solaris 2.6 (maybe 2.5.1?)
9800 if test "$GCC" = yes; then
9801 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9802 else
9803 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9804 fi
9805 ;;
9806 esac
9807 link_all_deplibs=yes
9808 ;;
9809
9810 sunos4*)
9811 if test "x$host_vendor" = xsequent; then
9812 # Use $CC to link under sequent, because it throws in some extra .o
9813 # files that make .init and .fini sections work.
9814 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9815 else
9816 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9817 fi
9818 hardcode_libdir_flag_spec='-L$libdir'
9819 hardcode_direct=yes
9820 hardcode_minus_L=yes
9821 hardcode_shlibpath_var=no
9822 ;;
9823
9824 sysv4)
9825 case $host_vendor in
9826 sni)
9827 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9828 hardcode_direct=yes # is this really true???
9829 ;;
9830 siemens)
9831 ## LD is ld it makes a PLAMLIB
9832 ## CC just makes a GrossModule.
9833 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9834 reload_cmds='$CC -r -o $output$reload_objs'
9835 hardcode_direct=no
9836 ;;
9837 motorola)
9838 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9839 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9840 ;;
9841 esac
9842 runpath_var='LD_RUN_PATH'
9843 hardcode_shlibpath_var=no
9844 ;;
9845
9846 sysv4.3*)
9847 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9848 hardcode_shlibpath_var=no
9849 export_dynamic_flag_spec='-Bexport'
9850 ;;
9851
9852 sysv4*MP*)
9853 if test -d /usr/nec; then
9854 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9855 hardcode_shlibpath_var=no
9856 runpath_var=LD_RUN_PATH
9857 hardcode_runpath_var=yes
9858 ld_shlibs=yes
9859 fi
9860 ;;
9861
9862 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9863 no_undefined_flag='${wl}-z,text'
9864 archive_cmds_need_lc=no
9865 hardcode_shlibpath_var=no
9866 runpath_var='LD_RUN_PATH'
9867
9868 if test "$GCC" = yes; then
9869 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9870 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9871 else
9872 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9873 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9874 fi
9875 ;;
9876
9877 sysv5* | sco3.2v5* | sco5v6*)
9878 # Note: We can NOT use -z defs as we might desire, because we do not
9879 # link with -lc, and that would cause any symbols used from libc to
9880 # always be unresolved, which means just about no library would
9881 # ever link correctly. If we're not using GNU ld we use -z text
9882 # though, which does catch some bad symbols but isn't as heavy-handed
9883 # as -z defs.
9884 no_undefined_flag='${wl}-z,text'
9885 allow_undefined_flag='${wl}-z,nodefs'
9886 archive_cmds_need_lc=no
9887 hardcode_shlibpath_var=no
9888 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9889 hardcode_libdir_separator=':'
9890 link_all_deplibs=yes
9891 export_dynamic_flag_spec='${wl}-Bexport'
9892 runpath_var='LD_RUN_PATH'
9893
9894 if test "$GCC" = yes; then
9895 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9896 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9897 else
9898 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9899 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9900 fi
9901 ;;
9902
9903 uts4*)
9904 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9905 hardcode_libdir_flag_spec='-L$libdir'
9906 hardcode_shlibpath_var=no
9907 ;;
9908
9909 *)
9910 ld_shlibs=no
9911 ;;
9912 esac
9913
9914 if test x$host_vendor = xsni; then
9915 case $host in
9916 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9917 export_dynamic_flag_spec='${wl}-Blargedynsym'
9918 ;;
9919 esac
9920 fi
9921 fi
9922
9923 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9924 $as_echo "$ld_shlibs" >&6; }
9925 test "$ld_shlibs" = no && can_build_shared=no
9926
9927 with_gnu_ld=$with_gnu_ld
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943 #
9944 # Do we need to explicitly link libc?
9945 #
9946 case "x$archive_cmds_need_lc" in
9947 x|xyes)
9948 # Assume -lc should be added
9949 archive_cmds_need_lc=yes
9950
9951 if test "$enable_shared" = yes && test "$GCC" = yes; then
9952 case $archive_cmds in
9953 *'~'*)
9954 # FIXME: we may have to deal with multi-command sequences.
9955 ;;
9956 '$CC '*)
9957 # Test whether the compiler implicitly links with -lc since on some
9958 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9959 # to ld, don't add -lc before -lgcc.
9960 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9961 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9962 $RM conftest*
9963 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9964
9965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9966 (eval $ac_compile) 2>&5
9967 ac_status=$?
9968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); } 2>conftest.err; then
9970 soname=conftest
9971 lib=conftest
9972 libobjs=conftest.$ac_objext
9973 deplibs=
9974 wl=$lt_prog_compiler_wl
9975 pic_flag=$lt_prog_compiler_pic
9976 compiler_flags=-v
9977 linker_flags=-v
9978 verstring=
9979 output_objdir=.
9980 libname=conftest
9981 lt_save_allow_undefined_flag=$allow_undefined_flag
9982 allow_undefined_flag=
9983 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9984 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9985 ac_status=$?
9986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); }
9988 then
9989 archive_cmds_need_lc=no
9990 else
9991 archive_cmds_need_lc=yes
9992 fi
9993 allow_undefined_flag=$lt_save_allow_undefined_flag
9994 else
9995 cat conftest.err 1>&5
9996 fi
9997 $RM conftest*
9998 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9999 $as_echo "$archive_cmds_need_lc" >&6; }
10000 ;;
10001 esac
10002 fi
10003 ;;
10004 esac
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
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
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10163 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10164
10165 if test "$GCC" = yes; then
10166 case $host_os in
10167 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10168 *) lt_awk_arg="/^libraries:/" ;;
10169 esac
10170 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10171 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10172 # if the path contains ";" then we assume it to be the separator
10173 # otherwise default to the standard path separator (i.e. ":") - it is
10174 # assumed that no part of a normal pathname contains ";" but that should
10175 # okay in the real world where ";" in dirpaths is itself problematic.
10176 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10177 else
10178 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10179 fi
10180 # Ok, now we have the path, separated by spaces, we can step through it
10181 # and add multilib dir if necessary.
10182 lt_tmp_lt_search_path_spec=
10183 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10184 for lt_sys_path in $lt_search_path_spec; do
10185 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10186 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10187 else
10188 test -d "$lt_sys_path" && \
10189 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10190 fi
10191 done
10192 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10193 BEGIN {RS=" "; FS="/|\n";} {
10194 lt_foo="";
10195 lt_count=0;
10196 for (lt_i = NF; lt_i > 0; lt_i--) {
10197 if ($lt_i != "" && $lt_i != ".") {
10198 if ($lt_i == "..") {
10199 lt_count++;
10200 } else {
10201 if (lt_count == 0) {
10202 lt_foo="/" $lt_i lt_foo;
10203 } else {
10204 lt_count--;
10205 }
10206 }
10207 }
10208 }
10209 if (lt_foo != "") { lt_freq[lt_foo]++; }
10210 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10211 }'`
10212 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10213 else
10214 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10215 fi
10216 library_names_spec=
10217 libname_spec='lib$name'
10218 soname_spec=
10219 shrext_cmds=".so"
10220 postinstall_cmds=
10221 postuninstall_cmds=
10222 finish_cmds=
10223 finish_eval=
10224 shlibpath_var=
10225 shlibpath_overrides_runpath=unknown
10226 version_type=none
10227 dynamic_linker="$host_os ld.so"
10228 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10229 need_lib_prefix=unknown
10230 hardcode_into_libs=no
10231
10232 # when you set need_version to no, make sure it does not cause -set_version
10233 # flags to be left without arguments
10234 need_version=unknown
10235
10236 case $host_os in
10237 aix3*)
10238 version_type=linux
10239 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10240 shlibpath_var=LIBPATH
10241
10242 # AIX 3 has no versioning support, so we append a major version to the name.
10243 soname_spec='${libname}${release}${shared_ext}$major'
10244 ;;
10245
10246 aix[4-9]*)
10247 version_type=linux
10248 need_lib_prefix=no
10249 need_version=no
10250 hardcode_into_libs=yes
10251 if test "$host_cpu" = ia64; then
10252 # AIX 5 supports IA64
10253 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10254 shlibpath_var=LD_LIBRARY_PATH
10255 else
10256 # With GCC up to 2.95.x, collect2 would create an import file
10257 # for dependence libraries. The import file would start with
10258 # the line `#! .'. This would cause the generated library to
10259 # depend on `.', always an invalid library. This was fixed in
10260 # development snapshots of GCC prior to 3.0.
10261 case $host_os in
10262 aix4 | aix4.[01] | aix4.[01].*)
10263 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10264 echo ' yes '
10265 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10266 :
10267 else
10268 can_build_shared=no
10269 fi
10270 ;;
10271 esac
10272 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10273 # soname into executable. Probably we can add versioning support to
10274 # collect2, so additional links can be useful in future.
10275 if test "$aix_use_runtimelinking" = yes; then
10276 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10277 # instead of lib<name>.a to let people know that these are not
10278 # typical AIX shared libraries.
10279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10280 else
10281 # We preserve .a as extension for shared libraries through AIX4.2
10282 # and later when we are not doing run time linking.
10283 library_names_spec='${libname}${release}.a $libname.a'
10284 soname_spec='${libname}${release}${shared_ext}$major'
10285 fi
10286 shlibpath_var=LIBPATH
10287 fi
10288 ;;
10289
10290 amigaos*)
10291 case $host_cpu in
10292 powerpc)
10293 # Since July 2007 AmigaOS4 officially supports .so libraries.
10294 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10296 ;;
10297 m68k)
10298 library_names_spec='$libname.ixlibrary $libname.a'
10299 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10300 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'
10301 ;;
10302 esac
10303 ;;
10304
10305 beos*)
10306 library_names_spec='${libname}${shared_ext}'
10307 dynamic_linker="$host_os ld.so"
10308 shlibpath_var=LIBRARY_PATH
10309 ;;
10310
10311 bsdi[45]*)
10312 version_type=linux
10313 need_version=no
10314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10315 soname_spec='${libname}${release}${shared_ext}$major'
10316 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10317 shlibpath_var=LD_LIBRARY_PATH
10318 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10319 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10320 # the default ld.so.conf also contains /usr/contrib/lib and
10321 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10322 # libtool to hard-code these into programs
10323 ;;
10324
10325 cygwin* | mingw* | pw32* | cegcc*)
10326 version_type=windows
10327 shrext_cmds=".dll"
10328 need_version=no
10329 need_lib_prefix=no
10330
10331 case $GCC,$host_os in
10332 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10333 library_names_spec='$libname.dll.a'
10334 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10335 postinstall_cmds='base_file=`basename \${file}`~
10336 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10337 dldir=$destdir/`dirname \$dlpath`~
10338 test -d \$dldir || mkdir -p \$dldir~
10339 $install_prog $dir/$dlname \$dldir/$dlname~
10340 chmod a+x \$dldir/$dlname~
10341 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10342 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10343 fi'
10344 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10345 dlpath=$dir/\$dldll~
10346 $RM \$dlpath'
10347 shlibpath_overrides_runpath=yes
10348
10349 case $host_os in
10350 cygwin*)
10351 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10352 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10353 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10354 ;;
10355 mingw* | cegcc*)
10356 # MinGW DLLs use traditional 'lib' prefix
10357 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10358 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10359 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10360 # It is most probably a Windows format PATH printed by
10361 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10362 # path with ; separators, and with drive letters. We can handle the
10363 # drive letters (cygwin fileutils understands them), so leave them,
10364 # especially as we might pass files found there to a mingw objdump,
10365 # which wouldn't understand a cygwinified path. Ahh.
10366 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10367 else
10368 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10369 fi
10370 ;;
10371 pw32*)
10372 # pw32 DLLs use 'pw' prefix rather than 'lib'
10373 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10374 ;;
10375 esac
10376 ;;
10377
10378 *)
10379 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10380 ;;
10381 esac
10382 dynamic_linker='Win32 ld.exe'
10383 # FIXME: first we should search . and the directory the executable is in
10384 shlibpath_var=PATH
10385 ;;
10386
10387 darwin* | rhapsody*)
10388 dynamic_linker="$host_os dyld"
10389 version_type=darwin
10390 need_lib_prefix=no
10391 need_version=no
10392 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10393 soname_spec='${libname}${release}${major}$shared_ext'
10394 shlibpath_overrides_runpath=yes
10395 shlibpath_var=DYLD_LIBRARY_PATH
10396 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10397
10398 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10399 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10400 ;;
10401
10402 dgux*)
10403 version_type=linux
10404 need_lib_prefix=no
10405 need_version=no
10406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10407 soname_spec='${libname}${release}${shared_ext}$major'
10408 shlibpath_var=LD_LIBRARY_PATH
10409 ;;
10410
10411 freebsd1*)
10412 dynamic_linker=no
10413 ;;
10414
10415 freebsd* | dragonfly*)
10416 # DragonFly does not have aout. When/if they implement a new
10417 # versioning mechanism, adjust this.
10418 if test -x /usr/bin/objformat; then
10419 objformat=`/usr/bin/objformat`
10420 else
10421 case $host_os in
10422 freebsd[123]*) objformat=aout ;;
10423 *) objformat=elf ;;
10424 esac
10425 fi
10426 version_type=freebsd-$objformat
10427 case $version_type in
10428 freebsd-elf*)
10429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10430 need_version=no
10431 need_lib_prefix=no
10432 ;;
10433 freebsd-*)
10434 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10435 need_version=yes
10436 ;;
10437 esac
10438 shlibpath_var=LD_LIBRARY_PATH
10439 case $host_os in
10440 freebsd2*)
10441 shlibpath_overrides_runpath=yes
10442 ;;
10443 freebsd3.[01]* | freebsdelf3.[01]*)
10444 shlibpath_overrides_runpath=yes
10445 hardcode_into_libs=yes
10446 ;;
10447 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10448 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10449 shlibpath_overrides_runpath=no
10450 hardcode_into_libs=yes
10451 ;;
10452 *) # from 4.6 on, and DragonFly
10453 shlibpath_overrides_runpath=yes
10454 hardcode_into_libs=yes
10455 ;;
10456 esac
10457 ;;
10458
10459 gnu*)
10460 version_type=linux
10461 need_lib_prefix=no
10462 need_version=no
10463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10464 soname_spec='${libname}${release}${shared_ext}$major'
10465 shlibpath_var=LD_LIBRARY_PATH
10466 hardcode_into_libs=yes
10467 ;;
10468
10469 hpux9* | hpux10* | hpux11*)
10470 # Give a soname corresponding to the major version so that dld.sl refuses to
10471 # link against other versions.
10472 version_type=sunos
10473 need_lib_prefix=no
10474 need_version=no
10475 case $host_cpu in
10476 ia64*)
10477 shrext_cmds='.so'
10478 hardcode_into_libs=yes
10479 dynamic_linker="$host_os dld.so"
10480 shlibpath_var=LD_LIBRARY_PATH
10481 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10483 soname_spec='${libname}${release}${shared_ext}$major'
10484 if test "X$HPUX_IA64_MODE" = X32; then
10485 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10486 else
10487 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10488 fi
10489 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10490 ;;
10491 hppa*64*)
10492 shrext_cmds='.sl'
10493 hardcode_into_libs=yes
10494 dynamic_linker="$host_os dld.sl"
10495 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10496 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10498 soname_spec='${libname}${release}${shared_ext}$major'
10499 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10500 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10501 ;;
10502 *)
10503 shrext_cmds='.sl'
10504 dynamic_linker="$host_os dld.sl"
10505 shlibpath_var=SHLIB_PATH
10506 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10508 soname_spec='${libname}${release}${shared_ext}$major'
10509 ;;
10510 esac
10511 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10512 postinstall_cmds='chmod 555 $lib'
10513 ;;
10514
10515 interix[3-9]*)
10516 version_type=linux
10517 need_lib_prefix=no
10518 need_version=no
10519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10520 soname_spec='${libname}${release}${shared_ext}$major'
10521 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10522 shlibpath_var=LD_LIBRARY_PATH
10523 shlibpath_overrides_runpath=no
10524 hardcode_into_libs=yes
10525 ;;
10526
10527 irix5* | irix6* | nonstopux*)
10528 case $host_os in
10529 nonstopux*) version_type=nonstopux ;;
10530 *)
10531 if test "$lt_cv_prog_gnu_ld" = yes; then
10532 version_type=linux
10533 else
10534 version_type=irix
10535 fi ;;
10536 esac
10537 need_lib_prefix=no
10538 need_version=no
10539 soname_spec='${libname}${release}${shared_ext}$major'
10540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10541 case $host_os in
10542 irix5* | nonstopux*)
10543 libsuff= shlibsuff=
10544 ;;
10545 *)
10546 case $LD in # libtool.m4 will add one of these switches to LD
10547 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10548 libsuff= shlibsuff= libmagic=32-bit;;
10549 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10550 libsuff=32 shlibsuff=N32 libmagic=N32;;
10551 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10552 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10553 *) libsuff= shlibsuff= libmagic=never-match;;
10554 esac
10555 ;;
10556 esac
10557 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10558 shlibpath_overrides_runpath=no
10559 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10560 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10561 hardcode_into_libs=yes
10562 ;;
10563
10564 # No shared lib support for Linux oldld, aout, or coff.
10565 linux*oldld* | linux*aout* | linux*coff*)
10566 dynamic_linker=no
10567 ;;
10568
10569 # This must be Linux ELF.
10570 linux* | k*bsd*-gnu)
10571 version_type=linux
10572 need_lib_prefix=no
10573 need_version=no
10574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10575 soname_spec='${libname}${release}${shared_ext}$major'
10576 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10577 shlibpath_var=LD_LIBRARY_PATH
10578 shlibpath_overrides_runpath=no
10579 # Some binutils ld are patched to set DT_RUNPATH
10580 save_LDFLAGS=$LDFLAGS
10581 save_libdir=$libdir
10582 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10583 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10584 cat >conftest.$ac_ext <<_ACEOF
10585 /* confdefs.h. */
10586 _ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h. */
10590
10591 int
10592 main ()
10593 {
10594
10595 ;
10596 return 0;
10597 }
10598 _ACEOF
10599 rm -f conftest.$ac_objext conftest$ac_exeext
10600 if { (ac_try="$ac_link"
10601 case "(($ac_try" in
10602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10603 *) ac_try_echo=$ac_try;;
10604 esac
10605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10606 $as_echo "$ac_try_echo") >&5
10607 (eval "$ac_link") 2>conftest.er1
10608 ac_status=$?
10609 grep -v '^ *+' conftest.er1 >conftest.err
10610 rm -f conftest.er1
10611 cat conftest.err >&5
10612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); } && {
10614 test -z "$ac_c_werror_flag" ||
10615 test ! -s conftest.err
10616 } && test -s conftest$ac_exeext && {
10617 test "$cross_compiling" = yes ||
10618 $as_test_x conftest$ac_exeext
10619 }; then
10620 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10621 shlibpath_overrides_runpath=yes
10622 fi
10623
10624 else
10625 $as_echo "$as_me: failed program was:" >&5
10626 sed 's/^/| /' conftest.$ac_ext >&5
10627
10628
10629 fi
10630
10631 rm -rf conftest.dSYM
10632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10633 conftest$ac_exeext conftest.$ac_ext
10634 LDFLAGS=$save_LDFLAGS
10635 libdir=$save_libdir
10636
10637 # This implies no fast_install, which is unacceptable.
10638 # Some rework will be needed to allow for fast_install
10639 # before this can be enabled.
10640 hardcode_into_libs=yes
10641
10642 # Add ABI-specific directories to the system library path.
10643 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10644
10645 # Append ld.so.conf contents to the search path
10646 if test -f /etc/ld.so.conf; then
10647 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' ' '`
10648 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10649 fi
10650
10651 # We used to test for /lib/ld.so.1 and disable shared libraries on
10652 # powerpc, because MkLinux only supported shared libraries with the
10653 # GNU dynamic linker. Since this was broken with cross compilers,
10654 # most powerpc-linux boxes support dynamic linking these days and
10655 # people can always --disable-shared, the test was removed, and we
10656 # assume the GNU/Linux dynamic linker is in use.
10657 dynamic_linker='GNU/Linux ld.so'
10658 ;;
10659
10660 netbsd*)
10661 version_type=sunos
10662 need_lib_prefix=no
10663 need_version=no
10664 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10666 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10667 dynamic_linker='NetBSD (a.out) ld.so'
10668 else
10669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10670 soname_spec='${libname}${release}${shared_ext}$major'
10671 dynamic_linker='NetBSD ld.elf_so'
10672 fi
10673 shlibpath_var=LD_LIBRARY_PATH
10674 shlibpath_overrides_runpath=yes
10675 hardcode_into_libs=yes
10676 ;;
10677
10678 newsos6)
10679 version_type=linux
10680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10681 shlibpath_var=LD_LIBRARY_PATH
10682 shlibpath_overrides_runpath=yes
10683 ;;
10684
10685 *nto* | *qnx*)
10686 version_type=qnx
10687 need_lib_prefix=no
10688 need_version=no
10689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10690 soname_spec='${libname}${release}${shared_ext}$major'
10691 shlibpath_var=LD_LIBRARY_PATH
10692 shlibpath_overrides_runpath=no
10693 hardcode_into_libs=yes
10694 dynamic_linker='ldqnx.so'
10695 ;;
10696
10697 openbsd*)
10698 version_type=sunos
10699 sys_lib_dlsearch_path_spec="/usr/lib"
10700 need_lib_prefix=no
10701 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10702 case $host_os in
10703 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10704 *) need_version=no ;;
10705 esac
10706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10707 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10708 shlibpath_var=LD_LIBRARY_PATH
10709 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10710 case $host_os in
10711 openbsd2.[89] | openbsd2.[89].*)
10712 shlibpath_overrides_runpath=no
10713 ;;
10714 *)
10715 shlibpath_overrides_runpath=yes
10716 ;;
10717 esac
10718 else
10719 shlibpath_overrides_runpath=yes
10720 fi
10721 ;;
10722
10723 os2*)
10724 libname_spec='$name'
10725 shrext_cmds=".dll"
10726 need_lib_prefix=no
10727 library_names_spec='$libname${shared_ext} $libname.a'
10728 dynamic_linker='OS/2 ld.exe'
10729 shlibpath_var=LIBPATH
10730 ;;
10731
10732 osf3* | osf4* | osf5*)
10733 version_type=osf
10734 need_lib_prefix=no
10735 need_version=no
10736 soname_spec='${libname}${release}${shared_ext}$major'
10737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10738 shlibpath_var=LD_LIBRARY_PATH
10739 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10740 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10741 ;;
10742
10743 rdos*)
10744 dynamic_linker=no
10745 ;;
10746
10747 solaris*)
10748 version_type=linux
10749 need_lib_prefix=no
10750 need_version=no
10751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10752 soname_spec='${libname}${release}${shared_ext}$major'
10753 shlibpath_var=LD_LIBRARY_PATH
10754 shlibpath_overrides_runpath=yes
10755 hardcode_into_libs=yes
10756 # ldd complains unless libraries are executable
10757 postinstall_cmds='chmod +x $lib'
10758 ;;
10759
10760 sunos4*)
10761 version_type=sunos
10762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10763 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10764 shlibpath_var=LD_LIBRARY_PATH
10765 shlibpath_overrides_runpath=yes
10766 if test "$with_gnu_ld" = yes; then
10767 need_lib_prefix=no
10768 fi
10769 need_version=yes
10770 ;;
10771
10772 sysv4 | sysv4.3*)
10773 version_type=linux
10774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10775 soname_spec='${libname}${release}${shared_ext}$major'
10776 shlibpath_var=LD_LIBRARY_PATH
10777 case $host_vendor in
10778 sni)
10779 shlibpath_overrides_runpath=no
10780 need_lib_prefix=no
10781 runpath_var=LD_RUN_PATH
10782 ;;
10783 siemens)
10784 need_lib_prefix=no
10785 ;;
10786 motorola)
10787 need_lib_prefix=no
10788 need_version=no
10789 shlibpath_overrides_runpath=no
10790 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10791 ;;
10792 esac
10793 ;;
10794
10795 sysv4*MP*)
10796 if test -d /usr/nec ;then
10797 version_type=linux
10798 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10799 soname_spec='$libname${shared_ext}.$major'
10800 shlibpath_var=LD_LIBRARY_PATH
10801 fi
10802 ;;
10803
10804 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10805 version_type=freebsd-elf
10806 need_lib_prefix=no
10807 need_version=no
10808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10809 soname_spec='${libname}${release}${shared_ext}$major'
10810 shlibpath_var=LD_LIBRARY_PATH
10811 shlibpath_overrides_runpath=yes
10812 hardcode_into_libs=yes
10813 if test "$with_gnu_ld" = yes; then
10814 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10815 else
10816 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10817 case $host_os in
10818 sco3.2v5*)
10819 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10820 ;;
10821 esac
10822 fi
10823 sys_lib_dlsearch_path_spec='/usr/lib'
10824 ;;
10825
10826 tpf*)
10827 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10828 version_type=linux
10829 need_lib_prefix=no
10830 need_version=no
10831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10832 shlibpath_var=LD_LIBRARY_PATH
10833 shlibpath_overrides_runpath=no
10834 hardcode_into_libs=yes
10835 ;;
10836
10837 uts4*)
10838 version_type=linux
10839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10840 soname_spec='${libname}${release}${shared_ext}$major'
10841 shlibpath_var=LD_LIBRARY_PATH
10842 ;;
10843
10844 *)
10845 dynamic_linker=no
10846 ;;
10847 esac
10848 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10849 $as_echo "$dynamic_linker" >&6; }
10850 test "$dynamic_linker" = no && can_build_shared=no
10851
10852 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10853 if test "$GCC" = yes; then
10854 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10855 fi
10856
10857 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10858 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10859 fi
10860 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10861 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10862 fi
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10951 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10952 hardcode_action=
10953 if test -n "$hardcode_libdir_flag_spec" ||
10954 test -n "$runpath_var" ||
10955 test "X$hardcode_automatic" = "Xyes" ; then
10956
10957 # We can hardcode non-existent directories.
10958 if test "$hardcode_direct" != no &&
10959 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10960 # have to relink, otherwise we might link with an installed library
10961 # when we should be linking with a yet-to-be-installed one
10962 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10963 test "$hardcode_minus_L" != no; then
10964 # Linking always hardcodes the temporary library directory.
10965 hardcode_action=relink
10966 else
10967 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10968 hardcode_action=immediate
10969 fi
10970 else
10971 # We cannot hardcode anything, or else we can only hardcode existing
10972 # directories.
10973 hardcode_action=unsupported
10974 fi
10975 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10976 $as_echo "$hardcode_action" >&6; }
10977
10978 if test "$hardcode_action" = relink ||
10979 test "$inherit_rpath" = yes; then
10980 # Fast installation is not supported
10981 enable_fast_install=no
10982 elif test "$shlibpath_overrides_runpath" = yes ||
10983 test "$enable_shared" = no; then
10984 # Fast installation is not necessary
10985 enable_fast_install=needless
10986 fi
10987
10988
10989
10990
10991
10992
10993 if test "x$enable_dlopen" != xyes; then
10994 enable_dlopen=unknown
10995 enable_dlopen_self=unknown
10996 enable_dlopen_self_static=unknown
10997 else
10998 lt_cv_dlopen=no
10999 lt_cv_dlopen_libs=
11000
11001 case $host_os in
11002 beos*)
11003 lt_cv_dlopen="load_add_on"
11004 lt_cv_dlopen_libs=
11005 lt_cv_dlopen_self=yes
11006 ;;
11007
11008 mingw* | pw32* | cegcc*)
11009 lt_cv_dlopen="LoadLibrary"
11010 lt_cv_dlopen_libs=
11011 ;;
11012
11013 cygwin*)
11014 lt_cv_dlopen="dlopen"
11015 lt_cv_dlopen_libs=
11016 ;;
11017
11018 darwin*)
11019 # if libdl is installed we need to link against it
11020 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11021 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11022 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11023 $as_echo_n "(cached) " >&6
11024 else
11025 ac_check_lib_save_LIBS=$LIBS
11026 LIBS="-ldl $LIBS"
11027 cat >conftest.$ac_ext <<_ACEOF
11028 /* confdefs.h. */
11029 _ACEOF
11030 cat confdefs.h >>conftest.$ac_ext
11031 cat >>conftest.$ac_ext <<_ACEOF
11032 /* end confdefs.h. */
11033
11034 /* Override any GCC internal prototype to avoid an error.
11035 Use char because int might match the return type of a GCC
11036 builtin and then its argument prototype would still apply. */
11037 #ifdef __cplusplus
11038 extern "C"
11039 #endif
11040 char dlopen ();
11041 int
11042 main ()
11043 {
11044 return dlopen ();
11045 ;
11046 return 0;
11047 }
11048 _ACEOF
11049 rm -f conftest.$ac_objext conftest$ac_exeext
11050 if { (ac_try="$ac_link"
11051 case "(($ac_try" in
11052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11053 *) ac_try_echo=$ac_try;;
11054 esac
11055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11056 $as_echo "$ac_try_echo") >&5
11057 (eval "$ac_link") 2>conftest.er1
11058 ac_status=$?
11059 grep -v '^ *+' conftest.er1 >conftest.err
11060 rm -f conftest.er1
11061 cat conftest.err >&5
11062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); } && {
11064 test -z "$ac_c_werror_flag" ||
11065 test ! -s conftest.err
11066 } && test -s conftest$ac_exeext && {
11067 test "$cross_compiling" = yes ||
11068 $as_test_x conftest$ac_exeext
11069 }; then
11070 ac_cv_lib_dl_dlopen=yes
11071 else
11072 $as_echo "$as_me: failed program was:" >&5
11073 sed 's/^/| /' conftest.$ac_ext >&5
11074
11075 ac_cv_lib_dl_dlopen=no
11076 fi
11077
11078 rm -rf conftest.dSYM
11079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11080 conftest$ac_exeext conftest.$ac_ext
11081 LIBS=$ac_check_lib_save_LIBS
11082 fi
11083 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11084 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11085 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11086 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11087 else
11088
11089 lt_cv_dlopen="dyld"
11090 lt_cv_dlopen_libs=
11091 lt_cv_dlopen_self=yes
11092
11093 fi
11094
11095 ;;
11096
11097 *)
11098 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11099 $as_echo_n "checking for shl_load... " >&6; }
11100 if test "${ac_cv_func_shl_load+set}" = set; then
11101 $as_echo_n "(cached) " >&6
11102 else
11103 cat >conftest.$ac_ext <<_ACEOF
11104 /* confdefs.h. */
11105 _ACEOF
11106 cat confdefs.h >>conftest.$ac_ext
11107 cat >>conftest.$ac_ext <<_ACEOF
11108 /* end confdefs.h. */
11109 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11111 #define shl_load innocuous_shl_load
11112
11113 /* System header to define __stub macros and hopefully few prototypes,
11114 which can conflict with char shl_load (); below.
11115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11116 <limits.h> exists even on freestanding compilers. */
11117
11118 #ifdef __STDC__
11119 # include <limits.h>
11120 #else
11121 # include <assert.h>
11122 #endif
11123
11124 #undef shl_load
11125
11126 /* Override any GCC internal prototype to avoid an error.
11127 Use char because int might match the return type of a GCC
11128 builtin and then its argument prototype would still apply. */
11129 #ifdef __cplusplus
11130 extern "C"
11131 #endif
11132 char shl_load ();
11133 /* The GNU C library defines this for functions which it implements
11134 to always fail with ENOSYS. Some functions are actually named
11135 something starting with __ and the normal name is an alias. */
11136 #if defined __stub_shl_load || defined __stub___shl_load
11137 choke me
11138 #endif
11139
11140 int
11141 main ()
11142 {
11143 return shl_load ();
11144 ;
11145 return 0;
11146 }
11147 _ACEOF
11148 rm -f conftest.$ac_objext conftest$ac_exeext
11149 if { (ac_try="$ac_link"
11150 case "(($ac_try" in
11151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11152 *) ac_try_echo=$ac_try;;
11153 esac
11154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11155 $as_echo "$ac_try_echo") >&5
11156 (eval "$ac_link") 2>conftest.er1
11157 ac_status=$?
11158 grep -v '^ *+' conftest.er1 >conftest.err
11159 rm -f conftest.er1
11160 cat conftest.err >&5
11161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); } && {
11163 test -z "$ac_c_werror_flag" ||
11164 test ! -s conftest.err
11165 } && test -s conftest$ac_exeext && {
11166 test "$cross_compiling" = yes ||
11167 $as_test_x conftest$ac_exeext
11168 }; then
11169 ac_cv_func_shl_load=yes
11170 else
11171 $as_echo "$as_me: failed program was:" >&5
11172 sed 's/^/| /' conftest.$ac_ext >&5
11173
11174 ac_cv_func_shl_load=no
11175 fi
11176
11177 rm -rf conftest.dSYM
11178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11179 conftest$ac_exeext conftest.$ac_ext
11180 fi
11181 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11182 $as_echo "$ac_cv_func_shl_load" >&6; }
11183 if test "x$ac_cv_func_shl_load" = x""yes; then
11184 lt_cv_dlopen="shl_load"
11185 else
11186 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11187 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11188 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11189 $as_echo_n "(cached) " >&6
11190 else
11191 ac_check_lib_save_LIBS=$LIBS
11192 LIBS="-ldld $LIBS"
11193 cat >conftest.$ac_ext <<_ACEOF
11194 /* confdefs.h. */
11195 _ACEOF
11196 cat confdefs.h >>conftest.$ac_ext
11197 cat >>conftest.$ac_ext <<_ACEOF
11198 /* end confdefs.h. */
11199
11200 /* Override any GCC internal prototype to avoid an error.
11201 Use char because int might match the return type of a GCC
11202 builtin and then its argument prototype would still apply. */
11203 #ifdef __cplusplus
11204 extern "C"
11205 #endif
11206 char shl_load ();
11207 int
11208 main ()
11209 {
11210 return shl_load ();
11211 ;
11212 return 0;
11213 }
11214 _ACEOF
11215 rm -f conftest.$ac_objext conftest$ac_exeext
11216 if { (ac_try="$ac_link"
11217 case "(($ac_try" in
11218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11219 *) ac_try_echo=$ac_try;;
11220 esac
11221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11222 $as_echo "$ac_try_echo") >&5
11223 (eval "$ac_link") 2>conftest.er1
11224 ac_status=$?
11225 grep -v '^ *+' conftest.er1 >conftest.err
11226 rm -f conftest.er1
11227 cat conftest.err >&5
11228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); } && {
11230 test -z "$ac_c_werror_flag" ||
11231 test ! -s conftest.err
11232 } && test -s conftest$ac_exeext && {
11233 test "$cross_compiling" = yes ||
11234 $as_test_x conftest$ac_exeext
11235 }; then
11236 ac_cv_lib_dld_shl_load=yes
11237 else
11238 $as_echo "$as_me: failed program was:" >&5
11239 sed 's/^/| /' conftest.$ac_ext >&5
11240
11241 ac_cv_lib_dld_shl_load=no
11242 fi
11243
11244 rm -rf conftest.dSYM
11245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11246 conftest$ac_exeext conftest.$ac_ext
11247 LIBS=$ac_check_lib_save_LIBS
11248 fi
11249 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11250 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11251 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11252 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11253 else
11254 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11255 $as_echo_n "checking for dlopen... " >&6; }
11256 if test "${ac_cv_func_dlopen+set}" = set; then
11257 $as_echo_n "(cached) " >&6
11258 else
11259 cat >conftest.$ac_ext <<_ACEOF
11260 /* confdefs.h. */
11261 _ACEOF
11262 cat confdefs.h >>conftest.$ac_ext
11263 cat >>conftest.$ac_ext <<_ACEOF
11264 /* end confdefs.h. */
11265 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11267 #define dlopen innocuous_dlopen
11268
11269 /* System header to define __stub macros and hopefully few prototypes,
11270 which can conflict with char dlopen (); below.
11271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11272 <limits.h> exists even on freestanding compilers. */
11273
11274 #ifdef __STDC__
11275 # include <limits.h>
11276 #else
11277 # include <assert.h>
11278 #endif
11279
11280 #undef dlopen
11281
11282 /* Override any GCC internal prototype to avoid an error.
11283 Use char because int might match the return type of a GCC
11284 builtin and then its argument prototype would still apply. */
11285 #ifdef __cplusplus
11286 extern "C"
11287 #endif
11288 char dlopen ();
11289 /* The GNU C library defines this for functions which it implements
11290 to always fail with ENOSYS. Some functions are actually named
11291 something starting with __ and the normal name is an alias. */
11292 #if defined __stub_dlopen || defined __stub___dlopen
11293 choke me
11294 #endif
11295
11296 int
11297 main ()
11298 {
11299 return dlopen ();
11300 ;
11301 return 0;
11302 }
11303 _ACEOF
11304 rm -f conftest.$ac_objext conftest$ac_exeext
11305 if { (ac_try="$ac_link"
11306 case "(($ac_try" in
11307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308 *) ac_try_echo=$ac_try;;
11309 esac
11310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11311 $as_echo "$ac_try_echo") >&5
11312 (eval "$ac_link") 2>conftest.er1
11313 ac_status=$?
11314 grep -v '^ *+' conftest.er1 >conftest.err
11315 rm -f conftest.er1
11316 cat conftest.err >&5
11317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); } && {
11319 test -z "$ac_c_werror_flag" ||
11320 test ! -s conftest.err
11321 } && test -s conftest$ac_exeext && {
11322 test "$cross_compiling" = yes ||
11323 $as_test_x conftest$ac_exeext
11324 }; then
11325 ac_cv_func_dlopen=yes
11326 else
11327 $as_echo "$as_me: failed program was:" >&5
11328 sed 's/^/| /' conftest.$ac_ext >&5
11329
11330 ac_cv_func_dlopen=no
11331 fi
11332
11333 rm -rf conftest.dSYM
11334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11335 conftest$ac_exeext conftest.$ac_ext
11336 fi
11337 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11338 $as_echo "$ac_cv_func_dlopen" >&6; }
11339 if test "x$ac_cv_func_dlopen" = x""yes; then
11340 lt_cv_dlopen="dlopen"
11341 else
11342 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11343 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11344 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11345 $as_echo_n "(cached) " >&6
11346 else
11347 ac_check_lib_save_LIBS=$LIBS
11348 LIBS="-ldl $LIBS"
11349 cat >conftest.$ac_ext <<_ACEOF
11350 /* confdefs.h. */
11351 _ACEOF
11352 cat confdefs.h >>conftest.$ac_ext
11353 cat >>conftest.$ac_ext <<_ACEOF
11354 /* end confdefs.h. */
11355
11356 /* Override any GCC internal prototype to avoid an error.
11357 Use char because int might match the return type of a GCC
11358 builtin and then its argument prototype would still apply. */
11359 #ifdef __cplusplus
11360 extern "C"
11361 #endif
11362 char dlopen ();
11363 int
11364 main ()
11365 {
11366 return dlopen ();
11367 ;
11368 return 0;
11369 }
11370 _ACEOF
11371 rm -f conftest.$ac_objext conftest$ac_exeext
11372 if { (ac_try="$ac_link"
11373 case "(($ac_try" in
11374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11375 *) ac_try_echo=$ac_try;;
11376 esac
11377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11378 $as_echo "$ac_try_echo") >&5
11379 (eval "$ac_link") 2>conftest.er1
11380 ac_status=$?
11381 grep -v '^ *+' conftest.er1 >conftest.err
11382 rm -f conftest.er1
11383 cat conftest.err >&5
11384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); } && {
11386 test -z "$ac_c_werror_flag" ||
11387 test ! -s conftest.err
11388 } && test -s conftest$ac_exeext && {
11389 test "$cross_compiling" = yes ||
11390 $as_test_x conftest$ac_exeext
11391 }; then
11392 ac_cv_lib_dl_dlopen=yes
11393 else
11394 $as_echo "$as_me: failed program was:" >&5
11395 sed 's/^/| /' conftest.$ac_ext >&5
11396
11397 ac_cv_lib_dl_dlopen=no
11398 fi
11399
11400 rm -rf conftest.dSYM
11401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11402 conftest$ac_exeext conftest.$ac_ext
11403 LIBS=$ac_check_lib_save_LIBS
11404 fi
11405 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11406 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11407 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11408 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11409 else
11410 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11411 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11412 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11413 $as_echo_n "(cached) " >&6
11414 else
11415 ac_check_lib_save_LIBS=$LIBS
11416 LIBS="-lsvld $LIBS"
11417 cat >conftest.$ac_ext <<_ACEOF
11418 /* confdefs.h. */
11419 _ACEOF
11420 cat confdefs.h >>conftest.$ac_ext
11421 cat >>conftest.$ac_ext <<_ACEOF
11422 /* end confdefs.h. */
11423
11424 /* Override any GCC internal prototype to avoid an error.
11425 Use char because int might match the return type of a GCC
11426 builtin and then its argument prototype would still apply. */
11427 #ifdef __cplusplus
11428 extern "C"
11429 #endif
11430 char dlopen ();
11431 int
11432 main ()
11433 {
11434 return dlopen ();
11435 ;
11436 return 0;
11437 }
11438 _ACEOF
11439 rm -f conftest.$ac_objext conftest$ac_exeext
11440 if { (ac_try="$ac_link"
11441 case "(($ac_try" in
11442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11443 *) ac_try_echo=$ac_try;;
11444 esac
11445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11446 $as_echo "$ac_try_echo") >&5
11447 (eval "$ac_link") 2>conftest.er1
11448 ac_status=$?
11449 grep -v '^ *+' conftest.er1 >conftest.err
11450 rm -f conftest.er1
11451 cat conftest.err >&5
11452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); } && {
11454 test -z "$ac_c_werror_flag" ||
11455 test ! -s conftest.err
11456 } && test -s conftest$ac_exeext && {
11457 test "$cross_compiling" = yes ||
11458 $as_test_x conftest$ac_exeext
11459 }; then
11460 ac_cv_lib_svld_dlopen=yes
11461 else
11462 $as_echo "$as_me: failed program was:" >&5
11463 sed 's/^/| /' conftest.$ac_ext >&5
11464
11465 ac_cv_lib_svld_dlopen=no
11466 fi
11467
11468 rm -rf conftest.dSYM
11469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11470 conftest$ac_exeext conftest.$ac_ext
11471 LIBS=$ac_check_lib_save_LIBS
11472 fi
11473 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11474 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11475 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11476 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11477 else
11478 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11479 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11480 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11481 $as_echo_n "(cached) " >&6
11482 else
11483 ac_check_lib_save_LIBS=$LIBS
11484 LIBS="-ldld $LIBS"
11485 cat >conftest.$ac_ext <<_ACEOF
11486 /* confdefs.h. */
11487 _ACEOF
11488 cat confdefs.h >>conftest.$ac_ext
11489 cat >>conftest.$ac_ext <<_ACEOF
11490 /* end confdefs.h. */
11491
11492 /* Override any GCC internal prototype to avoid an error.
11493 Use char because int might match the return type of a GCC
11494 builtin and then its argument prototype would still apply. */
11495 #ifdef __cplusplus
11496 extern "C"
11497 #endif
11498 char dld_link ();
11499 int
11500 main ()
11501 {
11502 return dld_link ();
11503 ;
11504 return 0;
11505 }
11506 _ACEOF
11507 rm -f conftest.$ac_objext conftest$ac_exeext
11508 if { (ac_try="$ac_link"
11509 case "(($ac_try" in
11510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11511 *) ac_try_echo=$ac_try;;
11512 esac
11513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11514 $as_echo "$ac_try_echo") >&5
11515 (eval "$ac_link") 2>conftest.er1
11516 ac_status=$?
11517 grep -v '^ *+' conftest.er1 >conftest.err
11518 rm -f conftest.er1
11519 cat conftest.err >&5
11520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); } && {
11522 test -z "$ac_c_werror_flag" ||
11523 test ! -s conftest.err
11524 } && test -s conftest$ac_exeext && {
11525 test "$cross_compiling" = yes ||
11526 $as_test_x conftest$ac_exeext
11527 }; then
11528 ac_cv_lib_dld_dld_link=yes
11529 else
11530 $as_echo "$as_me: failed program was:" >&5
11531 sed 's/^/| /' conftest.$ac_ext >&5
11532
11533 ac_cv_lib_dld_dld_link=no
11534 fi
11535
11536 rm -rf conftest.dSYM
11537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11538 conftest$ac_exeext conftest.$ac_ext
11539 LIBS=$ac_check_lib_save_LIBS
11540 fi
11541 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11542 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11543 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11544 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11545 fi
11546
11547
11548 fi
11549
11550
11551 fi
11552
11553
11554 fi
11555
11556
11557 fi
11558
11559
11560 fi
11561
11562 ;;
11563 esac
11564
11565 if test "x$lt_cv_dlopen" != xno; then
11566 enable_dlopen=yes
11567 else
11568 enable_dlopen=no
11569 fi
11570
11571 case $lt_cv_dlopen in
11572 dlopen)
11573 save_CPPFLAGS="$CPPFLAGS"
11574 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11575
11576 save_LDFLAGS="$LDFLAGS"
11577 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11578
11579 save_LIBS="$LIBS"
11580 LIBS="$lt_cv_dlopen_libs $LIBS"
11581
11582 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11583 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11584 if test "${lt_cv_dlopen_self+set}" = set; then
11585 $as_echo_n "(cached) " >&6
11586 else
11587 if test "$cross_compiling" = yes; then :
11588 lt_cv_dlopen_self=cross
11589 else
11590 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11591 lt_status=$lt_dlunknown
11592 cat > conftest.$ac_ext <<_LT_EOF
11593 #line 11593 "configure"
11594 #include "confdefs.h"
11595
11596 #if HAVE_DLFCN_H
11597 #include <dlfcn.h>
11598 #endif
11599
11600 #include <stdio.h>
11601
11602 #ifdef RTLD_GLOBAL
11603 # define LT_DLGLOBAL RTLD_GLOBAL
11604 #else
11605 # ifdef DL_GLOBAL
11606 # define LT_DLGLOBAL DL_GLOBAL
11607 # else
11608 # define LT_DLGLOBAL 0
11609 # endif
11610 #endif
11611
11612 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11613 find out it does not work in some platform. */
11614 #ifndef LT_DLLAZY_OR_NOW
11615 # ifdef RTLD_LAZY
11616 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11617 # else
11618 # ifdef DL_LAZY
11619 # define LT_DLLAZY_OR_NOW DL_LAZY
11620 # else
11621 # ifdef RTLD_NOW
11622 # define LT_DLLAZY_OR_NOW RTLD_NOW
11623 # else
11624 # ifdef DL_NOW
11625 # define LT_DLLAZY_OR_NOW DL_NOW
11626 # else
11627 # define LT_DLLAZY_OR_NOW 0
11628 # endif
11629 # endif
11630 # endif
11631 # endif
11632 #endif
11633
11634 void fnord() { int i=42;}
11635 int main ()
11636 {
11637 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11638 int status = $lt_dlunknown;
11639
11640 if (self)
11641 {
11642 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11643 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11644 /* dlclose (self); */
11645 }
11646 else
11647 puts (dlerror ());
11648
11649 return status;
11650 }
11651 _LT_EOF
11652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11653 (eval $ac_link) 2>&5
11654 ac_status=$?
11655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11657 (./conftest; exit; ) >&5 2>/dev/null
11658 lt_status=$?
11659 case x$lt_status in
11660 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11661 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11662 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11663 esac
11664 else :
11665 # compilation failed
11666 lt_cv_dlopen_self=no
11667 fi
11668 fi
11669 rm -fr conftest*
11670
11671
11672 fi
11673 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11674 $as_echo "$lt_cv_dlopen_self" >&6; }
11675
11676 if test "x$lt_cv_dlopen_self" = xyes; then
11677 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11678 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11679 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11680 if test "${lt_cv_dlopen_self_static+set}" = set; then
11681 $as_echo_n "(cached) " >&6
11682 else
11683 if test "$cross_compiling" = yes; then :
11684 lt_cv_dlopen_self_static=cross
11685 else
11686 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11687 lt_status=$lt_dlunknown
11688 cat > conftest.$ac_ext <<_LT_EOF
11689 #line 11689 "configure"
11690 #include "confdefs.h"
11691
11692 #if HAVE_DLFCN_H
11693 #include <dlfcn.h>
11694 #endif
11695
11696 #include <stdio.h>
11697
11698 #ifdef RTLD_GLOBAL
11699 # define LT_DLGLOBAL RTLD_GLOBAL
11700 #else
11701 # ifdef DL_GLOBAL
11702 # define LT_DLGLOBAL DL_GLOBAL
11703 # else
11704 # define LT_DLGLOBAL 0
11705 # endif
11706 #endif
11707
11708 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11709 find out it does not work in some platform. */
11710 #ifndef LT_DLLAZY_OR_NOW
11711 # ifdef RTLD_LAZY
11712 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11713 # else
11714 # ifdef DL_LAZY
11715 # define LT_DLLAZY_OR_NOW DL_LAZY
11716 # else
11717 # ifdef RTLD_NOW
11718 # define LT_DLLAZY_OR_NOW RTLD_NOW
11719 # else
11720 # ifdef DL_NOW
11721 # define LT_DLLAZY_OR_NOW DL_NOW
11722 # else
11723 # define LT_DLLAZY_OR_NOW 0
11724 # endif
11725 # endif
11726 # endif
11727 # endif
11728 #endif
11729
11730 void fnord() { int i=42;}
11731 int main ()
11732 {
11733 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11734 int status = $lt_dlunknown;
11735
11736 if (self)
11737 {
11738 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11739 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11740 /* dlclose (self); */
11741 }
11742 else
11743 puts (dlerror ());
11744
11745 return status;
11746 }
11747 _LT_EOF
11748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11749 (eval $ac_link) 2>&5
11750 ac_status=$?
11751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11753 (./conftest; exit; ) >&5 2>/dev/null
11754 lt_status=$?
11755 case x$lt_status in
11756 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11757 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11758 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11759 esac
11760 else :
11761 # compilation failed
11762 lt_cv_dlopen_self_static=no
11763 fi
11764 fi
11765 rm -fr conftest*
11766
11767
11768 fi
11769 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11770 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11771 fi
11772
11773 CPPFLAGS="$save_CPPFLAGS"
11774 LDFLAGS="$save_LDFLAGS"
11775 LIBS="$save_LIBS"
11776 ;;
11777 esac
11778
11779 case $lt_cv_dlopen_self in
11780 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11781 *) enable_dlopen_self=unknown ;;
11782 esac
11783
11784 case $lt_cv_dlopen_self_static in
11785 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11786 *) enable_dlopen_self_static=unknown ;;
11787 esac
11788 fi
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806 striplib=
11807 old_striplib=
11808 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11809 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11810 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11811 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11812 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11813 { $as_echo "$as_me:$LINENO: result: yes" >&5
11814 $as_echo "yes" >&6; }
11815 else
11816 # FIXME - insert some real tests, host_os isn't really good enough
11817 case $host_os in
11818 darwin*)
11819 if test -n "$STRIP" ; then
11820 striplib="$STRIP -x"
11821 old_striplib="$STRIP -S"
11822 { $as_echo "$as_me:$LINENO: result: yes" >&5
11823 $as_echo "yes" >&6; }
11824 else
11825 { $as_echo "$as_me:$LINENO: result: no" >&5
11826 $as_echo "no" >&6; }
11827 fi
11828 ;;
11829 *)
11830 { $as_echo "$as_me:$LINENO: result: no" >&5
11831 $as_echo "no" >&6; }
11832 ;;
11833 esac
11834 fi
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847 # Report which library types will actually be built
11848 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11849 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11850 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11851 $as_echo "$can_build_shared" >&6; }
11852
11853 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11854 $as_echo_n "checking whether to build shared libraries... " >&6; }
11855 test "$can_build_shared" = "no" && enable_shared=no
11856
11857 # On AIX, shared libraries and static libraries use the same namespace, and
11858 # are all built from PIC.
11859 case $host_os in
11860 aix3*)
11861 test "$enable_shared" = yes && enable_static=no
11862 if test -n "$RANLIB"; then
11863 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11864 postinstall_cmds='$RANLIB $lib'
11865 fi
11866 ;;
11867
11868 aix[4-9]*)
11869 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11870 test "$enable_shared" = yes && enable_static=no
11871 fi
11872 ;;
11873 esac
11874 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11875 $as_echo "$enable_shared" >&6; }
11876
11877 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11878 $as_echo_n "checking whether to build static libraries... " >&6; }
11879 # Make sure either enable_shared or enable_static is yes.
11880 test "$enable_shared" = yes || enable_static=yes
11881 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11882 $as_echo "$enable_static" >&6; }
11883
11884
11885
11886
11887 fi
11888 ac_ext=c
11889 ac_cpp='$CPP $CPPFLAGS'
11890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11893
11894 CC="$lt_save_CC"
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908 ac_config_commands="$ac_config_commands libtool"
11909
11910
11911
11912
11913 # Only expand once:
11914
11915
11916
11917 # Checks for programs.
11918 if test "x$CC" != xcc; then
11919 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
11920 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11921 else
11922 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
11923 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11924 fi
11925 set dummy $CC; ac_cc=`$as_echo "$2" |
11926 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11927 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
11928 $as_echo_n "(cached) " >&6
11929 else
11930 cat >conftest.$ac_ext <<_ACEOF
11931 /* confdefs.h. */
11932 _ACEOF
11933 cat confdefs.h >>conftest.$ac_ext
11934 cat >>conftest.$ac_ext <<_ACEOF
11935 /* end confdefs.h. */
11936
11937 int
11938 main ()
11939 {
11940
11941 ;
11942 return 0;
11943 }
11944 _ACEOF
11945 # Make sure it works both with $CC and with simple cc.
11946 # We do the test twice because some compilers refuse to overwrite an
11947 # existing .o file with -o, though they will create one.
11948 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11949 rm -f conftest2.*
11950 if { (case "(($ac_try" in
11951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11952 *) ac_try_echo=$ac_try;;
11953 esac
11954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11955 $as_echo "$ac_try_echo") >&5
11956 (eval "$ac_try") 2>&5
11957 ac_status=$?
11958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); } &&
11960 test -f conftest2.$ac_objext && { (case "(($ac_try" in
11961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11962 *) ac_try_echo=$ac_try;;
11963 esac
11964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11965 $as_echo "$ac_try_echo") >&5
11966 (eval "$ac_try") 2>&5
11967 ac_status=$?
11968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); };
11970 then
11971 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11972 if test "x$CC" != xcc; then
11973 # Test first that cc exists at all.
11974 if { ac_try='cc -c conftest.$ac_ext >&5'
11975 { (case "(($ac_try" in
11976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11977 *) ac_try_echo=$ac_try;;
11978 esac
11979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11980 $as_echo "$ac_try_echo") >&5
11981 (eval "$ac_try") 2>&5
11982 ac_status=$?
11983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; }; then
11985 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11986 rm -f conftest2.*
11987 if { (case "(($ac_try" in
11988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11989 *) ac_try_echo=$ac_try;;
11990 esac
11991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11992 $as_echo "$ac_try_echo") >&5
11993 (eval "$ac_try") 2>&5
11994 ac_status=$?
11995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996 (exit $ac_status); } &&
11997 test -f conftest2.$ac_objext && { (case "(($ac_try" in
11998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11999 *) ac_try_echo=$ac_try;;
12000 esac
12001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12002 $as_echo "$ac_try_echo") >&5
12003 (eval "$ac_try") 2>&5
12004 ac_status=$?
12005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); };
12007 then
12008 # cc works too.
12009 :
12010 else
12011 # cc exists but doesn't like -o.
12012 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12013 fi
12014 fi
12015 fi
12016 else
12017 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12018 fi
12019 rm -f core conftest*
12020
12021 fi
12022 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12023 { $as_echo "$as_me:$LINENO: result: yes" >&5
12024 $as_echo "yes" >&6; }
12025 else
12026 { $as_echo "$as_me:$LINENO: result: no" >&5
12027 $as_echo "no" >&6; }
12028
12029 cat >>confdefs.h <<\_ACEOF
12030 #define NO_MINUS_C_MINUS_O 1
12031 _ACEOF
12032
12033 fi
12034
12035 # FIXME: we rely on the cache variable name because
12036 # there is no other way.
12037 set dummy $CC
12038 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12039 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12040 if test "$am_t" != yes; then
12041 # Losing compiler, so override with the script.
12042 # FIXME: It is wrong to rewrite CC.
12043 # But if we don't then we get into trouble of one sort or another.
12044 # A longer-term fix would be to have automake use am__CC in this case,
12045 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12046 CC="$am_aux_dir/compile $CC"
12047 fi
12048
12049
12050
12051
12052
12053
12054 # Define a configure option for an alternate module directory
12055
12056 # Check whether --with-xorg-module-dir was given.
12057 if test "${with_xorg_module_dir+set}" = set; then
12058 withval=$with_xorg_module_dir; moduledir="$withval"
12059 else
12060 moduledir="$libdir/xorg/modules"
12061 fi
12062
12063
12064 # Store the list of server defined optional extensions in REQUIRED_MODULES
12065
12066
12067 SAVE_CFLAGS="$CFLAGS"
12068 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
12069 cat >conftest.$ac_ext <<_ACEOF
12070 /* confdefs.h. */
12071 _ACEOF
12072 cat confdefs.h >>conftest.$ac_ext
12073 cat >>conftest.$ac_ext <<_ACEOF
12074 /* end confdefs.h. */
12075
12076 #include "xorg-server.h"
12077 #if !defined RANDR
12078 #error RANDR not defined
12079 #endif
12080
12081 int
12082 main ()
12083 {
12084
12085 ;
12086 return 0;
12087 }
12088 _ACEOF
12089 rm -f conftest.$ac_objext
12090 if { (ac_try="$ac_compile"
12091 case "(($ac_try" in
12092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12093 *) ac_try_echo=$ac_try;;
12094 esac
12095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12096 $as_echo "$ac_try_echo") >&5
12097 (eval "$ac_compile") 2>conftest.er1
12098 ac_status=$?
12099 grep -v '^ *+' conftest.er1 >conftest.err
12100 rm -f conftest.er1
12101 cat conftest.err >&5
12102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); } && {
12104 test -z "$ac_c_werror_flag" ||
12105 test ! -s conftest.err
12106 } && test -s conftest.$ac_objext; then
12107 _EXT_CHECK=yes
12108 else
12109 $as_echo "$as_me: failed program was:" >&5
12110 sed 's/^/| /' conftest.$ac_ext >&5
12111
12112 _EXT_CHECK=no
12113 fi
12114
12115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12116 CFLAGS="$SAVE_CFLAGS"
12117 { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5
12118 $as_echo_n "checking if RANDR is defined... " >&6; }
12119 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12120 $as_echo "$_EXT_CHECK" >&6; }
12121 if test "$_EXT_CHECK" != no; then
12122 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
12123 fi
12124
12125
12126
12127 SAVE_CFLAGS="$CFLAGS"
12128 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
12129 cat >conftest.$ac_ext <<_ACEOF
12130 /* confdefs.h. */
12131 _ACEOF
12132 cat confdefs.h >>conftest.$ac_ext
12133 cat >>conftest.$ac_ext <<_ACEOF
12134 /* end confdefs.h. */
12135
12136 #include "xorg-server.h"
12137 #if !defined RENDER
12138 #error RENDER not defined
12139 #endif
12140
12141 int
12142 main ()
12143 {
12144
12145 ;
12146 return 0;
12147 }
12148 _ACEOF
12149 rm -f conftest.$ac_objext
12150 if { (ac_try="$ac_compile"
12151 case "(($ac_try" in
12152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12153 *) ac_try_echo=$ac_try;;
12154 esac
12155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12156 $as_echo "$ac_try_echo") >&5
12157 (eval "$ac_compile") 2>conftest.er1
12158 ac_status=$?
12159 grep -v '^ *+' conftest.er1 >conftest.err
12160 rm -f conftest.er1
12161 cat conftest.err >&5
12162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); } && {
12164 test -z "$ac_c_werror_flag" ||
12165 test ! -s conftest.err
12166 } && test -s conftest.$ac_objext; then
12167 _EXT_CHECK=yes
12168 else
12169 $as_echo "$as_me: failed program was:" >&5
12170 sed 's/^/| /' conftest.$ac_ext >&5
12171
12172 _EXT_CHECK=no
12173 fi
12174
12175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12176 CFLAGS="$SAVE_CFLAGS"
12177 { $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5
12178 $as_echo_n "checking if RENDER is defined... " >&6; }
12179 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12180 $as_echo "$_EXT_CHECK" >&6; }
12181 if test "$_EXT_CHECK" != no; then
12182 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
12183 fi
12184
12185
12186
12187 SAVE_CFLAGS="$CFLAGS"
12188 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
12189 cat >conftest.$ac_ext <<_ACEOF
12190 /* confdefs.h. */
12191 _ACEOF
12192 cat confdefs.h >>conftest.$ac_ext
12193 cat >>conftest.$ac_ext <<_ACEOF
12194 /* end confdefs.h. */
12195
12196 #include "xorg-server.h"
12197 #if !defined DPMSExtension
12198 #error DPMSExtension not defined
12199 #endif
12200
12201 int
12202 main ()
12203 {
12204
12205 ;
12206 return 0;
12207 }
12208 _ACEOF
12209 rm -f conftest.$ac_objext
12210 if { (ac_try="$ac_compile"
12211 case "(($ac_try" in
12212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213 *) ac_try_echo=$ac_try;;
12214 esac
12215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12216 $as_echo "$ac_try_echo") >&5
12217 (eval "$ac_compile") 2>conftest.er1
12218 ac_status=$?
12219 grep -v '^ *+' conftest.er1 >conftest.err
12220 rm -f conftest.er1
12221 cat conftest.err >&5
12222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); } && {
12224 test -z "$ac_c_werror_flag" ||
12225 test ! -s conftest.err
12226 } && test -s conftest.$ac_objext; then
12227 _EXT_CHECK=yes
12228 else
12229 $as_echo "$as_me: failed program was:" >&5
12230 sed 's/^/| /' conftest.$ac_ext >&5
12231
12232 _EXT_CHECK=no
12233 fi
12234
12235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12236 CFLAGS="$SAVE_CFLAGS"
12237 { $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
12238 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
12239 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12240 $as_echo "$_EXT_CHECK" >&6; }
12241 if test "$_EXT_CHECK" != no; then
12242 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
12243 fi
12244
12245
12246
12247 SAVE_CFLAGS="$CFLAGS"
12248 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
12249 cat >conftest.$ac_ext <<_ACEOF
12250 /* confdefs.h. */
12251 _ACEOF
12252 cat confdefs.h >>conftest.$ac_ext
12253 cat >>conftest.$ac_ext <<_ACEOF
12254 /* end confdefs.h. */
12255
12256 #include "xorg-server.h"
12257 #if !defined XINERAMA
12258 #error XINERAMA not defined
12259 #endif
12260
12261 int
12262 main ()
12263 {
12264
12265 ;
12266 return 0;
12267 }
12268 _ACEOF
12269 rm -f conftest.$ac_objext
12270 if { (ac_try="$ac_compile"
12271 case "(($ac_try" in
12272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12273 *) ac_try_echo=$ac_try;;
12274 esac
12275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12276 $as_echo "$ac_try_echo") >&5
12277 (eval "$ac_compile") 2>conftest.er1
12278 ac_status=$?
12279 grep -v '^ *+' conftest.er1 >conftest.err
12280 rm -f conftest.er1
12281 cat conftest.err >&5
12282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); } && {
12284 test -z "$ac_c_werror_flag" ||
12285 test ! -s conftest.err
12286 } && test -s conftest.$ac_objext; then
12287 _EXT_CHECK=yes
12288 else
12289 $as_echo "$as_me: failed program was:" >&5
12290 sed 's/^/| /' conftest.$ac_ext >&5
12291
12292 _EXT_CHECK=no
12293 fi
12294
12295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12296 CFLAGS="$SAVE_CFLAGS"
12297 { $as_echo "$as_me:$LINENO: checking if XINERAMA is defined" >&5
12298 $as_echo_n "checking if XINERAMA is defined... " >&6; }
12299 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12300 $as_echo "$_EXT_CHECK" >&6; }
12301 if test "$_EXT_CHECK" != no; then
12302 REQUIRED_MODULES="$REQUIRED_MODULES xineramaproto"
12303 fi
12304
12305
12306
12307 SAVE_CFLAGS="$CFLAGS"
12308 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
12309 cat >conftest.$ac_ext <<_ACEOF
12310 /* confdefs.h. */
12311 _ACEOF
12312 cat confdefs.h >>conftest.$ac_ext
12313 cat >>conftest.$ac_ext <<_ACEOF
12314 /* end confdefs.h. */
12315
12316 #include "xorg-server.h"
12317 #if !defined XV
12318 #error XV not defined
12319 #endif
12320
12321 int
12322 main ()
12323 {
12324
12325 ;
12326 return 0;
12327 }
12328 _ACEOF
12329 rm -f conftest.$ac_objext
12330 if { (ac_try="$ac_compile"
12331 case "(($ac_try" in
12332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12333 *) ac_try_echo=$ac_try;;
12334 esac
12335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12336 $as_echo "$ac_try_echo") >&5
12337 (eval "$ac_compile") 2>conftest.er1
12338 ac_status=$?
12339 grep -v '^ *+' conftest.er1 >conftest.err
12340 rm -f conftest.er1
12341 cat conftest.err >&5
12342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); } && {
12344 test -z "$ac_c_werror_flag" ||
12345 test ! -s conftest.err
12346 } && test -s conftest.$ac_objext; then
12347 _EXT_CHECK=yes
12348 else
12349 $as_echo "$as_me: failed program was:" >&5
12350 sed 's/^/| /' conftest.$ac_ext >&5
12351
12352 _EXT_CHECK=no
12353 fi
12354
12355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12356 CFLAGS="$SAVE_CFLAGS"
12357 { $as_echo "$as_me:$LINENO: checking if XV is defined" >&5
12358 $as_echo_n "checking if XV is defined... " >&6; }
12359 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12360 $as_echo "$_EXT_CHECK" >&6; }
12361 if test "$_EXT_CHECK" != no; then
12362 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
12363 fi
12364
12365
12366 # Obtain compiler/linker options for the driver dependencies
12367
12368 pkg_failed=no
12369 { $as_echo "$as_me:$LINENO: checking for XORG" >&5
12370 $as_echo_n "checking for XORG... " >&6; }
12371
12372 if test -n "$XORG_CFLAGS"; then
12373 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
12374 elif test -n "$PKG_CONFIG"; then
12375 if test -n "$PKG_CONFIG" && \
12376 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.1 xproto fontsproto \$REQUIRED_MODULES\"") >&5
12377 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES") 2>&5
12378 ac_status=$?
12379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); }; then
12381 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
12382 else
12383 pkg_failed=yes
12384 fi
12385 else
12386 pkg_failed=untried
12387 fi
12388 if test -n "$XORG_LIBS"; then
12389 pkg_cv_XORG_LIBS="$XORG_LIBS"
12390 elif test -n "$PKG_CONFIG"; then
12391 if test -n "$PKG_CONFIG" && \
12392 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.1 xproto fontsproto \$REQUIRED_MODULES\"") >&5
12393 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES") 2>&5
12394 ac_status=$?
12395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); }; then
12397 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
12398 else
12399 pkg_failed=yes
12400 fi
12401 else
12402 pkg_failed=untried
12403 fi
12404
12405
12406
12407 if test $pkg_failed = yes; then
12408
12409 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12410 _pkg_short_errors_supported=yes
12411 else
12412 _pkg_short_errors_supported=no
12413 fi
12414 if test $_pkg_short_errors_supported = yes; then
12415 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES" 2>&1`
12416 else
12417 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES" 2>&1`
12418 fi
12419 # Put the nasty error message in config.log where it belongs
12420 echo "$XORG_PKG_ERRORS" >&5
12421
12422 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES) were not met:
12423
12424 $XORG_PKG_ERRORS
12425
12426 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12427 installed software in a non-standard prefix.
12428
12429 Alternatively, you may set the environment variables XORG_CFLAGS
12430 and XORG_LIBS to avoid the need to call pkg-config.
12431 See the pkg-config man page for more details.
12432 " >&5
12433 $as_echo "$as_me: error: Package requirements (xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES) were not met:
12434
12435 $XORG_PKG_ERRORS
12436
12437 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12438 installed software in a non-standard prefix.
12439
12440 Alternatively, you may set the environment variables XORG_CFLAGS
12441 and XORG_LIBS to avoid the need to call pkg-config.
12442 See the pkg-config man page for more details.
12443 " >&2;}
12444 { (exit 1); exit 1; }; }
12445 elif test $pkg_failed = untried; then
12446 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12448 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12449 is in your PATH or set the PKG_CONFIG environment variable to the full
12450 path to pkg-config.
12451
12452 Alternatively, you may set the environment variables XORG_CFLAGS
12453 and XORG_LIBS to avoid the need to call pkg-config.
12454 See the pkg-config man page for more details.
12455
12456 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12457 See \`config.log' for more details." >&5
12458 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12459 is in your PATH or set the PKG_CONFIG environment variable to the full
12460 path to pkg-config.
12461
12462 Alternatively, you may set the environment variables XORG_CFLAGS
12463 and XORG_LIBS to avoid the need to call pkg-config.
12464 See the pkg-config man page for more details.
12465
12466 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12467 See \`config.log' for more details." >&2;}
12468 { (exit 1); exit 1; }; }; }
12469 else
12470 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
12471 XORG_LIBS=$pkg_cv_XORG_LIBS
12472 { $as_echo "$as_me:$LINENO: result: yes" >&5
12473 $as_echo "yes" >&6; }
12474 :
12475 fi
12476
12477 pkg_failed=no
12478 { $as_echo "$as_me:$LINENO: checking for DRM" >&5
12479 $as_echo_n "checking for DRM... " >&6; }
12480
12481 if test -n "$DRM_CFLAGS"; then
12482 pkg_cv_DRM_CFLAGS="$DRM_CFLAGS"
12483 elif test -n "$PKG_CONFIG"; then
12484 if test -n "$PKG_CONFIG" && \
12485 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm\"") >&5
12486 ($PKG_CONFIG --exists --print-errors "libdrm") 2>&5
12487 ac_status=$?
12488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); }; then
12490 pkg_cv_DRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm" 2>/dev/null`
12491 else
12492 pkg_failed=yes
12493 fi
12494 else
12495 pkg_failed=untried
12496 fi
12497 if test -n "$DRM_LIBS"; then
12498 pkg_cv_DRM_LIBS="$DRM_LIBS"
12499 elif test -n "$PKG_CONFIG"; then
12500 if test -n "$PKG_CONFIG" && \
12501 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm\"") >&5
12502 ($PKG_CONFIG --exists --print-errors "libdrm") 2>&5
12503 ac_status=$?
12504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); }; then
12506 pkg_cv_DRM_LIBS=`$PKG_CONFIG --libs "libdrm" 2>/dev/null`
12507 else
12508 pkg_failed=yes
12509 fi
12510 else
12511 pkg_failed=untried
12512 fi
12513
12514
12515
12516 if test $pkg_failed = yes; then
12517
12518 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12519 _pkg_short_errors_supported=yes
12520 else
12521 _pkg_short_errors_supported=no
12522 fi
12523 if test $_pkg_short_errors_supported = yes; then
12524 DRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm" 2>&1`
12525 else
12526 DRM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm" 2>&1`
12527 fi
12528 # Put the nasty error message in config.log where it belongs
12529 echo "$DRM_PKG_ERRORS" >&5
12530
12531 { { $as_echo "$as_me:$LINENO: error: Package requirements (libdrm) were not met:
12532
12533 $DRM_PKG_ERRORS
12534
12535 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12536 installed software in a non-standard prefix.
12537
12538 Alternatively, you may set the environment variables DRM_CFLAGS
12539 and DRM_LIBS to avoid the need to call pkg-config.
12540 See the pkg-config man page for more details.
12541 " >&5
12542 $as_echo "$as_me: error: Package requirements (libdrm) were not met:
12543
12544 $DRM_PKG_ERRORS
12545
12546 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12547 installed software in a non-standard prefix.
12548
12549 Alternatively, you may set the environment variables DRM_CFLAGS
12550 and DRM_LIBS to avoid the need to call pkg-config.
12551 See the pkg-config man page for more details.
12552 " >&2;}
12553 { (exit 1); exit 1; }; }
12554 elif test $pkg_failed = untried; then
12555 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12557 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12558 is in your PATH or set the PKG_CONFIG environment variable to the full
12559 path to pkg-config.
12560
12561 Alternatively, you may set the environment variables DRM_CFLAGS
12562 and DRM_LIBS to avoid the need to call pkg-config.
12563 See the pkg-config man page for more details.
12564
12565 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12566 See \`config.log' for more details." >&5
12567 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12568 is in your PATH or set the PKG_CONFIG environment variable to the full
12569 path to pkg-config.
12570
12571 Alternatively, you may set the environment variables DRM_CFLAGS
12572 and DRM_LIBS to avoid the need to call pkg-config.
12573 See the pkg-config man page for more details.
12574
12575 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12576 See \`config.log' for more details." >&2;}
12577 { (exit 1); exit 1; }; }; }
12578 else
12579 DRM_CFLAGS=$pkg_cv_DRM_CFLAGS
12580 DRM_LIBS=$pkg_cv_DRM_LIBS
12581 { $as_echo "$as_me:$LINENO: result: yes" >&5
12582 $as_echo "yes" >&6; }
12583 :
12584 fi
12585
12586 if test -n "$PKG_CONFIG" && \
12587 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0\"") >&5
12588 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0") 2>&5
12589 ac_status=$?
12590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); }; then
12592
12593 cat >>confdefs.h <<\_ACEOF
12594 #define HAVE_XORG_SERVER_1_1_0 1
12595 _ACEOF
12596
12597 fi
12598
12599 if test -n "$PKG_CONFIG" && \
12600 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901\"") >&5
12601 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901") 2>&5
12602 ac_status=$?
12603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604 (exit $ac_status); }; then
12605
12606 cat >>confdefs.h <<\_ACEOF
12607 #define HAVE_XORG_SERVER_1_0_99_901 1
12608 _ACEOF
12609
12610 fi
12611
12612 if test -n "$PKG_CONFIG" && \
12613 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2.0\"") >&5
12614 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2.0") 2>&5
12615 ac_status=$?
12616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 (exit $ac_status); }; then
12618
12619 cat >>confdefs.h <<\_ACEOF
12620 #define HAVE_XORG_SERVER_1_2_0 1
12621 _ACEOF
12622
12623 fi
12624
12625 if test -n "$PKG_CONFIG" && \
12626 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.7.0\"") >&5
12627 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.7.0") 2>&5
12628 ac_status=$?
12629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); }; then
12631
12632 cat >>confdefs.h <<\_ACEOF
12633 #define HAVE_XORG_SERVER_1_7_0 1
12634 _ACEOF
12635
12636 fi
12637
12638 # Checks for libraries.
12639
12640 save_CFLAGS="$CFLAGS"
12641 CFLAGS="$XORG_CFLAGS"
12642 { $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5
12643 $as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; }
12644 if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then
12645 $as_echo_n "(cached) " >&6
12646 else
12647 cat >conftest.$ac_ext <<_ACEOF
12648 /* confdefs.h. */
12649 _ACEOF
12650 cat confdefs.h >>conftest.$ac_ext
12651 cat >>conftest.$ac_ext <<_ACEOF
12652 /* end confdefs.h. */
12653 #include "xorg-server.h"
12654
12655 int
12656 main ()
12657 {
12658 #ifndef XSERVER_LIBPCIACCESS
12659 (void) XSERVER_LIBPCIACCESS;
12660 #endif
12661
12662 ;
12663 return 0;
12664 }
12665 _ACEOF
12666 rm -f conftest.$ac_objext
12667 if { (ac_try="$ac_compile"
12668 case "(($ac_try" in
12669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12670 *) ac_try_echo=$ac_try;;
12671 esac
12672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12673 $as_echo "$ac_try_echo") >&5
12674 (eval "$ac_compile") 2>conftest.er1
12675 ac_status=$?
12676 grep -v '^ *+' conftest.er1 >conftest.err
12677 rm -f conftest.er1
12678 cat conftest.err >&5
12679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); } && {
12681 test -z "$ac_c_werror_flag" ||
12682 test ! -s conftest.err
12683 } && test -s conftest.$ac_objext; then
12684 ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes
12685 else
12686 $as_echo "$as_me: failed program was:" >&5
12687 sed 's/^/| /' conftest.$ac_ext >&5
12688
12689 ac_cv_have_decl_XSERVER_LIBPCIACCESS=no
12690 fi
12691
12692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12693 fi
12694 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5
12695 $as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; }
12696 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then
12697 XSERVER_LIBPCIACCESS=yes
12698 else
12699 XSERVER_LIBPCIACCESS=no
12700 fi
12701
12702 CFLAGS="$save_CFLAGS"
12703
12704 if test x$XSERVER_LIBPCIACCESS = xyes; then
12705
12706 pkg_failed=no
12707 { $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5
12708 $as_echo_n "checking for PCIACCESS... " >&6; }
12709
12710 if test -n "$PCIACCESS_CFLAGS"; then
12711 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
12712 elif test -n "$PKG_CONFIG"; then
12713 if test -n "$PKG_CONFIG" && \
12714 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
12715 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
12716 ac_status=$?
12717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); }; then
12719 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
12720 else
12721 pkg_failed=yes
12722 fi
12723 else
12724 pkg_failed=untried
12725 fi
12726 if test -n "$PCIACCESS_LIBS"; then
12727 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
12728 elif test -n "$PKG_CONFIG"; then
12729 if test -n "$PKG_CONFIG" && \
12730 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
12731 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
12732 ac_status=$?
12733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); }; then
12735 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
12736 else
12737 pkg_failed=yes
12738 fi
12739 else
12740 pkg_failed=untried
12741 fi
12742
12743
12744
12745 if test $pkg_failed = yes; then
12746
12747 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12748 _pkg_short_errors_supported=yes
12749 else
12750 _pkg_short_errors_supported=no
12751 fi
12752 if test $_pkg_short_errors_supported = yes; then
12753 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
12754 else
12755 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
12756 fi
12757 # Put the nasty error message in config.log where it belongs
12758 echo "$PCIACCESS_PKG_ERRORS" >&5
12759
12760 { { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met:
12761
12762 $PCIACCESS_PKG_ERRORS
12763
12764 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12765 installed software in a non-standard prefix.
12766
12767 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12768 and PCIACCESS_LIBS to avoid the need to call pkg-config.
12769 See the pkg-config man page for more details.
12770 " >&5
12771 $as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met:
12772
12773 $PCIACCESS_PKG_ERRORS
12774
12775 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12776 installed software in a non-standard prefix.
12777
12778 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12779 and PCIACCESS_LIBS to avoid the need to call pkg-config.
12780 See the pkg-config man page for more details.
12781 " >&2;}
12782 { (exit 1); exit 1; }; }
12783 elif test $pkg_failed = untried; then
12784 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12786 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12787 is in your PATH or set the PKG_CONFIG environment variable to the full
12788 path to pkg-config.
12789
12790 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12791 and PCIACCESS_LIBS to avoid the need to call pkg-config.
12792 See the pkg-config man page for more details.
12793
12794 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12795 See \`config.log' for more details." >&5
12796 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12797 is in your PATH or set the PKG_CONFIG environment variable to the full
12798 path to pkg-config.
12799
12800 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12801 and PCIACCESS_LIBS to avoid the need to call pkg-config.
12802 See the pkg-config man page for more details.
12803
12804 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12805 See \`config.log' for more details." >&2;}
12806 { (exit 1); exit 1; }; }; }
12807 else
12808 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
12809 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
12810 { $as_echo "$as_me:$LINENO: result: yes" >&5
12811 $as_echo "yes" >&6; }
12812 :
12813 fi
12814 fi
12815
12816 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
12817 XSERVER_LIBPCIACCESS_TRUE=
12818 XSERVER_LIBPCIACCESS_FALSE='#'
12819 else
12820 XSERVER_LIBPCIACCESS_TRUE='#'
12821 XSERVER_LIBPCIACCESS_FALSE=
12822 fi
12823
12824
12825
12826
12827 DRIVER_NAME=vmware
12828
12829
12830 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
12831
12832 cat >confcache <<\_ACEOF
12833 # This file is a shell script that caches the results of configure
12834 # tests run on this system so they can be shared between configure
12835 # scripts and configure runs, see configure's option --config-cache.
12836 # It is not useful on other systems. If it contains results you don't
12837 # want to keep, you may remove or edit it.
12838 #
12839 # config.status only pays attention to the cache file if you give it
12840 # the --recheck option to rerun configure.
12841 #
12842 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12843 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12844 # following values.
12845
12846 _ACEOF
12847
12848 # The following way of writing the cache mishandles newlines in values,
12849 # but we know of no workaround that is simple, portable, and efficient.
12850 # So, we kill variables containing newlines.
12851 # Ultrix sh set writes to stderr and can't be redirected directly,
12852 # and sets the high bit in the cache file unless we assign to the vars.
12853 (
12854 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12855 eval ac_val=\$$ac_var
12856 case $ac_val in #(
12857 *${as_nl}*)
12858 case $ac_var in #(
12859 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12860 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12861 esac
12862 case $ac_var in #(
12863 _ | IFS | as_nl) ;; #(
12864 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12865 *) $as_unset $ac_var ;;
12866 esac ;;
12867 esac
12868 done
12869
12870 (set) 2>&1 |
12871 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12872 *${as_nl}ac_space=\ *)
12873 # `set' does not quote correctly, so add quotes (double-quote
12874 # substitution turns \\\\ into \\, and sed turns \\ into \).
12875 sed -n \
12876 "s/'/'\\\\''/g;
12877 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12878 ;; #(
12879 *)
12880 # `set' quotes correctly as required by POSIX, so do not add quotes.
12881 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12882 ;;
12883 esac |
12884 sort
12885 ) |
12886 sed '
12887 /^ac_cv_env_/b end
12888 t clear
12889 :clear
12890 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12891 t end
12892 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12893 :end' >>confcache
12894 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12895 if test -w "$cache_file"; then
12896 test "x$cache_file" != "x/dev/null" &&
12897 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12898 $as_echo "$as_me: updating cache $cache_file" >&6;}
12899 cat confcache >$cache_file
12900 else
12901 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12902 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12903 fi
12904 fi
12905 rm -f confcache
12906
12907 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12908 # Let make expand exec_prefix.
12909 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12910
12911 DEFS=-DHAVE_CONFIG_H
12912
12913 ac_libobjs=
12914 ac_ltlibobjs=
12915 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12916 # 1. Remove the extension, and $U if already installed.
12917 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12918 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12919 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12920 # will be set to the directory where LIBOBJS objects are built.
12921 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12922 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12923 done
12924 LIBOBJS=$ac_libobjs
12925
12926 LTLIBOBJS=$ac_ltlibobjs
12927
12928
12929 if test -n "$EXEEXT"; then
12930 am__EXEEXT_TRUE=
12931 am__EXEEXT_FALSE='#'
12932 else
12933 am__EXEEXT_TRUE='#'
12934 am__EXEEXT_FALSE=
12935 fi
12936
12937 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12938 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12939 Usually this means the macro was only invoked conditionally." >&5
12940 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12941 Usually this means the macro was only invoked conditionally." >&2;}
12942 { (exit 1); exit 1; }; }
12943 fi
12944 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12945 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12946 Usually this means the macro was only invoked conditionally." >&5
12947 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
12948 Usually this means the macro was only invoked conditionally." >&2;}
12949 { (exit 1); exit 1; }; }
12950 fi
12951 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12952 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12953 Usually this means the macro was only invoked conditionally." >&5
12954 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12955 Usually this means the macro was only invoked conditionally." >&2;}
12956 { (exit 1); exit 1; }; }
12957 fi
12958 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
12959 { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
12960 Usually this means the macro was only invoked conditionally." >&5
12961 $as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
12962 Usually this means the macro was only invoked conditionally." >&2;}
12963 { (exit 1); exit 1; }; }
12964 fi
12965
12966 : ${CONFIG_STATUS=./config.status}
12967 ac_write_fail=0
12968 ac_clean_files_save=$ac_clean_files
12969 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12970 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12971 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12972 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12973 #! $SHELL
12974 # Generated by $as_me.
12975 # Run this file to recreate the current configuration.
12976 # Compiler output produced by configure, useful for debugging
12977 # configure, is in config.log if it exists.
12978
12979 debug=false
12980 ac_cs_recheck=false
12981 ac_cs_silent=false
12982 SHELL=\${CONFIG_SHELL-$SHELL}
12983 _ACEOF
12984
12985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12986 ## --------------------- ##
12987 ## M4sh Initialization. ##
12988 ## --------------------- ##
12989
12990 # Be more Bourne compatible
12991 DUALCASE=1; export DUALCASE # for MKS sh
12992 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12993 emulate sh
12994 NULLCMD=:
12995 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12996 # is contrary to our usage. Disable this feature.
12997 alias -g '${1+"$@"}'='"$@"'
12998 setopt NO_GLOB_SUBST
12999 else
13000 case `(set -o) 2>/dev/null` in
13001 *posix*) set -o posix ;;
13002 esac
13003
13004 fi
13005
13006
13007
13008
13009 # PATH needs CR
13010 # Avoid depending upon Character Ranges.
13011 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13012 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13013 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13014 as_cr_digits='0123456789'
13015 as_cr_alnum=$as_cr_Letters$as_cr_digits
13016
13017 as_nl='
13018 '
13019 export as_nl
13020 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13021 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13022 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13023 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13024 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13025 as_echo='printf %s\n'
13026 as_echo_n='printf %s'
13027 else
13028 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13029 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13030 as_echo_n='/usr/ucb/echo -n'
13031 else
13032 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13033 as_echo_n_body='eval
13034 arg=$1;
13035 case $arg in
13036 *"$as_nl"*)
13037 expr "X$arg" : "X\\(.*\\)$as_nl";
13038 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13039 esac;
13040 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13041 '
13042 export as_echo_n_body
13043 as_echo_n='sh -c $as_echo_n_body as_echo'
13044 fi
13045 export as_echo_body
13046 as_echo='sh -c $as_echo_body as_echo'
13047 fi
13048
13049 # The user is always right.
13050 if test "${PATH_SEPARATOR+set}" != set; then
13051 PATH_SEPARATOR=:
13052 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13053 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13054 PATH_SEPARATOR=';'
13055 }
13056 fi
13057
13058 # Support unset when possible.
13059 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13060 as_unset=unset
13061 else
13062 as_unset=false
13063 fi
13064
13065
13066 # IFS
13067 # We need space, tab and new line, in precisely that order. Quoting is
13068 # there to prevent editors from complaining about space-tab.
13069 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13070 # splitting by setting IFS to empty value.)
13071 IFS=" "" $as_nl"
13072
13073 # Find who we are. Look in the path if we contain no directory separator.
13074 case $0 in
13075 *[\\/]* ) as_myself=$0 ;;
13076 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13077 for as_dir in $PATH
13078 do
13079 IFS=$as_save_IFS
13080 test -z "$as_dir" && as_dir=.
13081 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13082 done
13083 IFS=$as_save_IFS
13084
13085 ;;
13086 esac
13087 # We did not find ourselves, most probably we were run as `sh COMMAND'
13088 # in which case we are not to be found in the path.
13089 if test "x$as_myself" = x; then
13090 as_myself=$0
13091 fi
13092 if test ! -f "$as_myself"; then
13093 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13094 { (exit 1); exit 1; }
13095 fi
13096
13097 # Work around bugs in pre-3.0 UWIN ksh.
13098 for as_var in ENV MAIL MAILPATH
13099 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13100 done
13101 PS1='$ '
13102 PS2='> '
13103 PS4='+ '
13104
13105 # NLS nuisances.
13106 LC_ALL=C
13107 export LC_ALL
13108 LANGUAGE=C
13109 export LANGUAGE
13110
13111 # Required to use basename.
13112 if expr a : '\(a\)' >/dev/null 2>&1 &&
13113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13114 as_expr=expr
13115 else
13116 as_expr=false
13117 fi
13118
13119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13120 as_basename=basename
13121 else
13122 as_basename=false
13123 fi
13124
13125
13126 # Name of the executable.
13127 as_me=`$as_basename -- "$0" ||
13128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13129 X"$0" : 'X\(//\)$' \| \
13130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13131 $as_echo X/"$0" |
13132 sed '/^.*\/\([^/][^/]*\)\/*$/{
13133 s//\1/
13134 q
13135 }
13136 /^X\/\(\/\/\)$/{
13137 s//\1/
13138 q
13139 }
13140 /^X\/\(\/\).*/{
13141 s//\1/
13142 q
13143 }
13144 s/.*/./; q'`
13145
13146 # CDPATH.
13147 $as_unset CDPATH
13148
13149
13150
13151 as_lineno_1=$LINENO
13152 as_lineno_2=$LINENO
13153 test "x$as_lineno_1" != "x$as_lineno_2" &&
13154 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13155
13156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13157 # uniformly replaced by the line number. The first 'sed' inserts a
13158 # line-number line after each line using $LINENO; the second 'sed'
13159 # does the real work. The second script uses 'N' to pair each
13160 # line-number line with the line containing $LINENO, and appends
13161 # trailing '-' during substitution so that $LINENO is not a special
13162 # case at line end.
13163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13164 # scripts with optimization help from Paolo Bonzini. Blame Lee
13165 # E. McMahon (1931-1989) for sed's syntax. :-)
13166 sed -n '
13167 p
13168 /[$]LINENO/=
13169 ' <$as_myself |
13170 sed '
13171 s/[$]LINENO.*/&-/
13172 t lineno
13173 b
13174 :lineno
13175 N
13176 :loop
13177 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13178 t loop
13179 s/-\n.*//
13180 ' >$as_me.lineno &&
13181 chmod +x "$as_me.lineno" ||
13182 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13183 { (exit 1); exit 1; }; }
13184
13185 # Don't try to exec as it changes $[0], causing all sort of problems
13186 # (the dirname of $[0] is not the place where we might find the
13187 # original and so on. Autoconf is especially sensitive to this).
13188 . "./$as_me.lineno"
13189 # Exit status is that of the last command.
13190 exit
13191 }
13192
13193
13194 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13195 as_dirname=dirname
13196 else
13197 as_dirname=false
13198 fi
13199
13200 ECHO_C= ECHO_N= ECHO_T=
13201 case `echo -n x` in
13202 -n*)
13203 case `echo 'x\c'` in
13204 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13205 *) ECHO_C='\c';;
13206 esac;;
13207 *)
13208 ECHO_N='-n';;
13209 esac
13210 if expr a : '\(a\)' >/dev/null 2>&1 &&
13211 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13212 as_expr=expr
13213 else
13214 as_expr=false
13215 fi
13216
13217 rm -f conf$$ conf$$.exe conf$$.file
13218 if test -d conf$$.dir; then
13219 rm -f conf$$.dir/conf$$.file
13220 else
13221 rm -f conf$$.dir
13222 mkdir conf$$.dir 2>/dev/null
13223 fi
13224 if (echo >conf$$.file) 2>/dev/null; then
13225 if ln -s conf$$.file conf$$ 2>/dev/null; then
13226 as_ln_s='ln -s'
13227 # ... but there are two gotchas:
13228 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13229 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13230 # In both cases, we have to default to `cp -p'.
13231 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13232 as_ln_s='cp -p'
13233 elif ln conf$$.file conf$$ 2>/dev/null; then
13234 as_ln_s=ln
13235 else
13236 as_ln_s='cp -p'
13237 fi
13238 else
13239 as_ln_s='cp -p'
13240 fi
13241 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13242 rmdir conf$$.dir 2>/dev/null
13243
13244 if mkdir -p . 2>/dev/null; then
13245 as_mkdir_p=:
13246 else
13247 test -d ./-p && rmdir ./-p
13248 as_mkdir_p=false
13249 fi
13250
13251 if test -x / >/dev/null 2>&1; then
13252 as_test_x='test -x'
13253 else
13254 if ls -dL / >/dev/null 2>&1; then
13255 as_ls_L_option=L
13256 else
13257 as_ls_L_option=
13258 fi
13259 as_test_x='
13260 eval sh -c '\''
13261 if test -d "$1"; then
13262 test -d "$1/.";
13263 else
13264 case $1 in
13265 -*)set "./$1";;
13266 esac;
13267 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13268 ???[sx]*):;;*)false;;esac;fi
13269 '\'' sh
13270 '
13271 fi
13272 as_executable_p=$as_test_x
13273
13274 # Sed expression to map a string onto a valid CPP name.
13275 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13276
13277 # Sed expression to map a string onto a valid variable name.
13278 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13279
13280
13281 exec 6>&1
13282
13283 # Save the log message, to keep $[0] and so on meaningful, and to
13284 # report actual input values of CONFIG_FILES etc. instead of their
13285 # values after options handling.
13286 ac_log="
13287 This file was extended by xf86-video-vmware $as_me 11.0.2, which was
13288 generated by GNU Autoconf 2.63. Invocation command line was
13289
13290 CONFIG_FILES = $CONFIG_FILES
13291 CONFIG_HEADERS = $CONFIG_HEADERS
13292 CONFIG_LINKS = $CONFIG_LINKS
13293 CONFIG_COMMANDS = $CONFIG_COMMANDS
13294 $ $0 $@
13295
13296 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13297 "
13298
13299 _ACEOF
13300
13301 case $ac_config_files in *"
13302 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13303 esac
13304
13305 case $ac_config_headers in *"
13306 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13307 esac
13308
13309
13310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13311 # Files that config.status was made for.
13312 config_files="$ac_config_files"
13313 config_headers="$ac_config_headers"
13314 config_commands="$ac_config_commands"
13315
13316 _ACEOF
13317
13318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13319 ac_cs_usage="\
13320 \`$as_me' instantiates files from templates according to the
13321 current configuration.
13322
13323 Usage: $0 [OPTION]... [FILE]...
13324
13325 -h, --help print this help, then exit
13326 -V, --version print version number and configuration settings, then exit
13327 -q, --quiet, --silent
13328 do not print progress messages
13329 -d, --debug don't remove temporary files
13330 --recheck update $as_me by reconfiguring in the same conditions
13331 --file=FILE[:TEMPLATE]
13332 instantiate the configuration file FILE
13333 --header=FILE[:TEMPLATE]
13334 instantiate the configuration header FILE
13335
13336 Configuration files:
13337 $config_files
13338
13339 Configuration headers:
13340 $config_headers
13341
13342 Configuration commands:
13343 $config_commands
13344
13345 Report bugs to <bug-autoconf (at] gnu.org>."
13346
13347 _ACEOF
13348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13349 ac_cs_version="\\
13350 xf86-video-vmware config.status 11.0.2
13351 configured by $0, generated by GNU Autoconf 2.63,
13352 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13353
13354 Copyright (C) 2008 Free Software Foundation, Inc.
13355 This config.status script is free software; the Free Software Foundation
13356 gives unlimited permission to copy, distribute and modify it."
13357
13358 ac_pwd='$ac_pwd'
13359 srcdir='$srcdir'
13360 INSTALL='$INSTALL'
13361 MKDIR_P='$MKDIR_P'
13362 AWK='$AWK'
13363 test -n "\$AWK" || AWK=awk
13364 _ACEOF
13365
13366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13367 # The default lists apply if the user does not specify any file.
13368 ac_need_defaults=:
13369 while test $# != 0
13370 do
13371 case $1 in
13372 --*=*)
13373 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13374 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13375 ac_shift=:
13376 ;;
13377 *)
13378 ac_option=$1
13379 ac_optarg=$2
13380 ac_shift=shift
13381 ;;
13382 esac
13383
13384 case $ac_option in
13385 # Handling of the options.
13386 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13387 ac_cs_recheck=: ;;
13388 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13389 $as_echo "$ac_cs_version"; exit ;;
13390 --debug | --debu | --deb | --de | --d | -d )
13391 debug=: ;;
13392 --file | --fil | --fi | --f )
13393 $ac_shift
13394 case $ac_optarg in
13395 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13396 esac
13397 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13398 ac_need_defaults=false;;
13399 --header | --heade | --head | --hea )
13400 $ac_shift
13401 case $ac_optarg in
13402 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13403 esac
13404 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13405 ac_need_defaults=false;;
13406 --he | --h)
13407 # Conflict between --help and --header
13408 { $as_echo "$as_me: error: ambiguous option: $1
13409 Try \`$0 --help' for more information." >&2
13410 { (exit 1); exit 1; }; };;
13411 --help | --hel | -h )
13412 $as_echo "$ac_cs_usage"; exit ;;
13413 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13414 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13415 ac_cs_silent=: ;;
13416
13417 # This is an error.
13418 -*) { $as_echo "$as_me: error: unrecognized option: $1
13419 Try \`$0 --help' for more information." >&2
13420 { (exit 1); exit 1; }; } ;;
13421
13422 *) ac_config_targets="$ac_config_targets $1"
13423 ac_need_defaults=false ;;
13424
13425 esac
13426 shift
13427 done
13428
13429 ac_configure_extra_args=
13430
13431 if $ac_cs_silent; then
13432 exec 6>/dev/null
13433 ac_configure_extra_args="$ac_configure_extra_args --silent"
13434 fi
13435
13436 _ACEOF
13437 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13438 if \$ac_cs_recheck; then
13439 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13440 shift
13441 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13442 CONFIG_SHELL='$SHELL'
13443 export CONFIG_SHELL
13444 exec "\$@"
13445 fi
13446
13447 _ACEOF
13448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13449 exec 5>>config.log
13450 {
13451 echo
13452 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13453 ## Running $as_me. ##
13454 _ASBOX
13455 $as_echo "$ac_log"
13456 } >&5
13457
13458 _ACEOF
13459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13460 #
13461 # INIT-COMMANDS
13462 #
13463 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13464
13465
13466 # The HP-UX ksh and POSIX shell print the target directory to stdout
13467 # if CDPATH is set.
13468 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13469
13470 sed_quote_subst='$sed_quote_subst'
13471 double_quote_subst='$double_quote_subst'
13472 delay_variable_subst='$delay_variable_subst'
13473 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13474 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13475 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13476 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13477 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13478 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13479 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13480 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13481 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13482 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13483 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13484 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13485 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13486 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13487 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13488 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13489 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13490 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13491 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13492 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13493 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13494 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13495 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13496 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13497 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13498 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13499 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13500 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13501 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13502 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13503 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13504 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13505 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13506 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13507 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13508 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13509 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13510 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13511 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13512 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13513 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13514 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13515 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13516 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13517 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"`'
13518 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"`'
13519 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13520 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13521 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13522 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13523 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13524 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13525 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13526 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13527 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13528 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13529 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13530 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13531 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13532 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13533 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13534 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13535 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13536 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13537 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13538 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13539 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13540 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13541 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13542 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13543 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13544 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13545 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13546 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13547 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13548 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13549 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13550 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13551 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13552 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13553 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13554 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13555 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13556 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13557 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13558 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13559 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13560 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13561 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13562 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13563 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13564 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13565 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13566 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13567 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13568 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13569 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13570 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13571 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13572 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13573 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13574 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13575 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13576 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13577 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13578 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13579 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13580 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13581 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13582 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13583 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13584 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13585 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13586 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13587 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13588 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13589 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13590 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13591
13592 LTCC='$LTCC'
13593 LTCFLAGS='$LTCFLAGS'
13594 compiler='$compiler_DEFAULT'
13595
13596 # Quote evaled strings.
13597 for var in SED \
13598 GREP \
13599 EGREP \
13600 FGREP \
13601 LD \
13602 NM \
13603 LN_S \
13604 lt_SP2NL \
13605 lt_NL2SP \
13606 reload_flag \
13607 OBJDUMP \
13608 deplibs_check_method \
13609 file_magic_cmd \
13610 AR \
13611 AR_FLAGS \
13612 STRIP \
13613 RANLIB \
13614 CC \
13615 CFLAGS \
13616 compiler \
13617 lt_cv_sys_global_symbol_pipe \
13618 lt_cv_sys_global_symbol_to_cdecl \
13619 lt_cv_sys_global_symbol_to_c_name_address \
13620 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13621 SHELL \
13622 ECHO \
13623 lt_prog_compiler_no_builtin_flag \
13624 lt_prog_compiler_wl \
13625 lt_prog_compiler_pic \
13626 lt_prog_compiler_static \
13627 lt_cv_prog_compiler_c_o \
13628 need_locks \
13629 DSYMUTIL \
13630 NMEDIT \
13631 LIPO \
13632 OTOOL \
13633 OTOOL64 \
13634 shrext_cmds \
13635 export_dynamic_flag_spec \
13636 whole_archive_flag_spec \
13637 compiler_needs_object \
13638 with_gnu_ld \
13639 allow_undefined_flag \
13640 no_undefined_flag \
13641 hardcode_libdir_flag_spec \
13642 hardcode_libdir_flag_spec_ld \
13643 hardcode_libdir_separator \
13644 fix_srcfile_path \
13645 exclude_expsyms \
13646 include_expsyms \
13647 file_list_spec \
13648 variables_saved_for_relink \
13649 libname_spec \
13650 library_names_spec \
13651 soname_spec \
13652 finish_eval \
13653 old_striplib \
13654 striplib; do
13655 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13656 *[\\\\\\\`\\"\\\$]*)
13657 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13658 ;;
13659 *)
13660 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13661 ;;
13662 esac
13663 done
13664
13665 # Double-quote double-evaled strings.
13666 for var in reload_cmds \
13667 old_postinstall_cmds \
13668 old_postuninstall_cmds \
13669 old_archive_cmds \
13670 extract_expsyms_cmds \
13671 old_archive_from_new_cmds \
13672 old_archive_from_expsyms_cmds \
13673 archive_cmds \
13674 archive_expsym_cmds \
13675 module_cmds \
13676 module_expsym_cmds \
13677 export_symbols_cmds \
13678 prelink_cmds \
13679 postinstall_cmds \
13680 postuninstall_cmds \
13681 finish_cmds \
13682 sys_lib_search_path_spec \
13683 sys_lib_dlsearch_path_spec; do
13684 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13685 *[\\\\\\\`\\"\\\$]*)
13686 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13687 ;;
13688 *)
13689 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13690 ;;
13691 esac
13692 done
13693
13694 # Fix-up fallback echo if it was mangled by the above quoting rules.
13695 case \$lt_ECHO in
13696 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13697 ;;
13698 esac
13699
13700 ac_aux_dir='$ac_aux_dir'
13701 xsi_shell='$xsi_shell'
13702 lt_shell_append='$lt_shell_append'
13703
13704 # See if we are running on zsh, and set the options which allow our
13705 # commands through without removal of \ escapes INIT.
13706 if test -n "\${ZSH_VERSION+set}" ; then
13707 setopt NO_GLOB_SUBST
13708 fi
13709
13710
13711 PACKAGE='$PACKAGE'
13712 VERSION='$VERSION'
13713 TIMESTAMP='$TIMESTAMP'
13714 RM='$RM'
13715 ofile='$ofile'
13716
13717
13718
13719
13720 _ACEOF
13721
13722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13723
13724 # Handling of arguments.
13725 for ac_config_target in $ac_config_targets
13726 do
13727 case $ac_config_target in
13728 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13729 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13730 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13731 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13732 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13733 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13734
13735 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13736 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13737 { (exit 1); exit 1; }; };;
13738 esac
13739 done
13740
13741
13742 # If the user did not use the arguments to specify the items to instantiate,
13743 # then the envvar interface is used. Set only those that are not.
13744 # We use the long form for the default assignment because of an extremely
13745 # bizarre bug on SunOS 4.1.3.
13746 if $ac_need_defaults; then
13747 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13748 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13749 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13750 fi
13751
13752 # Have a temporary directory for convenience. Make it in the build tree
13753 # simply because there is no reason against having it here, and in addition,
13754 # creating and moving files from /tmp can sometimes cause problems.
13755 # Hook for its removal unless debugging.
13756 # Note that there is a small window in which the directory will not be cleaned:
13757 # after its creation but before its name has been assigned to `$tmp'.
13758 $debug ||
13759 {
13760 tmp=
13761 trap 'exit_status=$?
13762 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13763 ' 0
13764 trap '{ (exit 1); exit 1; }' 1 2 13 15
13765 }
13766 # Create a (secure) tmp directory for tmp files.
13767
13768 {
13769 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13770 test -n "$tmp" && test -d "$tmp"
13771 } ||
13772 {
13773 tmp=./conf$$-$RANDOM
13774 (umask 077 && mkdir "$tmp")
13775 } ||
13776 {
13777 $as_echo "$as_me: cannot create a temporary directory in ." >&2
13778 { (exit 1); exit 1; }
13779 }
13780
13781 # Set up the scripts for CONFIG_FILES section.
13782 # No need to generate them if there are no CONFIG_FILES.
13783 # This happens for instance with `./config.status config.h'.
13784 if test -n "$CONFIG_FILES"; then
13785
13786
13787 ac_cr='
'
13789 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13790 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13791 ac_cs_awk_cr='\\r'
13792 else
13793 ac_cs_awk_cr=$ac_cr
13794 fi
13795
13796 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13797 _ACEOF
13798
13799
13800 {
13801 echo "cat >conf$$subs.awk <<_ACEOF" &&
13802 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13803 echo "_ACEOF"
13804 } >conf$$subs.sh ||
13805 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13806 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13807 { (exit 1); exit 1; }; }
13808 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13809 ac_delim='%!_!# '
13810 for ac_last_try in false false false false false :; do
13811 . ./conf$$subs.sh ||
13812 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13813 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13814 { (exit 1); exit 1; }; }
13815
13816 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13817 if test $ac_delim_n = $ac_delim_num; then
13818 break
13819 elif $ac_last_try; then
13820 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13821 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13822 { (exit 1); exit 1; }; }
13823 else
13824 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13825 fi
13826 done
13827 rm -f conf$$subs.sh
13828
13829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13830 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13831 _ACEOF
13832 sed -n '
13833 h
13834 s/^/S["/; s/!.*/"]=/
13835 p
13836 g
13837 s/^[^!]*!//
13838 :repl
13839 t repl
13840 s/'"$ac_delim"'$//
13841 t delim
13842 :nl
13843 h
13844 s/\(.\{148\}\).*/\1/
13845 t more1
13846 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13847 p
13848 n
13849 b repl
13850 :more1
13851 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13852 p
13853 g
13854 s/.\{148\}//
13855 t nl
13856 :delim
13857 h
13858 s/\(.\{148\}\).*/\1/
13859 t more2
13860 s/["\\]/\\&/g; s/^/"/; s/$/"/
13861 p
13862 b
13863 :more2
13864 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13865 p
13866 g
13867 s/.\{148\}//
13868 t delim
13869 ' <conf$$subs.awk | sed '
13870 /^[^""]/{
13871 N
13872 s/\n//
13873 }
13874 ' >>$CONFIG_STATUS || ac_write_fail=1
13875 rm -f conf$$subs.awk
13876 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13877 _ACAWK
13878 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13879 for (key in S) S_is_set[key] = 1
13880 FS = ""
13881
13882 }
13883 {
13884 line = $ 0
13885 nfields = split(line, field, "@")
13886 substed = 0
13887 len = length(field[1])
13888 for (i = 2; i < nfields; i++) {
13889 key = field[i]
13890 keylen = length(key)
13891 if (S_is_set[key]) {
13892 value = S[key]
13893 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13894 len += length(value) + length(field[++i])
13895 substed = 1
13896 } else
13897 len += 1 + keylen
13898 }
13899
13900 print line
13901 }
13902
13903 _ACAWK
13904 _ACEOF
13905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13906 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13907 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13908 else
13909 cat
13910 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13911 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13912 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
13913 { (exit 1); exit 1; }; }
13914 _ACEOF
13915
13916 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13917 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13918 # trailing colons and then remove the whole line if VPATH becomes empty
13919 # (actually we leave an empty line to preserve line numbers).
13920 if test "x$srcdir" = x.; then
13921 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13922 s/:*\$(srcdir):*/:/
13923 s/:*\${srcdir}:*/:/
13924 s/:*@srcdir@:*/:/
13925 s/^\([^=]*=[ ]*\):*/\1/
13926 s/:*$//
13927 s/^[^=]*=[ ]*$//
13928 }'
13929 fi
13930
13931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13932 fi # test -n "$CONFIG_FILES"
13933
13934 # Set up the scripts for CONFIG_HEADERS section.
13935 # No need to generate them if there are no CONFIG_HEADERS.
13936 # This happens for instance with `./config.status Makefile'.
13937 if test -n "$CONFIG_HEADERS"; then
13938 cat >"$tmp/defines.awk" <<\_ACAWK ||
13939 BEGIN {
13940 _ACEOF
13941
13942 # Transform confdefs.h into an awk script `defines.awk', embedded as
13943 # here-document in config.status, that substitutes the proper values into
13944 # config.h.in to produce config.h.
13945
13946 # Create a delimiter string that does not exist in confdefs.h, to ease
13947 # handling of long lines.
13948 ac_delim='%!_!# '
13949 for ac_last_try in false false :; do
13950 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13951 if test -z "$ac_t"; then
13952 break
13953 elif $ac_last_try; then
13954 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13955 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13956 { (exit 1); exit 1; }; }
13957 else
13958 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13959 fi
13960 done
13961
13962 # For the awk script, D is an array of macro values keyed by name,
13963 # likewise P contains macro parameters if any. Preserve backslash
13964 # newline sequences.
13965
13966 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13967 sed -n '
13968 s/.\{148\}/&'"$ac_delim"'/g
13969 t rset
13970 :rset
13971 s/^[ ]*#[ ]*define[ ][ ]*/ /
13972 t def
13973 d
13974 :def
13975 s/\\$//
13976 t bsnl
13977 s/["\\]/\\&/g
13978 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13979 D["\1"]=" \3"/p
13980 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13981 d
13982 :bsnl
13983 s/["\\]/\\&/g
13984 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13985 D["\1"]=" \3\\\\\\n"\\/p
13986 t cont
13987 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13988 t cont
13989 d
13990 :cont
13991 n
13992 s/.\{148\}/&'"$ac_delim"'/g
13993 t clear
13994 :clear
13995 s/\\$//
13996 t bsnlc
13997 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13998 d
13999 :bsnlc
14000 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14001 b cont
14002 ' <confdefs.h | sed '
14003 s/'"$ac_delim"'/"\\\
14004 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14005
14006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14007 for (key in D) D_is_set[key] = 1
14008 FS = ""
14009 }
14010 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14011 line = \$ 0
14012 split(line, arg, " ")
14013 if (arg[1] == "#") {
14014 defundef = arg[2]
14015 mac1 = arg[3]
14016 } else {
14017 defundef = substr(arg[1], 2)
14018 mac1 = arg[2]
14019 }
14020 split(mac1, mac2, "(") #)
14021 macro = mac2[1]
14022 prefix = substr(line, 1, index(line, defundef) - 1)
14023 if (D_is_set[macro]) {
14024 # Preserve the white space surrounding the "#".
14025 print prefix "define", macro P[macro] D[macro]
14026 next
14027 } else {
14028 # Replace #undef with comments. This is necessary, for example,
14029 # in the case of _POSIX_SOURCE, which is predefined and required
14030 # on some systems where configure will not decide to define it.
14031 if (defundef == "undef") {
14032 print "/*", prefix defundef, macro, "*/"
14033 next
14034 }
14035 }
14036 }
14037 { print }
14038 _ACAWK
14039 _ACEOF
14040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14041 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14042 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14043 { (exit 1); exit 1; }; }
14044 fi # test -n "$CONFIG_HEADERS"
14045
14046
14047 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14048 shift
14049 for ac_tag
14050 do
14051 case $ac_tag in
14052 :[FHLC]) ac_mode=$ac_tag; continue;;
14053 esac
14054 case $ac_mode$ac_tag in
14055 :[FHL]*:*);;
14056 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14057 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14058 { (exit 1); exit 1; }; };;
14059 :[FH]-) ac_tag=-:-;;
14060 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14061 esac
14062 ac_save_IFS=$IFS
14063 IFS=:
14064 set x $ac_tag
14065 IFS=$ac_save_IFS
14066 shift
14067 ac_file=$1
14068 shift
14069
14070 case $ac_mode in
14071 :L) ac_source=$1;;
14072 :[FH])
14073 ac_file_inputs=
14074 for ac_f
14075 do
14076 case $ac_f in
14077 -) ac_f="$tmp/stdin";;
14078 *) # Look for the file first in the build tree, then in the source tree
14079 # (if the path is not absolute). The absolute path cannot be DOS-style,
14080 # because $ac_f cannot contain `:'.
14081 test -f "$ac_f" ||
14082 case $ac_f in
14083 [\\/$]*) false;;
14084 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14085 esac ||
14086 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14087 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14088 { (exit 1); exit 1; }; };;
14089 esac
14090 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14091 ac_file_inputs="$ac_file_inputs '$ac_f'"
14092 done
14093
14094 # Let's still pretend it is `configure' which instantiates (i.e., don't
14095 # use $as_me), people would be surprised to read:
14096 # /* config.h. Generated by config.status. */
14097 configure_input='Generated from '`
14098 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14099 `' by configure.'
14100 if test x"$ac_file" != x-; then
14101 configure_input="$ac_file. $configure_input"
14102 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14103 $as_echo "$as_me: creating $ac_file" >&6;}
14104 fi
14105 # Neutralize special characters interpreted by sed in replacement strings.
14106 case $configure_input in #(
14107 *\&* | *\|* | *\\* )
14108 ac_sed_conf_input=`$as_echo "$configure_input" |
14109 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14110 *) ac_sed_conf_input=$configure_input;;
14111 esac
14112
14113 case $ac_tag in
14114 *:-:* | *:-) cat >"$tmp/stdin" \
14115 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14116 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14117 { (exit 1); exit 1; }; } ;;
14118 esac
14119 ;;
14120 esac
14121
14122 ac_dir=`$as_dirname -- "$ac_file" ||
14123 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14124 X"$ac_file" : 'X\(//\)[^/]' \| \
14125 X"$ac_file" : 'X\(//\)$' \| \
14126 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14127 $as_echo X"$ac_file" |
14128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14129 s//\1/
14130 q
14131 }
14132 /^X\(\/\/\)[^/].*/{
14133 s//\1/
14134 q
14135 }
14136 /^X\(\/\/\)$/{
14137 s//\1/
14138 q
14139 }
14140 /^X\(\/\).*/{
14141 s//\1/
14142 q
14143 }
14144 s/.*/./; q'`
14145 { as_dir="$ac_dir"
14146 case $as_dir in #(
14147 -*) as_dir=./$as_dir;;
14148 esac
14149 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14150 as_dirs=
14151 while :; do
14152 case $as_dir in #(
14153 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14154 *) as_qdir=$as_dir;;
14155 esac
14156 as_dirs="'$as_qdir' $as_dirs"
14157 as_dir=`$as_dirname -- "$as_dir" ||
14158 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14159 X"$as_dir" : 'X\(//\)[^/]' \| \
14160 X"$as_dir" : 'X\(//\)$' \| \
14161 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14162 $as_echo X"$as_dir" |
14163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14164 s//\1/
14165 q
14166 }
14167 /^X\(\/\/\)[^/].*/{
14168 s//\1/
14169 q
14170 }
14171 /^X\(\/\/\)$/{
14172 s//\1/
14173 q
14174 }
14175 /^X\(\/\).*/{
14176 s//\1/
14177 q
14178 }
14179 s/.*/./; q'`
14180 test -d "$as_dir" && break
14181 done
14182 test -z "$as_dirs" || eval "mkdir $as_dirs"
14183 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14184 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14185 { (exit 1); exit 1; }; }; }
14186 ac_builddir=.
14187
14188 case "$ac_dir" in
14189 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14190 *)
14191 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14192 # A ".." for each directory in $ac_dir_suffix.
14193 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14194 case $ac_top_builddir_sub in
14195 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14196 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14197 esac ;;
14198 esac
14199 ac_abs_top_builddir=$ac_pwd
14200 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14201 # for backward compatibility:
14202 ac_top_builddir=$ac_top_build_prefix
14203
14204 case $srcdir in
14205 .) # We are building in place.
14206 ac_srcdir=.
14207 ac_top_srcdir=$ac_top_builddir_sub
14208 ac_abs_top_srcdir=$ac_pwd ;;
14209 [\\/]* | ?:[\\/]* ) # Absolute name.
14210 ac_srcdir=$srcdir$ac_dir_suffix;
14211 ac_top_srcdir=$srcdir
14212 ac_abs_top_srcdir=$srcdir ;;
14213 *) # Relative name.
14214 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14215 ac_top_srcdir=$ac_top_build_prefix$srcdir
14216 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14217 esac
14218 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14219
14220
14221 case $ac_mode in
14222 :F)
14223 #
14224 # CONFIG_FILE
14225 #
14226
14227 case $INSTALL in
14228 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14229 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14230 esac
14231 ac_MKDIR_P=$MKDIR_P
14232 case $MKDIR_P in
14233 [\\/$]* | ?:[\\/]* ) ;;
14234 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14235 esac
14236 _ACEOF
14237
14238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14239 # If the template does not know about datarootdir, expand it.
14240 # FIXME: This hack should be removed a few years after 2.60.
14241 ac_datarootdir_hack=; ac_datarootdir_seen=
14242
14243 ac_sed_dataroot='
14244 /datarootdir/ {
14245 p
14246 q
14247 }
14248 /@datadir@/p
14249 /@docdir@/p
14250 /@infodir@/p
14251 /@localedir@/p
14252 /@mandir@/p
14253 '
14254 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14255 *datarootdir*) ac_datarootdir_seen=yes;;
14256 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14257 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14258 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14259 _ACEOF
14260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14261 ac_datarootdir_hack='
14262 s&@datadir@&$datadir&g
14263 s&@docdir@&$docdir&g
14264 s&@infodir@&$infodir&g
14265 s&@localedir@&$localedir&g
14266 s&@mandir@&$mandir&g
14267 s&\\\${datarootdir}&$datarootdir&g' ;;
14268 esac
14269 _ACEOF
14270
14271 # Neutralize VPATH when `$srcdir' = `.'.
14272 # Shell code in configure.ac might set extrasub.
14273 # FIXME: do we really want to maintain this feature?
14274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14275 ac_sed_extra="$ac_vpsub
14276 $extrasub
14277 _ACEOF
14278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14279 :t
14280 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14281 s|@configure_input@|$ac_sed_conf_input|;t t
14282 s&@top_builddir@&$ac_top_builddir_sub&;t t
14283 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14284 s&@srcdir@&$ac_srcdir&;t t
14285 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14286 s&@top_srcdir@&$ac_top_srcdir&;t t
14287 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14288 s&@builddir@&$ac_builddir&;t t
14289 s&@abs_builddir@&$ac_abs_builddir&;t t
14290 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14291 s&@INSTALL@&$ac_INSTALL&;t t
14292 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14293 $ac_datarootdir_hack
14294 "
14295 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14296 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14297 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14298 { (exit 1); exit 1; }; }
14299
14300 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14301 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14302 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14303 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14304 which seems to be undefined. Please make sure it is defined." >&5
14305 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14306 which seems to be undefined. Please make sure it is defined." >&2;}
14307
14308 rm -f "$tmp/stdin"
14309 case $ac_file in
14310 -) cat "$tmp/out" && rm -f "$tmp/out";;
14311 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14312 esac \
14313 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14314 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14315 { (exit 1); exit 1; }; }
14316 ;;
14317 :H)
14318 #
14319 # CONFIG_HEADER
14320 #
14321 if test x"$ac_file" != x-; then
14322 {
14323 $as_echo "/* $configure_input */" \
14324 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14325 } >"$tmp/config.h" \
14326 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14327 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14328 { (exit 1); exit 1; }; }
14329 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14330 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14331 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14332 else
14333 rm -f "$ac_file"
14334 mv "$tmp/config.h" "$ac_file" \
14335 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14336 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14337 { (exit 1); exit 1; }; }
14338 fi
14339 else
14340 $as_echo "/* $configure_input */" \
14341 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14342 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14343 $as_echo "$as_me: error: could not create -" >&2;}
14344 { (exit 1); exit 1; }; }
14345 fi
14346 # Compute "$ac_file"'s index in $config_headers.
14347 _am_arg="$ac_file"
14348 _am_stamp_count=1
14349 for _am_header in $config_headers :; do
14350 case $_am_header in
14351 $_am_arg | $_am_arg:* )
14352 break ;;
14353 * )
14354 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14355 esac
14356 done
14357 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14358 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14359 X"$_am_arg" : 'X\(//\)[^/]' \| \
14360 X"$_am_arg" : 'X\(//\)$' \| \
14361 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14362 $as_echo X"$_am_arg" |
14363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14364 s//\1/
14365 q
14366 }
14367 /^X\(\/\/\)[^/].*/{
14368 s//\1/
14369 q
14370 }
14371 /^X\(\/\/\)$/{
14372 s//\1/
14373 q
14374 }
14375 /^X\(\/\).*/{
14376 s//\1/
14377 q
14378 }
14379 s/.*/./; q'`/stamp-h$_am_stamp_count
14380 ;;
14381
14382 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14383 $as_echo "$as_me: executing $ac_file commands" >&6;}
14384 ;;
14385 esac
14386
14387
14388 case $ac_file$ac_mode in
14389 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14390 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14391 # are listed without --file. Let's play safe and only enable the eval
14392 # if we detect the quoting.
14393 case $CONFIG_FILES in
14394 *\'*) eval set x "$CONFIG_FILES" ;;
14395 *) set x $CONFIG_FILES ;;
14396 esac
14397 shift
14398 for mf
14399 do
14400 # Strip MF so we end up with the name of the file.
14401 mf=`echo "$mf" | sed -e 's/:.*$//'`
14402 # Check whether this is an Automake generated Makefile or not.
14403 # We used to match only the files named `Makefile.in', but
14404 # some people rename them; so instead we look at the file content.
14405 # Grep'ing the first line is not enough: some people post-process
14406 # each Makefile.in and add a new line on top of each file to say so.
14407 # Grep'ing the whole file is not good either: AIX grep has a line
14408 # limit of 2048, but all sed's we know have understand at least 4000.
14409 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14410 dirpart=`$as_dirname -- "$mf" ||
14411 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14412 X"$mf" : 'X\(//\)[^/]' \| \
14413 X"$mf" : 'X\(//\)$' \| \
14414 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14415 $as_echo X"$mf" |
14416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14417 s//\1/
14418 q
14419 }
14420 /^X\(\/\/\)[^/].*/{
14421 s//\1/
14422 q
14423 }
14424 /^X\(\/\/\)$/{
14425 s//\1/
14426 q
14427 }
14428 /^X\(\/\).*/{
14429 s//\1/
14430 q
14431 }
14432 s/.*/./; q'`
14433 else
14434 continue
14435 fi
14436 # Extract the definition of DEPDIR, am__include, and am__quote
14437 # from the Makefile without running `make'.
14438 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14439 test -z "$DEPDIR" && continue
14440 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14441 test -z "am__include" && continue
14442 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14443 # When using ansi2knr, U may be empty or an underscore; expand it
14444 U=`sed -n 's/^U = //p' < "$mf"`
14445 # Find all dependency output files, they are included files with
14446 # $(DEPDIR) in their names. We invoke sed twice because it is the
14447 # simplest approach to changing $(DEPDIR) to its actual value in the
14448 # expansion.
14449 for file in `sed -n "
14450 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14451 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14452 # Make sure the directory exists.
14453 test -f "$dirpart/$file" && continue
14454 fdir=`$as_dirname -- "$file" ||
14455 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14456 X"$file" : 'X\(//\)[^/]' \| \
14457 X"$file" : 'X\(//\)$' \| \
14458 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14459 $as_echo X"$file" |
14460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14461 s//\1/
14462 q
14463 }
14464 /^X\(\/\/\)[^/].*/{
14465 s//\1/
14466 q
14467 }
14468 /^X\(\/\/\)$/{
14469 s//\1/
14470 q
14471 }
14472 /^X\(\/\).*/{
14473 s//\1/
14474 q
14475 }
14476 s/.*/./; q'`
14477 { as_dir=$dirpart/$fdir
14478 case $as_dir in #(
14479 -*) as_dir=./$as_dir;;
14480 esac
14481 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14482 as_dirs=
14483 while :; do
14484 case $as_dir in #(
14485 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14486 *) as_qdir=$as_dir;;
14487 esac
14488 as_dirs="'$as_qdir' $as_dirs"
14489 as_dir=`$as_dirname -- "$as_dir" ||
14490 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14491 X"$as_dir" : 'X\(//\)[^/]' \| \
14492 X"$as_dir" : 'X\(//\)$' \| \
14493 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14494 $as_echo X"$as_dir" |
14495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14496 s//\1/
14497 q
14498 }
14499 /^X\(\/\/\)[^/].*/{
14500 s//\1/
14501 q
14502 }
14503 /^X\(\/\/\)$/{
14504 s//\1/
14505 q
14506 }
14507 /^X\(\/\).*/{
14508 s//\1/
14509 q
14510 }
14511 s/.*/./; q'`
14512 test -d "$as_dir" && break
14513 done
14514 test -z "$as_dirs" || eval "mkdir $as_dirs"
14515 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14516 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14517 { (exit 1); exit 1; }; }; }
14518 # echo "creating $dirpart/$file"
14519 echo '# dummy' > "$dirpart/$file"
14520 done
14521 done
14522 }
14523 ;;
14524 "libtool":C)
14525
14526 # See if we are running on zsh, and set the options which allow our
14527 # commands through without removal of \ escapes.
14528 if test -n "${ZSH_VERSION+set}" ; then
14529 setopt NO_GLOB_SUBST
14530 fi
14531
14532 cfgfile="${ofile}T"
14533 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14534 $RM "$cfgfile"
14535
14536 cat <<_LT_EOF >> "$cfgfile"
14537 #! $SHELL
14538
14539 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14540 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14541 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14542 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14543 #
14544 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14545 # 2006, 2007, 2008 Free Software Foundation, Inc.
14546 # Written by Gordon Matzigkeit, 1996
14547 #
14548 # This file is part of GNU Libtool.
14549 #
14550 # GNU Libtool is free software; you can redistribute it and/or
14551 # modify it under the terms of the GNU General Public License as
14552 # published by the Free Software Foundation; either version 2 of
14553 # the License, or (at your option) any later version.
14554 #
14555 # As a special exception to the GNU General Public License,
14556 # if you distribute this file as part of a program or library that
14557 # is built using GNU Libtool, you may include this file under the
14558 # same distribution terms that you use for the rest of that program.
14559 #
14560 # GNU Libtool is distributed in the hope that it will be useful,
14561 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14562 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14563 # GNU General Public License for more details.
14564 #
14565 # You should have received a copy of the GNU General Public License
14566 # along with GNU Libtool; see the file COPYING. If not, a copy
14567 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14568 # obtained by writing to the Free Software Foundation, Inc.,
14569 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14570
14571
14572 # The names of the tagged configurations supported by this script.
14573 available_tags=""
14574
14575 # ### BEGIN LIBTOOL CONFIG
14576
14577 # Whether or not to build static libraries.
14578 build_old_libs=$enable_static
14579
14580 # Which release of libtool.m4 was used?
14581 macro_version=$macro_version
14582 macro_revision=$macro_revision
14583
14584 # Whether or not to build shared libraries.
14585 build_libtool_libs=$enable_shared
14586
14587 # What type of objects to build.
14588 pic_mode=$pic_mode
14589
14590 # Whether or not to optimize for fast installation.
14591 fast_install=$enable_fast_install
14592
14593 # The host system.
14594 host_alias=$host_alias
14595 host=$host
14596 host_os=$host_os
14597
14598 # The build system.
14599 build_alias=$build_alias
14600 build=$build
14601 build_os=$build_os
14602
14603 # A sed program that does not truncate output.
14604 SED=$lt_SED
14605
14606 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14607 Xsed="\$SED -e 1s/^X//"
14608
14609 # A grep program that handles long lines.
14610 GREP=$lt_GREP
14611
14612 # An ERE matcher.
14613 EGREP=$lt_EGREP
14614
14615 # A literal string matcher.
14616 FGREP=$lt_FGREP
14617
14618 # A BSD- or MS-compatible name lister.
14619 NM=$lt_NM
14620
14621 # Whether we need soft or hard links.
14622 LN_S=$lt_LN_S
14623
14624 # What is the maximum length of a command?
14625 max_cmd_len=$max_cmd_len
14626
14627 # Object file suffix (normally "o").
14628 objext=$ac_objext
14629
14630 # Executable file suffix (normally "").
14631 exeext=$exeext
14632
14633 # whether the shell understands "unset".
14634 lt_unset=$lt_unset
14635
14636 # turn spaces into newlines.
14637 SP2NL=$lt_lt_SP2NL
14638
14639 # turn newlines into spaces.
14640 NL2SP=$lt_lt_NL2SP
14641
14642 # How to create reloadable object files.
14643 reload_flag=$lt_reload_flag
14644 reload_cmds=$lt_reload_cmds
14645
14646 # An object symbol dumper.
14647 OBJDUMP=$lt_OBJDUMP
14648
14649 # Method to check whether dependent libraries are shared objects.
14650 deplibs_check_method=$lt_deplibs_check_method
14651
14652 # Command to use when deplibs_check_method == "file_magic".
14653 file_magic_cmd=$lt_file_magic_cmd
14654
14655 # The archiver.
14656 AR=$lt_AR
14657 AR_FLAGS=$lt_AR_FLAGS
14658
14659 # A symbol stripping program.
14660 STRIP=$lt_STRIP
14661
14662 # Commands used to install an old-style archive.
14663 RANLIB=$lt_RANLIB
14664 old_postinstall_cmds=$lt_old_postinstall_cmds
14665 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14666
14667 # A C compiler.
14668 LTCC=$lt_CC
14669
14670 # LTCC compiler flags.
14671 LTCFLAGS=$lt_CFLAGS
14672
14673 # Take the output of nm and produce a listing of raw symbols and C names.
14674 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14675
14676 # Transform the output of nm in a proper C declaration.
14677 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14678
14679 # Transform the output of nm in a C name address pair.
14680 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14681
14682 # Transform the output of nm in a C name address pair when lib prefix is needed.
14683 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14684
14685 # The name of the directory that contains temporary libtool files.
14686 objdir=$objdir
14687
14688 # Shell to use when invoking shell scripts.
14689 SHELL=$lt_SHELL
14690
14691 # An echo program that does not interpret backslashes.
14692 ECHO=$lt_ECHO
14693
14694 # Used to examine libraries when file_magic_cmd begins with "file".
14695 MAGIC_CMD=$MAGIC_CMD
14696
14697 # Must we lock files when doing compilation?
14698 need_locks=$lt_need_locks
14699
14700 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14701 DSYMUTIL=$lt_DSYMUTIL
14702
14703 # Tool to change global to local symbols on Mac OS X.
14704 NMEDIT=$lt_NMEDIT
14705
14706 # Tool to manipulate fat objects and archives on Mac OS X.
14707 LIPO=$lt_LIPO
14708
14709 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14710 OTOOL=$lt_OTOOL
14711
14712 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14713 OTOOL64=$lt_OTOOL64
14714
14715 # Old archive suffix (normally "a").
14716 libext=$libext
14717
14718 # Shared library suffix (normally ".so").
14719 shrext_cmds=$lt_shrext_cmds
14720
14721 # The commands to extract the exported symbol list from a shared archive.
14722 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14723
14724 # Variables whose values should be saved in libtool wrapper scripts and
14725 # restored at link time.
14726 variables_saved_for_relink=$lt_variables_saved_for_relink
14727
14728 # Do we need the "lib" prefix for modules?
14729 need_lib_prefix=$need_lib_prefix
14730
14731 # Do we need a version for libraries?
14732 need_version=$need_version
14733
14734 # Library versioning type.
14735 version_type=$version_type
14736
14737 # Shared library runtime path variable.
14738 runpath_var=$runpath_var
14739
14740 # Shared library path variable.
14741 shlibpath_var=$shlibpath_var
14742
14743 # Is shlibpath searched before the hard-coded library search path?
14744 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14745
14746 # Format of library name prefix.
14747 libname_spec=$lt_libname_spec
14748
14749 # List of archive names. First name is the real one, the rest are links.
14750 # The last name is the one that the linker finds with -lNAME
14751 library_names_spec=$lt_library_names_spec
14752
14753 # The coded name of the library, if different from the real name.
14754 soname_spec=$lt_soname_spec
14755
14756 # Command to use after installation of a shared archive.
14757 postinstall_cmds=$lt_postinstall_cmds
14758
14759 # Command to use after uninstallation of a shared archive.
14760 postuninstall_cmds=$lt_postuninstall_cmds
14761
14762 # Commands used to finish a libtool library installation in a directory.
14763 finish_cmds=$lt_finish_cmds
14764
14765 # As "finish_cmds", except a single script fragment to be evaled but
14766 # not shown.
14767 finish_eval=$lt_finish_eval
14768
14769 # Whether we should hardcode library paths into libraries.
14770 hardcode_into_libs=$hardcode_into_libs
14771
14772 # Compile-time system search path for libraries.
14773 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14774
14775 # Run-time system search path for libraries.
14776 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14777
14778 # Whether dlopen is supported.
14779 dlopen_support=$enable_dlopen
14780
14781 # Whether dlopen of programs is supported.
14782 dlopen_self=$enable_dlopen_self
14783
14784 # Whether dlopen of statically linked programs is supported.
14785 dlopen_self_static=$enable_dlopen_self_static
14786
14787 # Commands to strip libraries.
14788 old_striplib=$lt_old_striplib
14789 striplib=$lt_striplib
14790
14791
14792 # The linker used to build libraries.
14793 LD=$lt_LD
14794
14795 # Commands used to build an old-style archive.
14796 old_archive_cmds=$lt_old_archive_cmds
14797
14798 # A language specific compiler.
14799 CC=$lt_compiler
14800
14801 # Is the compiler the GNU compiler?
14802 with_gcc=$GCC
14803
14804 # Compiler flag to turn off builtin functions.
14805 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14806
14807 # How to pass a linker flag through the compiler.
14808 wl=$lt_lt_prog_compiler_wl
14809
14810 # Additional compiler flags for building library objects.
14811 pic_flag=$lt_lt_prog_compiler_pic
14812
14813 # Compiler flag to prevent dynamic linking.
14814 link_static_flag=$lt_lt_prog_compiler_static
14815
14816 # Does compiler simultaneously support -c and -o options?
14817 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14818
14819 # Whether or not to add -lc for building shared libraries.
14820 build_libtool_need_lc=$archive_cmds_need_lc
14821
14822 # Whether or not to disallow shared libs when runtime libs are static.
14823 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14824
14825 # Compiler flag to allow reflexive dlopens.
14826 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14827
14828 # Compiler flag to generate shared objects directly from archives.
14829 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14830
14831 # Whether the compiler copes with passing no objects directly.
14832 compiler_needs_object=$lt_compiler_needs_object
14833
14834 # Create an old-style archive from a shared archive.
14835 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14836
14837 # Create a temporary old-style archive to link instead of a shared archive.
14838 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14839
14840 # Commands used to build a shared archive.
14841 archive_cmds=$lt_archive_cmds
14842 archive_expsym_cmds=$lt_archive_expsym_cmds
14843
14844 # Commands used to build a loadable module if different from building
14845 # a shared archive.
14846 module_cmds=$lt_module_cmds
14847 module_expsym_cmds=$lt_module_expsym_cmds
14848
14849 # Whether we are building with GNU ld or not.
14850 with_gnu_ld=$lt_with_gnu_ld
14851
14852 # Flag that allows shared libraries with undefined symbols to be built.
14853 allow_undefined_flag=$lt_allow_undefined_flag
14854
14855 # Flag that enforces no undefined symbols.
14856 no_undefined_flag=$lt_no_undefined_flag
14857
14858 # Flag to hardcode \$libdir into a binary during linking.
14859 # This must work even if \$libdir does not exist
14860 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14861
14862 # If ld is used when linking, flag to hardcode \$libdir into a binary
14863 # during linking. This must work even if \$libdir does not exist.
14864 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14865
14866 # Whether we need a single "-rpath" flag with a separated argument.
14867 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14868
14869 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14870 # DIR into the resulting binary.
14871 hardcode_direct=$hardcode_direct
14872
14873 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14874 # DIR into the resulting binary and the resulting library dependency is
14875 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14876 # library is relocated.
14877 hardcode_direct_absolute=$hardcode_direct_absolute
14878
14879 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14880 # into the resulting binary.
14881 hardcode_minus_L=$hardcode_minus_L
14882
14883 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14884 # into the resulting binary.
14885 hardcode_shlibpath_var=$hardcode_shlibpath_var
14886
14887 # Set to "yes" if building a shared library automatically hardcodes DIR
14888 # into the library and all subsequent libraries and executables linked
14889 # against it.
14890 hardcode_automatic=$hardcode_automatic
14891
14892 # Set to yes if linker adds runtime paths of dependent libraries
14893 # to runtime path list.
14894 inherit_rpath=$inherit_rpath
14895
14896 # Whether libtool must link a program against all its dependency libraries.
14897 link_all_deplibs=$link_all_deplibs
14898
14899 # Fix the shell variable \$srcfile for the compiler.
14900 fix_srcfile_path=$lt_fix_srcfile_path
14901
14902 # Set to "yes" if exported symbols are required.
14903 always_export_symbols=$always_export_symbols
14904
14905 # The commands to list exported symbols.
14906 export_symbols_cmds=$lt_export_symbols_cmds
14907
14908 # Symbols that should not be listed in the preloaded symbols.
14909 exclude_expsyms=$lt_exclude_expsyms
14910
14911 # Symbols that must always be exported.
14912 include_expsyms=$lt_include_expsyms
14913
14914 # Commands necessary for linking programs (against libraries) with templates.
14915 prelink_cmds=$lt_prelink_cmds
14916
14917 # Specify filename containing input files.
14918 file_list_spec=$lt_file_list_spec
14919
14920 # How to hardcode a shared library path into an executable.
14921 hardcode_action=$hardcode_action
14922
14923 # ### END LIBTOOL CONFIG
14924
14925 _LT_EOF
14926
14927 case $host_os in
14928 aix3*)
14929 cat <<\_LT_EOF >> "$cfgfile"
14930 # AIX sometimes has problems with the GCC collect2 program. For some
14931 # reason, if we set the COLLECT_NAMES environment variable, the problems
14932 # vanish in a puff of smoke.
14933 if test "X${COLLECT_NAMES+set}" != Xset; then
14934 COLLECT_NAMES=
14935 export COLLECT_NAMES
14936 fi
14937 _LT_EOF
14938 ;;
14939 esac
14940
14941
14942 ltmain="$ac_aux_dir/ltmain.sh"
14943
14944
14945 # We use sed instead of cat because bash on DJGPP gets confused if
14946 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14947 # text mode, it properly converts lines to CR/LF. This bash problem
14948 # is reportedly fixed, but why not run on old versions too?
14949 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14950 || (rm -f "$cfgfile"; exit 1)
14951
14952 case $xsi_shell in
14953 yes)
14954 cat << \_LT_EOF >> "$cfgfile"
14955
14956 # func_dirname file append nondir_replacement
14957 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14958 # otherwise set result to NONDIR_REPLACEMENT.
14959 func_dirname ()
14960 {
14961 case ${1} in
14962 */*) func_dirname_result="${1%/*}${2}" ;;
14963 * ) func_dirname_result="${3}" ;;
14964 esac
14965 }
14966
14967 # func_basename file
14968 func_basename ()
14969 {
14970 func_basename_result="${1##*/}"
14971 }
14972
14973 # func_dirname_and_basename file append nondir_replacement
14974 # perform func_basename and func_dirname in a single function
14975 # call:
14976 # dirname: Compute the dirname of FILE. If nonempty,
14977 # add APPEND to the result, otherwise set result
14978 # to NONDIR_REPLACEMENT.
14979 # value returned in "$func_dirname_result"
14980 # basename: Compute filename of FILE.
14981 # value retuned in "$func_basename_result"
14982 # Implementation must be kept synchronized with func_dirname
14983 # and func_basename. For efficiency, we do not delegate to
14984 # those functions but instead duplicate the functionality here.
14985 func_dirname_and_basename ()
14986 {
14987 case ${1} in
14988 */*) func_dirname_result="${1%/*}${2}" ;;
14989 * ) func_dirname_result="${3}" ;;
14990 esac
14991 func_basename_result="${1##*/}"
14992 }
14993
14994 # func_stripname prefix suffix name
14995 # strip PREFIX and SUFFIX off of NAME.
14996 # PREFIX and SUFFIX must not contain globbing or regex special
14997 # characters, hashes, percent signs, but SUFFIX may contain a leading
14998 # dot (in which case that matches only a dot).
14999 func_stripname ()
15000 {
15001 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15002 # positional parameters, so assign one to ordinary parameter first.
15003 func_stripname_result=${3}
15004 func_stripname_result=${func_stripname_result#"${1}"}
15005 func_stripname_result=${func_stripname_result%"${2}"}
15006 }
15007
15008 # func_opt_split
15009 func_opt_split ()
15010 {
15011 func_opt_split_opt=${1%%=*}
15012 func_opt_split_arg=${1#*=}
15013 }
15014
15015 # func_lo2o object
15016 func_lo2o ()
15017 {
15018 case ${1} in
15019 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15020 *) func_lo2o_result=${1} ;;
15021 esac
15022 }
15023
15024 # func_xform libobj-or-source
15025 func_xform ()
15026 {
15027 func_xform_result=${1%.*}.lo
15028 }
15029
15030 # func_arith arithmetic-term...
15031 func_arith ()
15032 {
15033 func_arith_result=$(( $* ))
15034 }
15035
15036 # func_len string
15037 # STRING may not start with a hyphen.
15038 func_len ()
15039 {
15040 func_len_result=${#1}
15041 }
15042
15043 _LT_EOF
15044 ;;
15045 *) # Bourne compatible functions.
15046 cat << \_LT_EOF >> "$cfgfile"
15047
15048 # func_dirname file append nondir_replacement
15049 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15050 # otherwise set result to NONDIR_REPLACEMENT.
15051 func_dirname ()
15052 {
15053 # Extract subdirectory from the argument.
15054 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15055 if test "X$func_dirname_result" = "X${1}"; then
15056 func_dirname_result="${3}"
15057 else
15058 func_dirname_result="$func_dirname_result${2}"
15059 fi
15060 }
15061
15062 # func_basename file
15063 func_basename ()
15064 {
15065 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15066 }
15067
15068
15069 # func_stripname prefix suffix name
15070 # strip PREFIX and SUFFIX off of NAME.
15071 # PREFIX and SUFFIX must not contain globbing or regex special
15072 # characters, hashes, percent signs, but SUFFIX may contain a leading
15073 # dot (in which case that matches only a dot).
15074 # func_strip_suffix prefix name
15075 func_stripname ()
15076 {
15077 case ${2} in
15078 .*) func_stripname_result=`$ECHO "X${3}" \
15079 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15080 *) func_stripname_result=`$ECHO "X${3}" \
15081 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15082 esac
15083 }
15084
15085 # sed scripts:
15086 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15087 my_sed_long_arg='1s/^-[^=]*=//'
15088
15089 # func_opt_split
15090 func_opt_split ()
15091 {
15092 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15093 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15094 }
15095
15096 # func_lo2o object
15097 func_lo2o ()
15098 {
15099 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15100 }
15101
15102 # func_xform libobj-or-source
15103 func_xform ()
15104 {
15105 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15106 }
15107
15108 # func_arith arithmetic-term...
15109 func_arith ()
15110 {
15111 func_arith_result=`expr "$@"`
15112 }
15113
15114 # func_len string
15115 # STRING may not start with a hyphen.
15116 func_len ()
15117 {
15118 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15119 }
15120
15121 _LT_EOF
15122 esac
15123
15124 case $lt_shell_append in
15125 yes)
15126 cat << \_LT_EOF >> "$cfgfile"
15127
15128 # func_append var value
15129 # Append VALUE to the end of shell variable VAR.
15130 func_append ()
15131 {
15132 eval "$1+=\$2"
15133 }
15134 _LT_EOF
15135 ;;
15136 *)
15137 cat << \_LT_EOF >> "$cfgfile"
15138
15139 # func_append var value
15140 # Append VALUE to the end of shell variable VAR.
15141 func_append ()
15142 {
15143 eval "$1=\$$1\$2"
15144 }
15145
15146 _LT_EOF
15147 ;;
15148 esac
15149
15150
15151 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15152 || (rm -f "$cfgfile"; exit 1)
15153
15154 mv -f "$cfgfile" "$ofile" ||
15155 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15156 chmod +x "$ofile"
15157
15158 ;;
15159
15160 esac
15161 done # for ac_tag
15162
15163
15164 { (exit 0); exit 0; }
15165 _ACEOF
15166 chmod +x $CONFIG_STATUS
15167 ac_clean_files=$ac_clean_files_save
15168
15169 test $ac_write_fail = 0 ||
15170 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15171 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15172 { (exit 1); exit 1; }; }
15173
15174
15175 # configure is writing to config.log, and then calls config.status.
15176 # config.status does its own redirection, appending to config.log.
15177 # Unfortunately, on DOS this fails, as config.log is still kept open
15178 # by configure, so config.status won't be able to write to it; its
15179 # output is simply discarded. So we exec the FD to /dev/null,
15180 # effectively closing config.log, so it can be properly (re)opened and
15181 # appended to by config.status. When coming back to configure, we
15182 # need to make the FD available again.
15183 if test "$no_create" != yes; then
15184 ac_cs_success=:
15185 ac_config_status_args=
15186 test "$silent" = yes &&
15187 ac_config_status_args="$ac_config_status_args --quiet"
15188 exec 5>/dev/null
15189 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15190 exec 5>>config.log
15191 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15192 # would make configure fail if this is the last instruction.
15193 $ac_cs_success || { (exit 1); exit 1; }
15194 fi
15195 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15196 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15197 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15198 fi
15199
15200