configure revision 1.1.1.5 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.1.
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.1'
749 PACKAGE_STRING='xf86-video-vmware 11.0.1'
750 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
751
752 ac_unique_file="Makefile.am"
753 # Factoring default headers for most tests.
754 ac_includes_default="\
755 #include <stdio.h>
756 #ifdef HAVE_SYS_TYPES_H
757 # include <sys/types.h>
758 #endif
759 #ifdef HAVE_SYS_STAT_H
760 # include <sys/stat.h>
761 #endif
762 #ifdef STDC_HEADERS
763 # include <stdlib.h>
764 # include <stddef.h>
765 #else
766 # ifdef HAVE_STDLIB_H
767 # include <stdlib.h>
768 # endif
769 #endif
770 #ifdef HAVE_STRING_H
771 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
772 # include <memory.h>
773 # endif
774 # include <string.h>
775 #endif
776 #ifdef HAVE_STRINGS_H
777 # include <strings.h>
778 #endif
779 #ifdef HAVE_INTTYPES_H
780 # include <inttypes.h>
781 #endif
782 #ifdef HAVE_STDINT_H
783 # include <stdint.h>
784 #endif
785 #ifdef HAVE_UNISTD_H
786 # include <unistd.h>
787 #endif"
788
789 ac_subst_vars='LTLIBOBJS
790 LIBOBJS
791 DRIVER_NAME
792 moduledir
793 XSERVER_LIBPCIACCESS_FALSE
794 XSERVER_LIBPCIACCESS_TRUE
795 PCIACCESS_LIBS
796 PCIACCESS_CFLAGS
797 DRM_LIBS
798 DRM_CFLAGS
799 XORG_LIBS
800 XORG_CFLAGS
801 OTOOL64
802 OTOOL
803 LIPO
804 NMEDIT
805 DSYMUTIL
806 lt_ECHO
807 RANLIB
808 AR
809 OBJDUMP
810 LN_S
811 NM
812 ac_ct_DUMPBIN
813 DUMPBIN
814 LD
815 FGREP
816 SED
817 LIBTOOL
818 ADMIN_MAN_DIR
819 DRIVER_MAN_DIR
820 MISC_MAN_DIR
821 FILE_MAN_DIR
822 LIB_MAN_DIR
823 APP_MAN_DIR
824 ADMIN_MAN_SUFFIX
825 DRIVER_MAN_SUFFIX
826 MISC_MAN_SUFFIX
827 FILE_MAN_SUFFIX
828 LIB_MAN_SUFFIX
829 APP_MAN_SUFFIX
830 host_os
831 host_vendor
832 host_cpu
833 host
834 build_os
835 build_vendor
836 build_cpu
837 build
838 INSTALL_CMD
839 PKG_CONFIG
840 CHANGELOG_CMD
841 CWARNFLAGS
842 EGREP
843 GREP
844 CPP
845 am__fastdepCC_FALSE
846 am__fastdepCC_TRUE
847 CCDEPMODE
848 AMDEPBACKSLASH
849 AMDEP_FALSE
850 AMDEP_TRUE
851 am__quote
852 am__include
853 DEPDIR
854 OBJEXT
855 EXEEXT
856 ac_ct_CC
857 CPPFLAGS
858 LDFLAGS
859 CFLAGS
860 CC
861 MAINT
862 MAINTAINER_MODE_FALSE
863 MAINTAINER_MODE_TRUE
864 am__untar
865 am__tar
866 AMTAR
867 am__leading_dot
868 SET_MAKE
869 AWK
870 mkdir_p
871 MKDIR_P
872 INSTALL_STRIP_PROGRAM
873 STRIP
874 install_sh
875 MAKEINFO
876 AUTOHEADER
877 AUTOMAKE
878 AUTOCONF
879 ACLOCAL
880 VERSION
881 PACKAGE
882 CYGPATH_W
883 am__isrc
884 INSTALL_DATA
885 INSTALL_SCRIPT
886 INSTALL_PROGRAM
887 target_alias
888 host_alias
889 build_alias
890 LIBS
891 ECHO_T
892 ECHO_N
893 ECHO_C
894 DEFS
895 mandir
896 localedir
897 libdir
898 psdir
899 pdfdir
900 dvidir
901 htmldir
902 infodir
903 docdir
904 oldincludedir
905 includedir
906 localstatedir
907 sharedstatedir
908 sysconfdir
909 datadir
910 datarootdir
911 libexecdir
912 sbindir
913 bindir
914 program_transform_name
915 prefix
916 exec_prefix
917 PACKAGE_BUGREPORT
918 PACKAGE_STRING
919 PACKAGE_VERSION
920 PACKAGE_TARNAME
921 PACKAGE_NAME
922 PATH_SEPARATOR
923 SHELL'
924 ac_subst_files=''
925 ac_user_opts='
926 enable_option_checking
927 enable_maintainer_mode
928 enable_dependency_tracking
929 enable_strict_compilation
930 with_release_version
931 enable_static
932 enable_shared
933 with_pic
934 enable_fast_install
935 with_gnu_ld
936 enable_libtool_lock
937 with_xorg_module_dir
938 '
939 ac_precious_vars='build_alias
940 host_alias
941 target_alias
942 CC
943 CFLAGS
944 LDFLAGS
945 LIBS
946 CPPFLAGS
947 CPP
948 PKG_CONFIG
949 XORG_CFLAGS
950 XORG_LIBS
951 DRM_CFLAGS
952 DRM_LIBS
953 PCIACCESS_CFLAGS
954 PCIACCESS_LIBS'
955
956
957 # Initialize some variables set by options.
958 ac_init_help=
959 ac_init_version=false
960 ac_unrecognized_opts=
961 ac_unrecognized_sep=
962 # The variables have the same names as the options, with
963 # dashes changed to underlines.
964 cache_file=/dev/null
965 exec_prefix=NONE
966 no_create=
967 no_recursion=
968 prefix=NONE
969 program_prefix=NONE
970 program_suffix=NONE
971 program_transform_name=s,x,x,
972 silent=
973 site=
974 srcdir=
975 verbose=
976 x_includes=NONE
977 x_libraries=NONE
978
979 # Installation directory options.
980 # These are left unexpanded so users can "make install exec_prefix=/foo"
981 # and all the variables that are supposed to be based on exec_prefix
982 # by default will actually change.
983 # Use braces instead of parens because sh, perl, etc. also accept them.
984 # (The list follows the same order as the GNU Coding Standards.)
985 bindir='${exec_prefix}/bin'
986 sbindir='${exec_prefix}/sbin'
987 libexecdir='${exec_prefix}/libexec'
988 datarootdir='${prefix}/share'
989 datadir='${datarootdir}'
990 sysconfdir='${prefix}/etc'
991 sharedstatedir='${prefix}/com'
992 localstatedir='${prefix}/var'
993 includedir='${prefix}/include'
994 oldincludedir='/usr/include'
995 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
996 infodir='${datarootdir}/info'
997 htmldir='${docdir}'
998 dvidir='${docdir}'
999 pdfdir='${docdir}'
1000 psdir='${docdir}'
1001 libdir='${exec_prefix}/lib'
1002 localedir='${datarootdir}/locale'
1003 mandir='${datarootdir}/man'
1004
1005 ac_prev=
1006 ac_dashdash=
1007 for ac_option
1008 do
1009 # If the previous option needs an argument, assign it.
1010 if test -n "$ac_prev"; then
1011 eval $ac_prev=\$ac_option
1012 ac_prev=
1013 continue
1014 fi
1015
1016 case $ac_option in
1017 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1018 *) ac_optarg=yes ;;
1019 esac
1020
1021 # Accept the important Cygnus configure options, so we can diagnose typos.
1022
1023 case $ac_dashdash$ac_option in
1024 --)
1025 ac_dashdash=yes ;;
1026
1027 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1028 ac_prev=bindir ;;
1029 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1030 bindir=$ac_optarg ;;
1031
1032 -build | --build | --buil | --bui | --bu)
1033 ac_prev=build_alias ;;
1034 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1035 build_alias=$ac_optarg ;;
1036
1037 -cache-file | --cache-file | --cache-fil | --cache-fi \
1038 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1039 ac_prev=cache_file ;;
1040 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1041 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1042 cache_file=$ac_optarg ;;
1043
1044 --config-cache | -C)
1045 cache_file=config.cache ;;
1046
1047 -datadir | --datadir | --datadi | --datad)
1048 ac_prev=datadir ;;
1049 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1050 datadir=$ac_optarg ;;
1051
1052 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1053 | --dataroo | --dataro | --datar)
1054 ac_prev=datarootdir ;;
1055 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1056 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1057 datarootdir=$ac_optarg ;;
1058
1059 -disable-* | --disable-*)
1060 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1063 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1064 { (exit 1); exit 1; }; }
1065 ac_useropt_orig=$ac_useropt
1066 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1067 case $ac_user_opts in
1068 *"
1069 "enable_$ac_useropt"
1070 "*) ;;
1071 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1072 ac_unrecognized_sep=', ';;
1073 esac
1074 eval enable_$ac_useropt=no ;;
1075
1076 -docdir | --docdir | --docdi | --doc | --do)
1077 ac_prev=docdir ;;
1078 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1079 docdir=$ac_optarg ;;
1080
1081 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1082 ac_prev=dvidir ;;
1083 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1084 dvidir=$ac_optarg ;;
1085
1086 -enable-* | --enable-*)
1087 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1088 # Reject names that are not valid shell variable names.
1089 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1090 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1091 { (exit 1); exit 1; }; }
1092 ac_useropt_orig=$ac_useropt
1093 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094 case $ac_user_opts in
1095 *"
1096 "enable_$ac_useropt"
1097 "*) ;;
1098 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1099 ac_unrecognized_sep=', ';;
1100 esac
1101 eval enable_$ac_useropt=\$ac_optarg ;;
1102
1103 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1104 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1105 | --exec | --exe | --ex)
1106 ac_prev=exec_prefix ;;
1107 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1108 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1109 | --exec=* | --exe=* | --ex=*)
1110 exec_prefix=$ac_optarg ;;
1111
1112 -gas | --gas | --ga | --g)
1113 # Obsolete; use --with-gas.
1114 with_gas=yes ;;
1115
1116 -help | --help | --hel | --he | -h)
1117 ac_init_help=long ;;
1118 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1119 ac_init_help=recursive ;;
1120 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1121 ac_init_help=short ;;
1122
1123 -host | --host | --hos | --ho)
1124 ac_prev=host_alias ;;
1125 -host=* | --host=* | --hos=* | --ho=*)
1126 host_alias=$ac_optarg ;;
1127
1128 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1129 ac_prev=htmldir ;;
1130 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1131 | --ht=*)
1132 htmldir=$ac_optarg ;;
1133
1134 -includedir | --includedir | --includedi | --included | --include \
1135 | --includ | --inclu | --incl | --inc)
1136 ac_prev=includedir ;;
1137 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1138 | --includ=* | --inclu=* | --incl=* | --inc=*)
1139 includedir=$ac_optarg ;;
1140
1141 -infodir | --infodir | --infodi | --infod | --info | --inf)
1142 ac_prev=infodir ;;
1143 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1144 infodir=$ac_optarg ;;
1145
1146 -libdir | --libdir | --libdi | --libd)
1147 ac_prev=libdir ;;
1148 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1149 libdir=$ac_optarg ;;
1150
1151 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1152 | --libexe | --libex | --libe)
1153 ac_prev=libexecdir ;;
1154 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1155 | --libexe=* | --libex=* | --libe=*)
1156 libexecdir=$ac_optarg ;;
1157
1158 -localedir | --localedir | --localedi | --localed | --locale)
1159 ac_prev=localedir ;;
1160 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1161 localedir=$ac_optarg ;;
1162
1163 -localstatedir | --localstatedir | --localstatedi | --localstated \
1164 | --localstate | --localstat | --localsta | --localst | --locals)
1165 ac_prev=localstatedir ;;
1166 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1167 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1168 localstatedir=$ac_optarg ;;
1169
1170 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1171 ac_prev=mandir ;;
1172 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1173 mandir=$ac_optarg ;;
1174
1175 -nfp | --nfp | --nf)
1176 # Obsolete; use --without-fp.
1177 with_fp=no ;;
1178
1179 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1180 | --no-cr | --no-c | -n)
1181 no_create=yes ;;
1182
1183 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1184 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1185 no_recursion=yes ;;
1186
1187 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1188 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1189 | --oldin | --oldi | --old | --ol | --o)
1190 ac_prev=oldincludedir ;;
1191 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1192 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1193 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1194 oldincludedir=$ac_optarg ;;
1195
1196 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1197 ac_prev=prefix ;;
1198 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1199 prefix=$ac_optarg ;;
1200
1201 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1202 | --program-pre | --program-pr | --program-p)
1203 ac_prev=program_prefix ;;
1204 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1205 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1206 program_prefix=$ac_optarg ;;
1207
1208 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1209 | --program-suf | --program-su | --program-s)
1210 ac_prev=program_suffix ;;
1211 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1212 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1213 program_suffix=$ac_optarg ;;
1214
1215 -program-transform-name | --program-transform-name \
1216 | --program-transform-nam | --program-transform-na \
1217 | --program-transform-n | --program-transform- \
1218 | --program-transform | --program-transfor \
1219 | --program-transfo | --program-transf \
1220 | --program-trans | --program-tran \
1221 | --progr-tra | --program-tr | --program-t)
1222 ac_prev=program_transform_name ;;
1223 -program-transform-name=* | --program-transform-name=* \
1224 | --program-transform-nam=* | --program-transform-na=* \
1225 | --program-transform-n=* | --program-transform-=* \
1226 | --program-transform=* | --program-transfor=* \
1227 | --program-transfo=* | --program-transf=* \
1228 | --program-trans=* | --program-tran=* \
1229 | --progr-tra=* | --program-tr=* | --program-t=*)
1230 program_transform_name=$ac_optarg ;;
1231
1232 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1233 ac_prev=pdfdir ;;
1234 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1235 pdfdir=$ac_optarg ;;
1236
1237 -psdir | --psdir | --psdi | --psd | --ps)
1238 ac_prev=psdir ;;
1239 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1240 psdir=$ac_optarg ;;
1241
1242 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1243 | -silent | --silent | --silen | --sile | --sil)
1244 silent=yes ;;
1245
1246 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1247 ac_prev=sbindir ;;
1248 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1249 | --sbi=* | --sb=*)
1250 sbindir=$ac_optarg ;;
1251
1252 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1253 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1254 | --sharedst | --shareds | --shared | --share | --shar \
1255 | --sha | --sh)
1256 ac_prev=sharedstatedir ;;
1257 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1258 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1259 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1260 | --sha=* | --sh=*)
1261 sharedstatedir=$ac_optarg ;;
1262
1263 -site | --site | --sit)
1264 ac_prev=site ;;
1265 -site=* | --site=* | --sit=*)
1266 site=$ac_optarg ;;
1267
1268 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1269 ac_prev=srcdir ;;
1270 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1271 srcdir=$ac_optarg ;;
1272
1273 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1274 | --syscon | --sysco | --sysc | --sys | --sy)
1275 ac_prev=sysconfdir ;;
1276 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1277 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1278 sysconfdir=$ac_optarg ;;
1279
1280 -target | --target | --targe | --targ | --tar | --ta | --t)
1281 ac_prev=target_alias ;;
1282 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1283 target_alias=$ac_optarg ;;
1284
1285 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1286 verbose=yes ;;
1287
1288 -version | --version | --versio | --versi | --vers | -V)
1289 ac_init_version=: ;;
1290
1291 -with-* | --with-*)
1292 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1296 { (exit 1); exit 1; }; }
1297 ac_useropt_orig=$ac_useropt
1298 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299 case $ac_user_opts in
1300 *"
1301 "with_$ac_useropt"
1302 "*) ;;
1303 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1304 ac_unrecognized_sep=', ';;
1305 esac
1306 eval with_$ac_useropt=\$ac_optarg ;;
1307
1308 -without-* | --without-*)
1309 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1310 # Reject names that are not valid shell variable names.
1311 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1312 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1313 { (exit 1); exit 1; }; }
1314 ac_useropt_orig=$ac_useropt
1315 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1316 case $ac_user_opts in
1317 *"
1318 "with_$ac_useropt"
1319 "*) ;;
1320 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1321 ac_unrecognized_sep=', ';;
1322 esac
1323 eval with_$ac_useropt=no ;;
1324
1325 --x)
1326 # Obsolete; use --with-x.
1327 with_x=yes ;;
1328
1329 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1330 | --x-incl | --x-inc | --x-in | --x-i)
1331 ac_prev=x_includes ;;
1332 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1333 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1334 x_includes=$ac_optarg ;;
1335
1336 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1337 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1338 ac_prev=x_libraries ;;
1339 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1340 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1341 x_libraries=$ac_optarg ;;
1342
1343 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1344 Try \`$0 --help' for more information." >&2
1345 { (exit 1); exit 1; }; }
1346 ;;
1347
1348 *=*)
1349 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1350 # Reject names that are not valid shell variable names.
1351 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1352 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1353 { (exit 1); exit 1; }; }
1354 eval $ac_envvar=\$ac_optarg
1355 export $ac_envvar ;;
1356
1357 *)
1358 # FIXME: should be removed in autoconf 3.0.
1359 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1360 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1361 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1362 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1363 ;;
1364
1365 esac
1366 done
1367
1368 if test -n "$ac_prev"; then
1369 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1370 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1371 { (exit 1); exit 1; }; }
1372 fi
1373
1374 if test -n "$ac_unrecognized_opts"; then
1375 case $enable_option_checking in
1376 no) ;;
1377 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1378 { (exit 1); exit 1; }; } ;;
1379 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1380 esac
1381 fi
1382
1383 # Check all directory arguments for consistency.
1384 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1385 datadir sysconfdir sharedstatedir localstatedir includedir \
1386 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1387 libdir localedir mandir
1388 do
1389 eval ac_val=\$$ac_var
1390 # Remove trailing slashes.
1391 case $ac_val in
1392 */ )
1393 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1394 eval $ac_var=\$ac_val;;
1395 esac
1396 # Be sure to have absolute directory names.
1397 case $ac_val in
1398 [\\/$]* | ?:[\\/]* ) continue;;
1399 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1400 esac
1401 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1402 { (exit 1); exit 1; }; }
1403 done
1404
1405 # There might be people who depend on the old broken behavior: `$host'
1406 # used to hold the argument of --host etc.
1407 # FIXME: To remove some day.
1408 build=$build_alias
1409 host=$host_alias
1410 target=$target_alias
1411
1412 # FIXME: To remove some day.
1413 if test "x$host_alias" != x; then
1414 if test "x$build_alias" = x; then
1415 cross_compiling=maybe
1416 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1417 If a cross compiler is detected then cross compile mode will be used." >&2
1418 elif test "x$build_alias" != "x$host_alias"; then
1419 cross_compiling=yes
1420 fi
1421 fi
1422
1423 ac_tool_prefix=
1424 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1425
1426 test "$silent" = yes && exec 6>/dev/null
1427
1428
1429 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1430 ac_ls_di=`ls -di .` &&
1431 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1432 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1433 { (exit 1); exit 1; }; }
1434 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1435 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1436 { (exit 1); exit 1; }; }
1437
1438
1439 # Find the source files, if location was not specified.
1440 if test -z "$srcdir"; then
1441 ac_srcdir_defaulted=yes
1442 # Try the directory containing this script, then the parent directory.
1443 ac_confdir=`$as_dirname -- "$as_myself" ||
1444 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1445 X"$as_myself" : 'X\(//\)[^/]' \| \
1446 X"$as_myself" : 'X\(//\)$' \| \
1447 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1448 $as_echo X"$as_myself" |
1449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1450 s//\1/
1451 q
1452 }
1453 /^X\(\/\/\)[^/].*/{
1454 s//\1/
1455 q
1456 }
1457 /^X\(\/\/\)$/{
1458 s//\1/
1459 q
1460 }
1461 /^X\(\/\).*/{
1462 s//\1/
1463 q
1464 }
1465 s/.*/./; q'`
1466 srcdir=$ac_confdir
1467 if test ! -r "$srcdir/$ac_unique_file"; then
1468 srcdir=..
1469 fi
1470 else
1471 ac_srcdir_defaulted=no
1472 fi
1473 if test ! -r "$srcdir/$ac_unique_file"; then
1474 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1475 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1476 { (exit 1); exit 1; }; }
1477 fi
1478 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1479 ac_abs_confdir=`(
1480 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1481 { (exit 1); exit 1; }; }
1482 pwd)`
1483 # When building in place, set srcdir=.
1484 if test "$ac_abs_confdir" = "$ac_pwd"; then
1485 srcdir=.
1486 fi
1487 # Remove unnecessary trailing slashes from srcdir.
1488 # Double slashes in file names in object file debugging info
1489 # mess up M-x gdb in Emacs.
1490 case $srcdir in
1491 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1492 esac
1493 for ac_var in $ac_precious_vars; do
1494 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1495 eval ac_env_${ac_var}_value=\$${ac_var}
1496 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1497 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1498 done
1499
1500 #
1501 # Report the --help message.
1502 #
1503 if test "$ac_init_help" = "long"; then
1504 # Omit some internal or obsolete options to make the list less imposing.
1505 # This message is too long to be a string in the A/UX 3.1 sh.
1506 cat <<_ACEOF
1507 \`configure' configures xf86-video-vmware 11.0.1 to adapt to many kinds of systems.
1508
1509 Usage: $0 [OPTION]... [VAR=VALUE]...
1510
1511 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1512 VAR=VALUE. See below for descriptions of some of the useful variables.
1513
1514 Defaults for the options are specified in brackets.
1515
1516 Configuration:
1517 -h, --help display this help and exit
1518 --help=short display options specific to this package
1519 --help=recursive display the short help of all the included packages
1520 -V, --version display version information and exit
1521 -q, --quiet, --silent do not print \`checking...' messages
1522 --cache-file=FILE cache test results in FILE [disabled]
1523 -C, --config-cache alias for \`--cache-file=config.cache'
1524 -n, --no-create do not create output files
1525 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1526
1527 Installation directories:
1528 --prefix=PREFIX install architecture-independent files in PREFIX
1529 [$ac_default_prefix]
1530 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1531 [PREFIX]
1532
1533 By default, \`make install' will install all the files in
1534 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1535 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1536 for instance \`--prefix=\$HOME'.
1537
1538 For better control, use the options below.
1539
1540 Fine tuning of the installation directories:
1541 --bindir=DIR user executables [EPREFIX/bin]
1542 --sbindir=DIR system admin executables [EPREFIX/sbin]
1543 --libexecdir=DIR program executables [EPREFIX/libexec]
1544 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1545 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1546 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1547 --libdir=DIR object code libraries [EPREFIX/lib]
1548 --includedir=DIR C header files [PREFIX/include]
1549 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1550 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1551 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1552 --infodir=DIR info documentation [DATAROOTDIR/info]
1553 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1554 --mandir=DIR man documentation [DATAROOTDIR/man]
1555 --docdir=DIR documentation root
1556 [DATAROOTDIR/doc/xf86-video-vmware]
1557 --htmldir=DIR html documentation [DOCDIR]
1558 --dvidir=DIR dvi documentation [DOCDIR]
1559 --pdfdir=DIR pdf documentation [DOCDIR]
1560 --psdir=DIR ps documentation [DOCDIR]
1561 _ACEOF
1562
1563 cat <<\_ACEOF
1564
1565 Program names:
1566 --program-prefix=PREFIX prepend PREFIX to installed program names
1567 --program-suffix=SUFFIX append SUFFIX to installed program names
1568 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1569
1570 System types:
1571 --build=BUILD configure for building on BUILD [guessed]
1572 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1573 _ACEOF
1574 fi
1575
1576 if test -n "$ac_init_help"; then
1577 case $ac_init_help in
1578 short | recursive ) echo "Configuration of xf86-video-vmware 11.0.1:";;
1579 esac
1580 cat <<\_ACEOF
1581
1582 Optional Features:
1583 --disable-option-checking ignore unrecognized --enable/--with options
1584 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1585 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1586 --enable-maintainer-mode enable make rules and dependencies not useful
1587 (and sometimes confusing) to the casual installer
1588 --disable-dependency-tracking speeds up one-time build
1589 --enable-dependency-tracking do not reject slow dependency extractors
1590 --enable-strict-compilation
1591 Enable all warnings from compiler and make them
1592 errors (default: disabled)
1593 --enable-static[=PKGS] build static libraries [default=no]
1594 --enable-shared[=PKGS] build shared libraries [default=yes]
1595 --enable-fast-install[=PKGS]
1596 optimize for fast installation [default=yes]
1597 --disable-libtool-lock avoid locking (might break parallel builds)
1598
1599 Optional Packages:
1600 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1601 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1602 --with-release-version=STRING
1603 Use release version string in package name
1604 --with-pic try to use only PIC/non-PIC objects [default=use
1605 both]
1606 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1607 --with-xorg-module-dir=DIR
1608 Default xorg module directory
1609 [default=$libdir/xorg/modules]
1610
1611 Some influential environment variables:
1612 CC C compiler command
1613 CFLAGS C compiler flags
1614 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1615 nonstandard directory <lib dir>
1616 LIBS libraries to pass to the linker, e.g. -l<library>
1617 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1618 you have headers in a nonstandard directory <include dir>
1619 CPP C preprocessor
1620 PKG_CONFIG path to pkg-config utility
1621 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1622 XORG_LIBS linker flags for XORG, overriding pkg-config
1623 DRM_CFLAGS C compiler flags for DRM, overriding pkg-config
1624 DRM_LIBS linker flags for DRM, overriding pkg-config
1625 PCIACCESS_CFLAGS
1626 C compiler flags for PCIACCESS, overriding pkg-config
1627 PCIACCESS_LIBS
1628 linker flags for PCIACCESS, overriding pkg-config
1629
1630 Use these variables to override the choices made by `configure' or to help
1631 it to find libraries and programs with nonstandard names/locations.
1632
1633 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1634 _ACEOF
1635 ac_status=$?
1636 fi
1637
1638 if test "$ac_init_help" = "recursive"; then
1639 # If there are subdirs, report their specific --help.
1640 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1641 test -d "$ac_dir" ||
1642 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1643 continue
1644 ac_builddir=.
1645
1646 case "$ac_dir" in
1647 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648 *)
1649 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1650 # A ".." for each directory in $ac_dir_suffix.
1651 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1652 case $ac_top_builddir_sub in
1653 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1655 esac ;;
1656 esac
1657 ac_abs_top_builddir=$ac_pwd
1658 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1659 # for backward compatibility:
1660 ac_top_builddir=$ac_top_build_prefix
1661
1662 case $srcdir in
1663 .) # We are building in place.
1664 ac_srcdir=.
1665 ac_top_srcdir=$ac_top_builddir_sub
1666 ac_abs_top_srcdir=$ac_pwd ;;
1667 [\\/]* | ?:[\\/]* ) # Absolute name.
1668 ac_srcdir=$srcdir$ac_dir_suffix;
1669 ac_top_srcdir=$srcdir
1670 ac_abs_top_srcdir=$srcdir ;;
1671 *) # Relative name.
1672 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1673 ac_top_srcdir=$ac_top_build_prefix$srcdir
1674 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1675 esac
1676 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1677
1678 cd "$ac_dir" || { ac_status=$?; continue; }
1679 # Check for guested configure.
1680 if test -f "$ac_srcdir/configure.gnu"; then
1681 echo &&
1682 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1683 elif test -f "$ac_srcdir/configure"; then
1684 echo &&
1685 $SHELL "$ac_srcdir/configure" --help=recursive
1686 else
1687 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1688 fi || ac_status=$?
1689 cd "$ac_pwd" || { ac_status=$?; break; }
1690 done
1691 fi
1692
1693 test -n "$ac_init_help" && exit $ac_status
1694 if $ac_init_version; then
1695 cat <<\_ACEOF
1696 xf86-video-vmware configure 11.0.1
1697 generated by GNU Autoconf 2.63
1698
1699 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1700 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1701 This configure script is free software; the Free Software Foundation
1702 gives unlimited permission to copy, distribute and modify it.
1703 _ACEOF
1704 exit
1705 fi
1706 cat >config.log <<_ACEOF
1707 This file contains any messages produced by compilers while
1708 running configure, to aid debugging if configure makes a mistake.
1709
1710 It was created by xf86-video-vmware $as_me 11.0.1, which was
1711 generated by GNU Autoconf 2.63. Invocation command line was
1712
1713 $ $0 $@
1714
1715 _ACEOF
1716 exec 5>>config.log
1717 {
1718 cat <<_ASUNAME
1719 ## --------- ##
1720 ## Platform. ##
1721 ## --------- ##
1722
1723 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1724 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1725 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1726 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1727 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1728
1729 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1730 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1731
1732 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1733 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1734 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1735 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1736 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1737 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1738 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1739
1740 _ASUNAME
1741
1742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743 for as_dir in $PATH
1744 do
1745 IFS=$as_save_IFS
1746 test -z "$as_dir" && as_dir=.
1747 $as_echo "PATH: $as_dir"
1748 done
1749 IFS=$as_save_IFS
1750
1751 } >&5
1752
1753 cat >&5 <<_ACEOF
1754
1755
1756 ## ----------- ##
1757 ## Core tests. ##
1758 ## ----------- ##
1759
1760 _ACEOF
1761
1762
1763 # Keep a trace of the command line.
1764 # Strip out --no-create and --no-recursion so they do not pile up.
1765 # Strip out --silent because we don't want to record it for future runs.
1766 # Also quote any args containing shell meta-characters.
1767 # Make two passes to allow for proper duplicate-argument suppression.
1768 ac_configure_args=
1769 ac_configure_args0=
1770 ac_configure_args1=
1771 ac_must_keep_next=false
1772 for ac_pass in 1 2
1773 do
1774 for ac_arg
1775 do
1776 case $ac_arg in
1777 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1778 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1779 | -silent | --silent | --silen | --sile | --sil)
1780 continue ;;
1781 *\'*)
1782 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1783 esac
1784 case $ac_pass in
1785 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1786 2)
1787 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1788 if test $ac_must_keep_next = true; then
1789 ac_must_keep_next=false # Got value, back to normal.
1790 else
1791 case $ac_arg in
1792 *=* | --config-cache | -C | -disable-* | --disable-* \
1793 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1794 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1795 | -with-* | --with-* | -without-* | --without-* | --x)
1796 case "$ac_configure_args0 " in
1797 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1798 esac
1799 ;;
1800 -* ) ac_must_keep_next=true ;;
1801 esac
1802 fi
1803 ac_configure_args="$ac_configure_args '$ac_arg'"
1804 ;;
1805 esac
1806 done
1807 done
1808 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1809 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1810
1811 # When interrupted or exit'd, cleanup temporary files, and complete
1812 # config.log. We remove comments because anyway the quotes in there
1813 # would cause problems or look ugly.
1814 # WARNING: Use '\'' to represent an apostrophe within the trap.
1815 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1816 trap 'exit_status=$?
1817 # Save into config.log some information that might help in debugging.
1818 {
1819 echo
1820
1821 cat <<\_ASBOX
1822 ## ---------------- ##
1823 ## Cache variables. ##
1824 ## ---------------- ##
1825 _ASBOX
1826 echo
1827 # The following way of writing the cache mishandles newlines in values,
1828 (
1829 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1830 eval ac_val=\$$ac_var
1831 case $ac_val in #(
1832 *${as_nl}*)
1833 case $ac_var in #(
1834 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1835 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1836 esac
1837 case $ac_var in #(
1838 _ | IFS | as_nl) ;; #(
1839 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1840 *) $as_unset $ac_var ;;
1841 esac ;;
1842 esac
1843 done
1844 (set) 2>&1 |
1845 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1846 *${as_nl}ac_space=\ *)
1847 sed -n \
1848 "s/'\''/'\''\\\\'\'''\''/g;
1849 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1850 ;; #(
1851 *)
1852 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1853 ;;
1854 esac |
1855 sort
1856 )
1857 echo
1858
1859 cat <<\_ASBOX
1860 ## ----------------- ##
1861 ## Output variables. ##
1862 ## ----------------- ##
1863 _ASBOX
1864 echo
1865 for ac_var in $ac_subst_vars
1866 do
1867 eval ac_val=\$$ac_var
1868 case $ac_val in
1869 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1870 esac
1871 $as_echo "$ac_var='\''$ac_val'\''"
1872 done | sort
1873 echo
1874
1875 if test -n "$ac_subst_files"; then
1876 cat <<\_ASBOX
1877 ## ------------------- ##
1878 ## File substitutions. ##
1879 ## ------------------- ##
1880 _ASBOX
1881 echo
1882 for ac_var in $ac_subst_files
1883 do
1884 eval ac_val=\$$ac_var
1885 case $ac_val in
1886 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1887 esac
1888 $as_echo "$ac_var='\''$ac_val'\''"
1889 done | sort
1890 echo
1891 fi
1892
1893 if test -s confdefs.h; then
1894 cat <<\_ASBOX
1895 ## ----------- ##
1896 ## confdefs.h. ##
1897 ## ----------- ##
1898 _ASBOX
1899 echo
1900 cat confdefs.h
1901 echo
1902 fi
1903 test "$ac_signal" != 0 &&
1904 $as_echo "$as_me: caught signal $ac_signal"
1905 $as_echo "$as_me: exit $exit_status"
1906 } >&5
1907 rm -f core *.core core.conftest.* &&
1908 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1909 exit $exit_status
1910 ' 0
1911 for ac_signal in 1 2 13 15; do
1912 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1913 done
1914 ac_signal=0
1915
1916 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1917 rm -f -r conftest* confdefs.h
1918
1919 # Predefined preprocessor variables.
1920
1921 cat >>confdefs.h <<_ACEOF
1922 #define PACKAGE_NAME "$PACKAGE_NAME"
1923 _ACEOF
1924
1925
1926 cat >>confdefs.h <<_ACEOF
1927 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1928 _ACEOF
1929
1930
1931 cat >>confdefs.h <<_ACEOF
1932 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1933 _ACEOF
1934
1935
1936 cat >>confdefs.h <<_ACEOF
1937 #define PACKAGE_STRING "$PACKAGE_STRING"
1938 _ACEOF
1939
1940
1941 cat >>confdefs.h <<_ACEOF
1942 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1943 _ACEOF
1944
1945
1946 # Let the site file select an alternate cache file if it wants to.
1947 # Prefer an explicitly selected file to automatically selected ones.
1948 ac_site_file1=NONE
1949 ac_site_file2=NONE
1950 if test -n "$CONFIG_SITE"; then
1951 ac_site_file1=$CONFIG_SITE
1952 elif test "x$prefix" != xNONE; then
1953 ac_site_file1=$prefix/share/config.site
1954 ac_site_file2=$prefix/etc/config.site
1955 else
1956 ac_site_file1=$ac_default_prefix/share/config.site
1957 ac_site_file2=$ac_default_prefix/etc/config.site
1958 fi
1959 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1960 do
1961 test "x$ac_site_file" = xNONE && continue
1962 if test -r "$ac_site_file"; then
1963 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1964 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1965 sed 's/^/| /' "$ac_site_file" >&5
1966 . "$ac_site_file"
1967 fi
1968 done
1969
1970 if test -r "$cache_file"; then
1971 # Some versions of bash will fail to source /dev/null (special
1972 # files actually), so we avoid doing that.
1973 if test -f "$cache_file"; then
1974 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1975 $as_echo "$as_me: loading cache $cache_file" >&6;}
1976 case $cache_file in
1977 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1978 *) . "./$cache_file";;
1979 esac
1980 fi
1981 else
1982 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1983 $as_echo "$as_me: creating cache $cache_file" >&6;}
1984 >$cache_file
1985 fi
1986
1987 # Check that the precious variables saved in the cache have kept the same
1988 # value.
1989 ac_cache_corrupted=false
1990 for ac_var in $ac_precious_vars; do
1991 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1992 eval ac_new_set=\$ac_env_${ac_var}_set
1993 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1994 eval ac_new_val=\$ac_env_${ac_var}_value
1995 case $ac_old_set,$ac_new_set in
1996 set,)
1997 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1998 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1999 ac_cache_corrupted=: ;;
2000 ,set)
2001 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2002 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2003 ac_cache_corrupted=: ;;
2004 ,);;
2005 *)
2006 if test "x$ac_old_val" != "x$ac_new_val"; then
2007 # differences in whitespace do not lead to failure.
2008 ac_old_val_w=`echo x $ac_old_val`
2009 ac_new_val_w=`echo x $ac_new_val`
2010 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2011 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2012 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2013 ac_cache_corrupted=:
2014 else
2015 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2016 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2017 eval $ac_var=\$ac_old_val
2018 fi
2019 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2020 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2021 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2022 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2023 fi;;
2024 esac
2025 # Pass precious variables to config.status.
2026 if test "$ac_new_set" = set; then
2027 case $ac_new_val in
2028 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2029 *) ac_arg=$ac_var=$ac_new_val ;;
2030 esac
2031 case " $ac_configure_args " in
2032 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2033 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2034 esac
2035 fi
2036 done
2037 if $ac_cache_corrupted; then
2038 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2040 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2041 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2042 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2043 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2044 { (exit 1); exit 1; }; }
2045 fi
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071 ac_ext=c
2072 ac_cpp='$CPP $CPPFLAGS'
2073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2076
2077
2078
2079
2080 ac_config_headers="$ac_config_headers config.h"
2081
2082 ac_aux_dir=
2083 for ac_dir in . "$srcdir"/.; do
2084 if test -f "$ac_dir/install-sh"; then
2085 ac_aux_dir=$ac_dir
2086 ac_install_sh="$ac_aux_dir/install-sh -c"
2087 break
2088 elif test -f "$ac_dir/install.sh"; then
2089 ac_aux_dir=$ac_dir
2090 ac_install_sh="$ac_aux_dir/install.sh -c"
2091 break
2092 elif test -f "$ac_dir/shtool"; then
2093 ac_aux_dir=$ac_dir
2094 ac_install_sh="$ac_aux_dir/shtool install -c"
2095 break
2096 fi
2097 done
2098 if test -z "$ac_aux_dir"; then
2099 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2100 $as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2101 { (exit 1); exit 1; }; }
2102 fi
2103
2104 # These three variables are undocumented and unsupported,
2105 # and are intended to be withdrawn in a future Autoconf release.
2106 # They can cause serious problems if a builder's source tree is in a directory
2107 # whose full name contains unusual characters.
2108 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2109 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2110 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2111
2112
2113
2114 am__api_version='1.10'
2115
2116 # Find a good install program. We prefer a C program (faster),
2117 # so one script is as good as another. But avoid the broken or
2118 # incompatible versions:
2119 # SysV /etc/install, /usr/sbin/install
2120 # SunOS /usr/etc/install
2121 # IRIX /sbin/install
2122 # AIX /bin/install
2123 # AmigaOS /C/install, which installs bootblocks on floppy discs
2124 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2125 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2126 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2127 # OS/2's system install, which has a completely different semantic
2128 # ./install, which can be erroneously created by make from ./install.sh.
2129 # Reject install programs that cannot install multiple files.
2130 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2131 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2132 if test -z "$INSTALL"; then
2133 if test "${ac_cv_path_install+set}" = set; then
2134 $as_echo_n "(cached) " >&6
2135 else
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 for as_dir in $PATH
2138 do
2139 IFS=$as_save_IFS
2140 test -z "$as_dir" && as_dir=.
2141 # Account for people who put trailing slashes in PATH elements.
2142 case $as_dir/ in
2143 ./ | .// | /cC/* | \
2144 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2145 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2146 /usr/ucb/* ) ;;
2147 *)
2148 # OSF1 and SCO ODT 3.0 have their own names for install.
2149 # Don't use installbsd from OSF since it installs stuff as root
2150 # by default.
2151 for ac_prog in ginstall scoinst install; do
2152 for ac_exec_ext in '' $ac_executable_extensions; do
2153 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2154 if test $ac_prog = install &&
2155 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2156 # AIX install. It has an incompatible calling convention.
2157 :
2158 elif test $ac_prog = install &&
2159 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2160 # program-specific install script used by HP pwplus--don't use.
2161 :
2162 else
2163 rm -rf conftest.one conftest.two conftest.dir
2164 echo one > conftest.one
2165 echo two > conftest.two
2166 mkdir conftest.dir
2167 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2168 test -s conftest.one && test -s conftest.two &&
2169 test -s conftest.dir/conftest.one &&
2170 test -s conftest.dir/conftest.two
2171 then
2172 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2173 break 3
2174 fi
2175 fi
2176 fi
2177 done
2178 done
2179 ;;
2180 esac
2181
2182 done
2183 IFS=$as_save_IFS
2184
2185 rm -rf conftest.one conftest.two conftest.dir
2186
2187 fi
2188 if test "${ac_cv_path_install+set}" = set; then
2189 INSTALL=$ac_cv_path_install
2190 else
2191 # As a last resort, use the slow shell script. Don't cache a
2192 # value for INSTALL within a source directory, because that will
2193 # break other packages using the cache if that directory is
2194 # removed, or if the value is a relative name.
2195 INSTALL=$ac_install_sh
2196 fi
2197 fi
2198 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2199 $as_echo "$INSTALL" >&6; }
2200
2201 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2202 # It thinks the first close brace ends the variable substitution.
2203 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2204
2205 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2206
2207 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2208
2209 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2210 $as_echo_n "checking whether build environment is sane... " >&6; }
2211 # Just in case
2212 sleep 1
2213 echo timestamp > conftest.file
2214 # Do `set' in a subshell so we don't clobber the current shell's
2215 # arguments. Must try -L first in case configure is actually a
2216 # symlink; some systems play weird games with the mod time of symlinks
2217 # (eg FreeBSD returns the mod time of the symlink's containing
2218 # directory).
2219 if (
2220 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2221 if test "$*" = "X"; then
2222 # -L didn't work.
2223 set X `ls -t $srcdir/configure conftest.file`
2224 fi
2225 rm -f conftest.file
2226 if test "$*" != "X $srcdir/configure conftest.file" \
2227 && test "$*" != "X conftest.file $srcdir/configure"; then
2228
2229 # If neither matched, then we have a broken ls. This can happen
2230 # if, for instance, CONFIG_SHELL is bash and it inherits a
2231 # broken ls alias from the environment. This has actually
2232 # happened. Such a system could not be considered "sane".
2233 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2234 alias in your environment" >&5
2235 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2236 alias in your environment" >&2;}
2237 { (exit 1); exit 1; }; }
2238 fi
2239
2240 test "$2" = conftest.file
2241 )
2242 then
2243 # Ok.
2244 :
2245 else
2246 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2247 Check your system clock" >&5
2248 $as_echo "$as_me: error: newly created file is older than distributed files!
2249 Check your system clock" >&2;}
2250 { (exit 1); exit 1; }; }
2251 fi
2252 { $as_echo "$as_me:$LINENO: result: yes" >&5
2253 $as_echo "yes" >&6; }
2254 test "$program_prefix" != NONE &&
2255 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2256 # Use a double $ so make ignores it.
2257 test "$program_suffix" != NONE &&
2258 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2259 # Double any \ or $.
2260 # By default was `s,x,x', remove it if useless.
2261 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2262 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2263
2264 # expand $ac_aux_dir to an absolute path
2265 am_aux_dir=`cd $ac_aux_dir && pwd`
2266
2267 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2268 # Use eval to expand $SHELL
2269 if eval "$MISSING --run true"; then
2270 am_missing_run="$MISSING --run "
2271 else
2272 am_missing_run=
2273 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2274 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2275 fi
2276
2277 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2278 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2279 if test -z "$MKDIR_P"; then
2280 if test "${ac_cv_path_mkdir+set}" = set; then
2281 $as_echo_n "(cached) " >&6
2282 else
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2285 do
2286 IFS=$as_save_IFS
2287 test -z "$as_dir" && as_dir=.
2288 for ac_prog in mkdir gmkdir; do
2289 for ac_exec_ext in '' $ac_executable_extensions; do
2290 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2291 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2292 'mkdir (GNU coreutils) '* | \
2293 'mkdir (coreutils) '* | \
2294 'mkdir (fileutils) '4.1*)
2295 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2296 break 3;;
2297 esac
2298 done
2299 done
2300 done
2301 IFS=$as_save_IFS
2302
2303 fi
2304
2305 if test "${ac_cv_path_mkdir+set}" = set; then
2306 MKDIR_P="$ac_cv_path_mkdir -p"
2307 else
2308 # As a last resort, use the slow shell script. Don't cache a
2309 # value for MKDIR_P within a source directory, because that will
2310 # break other packages using the cache if that directory is
2311 # removed, or if the value is a relative name.
2312 test -d ./--version && rmdir ./--version
2313 MKDIR_P="$ac_install_sh -d"
2314 fi
2315 fi
2316 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2317 $as_echo "$MKDIR_P" >&6; }
2318
2319 mkdir_p="$MKDIR_P"
2320 case $mkdir_p in
2321 [\\/$]* | ?:[\\/]*) ;;
2322 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2323 esac
2324
2325 for ac_prog in gawk mawk nawk awk
2326 do
2327 # Extract the first word of "$ac_prog", so it can be a program name with args.
2328 set dummy $ac_prog; ac_word=$2
2329 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2330 $as_echo_n "checking for $ac_word... " >&6; }
2331 if test "${ac_cv_prog_AWK+set}" = set; then
2332 $as_echo_n "(cached) " >&6
2333 else
2334 if test -n "$AWK"; then
2335 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2336 else
2337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338 for as_dir in $PATH
2339 do
2340 IFS=$as_save_IFS
2341 test -z "$as_dir" && as_dir=.
2342 for ac_exec_ext in '' $ac_executable_extensions; do
2343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2344 ac_cv_prog_AWK="$ac_prog"
2345 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2346 break 2
2347 fi
2348 done
2349 done
2350 IFS=$as_save_IFS
2351
2352 fi
2353 fi
2354 AWK=$ac_cv_prog_AWK
2355 if test -n "$AWK"; then
2356 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2357 $as_echo "$AWK" >&6; }
2358 else
2359 { $as_echo "$as_me:$LINENO: result: no" >&5
2360 $as_echo "no" >&6; }
2361 fi
2362
2363
2364 test -n "$AWK" && break
2365 done
2366
2367 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2368 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2369 set x ${MAKE-make}
2370 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2371 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2372 $as_echo_n "(cached) " >&6
2373 else
2374 cat >conftest.make <<\_ACEOF
2375 SHELL = /bin/sh
2376 all:
2377 @echo '@@@%%%=$(MAKE)=@@@%%%'
2378 _ACEOF
2379 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2380 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2381 *@@@%%%=?*=@@@%%%*)
2382 eval ac_cv_prog_make_${ac_make}_set=yes;;
2383 *)
2384 eval ac_cv_prog_make_${ac_make}_set=no;;
2385 esac
2386 rm -f conftest.make
2387 fi
2388 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2389 { $as_echo "$as_me:$LINENO: result: yes" >&5
2390 $as_echo "yes" >&6; }
2391 SET_MAKE=
2392 else
2393 { $as_echo "$as_me:$LINENO: result: no" >&5
2394 $as_echo "no" >&6; }
2395 SET_MAKE="MAKE=${MAKE-make}"
2396 fi
2397
2398 rm -rf .tst 2>/dev/null
2399 mkdir .tst 2>/dev/null
2400 if test -d .tst; then
2401 am__leading_dot=.
2402 else
2403 am__leading_dot=_
2404 fi
2405 rmdir .tst 2>/dev/null
2406
2407 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2408 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2409 # is not polluted with repeated "-I."
2410 am__isrc=' -I$(srcdir)'
2411 # test to see if srcdir already configured
2412 if test -f $srcdir/config.status; then
2413 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2414 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2415 { (exit 1); exit 1; }; }
2416 fi
2417 fi
2418
2419 # test whether we have cygpath
2420 if test -z "$CYGPATH_W"; then
2421 if (cygpath --version) >/dev/null 2>/dev/null; then
2422 CYGPATH_W='cygpath -w'
2423 else
2424 CYGPATH_W=echo
2425 fi
2426 fi
2427
2428
2429 # Define the identity of the package.
2430 PACKAGE='xf86-video-vmware'
2431 VERSION='11.0.1'
2432
2433
2434 cat >>confdefs.h <<_ACEOF
2435 #define PACKAGE "$PACKAGE"
2436 _ACEOF
2437
2438
2439 cat >>confdefs.h <<_ACEOF
2440 #define VERSION "$VERSION"
2441 _ACEOF
2442
2443 # Some tools Automake needs.
2444
2445 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2446
2447
2448 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2449
2450
2451 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2452
2453
2454 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2455
2456
2457 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2458
2459 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2460
2461 # Installed binaries are usually stripped using `strip' when the user
2462 # run `make install-strip'. However `strip' might not be the right
2463 # tool to use in cross-compilation environments, therefore Automake
2464 # will honor the `STRIP' environment variable to overrule this program.
2465 if test "$cross_compiling" != no; then
2466 if test -n "$ac_tool_prefix"; then
2467 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2468 set dummy ${ac_tool_prefix}strip; ac_word=$2
2469 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2470 $as_echo_n "checking for $ac_word... " >&6; }
2471 if test "${ac_cv_prog_STRIP+set}" = set; then
2472 $as_echo_n "(cached) " >&6
2473 else
2474 if test -n "$STRIP"; then
2475 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2476 else
2477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 for as_dir in $PATH
2479 do
2480 IFS=$as_save_IFS
2481 test -z "$as_dir" && as_dir=.
2482 for ac_exec_ext in '' $ac_executable_extensions; do
2483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2484 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2485 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2486 break 2
2487 fi
2488 done
2489 done
2490 IFS=$as_save_IFS
2491
2492 fi
2493 fi
2494 STRIP=$ac_cv_prog_STRIP
2495 if test -n "$STRIP"; then
2496 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2497 $as_echo "$STRIP" >&6; }
2498 else
2499 { $as_echo "$as_me:$LINENO: result: no" >&5
2500 $as_echo "no" >&6; }
2501 fi
2502
2503
2504 fi
2505 if test -z "$ac_cv_prog_STRIP"; then
2506 ac_ct_STRIP=$STRIP
2507 # Extract the first word of "strip", so it can be a program name with args.
2508 set dummy strip; ac_word=$2
2509 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2510 $as_echo_n "checking for $ac_word... " >&6; }
2511 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2512 $as_echo_n "(cached) " >&6
2513 else
2514 if test -n "$ac_ct_STRIP"; then
2515 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2516 else
2517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518 for as_dir in $PATH
2519 do
2520 IFS=$as_save_IFS
2521 test -z "$as_dir" && as_dir=.
2522 for ac_exec_ext in '' $ac_executable_extensions; do
2523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2524 ac_cv_prog_ac_ct_STRIP="strip"
2525 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2526 break 2
2527 fi
2528 done
2529 done
2530 IFS=$as_save_IFS
2531
2532 fi
2533 fi
2534 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2535 if test -n "$ac_ct_STRIP"; then
2536 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2537 $as_echo "$ac_ct_STRIP" >&6; }
2538 else
2539 { $as_echo "$as_me:$LINENO: result: no" >&5
2540 $as_echo "no" >&6; }
2541 fi
2542
2543 if test "x$ac_ct_STRIP" = x; then
2544 STRIP=":"
2545 else
2546 case $cross_compiling:$ac_tool_warned in
2547 yes:)
2548 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2550 ac_tool_warned=yes ;;
2551 esac
2552 STRIP=$ac_ct_STRIP
2553 fi
2554 else
2555 STRIP="$ac_cv_prog_STRIP"
2556 fi
2557
2558 fi
2559 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2560
2561 # We need awk for the "check" target. The system "awk" is bad on
2562 # some platforms.
2563 # Always define AMTAR for backward compatibility.
2564
2565 AMTAR=${AMTAR-"${am_missing_run}tar"}
2566
2567 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2568
2569
2570
2571
2572
2573
2574 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2575 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2576 # Check whether --enable-maintainer-mode was given.
2577 if test "${enable_maintainer_mode+set}" = set; then
2578 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2579 else
2580 USE_MAINTAINER_MODE=no
2581 fi
2582
2583 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2584 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2585 if test $USE_MAINTAINER_MODE = yes; then
2586 MAINTAINER_MODE_TRUE=
2587 MAINTAINER_MODE_FALSE='#'
2588 else
2589 MAINTAINER_MODE_TRUE='#'
2590 MAINTAINER_MODE_FALSE=
2591 fi
2592
2593 MAINT=$MAINTAINER_MODE_TRUE
2594
2595
2596
2597 # Require xorg-macros: XORG_DEFAULT_OPTIONS
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609 DEPDIR="${am__leading_dot}deps"
2610
2611 ac_config_commands="$ac_config_commands depfiles"
2612
2613
2614 am_make=${MAKE-make}
2615 cat > confinc << 'END'
2616 am__doit:
2617 @echo done
2618 .PHONY: am__doit
2619 END
2620 # If we don't find an include directive, just comment out the code.
2621 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2622 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2623 am__include="#"
2624 am__quote=
2625 _am_result=none
2626 # First try GNU make style include.
2627 echo "include confinc" > confmf
2628 # We grep out `Entering directory' and `Leaving directory'
2629 # messages which can occur if `w' ends up in MAKEFLAGS.
2630 # In particular we don't look at `^make:' because GNU make might
2631 # be invoked under some other name (usually "gmake"), in which
2632 # case it prints its new name instead of `make'.
2633 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2634 am__include=include
2635 am__quote=
2636 _am_result=GNU
2637 fi
2638 # Now try BSD make style include.
2639 if test "$am__include" = "#"; then
2640 echo '.include "confinc"' > confmf
2641 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2642 am__include=.include
2643 am__quote="\""
2644 _am_result=BSD
2645 fi
2646 fi
2647
2648
2649 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2650 $as_echo "$_am_result" >&6; }
2651 rm -f confinc confmf
2652
2653 # Check whether --enable-dependency-tracking was given.
2654 if test "${enable_dependency_tracking+set}" = set; then
2655 enableval=$enable_dependency_tracking;
2656 fi
2657
2658 if test "x$enable_dependency_tracking" != xno; then
2659 am_depcomp="$ac_aux_dir/depcomp"
2660 AMDEPBACKSLASH='\'
2661 fi
2662 if test "x$enable_dependency_tracking" != xno; then
2663 AMDEP_TRUE=
2664 AMDEP_FALSE='#'
2665 else
2666 AMDEP_TRUE='#'
2667 AMDEP_FALSE=
2668 fi
2669
2670
2671 ac_ext=c
2672 ac_cpp='$CPP $CPPFLAGS'
2673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2676 if test -n "$ac_tool_prefix"; then
2677 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2678 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2679 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2680 $as_echo_n "checking for $ac_word... " >&6; }
2681 if test "${ac_cv_prog_CC+set}" = set; then
2682 $as_echo_n "(cached) " >&6
2683 else
2684 if test -n "$CC"; then
2685 ac_cv_prog_CC="$CC" # Let the user override the test.
2686 else
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 for as_dir in $PATH
2689 do
2690 IFS=$as_save_IFS
2691 test -z "$as_dir" && as_dir=.
2692 for ac_exec_ext in '' $ac_executable_extensions; do
2693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2694 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2695 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 break 2
2697 fi
2698 done
2699 done
2700 IFS=$as_save_IFS
2701
2702 fi
2703 fi
2704 CC=$ac_cv_prog_CC
2705 if test -n "$CC"; then
2706 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2707 $as_echo "$CC" >&6; }
2708 else
2709 { $as_echo "$as_me:$LINENO: result: no" >&5
2710 $as_echo "no" >&6; }
2711 fi
2712
2713
2714 fi
2715 if test -z "$ac_cv_prog_CC"; then
2716 ac_ct_CC=$CC
2717 # Extract the first word of "gcc", so it can be a program name with args.
2718 set dummy gcc; ac_word=$2
2719 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2720 $as_echo_n "checking for $ac_word... " >&6; }
2721 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2722 $as_echo_n "(cached) " >&6
2723 else
2724 if test -n "$ac_ct_CC"; then
2725 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2726 else
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 for as_dir in $PATH
2729 do
2730 IFS=$as_save_IFS
2731 test -z "$as_dir" && as_dir=.
2732 for ac_exec_ext in '' $ac_executable_extensions; do
2733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2734 ac_cv_prog_ac_ct_CC="gcc"
2735 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2736 break 2
2737 fi
2738 done
2739 done
2740 IFS=$as_save_IFS
2741
2742 fi
2743 fi
2744 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2745 if test -n "$ac_ct_CC"; then
2746 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2747 $as_echo "$ac_ct_CC" >&6; }
2748 else
2749 { $as_echo "$as_me:$LINENO: result: no" >&5
2750 $as_echo "no" >&6; }
2751 fi
2752
2753 if test "x$ac_ct_CC" = x; then
2754 CC=""
2755 else
2756 case $cross_compiling:$ac_tool_warned in
2757 yes:)
2758 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2760 ac_tool_warned=yes ;;
2761 esac
2762 CC=$ac_ct_CC
2763 fi
2764 else
2765 CC="$ac_cv_prog_CC"
2766 fi
2767
2768 if test -z "$CC"; then
2769 if test -n "$ac_tool_prefix"; then
2770 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2771 set dummy ${ac_tool_prefix}cc; ac_word=$2
2772 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2773 $as_echo_n "checking for $ac_word... " >&6; }
2774 if test "${ac_cv_prog_CC+set}" = set; then
2775 $as_echo_n "(cached) " >&6
2776 else
2777 if test -n "$CC"; then
2778 ac_cv_prog_CC="$CC" # Let the user override the test.
2779 else
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 for as_dir in $PATH
2782 do
2783 IFS=$as_save_IFS
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2787 ac_cv_prog_CC="${ac_tool_prefix}cc"
2788 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 break 2
2790 fi
2791 done
2792 done
2793 IFS=$as_save_IFS
2794
2795 fi
2796 fi
2797 CC=$ac_cv_prog_CC
2798 if test -n "$CC"; then
2799 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2800 $as_echo "$CC" >&6; }
2801 else
2802 { $as_echo "$as_me:$LINENO: result: no" >&5
2803 $as_echo "no" >&6; }
2804 fi
2805
2806
2807 fi
2808 fi
2809 if test -z "$CC"; then
2810 # Extract the first word of "cc", so it can be a program name with args.
2811 set dummy cc; ac_word=$2
2812 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2813 $as_echo_n "checking for $ac_word... " >&6; }
2814 if test "${ac_cv_prog_CC+set}" = set; then
2815 $as_echo_n "(cached) " >&6
2816 else
2817 if test -n "$CC"; then
2818 ac_cv_prog_CC="$CC" # Let the user override the test.
2819 else
2820 ac_prog_rejected=no
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2823 do
2824 IFS=$as_save_IFS
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2828 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2829 ac_prog_rejected=yes
2830 continue
2831 fi
2832 ac_cv_prog_CC="cc"
2833 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2834 break 2
2835 fi
2836 done
2837 done
2838 IFS=$as_save_IFS
2839
2840 if test $ac_prog_rejected = yes; then
2841 # We found a bogon in the path, so make sure we never use it.
2842 set dummy $ac_cv_prog_CC
2843 shift
2844 if test $# != 0; then
2845 # We chose a different compiler from the bogus one.
2846 # However, it has the same basename, so the bogon will be chosen
2847 # first if we set CC to just the basename; use the full file name.
2848 shift
2849 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2850 fi
2851 fi
2852 fi
2853 fi
2854 CC=$ac_cv_prog_CC
2855 if test -n "$CC"; then
2856 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2857 $as_echo "$CC" >&6; }
2858 else
2859 { $as_echo "$as_me:$LINENO: result: no" >&5
2860 $as_echo "no" >&6; }
2861 fi
2862
2863
2864 fi
2865 if test -z "$CC"; then
2866 if test -n "$ac_tool_prefix"; then
2867 for ac_prog in cl.exe
2868 do
2869 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2870 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2871 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2872 $as_echo_n "checking for $ac_word... " >&6; }
2873 if test "${ac_cv_prog_CC+set}" = set; then
2874 $as_echo_n "(cached) " >&6
2875 else
2876 if test -n "$CC"; then
2877 ac_cv_prog_CC="$CC" # Let the user override the test.
2878 else
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2881 do
2882 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2886 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2887 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 break 2
2889 fi
2890 done
2891 done
2892 IFS=$as_save_IFS
2893
2894 fi
2895 fi
2896 CC=$ac_cv_prog_CC
2897 if test -n "$CC"; then
2898 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2899 $as_echo "$CC" >&6; }
2900 else
2901 { $as_echo "$as_me:$LINENO: result: no" >&5
2902 $as_echo "no" >&6; }
2903 fi
2904
2905
2906 test -n "$CC" && break
2907 done
2908 fi
2909 if test -z "$CC"; then
2910 ac_ct_CC=$CC
2911 for ac_prog in cl.exe
2912 do
2913 # Extract the first word of "$ac_prog", so it can be a program name with args.
2914 set dummy $ac_prog; ac_word=$2
2915 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2916 $as_echo_n "checking for $ac_word... " >&6; }
2917 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2918 $as_echo_n "(cached) " >&6
2919 else
2920 if test -n "$ac_ct_CC"; then
2921 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2922 else
2923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924 for as_dir in $PATH
2925 do
2926 IFS=$as_save_IFS
2927 test -z "$as_dir" && as_dir=.
2928 for ac_exec_ext in '' $ac_executable_extensions; do
2929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2930 ac_cv_prog_ac_ct_CC="$ac_prog"
2931 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2932 break 2
2933 fi
2934 done
2935 done
2936 IFS=$as_save_IFS
2937
2938 fi
2939 fi
2940 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2941 if test -n "$ac_ct_CC"; then
2942 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2943 $as_echo "$ac_ct_CC" >&6; }
2944 else
2945 { $as_echo "$as_me:$LINENO: result: no" >&5
2946 $as_echo "no" >&6; }
2947 fi
2948
2949
2950 test -n "$ac_ct_CC" && break
2951 done
2952
2953 if test "x$ac_ct_CC" = x; then
2954 CC=""
2955 else
2956 case $cross_compiling:$ac_tool_warned in
2957 yes:)
2958 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2960 ac_tool_warned=yes ;;
2961 esac
2962 CC=$ac_ct_CC
2963 fi
2964 fi
2965
2966 fi
2967
2968
2969 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2971 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2972 See \`config.log' for more details." >&5
2973 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2974 See \`config.log' for more details." >&2;}
2975 { (exit 1); exit 1; }; }; }
2976
2977 # Provide some information about the compiler.
2978 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2979 set X $ac_compile
2980 ac_compiler=$2
2981 { (ac_try="$ac_compiler --version >&5"
2982 case "(($ac_try" in
2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2985 esac
2986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2987 $as_echo "$ac_try_echo") >&5
2988 (eval "$ac_compiler --version >&5") 2>&5
2989 ac_status=$?
2990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); }
2992 { (ac_try="$ac_compiler -v >&5"
2993 case "(($ac_try" in
2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
2996 esac
2997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2998 $as_echo "$ac_try_echo") >&5
2999 (eval "$ac_compiler -v >&5") 2>&5
3000 ac_status=$?
3001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }
3003 { (ac_try="$ac_compiler -V >&5"
3004 case "(($ac_try" in
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3007 esac
3008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3009 $as_echo "$ac_try_echo") >&5
3010 (eval "$ac_compiler -V >&5") 2>&5
3011 ac_status=$?
3012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); }
3014
3015 cat >conftest.$ac_ext <<_ACEOF
3016 /* confdefs.h. */
3017 _ACEOF
3018 cat confdefs.h >>conftest.$ac_ext
3019 cat >>conftest.$ac_ext <<_ACEOF
3020 /* end confdefs.h. */
3021
3022 int
3023 main ()
3024 {
3025
3026 ;
3027 return 0;
3028 }
3029 _ACEOF
3030 ac_clean_files_save=$ac_clean_files
3031 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3032 # Try to create an executable without -o first, disregard a.out.
3033 # It will help us diagnose broken compilers, and finding out an intuition
3034 # of exeext.
3035 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3036 $as_echo_n "checking for C compiler default output file name... " >&6; }
3037 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3038
3039 # The possible output files:
3040 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3041
3042 ac_rmfiles=
3043 for ac_file in $ac_files
3044 do
3045 case $ac_file in
3046 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3047 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3048 esac
3049 done
3050 rm -f $ac_rmfiles
3051
3052 if { (ac_try="$ac_link_default"
3053 case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056 esac
3057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3058 $as_echo "$ac_try_echo") >&5
3059 (eval "$ac_link_default") 2>&5
3060 ac_status=$?
3061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }; then
3063 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3064 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3065 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3066 # so that the user can short-circuit this test for compilers unknown to
3067 # Autoconf.
3068 for ac_file in $ac_files ''
3069 do
3070 test -f "$ac_file" || continue
3071 case $ac_file in
3072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3073 ;;
3074 [ab].out )
3075 # We found the default executable, but exeext='' is most
3076 # certainly right.
3077 break;;
3078 *.* )
3079 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3080 then :; else
3081 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3082 fi
3083 # We set ac_cv_exeext here because the later test for it is not
3084 # safe: cross compilers may not add the suffix if given an `-o'
3085 # argument, so we may need to know it at that point already.
3086 # Even if this section looks crufty: it has the advantage of
3087 # actually working.
3088 break;;
3089 * )
3090 break;;
3091 esac
3092 done
3093 test "$ac_cv_exeext" = no && ac_cv_exeext=
3094
3095 else
3096 ac_file=''
3097 fi
3098
3099 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3100 $as_echo "$ac_file" >&6; }
3101 if test -z "$ac_file"; then
3102 $as_echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3104
3105 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3107 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3108 See \`config.log' for more details." >&5
3109 $as_echo "$as_me: error: C compiler cannot create executables
3110 See \`config.log' for more details." >&2;}
3111 { (exit 77); exit 77; }; }; }
3112 fi
3113
3114 ac_exeext=$ac_cv_exeext
3115
3116 # Check that the compiler produces executables we can run. If not, either
3117 # the compiler is broken, or we cross compile.
3118 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3119 $as_echo_n "checking whether the C compiler works... " >&6; }
3120 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3121 # If not cross compiling, check that we can run a simple program.
3122 if test "$cross_compiling" != yes; then
3123 if { ac_try='./$ac_file'
3124 { (case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127 esac
3128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3129 $as_echo "$ac_try_echo") >&5
3130 (eval "$ac_try") 2>&5
3131 ac_status=$?
3132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); }; }; then
3134 cross_compiling=no
3135 else
3136 if test "$cross_compiling" = maybe; then
3137 cross_compiling=yes
3138 else
3139 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3141 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3142 If you meant to cross compile, use \`--host'.
3143 See \`config.log' for more details." >&5
3144 $as_echo "$as_me: error: cannot run C compiled programs.
3145 If you meant to cross compile, use \`--host'.
3146 See \`config.log' for more details." >&2;}
3147 { (exit 1); exit 1; }; }; }
3148 fi
3149 fi
3150 fi
3151 { $as_echo "$as_me:$LINENO: result: yes" >&5
3152 $as_echo "yes" >&6; }
3153
3154 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3155 ac_clean_files=$ac_clean_files_save
3156 # Check that the compiler produces executables we can run. If not, either
3157 # the compiler is broken, or we cross compile.
3158 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3159 $as_echo_n "checking whether we are cross compiling... " >&6; }
3160 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3161 $as_echo "$cross_compiling" >&6; }
3162
3163 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3164 $as_echo_n "checking for suffix of executables... " >&6; }
3165 if { (ac_try="$ac_link"
3166 case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169 esac
3170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3171 $as_echo "$ac_try_echo") >&5
3172 (eval "$ac_link") 2>&5
3173 ac_status=$?
3174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); }; then
3176 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3177 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3178 # work properly (i.e., refer to `conftest.exe'), while it won't with
3179 # `rm'.
3180 for ac_file in conftest.exe conftest conftest.*; do
3181 test -f "$ac_file" || continue
3182 case $ac_file in
3183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3184 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3185 break;;
3186 * ) break;;
3187 esac
3188 done
3189 else
3190 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3192 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3193 See \`config.log' for more details." >&5
3194 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3195 See \`config.log' for more details." >&2;}
3196 { (exit 1); exit 1; }; }; }
3197 fi
3198
3199 rm -f conftest$ac_cv_exeext
3200 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3201 $as_echo "$ac_cv_exeext" >&6; }
3202
3203 rm -f conftest.$ac_ext
3204 EXEEXT=$ac_cv_exeext
3205 ac_exeext=$EXEEXT
3206 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3207 $as_echo_n "checking for suffix of object files... " >&6; }
3208 if test "${ac_cv_objext+set}" = set; then
3209 $as_echo_n "(cached) " >&6
3210 else
3211 cat >conftest.$ac_ext <<_ACEOF
3212 /* confdefs.h. */
3213 _ACEOF
3214 cat confdefs.h >>conftest.$ac_ext
3215 cat >>conftest.$ac_ext <<_ACEOF
3216 /* end confdefs.h. */
3217
3218 int
3219 main ()
3220 {
3221
3222 ;
3223 return 0;
3224 }
3225 _ACEOF
3226 rm -f conftest.o conftest.obj
3227 if { (ac_try="$ac_compile"
3228 case "(($ac_try" in
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3231 esac
3232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3233 $as_echo "$ac_try_echo") >&5
3234 (eval "$ac_compile") 2>&5
3235 ac_status=$?
3236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }; then
3238 for ac_file in conftest.o conftest.obj conftest.*; do
3239 test -f "$ac_file" || continue;
3240 case $ac_file in
3241 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3242 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3243 break;;
3244 esac
3245 done
3246 else
3247 $as_echo "$as_me: failed program was:" >&5
3248 sed 's/^/| /' conftest.$ac_ext >&5
3249
3250 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3252 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3253 See \`config.log' for more details." >&5
3254 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3255 See \`config.log' for more details." >&2;}
3256 { (exit 1); exit 1; }; }; }
3257 fi
3258
3259 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3260 fi
3261 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3262 $as_echo "$ac_cv_objext" >&6; }
3263 OBJEXT=$ac_cv_objext
3264 ac_objext=$OBJEXT
3265 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3266 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3267 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3268 $as_echo_n "(cached) " >&6
3269 else
3270 cat >conftest.$ac_ext <<_ACEOF
3271 /* confdefs.h. */
3272 _ACEOF
3273 cat confdefs.h >>conftest.$ac_ext
3274 cat >>conftest.$ac_ext <<_ACEOF
3275 /* end confdefs.h. */
3276
3277 int
3278 main ()
3279 {
3280 #ifndef __GNUC__
3281 choke me
3282 #endif
3283
3284 ;
3285 return 0;
3286 }
3287 _ACEOF
3288 rm -f conftest.$ac_objext
3289 if { (ac_try="$ac_compile"
3290 case "(($ac_try" in
3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3293 esac
3294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3295 $as_echo "$ac_try_echo") >&5
3296 (eval "$ac_compile") 2>conftest.er1
3297 ac_status=$?
3298 grep -v '^ *+' conftest.er1 >conftest.err
3299 rm -f conftest.er1
3300 cat conftest.err >&5
3301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); } && {
3303 test -z "$ac_c_werror_flag" ||
3304 test ! -s conftest.err
3305 } && test -s conftest.$ac_objext; then
3306 ac_compiler_gnu=yes
3307 else
3308 $as_echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3310
3311 ac_compiler_gnu=no
3312 fi
3313
3314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3315 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3316
3317 fi
3318 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3319 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3320 if test $ac_compiler_gnu = yes; then
3321 GCC=yes
3322 else
3323 GCC=
3324 fi
3325 ac_test_CFLAGS=${CFLAGS+set}
3326 ac_save_CFLAGS=$CFLAGS
3327 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3328 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3329 if test "${ac_cv_prog_cc_g+set}" = set; then
3330 $as_echo_n "(cached) " >&6
3331 else
3332 ac_save_c_werror_flag=$ac_c_werror_flag
3333 ac_c_werror_flag=yes
3334 ac_cv_prog_cc_g=no
3335 CFLAGS="-g"
3336 cat >conftest.$ac_ext <<_ACEOF
3337 /* confdefs.h. */
3338 _ACEOF
3339 cat confdefs.h >>conftest.$ac_ext
3340 cat >>conftest.$ac_ext <<_ACEOF
3341 /* end confdefs.h. */
3342
3343 int
3344 main ()
3345 {
3346
3347 ;
3348 return 0;
3349 }
3350 _ACEOF
3351 rm -f conftest.$ac_objext
3352 if { (ac_try="$ac_compile"
3353 case "(($ac_try" in
3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355 *) ac_try_echo=$ac_try;;
3356 esac
3357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3358 $as_echo "$ac_try_echo") >&5
3359 (eval "$ac_compile") 2>conftest.er1
3360 ac_status=$?
3361 grep -v '^ *+' conftest.er1 >conftest.err
3362 rm -f conftest.er1
3363 cat conftest.err >&5
3364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } && {
3366 test -z "$ac_c_werror_flag" ||
3367 test ! -s conftest.err
3368 } && test -s conftest.$ac_objext; then
3369 ac_cv_prog_cc_g=yes
3370 else
3371 $as_echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3373
3374 CFLAGS=""
3375 cat >conftest.$ac_ext <<_ACEOF
3376 /* confdefs.h. */
3377 _ACEOF
3378 cat confdefs.h >>conftest.$ac_ext
3379 cat >>conftest.$ac_ext <<_ACEOF
3380 /* end confdefs.h. */
3381
3382 int
3383 main ()
3384 {
3385
3386 ;
3387 return 0;
3388 }
3389 _ACEOF
3390 rm -f conftest.$ac_objext
3391 if { (ac_try="$ac_compile"
3392 case "(($ac_try" in
3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394 *) ac_try_echo=$ac_try;;
3395 esac
3396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3397 $as_echo "$ac_try_echo") >&5
3398 (eval "$ac_compile") 2>conftest.er1
3399 ac_status=$?
3400 grep -v '^ *+' conftest.er1 >conftest.err
3401 rm -f conftest.er1
3402 cat conftest.err >&5
3403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); } && {
3405 test -z "$ac_c_werror_flag" ||
3406 test ! -s conftest.err
3407 } && test -s conftest.$ac_objext; then
3408 :
3409 else
3410 $as_echo "$as_me: failed program was:" >&5
3411 sed 's/^/| /' conftest.$ac_ext >&5
3412
3413 ac_c_werror_flag=$ac_save_c_werror_flag
3414 CFLAGS="-g"
3415 cat >conftest.$ac_ext <<_ACEOF
3416 /* confdefs.h. */
3417 _ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3421
3422 int
3423 main ()
3424 {
3425
3426 ;
3427 return 0;
3428 }
3429 _ACEOF
3430 rm -f conftest.$ac_objext
3431 if { (ac_try="$ac_compile"
3432 case "(($ac_try" in
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3435 esac
3436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3437 $as_echo "$ac_try_echo") >&5
3438 (eval "$ac_compile") 2>conftest.er1
3439 ac_status=$?
3440 grep -v '^ *+' conftest.er1 >conftest.err
3441 rm -f conftest.er1
3442 cat conftest.err >&5
3443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } && {
3445 test -z "$ac_c_werror_flag" ||
3446 test ! -s conftest.err
3447 } && test -s conftest.$ac_objext; then
3448 ac_cv_prog_cc_g=yes
3449 else
3450 $as_echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3452
3453
3454 fi
3455
3456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3457 fi
3458
3459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3460 fi
3461
3462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3463 ac_c_werror_flag=$ac_save_c_werror_flag
3464 fi
3465 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3466 $as_echo "$ac_cv_prog_cc_g" >&6; }
3467 if test "$ac_test_CFLAGS" = set; then
3468 CFLAGS=$ac_save_CFLAGS
3469 elif test $ac_cv_prog_cc_g = yes; then
3470 if test "$GCC" = yes; then
3471 CFLAGS="-g -O2"
3472 else
3473 CFLAGS="-g"
3474 fi
3475 else
3476 if test "$GCC" = yes; then
3477 CFLAGS="-O2"
3478 else
3479 CFLAGS=
3480 fi
3481 fi
3482 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3483 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3484 if test "${ac_cv_prog_cc_c89+set}" = set; then
3485 $as_echo_n "(cached) " >&6
3486 else
3487 ac_cv_prog_cc_c89=no
3488 ac_save_CC=$CC
3489 cat >conftest.$ac_ext <<_ACEOF
3490 /* confdefs.h. */
3491 _ACEOF
3492 cat confdefs.h >>conftest.$ac_ext
3493 cat >>conftest.$ac_ext <<_ACEOF
3494 /* end confdefs.h. */
3495 #include <stdarg.h>
3496 #include <stdio.h>
3497 #include <sys/types.h>
3498 #include <sys/stat.h>
3499 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3500 struct buf { int x; };
3501 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3502 static char *e (p, i)
3503 char **p;
3504 int i;
3505 {
3506 return p[i];
3507 }
3508 static char *f (char * (*g) (char **, int), char **p, ...)
3509 {
3510 char *s;
3511 va_list v;
3512 va_start (v,p);
3513 s = g (p, va_arg (v,int));
3514 va_end (v);
3515 return s;
3516 }
3517
3518 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3519 function prototypes and stuff, but not '\xHH' hex character constants.
3520 These don't provoke an error unfortunately, instead are silently treated
3521 as 'x'. The following induces an error, until -std is added to get
3522 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3523 array size at least. It's necessary to write '\x00'==0 to get something
3524 that's true only with -std. */
3525 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3526
3527 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3528 inside strings and character constants. */
3529 #define FOO(x) 'x'
3530 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3531
3532 int test (int i, double x);
3533 struct s1 {int (*f) (int a);};
3534 struct s2 {int (*f) (double a);};
3535 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3536 int argc;
3537 char **argv;
3538 int
3539 main ()
3540 {
3541 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3542 ;
3543 return 0;
3544 }
3545 _ACEOF
3546 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3547 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3548 do
3549 CC="$ac_save_CC $ac_arg"
3550 rm -f conftest.$ac_objext
3551 if { (ac_try="$ac_compile"
3552 case "(($ac_try" in
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3555 esac
3556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3557 $as_echo "$ac_try_echo") >&5
3558 (eval "$ac_compile") 2>conftest.er1
3559 ac_status=$?
3560 grep -v '^ *+' conftest.er1 >conftest.err
3561 rm -f conftest.er1
3562 cat conftest.err >&5
3563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); } && {
3565 test -z "$ac_c_werror_flag" ||
3566 test ! -s conftest.err
3567 } && test -s conftest.$ac_objext; then
3568 ac_cv_prog_cc_c89=$ac_arg
3569 else
3570 $as_echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3572
3573
3574 fi
3575
3576 rm -f core conftest.err conftest.$ac_objext
3577 test "x$ac_cv_prog_cc_c89" != "xno" && break
3578 done
3579 rm -f conftest.$ac_ext
3580 CC=$ac_save_CC
3581
3582 fi
3583 # AC_CACHE_VAL
3584 case "x$ac_cv_prog_cc_c89" in
3585 x)
3586 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3587 $as_echo "none needed" >&6; } ;;
3588 xno)
3589 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3590 $as_echo "unsupported" >&6; } ;;
3591 *)
3592 CC="$CC $ac_cv_prog_cc_c89"
3593 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3594 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3595 esac
3596
3597
3598 ac_ext=c
3599 ac_cpp='$CPP $CPPFLAGS'
3600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3603
3604 depcc="$CC" am_compiler_list=
3605
3606 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3607 $as_echo_n "checking dependency style of $depcc... " >&6; }
3608 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3609 $as_echo_n "(cached) " >&6
3610 else
3611 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3612 # We make a subdir and do the tests there. Otherwise we can end up
3613 # making bogus files that we don't know about and never remove. For
3614 # instance it was reported that on HP-UX the gcc test will end up
3615 # making a dummy file named `D' -- because `-MD' means `put the output
3616 # in D'.
3617 mkdir conftest.dir
3618 # Copy depcomp to subdir because otherwise we won't find it if we're
3619 # using a relative directory.
3620 cp "$am_depcomp" conftest.dir
3621 cd conftest.dir
3622 # We will build objects and dependencies in a subdirectory because
3623 # it helps to detect inapplicable dependency modes. For instance
3624 # both Tru64's cc and ICC support -MD to output dependencies as a
3625 # side effect of compilation, but ICC will put the dependencies in
3626 # the current directory while Tru64 will put them in the object
3627 # directory.
3628 mkdir sub
3629
3630 am_cv_CC_dependencies_compiler_type=none
3631 if test "$am_compiler_list" = ""; then
3632 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3633 fi
3634 for depmode in $am_compiler_list; do
3635 # Setup a source with many dependencies, because some compilers
3636 # like to wrap large dependency lists on column 80 (with \), and
3637 # we should not choose a depcomp mode which is confused by this.
3638 #
3639 # We need to recreate these files for each test, as the compiler may
3640 # overwrite some of them when testing with obscure command lines.
3641 # This happens at least with the AIX C compiler.
3642 : > sub/conftest.c
3643 for i in 1 2 3 4 5 6; do
3644 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3645 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3646 # Solaris 8's {/usr,}/bin/sh.
3647 touch sub/conftst$i.h
3648 done
3649 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3650
3651 case $depmode in
3652 nosideeffect)
3653 # after this tag, mechanisms are not by side-effect, so they'll
3654 # only be used when explicitly requested
3655 if test "x$enable_dependency_tracking" = xyes; then
3656 continue
3657 else
3658 break
3659 fi
3660 ;;
3661 none) break ;;
3662 esac
3663 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3664 # mode. It turns out that the SunPro C++ compiler does not properly
3665 # handle `-M -o', and we need to detect this.
3666 if depmode=$depmode \
3667 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3668 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3669 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3670 >/dev/null 2>conftest.err &&
3671 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3672 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3673 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3674 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3675 # icc doesn't choke on unknown options, it will just issue warnings
3676 # or remarks (even with -Werror). So we grep stderr for any message
3677 # that says an option was ignored or not supported.
3678 # When given -MP, icc 7.0 and 7.1 complain thusly:
3679 # icc: Command line warning: ignoring option '-M'; no argument required
3680 # The diagnosis changed in icc 8.0:
3681 # icc: Command line remark: option '-MP' not supported
3682 if (grep 'ignoring option' conftest.err ||
3683 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3684 am_cv_CC_dependencies_compiler_type=$depmode
3685 break
3686 fi
3687 fi
3688 done
3689
3690 cd ..
3691 rm -rf conftest.dir
3692 else
3693 am_cv_CC_dependencies_compiler_type=none
3694 fi
3695
3696 fi
3697 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3698 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3699 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3700
3701 if
3702 test "x$enable_dependency_tracking" != xno \
3703 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3704 am__fastdepCC_TRUE=
3705 am__fastdepCC_FALSE='#'
3706 else
3707 am__fastdepCC_TRUE='#'
3708 am__fastdepCC_FALSE=
3709 fi
3710
3711
3712
3713 ac_ext=c
3714 ac_cpp='$CPP $CPPFLAGS'
3715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3718 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3719 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3720 # On Suns, sometimes $CPP names a directory.
3721 if test -n "$CPP" && test -d "$CPP"; then
3722 CPP=
3723 fi
3724 if test -z "$CPP"; then
3725 if test "${ac_cv_prog_CPP+set}" = set; then
3726 $as_echo_n "(cached) " >&6
3727 else
3728 # Double quotes because CPP needs to be expanded
3729 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3730 do
3731 ac_preproc_ok=false
3732 for ac_c_preproc_warn_flag in '' yes
3733 do
3734 # Use a header file that comes with gcc, so configuring glibc
3735 # with a fresh cross-compiler works.
3736 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3737 # <limits.h> exists even on freestanding compilers.
3738 # On the NeXT, cc -E runs the code through the compiler's parser,
3739 # not just through cpp. "Syntax error" is here to catch this case.
3740 cat >conftest.$ac_ext <<_ACEOF
3741 /* confdefs.h. */
3742 _ACEOF
3743 cat confdefs.h >>conftest.$ac_ext
3744 cat >>conftest.$ac_ext <<_ACEOF
3745 /* end confdefs.h. */
3746 #ifdef __STDC__
3747 # include <limits.h>
3748 #else
3749 # include <assert.h>
3750 #endif
3751 Syntax error
3752 _ACEOF
3753 if { (ac_try="$ac_cpp conftest.$ac_ext"
3754 case "(($ac_try" in
3755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756 *) ac_try_echo=$ac_try;;
3757 esac
3758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3759 $as_echo "$ac_try_echo") >&5
3760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3761 ac_status=$?
3762 grep -v '^ *+' conftest.er1 >conftest.err
3763 rm -f conftest.er1
3764 cat conftest.err >&5
3765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); } >/dev/null && {
3767 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3768 test ! -s conftest.err
3769 }; then
3770 :
3771 else
3772 $as_echo "$as_me: failed program was:" >&5
3773 sed 's/^/| /' conftest.$ac_ext >&5
3774
3775 # Broken: fails on valid input.
3776 continue
3777 fi
3778
3779 rm -f conftest.err conftest.$ac_ext
3780
3781 # OK, works on sane cases. Now check whether nonexistent headers
3782 # can be detected and how.
3783 cat >conftest.$ac_ext <<_ACEOF
3784 /* confdefs.h. */
3785 _ACEOF
3786 cat confdefs.h >>conftest.$ac_ext
3787 cat >>conftest.$ac_ext <<_ACEOF
3788 /* end confdefs.h. */
3789 #include <ac_nonexistent.h>
3790 _ACEOF
3791 if { (ac_try="$ac_cpp conftest.$ac_ext"
3792 case "(($ac_try" in
3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794 *) ac_try_echo=$ac_try;;
3795 esac
3796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3797 $as_echo "$ac_try_echo") >&5
3798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3799 ac_status=$?
3800 grep -v '^ *+' conftest.er1 >conftest.err
3801 rm -f conftest.er1
3802 cat conftest.err >&5
3803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); } >/dev/null && {
3805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3806 test ! -s conftest.err
3807 }; then
3808 # Broken: success on invalid input.
3809 continue
3810 else
3811 $as_echo "$as_me: failed program was:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3813
3814 # Passes both tests.
3815 ac_preproc_ok=:
3816 break
3817 fi
3818
3819 rm -f conftest.err conftest.$ac_ext
3820
3821 done
3822 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3823 rm -f conftest.err conftest.$ac_ext
3824 if $ac_preproc_ok; then
3825 break
3826 fi
3827
3828 done
3829 ac_cv_prog_CPP=$CPP
3830
3831 fi
3832 CPP=$ac_cv_prog_CPP
3833 else
3834 ac_cv_prog_CPP=$CPP
3835 fi
3836 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3837 $as_echo "$CPP" >&6; }
3838 ac_preproc_ok=false
3839 for ac_c_preproc_warn_flag in '' yes
3840 do
3841 # Use a header file that comes with gcc, so configuring glibc
3842 # with a fresh cross-compiler works.
3843 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3844 # <limits.h> exists even on freestanding compilers.
3845 # On the NeXT, cc -E runs the code through the compiler's parser,
3846 # not just through cpp. "Syntax error" is here to catch this case.
3847 cat >conftest.$ac_ext <<_ACEOF
3848 /* confdefs.h. */
3849 _ACEOF
3850 cat confdefs.h >>conftest.$ac_ext
3851 cat >>conftest.$ac_ext <<_ACEOF
3852 /* end confdefs.h. */
3853 #ifdef __STDC__
3854 # include <limits.h>
3855 #else
3856 # include <assert.h>
3857 #endif
3858 Syntax error
3859 _ACEOF
3860 if { (ac_try="$ac_cpp conftest.$ac_ext"
3861 case "(($ac_try" in
3862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863 *) ac_try_echo=$ac_try;;
3864 esac
3865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3866 $as_echo "$ac_try_echo") >&5
3867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3868 ac_status=$?
3869 grep -v '^ *+' conftest.er1 >conftest.err
3870 rm -f conftest.er1
3871 cat conftest.err >&5
3872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); } >/dev/null && {
3874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3875 test ! -s conftest.err
3876 }; then
3877 :
3878 else
3879 $as_echo "$as_me: failed program was:" >&5
3880 sed 's/^/| /' conftest.$ac_ext >&5
3881
3882 # Broken: fails on valid input.
3883 continue
3884 fi
3885
3886 rm -f conftest.err conftest.$ac_ext
3887
3888 # OK, works on sane cases. Now check whether nonexistent headers
3889 # can be detected and how.
3890 cat >conftest.$ac_ext <<_ACEOF
3891 /* confdefs.h. */
3892 _ACEOF
3893 cat confdefs.h >>conftest.$ac_ext
3894 cat >>conftest.$ac_ext <<_ACEOF
3895 /* end confdefs.h. */
3896 #include <ac_nonexistent.h>
3897 _ACEOF
3898 if { (ac_try="$ac_cpp conftest.$ac_ext"
3899 case "(($ac_try" in
3900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901 *) ac_try_echo=$ac_try;;
3902 esac
3903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3904 $as_echo "$ac_try_echo") >&5
3905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3906 ac_status=$?
3907 grep -v '^ *+' conftest.er1 >conftest.err
3908 rm -f conftest.er1
3909 cat conftest.err >&5
3910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); } >/dev/null && {
3912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3913 test ! -s conftest.err
3914 }; then
3915 # Broken: success on invalid input.
3916 continue
3917 else
3918 $as_echo "$as_me: failed program was:" >&5
3919 sed 's/^/| /' conftest.$ac_ext >&5
3920
3921 # Passes both tests.
3922 ac_preproc_ok=:
3923 break
3924 fi
3925
3926 rm -f conftest.err conftest.$ac_ext
3927
3928 done
3929 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3930 rm -f conftest.err conftest.$ac_ext
3931 if $ac_preproc_ok; then
3932 :
3933 else
3934 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3936 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3937 See \`config.log' for more details." >&5
3938 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3939 See \`config.log' for more details." >&2;}
3940 { (exit 1); exit 1; }; }; }
3941 fi
3942
3943 ac_ext=c
3944 ac_cpp='$CPP $CPPFLAGS'
3945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3948
3949
3950 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3951 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3952 if test "${ac_cv_path_GREP+set}" = set; then
3953 $as_echo_n "(cached) " >&6
3954 else
3955 if test -z "$GREP"; then
3956 ac_path_GREP_found=false
3957 # Loop through the user's path and test for each of PROGNAME-LIST
3958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3960 do
3961 IFS=$as_save_IFS
3962 test -z "$as_dir" && as_dir=.
3963 for ac_prog in grep ggrep; do
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3966 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3967 # Check for GNU ac_path_GREP and select it if it is found.
3968 # Check for GNU $ac_path_GREP
3969 case `"$ac_path_GREP" --version 2>&1` in
3970 *GNU*)
3971 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3972 *)
3973 ac_count=0
3974 $as_echo_n 0123456789 >"conftest.in"
3975 while :
3976 do
3977 cat "conftest.in" "conftest.in" >"conftest.tmp"
3978 mv "conftest.tmp" "conftest.in"
3979 cp "conftest.in" "conftest.nl"
3980 $as_echo 'GREP' >> "conftest.nl"
3981 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3982 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3983 ac_count=`expr $ac_count + 1`
3984 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3985 # Best one so far, save it but keep looking for a better one
3986 ac_cv_path_GREP="$ac_path_GREP"
3987 ac_path_GREP_max=$ac_count
3988 fi
3989 # 10*(2^10) chars as input seems more than enough
3990 test $ac_count -gt 10 && break
3991 done
3992 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3993 esac
3994
3995 $ac_path_GREP_found && break 3
3996 done
3997 done
3998 done
3999 IFS=$as_save_IFS
4000 if test -z "$ac_cv_path_GREP"; then
4001 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4002 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4003 { (exit 1); exit 1; }; }
4004 fi
4005 else
4006 ac_cv_path_GREP=$GREP
4007 fi
4008
4009 fi
4010 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4011 $as_echo "$ac_cv_path_GREP" >&6; }
4012 GREP="$ac_cv_path_GREP"
4013
4014
4015 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4016 $as_echo_n "checking for egrep... " >&6; }
4017 if test "${ac_cv_path_EGREP+set}" = set; then
4018 $as_echo_n "(cached) " >&6
4019 else
4020 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4021 then ac_cv_path_EGREP="$GREP -E"
4022 else
4023 if test -z "$EGREP"; then
4024 ac_path_EGREP_found=false
4025 # Loop through the user's path and test for each of PROGNAME-LIST
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4028 do
4029 IFS=$as_save_IFS
4030 test -z "$as_dir" && as_dir=.
4031 for ac_prog in egrep; do
4032 for ac_exec_ext in '' $ac_executable_extensions; do
4033 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4034 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4035 # Check for GNU ac_path_EGREP and select it if it is found.
4036 # Check for GNU $ac_path_EGREP
4037 case `"$ac_path_EGREP" --version 2>&1` in
4038 *GNU*)
4039 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4040 *)
4041 ac_count=0
4042 $as_echo_n 0123456789 >"conftest.in"
4043 while :
4044 do
4045 cat "conftest.in" "conftest.in" >"conftest.tmp"
4046 mv "conftest.tmp" "conftest.in"
4047 cp "conftest.in" "conftest.nl"
4048 $as_echo 'EGREP' >> "conftest.nl"
4049 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4050 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4051 ac_count=`expr $ac_count + 1`
4052 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4053 # Best one so far, save it but keep looking for a better one
4054 ac_cv_path_EGREP="$ac_path_EGREP"
4055 ac_path_EGREP_max=$ac_count
4056 fi
4057 # 10*(2^10) chars as input seems more than enough
4058 test $ac_count -gt 10 && break
4059 done
4060 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4061 esac
4062
4063 $ac_path_EGREP_found && break 3
4064 done
4065 done
4066 done
4067 IFS=$as_save_IFS
4068 if test -z "$ac_cv_path_EGREP"; then
4069 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4070 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4071 { (exit 1); exit 1; }; }
4072 fi
4073 else
4074 ac_cv_path_EGREP=$EGREP
4075 fi
4076
4077 fi
4078 fi
4079 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4080 $as_echo "$ac_cv_path_EGREP" >&6; }
4081 EGREP="$ac_cv_path_EGREP"
4082
4083
4084 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4085 $as_echo_n "checking for ANSI C header files... " >&6; }
4086 if test "${ac_cv_header_stdc+set}" = set; then
4087 $as_echo_n "(cached) " >&6
4088 else
4089 cat >conftest.$ac_ext <<_ACEOF
4090 /* confdefs.h. */
4091 _ACEOF
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h. */
4095 #include <stdlib.h>
4096 #include <stdarg.h>
4097 #include <string.h>
4098 #include <float.h>
4099
4100 int
4101 main ()
4102 {
4103
4104 ;
4105 return 0;
4106 }
4107 _ACEOF
4108 rm -f conftest.$ac_objext
4109 if { (ac_try="$ac_compile"
4110 case "(($ac_try" in
4111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112 *) ac_try_echo=$ac_try;;
4113 esac
4114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4115 $as_echo "$ac_try_echo") >&5
4116 (eval "$ac_compile") 2>conftest.er1
4117 ac_status=$?
4118 grep -v '^ *+' conftest.er1 >conftest.err
4119 rm -f conftest.er1
4120 cat conftest.err >&5
4121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); } && {
4123 test -z "$ac_c_werror_flag" ||
4124 test ! -s conftest.err
4125 } && test -s conftest.$ac_objext; then
4126 ac_cv_header_stdc=yes
4127 else
4128 $as_echo "$as_me: failed program was:" >&5
4129 sed 's/^/| /' conftest.$ac_ext >&5
4130
4131 ac_cv_header_stdc=no
4132 fi
4133
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135
4136 if test $ac_cv_header_stdc = yes; then
4137 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4138 cat >conftest.$ac_ext <<_ACEOF
4139 /* confdefs.h. */
4140 _ACEOF
4141 cat confdefs.h >>conftest.$ac_ext
4142 cat >>conftest.$ac_ext <<_ACEOF
4143 /* end confdefs.h. */
4144 #include <string.h>
4145
4146 _ACEOF
4147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4148 $EGREP "memchr" >/dev/null 2>&1; then
4149 :
4150 else
4151 ac_cv_header_stdc=no
4152 fi
4153 rm -f conftest*
4154
4155 fi
4156
4157 if test $ac_cv_header_stdc = yes; then
4158 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4159 cat >conftest.$ac_ext <<_ACEOF
4160 /* confdefs.h. */
4161 _ACEOF
4162 cat confdefs.h >>conftest.$ac_ext
4163 cat >>conftest.$ac_ext <<_ACEOF
4164 /* end confdefs.h. */
4165 #include <stdlib.h>
4166
4167 _ACEOF
4168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4169 $EGREP "free" >/dev/null 2>&1; then
4170 :
4171 else
4172 ac_cv_header_stdc=no
4173 fi
4174 rm -f conftest*
4175
4176 fi
4177
4178 if test $ac_cv_header_stdc = yes; then
4179 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4180 if test "$cross_compiling" = yes; then
4181 :
4182 else
4183 cat >conftest.$ac_ext <<_ACEOF
4184 /* confdefs.h. */
4185 _ACEOF
4186 cat confdefs.h >>conftest.$ac_ext
4187 cat >>conftest.$ac_ext <<_ACEOF
4188 /* end confdefs.h. */
4189 #include <ctype.h>
4190 #include <stdlib.h>
4191 #if ((' ' & 0x0FF) == 0x020)
4192 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4193 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4194 #else
4195 # define ISLOWER(c) \
4196 (('a' <= (c) && (c) <= 'i') \
4197 || ('j' <= (c) && (c) <= 'r') \
4198 || ('s' <= (c) && (c) <= 'z'))
4199 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4200 #endif
4201
4202 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4203 int
4204 main ()
4205 {
4206 int i;
4207 for (i = 0; i < 256; i++)
4208 if (XOR (islower (i), ISLOWER (i))
4209 || toupper (i) != TOUPPER (i))
4210 return 2;
4211 return 0;
4212 }
4213 _ACEOF
4214 rm -f conftest$ac_exeext
4215 if { (ac_try="$ac_link"
4216 case "(($ac_try" in
4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218 *) ac_try_echo=$ac_try;;
4219 esac
4220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4221 $as_echo "$ac_try_echo") >&5
4222 (eval "$ac_link") 2>&5
4223 ac_status=$?
4224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4226 { (case "(($ac_try" in
4227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228 *) ac_try_echo=$ac_try;;
4229 esac
4230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4231 $as_echo "$ac_try_echo") >&5
4232 (eval "$ac_try") 2>&5
4233 ac_status=$?
4234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; }; then
4236 :
4237 else
4238 $as_echo "$as_me: program exited with status $ac_status" >&5
4239 $as_echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4241
4242 ( exit $ac_status )
4243 ac_cv_header_stdc=no
4244 fi
4245 rm -rf conftest.dSYM
4246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4247 fi
4248
4249
4250 fi
4251 fi
4252 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4253 $as_echo "$ac_cv_header_stdc" >&6; }
4254 if test $ac_cv_header_stdc = yes; then
4255
4256 cat >>confdefs.h <<\_ACEOF
4257 #define STDC_HEADERS 1
4258 _ACEOF
4259
4260 fi
4261
4262 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4273 inttypes.h stdint.h unistd.h
4274 do
4275 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4276 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4277 $as_echo_n "checking for $ac_header... " >&6; }
4278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4279 $as_echo_n "(cached) " >&6
4280 else
4281 cat >conftest.$ac_ext <<_ACEOF
4282 /* confdefs.h. */
4283 _ACEOF
4284 cat confdefs.h >>conftest.$ac_ext
4285 cat >>conftest.$ac_ext <<_ACEOF
4286 /* end confdefs.h. */
4287 $ac_includes_default
4288
4289 #include <$ac_header>
4290 _ACEOF
4291 rm -f conftest.$ac_objext
4292 if { (ac_try="$ac_compile"
4293 case "(($ac_try" in
4294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295 *) ac_try_echo=$ac_try;;
4296 esac
4297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4298 $as_echo "$ac_try_echo") >&5
4299 (eval "$ac_compile") 2>conftest.er1
4300 ac_status=$?
4301 grep -v '^ *+' conftest.er1 >conftest.err
4302 rm -f conftest.er1
4303 cat conftest.err >&5
4304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); } && {
4306 test -z "$ac_c_werror_flag" ||
4307 test ! -s conftest.err
4308 } && test -s conftest.$ac_objext; then
4309 eval "$as_ac_Header=yes"
4310 else
4311 $as_echo "$as_me: failed program was:" >&5
4312 sed 's/^/| /' conftest.$ac_ext >&5
4313
4314 eval "$as_ac_Header=no"
4315 fi
4316
4317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4318 fi
4319 ac_res=`eval 'as_val=${'$as_ac_Header'}
4320 $as_echo "$as_val"'`
4321 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4322 $as_echo "$ac_res" >&6; }
4323 as_val=`eval 'as_val=${'$as_ac_Header'}
4324 $as_echo "$as_val"'`
4325 if test "x$as_val" = x""yes; then
4326 cat >>confdefs.h <<_ACEOF
4327 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4328 _ACEOF
4329
4330 fi
4331
4332 done
4333
4334
4335 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
4336 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4337 if test "${ac_cv_prog_cc_c99+set}" = set; then
4338 $as_echo_n "(cached) " >&6
4339 else
4340 ac_cv_prog_cc_c99=no
4341 ac_save_CC=$CC
4342 cat >conftest.$ac_ext <<_ACEOF
4343 /* confdefs.h. */
4344 _ACEOF
4345 cat confdefs.h >>conftest.$ac_ext
4346 cat >>conftest.$ac_ext <<_ACEOF
4347 /* end confdefs.h. */
4348 #include <stdarg.h>
4349 #include <stdbool.h>
4350 #include <stdlib.h>
4351 #include <wchar.h>
4352 #include <stdio.h>
4353
4354 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4355 #define debug(...) fprintf (stderr, __VA_ARGS__)
4356 #define showlist(...) puts (#__VA_ARGS__)
4357 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4358 static void
4359 test_varargs_macros (void)
4360 {
4361 int x = 1234;
4362 int y = 5678;
4363 debug ("Flag");
4364 debug ("X = %d\n", x);
4365 showlist (The first, second, and third items.);
4366 report (x>y, "x is %d but y is %d", x, y);
4367 }
4368
4369 // Check long long types.
4370 #define BIG64 18446744073709551615ull
4371 #define BIG32 4294967295ul
4372 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4373 #if !BIG_OK
4374 your preprocessor is broken;
4375 #endif
4376 #if BIG_OK
4377 #else
4378 your preprocessor is broken;
4379 #endif
4380 static long long int bignum = -9223372036854775807LL;
4381 static unsigned long long int ubignum = BIG64;
4382
4383 struct incomplete_array
4384 {
4385 int datasize;
4386 double data[];
4387 };
4388
4389 struct named_init {
4390 int number;
4391 const wchar_t *name;
4392 double average;
4393 };
4394
4395 typedef const char *ccp;
4396
4397 static inline int
4398 test_restrict (ccp restrict text)
4399 {
4400 // See if C++-style comments work.
4401 // Iterate through items via the restricted pointer.
4402 // Also check for declarations in for loops.
4403 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4404 continue;
4405 return 0;
4406 }
4407
4408 // Check varargs and va_copy.
4409 static void
4410 test_varargs (const char *format, ...)
4411 {
4412 va_list args;
4413 va_start (args, format);
4414 va_list args_copy;
4415 va_copy (args_copy, args);
4416
4417 const char *str;
4418 int number;
4419 float fnumber;
4420
4421 while (*format)
4422 {
4423 switch (*format++)
4424 {
4425 case 's': // string
4426 str = va_arg (args_copy, const char *);
4427 break;
4428 case 'd': // int
4429 number = va_arg (args_copy, int);
4430 break;
4431 case 'f': // float
4432 fnumber = va_arg (args_copy, double);
4433 break;
4434 default:
4435 break;
4436 }
4437 }
4438 va_end (args_copy);
4439 va_end (args);
4440 }
4441
4442 int
4443 main ()
4444 {
4445
4446 // Check bool.
4447 _Bool success = false;
4448
4449 // Check restrict.
4450 if (test_restrict ("String literal") == 0)
4451 success = true;
4452 char *restrict newvar = "Another string";
4453
4454 // Check varargs.
4455 test_varargs ("s, d' f .", "string", 65, 34.234);
4456 test_varargs_macros ();
4457
4458 // Check flexible array members.
4459 struct incomplete_array *ia =
4460 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4461 ia->datasize = 10;
4462 for (int i = 0; i < ia->datasize; ++i)
4463 ia->data[i] = i * 1.234;
4464
4465 // Check named initializers.
4466 struct named_init ni = {
4467 .number = 34,
4468 .name = L"Test wide string",
4469 .average = 543.34343,
4470 };
4471
4472 ni.number = 58;
4473
4474 int dynamic_array[ni.number];
4475 dynamic_array[ni.number - 1] = 543;
4476
4477 // work around unused variable warnings
4478 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4479 || dynamic_array[ni.number - 1] != 543);
4480
4481 ;
4482 return 0;
4483 }
4484 _ACEOF
4485 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4486 do
4487 CC="$ac_save_CC $ac_arg"
4488 rm -f conftest.$ac_objext
4489 if { (ac_try="$ac_compile"
4490 case "(($ac_try" in
4491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4492 *) ac_try_echo=$ac_try;;
4493 esac
4494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4495 $as_echo "$ac_try_echo") >&5
4496 (eval "$ac_compile") 2>conftest.er1
4497 ac_status=$?
4498 grep -v '^ *+' conftest.er1 >conftest.err
4499 rm -f conftest.er1
4500 cat conftest.err >&5
4501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); } && {
4503 test -z "$ac_c_werror_flag" ||
4504 test ! -s conftest.err
4505 } && test -s conftest.$ac_objext; then
4506 ac_cv_prog_cc_c99=$ac_arg
4507 else
4508 $as_echo "$as_me: failed program was:" >&5
4509 sed 's/^/| /' conftest.$ac_ext >&5
4510
4511
4512 fi
4513
4514 rm -f core conftest.err conftest.$ac_objext
4515 test "x$ac_cv_prog_cc_c99" != "xno" && break
4516 done
4517 rm -f conftest.$ac_ext
4518 CC=$ac_save_CC
4519
4520 fi
4521 # AC_CACHE_VAL
4522 case "x$ac_cv_prog_cc_c99" in
4523 x)
4524 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4525 $as_echo "none needed" >&6; } ;;
4526 xno)
4527 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4528 $as_echo "unsupported" >&6; } ;;
4529 *)
4530 CC="$CC $ac_cv_prog_cc_c99"
4531 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
4532 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4533 esac
4534
4535
4536
4537
4538
4539 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4540 if test -n "$ac_tool_prefix"; then
4541 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4542 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4543 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4544 $as_echo_n "checking for $ac_word... " >&6; }
4545 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4546 $as_echo_n "(cached) " >&6
4547 else
4548 case $PKG_CONFIG in
4549 [\\/]* | ?:[\\/]*)
4550 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4551 ;;
4552 *)
4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 for as_dir in $PATH
4555 do
4556 IFS=$as_save_IFS
4557 test -z "$as_dir" && as_dir=.
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4560 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4561 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4562 break 2
4563 fi
4564 done
4565 done
4566 IFS=$as_save_IFS
4567
4568 ;;
4569 esac
4570 fi
4571 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4572 if test -n "$PKG_CONFIG"; then
4573 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4574 $as_echo "$PKG_CONFIG" >&6; }
4575 else
4576 { $as_echo "$as_me:$LINENO: result: no" >&5
4577 $as_echo "no" >&6; }
4578 fi
4579
4580
4581 fi
4582 if test -z "$ac_cv_path_PKG_CONFIG"; then
4583 ac_pt_PKG_CONFIG=$PKG_CONFIG
4584 # Extract the first word of "pkg-config", so it can be a program name with args.
4585 set dummy pkg-config; ac_word=$2
4586 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4587 $as_echo_n "checking for $ac_word... " >&6; }
4588 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4589 $as_echo_n "(cached) " >&6
4590 else
4591 case $ac_pt_PKG_CONFIG in
4592 [\\/]* | ?:[\\/]*)
4593 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4594 ;;
4595 *)
4596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597 for as_dir in $PATH
4598 do
4599 IFS=$as_save_IFS
4600 test -z "$as_dir" && as_dir=.
4601 for ac_exec_ext in '' $ac_executable_extensions; do
4602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4603 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4604 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4605 break 2
4606 fi
4607 done
4608 done
4609 IFS=$as_save_IFS
4610
4611 ;;
4612 esac
4613 fi
4614 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4615 if test -n "$ac_pt_PKG_CONFIG"; then
4616 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4617 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4618 else
4619 { $as_echo "$as_me:$LINENO: result: no" >&5
4620 $as_echo "no" >&6; }
4621 fi
4622
4623 if test "x$ac_pt_PKG_CONFIG" = x; then
4624 PKG_CONFIG=""
4625 else
4626 case $cross_compiling:$ac_tool_warned in
4627 yes:)
4628 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4630 ac_tool_warned=yes ;;
4631 esac
4632 PKG_CONFIG=$ac_pt_PKG_CONFIG
4633 fi
4634 else
4635 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4636 fi
4637
4638 fi
4639 if test -n "$PKG_CONFIG"; then
4640 _pkg_min_version=0.9.0
4641 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4642 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4643 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4644 { $as_echo "$as_me:$LINENO: result: yes" >&5
4645 $as_echo "yes" >&6; }
4646 else
4647 { $as_echo "$as_me:$LINENO: result: no" >&5
4648 $as_echo "no" >&6; }
4649 PKG_CONFIG=""
4650 fi
4651
4652 fi
4653 # Make sure we can run config.sub.
4654 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4655 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4656 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4657 { (exit 1); exit 1; }; }
4658
4659 { $as_echo "$as_me:$LINENO: checking build system type" >&5
4660 $as_echo_n "checking build system type... " >&6; }
4661 if test "${ac_cv_build+set}" = set; then
4662 $as_echo_n "(cached) " >&6
4663 else
4664 ac_build_alias=$build_alias
4665 test "x$ac_build_alias" = x &&
4666 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4667 test "x$ac_build_alias" = x &&
4668 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4669 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4670 { (exit 1); exit 1; }; }
4671 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4672 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4673 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4674 { (exit 1); exit 1; }; }
4675
4676 fi
4677 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4678 $as_echo "$ac_cv_build" >&6; }
4679 case $ac_cv_build in
4680 *-*-*) ;;
4681 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4682 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
4683 { (exit 1); exit 1; }; };;
4684 esac
4685 build=$ac_cv_build
4686 ac_save_IFS=$IFS; IFS='-'
4687 set x $ac_cv_build
4688 shift
4689 build_cpu=$1
4690 build_vendor=$2
4691 shift; shift
4692 # Remember, the first character of IFS is used to create $*,
4693 # except with old shells:
4694 build_os=$*
4695 IFS=$ac_save_IFS
4696 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4697
4698
4699 { $as_echo "$as_me:$LINENO: checking host system type" >&5
4700 $as_echo_n "checking host system type... " >&6; }
4701 if test "${ac_cv_host+set}" = set; then
4702 $as_echo_n "(cached) " >&6
4703 else
4704 if test "x$host_alias" = x; then
4705 ac_cv_host=$ac_cv_build
4706 else
4707 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4708 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4709 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4710 { (exit 1); exit 1; }; }
4711 fi
4712
4713 fi
4714 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4715 $as_echo "$ac_cv_host" >&6; }
4716 case $ac_cv_host in
4717 *-*-*) ;;
4718 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4719 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
4720 { (exit 1); exit 1; }; };;
4721 esac
4722 host=$ac_cv_host
4723 ac_save_IFS=$IFS; IFS='-'
4724 set x $ac_cv_host
4725 shift
4726 host_cpu=$1
4727 host_vendor=$2
4728 shift; shift
4729 # Remember, the first character of IFS is used to create $*,
4730 # except with old shells:
4731 host_os=$*
4732 IFS=$ac_save_IFS
4733 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4734
4735
4736
4737
4738
4739 if test "x$GCC" = xyes ; then
4740 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4741 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4742 -Wbad-function-cast -Wformat=2"
4743 case `$CC -dumpversion` in
4744 3.4.* | 4.*)
4745 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4746 ;;
4747 esac
4748 else
4749 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4750 $as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
4751 if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4752 $as_echo_n "(cached) " >&6
4753 else
4754 cat >conftest.$ac_ext <<_ACEOF
4755 /* confdefs.h. */
4756 _ACEOF
4757 cat confdefs.h >>conftest.$ac_ext
4758 cat >>conftest.$ac_ext <<_ACEOF
4759 /* end confdefs.h. */
4760 $ac_includes_default
4761 int
4762 main ()
4763 {
4764 #ifndef __SUNPRO_C
4765 (void) __SUNPRO_C;
4766 #endif
4767
4768 ;
4769 return 0;
4770 }
4771 _ACEOF
4772 rm -f conftest.$ac_objext
4773 if { (ac_try="$ac_compile"
4774 case "(($ac_try" in
4775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4776 *) ac_try_echo=$ac_try;;
4777 esac
4778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4779 $as_echo "$ac_try_echo") >&5
4780 (eval "$ac_compile") 2>conftest.er1
4781 ac_status=$?
4782 grep -v '^ *+' conftest.er1 >conftest.err
4783 rm -f conftest.er1
4784 cat conftest.err >&5
4785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); } && {
4787 test -z "$ac_c_werror_flag" ||
4788 test ! -s conftest.err
4789 } && test -s conftest.$ac_objext; then
4790 ac_cv_have_decl___SUNPRO_C=yes
4791 else
4792 $as_echo "$as_me: failed program was:" >&5
4793 sed 's/^/| /' conftest.$ac_ext >&5
4794
4795 ac_cv_have_decl___SUNPRO_C=no
4796 fi
4797
4798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4799 fi
4800 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
4801 $as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
4802 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
4803 SUNCC="yes"
4804 else
4805 SUNCC="no"
4806 fi
4807
4808 if test "x$SUNCC" = "xyes"; then
4809 CWARNFLAGS="-v"
4810 fi
4811 fi
4812
4813
4814
4815
4816
4817
4818
4819
4820 # Check whether --enable-strict-compilation was given.
4821 if test "${enable_strict_compilation+set}" = set; then
4822 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4823 else
4824 STRICT_COMPILE=no
4825 fi
4826
4827 if test "x$STRICT_COMPILE" = "xyes"; then
4828 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4829 $as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
4830 if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4831 $as_echo_n "(cached) " >&6
4832 else
4833 cat >conftest.$ac_ext <<_ACEOF
4834 /* confdefs.h. */
4835 _ACEOF
4836 cat confdefs.h >>conftest.$ac_ext
4837 cat >>conftest.$ac_ext <<_ACEOF
4838 /* end confdefs.h. */
4839 $ac_includes_default
4840 int
4841 main ()
4842 {
4843 #ifndef __SUNPRO_C
4844 (void) __SUNPRO_C;
4845 #endif
4846
4847 ;
4848 return 0;
4849 }
4850 _ACEOF
4851 rm -f conftest.$ac_objext
4852 if { (ac_try="$ac_compile"
4853 case "(($ac_try" in
4854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4855 *) ac_try_echo=$ac_try;;
4856 esac
4857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4858 $as_echo "$ac_try_echo") >&5
4859 (eval "$ac_compile") 2>conftest.er1
4860 ac_status=$?
4861 grep -v '^ *+' conftest.er1 >conftest.err
4862 rm -f conftest.er1
4863 cat conftest.err >&5
4864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } && {
4866 test -z "$ac_c_werror_flag" ||
4867 test ! -s conftest.err
4868 } && test -s conftest.$ac_objext; then
4869 ac_cv_have_decl___SUNPRO_C=yes
4870 else
4871 $as_echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4873
4874 ac_cv_have_decl___SUNPRO_C=no
4875 fi
4876
4877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4878 fi
4879 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
4880 $as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
4881 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
4882 SUNCC="yes"
4883 else
4884 SUNCC="no"
4885 fi
4886
4887 { $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
4888 $as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; }
4889 if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
4890 $as_echo_n "(cached) " >&6
4891 else
4892 cat >conftest.$ac_ext <<_ACEOF
4893 /* confdefs.h. */
4894 _ACEOF
4895 cat confdefs.h >>conftest.$ac_ext
4896 cat >>conftest.$ac_ext <<_ACEOF
4897 /* end confdefs.h. */
4898 $ac_includes_default
4899 int
4900 main ()
4901 {
4902 #ifndef __INTEL_COMPILER
4903 (void) __INTEL_COMPILER;
4904 #endif
4905
4906 ;
4907 return 0;
4908 }
4909 _ACEOF
4910 rm -f conftest.$ac_objext
4911 if { (ac_try="$ac_compile"
4912 case "(($ac_try" in
4913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914 *) ac_try_echo=$ac_try;;
4915 esac
4916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4917 $as_echo "$ac_try_echo") >&5
4918 (eval "$ac_compile") 2>conftest.er1
4919 ac_status=$?
4920 grep -v '^ *+' conftest.er1 >conftest.err
4921 rm -f conftest.er1
4922 cat conftest.err >&5
4923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); } && {
4925 test -z "$ac_c_werror_flag" ||
4926 test ! -s conftest.err
4927 } && test -s conftest.$ac_objext; then
4928 ac_cv_have_decl___INTEL_COMPILER=yes
4929 else
4930 $as_echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4932
4933 ac_cv_have_decl___INTEL_COMPILER=no
4934 fi
4935
4936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4937 fi
4938 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
4939 $as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; }
4940 if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then
4941 INTELCC="yes"
4942 else
4943 INTELCC="no"
4944 fi
4945
4946 if test "x$GCC" = xyes ; then
4947 STRICT_CFLAGS="-pedantic -Werror"
4948 elif test "x$SUNCC" = "xyes"; then
4949 STRICT_CFLAGS="-errwarn"
4950 elif test "x$INTELCC" = "xyes"; then
4951 STRICT_CFLAGS="-Werror"
4952 fi
4953 fi
4954 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4955
4956
4957
4958
4959 # Check whether --with-release-version was given.
4960 if test "${with_release_version+set}" = set; then
4961 withval=$with_release_version; RELEASE_VERSION="$withval"
4962 else
4963 RELEASE_VERSION=""
4964 fi
4965
4966 if test "x$RELEASE_VERSION" != "x"; then
4967 PACKAGE="$PACKAGE-$RELEASE_VERSION"
4968 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
4969 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
4970 $as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
4971 fi
4972
4973 cat >>confdefs.h <<_ACEOF
4974 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4975 _ACEOF
4976
4977 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4978 if test "x$PVM" = "x"; then
4979 PVM="0"
4980 fi
4981
4982 cat >>confdefs.h <<_ACEOF
4983 #define PACKAGE_VERSION_MINOR $PVM
4984 _ACEOF
4985
4986 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4987 if test "x$PVP" = "x"; then
4988 PVP="0"
4989 fi
4990
4991 cat >>confdefs.h <<_ACEOF
4992 #define PACKAGE_VERSION_PATCHLEVEL $PVP
4993 _ACEOF
4994
4995
4996
4997 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4998 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4999 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
5000 echo 'git directory not found: installing possibly empty changelog.' >&2)"
5001
5002
5003
5004
5005 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
5006 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
5007 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
5008 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
5009 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
5010
5011
5012
5013
5014
5015 if test x$APP_MAN_SUFFIX = x ; then
5016 APP_MAN_SUFFIX=1
5017 fi
5018 if test x$APP_MAN_DIR = x ; then
5019 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
5020 fi
5021
5022 if test x$LIB_MAN_SUFFIX = x ; then
5023 LIB_MAN_SUFFIX=3
5024 fi
5025 if test x$LIB_MAN_DIR = x ; then
5026 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
5027 fi
5028
5029 if test x$FILE_MAN_SUFFIX = x ; then
5030 case $host_os in
5031 solaris*) FILE_MAN_SUFFIX=4 ;;
5032 *) FILE_MAN_SUFFIX=5 ;;
5033 esac
5034 fi
5035 if test x$FILE_MAN_DIR = x ; then
5036 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
5037 fi
5038
5039 if test x$MISC_MAN_SUFFIX = x ; then
5040 case $host_os in
5041 solaris*) MISC_MAN_SUFFIX=5 ;;
5042 *) MISC_MAN_SUFFIX=7 ;;
5043 esac
5044 fi
5045 if test x$MISC_MAN_DIR = x ; then
5046 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
5047 fi
5048
5049 if test x$DRIVER_MAN_SUFFIX = x ; then
5050 case $host_os in
5051 solaris*) DRIVER_MAN_SUFFIX=7 ;;
5052 *) DRIVER_MAN_SUFFIX=4 ;;
5053 esac
5054 fi
5055 if test x$DRIVER_MAN_DIR = x ; then
5056 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
5057 fi
5058
5059 if test x$ADMIN_MAN_SUFFIX = x ; then
5060 case $host_os in
5061 solaris*) ADMIN_MAN_SUFFIX=1m ;;
5062 *) ADMIN_MAN_SUFFIX=8 ;;
5063 esac
5064 fi
5065 if test x$ADMIN_MAN_DIR = x ; then
5066 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
5067 fi
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085 # Checks for programs.
5086 # Check whether --enable-static was given.
5087 if test "${enable_static+set}" = set; then
5088 enableval=$enable_static; p=${PACKAGE-default}
5089 case $enableval in
5090 yes) enable_static=yes ;;
5091 no) enable_static=no ;;
5092 *)
5093 enable_static=no
5094 # Look at the argument we got. We use all the common list separators.
5095 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5096 for pkg in $enableval; do
5097 IFS="$lt_save_ifs"
5098 if test "X$pkg" = "X$p"; then
5099 enable_static=yes
5100 fi
5101 done
5102 IFS="$lt_save_ifs"
5103 ;;
5104 esac
5105 else
5106 enable_static=no
5107 fi
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117 case `pwd` in
5118 *\ * | *\ *)
5119 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5120 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5121 esac
5122
5123
5124
5125 macro_version='2.2.6'
5126 macro_revision='1.3012'
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140 ltmain="$ac_aux_dir/ltmain.sh"
5141
5142 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5143 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5144 if test "${ac_cv_path_SED+set}" = set; then
5145 $as_echo_n "(cached) " >&6
5146 else
5147 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5148 for ac_i in 1 2 3 4 5 6 7; do
5149 ac_script="$ac_script$as_nl$ac_script"
5150 done
5151 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5152 $as_unset ac_script || ac_script=
5153 if test -z "$SED"; then
5154 ac_path_SED_found=false
5155 # Loop through the user's path and test for each of PROGNAME-LIST
5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 for as_dir in $PATH
5158 do
5159 IFS=$as_save_IFS
5160 test -z "$as_dir" && as_dir=.
5161 for ac_prog in sed gsed; do
5162 for ac_exec_ext in '' $ac_executable_extensions; do
5163 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5164 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5165 # Check for GNU ac_path_SED and select it if it is found.
5166 # Check for GNU $ac_path_SED
5167 case `"$ac_path_SED" --version 2>&1` in
5168 *GNU*)
5169 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5170 *)
5171 ac_count=0
5172 $as_echo_n 0123456789 >"conftest.in"
5173 while :
5174 do
5175 cat "conftest.in" "conftest.in" >"conftest.tmp"
5176 mv "conftest.tmp" "conftest.in"
5177 cp "conftest.in" "conftest.nl"
5178 $as_echo '' >> "conftest.nl"
5179 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5180 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5181 ac_count=`expr $ac_count + 1`
5182 if test $ac_count -gt ${ac_path_SED_max-0}; then
5183 # Best one so far, save it but keep looking for a better one
5184 ac_cv_path_SED="$ac_path_SED"
5185 ac_path_SED_max=$ac_count
5186 fi
5187 # 10*(2^10) chars as input seems more than enough
5188 test $ac_count -gt 10 && break
5189 done
5190 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5191 esac
5192
5193 $ac_path_SED_found && break 3
5194 done
5195 done
5196 done
5197 IFS=$as_save_IFS
5198 if test -z "$ac_cv_path_SED"; then
5199 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5200 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5201 { (exit 1); exit 1; }; }
5202 fi
5203 else
5204 ac_cv_path_SED=$SED
5205 fi
5206
5207 fi
5208 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5209 $as_echo "$ac_cv_path_SED" >&6; }
5210 SED="$ac_cv_path_SED"
5211 rm -f conftest.sed
5212
5213 test -z "$SED" && SED=sed
5214 Xsed="$SED -e 1s/^X//"
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5227 $as_echo_n "checking for fgrep... " >&6; }
5228 if test "${ac_cv_path_FGREP+set}" = set; then
5229 $as_echo_n "(cached) " >&6
5230 else
5231 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5232 then ac_cv_path_FGREP="$GREP -F"
5233 else
5234 if test -z "$FGREP"; then
5235 ac_path_FGREP_found=false
5236 # Loop through the user's path and test for each of PROGNAME-LIST
5237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5239 do
5240 IFS=$as_save_IFS
5241 test -z "$as_dir" && as_dir=.
5242 for ac_prog in fgrep; do
5243 for ac_exec_ext in '' $ac_executable_extensions; do
5244 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5245 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5246 # Check for GNU ac_path_FGREP and select it if it is found.
5247 # Check for GNU $ac_path_FGREP
5248 case `"$ac_path_FGREP" --version 2>&1` in
5249 *GNU*)
5250 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5251 *)
5252 ac_count=0
5253 $as_echo_n 0123456789 >"conftest.in"
5254 while :
5255 do
5256 cat "conftest.in" "conftest.in" >"conftest.tmp"
5257 mv "conftest.tmp" "conftest.in"
5258 cp "conftest.in" "conftest.nl"
5259 $as_echo 'FGREP' >> "conftest.nl"
5260 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5261 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5262 ac_count=`expr $ac_count + 1`
5263 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5264 # Best one so far, save it but keep looking for a better one
5265 ac_cv_path_FGREP="$ac_path_FGREP"
5266 ac_path_FGREP_max=$ac_count
5267 fi
5268 # 10*(2^10) chars as input seems more than enough
5269 test $ac_count -gt 10 && break
5270 done
5271 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5272 esac
5273
5274 $ac_path_FGREP_found && break 3
5275 done
5276 done
5277 done
5278 IFS=$as_save_IFS
5279 if test -z "$ac_cv_path_FGREP"; then
5280 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5281 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5282 { (exit 1); exit 1; }; }
5283 fi
5284 else
5285 ac_cv_path_FGREP=$FGREP
5286 fi
5287
5288 fi
5289 fi
5290 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5291 $as_echo "$ac_cv_path_FGREP" >&6; }
5292 FGREP="$ac_cv_path_FGREP"
5293
5294
5295 test -z "$GREP" && GREP=grep
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315 # Check whether --with-gnu-ld was given.
5316 if test "${with_gnu_ld+set}" = set; then
5317 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5318 else
5319 with_gnu_ld=no
5320 fi
5321
5322 ac_prog=ld
5323 if test "$GCC" = yes; then
5324 # Check if gcc -print-prog-name=ld gives a path.
5325 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5326 $as_echo_n "checking for ld used by $CC... " >&6; }
5327 case $host in
5328 *-*-mingw*)
5329 # gcc leaves a trailing carriage return which upsets mingw
5330 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5331 *)
5332 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5333 esac
5334 case $ac_prog in
5335 # Accept absolute paths.
5336 [\\/]* | ?:[\\/]*)
5337 re_direlt='/[^/][^/]*/\.\./'
5338 # Canonicalize the pathname of ld
5339 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5340 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5341 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5342 done
5343 test -z "$LD" && LD="$ac_prog"
5344 ;;
5345 "")
5346 # If it fails, then pretend we aren't using GCC.
5347 ac_prog=ld
5348 ;;
5349 *)
5350 # If it is relative, then search for the first ld in PATH.
5351 with_gnu_ld=unknown
5352 ;;
5353 esac
5354 elif test "$with_gnu_ld" = yes; then
5355 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5356 $as_echo_n "checking for GNU ld... " >&6; }
5357 else
5358 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5359 $as_echo_n "checking for non-GNU ld... " >&6; }
5360 fi
5361 if test "${lt_cv_path_LD+set}" = set; then
5362 $as_echo_n "(cached) " >&6
5363 else
5364 if test -z "$LD"; then
5365 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5366 for ac_dir in $PATH; do
5367 IFS="$lt_save_ifs"
5368 test -z "$ac_dir" && ac_dir=.
5369 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5370 lt_cv_path_LD="$ac_dir/$ac_prog"
5371 # Check to see if the program is GNU ld. I'd rather use --version,
5372 # but apparently some variants of GNU ld only accept -v.
5373 # Break only if it was the GNU/non-GNU ld that we prefer.
5374 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5375 *GNU* | *'with BFD'*)
5376 test "$with_gnu_ld" != no && break
5377 ;;
5378 *)
5379 test "$with_gnu_ld" != yes && break
5380 ;;
5381 esac
5382 fi
5383 done
5384 IFS="$lt_save_ifs"
5385 else
5386 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5387 fi
5388 fi
5389
5390 LD="$lt_cv_path_LD"
5391 if test -n "$LD"; then
5392 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5393 $as_echo "$LD" >&6; }
5394 else
5395 { $as_echo "$as_me:$LINENO: result: no" >&5
5396 $as_echo "no" >&6; }
5397 fi
5398 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5399 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5400 { (exit 1); exit 1; }; }
5401 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5402 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5403 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5404 $as_echo_n "(cached) " >&6
5405 else
5406 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5407 case `$LD -v 2>&1 </dev/null` in
5408 *GNU* | *'with BFD'*)
5409 lt_cv_prog_gnu_ld=yes
5410 ;;
5411 *)
5412 lt_cv_prog_gnu_ld=no
5413 ;;
5414 esac
5415 fi
5416 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5417 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5418 with_gnu_ld=$lt_cv_prog_gnu_ld
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5429 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5430 if test "${lt_cv_path_NM+set}" = set; then
5431 $as_echo_n "(cached) " >&6
5432 else
5433 if test -n "$NM"; then
5434 # Let the user override the test.
5435 lt_cv_path_NM="$NM"
5436 else
5437 lt_nm_to_check="${ac_tool_prefix}nm"
5438 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5439 lt_nm_to_check="$lt_nm_to_check nm"
5440 fi
5441 for lt_tmp_nm in $lt_nm_to_check; do
5442 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5443 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5444 IFS="$lt_save_ifs"
5445 test -z "$ac_dir" && ac_dir=.
5446 tmp_nm="$ac_dir/$lt_tmp_nm"
5447 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5448 # Check to see if the nm accepts a BSD-compat flag.
5449 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5450 # nm: unknown option "B" ignored
5451 # Tru64's nm complains that /dev/null is an invalid object file
5452 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5453 */dev/null* | *'Invalid file or object type'*)
5454 lt_cv_path_NM="$tmp_nm -B"
5455 break
5456 ;;
5457 *)
5458 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5459 */dev/null*)
5460 lt_cv_path_NM="$tmp_nm -p"
5461 break
5462 ;;
5463 *)
5464 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5465 continue # so that we can try to find one that supports BSD flags
5466 ;;
5467 esac
5468 ;;
5469 esac
5470 fi
5471 done
5472 IFS="$lt_save_ifs"
5473 done
5474 : ${lt_cv_path_NM=no}
5475 fi
5476 fi
5477 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5478 $as_echo "$lt_cv_path_NM" >&6; }
5479 if test "$lt_cv_path_NM" != "no"; then
5480 NM="$lt_cv_path_NM"
5481 else
5482 # Didn't find any BSD compatible name lister, look for dumpbin.
5483 if test -n "$ac_tool_prefix"; then
5484 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5485 do
5486 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5487 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5488 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5489 $as_echo_n "checking for $ac_word... " >&6; }
5490 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5491 $as_echo_n "(cached) " >&6
5492 else
5493 if test -n "$DUMPBIN"; then
5494 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5495 else
5496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497 for as_dir in $PATH
5498 do
5499 IFS=$as_save_IFS
5500 test -z "$as_dir" && as_dir=.
5501 for ac_exec_ext in '' $ac_executable_extensions; do
5502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5503 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5504 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5505 break 2
5506 fi
5507 done
5508 done
5509 IFS=$as_save_IFS
5510
5511 fi
5512 fi
5513 DUMPBIN=$ac_cv_prog_DUMPBIN
5514 if test -n "$DUMPBIN"; then
5515 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5516 $as_echo "$DUMPBIN" >&6; }
5517 else
5518 { $as_echo "$as_me:$LINENO: result: no" >&5
5519 $as_echo "no" >&6; }
5520 fi
5521
5522
5523 test -n "$DUMPBIN" && break
5524 done
5525 fi
5526 if test -z "$DUMPBIN"; then
5527 ac_ct_DUMPBIN=$DUMPBIN
5528 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5529 do
5530 # Extract the first word of "$ac_prog", so it can be a program name with args.
5531 set dummy $ac_prog; ac_word=$2
5532 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5533 $as_echo_n "checking for $ac_word... " >&6; }
5534 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5535 $as_echo_n "(cached) " >&6
5536 else
5537 if test -n "$ac_ct_DUMPBIN"; then
5538 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5539 else
5540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541 for as_dir in $PATH
5542 do
5543 IFS=$as_save_IFS
5544 test -z "$as_dir" && as_dir=.
5545 for ac_exec_ext in '' $ac_executable_extensions; do
5546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5547 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5548 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5549 break 2
5550 fi
5551 done
5552 done
5553 IFS=$as_save_IFS
5554
5555 fi
5556 fi
5557 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5558 if test -n "$ac_ct_DUMPBIN"; then
5559 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5560 $as_echo "$ac_ct_DUMPBIN" >&6; }
5561 else
5562 { $as_echo "$as_me:$LINENO: result: no" >&5
5563 $as_echo "no" >&6; }
5564 fi
5565
5566
5567 test -n "$ac_ct_DUMPBIN" && break
5568 done
5569
5570 if test "x$ac_ct_DUMPBIN" = x; then
5571 DUMPBIN=":"
5572 else
5573 case $cross_compiling:$ac_tool_warned in
5574 yes:)
5575 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5577 ac_tool_warned=yes ;;
5578 esac
5579 DUMPBIN=$ac_ct_DUMPBIN
5580 fi
5581 fi
5582
5583
5584 if test "$DUMPBIN" != ":"; then
5585 NM="$DUMPBIN"
5586 fi
5587 fi
5588 test -z "$NM" && NM=nm
5589
5590
5591
5592
5593
5594
5595 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5596 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5597 if test "${lt_cv_nm_interface+set}" = set; then
5598 $as_echo_n "(cached) " >&6
5599 else
5600 lt_cv_nm_interface="BSD nm"
5601 echo "int some_variable = 0;" > conftest.$ac_ext
5602 (eval echo "\"\$as_me:5602: $ac_compile\"" >&5)
5603 (eval "$ac_compile" 2>conftest.err)
5604 cat conftest.err >&5
5605 (eval echo "\"\$as_me:5605: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5606 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5607 cat conftest.err >&5
5608 (eval echo "\"\$as_me:5608: output\"" >&5)
5609 cat conftest.out >&5
5610 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5611 lt_cv_nm_interface="MS dumpbin"
5612 fi
5613 rm -f conftest*
5614 fi
5615 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5616 $as_echo "$lt_cv_nm_interface" >&6; }
5617
5618 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5619 $as_echo_n "checking whether ln -s works... " >&6; }
5620 LN_S=$as_ln_s
5621 if test "$LN_S" = "ln -s"; then
5622 { $as_echo "$as_me:$LINENO: result: yes" >&5
5623 $as_echo "yes" >&6; }
5624 else
5625 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5626 $as_echo "no, using $LN_S" >&6; }
5627 fi
5628
5629 # find the maximum length of command line arguments
5630 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5631 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5632 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5633 $as_echo_n "(cached) " >&6
5634 else
5635 i=0
5636 teststring="ABCD"
5637
5638 case $build_os in
5639 msdosdjgpp*)
5640 # On DJGPP, this test can blow up pretty badly due to problems in libc
5641 # (any single argument exceeding 2000 bytes causes a buffer overrun
5642 # during glob expansion). Even if it were fixed, the result of this
5643 # check would be larger than it should be.
5644 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5645 ;;
5646
5647 gnu*)
5648 # Under GNU Hurd, this test is not required because there is
5649 # no limit to the length of command line arguments.
5650 # Libtool will interpret -1 as no limit whatsoever
5651 lt_cv_sys_max_cmd_len=-1;
5652 ;;
5653
5654 cygwin* | mingw* | cegcc*)
5655 # On Win9x/ME, this test blows up -- it succeeds, but takes
5656 # about 5 minutes as the teststring grows exponentially.
5657 # Worse, since 9x/ME are not pre-emptively multitasking,
5658 # you end up with a "frozen" computer, even though with patience
5659 # the test eventually succeeds (with a max line length of 256k).
5660 # Instead, let's just punt: use the minimum linelength reported by
5661 # all of the supported platforms: 8192 (on NT/2K/XP).
5662 lt_cv_sys_max_cmd_len=8192;
5663 ;;
5664
5665 amigaos*)
5666 # On AmigaOS with pdksh, this test takes hours, literally.
5667 # So we just punt and use a minimum line length of 8192.
5668 lt_cv_sys_max_cmd_len=8192;
5669 ;;
5670
5671 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5672 # This has been around since 386BSD, at least. Likely further.
5673 if test -x /sbin/sysctl; then
5674 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5675 elif test -x /usr/sbin/sysctl; then
5676 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5677 else
5678 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5679 fi
5680 # And add a safety zone
5681 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5682 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5683 ;;
5684
5685 interix*)
5686 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5687 lt_cv_sys_max_cmd_len=196608
5688 ;;
5689
5690 osf*)
5691 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5692 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5693 # nice to cause kernel panics so lets avoid the loop below.
5694 # First set a reasonable default.
5695 lt_cv_sys_max_cmd_len=16384
5696 #
5697 if test -x /sbin/sysconfig; then
5698 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5699 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5700 esac
5701 fi
5702 ;;
5703 sco3.2v5*)
5704 lt_cv_sys_max_cmd_len=102400
5705 ;;
5706 sysv5* | sco5v6* | sysv4.2uw2*)
5707 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5708 if test -n "$kargmax"; then
5709 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5710 else
5711 lt_cv_sys_max_cmd_len=32768
5712 fi
5713 ;;
5714 *)
5715 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5716 if test -n "$lt_cv_sys_max_cmd_len"; then
5717 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5718 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5719 else
5720 # Make teststring a little bigger before we do anything with it.
5721 # a 1K string should be a reasonable start.
5722 for i in 1 2 3 4 5 6 7 8 ; do
5723 teststring=$teststring$teststring
5724 done
5725 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5726 # If test is not a shell built-in, we'll probably end up computing a
5727 # maximum length that is only half of the actual maximum length, but
5728 # we can't tell.
5729 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5730 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5731 test $i != 17 # 1/2 MB should be enough
5732 do
5733 i=`expr $i + 1`
5734 teststring=$teststring$teststring
5735 done
5736 # Only check the string length outside the loop.
5737 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5738 teststring=
5739 # Add a significant safety factor because C++ compilers can tack on
5740 # massive amounts of additional arguments before passing them to the
5741 # linker. It appears as though 1/2 is a usable value.
5742 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5743 fi
5744 ;;
5745 esac
5746
5747 fi
5748
5749 if test -n $lt_cv_sys_max_cmd_len ; then
5750 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5751 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5752 else
5753 { $as_echo "$as_me:$LINENO: result: none" >&5
5754 $as_echo "none" >&6; }
5755 fi
5756 max_cmd_len=$lt_cv_sys_max_cmd_len
5757
5758
5759
5760
5761
5762
5763 : ${CP="cp -f"}
5764 : ${MV="mv -f"}
5765 : ${RM="rm -f"}
5766
5767 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5768 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5769 # Try some XSI features
5770 xsi_shell=no
5771 ( _lt_dummy="a/b/c"
5772 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5773 = c,a/b,, \
5774 && eval 'test $(( 1 + 1 )) -eq 2 \
5775 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5776 && xsi_shell=yes
5777 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5778 $as_echo "$xsi_shell" >&6; }
5779
5780
5781 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5782 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5783 lt_shell_append=no
5784 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5785 >/dev/null 2>&1 \
5786 && lt_shell_append=yes
5787 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5788 $as_echo "$lt_shell_append" >&6; }
5789
5790
5791 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5792 lt_unset=unset
5793 else
5794 lt_unset=false
5795 fi
5796
5797
5798
5799
5800
5801 # test EBCDIC or ASCII
5802 case `echo X|tr X '\101'` in
5803 A) # ASCII based system
5804 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5805 lt_SP2NL='tr \040 \012'
5806 lt_NL2SP='tr \015\012 \040\040'
5807 ;;
5808 *) # EBCDIC based system
5809 lt_SP2NL='tr \100 \n'
5810 lt_NL2SP='tr \r\n \100\100'
5811 ;;
5812 esac
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5823 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5824 if test "${lt_cv_ld_reload_flag+set}" = set; then
5825 $as_echo_n "(cached) " >&6
5826 else
5827 lt_cv_ld_reload_flag='-r'
5828 fi
5829 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5830 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5831 reload_flag=$lt_cv_ld_reload_flag
5832 case $reload_flag in
5833 "" | " "*) ;;
5834 *) reload_flag=" $reload_flag" ;;
5835 esac
5836 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5837 case $host_os in
5838 darwin*)
5839 if test "$GCC" = yes; then
5840 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5841 else
5842 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5843 fi
5844 ;;
5845 esac
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855 if test -n "$ac_tool_prefix"; then
5856 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5857 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5858 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5859 $as_echo_n "checking for $ac_word... " >&6; }
5860 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5861 $as_echo_n "(cached) " >&6
5862 else
5863 if test -n "$OBJDUMP"; then
5864 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5865 else
5866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867 for as_dir in $PATH
5868 do
5869 IFS=$as_save_IFS
5870 test -z "$as_dir" && as_dir=.
5871 for ac_exec_ext in '' $ac_executable_extensions; do
5872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5873 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5874 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5875 break 2
5876 fi
5877 done
5878 done
5879 IFS=$as_save_IFS
5880
5881 fi
5882 fi
5883 OBJDUMP=$ac_cv_prog_OBJDUMP
5884 if test -n "$OBJDUMP"; then
5885 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5886 $as_echo "$OBJDUMP" >&6; }
5887 else
5888 { $as_echo "$as_me:$LINENO: result: no" >&5
5889 $as_echo "no" >&6; }
5890 fi
5891
5892
5893 fi
5894 if test -z "$ac_cv_prog_OBJDUMP"; then
5895 ac_ct_OBJDUMP=$OBJDUMP
5896 # Extract the first word of "objdump", so it can be a program name with args.
5897 set dummy objdump; ac_word=$2
5898 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5899 $as_echo_n "checking for $ac_word... " >&6; }
5900 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5901 $as_echo_n "(cached) " >&6
5902 else
5903 if test -n "$ac_ct_OBJDUMP"; then
5904 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5905 else
5906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907 for as_dir in $PATH
5908 do
5909 IFS=$as_save_IFS
5910 test -z "$as_dir" && as_dir=.
5911 for ac_exec_ext in '' $ac_executable_extensions; do
5912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5913 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5914 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5915 break 2
5916 fi
5917 done
5918 done
5919 IFS=$as_save_IFS
5920
5921 fi
5922 fi
5923 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5924 if test -n "$ac_ct_OBJDUMP"; then
5925 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5926 $as_echo "$ac_ct_OBJDUMP" >&6; }
5927 else
5928 { $as_echo "$as_me:$LINENO: result: no" >&5
5929 $as_echo "no" >&6; }
5930 fi
5931
5932 if test "x$ac_ct_OBJDUMP" = x; then
5933 OBJDUMP="false"
5934 else
5935 case $cross_compiling:$ac_tool_warned in
5936 yes:)
5937 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5939 ac_tool_warned=yes ;;
5940 esac
5941 OBJDUMP=$ac_ct_OBJDUMP
5942 fi
5943 else
5944 OBJDUMP="$ac_cv_prog_OBJDUMP"
5945 fi
5946
5947 test -z "$OBJDUMP" && OBJDUMP=objdump
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5958 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5959 if test "${lt_cv_deplibs_check_method+set}" = set; then
5960 $as_echo_n "(cached) " >&6
5961 else
5962 lt_cv_file_magic_cmd='$MAGIC_CMD'
5963 lt_cv_file_magic_test_file=
5964 lt_cv_deplibs_check_method='unknown'
5965 # Need to set the preceding variable on all platforms that support
5966 # interlibrary dependencies.
5967 # 'none' -- dependencies not supported.
5968 # `unknown' -- same as none, but documents that we really don't know.
5969 # 'pass_all' -- all dependencies passed with no checks.
5970 # 'test_compile' -- check by making test program.
5971 # 'file_magic [[regex]]' -- check by looking for files in library path
5972 # which responds to the $file_magic_cmd with a given extended regex.
5973 # If you have `file' or equivalent on your system and you're not sure
5974 # whether `pass_all' will *always* work, you probably want this one.
5975
5976 case $host_os in
5977 aix[4-9]*)
5978 lt_cv_deplibs_check_method=pass_all
5979 ;;
5980
5981 beos*)
5982 lt_cv_deplibs_check_method=pass_all
5983 ;;
5984
5985 bsdi[45]*)
5986 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5987 lt_cv_file_magic_cmd='/usr/bin/file -L'
5988 lt_cv_file_magic_test_file=/shlib/libc.so
5989 ;;
5990
5991 cygwin*)
5992 # func_win32_libid is a shell function defined in ltmain.sh
5993 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5994 lt_cv_file_magic_cmd='func_win32_libid'
5995 ;;
5996
5997 mingw* | pw32*)
5998 # Base MSYS/MinGW do not provide the 'file' command needed by
5999 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6000 # unless we find 'file', for example because we are cross-compiling.
6001 if ( file / ) >/dev/null 2>&1; then
6002 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6003 lt_cv_file_magic_cmd='func_win32_libid'
6004 else
6005 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6006 lt_cv_file_magic_cmd='$OBJDUMP -f'
6007 fi
6008 ;;
6009
6010 cegcc)
6011 # use the weaker test based on 'objdump'. See mingw*.
6012 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6013 lt_cv_file_magic_cmd='$OBJDUMP -f'
6014 ;;
6015
6016 darwin* | rhapsody*)
6017 lt_cv_deplibs_check_method=pass_all
6018 ;;
6019
6020 freebsd* | dragonfly*)
6021 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6022 case $host_cpu in
6023 i*86 )
6024 # Not sure whether the presence of OpenBSD here was a mistake.
6025 # Let's accept both of them until this is cleared up.
6026 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6027 lt_cv_file_magic_cmd=/usr/bin/file
6028 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6029 ;;
6030 esac
6031 else
6032 lt_cv_deplibs_check_method=pass_all
6033 fi
6034 ;;
6035
6036 gnu*)
6037 lt_cv_deplibs_check_method=pass_all
6038 ;;
6039
6040 hpux10.20* | hpux11*)
6041 lt_cv_file_magic_cmd=/usr/bin/file
6042 case $host_cpu in
6043 ia64*)
6044 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6045 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6046 ;;
6047 hppa*64*)
6048 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]'
6049 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6050 ;;
6051 *)
6052 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6053 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6054 ;;
6055 esac
6056 ;;
6057
6058 interix[3-9]*)
6059 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6060 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6061 ;;
6062
6063 irix5* | irix6* | nonstopux*)
6064 case $LD in
6065 *-32|*"-32 ") libmagic=32-bit;;
6066 *-n32|*"-n32 ") libmagic=N32;;
6067 *-64|*"-64 ") libmagic=64-bit;;
6068 *) libmagic=never-match;;
6069 esac
6070 lt_cv_deplibs_check_method=pass_all
6071 ;;
6072
6073 # This must be Linux ELF.
6074 linux* | k*bsd*-gnu)
6075 lt_cv_deplibs_check_method=pass_all
6076 ;;
6077
6078 netbsd* | netbsdelf*-gnu)
6079 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6080 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6081 else
6082 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6083 fi
6084 ;;
6085
6086 newos6*)
6087 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6088 lt_cv_file_magic_cmd=/usr/bin/file
6089 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6090 ;;
6091
6092 *nto* | *qnx*)
6093 lt_cv_deplibs_check_method=pass_all
6094 ;;
6095
6096 openbsd*)
6097 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6098 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6099 else
6100 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6101 fi
6102 ;;
6103
6104 osf3* | osf4* | osf5*)
6105 lt_cv_deplibs_check_method=pass_all
6106 ;;
6107
6108 rdos*)
6109 lt_cv_deplibs_check_method=pass_all
6110 ;;
6111
6112 solaris*)
6113 lt_cv_deplibs_check_method=pass_all
6114 ;;
6115
6116 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6117 lt_cv_deplibs_check_method=pass_all
6118 ;;
6119
6120 sysv4 | sysv4.3*)
6121 case $host_vendor in
6122 motorola)
6123 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]'
6124 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6125 ;;
6126 ncr)
6127 lt_cv_deplibs_check_method=pass_all
6128 ;;
6129 sequent)
6130 lt_cv_file_magic_cmd='/bin/file'
6131 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6132 ;;
6133 sni)
6134 lt_cv_file_magic_cmd='/bin/file'
6135 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6136 lt_cv_file_magic_test_file=/lib/libc.so
6137 ;;
6138 siemens)
6139 lt_cv_deplibs_check_method=pass_all
6140 ;;
6141 pc)
6142 lt_cv_deplibs_check_method=pass_all
6143 ;;
6144 esac
6145 ;;
6146
6147 tpf*)
6148 lt_cv_deplibs_check_method=pass_all
6149 ;;
6150 esac
6151
6152 fi
6153 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6154 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6155 file_magic_cmd=$lt_cv_file_magic_cmd
6156 deplibs_check_method=$lt_cv_deplibs_check_method
6157 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170 if test -n "$ac_tool_prefix"; then
6171 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6172 set dummy ${ac_tool_prefix}ar; ac_word=$2
6173 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6174 $as_echo_n "checking for $ac_word... " >&6; }
6175 if test "${ac_cv_prog_AR+set}" = set; then
6176 $as_echo_n "(cached) " >&6
6177 else
6178 if test -n "$AR"; then
6179 ac_cv_prog_AR="$AR" # Let the user override the test.
6180 else
6181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182 for as_dir in $PATH
6183 do
6184 IFS=$as_save_IFS
6185 test -z "$as_dir" && as_dir=.
6186 for ac_exec_ext in '' $ac_executable_extensions; do
6187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6188 ac_cv_prog_AR="${ac_tool_prefix}ar"
6189 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6190 break 2
6191 fi
6192 done
6193 done
6194 IFS=$as_save_IFS
6195
6196 fi
6197 fi
6198 AR=$ac_cv_prog_AR
6199 if test -n "$AR"; then
6200 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6201 $as_echo "$AR" >&6; }
6202 else
6203 { $as_echo "$as_me:$LINENO: result: no" >&5
6204 $as_echo "no" >&6; }
6205 fi
6206
6207
6208 fi
6209 if test -z "$ac_cv_prog_AR"; then
6210 ac_ct_AR=$AR
6211 # Extract the first word of "ar", so it can be a program name with args.
6212 set dummy ar; ac_word=$2
6213 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6214 $as_echo_n "checking for $ac_word... " >&6; }
6215 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6216 $as_echo_n "(cached) " >&6
6217 else
6218 if test -n "$ac_ct_AR"; then
6219 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6220 else
6221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222 for as_dir in $PATH
6223 do
6224 IFS=$as_save_IFS
6225 test -z "$as_dir" && as_dir=.
6226 for ac_exec_ext in '' $ac_executable_extensions; do
6227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6228 ac_cv_prog_ac_ct_AR="ar"
6229 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6230 break 2
6231 fi
6232 done
6233 done
6234 IFS=$as_save_IFS
6235
6236 fi
6237 fi
6238 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6239 if test -n "$ac_ct_AR"; then
6240 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6241 $as_echo "$ac_ct_AR" >&6; }
6242 else
6243 { $as_echo "$as_me:$LINENO: result: no" >&5
6244 $as_echo "no" >&6; }
6245 fi
6246
6247 if test "x$ac_ct_AR" = x; then
6248 AR="false"
6249 else
6250 case $cross_compiling:$ac_tool_warned in
6251 yes:)
6252 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6254 ac_tool_warned=yes ;;
6255 esac
6256 AR=$ac_ct_AR
6257 fi
6258 else
6259 AR="$ac_cv_prog_AR"
6260 fi
6261
6262 test -z "$AR" && AR=ar
6263 test -z "$AR_FLAGS" && AR_FLAGS=cru
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275 if test -n "$ac_tool_prefix"; then
6276 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6277 set dummy ${ac_tool_prefix}strip; ac_word=$2
6278 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6279 $as_echo_n "checking for $ac_word... " >&6; }
6280 if test "${ac_cv_prog_STRIP+set}" = set; then
6281 $as_echo_n "(cached) " >&6
6282 else
6283 if test -n "$STRIP"; then
6284 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6285 else
6286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287 for as_dir in $PATH
6288 do
6289 IFS=$as_save_IFS
6290 test -z "$as_dir" && as_dir=.
6291 for ac_exec_ext in '' $ac_executable_extensions; do
6292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6293 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6294 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6295 break 2
6296 fi
6297 done
6298 done
6299 IFS=$as_save_IFS
6300
6301 fi
6302 fi
6303 STRIP=$ac_cv_prog_STRIP
6304 if test -n "$STRIP"; then
6305 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6306 $as_echo "$STRIP" >&6; }
6307 else
6308 { $as_echo "$as_me:$LINENO: result: no" >&5
6309 $as_echo "no" >&6; }
6310 fi
6311
6312
6313 fi
6314 if test -z "$ac_cv_prog_STRIP"; then
6315 ac_ct_STRIP=$STRIP
6316 # Extract the first word of "strip", so it can be a program name with args.
6317 set dummy strip; ac_word=$2
6318 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6319 $as_echo_n "checking for $ac_word... " >&6; }
6320 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6321 $as_echo_n "(cached) " >&6
6322 else
6323 if test -n "$ac_ct_STRIP"; then
6324 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6325 else
6326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6327 for as_dir in $PATH
6328 do
6329 IFS=$as_save_IFS
6330 test -z "$as_dir" && as_dir=.
6331 for ac_exec_ext in '' $ac_executable_extensions; do
6332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6333 ac_cv_prog_ac_ct_STRIP="strip"
6334 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6335 break 2
6336 fi
6337 done
6338 done
6339 IFS=$as_save_IFS
6340
6341 fi
6342 fi
6343 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6344 if test -n "$ac_ct_STRIP"; then
6345 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6346 $as_echo "$ac_ct_STRIP" >&6; }
6347 else
6348 { $as_echo "$as_me:$LINENO: result: no" >&5
6349 $as_echo "no" >&6; }
6350 fi
6351
6352 if test "x$ac_ct_STRIP" = x; then
6353 STRIP=":"
6354 else
6355 case $cross_compiling:$ac_tool_warned in
6356 yes:)
6357 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6358 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6359 ac_tool_warned=yes ;;
6360 esac
6361 STRIP=$ac_ct_STRIP
6362 fi
6363 else
6364 STRIP="$ac_cv_prog_STRIP"
6365 fi
6366
6367 test -z "$STRIP" && STRIP=:
6368
6369
6370
6371
6372
6373
6374 if test -n "$ac_tool_prefix"; then
6375 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6376 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6377 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6378 $as_echo_n "checking for $ac_word... " >&6; }
6379 if test "${ac_cv_prog_RANLIB+set}" = set; then
6380 $as_echo_n "(cached) " >&6
6381 else
6382 if test -n "$RANLIB"; then
6383 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6384 else
6385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6386 for as_dir in $PATH
6387 do
6388 IFS=$as_save_IFS
6389 test -z "$as_dir" && as_dir=.
6390 for ac_exec_ext in '' $ac_executable_extensions; do
6391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6392 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6393 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6394 break 2
6395 fi
6396 done
6397 done
6398 IFS=$as_save_IFS
6399
6400 fi
6401 fi
6402 RANLIB=$ac_cv_prog_RANLIB
6403 if test -n "$RANLIB"; then
6404 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6405 $as_echo "$RANLIB" >&6; }
6406 else
6407 { $as_echo "$as_me:$LINENO: result: no" >&5
6408 $as_echo "no" >&6; }
6409 fi
6410
6411
6412 fi
6413 if test -z "$ac_cv_prog_RANLIB"; then
6414 ac_ct_RANLIB=$RANLIB
6415 # Extract the first word of "ranlib", so it can be a program name with args.
6416 set dummy ranlib; ac_word=$2
6417 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6418 $as_echo_n "checking for $ac_word... " >&6; }
6419 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6420 $as_echo_n "(cached) " >&6
6421 else
6422 if test -n "$ac_ct_RANLIB"; then
6423 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6424 else
6425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426 for as_dir in $PATH
6427 do
6428 IFS=$as_save_IFS
6429 test -z "$as_dir" && as_dir=.
6430 for ac_exec_ext in '' $ac_executable_extensions; do
6431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6432 ac_cv_prog_ac_ct_RANLIB="ranlib"
6433 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6434 break 2
6435 fi
6436 done
6437 done
6438 IFS=$as_save_IFS
6439
6440 fi
6441 fi
6442 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6443 if test -n "$ac_ct_RANLIB"; then
6444 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6445 $as_echo "$ac_ct_RANLIB" >&6; }
6446 else
6447 { $as_echo "$as_me:$LINENO: result: no" >&5
6448 $as_echo "no" >&6; }
6449 fi
6450
6451 if test "x$ac_ct_RANLIB" = x; then
6452 RANLIB=":"
6453 else
6454 case $cross_compiling:$ac_tool_warned in
6455 yes:)
6456 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6458 ac_tool_warned=yes ;;
6459 esac
6460 RANLIB=$ac_ct_RANLIB
6461 fi
6462 else
6463 RANLIB="$ac_cv_prog_RANLIB"
6464 fi
6465
6466 test -z "$RANLIB" && RANLIB=:
6467
6468
6469
6470
6471
6472
6473 # Determine commands to create old-style static archives.
6474 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6475 old_postinstall_cmds='chmod 644 $oldlib'
6476 old_postuninstall_cmds=
6477
6478 if test -n "$RANLIB"; then
6479 case $host_os in
6480 openbsd*)
6481 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6482 ;;
6483 *)
6484 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6485 ;;
6486 esac
6487 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6488 fi
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523 # If no C compiler was specified, use CC.
6524 LTCC=${LTCC-"$CC"}
6525
6526 # If no C compiler flags were specified, use CFLAGS.
6527 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6528
6529 # Allow CC to be a program name with arguments.
6530 compiler=$CC
6531
6532
6533 # Check for command to grab the raw symbol name followed by C symbol from nm.
6534 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6535 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6536 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6537 $as_echo_n "(cached) " >&6
6538 else
6539
6540 # These are sane defaults that work on at least a few old systems.
6541 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6542
6543 # Character class describing NM global symbol codes.
6544 symcode='[BCDEGRST]'
6545
6546 # Regexp to match symbols that can be accessed directly from C.
6547 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6548
6549 # Define system-specific variables.
6550 case $host_os in
6551 aix*)
6552 symcode='[BCDT]'
6553 ;;
6554 cygwin* | mingw* | pw32* | cegcc*)
6555 symcode='[ABCDGISTW]'
6556 ;;
6557 hpux*)
6558 if test "$host_cpu" = ia64; then
6559 symcode='[ABCDEGRST]'
6560 fi
6561 ;;
6562 irix* | nonstopux*)
6563 symcode='[BCDEGRST]'
6564 ;;
6565 osf*)
6566 symcode='[BCDEGQRST]'
6567 ;;
6568 solaris*)
6569 symcode='[BDRT]'
6570 ;;
6571 sco3.2v5*)
6572 symcode='[DT]'
6573 ;;
6574 sysv4.2uw2*)
6575 symcode='[DT]'
6576 ;;
6577 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6578 symcode='[ABDT]'
6579 ;;
6580 sysv4)
6581 symcode='[DFNSTU]'
6582 ;;
6583 esac
6584
6585 # If we're using GNU nm, then use its standard symbol codes.
6586 case `$NM -V 2>&1` in
6587 *GNU* | *'with BFD'*)
6588 symcode='[ABCDGIRSTW]' ;;
6589 esac
6590
6591 # Transform an extracted symbol line into a proper C declaration.
6592 # Some systems (esp. on ia64) link data and code symbols differently,
6593 # so use this general approach.
6594 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6595
6596 # Transform an extracted symbol line into symbol name and symbol address
6597 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6598 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'"
6599
6600 # Handle CRLF in mingw tool chain
6601 opt_cr=
6602 case $build_os in
6603 mingw*)
6604 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6605 ;;
6606 esac
6607
6608 # Try without a prefix underscore, then with it.
6609 for ac_symprfx in "" "_"; do
6610
6611 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6612 symxfrm="\\1 $ac_symprfx\\2 \\2"
6613
6614 # Write the raw and C identifiers.
6615 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6616 # Fake it for dumpbin and say T for any non-static function
6617 # and D for any global variable.
6618 # Also find C++ and __fastcall symbols from MSVC++,
6619 # which start with @ or ?.
6620 lt_cv_sys_global_symbol_pipe="$AWK '"\
6621 " {last_section=section; section=\$ 3};"\
6622 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6623 " \$ 0!~/External *\|/{next};"\
6624 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6625 " {if(hide[section]) next};"\
6626 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6627 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6628 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6629 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6630 " ' prfx=^$ac_symprfx"
6631 else
6632 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6633 fi
6634
6635 # Check to see that the pipe works correctly.
6636 pipe_works=no
6637
6638 rm -f conftest*
6639 cat > conftest.$ac_ext <<_LT_EOF
6640 #ifdef __cplusplus
6641 extern "C" {
6642 #endif
6643 char nm_test_var;
6644 void nm_test_func(void);
6645 void nm_test_func(void){}
6646 #ifdef __cplusplus
6647 }
6648 #endif
6649 int main(){nm_test_var='a';nm_test_func();return(0);}
6650 _LT_EOF
6651
6652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6653 (eval $ac_compile) 2>&5
6654 ac_status=$?
6655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); }; then
6657 # Now try to grab the symbols.
6658 nlist=conftest.nm
6659 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6660 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6661 ac_status=$?
6662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); } && test -s "$nlist"; then
6664 # Try sorting and uniquifying the output.
6665 if sort "$nlist" | uniq > "$nlist"T; then
6666 mv -f "$nlist"T "$nlist"
6667 else
6668 rm -f "$nlist"T
6669 fi
6670
6671 # Make sure that we snagged all the symbols we need.
6672 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6673 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6674 cat <<_LT_EOF > conftest.$ac_ext
6675 #ifdef __cplusplus
6676 extern "C" {
6677 #endif
6678
6679 _LT_EOF
6680 # Now generate the symbol file.
6681 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6682
6683 cat <<_LT_EOF >> conftest.$ac_ext
6684
6685 /* The mapping between symbol names and symbols. */
6686 const struct {
6687 const char *name;
6688 void *address;
6689 }
6690 lt__PROGRAM__LTX_preloaded_symbols[] =
6691 {
6692 { "@PROGRAM@", (void *) 0 },
6693 _LT_EOF
6694 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6695 cat <<\_LT_EOF >> conftest.$ac_ext
6696 {0, (void *) 0}
6697 };
6698
6699 /* This works around a problem in FreeBSD linker */
6700 #ifdef FREEBSD_WORKAROUND
6701 static const void *lt_preloaded_setup() {
6702 return lt__PROGRAM__LTX_preloaded_symbols;
6703 }
6704 #endif
6705
6706 #ifdef __cplusplus
6707 }
6708 #endif
6709 _LT_EOF
6710 # Now try linking the two files.
6711 mv conftest.$ac_objext conftstm.$ac_objext
6712 lt_save_LIBS="$LIBS"
6713 lt_save_CFLAGS="$CFLAGS"
6714 LIBS="conftstm.$ac_objext"
6715 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6717 (eval $ac_link) 2>&5
6718 ac_status=$?
6719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6721 pipe_works=yes
6722 fi
6723 LIBS="$lt_save_LIBS"
6724 CFLAGS="$lt_save_CFLAGS"
6725 else
6726 echo "cannot find nm_test_func in $nlist" >&5
6727 fi
6728 else
6729 echo "cannot find nm_test_var in $nlist" >&5
6730 fi
6731 else
6732 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6733 fi
6734 else
6735 echo "$progname: failed program was:" >&5
6736 cat conftest.$ac_ext >&5
6737 fi
6738 rm -rf conftest* conftst*
6739
6740 # Do not use the global_symbol_pipe unless it works.
6741 if test "$pipe_works" = yes; then
6742 break
6743 else
6744 lt_cv_sys_global_symbol_pipe=
6745 fi
6746 done
6747
6748 fi
6749
6750 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6751 lt_cv_sys_global_symbol_to_cdecl=
6752 fi
6753 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6754 { $as_echo "$as_me:$LINENO: result: failed" >&5
6755 $as_echo "failed" >&6; }
6756 else
6757 { $as_echo "$as_me:$LINENO: result: ok" >&5
6758 $as_echo "ok" >&6; }
6759 fi
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782 # Check whether --enable-libtool-lock was given.
6783 if test "${enable_libtool_lock+set}" = set; then
6784 enableval=$enable_libtool_lock;
6785 fi
6786
6787 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6788
6789 # Some flags need to be propagated to the compiler or linker for good
6790 # libtool support.
6791 case $host in
6792 ia64-*-hpux*)
6793 # Find out which ABI we are using.
6794 echo 'int i;' > conftest.$ac_ext
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 case `/usr/bin/file conftest.$ac_objext` in
6801 *ELF-32*)
6802 HPUX_IA64_MODE="32"
6803 ;;
6804 *ELF-64*)
6805 HPUX_IA64_MODE="64"
6806 ;;
6807 esac
6808 fi
6809 rm -rf conftest*
6810 ;;
6811 *-*-irix6*)
6812 # Find out which ABI we are using.
6813 echo '#line 6813 "configure"' > conftest.$ac_ext
6814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6815 (eval $ac_compile) 2>&5
6816 ac_status=$?
6817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); }; then
6819 if test "$lt_cv_prog_gnu_ld" = yes; then
6820 case `/usr/bin/file conftest.$ac_objext` in
6821 *32-bit*)
6822 LD="${LD-ld} -melf32bsmip"
6823 ;;
6824 *N32*)
6825 LD="${LD-ld} -melf32bmipn32"
6826 ;;
6827 *64-bit*)
6828 LD="${LD-ld} -melf64bmip"
6829 ;;
6830 esac
6831 else
6832 case `/usr/bin/file conftest.$ac_objext` in
6833 *32-bit*)
6834 LD="${LD-ld} -32"
6835 ;;
6836 *N32*)
6837 LD="${LD-ld} -n32"
6838 ;;
6839 *64-bit*)
6840 LD="${LD-ld} -64"
6841 ;;
6842 esac
6843 fi
6844 fi
6845 rm -rf conftest*
6846 ;;
6847
6848 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6849 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6850 # Find out which ABI we are using.
6851 echo 'int i;' > conftest.$ac_ext
6852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6853 (eval $ac_compile) 2>&5
6854 ac_status=$?
6855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); }; then
6857 case `/usr/bin/file conftest.o` in
6858 *32-bit*)
6859 case $host in
6860 x86_64-*kfreebsd*-gnu)
6861 LD="${LD-ld} -m elf_i386_fbsd"
6862 ;;
6863 x86_64-*linux*)
6864 LD="${LD-ld} -m elf_i386"
6865 ;;
6866 ppc64-*linux*|powerpc64-*linux*)
6867 LD="${LD-ld} -m elf32ppclinux"
6868 ;;
6869 s390x-*linux*)
6870 LD="${LD-ld} -m elf_s390"
6871 ;;
6872 sparc64-*linux*)
6873 LD="${LD-ld} -m elf32_sparc"
6874 ;;
6875 esac
6876 ;;
6877 *64-bit*)
6878 case $host in
6879 x86_64-*kfreebsd*-gnu)
6880 LD="${LD-ld} -m elf_x86_64_fbsd"
6881 ;;
6882 x86_64-*linux*)
6883 LD="${LD-ld} -m elf_x86_64"
6884 ;;
6885 ppc*-*linux*|powerpc*-*linux*)
6886 LD="${LD-ld} -m elf64ppc"
6887 ;;
6888 s390*-*linux*|s390*-*tpf*)
6889 LD="${LD-ld} -m elf64_s390"
6890 ;;
6891 sparc*-*linux*)
6892 LD="${LD-ld} -m elf64_sparc"
6893 ;;
6894 esac
6895 ;;
6896 esac
6897 fi
6898 rm -rf conftest*
6899 ;;
6900
6901 *-*-sco3.2v5*)
6902 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6903 SAVE_CFLAGS="$CFLAGS"
6904 CFLAGS="$CFLAGS -belf"
6905 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6906 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6907 if test "${lt_cv_cc_needs_belf+set}" = set; then
6908 $as_echo_n "(cached) " >&6
6909 else
6910 ac_ext=c
6911 ac_cpp='$CPP $CPPFLAGS'
6912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6915
6916 cat >conftest.$ac_ext <<_ACEOF
6917 /* confdefs.h. */
6918 _ACEOF
6919 cat confdefs.h >>conftest.$ac_ext
6920 cat >>conftest.$ac_ext <<_ACEOF
6921 /* end confdefs.h. */
6922
6923 int
6924 main ()
6925 {
6926
6927 ;
6928 return 0;
6929 }
6930 _ACEOF
6931 rm -f conftest.$ac_objext conftest$ac_exeext
6932 if { (ac_try="$ac_link"
6933 case "(($ac_try" in
6934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6935 *) ac_try_echo=$ac_try;;
6936 esac
6937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6938 $as_echo "$ac_try_echo") >&5
6939 (eval "$ac_link") 2>conftest.er1
6940 ac_status=$?
6941 grep -v '^ *+' conftest.er1 >conftest.err
6942 rm -f conftest.er1
6943 cat conftest.err >&5
6944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); } && {
6946 test -z "$ac_c_werror_flag" ||
6947 test ! -s conftest.err
6948 } && test -s conftest$ac_exeext && {
6949 test "$cross_compiling" = yes ||
6950 $as_test_x conftest$ac_exeext
6951 }; then
6952 lt_cv_cc_needs_belf=yes
6953 else
6954 $as_echo "$as_me: failed program was:" >&5
6955 sed 's/^/| /' conftest.$ac_ext >&5
6956
6957 lt_cv_cc_needs_belf=no
6958 fi
6959
6960 rm -rf conftest.dSYM
6961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6962 conftest$ac_exeext conftest.$ac_ext
6963 ac_ext=c
6964 ac_cpp='$CPP $CPPFLAGS'
6965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6968
6969 fi
6970 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6971 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6972 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6973 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6974 CFLAGS="$SAVE_CFLAGS"
6975 fi
6976 ;;
6977 sparc*-*solaris*)
6978 # Find out which ABI we are using.
6979 echo 'int i;' > conftest.$ac_ext
6980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6981 (eval $ac_compile) 2>&5
6982 ac_status=$?
6983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); }; then
6985 case `/usr/bin/file conftest.o` in
6986 *64-bit*)
6987 case $lt_cv_prog_gnu_ld in
6988 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6989 *)
6990 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6991 LD="${LD-ld} -64"
6992 fi
6993 ;;
6994 esac
6995 ;;
6996 esac
6997 fi
6998 rm -rf conftest*
6999 ;;
7000 esac
7001
7002 need_locks="$enable_libtool_lock"
7003
7004
7005 case $host_os in
7006 rhapsody* | darwin*)
7007 if test -n "$ac_tool_prefix"; then
7008 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7009 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7010 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7011 $as_echo_n "checking for $ac_word... " >&6; }
7012 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7013 $as_echo_n "(cached) " >&6
7014 else
7015 if test -n "$DSYMUTIL"; then
7016 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7017 else
7018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019 for as_dir in $PATH
7020 do
7021 IFS=$as_save_IFS
7022 test -z "$as_dir" && as_dir=.
7023 for ac_exec_ext in '' $ac_executable_extensions; do
7024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7025 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7026 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7027 break 2
7028 fi
7029 done
7030 done
7031 IFS=$as_save_IFS
7032
7033 fi
7034 fi
7035 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7036 if test -n "$DSYMUTIL"; then
7037 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7038 $as_echo "$DSYMUTIL" >&6; }
7039 else
7040 { $as_echo "$as_me:$LINENO: result: no" >&5
7041 $as_echo "no" >&6; }
7042 fi
7043
7044
7045 fi
7046 if test -z "$ac_cv_prog_DSYMUTIL"; then
7047 ac_ct_DSYMUTIL=$DSYMUTIL
7048 # Extract the first word of "dsymutil", so it can be a program name with args.
7049 set dummy dsymutil; ac_word=$2
7050 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7051 $as_echo_n "checking for $ac_word... " >&6; }
7052 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7053 $as_echo_n "(cached) " >&6
7054 else
7055 if test -n "$ac_ct_DSYMUTIL"; then
7056 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7057 else
7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 for as_dir in $PATH
7060 do
7061 IFS=$as_save_IFS
7062 test -z "$as_dir" && as_dir=.
7063 for ac_exec_ext in '' $ac_executable_extensions; do
7064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7065 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7066 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7067 break 2
7068 fi
7069 done
7070 done
7071 IFS=$as_save_IFS
7072
7073 fi
7074 fi
7075 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7076 if test -n "$ac_ct_DSYMUTIL"; then
7077 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7078 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7079 else
7080 { $as_echo "$as_me:$LINENO: result: no" >&5
7081 $as_echo "no" >&6; }
7082 fi
7083
7084 if test "x$ac_ct_DSYMUTIL" = x; then
7085 DSYMUTIL=":"
7086 else
7087 case $cross_compiling:$ac_tool_warned in
7088 yes:)
7089 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7091 ac_tool_warned=yes ;;
7092 esac
7093 DSYMUTIL=$ac_ct_DSYMUTIL
7094 fi
7095 else
7096 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7097 fi
7098
7099 if test -n "$ac_tool_prefix"; then
7100 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7101 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7102 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7103 $as_echo_n "checking for $ac_word... " >&6; }
7104 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7105 $as_echo_n "(cached) " >&6
7106 else
7107 if test -n "$NMEDIT"; then
7108 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7109 else
7110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111 for as_dir in $PATH
7112 do
7113 IFS=$as_save_IFS
7114 test -z "$as_dir" && as_dir=.
7115 for ac_exec_ext in '' $ac_executable_extensions; do
7116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7117 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7118 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7119 break 2
7120 fi
7121 done
7122 done
7123 IFS=$as_save_IFS
7124
7125 fi
7126 fi
7127 NMEDIT=$ac_cv_prog_NMEDIT
7128 if test -n "$NMEDIT"; then
7129 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7130 $as_echo "$NMEDIT" >&6; }
7131 else
7132 { $as_echo "$as_me:$LINENO: result: no" >&5
7133 $as_echo "no" >&6; }
7134 fi
7135
7136
7137 fi
7138 if test -z "$ac_cv_prog_NMEDIT"; then
7139 ac_ct_NMEDIT=$NMEDIT
7140 # Extract the first word of "nmedit", so it can be a program name with args.
7141 set dummy nmedit; ac_word=$2
7142 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7143 $as_echo_n "checking for $ac_word... " >&6; }
7144 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7145 $as_echo_n "(cached) " >&6
7146 else
7147 if test -n "$ac_ct_NMEDIT"; then
7148 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7149 else
7150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151 for as_dir in $PATH
7152 do
7153 IFS=$as_save_IFS
7154 test -z "$as_dir" && as_dir=.
7155 for ac_exec_ext in '' $ac_executable_extensions; do
7156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7157 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7158 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7159 break 2
7160 fi
7161 done
7162 done
7163 IFS=$as_save_IFS
7164
7165 fi
7166 fi
7167 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7168 if test -n "$ac_ct_NMEDIT"; then
7169 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7170 $as_echo "$ac_ct_NMEDIT" >&6; }
7171 else
7172 { $as_echo "$as_me:$LINENO: result: no" >&5
7173 $as_echo "no" >&6; }
7174 fi
7175
7176 if test "x$ac_ct_NMEDIT" = x; then
7177 NMEDIT=":"
7178 else
7179 case $cross_compiling:$ac_tool_warned in
7180 yes:)
7181 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7183 ac_tool_warned=yes ;;
7184 esac
7185 NMEDIT=$ac_ct_NMEDIT
7186 fi
7187 else
7188 NMEDIT="$ac_cv_prog_NMEDIT"
7189 fi
7190
7191 if test -n "$ac_tool_prefix"; then
7192 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7193 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7194 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7195 $as_echo_n "checking for $ac_word... " >&6; }
7196 if test "${ac_cv_prog_LIPO+set}" = set; then
7197 $as_echo_n "(cached) " >&6
7198 else
7199 if test -n "$LIPO"; then
7200 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7201 else
7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203 for as_dir in $PATH
7204 do
7205 IFS=$as_save_IFS
7206 test -z "$as_dir" && as_dir=.
7207 for ac_exec_ext in '' $ac_executable_extensions; do
7208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7209 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7210 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7211 break 2
7212 fi
7213 done
7214 done
7215 IFS=$as_save_IFS
7216
7217 fi
7218 fi
7219 LIPO=$ac_cv_prog_LIPO
7220 if test -n "$LIPO"; then
7221 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7222 $as_echo "$LIPO" >&6; }
7223 else
7224 { $as_echo "$as_me:$LINENO: result: no" >&5
7225 $as_echo "no" >&6; }
7226 fi
7227
7228
7229 fi
7230 if test -z "$ac_cv_prog_LIPO"; then
7231 ac_ct_LIPO=$LIPO
7232 # Extract the first word of "lipo", so it can be a program name with args.
7233 set dummy lipo; ac_word=$2
7234 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7235 $as_echo_n "checking for $ac_word... " >&6; }
7236 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7237 $as_echo_n "(cached) " >&6
7238 else
7239 if test -n "$ac_ct_LIPO"; then
7240 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7241 else
7242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7243 for as_dir in $PATH
7244 do
7245 IFS=$as_save_IFS
7246 test -z "$as_dir" && as_dir=.
7247 for ac_exec_ext in '' $ac_executable_extensions; do
7248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7249 ac_cv_prog_ac_ct_LIPO="lipo"
7250 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7251 break 2
7252 fi
7253 done
7254 done
7255 IFS=$as_save_IFS
7256
7257 fi
7258 fi
7259 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7260 if test -n "$ac_ct_LIPO"; then
7261 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7262 $as_echo "$ac_ct_LIPO" >&6; }
7263 else
7264 { $as_echo "$as_me:$LINENO: result: no" >&5
7265 $as_echo "no" >&6; }
7266 fi
7267
7268 if test "x$ac_ct_LIPO" = x; then
7269 LIPO=":"
7270 else
7271 case $cross_compiling:$ac_tool_warned in
7272 yes:)
7273 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7275 ac_tool_warned=yes ;;
7276 esac
7277 LIPO=$ac_ct_LIPO
7278 fi
7279 else
7280 LIPO="$ac_cv_prog_LIPO"
7281 fi
7282
7283 if test -n "$ac_tool_prefix"; then
7284 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7285 set dummy ${ac_tool_prefix}otool; ac_word=$2
7286 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7287 $as_echo_n "checking for $ac_word... " >&6; }
7288 if test "${ac_cv_prog_OTOOL+set}" = set; then
7289 $as_echo_n "(cached) " >&6
7290 else
7291 if test -n "$OTOOL"; then
7292 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7293 else
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295 for as_dir in $PATH
7296 do
7297 IFS=$as_save_IFS
7298 test -z "$as_dir" && as_dir=.
7299 for ac_exec_ext in '' $ac_executable_extensions; do
7300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7301 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7302 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7303 break 2
7304 fi
7305 done
7306 done
7307 IFS=$as_save_IFS
7308
7309 fi
7310 fi
7311 OTOOL=$ac_cv_prog_OTOOL
7312 if test -n "$OTOOL"; then
7313 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7314 $as_echo "$OTOOL" >&6; }
7315 else
7316 { $as_echo "$as_me:$LINENO: result: no" >&5
7317 $as_echo "no" >&6; }
7318 fi
7319
7320
7321 fi
7322 if test -z "$ac_cv_prog_OTOOL"; then
7323 ac_ct_OTOOL=$OTOOL
7324 # Extract the first word of "otool", so it can be a program name with args.
7325 set dummy otool; ac_word=$2
7326 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7327 $as_echo_n "checking for $ac_word... " >&6; }
7328 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7329 $as_echo_n "(cached) " >&6
7330 else
7331 if test -n "$ac_ct_OTOOL"; then
7332 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7333 else
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335 for as_dir in $PATH
7336 do
7337 IFS=$as_save_IFS
7338 test -z "$as_dir" && as_dir=.
7339 for ac_exec_ext in '' $ac_executable_extensions; do
7340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7341 ac_cv_prog_ac_ct_OTOOL="otool"
7342 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7343 break 2
7344 fi
7345 done
7346 done
7347 IFS=$as_save_IFS
7348
7349 fi
7350 fi
7351 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7352 if test -n "$ac_ct_OTOOL"; then
7353 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7354 $as_echo "$ac_ct_OTOOL" >&6; }
7355 else
7356 { $as_echo "$as_me:$LINENO: result: no" >&5
7357 $as_echo "no" >&6; }
7358 fi
7359
7360 if test "x$ac_ct_OTOOL" = x; then
7361 OTOOL=":"
7362 else
7363 case $cross_compiling:$ac_tool_warned in
7364 yes:)
7365 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7367 ac_tool_warned=yes ;;
7368 esac
7369 OTOOL=$ac_ct_OTOOL
7370 fi
7371 else
7372 OTOOL="$ac_cv_prog_OTOOL"
7373 fi
7374
7375 if test -n "$ac_tool_prefix"; then
7376 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7377 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7378 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7379 $as_echo_n "checking for $ac_word... " >&6; }
7380 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7381 $as_echo_n "(cached) " >&6
7382 else
7383 if test -n "$OTOOL64"; then
7384 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7385 else
7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387 for as_dir in $PATH
7388 do
7389 IFS=$as_save_IFS
7390 test -z "$as_dir" && as_dir=.
7391 for ac_exec_ext in '' $ac_executable_extensions; do
7392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7393 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7394 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7395 break 2
7396 fi
7397 done
7398 done
7399 IFS=$as_save_IFS
7400
7401 fi
7402 fi
7403 OTOOL64=$ac_cv_prog_OTOOL64
7404 if test -n "$OTOOL64"; then
7405 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7406 $as_echo "$OTOOL64" >&6; }
7407 else
7408 { $as_echo "$as_me:$LINENO: result: no" >&5
7409 $as_echo "no" >&6; }
7410 fi
7411
7412
7413 fi
7414 if test -z "$ac_cv_prog_OTOOL64"; then
7415 ac_ct_OTOOL64=$OTOOL64
7416 # Extract the first word of "otool64", so it can be a program name with args.
7417 set dummy otool64; ac_word=$2
7418 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7419 $as_echo_n "checking for $ac_word... " >&6; }
7420 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7421 $as_echo_n "(cached) " >&6
7422 else
7423 if test -n "$ac_ct_OTOOL64"; then
7424 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7425 else
7426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427 for as_dir in $PATH
7428 do
7429 IFS=$as_save_IFS
7430 test -z "$as_dir" && as_dir=.
7431 for ac_exec_ext in '' $ac_executable_extensions; do
7432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7433 ac_cv_prog_ac_ct_OTOOL64="otool64"
7434 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7435 break 2
7436 fi
7437 done
7438 done
7439 IFS=$as_save_IFS
7440
7441 fi
7442 fi
7443 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7444 if test -n "$ac_ct_OTOOL64"; then
7445 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7446 $as_echo "$ac_ct_OTOOL64" >&6; }
7447 else
7448 { $as_echo "$as_me:$LINENO: result: no" >&5
7449 $as_echo "no" >&6; }
7450 fi
7451
7452 if test "x$ac_ct_OTOOL64" = x; then
7453 OTOOL64=":"
7454 else
7455 case $cross_compiling:$ac_tool_warned in
7456 yes:)
7457 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7459 ac_tool_warned=yes ;;
7460 esac
7461 OTOOL64=$ac_ct_OTOOL64
7462 fi
7463 else
7464 OTOOL64="$ac_cv_prog_OTOOL64"
7465 fi
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7494 $as_echo_n "checking for -single_module linker flag... " >&6; }
7495 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7496 $as_echo_n "(cached) " >&6
7497 else
7498 lt_cv_apple_cc_single_mod=no
7499 if test -z "${LT_MULTI_MODULE}"; then
7500 # By default we will add the -single_module flag. You can override
7501 # by either setting the environment variable LT_MULTI_MODULE
7502 # non-empty at configure time, or by adding -multi_module to the
7503 # link flags.
7504 rm -rf libconftest.dylib*
7505 echo "int foo(void){return 1;}" > conftest.c
7506 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7507 -dynamiclib -Wl,-single_module conftest.c" >&5
7508 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7509 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7510 _lt_result=$?
7511 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7512 lt_cv_apple_cc_single_mod=yes
7513 else
7514 cat conftest.err >&5
7515 fi
7516 rm -rf libconftest.dylib*
7517 rm -f conftest.*
7518 fi
7519 fi
7520 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7521 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7522 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7523 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7524 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7525 $as_echo_n "(cached) " >&6
7526 else
7527 lt_cv_ld_exported_symbols_list=no
7528 save_LDFLAGS=$LDFLAGS
7529 echo "_main" > conftest.sym
7530 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7531 cat >conftest.$ac_ext <<_ACEOF
7532 /* confdefs.h. */
7533 _ACEOF
7534 cat confdefs.h >>conftest.$ac_ext
7535 cat >>conftest.$ac_ext <<_ACEOF
7536 /* end confdefs.h. */
7537
7538 int
7539 main ()
7540 {
7541
7542 ;
7543 return 0;
7544 }
7545 _ACEOF
7546 rm -f conftest.$ac_objext conftest$ac_exeext
7547 if { (ac_try="$ac_link"
7548 case "(($ac_try" in
7549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7550 *) ac_try_echo=$ac_try;;
7551 esac
7552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7553 $as_echo "$ac_try_echo") >&5
7554 (eval "$ac_link") 2>conftest.er1
7555 ac_status=$?
7556 grep -v '^ *+' conftest.er1 >conftest.err
7557 rm -f conftest.er1
7558 cat conftest.err >&5
7559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); } && {
7561 test -z "$ac_c_werror_flag" ||
7562 test ! -s conftest.err
7563 } && test -s conftest$ac_exeext && {
7564 test "$cross_compiling" = yes ||
7565 $as_test_x conftest$ac_exeext
7566 }; then
7567 lt_cv_ld_exported_symbols_list=yes
7568 else
7569 $as_echo "$as_me: failed program was:" >&5
7570 sed 's/^/| /' conftest.$ac_ext >&5
7571
7572 lt_cv_ld_exported_symbols_list=no
7573 fi
7574
7575 rm -rf conftest.dSYM
7576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7577 conftest$ac_exeext conftest.$ac_ext
7578 LDFLAGS="$save_LDFLAGS"
7579
7580 fi
7581 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7582 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7583 case $host_os in
7584 rhapsody* | darwin1.[012])
7585 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7586 darwin1.*)
7587 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7588 darwin*) # darwin 5.x on
7589 # if running on 10.5 or later, the deployment target defaults
7590 # to the OS version, if on x86, and 10.4, the deployment
7591 # target defaults to 10.4. Don't you love it?
7592 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7593 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7594 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7595 10.[012]*)
7596 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7597 10.*)
7598 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7599 esac
7600 ;;
7601 esac
7602 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7603 _lt_dar_single_mod='$single_module'
7604 fi
7605 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7606 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7607 else
7608 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7609 fi
7610 if test "$DSYMUTIL" != ":"; then
7611 _lt_dsymutil='~$DSYMUTIL $lib || :'
7612 else
7613 _lt_dsymutil=
7614 fi
7615 ;;
7616 esac
7617
7618
7619 for ac_header in dlfcn.h
7620 do
7621 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7622 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7623 $as_echo_n "checking for $ac_header... " >&6; }
7624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7625 $as_echo_n "(cached) " >&6
7626 else
7627 cat >conftest.$ac_ext <<_ACEOF
7628 /* confdefs.h. */
7629 _ACEOF
7630 cat confdefs.h >>conftest.$ac_ext
7631 cat >>conftest.$ac_ext <<_ACEOF
7632 /* end confdefs.h. */
7633 $ac_includes_default
7634
7635 #include <$ac_header>
7636 _ACEOF
7637 rm -f conftest.$ac_objext
7638 if { (ac_try="$ac_compile"
7639 case "(($ac_try" in
7640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7641 *) ac_try_echo=$ac_try;;
7642 esac
7643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7644 $as_echo "$ac_try_echo") >&5
7645 (eval "$ac_compile") 2>conftest.er1
7646 ac_status=$?
7647 grep -v '^ *+' conftest.er1 >conftest.err
7648 rm -f conftest.er1
7649 cat conftest.err >&5
7650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); } && {
7652 test -z "$ac_c_werror_flag" ||
7653 test ! -s conftest.err
7654 } && test -s conftest.$ac_objext; then
7655 eval "$as_ac_Header=yes"
7656 else
7657 $as_echo "$as_me: failed program was:" >&5
7658 sed 's/^/| /' conftest.$ac_ext >&5
7659
7660 eval "$as_ac_Header=no"
7661 fi
7662
7663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7664 fi
7665 ac_res=`eval 'as_val=${'$as_ac_Header'}
7666 $as_echo "$as_val"'`
7667 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7668 $as_echo "$ac_res" >&6; }
7669 as_val=`eval 'as_val=${'$as_ac_Header'}
7670 $as_echo "$as_val"'`
7671 if test "x$as_val" = x""yes; then
7672 cat >>confdefs.h <<_ACEOF
7673 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7674 _ACEOF
7675
7676 fi
7677
7678 done
7679
7680
7681
7682 # Set options
7683
7684
7685
7686 enable_dlopen=no
7687
7688
7689 enable_win32_dll=no
7690
7691
7692 # Check whether --enable-shared was given.
7693 if test "${enable_shared+set}" = set; then
7694 enableval=$enable_shared; p=${PACKAGE-default}
7695 case $enableval in
7696 yes) enable_shared=yes ;;
7697 no) enable_shared=no ;;
7698 *)
7699 enable_shared=no
7700 # Look at the argument we got. We use all the common list separators.
7701 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7702 for pkg in $enableval; do
7703 IFS="$lt_save_ifs"
7704 if test "X$pkg" = "X$p"; then
7705 enable_shared=yes
7706 fi
7707 done
7708 IFS="$lt_save_ifs"
7709 ;;
7710 esac
7711 else
7712 enable_shared=yes
7713 fi
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725 # Check whether --with-pic was given.
7726 if test "${with_pic+set}" = set; then
7727 withval=$with_pic; pic_mode="$withval"
7728 else
7729 pic_mode=default
7730 fi
7731
7732
7733 test -z "$pic_mode" && pic_mode=default
7734
7735
7736
7737
7738
7739
7740
7741 # Check whether --enable-fast-install was given.
7742 if test "${enable_fast_install+set}" = set; then
7743 enableval=$enable_fast_install; p=${PACKAGE-default}
7744 case $enableval in
7745 yes) enable_fast_install=yes ;;
7746 no) enable_fast_install=no ;;
7747 *)
7748 enable_fast_install=no
7749 # Look at the argument we got. We use all the common list separators.
7750 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7751 for pkg in $enableval; do
7752 IFS="$lt_save_ifs"
7753 if test "X$pkg" = "X$p"; then
7754 enable_fast_install=yes
7755 fi
7756 done
7757 IFS="$lt_save_ifs"
7758 ;;
7759 esac
7760 else
7761 enable_fast_install=yes
7762 fi
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774 # This can be used to rebuild libtool when needed
7775 LIBTOOL_DEPS="$ltmain"
7776
7777 # Always use our own libtool.
7778 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804 test -z "$LN_S" && LN_S="ln -s"
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819 if test -n "${ZSH_VERSION+set}" ; then
7820 setopt NO_GLOB_SUBST
7821 fi
7822
7823 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7824 $as_echo_n "checking for objdir... " >&6; }
7825 if test "${lt_cv_objdir+set}" = set; then
7826 $as_echo_n "(cached) " >&6
7827 else
7828 rm -f .libs 2>/dev/null
7829 mkdir .libs 2>/dev/null
7830 if test -d .libs; then
7831 lt_cv_objdir=.libs
7832 else
7833 # MS-DOS does not allow filenames that begin with a dot.
7834 lt_cv_objdir=_libs
7835 fi
7836 rmdir .libs 2>/dev/null
7837 fi
7838 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7839 $as_echo "$lt_cv_objdir" >&6; }
7840 objdir=$lt_cv_objdir
7841
7842
7843
7844
7845
7846 cat >>confdefs.h <<_ACEOF
7847 #define LT_OBJDIR "$lt_cv_objdir/"
7848 _ACEOF
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866 case $host_os in
7867 aix3*)
7868 # AIX sometimes has problems with the GCC collect2 program. For some
7869 # reason, if we set the COLLECT_NAMES environment variable, the problems
7870 # vanish in a puff of smoke.
7871 if test "X${COLLECT_NAMES+set}" != Xset; then
7872 COLLECT_NAMES=
7873 export COLLECT_NAMES
7874 fi
7875 ;;
7876 esac
7877
7878 # Sed substitution that helps us do robust quoting. It backslashifies
7879 # metacharacters that are still active within double-quoted strings.
7880 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7881
7882 # Same as above, but do not quote variable references.
7883 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7884
7885 # Sed substitution to delay expansion of an escaped shell variable in a
7886 # double_quote_subst'ed string.
7887 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7888
7889 # Sed substitution to delay expansion of an escaped single quote.
7890 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7891
7892 # Sed substitution to avoid accidental globbing in evaled expressions
7893 no_glob_subst='s/\*/\\\*/g'
7894
7895 # Global variables:
7896 ofile=libtool
7897 can_build_shared=yes
7898
7899 # All known linkers require a `.a' archive for static linking (except MSVC,
7900 # which needs '.lib').
7901 libext=a
7902
7903 with_gnu_ld="$lt_cv_prog_gnu_ld"
7904
7905 old_CC="$CC"
7906 old_CFLAGS="$CFLAGS"
7907
7908 # Set sane defaults for various variables
7909 test -z "$CC" && CC=cc
7910 test -z "$LTCC" && LTCC=$CC
7911 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7912 test -z "$LD" && LD=ld
7913 test -z "$ac_objext" && ac_objext=o
7914
7915 for cc_temp in $compiler""; do
7916 case $cc_temp in
7917 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7918 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7919 \-*) ;;
7920 *) break;;
7921 esac
7922 done
7923 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7924
7925
7926 # Only perform the check for file, if the check method requires it
7927 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7928 case $deplibs_check_method in
7929 file_magic*)
7930 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7931 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7932 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7933 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7934 $as_echo_n "(cached) " >&6
7935 else
7936 case $MAGIC_CMD in
7937 [\\/*] | ?:[\\/]*)
7938 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7939 ;;
7940 *)
7941 lt_save_MAGIC_CMD="$MAGIC_CMD"
7942 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7943 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7944 for ac_dir in $ac_dummy; do
7945 IFS="$lt_save_ifs"
7946 test -z "$ac_dir" && ac_dir=.
7947 if test -f $ac_dir/${ac_tool_prefix}file; then
7948 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7949 if test -n "$file_magic_test_file"; then
7950 case $deplibs_check_method in
7951 "file_magic "*)
7952 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7953 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7954 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7955 $EGREP "$file_magic_regex" > /dev/null; then
7956 :
7957 else
7958 cat <<_LT_EOF 1>&2
7959
7960 *** Warning: the command libtool uses to detect shared libraries,
7961 *** $file_magic_cmd, produces output that libtool cannot recognize.
7962 *** The result is that libtool may fail to recognize shared libraries
7963 *** as such. This will affect the creation of libtool libraries that
7964 *** depend on shared libraries, but programs linked with such libtool
7965 *** libraries will work regardless of this problem. Nevertheless, you
7966 *** may want to report the problem to your system manager and/or to
7967 *** bug-libtool@gnu.org
7968
7969 _LT_EOF
7970 fi ;;
7971 esac
7972 fi
7973 break
7974 fi
7975 done
7976 IFS="$lt_save_ifs"
7977 MAGIC_CMD="$lt_save_MAGIC_CMD"
7978 ;;
7979 esac
7980 fi
7981
7982 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7983 if test -n "$MAGIC_CMD"; then
7984 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7985 $as_echo "$MAGIC_CMD" >&6; }
7986 else
7987 { $as_echo "$as_me:$LINENO: result: no" >&5
7988 $as_echo "no" >&6; }
7989 fi
7990
7991
7992
7993
7994
7995 if test -z "$lt_cv_path_MAGIC_CMD"; then
7996 if test -n "$ac_tool_prefix"; then
7997 { $as_echo "$as_me:$LINENO: checking for file" >&5
7998 $as_echo_n "checking for file... " >&6; }
7999 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8000 $as_echo_n "(cached) " >&6
8001 else
8002 case $MAGIC_CMD in
8003 [\\/*] | ?:[\\/]*)
8004 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8005 ;;
8006 *)
8007 lt_save_MAGIC_CMD="$MAGIC_CMD"
8008 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8009 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8010 for ac_dir in $ac_dummy; do
8011 IFS="$lt_save_ifs"
8012 test -z "$ac_dir" && ac_dir=.
8013 if test -f $ac_dir/file; then
8014 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8015 if test -n "$file_magic_test_file"; then
8016 case $deplibs_check_method in
8017 "file_magic "*)
8018 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8019 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8020 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8021 $EGREP "$file_magic_regex" > /dev/null; then
8022 :
8023 else
8024 cat <<_LT_EOF 1>&2
8025
8026 *** Warning: the command libtool uses to detect shared libraries,
8027 *** $file_magic_cmd, produces output that libtool cannot recognize.
8028 *** The result is that libtool may fail to recognize shared libraries
8029 *** as such. This will affect the creation of libtool libraries that
8030 *** depend on shared libraries, but programs linked with such libtool
8031 *** libraries will work regardless of this problem. Nevertheless, you
8032 *** may want to report the problem to your system manager and/or to
8033 *** bug-libtool@gnu.org
8034
8035 _LT_EOF
8036 fi ;;
8037 esac
8038 fi
8039 break
8040 fi
8041 done
8042 IFS="$lt_save_ifs"
8043 MAGIC_CMD="$lt_save_MAGIC_CMD"
8044 ;;
8045 esac
8046 fi
8047
8048 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8049 if test -n "$MAGIC_CMD"; then
8050 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8051 $as_echo "$MAGIC_CMD" >&6; }
8052 else
8053 { $as_echo "$as_me:$LINENO: result: no" >&5
8054 $as_echo "no" >&6; }
8055 fi
8056
8057
8058 else
8059 MAGIC_CMD=:
8060 fi
8061 fi
8062
8063 fi
8064 ;;
8065 esac
8066
8067 # Use C for the default configuration in the libtool script
8068
8069 lt_save_CC="$CC"
8070 ac_ext=c
8071 ac_cpp='$CPP $CPPFLAGS'
8072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8075
8076
8077 # Source file extension for C test sources.
8078 ac_ext=c
8079
8080 # Object file extension for compiled C test sources.
8081 objext=o
8082 objext=$objext
8083
8084 # Code to be used in simple compile tests
8085 lt_simple_compile_test_code="int some_variable = 0;"
8086
8087 # Code to be used in simple link tests
8088 lt_simple_link_test_code='int main(){return(0);}'
8089
8090
8091
8092
8093
8094
8095
8096 # If no C compiler was specified, use CC.
8097 LTCC=${LTCC-"$CC"}
8098
8099 # If no C compiler flags were specified, use CFLAGS.
8100 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8101
8102 # Allow CC to be a program name with arguments.
8103 compiler=$CC
8104
8105 # Save the default compiler, since it gets overwritten when the other
8106 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8107 compiler_DEFAULT=$CC
8108
8109 # save warnings/boilerplate of simple test code
8110 ac_outfile=conftest.$ac_objext
8111 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8112 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8113 _lt_compiler_boilerplate=`cat conftest.err`
8114 $RM conftest*
8115
8116 ac_outfile=conftest.$ac_objext
8117 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8118 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8119 _lt_linker_boilerplate=`cat conftest.err`
8120 $RM -r conftest*
8121
8122
8123 if test -n "$compiler"; then
8124
8125 lt_prog_compiler_no_builtin_flag=
8126
8127 if test "$GCC" = yes; then
8128 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8129
8130 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8131 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8132 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8133 $as_echo_n "(cached) " >&6
8134 else
8135 lt_cv_prog_compiler_rtti_exceptions=no
8136 ac_outfile=conftest.$ac_objext
8137 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8138 lt_compiler_flag="-fno-rtti -fno-exceptions"
8139 # Insert the option either (1) after the last *FLAGS variable, or
8140 # (2) before a word containing "conftest.", or (3) at the end.
8141 # Note that $ac_compile itself does not contain backslashes and begins
8142 # with a dollar sign (not a hyphen), so the echo should work correctly.
8143 # The option is referenced via a variable to avoid confusing sed.
8144 lt_compile=`echo "$ac_compile" | $SED \
8145 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8146 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8147 -e 's:$: $lt_compiler_flag:'`
8148 (eval echo "\"\$as_me:8148: $lt_compile\"" >&5)
8149 (eval "$lt_compile" 2>conftest.err)
8150 ac_status=$?
8151 cat conftest.err >&5
8152 echo "$as_me:8152: \$? = $ac_status" >&5
8153 if (exit $ac_status) && test -s "$ac_outfile"; then
8154 # The compiler can only warn and ignore the option if not recognized
8155 # So say no if there are warnings other than the usual output.
8156 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8157 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8158 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8159 lt_cv_prog_compiler_rtti_exceptions=yes
8160 fi
8161 fi
8162 $RM conftest*
8163
8164 fi
8165 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8166 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8167
8168 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8169 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8170 else
8171 :
8172 fi
8173
8174 fi
8175
8176
8177
8178
8179
8180
8181 lt_prog_compiler_wl=
8182 lt_prog_compiler_pic=
8183 lt_prog_compiler_static=
8184
8185 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8186 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8187
8188 if test "$GCC" = yes; then
8189 lt_prog_compiler_wl='-Wl,'
8190 lt_prog_compiler_static='-static'
8191
8192 case $host_os in
8193 aix*)
8194 # All AIX code is PIC.
8195 if test "$host_cpu" = ia64; then
8196 # AIX 5 now supports IA64 processor
8197 lt_prog_compiler_static='-Bstatic'
8198 fi
8199 ;;
8200
8201 amigaos*)
8202 case $host_cpu in
8203 powerpc)
8204 # see comment about AmigaOS4 .so support
8205 lt_prog_compiler_pic='-fPIC'
8206 ;;
8207 m68k)
8208 # FIXME: we need at least 68020 code to build shared libraries, but
8209 # adding the `-m68020' flag to GCC prevents building anything better,
8210 # like `-m68040'.
8211 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8212 ;;
8213 esac
8214 ;;
8215
8216 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8217 # PIC is the default for these OSes.
8218 ;;
8219
8220 mingw* | cygwin* | pw32* | os2* | cegcc*)
8221 # This hack is so that the source file can tell whether it is being
8222 # built for inclusion in a dll (and should export symbols for example).
8223 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8224 # (--disable-auto-import) libraries
8225 lt_prog_compiler_pic='-DDLL_EXPORT'
8226 ;;
8227
8228 darwin* | rhapsody*)
8229 # PIC is the default on this platform
8230 # Common symbols not allowed in MH_DYLIB files
8231 lt_prog_compiler_pic='-fno-common'
8232 ;;
8233
8234 hpux*)
8235 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8236 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8237 # sets the default TLS model and affects inlining.
8238 case $host_cpu in
8239 hppa*64*)
8240 # +Z the default
8241 ;;
8242 *)
8243 lt_prog_compiler_pic='-fPIC'
8244 ;;
8245 esac
8246 ;;
8247
8248 interix[3-9]*)
8249 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8250 # Instead, we relocate shared libraries at runtime.
8251 ;;
8252
8253 msdosdjgpp*)
8254 # Just because we use GCC doesn't mean we suddenly get shared libraries
8255 # on systems that don't support them.
8256 lt_prog_compiler_can_build_shared=no
8257 enable_shared=no
8258 ;;
8259
8260 *nto* | *qnx*)
8261 # QNX uses GNU C++, but need to define -shared option too, otherwise
8262 # it will coredump.
8263 lt_prog_compiler_pic='-fPIC -shared'
8264 ;;
8265
8266 sysv4*MP*)
8267 if test -d /usr/nec; then
8268 lt_prog_compiler_pic=-Kconform_pic
8269 fi
8270 ;;
8271
8272 *)
8273 lt_prog_compiler_pic='-fPIC'
8274 ;;
8275 esac
8276 else
8277 # PORTME Check for flag to pass linker flags through the system compiler.
8278 case $host_os in
8279 aix*)
8280 lt_prog_compiler_wl='-Wl,'
8281 if test "$host_cpu" = ia64; then
8282 # AIX 5 now supports IA64 processor
8283 lt_prog_compiler_static='-Bstatic'
8284 else
8285 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8286 fi
8287 ;;
8288
8289 mingw* | cygwin* | pw32* | os2* | cegcc*)
8290 # This hack is so that the source file can tell whether it is being
8291 # built for inclusion in a dll (and should export symbols for example).
8292 lt_prog_compiler_pic='-DDLL_EXPORT'
8293 ;;
8294
8295 hpux9* | hpux10* | hpux11*)
8296 lt_prog_compiler_wl='-Wl,'
8297 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8298 # not for PA HP-UX.
8299 case $host_cpu in
8300 hppa*64*|ia64*)
8301 # +Z the default
8302 ;;
8303 *)
8304 lt_prog_compiler_pic='+Z'
8305 ;;
8306 esac
8307 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8308 lt_prog_compiler_static='${wl}-a ${wl}archive'
8309 ;;
8310
8311 irix5* | irix6* | nonstopux*)
8312 lt_prog_compiler_wl='-Wl,'
8313 # PIC (with -KPIC) is the default.
8314 lt_prog_compiler_static='-non_shared'
8315 ;;
8316
8317 linux* | k*bsd*-gnu)
8318 case $cc_basename in
8319 # old Intel for x86_64 which still supported -KPIC.
8320 ecc*)
8321 lt_prog_compiler_wl='-Wl,'
8322 lt_prog_compiler_pic='-KPIC'
8323 lt_prog_compiler_static='-static'
8324 ;;
8325 # icc used to be incompatible with GCC.
8326 # ICC 10 doesn't accept -KPIC any more.
8327 icc* | ifort*)
8328 lt_prog_compiler_wl='-Wl,'
8329 lt_prog_compiler_pic='-fPIC'
8330 lt_prog_compiler_static='-static'
8331 ;;
8332 # Lahey Fortran 8.1.
8333 lf95*)
8334 lt_prog_compiler_wl='-Wl,'
8335 lt_prog_compiler_pic='--shared'
8336 lt_prog_compiler_static='--static'
8337 ;;
8338 pgcc* | pgf77* | pgf90* | pgf95*)
8339 # Portland Group compilers (*not* the Pentium gcc compiler,
8340 # which looks to be a dead project)
8341 lt_prog_compiler_wl='-Wl,'
8342 lt_prog_compiler_pic='-fpic'
8343 lt_prog_compiler_static='-Bstatic'
8344 ;;
8345 ccc*)
8346 lt_prog_compiler_wl='-Wl,'
8347 # All Alpha code is PIC.
8348 lt_prog_compiler_static='-non_shared'
8349 ;;
8350 xl*)
8351 # IBM XL C 8.0/Fortran 10.1 on PPC
8352 lt_prog_compiler_wl='-Wl,'
8353 lt_prog_compiler_pic='-qpic'
8354 lt_prog_compiler_static='-qstaticlink'
8355 ;;
8356 *)
8357 case `$CC -V 2>&1 | sed 5q` in
8358 *Sun\ C*)
8359 # Sun C 5.9
8360 lt_prog_compiler_pic='-KPIC'
8361 lt_prog_compiler_static='-Bstatic'
8362 lt_prog_compiler_wl='-Wl,'
8363 ;;
8364 *Sun\ F*)
8365 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8366 lt_prog_compiler_pic='-KPIC'
8367 lt_prog_compiler_static='-Bstatic'
8368 lt_prog_compiler_wl=''
8369 ;;
8370 esac
8371 ;;
8372 esac
8373 ;;
8374
8375 newsos6)
8376 lt_prog_compiler_pic='-KPIC'
8377 lt_prog_compiler_static='-Bstatic'
8378 ;;
8379
8380 *nto* | *qnx*)
8381 # QNX uses GNU C++, but need to define -shared option too, otherwise
8382 # it will coredump.
8383 lt_prog_compiler_pic='-fPIC -shared'
8384 ;;
8385
8386 osf3* | osf4* | osf5*)
8387 lt_prog_compiler_wl='-Wl,'
8388 # All OSF/1 code is PIC.
8389 lt_prog_compiler_static='-non_shared'
8390 ;;
8391
8392 rdos*)
8393 lt_prog_compiler_static='-non_shared'
8394 ;;
8395
8396 solaris*)
8397 lt_prog_compiler_pic='-KPIC'
8398 lt_prog_compiler_static='-Bstatic'
8399 case $cc_basename in
8400 f77* | f90* | f95*)
8401 lt_prog_compiler_wl='-Qoption ld ';;
8402 *)
8403 lt_prog_compiler_wl='-Wl,';;
8404 esac
8405 ;;
8406
8407 sunos4*)
8408 lt_prog_compiler_wl='-Qoption ld '
8409 lt_prog_compiler_pic='-PIC'
8410 lt_prog_compiler_static='-Bstatic'
8411 ;;
8412
8413 sysv4 | sysv4.2uw2* | sysv4.3*)
8414 lt_prog_compiler_wl='-Wl,'
8415 lt_prog_compiler_pic='-KPIC'
8416 lt_prog_compiler_static='-Bstatic'
8417 ;;
8418
8419 sysv4*MP*)
8420 if test -d /usr/nec ;then
8421 lt_prog_compiler_pic='-Kconform_pic'
8422 lt_prog_compiler_static='-Bstatic'
8423 fi
8424 ;;
8425
8426 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8427 lt_prog_compiler_wl='-Wl,'
8428 lt_prog_compiler_pic='-KPIC'
8429 lt_prog_compiler_static='-Bstatic'
8430 ;;
8431
8432 unicos*)
8433 lt_prog_compiler_wl='-Wl,'
8434 lt_prog_compiler_can_build_shared=no
8435 ;;
8436
8437 uts4*)
8438 lt_prog_compiler_pic='-pic'
8439 lt_prog_compiler_static='-Bstatic'
8440 ;;
8441
8442 *)
8443 lt_prog_compiler_can_build_shared=no
8444 ;;
8445 esac
8446 fi
8447
8448 case $host_os in
8449 # For platforms which do not support PIC, -DPIC is meaningless:
8450 *djgpp*)
8451 lt_prog_compiler_pic=
8452 ;;
8453 *)
8454 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8455 ;;
8456 esac
8457 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8458 $as_echo "$lt_prog_compiler_pic" >&6; }
8459
8460
8461
8462
8463
8464
8465 #
8466 # Check to make sure the PIC flag actually works.
8467 #
8468 if test -n "$lt_prog_compiler_pic"; then
8469 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8470 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8471 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8472 $as_echo_n "(cached) " >&6
8473 else
8474 lt_cv_prog_compiler_pic_works=no
8475 ac_outfile=conftest.$ac_objext
8476 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8477 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8478 # Insert the option either (1) after the last *FLAGS variable, or
8479 # (2) before a word containing "conftest.", or (3) at the end.
8480 # Note that $ac_compile itself does not contain backslashes and begins
8481 # with a dollar sign (not a hyphen), so the echo should work correctly.
8482 # The option is referenced via a variable to avoid confusing sed.
8483 lt_compile=`echo "$ac_compile" | $SED \
8484 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8485 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8486 -e 's:$: $lt_compiler_flag:'`
8487 (eval echo "\"\$as_me:8487: $lt_compile\"" >&5)
8488 (eval "$lt_compile" 2>conftest.err)
8489 ac_status=$?
8490 cat conftest.err >&5
8491 echo "$as_me:8491: \$? = $ac_status" >&5
8492 if (exit $ac_status) && test -s "$ac_outfile"; then
8493 # The compiler can only warn and ignore the option if not recognized
8494 # So say no if there are warnings other than the usual output.
8495 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8496 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8497 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8498 lt_cv_prog_compiler_pic_works=yes
8499 fi
8500 fi
8501 $RM conftest*
8502
8503 fi
8504 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8505 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8506
8507 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8508 case $lt_prog_compiler_pic in
8509 "" | " "*) ;;
8510 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8511 esac
8512 else
8513 lt_prog_compiler_pic=
8514 lt_prog_compiler_can_build_shared=no
8515 fi
8516
8517 fi
8518
8519
8520
8521
8522
8523
8524 #
8525 # Check to make sure the static flag actually works.
8526 #
8527 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8528 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8529 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8530 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8531 $as_echo_n "(cached) " >&6
8532 else
8533 lt_cv_prog_compiler_static_works=no
8534 save_LDFLAGS="$LDFLAGS"
8535 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8536 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8537 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8538 # The linker can only warn and ignore the option if not recognized
8539 # So say no if there are warnings
8540 if test -s conftest.err; then
8541 # Append any errors to the config.log.
8542 cat conftest.err 1>&5
8543 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8544 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8545 if diff conftest.exp conftest.er2 >/dev/null; then
8546 lt_cv_prog_compiler_static_works=yes
8547 fi
8548 else
8549 lt_cv_prog_compiler_static_works=yes
8550 fi
8551 fi
8552 $RM -r conftest*
8553 LDFLAGS="$save_LDFLAGS"
8554
8555 fi
8556 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8557 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8558
8559 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8560 :
8561 else
8562 lt_prog_compiler_static=
8563 fi
8564
8565
8566
8567
8568
8569
8570
8571 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8572 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8573 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8574 $as_echo_n "(cached) " >&6
8575 else
8576 lt_cv_prog_compiler_c_o=no
8577 $RM -r conftest 2>/dev/null
8578 mkdir conftest
8579 cd conftest
8580 mkdir out
8581 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8582
8583 lt_compiler_flag="-o out/conftest2.$ac_objext"
8584 # Insert the option either (1) after the last *FLAGS variable, or
8585 # (2) before a word containing "conftest.", or (3) at the end.
8586 # Note that $ac_compile itself does not contain backslashes and begins
8587 # with a dollar sign (not a hyphen), so the echo should work correctly.
8588 lt_compile=`echo "$ac_compile" | $SED \
8589 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8590 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8591 -e 's:$: $lt_compiler_flag:'`
8592 (eval echo "\"\$as_me:8592: $lt_compile\"" >&5)
8593 (eval "$lt_compile" 2>out/conftest.err)
8594 ac_status=$?
8595 cat out/conftest.err >&5
8596 echo "$as_me:8596: \$? = $ac_status" >&5
8597 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8598 then
8599 # The compiler can only warn and ignore the option if not recognized
8600 # So say no if there are warnings
8601 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8602 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8603 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8604 lt_cv_prog_compiler_c_o=yes
8605 fi
8606 fi
8607 chmod u+w . 2>&5
8608 $RM conftest*
8609 # SGI C++ compiler will create directory out/ii_files/ for
8610 # template instantiation
8611 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8612 $RM out/* && rmdir out
8613 cd ..
8614 $RM -r conftest
8615 $RM conftest*
8616
8617 fi
8618 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8619 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8620
8621
8622
8623
8624
8625
8626 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8627 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8628 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8629 $as_echo_n "(cached) " >&6
8630 else
8631 lt_cv_prog_compiler_c_o=no
8632 $RM -r conftest 2>/dev/null
8633 mkdir conftest
8634 cd conftest
8635 mkdir out
8636 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8637
8638 lt_compiler_flag="-o out/conftest2.$ac_objext"
8639 # Insert the option either (1) after the last *FLAGS variable, or
8640 # (2) before a word containing "conftest.", or (3) at the end.
8641 # Note that $ac_compile itself does not contain backslashes and begins
8642 # with a dollar sign (not a hyphen), so the echo should work correctly.
8643 lt_compile=`echo "$ac_compile" | $SED \
8644 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8645 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8646 -e 's:$: $lt_compiler_flag:'`
8647 (eval echo "\"\$as_me:8647: $lt_compile\"" >&5)
8648 (eval "$lt_compile" 2>out/conftest.err)
8649 ac_status=$?
8650 cat out/conftest.err >&5
8651 echo "$as_me:8651: \$? = $ac_status" >&5
8652 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8653 then
8654 # The compiler can only warn and ignore the option if not recognized
8655 # So say no if there are warnings
8656 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8657 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8658 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8659 lt_cv_prog_compiler_c_o=yes
8660 fi
8661 fi
8662 chmod u+w . 2>&5
8663 $RM conftest*
8664 # SGI C++ compiler will create directory out/ii_files/ for
8665 # template instantiation
8666 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8667 $RM out/* && rmdir out
8668 cd ..
8669 $RM -r conftest
8670 $RM conftest*
8671
8672 fi
8673 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8674 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8675
8676
8677
8678
8679 hard_links="nottested"
8680 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8681 # do not overwrite the value of need_locks provided by the user
8682 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8683 $as_echo_n "checking if we can lock with hard links... " >&6; }
8684 hard_links=yes
8685 $RM conftest*
8686 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8687 touch conftest.a
8688 ln conftest.a conftest.b 2>&5 || hard_links=no
8689 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8690 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8691 $as_echo "$hard_links" >&6; }
8692 if test "$hard_links" = no; then
8693 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8694 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8695 need_locks=warn
8696 fi
8697 else
8698 need_locks=no
8699 fi
8700
8701
8702
8703
8704
8705
8706 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8707 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8708
8709 runpath_var=
8710 allow_undefined_flag=
8711 always_export_symbols=no
8712 archive_cmds=
8713 archive_expsym_cmds=
8714 compiler_needs_object=no
8715 enable_shared_with_static_runtimes=no
8716 export_dynamic_flag_spec=
8717 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8718 hardcode_automatic=no
8719 hardcode_direct=no
8720 hardcode_direct_absolute=no
8721 hardcode_libdir_flag_spec=
8722 hardcode_libdir_flag_spec_ld=
8723 hardcode_libdir_separator=
8724 hardcode_minus_L=no
8725 hardcode_shlibpath_var=unsupported
8726 inherit_rpath=no
8727 link_all_deplibs=unknown
8728 module_cmds=
8729 module_expsym_cmds=
8730 old_archive_from_new_cmds=
8731 old_archive_from_expsyms_cmds=
8732 thread_safe_flag_spec=
8733 whole_archive_flag_spec=
8734 # include_expsyms should be a list of space-separated symbols to be *always*
8735 # included in the symbol list
8736 include_expsyms=
8737 # exclude_expsyms can be an extended regexp of symbols to exclude
8738 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8739 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8740 # as well as any symbol that contains `d'.
8741 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8742 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8743 # platforms (ab)use it in PIC code, but their linkers get confused if
8744 # the symbol is explicitly referenced. Since portable code cannot
8745 # rely on this symbol name, it's probably fine to never include it in
8746 # preloaded symbol tables.
8747 # Exclude shared library initialization/finalization symbols.
8748 extract_expsyms_cmds=
8749
8750 case $host_os in
8751 cygwin* | mingw* | pw32* | cegcc*)
8752 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8753 # When not using gcc, we currently assume that we are using
8754 # Microsoft Visual C++.
8755 if test "$GCC" != yes; then
8756 with_gnu_ld=no
8757 fi
8758 ;;
8759 interix*)
8760 # we just hope/assume this is gcc and not c89 (= MSVC++)
8761 with_gnu_ld=yes
8762 ;;
8763 openbsd*)
8764 with_gnu_ld=no
8765 ;;
8766 esac
8767
8768 ld_shlibs=yes
8769 if test "$with_gnu_ld" = yes; then
8770 # If archive_cmds runs LD, not CC, wlarc should be empty
8771 wlarc='${wl}'
8772
8773 # Set some defaults for GNU ld with shared library support. These
8774 # are reset later if shared libraries are not supported. Putting them
8775 # here allows them to be overridden if necessary.
8776 runpath_var=LD_RUN_PATH
8777 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8778 export_dynamic_flag_spec='${wl}--export-dynamic'
8779 # ancient GNU ld didn't support --whole-archive et. al.
8780 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8781 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8782 else
8783 whole_archive_flag_spec=
8784 fi
8785 supports_anon_versioning=no
8786 case `$LD -v 2>&1` in
8787 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8788 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8789 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8790 *\ 2.11.*) ;; # other 2.11 versions
8791 *) supports_anon_versioning=yes ;;
8792 esac
8793
8794 # See if GNU ld supports shared libraries.
8795 case $host_os in
8796 aix[3-9]*)
8797 # On AIX/PPC, the GNU linker is very broken
8798 if test "$host_cpu" != ia64; then
8799 ld_shlibs=no
8800 cat <<_LT_EOF 1>&2
8801
8802 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8803 *** to be unable to reliably create shared libraries on AIX.
8804 *** Therefore, libtool is disabling shared libraries support. If you
8805 *** really care for shared libraries, you may want to modify your PATH
8806 *** so that a non-GNU linker is found, and then restart.
8807
8808 _LT_EOF
8809 fi
8810 ;;
8811
8812 amigaos*)
8813 case $host_cpu in
8814 powerpc)
8815 # see comment about AmigaOS4 .so support
8816 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8817 archive_expsym_cmds=''
8818 ;;
8819 m68k)
8820 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)'
8821 hardcode_libdir_flag_spec='-L$libdir'
8822 hardcode_minus_L=yes
8823 ;;
8824 esac
8825 ;;
8826
8827 beos*)
8828 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8829 allow_undefined_flag=unsupported
8830 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8831 # support --undefined. This deserves some investigation. FIXME
8832 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8833 else
8834 ld_shlibs=no
8835 fi
8836 ;;
8837
8838 cygwin* | mingw* | pw32* | cegcc*)
8839 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8840 # as there is no search path for DLLs.
8841 hardcode_libdir_flag_spec='-L$libdir'
8842 allow_undefined_flag=unsupported
8843 always_export_symbols=no
8844 enable_shared_with_static_runtimes=yes
8845 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8846
8847 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8849 # If the export-symbols file already is a .def file (1st line
8850 # is EXPORTS), use it as is; otherwise, prepend...
8851 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8852 cp $export_symbols $output_objdir/$soname.def;
8853 else
8854 echo EXPORTS > $output_objdir/$soname.def;
8855 cat $export_symbols >> $output_objdir/$soname.def;
8856 fi~
8857 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8858 else
8859 ld_shlibs=no
8860 fi
8861 ;;
8862
8863 interix[3-9]*)
8864 hardcode_direct=no
8865 hardcode_shlibpath_var=no
8866 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8867 export_dynamic_flag_spec='${wl}-E'
8868 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8869 # Instead, shared libraries are loaded at an image base (0x10000000 by
8870 # default) and relocated if they conflict, which is a slow very memory
8871 # consuming and fragmenting process. To avoid this, we pick a random,
8872 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8873 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8874 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8875 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'
8876 ;;
8877
8878 gnu* | linux* | tpf* | k*bsd*-gnu)
8879 tmp_diet=no
8880 if test "$host_os" = linux-dietlibc; then
8881 case $cc_basename in
8882 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8883 esac
8884 fi
8885 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8886 && test "$tmp_diet" = no
8887 then
8888 tmp_addflag=
8889 tmp_sharedflag='-shared'
8890 case $cc_basename,$host_cpu in
8891 pgcc*) # Portland Group C compiler
8892 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'
8893 tmp_addflag=' $pic_flag'
8894 ;;
8895 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8896 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'
8897 tmp_addflag=' $pic_flag -Mnomain' ;;
8898 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8899 tmp_addflag=' -i_dynamic' ;;
8900 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8901 tmp_addflag=' -i_dynamic -nofor_main' ;;
8902 ifc* | ifort*) # Intel Fortran compiler
8903 tmp_addflag=' -nofor_main' ;;
8904 lf95*) # Lahey Fortran 8.1
8905 whole_archive_flag_spec=
8906 tmp_sharedflag='--shared' ;;
8907 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8908 tmp_sharedflag='-qmkshrobj'
8909 tmp_addflag= ;;
8910 esac
8911 case `$CC -V 2>&1 | sed 5q` in
8912 *Sun\ C*) # Sun C 5.9
8913 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'
8914 compiler_needs_object=yes
8915 tmp_sharedflag='-G' ;;
8916 *Sun\ F*) # Sun Fortran 8.3
8917 tmp_sharedflag='-G' ;;
8918 esac
8919 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8920
8921 if test "x$supports_anon_versioning" = xyes; then
8922 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8923 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8924 echo "local: *; };" >> $output_objdir/$libname.ver~
8925 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8926 fi
8927
8928 case $cc_basename in
8929 xlf*)
8930 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8931 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8932 hardcode_libdir_flag_spec=
8933 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8934 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8935 if test "x$supports_anon_versioning" = xyes; then
8936 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8937 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8938 echo "local: *; };" >> $output_objdir/$libname.ver~
8939 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8940 fi
8941 ;;
8942 esac
8943 else
8944 ld_shlibs=no
8945 fi
8946 ;;
8947
8948 netbsd* | netbsdelf*-gnu)
8949 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8950 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8951 wlarc=
8952 else
8953 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8954 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8955 fi
8956 ;;
8957
8958 solaris*)
8959 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8960 ld_shlibs=no
8961 cat <<_LT_EOF 1>&2
8962
8963 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8964 *** create shared libraries on Solaris systems. Therefore, libtool
8965 *** is disabling shared libraries support. We urge you to upgrade GNU
8966 *** binutils to release 2.9.1 or newer. Another option is to modify
8967 *** your PATH or compiler configuration so that the native linker is
8968 *** used, and then restart.
8969
8970 _LT_EOF
8971 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8972 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8973 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8974 else
8975 ld_shlibs=no
8976 fi
8977 ;;
8978
8979 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8980 case `$LD -v 2>&1` in
8981 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8982 ld_shlibs=no
8983 cat <<_LT_EOF 1>&2
8984
8985 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8986 *** reliably create shared libraries on SCO systems. Therefore, libtool
8987 *** is disabling shared libraries support. We urge you to upgrade GNU
8988 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8989 *** your PATH or compiler configuration so that the native linker is
8990 *** used, and then restart.
8991
8992 _LT_EOF
8993 ;;
8994 *)
8995 # For security reasons, it is highly recommended that you always
8996 # use absolute paths for naming shared libraries, and exclude the
8997 # DT_RUNPATH tag from executables and libraries. But doing so
8998 # requires that you compile everything twice, which is a pain.
8999 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9000 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9001 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9002 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9003 else
9004 ld_shlibs=no
9005 fi
9006 ;;
9007 esac
9008 ;;
9009
9010 sunos4*)
9011 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9012 wlarc=
9013 hardcode_direct=yes
9014 hardcode_shlibpath_var=no
9015 ;;
9016
9017 *)
9018 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9019 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9020 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9021 else
9022 ld_shlibs=no
9023 fi
9024 ;;
9025 esac
9026
9027 if test "$ld_shlibs" = no; then
9028 runpath_var=
9029 hardcode_libdir_flag_spec=
9030 export_dynamic_flag_spec=
9031 whole_archive_flag_spec=
9032 fi
9033 else
9034 # PORTME fill in a description of your system's linker (not GNU ld)
9035 case $host_os in
9036 aix3*)
9037 allow_undefined_flag=unsupported
9038 always_export_symbols=yes
9039 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'
9040 # Note: this linker hardcodes the directories in LIBPATH if there
9041 # are no directories specified by -L.
9042 hardcode_minus_L=yes
9043 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9044 # Neither direct hardcoding nor static linking is supported with a
9045 # broken collect2.
9046 hardcode_direct=unsupported
9047 fi
9048 ;;
9049
9050 aix[4-9]*)
9051 if test "$host_cpu" = ia64; then
9052 # On IA64, the linker does run time linking by default, so we don't
9053 # have to do anything special.
9054 aix_use_runtimelinking=no
9055 exp_sym_flag='-Bexport'
9056 no_entry_flag=""
9057 else
9058 # If we're using GNU nm, then we don't want the "-C" option.
9059 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9060 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9061 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'
9062 else
9063 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'
9064 fi
9065 aix_use_runtimelinking=no
9066
9067 # Test if we are trying to use run time linking or normal
9068 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9069 # need to do runtime linking.
9070 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9071 for ld_flag in $LDFLAGS; do
9072 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9073 aix_use_runtimelinking=yes
9074 break
9075 fi
9076 done
9077 ;;
9078 esac
9079
9080 exp_sym_flag='-bexport'
9081 no_entry_flag='-bnoentry'
9082 fi
9083
9084 # When large executables or shared objects are built, AIX ld can
9085 # have problems creating the table of contents. If linking a library
9086 # or program results in "error TOC overflow" add -mminimal-toc to
9087 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9088 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9089
9090 archive_cmds=''
9091 hardcode_direct=yes
9092 hardcode_direct_absolute=yes
9093 hardcode_libdir_separator=':'
9094 link_all_deplibs=yes
9095 file_list_spec='${wl}-f,'
9096
9097 if test "$GCC" = yes; then
9098 case $host_os in aix4.[012]|aix4.[012].*)
9099 # We only want to do this on AIX 4.2 and lower, the check
9100 # below for broken collect2 doesn't work under 4.3+
9101 collect2name=`${CC} -print-prog-name=collect2`
9102 if test -f "$collect2name" &&
9103 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9104 then
9105 # We have reworked collect2
9106 :
9107 else
9108 # We have old collect2
9109 hardcode_direct=unsupported
9110 # It fails to find uninstalled libraries when the uninstalled
9111 # path is not listed in the libpath. Setting hardcode_minus_L
9112 # to unsupported forces relinking
9113 hardcode_minus_L=yes
9114 hardcode_libdir_flag_spec='-L$libdir'
9115 hardcode_libdir_separator=
9116 fi
9117 ;;
9118 esac
9119 shared_flag='-shared'
9120 if test "$aix_use_runtimelinking" = yes; then
9121 shared_flag="$shared_flag "'${wl}-G'
9122 fi
9123 link_all_deplibs=no
9124 else
9125 # not using gcc
9126 if test "$host_cpu" = ia64; then
9127 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9128 # chokes on -Wl,-G. The following line is correct:
9129 shared_flag='-G'
9130 else
9131 if test "$aix_use_runtimelinking" = yes; then
9132 shared_flag='${wl}-G'
9133 else
9134 shared_flag='${wl}-bM:SRE'
9135 fi
9136 fi
9137 fi
9138
9139 export_dynamic_flag_spec='${wl}-bexpall'
9140 # It seems that -bexpall does not export symbols beginning with
9141 # underscore (_), so it is better to generate a list of symbols to export.
9142 always_export_symbols=yes
9143 if test "$aix_use_runtimelinking" = yes; then
9144 # Warning - without using the other runtime loading flags (-brtl),
9145 # -berok will link without error, but may produce a broken library.
9146 allow_undefined_flag='-berok'
9147 # Determine the default libpath from the value encoded in an
9148 # empty executable.
9149 cat >conftest.$ac_ext <<_ACEOF
9150 /* confdefs.h. */
9151 _ACEOF
9152 cat confdefs.h >>conftest.$ac_ext
9153 cat >>conftest.$ac_ext <<_ACEOF
9154 /* end confdefs.h. */
9155
9156 int
9157 main ()
9158 {
9159
9160 ;
9161 return 0;
9162 }
9163 _ACEOF
9164 rm -f conftest.$ac_objext conftest$ac_exeext
9165 if { (ac_try="$ac_link"
9166 case "(($ac_try" in
9167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9168 *) ac_try_echo=$ac_try;;
9169 esac
9170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9171 $as_echo "$ac_try_echo") >&5
9172 (eval "$ac_link") 2>conftest.er1
9173 ac_status=$?
9174 grep -v '^ *+' conftest.er1 >conftest.err
9175 rm -f conftest.er1
9176 cat conftest.err >&5
9177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); } && {
9179 test -z "$ac_c_werror_flag" ||
9180 test ! -s conftest.err
9181 } && test -s conftest$ac_exeext && {
9182 test "$cross_compiling" = yes ||
9183 $as_test_x conftest$ac_exeext
9184 }; then
9185
9186 lt_aix_libpath_sed='
9187 /Import File Strings/,/^$/ {
9188 /^0/ {
9189 s/^0 *\(.*\)$/\1/
9190 p
9191 }
9192 }'
9193 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9194 # Check for a 64-bit object if we didn't find anything.
9195 if test -z "$aix_libpath"; then
9196 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9197 fi
9198 else
9199 $as_echo "$as_me: failed program was:" >&5
9200 sed 's/^/| /' conftest.$ac_ext >&5
9201
9202
9203 fi
9204
9205 rm -rf conftest.dSYM
9206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9207 conftest$ac_exeext conftest.$ac_ext
9208 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9209
9210 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9211 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"
9212 else
9213 if test "$host_cpu" = ia64; then
9214 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9215 allow_undefined_flag="-z nodefs"
9216 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"
9217 else
9218 # Determine the default libpath from the value encoded in an
9219 # empty executable.
9220 cat >conftest.$ac_ext <<_ACEOF
9221 /* confdefs.h. */
9222 _ACEOF
9223 cat confdefs.h >>conftest.$ac_ext
9224 cat >>conftest.$ac_ext <<_ACEOF
9225 /* end confdefs.h. */
9226
9227 int
9228 main ()
9229 {
9230
9231 ;
9232 return 0;
9233 }
9234 _ACEOF
9235 rm -f conftest.$ac_objext conftest$ac_exeext
9236 if { (ac_try="$ac_link"
9237 case "(($ac_try" in
9238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9239 *) ac_try_echo=$ac_try;;
9240 esac
9241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9242 $as_echo "$ac_try_echo") >&5
9243 (eval "$ac_link") 2>conftest.er1
9244 ac_status=$?
9245 grep -v '^ *+' conftest.er1 >conftest.err
9246 rm -f conftest.er1
9247 cat conftest.err >&5
9248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); } && {
9250 test -z "$ac_c_werror_flag" ||
9251 test ! -s conftest.err
9252 } && test -s conftest$ac_exeext && {
9253 test "$cross_compiling" = yes ||
9254 $as_test_x conftest$ac_exeext
9255 }; then
9256
9257 lt_aix_libpath_sed='
9258 /Import File Strings/,/^$/ {
9259 /^0/ {
9260 s/^0 *\(.*\)$/\1/
9261 p
9262 }
9263 }'
9264 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9265 # Check for a 64-bit object if we didn't find anything.
9266 if test -z "$aix_libpath"; then
9267 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9268 fi
9269 else
9270 $as_echo "$as_me: failed program was:" >&5
9271 sed 's/^/| /' conftest.$ac_ext >&5
9272
9273
9274 fi
9275
9276 rm -rf conftest.dSYM
9277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9278 conftest$ac_exeext conftest.$ac_ext
9279 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9280
9281 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9282 # Warning - without using the other run time loading flags,
9283 # -berok will link without error, but may produce a broken library.
9284 no_undefined_flag=' ${wl}-bernotok'
9285 allow_undefined_flag=' ${wl}-berok'
9286 # Exported symbols can be pulled into shared objects from archives
9287 whole_archive_flag_spec='$convenience'
9288 archive_cmds_need_lc=yes
9289 # This is similar to how AIX traditionally builds its shared libraries.
9290 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'
9291 fi
9292 fi
9293 ;;
9294
9295 amigaos*)
9296 case $host_cpu in
9297 powerpc)
9298 # see comment about AmigaOS4 .so support
9299 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9300 archive_expsym_cmds=''
9301 ;;
9302 m68k)
9303 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)'
9304 hardcode_libdir_flag_spec='-L$libdir'
9305 hardcode_minus_L=yes
9306 ;;
9307 esac
9308 ;;
9309
9310 bsdi[45]*)
9311 export_dynamic_flag_spec=-rdynamic
9312 ;;
9313
9314 cygwin* | mingw* | pw32* | cegcc*)
9315 # When not using gcc, we currently assume that we are using
9316 # Microsoft Visual C++.
9317 # hardcode_libdir_flag_spec is actually meaningless, as there is
9318 # no search path for DLLs.
9319 hardcode_libdir_flag_spec=' '
9320 allow_undefined_flag=unsupported
9321 # Tell ltmain to make .lib files, not .a files.
9322 libext=lib
9323 # Tell ltmain to make .dll files, not .so files.
9324 shrext_cmds=".dll"
9325 # FIXME: Setting linknames here is a bad hack.
9326 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9327 # The linker will automatically build a .lib file if we build a DLL.
9328 old_archive_from_new_cmds='true'
9329 # FIXME: Should let the user specify the lib program.
9330 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9331 fix_srcfile_path='`cygpath -w "$srcfile"`'
9332 enable_shared_with_static_runtimes=yes
9333 ;;
9334
9335 darwin* | rhapsody*)
9336
9337
9338 archive_cmds_need_lc=no
9339 hardcode_direct=no
9340 hardcode_automatic=yes
9341 hardcode_shlibpath_var=unsupported
9342 whole_archive_flag_spec=''
9343 link_all_deplibs=yes
9344 allow_undefined_flag="$_lt_dar_allow_undefined"
9345 case $cc_basename in
9346 ifort*) _lt_dar_can_shared=yes ;;
9347 *) _lt_dar_can_shared=$GCC ;;
9348 esac
9349 if test "$_lt_dar_can_shared" = "yes"; then
9350 output_verbose_link_cmd=echo
9351 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9352 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9353 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}"
9354 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}"
9355
9356 else
9357 ld_shlibs=no
9358 fi
9359
9360 ;;
9361
9362 dgux*)
9363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9364 hardcode_libdir_flag_spec='-L$libdir'
9365 hardcode_shlibpath_var=no
9366 ;;
9367
9368 freebsd1*)
9369 ld_shlibs=no
9370 ;;
9371
9372 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9373 # support. Future versions do this automatically, but an explicit c++rt0.o
9374 # does not break anything, and helps significantly (at the cost of a little
9375 # extra space).
9376 freebsd2.2*)
9377 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9378 hardcode_libdir_flag_spec='-R$libdir'
9379 hardcode_direct=yes
9380 hardcode_shlibpath_var=no
9381 ;;
9382
9383 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9384 freebsd2*)
9385 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9386 hardcode_direct=yes
9387 hardcode_minus_L=yes
9388 hardcode_shlibpath_var=no
9389 ;;
9390
9391 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9392 freebsd* | dragonfly*)
9393 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9394 hardcode_libdir_flag_spec='-R$libdir'
9395 hardcode_direct=yes
9396 hardcode_shlibpath_var=no
9397 ;;
9398
9399 hpux9*)
9400 if test "$GCC" = yes; then
9401 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'
9402 else
9403 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'
9404 fi
9405 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9406 hardcode_libdir_separator=:
9407 hardcode_direct=yes
9408
9409 # hardcode_minus_L: Not really in the search PATH,
9410 # but as the default location of the library.
9411 hardcode_minus_L=yes
9412 export_dynamic_flag_spec='${wl}-E'
9413 ;;
9414
9415 hpux10*)
9416 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9417 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9418 else
9419 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9420 fi
9421 if test "$with_gnu_ld" = no; then
9422 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9423 hardcode_libdir_flag_spec_ld='+b $libdir'
9424 hardcode_libdir_separator=:
9425 hardcode_direct=yes
9426 hardcode_direct_absolute=yes
9427 export_dynamic_flag_spec='${wl}-E'
9428 # hardcode_minus_L: Not really in the search PATH,
9429 # but as the default location of the library.
9430 hardcode_minus_L=yes
9431 fi
9432 ;;
9433
9434 hpux11*)
9435 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9436 case $host_cpu in
9437 hppa*64*)
9438 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9439 ;;
9440 ia64*)
9441 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9442 ;;
9443 *)
9444 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9445 ;;
9446 esac
9447 else
9448 case $host_cpu in
9449 hppa*64*)
9450 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9451 ;;
9452 ia64*)
9453 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9454 ;;
9455 *)
9456 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9457 ;;
9458 esac
9459 fi
9460 if test "$with_gnu_ld" = no; then
9461 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9462 hardcode_libdir_separator=:
9463
9464 case $host_cpu in
9465 hppa*64*|ia64*)
9466 hardcode_direct=no
9467 hardcode_shlibpath_var=no
9468 ;;
9469 *)
9470 hardcode_direct=yes
9471 hardcode_direct_absolute=yes
9472 export_dynamic_flag_spec='${wl}-E'
9473
9474 # hardcode_minus_L: Not really in the search PATH,
9475 # but as the default location of the library.
9476 hardcode_minus_L=yes
9477 ;;
9478 esac
9479 fi
9480 ;;
9481
9482 irix5* | irix6* | nonstopux*)
9483 if test "$GCC" = yes; then
9484 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'
9485 # Try to use the -exported_symbol ld option, if it does not
9486 # work, assume that -exports_file does not work either and
9487 # implicitly export all symbols.
9488 save_LDFLAGS="$LDFLAGS"
9489 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9490 cat >conftest.$ac_ext <<_ACEOF
9491 int foo(void) {}
9492 _ACEOF
9493 rm -f conftest.$ac_objext conftest$ac_exeext
9494 if { (ac_try="$ac_link"
9495 case "(($ac_try" in
9496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9497 *) ac_try_echo=$ac_try;;
9498 esac
9499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9500 $as_echo "$ac_try_echo") >&5
9501 (eval "$ac_link") 2>conftest.er1
9502 ac_status=$?
9503 grep -v '^ *+' conftest.er1 >conftest.err
9504 rm -f conftest.er1
9505 cat conftest.err >&5
9506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); } && {
9508 test -z "$ac_c_werror_flag" ||
9509 test ! -s conftest.err
9510 } && test -s conftest$ac_exeext && {
9511 test "$cross_compiling" = yes ||
9512 $as_test_x conftest$ac_exeext
9513 }; then
9514 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'
9515
9516 else
9517 $as_echo "$as_me: failed program was:" >&5
9518 sed 's/^/| /' conftest.$ac_ext >&5
9519
9520
9521 fi
9522
9523 rm -rf conftest.dSYM
9524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9525 conftest$ac_exeext conftest.$ac_ext
9526 LDFLAGS="$save_LDFLAGS"
9527 else
9528 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'
9529 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'
9530 fi
9531 archive_cmds_need_lc='no'
9532 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9533 hardcode_libdir_separator=:
9534 inherit_rpath=yes
9535 link_all_deplibs=yes
9536 ;;
9537
9538 netbsd* | netbsdelf*-gnu)
9539 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9540 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9541 else
9542 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9543 fi
9544 hardcode_libdir_flag_spec='-R$libdir'
9545 hardcode_direct=yes
9546 hardcode_shlibpath_var=no
9547 ;;
9548
9549 newsos6)
9550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9551 hardcode_direct=yes
9552 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9553 hardcode_libdir_separator=:
9554 hardcode_shlibpath_var=no
9555 ;;
9556
9557 *nto* | *qnx*)
9558 ;;
9559
9560 openbsd*)
9561 if test -f /usr/libexec/ld.so; then
9562 hardcode_direct=yes
9563 hardcode_shlibpath_var=no
9564 hardcode_direct_absolute=yes
9565 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9566 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9567 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9568 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9569 export_dynamic_flag_spec='${wl}-E'
9570 else
9571 case $host_os in
9572 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9573 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9574 hardcode_libdir_flag_spec='-R$libdir'
9575 ;;
9576 *)
9577 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9578 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9579 ;;
9580 esac
9581 fi
9582 else
9583 ld_shlibs=no
9584 fi
9585 ;;
9586
9587 os2*)
9588 hardcode_libdir_flag_spec='-L$libdir'
9589 hardcode_minus_L=yes
9590 allow_undefined_flag=unsupported
9591 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'
9592 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9593 ;;
9594
9595 osf3*)
9596 if test "$GCC" = yes; then
9597 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9598 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'
9599 else
9600 allow_undefined_flag=' -expect_unresolved \*'
9601 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'
9602 fi
9603 archive_cmds_need_lc='no'
9604 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9605 hardcode_libdir_separator=:
9606 ;;
9607
9608 osf4* | osf5*) # as osf3* with the addition of -msym flag
9609 if test "$GCC" = yes; then
9610 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9611 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'
9612 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9613 else
9614 allow_undefined_flag=' -expect_unresolved \*'
9615 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'
9616 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~
9617 $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'
9618
9619 # Both c and cxx compiler support -rpath directly
9620 hardcode_libdir_flag_spec='-rpath $libdir'
9621 fi
9622 archive_cmds_need_lc='no'
9623 hardcode_libdir_separator=:
9624 ;;
9625
9626 solaris*)
9627 no_undefined_flag=' -z defs'
9628 if test "$GCC" = yes; then
9629 wlarc='${wl}'
9630 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9631 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9632 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9633 else
9634 case `$CC -V 2>&1` in
9635 *"Compilers 5.0"*)
9636 wlarc=''
9637 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9638 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9639 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9640 ;;
9641 *)
9642 wlarc='${wl}'
9643 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9644 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9645 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9646 ;;
9647 esac
9648 fi
9649 hardcode_libdir_flag_spec='-R$libdir'
9650 hardcode_shlibpath_var=no
9651 case $host_os in
9652 solaris2.[0-5] | solaris2.[0-5].*) ;;
9653 *)
9654 # The compiler driver will combine and reorder linker options,
9655 # but understands `-z linker_flag'. GCC discards it without `$wl',
9656 # but is careful enough not to reorder.
9657 # Supported since Solaris 2.6 (maybe 2.5.1?)
9658 if test "$GCC" = yes; then
9659 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9660 else
9661 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9662 fi
9663 ;;
9664 esac
9665 link_all_deplibs=yes
9666 ;;
9667
9668 sunos4*)
9669 if test "x$host_vendor" = xsequent; then
9670 # Use $CC to link under sequent, because it throws in some extra .o
9671 # files that make .init and .fini sections work.
9672 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9673 else
9674 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9675 fi
9676 hardcode_libdir_flag_spec='-L$libdir'
9677 hardcode_direct=yes
9678 hardcode_minus_L=yes
9679 hardcode_shlibpath_var=no
9680 ;;
9681
9682 sysv4)
9683 case $host_vendor in
9684 sni)
9685 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9686 hardcode_direct=yes # is this really true???
9687 ;;
9688 siemens)
9689 ## LD is ld it makes a PLAMLIB
9690 ## CC just makes a GrossModule.
9691 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9692 reload_cmds='$CC -r -o $output$reload_objs'
9693 hardcode_direct=no
9694 ;;
9695 motorola)
9696 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9697 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9698 ;;
9699 esac
9700 runpath_var='LD_RUN_PATH'
9701 hardcode_shlibpath_var=no
9702 ;;
9703
9704 sysv4.3*)
9705 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9706 hardcode_shlibpath_var=no
9707 export_dynamic_flag_spec='-Bexport'
9708 ;;
9709
9710 sysv4*MP*)
9711 if test -d /usr/nec; then
9712 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9713 hardcode_shlibpath_var=no
9714 runpath_var=LD_RUN_PATH
9715 hardcode_runpath_var=yes
9716 ld_shlibs=yes
9717 fi
9718 ;;
9719
9720 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9721 no_undefined_flag='${wl}-z,text'
9722 archive_cmds_need_lc=no
9723 hardcode_shlibpath_var=no
9724 runpath_var='LD_RUN_PATH'
9725
9726 if test "$GCC" = yes; then
9727 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9728 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9729 else
9730 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9731 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9732 fi
9733 ;;
9734
9735 sysv5* | sco3.2v5* | sco5v6*)
9736 # Note: We can NOT use -z defs as we might desire, because we do not
9737 # link with -lc, and that would cause any symbols used from libc to
9738 # always be unresolved, which means just about no library would
9739 # ever link correctly. If we're not using GNU ld we use -z text
9740 # though, which does catch some bad symbols but isn't as heavy-handed
9741 # as -z defs.
9742 no_undefined_flag='${wl}-z,text'
9743 allow_undefined_flag='${wl}-z,nodefs'
9744 archive_cmds_need_lc=no
9745 hardcode_shlibpath_var=no
9746 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9747 hardcode_libdir_separator=':'
9748 link_all_deplibs=yes
9749 export_dynamic_flag_spec='${wl}-Bexport'
9750 runpath_var='LD_RUN_PATH'
9751
9752 if test "$GCC" = yes; then
9753 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9754 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9755 else
9756 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9757 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9758 fi
9759 ;;
9760
9761 uts4*)
9762 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9763 hardcode_libdir_flag_spec='-L$libdir'
9764 hardcode_shlibpath_var=no
9765 ;;
9766
9767 *)
9768 ld_shlibs=no
9769 ;;
9770 esac
9771
9772 if test x$host_vendor = xsni; then
9773 case $host in
9774 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9775 export_dynamic_flag_spec='${wl}-Blargedynsym'
9776 ;;
9777 esac
9778 fi
9779 fi
9780
9781 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9782 $as_echo "$ld_shlibs" >&6; }
9783 test "$ld_shlibs" = no && can_build_shared=no
9784
9785 with_gnu_ld=$with_gnu_ld
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801 #
9802 # Do we need to explicitly link libc?
9803 #
9804 case "x$archive_cmds_need_lc" in
9805 x|xyes)
9806 # Assume -lc should be added
9807 archive_cmds_need_lc=yes
9808
9809 if test "$enable_shared" = yes && test "$GCC" = yes; then
9810 case $archive_cmds in
9811 *'~'*)
9812 # FIXME: we may have to deal with multi-command sequences.
9813 ;;
9814 '$CC '*)
9815 # Test whether the compiler implicitly links with -lc since on some
9816 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9817 # to ld, don't add -lc before -lgcc.
9818 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9819 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9820 $RM conftest*
9821 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9822
9823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9824 (eval $ac_compile) 2>&5
9825 ac_status=$?
9826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); } 2>conftest.err; then
9828 soname=conftest
9829 lib=conftest
9830 libobjs=conftest.$ac_objext
9831 deplibs=
9832 wl=$lt_prog_compiler_wl
9833 pic_flag=$lt_prog_compiler_pic
9834 compiler_flags=-v
9835 linker_flags=-v
9836 verstring=
9837 output_objdir=.
9838 libname=conftest
9839 lt_save_allow_undefined_flag=$allow_undefined_flag
9840 allow_undefined_flag=
9841 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9842 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9843 ac_status=$?
9844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); }
9846 then
9847 archive_cmds_need_lc=no
9848 else
9849 archive_cmds_need_lc=yes
9850 fi
9851 allow_undefined_flag=$lt_save_allow_undefined_flag
9852 else
9853 cat conftest.err 1>&5
9854 fi
9855 $RM conftest*
9856 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9857 $as_echo "$archive_cmds_need_lc" >&6; }
9858 ;;
9859 esac
9860 fi
9861 ;;
9862 esac
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10021 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10022
10023 if test "$GCC" = yes; then
10024 case $host_os in
10025 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10026 *) lt_awk_arg="/^libraries:/" ;;
10027 esac
10028 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10029 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10030 # if the path contains ";" then we assume it to be the separator
10031 # otherwise default to the standard path separator (i.e. ":") - it is
10032 # assumed that no part of a normal pathname contains ";" but that should
10033 # okay in the real world where ";" in dirpaths is itself problematic.
10034 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10035 else
10036 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10037 fi
10038 # Ok, now we have the path, separated by spaces, we can step through it
10039 # and add multilib dir if necessary.
10040 lt_tmp_lt_search_path_spec=
10041 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10042 for lt_sys_path in $lt_search_path_spec; do
10043 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10044 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10045 else
10046 test -d "$lt_sys_path" && \
10047 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10048 fi
10049 done
10050 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10051 BEGIN {RS=" "; FS="/|\n";} {
10052 lt_foo="";
10053 lt_count=0;
10054 for (lt_i = NF; lt_i > 0; lt_i--) {
10055 if ($lt_i != "" && $lt_i != ".") {
10056 if ($lt_i == "..") {
10057 lt_count++;
10058 } else {
10059 if (lt_count == 0) {
10060 lt_foo="/" $lt_i lt_foo;
10061 } else {
10062 lt_count--;
10063 }
10064 }
10065 }
10066 }
10067 if (lt_foo != "") { lt_freq[lt_foo]++; }
10068 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10069 }'`
10070 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10071 else
10072 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10073 fi
10074 library_names_spec=
10075 libname_spec='lib$name'
10076 soname_spec=
10077 shrext_cmds=".so"
10078 postinstall_cmds=
10079 postuninstall_cmds=
10080 finish_cmds=
10081 finish_eval=
10082 shlibpath_var=
10083 shlibpath_overrides_runpath=unknown
10084 version_type=none
10085 dynamic_linker="$host_os ld.so"
10086 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10087 need_lib_prefix=unknown
10088 hardcode_into_libs=no
10089
10090 # when you set need_version to no, make sure it does not cause -set_version
10091 # flags to be left without arguments
10092 need_version=unknown
10093
10094 case $host_os in
10095 aix3*)
10096 version_type=linux
10097 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10098 shlibpath_var=LIBPATH
10099
10100 # AIX 3 has no versioning support, so we append a major version to the name.
10101 soname_spec='${libname}${release}${shared_ext}$major'
10102 ;;
10103
10104 aix[4-9]*)
10105 version_type=linux
10106 need_lib_prefix=no
10107 need_version=no
10108 hardcode_into_libs=yes
10109 if test "$host_cpu" = ia64; then
10110 # AIX 5 supports IA64
10111 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10112 shlibpath_var=LD_LIBRARY_PATH
10113 else
10114 # With GCC up to 2.95.x, collect2 would create an import file
10115 # for dependence libraries. The import file would start with
10116 # the line `#! .'. This would cause the generated library to
10117 # depend on `.', always an invalid library. This was fixed in
10118 # development snapshots of GCC prior to 3.0.
10119 case $host_os in
10120 aix4 | aix4.[01] | aix4.[01].*)
10121 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10122 echo ' yes '
10123 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10124 :
10125 else
10126 can_build_shared=no
10127 fi
10128 ;;
10129 esac
10130 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10131 # soname into executable. Probably we can add versioning support to
10132 # collect2, so additional links can be useful in future.
10133 if test "$aix_use_runtimelinking" = yes; then
10134 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10135 # instead of lib<name>.a to let people know that these are not
10136 # typical AIX shared libraries.
10137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10138 else
10139 # We preserve .a as extension for shared libraries through AIX4.2
10140 # and later when we are not doing run time linking.
10141 library_names_spec='${libname}${release}.a $libname.a'
10142 soname_spec='${libname}${release}${shared_ext}$major'
10143 fi
10144 shlibpath_var=LIBPATH
10145 fi
10146 ;;
10147
10148 amigaos*)
10149 case $host_cpu in
10150 powerpc)
10151 # Since July 2007 AmigaOS4 officially supports .so libraries.
10152 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10154 ;;
10155 m68k)
10156 library_names_spec='$libname.ixlibrary $libname.a'
10157 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10158 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'
10159 ;;
10160 esac
10161 ;;
10162
10163 beos*)
10164 library_names_spec='${libname}${shared_ext}'
10165 dynamic_linker="$host_os ld.so"
10166 shlibpath_var=LIBRARY_PATH
10167 ;;
10168
10169 bsdi[45]*)
10170 version_type=linux
10171 need_version=no
10172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10173 soname_spec='${libname}${release}${shared_ext}$major'
10174 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10175 shlibpath_var=LD_LIBRARY_PATH
10176 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10177 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10178 # the default ld.so.conf also contains /usr/contrib/lib and
10179 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10180 # libtool to hard-code these into programs
10181 ;;
10182
10183 cygwin* | mingw* | pw32* | cegcc*)
10184 version_type=windows
10185 shrext_cmds=".dll"
10186 need_version=no
10187 need_lib_prefix=no
10188
10189 case $GCC,$host_os in
10190 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10191 library_names_spec='$libname.dll.a'
10192 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10193 postinstall_cmds='base_file=`basename \${file}`~
10194 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10195 dldir=$destdir/`dirname \$dlpath`~
10196 test -d \$dldir || mkdir -p \$dldir~
10197 $install_prog $dir/$dlname \$dldir/$dlname~
10198 chmod a+x \$dldir/$dlname~
10199 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10200 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10201 fi'
10202 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10203 dlpath=$dir/\$dldll~
10204 $RM \$dlpath'
10205 shlibpath_overrides_runpath=yes
10206
10207 case $host_os in
10208 cygwin*)
10209 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10210 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10211 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10212 ;;
10213 mingw* | cegcc*)
10214 # MinGW DLLs use traditional 'lib' prefix
10215 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10216 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10217 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10218 # It is most probably a Windows format PATH printed by
10219 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10220 # path with ; separators, and with drive letters. We can handle the
10221 # drive letters (cygwin fileutils understands them), so leave them,
10222 # especially as we might pass files found there to a mingw objdump,
10223 # which wouldn't understand a cygwinified path. Ahh.
10224 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10225 else
10226 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10227 fi
10228 ;;
10229 pw32*)
10230 # pw32 DLLs use 'pw' prefix rather than 'lib'
10231 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10232 ;;
10233 esac
10234 ;;
10235
10236 *)
10237 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10238 ;;
10239 esac
10240 dynamic_linker='Win32 ld.exe'
10241 # FIXME: first we should search . and the directory the executable is in
10242 shlibpath_var=PATH
10243 ;;
10244
10245 darwin* | rhapsody*)
10246 dynamic_linker="$host_os dyld"
10247 version_type=darwin
10248 need_lib_prefix=no
10249 need_version=no
10250 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10251 soname_spec='${libname}${release}${major}$shared_ext'
10252 shlibpath_overrides_runpath=yes
10253 shlibpath_var=DYLD_LIBRARY_PATH
10254 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10255
10256 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10257 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10258 ;;
10259
10260 dgux*)
10261 version_type=linux
10262 need_lib_prefix=no
10263 need_version=no
10264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10265 soname_spec='${libname}${release}${shared_ext}$major'
10266 shlibpath_var=LD_LIBRARY_PATH
10267 ;;
10268
10269 freebsd1*)
10270 dynamic_linker=no
10271 ;;
10272
10273 freebsd* | dragonfly*)
10274 # DragonFly does not have aout. When/if they implement a new
10275 # versioning mechanism, adjust this.
10276 if test -x /usr/bin/objformat; then
10277 objformat=`/usr/bin/objformat`
10278 else
10279 case $host_os in
10280 freebsd[123]*) objformat=aout ;;
10281 *) objformat=elf ;;
10282 esac
10283 fi
10284 version_type=freebsd-$objformat
10285 case $version_type in
10286 freebsd-elf*)
10287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10288 need_version=no
10289 need_lib_prefix=no
10290 ;;
10291 freebsd-*)
10292 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10293 need_version=yes
10294 ;;
10295 esac
10296 shlibpath_var=LD_LIBRARY_PATH
10297 case $host_os in
10298 freebsd2*)
10299 shlibpath_overrides_runpath=yes
10300 ;;
10301 freebsd3.[01]* | freebsdelf3.[01]*)
10302 shlibpath_overrides_runpath=yes
10303 hardcode_into_libs=yes
10304 ;;
10305 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10306 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10307 shlibpath_overrides_runpath=no
10308 hardcode_into_libs=yes
10309 ;;
10310 *) # from 4.6 on, and DragonFly
10311 shlibpath_overrides_runpath=yes
10312 hardcode_into_libs=yes
10313 ;;
10314 esac
10315 ;;
10316
10317 gnu*)
10318 version_type=linux
10319 need_lib_prefix=no
10320 need_version=no
10321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10322 soname_spec='${libname}${release}${shared_ext}$major'
10323 shlibpath_var=LD_LIBRARY_PATH
10324 hardcode_into_libs=yes
10325 ;;
10326
10327 hpux9* | hpux10* | hpux11*)
10328 # Give a soname corresponding to the major version so that dld.sl refuses to
10329 # link against other versions.
10330 version_type=sunos
10331 need_lib_prefix=no
10332 need_version=no
10333 case $host_cpu in
10334 ia64*)
10335 shrext_cmds='.so'
10336 hardcode_into_libs=yes
10337 dynamic_linker="$host_os dld.so"
10338 shlibpath_var=LD_LIBRARY_PATH
10339 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10341 soname_spec='${libname}${release}${shared_ext}$major'
10342 if test "X$HPUX_IA64_MODE" = X32; then
10343 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10344 else
10345 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10346 fi
10347 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10348 ;;
10349 hppa*64*)
10350 shrext_cmds='.sl'
10351 hardcode_into_libs=yes
10352 dynamic_linker="$host_os dld.sl"
10353 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10354 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10356 soname_spec='${libname}${release}${shared_ext}$major'
10357 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10358 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10359 ;;
10360 *)
10361 shrext_cmds='.sl'
10362 dynamic_linker="$host_os dld.sl"
10363 shlibpath_var=SHLIB_PATH
10364 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10366 soname_spec='${libname}${release}${shared_ext}$major'
10367 ;;
10368 esac
10369 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10370 postinstall_cmds='chmod 555 $lib'
10371 ;;
10372
10373 interix[3-9]*)
10374 version_type=linux
10375 need_lib_prefix=no
10376 need_version=no
10377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10378 soname_spec='${libname}${release}${shared_ext}$major'
10379 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10380 shlibpath_var=LD_LIBRARY_PATH
10381 shlibpath_overrides_runpath=no
10382 hardcode_into_libs=yes
10383 ;;
10384
10385 irix5* | irix6* | nonstopux*)
10386 case $host_os in
10387 nonstopux*) version_type=nonstopux ;;
10388 *)
10389 if test "$lt_cv_prog_gnu_ld" = yes; then
10390 version_type=linux
10391 else
10392 version_type=irix
10393 fi ;;
10394 esac
10395 need_lib_prefix=no
10396 need_version=no
10397 soname_spec='${libname}${release}${shared_ext}$major'
10398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10399 case $host_os in
10400 irix5* | nonstopux*)
10401 libsuff= shlibsuff=
10402 ;;
10403 *)
10404 case $LD in # libtool.m4 will add one of these switches to LD
10405 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10406 libsuff= shlibsuff= libmagic=32-bit;;
10407 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10408 libsuff=32 shlibsuff=N32 libmagic=N32;;
10409 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10410 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10411 *) libsuff= shlibsuff= libmagic=never-match;;
10412 esac
10413 ;;
10414 esac
10415 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10416 shlibpath_overrides_runpath=no
10417 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10418 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10419 hardcode_into_libs=yes
10420 ;;
10421
10422 # No shared lib support for Linux oldld, aout, or coff.
10423 linux*oldld* | linux*aout* | linux*coff*)
10424 dynamic_linker=no
10425 ;;
10426
10427 # This must be Linux ELF.
10428 linux* | k*bsd*-gnu)
10429 version_type=linux
10430 need_lib_prefix=no
10431 need_version=no
10432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10433 soname_spec='${libname}${release}${shared_ext}$major'
10434 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10435 shlibpath_var=LD_LIBRARY_PATH
10436 shlibpath_overrides_runpath=no
10437 # Some binutils ld are patched to set DT_RUNPATH
10438 save_LDFLAGS=$LDFLAGS
10439 save_libdir=$libdir
10440 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10441 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10442 cat >conftest.$ac_ext <<_ACEOF
10443 /* confdefs.h. */
10444 _ACEOF
10445 cat confdefs.h >>conftest.$ac_ext
10446 cat >>conftest.$ac_ext <<_ACEOF
10447 /* end confdefs.h. */
10448
10449 int
10450 main ()
10451 {
10452
10453 ;
10454 return 0;
10455 }
10456 _ACEOF
10457 rm -f conftest.$ac_objext conftest$ac_exeext
10458 if { (ac_try="$ac_link"
10459 case "(($ac_try" in
10460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10461 *) ac_try_echo=$ac_try;;
10462 esac
10463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10464 $as_echo "$ac_try_echo") >&5
10465 (eval "$ac_link") 2>conftest.er1
10466 ac_status=$?
10467 grep -v '^ *+' conftest.er1 >conftest.err
10468 rm -f conftest.er1
10469 cat conftest.err >&5
10470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); } && {
10472 test -z "$ac_c_werror_flag" ||
10473 test ! -s conftest.err
10474 } && test -s conftest$ac_exeext && {
10475 test "$cross_compiling" = yes ||
10476 $as_test_x conftest$ac_exeext
10477 }; then
10478 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10479 shlibpath_overrides_runpath=yes
10480 fi
10481
10482 else
10483 $as_echo "$as_me: failed program was:" >&5
10484 sed 's/^/| /' conftest.$ac_ext >&5
10485
10486
10487 fi
10488
10489 rm -rf conftest.dSYM
10490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10491 conftest$ac_exeext conftest.$ac_ext
10492 LDFLAGS=$save_LDFLAGS
10493 libdir=$save_libdir
10494
10495 # This implies no fast_install, which is unacceptable.
10496 # Some rework will be needed to allow for fast_install
10497 # before this can be enabled.
10498 hardcode_into_libs=yes
10499
10500 # Append ld.so.conf contents to the search path
10501 if test -f /etc/ld.so.conf; then
10502 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' ' '`
10503 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10504 fi
10505
10506 # We used to test for /lib/ld.so.1 and disable shared libraries on
10507 # powerpc, because MkLinux only supported shared libraries with the
10508 # GNU dynamic linker. Since this was broken with cross compilers,
10509 # most powerpc-linux boxes support dynamic linking these days and
10510 # people can always --disable-shared, the test was removed, and we
10511 # assume the GNU/Linux dynamic linker is in use.
10512 dynamic_linker='GNU/Linux ld.so'
10513 ;;
10514
10515 netbsdelf*-gnu)
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 shlibpath_var=LD_LIBRARY_PATH
10522 shlibpath_overrides_runpath=no
10523 hardcode_into_libs=yes
10524 dynamic_linker='NetBSD ld.elf_so'
10525 ;;
10526
10527 netbsd*)
10528 version_type=sunos
10529 need_lib_prefix=no
10530 need_version=no
10531 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10533 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10534 dynamic_linker='NetBSD (a.out) ld.so'
10535 else
10536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10537 soname_spec='${libname}${release}${shared_ext}$major'
10538 dynamic_linker='NetBSD ld.elf_so'
10539 fi
10540 shlibpath_var=LD_LIBRARY_PATH
10541 shlibpath_overrides_runpath=yes
10542 hardcode_into_libs=yes
10543 ;;
10544
10545 newsos6)
10546 version_type=linux
10547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10548 shlibpath_var=LD_LIBRARY_PATH
10549 shlibpath_overrides_runpath=yes
10550 ;;
10551
10552 *nto* | *qnx*)
10553 version_type=qnx
10554 need_lib_prefix=no
10555 need_version=no
10556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10557 soname_spec='${libname}${release}${shared_ext}$major'
10558 shlibpath_var=LD_LIBRARY_PATH
10559 shlibpath_overrides_runpath=no
10560 hardcode_into_libs=yes
10561 dynamic_linker='ldqnx.so'
10562 ;;
10563
10564 openbsd*)
10565 version_type=sunos
10566 sys_lib_dlsearch_path_spec="/usr/lib"
10567 need_lib_prefix=no
10568 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10569 case $host_os in
10570 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10571 *) need_version=no ;;
10572 esac
10573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10574 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10575 shlibpath_var=LD_LIBRARY_PATH
10576 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10577 case $host_os in
10578 openbsd2.[89] | openbsd2.[89].*)
10579 shlibpath_overrides_runpath=no
10580 ;;
10581 *)
10582 shlibpath_overrides_runpath=yes
10583 ;;
10584 esac
10585 else
10586 shlibpath_overrides_runpath=yes
10587 fi
10588 ;;
10589
10590 os2*)
10591 libname_spec='$name'
10592 shrext_cmds=".dll"
10593 need_lib_prefix=no
10594 library_names_spec='$libname${shared_ext} $libname.a'
10595 dynamic_linker='OS/2 ld.exe'
10596 shlibpath_var=LIBPATH
10597 ;;
10598
10599 osf3* | osf4* | osf5*)
10600 version_type=osf
10601 need_lib_prefix=no
10602 need_version=no
10603 soname_spec='${libname}${release}${shared_ext}$major'
10604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10605 shlibpath_var=LD_LIBRARY_PATH
10606 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10607 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10608 ;;
10609
10610 rdos*)
10611 dynamic_linker=no
10612 ;;
10613
10614 solaris*)
10615 version_type=linux
10616 need_lib_prefix=no
10617 need_version=no
10618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10619 soname_spec='${libname}${release}${shared_ext}$major'
10620 shlibpath_var=LD_LIBRARY_PATH
10621 shlibpath_overrides_runpath=yes
10622 hardcode_into_libs=yes
10623 # ldd complains unless libraries are executable
10624 postinstall_cmds='chmod +x $lib'
10625 ;;
10626
10627 sunos4*)
10628 version_type=sunos
10629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10630 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10631 shlibpath_var=LD_LIBRARY_PATH
10632 shlibpath_overrides_runpath=yes
10633 if test "$with_gnu_ld" = yes; then
10634 need_lib_prefix=no
10635 fi
10636 need_version=yes
10637 ;;
10638
10639 sysv4 | sysv4.3*)
10640 version_type=linux
10641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10642 soname_spec='${libname}${release}${shared_ext}$major'
10643 shlibpath_var=LD_LIBRARY_PATH
10644 case $host_vendor in
10645 sni)
10646 shlibpath_overrides_runpath=no
10647 need_lib_prefix=no
10648 runpath_var=LD_RUN_PATH
10649 ;;
10650 siemens)
10651 need_lib_prefix=no
10652 ;;
10653 motorola)
10654 need_lib_prefix=no
10655 need_version=no
10656 shlibpath_overrides_runpath=no
10657 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10658 ;;
10659 esac
10660 ;;
10661
10662 sysv4*MP*)
10663 if test -d /usr/nec ;then
10664 version_type=linux
10665 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10666 soname_spec='$libname${shared_ext}.$major'
10667 shlibpath_var=LD_LIBRARY_PATH
10668 fi
10669 ;;
10670
10671 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10672 version_type=freebsd-elf
10673 need_lib_prefix=no
10674 need_version=no
10675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10676 soname_spec='${libname}${release}${shared_ext}$major'
10677 shlibpath_var=LD_LIBRARY_PATH
10678 shlibpath_overrides_runpath=yes
10679 hardcode_into_libs=yes
10680 if test "$with_gnu_ld" = yes; then
10681 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10682 else
10683 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10684 case $host_os in
10685 sco3.2v5*)
10686 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10687 ;;
10688 esac
10689 fi
10690 sys_lib_dlsearch_path_spec='/usr/lib'
10691 ;;
10692
10693 tpf*)
10694 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10695 version_type=linux
10696 need_lib_prefix=no
10697 need_version=no
10698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10699 shlibpath_var=LD_LIBRARY_PATH
10700 shlibpath_overrides_runpath=no
10701 hardcode_into_libs=yes
10702 ;;
10703
10704 uts4*)
10705 version_type=linux
10706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10707 soname_spec='${libname}${release}${shared_ext}$major'
10708 shlibpath_var=LD_LIBRARY_PATH
10709 ;;
10710
10711 *)
10712 dynamic_linker=no
10713 ;;
10714 esac
10715 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10716 $as_echo "$dynamic_linker" >&6; }
10717 test "$dynamic_linker" = no && can_build_shared=no
10718
10719 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10720 if test "$GCC" = yes; then
10721 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10722 fi
10723
10724 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10725 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10726 fi
10727 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10728 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10729 fi
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10818 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10819 hardcode_action=
10820 if test -n "$hardcode_libdir_flag_spec" ||
10821 test -n "$runpath_var" ||
10822 test "X$hardcode_automatic" = "Xyes" ; then
10823
10824 # We can hardcode non-existent directories.
10825 if test "$hardcode_direct" != no &&
10826 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10827 # have to relink, otherwise we might link with an installed library
10828 # when we should be linking with a yet-to-be-installed one
10829 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10830 test "$hardcode_minus_L" != no; then
10831 # Linking always hardcodes the temporary library directory.
10832 hardcode_action=relink
10833 else
10834 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10835 hardcode_action=immediate
10836 fi
10837 else
10838 # We cannot hardcode anything, or else we can only hardcode existing
10839 # directories.
10840 hardcode_action=unsupported
10841 fi
10842 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10843 $as_echo "$hardcode_action" >&6; }
10844
10845 if test "$hardcode_action" = relink ||
10846 test "$inherit_rpath" = yes; then
10847 # Fast installation is not supported
10848 enable_fast_install=no
10849 elif test "$shlibpath_overrides_runpath" = yes ||
10850 test "$enable_shared" = no; then
10851 # Fast installation is not necessary
10852 enable_fast_install=needless
10853 fi
10854
10855
10856
10857
10858
10859
10860 if test "x$enable_dlopen" != xyes; then
10861 enable_dlopen=unknown
10862 enable_dlopen_self=unknown
10863 enable_dlopen_self_static=unknown
10864 else
10865 lt_cv_dlopen=no
10866 lt_cv_dlopen_libs=
10867
10868 case $host_os in
10869 beos*)
10870 lt_cv_dlopen="load_add_on"
10871 lt_cv_dlopen_libs=
10872 lt_cv_dlopen_self=yes
10873 ;;
10874
10875 mingw* | pw32* | cegcc*)
10876 lt_cv_dlopen="LoadLibrary"
10877 lt_cv_dlopen_libs=
10878 ;;
10879
10880 cygwin*)
10881 lt_cv_dlopen="dlopen"
10882 lt_cv_dlopen_libs=
10883 ;;
10884
10885 darwin*)
10886 # if libdl is installed we need to link against it
10887 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10888 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10889 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10890 $as_echo_n "(cached) " >&6
10891 else
10892 ac_check_lib_save_LIBS=$LIBS
10893 LIBS="-ldl $LIBS"
10894 cat >conftest.$ac_ext <<_ACEOF
10895 /* confdefs.h. */
10896 _ACEOF
10897 cat confdefs.h >>conftest.$ac_ext
10898 cat >>conftest.$ac_ext <<_ACEOF
10899 /* end confdefs.h. */
10900
10901 /* Override any GCC internal prototype to avoid an error.
10902 Use char because int might match the return type of a GCC
10903 builtin and then its argument prototype would still apply. */
10904 #ifdef __cplusplus
10905 extern "C"
10906 #endif
10907 char dlopen ();
10908 int
10909 main ()
10910 {
10911 return dlopen ();
10912 ;
10913 return 0;
10914 }
10915 _ACEOF
10916 rm -f conftest.$ac_objext conftest$ac_exeext
10917 if { (ac_try="$ac_link"
10918 case "(($ac_try" in
10919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920 *) ac_try_echo=$ac_try;;
10921 esac
10922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10923 $as_echo "$ac_try_echo") >&5
10924 (eval "$ac_link") 2>conftest.er1
10925 ac_status=$?
10926 grep -v '^ *+' conftest.er1 >conftest.err
10927 rm -f conftest.er1
10928 cat conftest.err >&5
10929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); } && {
10931 test -z "$ac_c_werror_flag" ||
10932 test ! -s conftest.err
10933 } && test -s conftest$ac_exeext && {
10934 test "$cross_compiling" = yes ||
10935 $as_test_x conftest$ac_exeext
10936 }; then
10937 ac_cv_lib_dl_dlopen=yes
10938 else
10939 $as_echo "$as_me: failed program was:" >&5
10940 sed 's/^/| /' conftest.$ac_ext >&5
10941
10942 ac_cv_lib_dl_dlopen=no
10943 fi
10944
10945 rm -rf conftest.dSYM
10946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10947 conftest$ac_exeext conftest.$ac_ext
10948 LIBS=$ac_check_lib_save_LIBS
10949 fi
10950 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10951 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10952 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10953 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10954 else
10955
10956 lt_cv_dlopen="dyld"
10957 lt_cv_dlopen_libs=
10958 lt_cv_dlopen_self=yes
10959
10960 fi
10961
10962 ;;
10963
10964 *)
10965 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10966 $as_echo_n "checking for shl_load... " >&6; }
10967 if test "${ac_cv_func_shl_load+set}" = set; then
10968 $as_echo_n "(cached) " >&6
10969 else
10970 cat >conftest.$ac_ext <<_ACEOF
10971 /* confdefs.h. */
10972 _ACEOF
10973 cat confdefs.h >>conftest.$ac_ext
10974 cat >>conftest.$ac_ext <<_ACEOF
10975 /* end confdefs.h. */
10976 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10978 #define shl_load innocuous_shl_load
10979
10980 /* System header to define __stub macros and hopefully few prototypes,
10981 which can conflict with char shl_load (); below.
10982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10983 <limits.h> exists even on freestanding compilers. */
10984
10985 #ifdef __STDC__
10986 # include <limits.h>
10987 #else
10988 # include <assert.h>
10989 #endif
10990
10991 #undef shl_load
10992
10993 /* Override any GCC internal prototype to avoid an error.
10994 Use char because int might match the return type of a GCC
10995 builtin and then its argument prototype would still apply. */
10996 #ifdef __cplusplus
10997 extern "C"
10998 #endif
10999 char shl_load ();
11000 /* The GNU C library defines this for functions which it implements
11001 to always fail with ENOSYS. Some functions are actually named
11002 something starting with __ and the normal name is an alias. */
11003 #if defined __stub_shl_load || defined __stub___shl_load
11004 choke me
11005 #endif
11006
11007 int
11008 main ()
11009 {
11010 return shl_load ();
11011 ;
11012 return 0;
11013 }
11014 _ACEOF
11015 rm -f conftest.$ac_objext conftest$ac_exeext
11016 if { (ac_try="$ac_link"
11017 case "(($ac_try" in
11018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11019 *) ac_try_echo=$ac_try;;
11020 esac
11021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11022 $as_echo "$ac_try_echo") >&5
11023 (eval "$ac_link") 2>conftest.er1
11024 ac_status=$?
11025 grep -v '^ *+' conftest.er1 >conftest.err
11026 rm -f conftest.er1
11027 cat conftest.err >&5
11028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); } && {
11030 test -z "$ac_c_werror_flag" ||
11031 test ! -s conftest.err
11032 } && test -s conftest$ac_exeext && {
11033 test "$cross_compiling" = yes ||
11034 $as_test_x conftest$ac_exeext
11035 }; then
11036 ac_cv_func_shl_load=yes
11037 else
11038 $as_echo "$as_me: failed program was:" >&5
11039 sed 's/^/| /' conftest.$ac_ext >&5
11040
11041 ac_cv_func_shl_load=no
11042 fi
11043
11044 rm -rf conftest.dSYM
11045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11046 conftest$ac_exeext conftest.$ac_ext
11047 fi
11048 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11049 $as_echo "$ac_cv_func_shl_load" >&6; }
11050 if test "x$ac_cv_func_shl_load" = x""yes; then
11051 lt_cv_dlopen="shl_load"
11052 else
11053 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11054 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11055 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11056 $as_echo_n "(cached) " >&6
11057 else
11058 ac_check_lib_save_LIBS=$LIBS
11059 LIBS="-ldld $LIBS"
11060 cat >conftest.$ac_ext <<_ACEOF
11061 /* confdefs.h. */
11062 _ACEOF
11063 cat confdefs.h >>conftest.$ac_ext
11064 cat >>conftest.$ac_ext <<_ACEOF
11065 /* end confdefs.h. */
11066
11067 /* Override any GCC internal prototype to avoid an error.
11068 Use char because int might match the return type of a GCC
11069 builtin and then its argument prototype would still apply. */
11070 #ifdef __cplusplus
11071 extern "C"
11072 #endif
11073 char shl_load ();
11074 int
11075 main ()
11076 {
11077 return shl_load ();
11078 ;
11079 return 0;
11080 }
11081 _ACEOF
11082 rm -f conftest.$ac_objext conftest$ac_exeext
11083 if { (ac_try="$ac_link"
11084 case "(($ac_try" in
11085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11086 *) ac_try_echo=$ac_try;;
11087 esac
11088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11089 $as_echo "$ac_try_echo") >&5
11090 (eval "$ac_link") 2>conftest.er1
11091 ac_status=$?
11092 grep -v '^ *+' conftest.er1 >conftest.err
11093 rm -f conftest.er1
11094 cat conftest.err >&5
11095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); } && {
11097 test -z "$ac_c_werror_flag" ||
11098 test ! -s conftest.err
11099 } && test -s conftest$ac_exeext && {
11100 test "$cross_compiling" = yes ||
11101 $as_test_x conftest$ac_exeext
11102 }; then
11103 ac_cv_lib_dld_shl_load=yes
11104 else
11105 $as_echo "$as_me: failed program was:" >&5
11106 sed 's/^/| /' conftest.$ac_ext >&5
11107
11108 ac_cv_lib_dld_shl_load=no
11109 fi
11110
11111 rm -rf conftest.dSYM
11112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11113 conftest$ac_exeext conftest.$ac_ext
11114 LIBS=$ac_check_lib_save_LIBS
11115 fi
11116 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11117 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11118 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11119 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11120 else
11121 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11122 $as_echo_n "checking for dlopen... " >&6; }
11123 if test "${ac_cv_func_dlopen+set}" = set; then
11124 $as_echo_n "(cached) " >&6
11125 else
11126 cat >conftest.$ac_ext <<_ACEOF
11127 /* confdefs.h. */
11128 _ACEOF
11129 cat confdefs.h >>conftest.$ac_ext
11130 cat >>conftest.$ac_ext <<_ACEOF
11131 /* end confdefs.h. */
11132 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11134 #define dlopen innocuous_dlopen
11135
11136 /* System header to define __stub macros and hopefully few prototypes,
11137 which can conflict with char dlopen (); below.
11138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11139 <limits.h> exists even on freestanding compilers. */
11140
11141 #ifdef __STDC__
11142 # include <limits.h>
11143 #else
11144 # include <assert.h>
11145 #endif
11146
11147 #undef dlopen
11148
11149 /* Override any GCC internal prototype to avoid an error.
11150 Use char because int might match the return type of a GCC
11151 builtin and then its argument prototype would still apply. */
11152 #ifdef __cplusplus
11153 extern "C"
11154 #endif
11155 char dlopen ();
11156 /* The GNU C library defines this for functions which it implements
11157 to always fail with ENOSYS. Some functions are actually named
11158 something starting with __ and the normal name is an alias. */
11159 #if defined __stub_dlopen || defined __stub___dlopen
11160 choke me
11161 #endif
11162
11163 int
11164 main ()
11165 {
11166 return dlopen ();
11167 ;
11168 return 0;
11169 }
11170 _ACEOF
11171 rm -f conftest.$ac_objext conftest$ac_exeext
11172 if { (ac_try="$ac_link"
11173 case "(($ac_try" in
11174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175 *) ac_try_echo=$ac_try;;
11176 esac
11177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11178 $as_echo "$ac_try_echo") >&5
11179 (eval "$ac_link") 2>conftest.er1
11180 ac_status=$?
11181 grep -v '^ *+' conftest.er1 >conftest.err
11182 rm -f conftest.er1
11183 cat conftest.err >&5
11184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); } && {
11186 test -z "$ac_c_werror_flag" ||
11187 test ! -s conftest.err
11188 } && test -s conftest$ac_exeext && {
11189 test "$cross_compiling" = yes ||
11190 $as_test_x conftest$ac_exeext
11191 }; then
11192 ac_cv_func_dlopen=yes
11193 else
11194 $as_echo "$as_me: failed program was:" >&5
11195 sed 's/^/| /' conftest.$ac_ext >&5
11196
11197 ac_cv_func_dlopen=no
11198 fi
11199
11200 rm -rf conftest.dSYM
11201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11202 conftest$ac_exeext conftest.$ac_ext
11203 fi
11204 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11205 $as_echo "$ac_cv_func_dlopen" >&6; }
11206 if test "x$ac_cv_func_dlopen" = x""yes; then
11207 lt_cv_dlopen="dlopen"
11208 else
11209 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11210 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11211 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11212 $as_echo_n "(cached) " >&6
11213 else
11214 ac_check_lib_save_LIBS=$LIBS
11215 LIBS="-ldl $LIBS"
11216 cat >conftest.$ac_ext <<_ACEOF
11217 /* confdefs.h. */
11218 _ACEOF
11219 cat confdefs.h >>conftest.$ac_ext
11220 cat >>conftest.$ac_ext <<_ACEOF
11221 /* end confdefs.h. */
11222
11223 /* Override any GCC internal prototype to avoid an error.
11224 Use char because int might match the return type of a GCC
11225 builtin and then its argument prototype would still apply. */
11226 #ifdef __cplusplus
11227 extern "C"
11228 #endif
11229 char dlopen ();
11230 int
11231 main ()
11232 {
11233 return dlopen ();
11234 ;
11235 return 0;
11236 }
11237 _ACEOF
11238 rm -f conftest.$ac_objext conftest$ac_exeext
11239 if { (ac_try="$ac_link"
11240 case "(($ac_try" in
11241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11242 *) ac_try_echo=$ac_try;;
11243 esac
11244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11245 $as_echo "$ac_try_echo") >&5
11246 (eval "$ac_link") 2>conftest.er1
11247 ac_status=$?
11248 grep -v '^ *+' conftest.er1 >conftest.err
11249 rm -f conftest.er1
11250 cat conftest.err >&5
11251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); } && {
11253 test -z "$ac_c_werror_flag" ||
11254 test ! -s conftest.err
11255 } && test -s conftest$ac_exeext && {
11256 test "$cross_compiling" = yes ||
11257 $as_test_x conftest$ac_exeext
11258 }; then
11259 ac_cv_lib_dl_dlopen=yes
11260 else
11261 $as_echo "$as_me: failed program was:" >&5
11262 sed 's/^/| /' conftest.$ac_ext >&5
11263
11264 ac_cv_lib_dl_dlopen=no
11265 fi
11266
11267 rm -rf conftest.dSYM
11268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11269 conftest$ac_exeext conftest.$ac_ext
11270 LIBS=$ac_check_lib_save_LIBS
11271 fi
11272 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11273 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11274 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11275 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11276 else
11277 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11278 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11279 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11280 $as_echo_n "(cached) " >&6
11281 else
11282 ac_check_lib_save_LIBS=$LIBS
11283 LIBS="-lsvld $LIBS"
11284 cat >conftest.$ac_ext <<_ACEOF
11285 /* confdefs.h. */
11286 _ACEOF
11287 cat confdefs.h >>conftest.$ac_ext
11288 cat >>conftest.$ac_ext <<_ACEOF
11289 /* end confdefs.h. */
11290
11291 /* Override any GCC internal prototype to avoid an error.
11292 Use char because int might match the return type of a GCC
11293 builtin and then its argument prototype would still apply. */
11294 #ifdef __cplusplus
11295 extern "C"
11296 #endif
11297 char dlopen ();
11298 int
11299 main ()
11300 {
11301 return dlopen ();
11302 ;
11303 return 0;
11304 }
11305 _ACEOF
11306 rm -f conftest.$ac_objext conftest$ac_exeext
11307 if { (ac_try="$ac_link"
11308 case "(($ac_try" in
11309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11310 *) ac_try_echo=$ac_try;;
11311 esac
11312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11313 $as_echo "$ac_try_echo") >&5
11314 (eval "$ac_link") 2>conftest.er1
11315 ac_status=$?
11316 grep -v '^ *+' conftest.er1 >conftest.err
11317 rm -f conftest.er1
11318 cat conftest.err >&5
11319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); } && {
11321 test -z "$ac_c_werror_flag" ||
11322 test ! -s conftest.err
11323 } && test -s conftest$ac_exeext && {
11324 test "$cross_compiling" = yes ||
11325 $as_test_x conftest$ac_exeext
11326 }; then
11327 ac_cv_lib_svld_dlopen=yes
11328 else
11329 $as_echo "$as_me: failed program was:" >&5
11330 sed 's/^/| /' conftest.$ac_ext >&5
11331
11332 ac_cv_lib_svld_dlopen=no
11333 fi
11334
11335 rm -rf conftest.dSYM
11336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11337 conftest$ac_exeext conftest.$ac_ext
11338 LIBS=$ac_check_lib_save_LIBS
11339 fi
11340 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11341 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11342 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11343 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11344 else
11345 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11346 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11347 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11348 $as_echo_n "(cached) " >&6
11349 else
11350 ac_check_lib_save_LIBS=$LIBS
11351 LIBS="-ldld $LIBS"
11352 cat >conftest.$ac_ext <<_ACEOF
11353 /* confdefs.h. */
11354 _ACEOF
11355 cat confdefs.h >>conftest.$ac_ext
11356 cat >>conftest.$ac_ext <<_ACEOF
11357 /* end confdefs.h. */
11358
11359 /* Override any GCC internal prototype to avoid an error.
11360 Use char because int might match the return type of a GCC
11361 builtin and then its argument prototype would still apply. */
11362 #ifdef __cplusplus
11363 extern "C"
11364 #endif
11365 char dld_link ();
11366 int
11367 main ()
11368 {
11369 return dld_link ();
11370 ;
11371 return 0;
11372 }
11373 _ACEOF
11374 rm -f conftest.$ac_objext conftest$ac_exeext
11375 if { (ac_try="$ac_link"
11376 case "(($ac_try" in
11377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11378 *) ac_try_echo=$ac_try;;
11379 esac
11380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11381 $as_echo "$ac_try_echo") >&5
11382 (eval "$ac_link") 2>conftest.er1
11383 ac_status=$?
11384 grep -v '^ *+' conftest.er1 >conftest.err
11385 rm -f conftest.er1
11386 cat conftest.err >&5
11387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); } && {
11389 test -z "$ac_c_werror_flag" ||
11390 test ! -s conftest.err
11391 } && test -s conftest$ac_exeext && {
11392 test "$cross_compiling" = yes ||
11393 $as_test_x conftest$ac_exeext
11394 }; then
11395 ac_cv_lib_dld_dld_link=yes
11396 else
11397 $as_echo "$as_me: failed program was:" >&5
11398 sed 's/^/| /' conftest.$ac_ext >&5
11399
11400 ac_cv_lib_dld_dld_link=no
11401 fi
11402
11403 rm -rf conftest.dSYM
11404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11405 conftest$ac_exeext conftest.$ac_ext
11406 LIBS=$ac_check_lib_save_LIBS
11407 fi
11408 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11409 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11410 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11411 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11412 fi
11413
11414
11415 fi
11416
11417
11418 fi
11419
11420
11421 fi
11422
11423
11424 fi
11425
11426
11427 fi
11428
11429 ;;
11430 esac
11431
11432 if test "x$lt_cv_dlopen" != xno; then
11433 enable_dlopen=yes
11434 else
11435 enable_dlopen=no
11436 fi
11437
11438 case $lt_cv_dlopen in
11439 dlopen)
11440 save_CPPFLAGS="$CPPFLAGS"
11441 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11442
11443 save_LDFLAGS="$LDFLAGS"
11444 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11445
11446 save_LIBS="$LIBS"
11447 LIBS="$lt_cv_dlopen_libs $LIBS"
11448
11449 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11450 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11451 if test "${lt_cv_dlopen_self+set}" = set; then
11452 $as_echo_n "(cached) " >&6
11453 else
11454 if test "$cross_compiling" = yes; then :
11455 lt_cv_dlopen_self=cross
11456 else
11457 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11458 lt_status=$lt_dlunknown
11459 cat > conftest.$ac_ext <<_LT_EOF
11460 #line 11460 "configure"
11461 #include "confdefs.h"
11462
11463 #if HAVE_DLFCN_H
11464 #include <dlfcn.h>
11465 #endif
11466
11467 #include <stdio.h>
11468
11469 #ifdef RTLD_GLOBAL
11470 # define LT_DLGLOBAL RTLD_GLOBAL
11471 #else
11472 # ifdef DL_GLOBAL
11473 # define LT_DLGLOBAL DL_GLOBAL
11474 # else
11475 # define LT_DLGLOBAL 0
11476 # endif
11477 #endif
11478
11479 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11480 find out it does not work in some platform. */
11481 #ifndef LT_DLLAZY_OR_NOW
11482 # ifdef RTLD_LAZY
11483 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11484 # else
11485 # ifdef DL_LAZY
11486 # define LT_DLLAZY_OR_NOW DL_LAZY
11487 # else
11488 # ifdef RTLD_NOW
11489 # define LT_DLLAZY_OR_NOW RTLD_NOW
11490 # else
11491 # ifdef DL_NOW
11492 # define LT_DLLAZY_OR_NOW DL_NOW
11493 # else
11494 # define LT_DLLAZY_OR_NOW 0
11495 # endif
11496 # endif
11497 # endif
11498 # endif
11499 #endif
11500
11501 void fnord() { int i=42;}
11502 int main ()
11503 {
11504 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11505 int status = $lt_dlunknown;
11506
11507 if (self)
11508 {
11509 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11510 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11511 /* dlclose (self); */
11512 }
11513 else
11514 puts (dlerror ());
11515
11516 return status;
11517 }
11518 _LT_EOF
11519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11520 (eval $ac_link) 2>&5
11521 ac_status=$?
11522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11524 (./conftest; exit; ) >&5 2>/dev/null
11525 lt_status=$?
11526 case x$lt_status in
11527 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11528 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11529 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11530 esac
11531 else :
11532 # compilation failed
11533 lt_cv_dlopen_self=no
11534 fi
11535 fi
11536 rm -fr conftest*
11537
11538
11539 fi
11540 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11541 $as_echo "$lt_cv_dlopen_self" >&6; }
11542
11543 if test "x$lt_cv_dlopen_self" = xyes; then
11544 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11545 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11546 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11547 if test "${lt_cv_dlopen_self_static+set}" = set; then
11548 $as_echo_n "(cached) " >&6
11549 else
11550 if test "$cross_compiling" = yes; then :
11551 lt_cv_dlopen_self_static=cross
11552 else
11553 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11554 lt_status=$lt_dlunknown
11555 cat > conftest.$ac_ext <<_LT_EOF
11556 #line 11556 "configure"
11557 #include "confdefs.h"
11558
11559 #if HAVE_DLFCN_H
11560 #include <dlfcn.h>
11561 #endif
11562
11563 #include <stdio.h>
11564
11565 #ifdef RTLD_GLOBAL
11566 # define LT_DLGLOBAL RTLD_GLOBAL
11567 #else
11568 # ifdef DL_GLOBAL
11569 # define LT_DLGLOBAL DL_GLOBAL
11570 # else
11571 # define LT_DLGLOBAL 0
11572 # endif
11573 #endif
11574
11575 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11576 find out it does not work in some platform. */
11577 #ifndef LT_DLLAZY_OR_NOW
11578 # ifdef RTLD_LAZY
11579 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11580 # else
11581 # ifdef DL_LAZY
11582 # define LT_DLLAZY_OR_NOW DL_LAZY
11583 # else
11584 # ifdef RTLD_NOW
11585 # define LT_DLLAZY_OR_NOW RTLD_NOW
11586 # else
11587 # ifdef DL_NOW
11588 # define LT_DLLAZY_OR_NOW DL_NOW
11589 # else
11590 # define LT_DLLAZY_OR_NOW 0
11591 # endif
11592 # endif
11593 # endif
11594 # endif
11595 #endif
11596
11597 void fnord() { int i=42;}
11598 int main ()
11599 {
11600 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11601 int status = $lt_dlunknown;
11602
11603 if (self)
11604 {
11605 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11606 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11607 /* dlclose (self); */
11608 }
11609 else
11610 puts (dlerror ());
11611
11612 return status;
11613 }
11614 _LT_EOF
11615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11616 (eval $ac_link) 2>&5
11617 ac_status=$?
11618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11620 (./conftest; exit; ) >&5 2>/dev/null
11621 lt_status=$?
11622 case x$lt_status in
11623 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11624 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11625 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11626 esac
11627 else :
11628 # compilation failed
11629 lt_cv_dlopen_self_static=no
11630 fi
11631 fi
11632 rm -fr conftest*
11633
11634
11635 fi
11636 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11637 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11638 fi
11639
11640 CPPFLAGS="$save_CPPFLAGS"
11641 LDFLAGS="$save_LDFLAGS"
11642 LIBS="$save_LIBS"
11643 ;;
11644 esac
11645
11646 case $lt_cv_dlopen_self in
11647 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11648 *) enable_dlopen_self=unknown ;;
11649 esac
11650
11651 case $lt_cv_dlopen_self_static in
11652 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11653 *) enable_dlopen_self_static=unknown ;;
11654 esac
11655 fi
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673 striplib=
11674 old_striplib=
11675 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11676 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11677 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11678 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11679 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11680 { $as_echo "$as_me:$LINENO: result: yes" >&5
11681 $as_echo "yes" >&6; }
11682 else
11683 # FIXME - insert some real tests, host_os isn't really good enough
11684 case $host_os in
11685 darwin*)
11686 if test -n "$STRIP" ; then
11687 striplib="$STRIP -x"
11688 old_striplib="$STRIP -S"
11689 { $as_echo "$as_me:$LINENO: result: yes" >&5
11690 $as_echo "yes" >&6; }
11691 else
11692 { $as_echo "$as_me:$LINENO: result: no" >&5
11693 $as_echo "no" >&6; }
11694 fi
11695 ;;
11696 *)
11697 { $as_echo "$as_me:$LINENO: result: no" >&5
11698 $as_echo "no" >&6; }
11699 ;;
11700 esac
11701 fi
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714 # Report which library types will actually be built
11715 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11716 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11717 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11718 $as_echo "$can_build_shared" >&6; }
11719
11720 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11721 $as_echo_n "checking whether to build shared libraries... " >&6; }
11722 test "$can_build_shared" = "no" && enable_shared=no
11723
11724 # On AIX, shared libraries and static libraries use the same namespace, and
11725 # are all built from PIC.
11726 case $host_os in
11727 aix3*)
11728 test "$enable_shared" = yes && enable_static=no
11729 if test -n "$RANLIB"; then
11730 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11731 postinstall_cmds='$RANLIB $lib'
11732 fi
11733 ;;
11734
11735 aix[4-9]*)
11736 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11737 test "$enable_shared" = yes && enable_static=no
11738 fi
11739 ;;
11740 esac
11741 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11742 $as_echo "$enable_shared" >&6; }
11743
11744 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11745 $as_echo_n "checking whether to build static libraries... " >&6; }
11746 # Make sure either enable_shared or enable_static is yes.
11747 test "$enable_shared" = yes || enable_static=yes
11748 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11749 $as_echo "$enable_static" >&6; }
11750
11751
11752
11753
11754 fi
11755 ac_ext=c
11756 ac_cpp='$CPP $CPPFLAGS'
11757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11760
11761 CC="$lt_save_CC"
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775 ac_config_commands="$ac_config_commands libtool"
11776
11777
11778
11779
11780 # Only expand once:
11781
11782
11783 ac_ext=c
11784 ac_cpp='$CPP $CPPFLAGS'
11785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11788 if test -n "$ac_tool_prefix"; then
11789 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11790 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11791 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11792 $as_echo_n "checking for $ac_word... " >&6; }
11793 if test "${ac_cv_prog_CC+set}" = set; then
11794 $as_echo_n "(cached) " >&6
11795 else
11796 if test -n "$CC"; then
11797 ac_cv_prog_CC="$CC" # Let the user override the test.
11798 else
11799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11800 for as_dir in $PATH
11801 do
11802 IFS=$as_save_IFS
11803 test -z "$as_dir" && as_dir=.
11804 for ac_exec_ext in '' $ac_executable_extensions; do
11805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11806 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11807 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11808 break 2
11809 fi
11810 done
11811 done
11812 IFS=$as_save_IFS
11813
11814 fi
11815 fi
11816 CC=$ac_cv_prog_CC
11817 if test -n "$CC"; then
11818 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11819 $as_echo "$CC" >&6; }
11820 else
11821 { $as_echo "$as_me:$LINENO: result: no" >&5
11822 $as_echo "no" >&6; }
11823 fi
11824
11825
11826 fi
11827 if test -z "$ac_cv_prog_CC"; then
11828 ac_ct_CC=$CC
11829 # Extract the first word of "gcc", so it can be a program name with args.
11830 set dummy gcc; ac_word=$2
11831 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11832 $as_echo_n "checking for $ac_word... " >&6; }
11833 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11834 $as_echo_n "(cached) " >&6
11835 else
11836 if test -n "$ac_ct_CC"; then
11837 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11838 else
11839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11840 for as_dir in $PATH
11841 do
11842 IFS=$as_save_IFS
11843 test -z "$as_dir" && as_dir=.
11844 for ac_exec_ext in '' $ac_executable_extensions; do
11845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11846 ac_cv_prog_ac_ct_CC="gcc"
11847 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11848 break 2
11849 fi
11850 done
11851 done
11852 IFS=$as_save_IFS
11853
11854 fi
11855 fi
11856 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11857 if test -n "$ac_ct_CC"; then
11858 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11859 $as_echo "$ac_ct_CC" >&6; }
11860 else
11861 { $as_echo "$as_me:$LINENO: result: no" >&5
11862 $as_echo "no" >&6; }
11863 fi
11864
11865 if test "x$ac_ct_CC" = x; then
11866 CC=""
11867 else
11868 case $cross_compiling:$ac_tool_warned in
11869 yes:)
11870 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11872 ac_tool_warned=yes ;;
11873 esac
11874 CC=$ac_ct_CC
11875 fi
11876 else
11877 CC="$ac_cv_prog_CC"
11878 fi
11879
11880 if test -z "$CC"; then
11881 if test -n "$ac_tool_prefix"; then
11882 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11883 set dummy ${ac_tool_prefix}cc; ac_word=$2
11884 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11885 $as_echo_n "checking for $ac_word... " >&6; }
11886 if test "${ac_cv_prog_CC+set}" = set; then
11887 $as_echo_n "(cached) " >&6
11888 else
11889 if test -n "$CC"; then
11890 ac_cv_prog_CC="$CC" # Let the user override the test.
11891 else
11892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11893 for as_dir in $PATH
11894 do
11895 IFS=$as_save_IFS
11896 test -z "$as_dir" && as_dir=.
11897 for ac_exec_ext in '' $ac_executable_extensions; do
11898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11899 ac_cv_prog_CC="${ac_tool_prefix}cc"
11900 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11901 break 2
11902 fi
11903 done
11904 done
11905 IFS=$as_save_IFS
11906
11907 fi
11908 fi
11909 CC=$ac_cv_prog_CC
11910 if test -n "$CC"; then
11911 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11912 $as_echo "$CC" >&6; }
11913 else
11914 { $as_echo "$as_me:$LINENO: result: no" >&5
11915 $as_echo "no" >&6; }
11916 fi
11917
11918
11919 fi
11920 fi
11921 if test -z "$CC"; then
11922 # Extract the first word of "cc", so it can be a program name with args.
11923 set dummy cc; ac_word=$2
11924 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11925 $as_echo_n "checking for $ac_word... " >&6; }
11926 if test "${ac_cv_prog_CC+set}" = set; then
11927 $as_echo_n "(cached) " >&6
11928 else
11929 if test -n "$CC"; then
11930 ac_cv_prog_CC="$CC" # Let the user override the test.
11931 else
11932 ac_prog_rejected=no
11933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11934 for as_dir in $PATH
11935 do
11936 IFS=$as_save_IFS
11937 test -z "$as_dir" && as_dir=.
11938 for ac_exec_ext in '' $ac_executable_extensions; do
11939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11940 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11941 ac_prog_rejected=yes
11942 continue
11943 fi
11944 ac_cv_prog_CC="cc"
11945 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11946 break 2
11947 fi
11948 done
11949 done
11950 IFS=$as_save_IFS
11951
11952 if test $ac_prog_rejected = yes; then
11953 # We found a bogon in the path, so make sure we never use it.
11954 set dummy $ac_cv_prog_CC
11955 shift
11956 if test $# != 0; then
11957 # We chose a different compiler from the bogus one.
11958 # However, it has the same basename, so the bogon will be chosen
11959 # first if we set CC to just the basename; use the full file name.
11960 shift
11961 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11962 fi
11963 fi
11964 fi
11965 fi
11966 CC=$ac_cv_prog_CC
11967 if test -n "$CC"; then
11968 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11969 $as_echo "$CC" >&6; }
11970 else
11971 { $as_echo "$as_me:$LINENO: result: no" >&5
11972 $as_echo "no" >&6; }
11973 fi
11974
11975
11976 fi
11977 if test -z "$CC"; then
11978 if test -n "$ac_tool_prefix"; then
11979 for ac_prog in cl.exe
11980 do
11981 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11982 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11983 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11984 $as_echo_n "checking for $ac_word... " >&6; }
11985 if test "${ac_cv_prog_CC+set}" = set; then
11986 $as_echo_n "(cached) " >&6
11987 else
11988 if test -n "$CC"; then
11989 ac_cv_prog_CC="$CC" # Let the user override the test.
11990 else
11991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11992 for as_dir in $PATH
11993 do
11994 IFS=$as_save_IFS
11995 test -z "$as_dir" && as_dir=.
11996 for ac_exec_ext in '' $ac_executable_extensions; do
11997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11998 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11999 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12000 break 2
12001 fi
12002 done
12003 done
12004 IFS=$as_save_IFS
12005
12006 fi
12007 fi
12008 CC=$ac_cv_prog_CC
12009 if test -n "$CC"; then
12010 { $as_echo "$as_me:$LINENO: result: $CC" >&5
12011 $as_echo "$CC" >&6; }
12012 else
12013 { $as_echo "$as_me:$LINENO: result: no" >&5
12014 $as_echo "no" >&6; }
12015 fi
12016
12017
12018 test -n "$CC" && break
12019 done
12020 fi
12021 if test -z "$CC"; then
12022 ac_ct_CC=$CC
12023 for ac_prog in cl.exe
12024 do
12025 # Extract the first word of "$ac_prog", so it can be a program name with args.
12026 set dummy $ac_prog; ac_word=$2
12027 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12028 $as_echo_n "checking for $ac_word... " >&6; }
12029 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12030 $as_echo_n "(cached) " >&6
12031 else
12032 if test -n "$ac_ct_CC"; then
12033 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12034 else
12035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12036 for as_dir in $PATH
12037 do
12038 IFS=$as_save_IFS
12039 test -z "$as_dir" && as_dir=.
12040 for ac_exec_ext in '' $ac_executable_extensions; do
12041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12042 ac_cv_prog_ac_ct_CC="$ac_prog"
12043 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12044 break 2
12045 fi
12046 done
12047 done
12048 IFS=$as_save_IFS
12049
12050 fi
12051 fi
12052 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12053 if test -n "$ac_ct_CC"; then
12054 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12055 $as_echo "$ac_ct_CC" >&6; }
12056 else
12057 { $as_echo "$as_me:$LINENO: result: no" >&5
12058 $as_echo "no" >&6; }
12059 fi
12060
12061
12062 test -n "$ac_ct_CC" && break
12063 done
12064
12065 if test "x$ac_ct_CC" = x; then
12066 CC=""
12067 else
12068 case $cross_compiling:$ac_tool_warned in
12069 yes:)
12070 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12072 ac_tool_warned=yes ;;
12073 esac
12074 CC=$ac_ct_CC
12075 fi
12076 fi
12077
12078 fi
12079
12080
12081 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12083 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12084 See \`config.log' for more details." >&5
12085 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
12086 See \`config.log' for more details." >&2;}
12087 { (exit 1); exit 1; }; }; }
12088
12089 # Provide some information about the compiler.
12090 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
12091 set X $ac_compile
12092 ac_compiler=$2
12093 { (ac_try="$ac_compiler --version >&5"
12094 case "(($ac_try" in
12095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12096 *) ac_try_echo=$ac_try;;
12097 esac
12098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12099 $as_echo "$ac_try_echo") >&5
12100 (eval "$ac_compiler --version >&5") 2>&5
12101 ac_status=$?
12102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }
12104 { (ac_try="$ac_compiler -v >&5"
12105 case "(($ac_try" in
12106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12107 *) ac_try_echo=$ac_try;;
12108 esac
12109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12110 $as_echo "$ac_try_echo") >&5
12111 (eval "$ac_compiler -v >&5") 2>&5
12112 ac_status=$?
12113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); }
12115 { (ac_try="$ac_compiler -V >&5"
12116 case "(($ac_try" in
12117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118 *) ac_try_echo=$ac_try;;
12119 esac
12120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12121 $as_echo "$ac_try_echo") >&5
12122 (eval "$ac_compiler -V >&5") 2>&5
12123 ac_status=$?
12124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); }
12126
12127 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12128 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12129 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12130 $as_echo_n "(cached) " >&6
12131 else
12132 cat >conftest.$ac_ext <<_ACEOF
12133 /* confdefs.h. */
12134 _ACEOF
12135 cat confdefs.h >>conftest.$ac_ext
12136 cat >>conftest.$ac_ext <<_ACEOF
12137 /* end confdefs.h. */
12138
12139 int
12140 main ()
12141 {
12142 #ifndef __GNUC__
12143 choke me
12144 #endif
12145
12146 ;
12147 return 0;
12148 }
12149 _ACEOF
12150 rm -f conftest.$ac_objext
12151 if { (ac_try="$ac_compile"
12152 case "(($ac_try" in
12153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12154 *) ac_try_echo=$ac_try;;
12155 esac
12156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12157 $as_echo "$ac_try_echo") >&5
12158 (eval "$ac_compile") 2>conftest.er1
12159 ac_status=$?
12160 grep -v '^ *+' conftest.er1 >conftest.err
12161 rm -f conftest.er1
12162 cat conftest.err >&5
12163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); } && {
12165 test -z "$ac_c_werror_flag" ||
12166 test ! -s conftest.err
12167 } && test -s conftest.$ac_objext; then
12168 ac_compiler_gnu=yes
12169 else
12170 $as_echo "$as_me: failed program was:" >&5
12171 sed 's/^/| /' conftest.$ac_ext >&5
12172
12173 ac_compiler_gnu=no
12174 fi
12175
12176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12177 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12178
12179 fi
12180 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12181 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12182 if test $ac_compiler_gnu = yes; then
12183 GCC=yes
12184 else
12185 GCC=
12186 fi
12187 ac_test_CFLAGS=${CFLAGS+set}
12188 ac_save_CFLAGS=$CFLAGS
12189 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12190 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12191 if test "${ac_cv_prog_cc_g+set}" = set; then
12192 $as_echo_n "(cached) " >&6
12193 else
12194 ac_save_c_werror_flag=$ac_c_werror_flag
12195 ac_c_werror_flag=yes
12196 ac_cv_prog_cc_g=no
12197 CFLAGS="-g"
12198 cat >conftest.$ac_ext <<_ACEOF
12199 /* confdefs.h. */
12200 _ACEOF
12201 cat confdefs.h >>conftest.$ac_ext
12202 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h. */
12204
12205 int
12206 main ()
12207 {
12208
12209 ;
12210 return 0;
12211 }
12212 _ACEOF
12213 rm -f conftest.$ac_objext
12214 if { (ac_try="$ac_compile"
12215 case "(($ac_try" in
12216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217 *) ac_try_echo=$ac_try;;
12218 esac
12219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12220 $as_echo "$ac_try_echo") >&5
12221 (eval "$ac_compile") 2>conftest.er1
12222 ac_status=$?
12223 grep -v '^ *+' conftest.er1 >conftest.err
12224 rm -f conftest.er1
12225 cat conftest.err >&5
12226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } && {
12228 test -z "$ac_c_werror_flag" ||
12229 test ! -s conftest.err
12230 } && test -s conftest.$ac_objext; then
12231 ac_cv_prog_cc_g=yes
12232 else
12233 $as_echo "$as_me: failed program was:" >&5
12234 sed 's/^/| /' conftest.$ac_ext >&5
12235
12236 CFLAGS=""
12237 cat >conftest.$ac_ext <<_ACEOF
12238 /* confdefs.h. */
12239 _ACEOF
12240 cat confdefs.h >>conftest.$ac_ext
12241 cat >>conftest.$ac_ext <<_ACEOF
12242 /* end confdefs.h. */
12243
12244 int
12245 main ()
12246 {
12247
12248 ;
12249 return 0;
12250 }
12251 _ACEOF
12252 rm -f conftest.$ac_objext
12253 if { (ac_try="$ac_compile"
12254 case "(($ac_try" in
12255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12256 *) ac_try_echo=$ac_try;;
12257 esac
12258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12259 $as_echo "$ac_try_echo") >&5
12260 (eval "$ac_compile") 2>conftest.er1
12261 ac_status=$?
12262 grep -v '^ *+' conftest.er1 >conftest.err
12263 rm -f conftest.er1
12264 cat conftest.err >&5
12265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); } && {
12267 test -z "$ac_c_werror_flag" ||
12268 test ! -s conftest.err
12269 } && test -s conftest.$ac_objext; then
12270 :
12271 else
12272 $as_echo "$as_me: failed program was:" >&5
12273 sed 's/^/| /' conftest.$ac_ext >&5
12274
12275 ac_c_werror_flag=$ac_save_c_werror_flag
12276 CFLAGS="-g"
12277 cat >conftest.$ac_ext <<_ACEOF
12278 /* confdefs.h. */
12279 _ACEOF
12280 cat confdefs.h >>conftest.$ac_ext
12281 cat >>conftest.$ac_ext <<_ACEOF
12282 /* end confdefs.h. */
12283
12284 int
12285 main ()
12286 {
12287
12288 ;
12289 return 0;
12290 }
12291 _ACEOF
12292 rm -f conftest.$ac_objext
12293 if { (ac_try="$ac_compile"
12294 case "(($ac_try" in
12295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12296 *) ac_try_echo=$ac_try;;
12297 esac
12298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12299 $as_echo "$ac_try_echo") >&5
12300 (eval "$ac_compile") 2>conftest.er1
12301 ac_status=$?
12302 grep -v '^ *+' conftest.er1 >conftest.err
12303 rm -f conftest.er1
12304 cat conftest.err >&5
12305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); } && {
12307 test -z "$ac_c_werror_flag" ||
12308 test ! -s conftest.err
12309 } && test -s conftest.$ac_objext; then
12310 ac_cv_prog_cc_g=yes
12311 else
12312 $as_echo "$as_me: failed program was:" >&5
12313 sed 's/^/| /' conftest.$ac_ext >&5
12314
12315
12316 fi
12317
12318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12319 fi
12320
12321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12322 fi
12323
12324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12325 ac_c_werror_flag=$ac_save_c_werror_flag
12326 fi
12327 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12328 $as_echo "$ac_cv_prog_cc_g" >&6; }
12329 if test "$ac_test_CFLAGS" = set; then
12330 CFLAGS=$ac_save_CFLAGS
12331 elif test $ac_cv_prog_cc_g = yes; then
12332 if test "$GCC" = yes; then
12333 CFLAGS="-g -O2"
12334 else
12335 CFLAGS="-g"
12336 fi
12337 else
12338 if test "$GCC" = yes; then
12339 CFLAGS="-O2"
12340 else
12341 CFLAGS=
12342 fi
12343 fi
12344 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
12345 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12346 if test "${ac_cv_prog_cc_c89+set}" = set; then
12347 $as_echo_n "(cached) " >&6
12348 else
12349 ac_cv_prog_cc_c89=no
12350 ac_save_CC=$CC
12351 cat >conftest.$ac_ext <<_ACEOF
12352 /* confdefs.h. */
12353 _ACEOF
12354 cat confdefs.h >>conftest.$ac_ext
12355 cat >>conftest.$ac_ext <<_ACEOF
12356 /* end confdefs.h. */
12357 #include <stdarg.h>
12358 #include <stdio.h>
12359 #include <sys/types.h>
12360 #include <sys/stat.h>
12361 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12362 struct buf { int x; };
12363 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12364 static char *e (p, i)
12365 char **p;
12366 int i;
12367 {
12368 return p[i];
12369 }
12370 static char *f (char * (*g) (char **, int), char **p, ...)
12371 {
12372 char *s;
12373 va_list v;
12374 va_start (v,p);
12375 s = g (p, va_arg (v,int));
12376 va_end (v);
12377 return s;
12378 }
12379
12380 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12381 function prototypes and stuff, but not '\xHH' hex character constants.
12382 These don't provoke an error unfortunately, instead are silently treated
12383 as 'x'. The following induces an error, until -std is added to get
12384 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12385 array size at least. It's necessary to write '\x00'==0 to get something
12386 that's true only with -std. */
12387 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12388
12389 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12390 inside strings and character constants. */
12391 #define FOO(x) 'x'
12392 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12393
12394 int test (int i, double x);
12395 struct s1 {int (*f) (int a);};
12396 struct s2 {int (*f) (double a);};
12397 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12398 int argc;
12399 char **argv;
12400 int
12401 main ()
12402 {
12403 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12404 ;
12405 return 0;
12406 }
12407 _ACEOF
12408 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12409 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12410 do
12411 CC="$ac_save_CC $ac_arg"
12412 rm -f conftest.$ac_objext
12413 if { (ac_try="$ac_compile"
12414 case "(($ac_try" in
12415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12416 *) ac_try_echo=$ac_try;;
12417 esac
12418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12419 $as_echo "$ac_try_echo") >&5
12420 (eval "$ac_compile") 2>conftest.er1
12421 ac_status=$?
12422 grep -v '^ *+' conftest.er1 >conftest.err
12423 rm -f conftest.er1
12424 cat conftest.err >&5
12425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } && {
12427 test -z "$ac_c_werror_flag" ||
12428 test ! -s conftest.err
12429 } && test -s conftest.$ac_objext; then
12430 ac_cv_prog_cc_c89=$ac_arg
12431 else
12432 $as_echo "$as_me: failed program was:" >&5
12433 sed 's/^/| /' conftest.$ac_ext >&5
12434
12435
12436 fi
12437
12438 rm -f core conftest.err conftest.$ac_objext
12439 test "x$ac_cv_prog_cc_c89" != "xno" && break
12440 done
12441 rm -f conftest.$ac_ext
12442 CC=$ac_save_CC
12443
12444 fi
12445 # AC_CACHE_VAL
12446 case "x$ac_cv_prog_cc_c89" in
12447 x)
12448 { $as_echo "$as_me:$LINENO: result: none needed" >&5
12449 $as_echo "none needed" >&6; } ;;
12450 xno)
12451 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
12452 $as_echo "unsupported" >&6; } ;;
12453 *)
12454 CC="$CC $ac_cv_prog_cc_c89"
12455 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
12456 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12457 esac
12458
12459
12460 ac_ext=c
12461 ac_cpp='$CPP $CPPFLAGS'
12462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12465
12466 depcc="$CC" am_compiler_list=
12467
12468 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12469 $as_echo_n "checking dependency style of $depcc... " >&6; }
12470 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12471 $as_echo_n "(cached) " >&6
12472 else
12473 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12474 # We make a subdir and do the tests there. Otherwise we can end up
12475 # making bogus files that we don't know about and never remove. For
12476 # instance it was reported that on HP-UX the gcc test will end up
12477 # making a dummy file named `D' -- because `-MD' means `put the output
12478 # in D'.
12479 mkdir conftest.dir
12480 # Copy depcomp to subdir because otherwise we won't find it if we're
12481 # using a relative directory.
12482 cp "$am_depcomp" conftest.dir
12483 cd conftest.dir
12484 # We will build objects and dependencies in a subdirectory because
12485 # it helps to detect inapplicable dependency modes. For instance
12486 # both Tru64's cc and ICC support -MD to output dependencies as a
12487 # side effect of compilation, but ICC will put the dependencies in
12488 # the current directory while Tru64 will put them in the object
12489 # directory.
12490 mkdir sub
12491
12492 am_cv_CC_dependencies_compiler_type=none
12493 if test "$am_compiler_list" = ""; then
12494 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12495 fi
12496 for depmode in $am_compiler_list; do
12497 # Setup a source with many dependencies, because some compilers
12498 # like to wrap large dependency lists on column 80 (with \), and
12499 # we should not choose a depcomp mode which is confused by this.
12500 #
12501 # We need to recreate these files for each test, as the compiler may
12502 # overwrite some of them when testing with obscure command lines.
12503 # This happens at least with the AIX C compiler.
12504 : > sub/conftest.c
12505 for i in 1 2 3 4 5 6; do
12506 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12507 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12508 # Solaris 8's {/usr,}/bin/sh.
12509 touch sub/conftst$i.h
12510 done
12511 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12512
12513 case $depmode in
12514 nosideeffect)
12515 # after this tag, mechanisms are not by side-effect, so they'll
12516 # only be used when explicitly requested
12517 if test "x$enable_dependency_tracking" = xyes; then
12518 continue
12519 else
12520 break
12521 fi
12522 ;;
12523 none) break ;;
12524 esac
12525 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12526 # mode. It turns out that the SunPro C++ compiler does not properly
12527 # handle `-M -o', and we need to detect this.
12528 if depmode=$depmode \
12529 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12530 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12531 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12532 >/dev/null 2>conftest.err &&
12533 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12534 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12535 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12536 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12537 # icc doesn't choke on unknown options, it will just issue warnings
12538 # or remarks (even with -Werror). So we grep stderr for any message
12539 # that says an option was ignored or not supported.
12540 # When given -MP, icc 7.0 and 7.1 complain thusly:
12541 # icc: Command line warning: ignoring option '-M'; no argument required
12542 # The diagnosis changed in icc 8.0:
12543 # icc: Command line remark: option '-MP' not supported
12544 if (grep 'ignoring option' conftest.err ||
12545 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12546 am_cv_CC_dependencies_compiler_type=$depmode
12547 break
12548 fi
12549 fi
12550 done
12551
12552 cd ..
12553 rm -rf conftest.dir
12554 else
12555 am_cv_CC_dependencies_compiler_type=none
12556 fi
12557
12558 fi
12559 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12560 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12561 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12562
12563 if
12564 test "x$enable_dependency_tracking" != xno \
12565 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12566 am__fastdepCC_TRUE=
12567 am__fastdepCC_FALSE='#'
12568 else
12569 am__fastdepCC_TRUE='#'
12570 am__fastdepCC_FALSE=
12571 fi
12572
12573
12574
12575
12576
12577
12578
12579 # Check whether --with-xorg-module-dir was given.
12580 if test "${with_xorg_module_dir+set}" = set; then
12581 withval=$with_xorg_module_dir; moduledir="$withval"
12582 else
12583 moduledir="$libdir/xorg/modules"
12584 fi
12585
12586
12587 # Checks for extensions
12588
12589 SAVE_CFLAGS="$CFLAGS"
12590 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12591 cat >conftest.$ac_ext <<_ACEOF
12592 /* confdefs.h. */
12593 _ACEOF
12594 cat confdefs.h >>conftest.$ac_ext
12595 cat >>conftest.$ac_ext <<_ACEOF
12596 /* end confdefs.h. */
12597
12598 #include "xorg-server.h"
12599 #if !defined RANDR
12600 #error RANDR not defined
12601 #endif
12602
12603 int
12604 main ()
12605 {
12606
12607 ;
12608 return 0;
12609 }
12610 _ACEOF
12611 rm -f conftest.$ac_objext
12612 if { (ac_try="$ac_compile"
12613 case "(($ac_try" in
12614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12615 *) ac_try_echo=$ac_try;;
12616 esac
12617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12618 $as_echo "$ac_try_echo") >&5
12619 (eval "$ac_compile") 2>conftest.er1
12620 ac_status=$?
12621 grep -v '^ *+' conftest.er1 >conftest.err
12622 rm -f conftest.er1
12623 cat conftest.err >&5
12624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); } && {
12626 test -z "$ac_c_werror_flag" ||
12627 test ! -s conftest.err
12628 } && test -s conftest.$ac_objext; then
12629 _EXT_CHECK=yes
12630 else
12631 $as_echo "$as_me: failed program was:" >&5
12632 sed 's/^/| /' conftest.$ac_ext >&5
12633
12634 _EXT_CHECK=no
12635 fi
12636
12637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12638 CFLAGS="$SAVE_CFLAGS"
12639 { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5
12640 $as_echo_n "checking if RANDR is defined... " >&6; }
12641 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12642 $as_echo "$_EXT_CHECK" >&6; }
12643 if test "$_EXT_CHECK" != no; then
12644 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
12645 fi
12646
12647
12648 SAVE_CFLAGS="$CFLAGS"
12649 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12650 cat >conftest.$ac_ext <<_ACEOF
12651 /* confdefs.h. */
12652 _ACEOF
12653 cat confdefs.h >>conftest.$ac_ext
12654 cat >>conftest.$ac_ext <<_ACEOF
12655 /* end confdefs.h. */
12656
12657 #include "xorg-server.h"
12658 #if !defined RENDER
12659 #error RENDER not defined
12660 #endif
12661
12662 int
12663 main ()
12664 {
12665
12666 ;
12667 return 0;
12668 }
12669 _ACEOF
12670 rm -f conftest.$ac_objext
12671 if { (ac_try="$ac_compile"
12672 case "(($ac_try" in
12673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12674 *) ac_try_echo=$ac_try;;
12675 esac
12676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12677 $as_echo "$ac_try_echo") >&5
12678 (eval "$ac_compile") 2>conftest.er1
12679 ac_status=$?
12680 grep -v '^ *+' conftest.er1 >conftest.err
12681 rm -f conftest.er1
12682 cat conftest.err >&5
12683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); } && {
12685 test -z "$ac_c_werror_flag" ||
12686 test ! -s conftest.err
12687 } && test -s conftest.$ac_objext; then
12688 _EXT_CHECK=yes
12689 else
12690 $as_echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12692
12693 _EXT_CHECK=no
12694 fi
12695
12696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12697 CFLAGS="$SAVE_CFLAGS"
12698 { $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5
12699 $as_echo_n "checking if RENDER is defined... " >&6; }
12700 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12701 $as_echo "$_EXT_CHECK" >&6; }
12702 if test "$_EXT_CHECK" != no; then
12703 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
12704 fi
12705
12706
12707 SAVE_CFLAGS="$CFLAGS"
12708 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12709 cat >conftest.$ac_ext <<_ACEOF
12710 /* confdefs.h. */
12711 _ACEOF
12712 cat confdefs.h >>conftest.$ac_ext
12713 cat >>conftest.$ac_ext <<_ACEOF
12714 /* end confdefs.h. */
12715
12716 #include "xorg-server.h"
12717 #if !defined DPMSExtension
12718 #error DPMSExtension not defined
12719 #endif
12720
12721 int
12722 main ()
12723 {
12724
12725 ;
12726 return 0;
12727 }
12728 _ACEOF
12729 rm -f conftest.$ac_objext
12730 if { (ac_try="$ac_compile"
12731 case "(($ac_try" in
12732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12733 *) ac_try_echo=$ac_try;;
12734 esac
12735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12736 $as_echo "$ac_try_echo") >&5
12737 (eval "$ac_compile") 2>conftest.er1
12738 ac_status=$?
12739 grep -v '^ *+' conftest.er1 >conftest.err
12740 rm -f conftest.er1
12741 cat conftest.err >&5
12742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); } && {
12744 test -z "$ac_c_werror_flag" ||
12745 test ! -s conftest.err
12746 } && test -s conftest.$ac_objext; then
12747 _EXT_CHECK=yes
12748 else
12749 $as_echo "$as_me: failed program was:" >&5
12750 sed 's/^/| /' conftest.$ac_ext >&5
12751
12752 _EXT_CHECK=no
12753 fi
12754
12755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12756 CFLAGS="$SAVE_CFLAGS"
12757 { $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
12758 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
12759 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12760 $as_echo "$_EXT_CHECK" >&6; }
12761 if test "$_EXT_CHECK" != no; then
12762 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
12763 fi
12764
12765
12766 SAVE_CFLAGS="$CFLAGS"
12767 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12768 cat >conftest.$ac_ext <<_ACEOF
12769 /* confdefs.h. */
12770 _ACEOF
12771 cat confdefs.h >>conftest.$ac_ext
12772 cat >>conftest.$ac_ext <<_ACEOF
12773 /* end confdefs.h. */
12774
12775 #include "xorg-server.h"
12776 #if !defined XINERAMA
12777 #error XINERAMA not defined
12778 #endif
12779
12780 int
12781 main ()
12782 {
12783
12784 ;
12785 return 0;
12786 }
12787 _ACEOF
12788 rm -f conftest.$ac_objext
12789 if { (ac_try="$ac_compile"
12790 case "(($ac_try" in
12791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12792 *) ac_try_echo=$ac_try;;
12793 esac
12794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12795 $as_echo "$ac_try_echo") >&5
12796 (eval "$ac_compile") 2>conftest.er1
12797 ac_status=$?
12798 grep -v '^ *+' conftest.er1 >conftest.err
12799 rm -f conftest.er1
12800 cat conftest.err >&5
12801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); } && {
12803 test -z "$ac_c_werror_flag" ||
12804 test ! -s conftest.err
12805 } && test -s conftest.$ac_objext; then
12806 _EXT_CHECK=yes
12807 else
12808 $as_echo "$as_me: failed program was:" >&5
12809 sed 's/^/| /' conftest.$ac_ext >&5
12810
12811 _EXT_CHECK=no
12812 fi
12813
12814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12815 CFLAGS="$SAVE_CFLAGS"
12816 { $as_echo "$as_me:$LINENO: checking if XINERAMA is defined" >&5
12817 $as_echo_n "checking if XINERAMA is defined... " >&6; }
12818 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12819 $as_echo "$_EXT_CHECK" >&6; }
12820 if test "$_EXT_CHECK" != no; then
12821 REQUIRED_MODULES="$REQUIRED_MODULES xineramaproto"
12822 fi
12823
12824
12825 SAVE_CFLAGS="$CFLAGS"
12826 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12827 cat >conftest.$ac_ext <<_ACEOF
12828 /* confdefs.h. */
12829 _ACEOF
12830 cat confdefs.h >>conftest.$ac_ext
12831 cat >>conftest.$ac_ext <<_ACEOF
12832 /* end confdefs.h. */
12833
12834 #include "xorg-server.h"
12835 #if !defined XV
12836 #error XV not defined
12837 #endif
12838
12839 int
12840 main ()
12841 {
12842
12843 ;
12844 return 0;
12845 }
12846 _ACEOF
12847 rm -f conftest.$ac_objext
12848 if { (ac_try="$ac_compile"
12849 case "(($ac_try" in
12850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12851 *) ac_try_echo=$ac_try;;
12852 esac
12853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12854 $as_echo "$ac_try_echo") >&5
12855 (eval "$ac_compile") 2>conftest.er1
12856 ac_status=$?
12857 grep -v '^ *+' conftest.er1 >conftest.err
12858 rm -f conftest.er1
12859 cat conftest.err >&5
12860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); } && {
12862 test -z "$ac_c_werror_flag" ||
12863 test ! -s conftest.err
12864 } && test -s conftest.$ac_objext; then
12865 _EXT_CHECK=yes
12866 else
12867 $as_echo "$as_me: failed program was:" >&5
12868 sed 's/^/| /' conftest.$ac_ext >&5
12869
12870 _EXT_CHECK=no
12871 fi
12872
12873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12874 CFLAGS="$SAVE_CFLAGS"
12875 { $as_echo "$as_me:$LINENO: checking if XV is defined" >&5
12876 $as_echo_n "checking if XV is defined... " >&6; }
12877 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12878 $as_echo "$_EXT_CHECK" >&6; }
12879 if test "$_EXT_CHECK" != no; then
12880 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
12881 fi
12882
12883
12884 # Checks for pkg-config packages
12885
12886 pkg_failed=no
12887 { $as_echo "$as_me:$LINENO: checking for XORG" >&5
12888 $as_echo_n "checking for XORG... " >&6; }
12889
12890 if test -n "$PKG_CONFIG"; then
12891 if test -n "$XORG_CFLAGS"; then
12892 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
12893 else
12894 if test -n "$PKG_CONFIG" && \
12895 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.1 xproto fontsproto \$REQUIRED_MODULES\"") >&5
12896 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES") 2>&5
12897 ac_status=$?
12898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); }; then
12900 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
12901 else
12902 pkg_failed=yes
12903 fi
12904 fi
12905 else
12906 pkg_failed=untried
12907 fi
12908 if test -n "$PKG_CONFIG"; then
12909 if test -n "$XORG_LIBS"; then
12910 pkg_cv_XORG_LIBS="$XORG_LIBS"
12911 else
12912 if test -n "$PKG_CONFIG" && \
12913 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.1 xproto fontsproto \$REQUIRED_MODULES\"") >&5
12914 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES") 2>&5
12915 ac_status=$?
12916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); }; then
12918 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
12919 else
12920 pkg_failed=yes
12921 fi
12922 fi
12923 else
12924 pkg_failed=untried
12925 fi
12926
12927
12928
12929 if test $pkg_failed = yes; then
12930
12931 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12932 _pkg_short_errors_supported=yes
12933 else
12934 _pkg_short_errors_supported=no
12935 fi
12936 if test $_pkg_short_errors_supported = yes; then
12937 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES"`
12938 else
12939 XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES"`
12940 fi
12941 # Put the nasty error message in config.log where it belongs
12942 echo "$XORG_PKG_ERRORS" >&5
12943
12944 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES) were not met:
12945
12946 $XORG_PKG_ERRORS
12947
12948 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12949 installed software in a non-standard prefix.
12950
12951 Alternatively, you may set the environment variables XORG_CFLAGS
12952 and XORG_LIBS to avoid the need to call pkg-config.
12953 See the pkg-config man page for more details.
12954 " >&5
12955 $as_echo "$as_me: error: Package requirements (xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES) were not met:
12956
12957 $XORG_PKG_ERRORS
12958
12959 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12960 installed software in a non-standard prefix.
12961
12962 Alternatively, you may set the environment variables XORG_CFLAGS
12963 and XORG_LIBS to avoid the need to call pkg-config.
12964 See the pkg-config man page for more details.
12965 " >&2;}
12966 { (exit 1); exit 1; }; }
12967 elif test $pkg_failed = untried; then
12968 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12970 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12971 is in your PATH or set the PKG_CONFIG environment variable to the full
12972 path to pkg-config.
12973
12974 Alternatively, you may set the environment variables XORG_CFLAGS
12975 and XORG_LIBS to avoid the need to call pkg-config.
12976 See the pkg-config man page for more details.
12977
12978 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12979 See \`config.log' for more details." >&5
12980 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12981 is in your PATH or set the PKG_CONFIG environment variable to the full
12982 path to pkg-config.
12983
12984 Alternatively, you may set the environment variables XORG_CFLAGS
12985 and XORG_LIBS to avoid the need to call pkg-config.
12986 See the pkg-config man page for more details.
12987
12988 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12989 See \`config.log' for more details." >&2;}
12990 { (exit 1); exit 1; }; }; }
12991 else
12992 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
12993 XORG_LIBS=$pkg_cv_XORG_LIBS
12994 { $as_echo "$as_me:$LINENO: result: yes" >&5
12995 $as_echo "yes" >&6; }
12996 :
12997 fi
12998
12999 pkg_failed=no
13000 { $as_echo "$as_me:$LINENO: checking for DRM" >&5
13001 $as_echo_n "checking for DRM... " >&6; }
13002
13003 if test -n "$PKG_CONFIG"; then
13004 if test -n "$DRM_CFLAGS"; then
13005 pkg_cv_DRM_CFLAGS="$DRM_CFLAGS"
13006 else
13007 if test -n "$PKG_CONFIG" && \
13008 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm\"") >&5
13009 ($PKG_CONFIG --exists --print-errors "libdrm") 2>&5
13010 ac_status=$?
13011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); }; then
13013 pkg_cv_DRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm" 2>/dev/null`
13014 else
13015 pkg_failed=yes
13016 fi
13017 fi
13018 else
13019 pkg_failed=untried
13020 fi
13021 if test -n "$PKG_CONFIG"; then
13022 if test -n "$DRM_LIBS"; then
13023 pkg_cv_DRM_LIBS="$DRM_LIBS"
13024 else
13025 if test -n "$PKG_CONFIG" && \
13026 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm\"") >&5
13027 ($PKG_CONFIG --exists --print-errors "libdrm") 2>&5
13028 ac_status=$?
13029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); }; then
13031 pkg_cv_DRM_LIBS=`$PKG_CONFIG --libs "libdrm" 2>/dev/null`
13032 else
13033 pkg_failed=yes
13034 fi
13035 fi
13036 else
13037 pkg_failed=untried
13038 fi
13039
13040
13041
13042 if test $pkg_failed = yes; then
13043
13044 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13045 _pkg_short_errors_supported=yes
13046 else
13047 _pkg_short_errors_supported=no
13048 fi
13049 if test $_pkg_short_errors_supported = yes; then
13050 DRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libdrm"`
13051 else
13052 DRM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libdrm"`
13053 fi
13054 # Put the nasty error message in config.log where it belongs
13055 echo "$DRM_PKG_ERRORS" >&5
13056
13057 { { $as_echo "$as_me:$LINENO: error: Package requirements (libdrm) were not met:
13058
13059 $DRM_PKG_ERRORS
13060
13061 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13062 installed software in a non-standard prefix.
13063
13064 Alternatively, you may set the environment variables DRM_CFLAGS
13065 and DRM_LIBS to avoid the need to call pkg-config.
13066 See the pkg-config man page for more details.
13067 " >&5
13068 $as_echo "$as_me: error: Package requirements (libdrm) were not met:
13069
13070 $DRM_PKG_ERRORS
13071
13072 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13073 installed software in a non-standard prefix.
13074
13075 Alternatively, you may set the environment variables DRM_CFLAGS
13076 and DRM_LIBS to avoid the need to call pkg-config.
13077 See the pkg-config man page for more details.
13078 " >&2;}
13079 { (exit 1); exit 1; }; }
13080 elif test $pkg_failed = untried; then
13081 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13083 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
13084 is in your PATH or set the PKG_CONFIG environment variable to the full
13085 path to pkg-config.
13086
13087 Alternatively, you may set the environment variables DRM_CFLAGS
13088 and DRM_LIBS to avoid the need to call pkg-config.
13089 See the pkg-config man page for more details.
13090
13091 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13092 See \`config.log' for more details." >&5
13093 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
13094 is in your PATH or set the PKG_CONFIG environment variable to the full
13095 path to pkg-config.
13096
13097 Alternatively, you may set the environment variables DRM_CFLAGS
13098 and DRM_LIBS to avoid the need to call pkg-config.
13099 See the pkg-config man page for more details.
13100
13101 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13102 See \`config.log' for more details." >&2;}
13103 { (exit 1); exit 1; }; }; }
13104 else
13105 DRM_CFLAGS=$pkg_cv_DRM_CFLAGS
13106 DRM_LIBS=$pkg_cv_DRM_LIBS
13107 { $as_echo "$as_me:$LINENO: result: yes" >&5
13108 $as_echo "yes" >&6; }
13109 :
13110 fi
13111
13112 if test -n "$PKG_CONFIG" && \
13113 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0\"") >&5
13114 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0") 2>&5
13115 ac_status=$?
13116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); }; then
13118
13119 cat >>confdefs.h <<\_ACEOF
13120 #define HAVE_XORG_SERVER_1_1_0 1
13121 _ACEOF
13122
13123 fi
13124
13125 if test -n "$PKG_CONFIG" && \
13126 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901\"") >&5
13127 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901") 2>&5
13128 ac_status=$?
13129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); }; then
13131
13132 cat >>confdefs.h <<\_ACEOF
13133 #define HAVE_XORG_SERVER_1_0_99_901 1
13134 _ACEOF
13135
13136 fi
13137
13138 if test -n "$PKG_CONFIG" && \
13139 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2.0\"") >&5
13140 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2.0") 2>&5
13141 ac_status=$?
13142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); }; then
13144
13145 cat >>confdefs.h <<\_ACEOF
13146 #define HAVE_XORG_SERVER_1_2_0 1
13147 _ACEOF
13148
13149 fi
13150
13151 if test -n "$PKG_CONFIG" && \
13152 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.7.0\"") >&5
13153 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.7.0") 2>&5
13154 ac_status=$?
13155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; then
13157
13158 cat >>confdefs.h <<\_ACEOF
13159 #define HAVE_XORG_SERVER_1_7_0 1
13160 _ACEOF
13161
13162 fi
13163
13164
13165 # Checks for libraries.
13166
13167 # Checks for header files.
13168 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13169 $as_echo_n "checking for ANSI C header files... " >&6; }
13170 if test "${ac_cv_header_stdc+set}" = set; then
13171 $as_echo_n "(cached) " >&6
13172 else
13173 cat >conftest.$ac_ext <<_ACEOF
13174 /* confdefs.h. */
13175 _ACEOF
13176 cat confdefs.h >>conftest.$ac_ext
13177 cat >>conftest.$ac_ext <<_ACEOF
13178 /* end confdefs.h. */
13179 #include <stdlib.h>
13180 #include <stdarg.h>
13181 #include <string.h>
13182 #include <float.h>
13183
13184 int
13185 main ()
13186 {
13187
13188 ;
13189 return 0;
13190 }
13191 _ACEOF
13192 rm -f conftest.$ac_objext
13193 if { (ac_try="$ac_compile"
13194 case "(($ac_try" in
13195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13196 *) ac_try_echo=$ac_try;;
13197 esac
13198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13199 $as_echo "$ac_try_echo") >&5
13200 (eval "$ac_compile") 2>conftest.er1
13201 ac_status=$?
13202 grep -v '^ *+' conftest.er1 >conftest.err
13203 rm -f conftest.er1
13204 cat conftest.err >&5
13205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); } && {
13207 test -z "$ac_c_werror_flag" ||
13208 test ! -s conftest.err
13209 } && test -s conftest.$ac_objext; then
13210 ac_cv_header_stdc=yes
13211 else
13212 $as_echo "$as_me: failed program was:" >&5
13213 sed 's/^/| /' conftest.$ac_ext >&5
13214
13215 ac_cv_header_stdc=no
13216 fi
13217
13218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13219
13220 if test $ac_cv_header_stdc = yes; then
13221 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13222 cat >conftest.$ac_ext <<_ACEOF
13223 /* confdefs.h. */
13224 _ACEOF
13225 cat confdefs.h >>conftest.$ac_ext
13226 cat >>conftest.$ac_ext <<_ACEOF
13227 /* end confdefs.h. */
13228 #include <string.h>
13229
13230 _ACEOF
13231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13232 $EGREP "memchr" >/dev/null 2>&1; then
13233 :
13234 else
13235 ac_cv_header_stdc=no
13236 fi
13237 rm -f conftest*
13238
13239 fi
13240
13241 if test $ac_cv_header_stdc = yes; then
13242 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13243 cat >conftest.$ac_ext <<_ACEOF
13244 /* confdefs.h. */
13245 _ACEOF
13246 cat confdefs.h >>conftest.$ac_ext
13247 cat >>conftest.$ac_ext <<_ACEOF
13248 /* end confdefs.h. */
13249 #include <stdlib.h>
13250
13251 _ACEOF
13252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13253 $EGREP "free" >/dev/null 2>&1; then
13254 :
13255 else
13256 ac_cv_header_stdc=no
13257 fi
13258 rm -f conftest*
13259
13260 fi
13261
13262 if test $ac_cv_header_stdc = yes; then
13263 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13264 if test "$cross_compiling" = yes; then
13265 :
13266 else
13267 cat >conftest.$ac_ext <<_ACEOF
13268 /* confdefs.h. */
13269 _ACEOF
13270 cat confdefs.h >>conftest.$ac_ext
13271 cat >>conftest.$ac_ext <<_ACEOF
13272 /* end confdefs.h. */
13273 #include <ctype.h>
13274 #include <stdlib.h>
13275 #if ((' ' & 0x0FF) == 0x020)
13276 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13277 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13278 #else
13279 # define ISLOWER(c) \
13280 (('a' <= (c) && (c) <= 'i') \
13281 || ('j' <= (c) && (c) <= 'r') \
13282 || ('s' <= (c) && (c) <= 'z'))
13283 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13284 #endif
13285
13286 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13287 int
13288 main ()
13289 {
13290 int i;
13291 for (i = 0; i < 256; i++)
13292 if (XOR (islower (i), ISLOWER (i))
13293 || toupper (i) != TOUPPER (i))
13294 return 2;
13295 return 0;
13296 }
13297 _ACEOF
13298 rm -f conftest$ac_exeext
13299 if { (ac_try="$ac_link"
13300 case "(($ac_try" in
13301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13302 *) ac_try_echo=$ac_try;;
13303 esac
13304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13305 $as_echo "$ac_try_echo") >&5
13306 (eval "$ac_link") 2>&5
13307 ac_status=$?
13308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13310 { (case "(($ac_try" in
13311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13312 *) ac_try_echo=$ac_try;;
13313 esac
13314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13315 $as_echo "$ac_try_echo") >&5
13316 (eval "$ac_try") 2>&5
13317 ac_status=$?
13318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); }; }; then
13320 :
13321 else
13322 $as_echo "$as_me: program exited with status $ac_status" >&5
13323 $as_echo "$as_me: failed program was:" >&5
13324 sed 's/^/| /' conftest.$ac_ext >&5
13325
13326 ( exit $ac_status )
13327 ac_cv_header_stdc=no
13328 fi
13329 rm -rf conftest.dSYM
13330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13331 fi
13332
13333
13334 fi
13335 fi
13336 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13337 $as_echo "$ac_cv_header_stdc" >&6; }
13338 if test $ac_cv_header_stdc = yes; then
13339
13340 cat >>confdefs.h <<\_ACEOF
13341 #define STDC_HEADERS 1
13342 _ACEOF
13343
13344 fi
13345
13346 save_CFLAGS="$CFLAGS"
13347 CFLAGS="$XORG_CFLAGS"
13348 { $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5
13349 $as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; }
13350 if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then
13351 $as_echo_n "(cached) " >&6
13352 else
13353 cat >conftest.$ac_ext <<_ACEOF
13354 /* confdefs.h. */
13355 _ACEOF
13356 cat confdefs.h >>conftest.$ac_ext
13357 cat >>conftest.$ac_ext <<_ACEOF
13358 /* end confdefs.h. */
13359 #include "xorg-server.h"
13360
13361 int
13362 main ()
13363 {
13364 #ifndef XSERVER_LIBPCIACCESS
13365 (void) XSERVER_LIBPCIACCESS;
13366 #endif
13367
13368 ;
13369 return 0;
13370 }
13371 _ACEOF
13372 rm -f conftest.$ac_objext
13373 if { (ac_try="$ac_compile"
13374 case "(($ac_try" in
13375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13376 *) ac_try_echo=$ac_try;;
13377 esac
13378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13379 $as_echo "$ac_try_echo") >&5
13380 (eval "$ac_compile") 2>conftest.er1
13381 ac_status=$?
13382 grep -v '^ *+' conftest.er1 >conftest.err
13383 rm -f conftest.er1
13384 cat conftest.err >&5
13385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); } && {
13387 test -z "$ac_c_werror_flag" ||
13388 test ! -s conftest.err
13389 } && test -s conftest.$ac_objext; then
13390 ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes
13391 else
13392 $as_echo "$as_me: failed program was:" >&5
13393 sed 's/^/| /' conftest.$ac_ext >&5
13394
13395 ac_cv_have_decl_XSERVER_LIBPCIACCESS=no
13396 fi
13397
13398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13399 fi
13400 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5
13401 $as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; }
13402 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then
13403 XSERVER_LIBPCIACCESS=yes
13404 else
13405 XSERVER_LIBPCIACCESS=no
13406 fi
13407
13408 CFLAGS="$save_CFLAGS"
13409
13410 if test x$XSERVER_LIBPCIACCESS = xyes; then
13411
13412 pkg_failed=no
13413 { $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5
13414 $as_echo_n "checking for PCIACCESS... " >&6; }
13415
13416 if test -n "$PKG_CONFIG"; then
13417 if test -n "$PCIACCESS_CFLAGS"; then
13418 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
13419 else
13420 if test -n "$PKG_CONFIG" && \
13421 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
13422 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
13423 ac_status=$?
13424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); }; then
13426 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
13427 else
13428 pkg_failed=yes
13429 fi
13430 fi
13431 else
13432 pkg_failed=untried
13433 fi
13434 if test -n "$PKG_CONFIG"; then
13435 if test -n "$PCIACCESS_LIBS"; then
13436 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
13437 else
13438 if test -n "$PKG_CONFIG" && \
13439 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
13440 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
13441 ac_status=$?
13442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); }; then
13444 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
13445 else
13446 pkg_failed=yes
13447 fi
13448 fi
13449 else
13450 pkg_failed=untried
13451 fi
13452
13453
13454
13455 if test $pkg_failed = yes; then
13456
13457 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13458 _pkg_short_errors_supported=yes
13459 else
13460 _pkg_short_errors_supported=no
13461 fi
13462 if test $_pkg_short_errors_supported = yes; then
13463 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pciaccess >= 0.8.0"`
13464 else
13465 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pciaccess >= 0.8.0"`
13466 fi
13467 # Put the nasty error message in config.log where it belongs
13468 echo "$PCIACCESS_PKG_ERRORS" >&5
13469
13470 { { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met:
13471
13472 $PCIACCESS_PKG_ERRORS
13473
13474 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13475 installed software in a non-standard prefix.
13476
13477 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
13478 and PCIACCESS_LIBS to avoid the need to call pkg-config.
13479 See the pkg-config man page for more details.
13480 " >&5
13481 $as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met:
13482
13483 $PCIACCESS_PKG_ERRORS
13484
13485 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13486 installed software in a non-standard prefix.
13487
13488 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
13489 and PCIACCESS_LIBS to avoid the need to call pkg-config.
13490 See the pkg-config man page for more details.
13491 " >&2;}
13492 { (exit 1); exit 1; }; }
13493 elif test $pkg_failed = untried; then
13494 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13496 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
13497 is in your PATH or set the PKG_CONFIG environment variable to the full
13498 path to pkg-config.
13499
13500 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
13501 and PCIACCESS_LIBS to avoid the need to call pkg-config.
13502 See the pkg-config man page for more details.
13503
13504 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13505 See \`config.log' for more details." >&5
13506 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
13507 is in your PATH or set the PKG_CONFIG environment variable to the full
13508 path to pkg-config.
13509
13510 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
13511 and PCIACCESS_LIBS to avoid the need to call pkg-config.
13512 See the pkg-config man page for more details.
13513
13514 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13515 See \`config.log' for more details." >&2;}
13516 { (exit 1); exit 1; }; }; }
13517 else
13518 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
13519 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
13520 { $as_echo "$as_me:$LINENO: result: yes" >&5
13521 $as_echo "yes" >&6; }
13522 :
13523 fi
13524 fi
13525
13526 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
13527 XSERVER_LIBPCIACCESS_TRUE=
13528 XSERVER_LIBPCIACCESS_FALSE='#'
13529 else
13530 XSERVER_LIBPCIACCESS_TRUE='#'
13531 XSERVER_LIBPCIACCESS_FALSE=
13532 fi
13533
13534
13535
13536
13537
13538 DRIVER_NAME=vmware
13539
13540
13541 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
13542
13543 cat >confcache <<\_ACEOF
13544 # This file is a shell script that caches the results of configure
13545 # tests run on this system so they can be shared between configure
13546 # scripts and configure runs, see configure's option --config-cache.
13547 # It is not useful on other systems. If it contains results you don't
13548 # want to keep, you may remove or edit it.
13549 #
13550 # config.status only pays attention to the cache file if you give it
13551 # the --recheck option to rerun configure.
13552 #
13553 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13554 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13555 # following values.
13556
13557 _ACEOF
13558
13559 # The following way of writing the cache mishandles newlines in values,
13560 # but we know of no workaround that is simple, portable, and efficient.
13561 # So, we kill variables containing newlines.
13562 # Ultrix sh set writes to stderr and can't be redirected directly,
13563 # and sets the high bit in the cache file unless we assign to the vars.
13564 (
13565 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13566 eval ac_val=\$$ac_var
13567 case $ac_val in #(
13568 *${as_nl}*)
13569 case $ac_var in #(
13570 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13571 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13572 esac
13573 case $ac_var in #(
13574 _ | IFS | as_nl) ;; #(
13575 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13576 *) $as_unset $ac_var ;;
13577 esac ;;
13578 esac
13579 done
13580
13581 (set) 2>&1 |
13582 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13583 *${as_nl}ac_space=\ *)
13584 # `set' does not quote correctly, so add quotes (double-quote
13585 # substitution turns \\\\ into \\, and sed turns \\ into \).
13586 sed -n \
13587 "s/'/'\\\\''/g;
13588 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13589 ;; #(
13590 *)
13591 # `set' quotes correctly as required by POSIX, so do not add quotes.
13592 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13593 ;;
13594 esac |
13595 sort
13596 ) |
13597 sed '
13598 /^ac_cv_env_/b end
13599 t clear
13600 :clear
13601 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13602 t end
13603 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13604 :end' >>confcache
13605 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13606 if test -w "$cache_file"; then
13607 test "x$cache_file" != "x/dev/null" &&
13608 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13609 $as_echo "$as_me: updating cache $cache_file" >&6;}
13610 cat confcache >$cache_file
13611 else
13612 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13613 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13614 fi
13615 fi
13616 rm -f confcache
13617
13618 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13619 # Let make expand exec_prefix.
13620 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13621
13622 DEFS=-DHAVE_CONFIG_H
13623
13624 ac_libobjs=
13625 ac_ltlibobjs=
13626 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13627 # 1. Remove the extension, and $U if already installed.
13628 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13629 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13630 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13631 # will be set to the directory where LIBOBJS objects are built.
13632 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13633 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13634 done
13635 LIBOBJS=$ac_libobjs
13636
13637 LTLIBOBJS=$ac_ltlibobjs
13638
13639
13640 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13641 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13642 Usually this means the macro was only invoked conditionally." >&5
13643 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13644 Usually this means the macro was only invoked conditionally." >&2;}
13645 { (exit 1); exit 1; }; }
13646 fi
13647 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13648 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13649 Usually this means the macro was only invoked conditionally." >&5
13650 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
13651 Usually this means the macro was only invoked conditionally." >&2;}
13652 { (exit 1); exit 1; }; }
13653 fi
13654 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13655 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13656 Usually this means the macro was only invoked conditionally." >&5
13657 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13658 Usually this means the macro was only invoked conditionally." >&2;}
13659 { (exit 1); exit 1; }; }
13660 fi
13661 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13662 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13663 Usually this means the macro was only invoked conditionally." >&5
13664 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13665 Usually this means the macro was only invoked conditionally." >&2;}
13666 { (exit 1); exit 1; }; }
13667 fi
13668 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
13669 { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
13670 Usually this means the macro was only invoked conditionally." >&5
13671 $as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
13672 Usually this means the macro was only invoked conditionally." >&2;}
13673 { (exit 1); exit 1; }; }
13674 fi
13675
13676 : ${CONFIG_STATUS=./config.status}
13677 ac_write_fail=0
13678 ac_clean_files_save=$ac_clean_files
13679 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13680 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13681 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13682 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13683 #! $SHELL
13684 # Generated by $as_me.
13685 # Run this file to recreate the current configuration.
13686 # Compiler output produced by configure, useful for debugging
13687 # configure, is in config.log if it exists.
13688
13689 debug=false
13690 ac_cs_recheck=false
13691 ac_cs_silent=false
13692 SHELL=\${CONFIG_SHELL-$SHELL}
13693 _ACEOF
13694
13695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13696 ## --------------------- ##
13697 ## M4sh Initialization. ##
13698 ## --------------------- ##
13699
13700 # Be more Bourne compatible
13701 DUALCASE=1; export DUALCASE # for MKS sh
13702 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13703 emulate sh
13704 NULLCMD=:
13705 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13706 # is contrary to our usage. Disable this feature.
13707 alias -g '${1+"$@"}'='"$@"'
13708 setopt NO_GLOB_SUBST
13709 else
13710 case `(set -o) 2>/dev/null` in
13711 *posix*) set -o posix ;;
13712 esac
13713
13714 fi
13715
13716
13717
13718
13719 # PATH needs CR
13720 # Avoid depending upon Character Ranges.
13721 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13722 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13723 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13724 as_cr_digits='0123456789'
13725 as_cr_alnum=$as_cr_Letters$as_cr_digits
13726
13727 as_nl='
13728 '
13729 export as_nl
13730 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13731 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13732 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13733 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13734 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13735 as_echo='printf %s\n'
13736 as_echo_n='printf %s'
13737 else
13738 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13739 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13740 as_echo_n='/usr/ucb/echo -n'
13741 else
13742 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13743 as_echo_n_body='eval
13744 arg=$1;
13745 case $arg in
13746 *"$as_nl"*)
13747 expr "X$arg" : "X\\(.*\\)$as_nl";
13748 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13749 esac;
13750 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13751 '
13752 export as_echo_n_body
13753 as_echo_n='sh -c $as_echo_n_body as_echo'
13754 fi
13755 export as_echo_body
13756 as_echo='sh -c $as_echo_body as_echo'
13757 fi
13758
13759 # The user is always right.
13760 if test "${PATH_SEPARATOR+set}" != set; then
13761 PATH_SEPARATOR=:
13762 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13763 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13764 PATH_SEPARATOR=';'
13765 }
13766 fi
13767
13768 # Support unset when possible.
13769 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13770 as_unset=unset
13771 else
13772 as_unset=false
13773 fi
13774
13775
13776 # IFS
13777 # We need space, tab and new line, in precisely that order. Quoting is
13778 # there to prevent editors from complaining about space-tab.
13779 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13780 # splitting by setting IFS to empty value.)
13781 IFS=" "" $as_nl"
13782
13783 # Find who we are. Look in the path if we contain no directory separator.
13784 case $0 in
13785 *[\\/]* ) as_myself=$0 ;;
13786 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13787 for as_dir in $PATH
13788 do
13789 IFS=$as_save_IFS
13790 test -z "$as_dir" && as_dir=.
13791 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13792 done
13793 IFS=$as_save_IFS
13794
13795 ;;
13796 esac
13797 # We did not find ourselves, most probably we were run as `sh COMMAND'
13798 # in which case we are not to be found in the path.
13799 if test "x$as_myself" = x; then
13800 as_myself=$0
13801 fi
13802 if test ! -f "$as_myself"; then
13803 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13804 { (exit 1); exit 1; }
13805 fi
13806
13807 # Work around bugs in pre-3.0 UWIN ksh.
13808 for as_var in ENV MAIL MAILPATH
13809 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13810 done
13811 PS1='$ '
13812 PS2='> '
13813 PS4='+ '
13814
13815 # NLS nuisances.
13816 LC_ALL=C
13817 export LC_ALL
13818 LANGUAGE=C
13819 export LANGUAGE
13820
13821 # Required to use basename.
13822 if expr a : '\(a\)' >/dev/null 2>&1 &&
13823 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13824 as_expr=expr
13825 else
13826 as_expr=false
13827 fi
13828
13829 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13830 as_basename=basename
13831 else
13832 as_basename=false
13833 fi
13834
13835
13836 # Name of the executable.
13837 as_me=`$as_basename -- "$0" ||
13838 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13839 X"$0" : 'X\(//\)$' \| \
13840 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13841 $as_echo X/"$0" |
13842 sed '/^.*\/\([^/][^/]*\)\/*$/{
13843 s//\1/
13844 q
13845 }
13846 /^X\/\(\/\/\)$/{
13847 s//\1/
13848 q
13849 }
13850 /^X\/\(\/\).*/{
13851 s//\1/
13852 q
13853 }
13854 s/.*/./; q'`
13855
13856 # CDPATH.
13857 $as_unset CDPATH
13858
13859
13860
13861 as_lineno_1=$LINENO
13862 as_lineno_2=$LINENO
13863 test "x$as_lineno_1" != "x$as_lineno_2" &&
13864 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13865
13866 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13867 # uniformly replaced by the line number. The first 'sed' inserts a
13868 # line-number line after each line using $LINENO; the second 'sed'
13869 # does the real work. The second script uses 'N' to pair each
13870 # line-number line with the line containing $LINENO, and appends
13871 # trailing '-' during substitution so that $LINENO is not a special
13872 # case at line end.
13873 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13874 # scripts with optimization help from Paolo Bonzini. Blame Lee
13875 # E. McMahon (1931-1989) for sed's syntax. :-)
13876 sed -n '
13877 p
13878 /[$]LINENO/=
13879 ' <$as_myself |
13880 sed '
13881 s/[$]LINENO.*/&-/
13882 t lineno
13883 b
13884 :lineno
13885 N
13886 :loop
13887 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13888 t loop
13889 s/-\n.*//
13890 ' >$as_me.lineno &&
13891 chmod +x "$as_me.lineno" ||
13892 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13893 { (exit 1); exit 1; }; }
13894
13895 # Don't try to exec as it changes $[0], causing all sort of problems
13896 # (the dirname of $[0] is not the place where we might find the
13897 # original and so on. Autoconf is especially sensitive to this).
13898 . "./$as_me.lineno"
13899 # Exit status is that of the last command.
13900 exit
13901 }
13902
13903
13904 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13905 as_dirname=dirname
13906 else
13907 as_dirname=false
13908 fi
13909
13910 ECHO_C= ECHO_N= ECHO_T=
13911 case `echo -n x` in
13912 -n*)
13913 case `echo 'x\c'` in
13914 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13915 *) ECHO_C='\c';;
13916 esac;;
13917 *)
13918 ECHO_N='-n';;
13919 esac
13920 if expr a : '\(a\)' >/dev/null 2>&1 &&
13921 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13922 as_expr=expr
13923 else
13924 as_expr=false
13925 fi
13926
13927 rm -f conf$$ conf$$.exe conf$$.file
13928 if test -d conf$$.dir; then
13929 rm -f conf$$.dir/conf$$.file
13930 else
13931 rm -f conf$$.dir
13932 mkdir conf$$.dir 2>/dev/null
13933 fi
13934 if (echo >conf$$.file) 2>/dev/null; then
13935 if ln -s conf$$.file conf$$ 2>/dev/null; then
13936 as_ln_s='ln -s'
13937 # ... but there are two gotchas:
13938 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13939 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13940 # In both cases, we have to default to `cp -p'.
13941 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13942 as_ln_s='cp -p'
13943 elif ln conf$$.file conf$$ 2>/dev/null; then
13944 as_ln_s=ln
13945 else
13946 as_ln_s='cp -p'
13947 fi
13948 else
13949 as_ln_s='cp -p'
13950 fi
13951 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13952 rmdir conf$$.dir 2>/dev/null
13953
13954 if mkdir -p . 2>/dev/null; then
13955 as_mkdir_p=:
13956 else
13957 test -d ./-p && rmdir ./-p
13958 as_mkdir_p=false
13959 fi
13960
13961 if test -x / >/dev/null 2>&1; then
13962 as_test_x='test -x'
13963 else
13964 if ls -dL / >/dev/null 2>&1; then
13965 as_ls_L_option=L
13966 else
13967 as_ls_L_option=
13968 fi
13969 as_test_x='
13970 eval sh -c '\''
13971 if test -d "$1"; then
13972 test -d "$1/.";
13973 else
13974 case $1 in
13975 -*)set "./$1";;
13976 esac;
13977 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13978 ???[sx]*):;;*)false;;esac;fi
13979 '\'' sh
13980 '
13981 fi
13982 as_executable_p=$as_test_x
13983
13984 # Sed expression to map a string onto a valid CPP name.
13985 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13986
13987 # Sed expression to map a string onto a valid variable name.
13988 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13989
13990
13991 exec 6>&1
13992
13993 # Save the log message, to keep $[0] and so on meaningful, and to
13994 # report actual input values of CONFIG_FILES etc. instead of their
13995 # values after options handling.
13996 ac_log="
13997 This file was extended by xf86-video-vmware $as_me 11.0.1, which was
13998 generated by GNU Autoconf 2.63. Invocation command line was
13999
14000 CONFIG_FILES = $CONFIG_FILES
14001 CONFIG_HEADERS = $CONFIG_HEADERS
14002 CONFIG_LINKS = $CONFIG_LINKS
14003 CONFIG_COMMANDS = $CONFIG_COMMANDS
14004 $ $0 $@
14005
14006 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14007 "
14008
14009 _ACEOF
14010
14011 case $ac_config_files in *"
14012 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14013 esac
14014
14015 case $ac_config_headers in *"
14016 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14017 esac
14018
14019
14020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14021 # Files that config.status was made for.
14022 config_files="$ac_config_files"
14023 config_headers="$ac_config_headers"
14024 config_commands="$ac_config_commands"
14025
14026 _ACEOF
14027
14028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14029 ac_cs_usage="\
14030 \`$as_me' instantiates files from templates according to the
14031 current configuration.
14032
14033 Usage: $0 [OPTION]... [FILE]...
14034
14035 -h, --help print this help, then exit
14036 -V, --version print version number and configuration settings, then exit
14037 -q, --quiet, --silent
14038 do not print progress messages
14039 -d, --debug don't remove temporary files
14040 --recheck update $as_me by reconfiguring in the same conditions
14041 --file=FILE[:TEMPLATE]
14042 instantiate the configuration file FILE
14043 --header=FILE[:TEMPLATE]
14044 instantiate the configuration header FILE
14045
14046 Configuration files:
14047 $config_files
14048
14049 Configuration headers:
14050 $config_headers
14051
14052 Configuration commands:
14053 $config_commands
14054
14055 Report bugs to <bug-autoconf (at] gnu.org>."
14056
14057 _ACEOF
14058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14059 ac_cs_version="\\
14060 xf86-video-vmware config.status 11.0.1
14061 configured by $0, generated by GNU Autoconf 2.63,
14062 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14063
14064 Copyright (C) 2008 Free Software Foundation, Inc.
14065 This config.status script is free software; the Free Software Foundation
14066 gives unlimited permission to copy, distribute and modify it."
14067
14068 ac_pwd='$ac_pwd'
14069 srcdir='$srcdir'
14070 INSTALL='$INSTALL'
14071 MKDIR_P='$MKDIR_P'
14072 AWK='$AWK'
14073 test -n "\$AWK" || AWK=awk
14074 _ACEOF
14075
14076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14077 # The default lists apply if the user does not specify any file.
14078 ac_need_defaults=:
14079 while test $# != 0
14080 do
14081 case $1 in
14082 --*=*)
14083 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14084 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14085 ac_shift=:
14086 ;;
14087 *)
14088 ac_option=$1
14089 ac_optarg=$2
14090 ac_shift=shift
14091 ;;
14092 esac
14093
14094 case $ac_option in
14095 # Handling of the options.
14096 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14097 ac_cs_recheck=: ;;
14098 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14099 $as_echo "$ac_cs_version"; exit ;;
14100 --debug | --debu | --deb | --de | --d | -d )
14101 debug=: ;;
14102 --file | --fil | --fi | --f )
14103 $ac_shift
14104 case $ac_optarg in
14105 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14106 esac
14107 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14108 ac_need_defaults=false;;
14109 --header | --heade | --head | --hea )
14110 $ac_shift
14111 case $ac_optarg in
14112 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14113 esac
14114 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14115 ac_need_defaults=false;;
14116 --he | --h)
14117 # Conflict between --help and --header
14118 { $as_echo "$as_me: error: ambiguous option: $1
14119 Try \`$0 --help' for more information." >&2
14120 { (exit 1); exit 1; }; };;
14121 --help | --hel | -h )
14122 $as_echo "$ac_cs_usage"; exit ;;
14123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14124 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14125 ac_cs_silent=: ;;
14126
14127 # This is an error.
14128 -*) { $as_echo "$as_me: error: unrecognized option: $1
14129 Try \`$0 --help' for more information." >&2
14130 { (exit 1); exit 1; }; } ;;
14131
14132 *) ac_config_targets="$ac_config_targets $1"
14133 ac_need_defaults=false ;;
14134
14135 esac
14136 shift
14137 done
14138
14139 ac_configure_extra_args=
14140
14141 if $ac_cs_silent; then
14142 exec 6>/dev/null
14143 ac_configure_extra_args="$ac_configure_extra_args --silent"
14144 fi
14145
14146 _ACEOF
14147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14148 if \$ac_cs_recheck; then
14149 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14150 shift
14151 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14152 CONFIG_SHELL='$SHELL'
14153 export CONFIG_SHELL
14154 exec "\$@"
14155 fi
14156
14157 _ACEOF
14158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14159 exec 5>>config.log
14160 {
14161 echo
14162 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14163 ## Running $as_me. ##
14164 _ASBOX
14165 $as_echo "$ac_log"
14166 } >&5
14167
14168 _ACEOF
14169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14170 #
14171 # INIT-COMMANDS
14172 #
14173 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14174
14175
14176 # The HP-UX ksh and POSIX shell print the target directory to stdout
14177 # if CDPATH is set.
14178 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14179
14180 sed_quote_subst='$sed_quote_subst'
14181 double_quote_subst='$double_quote_subst'
14182 delay_variable_subst='$delay_variable_subst'
14183 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14184 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14185 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14186 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14187 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14188 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14189 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14190 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14191 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14192 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14193 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14194 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14195 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14196 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14197 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14198 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14199 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14200 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14201 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14202 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14203 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14204 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14205 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14206 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14207 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14208 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14209 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14210 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14211 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14212 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14213 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14214 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14215 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14216 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14217 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14218 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14219 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14220 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14221 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14222 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14223 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14224 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14225 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14226 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14227 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"`'
14228 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"`'
14229 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14230 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14231 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14232 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14233 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14234 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14235 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14236 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14237 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14238 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14239 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14240 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14241 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14242 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14243 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14244 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14245 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14246 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14247 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14248 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14249 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14250 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14251 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14252 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14253 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14254 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14255 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14256 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14257 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14258 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14259 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14260 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14261 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14262 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14263 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14264 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14265 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14266 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14267 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14268 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14269 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14270 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14271 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14272 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14273 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14274 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14275 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14276 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14277 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14278 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14279 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14280 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14281 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14282 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14283 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14284 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14285 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14286 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14287 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14288 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14289 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14290 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14291 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14292 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14293 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14294 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14295 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14296 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14297 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14298 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14299 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14300 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14301
14302 LTCC='$LTCC'
14303 LTCFLAGS='$LTCFLAGS'
14304 compiler='$compiler_DEFAULT'
14305
14306 # Quote evaled strings.
14307 for var in SED \
14308 GREP \
14309 EGREP \
14310 FGREP \
14311 LD \
14312 NM \
14313 LN_S \
14314 lt_SP2NL \
14315 lt_NL2SP \
14316 reload_flag \
14317 OBJDUMP \
14318 deplibs_check_method \
14319 file_magic_cmd \
14320 AR \
14321 AR_FLAGS \
14322 STRIP \
14323 RANLIB \
14324 CC \
14325 CFLAGS \
14326 compiler \
14327 lt_cv_sys_global_symbol_pipe \
14328 lt_cv_sys_global_symbol_to_cdecl \
14329 lt_cv_sys_global_symbol_to_c_name_address \
14330 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14331 SHELL \
14332 ECHO \
14333 lt_prog_compiler_no_builtin_flag \
14334 lt_prog_compiler_wl \
14335 lt_prog_compiler_pic \
14336 lt_prog_compiler_static \
14337 lt_cv_prog_compiler_c_o \
14338 need_locks \
14339 DSYMUTIL \
14340 NMEDIT \
14341 LIPO \
14342 OTOOL \
14343 OTOOL64 \
14344 shrext_cmds \
14345 export_dynamic_flag_spec \
14346 whole_archive_flag_spec \
14347 compiler_needs_object \
14348 with_gnu_ld \
14349 allow_undefined_flag \
14350 no_undefined_flag \
14351 hardcode_libdir_flag_spec \
14352 hardcode_libdir_flag_spec_ld \
14353 hardcode_libdir_separator \
14354 fix_srcfile_path \
14355 exclude_expsyms \
14356 include_expsyms \
14357 file_list_spec \
14358 variables_saved_for_relink \
14359 libname_spec \
14360 library_names_spec \
14361 soname_spec \
14362 finish_eval \
14363 old_striplib \
14364 striplib; do
14365 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14366 *[\\\\\\\`\\"\\\$]*)
14367 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14368 ;;
14369 *)
14370 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14371 ;;
14372 esac
14373 done
14374
14375 # Double-quote double-evaled strings.
14376 for var in reload_cmds \
14377 old_postinstall_cmds \
14378 old_postuninstall_cmds \
14379 old_archive_cmds \
14380 extract_expsyms_cmds \
14381 old_archive_from_new_cmds \
14382 old_archive_from_expsyms_cmds \
14383 archive_cmds \
14384 archive_expsym_cmds \
14385 module_cmds \
14386 module_expsym_cmds \
14387 export_symbols_cmds \
14388 prelink_cmds \
14389 postinstall_cmds \
14390 postuninstall_cmds \
14391 finish_cmds \
14392 sys_lib_search_path_spec \
14393 sys_lib_dlsearch_path_spec; do
14394 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14395 *[\\\\\\\`\\"\\\$]*)
14396 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14397 ;;
14398 *)
14399 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14400 ;;
14401 esac
14402 done
14403
14404 # Fix-up fallback echo if it was mangled by the above quoting rules.
14405 case \$lt_ECHO in
14406 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14407 ;;
14408 esac
14409
14410 ac_aux_dir='$ac_aux_dir'
14411 xsi_shell='$xsi_shell'
14412 lt_shell_append='$lt_shell_append'
14413
14414 # See if we are running on zsh, and set the options which allow our
14415 # commands through without removal of \ escapes INIT.
14416 if test -n "\${ZSH_VERSION+set}" ; then
14417 setopt NO_GLOB_SUBST
14418 fi
14419
14420
14421 PACKAGE='$PACKAGE'
14422 VERSION='$VERSION'
14423 TIMESTAMP='$TIMESTAMP'
14424 RM='$RM'
14425 ofile='$ofile'
14426
14427
14428
14429
14430 _ACEOF
14431
14432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14433
14434 # Handling of arguments.
14435 for ac_config_target in $ac_config_targets
14436 do
14437 case $ac_config_target in
14438 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14439 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14440 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14441 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14442 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14443 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14444
14445 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14446 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14447 { (exit 1); exit 1; }; };;
14448 esac
14449 done
14450
14451
14452 # If the user did not use the arguments to specify the items to instantiate,
14453 # then the envvar interface is used. Set only those that are not.
14454 # We use the long form for the default assignment because of an extremely
14455 # bizarre bug on SunOS 4.1.3.
14456 if $ac_need_defaults; then
14457 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14458 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14459 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14460 fi
14461
14462 # Have a temporary directory for convenience. Make it in the build tree
14463 # simply because there is no reason against having it here, and in addition,
14464 # creating and moving files from /tmp can sometimes cause problems.
14465 # Hook for its removal unless debugging.
14466 # Note that there is a small window in which the directory will not be cleaned:
14467 # after its creation but before its name has been assigned to `$tmp'.
14468 $debug ||
14469 {
14470 tmp=
14471 trap 'exit_status=$?
14472 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14473 ' 0
14474 trap '{ (exit 1); exit 1; }' 1 2 13 15
14475 }
14476 # Create a (secure) tmp directory for tmp files.
14477
14478 {
14479 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14480 test -n "$tmp" && test -d "$tmp"
14481 } ||
14482 {
14483 tmp=./conf$$-$RANDOM
14484 (umask 077 && mkdir "$tmp")
14485 } ||
14486 {
14487 $as_echo "$as_me: cannot create a temporary directory in ." >&2
14488 { (exit 1); exit 1; }
14489 }
14490
14491 # Set up the scripts for CONFIG_FILES section.
14492 # No need to generate them if there are no CONFIG_FILES.
14493 # This happens for instance with `./config.status config.h'.
14494 if test -n "$CONFIG_FILES"; then
14495
14496
14497 ac_cr='
'
14499 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14500 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14501 ac_cs_awk_cr='\\r'
14502 else
14503 ac_cs_awk_cr=$ac_cr
14504 fi
14505
14506 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14507 _ACEOF
14508
14509
14510 {
14511 echo "cat >conf$$subs.awk <<_ACEOF" &&
14512 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14513 echo "_ACEOF"
14514 } >conf$$subs.sh ||
14515 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14516 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14517 { (exit 1); exit 1; }; }
14518 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14519 ac_delim='%!_!# '
14520 for ac_last_try in false false false false false :; do
14521 . ./conf$$subs.sh ||
14522 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14523 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14524 { (exit 1); exit 1; }; }
14525
14526 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14527 if test $ac_delim_n = $ac_delim_num; then
14528 break
14529 elif $ac_last_try; then
14530 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14531 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14532 { (exit 1); exit 1; }; }
14533 else
14534 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14535 fi
14536 done
14537 rm -f conf$$subs.sh
14538
14539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14540 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14541 _ACEOF
14542 sed -n '
14543 h
14544 s/^/S["/; s/!.*/"]=/
14545 p
14546 g
14547 s/^[^!]*!//
14548 :repl
14549 t repl
14550 s/'"$ac_delim"'$//
14551 t delim
14552 :nl
14553 h
14554 s/\(.\{148\}\).*/\1/
14555 t more1
14556 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14557 p
14558 n
14559 b repl
14560 :more1
14561 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14562 p
14563 g
14564 s/.\{148\}//
14565 t nl
14566 :delim
14567 h
14568 s/\(.\{148\}\).*/\1/
14569 t more2
14570 s/["\\]/\\&/g; s/^/"/; s/$/"/
14571 p
14572 b
14573 :more2
14574 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14575 p
14576 g
14577 s/.\{148\}//
14578 t delim
14579 ' <conf$$subs.awk | sed '
14580 /^[^""]/{
14581 N
14582 s/\n//
14583 }
14584 ' >>$CONFIG_STATUS || ac_write_fail=1
14585 rm -f conf$$subs.awk
14586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14587 _ACAWK
14588 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14589 for (key in S) S_is_set[key] = 1
14590 FS = ""
14591
14592 }
14593 {
14594 line = $ 0
14595 nfields = split(line, field, "@")
14596 substed = 0
14597 len = length(field[1])
14598 for (i = 2; i < nfields; i++) {
14599 key = field[i]
14600 keylen = length(key)
14601 if (S_is_set[key]) {
14602 value = S[key]
14603 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14604 len += length(value) + length(field[++i])
14605 substed = 1
14606 } else
14607 len += 1 + keylen
14608 }
14609
14610 print line
14611 }
14612
14613 _ACAWK
14614 _ACEOF
14615 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14616 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14617 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14618 else
14619 cat
14620 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14621 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14622 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
14623 { (exit 1); exit 1; }; }
14624 _ACEOF
14625
14626 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14627 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14628 # trailing colons and then remove the whole line if VPATH becomes empty
14629 # (actually we leave an empty line to preserve line numbers).
14630 if test "x$srcdir" = x.; then
14631 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14632 s/:*\$(srcdir):*/:/
14633 s/:*\${srcdir}:*/:/
14634 s/:*@srcdir@:*/:/
14635 s/^\([^=]*=[ ]*\):*/\1/
14636 s/:*$//
14637 s/^[^=]*=[ ]*$//
14638 }'
14639 fi
14640
14641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14642 fi # test -n "$CONFIG_FILES"
14643
14644 # Set up the scripts for CONFIG_HEADERS section.
14645 # No need to generate them if there are no CONFIG_HEADERS.
14646 # This happens for instance with `./config.status Makefile'.
14647 if test -n "$CONFIG_HEADERS"; then
14648 cat >"$tmp/defines.awk" <<\_ACAWK ||
14649 BEGIN {
14650 _ACEOF
14651
14652 # Transform confdefs.h into an awk script `defines.awk', embedded as
14653 # here-document in config.status, that substitutes the proper values into
14654 # config.h.in to produce config.h.
14655
14656 # Create a delimiter string that does not exist in confdefs.h, to ease
14657 # handling of long lines.
14658 ac_delim='%!_!# '
14659 for ac_last_try in false false :; do
14660 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14661 if test -z "$ac_t"; then
14662 break
14663 elif $ac_last_try; then
14664 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14665 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14666 { (exit 1); exit 1; }; }
14667 else
14668 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14669 fi
14670 done
14671
14672 # For the awk script, D is an array of macro values keyed by name,
14673 # likewise P contains macro parameters if any. Preserve backslash
14674 # newline sequences.
14675
14676 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14677 sed -n '
14678 s/.\{148\}/&'"$ac_delim"'/g
14679 t rset
14680 :rset
14681 s/^[ ]*#[ ]*define[ ][ ]*/ /
14682 t def
14683 d
14684 :def
14685 s/\\$//
14686 t bsnl
14687 s/["\\]/\\&/g
14688 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14689 D["\1"]=" \3"/p
14690 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14691 d
14692 :bsnl
14693 s/["\\]/\\&/g
14694 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14695 D["\1"]=" \3\\\\\\n"\\/p
14696 t cont
14697 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14698 t cont
14699 d
14700 :cont
14701 n
14702 s/.\{148\}/&'"$ac_delim"'/g
14703 t clear
14704 :clear
14705 s/\\$//
14706 t bsnlc
14707 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14708 d
14709 :bsnlc
14710 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14711 b cont
14712 ' <confdefs.h | sed '
14713 s/'"$ac_delim"'/"\\\
14714 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14715
14716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14717 for (key in D) D_is_set[key] = 1
14718 FS = ""
14719 }
14720 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14721 line = \$ 0
14722 split(line, arg, " ")
14723 if (arg[1] == "#") {
14724 defundef = arg[2]
14725 mac1 = arg[3]
14726 } else {
14727 defundef = substr(arg[1], 2)
14728 mac1 = arg[2]
14729 }
14730 split(mac1, mac2, "(") #)
14731 macro = mac2[1]
14732 prefix = substr(line, 1, index(line, defundef) - 1)
14733 if (D_is_set[macro]) {
14734 # Preserve the white space surrounding the "#".
14735 print prefix "define", macro P[macro] D[macro]
14736 next
14737 } else {
14738 # Replace #undef with comments. This is necessary, for example,
14739 # in the case of _POSIX_SOURCE, which is predefined and required
14740 # on some systems where configure will not decide to define it.
14741 if (defundef == "undef") {
14742 print "/*", prefix defundef, macro, "*/"
14743 next
14744 }
14745 }
14746 }
14747 { print }
14748 _ACAWK
14749 _ACEOF
14750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14751 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14752 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14753 { (exit 1); exit 1; }; }
14754 fi # test -n "$CONFIG_HEADERS"
14755
14756
14757 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14758 shift
14759 for ac_tag
14760 do
14761 case $ac_tag in
14762 :[FHLC]) ac_mode=$ac_tag; continue;;
14763 esac
14764 case $ac_mode$ac_tag in
14765 :[FHL]*:*);;
14766 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14767 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14768 { (exit 1); exit 1; }; };;
14769 :[FH]-) ac_tag=-:-;;
14770 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14771 esac
14772 ac_save_IFS=$IFS
14773 IFS=:
14774 set x $ac_tag
14775 IFS=$ac_save_IFS
14776 shift
14777 ac_file=$1
14778 shift
14779
14780 case $ac_mode in
14781 :L) ac_source=$1;;
14782 :[FH])
14783 ac_file_inputs=
14784 for ac_f
14785 do
14786 case $ac_f in
14787 -) ac_f="$tmp/stdin";;
14788 *) # Look for the file first in the build tree, then in the source tree
14789 # (if the path is not absolute). The absolute path cannot be DOS-style,
14790 # because $ac_f cannot contain `:'.
14791 test -f "$ac_f" ||
14792 case $ac_f in
14793 [\\/$]*) false;;
14794 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14795 esac ||
14796 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14797 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14798 { (exit 1); exit 1; }; };;
14799 esac
14800 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14801 ac_file_inputs="$ac_file_inputs '$ac_f'"
14802 done
14803
14804 # Let's still pretend it is `configure' which instantiates (i.e., don't
14805 # use $as_me), people would be surprised to read:
14806 # /* config.h. Generated by config.status. */
14807 configure_input='Generated from '`
14808 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14809 `' by configure.'
14810 if test x"$ac_file" != x-; then
14811 configure_input="$ac_file. $configure_input"
14812 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14813 $as_echo "$as_me: creating $ac_file" >&6;}
14814 fi
14815 # Neutralize special characters interpreted by sed in replacement strings.
14816 case $configure_input in #(
14817 *\&* | *\|* | *\\* )
14818 ac_sed_conf_input=`$as_echo "$configure_input" |
14819 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14820 *) ac_sed_conf_input=$configure_input;;
14821 esac
14822
14823 case $ac_tag in
14824 *:-:* | *:-) cat >"$tmp/stdin" \
14825 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14826 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14827 { (exit 1); exit 1; }; } ;;
14828 esac
14829 ;;
14830 esac
14831
14832 ac_dir=`$as_dirname -- "$ac_file" ||
14833 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14834 X"$ac_file" : 'X\(//\)[^/]' \| \
14835 X"$ac_file" : 'X\(//\)$' \| \
14836 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14837 $as_echo X"$ac_file" |
14838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14839 s//\1/
14840 q
14841 }
14842 /^X\(\/\/\)[^/].*/{
14843 s//\1/
14844 q
14845 }
14846 /^X\(\/\/\)$/{
14847 s//\1/
14848 q
14849 }
14850 /^X\(\/\).*/{
14851 s//\1/
14852 q
14853 }
14854 s/.*/./; q'`
14855 { as_dir="$ac_dir"
14856 case $as_dir in #(
14857 -*) as_dir=./$as_dir;;
14858 esac
14859 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14860 as_dirs=
14861 while :; do
14862 case $as_dir in #(
14863 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14864 *) as_qdir=$as_dir;;
14865 esac
14866 as_dirs="'$as_qdir' $as_dirs"
14867 as_dir=`$as_dirname -- "$as_dir" ||
14868 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14869 X"$as_dir" : 'X\(//\)[^/]' \| \
14870 X"$as_dir" : 'X\(//\)$' \| \
14871 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14872 $as_echo X"$as_dir" |
14873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14874 s//\1/
14875 q
14876 }
14877 /^X\(\/\/\)[^/].*/{
14878 s//\1/
14879 q
14880 }
14881 /^X\(\/\/\)$/{
14882 s//\1/
14883 q
14884 }
14885 /^X\(\/\).*/{
14886 s//\1/
14887 q
14888 }
14889 s/.*/./; q'`
14890 test -d "$as_dir" && break
14891 done
14892 test -z "$as_dirs" || eval "mkdir $as_dirs"
14893 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14894 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14895 { (exit 1); exit 1; }; }; }
14896 ac_builddir=.
14897
14898 case "$ac_dir" in
14899 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14900 *)
14901 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14902 # A ".." for each directory in $ac_dir_suffix.
14903 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14904 case $ac_top_builddir_sub in
14905 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14906 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14907 esac ;;
14908 esac
14909 ac_abs_top_builddir=$ac_pwd
14910 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14911 # for backward compatibility:
14912 ac_top_builddir=$ac_top_build_prefix
14913
14914 case $srcdir in
14915 .) # We are building in place.
14916 ac_srcdir=.
14917 ac_top_srcdir=$ac_top_builddir_sub
14918 ac_abs_top_srcdir=$ac_pwd ;;
14919 [\\/]* | ?:[\\/]* ) # Absolute name.
14920 ac_srcdir=$srcdir$ac_dir_suffix;
14921 ac_top_srcdir=$srcdir
14922 ac_abs_top_srcdir=$srcdir ;;
14923 *) # Relative name.
14924 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14925 ac_top_srcdir=$ac_top_build_prefix$srcdir
14926 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14927 esac
14928 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14929
14930
14931 case $ac_mode in
14932 :F)
14933 #
14934 # CONFIG_FILE
14935 #
14936
14937 case $INSTALL in
14938 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14939 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14940 esac
14941 ac_MKDIR_P=$MKDIR_P
14942 case $MKDIR_P in
14943 [\\/$]* | ?:[\\/]* ) ;;
14944 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14945 esac
14946 _ACEOF
14947
14948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14949 # If the template does not know about datarootdir, expand it.
14950 # FIXME: This hack should be removed a few years after 2.60.
14951 ac_datarootdir_hack=; ac_datarootdir_seen=
14952
14953 ac_sed_dataroot='
14954 /datarootdir/ {
14955 p
14956 q
14957 }
14958 /@datadir@/p
14959 /@docdir@/p
14960 /@infodir@/p
14961 /@localedir@/p
14962 /@mandir@/p
14963 '
14964 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14965 *datarootdir*) ac_datarootdir_seen=yes;;
14966 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14967 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14968 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14969 _ACEOF
14970 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14971 ac_datarootdir_hack='
14972 s&@datadir@&$datadir&g
14973 s&@docdir@&$docdir&g
14974 s&@infodir@&$infodir&g
14975 s&@localedir@&$localedir&g
14976 s&@mandir@&$mandir&g
14977 s&\\\${datarootdir}&$datarootdir&g' ;;
14978 esac
14979 _ACEOF
14980
14981 # Neutralize VPATH when `$srcdir' = `.'.
14982 # Shell code in configure.ac might set extrasub.
14983 # FIXME: do we really want to maintain this feature?
14984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14985 ac_sed_extra="$ac_vpsub
14986 $extrasub
14987 _ACEOF
14988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14989 :t
14990 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14991 s|@configure_input@|$ac_sed_conf_input|;t t
14992 s&@top_builddir@&$ac_top_builddir_sub&;t t
14993 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14994 s&@srcdir@&$ac_srcdir&;t t
14995 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14996 s&@top_srcdir@&$ac_top_srcdir&;t t
14997 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14998 s&@builddir@&$ac_builddir&;t t
14999 s&@abs_builddir@&$ac_abs_builddir&;t t
15000 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15001 s&@INSTALL@&$ac_INSTALL&;t t
15002 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15003 $ac_datarootdir_hack
15004 "
15005 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15006 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15007 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15008 { (exit 1); exit 1; }; }
15009
15010 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15011 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15012 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15013 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15014 which seems to be undefined. Please make sure it is defined." >&5
15015 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15016 which seems to be undefined. Please make sure it is defined." >&2;}
15017
15018 rm -f "$tmp/stdin"
15019 case $ac_file in
15020 -) cat "$tmp/out" && rm -f "$tmp/out";;
15021 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15022 esac \
15023 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15024 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15025 { (exit 1); exit 1; }; }
15026 ;;
15027 :H)
15028 #
15029 # CONFIG_HEADER
15030 #
15031 if test x"$ac_file" != x-; then
15032 {
15033 $as_echo "/* $configure_input */" \
15034 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15035 } >"$tmp/config.h" \
15036 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15037 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15038 { (exit 1); exit 1; }; }
15039 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15040 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15041 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15042 else
15043 rm -f "$ac_file"
15044 mv "$tmp/config.h" "$ac_file" \
15045 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15046 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15047 { (exit 1); exit 1; }; }
15048 fi
15049 else
15050 $as_echo "/* $configure_input */" \
15051 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15052 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
15053 $as_echo "$as_me: error: could not create -" >&2;}
15054 { (exit 1); exit 1; }; }
15055 fi
15056 # Compute "$ac_file"'s index in $config_headers.
15057 _am_arg="$ac_file"
15058 _am_stamp_count=1
15059 for _am_header in $config_headers :; do
15060 case $_am_header in
15061 $_am_arg | $_am_arg:* )
15062 break ;;
15063 * )
15064 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15065 esac
15066 done
15067 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15068 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15069 X"$_am_arg" : 'X\(//\)[^/]' \| \
15070 X"$_am_arg" : 'X\(//\)$' \| \
15071 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15072 $as_echo X"$_am_arg" |
15073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15074 s//\1/
15075 q
15076 }
15077 /^X\(\/\/\)[^/].*/{
15078 s//\1/
15079 q
15080 }
15081 /^X\(\/\/\)$/{
15082 s//\1/
15083 q
15084 }
15085 /^X\(\/\).*/{
15086 s//\1/
15087 q
15088 }
15089 s/.*/./; q'`/stamp-h$_am_stamp_count
15090 ;;
15091
15092 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
15093 $as_echo "$as_me: executing $ac_file commands" >&6;}
15094 ;;
15095 esac
15096
15097
15098 case $ac_file$ac_mode in
15099 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15100 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15101 # are listed without --file. Let's play safe and only enable the eval
15102 # if we detect the quoting.
15103 case $CONFIG_FILES in
15104 *\'*) eval set x "$CONFIG_FILES" ;;
15105 *) set x $CONFIG_FILES ;;
15106 esac
15107 shift
15108 for mf
15109 do
15110 # Strip MF so we end up with the name of the file.
15111 mf=`echo "$mf" | sed -e 's/:.*$//'`
15112 # Check whether this is an Automake generated Makefile or not.
15113 # We used to match only the files named `Makefile.in', but
15114 # some people rename them; so instead we look at the file content.
15115 # Grep'ing the first line is not enough: some people post-process
15116 # each Makefile.in and add a new line on top of each file to say so.
15117 # Grep'ing the whole file is not good either: AIX grep has a line
15118 # limit of 2048, but all sed's we know have understand at least 4000.
15119 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15120 dirpart=`$as_dirname -- "$mf" ||
15121 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15122 X"$mf" : 'X\(//\)[^/]' \| \
15123 X"$mf" : 'X\(//\)$' \| \
15124 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15125 $as_echo X"$mf" |
15126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15127 s//\1/
15128 q
15129 }
15130 /^X\(\/\/\)[^/].*/{
15131 s//\1/
15132 q
15133 }
15134 /^X\(\/\/\)$/{
15135 s//\1/
15136 q
15137 }
15138 /^X\(\/\).*/{
15139 s//\1/
15140 q
15141 }
15142 s/.*/./; q'`
15143 else
15144 continue
15145 fi
15146 # Extract the definition of DEPDIR, am__include, and am__quote
15147 # from the Makefile without running `make'.
15148 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15149 test -z "$DEPDIR" && continue
15150 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15151 test -z "am__include" && continue
15152 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15153 # When using ansi2knr, U may be empty or an underscore; expand it
15154 U=`sed -n 's/^U = //p' < "$mf"`
15155 # Find all dependency output files, they are included files with
15156 # $(DEPDIR) in their names. We invoke sed twice because it is the
15157 # simplest approach to changing $(DEPDIR) to its actual value in the
15158 # expansion.
15159 for file in `sed -n "
15160 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15161 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15162 # Make sure the directory exists.
15163 test -f "$dirpart/$file" && continue
15164 fdir=`$as_dirname -- "$file" ||
15165 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15166 X"$file" : 'X\(//\)[^/]' \| \
15167 X"$file" : 'X\(//\)$' \| \
15168 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15169 $as_echo X"$file" |
15170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15171 s//\1/
15172 q
15173 }
15174 /^X\(\/\/\)[^/].*/{
15175 s//\1/
15176 q
15177 }
15178 /^X\(\/\/\)$/{
15179 s//\1/
15180 q
15181 }
15182 /^X\(\/\).*/{
15183 s//\1/
15184 q
15185 }
15186 s/.*/./; q'`
15187 { as_dir=$dirpart/$fdir
15188 case $as_dir in #(
15189 -*) as_dir=./$as_dir;;
15190 esac
15191 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15192 as_dirs=
15193 while :; do
15194 case $as_dir in #(
15195 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15196 *) as_qdir=$as_dir;;
15197 esac
15198 as_dirs="'$as_qdir' $as_dirs"
15199 as_dir=`$as_dirname -- "$as_dir" ||
15200 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15201 X"$as_dir" : 'X\(//\)[^/]' \| \
15202 X"$as_dir" : 'X\(//\)$' \| \
15203 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15204 $as_echo X"$as_dir" |
15205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15206 s//\1/
15207 q
15208 }
15209 /^X\(\/\/\)[^/].*/{
15210 s//\1/
15211 q
15212 }
15213 /^X\(\/\/\)$/{
15214 s//\1/
15215 q
15216 }
15217 /^X\(\/\).*/{
15218 s//\1/
15219 q
15220 }
15221 s/.*/./; q'`
15222 test -d "$as_dir" && break
15223 done
15224 test -z "$as_dirs" || eval "mkdir $as_dirs"
15225 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15226 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15227 { (exit 1); exit 1; }; }; }
15228 # echo "creating $dirpart/$file"
15229 echo '# dummy' > "$dirpart/$file"
15230 done
15231 done
15232 }
15233 ;;
15234 "libtool":C)
15235
15236 # See if we are running on zsh, and set the options which allow our
15237 # commands through without removal of \ escapes.
15238 if test -n "${ZSH_VERSION+set}" ; then
15239 setopt NO_GLOB_SUBST
15240 fi
15241
15242 cfgfile="${ofile}T"
15243 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15244 $RM "$cfgfile"
15245
15246 cat <<_LT_EOF >> "$cfgfile"
15247 #! $SHELL
15248
15249 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15250 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15251 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15252 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15253 #
15254 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15255 # 2006, 2007, 2008 Free Software Foundation, Inc.
15256 # Written by Gordon Matzigkeit, 1996
15257 #
15258 # This file is part of GNU Libtool.
15259 #
15260 # GNU Libtool is free software; you can redistribute it and/or
15261 # modify it under the terms of the GNU General Public License as
15262 # published by the Free Software Foundation; either version 2 of
15263 # the License, or (at your option) any later version.
15264 #
15265 # As a special exception to the GNU General Public License,
15266 # if you distribute this file as part of a program or library that
15267 # is built using GNU Libtool, you may include this file under the
15268 # same distribution terms that you use for the rest of that program.
15269 #
15270 # GNU Libtool is distributed in the hope that it will be useful,
15271 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15272 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15273 # GNU General Public License for more details.
15274 #
15275 # You should have received a copy of the GNU General Public License
15276 # along with GNU Libtool; see the file COPYING. If not, a copy
15277 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15278 # obtained by writing to the Free Software Foundation, Inc.,
15279 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15280
15281
15282 # The names of the tagged configurations supported by this script.
15283 available_tags=""
15284
15285 # ### BEGIN LIBTOOL CONFIG
15286
15287 # Whether or not to build static libraries.
15288 build_old_libs=$enable_static
15289
15290 # Which release of libtool.m4 was used?
15291 macro_version=$macro_version
15292 macro_revision=$macro_revision
15293
15294 # Whether or not to build shared libraries.
15295 build_libtool_libs=$enable_shared
15296
15297 # What type of objects to build.
15298 pic_mode=$pic_mode
15299
15300 # Whether or not to optimize for fast installation.
15301 fast_install=$enable_fast_install
15302
15303 # The host system.
15304 host_alias=$host_alias
15305 host=$host
15306 host_os=$host_os
15307
15308 # The build system.
15309 build_alias=$build_alias
15310 build=$build
15311 build_os=$build_os
15312
15313 # A sed program that does not truncate output.
15314 SED=$lt_SED
15315
15316 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15317 Xsed="\$SED -e 1s/^X//"
15318
15319 # A grep program that handles long lines.
15320 GREP=$lt_GREP
15321
15322 # An ERE matcher.
15323 EGREP=$lt_EGREP
15324
15325 # A literal string matcher.
15326 FGREP=$lt_FGREP
15327
15328 # A BSD- or MS-compatible name lister.
15329 NM=$lt_NM
15330
15331 # Whether we need soft or hard links.
15332 LN_S=$lt_LN_S
15333
15334 # What is the maximum length of a command?
15335 max_cmd_len=$max_cmd_len
15336
15337 # Object file suffix (normally "o").
15338 objext=$ac_objext
15339
15340 # Executable file suffix (normally "").
15341 exeext=$exeext
15342
15343 # whether the shell understands "unset".
15344 lt_unset=$lt_unset
15345
15346 # turn spaces into newlines.
15347 SP2NL=$lt_lt_SP2NL
15348
15349 # turn newlines into spaces.
15350 NL2SP=$lt_lt_NL2SP
15351
15352 # How to create reloadable object files.
15353 reload_flag=$lt_reload_flag
15354 reload_cmds=$lt_reload_cmds
15355
15356 # An object symbol dumper.
15357 OBJDUMP=$lt_OBJDUMP
15358
15359 # Method to check whether dependent libraries are shared objects.
15360 deplibs_check_method=$lt_deplibs_check_method
15361
15362 # Command to use when deplibs_check_method == "file_magic".
15363 file_magic_cmd=$lt_file_magic_cmd
15364
15365 # The archiver.
15366 AR=$lt_AR
15367 AR_FLAGS=$lt_AR_FLAGS
15368
15369 # A symbol stripping program.
15370 STRIP=$lt_STRIP
15371
15372 # Commands used to install an old-style archive.
15373 RANLIB=$lt_RANLIB
15374 old_postinstall_cmds=$lt_old_postinstall_cmds
15375 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15376
15377 # A C compiler.
15378 LTCC=$lt_CC
15379
15380 # LTCC compiler flags.
15381 LTCFLAGS=$lt_CFLAGS
15382
15383 # Take the output of nm and produce a listing of raw symbols and C names.
15384 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15385
15386 # Transform the output of nm in a proper C declaration.
15387 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15388
15389 # Transform the output of nm in a C name address pair.
15390 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15391
15392 # Transform the output of nm in a C name address pair when lib prefix is needed.
15393 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15394
15395 # The name of the directory that contains temporary libtool files.
15396 objdir=$objdir
15397
15398 # Shell to use when invoking shell scripts.
15399 SHELL=$lt_SHELL
15400
15401 # An echo program that does not interpret backslashes.
15402 ECHO=$lt_ECHO
15403
15404 # Used to examine libraries when file_magic_cmd begins with "file".
15405 MAGIC_CMD=$MAGIC_CMD
15406
15407 # Must we lock files when doing compilation?
15408 need_locks=$lt_need_locks
15409
15410 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15411 DSYMUTIL=$lt_DSYMUTIL
15412
15413 # Tool to change global to local symbols on Mac OS X.
15414 NMEDIT=$lt_NMEDIT
15415
15416 # Tool to manipulate fat objects and archives on Mac OS X.
15417 LIPO=$lt_LIPO
15418
15419 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15420 OTOOL=$lt_OTOOL
15421
15422 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15423 OTOOL64=$lt_OTOOL64
15424
15425 # Old archive suffix (normally "a").
15426 libext=$libext
15427
15428 # Shared library suffix (normally ".so").
15429 shrext_cmds=$lt_shrext_cmds
15430
15431 # The commands to extract the exported symbol list from a shared archive.
15432 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15433
15434 # Variables whose values should be saved in libtool wrapper scripts and
15435 # restored at link time.
15436 variables_saved_for_relink=$lt_variables_saved_for_relink
15437
15438 # Do we need the "lib" prefix for modules?
15439 need_lib_prefix=$need_lib_prefix
15440
15441 # Do we need a version for libraries?
15442 need_version=$need_version
15443
15444 # Library versioning type.
15445 version_type=$version_type
15446
15447 # Shared library runtime path variable.
15448 runpath_var=$runpath_var
15449
15450 # Shared library path variable.
15451 shlibpath_var=$shlibpath_var
15452
15453 # Is shlibpath searched before the hard-coded library search path?
15454 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15455
15456 # Format of library name prefix.
15457 libname_spec=$lt_libname_spec
15458
15459 # List of archive names. First name is the real one, the rest are links.
15460 # The last name is the one that the linker finds with -lNAME
15461 library_names_spec=$lt_library_names_spec
15462
15463 # The coded name of the library, if different from the real name.
15464 soname_spec=$lt_soname_spec
15465
15466 # Command to use after installation of a shared archive.
15467 postinstall_cmds=$lt_postinstall_cmds
15468
15469 # Command to use after uninstallation of a shared archive.
15470 postuninstall_cmds=$lt_postuninstall_cmds
15471
15472 # Commands used to finish a libtool library installation in a directory.
15473 finish_cmds=$lt_finish_cmds
15474
15475 # As "finish_cmds", except a single script fragment to be evaled but
15476 # not shown.
15477 finish_eval=$lt_finish_eval
15478
15479 # Whether we should hardcode library paths into libraries.
15480 hardcode_into_libs=$hardcode_into_libs
15481
15482 # Compile-time system search path for libraries.
15483 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15484
15485 # Run-time system search path for libraries.
15486 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15487
15488 # Whether dlopen is supported.
15489 dlopen_support=$enable_dlopen
15490
15491 # Whether dlopen of programs is supported.
15492 dlopen_self=$enable_dlopen_self
15493
15494 # Whether dlopen of statically linked programs is supported.
15495 dlopen_self_static=$enable_dlopen_self_static
15496
15497 # Commands to strip libraries.
15498 old_striplib=$lt_old_striplib
15499 striplib=$lt_striplib
15500
15501
15502 # The linker used to build libraries.
15503 LD=$lt_LD
15504
15505 # Commands used to build an old-style archive.
15506 old_archive_cmds=$lt_old_archive_cmds
15507
15508 # A language specific compiler.
15509 CC=$lt_compiler
15510
15511 # Is the compiler the GNU compiler?
15512 with_gcc=$GCC
15513
15514 # Compiler flag to turn off builtin functions.
15515 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15516
15517 # How to pass a linker flag through the compiler.
15518 wl=$lt_lt_prog_compiler_wl
15519
15520 # Additional compiler flags for building library objects.
15521 pic_flag=$lt_lt_prog_compiler_pic
15522
15523 # Compiler flag to prevent dynamic linking.
15524 link_static_flag=$lt_lt_prog_compiler_static
15525
15526 # Does compiler simultaneously support -c and -o options?
15527 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15528
15529 # Whether or not to add -lc for building shared libraries.
15530 build_libtool_need_lc=$archive_cmds_need_lc
15531
15532 # Whether or not to disallow shared libs when runtime libs are static.
15533 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15534
15535 # Compiler flag to allow reflexive dlopens.
15536 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15537
15538 # Compiler flag to generate shared objects directly from archives.
15539 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15540
15541 # Whether the compiler copes with passing no objects directly.
15542 compiler_needs_object=$lt_compiler_needs_object
15543
15544 # Create an old-style archive from a shared archive.
15545 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15546
15547 # Create a temporary old-style archive to link instead of a shared archive.
15548 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15549
15550 # Commands used to build a shared archive.
15551 archive_cmds=$lt_archive_cmds
15552 archive_expsym_cmds=$lt_archive_expsym_cmds
15553
15554 # Commands used to build a loadable module if different from building
15555 # a shared archive.
15556 module_cmds=$lt_module_cmds
15557 module_expsym_cmds=$lt_module_expsym_cmds
15558
15559 # Whether we are building with GNU ld or not.
15560 with_gnu_ld=$lt_with_gnu_ld
15561
15562 # Flag that allows shared libraries with undefined symbols to be built.
15563 allow_undefined_flag=$lt_allow_undefined_flag
15564
15565 # Flag that enforces no undefined symbols.
15566 no_undefined_flag=$lt_no_undefined_flag
15567
15568 # Flag to hardcode \$libdir into a binary during linking.
15569 # This must work even if \$libdir does not exist
15570 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15571
15572 # If ld is used when linking, flag to hardcode \$libdir into a binary
15573 # during linking. This must work even if \$libdir does not exist.
15574 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15575
15576 # Whether we need a single "-rpath" flag with a separated argument.
15577 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15578
15579 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15580 # DIR into the resulting binary.
15581 hardcode_direct=$hardcode_direct
15582
15583 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15584 # DIR into the resulting binary and the resulting library dependency is
15585 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15586 # library is relocated.
15587 hardcode_direct_absolute=$hardcode_direct_absolute
15588
15589 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15590 # into the resulting binary.
15591 hardcode_minus_L=$hardcode_minus_L
15592
15593 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15594 # into the resulting binary.
15595 hardcode_shlibpath_var=$hardcode_shlibpath_var
15596
15597 # Set to "yes" if building a shared library automatically hardcodes DIR
15598 # into the library and all subsequent libraries and executables linked
15599 # against it.
15600 hardcode_automatic=$hardcode_automatic
15601
15602 # Set to yes if linker adds runtime paths of dependent libraries
15603 # to runtime path list.
15604 inherit_rpath=$inherit_rpath
15605
15606 # Whether libtool must link a program against all its dependency libraries.
15607 link_all_deplibs=$link_all_deplibs
15608
15609 # Fix the shell variable \$srcfile for the compiler.
15610 fix_srcfile_path=$lt_fix_srcfile_path
15611
15612 # Set to "yes" if exported symbols are required.
15613 always_export_symbols=$always_export_symbols
15614
15615 # The commands to list exported symbols.
15616 export_symbols_cmds=$lt_export_symbols_cmds
15617
15618 # Symbols that should not be listed in the preloaded symbols.
15619 exclude_expsyms=$lt_exclude_expsyms
15620
15621 # Symbols that must always be exported.
15622 include_expsyms=$lt_include_expsyms
15623
15624 # Commands necessary for linking programs (against libraries) with templates.
15625 prelink_cmds=$lt_prelink_cmds
15626
15627 # Specify filename containing input files.
15628 file_list_spec=$lt_file_list_spec
15629
15630 # How to hardcode a shared library path into an executable.
15631 hardcode_action=$hardcode_action
15632
15633 # ### END LIBTOOL CONFIG
15634
15635 _LT_EOF
15636
15637 case $host_os in
15638 aix3*)
15639 cat <<\_LT_EOF >> "$cfgfile"
15640 # AIX sometimes has problems with the GCC collect2 program. For some
15641 # reason, if we set the COLLECT_NAMES environment variable, the problems
15642 # vanish in a puff of smoke.
15643 if test "X${COLLECT_NAMES+set}" != Xset; then
15644 COLLECT_NAMES=
15645 export COLLECT_NAMES
15646 fi
15647 _LT_EOF
15648 ;;
15649 esac
15650
15651
15652 ltmain="$ac_aux_dir/ltmain.sh"
15653
15654
15655 # We use sed instead of cat because bash on DJGPP gets confused if
15656 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15657 # text mode, it properly converts lines to CR/LF. This bash problem
15658 # is reportedly fixed, but why not run on old versions too?
15659 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15660 || (rm -f "$cfgfile"; exit 1)
15661
15662 case $xsi_shell in
15663 yes)
15664 cat << \_LT_EOF >> "$cfgfile"
15665
15666 # func_dirname file append nondir_replacement
15667 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15668 # otherwise set result to NONDIR_REPLACEMENT.
15669 func_dirname ()
15670 {
15671 case ${1} in
15672 */*) func_dirname_result="${1%/*}${2}" ;;
15673 * ) func_dirname_result="${3}" ;;
15674 esac
15675 }
15676
15677 # func_basename file
15678 func_basename ()
15679 {
15680 func_basename_result="${1##*/}"
15681 }
15682
15683 # func_dirname_and_basename file append nondir_replacement
15684 # perform func_basename and func_dirname in a single function
15685 # call:
15686 # dirname: Compute the dirname of FILE. If nonempty,
15687 # add APPEND to the result, otherwise set result
15688 # to NONDIR_REPLACEMENT.
15689 # value returned in "$func_dirname_result"
15690 # basename: Compute filename of FILE.
15691 # value retuned in "$func_basename_result"
15692 # Implementation must be kept synchronized with func_dirname
15693 # and func_basename. For efficiency, we do not delegate to
15694 # those functions but instead duplicate the functionality here.
15695 func_dirname_and_basename ()
15696 {
15697 case ${1} in
15698 */*) func_dirname_result="${1%/*}${2}" ;;
15699 * ) func_dirname_result="${3}" ;;
15700 esac
15701 func_basename_result="${1##*/}"
15702 }
15703
15704 # func_stripname prefix suffix name
15705 # strip PREFIX and SUFFIX off of NAME.
15706 # PREFIX and SUFFIX must not contain globbing or regex special
15707 # characters, hashes, percent signs, but SUFFIX may contain a leading
15708 # dot (in which case that matches only a dot).
15709 func_stripname ()
15710 {
15711 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15712 # positional parameters, so assign one to ordinary parameter first.
15713 func_stripname_result=${3}
15714 func_stripname_result=${func_stripname_result#"${1}"}
15715 func_stripname_result=${func_stripname_result%"${2}"}
15716 }
15717
15718 # func_opt_split
15719 func_opt_split ()
15720 {
15721 func_opt_split_opt=${1%%=*}
15722 func_opt_split_arg=${1#*=}
15723 }
15724
15725 # func_lo2o object
15726 func_lo2o ()
15727 {
15728 case ${1} in
15729 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15730 *) func_lo2o_result=${1} ;;
15731 esac
15732 }
15733
15734 # func_xform libobj-or-source
15735 func_xform ()
15736 {
15737 func_xform_result=${1%.*}.lo
15738 }
15739
15740 # func_arith arithmetic-term...
15741 func_arith ()
15742 {
15743 func_arith_result=$(( $* ))
15744 }
15745
15746 # func_len string
15747 # STRING may not start with a hyphen.
15748 func_len ()
15749 {
15750 func_len_result=${#1}
15751 }
15752
15753 _LT_EOF
15754 ;;
15755 *) # Bourne compatible functions.
15756 cat << \_LT_EOF >> "$cfgfile"
15757
15758 # func_dirname file append nondir_replacement
15759 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15760 # otherwise set result to NONDIR_REPLACEMENT.
15761 func_dirname ()
15762 {
15763 # Extract subdirectory from the argument.
15764 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15765 if test "X$func_dirname_result" = "X${1}"; then
15766 func_dirname_result="${3}"
15767 else
15768 func_dirname_result="$func_dirname_result${2}"
15769 fi
15770 }
15771
15772 # func_basename file
15773 func_basename ()
15774 {
15775 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15776 }
15777
15778
15779 # func_stripname prefix suffix name
15780 # strip PREFIX and SUFFIX off of NAME.
15781 # PREFIX and SUFFIX must not contain globbing or regex special
15782 # characters, hashes, percent signs, but SUFFIX may contain a leading
15783 # dot (in which case that matches only a dot).
15784 # func_strip_suffix prefix name
15785 func_stripname ()
15786 {
15787 case ${2} in
15788 .*) func_stripname_result=`$ECHO "X${3}" \
15789 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15790 *) func_stripname_result=`$ECHO "X${3}" \
15791 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15792 esac
15793 }
15794
15795 # sed scripts:
15796 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15797 my_sed_long_arg='1s/^-[^=]*=//'
15798
15799 # func_opt_split
15800 func_opt_split ()
15801 {
15802 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15803 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15804 }
15805
15806 # func_lo2o object
15807 func_lo2o ()
15808 {
15809 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15810 }
15811
15812 # func_xform libobj-or-source
15813 func_xform ()
15814 {
15815 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15816 }
15817
15818 # func_arith arithmetic-term...
15819 func_arith ()
15820 {
15821 func_arith_result=`expr "$@"`
15822 }
15823
15824 # func_len string
15825 # STRING may not start with a hyphen.
15826 func_len ()
15827 {
15828 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15829 }
15830
15831 _LT_EOF
15832 esac
15833
15834 case $lt_shell_append in
15835 yes)
15836 cat << \_LT_EOF >> "$cfgfile"
15837
15838 # func_append var value
15839 # Append VALUE to the end of shell variable VAR.
15840 func_append ()
15841 {
15842 eval "$1+=\$2"
15843 }
15844 _LT_EOF
15845 ;;
15846 *)
15847 cat << \_LT_EOF >> "$cfgfile"
15848
15849 # func_append var value
15850 # Append VALUE to the end of shell variable VAR.
15851 func_append ()
15852 {
15853 eval "$1=\$$1\$2"
15854 }
15855
15856 _LT_EOF
15857 ;;
15858 esac
15859
15860
15861 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15862 || (rm -f "$cfgfile"; exit 1)
15863
15864 mv -f "$cfgfile" "$ofile" ||
15865 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15866 chmod +x "$ofile"
15867
15868 ;;
15869
15870 esac
15871 done # for ac_tag
15872
15873
15874 { (exit 0); exit 0; }
15875 _ACEOF
15876 chmod +x $CONFIG_STATUS
15877 ac_clean_files=$ac_clean_files_save
15878
15879 test $ac_write_fail = 0 ||
15880 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15881 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15882 { (exit 1); exit 1; }; }
15883
15884
15885 # configure is writing to config.log, and then calls config.status.
15886 # config.status does its own redirection, appending to config.log.
15887 # Unfortunately, on DOS this fails, as config.log is still kept open
15888 # by configure, so config.status won't be able to write to it; its
15889 # output is simply discarded. So we exec the FD to /dev/null,
15890 # effectively closing config.log, so it can be properly (re)opened and
15891 # appended to by config.status. When coming back to configure, we
15892 # need to make the FD available again.
15893 if test "$no_create" != yes; then
15894 ac_cs_success=:
15895 ac_config_status_args=
15896 test "$silent" = yes &&
15897 ac_config_status_args="$ac_config_status_args --quiet"
15898 exec 5>/dev/null
15899 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15900 exec 5>>config.log
15901 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15902 # would make configure fail if this is the last instruction.
15903 $ac_cs_success || { (exit 1); exit 1; }
15904 fi
15905 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15906 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15907 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15908 fi
15909
15910