First import
[xorg_rtime.git] / xorg-server-1.4 / configure
blob03d19c742b71c96f288ae5bcedc318c2b3455d0e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for xorg-server 1.4.
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 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 ## --------------------- ##
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 # Zsh 3.x and 4.x performs 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
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
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
52 rm -f conf$$.sh
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
70 IFS=" "" $as_nl"
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 done
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
142 /^X\/\(\/\/\)$/{
143 s//\1/
146 /^X\/\(\/\).*/{
147 s//\1/
150 s/.*/./; q'`
152 # CDPATH.
153 $as_unset CDPATH
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
167 as_func_success () {
168 as_func_return 0
170 as_func_failure () {
171 as_func_return 1
173 as_func_ret_success () {
174 return 0
176 as_func_ret_failure () {
177 return 1
180 exitcode=0
181 if as_func_success; then
183 else
184 exitcode=1
185 echo as_func_success failed.
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 else
208 exitcode=1
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
279 (as_func_return () {
280 (exit $1)
282 as_func_success () {
283 as_func_return 0
285 as_func_failure () {
286 as_func_return 1
288 as_func_ret_success () {
289 return 0
291 as_func_ret_failure () {
292 return 1
295 exitcode=0
296 if as_func_success; then
298 else
299 exitcode=1
300 echo as_func_success failed.
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 else
323 exitcode=1
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335 _ASEOF
336 }; then
337 break
342 done
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
369 (exit \$1)
371 as_func_success () {
372 as_func_return 0
374 as_func_failure () {
375 as_func_return 1
377 as_func_ret_success () {
378 return 0
380 as_func_ret_failure () {
381 return 1
384 exitcode=0
385 if as_func_success; then
387 else
388 exitcode=1
389 echo as_func_success failed.
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 else
412 exitcode=1
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
448 :lineno
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
482 ECHO_N='-n';;
483 esac
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
558 case X$ECHO in
559 X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
563 esac
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
575 else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
586 exit 0
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
604 done
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
611 else
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
616 # So, first we look for a working echo in the user's PATH.
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
620 IFS="$lt_save_ifs"
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 echo="$dir/echo"
626 break
628 done
629 IFS="$lt_save_ifs"
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
637 echo='print -r'
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
644 export CONFIG_SHELL
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 else
647 # Try using printf.
648 echo='printf %s\n'
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 # Cool, printf works
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 export CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
661 export SHELL
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
668 else
669 # maybe with a smaller string...
670 prev=:
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674 then
675 break
677 prev="$cmd"
678 done
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 else
685 # Oops. We lost completely, so just stick with echo.
686 echo=echo
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704 tagnames=${tagnames+${tagnames},}CXX
706 tagnames=${tagnames+${tagnames},}F77
708 exec 7<&0 </dev/null 6>&1
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716 # Initializations.
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
728 # Identity of this package.
729 PACKAGE_NAME='xorg-server'
730 PACKAGE_TARNAME='xorg-server'
731 PACKAGE_VERSION='1.4'
732 PACKAGE_STRING='xorg-server 1.4'
733 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
735 ac_unique_file="Makefile.am"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 # include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 # include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 INSTALL_PROGRAM
810 INSTALL_SCRIPT
811 INSTALL_DATA
812 am__isrc
813 CYGPATH_W
814 PACKAGE
815 VERSION
816 ACLOCAL
817 AUTOCONF
818 AUTOMAKE
819 AUTOHEADER
820 MAKEINFO
821 install_sh
822 STRIP
823 INSTALL_STRIP_PROGRAM
824 mkdir_p
826 SET_MAKE
827 am__leading_dot
828 AMTAR
829 am__tar
830 am__untar
831 MAINTAINER_MODE_TRUE
832 MAINTAINER_MODE_FALSE
833 MAINT
835 CFLAGS
836 LDFLAGS
837 CPPFLAGS
838 ac_ct_CC
839 EXEEXT
840 OBJEXT
841 DEPDIR
842 am__include
843 am__quote
844 AMDEP_TRUE
845 AMDEP_FALSE
846 AMDEPBACKSLASH
847 CCDEPMODE
848 am__fastdepCC_TRUE
849 am__fastdepCC_FALSE
850 CCAS
851 CCASFLAGS
852 CCASDEPMODE
853 am__fastdepCCAS_TRUE
854 am__fastdepCCAS_FALSE
855 LN_S
856 build
857 build_cpu
858 build_vendor
859 build_os
860 host
861 host_cpu
862 host_vendor
863 host_os
864 GREP
865 EGREP
866 ECHO
868 RANLIB
869 DLLTOOL
871 OBJDUMP
874 CXXFLAGS
875 ac_ct_CXX
876 CXXDEPMODE
877 am__fastdepCXX_TRUE
878 am__fastdepCXX_FALSE
879 CXXCPP
881 FFLAGS
882 ac_ct_F77
883 LIBTOOL
884 PKG_CONFIG
886 LEX_OUTPUT_ROOT
887 LEXLIB
888 YACC
889 YFLAGS
890 RAWCPP
891 RAWCPPFLAGS
892 DTRACE
893 XSERVER_DTRACE_TRUE
894 XSERVER_DTRACE_FALSE
895 XERRORDB_PATH
896 ALLOCA
897 NEED_STRLCAT_TRUE
898 NEED_STRLCAT_FALSE
899 NEED_VSNPRINTF_TRUE
900 NEED_VSNPRINTF_FALSE
901 AGP_TRUE
902 AGP_FALSE
903 LNXAPM_TRUE
904 LNXAPM_FALSE
905 FBDEVHW_TRUE
906 FBDEVHW_FALSE
907 FREEBSD_KLDLOAD_TRUE
908 FREEBSD_KLDLOAD_FALSE
909 ALPHA_VIDEO_TRUE
910 ALPHA_VIDEO_FALSE
911 ARM_VIDEO_TRUE
912 ARM_VIDEO_FALSE
913 I386_VIDEO_TRUE
914 I386_VIDEO_FALSE
915 PPC_VIDEO_TRUE
916 PPC_VIDEO_FALSE
917 SPARC64_VIDEO_TRUE
918 SPARC64_VIDEO_FALSE
919 KDRIVE_HW_TRUE
920 KDRIVE_HW_FALSE
921 INSTALL_SETUID_TRUE
922 INSTALL_SETUID_FALSE
923 INT10_VM86_TRUE
924 INT10_VM86_FALSE
925 INT10_X86EMU_TRUE
926 INT10_X86EMU_FALSE
927 INT10_STUB_TRUE
928 INT10_STUB_FALSE
929 BUILDDOCS_TRUE
930 BUILDDOCS_FALSE
931 LINUXDOC
932 PS2PDF
933 BUILD_LINUXDOC_TRUE
934 BUILD_LINUXDOC_FALSE
935 BUILD_PDFDOC_TRUE
936 BUILD_PDFDOC_FALSE
937 MAKE_TEXT
938 MAKE_PS
939 MAKE_PDF
940 MAKE_HTML
941 INSTALL_LIBXF86CONFIG_TRUE
942 INSTALL_LIBXF86CONFIG_FALSE
943 PIXMAN_CFLAGS
944 PIXMAN_LIBS
945 DBUS_CFLAGS
946 DBUS_LIBS
947 HAVE_DBUS_TRUE
948 HAVE_DBUS_FALSE
949 CONFIG_DBUS_API_TRUE
950 CONFIG_DBUS_API_FALSE
951 HAL_CFLAGS
952 HAL_LIBS
953 CONFIG_HAL_TRUE
954 CONFIG_HAL_FALSE
955 XV_TRUE
956 XV_FALSE
957 XVMC_TRUE
958 XVMC_FALSE
959 COMPOSITE_TRUE
960 COMPOSITE_FALSE
961 MITSHM_TRUE
962 MITSHM_FALSE
963 XTRAP_TRUE
964 XTRAP_FALSE
965 RECORD_TRUE
966 RECORD_FALSE
967 SCREENSAVER_TRUE
968 SCREENSAVER_FALSE
969 RES_TRUE
970 RES_FALSE
971 XLIB_CFLAGS
972 XLIB_LIBS
973 GL_CFLAGS
974 GL_LIBS
975 GLX_TRUE
976 GLX_FALSE
977 MESA_SOURCE
978 AIGLX_TRUE
979 AIGLX_FALSE
980 GLX_DEFINES
981 DRI_TRUE
982 DRI_FALSE
983 DRIPROTO_CFLAGS
984 DRIPROTO_LIBS
985 LIBDRM_CFLAGS
986 LIBDRM_LIBS
987 XINERAMA_TRUE
988 XINERAMA_FALSE
989 XACE_TRUE
990 XACE_FALSE
991 XCSECURITY_TRUE
992 XCSECURITY_FALSE
993 XEVIE_TRUE
994 XEVIE_FALSE
995 APPGROUP_TRUE
996 APPGROUP_FALSE
997 CUP_TRUE
998 CUP_FALSE
999 EVI_TRUE
1000 EVI_FALSE
1001 MULTIBUFFER_TRUE
1002 MULTIBUFFER_FALSE
1003 FONTCACHE_TRUE
1004 FONTCACHE_FALSE
1005 DBE_TRUE
1006 DBE_FALSE
1007 XF86BIGFONT_TRUE
1008 XF86BIGFONT_FALSE
1009 DPMSExtension_TRUE
1010 DPMSExtension_FALSE
1011 XPRINTPROTO_CFLAGS
1012 XPRINTPROTO_LIBS
1013 XPRINT_TRUE
1014 XPRINT_FALSE
1015 XCALIBRATE_TRUE
1016 XCALIBRATE_FALSE
1017 XF86UTILS_TRUE
1018 XF86UTILS_FALSE
1019 XDMCP_CFLAGS
1020 XDMCP_LIBS
1021 XDMCP_TRUE
1022 XDMCP_FALSE
1023 XDMAUTH_TRUE
1024 XDMAUTH_FALSE
1025 USE_RGB_BUILTIN_TRUE
1026 USE_RGB_BUILTIN_FALSE
1027 COMPILEDDEFAULTFONTPATH
1028 RGB_DB
1029 SERVERCONFIGdir
1030 BASE_FONT_PATH
1031 DRI_DRIVER_PATH
1032 VENDOR_NAME
1033 VENDOR_NAME_SHORT
1034 VENDOR_RELEASE
1035 VENDOR_MAN_VERSION
1036 DEBUG_TRUE
1037 DEBUG_FALSE
1038 XSERVERCFLAGS_CFLAGS
1039 XSERVERCFLAGS_LIBS
1040 XSERVERLIBS_CFLAGS
1041 XSERVERLIBS_LIBS
1042 SYS_LIBS
1043 LD_EXPORT_SYMBOLS_FLAG
1044 XSERVER_LIBS
1045 DMXMODULES_CFLAGS
1046 DMXMODULES_LIBS
1047 DMX_TRUE
1048 DMX_FALSE
1049 XDMX_LIBS
1050 XDMXCONFIG_DEP_CFLAGS
1051 XDMXCONFIG_DEP_LIBS
1052 DMXEXAMPLES_DEP_CFLAGS
1053 DMXEXAMPLES_DEP_LIBS
1054 DMXXMUEXAMPLES_DEP_CFLAGS
1055 DMXXMUEXAMPLES_DEP_LIBS
1056 DMXXIEXAMPLES_DEP_CFLAGS
1057 DMXXIEXAMPLES_DEP_LIBS
1058 XTSTEXAMPLES_DEP_CFLAGS
1059 XTSTEXAMPLES_DEP_LIBS
1060 XRESEXAMPLES_DEP_CFLAGS
1061 XRESEXAMPLES_DEP_LIBS
1062 X11EXAMPLES_DEP_CFLAGS
1063 X11EXAMPLES_DEP_LIBS
1064 DMX_BUILD_LNX_TRUE
1065 DMX_BUILD_LNX_FALSE
1066 DMX_BUILD_USB_TRUE
1067 DMX_BUILD_USB_FALSE
1068 XVFB_TRUE
1069 XVFB_FALSE
1070 XVFB_LIBS
1071 XNESTMODULES_CFLAGS
1072 XNESTMODULES_LIBS
1073 XNEST_TRUE
1074 XNEST_FALSE
1075 XNEST_LIBS
1076 XGLMODULES_CFLAGS
1077 XGLMODULES_LIBS
1078 XGL_TRUE
1079 XGL_FALSE
1080 XGL_LIBS
1081 xglmoduledir
1082 XGL_MODULE_PATH
1083 XEGLMODULES_CFLAGS
1084 XEGLMODULES_LIBS
1085 XEGL_TRUE
1086 XEGL_FALSE
1087 XEGL_LIBS
1088 XGLXMODULES_CFLAGS
1089 XGLXMODULES_LIBS
1090 XGLX_TRUE
1091 XGLX_FALSE
1092 XGLX_LIBS
1093 XORG_CORE_LIBS
1094 DARWIN_LIBS
1095 APPLE_APPLICATIONS_DIR
1096 PLIST_VERSION_STRING
1097 PLIST_VENDOR_WEB
1098 SOLARIS_INOUT_ARCH
1099 SOLARIS_ASM_CFLAGS
1100 DGA_CFLAGS
1101 DGA_LIBS
1102 XF86MISC_CFLAGS
1103 XF86MISC_LIBS
1104 XF86VIDMODE_CFLAGS
1105 XF86VIDMODE_LIBS
1106 XORG_MODULES_CFLAGS
1107 XORG_MODULES_LIBS
1108 XORG_LIBS
1109 XORG_INCS
1110 XORG_OS
1111 XORG_OS_SUBDIR
1112 PERL
1113 XORG_CFLAGS
1114 __XCONFIGFILE__
1115 XF86CONFIGFILE
1116 DEFAULT_MODULE_PATH
1117 DEFAULT_LIBRARY_PATH
1118 DEFAULT_LOGPREFIX
1119 moduledir
1120 driverdir
1121 sdkdir
1122 extdir
1123 logdir
1124 XORG_TRUE
1125 XORG_FALSE
1126 XORG_BUS_LINUXPCI_TRUE
1127 XORG_BUS_LINUXPCI_FALSE
1128 XORG_BUS_FREEBSDPCI_TRUE
1129 XORG_BUS_FREEBSDPCI_FALSE
1130 XORG_BUS_NETBSDPCI_TRUE
1131 XORG_BUS_NETBSDPCI_FALSE
1132 XORG_BUS_IX86PCI_TRUE
1133 XORG_BUS_IX86PCI_FALSE
1134 XORG_BUS_PPCPCI_TRUE
1135 XORG_BUS_PPCPCI_FALSE
1136 XORG_BUS_SPARCPCI_TRUE
1137 XORG_BUS_SPARCPCI_FALSE
1138 XORG_BUS_SPARC_TRUE
1139 XORG_BUS_SPARC_FALSE
1140 XORG_LOADER_SPARC_TRUE
1141 XORG_LOADER_SPARC_FALSE
1142 LINUX_IA64_TRUE
1143 LINUX_IA64_FALSE
1144 LINUX_ALPHA_TRUE
1145 LINUX_ALPHA_FALSE
1146 LNXACPI_TRUE
1147 LNXACPI_FALSE
1148 SOLARIS_USL_CONSOLE_TRUE
1149 SOLARIS_USL_CONSOLE_FALSE
1150 SOLARIS_ASM_INLINE_TRUE
1151 SOLARIS_ASM_INLINE_FALSE
1152 BUILD_DARWIN_TRUE
1153 BUILD_DARWIN_FALSE
1154 XQUARTZ_TRUE
1155 XQUARTZ_FALSE
1156 DGA_TRUE
1157 DGA_FALSE
1158 MFB_TRUE
1159 MFB_FALSE
1160 CFB_TRUE
1161 CFB_FALSE
1162 AFB_TRUE
1163 AFB_FALSE
1164 XPRINT_CFLAGS
1165 XPRINT_LIBS
1166 xpconfigdir
1167 MKFONTSCALE
1168 MKFONTDIR
1169 FREETYPE_CFLAGS
1170 FREETYPE_LIBS
1171 ft_config
1172 FREETYPE_REQUIRES
1173 XP_USE_FREETYPE_TRUE
1174 XP_USE_FREETYPE_FALSE
1175 XWIN_LIBS
1176 XWINMODULES_CFLAGS
1177 XWINMODULES_LIBS
1178 XWIN_SERVER_NAME
1179 XWIN_SYSTEM_LIBS
1180 XWIN_TRUE
1181 XWIN_FALSE
1182 XWIN_MULTIWINDOW_TRUE
1183 XWIN_MULTIWINDOW_FALSE
1184 XWIN_MULTIWINDOWEXTWM_TRUE
1185 XWIN_MULTIWINDOWEXTWM_FALSE
1186 XWIN_CLIPBOARD_TRUE
1187 XWIN_CLIPBOARD_FALSE
1188 XWIN_GLX_WINDOWS_TRUE
1189 XWIN_GLX_WINDOWS_FALSE
1190 XWIN_NATIVEGDI_TRUE
1191 XWIN_NATIVEGDI_FALSE
1192 XWIN_PRIMARYFB_TRUE
1193 XWIN_PRIMARYFB_FALSE
1194 XWIN_RANDR_TRUE
1195 XWIN_RANDR_FALSE
1196 XWIN_XV_TRUE
1197 XWIN_XV_FALSE
1198 HAVE_X_PLUGIN_TRUE
1199 HAVE_X_PLUGIN_FALSE
1200 HAVE_AGL_FRAMEWORK_TRUE
1201 HAVE_AGL_FRAMEWORK_FALSE
1202 OBJC
1203 OBJCCLD
1204 OBJCLINK
1205 OBJCFLAGS
1206 OBJCDEPMODE
1207 am__fastdepOBJC_TRUE
1208 am__fastdepOBJC_FALSE
1209 KDRIVE_TRUE
1210 KDRIVE_FALSE
1211 XEPHYR_CFLAGS
1212 XEPHYR_LIBS
1213 TSLIB_CFLAGS
1214 TSLIB_LIBS
1215 XEPHYR_INCS
1216 XSDL_LIBS
1217 XSDL_INCS
1218 KDRIVE_INCS
1219 KDRIVE_PURE_INCS
1220 KDRIVE_CFLAGS
1221 KDRIVE_PURE_LIBS
1222 KDRIVE_LOCAL_LIBS
1223 KDRIVE_LIBS
1224 KDRIVELINUX_TRUE
1225 KDRIVELINUX_FALSE
1226 TSLIB_TRUE
1227 TSLIB_FALSE
1228 H3600_TS_TRUE
1229 H3600_TS_FALSE
1230 KDRIVEVESA_TRUE
1231 KDRIVEVESA_FALSE
1232 KDRIVEFBDEV_TRUE
1233 KDRIVEFBDEV_FALSE
1234 XSDLSERVER_TRUE
1235 XSDLSERVER_FALSE
1236 XEPHYR_TRUE
1237 XEPHYR_FALSE
1238 BUILD_KDRIVEFBDEVLIB_TRUE
1239 BUILD_KDRIVEFBDEVLIB_FALSE
1240 XFAKESERVER_TRUE
1241 XFAKESERVER_FALSE
1242 XKB_BASE_DIRECTORY
1243 XKB_BIN_DIRECTORY
1244 XKM_OUTPUT_DIR
1245 XKB_COMPILED_DIR
1246 PROJECTROOT
1247 XORGCONFIG_DEP_CFLAGS
1248 XORGCONFIG_DEP_LIBS
1249 XORGCFG_DEP_CFLAGS
1250 XORGCFG_DEP_LIBS
1251 APPDEFAULTDIR
1252 BUILD_XORGCFG_TRUE
1253 BUILD_XORGCFG_FALSE
1254 USE_CURSES_TRUE
1255 USE_CURSES_FALSE
1256 BUILD_KBD_MODE_TRUE
1257 BUILD_KBD_MODE_FALSE
1258 BSD_KBD_MODE_TRUE
1259 BSD_KBD_MODE_FALSE
1260 SUN_KBD_MODE_TRUE
1261 SUN_KBD_MODE_FALSE
1262 BUILD_DATE
1263 BUILD_TIME
1264 DIX_CFLAGS
1265 libdir exec_prefix prefix
1266 APP_MAN_SUFFIX
1267 LIB_MAN_SUFFIX
1268 FILE_MAN_SUFFIX
1269 MISC_MAN_SUFFIX
1270 DRIVER_MAN_SUFFIX
1271 ADMIN_MAN_SUFFIX
1272 APP_MAN_DIR
1273 LIB_MAN_DIR
1274 FILE_MAN_DIR
1275 MISC_MAN_DIR
1276 DRIVER_MAN_DIR
1277 ADMIN_MAN_DIR
1278 LIBOBJS
1279 LTLIBOBJS'
1280 ac_subst_files=''
1281 ac_precious_vars='build_alias
1282 host_alias
1283 target_alias
1285 CFLAGS
1286 LDFLAGS
1287 LIBS
1288 CPPFLAGS
1289 CCAS
1290 CCASFLAGS
1293 CXXFLAGS
1295 CXXCPP
1297 FFLAGS
1298 PKG_CONFIG
1299 YACC
1300 YFLAGS
1301 PIXMAN_CFLAGS
1302 PIXMAN_LIBS
1303 DBUS_CFLAGS
1304 DBUS_LIBS
1305 HAL_CFLAGS
1306 HAL_LIBS
1307 XLIB_CFLAGS
1308 XLIB_LIBS
1309 GL_CFLAGS
1310 GL_LIBS
1311 DRIPROTO_CFLAGS
1312 DRIPROTO_LIBS
1313 LIBDRM_CFLAGS
1314 LIBDRM_LIBS
1315 XPRINTPROTO_CFLAGS
1316 XPRINTPROTO_LIBS
1317 XDMCP_CFLAGS
1318 XDMCP_LIBS
1319 XSERVERCFLAGS_CFLAGS
1320 XSERVERCFLAGS_LIBS
1321 XSERVERLIBS_CFLAGS
1322 XSERVERLIBS_LIBS
1323 DMXMODULES_CFLAGS
1324 DMXMODULES_LIBS
1325 XDMXCONFIG_DEP_CFLAGS
1326 XDMXCONFIG_DEP_LIBS
1327 DMXEXAMPLES_DEP_CFLAGS
1328 DMXEXAMPLES_DEP_LIBS
1329 DMXXMUEXAMPLES_DEP_CFLAGS
1330 DMXXMUEXAMPLES_DEP_LIBS
1331 DMXXIEXAMPLES_DEP_CFLAGS
1332 DMXXIEXAMPLES_DEP_LIBS
1333 XTSTEXAMPLES_DEP_CFLAGS
1334 XTSTEXAMPLES_DEP_LIBS
1335 XRESEXAMPLES_DEP_CFLAGS
1336 XRESEXAMPLES_DEP_LIBS
1337 X11EXAMPLES_DEP_CFLAGS
1338 X11EXAMPLES_DEP_LIBS
1339 XNESTMODULES_CFLAGS
1340 XNESTMODULES_LIBS
1341 XGLMODULES_CFLAGS
1342 XGLMODULES_LIBS
1343 XGLXMODULES_CFLAGS
1344 XGLXMODULES_LIBS
1345 DGA_CFLAGS
1346 DGA_LIBS
1347 XF86MISC_CFLAGS
1348 XF86MISC_LIBS
1349 XF86VIDMODE_CFLAGS
1350 XF86VIDMODE_LIBS
1351 XORG_MODULES_CFLAGS
1352 XORG_MODULES_LIBS
1353 XPRINT_CFLAGS
1354 XPRINT_LIBS
1355 FREETYPE_CFLAGS
1356 FREETYPE_LIBS
1357 XWINMODULES_CFLAGS
1358 XWINMODULES_LIBS
1359 XEPHYR_CFLAGS
1360 XEPHYR_LIBS
1361 TSLIB_CFLAGS
1362 TSLIB_LIBS
1363 XORGCONFIG_DEP_CFLAGS
1364 XORGCONFIG_DEP_LIBS
1365 XORGCFG_DEP_CFLAGS
1366 XORGCFG_DEP_LIBS'
1369 # Initialize some variables set by options.
1370 ac_init_help=
1371 ac_init_version=false
1372 # The variables have the same names as the options, with
1373 # dashes changed to underlines.
1374 cache_file=/dev/null
1375 exec_prefix=NONE
1376 no_create=
1377 no_recursion=
1378 prefix=NONE
1379 program_prefix=NONE
1380 program_suffix=NONE
1381 program_transform_name=s,x,x,
1382 silent=
1383 site=
1384 srcdir=
1385 verbose=
1386 x_includes=NONE
1387 x_libraries=NONE
1389 # Installation directory options.
1390 # These are left unexpanded so users can "make install exec_prefix=/foo"
1391 # and all the variables that are supposed to be based on exec_prefix
1392 # by default will actually change.
1393 # Use braces instead of parens because sh, perl, etc. also accept them.
1394 # (The list follows the same order as the GNU Coding Standards.)
1395 bindir='${exec_prefix}/bin'
1396 sbindir='${exec_prefix}/sbin'
1397 libexecdir='${exec_prefix}/libexec'
1398 datarootdir='${prefix}/share'
1399 datadir='${datarootdir}'
1400 sysconfdir='${prefix}/etc'
1401 sharedstatedir='${prefix}/com'
1402 localstatedir='${prefix}/var'
1403 includedir='${prefix}/include'
1404 oldincludedir='/usr/include'
1405 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1406 infodir='${datarootdir}/info'
1407 htmldir='${docdir}'
1408 dvidir='${docdir}'
1409 pdfdir='${docdir}'
1410 psdir='${docdir}'
1411 libdir='${exec_prefix}/lib'
1412 localedir='${datarootdir}/locale'
1413 mandir='${datarootdir}/man'
1415 ac_prev=
1416 ac_dashdash=
1417 for ac_option
1419 # If the previous option needs an argument, assign it.
1420 if test -n "$ac_prev"; then
1421 eval $ac_prev=\$ac_option
1422 ac_prev=
1423 continue
1426 case $ac_option in
1427 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1428 *) ac_optarg=yes ;;
1429 esac
1431 # Accept the important Cygnus configure options, so we can diagnose typos.
1433 case $ac_dashdash$ac_option in
1435 ac_dashdash=yes ;;
1437 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1438 ac_prev=bindir ;;
1439 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1440 bindir=$ac_optarg ;;
1442 -build | --build | --buil | --bui | --bu)
1443 ac_prev=build_alias ;;
1444 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1445 build_alias=$ac_optarg ;;
1447 -cache-file | --cache-file | --cache-fil | --cache-fi \
1448 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1449 ac_prev=cache_file ;;
1450 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1451 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1452 cache_file=$ac_optarg ;;
1454 --config-cache | -C)
1455 cache_file=config.cache ;;
1457 -datadir | --datadir | --datadi | --datad)
1458 ac_prev=datadir ;;
1459 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1460 datadir=$ac_optarg ;;
1462 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1463 | --dataroo | --dataro | --datar)
1464 ac_prev=datarootdir ;;
1465 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1466 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1467 datarootdir=$ac_optarg ;;
1469 -disable-* | --disable-*)
1470 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1471 # Reject names that are not valid shell variable names.
1472 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1473 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1474 { (exit 1); exit 1; }; }
1475 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1476 eval enable_$ac_feature=no ;;
1478 -docdir | --docdir | --docdi | --doc | --do)
1479 ac_prev=docdir ;;
1480 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1481 docdir=$ac_optarg ;;
1483 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1484 ac_prev=dvidir ;;
1485 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1486 dvidir=$ac_optarg ;;
1488 -enable-* | --enable-*)
1489 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1490 # Reject names that are not valid shell variable names.
1491 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1492 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1493 { (exit 1); exit 1; }; }
1494 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1495 eval enable_$ac_feature=\$ac_optarg ;;
1497 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1498 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1499 | --exec | --exe | --ex)
1500 ac_prev=exec_prefix ;;
1501 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1502 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1503 | --exec=* | --exe=* | --ex=*)
1504 exec_prefix=$ac_optarg ;;
1506 -gas | --gas | --ga | --g)
1507 # Obsolete; use --with-gas.
1508 with_gas=yes ;;
1510 -help | --help | --hel | --he | -h)
1511 ac_init_help=long ;;
1512 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1513 ac_init_help=recursive ;;
1514 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1515 ac_init_help=short ;;
1517 -host | --host | --hos | --ho)
1518 ac_prev=host_alias ;;
1519 -host=* | --host=* | --hos=* | --ho=*)
1520 host_alias=$ac_optarg ;;
1522 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1523 ac_prev=htmldir ;;
1524 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1525 | --ht=*)
1526 htmldir=$ac_optarg ;;
1528 -includedir | --includedir | --includedi | --included | --include \
1529 | --includ | --inclu | --incl | --inc)
1530 ac_prev=includedir ;;
1531 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1532 | --includ=* | --inclu=* | --incl=* | --inc=*)
1533 includedir=$ac_optarg ;;
1535 -infodir | --infodir | --infodi | --infod | --info | --inf)
1536 ac_prev=infodir ;;
1537 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1538 infodir=$ac_optarg ;;
1540 -libdir | --libdir | --libdi | --libd)
1541 ac_prev=libdir ;;
1542 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1543 libdir=$ac_optarg ;;
1545 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1546 | --libexe | --libex | --libe)
1547 ac_prev=libexecdir ;;
1548 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1549 | --libexe=* | --libex=* | --libe=*)
1550 libexecdir=$ac_optarg ;;
1552 -localedir | --localedir | --localedi | --localed | --locale)
1553 ac_prev=localedir ;;
1554 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1555 localedir=$ac_optarg ;;
1557 -localstatedir | --localstatedir | --localstatedi | --localstated \
1558 | --localstate | --localstat | --localsta | --localst | --locals)
1559 ac_prev=localstatedir ;;
1560 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1561 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1562 localstatedir=$ac_optarg ;;
1564 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1565 ac_prev=mandir ;;
1566 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1567 mandir=$ac_optarg ;;
1569 -nfp | --nfp | --nf)
1570 # Obsolete; use --without-fp.
1571 with_fp=no ;;
1573 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1574 | --no-cr | --no-c | -n)
1575 no_create=yes ;;
1577 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1578 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1579 no_recursion=yes ;;
1581 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1582 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1583 | --oldin | --oldi | --old | --ol | --o)
1584 ac_prev=oldincludedir ;;
1585 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1586 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1587 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1588 oldincludedir=$ac_optarg ;;
1590 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1591 ac_prev=prefix ;;
1592 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1593 prefix=$ac_optarg ;;
1595 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1596 | --program-pre | --program-pr | --program-p)
1597 ac_prev=program_prefix ;;
1598 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1599 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1600 program_prefix=$ac_optarg ;;
1602 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1603 | --program-suf | --program-su | --program-s)
1604 ac_prev=program_suffix ;;
1605 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1606 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1607 program_suffix=$ac_optarg ;;
1609 -program-transform-name | --program-transform-name \
1610 | --program-transform-nam | --program-transform-na \
1611 | --program-transform-n | --program-transform- \
1612 | --program-transform | --program-transfor \
1613 | --program-transfo | --program-transf \
1614 | --program-trans | --program-tran \
1615 | --progr-tra | --program-tr | --program-t)
1616 ac_prev=program_transform_name ;;
1617 -program-transform-name=* | --program-transform-name=* \
1618 | --program-transform-nam=* | --program-transform-na=* \
1619 | --program-transform-n=* | --program-transform-=* \
1620 | --program-transform=* | --program-transfor=* \
1621 | --program-transfo=* | --program-transf=* \
1622 | --program-trans=* | --program-tran=* \
1623 | --progr-tra=* | --program-tr=* | --program-t=*)
1624 program_transform_name=$ac_optarg ;;
1626 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1627 ac_prev=pdfdir ;;
1628 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1629 pdfdir=$ac_optarg ;;
1631 -psdir | --psdir | --psdi | --psd | --ps)
1632 ac_prev=psdir ;;
1633 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1634 psdir=$ac_optarg ;;
1636 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1637 | -silent | --silent | --silen | --sile | --sil)
1638 silent=yes ;;
1640 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1641 ac_prev=sbindir ;;
1642 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1643 | --sbi=* | --sb=*)
1644 sbindir=$ac_optarg ;;
1646 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1647 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1648 | --sharedst | --shareds | --shared | --share | --shar \
1649 | --sha | --sh)
1650 ac_prev=sharedstatedir ;;
1651 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1652 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1653 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1654 | --sha=* | --sh=*)
1655 sharedstatedir=$ac_optarg ;;
1657 -site | --site | --sit)
1658 ac_prev=site ;;
1659 -site=* | --site=* | --sit=*)
1660 site=$ac_optarg ;;
1662 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1663 ac_prev=srcdir ;;
1664 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1665 srcdir=$ac_optarg ;;
1667 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1668 | --syscon | --sysco | --sysc | --sys | --sy)
1669 ac_prev=sysconfdir ;;
1670 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1671 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1672 sysconfdir=$ac_optarg ;;
1674 -target | --target | --targe | --targ | --tar | --ta | --t)
1675 ac_prev=target_alias ;;
1676 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1677 target_alias=$ac_optarg ;;
1679 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1680 verbose=yes ;;
1682 -version | --version | --versio | --versi | --vers | -V)
1683 ac_init_version=: ;;
1685 -with-* | --with-*)
1686 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1687 # Reject names that are not valid shell variable names.
1688 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1689 { echo "$as_me: error: invalid package name: $ac_package" >&2
1690 { (exit 1); exit 1; }; }
1691 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1692 eval with_$ac_package=\$ac_optarg ;;
1694 -without-* | --without-*)
1695 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1696 # Reject names that are not valid shell variable names.
1697 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1698 { echo "$as_me: error: invalid package name: $ac_package" >&2
1699 { (exit 1); exit 1; }; }
1700 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1701 eval with_$ac_package=no ;;
1703 --x)
1704 # Obsolete; use --with-x.
1705 with_x=yes ;;
1707 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1708 | --x-incl | --x-inc | --x-in | --x-i)
1709 ac_prev=x_includes ;;
1710 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1711 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1712 x_includes=$ac_optarg ;;
1714 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1715 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1716 ac_prev=x_libraries ;;
1717 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1718 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1719 x_libraries=$ac_optarg ;;
1721 -*) { echo "$as_me: error: unrecognized option: $ac_option
1722 Try \`$0 --help' for more information." >&2
1723 { (exit 1); exit 1; }; }
1726 *=*)
1727 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1728 # Reject names that are not valid shell variable names.
1729 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1730 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1731 { (exit 1); exit 1; }; }
1732 eval $ac_envvar=\$ac_optarg
1733 export $ac_envvar ;;
1736 # FIXME: should be removed in autoconf 3.0.
1737 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1738 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1739 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1740 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1743 esac
1744 done
1746 if test -n "$ac_prev"; then
1747 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1748 { echo "$as_me: error: missing argument to $ac_option" >&2
1749 { (exit 1); exit 1; }; }
1752 # Be sure to have absolute directory names.
1753 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1754 datadir sysconfdir sharedstatedir localstatedir includedir \
1755 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1756 libdir localedir mandir
1758 eval ac_val=\$$ac_var
1759 case $ac_val in
1760 [\\/$]* | ?:[\\/]* ) continue;;
1761 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1762 esac
1763 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1764 { (exit 1); exit 1; }; }
1765 done
1767 # There might be people who depend on the old broken behavior: `$host'
1768 # used to hold the argument of --host etc.
1769 # FIXME: To remove some day.
1770 build=$build_alias
1771 host=$host_alias
1772 target=$target_alias
1774 # FIXME: To remove some day.
1775 if test "x$host_alias" != x; then
1776 if test "x$build_alias" = x; then
1777 cross_compiling=maybe
1778 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1779 If a cross compiler is detected then cross compile mode will be used." >&2
1780 elif test "x$build_alias" != "x$host_alias"; then
1781 cross_compiling=yes
1785 ac_tool_prefix=
1786 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1788 test "$silent" = yes && exec 6>/dev/null
1791 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1792 ac_ls_di=`ls -di .` &&
1793 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1794 { echo "$as_me: error: Working directory cannot be determined" >&2
1795 { (exit 1); exit 1; }; }
1796 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1797 { echo "$as_me: error: pwd does not report name of working directory" >&2
1798 { (exit 1); exit 1; }; }
1801 # Find the source files, if location was not specified.
1802 if test -z "$srcdir"; then
1803 ac_srcdir_defaulted=yes
1804 # Try the directory containing this script, then the parent directory.
1805 ac_confdir=`$as_dirname -- "$0" ||
1806 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1807 X"$0" : 'X\(//\)[^/]' \| \
1808 X"$0" : 'X\(//\)$' \| \
1809 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1810 echo X"$0" |
1811 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1812 s//\1/
1815 /^X\(\/\/\)[^/].*/{
1816 s//\1/
1819 /^X\(\/\/\)$/{
1820 s//\1/
1823 /^X\(\/\).*/{
1824 s//\1/
1827 s/.*/./; q'`
1828 srcdir=$ac_confdir
1829 if test ! -r "$srcdir/$ac_unique_file"; then
1830 srcdir=..
1832 else
1833 ac_srcdir_defaulted=no
1835 if test ! -r "$srcdir/$ac_unique_file"; then
1836 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1837 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1838 { (exit 1); exit 1; }; }
1840 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1841 ac_abs_confdir=`(
1842 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1843 { (exit 1); exit 1; }; }
1844 pwd)`
1845 # When building in place, set srcdir=.
1846 if test "$ac_abs_confdir" = "$ac_pwd"; then
1847 srcdir=.
1849 # Remove unnecessary trailing slashes from srcdir.
1850 # Double slashes in file names in object file debugging info
1851 # mess up M-x gdb in Emacs.
1852 case $srcdir in
1853 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1854 esac
1855 for ac_var in $ac_precious_vars; do
1856 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1857 eval ac_env_${ac_var}_value=\$${ac_var}
1858 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1859 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1860 done
1863 # Report the --help message.
1865 if test "$ac_init_help" = "long"; then
1866 # Omit some internal or obsolete options to make the list less imposing.
1867 # This message is too long to be a string in the A/UX 3.1 sh.
1868 cat <<_ACEOF
1869 \`configure' configures xorg-server 1.4 to adapt to many kinds of systems.
1871 Usage: $0 [OPTION]... [VAR=VALUE]...
1873 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1874 VAR=VALUE. See below for descriptions of some of the useful variables.
1876 Defaults for the options are specified in brackets.
1878 Configuration:
1879 -h, --help display this help and exit
1880 --help=short display options specific to this package
1881 --help=recursive display the short help of all the included packages
1882 -V, --version display version information and exit
1883 -q, --quiet, --silent do not print \`checking...' messages
1884 --cache-file=FILE cache test results in FILE [disabled]
1885 -C, --config-cache alias for \`--cache-file=config.cache'
1886 -n, --no-create do not create output files
1887 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1889 Installation directories:
1890 --prefix=PREFIX install architecture-independent files in PREFIX
1891 [$ac_default_prefix]
1892 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1893 [PREFIX]
1895 By default, \`make install' will install all the files in
1896 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1897 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1898 for instance \`--prefix=\$HOME'.
1900 For better control, use the options below.
1902 Fine tuning of the installation directories:
1903 --bindir=DIR user executables [EPREFIX/bin]
1904 --sbindir=DIR system admin executables [EPREFIX/sbin]
1905 --libexecdir=DIR program executables [EPREFIX/libexec]
1906 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1907 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1908 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1909 --libdir=DIR object code libraries [EPREFIX/lib]
1910 --includedir=DIR C header files [PREFIX/include]
1911 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1912 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1913 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1914 --infodir=DIR info documentation [DATAROOTDIR/info]
1915 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1916 --mandir=DIR man documentation [DATAROOTDIR/man]
1917 --docdir=DIR documentation root [DATAROOTDIR/doc/xorg-server]
1918 --htmldir=DIR html documentation [DOCDIR]
1919 --dvidir=DIR dvi documentation [DOCDIR]
1920 --pdfdir=DIR pdf documentation [DOCDIR]
1921 --psdir=DIR ps documentation [DOCDIR]
1922 _ACEOF
1924 cat <<\_ACEOF
1926 Program names:
1927 --program-prefix=PREFIX prepend PREFIX to installed program names
1928 --program-suffix=SUFFIX append SUFFIX to installed program names
1929 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1931 System types:
1932 --build=BUILD configure for building on BUILD [guessed]
1933 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1934 _ACEOF
1937 if test -n "$ac_init_help"; then
1938 case $ac_init_help in
1939 short | recursive ) echo "Configuration of xorg-server 1.4:";;
1940 esac
1941 cat <<\_ACEOF
1943 Optional Features:
1944 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1945 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1946 --enable-maintainer-mode enable make rules and dependencies not useful
1947 (and sometimes confusing) to the casual installer
1948 --disable-dependency-tracking speeds up one-time build
1949 --enable-dependency-tracking do not reject slow dependency extractors
1950 --enable-static[=PKGS] build static libraries [default=no]
1951 --enable-shared[=PKGS] build shared libraries [default=yes]
1952 --enable-fast-install[=PKGS]
1953 optimize for fast installation [default=yes]
1954 --disable-libtool-lock avoid locking (might break parallel builds)
1955 --disable-largefile omit support for large files
1956 --enable-werror Treat warnings as errors (default: disabled)
1957 --enable-debug Enable debugging (default: disabled)
1958 --enable-builddocs Build docs (default: disabled)
1959 --enable-install-libxf86config
1960 Install libxf86config (default: disabled)
1961 --enable-builtin-fonts Use only built-in fonts (default: use external)
1962 --enable-null-root-cursor
1963 Use an empty root cursor (default: use core cursor)
1964 --enable-aiglx Build accelerated indirect GLX (default: enabled)
1965 --enable-glx-tls Build GLX with TLS support (default: disabled)
1966 --disable-composite Build Composite extension (default: enabled)
1967 --disable-shm Build SHM extension (default: enabled)
1968 --disable-xres Build XRes extension (default: enabled)
1969 --disable-xtrap Build XTrap extension (default: enabled)
1970 --disable-record Build Record extension (default: enabled)
1971 --disable-xv Build Xv extension (default: enabled)
1972 --enable-quartz Build with darwin quartz support (default: auto)
1973 --disable-xvmc Build XvMC extension (default: enabled)
1974 --disable-dga Build DGA extension (default: auto)
1975 --disable-screensaver Build ScreenSaver extension (default: enabled)
1976 --disable-xdmcp Build XDMCP extension (default: auto)
1977 --disable-xdm-auth-1 Build XDM-Auth-1 extension (default: auto)
1978 --disable-glx Build GLX extension (default: enabled)
1979 --enable-dri Build DRI extension (default: auto)
1980 --disable-xinerama Build Xinerama extension (default: enabled)
1981 --disable-xf86vidmode Build XF86VidMode extension (default: auto)
1982 --disable-xf86misc Build XF86Misc extension (default: auto)
1983 --disable-xace Build X-ACE extension (default: enabled)
1984 --disable-xcsecurity Build Security extension (default: enabled)
1985 --disable-appgroup Build XC-APPGROUP extension (default: enabled)
1986 --enable-xcalibrate Build XCalibrate extension (default: disabled)
1987 --enable-tslib Build kdrive tslib touchscreen support (default:
1988 disabled)
1989 --disable-xevie Build XEvIE extension (default: enabled)
1990 --disable-cup Build TOG-CUP extension (default: enabled)
1991 --disable-evi Build Extended-Visual-Information extension
1992 (default: enabled)
1993 --enable-multibuffer Build Multibuffer extension (default: disabled)
1994 --enable-fontcache Build FontCache extension (default: disabled)
1995 --disable-dbe Build DBE extension (default: enabled)
1996 --disable-xf86bigfont Build XF86 Big Font extension (default: enabled)
1997 --disable-dpms Build DPMS extension (default: enabled)
1998 --enable-config-dbus Build D-BUS API support (default: no)
1999 --disable-config-hal Build HAL support (default: auto)
2000 --enable-xfree86-utils Build xfree86 DDX utilities (default: enabled)
2001 --enable-xorg Build Xorg server (default: auto)
2002 --enable-dmx Build DMX server (default: no)
2003 --enable-xvfb Build Xvfb server (default: yes)
2004 --enable-xnest Build Xnest server (default: auto)
2005 --enable-xwin Build XWin server (default: auto)
2006 --enable-xprint Build Xprint extension and server (default: no)
2007 --enable-xgl Build Xgl server (default: no)
2008 --enable-xglx Build Xglx xgl module (default: no)
2009 --enable-xegl Build Xegl xgl module (default: no)
2010 --enable-mfb Build legacy mono framebuffer support (default:
2011 enabled)
2012 --enable-cfb Build legacy color framebuffer support (default:
2013 enabled)
2014 --enable-afb Build legacy advanced framebuffer support (default:
2015 enabled)
2016 --enable-kdrive Build kdrive servers (default: no)
2017 --enable-xephyr Build the kdrive Xephyr server (default: auto)
2018 --enable-xsdl Build the kdrive Xsdl server (default: auto)
2019 --enable-xfake Build the kdrive 'fake' server (default: auto)
2020 --enable-xfbdev Build the kdrive framebuffer device server (default:
2021 auto)
2022 --enable-kdrive-vesa Build the kdrive VESA-based servers (default: auto)
2023 --enable-freetype Build Xprint FreeType backend (default: yes)
2024 --enable-install-setuid Install Xorg server as owned by root with setuid bit
2025 (default: auto)
2026 --enable-secure-rpc Enable Secure RPC
2027 --enable-xorgcfg Build xorgcfg GUI configuration utility (default:
2029 --enable-kbd_mode Build kbd_mode utility (default: auto)
2031 Optional Packages:
2032 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2033 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2034 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2035 --with-pic try to use only PIC/non-PIC objects [default=use
2036 both]
2037 --with-tags[=TAGS] include additional configurations [automatic]
2038 --with-dtrace=PATH Enable dtrace probes (default: enabled if dtrace
2039 found)
2040 --with-xerrordb=PATH Path to XErrorDB file (default:
2041 ${datadir}/X11/XErrorDB)
2042 --with-release-version=STRING
2043 Use release version string in package name
2044 --with-int10=BACKEND int10 backend: vm86, x86emu or stub
2045 --with-vendor-name=VENDOR
2046 Vendor string reported by the server
2047 --with-vendor-name-short=VENDOR
2048 Short version of vendor string reported by the
2049 server
2050 --with-vendor-web=URL Vendor web address reported by the server
2051 --with-module-dir=DIR Directory where modules are installed (default:
2052 $libdir/xorg/modules)
2053 --with-log-dir=DIR Directory where log files are kept (default:
2054 $localstatedir/log)
2055 --with-builder-addr=ADDRESS
2056 Builder address (default:
2057 xorg@lists.freedesktop.org)
2058 --with-os-name=OSNAME Name of OS (default: output of "uname -srm")
2059 --with-os-vendor=OSVENDOR
2060 Name of OS vendor
2061 --with-builderstring=BUILDERSTRING
2062 Additional builder string
2063 --with-fontdir=FONTDIR Path to top level dir where fonts are installed
2064 (default: ${libdir}/X11/fonts)
2065 --with-default-font-path=PATH
2066 Comma separated list of font dirs
2067 --with-xkb-path=PATH Path to XKB base dir (default: ${datadir}/X11/xkb)
2068 --with-xkb-output=PATH Path to XKB output dir (default:
2069 ${datadir}/X11/xkb/compiled)
2070 --with-rgb-path=PATH Path to RGB database (default: ${datadir}/X11/rgb)
2071 --with-serverconfig-path=PATH
2072 Path to server config (default: ${libdir}/xserver)
2073 --with-apple-applications-dir=PATH
2074 Path to the Applications directory (default:
2075 ${bindir}/Applications)
2076 --with-mesa-source=MESA_SOURCE
2077 Path to Mesa source tree
2078 --with-dri-driver-path=PATH
2079 Path to DRI drivers (default: ${libdir}/dri)
2080 --with-freetype-config=PROG
2081 Use FreeType configuration program PROG (default:
2082 auto)
2084 Some influential environment variables:
2085 CC C compiler command
2086 CFLAGS C compiler flags
2087 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2088 nonstandard directory <lib dir>
2089 LIBS libraries to pass to the linker, e.g. -l<library>
2090 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2091 you have headers in a nonstandard directory <include dir>
2092 CCAS assembler compiler command (defaults to CC)
2093 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
2094 CPP C preprocessor
2095 CXX C++ compiler command
2096 CXXFLAGS C++ compiler flags
2097 CXXCPP C++ preprocessor
2098 F77 Fortran 77 compiler command
2099 FFLAGS Fortran 77 compiler flags
2100 PKG_CONFIG path to pkg-config utility
2101 YACC The `Yet Another C Compiler' implementation to use. Defaults to
2102 the first program found out of: `bison -y', `byacc', `yacc'.
2103 YFLAGS The list of arguments that will be passed by default to $YACC.
2104 This script will default YFLAGS to the empty string to avoid a
2105 default value of `-d' given by some make applications.
2106 PIXMAN_CFLAGS
2107 C compiler flags for PIXMAN, overriding pkg-config
2108 PIXMAN_LIBS linker flags for PIXMAN, overriding pkg-config
2109 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
2110 DBUS_LIBS linker flags for DBUS, overriding pkg-config
2111 HAL_CFLAGS C compiler flags for HAL, overriding pkg-config
2112 HAL_LIBS linker flags for HAL, overriding pkg-config
2113 XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config
2114 XLIB_LIBS linker flags for XLIB, overriding pkg-config
2115 GL_CFLAGS C compiler flags for GL, overriding pkg-config
2116 GL_LIBS linker flags for GL, overriding pkg-config
2117 DRIPROTO_CFLAGS
2118 C compiler flags for DRIPROTO, overriding pkg-config
2119 DRIPROTO_LIBS
2120 linker flags for DRIPROTO, overriding pkg-config
2121 LIBDRM_CFLAGS
2122 C compiler flags for LIBDRM, overriding pkg-config
2123 LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
2124 XPRINTPROTO_CFLAGS
2125 C compiler flags for XPRINTPROTO, overriding pkg-config
2126 XPRINTPROTO_LIBS
2127 linker flags for XPRINTPROTO, overriding pkg-config
2128 XDMCP_CFLAGS
2129 C compiler flags for XDMCP, overriding pkg-config
2130 XDMCP_LIBS linker flags for XDMCP, overriding pkg-config
2131 XSERVERCFLAGS_CFLAGS
2132 C compiler flags for XSERVERCFLAGS, overriding pkg-config
2133 XSERVERCFLAGS_LIBS
2134 linker flags for XSERVERCFLAGS, overriding pkg-config
2135 XSERVERLIBS_CFLAGS
2136 C compiler flags for XSERVERLIBS, overriding pkg-config
2137 XSERVERLIBS_LIBS
2138 linker flags for XSERVERLIBS, overriding pkg-config
2139 DMXMODULES_CFLAGS
2140 C compiler flags for DMXMODULES, overriding pkg-config
2141 DMXMODULES_LIBS
2142 linker flags for DMXMODULES, overriding pkg-config
2143 XDMXCONFIG_DEP_CFLAGS
2144 C compiler flags for XDMXCONFIG_DEP, overriding pkg-config
2145 XDMXCONFIG_DEP_LIBS
2146 linker flags for XDMXCONFIG_DEP, overriding pkg-config
2147 DMXEXAMPLES_DEP_CFLAGS
2148 C compiler flags for DMXEXAMPLES_DEP, overriding pkg-config
2149 DMXEXAMPLES_DEP_LIBS
2150 linker flags for DMXEXAMPLES_DEP, overriding pkg-config
2151 DMXXMUEXAMPLES_DEP_CFLAGS
2152 C compiler flags for DMXXMUEXAMPLES_DEP, overriding pkg-config
2153 DMXXMUEXAMPLES_DEP_LIBS
2154 linker flags for DMXXMUEXAMPLES_DEP, overriding pkg-config
2155 DMXXIEXAMPLES_DEP_CFLAGS
2156 C compiler flags for DMXXIEXAMPLES_DEP, overriding pkg-config
2157 DMXXIEXAMPLES_DEP_LIBS
2158 linker flags for DMXXIEXAMPLES_DEP, overriding pkg-config
2159 XTSTEXAMPLES_DEP_CFLAGS
2160 C compiler flags for XTSTEXAMPLES_DEP, overriding pkg-config
2161 XTSTEXAMPLES_DEP_LIBS
2162 linker flags for XTSTEXAMPLES_DEP, overriding pkg-config
2163 XRESEXAMPLES_DEP_CFLAGS
2164 C compiler flags for XRESEXAMPLES_DEP, overriding pkg-config
2165 XRESEXAMPLES_DEP_LIBS
2166 linker flags for XRESEXAMPLES_DEP, overriding pkg-config
2167 X11EXAMPLES_DEP_CFLAGS
2168 C compiler flags for X11EXAMPLES_DEP, overriding pkg-config
2169 X11EXAMPLES_DEP_LIBS
2170 linker flags for X11EXAMPLES_DEP, overriding pkg-config
2171 XNESTMODULES_CFLAGS
2172 C compiler flags for XNESTMODULES, overriding pkg-config
2173 XNESTMODULES_LIBS
2174 linker flags for XNESTMODULES, overriding pkg-config
2175 XGLMODULES_CFLAGS
2176 C compiler flags for XGLMODULES, overriding pkg-config
2177 XGLMODULES_LIBS
2178 linker flags for XGLMODULES, overriding pkg-config
2179 XGLXMODULES_CFLAGS
2180 C compiler flags for XGLXMODULES, overriding pkg-config
2181 XGLXMODULES_LIBS
2182 linker flags for XGLXMODULES, overriding pkg-config
2183 DGA_CFLAGS C compiler flags for DGA, overriding pkg-config
2184 DGA_LIBS linker flags for DGA, overriding pkg-config
2185 XF86MISC_CFLAGS
2186 C compiler flags for XF86MISC, overriding pkg-config
2187 XF86MISC_LIBS
2188 linker flags for XF86MISC, overriding pkg-config
2189 XF86VIDMODE_CFLAGS
2190 C compiler flags for XF86VIDMODE, overriding pkg-config
2191 XF86VIDMODE_LIBS
2192 linker flags for XF86VIDMODE, overriding pkg-config
2193 XORG_MODULES_CFLAGS
2194 C compiler flags for XORG_MODULES, overriding pkg-config
2195 XORG_MODULES_LIBS
2196 linker flags for XORG_MODULES, overriding pkg-config
2197 XPRINT_CFLAGS
2198 C compiler flags for XPRINT, overriding pkg-config
2199 XPRINT_LIBS linker flags for XPRINT, overriding pkg-config
2200 FREETYPE_CFLAGS
2201 C compiler flags for FREETYPE, overriding pkg-config
2202 FREETYPE_LIBS
2203 linker flags for FREETYPE, overriding pkg-config
2204 XWINMODULES_CFLAGS
2205 C compiler flags for XWINMODULES, overriding pkg-config
2206 XWINMODULES_LIBS
2207 linker flags for XWINMODULES, overriding pkg-config
2208 XEPHYR_CFLAGS
2209 C compiler flags for XEPHYR, overriding pkg-config
2210 XEPHYR_LIBS linker flags for XEPHYR, overriding pkg-config
2211 TSLIB_CFLAGS
2212 C compiler flags for TSLIB, overriding pkg-config
2213 TSLIB_LIBS linker flags for TSLIB, overriding pkg-config
2214 XORGCONFIG_DEP_CFLAGS
2215 C compiler flags for XORGCONFIG_DEP, overriding pkg-config
2216 XORGCONFIG_DEP_LIBS
2217 linker flags for XORGCONFIG_DEP, overriding pkg-config
2218 XORGCFG_DEP_CFLAGS
2219 C compiler flags for XORGCFG_DEP, overriding pkg-config
2220 XORGCFG_DEP_LIBS
2221 linker flags for XORGCFG_DEP, overriding pkg-config
2223 Use these variables to override the choices made by `configure' or to help
2224 it to find libraries and programs with nonstandard names/locations.
2226 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
2227 _ACEOF
2228 ac_status=$?
2231 if test "$ac_init_help" = "recursive"; then
2232 # If there are subdirs, report their specific --help.
2233 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2234 test -d "$ac_dir" || continue
2235 ac_builddir=.
2237 case "$ac_dir" in
2238 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2240 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2241 # A ".." for each directory in $ac_dir_suffix.
2242 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
2243 case $ac_top_builddir_sub in
2244 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2245 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2246 esac ;;
2247 esac
2248 ac_abs_top_builddir=$ac_pwd
2249 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2250 # for backward compatibility:
2251 ac_top_builddir=$ac_top_build_prefix
2253 case $srcdir in
2254 .) # We are building in place.
2255 ac_srcdir=.
2256 ac_top_srcdir=$ac_top_builddir_sub
2257 ac_abs_top_srcdir=$ac_pwd ;;
2258 [\\/]* | ?:[\\/]* ) # Absolute name.
2259 ac_srcdir=$srcdir$ac_dir_suffix;
2260 ac_top_srcdir=$srcdir
2261 ac_abs_top_srcdir=$srcdir ;;
2262 *) # Relative name.
2263 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2264 ac_top_srcdir=$ac_top_build_prefix$srcdir
2265 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2266 esac
2267 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2269 cd "$ac_dir" || { ac_status=$?; continue; }
2270 # Check for guested configure.
2271 if test -f "$ac_srcdir/configure.gnu"; then
2272 echo &&
2273 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2274 elif test -f "$ac_srcdir/configure"; then
2275 echo &&
2276 $SHELL "$ac_srcdir/configure" --help=recursive
2277 else
2278 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2279 fi || ac_status=$?
2280 cd "$ac_pwd" || { ac_status=$?; break; }
2281 done
2284 test -n "$ac_init_help" && exit $ac_status
2285 if $ac_init_version; then
2286 cat <<\_ACEOF
2287 xorg-server configure 1.4
2288 generated by GNU Autoconf 2.61
2290 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2291 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2292 This configure script is free software; the Free Software Foundation
2293 gives unlimited permission to copy, distribute and modify it.
2294 _ACEOF
2295 exit
2297 cat >config.log <<_ACEOF
2298 This file contains any messages produced by compilers while
2299 running configure, to aid debugging if configure makes a mistake.
2301 It was created by xorg-server $as_me 1.4, which was
2302 generated by GNU Autoconf 2.61. Invocation command line was
2304 $ $0 $@
2306 _ACEOF
2307 exec 5>>config.log
2309 cat <<_ASUNAME
2310 ## --------- ##
2311 ## Platform. ##
2312 ## --------- ##
2314 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2315 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2316 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2317 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2318 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2320 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2321 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2323 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2324 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2325 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2326 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2327 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2328 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2329 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2331 _ASUNAME
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 for as_dir in $PATH
2336 IFS=$as_save_IFS
2337 test -z "$as_dir" && as_dir=.
2338 echo "PATH: $as_dir"
2339 done
2340 IFS=$as_save_IFS
2342 } >&5
2344 cat >&5 <<_ACEOF
2347 ## ----------- ##
2348 ## Core tests. ##
2349 ## ----------- ##
2351 _ACEOF
2354 # Keep a trace of the command line.
2355 # Strip out --no-create and --no-recursion so they do not pile up.
2356 # Strip out --silent because we don't want to record it for future runs.
2357 # Also quote any args containing shell meta-characters.
2358 # Make two passes to allow for proper duplicate-argument suppression.
2359 ac_configure_args=
2360 ac_configure_args0=
2361 ac_configure_args1=
2362 ac_must_keep_next=false
2363 for ac_pass in 1 2
2365 for ac_arg
2367 case $ac_arg in
2368 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2369 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2370 | -silent | --silent | --silen | --sile | --sil)
2371 continue ;;
2372 *\'*)
2373 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2374 esac
2375 case $ac_pass in
2376 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2378 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2379 if test $ac_must_keep_next = true; then
2380 ac_must_keep_next=false # Got value, back to normal.
2381 else
2382 case $ac_arg in
2383 *=* | --config-cache | -C | -disable-* | --disable-* \
2384 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2385 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2386 | -with-* | --with-* | -without-* | --without-* | --x)
2387 case "$ac_configure_args0 " in
2388 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2389 esac
2391 -* ) ac_must_keep_next=true ;;
2392 esac
2394 ac_configure_args="$ac_configure_args '$ac_arg'"
2396 esac
2397 done
2398 done
2399 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2400 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2402 # When interrupted or exit'd, cleanup temporary files, and complete
2403 # config.log. We remove comments because anyway the quotes in there
2404 # would cause problems or look ugly.
2405 # WARNING: Use '\'' to represent an apostrophe within the trap.
2406 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2407 trap 'exit_status=$?
2408 # Save into config.log some information that might help in debugging.
2410 echo
2412 cat <<\_ASBOX
2413 ## ---------------- ##
2414 ## Cache variables. ##
2415 ## ---------------- ##
2416 _ASBOX
2417 echo
2418 # The following way of writing the cache mishandles newlines in values,
2420 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2421 eval ac_val=\$$ac_var
2422 case $ac_val in #(
2423 *${as_nl}*)
2424 case $ac_var in #(
2425 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2426 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2427 esac
2428 case $ac_var in #(
2429 _ | IFS | as_nl) ;; #(
2430 *) $as_unset $ac_var ;;
2431 esac ;;
2432 esac
2433 done
2434 (set) 2>&1 |
2435 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2436 *${as_nl}ac_space=\ *)
2437 sed -n \
2438 "s/'\''/'\''\\\\'\'''\''/g;
2439 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2440 ;; #(
2442 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2444 esac |
2445 sort
2447 echo
2449 cat <<\_ASBOX
2450 ## ----------------- ##
2451 ## Output variables. ##
2452 ## ----------------- ##
2453 _ASBOX
2454 echo
2455 for ac_var in $ac_subst_vars
2457 eval ac_val=\$$ac_var
2458 case $ac_val in
2459 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2460 esac
2461 echo "$ac_var='\''$ac_val'\''"
2462 done | sort
2463 echo
2465 if test -n "$ac_subst_files"; then
2466 cat <<\_ASBOX
2467 ## ------------------- ##
2468 ## File substitutions. ##
2469 ## ------------------- ##
2470 _ASBOX
2471 echo
2472 for ac_var in $ac_subst_files
2474 eval ac_val=\$$ac_var
2475 case $ac_val in
2476 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2477 esac
2478 echo "$ac_var='\''$ac_val'\''"
2479 done | sort
2480 echo
2483 if test -s confdefs.h; then
2484 cat <<\_ASBOX
2485 ## ----------- ##
2486 ## confdefs.h. ##
2487 ## ----------- ##
2488 _ASBOX
2489 echo
2490 cat confdefs.h
2491 echo
2493 test "$ac_signal" != 0 &&
2494 echo "$as_me: caught signal $ac_signal"
2495 echo "$as_me: exit $exit_status"
2496 } >&5
2497 rm -f core *.core core.conftest.* &&
2498 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2499 exit $exit_status
2501 for ac_signal in 1 2 13 15; do
2502 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2503 done
2504 ac_signal=0
2506 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2507 rm -f -r conftest* confdefs.h
2509 # Predefined preprocessor variables.
2511 cat >>confdefs.h <<_ACEOF
2512 #define PACKAGE_NAME "$PACKAGE_NAME"
2513 _ACEOF
2516 cat >>confdefs.h <<_ACEOF
2517 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2518 _ACEOF
2521 cat >>confdefs.h <<_ACEOF
2522 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2523 _ACEOF
2526 cat >>confdefs.h <<_ACEOF
2527 #define PACKAGE_STRING "$PACKAGE_STRING"
2528 _ACEOF
2531 cat >>confdefs.h <<_ACEOF
2532 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2533 _ACEOF
2536 # Let the site file select an alternate cache file if it wants to.
2537 # Prefer explicitly selected file to automatically selected ones.
2538 if test -n "$CONFIG_SITE"; then
2539 set x "$CONFIG_SITE"
2540 elif test "x$prefix" != xNONE; then
2541 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2542 else
2543 set x "$ac_default_prefix/share/config.site" \
2544 "$ac_default_prefix/etc/config.site"
2546 shift
2547 for ac_site_file
2549 if test -r "$ac_site_file"; then
2550 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2551 echo "$as_me: loading site script $ac_site_file" >&6;}
2552 sed 's/^/| /' "$ac_site_file" >&5
2553 . "$ac_site_file"
2555 done
2557 if test -r "$cache_file"; then
2558 # Some versions of bash will fail to source /dev/null (special
2559 # files actually), so we avoid doing that.
2560 if test -f "$cache_file"; then
2561 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2562 echo "$as_me: loading cache $cache_file" >&6;}
2563 case $cache_file in
2564 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2565 *) . "./$cache_file";;
2566 esac
2568 else
2569 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2570 echo "$as_me: creating cache $cache_file" >&6;}
2571 >$cache_file
2574 # Check that the precious variables saved in the cache have kept the same
2575 # value.
2576 ac_cache_corrupted=false
2577 for ac_var in $ac_precious_vars; do
2578 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2579 eval ac_new_set=\$ac_env_${ac_var}_set
2580 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2581 eval ac_new_val=\$ac_env_${ac_var}_value
2582 case $ac_old_set,$ac_new_set in
2583 set,)
2584 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2585 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2586 ac_cache_corrupted=: ;;
2587 ,set)
2588 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2589 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2590 ac_cache_corrupted=: ;;
2591 ,);;
2593 if test "x$ac_old_val" != "x$ac_new_val"; then
2594 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2595 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2596 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2597 echo "$as_me: former value: $ac_old_val" >&2;}
2598 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2599 echo "$as_me: current value: $ac_new_val" >&2;}
2600 ac_cache_corrupted=:
2601 fi;;
2602 esac
2603 # Pass precious variables to config.status.
2604 if test "$ac_new_set" = set; then
2605 case $ac_new_val in
2606 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2607 *) ac_arg=$ac_var=$ac_new_val ;;
2608 esac
2609 case " $ac_configure_args " in
2610 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2611 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2612 esac
2614 done
2615 if $ac_cache_corrupted; then
2616 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2617 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2618 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2619 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2620 { (exit 1); exit 1; }; }
2647 ac_ext=c
2648 ac_cpp='$CPP $CPPFLAGS'
2649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2655 am__api_version='1.10'
2657 ac_aux_dir=
2658 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2659 if test -f "$ac_dir/install-sh"; then
2660 ac_aux_dir=$ac_dir
2661 ac_install_sh="$ac_aux_dir/install-sh -c"
2662 break
2663 elif test -f "$ac_dir/install.sh"; then
2664 ac_aux_dir=$ac_dir
2665 ac_install_sh="$ac_aux_dir/install.sh -c"
2666 break
2667 elif test -f "$ac_dir/shtool"; then
2668 ac_aux_dir=$ac_dir
2669 ac_install_sh="$ac_aux_dir/shtool install -c"
2670 break
2672 done
2673 if test -z "$ac_aux_dir"; then
2674 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2675 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2676 { (exit 1); exit 1; }; }
2679 # These three variables are undocumented and unsupported,
2680 # and are intended to be withdrawn in a future Autoconf release.
2681 # They can cause serious problems if a builder's source tree is in a directory
2682 # whose full name contains unusual characters.
2683 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2684 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2685 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2688 # Find a good install program. We prefer a C program (faster),
2689 # so one script is as good as another. But avoid the broken or
2690 # incompatible versions:
2691 # SysV /etc/install, /usr/sbin/install
2692 # SunOS /usr/etc/install
2693 # IRIX /sbin/install
2694 # AIX /bin/install
2695 # AmigaOS /C/install, which installs bootblocks on floppy discs
2696 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2697 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2698 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2699 # OS/2's system install, which has a completely different semantic
2700 # ./install, which can be erroneously created by make from ./install.sh.
2701 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2702 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2703 if test -z "$INSTALL"; then
2704 if test "${ac_cv_path_install+set}" = set; then
2705 echo $ECHO_N "(cached) $ECHO_C" >&6
2706 else
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708 for as_dir in $PATH
2710 IFS=$as_save_IFS
2711 test -z "$as_dir" && as_dir=.
2712 # Account for people who put trailing slashes in PATH elements.
2713 case $as_dir/ in
2714 ./ | .// | /cC/* | \
2715 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2716 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2717 /usr/ucb/* ) ;;
2719 # OSF1 and SCO ODT 3.0 have their own names for install.
2720 # Don't use installbsd from OSF since it installs stuff as root
2721 # by default.
2722 for ac_prog in ginstall scoinst install; do
2723 for ac_exec_ext in '' $ac_executable_extensions; do
2724 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2725 if test $ac_prog = install &&
2726 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2727 # AIX install. It has an incompatible calling convention.
2729 elif test $ac_prog = install &&
2730 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2731 # program-specific install script used by HP pwplus--don't use.
2733 else
2734 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2735 break 3
2738 done
2739 done
2741 esac
2742 done
2743 IFS=$as_save_IFS
2747 if test "${ac_cv_path_install+set}" = set; then
2748 INSTALL=$ac_cv_path_install
2749 else
2750 # As a last resort, use the slow shell script. Don't cache a
2751 # value for INSTALL within a source directory, because that will
2752 # break other packages using the cache if that directory is
2753 # removed, or if the value is a relative name.
2754 INSTALL=$ac_install_sh
2757 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2758 echo "${ECHO_T}$INSTALL" >&6; }
2760 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2761 # It thinks the first close brace ends the variable substitution.
2762 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2764 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2766 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2768 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2769 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2770 # Just in case
2771 sleep 1
2772 echo timestamp > conftest.file
2773 # Do `set' in a subshell so we don't clobber the current shell's
2774 # arguments. Must try -L first in case configure is actually a
2775 # symlink; some systems play weird games with the mod time of symlinks
2776 # (eg FreeBSD returns the mod time of the symlink's containing
2777 # directory).
2778 if (
2779 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2780 if test "$*" = "X"; then
2781 # -L didn't work.
2782 set X `ls -t $srcdir/configure conftest.file`
2784 rm -f conftest.file
2785 if test "$*" != "X $srcdir/configure conftest.file" \
2786 && test "$*" != "X conftest.file $srcdir/configure"; then
2788 # If neither matched, then we have a broken ls. This can happen
2789 # if, for instance, CONFIG_SHELL is bash and it inherits a
2790 # broken ls alias from the environment. This has actually
2791 # happened. Such a system could not be considered "sane".
2792 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2793 alias in your environment" >&5
2794 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2795 alias in your environment" >&2;}
2796 { (exit 1); exit 1; }; }
2799 test "$2" = conftest.file
2801 then
2802 # Ok.
2804 else
2805 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2806 Check your system clock" >&5
2807 echo "$as_me: error: newly created file is older than distributed files!
2808 Check your system clock" >&2;}
2809 { (exit 1); exit 1; }; }
2811 { echo "$as_me:$LINENO: result: yes" >&5
2812 echo "${ECHO_T}yes" >&6; }
2813 test "$program_prefix" != NONE &&
2814 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2815 # Use a double $ so make ignores it.
2816 test "$program_suffix" != NONE &&
2817 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2818 # Double any \ or $. echo might interpret backslashes.
2819 # By default was `s,x,x', remove it if useless.
2820 cat <<\_ACEOF >conftest.sed
2821 s/[\\$]/&&/g;s/;s,x,x,$//
2822 _ACEOF
2823 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2824 rm -f conftest.sed
2826 # expand $ac_aux_dir to an absolute path
2827 am_aux_dir=`cd $ac_aux_dir && pwd`
2829 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2830 # Use eval to expand $SHELL
2831 if eval "$MISSING --run true"; then
2832 am_missing_run="$MISSING --run "
2833 else
2834 am_missing_run=
2835 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2836 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2839 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2840 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2841 if test -z "$MKDIR_P"; then
2842 if test "${ac_cv_path_mkdir+set}" = set; then
2843 echo $ECHO_N "(cached) $ECHO_C" >&6
2844 else
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2848 IFS=$as_save_IFS
2849 test -z "$as_dir" && as_dir=.
2850 for ac_prog in mkdir gmkdir; do
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2853 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2854 'mkdir (GNU coreutils) '* | \
2855 'mkdir (coreutils) '* | \
2856 'mkdir (fileutils) '4.1*)
2857 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2858 break 3;;
2859 esac
2860 done
2861 done
2862 done
2863 IFS=$as_save_IFS
2867 if test "${ac_cv_path_mkdir+set}" = set; then
2868 MKDIR_P="$ac_cv_path_mkdir -p"
2869 else
2870 # As a last resort, use the slow shell script. Don't cache a
2871 # value for MKDIR_P within a source directory, because that will
2872 # break other packages using the cache if that directory is
2873 # removed, or if the value is a relative name.
2874 test -d ./--version && rmdir ./--version
2875 MKDIR_P="$ac_install_sh -d"
2878 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2879 echo "${ECHO_T}$MKDIR_P" >&6; }
2881 mkdir_p="$MKDIR_P"
2882 case $mkdir_p in
2883 [\\/$]* | ?:[\\/]*) ;;
2884 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2885 esac
2887 for ac_prog in gawk mawk nawk awk
2889 # Extract the first word of "$ac_prog", so it can be a program name with args.
2890 set dummy $ac_prog; ac_word=$2
2891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2893 if test "${ac_cv_prog_AWK+set}" = set; then
2894 echo $ECHO_N "(cached) $ECHO_C" >&6
2895 else
2896 if test -n "$AWK"; then
2897 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2898 else
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 for as_dir in $PATH
2902 IFS=$as_save_IFS
2903 test -z "$as_dir" && as_dir=.
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2906 ac_cv_prog_AWK="$ac_prog"
2907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 break 2
2910 done
2911 done
2912 IFS=$as_save_IFS
2916 AWK=$ac_cv_prog_AWK
2917 if test -n "$AWK"; then
2918 { echo "$as_me:$LINENO: result: $AWK" >&5
2919 echo "${ECHO_T}$AWK" >&6; }
2920 else
2921 { echo "$as_me:$LINENO: result: no" >&5
2922 echo "${ECHO_T}no" >&6; }
2926 test -n "$AWK" && break
2927 done
2929 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2930 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2931 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2932 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2933 echo $ECHO_N "(cached) $ECHO_C" >&6
2934 else
2935 cat >conftest.make <<\_ACEOF
2936 SHELL = /bin/sh
2937 all:
2938 @echo '@@@%%%=$(MAKE)=@@@%%%'
2939 _ACEOF
2940 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2941 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2942 *@@@%%%=?*=@@@%%%*)
2943 eval ac_cv_prog_make_${ac_make}_set=yes;;
2945 eval ac_cv_prog_make_${ac_make}_set=no;;
2946 esac
2947 rm -f conftest.make
2949 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2950 { echo "$as_me:$LINENO: result: yes" >&5
2951 echo "${ECHO_T}yes" >&6; }
2952 SET_MAKE=
2953 else
2954 { echo "$as_me:$LINENO: result: no" >&5
2955 echo "${ECHO_T}no" >&6; }
2956 SET_MAKE="MAKE=${MAKE-make}"
2959 rm -rf .tst 2>/dev/null
2960 mkdir .tst 2>/dev/null
2961 if test -d .tst; then
2962 am__leading_dot=.
2963 else
2964 am__leading_dot=_
2966 rmdir .tst 2>/dev/null
2968 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2969 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2970 # is not polluted with repeated "-I."
2971 am__isrc=' -I$(srcdir)'
2972 # test to see if srcdir already configured
2973 if test -f $srcdir/config.status; then
2974 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2975 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2976 { (exit 1); exit 1; }; }
2980 # test whether we have cygpath
2981 if test -z "$CYGPATH_W"; then
2982 if (cygpath --version) >/dev/null 2>/dev/null; then
2983 CYGPATH_W='cygpath -w'
2984 else
2985 CYGPATH_W=echo
2990 # Define the identity of the package.
2991 PACKAGE='xorg-server'
2992 VERSION='1.4'
2995 cat >>confdefs.h <<_ACEOF
2996 #define PACKAGE "$PACKAGE"
2997 _ACEOF
3000 cat >>confdefs.h <<_ACEOF
3001 #define VERSION "$VERSION"
3002 _ACEOF
3004 # Some tools Automake needs.
3006 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3009 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3012 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3015 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3018 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3020 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
3022 # Installed binaries are usually stripped using `strip' when the user
3023 # run `make install-strip'. However `strip' might not be the right
3024 # tool to use in cross-compilation environments, therefore Automake
3025 # will honor the `STRIP' environment variable to overrule this program.
3026 if test "$cross_compiling" != no; then
3027 if test -n "$ac_tool_prefix"; then
3028 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3029 set dummy ${ac_tool_prefix}strip; ac_word=$2
3030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3032 if test "${ac_cv_prog_STRIP+set}" = set; then
3033 echo $ECHO_N "(cached) $ECHO_C" >&6
3034 else
3035 if test -n "$STRIP"; then
3036 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3037 else
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 for as_dir in $PATH
3041 IFS=$as_save_IFS
3042 test -z "$as_dir" && as_dir=.
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3045 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3047 break 2
3049 done
3050 done
3051 IFS=$as_save_IFS
3055 STRIP=$ac_cv_prog_STRIP
3056 if test -n "$STRIP"; then
3057 { echo "$as_me:$LINENO: result: $STRIP" >&5
3058 echo "${ECHO_T}$STRIP" >&6; }
3059 else
3060 { echo "$as_me:$LINENO: result: no" >&5
3061 echo "${ECHO_T}no" >&6; }
3066 if test -z "$ac_cv_prog_STRIP"; then
3067 ac_ct_STRIP=$STRIP
3068 # Extract the first word of "strip", so it can be a program name with args.
3069 set dummy strip; ac_word=$2
3070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3072 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3073 echo $ECHO_N "(cached) $ECHO_C" >&6
3074 else
3075 if test -n "$ac_ct_STRIP"; then
3076 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3077 else
3078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 for as_dir in $PATH
3081 IFS=$as_save_IFS
3082 test -z "$as_dir" && as_dir=.
3083 for ac_exec_ext in '' $ac_executable_extensions; do
3084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3085 ac_cv_prog_ac_ct_STRIP="strip"
3086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3087 break 2
3089 done
3090 done
3091 IFS=$as_save_IFS
3095 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3096 if test -n "$ac_ct_STRIP"; then
3097 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3098 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
3099 else
3100 { echo "$as_me:$LINENO: result: no" >&5
3101 echo "${ECHO_T}no" >&6; }
3104 if test "x$ac_ct_STRIP" = x; then
3105 STRIP=":"
3106 else
3107 case $cross_compiling:$ac_tool_warned in
3108 yes:)
3109 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3110 whose name does not start with the host triplet. If you think this
3111 configuration is useful to you, please write to autoconf@gnu.org." >&5
3112 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3113 whose name does not start with the host triplet. If you think this
3114 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3115 ac_tool_warned=yes ;;
3116 esac
3117 STRIP=$ac_ct_STRIP
3119 else
3120 STRIP="$ac_cv_prog_STRIP"
3124 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3126 # We need awk for the "check" target. The system "awk" is bad on
3127 # some platforms.
3128 # Always define AMTAR for backward compatibility.
3130 AMTAR=${AMTAR-"${am_missing_run}tar"}
3132 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3138 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3139 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
3140 # Check whether --enable-maintainer-mode was given.
3141 if test "${enable_maintainer_mode+set}" = set; then
3142 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3143 else
3144 USE_MAINTAINER_MODE=no
3147 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3148 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
3149 if test $USE_MAINTAINER_MODE = yes; then
3150 MAINTAINER_MODE_TRUE=
3151 MAINTAINER_MODE_FALSE='#'
3152 else
3153 MAINTAINER_MODE_TRUE='#'
3154 MAINTAINER_MODE_FALSE=
3157 MAINT=$MAINTAINER_MODE_TRUE
3161 ac_config_headers="$ac_config_headers include/do-not-use-config.h"
3163 ac_config_headers="$ac_config_headers include/xorg-server.h"
3165 ac_config_headers="$ac_config_headers include/dix-config.h"
3167 ac_config_headers="$ac_config_headers include/xgl-config.h"
3169 ac_config_headers="$ac_config_headers include/xorg-config.h"
3171 ac_config_headers="$ac_config_headers include/xkb-config.h"
3173 ac_config_headers="$ac_config_headers include/xwin-config.h"
3175 ac_config_headers="$ac_config_headers include/kdrive-config.h"
3178 ac_ext=c
3179 ac_cpp='$CPP $CPPFLAGS'
3180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3183 if test -n "$ac_tool_prefix"; then
3184 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3185 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3188 if test "${ac_cv_prog_CC+set}" = set; then
3189 echo $ECHO_N "(cached) $ECHO_C" >&6
3190 else
3191 if test -n "$CC"; then
3192 ac_cv_prog_CC="$CC" # Let the user override the test.
3193 else
3194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 for as_dir in $PATH
3197 IFS=$as_save_IFS
3198 test -z "$as_dir" && as_dir=.
3199 for ac_exec_ext in '' $ac_executable_extensions; do
3200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3201 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3203 break 2
3205 done
3206 done
3207 IFS=$as_save_IFS
3211 CC=$ac_cv_prog_CC
3212 if test -n "$CC"; then
3213 { echo "$as_me:$LINENO: result: $CC" >&5
3214 echo "${ECHO_T}$CC" >&6; }
3215 else
3216 { echo "$as_me:$LINENO: result: no" >&5
3217 echo "${ECHO_T}no" >&6; }
3222 if test -z "$ac_cv_prog_CC"; then
3223 ac_ct_CC=$CC
3224 # Extract the first word of "gcc", so it can be a program name with args.
3225 set dummy gcc; ac_word=$2
3226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3228 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3229 echo $ECHO_N "(cached) $ECHO_C" >&6
3230 else
3231 if test -n "$ac_ct_CC"; then
3232 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3233 else
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 for as_dir in $PATH
3237 IFS=$as_save_IFS
3238 test -z "$as_dir" && as_dir=.
3239 for ac_exec_ext in '' $ac_executable_extensions; do
3240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3241 ac_cv_prog_ac_ct_CC="gcc"
3242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3243 break 2
3245 done
3246 done
3247 IFS=$as_save_IFS
3251 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3252 if test -n "$ac_ct_CC"; then
3253 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3254 echo "${ECHO_T}$ac_ct_CC" >&6; }
3255 else
3256 { echo "$as_me:$LINENO: result: no" >&5
3257 echo "${ECHO_T}no" >&6; }
3260 if test "x$ac_ct_CC" = x; then
3261 CC=""
3262 else
3263 case $cross_compiling:$ac_tool_warned in
3264 yes:)
3265 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3266 whose name does not start with the host triplet. If you think this
3267 configuration is useful to you, please write to autoconf@gnu.org." >&5
3268 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3269 whose name does not start with the host triplet. If you think this
3270 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3271 ac_tool_warned=yes ;;
3272 esac
3273 CC=$ac_ct_CC
3275 else
3276 CC="$ac_cv_prog_CC"
3279 if test -z "$CC"; then
3280 if test -n "$ac_tool_prefix"; then
3281 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3282 set dummy ${ac_tool_prefix}cc; ac_word=$2
3283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3285 if test "${ac_cv_prog_CC+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 else
3288 if test -n "$CC"; then
3289 ac_cv_prog_CC="$CC" # Let the user override the test.
3290 else
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 for as_dir in $PATH
3294 IFS=$as_save_IFS
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3298 ac_cv_prog_CC="${ac_tool_prefix}cc"
3299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 break 2
3302 done
3303 done
3304 IFS=$as_save_IFS
3308 CC=$ac_cv_prog_CC
3309 if test -n "$CC"; then
3310 { echo "$as_me:$LINENO: result: $CC" >&5
3311 echo "${ECHO_T}$CC" >&6; }
3312 else
3313 { echo "$as_me:$LINENO: result: no" >&5
3314 echo "${ECHO_T}no" >&6; }
3320 if test -z "$CC"; then
3321 # Extract the first word of "cc", so it can be a program name with args.
3322 set dummy cc; ac_word=$2
3323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3325 if test "${ac_cv_prog_CC+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3327 else
3328 if test -n "$CC"; then
3329 ac_cv_prog_CC="$CC" # Let the user override the test.
3330 else
3331 ac_prog_rejected=no
3332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3333 for as_dir in $PATH
3335 IFS=$as_save_IFS
3336 test -z "$as_dir" && as_dir=.
3337 for ac_exec_ext in '' $ac_executable_extensions; do
3338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3339 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3340 ac_prog_rejected=yes
3341 continue
3343 ac_cv_prog_CC="cc"
3344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3345 break 2
3347 done
3348 done
3349 IFS=$as_save_IFS
3351 if test $ac_prog_rejected = yes; then
3352 # We found a bogon in the path, so make sure we never use it.
3353 set dummy $ac_cv_prog_CC
3354 shift
3355 if test $# != 0; then
3356 # We chose a different compiler from the bogus one.
3357 # However, it has the same basename, so the bogon will be chosen
3358 # first if we set CC to just the basename; use the full file name.
3359 shift
3360 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3365 CC=$ac_cv_prog_CC
3366 if test -n "$CC"; then
3367 { echo "$as_me:$LINENO: result: $CC" >&5
3368 echo "${ECHO_T}$CC" >&6; }
3369 else
3370 { echo "$as_me:$LINENO: result: no" >&5
3371 echo "${ECHO_T}no" >&6; }
3376 if test -z "$CC"; then
3377 if test -n "$ac_tool_prefix"; then
3378 for ac_prog in cl.exe
3380 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3381 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3384 if test "${ac_cv_prog_CC+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3386 else
3387 if test -n "$CC"; then
3388 ac_cv_prog_CC="$CC" # Let the user override the test.
3389 else
3390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 for as_dir in $PATH
3393 IFS=$as_save_IFS
3394 test -z "$as_dir" && as_dir=.
3395 for ac_exec_ext in '' $ac_executable_extensions; do
3396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3397 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3399 break 2
3401 done
3402 done
3403 IFS=$as_save_IFS
3407 CC=$ac_cv_prog_CC
3408 if test -n "$CC"; then
3409 { echo "$as_me:$LINENO: result: $CC" >&5
3410 echo "${ECHO_T}$CC" >&6; }
3411 else
3412 { echo "$as_me:$LINENO: result: no" >&5
3413 echo "${ECHO_T}no" >&6; }
3417 test -n "$CC" && break
3418 done
3420 if test -z "$CC"; then
3421 ac_ct_CC=$CC
3422 for ac_prog in cl.exe
3424 # Extract the first word of "$ac_prog", so it can be a program name with args.
3425 set dummy $ac_prog; ac_word=$2
3426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3428 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3429 echo $ECHO_N "(cached) $ECHO_C" >&6
3430 else
3431 if test -n "$ac_ct_CC"; then
3432 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3433 else
3434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3435 for as_dir in $PATH
3437 IFS=$as_save_IFS
3438 test -z "$as_dir" && as_dir=.
3439 for ac_exec_ext in '' $ac_executable_extensions; do
3440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3441 ac_cv_prog_ac_ct_CC="$ac_prog"
3442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3443 break 2
3445 done
3446 done
3447 IFS=$as_save_IFS
3451 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3452 if test -n "$ac_ct_CC"; then
3453 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3454 echo "${ECHO_T}$ac_ct_CC" >&6; }
3455 else
3456 { echo "$as_me:$LINENO: result: no" >&5
3457 echo "${ECHO_T}no" >&6; }
3461 test -n "$ac_ct_CC" && break
3462 done
3464 if test "x$ac_ct_CC" = x; then
3465 CC=""
3466 else
3467 case $cross_compiling:$ac_tool_warned in
3468 yes:)
3469 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3470 whose name does not start with the host triplet. If you think this
3471 configuration is useful to you, please write to autoconf@gnu.org." >&5
3472 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3473 whose name does not start with the host triplet. If you think this
3474 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3475 ac_tool_warned=yes ;;
3476 esac
3477 CC=$ac_ct_CC
3484 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3485 See \`config.log' for more details." >&5
3486 echo "$as_me: error: no acceptable C compiler found in \$PATH
3487 See \`config.log' for more details." >&2;}
3488 { (exit 1); exit 1; }; }
3490 # Provide some information about the compiler.
3491 echo "$as_me:$LINENO: checking for C compiler version" >&5
3492 ac_compiler=`set X $ac_compile; echo $2`
3493 { (ac_try="$ac_compiler --version >&5"
3494 case "(($ac_try" in
3495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496 *) ac_try_echo=$ac_try;;
3497 esac
3498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3499 (eval "$ac_compiler --version >&5") 2>&5
3500 ac_status=$?
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); }
3503 { (ac_try="$ac_compiler -v >&5"
3504 case "(($ac_try" in
3505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506 *) ac_try_echo=$ac_try;;
3507 esac
3508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3509 (eval "$ac_compiler -v >&5") 2>&5
3510 ac_status=$?
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); }
3513 { (ac_try="$ac_compiler -V >&5"
3514 case "(($ac_try" in
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3517 esac
3518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3519 (eval "$ac_compiler -V >&5") 2>&5
3520 ac_status=$?
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }
3524 cat >conftest.$ac_ext <<_ACEOF
3525 /* confdefs.h. */
3526 _ACEOF
3527 cat confdefs.h >>conftest.$ac_ext
3528 cat >>conftest.$ac_ext <<_ACEOF
3529 /* end confdefs.h. */
3532 main ()
3536 return 0;
3538 _ACEOF
3539 ac_clean_files_save=$ac_clean_files
3540 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3541 # Try to create an executable without -o first, disregard a.out.
3542 # It will help us diagnose broken compilers, and finding out an intuition
3543 # of exeext.
3544 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3545 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3546 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3548 # List of possible output files, starting from the most likely.
3549 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3550 # only as a last resort. b.out is created by i960 compilers.
3551 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3553 # The IRIX 6 linker writes into existing files which may not be
3554 # executable, retaining their permissions. Remove them first so a
3555 # subsequent execution test works.
3556 ac_rmfiles=
3557 for ac_file in $ac_files
3559 case $ac_file in
3560 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3561 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3562 esac
3563 done
3564 rm -f $ac_rmfiles
3566 if { (ac_try="$ac_link_default"
3567 case "(($ac_try" in
3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569 *) ac_try_echo=$ac_try;;
3570 esac
3571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3572 (eval "$ac_link_default") 2>&5
3573 ac_status=$?
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; then
3576 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3577 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3578 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3579 # so that the user can short-circuit this test for compilers unknown to
3580 # Autoconf.
3581 for ac_file in $ac_files ''
3583 test -f "$ac_file" || continue
3584 case $ac_file in
3585 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3587 [ab].out )
3588 # We found the default executable, but exeext='' is most
3589 # certainly right.
3590 break;;
3591 *.* )
3592 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3593 then :; else
3594 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3596 # We set ac_cv_exeext here because the later test for it is not
3597 # safe: cross compilers may not add the suffix if given an `-o'
3598 # argument, so we may need to know it at that point already.
3599 # Even if this section looks crufty: it has the advantage of
3600 # actually working.
3601 break;;
3603 break;;
3604 esac
3605 done
3606 test "$ac_cv_exeext" = no && ac_cv_exeext=
3608 else
3609 ac_file=''
3612 { echo "$as_me:$LINENO: result: $ac_file" >&5
3613 echo "${ECHO_T}$ac_file" >&6; }
3614 if test -z "$ac_file"; then
3615 echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3618 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3619 See \`config.log' for more details." >&5
3620 echo "$as_me: error: C compiler cannot create executables
3621 See \`config.log' for more details." >&2;}
3622 { (exit 77); exit 77; }; }
3625 ac_exeext=$ac_cv_exeext
3627 # Check that the compiler produces executables we can run. If not, either
3628 # the compiler is broken, or we cross compile.
3629 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3630 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3631 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3632 # If not cross compiling, check that we can run a simple program.
3633 if test "$cross_compiling" != yes; then
3634 if { ac_try='./$ac_file'
3635 { (case "(($ac_try" in
3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3638 esac
3639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3640 (eval "$ac_try") 2>&5
3641 ac_status=$?
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; }; then
3644 cross_compiling=no
3645 else
3646 if test "$cross_compiling" = maybe; then
3647 cross_compiling=yes
3648 else
3649 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3650 If you meant to cross compile, use \`--host'.
3651 See \`config.log' for more details." >&5
3652 echo "$as_me: error: cannot run C compiled programs.
3653 If you meant to cross compile, use \`--host'.
3654 See \`config.log' for more details." >&2;}
3655 { (exit 1); exit 1; }; }
3659 { echo "$as_me:$LINENO: result: yes" >&5
3660 echo "${ECHO_T}yes" >&6; }
3662 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3663 ac_clean_files=$ac_clean_files_save
3664 # Check that the compiler produces executables we can run. If not, either
3665 # the compiler is broken, or we cross compile.
3666 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3667 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3668 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3669 echo "${ECHO_T}$cross_compiling" >&6; }
3671 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3672 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3673 if { (ac_try="$ac_link"
3674 case "(($ac_try" in
3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676 *) ac_try_echo=$ac_try;;
3677 esac
3678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3679 (eval "$ac_link") 2>&5
3680 ac_status=$?
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); }; then
3683 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3684 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3685 # work properly (i.e., refer to `conftest.exe'), while it won't with
3686 # `rm'.
3687 for ac_file in conftest.exe conftest conftest.*; do
3688 test -f "$ac_file" || continue
3689 case $ac_file in
3690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3691 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3692 break;;
3693 * ) break;;
3694 esac
3695 done
3696 else
3697 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3698 See \`config.log' for more details." >&5
3699 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3700 See \`config.log' for more details." >&2;}
3701 { (exit 1); exit 1; }; }
3704 rm -f conftest$ac_cv_exeext
3705 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3706 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3708 rm -f conftest.$ac_ext
3709 EXEEXT=$ac_cv_exeext
3710 ac_exeext=$EXEEXT
3711 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3712 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3713 if test "${ac_cv_objext+set}" = set; then
3714 echo $ECHO_N "(cached) $ECHO_C" >&6
3715 else
3716 cat >conftest.$ac_ext <<_ACEOF
3717 /* confdefs.h. */
3718 _ACEOF
3719 cat confdefs.h >>conftest.$ac_ext
3720 cat >>conftest.$ac_ext <<_ACEOF
3721 /* end confdefs.h. */
3724 main ()
3728 return 0;
3730 _ACEOF
3731 rm -f conftest.o conftest.obj
3732 if { (ac_try="$ac_compile"
3733 case "(($ac_try" in
3734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735 *) ac_try_echo=$ac_try;;
3736 esac
3737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3738 (eval "$ac_compile") 2>&5
3739 ac_status=$?
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }; then
3742 for ac_file in conftest.o conftest.obj conftest.*; do
3743 test -f "$ac_file" || continue;
3744 case $ac_file in
3745 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3746 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3747 break;;
3748 esac
3749 done
3750 else
3751 echo "$as_me: failed program was:" >&5
3752 sed 's/^/| /' conftest.$ac_ext >&5
3754 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3755 See \`config.log' for more details." >&5
3756 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3757 See \`config.log' for more details." >&2;}
3758 { (exit 1); exit 1; }; }
3761 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3763 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3764 echo "${ECHO_T}$ac_cv_objext" >&6; }
3765 OBJEXT=$ac_cv_objext
3766 ac_objext=$OBJEXT
3767 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3768 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3769 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3771 else
3772 cat >conftest.$ac_ext <<_ACEOF
3773 /* confdefs.h. */
3774 _ACEOF
3775 cat confdefs.h >>conftest.$ac_ext
3776 cat >>conftest.$ac_ext <<_ACEOF
3777 /* end confdefs.h. */
3780 main ()
3782 #ifndef __GNUC__
3783 choke me
3784 #endif
3787 return 0;
3789 _ACEOF
3790 rm -f conftest.$ac_objext
3791 if { (ac_try="$ac_compile"
3792 case "(($ac_try" in
3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794 *) ac_try_echo=$ac_try;;
3795 esac
3796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3797 (eval "$ac_compile") 2>conftest.er1
3798 ac_status=$?
3799 grep -v '^ *+' conftest.er1 >conftest.err
3800 rm -f conftest.er1
3801 cat conftest.err >&5
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); } && {
3804 test -z "$ac_c_werror_flag" ||
3805 test ! -s conftest.err
3806 } && test -s conftest.$ac_objext; then
3807 ac_compiler_gnu=yes
3808 else
3809 echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3812 ac_compiler_gnu=no
3815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3816 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3819 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3820 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3821 GCC=`test $ac_compiler_gnu = yes && echo yes`
3822 ac_test_CFLAGS=${CFLAGS+set}
3823 ac_save_CFLAGS=$CFLAGS
3824 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3825 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3826 if test "${ac_cv_prog_cc_g+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3828 else
3829 ac_save_c_werror_flag=$ac_c_werror_flag
3830 ac_c_werror_flag=yes
3831 ac_cv_prog_cc_g=no
3832 CFLAGS="-g"
3833 cat >conftest.$ac_ext <<_ACEOF
3834 /* confdefs.h. */
3835 _ACEOF
3836 cat confdefs.h >>conftest.$ac_ext
3837 cat >>conftest.$ac_ext <<_ACEOF
3838 /* end confdefs.h. */
3841 main ()
3845 return 0;
3847 _ACEOF
3848 rm -f conftest.$ac_objext
3849 if { (ac_try="$ac_compile"
3850 case "(($ac_try" in
3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3853 esac
3854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3855 (eval "$ac_compile") 2>conftest.er1
3856 ac_status=$?
3857 grep -v '^ *+' conftest.er1 >conftest.err
3858 rm -f conftest.er1
3859 cat conftest.err >&5
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); } && {
3862 test -z "$ac_c_werror_flag" ||
3863 test ! -s conftest.err
3864 } && test -s conftest.$ac_objext; then
3865 ac_cv_prog_cc_g=yes
3866 else
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3870 CFLAGS=""
3871 cat >conftest.$ac_ext <<_ACEOF
3872 /* confdefs.h. */
3873 _ACEOF
3874 cat confdefs.h >>conftest.$ac_ext
3875 cat >>conftest.$ac_ext <<_ACEOF
3876 /* end confdefs.h. */
3879 main ()
3883 return 0;
3885 _ACEOF
3886 rm -f conftest.$ac_objext
3887 if { (ac_try="$ac_compile"
3888 case "(($ac_try" in
3889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3890 *) ac_try_echo=$ac_try;;
3891 esac
3892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3893 (eval "$ac_compile") 2>conftest.er1
3894 ac_status=$?
3895 grep -v '^ *+' conftest.er1 >conftest.err
3896 rm -f conftest.er1
3897 cat conftest.err >&5
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); } && {
3900 test -z "$ac_c_werror_flag" ||
3901 test ! -s conftest.err
3902 } && test -s conftest.$ac_objext; then
3904 else
3905 echo "$as_me: failed program was:" >&5
3906 sed 's/^/| /' conftest.$ac_ext >&5
3908 ac_c_werror_flag=$ac_save_c_werror_flag
3909 CFLAGS="-g"
3910 cat >conftest.$ac_ext <<_ACEOF
3911 /* confdefs.h. */
3912 _ACEOF
3913 cat confdefs.h >>conftest.$ac_ext
3914 cat >>conftest.$ac_ext <<_ACEOF
3915 /* end confdefs.h. */
3918 main ()
3922 return 0;
3924 _ACEOF
3925 rm -f conftest.$ac_objext
3926 if { (ac_try="$ac_compile"
3927 case "(($ac_try" in
3928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3929 *) ac_try_echo=$ac_try;;
3930 esac
3931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3932 (eval "$ac_compile") 2>conftest.er1
3933 ac_status=$?
3934 grep -v '^ *+' conftest.er1 >conftest.err
3935 rm -f conftest.er1
3936 cat conftest.err >&5
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); } && {
3939 test -z "$ac_c_werror_flag" ||
3940 test ! -s conftest.err
3941 } && test -s conftest.$ac_objext; then
3942 ac_cv_prog_cc_g=yes
3943 else
3944 echo "$as_me: failed program was:" >&5
3945 sed 's/^/| /' conftest.$ac_ext >&5
3950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3957 ac_c_werror_flag=$ac_save_c_werror_flag
3959 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3960 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3961 if test "$ac_test_CFLAGS" = set; then
3962 CFLAGS=$ac_save_CFLAGS
3963 elif test $ac_cv_prog_cc_g = yes; then
3964 if test "$GCC" = yes; then
3965 CFLAGS="-g -O2"
3966 else
3967 CFLAGS="-g"
3969 else
3970 if test "$GCC" = yes; then
3971 CFLAGS="-O2"
3972 else
3973 CFLAGS=
3976 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3977 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3978 if test "${ac_cv_prog_cc_c89+set}" = set; then
3979 echo $ECHO_N "(cached) $ECHO_C" >&6
3980 else
3981 ac_cv_prog_cc_c89=no
3982 ac_save_CC=$CC
3983 cat >conftest.$ac_ext <<_ACEOF
3984 /* confdefs.h. */
3985 _ACEOF
3986 cat confdefs.h >>conftest.$ac_ext
3987 cat >>conftest.$ac_ext <<_ACEOF
3988 /* end confdefs.h. */
3989 #include <stdarg.h>
3990 #include <stdio.h>
3991 #include <sys/types.h>
3992 #include <sys/stat.h>
3993 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3994 struct buf { int x; };
3995 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3996 static char *e (p, i)
3997 char **p;
3998 int i;
4000 return p[i];
4002 static char *f (char * (*g) (char **, int), char **p, ...)
4004 char *s;
4005 va_list v;
4006 va_start (v,p);
4007 s = g (p, va_arg (v,int));
4008 va_end (v);
4009 return s;
4012 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4013 function prototypes and stuff, but not '\xHH' hex character constants.
4014 These don't provoke an error unfortunately, instead are silently treated
4015 as 'x'. The following induces an error, until -std is added to get
4016 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4017 array size at least. It's necessary to write '\x00'==0 to get something
4018 that's true only with -std. */
4019 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4021 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4022 inside strings and character constants. */
4023 #define FOO(x) 'x'
4024 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4026 int test (int i, double x);
4027 struct s1 {int (*f) (int a);};
4028 struct s2 {int (*f) (double a);};
4029 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4030 int argc;
4031 char **argv;
4033 main ()
4035 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4037 return 0;
4039 _ACEOF
4040 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4041 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4043 CC="$ac_save_CC $ac_arg"
4044 rm -f conftest.$ac_objext
4045 if { (ac_try="$ac_compile"
4046 case "(($ac_try" in
4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4049 esac
4050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4051 (eval "$ac_compile") 2>conftest.er1
4052 ac_status=$?
4053 grep -v '^ *+' conftest.er1 >conftest.err
4054 rm -f conftest.er1
4055 cat conftest.err >&5
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); } && {
4058 test -z "$ac_c_werror_flag" ||
4059 test ! -s conftest.err
4060 } && test -s conftest.$ac_objext; then
4061 ac_cv_prog_cc_c89=$ac_arg
4062 else
4063 echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.$ac_ext >&5
4069 rm -f core conftest.err conftest.$ac_objext
4070 test "x$ac_cv_prog_cc_c89" != "xno" && break
4071 done
4072 rm -f conftest.$ac_ext
4073 CC=$ac_save_CC
4076 # AC_CACHE_VAL
4077 case "x$ac_cv_prog_cc_c89" in
4079 { echo "$as_me:$LINENO: result: none needed" >&5
4080 echo "${ECHO_T}none needed" >&6; } ;;
4081 xno)
4082 { echo "$as_me:$LINENO: result: unsupported" >&5
4083 echo "${ECHO_T}unsupported" >&6; } ;;
4085 CC="$CC $ac_cv_prog_cc_c89"
4086 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4087 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4088 esac
4091 ac_ext=c
4092 ac_cpp='$CPP $CPPFLAGS'
4093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4096 DEPDIR="${am__leading_dot}deps"
4098 ac_config_commands="$ac_config_commands depfiles"
4101 am_make=${MAKE-make}
4102 cat > confinc << 'END'
4103 am__doit:
4104 @echo done
4105 .PHONY: am__doit
4107 # If we don't find an include directive, just comment out the code.
4108 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4109 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
4110 am__include="#"
4111 am__quote=
4112 _am_result=none
4113 # First try GNU make style include.
4114 echo "include confinc" > confmf
4115 # We grep out `Entering directory' and `Leaving directory'
4116 # messages which can occur if `w' ends up in MAKEFLAGS.
4117 # In particular we don't look at `^make:' because GNU make might
4118 # be invoked under some other name (usually "gmake"), in which
4119 # case it prints its new name instead of `make'.
4120 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4121 am__include=include
4122 am__quote=
4123 _am_result=GNU
4125 # Now try BSD make style include.
4126 if test "$am__include" = "#"; then
4127 echo '.include "confinc"' > confmf
4128 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4129 am__include=.include
4130 am__quote="\""
4131 _am_result=BSD
4136 { echo "$as_me:$LINENO: result: $_am_result" >&5
4137 echo "${ECHO_T}$_am_result" >&6; }
4138 rm -f confinc confmf
4140 # Check whether --enable-dependency-tracking was given.
4141 if test "${enable_dependency_tracking+set}" = set; then
4142 enableval=$enable_dependency_tracking;
4145 if test "x$enable_dependency_tracking" != xno; then
4146 am_depcomp="$ac_aux_dir/depcomp"
4147 AMDEPBACKSLASH='\'
4149 if test "x$enable_dependency_tracking" != xno; then
4150 AMDEP_TRUE=
4151 AMDEP_FALSE='#'
4152 else
4153 AMDEP_TRUE='#'
4154 AMDEP_FALSE=
4159 depcc="$CC" am_compiler_list=
4161 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4162 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4163 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4164 echo $ECHO_N "(cached) $ECHO_C" >&6
4165 else
4166 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4167 # We make a subdir and do the tests there. Otherwise we can end up
4168 # making bogus files that we don't know about and never remove. For
4169 # instance it was reported that on HP-UX the gcc test will end up
4170 # making a dummy file named `D' -- because `-MD' means `put the output
4171 # in D'.
4172 mkdir conftest.dir
4173 # Copy depcomp to subdir because otherwise we won't find it if we're
4174 # using a relative directory.
4175 cp "$am_depcomp" conftest.dir
4176 cd conftest.dir
4177 # We will build objects and dependencies in a subdirectory because
4178 # it helps to detect inapplicable dependency modes. For instance
4179 # both Tru64's cc and ICC support -MD to output dependencies as a
4180 # side effect of compilation, but ICC will put the dependencies in
4181 # the current directory while Tru64 will put them in the object
4182 # directory.
4183 mkdir sub
4185 am_cv_CC_dependencies_compiler_type=none
4186 if test "$am_compiler_list" = ""; then
4187 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4189 for depmode in $am_compiler_list; do
4190 # Setup a source with many dependencies, because some compilers
4191 # like to wrap large dependency lists on column 80 (with \), and
4192 # we should not choose a depcomp mode which is confused by this.
4194 # We need to recreate these files for each test, as the compiler may
4195 # overwrite some of them when testing with obscure command lines.
4196 # This happens at least with the AIX C compiler.
4197 : > sub/conftest.c
4198 for i in 1 2 3 4 5 6; do
4199 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4200 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4201 # Solaris 8's {/usr,}/bin/sh.
4202 touch sub/conftst$i.h
4203 done
4204 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4206 case $depmode in
4207 nosideeffect)
4208 # after this tag, mechanisms are not by side-effect, so they'll
4209 # only be used when explicitly requested
4210 if test "x$enable_dependency_tracking" = xyes; then
4211 continue
4212 else
4213 break
4216 none) break ;;
4217 esac
4218 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4219 # mode. It turns out that the SunPro C++ compiler does not properly
4220 # handle `-M -o', and we need to detect this.
4221 if depmode=$depmode \
4222 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4223 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4224 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4225 >/dev/null 2>conftest.err &&
4226 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4227 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4228 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4229 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4230 # icc doesn't choke on unknown options, it will just issue warnings
4231 # or remarks (even with -Werror). So we grep stderr for any message
4232 # that says an option was ignored or not supported.
4233 # When given -MP, icc 7.0 and 7.1 complain thusly:
4234 # icc: Command line warning: ignoring option '-M'; no argument required
4235 # The diagnosis changed in icc 8.0:
4236 # icc: Command line remark: option '-MP' not supported
4237 if (grep 'ignoring option' conftest.err ||
4238 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4239 am_cv_CC_dependencies_compiler_type=$depmode
4240 break
4243 done
4245 cd ..
4246 rm -rf conftest.dir
4247 else
4248 am_cv_CC_dependencies_compiler_type=none
4252 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4253 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4254 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4257 test "x$enable_dependency_tracking" != xno \
4258 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4259 am__fastdepCC_TRUE=
4260 am__fastdepCC_FALSE='#'
4261 else
4262 am__fastdepCC_TRUE='#'
4263 am__fastdepCC_FALSE=
4267 # By default we simply use the C compiler to build assembly code.
4269 test "${CCAS+set}" = set || CCAS=$CC
4270 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4274 depcc="$CCAS" am_compiler_list=
4276 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4277 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4278 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
4279 echo $ECHO_N "(cached) $ECHO_C" >&6
4280 else
4281 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4282 # We make a subdir and do the tests there. Otherwise we can end up
4283 # making bogus files that we don't know about and never remove. For
4284 # instance it was reported that on HP-UX the gcc test will end up
4285 # making a dummy file named `D' -- because `-MD' means `put the output
4286 # in D'.
4287 mkdir conftest.dir
4288 # Copy depcomp to subdir because otherwise we won't find it if we're
4289 # using a relative directory.
4290 cp "$am_depcomp" conftest.dir
4291 cd conftest.dir
4292 # We will build objects and dependencies in a subdirectory because
4293 # it helps to detect inapplicable dependency modes. For instance
4294 # both Tru64's cc and ICC support -MD to output dependencies as a
4295 # side effect of compilation, but ICC will put the dependencies in
4296 # the current directory while Tru64 will put them in the object
4297 # directory.
4298 mkdir sub
4300 am_cv_CCAS_dependencies_compiler_type=none
4301 if test "$am_compiler_list" = ""; then
4302 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4304 for depmode in $am_compiler_list; do
4305 # Setup a source with many dependencies, because some compilers
4306 # like to wrap large dependency lists on column 80 (with \), and
4307 # we should not choose a depcomp mode which is confused by this.
4309 # We need to recreate these files for each test, as the compiler may
4310 # overwrite some of them when testing with obscure command lines.
4311 # This happens at least with the AIX C compiler.
4312 : > sub/conftest.c
4313 for i in 1 2 3 4 5 6; do
4314 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4315 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4316 # Solaris 8's {/usr,}/bin/sh.
4317 touch sub/conftst$i.h
4318 done
4319 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4321 case $depmode in
4322 nosideeffect)
4323 # after this tag, mechanisms are not by side-effect, so they'll
4324 # only be used when explicitly requested
4325 if test "x$enable_dependency_tracking" = xyes; then
4326 continue
4327 else
4328 break
4331 none) break ;;
4332 esac
4333 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4334 # mode. It turns out that the SunPro C++ compiler does not properly
4335 # handle `-M -o', and we need to detect this.
4336 if depmode=$depmode \
4337 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4338 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4339 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4340 >/dev/null 2>conftest.err &&
4341 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4342 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4343 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4344 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4345 # icc doesn't choke on unknown options, it will just issue warnings
4346 # or remarks (even with -Werror). So we grep stderr for any message
4347 # that says an option was ignored or not supported.
4348 # When given -MP, icc 7.0 and 7.1 complain thusly:
4349 # icc: Command line warning: ignoring option '-M'; no argument required
4350 # The diagnosis changed in icc 8.0:
4351 # icc: Command line remark: option '-MP' not supported
4352 if (grep 'ignoring option' conftest.err ||
4353 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4354 am_cv_CCAS_dependencies_compiler_type=$depmode
4355 break
4358 done
4360 cd ..
4361 rm -rf conftest.dir
4362 else
4363 am_cv_CCAS_dependencies_compiler_type=none
4367 { echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4368 echo "${ECHO_T}$am_cv_CCAS_dependencies_compiler_type" >&6; }
4369 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4372 test "x$enable_dependency_tracking" != xno \
4373 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4374 am__fastdepCCAS_TRUE=
4375 am__fastdepCCAS_FALSE='#'
4376 else
4377 am__fastdepCCAS_TRUE='#'
4378 am__fastdepCCAS_FALSE=
4382 # Find a good install program. We prefer a C program (faster),
4383 # so one script is as good as another. But avoid the broken or
4384 # incompatible versions:
4385 # SysV /etc/install, /usr/sbin/install
4386 # SunOS /usr/etc/install
4387 # IRIX /sbin/install
4388 # AIX /bin/install
4389 # AmigaOS /C/install, which installs bootblocks on floppy discs
4390 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4391 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4392 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4393 # OS/2's system install, which has a completely different semantic
4394 # ./install, which can be erroneously created by make from ./install.sh.
4395 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4396 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4397 if test -z "$INSTALL"; then
4398 if test "${ac_cv_path_install+set}" = set; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4400 else
4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402 for as_dir in $PATH
4404 IFS=$as_save_IFS
4405 test -z "$as_dir" && as_dir=.
4406 # Account for people who put trailing slashes in PATH elements.
4407 case $as_dir/ in
4408 ./ | .// | /cC/* | \
4409 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4410 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4411 /usr/ucb/* ) ;;
4413 # OSF1 and SCO ODT 3.0 have their own names for install.
4414 # Don't use installbsd from OSF since it installs stuff as root
4415 # by default.
4416 for ac_prog in ginstall scoinst install; do
4417 for ac_exec_ext in '' $ac_executable_extensions; do
4418 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4419 if test $ac_prog = install &&
4420 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4421 # AIX install. It has an incompatible calling convention.
4423 elif test $ac_prog = install &&
4424 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4425 # program-specific install script used by HP pwplus--don't use.
4427 else
4428 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4429 break 3
4432 done
4433 done
4435 esac
4436 done
4437 IFS=$as_save_IFS
4441 if test "${ac_cv_path_install+set}" = set; then
4442 INSTALL=$ac_cv_path_install
4443 else
4444 # As a last resort, use the slow shell script. Don't cache a
4445 # value for INSTALL within a source directory, because that will
4446 # break other packages using the cache if that directory is
4447 # removed, or if the value is a relative name.
4448 INSTALL=$ac_install_sh
4451 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4452 echo "${ECHO_T}$INSTALL" >&6; }
4454 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4455 # It thinks the first close brace ends the variable substitution.
4456 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4458 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4460 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4462 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4463 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4464 LN_S=$as_ln_s
4465 if test "$LN_S" = "ln -s"; then
4466 { echo "$as_me:$LINENO: result: yes" >&5
4467 echo "${ECHO_T}yes" >&6; }
4468 else
4469 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4470 echo "${ECHO_T}no, using $LN_S" >&6; }
4475 # Check whether --enable-static was given.
4476 if test "${enable_static+set}" = set; then
4477 enableval=$enable_static; p=${PACKAGE-default}
4478 case $enableval in
4479 yes) enable_static=yes ;;
4480 no) enable_static=no ;;
4482 enable_static=no
4483 # Look at the argument we got. We use all the common list separators.
4484 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4485 for pkg in $enableval; do
4486 IFS="$lt_save_ifs"
4487 if test "X$pkg" = "X$p"; then
4488 enable_static=yes
4490 done
4491 IFS="$lt_save_ifs"
4493 esac
4494 else
4495 enable_static=no
4500 # Check whether --enable-shared was given.
4501 if test "${enable_shared+set}" = set; then
4502 enableval=$enable_shared; p=${PACKAGE-default}
4503 case $enableval in
4504 yes) enable_shared=yes ;;
4505 no) enable_shared=no ;;
4507 enable_shared=no
4508 # Look at the argument we got. We use all the common list separators.
4509 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4510 for pkg in $enableval; do
4511 IFS="$lt_save_ifs"
4512 if test "X$pkg" = "X$p"; then
4513 enable_shared=yes
4515 done
4516 IFS="$lt_save_ifs"
4518 esac
4519 else
4520 enable_shared=yes
4524 # Check whether --enable-fast-install was given.
4525 if test "${enable_fast_install+set}" = set; then
4526 enableval=$enable_fast_install; p=${PACKAGE-default}
4527 case $enableval in
4528 yes) enable_fast_install=yes ;;
4529 no) enable_fast_install=no ;;
4531 enable_fast_install=no
4532 # Look at the argument we got. We use all the common list separators.
4533 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4534 for pkg in $enableval; do
4535 IFS="$lt_save_ifs"
4536 if test "X$pkg" = "X$p"; then
4537 enable_fast_install=yes
4539 done
4540 IFS="$lt_save_ifs"
4542 esac
4543 else
4544 enable_fast_install=yes
4548 # Make sure we can run config.sub.
4549 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4550 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4551 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4552 { (exit 1); exit 1; }; }
4554 { echo "$as_me:$LINENO: checking build system type" >&5
4555 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4556 if test "${ac_cv_build+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559 ac_build_alias=$build_alias
4560 test "x$ac_build_alias" = x &&
4561 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4562 test "x$ac_build_alias" = x &&
4563 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4564 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4565 { (exit 1); exit 1; }; }
4566 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4567 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4568 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4569 { (exit 1); exit 1; }; }
4572 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4573 echo "${ECHO_T}$ac_cv_build" >&6; }
4574 case $ac_cv_build in
4575 *-*-*) ;;
4576 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4577 echo "$as_me: error: invalid value of canonical build" >&2;}
4578 { (exit 1); exit 1; }; };;
4579 esac
4580 build=$ac_cv_build
4581 ac_save_IFS=$IFS; IFS='-'
4582 set x $ac_cv_build
4583 shift
4584 build_cpu=$1
4585 build_vendor=$2
4586 shift; shift
4587 # Remember, the first character of IFS is used to create $*,
4588 # except with old shells:
4589 build_os=$*
4590 IFS=$ac_save_IFS
4591 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4594 { echo "$as_me:$LINENO: checking host system type" >&5
4595 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4596 if test "${ac_cv_host+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4598 else
4599 if test "x$host_alias" = x; then
4600 ac_cv_host=$ac_cv_build
4601 else
4602 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4603 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4604 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4605 { (exit 1); exit 1; }; }
4609 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4610 echo "${ECHO_T}$ac_cv_host" >&6; }
4611 case $ac_cv_host in
4612 *-*-*) ;;
4613 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4614 echo "$as_me: error: invalid value of canonical host" >&2;}
4615 { (exit 1); exit 1; }; };;
4616 esac
4617 host=$ac_cv_host
4618 ac_save_IFS=$IFS; IFS='-'
4619 set x $ac_cv_host
4620 shift
4621 host_cpu=$1
4622 host_vendor=$2
4623 shift; shift
4624 # Remember, the first character of IFS is used to create $*,
4625 # except with old shells:
4626 host_os=$*
4627 IFS=$ac_save_IFS
4628 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4631 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4632 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4633 if test "${lt_cv_path_SED+set}" = set; then
4634 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 else
4636 # Loop through the user's path and test for sed and gsed.
4637 # Then use that list of sed's as ones to test for truncation.
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 for as_dir in $PATH
4641 IFS=$as_save_IFS
4642 test -z "$as_dir" && as_dir=.
4643 for lt_ac_prog in sed gsed; do
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4646 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4648 done
4649 done
4650 done
4651 lt_ac_max=0
4652 lt_ac_count=0
4653 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4654 # along with /bin/sed that truncates output.
4655 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4656 test ! -f $lt_ac_sed && continue
4657 cat /dev/null > conftest.in
4658 lt_ac_count=0
4659 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4660 # Check for GNU sed and select it if it is found.
4661 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4662 lt_cv_path_SED=$lt_ac_sed
4663 break
4665 while true; do
4666 cat conftest.in conftest.in >conftest.tmp
4667 mv conftest.tmp conftest.in
4668 cp conftest.in conftest.nl
4669 echo >>conftest.nl
4670 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4671 cmp -s conftest.out conftest.nl || break
4672 # 10000 chars as input seems more than enough
4673 test $lt_ac_count -gt 10 && break
4674 lt_ac_count=`expr $lt_ac_count + 1`
4675 if test $lt_ac_count -gt $lt_ac_max; then
4676 lt_ac_max=$lt_ac_count
4677 lt_cv_path_SED=$lt_ac_sed
4679 done
4680 done
4684 SED=$lt_cv_path_SED
4685 { echo "$as_me:$LINENO: result: $SED" >&5
4686 echo "${ECHO_T}$SED" >&6; }
4688 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4689 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4690 if test "${ac_cv_path_GREP+set}" = set; then
4691 echo $ECHO_N "(cached) $ECHO_C" >&6
4692 else
4693 # Extract the first word of "grep ggrep" to use in msg output
4694 if test -z "$GREP"; then
4695 set dummy grep ggrep; ac_prog_name=$2
4696 if test "${ac_cv_path_GREP+set}" = set; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 else
4699 ac_path_GREP_found=false
4700 # Loop through the user's path and test for each of PROGNAME-LIST
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4704 IFS=$as_save_IFS
4705 test -z "$as_dir" && as_dir=.
4706 for ac_prog in grep ggrep; do
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4709 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4710 # Check for GNU ac_path_GREP and select it if it is found.
4711 # Check for GNU $ac_path_GREP
4712 case `"$ac_path_GREP" --version 2>&1` in
4713 *GNU*)
4714 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4716 ac_count=0
4717 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4718 while :
4720 cat "conftest.in" "conftest.in" >"conftest.tmp"
4721 mv "conftest.tmp" "conftest.in"
4722 cp "conftest.in" "conftest.nl"
4723 echo 'GREP' >> "conftest.nl"
4724 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4725 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4726 ac_count=`expr $ac_count + 1`
4727 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4728 # Best one so far, save it but keep looking for a better one
4729 ac_cv_path_GREP="$ac_path_GREP"
4730 ac_path_GREP_max=$ac_count
4732 # 10*(2^10) chars as input seems more than enough
4733 test $ac_count -gt 10 && break
4734 done
4735 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4736 esac
4739 $ac_path_GREP_found && break 3
4740 done
4741 done
4743 done
4744 IFS=$as_save_IFS
4749 GREP="$ac_cv_path_GREP"
4750 if test -z "$GREP"; then
4751 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4752 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4753 { (exit 1); exit 1; }; }
4756 else
4757 ac_cv_path_GREP=$GREP
4762 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4763 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4764 GREP="$ac_cv_path_GREP"
4767 { echo "$as_me:$LINENO: checking for egrep" >&5
4768 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4769 if test "${ac_cv_path_EGREP+set}" = set; then
4770 echo $ECHO_N "(cached) $ECHO_C" >&6
4771 else
4772 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4773 then ac_cv_path_EGREP="$GREP -E"
4774 else
4775 # Extract the first word of "egrep" to use in msg output
4776 if test -z "$EGREP"; then
4777 set dummy egrep; ac_prog_name=$2
4778 if test "${ac_cv_path_EGREP+set}" = set; then
4779 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 else
4781 ac_path_EGREP_found=false
4782 # Loop through the user's path and test for each of PROGNAME-LIST
4783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4786 IFS=$as_save_IFS
4787 test -z "$as_dir" && as_dir=.
4788 for ac_prog in egrep; do
4789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4791 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4792 # Check for GNU ac_path_EGREP and select it if it is found.
4793 # Check for GNU $ac_path_EGREP
4794 case `"$ac_path_EGREP" --version 2>&1` in
4795 *GNU*)
4796 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4798 ac_count=0
4799 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4800 while :
4802 cat "conftest.in" "conftest.in" >"conftest.tmp"
4803 mv "conftest.tmp" "conftest.in"
4804 cp "conftest.in" "conftest.nl"
4805 echo 'EGREP' >> "conftest.nl"
4806 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4807 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4808 ac_count=`expr $ac_count + 1`
4809 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4810 # Best one so far, save it but keep looking for a better one
4811 ac_cv_path_EGREP="$ac_path_EGREP"
4812 ac_path_EGREP_max=$ac_count
4814 # 10*(2^10) chars as input seems more than enough
4815 test $ac_count -gt 10 && break
4816 done
4817 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4818 esac
4821 $ac_path_EGREP_found && break 3
4822 done
4823 done
4825 done
4826 IFS=$as_save_IFS
4831 EGREP="$ac_cv_path_EGREP"
4832 if test -z "$EGREP"; then
4833 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4834 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4835 { (exit 1); exit 1; }; }
4838 else
4839 ac_cv_path_EGREP=$EGREP
4845 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4846 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4847 EGREP="$ac_cv_path_EGREP"
4851 # Check whether --with-gnu-ld was given.
4852 if test "${with_gnu_ld+set}" = set; then
4853 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4854 else
4855 with_gnu_ld=no
4858 ac_prog=ld
4859 if test "$GCC" = yes; then
4860 # Check if gcc -print-prog-name=ld gives a path.
4861 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4862 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4863 case $host in
4864 *-*-mingw*)
4865 # gcc leaves a trailing carriage return which upsets mingw
4866 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4868 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4869 esac
4870 case $ac_prog in
4871 # Accept absolute paths.
4872 [\\/]* | ?:[\\/]*)
4873 re_direlt='/[^/][^/]*/\.\./'
4874 # Canonicalize the pathname of ld
4875 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4876 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4877 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4878 done
4879 test -z "$LD" && LD="$ac_prog"
4882 # If it fails, then pretend we aren't using GCC.
4883 ac_prog=ld
4886 # If it is relative, then search for the first ld in PATH.
4887 with_gnu_ld=unknown
4889 esac
4890 elif test "$with_gnu_ld" = yes; then
4891 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4892 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4893 else
4894 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4895 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4897 if test "${lt_cv_path_LD+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4899 else
4900 if test -z "$LD"; then
4901 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4902 for ac_dir in $PATH; do
4903 IFS="$lt_save_ifs"
4904 test -z "$ac_dir" && ac_dir=.
4905 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4906 lt_cv_path_LD="$ac_dir/$ac_prog"
4907 # Check to see if the program is GNU ld. I'd rather use --version,
4908 # but apparently some variants of GNU ld only accept -v.
4909 # Break only if it was the GNU/non-GNU ld that we prefer.
4910 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4911 *GNU* | *'with BFD'*)
4912 test "$with_gnu_ld" != no && break
4915 test "$with_gnu_ld" != yes && break
4917 esac
4919 done
4920 IFS="$lt_save_ifs"
4921 else
4922 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4926 LD="$lt_cv_path_LD"
4927 if test -n "$LD"; then
4928 { echo "$as_me:$LINENO: result: $LD" >&5
4929 echo "${ECHO_T}$LD" >&6; }
4930 else
4931 { echo "$as_me:$LINENO: result: no" >&5
4932 echo "${ECHO_T}no" >&6; }
4934 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4935 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4936 { (exit 1); exit 1; }; }
4937 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4938 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4939 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 else
4942 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4943 case `$LD -v 2>&1 </dev/null` in
4944 *GNU* | *'with BFD'*)
4945 lt_cv_prog_gnu_ld=yes
4948 lt_cv_prog_gnu_ld=no
4950 esac
4952 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4953 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4954 with_gnu_ld=$lt_cv_prog_gnu_ld
4957 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4958 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4959 if test "${lt_cv_ld_reload_flag+set}" = set; then
4960 echo $ECHO_N "(cached) $ECHO_C" >&6
4961 else
4962 lt_cv_ld_reload_flag='-r'
4964 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4965 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4966 reload_flag=$lt_cv_ld_reload_flag
4967 case $reload_flag in
4968 "" | " "*) ;;
4969 *) reload_flag=" $reload_flag" ;;
4970 esac
4971 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4972 case $host_os in
4973 darwin*)
4974 if test "$GCC" = yes; then
4975 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4976 else
4977 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4980 esac
4982 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4983 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4984 if test "${lt_cv_path_NM+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
4986 else
4987 if test -n "$NM"; then
4988 # Let the user override the test.
4989 lt_cv_path_NM="$NM"
4990 else
4991 lt_nm_to_check="${ac_tool_prefix}nm"
4992 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4993 lt_nm_to_check="$lt_nm_to_check nm"
4995 for lt_tmp_nm in $lt_nm_to_check; do
4996 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4997 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4998 IFS="$lt_save_ifs"
4999 test -z "$ac_dir" && ac_dir=.
5000 tmp_nm="$ac_dir/$lt_tmp_nm"
5001 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5002 # Check to see if the nm accepts a BSD-compat flag.
5003 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5004 # nm: unknown option "B" ignored
5005 # Tru64's nm complains that /dev/null is an invalid object file
5006 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5007 */dev/null* | *'Invalid file or object type'*)
5008 lt_cv_path_NM="$tmp_nm -B"
5009 break
5012 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5013 */dev/null*)
5014 lt_cv_path_NM="$tmp_nm -p"
5015 break
5018 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5019 continue # so that we can try to find one that supports BSD flags
5021 esac
5023 esac
5025 done
5026 IFS="$lt_save_ifs"
5027 done
5028 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5031 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5032 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5033 NM="$lt_cv_path_NM"
5035 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5036 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5037 if test "${lt_cv_deplibs_check_method+set}" = set; then
5038 echo $ECHO_N "(cached) $ECHO_C" >&6
5039 else
5040 lt_cv_file_magic_cmd='$MAGIC_CMD'
5041 lt_cv_file_magic_test_file=
5042 lt_cv_deplibs_check_method='unknown'
5043 # Need to set the preceding variable on all platforms that support
5044 # interlibrary dependencies.
5045 # 'none' -- dependencies not supported.
5046 # `unknown' -- same as none, but documents that we really don't know.
5047 # 'pass_all' -- all dependencies passed with no checks.
5048 # 'test_compile' -- check by making test program.
5049 # 'file_magic [[regex]]' -- check by looking for files in library path
5050 # which responds to the $file_magic_cmd with a given extended regex.
5051 # If you have `file' or equivalent on your system and you're not sure
5052 # whether `pass_all' will *always* work, you probably want this one.
5054 case $host_os in
5055 aix4* | aix5*)
5056 lt_cv_deplibs_check_method=pass_all
5059 beos*)
5060 lt_cv_deplibs_check_method=pass_all
5063 bsdi[45]*)
5064 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5065 lt_cv_file_magic_cmd='/usr/bin/file -L'
5066 lt_cv_file_magic_test_file=/shlib/libc.so
5069 cygwin*)
5070 # func_win32_libid is a shell function defined in ltmain.sh
5071 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5072 lt_cv_file_magic_cmd='func_win32_libid'
5075 mingw* | pw32*)
5076 # Base MSYS/MinGW do not provide the 'file' command needed by
5077 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5078 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5079 lt_cv_file_magic_cmd='$OBJDUMP -f'
5082 darwin* | rhapsody*)
5083 lt_cv_deplibs_check_method=pass_all
5086 freebsd* | kfreebsd*-gnu | dragonfly*)
5087 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5088 case $host_cpu in
5089 i*86 )
5090 # Not sure whether the presence of OpenBSD here was a mistake.
5091 # Let's accept both of them until this is cleared up.
5092 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5093 lt_cv_file_magic_cmd=/usr/bin/file
5094 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5096 esac
5097 else
5098 lt_cv_deplibs_check_method=pass_all
5102 gnu*)
5103 lt_cv_deplibs_check_method=pass_all
5106 hpux10.20* | hpux11*)
5107 lt_cv_file_magic_cmd=/usr/bin/file
5108 case $host_cpu in
5109 ia64*)
5110 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5111 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5113 hppa*64*)
5114 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]'
5115 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5118 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5119 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5121 esac
5124 interix3*)
5125 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5126 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5129 irix5* | irix6* | nonstopux*)
5130 case $LD in
5131 *-32|*"-32 ") libmagic=32-bit;;
5132 *-n32|*"-n32 ") libmagic=N32;;
5133 *-64|*"-64 ") libmagic=64-bit;;
5134 *) libmagic=never-match;;
5135 esac
5136 lt_cv_deplibs_check_method=pass_all
5139 # This must be Linux ELF.
5140 linux*)
5141 lt_cv_deplibs_check_method=pass_all
5144 netbsd*)
5145 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5146 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5147 else
5148 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5152 newos6*)
5153 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5154 lt_cv_file_magic_cmd=/usr/bin/file
5155 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5158 nto-qnx*)
5159 lt_cv_deplibs_check_method=unknown
5162 openbsd*)
5163 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5164 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5165 else
5166 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5170 osf3* | osf4* | osf5*)
5171 lt_cv_deplibs_check_method=pass_all
5174 solaris*)
5175 lt_cv_deplibs_check_method=pass_all
5178 sysv4 | sysv4.3*)
5179 case $host_vendor in
5180 motorola)
5181 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]'
5182 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5184 ncr)
5185 lt_cv_deplibs_check_method=pass_all
5187 sequent)
5188 lt_cv_file_magic_cmd='/bin/file'
5189 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5191 sni)
5192 lt_cv_file_magic_cmd='/bin/file'
5193 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5194 lt_cv_file_magic_test_file=/lib/libc.so
5196 siemens)
5197 lt_cv_deplibs_check_method=pass_all
5200 lt_cv_deplibs_check_method=pass_all
5202 esac
5205 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5206 lt_cv_deplibs_check_method=pass_all
5208 esac
5211 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5212 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5213 file_magic_cmd=$lt_cv_file_magic_cmd
5214 deplibs_check_method=$lt_cv_deplibs_check_method
5215 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5220 # If no C compiler was specified, use CC.
5221 LTCC=${LTCC-"$CC"}
5223 # If no C compiler flags were specified, use CFLAGS.
5224 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5226 # Allow CC to be a program name with arguments.
5227 compiler=$CC
5230 # Check whether --enable-libtool-lock was given.
5231 if test "${enable_libtool_lock+set}" = set; then
5232 enableval=$enable_libtool_lock;
5235 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5237 # Some flags need to be propagated to the compiler or linker for good
5238 # libtool support.
5239 case $host in
5240 ia64-*-hpux*)
5241 # Find out which ABI we are using.
5242 echo 'int i;' > conftest.$ac_ext
5243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5244 (eval $ac_compile) 2>&5
5245 ac_status=$?
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; then
5248 case `/usr/bin/file conftest.$ac_objext` in
5249 *ELF-32*)
5250 HPUX_IA64_MODE="32"
5252 *ELF-64*)
5253 HPUX_IA64_MODE="64"
5255 esac
5257 rm -rf conftest*
5259 *-*-irix6*)
5260 # Find out which ABI we are using.
5261 echo '#line 5261 "configure"' > conftest.$ac_ext
5262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5263 (eval $ac_compile) 2>&5
5264 ac_status=$?
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); }; then
5267 if test "$lt_cv_prog_gnu_ld" = yes; then
5268 case `/usr/bin/file conftest.$ac_objext` in
5269 *32-bit*)
5270 LD="${LD-ld} -melf32bsmip"
5272 *N32*)
5273 LD="${LD-ld} -melf32bmipn32"
5275 *64-bit*)
5276 LD="${LD-ld} -melf64bmip"
5278 esac
5279 else
5280 case `/usr/bin/file conftest.$ac_objext` in
5281 *32-bit*)
5282 LD="${LD-ld} -32"
5284 *N32*)
5285 LD="${LD-ld} -n32"
5287 *64-bit*)
5288 LD="${LD-ld} -64"
5290 esac
5293 rm -rf conftest*
5296 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5297 # Find out which ABI we are using.
5298 echo 'int i;' > conftest.$ac_ext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5300 (eval $ac_compile) 2>&5
5301 ac_status=$?
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); }; then
5304 case `/usr/bin/file conftest.o` in
5305 *32-bit*)
5306 case $host in
5307 x86_64-*linux*)
5308 LD="${LD-ld} -m elf_i386"
5310 ppc64-*linux*|powerpc64-*linux*)
5311 LD="${LD-ld} -m elf32ppclinux"
5313 s390x-*linux*)
5314 LD="${LD-ld} -m elf_s390"
5316 sparc64-*linux*)
5317 LD="${LD-ld} -m elf32_sparc"
5319 esac
5321 *64-bit*)
5322 case $host in
5323 x86_64-*linux*)
5324 LD="${LD-ld} -m elf_x86_64"
5326 ppc*-*linux*|powerpc*-*linux*)
5327 LD="${LD-ld} -m elf64ppc"
5329 s390*-*linux*)
5330 LD="${LD-ld} -m elf64_s390"
5332 sparc*-*linux*)
5333 LD="${LD-ld} -m elf64_sparc"
5335 esac
5337 esac
5339 rm -rf conftest*
5342 *-*-sco3.2v5*)
5343 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5344 SAVE_CFLAGS="$CFLAGS"
5345 CFLAGS="$CFLAGS -belf"
5346 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5347 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5348 if test "${lt_cv_cc_needs_belf+set}" = set; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5350 else
5351 ac_ext=c
5352 ac_cpp='$CPP $CPPFLAGS'
5353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5357 cat >conftest.$ac_ext <<_ACEOF
5358 /* confdefs.h. */
5359 _ACEOF
5360 cat confdefs.h >>conftest.$ac_ext
5361 cat >>conftest.$ac_ext <<_ACEOF
5362 /* end confdefs.h. */
5365 main ()
5369 return 0;
5371 _ACEOF
5372 rm -f conftest.$ac_objext conftest$ac_exeext
5373 if { (ac_try="$ac_link"
5374 case "(($ac_try" in
5375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5376 *) ac_try_echo=$ac_try;;
5377 esac
5378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5379 (eval "$ac_link") 2>conftest.er1
5380 ac_status=$?
5381 grep -v '^ *+' conftest.er1 >conftest.err
5382 rm -f conftest.er1
5383 cat conftest.err >&5
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); } && {
5386 test -z "$ac_c_werror_flag" ||
5387 test ! -s conftest.err
5388 } && test -s conftest$ac_exeext &&
5389 $as_test_x conftest$ac_exeext; then
5390 lt_cv_cc_needs_belf=yes
5391 else
5392 echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5395 lt_cv_cc_needs_belf=no
5398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5399 conftest$ac_exeext conftest.$ac_ext
5400 ac_ext=c
5401 ac_cpp='$CPP $CPPFLAGS'
5402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5407 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5408 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5409 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5410 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5411 CFLAGS="$SAVE_CFLAGS"
5414 sparc*-*solaris*)
5415 # Find out which ABI we are using.
5416 echo 'int i;' > conftest.$ac_ext
5417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5418 (eval $ac_compile) 2>&5
5419 ac_status=$?
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); }; then
5422 case `/usr/bin/file conftest.o` in
5423 *64-bit*)
5424 case $lt_cv_prog_gnu_ld in
5425 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5426 *) LD="${LD-ld} -64" ;;
5427 esac
5429 esac
5431 rm -rf conftest*
5434 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5435 if test -n "$ac_tool_prefix"; then
5436 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5437 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5440 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5441 echo $ECHO_N "(cached) $ECHO_C" >&6
5442 else
5443 if test -n "$DLLTOOL"; then
5444 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5445 else
5446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447 for as_dir in $PATH
5449 IFS=$as_save_IFS
5450 test -z "$as_dir" && as_dir=.
5451 for ac_exec_ext in '' $ac_executable_extensions; do
5452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5453 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5455 break 2
5457 done
5458 done
5459 IFS=$as_save_IFS
5463 DLLTOOL=$ac_cv_prog_DLLTOOL
5464 if test -n "$DLLTOOL"; then
5465 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5466 echo "${ECHO_T}$DLLTOOL" >&6; }
5467 else
5468 { echo "$as_me:$LINENO: result: no" >&5
5469 echo "${ECHO_T}no" >&6; }
5474 if test -z "$ac_cv_prog_DLLTOOL"; then
5475 ac_ct_DLLTOOL=$DLLTOOL
5476 # Extract the first word of "dlltool", so it can be a program name with args.
5477 set dummy dlltool; ac_word=$2
5478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5480 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5481 echo $ECHO_N "(cached) $ECHO_C" >&6
5482 else
5483 if test -n "$ac_ct_DLLTOOL"; then
5484 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5485 else
5486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487 for as_dir in $PATH
5489 IFS=$as_save_IFS
5490 test -z "$as_dir" && as_dir=.
5491 for ac_exec_ext in '' $ac_executable_extensions; do
5492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5493 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5495 break 2
5497 done
5498 done
5499 IFS=$as_save_IFS
5503 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5504 if test -n "$ac_ct_DLLTOOL"; then
5505 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5506 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
5507 else
5508 { echo "$as_me:$LINENO: result: no" >&5
5509 echo "${ECHO_T}no" >&6; }
5512 if test "x$ac_ct_DLLTOOL" = x; then
5513 DLLTOOL="false"
5514 else
5515 case $cross_compiling:$ac_tool_warned in
5516 yes:)
5517 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5518 whose name does not start with the host triplet. If you think this
5519 configuration is useful to you, please write to autoconf@gnu.org." >&5
5520 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5521 whose name does not start with the host triplet. If you think this
5522 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5523 ac_tool_warned=yes ;;
5524 esac
5525 DLLTOOL=$ac_ct_DLLTOOL
5527 else
5528 DLLTOOL="$ac_cv_prog_DLLTOOL"
5531 if test -n "$ac_tool_prefix"; then
5532 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5533 set dummy ${ac_tool_prefix}as; ac_word=$2
5534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5536 if test "${ac_cv_prog_AS+set}" = set; then
5537 echo $ECHO_N "(cached) $ECHO_C" >&6
5538 else
5539 if test -n "$AS"; then
5540 ac_cv_prog_AS="$AS" # Let the user override the test.
5541 else
5542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543 for as_dir in $PATH
5545 IFS=$as_save_IFS
5546 test -z "$as_dir" && as_dir=.
5547 for ac_exec_ext in '' $ac_executable_extensions; do
5548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5549 ac_cv_prog_AS="${ac_tool_prefix}as"
5550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5551 break 2
5553 done
5554 done
5555 IFS=$as_save_IFS
5559 AS=$ac_cv_prog_AS
5560 if test -n "$AS"; then
5561 { echo "$as_me:$LINENO: result: $AS" >&5
5562 echo "${ECHO_T}$AS" >&6; }
5563 else
5564 { echo "$as_me:$LINENO: result: no" >&5
5565 echo "${ECHO_T}no" >&6; }
5570 if test -z "$ac_cv_prog_AS"; then
5571 ac_ct_AS=$AS
5572 # Extract the first word of "as", so it can be a program name with args.
5573 set dummy as; ac_word=$2
5574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5576 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5577 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 else
5579 if test -n "$ac_ct_AS"; then
5580 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5581 else
5582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5583 for as_dir in $PATH
5585 IFS=$as_save_IFS
5586 test -z "$as_dir" && as_dir=.
5587 for ac_exec_ext in '' $ac_executable_extensions; do
5588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5589 ac_cv_prog_ac_ct_AS="as"
5590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5591 break 2
5593 done
5594 done
5595 IFS=$as_save_IFS
5599 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5600 if test -n "$ac_ct_AS"; then
5601 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5602 echo "${ECHO_T}$ac_ct_AS" >&6; }
5603 else
5604 { echo "$as_me:$LINENO: result: no" >&5
5605 echo "${ECHO_T}no" >&6; }
5608 if test "x$ac_ct_AS" = x; then
5609 AS="false"
5610 else
5611 case $cross_compiling:$ac_tool_warned in
5612 yes:)
5613 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5614 whose name does not start with the host triplet. If you think this
5615 configuration is useful to you, please write to autoconf@gnu.org." >&5
5616 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5617 whose name does not start with the host triplet. If you think this
5618 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5619 ac_tool_warned=yes ;;
5620 esac
5621 AS=$ac_ct_AS
5623 else
5624 AS="$ac_cv_prog_AS"
5627 if test -n "$ac_tool_prefix"; then
5628 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5629 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5632 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5634 else
5635 if test -n "$OBJDUMP"; then
5636 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5637 else
5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639 for as_dir in $PATH
5641 IFS=$as_save_IFS
5642 test -z "$as_dir" && as_dir=.
5643 for ac_exec_ext in '' $ac_executable_extensions; do
5644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5645 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5647 break 2
5649 done
5650 done
5651 IFS=$as_save_IFS
5655 OBJDUMP=$ac_cv_prog_OBJDUMP
5656 if test -n "$OBJDUMP"; then
5657 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5658 echo "${ECHO_T}$OBJDUMP" >&6; }
5659 else
5660 { echo "$as_me:$LINENO: result: no" >&5
5661 echo "${ECHO_T}no" >&6; }
5666 if test -z "$ac_cv_prog_OBJDUMP"; then
5667 ac_ct_OBJDUMP=$OBJDUMP
5668 # Extract the first word of "objdump", so it can be a program name with args.
5669 set dummy objdump; ac_word=$2
5670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5672 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5673 echo $ECHO_N "(cached) $ECHO_C" >&6
5674 else
5675 if test -n "$ac_ct_OBJDUMP"; then
5676 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5677 else
5678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5679 for as_dir in $PATH
5681 IFS=$as_save_IFS
5682 test -z "$as_dir" && as_dir=.
5683 for ac_exec_ext in '' $ac_executable_extensions; do
5684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5685 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5687 break 2
5689 done
5690 done
5691 IFS=$as_save_IFS
5695 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5696 if test -n "$ac_ct_OBJDUMP"; then
5697 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5698 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5699 else
5700 { echo "$as_me:$LINENO: result: no" >&5
5701 echo "${ECHO_T}no" >&6; }
5704 if test "x$ac_ct_OBJDUMP" = x; then
5705 OBJDUMP="false"
5706 else
5707 case $cross_compiling:$ac_tool_warned in
5708 yes:)
5709 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5710 whose name does not start with the host triplet. If you think this
5711 configuration is useful to you, please write to autoconf@gnu.org." >&5
5712 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5713 whose name does not start with the host triplet. If you think this
5714 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5715 ac_tool_warned=yes ;;
5716 esac
5717 OBJDUMP=$ac_ct_OBJDUMP
5719 else
5720 OBJDUMP="$ac_cv_prog_OBJDUMP"
5725 esac
5727 need_locks="$enable_libtool_lock"
5730 ac_ext=c
5731 ac_cpp='$CPP $CPPFLAGS'
5732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5735 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5736 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5737 # On Suns, sometimes $CPP names a directory.
5738 if test -n "$CPP" && test -d "$CPP"; then
5739 CPP=
5741 if test -z "$CPP"; then
5742 if test "${ac_cv_prog_CPP+set}" = set; then
5743 echo $ECHO_N "(cached) $ECHO_C" >&6
5744 else
5745 # Double quotes because CPP needs to be expanded
5746 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5748 ac_preproc_ok=false
5749 for ac_c_preproc_warn_flag in '' yes
5751 # Use a header file that comes with gcc, so configuring glibc
5752 # with a fresh cross-compiler works.
5753 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5754 # <limits.h> exists even on freestanding compilers.
5755 # On the NeXT, cc -E runs the code through the compiler's parser,
5756 # not just through cpp. "Syntax error" is here to catch this case.
5757 cat >conftest.$ac_ext <<_ACEOF
5758 /* confdefs.h. */
5759 _ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h. */
5763 #ifdef __STDC__
5764 # include <limits.h>
5765 #else
5766 # include <assert.h>
5767 #endif
5768 Syntax error
5769 _ACEOF
5770 if { (ac_try="$ac_cpp conftest.$ac_ext"
5771 case "(($ac_try" in
5772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5773 *) ac_try_echo=$ac_try;;
5774 esac
5775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5777 ac_status=$?
5778 grep -v '^ *+' conftest.er1 >conftest.err
5779 rm -f conftest.er1
5780 cat conftest.err >&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); } >/dev/null && {
5783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5784 test ! -s conftest.err
5785 }; then
5787 else
5788 echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5791 # Broken: fails on valid input.
5792 continue
5795 rm -f conftest.err conftest.$ac_ext
5797 # OK, works on sane cases. Now check whether nonexistent headers
5798 # can be detected and how.
5799 cat >conftest.$ac_ext <<_ACEOF
5800 /* confdefs.h. */
5801 _ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5805 #include <ac_nonexistent.h>
5806 _ACEOF
5807 if { (ac_try="$ac_cpp conftest.$ac_ext"
5808 case "(($ac_try" in
5809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810 *) ac_try_echo=$ac_try;;
5811 esac
5812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5814 ac_status=$?
5815 grep -v '^ *+' conftest.er1 >conftest.err
5816 rm -f conftest.er1
5817 cat conftest.err >&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } >/dev/null && {
5820 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5821 test ! -s conftest.err
5822 }; then
5823 # Broken: success on invalid input.
5824 continue
5825 else
5826 echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5829 # Passes both tests.
5830 ac_preproc_ok=:
5831 break
5834 rm -f conftest.err conftest.$ac_ext
5836 done
5837 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5838 rm -f conftest.err conftest.$ac_ext
5839 if $ac_preproc_ok; then
5840 break
5843 done
5844 ac_cv_prog_CPP=$CPP
5847 CPP=$ac_cv_prog_CPP
5848 else
5849 ac_cv_prog_CPP=$CPP
5851 { echo "$as_me:$LINENO: result: $CPP" >&5
5852 echo "${ECHO_T}$CPP" >&6; }
5853 ac_preproc_ok=false
5854 for ac_c_preproc_warn_flag in '' yes
5856 # Use a header file that comes with gcc, so configuring glibc
5857 # with a fresh cross-compiler works.
5858 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5859 # <limits.h> exists even on freestanding compilers.
5860 # On the NeXT, cc -E runs the code through the compiler's parser,
5861 # not just through cpp. "Syntax error" is here to catch this case.
5862 cat >conftest.$ac_ext <<_ACEOF
5863 /* confdefs.h. */
5864 _ACEOF
5865 cat confdefs.h >>conftest.$ac_ext
5866 cat >>conftest.$ac_ext <<_ACEOF
5867 /* end confdefs.h. */
5868 #ifdef __STDC__
5869 # include <limits.h>
5870 #else
5871 # include <assert.h>
5872 #endif
5873 Syntax error
5874 _ACEOF
5875 if { (ac_try="$ac_cpp conftest.$ac_ext"
5876 case "(($ac_try" in
5877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5878 *) ac_try_echo=$ac_try;;
5879 esac
5880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5882 ac_status=$?
5883 grep -v '^ *+' conftest.er1 >conftest.err
5884 rm -f conftest.er1
5885 cat conftest.err >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } >/dev/null && {
5888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5889 test ! -s conftest.err
5890 }; then
5892 else
5893 echo "$as_me: failed program was:" >&5
5894 sed 's/^/| /' conftest.$ac_ext >&5
5896 # Broken: fails on valid input.
5897 continue
5900 rm -f conftest.err conftest.$ac_ext
5902 # OK, works on sane cases. Now check whether nonexistent headers
5903 # can be detected and how.
5904 cat >conftest.$ac_ext <<_ACEOF
5905 /* confdefs.h. */
5906 _ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h. */
5910 #include <ac_nonexistent.h>
5911 _ACEOF
5912 if { (ac_try="$ac_cpp conftest.$ac_ext"
5913 case "(($ac_try" in
5914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5915 *) ac_try_echo=$ac_try;;
5916 esac
5917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5919 ac_status=$?
5920 grep -v '^ *+' conftest.er1 >conftest.err
5921 rm -f conftest.er1
5922 cat conftest.err >&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); } >/dev/null && {
5925 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5926 test ! -s conftest.err
5927 }; then
5928 # Broken: success on invalid input.
5929 continue
5930 else
5931 echo "$as_me: failed program was:" >&5
5932 sed 's/^/| /' conftest.$ac_ext >&5
5934 # Passes both tests.
5935 ac_preproc_ok=:
5936 break
5939 rm -f conftest.err conftest.$ac_ext
5941 done
5942 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5943 rm -f conftest.err conftest.$ac_ext
5944 if $ac_preproc_ok; then
5946 else
5947 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5948 See \`config.log' for more details." >&5
5949 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5950 See \`config.log' for more details." >&2;}
5951 { (exit 1); exit 1; }; }
5954 ac_ext=c
5955 ac_cpp='$CPP $CPPFLAGS'
5956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5961 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5962 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5963 if test "${ac_cv_header_stdc+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 else
5966 cat >conftest.$ac_ext <<_ACEOF
5967 /* confdefs.h. */
5968 _ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h. */
5972 #include <stdlib.h>
5973 #include <stdarg.h>
5974 #include <string.h>
5975 #include <float.h>
5978 main ()
5982 return 0;
5984 _ACEOF
5985 rm -f conftest.$ac_objext
5986 if { (ac_try="$ac_compile"
5987 case "(($ac_try" in
5988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989 *) ac_try_echo=$ac_try;;
5990 esac
5991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5992 (eval "$ac_compile") 2>conftest.er1
5993 ac_status=$?
5994 grep -v '^ *+' conftest.er1 >conftest.err
5995 rm -f conftest.er1
5996 cat conftest.err >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } && {
5999 test -z "$ac_c_werror_flag" ||
6000 test ! -s conftest.err
6001 } && test -s conftest.$ac_objext; then
6002 ac_cv_header_stdc=yes
6003 else
6004 echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6007 ac_cv_header_stdc=no
6010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6012 if test $ac_cv_header_stdc = yes; then
6013 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6014 cat >conftest.$ac_ext <<_ACEOF
6015 /* confdefs.h. */
6016 _ACEOF
6017 cat confdefs.h >>conftest.$ac_ext
6018 cat >>conftest.$ac_ext <<_ACEOF
6019 /* end confdefs.h. */
6020 #include <string.h>
6022 _ACEOF
6023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6024 $EGREP "memchr" >/dev/null 2>&1; then
6026 else
6027 ac_cv_header_stdc=no
6029 rm -f conftest*
6033 if test $ac_cv_header_stdc = yes; then
6034 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6035 cat >conftest.$ac_ext <<_ACEOF
6036 /* confdefs.h. */
6037 _ACEOF
6038 cat confdefs.h >>conftest.$ac_ext
6039 cat >>conftest.$ac_ext <<_ACEOF
6040 /* end confdefs.h. */
6041 #include <stdlib.h>
6043 _ACEOF
6044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6045 $EGREP "free" >/dev/null 2>&1; then
6047 else
6048 ac_cv_header_stdc=no
6050 rm -f conftest*
6054 if test $ac_cv_header_stdc = yes; then
6055 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6056 if test "$cross_compiling" = yes; then
6058 else
6059 cat >conftest.$ac_ext <<_ACEOF
6060 /* confdefs.h. */
6061 _ACEOF
6062 cat confdefs.h >>conftest.$ac_ext
6063 cat >>conftest.$ac_ext <<_ACEOF
6064 /* end confdefs.h. */
6065 #include <ctype.h>
6066 #include <stdlib.h>
6067 #if ((' ' & 0x0FF) == 0x020)
6068 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6069 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6070 #else
6071 # define ISLOWER(c) \
6072 (('a' <= (c) && (c) <= 'i') \
6073 || ('j' <= (c) && (c) <= 'r') \
6074 || ('s' <= (c) && (c) <= 'z'))
6075 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6076 #endif
6078 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6080 main ()
6082 int i;
6083 for (i = 0; i < 256; i++)
6084 if (XOR (islower (i), ISLOWER (i))
6085 || toupper (i) != TOUPPER (i))
6086 return 2;
6087 return 0;
6089 _ACEOF
6090 rm -f conftest$ac_exeext
6091 if { (ac_try="$ac_link"
6092 case "(($ac_try" in
6093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094 *) ac_try_echo=$ac_try;;
6095 esac
6096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6097 (eval "$ac_link") 2>&5
6098 ac_status=$?
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6101 { (case "(($ac_try" in
6102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6103 *) ac_try_echo=$ac_try;;
6104 esac
6105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6106 (eval "$ac_try") 2>&5
6107 ac_status=$?
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); }; }; then
6111 else
6112 echo "$as_me: program exited with status $ac_status" >&5
6113 echo "$as_me: failed program was:" >&5
6114 sed 's/^/| /' conftest.$ac_ext >&5
6116 ( exit $ac_status )
6117 ac_cv_header_stdc=no
6119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6125 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6126 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6127 if test $ac_cv_header_stdc = yes; then
6129 cat >>confdefs.h <<\_ACEOF
6130 #define STDC_HEADERS 1
6131 _ACEOF
6135 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6145 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6146 inttypes.h stdint.h unistd.h
6148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6152 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 else
6154 cat >conftest.$ac_ext <<_ACEOF
6155 /* confdefs.h. */
6156 _ACEOF
6157 cat confdefs.h >>conftest.$ac_ext
6158 cat >>conftest.$ac_ext <<_ACEOF
6159 /* end confdefs.h. */
6160 $ac_includes_default
6162 #include <$ac_header>
6163 _ACEOF
6164 rm -f conftest.$ac_objext
6165 if { (ac_try="$ac_compile"
6166 case "(($ac_try" in
6167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6168 *) ac_try_echo=$ac_try;;
6169 esac
6170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6171 (eval "$ac_compile") 2>conftest.er1
6172 ac_status=$?
6173 grep -v '^ *+' conftest.er1 >conftest.err
6174 rm -f conftest.er1
6175 cat conftest.err >&5
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); } && {
6178 test -z "$ac_c_werror_flag" ||
6179 test ! -s conftest.err
6180 } && test -s conftest.$ac_objext; then
6181 eval "$as_ac_Header=yes"
6182 else
6183 echo "$as_me: failed program was:" >&5
6184 sed 's/^/| /' conftest.$ac_ext >&5
6186 eval "$as_ac_Header=no"
6189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6191 ac_res=`eval echo '${'$as_ac_Header'}'`
6192 { echo "$as_me:$LINENO: result: $ac_res" >&5
6193 echo "${ECHO_T}$ac_res" >&6; }
6194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6195 cat >>confdefs.h <<_ACEOF
6196 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6197 _ACEOF
6201 done
6205 for ac_header in dlfcn.h
6207 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6209 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6212 echo $ECHO_N "(cached) $ECHO_C" >&6
6214 ac_res=`eval echo '${'$as_ac_Header'}'`
6215 { echo "$as_me:$LINENO: result: $ac_res" >&5
6216 echo "${ECHO_T}$ac_res" >&6; }
6217 else
6218 # Is the header compilable?
6219 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6220 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6221 cat >conftest.$ac_ext <<_ACEOF
6222 /* confdefs.h. */
6223 _ACEOF
6224 cat confdefs.h >>conftest.$ac_ext
6225 cat >>conftest.$ac_ext <<_ACEOF
6226 /* end confdefs.h. */
6227 $ac_includes_default
6228 #include <$ac_header>
6229 _ACEOF
6230 rm -f conftest.$ac_objext
6231 if { (ac_try="$ac_compile"
6232 case "(($ac_try" in
6233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6234 *) ac_try_echo=$ac_try;;
6235 esac
6236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6237 (eval "$ac_compile") 2>conftest.er1
6238 ac_status=$?
6239 grep -v '^ *+' conftest.er1 >conftest.err
6240 rm -f conftest.er1
6241 cat conftest.err >&5
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); } && {
6244 test -z "$ac_c_werror_flag" ||
6245 test ! -s conftest.err
6246 } && test -s conftest.$ac_objext; then
6247 ac_header_compiler=yes
6248 else
6249 echo "$as_me: failed program was:" >&5
6250 sed 's/^/| /' conftest.$ac_ext >&5
6252 ac_header_compiler=no
6255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6256 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6257 echo "${ECHO_T}$ac_header_compiler" >&6; }
6259 # Is the header present?
6260 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6261 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6262 cat >conftest.$ac_ext <<_ACEOF
6263 /* confdefs.h. */
6264 _ACEOF
6265 cat confdefs.h >>conftest.$ac_ext
6266 cat >>conftest.$ac_ext <<_ACEOF
6267 /* end confdefs.h. */
6268 #include <$ac_header>
6269 _ACEOF
6270 if { (ac_try="$ac_cpp conftest.$ac_ext"
6271 case "(($ac_try" in
6272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6273 *) ac_try_echo=$ac_try;;
6274 esac
6275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6277 ac_status=$?
6278 grep -v '^ *+' conftest.er1 >conftest.err
6279 rm -f conftest.er1
6280 cat conftest.err >&5
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); } >/dev/null && {
6283 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6284 test ! -s conftest.err
6285 }; then
6286 ac_header_preproc=yes
6287 else
6288 echo "$as_me: failed program was:" >&5
6289 sed 's/^/| /' conftest.$ac_ext >&5
6291 ac_header_preproc=no
6294 rm -f conftest.err conftest.$ac_ext
6295 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6296 echo "${ECHO_T}$ac_header_preproc" >&6; }
6298 # So? What about this header?
6299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6300 yes:no: )
6301 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6302 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6304 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6305 ac_header_preproc=yes
6307 no:yes:* )
6308 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6309 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6310 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6311 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6312 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6313 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6314 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6315 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6317 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6318 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6319 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6320 ( cat <<\_ASBOX
6321 ## ---------------------------------------------------------------------- ##
6322 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
6323 ## ---------------------------------------------------------------------- ##
6324 _ASBOX
6325 ) | sed "s/^/$as_me: WARNING: /" >&2
6327 esac
6328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6331 echo $ECHO_N "(cached) $ECHO_C" >&6
6332 else
6333 eval "$as_ac_Header=\$ac_header_preproc"
6335 ac_res=`eval echo '${'$as_ac_Header'}'`
6336 { echo "$as_me:$LINENO: result: $ac_res" >&5
6337 echo "${ECHO_T}$ac_res" >&6; }
6340 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6341 cat >>confdefs.h <<_ACEOF
6342 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6343 _ACEOF
6347 done
6349 ac_ext=cpp
6350 ac_cpp='$CXXCPP $CPPFLAGS'
6351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6354 if test -z "$CXX"; then
6355 if test -n "$CCC"; then
6356 CXX=$CCC
6357 else
6358 if test -n "$ac_tool_prefix"; then
6359 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6361 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6362 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6365 if test "${ac_cv_prog_CXX+set}" = set; then
6366 echo $ECHO_N "(cached) $ECHO_C" >&6
6367 else
6368 if test -n "$CXX"; then
6369 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6370 else
6371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372 for as_dir in $PATH
6374 IFS=$as_save_IFS
6375 test -z "$as_dir" && as_dir=.
6376 for ac_exec_ext in '' $ac_executable_extensions; do
6377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6378 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6380 break 2
6382 done
6383 done
6384 IFS=$as_save_IFS
6388 CXX=$ac_cv_prog_CXX
6389 if test -n "$CXX"; then
6390 { echo "$as_me:$LINENO: result: $CXX" >&5
6391 echo "${ECHO_T}$CXX" >&6; }
6392 else
6393 { echo "$as_me:$LINENO: result: no" >&5
6394 echo "${ECHO_T}no" >&6; }
6398 test -n "$CXX" && break
6399 done
6401 if test -z "$CXX"; then
6402 ac_ct_CXX=$CXX
6403 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6405 # Extract the first word of "$ac_prog", so it can be a program name with args.
6406 set dummy $ac_prog; ac_word=$2
6407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6409 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
6411 else
6412 if test -n "$ac_ct_CXX"; then
6413 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6414 else
6415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416 for as_dir in $PATH
6418 IFS=$as_save_IFS
6419 test -z "$as_dir" && as_dir=.
6420 for ac_exec_ext in '' $ac_executable_extensions; do
6421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6422 ac_cv_prog_ac_ct_CXX="$ac_prog"
6423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6424 break 2
6426 done
6427 done
6428 IFS=$as_save_IFS
6432 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6433 if test -n "$ac_ct_CXX"; then
6434 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6435 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6436 else
6437 { echo "$as_me:$LINENO: result: no" >&5
6438 echo "${ECHO_T}no" >&6; }
6442 test -n "$ac_ct_CXX" && break
6443 done
6445 if test "x$ac_ct_CXX" = x; then
6446 CXX="g++"
6447 else
6448 case $cross_compiling:$ac_tool_warned in
6449 yes:)
6450 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6451 whose name does not start with the host triplet. If you think this
6452 configuration is useful to you, please write to autoconf@gnu.org." >&5
6453 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6454 whose name does not start with the host triplet. If you think this
6455 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6456 ac_tool_warned=yes ;;
6457 esac
6458 CXX=$ac_ct_CXX
6464 # Provide some information about the compiler.
6465 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6466 ac_compiler=`set X $ac_compile; echo $2`
6467 { (ac_try="$ac_compiler --version >&5"
6468 case "(($ac_try" in
6469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6470 *) ac_try_echo=$ac_try;;
6471 esac
6472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6473 (eval "$ac_compiler --version >&5") 2>&5
6474 ac_status=$?
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); }
6477 { (ac_try="$ac_compiler -v >&5"
6478 case "(($ac_try" in
6479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480 *) ac_try_echo=$ac_try;;
6481 esac
6482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6483 (eval "$ac_compiler -v >&5") 2>&5
6484 ac_status=$?
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); }
6487 { (ac_try="$ac_compiler -V >&5"
6488 case "(($ac_try" in
6489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6490 *) ac_try_echo=$ac_try;;
6491 esac
6492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6493 (eval "$ac_compiler -V >&5") 2>&5
6494 ac_status=$?
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); }
6498 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6499 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6500 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6501 echo $ECHO_N "(cached) $ECHO_C" >&6
6502 else
6503 cat >conftest.$ac_ext <<_ACEOF
6504 /* confdefs.h. */
6505 _ACEOF
6506 cat confdefs.h >>conftest.$ac_ext
6507 cat >>conftest.$ac_ext <<_ACEOF
6508 /* end confdefs.h. */
6511 main ()
6513 #ifndef __GNUC__
6514 choke me
6515 #endif
6518 return 0;
6520 _ACEOF
6521 rm -f conftest.$ac_objext
6522 if { (ac_try="$ac_compile"
6523 case "(($ac_try" in
6524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6525 *) ac_try_echo=$ac_try;;
6526 esac
6527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6528 (eval "$ac_compile") 2>conftest.er1
6529 ac_status=$?
6530 grep -v '^ *+' conftest.er1 >conftest.err
6531 rm -f conftest.er1
6532 cat conftest.err >&5
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); } && {
6535 test -z "$ac_cxx_werror_flag" ||
6536 test ! -s conftest.err
6537 } && test -s conftest.$ac_objext; then
6538 ac_compiler_gnu=yes
6539 else
6540 echo "$as_me: failed program was:" >&5
6541 sed 's/^/| /' conftest.$ac_ext >&5
6543 ac_compiler_gnu=no
6546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6547 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6550 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6551 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6552 GXX=`test $ac_compiler_gnu = yes && echo yes`
6553 ac_test_CXXFLAGS=${CXXFLAGS+set}
6554 ac_save_CXXFLAGS=$CXXFLAGS
6555 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6556 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6557 if test "${ac_cv_prog_cxx_g+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6559 else
6560 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6561 ac_cxx_werror_flag=yes
6562 ac_cv_prog_cxx_g=no
6563 CXXFLAGS="-g"
6564 cat >conftest.$ac_ext <<_ACEOF
6565 /* confdefs.h. */
6566 _ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h. */
6572 main ()
6576 return 0;
6578 _ACEOF
6579 rm -f conftest.$ac_objext
6580 if { (ac_try="$ac_compile"
6581 case "(($ac_try" in
6582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6583 *) ac_try_echo=$ac_try;;
6584 esac
6585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6586 (eval "$ac_compile") 2>conftest.er1
6587 ac_status=$?
6588 grep -v '^ *+' conftest.er1 >conftest.err
6589 rm -f conftest.er1
6590 cat conftest.err >&5
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); } && {
6593 test -z "$ac_cxx_werror_flag" ||
6594 test ! -s conftest.err
6595 } && test -s conftest.$ac_objext; then
6596 ac_cv_prog_cxx_g=yes
6597 else
6598 echo "$as_me: failed program was:" >&5
6599 sed 's/^/| /' conftest.$ac_ext >&5
6601 CXXFLAGS=""
6602 cat >conftest.$ac_ext <<_ACEOF
6603 /* confdefs.h. */
6604 _ACEOF
6605 cat confdefs.h >>conftest.$ac_ext
6606 cat >>conftest.$ac_ext <<_ACEOF
6607 /* end confdefs.h. */
6610 main ()
6614 return 0;
6616 _ACEOF
6617 rm -f conftest.$ac_objext
6618 if { (ac_try="$ac_compile"
6619 case "(($ac_try" in
6620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6621 *) ac_try_echo=$ac_try;;
6622 esac
6623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6624 (eval "$ac_compile") 2>conftest.er1
6625 ac_status=$?
6626 grep -v '^ *+' conftest.er1 >conftest.err
6627 rm -f conftest.er1
6628 cat conftest.err >&5
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); } && {
6631 test -z "$ac_cxx_werror_flag" ||
6632 test ! -s conftest.err
6633 } && test -s conftest.$ac_objext; then
6635 else
6636 echo "$as_me: failed program was:" >&5
6637 sed 's/^/| /' conftest.$ac_ext >&5
6639 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6640 CXXFLAGS="-g"
6641 cat >conftest.$ac_ext <<_ACEOF
6642 /* confdefs.h. */
6643 _ACEOF
6644 cat confdefs.h >>conftest.$ac_ext
6645 cat >>conftest.$ac_ext <<_ACEOF
6646 /* end confdefs.h. */
6649 main ()
6653 return 0;
6655 _ACEOF
6656 rm -f conftest.$ac_objext
6657 if { (ac_try="$ac_compile"
6658 case "(($ac_try" in
6659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6660 *) ac_try_echo=$ac_try;;
6661 esac
6662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6663 (eval "$ac_compile") 2>conftest.er1
6664 ac_status=$?
6665 grep -v '^ *+' conftest.er1 >conftest.err
6666 rm -f conftest.er1
6667 cat conftest.err >&5
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); } && {
6670 test -z "$ac_cxx_werror_flag" ||
6671 test ! -s conftest.err
6672 } && test -s conftest.$ac_objext; then
6673 ac_cv_prog_cxx_g=yes
6674 else
6675 echo "$as_me: failed program was:" >&5
6676 sed 's/^/| /' conftest.$ac_ext >&5
6681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6688 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6690 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6691 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6692 if test "$ac_test_CXXFLAGS" = set; then
6693 CXXFLAGS=$ac_save_CXXFLAGS
6694 elif test $ac_cv_prog_cxx_g = yes; then
6695 if test "$GXX" = yes; then
6696 CXXFLAGS="-g -O2"
6697 else
6698 CXXFLAGS="-g"
6700 else
6701 if test "$GXX" = yes; then
6702 CXXFLAGS="-O2"
6703 else
6704 CXXFLAGS=
6707 ac_ext=cpp
6708 ac_cpp='$CXXCPP $CPPFLAGS'
6709 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6710 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6711 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6713 depcc="$CXX" am_compiler_list=
6715 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6716 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6717 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6718 echo $ECHO_N "(cached) $ECHO_C" >&6
6719 else
6720 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6721 # We make a subdir and do the tests there. Otherwise we can end up
6722 # making bogus files that we don't know about and never remove. For
6723 # instance it was reported that on HP-UX the gcc test will end up
6724 # making a dummy file named `D' -- because `-MD' means `put the output
6725 # in D'.
6726 mkdir conftest.dir
6727 # Copy depcomp to subdir because otherwise we won't find it if we're
6728 # using a relative directory.
6729 cp "$am_depcomp" conftest.dir
6730 cd conftest.dir
6731 # We will build objects and dependencies in a subdirectory because
6732 # it helps to detect inapplicable dependency modes. For instance
6733 # both Tru64's cc and ICC support -MD to output dependencies as a
6734 # side effect of compilation, but ICC will put the dependencies in
6735 # the current directory while Tru64 will put them in the object
6736 # directory.
6737 mkdir sub
6739 am_cv_CXX_dependencies_compiler_type=none
6740 if test "$am_compiler_list" = ""; then
6741 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6743 for depmode in $am_compiler_list; do
6744 # Setup a source with many dependencies, because some compilers
6745 # like to wrap large dependency lists on column 80 (with \), and
6746 # we should not choose a depcomp mode which is confused by this.
6748 # We need to recreate these files for each test, as the compiler may
6749 # overwrite some of them when testing with obscure command lines.
6750 # This happens at least with the AIX C compiler.
6751 : > sub/conftest.c
6752 for i in 1 2 3 4 5 6; do
6753 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6754 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6755 # Solaris 8's {/usr,}/bin/sh.
6756 touch sub/conftst$i.h
6757 done
6758 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6760 case $depmode in
6761 nosideeffect)
6762 # after this tag, mechanisms are not by side-effect, so they'll
6763 # only be used when explicitly requested
6764 if test "x$enable_dependency_tracking" = xyes; then
6765 continue
6766 else
6767 break
6770 none) break ;;
6771 esac
6772 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6773 # mode. It turns out that the SunPro C++ compiler does not properly
6774 # handle `-M -o', and we need to detect this.
6775 if depmode=$depmode \
6776 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6777 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6778 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6779 >/dev/null 2>conftest.err &&
6780 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6781 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6782 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6783 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6784 # icc doesn't choke on unknown options, it will just issue warnings
6785 # or remarks (even with -Werror). So we grep stderr for any message
6786 # that says an option was ignored or not supported.
6787 # When given -MP, icc 7.0 and 7.1 complain thusly:
6788 # icc: Command line warning: ignoring option '-M'; no argument required
6789 # The diagnosis changed in icc 8.0:
6790 # icc: Command line remark: option '-MP' not supported
6791 if (grep 'ignoring option' conftest.err ||
6792 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6793 am_cv_CXX_dependencies_compiler_type=$depmode
6794 break
6797 done
6799 cd ..
6800 rm -rf conftest.dir
6801 else
6802 am_cv_CXX_dependencies_compiler_type=none
6806 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6807 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6808 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6811 test "x$enable_dependency_tracking" != xno \
6812 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6813 am__fastdepCXX_TRUE=
6814 am__fastdepCXX_FALSE='#'
6815 else
6816 am__fastdepCXX_TRUE='#'
6817 am__fastdepCXX_FALSE=
6823 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6824 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6825 (test "X$CXX" != "Xg++"))) ; then
6826 ac_ext=cpp
6827 ac_cpp='$CXXCPP $CPPFLAGS'
6828 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6829 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6830 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6831 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6832 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6833 if test -z "$CXXCPP"; then
6834 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
6836 else
6837 # Double quotes because CXXCPP needs to be expanded
6838 for CXXCPP in "$CXX -E" "/lib/cpp"
6840 ac_preproc_ok=false
6841 for ac_cxx_preproc_warn_flag in '' yes
6843 # Use a header file that comes with gcc, so configuring glibc
6844 # with a fresh cross-compiler works.
6845 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6846 # <limits.h> exists even on freestanding compilers.
6847 # On the NeXT, cc -E runs the code through the compiler's parser,
6848 # not just through cpp. "Syntax error" is here to catch this case.
6849 cat >conftest.$ac_ext <<_ACEOF
6850 /* confdefs.h. */
6851 _ACEOF
6852 cat confdefs.h >>conftest.$ac_ext
6853 cat >>conftest.$ac_ext <<_ACEOF
6854 /* end confdefs.h. */
6855 #ifdef __STDC__
6856 # include <limits.h>
6857 #else
6858 # include <assert.h>
6859 #endif
6860 Syntax error
6861 _ACEOF
6862 if { (ac_try="$ac_cpp conftest.$ac_ext"
6863 case "(($ac_try" in
6864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6865 *) ac_try_echo=$ac_try;;
6866 esac
6867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6869 ac_status=$?
6870 grep -v '^ *+' conftest.er1 >conftest.err
6871 rm -f conftest.er1
6872 cat conftest.err >&5
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); } >/dev/null && {
6875 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6876 test ! -s conftest.err
6877 }; then
6879 else
6880 echo "$as_me: failed program was:" >&5
6881 sed 's/^/| /' conftest.$ac_ext >&5
6883 # Broken: fails on valid input.
6884 continue
6887 rm -f conftest.err conftest.$ac_ext
6889 # OK, works on sane cases. Now check whether nonexistent headers
6890 # can be detected and how.
6891 cat >conftest.$ac_ext <<_ACEOF
6892 /* confdefs.h. */
6893 _ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h. */
6897 #include <ac_nonexistent.h>
6898 _ACEOF
6899 if { (ac_try="$ac_cpp conftest.$ac_ext"
6900 case "(($ac_try" in
6901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6902 *) ac_try_echo=$ac_try;;
6903 esac
6904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6906 ac_status=$?
6907 grep -v '^ *+' conftest.er1 >conftest.err
6908 rm -f conftest.er1
6909 cat conftest.err >&5
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); } >/dev/null && {
6912 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6913 test ! -s conftest.err
6914 }; then
6915 # Broken: success on invalid input.
6916 continue
6917 else
6918 echo "$as_me: failed program was:" >&5
6919 sed 's/^/| /' conftest.$ac_ext >&5
6921 # Passes both tests.
6922 ac_preproc_ok=:
6923 break
6926 rm -f conftest.err conftest.$ac_ext
6928 done
6929 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6930 rm -f conftest.err conftest.$ac_ext
6931 if $ac_preproc_ok; then
6932 break
6935 done
6936 ac_cv_prog_CXXCPP=$CXXCPP
6939 CXXCPP=$ac_cv_prog_CXXCPP
6940 else
6941 ac_cv_prog_CXXCPP=$CXXCPP
6943 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6944 echo "${ECHO_T}$CXXCPP" >&6; }
6945 ac_preproc_ok=false
6946 for ac_cxx_preproc_warn_flag in '' yes
6948 # Use a header file that comes with gcc, so configuring glibc
6949 # with a fresh cross-compiler works.
6950 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6951 # <limits.h> exists even on freestanding compilers.
6952 # On the NeXT, cc -E runs the code through the compiler's parser,
6953 # not just through cpp. "Syntax error" is here to catch this case.
6954 cat >conftest.$ac_ext <<_ACEOF
6955 /* confdefs.h. */
6956 _ACEOF
6957 cat confdefs.h >>conftest.$ac_ext
6958 cat >>conftest.$ac_ext <<_ACEOF
6959 /* end confdefs.h. */
6960 #ifdef __STDC__
6961 # include <limits.h>
6962 #else
6963 # include <assert.h>
6964 #endif
6965 Syntax error
6966 _ACEOF
6967 if { (ac_try="$ac_cpp conftest.$ac_ext"
6968 case "(($ac_try" in
6969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6970 *) ac_try_echo=$ac_try;;
6971 esac
6972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6974 ac_status=$?
6975 grep -v '^ *+' conftest.er1 >conftest.err
6976 rm -f conftest.er1
6977 cat conftest.err >&5
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); } >/dev/null && {
6980 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6981 test ! -s conftest.err
6982 }; then
6984 else
6985 echo "$as_me: failed program was:" >&5
6986 sed 's/^/| /' conftest.$ac_ext >&5
6988 # Broken: fails on valid input.
6989 continue
6992 rm -f conftest.err conftest.$ac_ext
6994 # OK, works on sane cases. Now check whether nonexistent headers
6995 # can be detected and how.
6996 cat >conftest.$ac_ext <<_ACEOF
6997 /* confdefs.h. */
6998 _ACEOF
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h. */
7002 #include <ac_nonexistent.h>
7003 _ACEOF
7004 if { (ac_try="$ac_cpp conftest.$ac_ext"
7005 case "(($ac_try" in
7006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7007 *) ac_try_echo=$ac_try;;
7008 esac
7009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7011 ac_status=$?
7012 grep -v '^ *+' conftest.er1 >conftest.err
7013 rm -f conftest.er1
7014 cat conftest.err >&5
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); } >/dev/null && {
7017 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7018 test ! -s conftest.err
7019 }; then
7020 # Broken: success on invalid input.
7021 continue
7022 else
7023 echo "$as_me: failed program was:" >&5
7024 sed 's/^/| /' conftest.$ac_ext >&5
7026 # Passes both tests.
7027 ac_preproc_ok=:
7028 break
7031 rm -f conftest.err conftest.$ac_ext
7033 done
7034 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7035 rm -f conftest.err conftest.$ac_ext
7036 if $ac_preproc_ok; then
7038 else
7039 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7040 See \`config.log' for more details." >&5
7041 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7042 See \`config.log' for more details." >&2;}
7043 { (exit 1); exit 1; }; }
7046 ac_ext=cpp
7047 ac_cpp='$CXXCPP $CPPFLAGS'
7048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7055 ac_ext=f
7056 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7057 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7058 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7059 if test -n "$ac_tool_prefix"; then
7060 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7062 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7063 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7066 if test "${ac_cv_prog_F77+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7068 else
7069 if test -n "$F77"; then
7070 ac_cv_prog_F77="$F77" # Let the user override the test.
7071 else
7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 for as_dir in $PATH
7075 IFS=$as_save_IFS
7076 test -z "$as_dir" && as_dir=.
7077 for ac_exec_ext in '' $ac_executable_extensions; do
7078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7079 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7081 break 2
7083 done
7084 done
7085 IFS=$as_save_IFS
7089 F77=$ac_cv_prog_F77
7090 if test -n "$F77"; then
7091 { echo "$as_me:$LINENO: result: $F77" >&5
7092 echo "${ECHO_T}$F77" >&6; }
7093 else
7094 { echo "$as_me:$LINENO: result: no" >&5
7095 echo "${ECHO_T}no" >&6; }
7099 test -n "$F77" && break
7100 done
7102 if test -z "$F77"; then
7103 ac_ct_F77=$F77
7104 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7106 # Extract the first word of "$ac_prog", so it can be a program name with args.
7107 set dummy $ac_prog; ac_word=$2
7108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7110 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7112 else
7113 if test -n "$ac_ct_F77"; then
7114 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7115 else
7116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117 for as_dir in $PATH
7119 IFS=$as_save_IFS
7120 test -z "$as_dir" && as_dir=.
7121 for ac_exec_ext in '' $ac_executable_extensions; do
7122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7123 ac_cv_prog_ac_ct_F77="$ac_prog"
7124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7125 break 2
7127 done
7128 done
7129 IFS=$as_save_IFS
7133 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7134 if test -n "$ac_ct_F77"; then
7135 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7136 echo "${ECHO_T}$ac_ct_F77" >&6; }
7137 else
7138 { echo "$as_me:$LINENO: result: no" >&5
7139 echo "${ECHO_T}no" >&6; }
7143 test -n "$ac_ct_F77" && break
7144 done
7146 if test "x$ac_ct_F77" = x; then
7147 F77=""
7148 else
7149 case $cross_compiling:$ac_tool_warned in
7150 yes:)
7151 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7152 whose name does not start with the host triplet. If you think this
7153 configuration is useful to you, please write to autoconf@gnu.org." >&5
7154 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7155 whose name does not start with the host triplet. If you think this
7156 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7157 ac_tool_warned=yes ;;
7158 esac
7159 F77=$ac_ct_F77
7164 # Provide some information about the compiler.
7165 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7166 ac_compiler=`set X $ac_compile; echo $2`
7167 { (ac_try="$ac_compiler --version >&5"
7168 case "(($ac_try" in
7169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7170 *) ac_try_echo=$ac_try;;
7171 esac
7172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7173 (eval "$ac_compiler --version >&5") 2>&5
7174 ac_status=$?
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); }
7177 { (ac_try="$ac_compiler -v >&5"
7178 case "(($ac_try" in
7179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7180 *) ac_try_echo=$ac_try;;
7181 esac
7182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7183 (eval "$ac_compiler -v >&5") 2>&5
7184 ac_status=$?
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); }
7187 { (ac_try="$ac_compiler -V >&5"
7188 case "(($ac_try" in
7189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7190 *) ac_try_echo=$ac_try;;
7191 esac
7192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7193 (eval "$ac_compiler -V >&5") 2>&5
7194 ac_status=$?
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); }
7197 rm -f a.out
7199 # If we don't use `.F' as extension, the preprocessor is not run on the
7200 # input file. (Note that this only needs to work for GNU compilers.)
7201 ac_save_ext=$ac_ext
7202 ac_ext=F
7203 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7204 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7205 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7206 echo $ECHO_N "(cached) $ECHO_C" >&6
7207 else
7208 cat >conftest.$ac_ext <<_ACEOF
7209 program main
7210 #ifndef __GNUC__
7211 choke me
7212 #endif
7215 _ACEOF
7216 rm -f conftest.$ac_objext
7217 if { (ac_try="$ac_compile"
7218 case "(($ac_try" in
7219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7220 *) ac_try_echo=$ac_try;;
7221 esac
7222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7223 (eval "$ac_compile") 2>conftest.er1
7224 ac_status=$?
7225 grep -v '^ *+' conftest.er1 >conftest.err
7226 rm -f conftest.er1
7227 cat conftest.err >&5
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); } && {
7230 test -z "$ac_f77_werror_flag" ||
7231 test ! -s conftest.err
7232 } && test -s conftest.$ac_objext; then
7233 ac_compiler_gnu=yes
7234 else
7235 echo "$as_me: failed program was:" >&5
7236 sed 's/^/| /' conftest.$ac_ext >&5
7238 ac_compiler_gnu=no
7241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7242 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7245 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7246 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7247 ac_ext=$ac_save_ext
7248 ac_test_FFLAGS=${FFLAGS+set}
7249 ac_save_FFLAGS=$FFLAGS
7250 FFLAGS=
7251 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7252 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7253 if test "${ac_cv_prog_f77_g+set}" = set; then
7254 echo $ECHO_N "(cached) $ECHO_C" >&6
7255 else
7256 FFLAGS=-g
7257 cat >conftest.$ac_ext <<_ACEOF
7258 program main
7261 _ACEOF
7262 rm -f conftest.$ac_objext
7263 if { (ac_try="$ac_compile"
7264 case "(($ac_try" in
7265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7266 *) ac_try_echo=$ac_try;;
7267 esac
7268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7269 (eval "$ac_compile") 2>conftest.er1
7270 ac_status=$?
7271 grep -v '^ *+' conftest.er1 >conftest.err
7272 rm -f conftest.er1
7273 cat conftest.err >&5
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); } && {
7276 test -z "$ac_f77_werror_flag" ||
7277 test ! -s conftest.err
7278 } && test -s conftest.$ac_objext; then
7279 ac_cv_prog_f77_g=yes
7280 else
7281 echo "$as_me: failed program was:" >&5
7282 sed 's/^/| /' conftest.$ac_ext >&5
7284 ac_cv_prog_f77_g=no
7287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7290 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7291 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7292 if test "$ac_test_FFLAGS" = set; then
7293 FFLAGS=$ac_save_FFLAGS
7294 elif test $ac_cv_prog_f77_g = yes; then
7295 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7296 FFLAGS="-g -O2"
7297 else
7298 FFLAGS="-g"
7300 else
7301 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7302 FFLAGS="-O2"
7303 else
7304 FFLAGS=
7308 G77=`test $ac_compiler_gnu = yes && echo yes`
7309 ac_ext=c
7310 ac_cpp='$CPP $CPPFLAGS'
7311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7317 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7319 # find the maximum length of command line arguments
7320 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7321 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7322 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7324 else
7326 teststring="ABCD"
7328 case $build_os in
7329 msdosdjgpp*)
7330 # On DJGPP, this test can blow up pretty badly due to problems in libc
7331 # (any single argument exceeding 2000 bytes causes a buffer overrun
7332 # during glob expansion). Even if it were fixed, the result of this
7333 # check would be larger than it should be.
7334 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7337 gnu*)
7338 # Under GNU Hurd, this test is not required because there is
7339 # no limit to the length of command line arguments.
7340 # Libtool will interpret -1 as no limit whatsoever
7341 lt_cv_sys_max_cmd_len=-1;
7344 cygwin* | mingw*)
7345 # On Win9x/ME, this test blows up -- it succeeds, but takes
7346 # about 5 minutes as the teststring grows exponentially.
7347 # Worse, since 9x/ME are not pre-emptively multitasking,
7348 # you end up with a "frozen" computer, even though with patience
7349 # the test eventually succeeds (with a max line length of 256k).
7350 # Instead, let's just punt: use the minimum linelength reported by
7351 # all of the supported platforms: 8192 (on NT/2K/XP).
7352 lt_cv_sys_max_cmd_len=8192;
7355 amigaos*)
7356 # On AmigaOS with pdksh, this test takes hours, literally.
7357 # So we just punt and use a minimum line length of 8192.
7358 lt_cv_sys_max_cmd_len=8192;
7361 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7362 # This has been around since 386BSD, at least. Likely further.
7363 if test -x /sbin/sysctl; then
7364 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7365 elif test -x /usr/sbin/sysctl; then
7366 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7367 else
7368 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7370 # And add a safety zone
7371 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7372 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7375 interix*)
7376 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7377 lt_cv_sys_max_cmd_len=196608
7380 osf*)
7381 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7382 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7383 # nice to cause kernel panics so lets avoid the loop below.
7384 # First set a reasonable default.
7385 lt_cv_sys_max_cmd_len=16384
7387 if test -x /sbin/sysconfig; then
7388 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7389 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7390 esac
7393 sco3.2v5*)
7394 lt_cv_sys_max_cmd_len=102400
7396 sysv5* | sco5v6* | sysv4.2uw2*)
7397 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7398 if test -n "$kargmax"; then
7399 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7400 else
7401 lt_cv_sys_max_cmd_len=32768
7405 # If test is not a shell built-in, we'll probably end up computing a
7406 # maximum length that is only half of the actual maximum length, but
7407 # we can't tell.
7408 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7409 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7410 = "XX$teststring") >/dev/null 2>&1 &&
7411 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7412 lt_cv_sys_max_cmd_len=$new_result &&
7413 test $i != 17 # 1/2 MB should be enough
7415 i=`expr $i + 1`
7416 teststring=$teststring$teststring
7417 done
7418 teststring=
7419 # Add a significant safety factor because C++ compilers can tack on massive
7420 # amounts of additional arguments before passing them to the linker.
7421 # It appears as though 1/2 is a usable value.
7422 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7424 esac
7428 if test -n $lt_cv_sys_max_cmd_len ; then
7429 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7430 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7431 else
7432 { echo "$as_me:$LINENO: result: none" >&5
7433 echo "${ECHO_T}none" >&6; }
7439 # Check for command to grab the raw symbol name followed by C symbol from nm.
7440 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7441 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7442 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7443 echo $ECHO_N "(cached) $ECHO_C" >&6
7444 else
7446 # These are sane defaults that work on at least a few old systems.
7447 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7449 # Character class describing NM global symbol codes.
7450 symcode='[BCDEGRST]'
7452 # Regexp to match symbols that can be accessed directly from C.
7453 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7455 # Transform an extracted symbol line into a proper C declaration
7456 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7458 # Transform an extracted symbol line into symbol name and symbol address
7459 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7461 # Define system-specific variables.
7462 case $host_os in
7463 aix*)
7464 symcode='[BCDT]'
7466 cygwin* | mingw* | pw32*)
7467 symcode='[ABCDGISTW]'
7469 hpux*) # Its linker distinguishes data from code symbols
7470 if test "$host_cpu" = ia64; then
7471 symcode='[ABCDEGRST]'
7473 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7474 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7476 linux*)
7477 if test "$host_cpu" = ia64; then
7478 symcode='[ABCDGIRSTW]'
7479 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7480 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7483 irix* | nonstopux*)
7484 symcode='[BCDEGRST]'
7486 osf*)
7487 symcode='[BCDEGQRST]'
7489 solaris*)
7490 symcode='[BDRT]'
7492 sco3.2v5*)
7493 symcode='[DT]'
7495 sysv4.2uw2*)
7496 symcode='[DT]'
7498 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7499 symcode='[ABDT]'
7501 sysv4)
7502 symcode='[DFNSTU]'
7504 esac
7506 # Handle CRLF in mingw tool chain
7507 opt_cr=
7508 case $build_os in
7509 mingw*)
7510 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7512 esac
7514 # If we're using GNU nm, then use its standard symbol codes.
7515 case `$NM -V 2>&1` in
7516 *GNU* | *'with BFD'*)
7517 symcode='[ABCDGIRSTW]' ;;
7518 esac
7520 # Try without a prefix undercore, then with it.
7521 for ac_symprfx in "" "_"; do
7523 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7524 symxfrm="\\1 $ac_symprfx\\2 \\2"
7526 # Write the raw and C identifiers.
7527 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7529 # Check to see that the pipe works correctly.
7530 pipe_works=no
7532 rm -f conftest*
7533 cat > conftest.$ac_ext <<EOF
7534 #ifdef __cplusplus
7535 extern "C" {
7536 #endif
7537 char nm_test_var;
7538 void nm_test_func(){}
7539 #ifdef __cplusplus
7541 #endif
7542 int main(){nm_test_var='a';nm_test_func();return(0);}
7545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7546 (eval $ac_compile) 2>&5
7547 ac_status=$?
7548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 (exit $ac_status); }; then
7550 # Now try to grab the symbols.
7551 nlist=conftest.nm
7552 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7553 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7554 ac_status=$?
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); } && test -s "$nlist"; then
7557 # Try sorting and uniquifying the output.
7558 if sort "$nlist" | uniq > "$nlist"T; then
7559 mv -f "$nlist"T "$nlist"
7560 else
7561 rm -f "$nlist"T
7564 # Make sure that we snagged all the symbols we need.
7565 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7566 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7567 cat <<EOF > conftest.$ac_ext
7568 #ifdef __cplusplus
7569 extern "C" {
7570 #endif
7573 # Now generate the symbol file.
7574 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7576 cat <<EOF >> conftest.$ac_ext
7577 #if defined (__STDC__) && __STDC__
7578 # define lt_ptr_t void *
7579 #else
7580 # define lt_ptr_t char *
7581 # define const
7582 #endif
7584 /* The mapping between symbol names and symbols. */
7585 const struct {
7586 const char *name;
7587 lt_ptr_t address;
7589 lt_preloaded_symbols[] =
7592 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7593 cat <<\EOF >> conftest.$ac_ext
7594 {0, (lt_ptr_t) 0}
7597 #ifdef __cplusplus
7599 #endif
7601 # Now try linking the two files.
7602 mv conftest.$ac_objext conftstm.$ac_objext
7603 lt_save_LIBS="$LIBS"
7604 lt_save_CFLAGS="$CFLAGS"
7605 LIBS="conftstm.$ac_objext"
7606 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7608 (eval $ac_link) 2>&5
7609 ac_status=$?
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7612 pipe_works=yes
7614 LIBS="$lt_save_LIBS"
7615 CFLAGS="$lt_save_CFLAGS"
7616 else
7617 echo "cannot find nm_test_func in $nlist" >&5
7619 else
7620 echo "cannot find nm_test_var in $nlist" >&5
7622 else
7623 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7625 else
7626 echo "$progname: failed program was:" >&5
7627 cat conftest.$ac_ext >&5
7629 rm -f conftest* conftst*
7631 # Do not use the global_symbol_pipe unless it works.
7632 if test "$pipe_works" = yes; then
7633 break
7634 else
7635 lt_cv_sys_global_symbol_pipe=
7637 done
7641 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7642 lt_cv_sys_global_symbol_to_cdecl=
7644 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7645 { echo "$as_me:$LINENO: result: failed" >&5
7646 echo "${ECHO_T}failed" >&6; }
7647 else
7648 { echo "$as_me:$LINENO: result: ok" >&5
7649 echo "${ECHO_T}ok" >&6; }
7652 { echo "$as_me:$LINENO: checking for objdir" >&5
7653 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7654 if test "${lt_cv_objdir+set}" = set; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
7656 else
7657 rm -f .libs 2>/dev/null
7658 mkdir .libs 2>/dev/null
7659 if test -d .libs; then
7660 lt_cv_objdir=.libs
7661 else
7662 # MS-DOS does not allow filenames that begin with a dot.
7663 lt_cv_objdir=_libs
7665 rmdir .libs 2>/dev/null
7667 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7668 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7669 objdir=$lt_cv_objdir
7675 case $host_os in
7676 aix3*)
7677 # AIX sometimes has problems with the GCC collect2 program. For some
7678 # reason, if we set the COLLECT_NAMES environment variable, the problems
7679 # vanish in a puff of smoke.
7680 if test "X${COLLECT_NAMES+set}" != Xset; then
7681 COLLECT_NAMES=
7682 export COLLECT_NAMES
7685 esac
7687 # Sed substitution that helps us do robust quoting. It backslashifies
7688 # metacharacters that are still active within double-quoted strings.
7689 Xsed='sed -e 1s/^X//'
7690 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7692 # Same as above, but do not quote variable references.
7693 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7695 # Sed substitution to delay expansion of an escaped shell variable in a
7696 # double_quote_subst'ed string.
7697 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7699 # Sed substitution to avoid accidental globbing in evaled expressions
7700 no_glob_subst='s/\*/\\\*/g'
7702 # Constants:
7703 rm="rm -f"
7705 # Global variables:
7706 default_ofile=libtool
7707 can_build_shared=yes
7709 # All known linkers require a `.a' archive for static linking (except MSVC,
7710 # which needs '.lib').
7711 libext=a
7712 ltmain="$ac_aux_dir/ltmain.sh"
7713 ofile="$default_ofile"
7714 with_gnu_ld="$lt_cv_prog_gnu_ld"
7716 if test -n "$ac_tool_prefix"; then
7717 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7718 set dummy ${ac_tool_prefix}ar; ac_word=$2
7719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7721 if test "${ac_cv_prog_AR+set}" = set; then
7722 echo $ECHO_N "(cached) $ECHO_C" >&6
7723 else
7724 if test -n "$AR"; then
7725 ac_cv_prog_AR="$AR" # Let the user override the test.
7726 else
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 for as_dir in $PATH
7730 IFS=$as_save_IFS
7731 test -z "$as_dir" && as_dir=.
7732 for ac_exec_ext in '' $ac_executable_extensions; do
7733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7734 ac_cv_prog_AR="${ac_tool_prefix}ar"
7735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7736 break 2
7738 done
7739 done
7740 IFS=$as_save_IFS
7744 AR=$ac_cv_prog_AR
7745 if test -n "$AR"; then
7746 { echo "$as_me:$LINENO: result: $AR" >&5
7747 echo "${ECHO_T}$AR" >&6; }
7748 else
7749 { echo "$as_me:$LINENO: result: no" >&5
7750 echo "${ECHO_T}no" >&6; }
7755 if test -z "$ac_cv_prog_AR"; then
7756 ac_ct_AR=$AR
7757 # Extract the first word of "ar", so it can be a program name with args.
7758 set dummy ar; ac_word=$2
7759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7761 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7762 echo $ECHO_N "(cached) $ECHO_C" >&6
7763 else
7764 if test -n "$ac_ct_AR"; then
7765 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7766 else
7767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768 for as_dir in $PATH
7770 IFS=$as_save_IFS
7771 test -z "$as_dir" && as_dir=.
7772 for ac_exec_ext in '' $ac_executable_extensions; do
7773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7774 ac_cv_prog_ac_ct_AR="ar"
7775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7776 break 2
7778 done
7779 done
7780 IFS=$as_save_IFS
7784 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7785 if test -n "$ac_ct_AR"; then
7786 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7787 echo "${ECHO_T}$ac_ct_AR" >&6; }
7788 else
7789 { echo "$as_me:$LINENO: result: no" >&5
7790 echo "${ECHO_T}no" >&6; }
7793 if test "x$ac_ct_AR" = x; then
7794 AR="false"
7795 else
7796 case $cross_compiling:$ac_tool_warned in
7797 yes:)
7798 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7799 whose name does not start with the host triplet. If you think this
7800 configuration is useful to you, please write to autoconf@gnu.org." >&5
7801 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7802 whose name does not start with the host triplet. If you think this
7803 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7804 ac_tool_warned=yes ;;
7805 esac
7806 AR=$ac_ct_AR
7808 else
7809 AR="$ac_cv_prog_AR"
7812 if test -n "$ac_tool_prefix"; then
7813 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7814 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7817 if test "${ac_cv_prog_RANLIB+set}" = set; then
7818 echo $ECHO_N "(cached) $ECHO_C" >&6
7819 else
7820 if test -n "$RANLIB"; then
7821 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7822 else
7823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7824 for as_dir in $PATH
7826 IFS=$as_save_IFS
7827 test -z "$as_dir" && as_dir=.
7828 for ac_exec_ext in '' $ac_executable_extensions; do
7829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7830 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7832 break 2
7834 done
7835 done
7836 IFS=$as_save_IFS
7840 RANLIB=$ac_cv_prog_RANLIB
7841 if test -n "$RANLIB"; then
7842 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7843 echo "${ECHO_T}$RANLIB" >&6; }
7844 else
7845 { echo "$as_me:$LINENO: result: no" >&5
7846 echo "${ECHO_T}no" >&6; }
7851 if test -z "$ac_cv_prog_RANLIB"; then
7852 ac_ct_RANLIB=$RANLIB
7853 # Extract the first word of "ranlib", so it can be a program name with args.
7854 set dummy ranlib; ac_word=$2
7855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7857 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7858 echo $ECHO_N "(cached) $ECHO_C" >&6
7859 else
7860 if test -n "$ac_ct_RANLIB"; then
7861 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7862 else
7863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7864 for as_dir in $PATH
7866 IFS=$as_save_IFS
7867 test -z "$as_dir" && as_dir=.
7868 for ac_exec_ext in '' $ac_executable_extensions; do
7869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7870 ac_cv_prog_ac_ct_RANLIB="ranlib"
7871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7872 break 2
7874 done
7875 done
7876 IFS=$as_save_IFS
7880 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7881 if test -n "$ac_ct_RANLIB"; then
7882 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7883 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7884 else
7885 { echo "$as_me:$LINENO: result: no" >&5
7886 echo "${ECHO_T}no" >&6; }
7889 if test "x$ac_ct_RANLIB" = x; then
7890 RANLIB=":"
7891 else
7892 case $cross_compiling:$ac_tool_warned in
7893 yes:)
7894 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7895 whose name does not start with the host triplet. If you think this
7896 configuration is useful to you, please write to autoconf@gnu.org." >&5
7897 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7898 whose name does not start with the host triplet. If you think this
7899 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7900 ac_tool_warned=yes ;;
7901 esac
7902 RANLIB=$ac_ct_RANLIB
7904 else
7905 RANLIB="$ac_cv_prog_RANLIB"
7908 if test -n "$ac_tool_prefix"; then
7909 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7910 set dummy ${ac_tool_prefix}strip; ac_word=$2
7911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7913 if test "${ac_cv_prog_STRIP+set}" = set; then
7914 echo $ECHO_N "(cached) $ECHO_C" >&6
7915 else
7916 if test -n "$STRIP"; then
7917 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7918 else
7919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920 for as_dir in $PATH
7922 IFS=$as_save_IFS
7923 test -z "$as_dir" && as_dir=.
7924 for ac_exec_ext in '' $ac_executable_extensions; do
7925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7926 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7928 break 2
7930 done
7931 done
7932 IFS=$as_save_IFS
7936 STRIP=$ac_cv_prog_STRIP
7937 if test -n "$STRIP"; then
7938 { echo "$as_me:$LINENO: result: $STRIP" >&5
7939 echo "${ECHO_T}$STRIP" >&6; }
7940 else
7941 { echo "$as_me:$LINENO: result: no" >&5
7942 echo "${ECHO_T}no" >&6; }
7947 if test -z "$ac_cv_prog_STRIP"; then
7948 ac_ct_STRIP=$STRIP
7949 # Extract the first word of "strip", so it can be a program name with args.
7950 set dummy strip; ac_word=$2
7951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7953 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
7955 else
7956 if test -n "$ac_ct_STRIP"; then
7957 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7958 else
7959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7960 for as_dir in $PATH
7962 IFS=$as_save_IFS
7963 test -z "$as_dir" && as_dir=.
7964 for ac_exec_ext in '' $ac_executable_extensions; do
7965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7966 ac_cv_prog_ac_ct_STRIP="strip"
7967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7968 break 2
7970 done
7971 done
7972 IFS=$as_save_IFS
7976 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7977 if test -n "$ac_ct_STRIP"; then
7978 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7979 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7980 else
7981 { echo "$as_me:$LINENO: result: no" >&5
7982 echo "${ECHO_T}no" >&6; }
7985 if test "x$ac_ct_STRIP" = x; then
7986 STRIP=":"
7987 else
7988 case $cross_compiling:$ac_tool_warned in
7989 yes:)
7990 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7991 whose name does not start with the host triplet. If you think this
7992 configuration is useful to you, please write to autoconf@gnu.org." >&5
7993 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7994 whose name does not start with the host triplet. If you think this
7995 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7996 ac_tool_warned=yes ;;
7997 esac
7998 STRIP=$ac_ct_STRIP
8000 else
8001 STRIP="$ac_cv_prog_STRIP"
8005 old_CC="$CC"
8006 old_CFLAGS="$CFLAGS"
8008 # Set sane defaults for various variables
8009 test -z "$AR" && AR=ar
8010 test -z "$AR_FLAGS" && AR_FLAGS=cru
8011 test -z "$AS" && AS=as
8012 test -z "$CC" && CC=cc
8013 test -z "$LTCC" && LTCC=$CC
8014 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8015 test -z "$DLLTOOL" && DLLTOOL=dlltool
8016 test -z "$LD" && LD=ld
8017 test -z "$LN_S" && LN_S="ln -s"
8018 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8019 test -z "$NM" && NM=nm
8020 test -z "$SED" && SED=sed
8021 test -z "$OBJDUMP" && OBJDUMP=objdump
8022 test -z "$RANLIB" && RANLIB=:
8023 test -z "$STRIP" && STRIP=:
8024 test -z "$ac_objext" && ac_objext=o
8026 # Determine commands to create old-style static archives.
8027 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8028 old_postinstall_cmds='chmod 644 $oldlib'
8029 old_postuninstall_cmds=
8031 if test -n "$RANLIB"; then
8032 case $host_os in
8033 openbsd*)
8034 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8037 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8039 esac
8040 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8043 for cc_temp in $compiler""; do
8044 case $cc_temp in
8045 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8046 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8047 \-*) ;;
8048 *) break;;
8049 esac
8050 done
8051 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8054 # Only perform the check for file, if the check method requires it
8055 case $deplibs_check_method in
8056 file_magic*)
8057 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8058 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8059 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8060 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8061 echo $ECHO_N "(cached) $ECHO_C" >&6
8062 else
8063 case $MAGIC_CMD in
8064 [\\/*] | ?:[\\/]*)
8065 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8068 lt_save_MAGIC_CMD="$MAGIC_CMD"
8069 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8070 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8071 for ac_dir in $ac_dummy; do
8072 IFS="$lt_save_ifs"
8073 test -z "$ac_dir" && ac_dir=.
8074 if test -f $ac_dir/${ac_tool_prefix}file; then
8075 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8076 if test -n "$file_magic_test_file"; then
8077 case $deplibs_check_method in
8078 "file_magic "*)
8079 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8080 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8081 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8082 $EGREP "$file_magic_regex" > /dev/null; then
8084 else
8085 cat <<EOF 1>&2
8087 *** Warning: the command libtool uses to detect shared libraries,
8088 *** $file_magic_cmd, produces output that libtool cannot recognize.
8089 *** The result is that libtool may fail to recognize shared libraries
8090 *** as such. This will affect the creation of libtool libraries that
8091 *** depend on shared libraries, but programs linked with such libtool
8092 *** libraries will work regardless of this problem. Nevertheless, you
8093 *** may want to report the problem to your system manager and/or to
8094 *** bug-libtool@gnu.org
8097 fi ;;
8098 esac
8100 break
8102 done
8103 IFS="$lt_save_ifs"
8104 MAGIC_CMD="$lt_save_MAGIC_CMD"
8106 esac
8109 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8110 if test -n "$MAGIC_CMD"; then
8111 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8112 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8113 else
8114 { echo "$as_me:$LINENO: result: no" >&5
8115 echo "${ECHO_T}no" >&6; }
8118 if test -z "$lt_cv_path_MAGIC_CMD"; then
8119 if test -n "$ac_tool_prefix"; then
8120 { echo "$as_me:$LINENO: checking for file" >&5
8121 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8122 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8123 echo $ECHO_N "(cached) $ECHO_C" >&6
8124 else
8125 case $MAGIC_CMD in
8126 [\\/*] | ?:[\\/]*)
8127 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8130 lt_save_MAGIC_CMD="$MAGIC_CMD"
8131 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8132 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8133 for ac_dir in $ac_dummy; do
8134 IFS="$lt_save_ifs"
8135 test -z "$ac_dir" && ac_dir=.
8136 if test -f $ac_dir/file; then
8137 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8138 if test -n "$file_magic_test_file"; then
8139 case $deplibs_check_method in
8140 "file_magic "*)
8141 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8142 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8143 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8144 $EGREP "$file_magic_regex" > /dev/null; then
8146 else
8147 cat <<EOF 1>&2
8149 *** Warning: the command libtool uses to detect shared libraries,
8150 *** $file_magic_cmd, produces output that libtool cannot recognize.
8151 *** The result is that libtool may fail to recognize shared libraries
8152 *** as such. This will affect the creation of libtool libraries that
8153 *** depend on shared libraries, but programs linked with such libtool
8154 *** libraries will work regardless of this problem. Nevertheless, you
8155 *** may want to report the problem to your system manager and/or to
8156 *** bug-libtool@gnu.org
8159 fi ;;
8160 esac
8162 break
8164 done
8165 IFS="$lt_save_ifs"
8166 MAGIC_CMD="$lt_save_MAGIC_CMD"
8168 esac
8171 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8172 if test -n "$MAGIC_CMD"; then
8173 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8174 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8175 else
8176 { echo "$as_me:$LINENO: result: no" >&5
8177 echo "${ECHO_T}no" >&6; }
8180 else
8181 MAGIC_CMD=:
8187 esac
8189 enable_dlopen=no
8190 enable_win32_dll=yes
8192 # Check whether --enable-libtool-lock was given.
8193 if test "${enable_libtool_lock+set}" = set; then
8194 enableval=$enable_libtool_lock;
8197 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8200 # Check whether --with-pic was given.
8201 if test "${with_pic+set}" = set; then
8202 withval=$with_pic; pic_mode="$withval"
8203 else
8204 pic_mode=default
8207 test -z "$pic_mode" && pic_mode=default
8209 # Use C for the default configuration in the libtool script
8210 tagname=
8211 lt_save_CC="$CC"
8212 ac_ext=c
8213 ac_cpp='$CPP $CPPFLAGS'
8214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8219 # Source file extension for C test sources.
8220 ac_ext=c
8222 # Object file extension for compiled C test sources.
8223 objext=o
8224 objext=$objext
8226 # Code to be used in simple compile tests
8227 lt_simple_compile_test_code="int some_variable = 0;\n"
8229 # Code to be used in simple link tests
8230 lt_simple_link_test_code='int main(){return(0);}\n'
8233 # If no C compiler was specified, use CC.
8234 LTCC=${LTCC-"$CC"}
8236 # If no C compiler flags were specified, use CFLAGS.
8237 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8239 # Allow CC to be a program name with arguments.
8240 compiler=$CC
8243 # save warnings/boilerplate of simple test code
8244 ac_outfile=conftest.$ac_objext
8245 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8246 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8247 _lt_compiler_boilerplate=`cat conftest.err`
8248 $rm conftest*
8250 ac_outfile=conftest.$ac_objext
8251 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8252 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8253 _lt_linker_boilerplate=`cat conftest.err`
8254 $rm conftest*
8258 lt_prog_compiler_no_builtin_flag=
8260 if test "$GCC" = yes; then
8261 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8264 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8265 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8266 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
8268 else
8269 lt_cv_prog_compiler_rtti_exceptions=no
8270 ac_outfile=conftest.$ac_objext
8271 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8272 lt_compiler_flag="-fno-rtti -fno-exceptions"
8273 # Insert the option either (1) after the last *FLAGS variable, or
8274 # (2) before a word containing "conftest.", or (3) at the end.
8275 # Note that $ac_compile itself does not contain backslashes and begins
8276 # with a dollar sign (not a hyphen), so the echo should work correctly.
8277 # The option is referenced via a variable to avoid confusing sed.
8278 lt_compile=`echo "$ac_compile" | $SED \
8279 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8280 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8281 -e 's:$: $lt_compiler_flag:'`
8282 (eval echo "\"\$as_me:8282: $lt_compile\"" >&5)
8283 (eval "$lt_compile" 2>conftest.err)
8284 ac_status=$?
8285 cat conftest.err >&5
8286 echo "$as_me:8286: \$? = $ac_status" >&5
8287 if (exit $ac_status) && test -s "$ac_outfile"; then
8288 # The compiler can only warn and ignore the option if not recognized
8289 # So say no if there are warnings other than the usual output.
8290 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8291 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8292 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8293 lt_cv_prog_compiler_rtti_exceptions=yes
8296 $rm conftest*
8299 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8300 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8302 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8303 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8304 else
8310 lt_prog_compiler_wl=
8311 lt_prog_compiler_pic=
8312 lt_prog_compiler_static=
8314 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8315 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8317 if test "$GCC" = yes; then
8318 lt_prog_compiler_wl='-Wl,'
8319 lt_prog_compiler_static='-static'
8321 case $host_os in
8322 aix*)
8323 # All AIX code is PIC.
8324 if test "$host_cpu" = ia64; then
8325 # AIX 5 now supports IA64 processor
8326 lt_prog_compiler_static='-Bstatic'
8330 amigaos*)
8331 # FIXME: we need at least 68020 code to build shared libraries, but
8332 # adding the `-m68020' flag to GCC prevents building anything better,
8333 # like `-m68040'.
8334 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8337 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8338 # PIC is the default for these OSes.
8341 mingw* | pw32* | os2*)
8342 # This hack is so that the source file can tell whether it is being
8343 # built for inclusion in a dll (and should export symbols for example).
8344 lt_prog_compiler_pic='-DDLL_EXPORT'
8347 darwin* | rhapsody*)
8348 # PIC is the default on this platform
8349 # Common symbols not allowed in MH_DYLIB files
8350 lt_prog_compiler_pic='-fno-common'
8353 interix3*)
8354 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8355 # Instead, we relocate shared libraries at runtime.
8358 msdosdjgpp*)
8359 # Just because we use GCC doesn't mean we suddenly get shared libraries
8360 # on systems that don't support them.
8361 lt_prog_compiler_can_build_shared=no
8362 enable_shared=no
8365 sysv4*MP*)
8366 if test -d /usr/nec; then
8367 lt_prog_compiler_pic=-Kconform_pic
8371 hpux*)
8372 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8373 # not for PA HP-UX.
8374 case $host_cpu in
8375 hppa*64*|ia64*)
8376 # +Z the default
8379 lt_prog_compiler_pic='-fPIC'
8381 esac
8385 lt_prog_compiler_pic='-fPIC'
8387 esac
8388 else
8389 # PORTME Check for flag to pass linker flags through the system compiler.
8390 case $host_os in
8391 aix*)
8392 lt_prog_compiler_wl='-Wl,'
8393 if test "$host_cpu" = ia64; then
8394 # AIX 5 now supports IA64 processor
8395 lt_prog_compiler_static='-Bstatic'
8396 else
8397 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8400 darwin*)
8401 # PIC is the default on this platform
8402 # Common symbols not allowed in MH_DYLIB files
8403 case $cc_basename in
8404 xlc*)
8405 lt_prog_compiler_pic='-qnocommon'
8406 lt_prog_compiler_wl='-Wl,'
8408 esac
8411 mingw* | pw32* | os2*)
8412 # This hack is so that the source file can tell whether it is being
8413 # built for inclusion in a dll (and should export symbols for example).
8414 lt_prog_compiler_pic='-DDLL_EXPORT'
8417 hpux9* | hpux10* | hpux11*)
8418 lt_prog_compiler_wl='-Wl,'
8419 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8420 # not for PA HP-UX.
8421 case $host_cpu in
8422 hppa*64*|ia64*)
8423 # +Z the default
8426 lt_prog_compiler_pic='+Z'
8428 esac
8429 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8430 lt_prog_compiler_static='${wl}-a ${wl}archive'
8433 irix5* | irix6* | nonstopux*)
8434 lt_prog_compiler_wl='-Wl,'
8435 # PIC (with -KPIC) is the default.
8436 lt_prog_compiler_static='-non_shared'
8439 newsos6)
8440 lt_prog_compiler_pic='-KPIC'
8441 lt_prog_compiler_static='-Bstatic'
8444 linux*)
8445 case $cc_basename in
8446 icc* | ecc*)
8447 lt_prog_compiler_wl='-Wl,'
8448 lt_prog_compiler_pic='-KPIC'
8449 lt_prog_compiler_static='-static'
8451 pgcc* | pgf77* | pgf90* | pgf95*)
8452 # Portland Group compilers (*not* the Pentium gcc compiler,
8453 # which looks to be a dead project)
8454 lt_prog_compiler_wl='-Wl,'
8455 lt_prog_compiler_pic='-fpic'
8456 lt_prog_compiler_static='-Bstatic'
8458 ccc*)
8459 lt_prog_compiler_wl='-Wl,'
8460 # All Alpha code is PIC.
8461 lt_prog_compiler_static='-non_shared'
8463 esac
8466 osf3* | osf4* | osf5*)
8467 lt_prog_compiler_wl='-Wl,'
8468 # All OSF/1 code is PIC.
8469 lt_prog_compiler_static='-non_shared'
8472 solaris*)
8473 lt_prog_compiler_pic='-KPIC'
8474 lt_prog_compiler_static='-Bstatic'
8475 case $cc_basename in
8476 f77* | f90* | f95*)
8477 lt_prog_compiler_wl='-Qoption ld ';;
8479 lt_prog_compiler_wl='-Wl,';;
8480 esac
8483 sunos4*)
8484 lt_prog_compiler_wl='-Qoption ld '
8485 lt_prog_compiler_pic='-PIC'
8486 lt_prog_compiler_static='-Bstatic'
8489 sysv4 | sysv4.2uw2* | sysv4.3*)
8490 lt_prog_compiler_wl='-Wl,'
8491 lt_prog_compiler_pic='-KPIC'
8492 lt_prog_compiler_static='-Bstatic'
8495 sysv4*MP*)
8496 if test -d /usr/nec ;then
8497 lt_prog_compiler_pic='-Kconform_pic'
8498 lt_prog_compiler_static='-Bstatic'
8502 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8503 lt_prog_compiler_wl='-Wl,'
8504 lt_prog_compiler_pic='-KPIC'
8505 lt_prog_compiler_static='-Bstatic'
8508 unicos*)
8509 lt_prog_compiler_wl='-Wl,'
8510 lt_prog_compiler_can_build_shared=no
8513 uts4*)
8514 lt_prog_compiler_pic='-pic'
8515 lt_prog_compiler_static='-Bstatic'
8519 lt_prog_compiler_can_build_shared=no
8521 esac
8524 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8525 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8528 # Check to make sure the PIC flag actually works.
8530 if test -n "$lt_prog_compiler_pic"; then
8532 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8533 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8534 if test "${lt_prog_compiler_pic_works+set}" = set; then
8535 echo $ECHO_N "(cached) $ECHO_C" >&6
8536 else
8537 lt_prog_compiler_pic_works=no
8538 ac_outfile=conftest.$ac_objext
8539 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8540 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8541 # Insert the option either (1) after the last *FLAGS variable, or
8542 # (2) before a word containing "conftest.", or (3) at the end.
8543 # Note that $ac_compile itself does not contain backslashes and begins
8544 # with a dollar sign (not a hyphen), so the echo should work correctly.
8545 # The option is referenced via a variable to avoid confusing sed.
8546 lt_compile=`echo "$ac_compile" | $SED \
8547 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8549 -e 's:$: $lt_compiler_flag:'`
8550 (eval echo "\"\$as_me:8550: $lt_compile\"" >&5)
8551 (eval "$lt_compile" 2>conftest.err)
8552 ac_status=$?
8553 cat conftest.err >&5
8554 echo "$as_me:8554: \$? = $ac_status" >&5
8555 if (exit $ac_status) && test -s "$ac_outfile"; then
8556 # The compiler can only warn and ignore the option if not recognized
8557 # So say no if there are warnings other than the usual output.
8558 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8559 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8560 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8561 lt_prog_compiler_pic_works=yes
8564 $rm conftest*
8567 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8568 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8570 if test x"$lt_prog_compiler_pic_works" = xyes; then
8571 case $lt_prog_compiler_pic in
8572 "" | " "*) ;;
8573 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8574 esac
8575 else
8576 lt_prog_compiler_pic=
8577 lt_prog_compiler_can_build_shared=no
8581 case $host_os in
8582 # For platforms which do not support PIC, -DPIC is meaningless:
8583 *djgpp*)
8584 lt_prog_compiler_pic=
8587 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8589 esac
8592 # Check to make sure the static flag actually works.
8594 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8595 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8596 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8597 if test "${lt_prog_compiler_static_works+set}" = set; then
8598 echo $ECHO_N "(cached) $ECHO_C" >&6
8599 else
8600 lt_prog_compiler_static_works=no
8601 save_LDFLAGS="$LDFLAGS"
8602 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8603 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8604 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8605 # The linker can only warn and ignore the option if not recognized
8606 # So say no if there are warnings
8607 if test -s conftest.err; then
8608 # Append any errors to the config.log.
8609 cat conftest.err 1>&5
8610 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8611 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8612 if diff conftest.exp conftest.er2 >/dev/null; then
8613 lt_prog_compiler_static_works=yes
8615 else
8616 lt_prog_compiler_static_works=yes
8619 $rm conftest*
8620 LDFLAGS="$save_LDFLAGS"
8623 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8624 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8626 if test x"$lt_prog_compiler_static_works" = xyes; then
8628 else
8629 lt_prog_compiler_static=
8633 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8634 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8635 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8636 echo $ECHO_N "(cached) $ECHO_C" >&6
8637 else
8638 lt_cv_prog_compiler_c_o=no
8639 $rm -r conftest 2>/dev/null
8640 mkdir conftest
8641 cd conftest
8642 mkdir out
8643 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8645 lt_compiler_flag="-o out/conftest2.$ac_objext"
8646 # Insert the option either (1) after the last *FLAGS variable, or
8647 # (2) before a word containing "conftest.", or (3) at the end.
8648 # Note that $ac_compile itself does not contain backslashes and begins
8649 # with a dollar sign (not a hyphen), so the echo should work correctly.
8650 lt_compile=`echo "$ac_compile" | $SED \
8651 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8652 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8653 -e 's:$: $lt_compiler_flag:'`
8654 (eval echo "\"\$as_me:8654: $lt_compile\"" >&5)
8655 (eval "$lt_compile" 2>out/conftest.err)
8656 ac_status=$?
8657 cat out/conftest.err >&5
8658 echo "$as_me:8658: \$? = $ac_status" >&5
8659 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8660 then
8661 # The compiler can only warn and ignore the option if not recognized
8662 # So say no if there are warnings
8663 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8664 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8665 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8666 lt_cv_prog_compiler_c_o=yes
8669 chmod u+w . 2>&5
8670 $rm conftest*
8671 # SGI C++ compiler will create directory out/ii_files/ for
8672 # template instantiation
8673 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8674 $rm out/* && rmdir out
8675 cd ..
8676 rmdir conftest
8677 $rm conftest*
8680 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8681 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8684 hard_links="nottested"
8685 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8686 # do not overwrite the value of need_locks provided by the user
8687 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8688 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8689 hard_links=yes
8690 $rm conftest*
8691 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8692 touch conftest.a
8693 ln conftest.a conftest.b 2>&5 || hard_links=no
8694 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8695 { echo "$as_me:$LINENO: result: $hard_links" >&5
8696 echo "${ECHO_T}$hard_links" >&6; }
8697 if test "$hard_links" = no; then
8698 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8699 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8700 need_locks=warn
8702 else
8703 need_locks=no
8706 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8707 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8709 runpath_var=
8710 allow_undefined_flag=
8711 enable_shared_with_static_runtimes=no
8712 archive_cmds=
8713 archive_expsym_cmds=
8714 old_archive_From_new_cmds=
8715 old_archive_from_expsyms_cmds=
8716 export_dynamic_flag_spec=
8717 whole_archive_flag_spec=
8718 thread_safe_flag_spec=
8719 hardcode_libdir_flag_spec=
8720 hardcode_libdir_flag_spec_ld=
8721 hardcode_libdir_separator=
8722 hardcode_direct=no
8723 hardcode_minus_L=no
8724 hardcode_shlibpath_var=unsupported
8725 link_all_deplibs=unknown
8726 hardcode_automatic=no
8727 module_cmds=
8728 module_expsym_cmds=
8729 always_export_symbols=no
8730 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8731 # include_expsyms should be a list of space-separated symbols to be *always*
8732 # included in the symbol list
8733 include_expsyms=
8734 # exclude_expsyms can be an extended regexp of symbols to exclude
8735 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8736 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8737 # as well as any symbol that contains `d'.
8738 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8739 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8740 # platforms (ab)use it in PIC code, but their linkers get confused if
8741 # the symbol is explicitly referenced. Since portable code cannot
8742 # rely on this symbol name, it's probably fine to never include it in
8743 # preloaded symbol tables.
8744 extract_expsyms_cmds=
8745 # Just being paranoid about ensuring that cc_basename is set.
8746 for cc_temp in $compiler""; do
8747 case $cc_temp in
8748 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8749 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8750 \-*) ;;
8751 *) break;;
8752 esac
8753 done
8754 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8756 case $host_os in
8757 cygwin* | mingw* | pw32*)
8758 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8759 # When not using gcc, we currently assume that we are using
8760 # Microsoft Visual C++.
8761 if test "$GCC" != yes; then
8762 with_gnu_ld=no
8765 interix*)
8766 # we just hope/assume this is gcc and not c89 (= MSVC++)
8767 with_gnu_ld=yes
8769 openbsd*)
8770 with_gnu_ld=no
8772 esac
8774 ld_shlibs=yes
8775 if test "$with_gnu_ld" = yes; then
8776 # If archive_cmds runs LD, not CC, wlarc should be empty
8777 wlarc='${wl}'
8779 # Set some defaults for GNU ld with shared library support. These
8780 # are reset later if shared libraries are not supported. Putting them
8781 # here allows them to be overridden if necessary.
8782 runpath_var=LD_RUN_PATH
8783 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8784 export_dynamic_flag_spec='${wl}--export-dynamic'
8785 # ancient GNU ld didn't support --whole-archive et. al.
8786 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8787 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8788 else
8789 whole_archive_flag_spec=
8791 supports_anon_versioning=no
8792 case `$LD -v 2>/dev/null` in
8793 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8794 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8795 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8796 *\ 2.11.*) ;; # other 2.11 versions
8797 *) supports_anon_versioning=yes ;;
8798 esac
8800 # See if GNU ld supports shared libraries.
8801 case $host_os in
8802 aix3* | aix4* | aix5*)
8803 # On AIX/PPC, the GNU linker is very broken
8804 if test "$host_cpu" != ia64; then
8805 ld_shlibs=no
8806 cat <<EOF 1>&2
8808 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8809 *** to be unable to reliably create shared libraries on AIX.
8810 *** Therefore, libtool is disabling shared libraries support. If you
8811 *** really care for shared libraries, you may want to modify your PATH
8812 *** so that a non-GNU linker is found, and then restart.
8818 amigaos*)
8819 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)'
8820 hardcode_libdir_flag_spec='-L$libdir'
8821 hardcode_minus_L=yes
8823 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8824 # that the semantics of dynamic libraries on AmigaOS, at least up
8825 # to version 4, is to share data among multiple programs linked
8826 # with the same dynamic library. Since this doesn't match the
8827 # behavior of shared libraries on other platforms, we can't use
8828 # them.
8829 ld_shlibs=no
8832 beos*)
8833 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8834 allow_undefined_flag=unsupported
8835 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8836 # support --undefined. This deserves some investigation. FIXME
8837 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8838 else
8839 ld_shlibs=no
8843 cygwin* | mingw* | pw32*)
8844 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8845 # as there is no search path for DLLs.
8846 hardcode_libdir_flag_spec='-L$libdir'
8847 allow_undefined_flag=unsupported
8848 always_export_symbols=no
8849 enable_shared_with_static_runtimes=yes
8850 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8852 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8853 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8854 # If the export-symbols file already is a .def file (1st line
8855 # is EXPORTS), use it as is; otherwise, prepend...
8856 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8857 cp $export_symbols $output_objdir/$soname.def;
8858 else
8859 echo EXPORTS > $output_objdir/$soname.def;
8860 cat $export_symbols >> $output_objdir/$soname.def;
8862 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8863 else
8864 ld_shlibs=no
8868 interix3*)
8869 hardcode_direct=no
8870 hardcode_shlibpath_var=no
8871 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8872 export_dynamic_flag_spec='${wl}-E'
8873 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8874 # Instead, shared libraries are loaded at an image base (0x10000000 by
8875 # default) and relocated if they conflict, which is a slow very memory
8876 # consuming and fragmenting process. To avoid this, we pick a random,
8877 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8878 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8879 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8880 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'
8883 linux*)
8884 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8885 tmp_addflag=
8886 case $cc_basename,$host_cpu in
8887 pgcc*) # Portland Group C compiler
8888 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'
8889 tmp_addflag=' $pic_flag'
8891 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
8894 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8895 tmp_addflag=' -i_dynamic' ;;
8896 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8897 tmp_addflag=' -i_dynamic -nofor_main' ;;
8898 ifc* | ifort*) # Intel Fortran compiler
8899 tmp_addflag=' -nofor_main' ;;
8900 esac
8901 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8903 if test $supports_anon_versioning = yes; then
8904 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8905 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8906 $echo "local: *; };" >> $output_objdir/$libname.ver~
8907 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8909 else
8910 ld_shlibs=no
8914 netbsd*)
8915 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8916 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8917 wlarc=
8918 else
8919 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8920 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8924 solaris*)
8925 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8926 ld_shlibs=no
8927 cat <<EOF 1>&2
8929 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8930 *** create shared libraries on Solaris systems. Therefore, libtool
8931 *** is disabling shared libraries support. We urge you to upgrade GNU
8932 *** binutils to release 2.9.1 or newer. Another option is to modify
8933 *** your PATH or compiler configuration so that the native linker is
8934 *** used, and then restart.
8937 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8938 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8939 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8940 else
8941 ld_shlibs=no
8945 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8946 case `$LD -v 2>&1` in
8947 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8948 ld_shlibs=no
8949 cat <<_LT_EOF 1>&2
8951 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8952 *** reliably create shared libraries on SCO systems. Therefore, libtool
8953 *** is disabling shared libraries support. We urge you to upgrade GNU
8954 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8955 *** your PATH or compiler configuration so that the native linker is
8956 *** used, and then restart.
8958 _LT_EOF
8961 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8962 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8963 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8964 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8965 else
8966 ld_shlibs=no
8969 esac
8972 sunos4*)
8973 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8974 wlarc=
8975 hardcode_direct=yes
8976 hardcode_shlibpath_var=no
8980 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8981 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8982 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8983 else
8984 ld_shlibs=no
8987 esac
8989 if test "$ld_shlibs" = no; then
8990 runpath_var=
8991 hardcode_libdir_flag_spec=
8992 export_dynamic_flag_spec=
8993 whole_archive_flag_spec=
8995 else
8996 # PORTME fill in a description of your system's linker (not GNU ld)
8997 case $host_os in
8998 aix3*)
8999 allow_undefined_flag=unsupported
9000 always_export_symbols=yes
9001 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'
9002 # Note: this linker hardcodes the directories in LIBPATH if there
9003 # are no directories specified by -L.
9004 hardcode_minus_L=yes
9005 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9006 # Neither direct hardcoding nor static linking is supported with a
9007 # broken collect2.
9008 hardcode_direct=unsupported
9012 aix4* | aix5*)
9013 if test "$host_cpu" = ia64; then
9014 # On IA64, the linker does run time linking by default, so we don't
9015 # have to do anything special.
9016 aix_use_runtimelinking=no
9017 exp_sym_flag='-Bexport'
9018 no_entry_flag=""
9019 else
9020 # If we're using GNU nm, then we don't want the "-C" option.
9021 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9022 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9023 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'
9024 else
9025 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'
9027 aix_use_runtimelinking=no
9029 # Test if we are trying to use run time linking or normal
9030 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9031 # need to do runtime linking.
9032 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9033 for ld_flag in $LDFLAGS; do
9034 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9035 aix_use_runtimelinking=yes
9036 break
9038 done
9040 esac
9042 exp_sym_flag='-bexport'
9043 no_entry_flag='-bnoentry'
9046 # When large executables or shared objects are built, AIX ld can
9047 # have problems creating the table of contents. If linking a library
9048 # or program results in "error TOC overflow" add -mminimal-toc to
9049 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9050 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9052 archive_cmds=''
9053 hardcode_direct=yes
9054 hardcode_libdir_separator=':'
9055 link_all_deplibs=yes
9057 if test "$GCC" = yes; then
9058 case $host_os in aix4.[012]|aix4.[012].*)
9059 # We only want to do this on AIX 4.2 and lower, the check
9060 # below for broken collect2 doesn't work under 4.3+
9061 collect2name=`${CC} -print-prog-name=collect2`
9062 if test -f "$collect2name" && \
9063 strings "$collect2name" | grep resolve_lib_name >/dev/null
9064 then
9065 # We have reworked collect2
9066 hardcode_direct=yes
9067 else
9068 # We have old collect2
9069 hardcode_direct=unsupported
9070 # It fails to find uninstalled libraries when the uninstalled
9071 # path is not listed in the libpath. Setting hardcode_minus_L
9072 # to unsupported forces relinking
9073 hardcode_minus_L=yes
9074 hardcode_libdir_flag_spec='-L$libdir'
9075 hardcode_libdir_separator=
9078 esac
9079 shared_flag='-shared'
9080 if test "$aix_use_runtimelinking" = yes; then
9081 shared_flag="$shared_flag "'${wl}-G'
9083 else
9084 # not using gcc
9085 if test "$host_cpu" = ia64; then
9086 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9087 # chokes on -Wl,-G. The following line is correct:
9088 shared_flag='-G'
9089 else
9090 if test "$aix_use_runtimelinking" = yes; then
9091 shared_flag='${wl}-G'
9092 else
9093 shared_flag='${wl}-bM:SRE'
9098 # It seems that -bexpall does not export symbols beginning with
9099 # underscore (_), so it is better to generate a list of symbols to export.
9100 always_export_symbols=yes
9101 if test "$aix_use_runtimelinking" = yes; then
9102 # Warning - without using the other runtime loading flags (-brtl),
9103 # -berok will link without error, but may produce a broken library.
9104 allow_undefined_flag='-berok'
9105 # Determine the default libpath from the value encoded in an empty executable.
9106 cat >conftest.$ac_ext <<_ACEOF
9107 /* confdefs.h. */
9108 _ACEOF
9109 cat confdefs.h >>conftest.$ac_ext
9110 cat >>conftest.$ac_ext <<_ACEOF
9111 /* end confdefs.h. */
9114 main ()
9118 return 0;
9120 _ACEOF
9121 rm -f conftest.$ac_objext conftest$ac_exeext
9122 if { (ac_try="$ac_link"
9123 case "(($ac_try" in
9124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9125 *) ac_try_echo=$ac_try;;
9126 esac
9127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9128 (eval "$ac_link") 2>conftest.er1
9129 ac_status=$?
9130 grep -v '^ *+' conftest.er1 >conftest.err
9131 rm -f conftest.er1
9132 cat conftest.err >&5
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); } && {
9135 test -z "$ac_c_werror_flag" ||
9136 test ! -s conftest.err
9137 } && test -s conftest$ac_exeext &&
9138 $as_test_x conftest$ac_exeext; then
9140 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9142 # Check for a 64-bit object if we didn't find anything.
9143 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9144 }'`; fi
9145 else
9146 echo "$as_me: failed program was:" >&5
9147 sed 's/^/| /' conftest.$ac_ext >&5
9152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9153 conftest$ac_exeext conftest.$ac_ext
9154 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9156 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9157 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9158 else
9159 if test "$host_cpu" = ia64; then
9160 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9161 allow_undefined_flag="-z nodefs"
9162 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"
9163 else
9164 # Determine the default libpath from the value encoded in an empty executable.
9165 cat >conftest.$ac_ext <<_ACEOF
9166 /* confdefs.h. */
9167 _ACEOF
9168 cat confdefs.h >>conftest.$ac_ext
9169 cat >>conftest.$ac_ext <<_ACEOF
9170 /* end confdefs.h. */
9173 main ()
9177 return 0;
9179 _ACEOF
9180 rm -f conftest.$ac_objext conftest$ac_exeext
9181 if { (ac_try="$ac_link"
9182 case "(($ac_try" in
9183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9184 *) ac_try_echo=$ac_try;;
9185 esac
9186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9187 (eval "$ac_link") 2>conftest.er1
9188 ac_status=$?
9189 grep -v '^ *+' conftest.er1 >conftest.err
9190 rm -f conftest.er1
9191 cat conftest.err >&5
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); } && {
9194 test -z "$ac_c_werror_flag" ||
9195 test ! -s conftest.err
9196 } && test -s conftest$ac_exeext &&
9197 $as_test_x conftest$ac_exeext; then
9199 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9201 # Check for a 64-bit object if we didn't find anything.
9202 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9203 }'`; fi
9204 else
9205 echo "$as_me: failed program was:" >&5
9206 sed 's/^/| /' conftest.$ac_ext >&5
9211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9212 conftest$ac_exeext conftest.$ac_ext
9213 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9215 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9216 # Warning - without using the other run time loading flags,
9217 # -berok will link without error, but may produce a broken library.
9218 no_undefined_flag=' ${wl}-bernotok'
9219 allow_undefined_flag=' ${wl}-berok'
9220 # Exported symbols can be pulled into shared objects from archives
9221 whole_archive_flag_spec='$convenience'
9222 archive_cmds_need_lc=yes
9223 # This is similar to how AIX traditionally builds its shared libraries.
9224 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'
9229 amigaos*)
9230 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)'
9231 hardcode_libdir_flag_spec='-L$libdir'
9232 hardcode_minus_L=yes
9233 # see comment about different semantics on the GNU ld section
9234 ld_shlibs=no
9237 bsdi[45]*)
9238 export_dynamic_flag_spec=-rdynamic
9241 cygwin* | mingw* | pw32*)
9242 # When not using gcc, we currently assume that we are using
9243 # Microsoft Visual C++.
9244 # hardcode_libdir_flag_spec is actually meaningless, as there is
9245 # no search path for DLLs.
9246 hardcode_libdir_flag_spec=' '
9247 allow_undefined_flag=unsupported
9248 # Tell ltmain to make .lib files, not .a files.
9249 libext=lib
9250 # Tell ltmain to make .dll files, not .so files.
9251 shrext_cmds=".dll"
9252 # FIXME: Setting linknames here is a bad hack.
9253 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9254 # The linker will automatically build a .lib file if we build a DLL.
9255 old_archive_From_new_cmds='true'
9256 # FIXME: Should let the user specify the lib program.
9257 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9258 fix_srcfile_path='`cygpath -w "$srcfile"`'
9259 enable_shared_with_static_runtimes=yes
9262 darwin* | rhapsody*)
9263 case $host_os in
9264 rhapsody* | darwin1.[012])
9265 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9267 *) # Darwin 1.3 on
9268 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9269 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9270 else
9271 case ${MACOSX_DEPLOYMENT_TARGET} in
9272 10.[012])
9273 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9275 10.*)
9276 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9278 esac
9281 esac
9282 archive_cmds_need_lc=no
9283 hardcode_direct=no
9284 hardcode_automatic=yes
9285 hardcode_shlibpath_var=unsupported
9286 whole_archive_flag_spec=''
9287 link_all_deplibs=yes
9288 if test "$GCC" = yes ; then
9289 output_verbose_link_cmd='echo'
9290 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9291 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9292 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9293 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9294 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9295 else
9296 case $cc_basename in
9297 xlc*)
9298 output_verbose_link_cmd='echo'
9299 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9300 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9301 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9302 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9303 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9306 ld_shlibs=no
9308 esac
9312 dgux*)
9313 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9314 hardcode_libdir_flag_spec='-L$libdir'
9315 hardcode_shlibpath_var=no
9318 freebsd1*)
9319 ld_shlibs=no
9322 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9323 # support. Future versions do this automatically, but an explicit c++rt0.o
9324 # does not break anything, and helps significantly (at the cost of a little
9325 # extra space).
9326 freebsd2.2*)
9327 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9328 hardcode_libdir_flag_spec='-R$libdir'
9329 hardcode_direct=yes
9330 hardcode_shlibpath_var=no
9333 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9334 freebsd2*)
9335 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9336 hardcode_direct=yes
9337 hardcode_minus_L=yes
9338 hardcode_shlibpath_var=no
9341 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9342 freebsd* | kfreebsd*-gnu | dragonfly*)
9343 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9344 hardcode_libdir_flag_spec='-R$libdir'
9345 hardcode_direct=yes
9346 hardcode_shlibpath_var=no
9349 hpux9*)
9350 if test "$GCC" = yes; then
9351 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'
9352 else
9353 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'
9355 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9356 hardcode_libdir_separator=:
9357 hardcode_direct=yes
9359 # hardcode_minus_L: Not really in the search PATH,
9360 # but as the default location of the library.
9361 hardcode_minus_L=yes
9362 export_dynamic_flag_spec='${wl}-E'
9365 hpux10*)
9366 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9367 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9368 else
9369 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9371 if test "$with_gnu_ld" = no; then
9372 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9373 hardcode_libdir_separator=:
9375 hardcode_direct=yes
9376 export_dynamic_flag_spec='${wl}-E'
9378 # hardcode_minus_L: Not really in the search PATH,
9379 # but as the default location of the library.
9380 hardcode_minus_L=yes
9384 hpux11*)
9385 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9386 case $host_cpu in
9387 hppa*64*)
9388 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9390 ia64*)
9391 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9394 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9396 esac
9397 else
9398 case $host_cpu in
9399 hppa*64*)
9400 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9402 ia64*)
9403 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9406 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9408 esac
9410 if test "$with_gnu_ld" = no; then
9411 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9412 hardcode_libdir_separator=:
9414 case $host_cpu in
9415 hppa*64*|ia64*)
9416 hardcode_libdir_flag_spec_ld='+b $libdir'
9417 hardcode_direct=no
9418 hardcode_shlibpath_var=no
9421 hardcode_direct=yes
9422 export_dynamic_flag_spec='${wl}-E'
9424 # hardcode_minus_L: Not really in the search PATH,
9425 # but as the default location of the library.
9426 hardcode_minus_L=yes
9428 esac
9432 irix5* | irix6* | nonstopux*)
9433 if test "$GCC" = yes; then
9434 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9435 else
9436 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9437 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9439 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9440 hardcode_libdir_separator=:
9441 link_all_deplibs=yes
9444 netbsd*)
9445 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9446 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9447 else
9448 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9450 hardcode_libdir_flag_spec='-R$libdir'
9451 hardcode_direct=yes
9452 hardcode_shlibpath_var=no
9455 newsos6)
9456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9457 hardcode_direct=yes
9458 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9459 hardcode_libdir_separator=:
9460 hardcode_shlibpath_var=no
9463 openbsd*)
9464 hardcode_direct=yes
9465 hardcode_shlibpath_var=no
9466 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9467 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9468 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9469 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9470 export_dynamic_flag_spec='${wl}-E'
9471 else
9472 case $host_os in
9473 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9474 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9475 hardcode_libdir_flag_spec='-R$libdir'
9478 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9479 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9481 esac
9485 os2*)
9486 hardcode_libdir_flag_spec='-L$libdir'
9487 hardcode_minus_L=yes
9488 allow_undefined_flag=unsupported
9489 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'
9490 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9493 osf3*)
9494 if test "$GCC" = yes; then
9495 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9496 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9497 else
9498 allow_undefined_flag=' -expect_unresolved \*'
9499 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9501 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9502 hardcode_libdir_separator=:
9505 osf4* | osf5*) # as osf3* with the addition of -msym flag
9506 if test "$GCC" = yes; then
9507 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9508 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9509 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9510 else
9511 allow_undefined_flag=' -expect_unresolved \*'
9512 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9513 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9514 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
9516 # Both c and cxx compiler support -rpath directly
9517 hardcode_libdir_flag_spec='-rpath $libdir'
9519 hardcode_libdir_separator=:
9522 solaris*)
9523 no_undefined_flag=' -z text'
9524 if test "$GCC" = yes; then
9525 wlarc='${wl}'
9526 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9527 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9528 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9529 else
9530 wlarc=''
9531 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9532 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9533 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9535 hardcode_libdir_flag_spec='-R$libdir'
9536 hardcode_shlibpath_var=no
9537 case $host_os in
9538 solaris2.[0-5] | solaris2.[0-5].*) ;;
9540 # The compiler driver will combine linker options so we
9541 # cannot just pass the convience library names through
9542 # without $wl, iff we do not link with $LD.
9543 # Luckily, gcc supports the same syntax we need for Sun Studio.
9544 # Supported since Solaris 2.6 (maybe 2.5.1?)
9545 case $wlarc in
9547 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9549 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9550 esac ;;
9551 esac
9552 link_all_deplibs=yes
9555 sunos4*)
9556 if test "x$host_vendor" = xsequent; then
9557 # Use $CC to link under sequent, because it throws in some extra .o
9558 # files that make .init and .fini sections work.
9559 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9560 else
9561 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9563 hardcode_libdir_flag_spec='-L$libdir'
9564 hardcode_direct=yes
9565 hardcode_minus_L=yes
9566 hardcode_shlibpath_var=no
9569 sysv4)
9570 case $host_vendor in
9571 sni)
9572 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9573 hardcode_direct=yes # is this really true???
9575 siemens)
9576 ## LD is ld it makes a PLAMLIB
9577 ## CC just makes a GrossModule.
9578 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9579 reload_cmds='$CC -r -o $output$reload_objs'
9580 hardcode_direct=no
9582 motorola)
9583 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9584 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9586 esac
9587 runpath_var='LD_RUN_PATH'
9588 hardcode_shlibpath_var=no
9591 sysv4.3*)
9592 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9593 hardcode_shlibpath_var=no
9594 export_dynamic_flag_spec='-Bexport'
9597 sysv4*MP*)
9598 if test -d /usr/nec; then
9599 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9600 hardcode_shlibpath_var=no
9601 runpath_var=LD_RUN_PATH
9602 hardcode_runpath_var=yes
9603 ld_shlibs=yes
9607 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9608 no_undefined_flag='${wl}-z,text'
9609 archive_cmds_need_lc=no
9610 hardcode_shlibpath_var=no
9611 runpath_var='LD_RUN_PATH'
9613 if test "$GCC" = yes; then
9614 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9615 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9616 else
9617 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9618 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9622 sysv5* | sco3.2v5* | sco5v6*)
9623 # Note: We can NOT use -z defs as we might desire, because we do not
9624 # link with -lc, and that would cause any symbols used from libc to
9625 # always be unresolved, which means just about no library would
9626 # ever link correctly. If we're not using GNU ld we use -z text
9627 # though, which does catch some bad symbols but isn't as heavy-handed
9628 # as -z defs.
9629 no_undefined_flag='${wl}-z,text'
9630 allow_undefined_flag='${wl}-z,nodefs'
9631 archive_cmds_need_lc=no
9632 hardcode_shlibpath_var=no
9633 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9634 hardcode_libdir_separator=':'
9635 link_all_deplibs=yes
9636 export_dynamic_flag_spec='${wl}-Bexport'
9637 runpath_var='LD_RUN_PATH'
9639 if test "$GCC" = yes; then
9640 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9641 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9642 else
9643 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9644 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9648 uts4*)
9649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9650 hardcode_libdir_flag_spec='-L$libdir'
9651 hardcode_shlibpath_var=no
9655 ld_shlibs=no
9657 esac
9660 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9661 echo "${ECHO_T}$ld_shlibs" >&6; }
9662 test "$ld_shlibs" = no && can_build_shared=no
9665 # Do we need to explicitly link libc?
9667 case "x$archive_cmds_need_lc" in
9668 x|xyes)
9669 # Assume -lc should be added
9670 archive_cmds_need_lc=yes
9672 if test "$enable_shared" = yes && test "$GCC" = yes; then
9673 case $archive_cmds in
9674 *'~'*)
9675 # FIXME: we may have to deal with multi-command sequences.
9677 '$CC '*)
9678 # Test whether the compiler implicitly links with -lc since on some
9679 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9680 # to ld, don't add -lc before -lgcc.
9681 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9682 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9683 $rm conftest*
9684 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9687 (eval $ac_compile) 2>&5
9688 ac_status=$?
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); } 2>conftest.err; then
9691 soname=conftest
9692 lib=conftest
9693 libobjs=conftest.$ac_objext
9694 deplibs=
9695 wl=$lt_prog_compiler_wl
9696 pic_flag=$lt_prog_compiler_pic
9697 compiler_flags=-v
9698 linker_flags=-v
9699 verstring=
9700 output_objdir=.
9701 libname=conftest
9702 lt_save_allow_undefined_flag=$allow_undefined_flag
9703 allow_undefined_flag=
9704 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9705 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9706 ac_status=$?
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); }
9709 then
9710 archive_cmds_need_lc=no
9711 else
9712 archive_cmds_need_lc=yes
9714 allow_undefined_flag=$lt_save_allow_undefined_flag
9715 else
9716 cat conftest.err 1>&5
9718 $rm conftest*
9719 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9720 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9722 esac
9725 esac
9727 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9728 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9729 library_names_spec=
9730 libname_spec='lib$name'
9731 soname_spec=
9732 shrext_cmds=".so"
9733 postinstall_cmds=
9734 postuninstall_cmds=
9735 finish_cmds=
9736 finish_eval=
9737 shlibpath_var=
9738 shlibpath_overrides_runpath=unknown
9739 version_type=none
9740 dynamic_linker="$host_os ld.so"
9741 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9742 if test "$GCC" = yes; then
9743 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9744 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9745 # if the path contains ";" then we assume it to be the separator
9746 # otherwise default to the standard path separator (i.e. ":") - it is
9747 # assumed that no part of a normal pathname contains ";" but that should
9748 # okay in the real world where ";" in dirpaths is itself problematic.
9749 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9750 else
9751 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9753 else
9754 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9756 need_lib_prefix=unknown
9757 hardcode_into_libs=no
9759 # when you set need_version to no, make sure it does not cause -set_version
9760 # flags to be left without arguments
9761 need_version=unknown
9763 case $host_os in
9764 aix3*)
9765 version_type=linux
9766 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9767 shlibpath_var=LIBPATH
9769 # AIX 3 has no versioning support, so we append a major version to the name.
9770 soname_spec='${libname}${release}${shared_ext}$major'
9773 aix4* | aix5*)
9774 version_type=linux
9775 need_lib_prefix=no
9776 need_version=no
9777 hardcode_into_libs=yes
9778 if test "$host_cpu" = ia64; then
9779 # AIX 5 supports IA64
9780 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9781 shlibpath_var=LD_LIBRARY_PATH
9782 else
9783 # With GCC up to 2.95.x, collect2 would create an import file
9784 # for dependence libraries. The import file would start with
9785 # the line `#! .'. This would cause the generated library to
9786 # depend on `.', always an invalid library. This was fixed in
9787 # development snapshots of GCC prior to 3.0.
9788 case $host_os in
9789 aix4 | aix4.[01] | aix4.[01].*)
9790 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9791 echo ' yes '
9792 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9794 else
9795 can_build_shared=no
9798 esac
9799 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9800 # soname into executable. Probably we can add versioning support to
9801 # collect2, so additional links can be useful in future.
9802 if test "$aix_use_runtimelinking" = yes; then
9803 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9804 # instead of lib<name>.a to let people know that these are not
9805 # typical AIX shared libraries.
9806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9807 else
9808 # We preserve .a as extension for shared libraries through AIX4.2
9809 # and later when we are not doing run time linking.
9810 library_names_spec='${libname}${release}.a $libname.a'
9811 soname_spec='${libname}${release}${shared_ext}$major'
9813 shlibpath_var=LIBPATH
9817 amigaos*)
9818 library_names_spec='$libname.ixlibrary $libname.a'
9819 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9820 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'
9823 beos*)
9824 library_names_spec='${libname}${shared_ext}'
9825 dynamic_linker="$host_os ld.so"
9826 shlibpath_var=LIBRARY_PATH
9829 bsdi[45]*)
9830 version_type=linux
9831 need_version=no
9832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9833 soname_spec='${libname}${release}${shared_ext}$major'
9834 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9835 shlibpath_var=LD_LIBRARY_PATH
9836 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9837 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9838 # the default ld.so.conf also contains /usr/contrib/lib and
9839 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9840 # libtool to hard-code these into programs
9843 cygwin* | mingw* | pw32*)
9844 version_type=windows
9845 shrext_cmds=".dll"
9846 need_version=no
9847 need_lib_prefix=no
9849 case $GCC,$host_os in
9850 yes,cygwin* | yes,mingw* | yes,pw32*)
9851 library_names_spec='$libname.dll.a'
9852 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9853 postinstall_cmds='base_file=`basename \${file}`~
9854 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9855 dldir=$destdir/`dirname \$dlpath`~
9856 test -d \$dldir || mkdir -p \$dldir~
9857 $install_prog $dir/$dlname \$dldir/$dlname~
9858 chmod a+x \$dldir/$dlname'
9859 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9860 dlpath=$dir/\$dldll~
9861 $rm \$dlpath'
9862 shlibpath_overrides_runpath=yes
9864 case $host_os in
9865 cygwin*)
9866 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9867 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9868 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9870 mingw*)
9871 # MinGW DLLs use traditional 'lib' prefix
9872 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9873 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9874 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9875 # It is most probably a Windows format PATH printed by
9876 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9877 # path with ; separators, and with drive letters. We can handle the
9878 # drive letters (cygwin fileutils understands them), so leave them,
9879 # especially as we might pass files found there to a mingw objdump,
9880 # which wouldn't understand a cygwinified path. Ahh.
9881 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9882 else
9883 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9886 pw32*)
9887 # pw32 DLLs use 'pw' prefix rather than 'lib'
9888 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9890 esac
9894 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9896 esac
9897 dynamic_linker='Win32 ld.exe'
9898 # FIXME: first we should search . and the directory the executable is in
9899 shlibpath_var=PATH
9902 darwin* | rhapsody*)
9903 dynamic_linker="$host_os dyld"
9904 version_type=darwin
9905 need_lib_prefix=no
9906 need_version=no
9907 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9908 soname_spec='${libname}${release}${major}$shared_ext'
9909 shlibpath_overrides_runpath=yes
9910 shlibpath_var=DYLD_LIBRARY_PATH
9911 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9912 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9913 if test "$GCC" = yes; then
9914 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9915 else
9916 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9918 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9921 dgux*)
9922 version_type=linux
9923 need_lib_prefix=no
9924 need_version=no
9925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9926 soname_spec='${libname}${release}${shared_ext}$major'
9927 shlibpath_var=LD_LIBRARY_PATH
9930 freebsd1*)
9931 dynamic_linker=no
9934 kfreebsd*-gnu)
9935 version_type=linux
9936 need_lib_prefix=no
9937 need_version=no
9938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9939 soname_spec='${libname}${release}${shared_ext}$major'
9940 shlibpath_var=LD_LIBRARY_PATH
9941 shlibpath_overrides_runpath=no
9942 hardcode_into_libs=yes
9943 dynamic_linker='GNU ld.so'
9946 freebsd* | dragonfly*)
9947 # DragonFly does not have aout. When/if they implement a new
9948 # versioning mechanism, adjust this.
9949 if test -x /usr/bin/objformat; then
9950 objformat=`/usr/bin/objformat`
9951 else
9952 case $host_os in
9953 freebsd[123]*) objformat=aout ;;
9954 *) objformat=elf ;;
9955 esac
9957 version_type=freebsd-$objformat
9958 case $version_type in
9959 freebsd-elf*)
9960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9961 need_version=no
9962 need_lib_prefix=no
9964 freebsd-*)
9965 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9966 need_version=yes
9968 esac
9969 shlibpath_var=LD_LIBRARY_PATH
9970 case $host_os in
9971 freebsd2*)
9972 shlibpath_overrides_runpath=yes
9974 freebsd3.[01]* | freebsdelf3.[01]*)
9975 shlibpath_overrides_runpath=yes
9976 hardcode_into_libs=yes
9978 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9979 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9980 shlibpath_overrides_runpath=no
9981 hardcode_into_libs=yes
9983 freebsd*) # from 4.6 on
9984 shlibpath_overrides_runpath=yes
9985 hardcode_into_libs=yes
9987 esac
9990 gnu*)
9991 version_type=linux
9992 need_lib_prefix=no
9993 need_version=no
9994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9995 soname_spec='${libname}${release}${shared_ext}$major'
9996 shlibpath_var=LD_LIBRARY_PATH
9997 hardcode_into_libs=yes
10000 hpux9* | hpux10* | hpux11*)
10001 # Give a soname corresponding to the major version so that dld.sl refuses to
10002 # link against other versions.
10003 version_type=sunos
10004 need_lib_prefix=no
10005 need_version=no
10006 case $host_cpu in
10007 ia64*)
10008 shrext_cmds='.so'
10009 hardcode_into_libs=yes
10010 dynamic_linker="$host_os dld.so"
10011 shlibpath_var=LD_LIBRARY_PATH
10012 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10014 soname_spec='${libname}${release}${shared_ext}$major'
10015 if test "X$HPUX_IA64_MODE" = X32; then
10016 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10017 else
10018 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10020 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10022 hppa*64*)
10023 shrext_cmds='.sl'
10024 hardcode_into_libs=yes
10025 dynamic_linker="$host_os dld.sl"
10026 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10027 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10029 soname_spec='${libname}${release}${shared_ext}$major'
10030 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10031 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10034 shrext_cmds='.sl'
10035 dynamic_linker="$host_os dld.sl"
10036 shlibpath_var=SHLIB_PATH
10037 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10039 soname_spec='${libname}${release}${shared_ext}$major'
10041 esac
10042 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10043 postinstall_cmds='chmod 555 $lib'
10046 interix3*)
10047 version_type=linux
10048 need_lib_prefix=no
10049 need_version=no
10050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10051 soname_spec='${libname}${release}${shared_ext}$major'
10052 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10053 shlibpath_var=LD_LIBRARY_PATH
10054 shlibpath_overrides_runpath=no
10055 hardcode_into_libs=yes
10058 irix5* | irix6* | nonstopux*)
10059 case $host_os in
10060 nonstopux*) version_type=nonstopux ;;
10062 if test "$lt_cv_prog_gnu_ld" = yes; then
10063 version_type=linux
10064 else
10065 version_type=irix
10066 fi ;;
10067 esac
10068 need_lib_prefix=no
10069 need_version=no
10070 soname_spec='${libname}${release}${shared_ext}$major'
10071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10072 case $host_os in
10073 irix5* | nonstopux*)
10074 libsuff= shlibsuff=
10077 case $LD in # libtool.m4 will add one of these switches to LD
10078 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10079 libsuff= shlibsuff= libmagic=32-bit;;
10080 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10081 libsuff=32 shlibsuff=N32 libmagic=N32;;
10082 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10083 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10084 *) libsuff= shlibsuff= libmagic=never-match;;
10085 esac
10087 esac
10088 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10089 shlibpath_overrides_runpath=no
10090 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10091 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10092 hardcode_into_libs=yes
10095 # No shared lib support for Linux oldld, aout, or coff.
10096 linux*oldld* | linux*aout* | linux*coff*)
10097 dynamic_linker=no
10100 # This must be Linux ELF.
10101 linux*)
10102 version_type=linux
10103 need_lib_prefix=no
10104 need_version=no
10105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10106 soname_spec='${libname}${release}${shared_ext}$major'
10107 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10108 shlibpath_var=LD_LIBRARY_PATH
10109 shlibpath_overrides_runpath=no
10110 # This implies no fast_install, which is unacceptable.
10111 # Some rework will be needed to allow for fast_install
10112 # before this can be enabled.
10113 hardcode_into_libs=yes
10115 # Append ld.so.conf contents to the search path
10116 if test -f /etc/ld.so.conf; then
10117 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10118 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10121 # We used to test for /lib/ld.so.1 and disable shared libraries on
10122 # powerpc, because MkLinux only supported shared libraries with the
10123 # GNU dynamic linker. Since this was broken with cross compilers,
10124 # most powerpc-linux boxes support dynamic linking these days and
10125 # people can always --disable-shared, the test was removed, and we
10126 # assume the GNU/Linux dynamic linker is in use.
10127 dynamic_linker='GNU/Linux ld.so'
10130 knetbsd*-gnu)
10131 version_type=linux
10132 need_lib_prefix=no
10133 need_version=no
10134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10135 soname_spec='${libname}${release}${shared_ext}$major'
10136 shlibpath_var=LD_LIBRARY_PATH
10137 shlibpath_overrides_runpath=no
10138 hardcode_into_libs=yes
10139 dynamic_linker='GNU ld.so'
10142 netbsd*)
10143 version_type=sunos
10144 need_lib_prefix=no
10145 need_version=no
10146 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10148 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10149 dynamic_linker='NetBSD (a.out) ld.so'
10150 else
10151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10152 soname_spec='${libname}${release}${shared_ext}$major'
10153 dynamic_linker='NetBSD ld.elf_so'
10155 shlibpath_var=LD_LIBRARY_PATH
10156 shlibpath_overrides_runpath=yes
10157 hardcode_into_libs=yes
10160 newsos6)
10161 version_type=linux
10162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10163 shlibpath_var=LD_LIBRARY_PATH
10164 shlibpath_overrides_runpath=yes
10167 nto-qnx*)
10168 version_type=linux
10169 need_lib_prefix=no
10170 need_version=no
10171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10172 soname_spec='${libname}${release}${shared_ext}$major'
10173 shlibpath_var=LD_LIBRARY_PATH
10174 shlibpath_overrides_runpath=yes
10177 openbsd*)
10178 version_type=sunos
10179 sys_lib_dlsearch_path_spec="/usr/lib"
10180 need_lib_prefix=no
10181 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10182 case $host_os in
10183 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10184 *) need_version=no ;;
10185 esac
10186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10187 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10188 shlibpath_var=LD_LIBRARY_PATH
10189 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10190 case $host_os in
10191 openbsd2.[89] | openbsd2.[89].*)
10192 shlibpath_overrides_runpath=no
10195 shlibpath_overrides_runpath=yes
10197 esac
10198 else
10199 shlibpath_overrides_runpath=yes
10203 os2*)
10204 libname_spec='$name'
10205 shrext_cmds=".dll"
10206 need_lib_prefix=no
10207 library_names_spec='$libname${shared_ext} $libname.a'
10208 dynamic_linker='OS/2 ld.exe'
10209 shlibpath_var=LIBPATH
10212 osf3* | osf4* | osf5*)
10213 version_type=osf
10214 need_lib_prefix=no
10215 need_version=no
10216 soname_spec='${libname}${release}${shared_ext}$major'
10217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10218 shlibpath_var=LD_LIBRARY_PATH
10219 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10220 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10223 solaris*)
10224 version_type=linux
10225 need_lib_prefix=no
10226 need_version=no
10227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10228 soname_spec='${libname}${release}${shared_ext}$major'
10229 shlibpath_var=LD_LIBRARY_PATH
10230 shlibpath_overrides_runpath=yes
10231 hardcode_into_libs=yes
10232 # ldd complains unless libraries are executable
10233 postinstall_cmds='chmod +x $lib'
10236 sunos4*)
10237 version_type=sunos
10238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10239 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10240 shlibpath_var=LD_LIBRARY_PATH
10241 shlibpath_overrides_runpath=yes
10242 if test "$with_gnu_ld" = yes; then
10243 need_lib_prefix=no
10245 need_version=yes
10248 sysv4 | sysv4.3*)
10249 version_type=linux
10250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10251 soname_spec='${libname}${release}${shared_ext}$major'
10252 shlibpath_var=LD_LIBRARY_PATH
10253 case $host_vendor in
10254 sni)
10255 shlibpath_overrides_runpath=no
10256 need_lib_prefix=no
10257 export_dynamic_flag_spec='${wl}-Blargedynsym'
10258 runpath_var=LD_RUN_PATH
10260 siemens)
10261 need_lib_prefix=no
10263 motorola)
10264 need_lib_prefix=no
10265 need_version=no
10266 shlibpath_overrides_runpath=no
10267 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10269 esac
10272 sysv4*MP*)
10273 if test -d /usr/nec ;then
10274 version_type=linux
10275 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10276 soname_spec='$libname${shared_ext}.$major'
10277 shlibpath_var=LD_LIBRARY_PATH
10281 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10282 version_type=freebsd-elf
10283 need_lib_prefix=no
10284 need_version=no
10285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10286 soname_spec='${libname}${release}${shared_ext}$major'
10287 shlibpath_var=LD_LIBRARY_PATH
10288 hardcode_into_libs=yes
10289 if test "$with_gnu_ld" = yes; then
10290 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10291 shlibpath_overrides_runpath=no
10292 else
10293 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10294 shlibpath_overrides_runpath=yes
10295 case $host_os in
10296 sco3.2v5*)
10297 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10299 esac
10301 sys_lib_dlsearch_path_spec='/usr/lib'
10304 uts4*)
10305 version_type=linux
10306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10307 soname_spec='${libname}${release}${shared_ext}$major'
10308 shlibpath_var=LD_LIBRARY_PATH
10312 dynamic_linker=no
10314 esac
10315 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10316 echo "${ECHO_T}$dynamic_linker" >&6; }
10317 test "$dynamic_linker" = no && can_build_shared=no
10319 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10320 if test "$GCC" = yes; then
10321 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10324 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10325 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10326 hardcode_action=
10327 if test -n "$hardcode_libdir_flag_spec" || \
10328 test -n "$runpath_var" || \
10329 test "X$hardcode_automatic" = "Xyes" ; then
10331 # We can hardcode non-existant directories.
10332 if test "$hardcode_direct" != no &&
10333 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10334 # have to relink, otherwise we might link with an installed library
10335 # when we should be linking with a yet-to-be-installed one
10336 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10337 test "$hardcode_minus_L" != no; then
10338 # Linking always hardcodes the temporary library directory.
10339 hardcode_action=relink
10340 else
10341 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10342 hardcode_action=immediate
10344 else
10345 # We cannot hardcode anything, or else we can only hardcode existing
10346 # directories.
10347 hardcode_action=unsupported
10349 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10350 echo "${ECHO_T}$hardcode_action" >&6; }
10352 if test "$hardcode_action" = relink; then
10353 # Fast installation is not supported
10354 enable_fast_install=no
10355 elif test "$shlibpath_overrides_runpath" = yes ||
10356 test "$enable_shared" = no; then
10357 # Fast installation is not necessary
10358 enable_fast_install=needless
10361 striplib=
10362 old_striplib=
10363 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10364 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10365 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10366 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10367 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10368 { echo "$as_me:$LINENO: result: yes" >&5
10369 echo "${ECHO_T}yes" >&6; }
10370 else
10371 # FIXME - insert some real tests, host_os isn't really good enough
10372 case $host_os in
10373 darwin*)
10374 if test -n "$STRIP" ; then
10375 striplib="$STRIP -x"
10376 { echo "$as_me:$LINENO: result: yes" >&5
10377 echo "${ECHO_T}yes" >&6; }
10378 else
10379 { echo "$as_me:$LINENO: result: no" >&5
10380 echo "${ECHO_T}no" >&6; }
10384 { echo "$as_me:$LINENO: result: no" >&5
10385 echo "${ECHO_T}no" >&6; }
10387 esac
10390 if test "x$enable_dlopen" != xyes; then
10391 enable_dlopen=unknown
10392 enable_dlopen_self=unknown
10393 enable_dlopen_self_static=unknown
10394 else
10395 lt_cv_dlopen=no
10396 lt_cv_dlopen_libs=
10398 case $host_os in
10399 beos*)
10400 lt_cv_dlopen="load_add_on"
10401 lt_cv_dlopen_libs=
10402 lt_cv_dlopen_self=yes
10405 mingw* | pw32*)
10406 lt_cv_dlopen="LoadLibrary"
10407 lt_cv_dlopen_libs=
10410 cygwin*)
10411 lt_cv_dlopen="dlopen"
10412 lt_cv_dlopen_libs=
10415 darwin*)
10416 # if libdl is installed we need to link against it
10417 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10418 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10419 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10420 echo $ECHO_N "(cached) $ECHO_C" >&6
10421 else
10422 ac_check_lib_save_LIBS=$LIBS
10423 LIBS="-ldl $LIBS"
10424 cat >conftest.$ac_ext <<_ACEOF
10425 /* confdefs.h. */
10426 _ACEOF
10427 cat confdefs.h >>conftest.$ac_ext
10428 cat >>conftest.$ac_ext <<_ACEOF
10429 /* end confdefs.h. */
10431 /* Override any GCC internal prototype to avoid an error.
10432 Use char because int might match the return type of a GCC
10433 builtin and then its argument prototype would still apply. */
10434 #ifdef __cplusplus
10435 extern "C"
10436 #endif
10437 char dlopen ();
10439 main ()
10441 return dlopen ();
10443 return 0;
10445 _ACEOF
10446 rm -f conftest.$ac_objext conftest$ac_exeext
10447 if { (ac_try="$ac_link"
10448 case "(($ac_try" in
10449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10450 *) ac_try_echo=$ac_try;;
10451 esac
10452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10453 (eval "$ac_link") 2>conftest.er1
10454 ac_status=$?
10455 grep -v '^ *+' conftest.er1 >conftest.err
10456 rm -f conftest.er1
10457 cat conftest.err >&5
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); } && {
10460 test -z "$ac_c_werror_flag" ||
10461 test ! -s conftest.err
10462 } && test -s conftest$ac_exeext &&
10463 $as_test_x conftest$ac_exeext; then
10464 ac_cv_lib_dl_dlopen=yes
10465 else
10466 echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10469 ac_cv_lib_dl_dlopen=no
10472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10473 conftest$ac_exeext conftest.$ac_ext
10474 LIBS=$ac_check_lib_save_LIBS
10476 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10477 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10478 if test $ac_cv_lib_dl_dlopen = yes; then
10479 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10480 else
10482 lt_cv_dlopen="dyld"
10483 lt_cv_dlopen_libs=
10484 lt_cv_dlopen_self=yes
10491 { echo "$as_me:$LINENO: checking for shl_load" >&5
10492 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10493 if test "${ac_cv_func_shl_load+set}" = set; then
10494 echo $ECHO_N "(cached) $ECHO_C" >&6
10495 else
10496 cat >conftest.$ac_ext <<_ACEOF
10497 /* confdefs.h. */
10498 _ACEOF
10499 cat confdefs.h >>conftest.$ac_ext
10500 cat >>conftest.$ac_ext <<_ACEOF
10501 /* end confdefs.h. */
10502 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10504 #define shl_load innocuous_shl_load
10506 /* System header to define __stub macros and hopefully few prototypes,
10507 which can conflict with char shl_load (); below.
10508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10509 <limits.h> exists even on freestanding compilers. */
10511 #ifdef __STDC__
10512 # include <limits.h>
10513 #else
10514 # include <assert.h>
10515 #endif
10517 #undef shl_load
10519 /* Override any GCC internal prototype to avoid an error.
10520 Use char because int might match the return type of a GCC
10521 builtin and then its argument prototype would still apply. */
10522 #ifdef __cplusplus
10523 extern "C"
10524 #endif
10525 char shl_load ();
10526 /* The GNU C library defines this for functions which it implements
10527 to always fail with ENOSYS. Some functions are actually named
10528 something starting with __ and the normal name is an alias. */
10529 #if defined __stub_shl_load || defined __stub___shl_load
10530 choke me
10531 #endif
10534 main ()
10536 return shl_load ();
10538 return 0;
10540 _ACEOF
10541 rm -f conftest.$ac_objext conftest$ac_exeext
10542 if { (ac_try="$ac_link"
10543 case "(($ac_try" in
10544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10545 *) ac_try_echo=$ac_try;;
10546 esac
10547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10548 (eval "$ac_link") 2>conftest.er1
10549 ac_status=$?
10550 grep -v '^ *+' conftest.er1 >conftest.err
10551 rm -f conftest.er1
10552 cat conftest.err >&5
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); } && {
10555 test -z "$ac_c_werror_flag" ||
10556 test ! -s conftest.err
10557 } && test -s conftest$ac_exeext &&
10558 $as_test_x conftest$ac_exeext; then
10559 ac_cv_func_shl_load=yes
10560 else
10561 echo "$as_me: failed program was:" >&5
10562 sed 's/^/| /' conftest.$ac_ext >&5
10564 ac_cv_func_shl_load=no
10567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10568 conftest$ac_exeext conftest.$ac_ext
10570 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10571 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10572 if test $ac_cv_func_shl_load = yes; then
10573 lt_cv_dlopen="shl_load"
10574 else
10575 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10576 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10577 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10578 echo $ECHO_N "(cached) $ECHO_C" >&6
10579 else
10580 ac_check_lib_save_LIBS=$LIBS
10581 LIBS="-ldld $LIBS"
10582 cat >conftest.$ac_ext <<_ACEOF
10583 /* confdefs.h. */
10584 _ACEOF
10585 cat confdefs.h >>conftest.$ac_ext
10586 cat >>conftest.$ac_ext <<_ACEOF
10587 /* end confdefs.h. */
10589 /* Override any GCC internal prototype to avoid an error.
10590 Use char because int might match the return type of a GCC
10591 builtin and then its argument prototype would still apply. */
10592 #ifdef __cplusplus
10593 extern "C"
10594 #endif
10595 char shl_load ();
10597 main ()
10599 return shl_load ();
10601 return 0;
10603 _ACEOF
10604 rm -f conftest.$ac_objext conftest$ac_exeext
10605 if { (ac_try="$ac_link"
10606 case "(($ac_try" in
10607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10608 *) ac_try_echo=$ac_try;;
10609 esac
10610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10611 (eval "$ac_link") 2>conftest.er1
10612 ac_status=$?
10613 grep -v '^ *+' conftest.er1 >conftest.err
10614 rm -f conftest.er1
10615 cat conftest.err >&5
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); } && {
10618 test -z "$ac_c_werror_flag" ||
10619 test ! -s conftest.err
10620 } && test -s conftest$ac_exeext &&
10621 $as_test_x conftest$ac_exeext; then
10622 ac_cv_lib_dld_shl_load=yes
10623 else
10624 echo "$as_me: failed program was:" >&5
10625 sed 's/^/| /' conftest.$ac_ext >&5
10627 ac_cv_lib_dld_shl_load=no
10630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10631 conftest$ac_exeext conftest.$ac_ext
10632 LIBS=$ac_check_lib_save_LIBS
10634 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10635 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10636 if test $ac_cv_lib_dld_shl_load = yes; then
10637 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10638 else
10639 { echo "$as_me:$LINENO: checking for dlopen" >&5
10640 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10641 if test "${ac_cv_func_dlopen+set}" = set; then
10642 echo $ECHO_N "(cached) $ECHO_C" >&6
10643 else
10644 cat >conftest.$ac_ext <<_ACEOF
10645 /* confdefs.h. */
10646 _ACEOF
10647 cat confdefs.h >>conftest.$ac_ext
10648 cat >>conftest.$ac_ext <<_ACEOF
10649 /* end confdefs.h. */
10650 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10652 #define dlopen innocuous_dlopen
10654 /* System header to define __stub macros and hopefully few prototypes,
10655 which can conflict with char dlopen (); below.
10656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10657 <limits.h> exists even on freestanding compilers. */
10659 #ifdef __STDC__
10660 # include <limits.h>
10661 #else
10662 # include <assert.h>
10663 #endif
10665 #undef dlopen
10667 /* Override any GCC internal prototype to avoid an error.
10668 Use char because int might match the return type of a GCC
10669 builtin and then its argument prototype would still apply. */
10670 #ifdef __cplusplus
10671 extern "C"
10672 #endif
10673 char dlopen ();
10674 /* The GNU C library defines this for functions which it implements
10675 to always fail with ENOSYS. Some functions are actually named
10676 something starting with __ and the normal name is an alias. */
10677 #if defined __stub_dlopen || defined __stub___dlopen
10678 choke me
10679 #endif
10682 main ()
10684 return dlopen ();
10686 return 0;
10688 _ACEOF
10689 rm -f conftest.$ac_objext conftest$ac_exeext
10690 if { (ac_try="$ac_link"
10691 case "(($ac_try" in
10692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10693 *) ac_try_echo=$ac_try;;
10694 esac
10695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10696 (eval "$ac_link") 2>conftest.er1
10697 ac_status=$?
10698 grep -v '^ *+' conftest.er1 >conftest.err
10699 rm -f conftest.er1
10700 cat conftest.err >&5
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); } && {
10703 test -z "$ac_c_werror_flag" ||
10704 test ! -s conftest.err
10705 } && test -s conftest$ac_exeext &&
10706 $as_test_x conftest$ac_exeext; then
10707 ac_cv_func_dlopen=yes
10708 else
10709 echo "$as_me: failed program was:" >&5
10710 sed 's/^/| /' conftest.$ac_ext >&5
10712 ac_cv_func_dlopen=no
10715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10716 conftest$ac_exeext conftest.$ac_ext
10718 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10719 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10720 if test $ac_cv_func_dlopen = yes; then
10721 lt_cv_dlopen="dlopen"
10722 else
10723 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10724 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10725 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10726 echo $ECHO_N "(cached) $ECHO_C" >&6
10727 else
10728 ac_check_lib_save_LIBS=$LIBS
10729 LIBS="-ldl $LIBS"
10730 cat >conftest.$ac_ext <<_ACEOF
10731 /* confdefs.h. */
10732 _ACEOF
10733 cat confdefs.h >>conftest.$ac_ext
10734 cat >>conftest.$ac_ext <<_ACEOF
10735 /* end confdefs.h. */
10737 /* Override any GCC internal prototype to avoid an error.
10738 Use char because int might match the return type of a GCC
10739 builtin and then its argument prototype would still apply. */
10740 #ifdef __cplusplus
10741 extern "C"
10742 #endif
10743 char dlopen ();
10745 main ()
10747 return dlopen ();
10749 return 0;
10751 _ACEOF
10752 rm -f conftest.$ac_objext conftest$ac_exeext
10753 if { (ac_try="$ac_link"
10754 case "(($ac_try" in
10755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10756 *) ac_try_echo=$ac_try;;
10757 esac
10758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10759 (eval "$ac_link") 2>conftest.er1
10760 ac_status=$?
10761 grep -v '^ *+' conftest.er1 >conftest.err
10762 rm -f conftest.er1
10763 cat conftest.err >&5
10764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765 (exit $ac_status); } && {
10766 test -z "$ac_c_werror_flag" ||
10767 test ! -s conftest.err
10768 } && test -s conftest$ac_exeext &&
10769 $as_test_x conftest$ac_exeext; then
10770 ac_cv_lib_dl_dlopen=yes
10771 else
10772 echo "$as_me: failed program was:" >&5
10773 sed 's/^/| /' conftest.$ac_ext >&5
10775 ac_cv_lib_dl_dlopen=no
10778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10779 conftest$ac_exeext conftest.$ac_ext
10780 LIBS=$ac_check_lib_save_LIBS
10782 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10783 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10784 if test $ac_cv_lib_dl_dlopen = yes; then
10785 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10786 else
10787 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10788 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10789 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10790 echo $ECHO_N "(cached) $ECHO_C" >&6
10791 else
10792 ac_check_lib_save_LIBS=$LIBS
10793 LIBS="-lsvld $LIBS"
10794 cat >conftest.$ac_ext <<_ACEOF
10795 /* confdefs.h. */
10796 _ACEOF
10797 cat confdefs.h >>conftest.$ac_ext
10798 cat >>conftest.$ac_ext <<_ACEOF
10799 /* end confdefs.h. */
10801 /* Override any GCC internal prototype to avoid an error.
10802 Use char because int might match the return type of a GCC
10803 builtin and then its argument prototype would still apply. */
10804 #ifdef __cplusplus
10805 extern "C"
10806 #endif
10807 char dlopen ();
10809 main ()
10811 return dlopen ();
10813 return 0;
10815 _ACEOF
10816 rm -f conftest.$ac_objext conftest$ac_exeext
10817 if { (ac_try="$ac_link"
10818 case "(($ac_try" in
10819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10820 *) ac_try_echo=$ac_try;;
10821 esac
10822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10823 (eval "$ac_link") 2>conftest.er1
10824 ac_status=$?
10825 grep -v '^ *+' conftest.er1 >conftest.err
10826 rm -f conftest.er1
10827 cat conftest.err >&5
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); } && {
10830 test -z "$ac_c_werror_flag" ||
10831 test ! -s conftest.err
10832 } && test -s conftest$ac_exeext &&
10833 $as_test_x conftest$ac_exeext; then
10834 ac_cv_lib_svld_dlopen=yes
10835 else
10836 echo "$as_me: failed program was:" >&5
10837 sed 's/^/| /' conftest.$ac_ext >&5
10839 ac_cv_lib_svld_dlopen=no
10842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10843 conftest$ac_exeext conftest.$ac_ext
10844 LIBS=$ac_check_lib_save_LIBS
10846 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10847 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10848 if test $ac_cv_lib_svld_dlopen = yes; then
10849 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10850 else
10851 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10852 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10853 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10854 echo $ECHO_N "(cached) $ECHO_C" >&6
10855 else
10856 ac_check_lib_save_LIBS=$LIBS
10857 LIBS="-ldld $LIBS"
10858 cat >conftest.$ac_ext <<_ACEOF
10859 /* confdefs.h. */
10860 _ACEOF
10861 cat confdefs.h >>conftest.$ac_ext
10862 cat >>conftest.$ac_ext <<_ACEOF
10863 /* end confdefs.h. */
10865 /* Override any GCC internal prototype to avoid an error.
10866 Use char because int might match the return type of a GCC
10867 builtin and then its argument prototype would still apply. */
10868 #ifdef __cplusplus
10869 extern "C"
10870 #endif
10871 char dld_link ();
10873 main ()
10875 return dld_link ();
10877 return 0;
10879 _ACEOF
10880 rm -f conftest.$ac_objext conftest$ac_exeext
10881 if { (ac_try="$ac_link"
10882 case "(($ac_try" in
10883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10884 *) ac_try_echo=$ac_try;;
10885 esac
10886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10887 (eval "$ac_link") 2>conftest.er1
10888 ac_status=$?
10889 grep -v '^ *+' conftest.er1 >conftest.err
10890 rm -f conftest.er1
10891 cat conftest.err >&5
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); } && {
10894 test -z "$ac_c_werror_flag" ||
10895 test ! -s conftest.err
10896 } && test -s conftest$ac_exeext &&
10897 $as_test_x conftest$ac_exeext; then
10898 ac_cv_lib_dld_dld_link=yes
10899 else
10900 echo "$as_me: failed program was:" >&5
10901 sed 's/^/| /' conftest.$ac_ext >&5
10903 ac_cv_lib_dld_dld_link=no
10906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10907 conftest$ac_exeext conftest.$ac_ext
10908 LIBS=$ac_check_lib_save_LIBS
10910 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10911 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10912 if test $ac_cv_lib_dld_dld_link = yes; then
10913 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10932 esac
10934 if test "x$lt_cv_dlopen" != xno; then
10935 enable_dlopen=yes
10936 else
10937 enable_dlopen=no
10940 case $lt_cv_dlopen in
10941 dlopen)
10942 save_CPPFLAGS="$CPPFLAGS"
10943 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10945 save_LDFLAGS="$LDFLAGS"
10946 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10948 save_LIBS="$LIBS"
10949 LIBS="$lt_cv_dlopen_libs $LIBS"
10951 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10952 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10953 if test "${lt_cv_dlopen_self+set}" = set; then
10954 echo $ECHO_N "(cached) $ECHO_C" >&6
10955 else
10956 if test "$cross_compiling" = yes; then :
10957 lt_cv_dlopen_self=cross
10958 else
10959 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10960 lt_status=$lt_dlunknown
10961 cat > conftest.$ac_ext <<EOF
10962 #line 10962 "configure"
10963 #include "confdefs.h"
10965 #if HAVE_DLFCN_H
10966 #include <dlfcn.h>
10967 #endif
10969 #include <stdio.h>
10971 #ifdef RTLD_GLOBAL
10972 # define LT_DLGLOBAL RTLD_GLOBAL
10973 #else
10974 # ifdef DL_GLOBAL
10975 # define LT_DLGLOBAL DL_GLOBAL
10976 # else
10977 # define LT_DLGLOBAL 0
10978 # endif
10979 #endif
10981 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10982 find out it does not work in some platform. */
10983 #ifndef LT_DLLAZY_OR_NOW
10984 # ifdef RTLD_LAZY
10985 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10986 # else
10987 # ifdef DL_LAZY
10988 # define LT_DLLAZY_OR_NOW DL_LAZY
10989 # else
10990 # ifdef RTLD_NOW
10991 # define LT_DLLAZY_OR_NOW RTLD_NOW
10992 # else
10993 # ifdef DL_NOW
10994 # define LT_DLLAZY_OR_NOW DL_NOW
10995 # else
10996 # define LT_DLLAZY_OR_NOW 0
10997 # endif
10998 # endif
10999 # endif
11000 # endif
11001 #endif
11003 #ifdef __cplusplus
11004 extern "C" void exit (int);
11005 #endif
11007 void fnord() { int i=42;}
11008 int main ()
11010 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11011 int status = $lt_dlunknown;
11013 if (self)
11015 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11016 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11017 /* dlclose (self); */
11019 else
11020 puts (dlerror ());
11022 exit (status);
11025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11026 (eval $ac_link) 2>&5
11027 ac_status=$?
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11030 (./conftest; exit; ) >&5 2>/dev/null
11031 lt_status=$?
11032 case x$lt_status in
11033 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11034 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11035 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11036 esac
11037 else :
11038 # compilation failed
11039 lt_cv_dlopen_self=no
11042 rm -fr conftest*
11046 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11047 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11049 if test "x$lt_cv_dlopen_self" = xyes; then
11050 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11051 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11052 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11053 if test "${lt_cv_dlopen_self_static+set}" = set; then
11054 echo $ECHO_N "(cached) $ECHO_C" >&6
11055 else
11056 if test "$cross_compiling" = yes; then :
11057 lt_cv_dlopen_self_static=cross
11058 else
11059 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11060 lt_status=$lt_dlunknown
11061 cat > conftest.$ac_ext <<EOF
11062 #line 11062 "configure"
11063 #include "confdefs.h"
11065 #if HAVE_DLFCN_H
11066 #include <dlfcn.h>
11067 #endif
11069 #include <stdio.h>
11071 #ifdef RTLD_GLOBAL
11072 # define LT_DLGLOBAL RTLD_GLOBAL
11073 #else
11074 # ifdef DL_GLOBAL
11075 # define LT_DLGLOBAL DL_GLOBAL
11076 # else
11077 # define LT_DLGLOBAL 0
11078 # endif
11079 #endif
11081 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11082 find out it does not work in some platform. */
11083 #ifndef LT_DLLAZY_OR_NOW
11084 # ifdef RTLD_LAZY
11085 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11086 # else
11087 # ifdef DL_LAZY
11088 # define LT_DLLAZY_OR_NOW DL_LAZY
11089 # else
11090 # ifdef RTLD_NOW
11091 # define LT_DLLAZY_OR_NOW RTLD_NOW
11092 # else
11093 # ifdef DL_NOW
11094 # define LT_DLLAZY_OR_NOW DL_NOW
11095 # else
11096 # define LT_DLLAZY_OR_NOW 0
11097 # endif
11098 # endif
11099 # endif
11100 # endif
11101 #endif
11103 #ifdef __cplusplus
11104 extern "C" void exit (int);
11105 #endif
11107 void fnord() { int i=42;}
11108 int main ()
11110 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11111 int status = $lt_dlunknown;
11113 if (self)
11115 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11116 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11117 /* dlclose (self); */
11119 else
11120 puts (dlerror ());
11122 exit (status);
11125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11126 (eval $ac_link) 2>&5
11127 ac_status=$?
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11130 (./conftest; exit; ) >&5 2>/dev/null
11131 lt_status=$?
11132 case x$lt_status in
11133 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11134 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11135 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11136 esac
11137 else :
11138 # compilation failed
11139 lt_cv_dlopen_self_static=no
11142 rm -fr conftest*
11146 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11147 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11150 CPPFLAGS="$save_CPPFLAGS"
11151 LDFLAGS="$save_LDFLAGS"
11152 LIBS="$save_LIBS"
11154 esac
11156 case $lt_cv_dlopen_self in
11157 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11158 *) enable_dlopen_self=unknown ;;
11159 esac
11161 case $lt_cv_dlopen_self_static in
11162 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11163 *) enable_dlopen_self_static=unknown ;;
11164 esac
11168 # Report which library types will actually be built
11169 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11170 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11171 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11172 echo "${ECHO_T}$can_build_shared" >&6; }
11174 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11175 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11176 test "$can_build_shared" = "no" && enable_shared=no
11178 # On AIX, shared libraries and static libraries use the same namespace, and
11179 # are all built from PIC.
11180 case $host_os in
11181 aix3*)
11182 test "$enable_shared" = yes && enable_static=no
11183 if test -n "$RANLIB"; then
11184 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11185 postinstall_cmds='$RANLIB $lib'
11189 aix4* | aix5*)
11190 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11191 test "$enable_shared" = yes && enable_static=no
11194 esac
11195 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11196 echo "${ECHO_T}$enable_shared" >&6; }
11198 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11199 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11200 # Make sure either enable_shared or enable_static is yes.
11201 test "$enable_shared" = yes || enable_static=yes
11202 { echo "$as_me:$LINENO: result: $enable_static" >&5
11203 echo "${ECHO_T}$enable_static" >&6; }
11205 # The else clause should only fire when bootstrapping the
11206 # libtool distribution, otherwise you forgot to ship ltmain.sh
11207 # with your package, and you will get complaints that there are
11208 # no rules to generate ltmain.sh.
11209 if test -f "$ltmain"; then
11210 # See if we are running on zsh, and set the options which allow our commands through
11211 # without removal of \ escapes.
11212 if test -n "${ZSH_VERSION+set}" ; then
11213 setopt NO_GLOB_SUBST
11215 # Now quote all the things that may contain metacharacters while being
11216 # careful not to overquote the AC_SUBSTed values. We take copies of the
11217 # variables and quote the copies for generation of the libtool script.
11218 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11219 SED SHELL STRIP \
11220 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11221 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11222 deplibs_check_method reload_flag reload_cmds need_locks \
11223 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11224 lt_cv_sys_global_symbol_to_c_name_address \
11225 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11226 old_postinstall_cmds old_postuninstall_cmds \
11227 compiler \
11228 CC \
11229 LD \
11230 lt_prog_compiler_wl \
11231 lt_prog_compiler_pic \
11232 lt_prog_compiler_static \
11233 lt_prog_compiler_no_builtin_flag \
11234 export_dynamic_flag_spec \
11235 thread_safe_flag_spec \
11236 whole_archive_flag_spec \
11237 enable_shared_with_static_runtimes \
11238 old_archive_cmds \
11239 old_archive_from_new_cmds \
11240 predep_objects \
11241 postdep_objects \
11242 predeps \
11243 postdeps \
11244 compiler_lib_search_path \
11245 archive_cmds \
11246 archive_expsym_cmds \
11247 postinstall_cmds \
11248 postuninstall_cmds \
11249 old_archive_from_expsyms_cmds \
11250 allow_undefined_flag \
11251 no_undefined_flag \
11252 export_symbols_cmds \
11253 hardcode_libdir_flag_spec \
11254 hardcode_libdir_flag_spec_ld \
11255 hardcode_libdir_separator \
11256 hardcode_automatic \
11257 module_cmds \
11258 module_expsym_cmds \
11259 lt_cv_prog_compiler_c_o \
11260 exclude_expsyms \
11261 include_expsyms; do
11263 case $var in
11264 old_archive_cmds | \
11265 old_archive_from_new_cmds | \
11266 archive_cmds | \
11267 archive_expsym_cmds | \
11268 module_cmds | \
11269 module_expsym_cmds | \
11270 old_archive_from_expsyms_cmds | \
11271 export_symbols_cmds | \
11272 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11273 postinstall_cmds | postuninstall_cmds | \
11274 old_postinstall_cmds | old_postuninstall_cmds | \
11275 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11276 # Double-quote double-evaled strings.
11277 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11280 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11282 esac
11283 done
11285 case $lt_echo in
11286 *'\$0 --fallback-echo"')
11287 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11289 esac
11291 cfgfile="${ofile}T"
11292 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11293 $rm -f "$cfgfile"
11294 { echo "$as_me:$LINENO: creating $ofile" >&5
11295 echo "$as_me: creating $ofile" >&6;}
11297 cat <<__EOF__ >> "$cfgfile"
11298 #! $SHELL
11300 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11301 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11302 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11304 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11305 # Free Software Foundation, Inc.
11307 # This file is part of GNU Libtool:
11308 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11310 # This program is free software; you can redistribute it and/or modify
11311 # it under the terms of the GNU General Public License as published by
11312 # the Free Software Foundation; either version 2 of the License, or
11313 # (at your option) any later version.
11315 # This program is distributed in the hope that it will be useful, but
11316 # WITHOUT ANY WARRANTY; without even the implied warranty of
11317 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11318 # General Public License for more details.
11320 # You should have received a copy of the GNU General Public License
11321 # along with this program; if not, write to the Free Software
11322 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11324 # As a special exception to the GNU General Public License, if you
11325 # distribute this file as part of a program that contains a
11326 # configuration script generated by Autoconf, you may include it under
11327 # the same distribution terms that you use for the rest of that program.
11329 # A sed program that does not truncate output.
11330 SED=$lt_SED
11332 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11333 Xsed="$SED -e 1s/^X//"
11335 # The HP-UX ksh and POSIX shell print the target directory to stdout
11336 # if CDPATH is set.
11337 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11339 # The names of the tagged configurations supported by this script.
11340 available_tags=
11342 # ### BEGIN LIBTOOL CONFIG
11344 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11346 # Shell to use when invoking shell scripts.
11347 SHELL=$lt_SHELL
11349 # Whether or not to build shared libraries.
11350 build_libtool_libs=$enable_shared
11352 # Whether or not to build static libraries.
11353 build_old_libs=$enable_static
11355 # Whether or not to add -lc for building shared libraries.
11356 build_libtool_need_lc=$archive_cmds_need_lc
11358 # Whether or not to disallow shared libs when runtime libs are static
11359 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11361 # Whether or not to optimize for fast installation.
11362 fast_install=$enable_fast_install
11364 # The host system.
11365 host_alias=$host_alias
11366 host=$host
11367 host_os=$host_os
11369 # The build system.
11370 build_alias=$build_alias
11371 build=$build
11372 build_os=$build_os
11374 # An echo program that does not interpret backslashes.
11375 echo=$lt_echo
11377 # The archiver.
11378 AR=$lt_AR
11379 AR_FLAGS=$lt_AR_FLAGS
11381 # A C compiler.
11382 LTCC=$lt_LTCC
11384 # LTCC compiler flags.
11385 LTCFLAGS=$lt_LTCFLAGS
11387 # A language-specific compiler.
11388 CC=$lt_compiler
11390 # Is the compiler the GNU C compiler?
11391 with_gcc=$GCC
11393 # An ERE matcher.
11394 EGREP=$lt_EGREP
11396 # The linker used to build libraries.
11397 LD=$lt_LD
11399 # Whether we need hard or soft links.
11400 LN_S=$lt_LN_S
11402 # A BSD-compatible nm program.
11403 NM=$lt_NM
11405 # A symbol stripping program
11406 STRIP=$lt_STRIP
11408 # Used to examine libraries when file_magic_cmd begins "file"
11409 MAGIC_CMD=$MAGIC_CMD
11411 # Used on cygwin: DLL creation program.
11412 DLLTOOL="$DLLTOOL"
11414 # Used on cygwin: object dumper.
11415 OBJDUMP="$OBJDUMP"
11417 # Used on cygwin: assembler.
11418 AS="$AS"
11420 # The name of the directory that contains temporary libtool files.
11421 objdir=$objdir
11423 # How to create reloadable object files.
11424 reload_flag=$lt_reload_flag
11425 reload_cmds=$lt_reload_cmds
11427 # How to pass a linker flag through the compiler.
11428 wl=$lt_lt_prog_compiler_wl
11430 # Object file suffix (normally "o").
11431 objext="$ac_objext"
11433 # Old archive suffix (normally "a").
11434 libext="$libext"
11436 # Shared library suffix (normally ".so").
11437 shrext_cmds='$shrext_cmds'
11439 # Executable file suffix (normally "").
11440 exeext="$exeext"
11442 # Additional compiler flags for building library objects.
11443 pic_flag=$lt_lt_prog_compiler_pic
11444 pic_mode=$pic_mode
11446 # What is the maximum length of a command?
11447 max_cmd_len=$lt_cv_sys_max_cmd_len
11449 # Does compiler simultaneously support -c and -o options?
11450 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11452 # Must we lock files when doing compilation?
11453 need_locks=$lt_need_locks
11455 # Do we need the lib prefix for modules?
11456 need_lib_prefix=$need_lib_prefix
11458 # Do we need a version for libraries?
11459 need_version=$need_version
11461 # Whether dlopen is supported.
11462 dlopen_support=$enable_dlopen
11464 # Whether dlopen of programs is supported.
11465 dlopen_self=$enable_dlopen_self
11467 # Whether dlopen of statically linked programs is supported.
11468 dlopen_self_static=$enable_dlopen_self_static
11470 # Compiler flag to prevent dynamic linking.
11471 link_static_flag=$lt_lt_prog_compiler_static
11473 # Compiler flag to turn off builtin functions.
11474 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11476 # Compiler flag to allow reflexive dlopens.
11477 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11479 # Compiler flag to generate shared objects directly from archives.
11480 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11482 # Compiler flag to generate thread-safe objects.
11483 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11485 # Library versioning type.
11486 version_type=$version_type
11488 # Format of library name prefix.
11489 libname_spec=$lt_libname_spec
11491 # List of archive names. First name is the real one, the rest are links.
11492 # The last name is the one that the linker finds with -lNAME.
11493 library_names_spec=$lt_library_names_spec
11495 # The coded name of the library, if different from the real name.
11496 soname_spec=$lt_soname_spec
11498 # Commands used to build and install an old-style archive.
11499 RANLIB=$lt_RANLIB
11500 old_archive_cmds=$lt_old_archive_cmds
11501 old_postinstall_cmds=$lt_old_postinstall_cmds
11502 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11504 # Create an old-style archive from a shared archive.
11505 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11507 # Create a temporary old-style archive to link instead of a shared archive.
11508 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11510 # Commands used to build and install a shared archive.
11511 archive_cmds=$lt_archive_cmds
11512 archive_expsym_cmds=$lt_archive_expsym_cmds
11513 postinstall_cmds=$lt_postinstall_cmds
11514 postuninstall_cmds=$lt_postuninstall_cmds
11516 # Commands used to build a loadable module (assumed same as above if empty)
11517 module_cmds=$lt_module_cmds
11518 module_expsym_cmds=$lt_module_expsym_cmds
11520 # Commands to strip libraries.
11521 old_striplib=$lt_old_striplib
11522 striplib=$lt_striplib
11524 # Dependencies to place before the objects being linked to create a
11525 # shared library.
11526 predep_objects=$lt_predep_objects
11528 # Dependencies to place after the objects being linked to create a
11529 # shared library.
11530 postdep_objects=$lt_postdep_objects
11532 # Dependencies to place before the objects being linked to create a
11533 # shared library.
11534 predeps=$lt_predeps
11536 # Dependencies to place after the objects being linked to create a
11537 # shared library.
11538 postdeps=$lt_postdeps
11540 # The library search path used internally by the compiler when linking
11541 # a shared library.
11542 compiler_lib_search_path=$lt_compiler_lib_search_path
11544 # Method to check whether dependent libraries are shared objects.
11545 deplibs_check_method=$lt_deplibs_check_method
11547 # Command to use when deplibs_check_method == file_magic.
11548 file_magic_cmd=$lt_file_magic_cmd
11550 # Flag that allows shared libraries with undefined symbols to be built.
11551 allow_undefined_flag=$lt_allow_undefined_flag
11553 # Flag that forces no undefined symbols.
11554 no_undefined_flag=$lt_no_undefined_flag
11556 # Commands used to finish a libtool library installation in a directory.
11557 finish_cmds=$lt_finish_cmds
11559 # Same as above, but a single script fragment to be evaled but not shown.
11560 finish_eval=$lt_finish_eval
11562 # Take the output of nm and produce a listing of raw symbols and C names.
11563 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11565 # Transform the output of nm in a proper C declaration
11566 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11568 # Transform the output of nm in a C name address pair
11569 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11571 # This is the shared library runtime path variable.
11572 runpath_var=$runpath_var
11574 # This is the shared library path variable.
11575 shlibpath_var=$shlibpath_var
11577 # Is shlibpath searched before the hard-coded library search path?
11578 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11580 # How to hardcode a shared library path into an executable.
11581 hardcode_action=$hardcode_action
11583 # Whether we should hardcode library paths into libraries.
11584 hardcode_into_libs=$hardcode_into_libs
11586 # Flag to hardcode \$libdir into a binary during linking.
11587 # This must work even if \$libdir does not exist.
11588 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11590 # If ld is used when linking, flag to hardcode \$libdir into
11591 # a binary during linking. This must work even if \$libdir does
11592 # not exist.
11593 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11595 # Whether we need a single -rpath flag with a separated argument.
11596 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11598 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11599 # resulting binary.
11600 hardcode_direct=$hardcode_direct
11602 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11603 # resulting binary.
11604 hardcode_minus_L=$hardcode_minus_L
11606 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11607 # the resulting binary.
11608 hardcode_shlibpath_var=$hardcode_shlibpath_var
11610 # Set to yes if building a shared library automatically hardcodes DIR into the library
11611 # and all subsequent libraries and executables linked against it.
11612 hardcode_automatic=$hardcode_automatic
11614 # Variables whose values should be saved in libtool wrapper scripts and
11615 # restored at relink time.
11616 variables_saved_for_relink="$variables_saved_for_relink"
11618 # Whether libtool must link a program against all its dependency libraries.
11619 link_all_deplibs=$link_all_deplibs
11621 # Compile-time system search path for libraries
11622 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11624 # Run-time system search path for libraries
11625 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11627 # Fix the shell variable \$srcfile for the compiler.
11628 fix_srcfile_path="$fix_srcfile_path"
11630 # Set to yes if exported symbols are required.
11631 always_export_symbols=$always_export_symbols
11633 # The commands to list exported symbols.
11634 export_symbols_cmds=$lt_export_symbols_cmds
11636 # The commands to extract the exported symbol list from a shared archive.
11637 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11639 # Symbols that should not be listed in the preloaded symbols.
11640 exclude_expsyms=$lt_exclude_expsyms
11642 # Symbols that must always be exported.
11643 include_expsyms=$lt_include_expsyms
11645 # ### END LIBTOOL CONFIG
11647 __EOF__
11650 case $host_os in
11651 aix3*)
11652 cat <<\EOF >> "$cfgfile"
11654 # AIX sometimes has problems with the GCC collect2 program. For some
11655 # reason, if we set the COLLECT_NAMES environment variable, the problems
11656 # vanish in a puff of smoke.
11657 if test "X${COLLECT_NAMES+set}" != Xset; then
11658 COLLECT_NAMES=
11659 export COLLECT_NAMES
11663 esac
11665 # We use sed instead of cat because bash on DJGPP gets confused if
11666 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11667 # text mode, it properly converts lines to CR/LF. This bash problem
11668 # is reportedly fixed, but why not run on old versions too?
11669 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11671 mv -f "$cfgfile" "$ofile" || \
11672 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11673 chmod +x "$ofile"
11675 else
11676 # If there is no Makefile yet, we rely on a make rule to execute
11677 # `config.status --recheck' to rerun these tests and create the
11678 # libtool script then.
11679 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11680 if test -f "$ltmain_in"; then
11681 test -f Makefile && make "$ltmain"
11686 ac_ext=c
11687 ac_cpp='$CPP $CPPFLAGS'
11688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11692 CC="$lt_save_CC"
11695 # Check whether --with-tags was given.
11696 if test "${with_tags+set}" = set; then
11697 withval=$with_tags; tagnames="$withval"
11701 if test -f "$ltmain" && test -n "$tagnames"; then
11702 if test ! -f "${ofile}"; then
11703 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11704 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11707 if test -z "$LTCC"; then
11708 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11709 if test -z "$LTCC"; then
11710 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11711 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11712 else
11713 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11714 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11717 if test -z "$LTCFLAGS"; then
11718 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11721 # Extract list of available tagged configurations in $ofile.
11722 # Note that this assumes the entire list is on one line.
11723 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11725 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11726 for tagname in $tagnames; do
11727 IFS="$lt_save_ifs"
11728 # Check whether tagname contains only valid characters
11729 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11730 "") ;;
11731 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11732 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11733 { (exit 1); exit 1; }; }
11735 esac
11737 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11738 then
11739 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11740 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11741 { (exit 1); exit 1; }; }
11744 # Update the list of available tags.
11745 if test -n "$tagname"; then
11746 echo appending configuration tag \"$tagname\" to $ofile
11748 case $tagname in
11749 CXX)
11750 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11751 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11752 (test "X$CXX" != "Xg++"))) ; then
11753 ac_ext=cpp
11754 ac_cpp='$CXXCPP $CPPFLAGS'
11755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11762 archive_cmds_need_lc_CXX=no
11763 allow_undefined_flag_CXX=
11764 always_export_symbols_CXX=no
11765 archive_expsym_cmds_CXX=
11766 export_dynamic_flag_spec_CXX=
11767 hardcode_direct_CXX=no
11768 hardcode_libdir_flag_spec_CXX=
11769 hardcode_libdir_flag_spec_ld_CXX=
11770 hardcode_libdir_separator_CXX=
11771 hardcode_minus_L_CXX=no
11772 hardcode_shlibpath_var_CXX=unsupported
11773 hardcode_automatic_CXX=no
11774 module_cmds_CXX=
11775 module_expsym_cmds_CXX=
11776 link_all_deplibs_CXX=unknown
11777 old_archive_cmds_CXX=$old_archive_cmds
11778 no_undefined_flag_CXX=
11779 whole_archive_flag_spec_CXX=
11780 enable_shared_with_static_runtimes_CXX=no
11782 # Dependencies to place before and after the object being linked:
11783 predep_objects_CXX=
11784 postdep_objects_CXX=
11785 predeps_CXX=
11786 postdeps_CXX=
11787 compiler_lib_search_path_CXX=
11789 # Source file extension for C++ test sources.
11790 ac_ext=cpp
11792 # Object file extension for compiled C++ test sources.
11793 objext=o
11794 objext_CXX=$objext
11796 # Code to be used in simple compile tests
11797 lt_simple_compile_test_code="int some_variable = 0;\n"
11799 # Code to be used in simple link tests
11800 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11802 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11804 # If no C compiler was specified, use CC.
11805 LTCC=${LTCC-"$CC"}
11807 # If no C compiler flags were specified, use CFLAGS.
11808 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11810 # Allow CC to be a program name with arguments.
11811 compiler=$CC
11814 # save warnings/boilerplate of simple test code
11815 ac_outfile=conftest.$ac_objext
11816 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11817 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11818 _lt_compiler_boilerplate=`cat conftest.err`
11819 $rm conftest*
11821 ac_outfile=conftest.$ac_objext
11822 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11823 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11824 _lt_linker_boilerplate=`cat conftest.err`
11825 $rm conftest*
11828 # Allow CC to be a program name with arguments.
11829 lt_save_CC=$CC
11830 lt_save_LD=$LD
11831 lt_save_GCC=$GCC
11832 GCC=$GXX
11833 lt_save_with_gnu_ld=$with_gnu_ld
11834 lt_save_path_LD=$lt_cv_path_LD
11835 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11836 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11837 else
11838 $as_unset lt_cv_prog_gnu_ld
11840 if test -n "${lt_cv_path_LDCXX+set}"; then
11841 lt_cv_path_LD=$lt_cv_path_LDCXX
11842 else
11843 $as_unset lt_cv_path_LD
11845 test -z "${LDCXX+set}" || LD=$LDCXX
11846 CC=${CXX-"c++"}
11847 compiler=$CC
11848 compiler_CXX=$CC
11849 for cc_temp in $compiler""; do
11850 case $cc_temp in
11851 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11852 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11853 \-*) ;;
11854 *) break;;
11855 esac
11856 done
11857 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11860 # We don't want -fno-exception wen compiling C++ code, so set the
11861 # no_builtin_flag separately
11862 if test "$GXX" = yes; then
11863 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11864 else
11865 lt_prog_compiler_no_builtin_flag_CXX=
11868 if test "$GXX" = yes; then
11869 # Set up default GNU C++ configuration
11872 # Check whether --with-gnu-ld was given.
11873 if test "${with_gnu_ld+set}" = set; then
11874 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11875 else
11876 with_gnu_ld=no
11879 ac_prog=ld
11880 if test "$GCC" = yes; then
11881 # Check if gcc -print-prog-name=ld gives a path.
11882 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11883 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11884 case $host in
11885 *-*-mingw*)
11886 # gcc leaves a trailing carriage return which upsets mingw
11887 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11889 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11890 esac
11891 case $ac_prog in
11892 # Accept absolute paths.
11893 [\\/]* | ?:[\\/]*)
11894 re_direlt='/[^/][^/]*/\.\./'
11895 # Canonicalize the pathname of ld
11896 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11897 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11898 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11899 done
11900 test -z "$LD" && LD="$ac_prog"
11903 # If it fails, then pretend we aren't using GCC.
11904 ac_prog=ld
11907 # If it is relative, then search for the first ld in PATH.
11908 with_gnu_ld=unknown
11910 esac
11911 elif test "$with_gnu_ld" = yes; then
11912 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11913 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11914 else
11915 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11916 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11918 if test "${lt_cv_path_LD+set}" = set; then
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11920 else
11921 if test -z "$LD"; then
11922 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11923 for ac_dir in $PATH; do
11924 IFS="$lt_save_ifs"
11925 test -z "$ac_dir" && ac_dir=.
11926 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11927 lt_cv_path_LD="$ac_dir/$ac_prog"
11928 # Check to see if the program is GNU ld. I'd rather use --version,
11929 # but apparently some variants of GNU ld only accept -v.
11930 # Break only if it was the GNU/non-GNU ld that we prefer.
11931 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11932 *GNU* | *'with BFD'*)
11933 test "$with_gnu_ld" != no && break
11936 test "$with_gnu_ld" != yes && break
11938 esac
11940 done
11941 IFS="$lt_save_ifs"
11942 else
11943 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11947 LD="$lt_cv_path_LD"
11948 if test -n "$LD"; then
11949 { echo "$as_me:$LINENO: result: $LD" >&5
11950 echo "${ECHO_T}$LD" >&6; }
11951 else
11952 { echo "$as_me:$LINENO: result: no" >&5
11953 echo "${ECHO_T}no" >&6; }
11955 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11956 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11957 { (exit 1); exit 1; }; }
11958 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11959 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11960 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11961 echo $ECHO_N "(cached) $ECHO_C" >&6
11962 else
11963 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11964 case `$LD -v 2>&1 </dev/null` in
11965 *GNU* | *'with BFD'*)
11966 lt_cv_prog_gnu_ld=yes
11969 lt_cv_prog_gnu_ld=no
11971 esac
11973 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11974 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11975 with_gnu_ld=$lt_cv_prog_gnu_ld
11979 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11980 # archiving commands below assume that GNU ld is being used.
11981 if test "$with_gnu_ld" = yes; then
11982 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11983 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11985 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11986 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11988 # If archive_cmds runs LD, not CC, wlarc should be empty
11989 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11990 # investigate it a little bit more. (MM)
11991 wlarc='${wl}'
11993 # ancient GNU ld didn't support --whole-archive et. al.
11994 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11995 grep 'no-whole-archive' > /dev/null; then
11996 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11997 else
11998 whole_archive_flag_spec_CXX=
12000 else
12001 with_gnu_ld=no
12002 wlarc=
12004 # A generic and very simple default shared library creation
12005 # command for GNU C++ for the case where it uses the native
12006 # linker, instead of GNU ld. If possible, this setting should
12007 # overridden to take advantage of the native linker features on
12008 # the platform it is being used on.
12009 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12012 # Commands to make compiler produce verbose output that lists
12013 # what "hidden" libraries, object files and flags are used when
12014 # linking a shared library.
12015 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12017 else
12018 GXX=no
12019 with_gnu_ld=no
12020 wlarc=
12023 # PORTME: fill in a description of your system's C++ link characteristics
12024 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12025 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12026 ld_shlibs_CXX=yes
12027 case $host_os in
12028 aix3*)
12029 # FIXME: insert proper C++ library support
12030 ld_shlibs_CXX=no
12032 aix4* | aix5*)
12033 if test "$host_cpu" = ia64; then
12034 # On IA64, the linker does run time linking by default, so we don't
12035 # have to do anything special.
12036 aix_use_runtimelinking=no
12037 exp_sym_flag='-Bexport'
12038 no_entry_flag=""
12039 else
12040 aix_use_runtimelinking=no
12042 # Test if we are trying to use run time linking or normal
12043 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12044 # need to do runtime linking.
12045 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12046 for ld_flag in $LDFLAGS; do
12047 case $ld_flag in
12048 *-brtl*)
12049 aix_use_runtimelinking=yes
12050 break
12052 esac
12053 done
12055 esac
12057 exp_sym_flag='-bexport'
12058 no_entry_flag='-bnoentry'
12061 # When large executables or shared objects are built, AIX ld can
12062 # have problems creating the table of contents. If linking a library
12063 # or program results in "error TOC overflow" add -mminimal-toc to
12064 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12065 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12067 archive_cmds_CXX=''
12068 hardcode_direct_CXX=yes
12069 hardcode_libdir_separator_CXX=':'
12070 link_all_deplibs_CXX=yes
12072 if test "$GXX" = yes; then
12073 case $host_os in aix4.[012]|aix4.[012].*)
12074 # We only want to do this on AIX 4.2 and lower, the check
12075 # below for broken collect2 doesn't work under 4.3+
12076 collect2name=`${CC} -print-prog-name=collect2`
12077 if test -f "$collect2name" && \
12078 strings "$collect2name" | grep resolve_lib_name >/dev/null
12079 then
12080 # We have reworked collect2
12081 hardcode_direct_CXX=yes
12082 else
12083 # We have old collect2
12084 hardcode_direct_CXX=unsupported
12085 # It fails to find uninstalled libraries when the uninstalled
12086 # path is not listed in the libpath. Setting hardcode_minus_L
12087 # to unsupported forces relinking
12088 hardcode_minus_L_CXX=yes
12089 hardcode_libdir_flag_spec_CXX='-L$libdir'
12090 hardcode_libdir_separator_CXX=
12093 esac
12094 shared_flag='-shared'
12095 if test "$aix_use_runtimelinking" = yes; then
12096 shared_flag="$shared_flag "'${wl}-G'
12098 else
12099 # not using gcc
12100 if test "$host_cpu" = ia64; then
12101 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12102 # chokes on -Wl,-G. The following line is correct:
12103 shared_flag='-G'
12104 else
12105 if test "$aix_use_runtimelinking" = yes; then
12106 shared_flag='${wl}-G'
12107 else
12108 shared_flag='${wl}-bM:SRE'
12113 # It seems that -bexpall does not export symbols beginning with
12114 # underscore (_), so it is better to generate a list of symbols to export.
12115 always_export_symbols_CXX=yes
12116 if test "$aix_use_runtimelinking" = yes; then
12117 # Warning - without using the other runtime loading flags (-brtl),
12118 # -berok will link without error, but may produce a broken library.
12119 allow_undefined_flag_CXX='-berok'
12120 # Determine the default libpath from the value encoded in an empty executable.
12121 cat >conftest.$ac_ext <<_ACEOF
12122 /* confdefs.h. */
12123 _ACEOF
12124 cat confdefs.h >>conftest.$ac_ext
12125 cat >>conftest.$ac_ext <<_ACEOF
12126 /* end confdefs.h. */
12129 main ()
12133 return 0;
12135 _ACEOF
12136 rm -f conftest.$ac_objext conftest$ac_exeext
12137 if { (ac_try="$ac_link"
12138 case "(($ac_try" in
12139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140 *) ac_try_echo=$ac_try;;
12141 esac
12142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143 (eval "$ac_link") 2>conftest.er1
12144 ac_status=$?
12145 grep -v '^ *+' conftest.er1 >conftest.err
12146 rm -f conftest.er1
12147 cat conftest.err >&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); } && {
12150 test -z "$ac_cxx_werror_flag" ||
12151 test ! -s conftest.err
12152 } && test -s conftest$ac_exeext &&
12153 $as_test_x conftest$ac_exeext; then
12155 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12157 # Check for a 64-bit object if we didn't find anything.
12158 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12159 }'`; fi
12160 else
12161 echo "$as_me: failed program was:" >&5
12162 sed 's/^/| /' conftest.$ac_ext >&5
12167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12168 conftest$ac_exeext conftest.$ac_ext
12169 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12171 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12173 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12174 else
12175 if test "$host_cpu" = ia64; then
12176 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12177 allow_undefined_flag_CXX="-z nodefs"
12178 archive_expsym_cmds_CXX="\$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"
12179 else
12180 # Determine the default libpath from the value encoded in an empty executable.
12181 cat >conftest.$ac_ext <<_ACEOF
12182 /* confdefs.h. */
12183 _ACEOF
12184 cat confdefs.h >>conftest.$ac_ext
12185 cat >>conftest.$ac_ext <<_ACEOF
12186 /* end confdefs.h. */
12189 main ()
12193 return 0;
12195 _ACEOF
12196 rm -f conftest.$ac_objext conftest$ac_exeext
12197 if { (ac_try="$ac_link"
12198 case "(($ac_try" in
12199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12200 *) ac_try_echo=$ac_try;;
12201 esac
12202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12203 (eval "$ac_link") 2>conftest.er1
12204 ac_status=$?
12205 grep -v '^ *+' conftest.er1 >conftest.err
12206 rm -f conftest.er1
12207 cat conftest.err >&5
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); } && {
12210 test -z "$ac_cxx_werror_flag" ||
12211 test ! -s conftest.err
12212 } && test -s conftest$ac_exeext &&
12213 $as_test_x conftest$ac_exeext; then
12215 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12217 # Check for a 64-bit object if we didn't find anything.
12218 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12219 }'`; fi
12220 else
12221 echo "$as_me: failed program was:" >&5
12222 sed 's/^/| /' conftest.$ac_ext >&5
12227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12228 conftest$ac_exeext conftest.$ac_ext
12229 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12231 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12232 # Warning - without using the other run time loading flags,
12233 # -berok will link without error, but may produce a broken library.
12234 no_undefined_flag_CXX=' ${wl}-bernotok'
12235 allow_undefined_flag_CXX=' ${wl}-berok'
12236 # Exported symbols can be pulled into shared objects from archives
12237 whole_archive_flag_spec_CXX='$convenience'
12238 archive_cmds_need_lc_CXX=yes
12239 # This is similar to how AIX traditionally builds its shared libraries.
12240 archive_expsym_cmds_CXX="\$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'
12245 beos*)
12246 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12247 allow_undefined_flag_CXX=unsupported
12248 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12249 # support --undefined. This deserves some investigation. FIXME
12250 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12251 else
12252 ld_shlibs_CXX=no
12256 chorus*)
12257 case $cc_basename in
12259 # FIXME: insert proper C++ library support
12260 ld_shlibs_CXX=no
12262 esac
12265 cygwin* | mingw* | pw32*)
12266 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12267 # as there is no search path for DLLs.
12268 hardcode_libdir_flag_spec_CXX='-L$libdir'
12269 allow_undefined_flag_CXX=unsupported
12270 always_export_symbols_CXX=no
12271 enable_shared_with_static_runtimes_CXX=yes
12273 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12274 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12275 # If the export-symbols file already is a .def file (1st line
12276 # is EXPORTS), use it as is; otherwise, prepend...
12277 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12278 cp $export_symbols $output_objdir/$soname.def;
12279 else
12280 echo EXPORTS > $output_objdir/$soname.def;
12281 cat $export_symbols >> $output_objdir/$soname.def;
12283 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12284 else
12285 ld_shlibs_CXX=no
12288 darwin* | rhapsody*)
12289 case $host_os in
12290 rhapsody* | darwin1.[012])
12291 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12293 *) # Darwin 1.3 on
12294 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12295 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12296 else
12297 case ${MACOSX_DEPLOYMENT_TARGET} in
12298 10.[012])
12299 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12301 10.*)
12302 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12304 esac
12307 esac
12308 archive_cmds_need_lc_CXX=no
12309 hardcode_direct_CXX=no
12310 hardcode_automatic_CXX=yes
12311 hardcode_shlibpath_var_CXX=unsupported
12312 whole_archive_flag_spec_CXX=''
12313 link_all_deplibs_CXX=yes
12315 if test "$GXX" = yes ; then
12316 lt_int_apple_cc_single_mod=no
12317 output_verbose_link_cmd='echo'
12318 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12319 lt_int_apple_cc_single_mod=yes
12321 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12322 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12323 else
12324 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12326 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12327 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12328 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12329 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12330 else
12331 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12333 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12334 else
12335 case $cc_basename in
12336 xlc*)
12337 output_verbose_link_cmd='echo'
12338 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12339 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12340 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12341 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12342 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12345 ld_shlibs_CXX=no
12347 esac
12351 dgux*)
12352 case $cc_basename in
12353 ec++*)
12354 # FIXME: insert proper C++ library support
12355 ld_shlibs_CXX=no
12357 ghcx*)
12358 # Green Hills C++ Compiler
12359 # FIXME: insert proper C++ library support
12360 ld_shlibs_CXX=no
12363 # FIXME: insert proper C++ library support
12364 ld_shlibs_CXX=no
12366 esac
12368 freebsd[12]*)
12369 # C++ shared libraries reported to be fairly broken before switch to ELF
12370 ld_shlibs_CXX=no
12372 freebsd-elf*)
12373 archive_cmds_need_lc_CXX=no
12375 freebsd* | kfreebsd*-gnu | dragonfly*)
12376 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12377 # conventions
12378 ld_shlibs_CXX=yes
12380 gnu*)
12382 hpux9*)
12383 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12384 hardcode_libdir_separator_CXX=:
12385 export_dynamic_flag_spec_CXX='${wl}-E'
12386 hardcode_direct_CXX=yes
12387 hardcode_minus_L_CXX=yes # Not in the search PATH,
12388 # but as the default
12389 # location of the library.
12391 case $cc_basename in
12392 CC*)
12393 # FIXME: insert proper C++ library support
12394 ld_shlibs_CXX=no
12396 aCC*)
12397 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12398 # Commands to make compiler produce verbose output that lists
12399 # what "hidden" libraries, object files and flags are used when
12400 # linking a shared library.
12402 # There doesn't appear to be a way to prevent this compiler from
12403 # explicitly linking system object files so we need to strip them
12404 # from the output so that they don't get included in the library
12405 # dependencies.
12406 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12409 if test "$GXX" = yes; then
12410 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12411 else
12412 # FIXME: insert proper C++ library support
12413 ld_shlibs_CXX=no
12416 esac
12418 hpux10*|hpux11*)
12419 if test $with_gnu_ld = no; then
12420 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12421 hardcode_libdir_separator_CXX=:
12423 case $host_cpu in
12424 hppa*64*|ia64*)
12425 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12428 export_dynamic_flag_spec_CXX='${wl}-E'
12430 esac
12432 case $host_cpu in
12433 hppa*64*|ia64*)
12434 hardcode_direct_CXX=no
12435 hardcode_shlibpath_var_CXX=no
12438 hardcode_direct_CXX=yes
12439 hardcode_minus_L_CXX=yes # Not in the search PATH,
12440 # but as the default
12441 # location of the library.
12443 esac
12445 case $cc_basename in
12446 CC*)
12447 # FIXME: insert proper C++ library support
12448 ld_shlibs_CXX=no
12450 aCC*)
12451 case $host_cpu in
12452 hppa*64*)
12453 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12455 ia64*)
12456 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12459 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12461 esac
12462 # Commands to make compiler produce verbose output that lists
12463 # what "hidden" libraries, object files and flags are used when
12464 # linking a shared library.
12466 # There doesn't appear to be a way to prevent this compiler from
12467 # explicitly linking system object files so we need to strip them
12468 # from the output so that they don't get included in the library
12469 # dependencies.
12470 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12473 if test "$GXX" = yes; then
12474 if test $with_gnu_ld = no; then
12475 case $host_cpu in
12476 hppa*64*)
12477 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12479 ia64*)
12480 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12483 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12485 esac
12487 else
12488 # FIXME: insert proper C++ library support
12489 ld_shlibs_CXX=no
12492 esac
12494 interix3*)
12495 hardcode_direct_CXX=no
12496 hardcode_shlibpath_var_CXX=no
12497 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12498 export_dynamic_flag_spec_CXX='${wl}-E'
12499 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12500 # Instead, shared libraries are loaded at an image base (0x10000000 by
12501 # default) and relocated if they conflict, which is a slow very memory
12502 # consuming and fragmenting process. To avoid this, we pick a random,
12503 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12504 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12505 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12506 archive_expsym_cmds_CXX='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'
12508 irix5* | irix6*)
12509 case $cc_basename in
12510 CC*)
12511 # SGI C++
12512 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12514 # Archives containing C++ object files must be created using
12515 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12516 # necessary to make sure instantiated templates are included
12517 # in the archive.
12518 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12521 if test "$GXX" = yes; then
12522 if test "$with_gnu_ld" = no; then
12523 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12524 else
12525 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
12528 link_all_deplibs_CXX=yes
12530 esac
12531 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12532 hardcode_libdir_separator_CXX=:
12534 linux*)
12535 case $cc_basename in
12536 KCC*)
12537 # Kuck and Associates, Inc. (KAI) C++ Compiler
12539 # KCC will only create a shared library if the output file
12540 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12541 # to its proper name (with version) after linking.
12542 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12543 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12544 # Commands to make compiler produce verbose output that lists
12545 # what "hidden" libraries, object files and flags are used when
12546 # linking a shared library.
12548 # There doesn't appear to be a way to prevent this compiler from
12549 # explicitly linking system object files so we need to strip them
12550 # from the output so that they don't get included in the library
12551 # dependencies.
12552 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12554 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12555 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12557 # Archives containing C++ object files must be created using
12558 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12559 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12561 icpc*)
12562 # Intel C++
12563 with_gnu_ld=yes
12564 # version 8.0 and above of icpc choke on multiply defined symbols
12565 # if we add $predep_objects and $postdep_objects, however 7.1 and
12566 # earlier do not add the objects themselves.
12567 case `$CC -V 2>&1` in
12568 *"Version 7."*)
12569 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12570 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12572 *) # Version 8.0 or newer
12573 tmp_idyn=
12574 case $host_cpu in
12575 ia64*) tmp_idyn=' -i_dynamic';;
12576 esac
12577 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12578 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12580 esac
12581 archive_cmds_need_lc_CXX=no
12582 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12583 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12584 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12586 pgCC*)
12587 # Portland Group C++ compiler
12588 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12589 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12591 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12592 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12593 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12595 cxx*)
12596 # Compaq C++
12597 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12598 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12600 runpath_var=LD_RUN_PATH
12601 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12602 hardcode_libdir_separator_CXX=:
12604 # Commands to make compiler produce verbose output that lists
12605 # what "hidden" libraries, object files and flags are used when
12606 # linking a shared library.
12608 # There doesn't appear to be a way to prevent this compiler from
12609 # explicitly linking system object files so we need to strip them
12610 # from the output so that they don't get included in the library
12611 # dependencies.
12612 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12614 esac
12616 lynxos*)
12617 # FIXME: insert proper C++ library support
12618 ld_shlibs_CXX=no
12620 m88k*)
12621 # FIXME: insert proper C++ library support
12622 ld_shlibs_CXX=no
12624 mvs*)
12625 case $cc_basename in
12626 cxx*)
12627 # FIXME: insert proper C++ library support
12628 ld_shlibs_CXX=no
12631 # FIXME: insert proper C++ library support
12632 ld_shlibs_CXX=no
12634 esac
12636 netbsd*)
12637 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12638 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12639 wlarc=
12640 hardcode_libdir_flag_spec_CXX='-R$libdir'
12641 hardcode_direct_CXX=yes
12642 hardcode_shlibpath_var_CXX=no
12644 # Workaround some broken pre-1.5 toolchains
12645 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12647 openbsd2*)
12648 # C++ shared libraries are fairly broken
12649 ld_shlibs_CXX=no
12651 openbsd*)
12652 hardcode_direct_CXX=yes
12653 hardcode_shlibpath_var_CXX=no
12654 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12655 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12656 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12657 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12658 export_dynamic_flag_spec_CXX='${wl}-E'
12659 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12661 output_verbose_link_cmd='echo'
12663 osf3*)
12664 case $cc_basename in
12665 KCC*)
12666 # Kuck and Associates, Inc. (KAI) C++ Compiler
12668 # KCC will only create a shared library if the output file
12669 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12670 # to its proper name (with version) after linking.
12671 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12673 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12674 hardcode_libdir_separator_CXX=:
12676 # Archives containing C++ object files must be created using
12677 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12678 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12681 RCC*)
12682 # Rational C++ 2.4.1
12683 # FIXME: insert proper C++ library support
12684 ld_shlibs_CXX=no
12686 cxx*)
12687 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12688 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12690 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12691 hardcode_libdir_separator_CXX=:
12693 # Commands to make compiler produce verbose output that lists
12694 # what "hidden" libraries, object files and flags are used when
12695 # linking a shared library.
12697 # There doesn't appear to be a way to prevent this compiler from
12698 # explicitly linking system object files so we need to strip them
12699 # from the output so that they don't get included in the library
12700 # dependencies.
12701 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12704 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12705 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12706 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12708 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12709 hardcode_libdir_separator_CXX=:
12711 # Commands to make compiler produce verbose output that lists
12712 # what "hidden" libraries, object files and flags are used when
12713 # linking a shared library.
12714 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12716 else
12717 # FIXME: insert proper C++ library support
12718 ld_shlibs_CXX=no
12721 esac
12723 osf4* | osf5*)
12724 case $cc_basename in
12725 KCC*)
12726 # Kuck and Associates, Inc. (KAI) C++ Compiler
12728 # KCC will only create a shared library if the output file
12729 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12730 # to its proper name (with version) after linking.
12731 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12733 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12734 hardcode_libdir_separator_CXX=:
12736 # Archives containing C++ object files must be created using
12737 # the KAI C++ compiler.
12738 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12740 RCC*)
12741 # Rational C++ 2.4.1
12742 # FIXME: insert proper C++ library support
12743 ld_shlibs_CXX=no
12745 cxx*)
12746 allow_undefined_flag_CXX=' -expect_unresolved \*'
12747 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12748 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12749 echo "-hidden">> $lib.exp~
12750 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12751 $rm $lib.exp'
12753 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12754 hardcode_libdir_separator_CXX=:
12756 # Commands to make compiler produce verbose output that lists
12757 # what "hidden" libraries, object files and flags are used when
12758 # linking a shared library.
12760 # There doesn't appear to be a way to prevent this compiler from
12761 # explicitly linking system object files so we need to strip them
12762 # from the output so that they don't get included in the library
12763 # dependencies.
12764 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12767 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12768 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12769 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12771 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12772 hardcode_libdir_separator_CXX=:
12774 # Commands to make compiler produce verbose output that lists
12775 # what "hidden" libraries, object files and flags are used when
12776 # linking a shared library.
12777 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12779 else
12780 # FIXME: insert proper C++ library support
12781 ld_shlibs_CXX=no
12784 esac
12786 psos*)
12787 # FIXME: insert proper C++ library support
12788 ld_shlibs_CXX=no
12790 sunos4*)
12791 case $cc_basename in
12792 CC*)
12793 # Sun C++ 4.x
12794 # FIXME: insert proper C++ library support
12795 ld_shlibs_CXX=no
12797 lcc*)
12798 # Lucid
12799 # FIXME: insert proper C++ library support
12800 ld_shlibs_CXX=no
12803 # FIXME: insert proper C++ library support
12804 ld_shlibs_CXX=no
12806 esac
12808 solaris*)
12809 case $cc_basename in
12810 CC*)
12811 # Sun C++ 4.2, 5.x and Centerline C++
12812 archive_cmds_need_lc_CXX=yes
12813 no_undefined_flag_CXX=' -zdefs'
12814 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12815 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12816 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12818 hardcode_libdir_flag_spec_CXX='-R$libdir'
12819 hardcode_shlibpath_var_CXX=no
12820 case $host_os in
12821 solaris2.[0-5] | solaris2.[0-5].*) ;;
12823 # The C++ compiler is used as linker so we must use $wl
12824 # flag to pass the commands to the underlying system
12825 # linker. We must also pass each convience library through
12826 # to the system linker between allextract/defaultextract.
12827 # The C++ compiler will combine linker options so we
12828 # cannot just pass the convience library names through
12829 # without $wl.
12830 # Supported since Solaris 2.6 (maybe 2.5.1?)
12831 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12833 esac
12834 link_all_deplibs_CXX=yes
12836 output_verbose_link_cmd='echo'
12838 # Archives containing C++ object files must be created using
12839 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12840 # necessary to make sure instantiated templates are included
12841 # in the archive.
12842 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12844 gcx*)
12845 # Green Hills C++ Compiler
12846 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12848 # The C++ compiler must be used to create the archive.
12849 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12852 # GNU C++ compiler with Solaris linker
12853 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12854 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12855 if $CC --version | grep -v '^2\.7' > /dev/null; then
12856 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12857 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12858 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12860 # Commands to make compiler produce verbose output that lists
12861 # what "hidden" libraries, object files and flags are used when
12862 # linking a shared library.
12863 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12864 else
12865 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12866 # platform.
12867 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12868 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12869 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12871 # Commands to make compiler produce verbose output that lists
12872 # what "hidden" libraries, object files and flags are used when
12873 # linking a shared library.
12874 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12877 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12880 esac
12882 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12883 no_undefined_flag_CXX='${wl}-z,text'
12884 archive_cmds_need_lc_CXX=no
12885 hardcode_shlibpath_var_CXX=no
12886 runpath_var='LD_RUN_PATH'
12888 case $cc_basename in
12889 CC*)
12890 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12891 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12894 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12895 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12897 esac
12899 sysv5* | sco3.2v5* | sco5v6*)
12900 # Note: We can NOT use -z defs as we might desire, because we do not
12901 # link with -lc, and that would cause any symbols used from libc to
12902 # always be unresolved, which means just about no library would
12903 # ever link correctly. If we're not using GNU ld we use -z text
12904 # though, which does catch some bad symbols but isn't as heavy-handed
12905 # as -z defs.
12906 # For security reasons, it is highly recommended that you always
12907 # use absolute paths for naming shared libraries, and exclude the
12908 # DT_RUNPATH tag from executables and libraries. But doing so
12909 # requires that you compile everything twice, which is a pain.
12910 # So that behaviour is only enabled if SCOABSPATH is set to a
12911 # non-empty value in the environment. Most likely only useful for
12912 # creating official distributions of packages.
12913 # This is a hack until libtool officially supports absolute path
12914 # names for shared libraries.
12915 no_undefined_flag_CXX='${wl}-z,text'
12916 allow_undefined_flag_CXX='${wl}-z,nodefs'
12917 archive_cmds_need_lc_CXX=no
12918 hardcode_shlibpath_var_CXX=no
12919 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12920 hardcode_libdir_separator_CXX=':'
12921 link_all_deplibs_CXX=yes
12922 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12923 runpath_var='LD_RUN_PATH'
12925 case $cc_basename in
12926 CC*)
12927 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12928 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12931 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12932 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12934 esac
12936 tandem*)
12937 case $cc_basename in
12938 NCC*)
12939 # NonStop-UX NCC 3.20
12940 # FIXME: insert proper C++ library support
12941 ld_shlibs_CXX=no
12944 # FIXME: insert proper C++ library support
12945 ld_shlibs_CXX=no
12947 esac
12949 vxworks*)
12950 # FIXME: insert proper C++ library support
12951 ld_shlibs_CXX=no
12954 # FIXME: insert proper C++ library support
12955 ld_shlibs_CXX=no
12957 esac
12958 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12959 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12960 test "$ld_shlibs_CXX" = no && can_build_shared=no
12962 GCC_CXX="$GXX"
12963 LD_CXX="$LD"
12966 cat > conftest.$ac_ext <<EOF
12967 class Foo
12969 public:
12970 Foo (void) { a = 0; }
12971 private:
12972 int a;
12976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12977 (eval $ac_compile) 2>&5
12978 ac_status=$?
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); }; then
12981 # Parse the compiler output and extract the necessary
12982 # objects, libraries and library flags.
12984 # Sentinel used to keep track of whether or not we are before
12985 # the conftest object file.
12986 pre_test_object_deps_done=no
12988 # The `*' in the case matches for architectures that use `case' in
12989 # $output_verbose_cmd can trigger glob expansion during the loop
12990 # eval without this substitution.
12991 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12993 for p in `eval $output_verbose_link_cmd`; do
12994 case $p in
12996 -L* | -R* | -l*)
12997 # Some compilers place space between "-{L,R}" and the path.
12998 # Remove the space.
12999 if test $p = "-L" \
13000 || test $p = "-R"; then
13001 prev=$p
13002 continue
13003 else
13004 prev=
13007 if test "$pre_test_object_deps_done" = no; then
13008 case $p in
13009 -L* | -R*)
13010 # Internal compiler library paths should come after those
13011 # provided the user. The postdeps already come after the
13012 # user supplied libs so there is no need to process them.
13013 if test -z "$compiler_lib_search_path_CXX"; then
13014 compiler_lib_search_path_CXX="${prev}${p}"
13015 else
13016 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13019 # The "-l" case would never come before the object being
13020 # linked, so don't bother handling this case.
13021 esac
13022 else
13023 if test -z "$postdeps_CXX"; then
13024 postdeps_CXX="${prev}${p}"
13025 else
13026 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13031 *.$objext)
13032 # This assumes that the test object file only shows up
13033 # once in the compiler output.
13034 if test "$p" = "conftest.$objext"; then
13035 pre_test_object_deps_done=yes
13036 continue
13039 if test "$pre_test_object_deps_done" = no; then
13040 if test -z "$predep_objects_CXX"; then
13041 predep_objects_CXX="$p"
13042 else
13043 predep_objects_CXX="$predep_objects_CXX $p"
13045 else
13046 if test -z "$postdep_objects_CXX"; then
13047 postdep_objects_CXX="$p"
13048 else
13049 postdep_objects_CXX="$postdep_objects_CXX $p"
13054 *) ;; # Ignore the rest.
13056 esac
13057 done
13059 # Clean up.
13060 rm -f a.out a.exe
13061 else
13062 echo "libtool.m4: error: problem compiling CXX test program"
13065 $rm -f confest.$objext
13067 # PORTME: override above test on systems where it is broken
13068 case $host_os in
13069 interix3*)
13070 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13071 # hack all around it, let's just trust "g++" to DTRT.
13072 predep_objects_CXX=
13073 postdep_objects_CXX=
13074 postdeps_CXX=
13077 solaris*)
13078 case $cc_basename in
13079 CC*)
13080 # Adding this requires a known-good setup of shared libraries for
13081 # Sun compiler versions before 5.6, else PIC objects from an old
13082 # archive will be linked into the output, leading to subtle bugs.
13083 postdeps_CXX='-lCstd -lCrun'
13085 esac
13087 esac
13090 case " $postdeps_CXX " in
13091 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13092 esac
13094 lt_prog_compiler_wl_CXX=
13095 lt_prog_compiler_pic_CXX=
13096 lt_prog_compiler_static_CXX=
13098 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13099 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13101 # C++ specific cases for pic, static, wl, etc.
13102 if test "$GXX" = yes; then
13103 lt_prog_compiler_wl_CXX='-Wl,'
13104 lt_prog_compiler_static_CXX='-static'
13106 case $host_os in
13107 aix*)
13108 # All AIX code is PIC.
13109 if test "$host_cpu" = ia64; then
13110 # AIX 5 now supports IA64 processor
13111 lt_prog_compiler_static_CXX='-Bstatic'
13114 amigaos*)
13115 # FIXME: we need at least 68020 code to build shared libraries, but
13116 # adding the `-m68020' flag to GCC prevents building anything better,
13117 # like `-m68040'.
13118 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13120 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13121 # PIC is the default for these OSes.
13123 mingw* | os2* | pw32*)
13124 # This hack is so that the source file can tell whether it is being
13125 # built for inclusion in a dll (and should export symbols for example).
13126 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13128 darwin* | rhapsody*)
13129 # PIC is the default on this platform
13130 # Common symbols not allowed in MH_DYLIB files
13131 lt_prog_compiler_pic_CXX='-fno-common'
13133 *djgpp*)
13134 # DJGPP does not support shared libraries at all
13135 lt_prog_compiler_pic_CXX=
13137 interix3*)
13138 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13139 # Instead, we relocate shared libraries at runtime.
13141 sysv4*MP*)
13142 if test -d /usr/nec; then
13143 lt_prog_compiler_pic_CXX=-Kconform_pic
13146 hpux*)
13147 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13148 # not for PA HP-UX.
13149 case $host_cpu in
13150 hppa*64*|ia64*)
13153 lt_prog_compiler_pic_CXX='-fPIC'
13155 esac
13158 lt_prog_compiler_pic_CXX='-fPIC'
13160 esac
13161 else
13162 case $host_os in
13163 aix4* | aix5*)
13164 # All AIX code is PIC.
13165 if test "$host_cpu" = ia64; then
13166 # AIX 5 now supports IA64 processor
13167 lt_prog_compiler_static_CXX='-Bstatic'
13168 else
13169 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13172 chorus*)
13173 case $cc_basename in
13174 cxch68*)
13175 # Green Hills C++ Compiler
13176 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13178 esac
13180 darwin*)
13181 # PIC is the default on this platform
13182 # Common symbols not allowed in MH_DYLIB files
13183 case $cc_basename in
13184 xlc*)
13185 lt_prog_compiler_pic_CXX='-qnocommon'
13186 lt_prog_compiler_wl_CXX='-Wl,'
13188 esac
13190 dgux*)
13191 case $cc_basename in
13192 ec++*)
13193 lt_prog_compiler_pic_CXX='-KPIC'
13195 ghcx*)
13196 # Green Hills C++ Compiler
13197 lt_prog_compiler_pic_CXX='-pic'
13201 esac
13203 freebsd* | kfreebsd*-gnu | dragonfly*)
13204 # FreeBSD uses GNU C++
13206 hpux9* | hpux10* | hpux11*)
13207 case $cc_basename in
13208 CC*)
13209 lt_prog_compiler_wl_CXX='-Wl,'
13210 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13211 if test "$host_cpu" != ia64; then
13212 lt_prog_compiler_pic_CXX='+Z'
13215 aCC*)
13216 lt_prog_compiler_wl_CXX='-Wl,'
13217 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13218 case $host_cpu in
13219 hppa*64*|ia64*)
13220 # +Z the default
13223 lt_prog_compiler_pic_CXX='+Z'
13225 esac
13229 esac
13231 interix*)
13232 # This is c89, which is MS Visual C++ (no shared libs)
13233 # Anyone wants to do a port?
13235 irix5* | irix6* | nonstopux*)
13236 case $cc_basename in
13237 CC*)
13238 lt_prog_compiler_wl_CXX='-Wl,'
13239 lt_prog_compiler_static_CXX='-non_shared'
13240 # CC pic flag -KPIC is the default.
13244 esac
13246 linux*)
13247 case $cc_basename in
13248 KCC*)
13249 # KAI C++ Compiler
13250 lt_prog_compiler_wl_CXX='--backend -Wl,'
13251 lt_prog_compiler_pic_CXX='-fPIC'
13253 icpc* | ecpc*)
13254 # Intel C++
13255 lt_prog_compiler_wl_CXX='-Wl,'
13256 lt_prog_compiler_pic_CXX='-KPIC'
13257 lt_prog_compiler_static_CXX='-static'
13259 pgCC*)
13260 # Portland Group C++ compiler.
13261 lt_prog_compiler_wl_CXX='-Wl,'
13262 lt_prog_compiler_pic_CXX='-fpic'
13263 lt_prog_compiler_static_CXX='-Bstatic'
13265 cxx*)
13266 # Compaq C++
13267 # Make sure the PIC flag is empty. It appears that all Alpha
13268 # Linux and Compaq Tru64 Unix objects are PIC.
13269 lt_prog_compiler_pic_CXX=
13270 lt_prog_compiler_static_CXX='-non_shared'
13274 esac
13276 lynxos*)
13278 m88k*)
13280 mvs*)
13281 case $cc_basename in
13282 cxx*)
13283 lt_prog_compiler_pic_CXX='-W c,exportall'
13287 esac
13289 netbsd*)
13291 osf3* | osf4* | osf5*)
13292 case $cc_basename in
13293 KCC*)
13294 lt_prog_compiler_wl_CXX='--backend -Wl,'
13296 RCC*)
13297 # Rational C++ 2.4.1
13298 lt_prog_compiler_pic_CXX='-pic'
13300 cxx*)
13301 # Digital/Compaq C++
13302 lt_prog_compiler_wl_CXX='-Wl,'
13303 # Make sure the PIC flag is empty. It appears that all Alpha
13304 # Linux and Compaq Tru64 Unix objects are PIC.
13305 lt_prog_compiler_pic_CXX=
13306 lt_prog_compiler_static_CXX='-non_shared'
13310 esac
13312 psos*)
13314 solaris*)
13315 case $cc_basename in
13316 CC*)
13317 # Sun C++ 4.2, 5.x and Centerline C++
13318 lt_prog_compiler_pic_CXX='-KPIC'
13319 lt_prog_compiler_static_CXX='-Bstatic'
13320 lt_prog_compiler_wl_CXX='-Qoption ld '
13322 gcx*)
13323 # Green Hills C++ Compiler
13324 lt_prog_compiler_pic_CXX='-PIC'
13328 esac
13330 sunos4*)
13331 case $cc_basename in
13332 CC*)
13333 # Sun C++ 4.x
13334 lt_prog_compiler_pic_CXX='-pic'
13335 lt_prog_compiler_static_CXX='-Bstatic'
13337 lcc*)
13338 # Lucid
13339 lt_prog_compiler_pic_CXX='-pic'
13343 esac
13345 tandem*)
13346 case $cc_basename in
13347 NCC*)
13348 # NonStop-UX NCC 3.20
13349 lt_prog_compiler_pic_CXX='-KPIC'
13353 esac
13355 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13356 case $cc_basename in
13357 CC*)
13358 lt_prog_compiler_wl_CXX='-Wl,'
13359 lt_prog_compiler_pic_CXX='-KPIC'
13360 lt_prog_compiler_static_CXX='-Bstatic'
13362 esac
13364 vxworks*)
13367 lt_prog_compiler_can_build_shared_CXX=no
13369 esac
13372 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13373 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13376 # Check to make sure the PIC flag actually works.
13378 if test -n "$lt_prog_compiler_pic_CXX"; then
13380 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13381 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13382 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13383 echo $ECHO_N "(cached) $ECHO_C" >&6
13384 else
13385 lt_prog_compiler_pic_works_CXX=no
13386 ac_outfile=conftest.$ac_objext
13387 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13388 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13389 # Insert the option either (1) after the last *FLAGS variable, or
13390 # (2) before a word containing "conftest.", or (3) at the end.
13391 # Note that $ac_compile itself does not contain backslashes and begins
13392 # with a dollar sign (not a hyphen), so the echo should work correctly.
13393 # The option is referenced via a variable to avoid confusing sed.
13394 lt_compile=`echo "$ac_compile" | $SED \
13395 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13396 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13397 -e 's:$: $lt_compiler_flag:'`
13398 (eval echo "\"\$as_me:13398: $lt_compile\"" >&5)
13399 (eval "$lt_compile" 2>conftest.err)
13400 ac_status=$?
13401 cat conftest.err >&5
13402 echo "$as_me:13402: \$? = $ac_status" >&5
13403 if (exit $ac_status) && test -s "$ac_outfile"; then
13404 # The compiler can only warn and ignore the option if not recognized
13405 # So say no if there are warnings other than the usual output.
13406 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13407 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13408 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13409 lt_prog_compiler_pic_works_CXX=yes
13412 $rm conftest*
13415 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13416 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13418 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13419 case $lt_prog_compiler_pic_CXX in
13420 "" | " "*) ;;
13421 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13422 esac
13423 else
13424 lt_prog_compiler_pic_CXX=
13425 lt_prog_compiler_can_build_shared_CXX=no
13429 case $host_os in
13430 # For platforms which do not support PIC, -DPIC is meaningless:
13431 *djgpp*)
13432 lt_prog_compiler_pic_CXX=
13435 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13437 esac
13440 # Check to make sure the static flag actually works.
13442 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13443 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13444 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13445 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13446 echo $ECHO_N "(cached) $ECHO_C" >&6
13447 else
13448 lt_prog_compiler_static_works_CXX=no
13449 save_LDFLAGS="$LDFLAGS"
13450 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13451 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13452 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13453 # The linker can only warn and ignore the option if not recognized
13454 # So say no if there are warnings
13455 if test -s conftest.err; then
13456 # Append any errors to the config.log.
13457 cat conftest.err 1>&5
13458 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13459 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13460 if diff conftest.exp conftest.er2 >/dev/null; then
13461 lt_prog_compiler_static_works_CXX=yes
13463 else
13464 lt_prog_compiler_static_works_CXX=yes
13467 $rm conftest*
13468 LDFLAGS="$save_LDFLAGS"
13471 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13472 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13474 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13476 else
13477 lt_prog_compiler_static_CXX=
13481 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13482 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13483 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13484 echo $ECHO_N "(cached) $ECHO_C" >&6
13485 else
13486 lt_cv_prog_compiler_c_o_CXX=no
13487 $rm -r conftest 2>/dev/null
13488 mkdir conftest
13489 cd conftest
13490 mkdir out
13491 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13493 lt_compiler_flag="-o out/conftest2.$ac_objext"
13494 # Insert the option either (1) after the last *FLAGS variable, or
13495 # (2) before a word containing "conftest.", or (3) at the end.
13496 # Note that $ac_compile itself does not contain backslashes and begins
13497 # with a dollar sign (not a hyphen), so the echo should work correctly.
13498 lt_compile=`echo "$ac_compile" | $SED \
13499 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13500 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13501 -e 's:$: $lt_compiler_flag:'`
13502 (eval echo "\"\$as_me:13502: $lt_compile\"" >&5)
13503 (eval "$lt_compile" 2>out/conftest.err)
13504 ac_status=$?
13505 cat out/conftest.err >&5
13506 echo "$as_me:13506: \$? = $ac_status" >&5
13507 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13508 then
13509 # The compiler can only warn and ignore the option if not recognized
13510 # So say no if there are warnings
13511 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13512 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13513 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13514 lt_cv_prog_compiler_c_o_CXX=yes
13517 chmod u+w . 2>&5
13518 $rm conftest*
13519 # SGI C++ compiler will create directory out/ii_files/ for
13520 # template instantiation
13521 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13522 $rm out/* && rmdir out
13523 cd ..
13524 rmdir conftest
13525 $rm conftest*
13528 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13529 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13532 hard_links="nottested"
13533 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13534 # do not overwrite the value of need_locks provided by the user
13535 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13536 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13537 hard_links=yes
13538 $rm conftest*
13539 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13540 touch conftest.a
13541 ln conftest.a conftest.b 2>&5 || hard_links=no
13542 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13543 { echo "$as_me:$LINENO: result: $hard_links" >&5
13544 echo "${ECHO_T}$hard_links" >&6; }
13545 if test "$hard_links" = no; then
13546 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13547 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13548 need_locks=warn
13550 else
13551 need_locks=no
13554 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13555 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13557 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13558 case $host_os in
13559 aix4* | aix5*)
13560 # If we're using GNU nm, then we don't want the "-C" option.
13561 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13562 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13563 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13564 else
13565 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13568 pw32*)
13569 export_symbols_cmds_CXX="$ltdll_cmds"
13571 cygwin* | mingw*)
13572 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13575 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13577 esac
13579 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13580 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13581 test "$ld_shlibs_CXX" = no && can_build_shared=no
13584 # Do we need to explicitly link libc?
13586 case "x$archive_cmds_need_lc_CXX" in
13587 x|xyes)
13588 # Assume -lc should be added
13589 archive_cmds_need_lc_CXX=yes
13591 if test "$enable_shared" = yes && test "$GCC" = yes; then
13592 case $archive_cmds_CXX in
13593 *'~'*)
13594 # FIXME: we may have to deal with multi-command sequences.
13596 '$CC '*)
13597 # Test whether the compiler implicitly links with -lc since on some
13598 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13599 # to ld, don't add -lc before -lgcc.
13600 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13601 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13602 $rm conftest*
13603 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13606 (eval $ac_compile) 2>&5
13607 ac_status=$?
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); } 2>conftest.err; then
13610 soname=conftest
13611 lib=conftest
13612 libobjs=conftest.$ac_objext
13613 deplibs=
13614 wl=$lt_prog_compiler_wl_CXX
13615 pic_flag=$lt_prog_compiler_pic_CXX
13616 compiler_flags=-v
13617 linker_flags=-v
13618 verstring=
13619 output_objdir=.
13620 libname=conftest
13621 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13622 allow_undefined_flag_CXX=
13623 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13624 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13625 ac_status=$?
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); }
13628 then
13629 archive_cmds_need_lc_CXX=no
13630 else
13631 archive_cmds_need_lc_CXX=yes
13633 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13634 else
13635 cat conftest.err 1>&5
13637 $rm conftest*
13638 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13639 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13641 esac
13644 esac
13646 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13647 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13648 library_names_spec=
13649 libname_spec='lib$name'
13650 soname_spec=
13651 shrext_cmds=".so"
13652 postinstall_cmds=
13653 postuninstall_cmds=
13654 finish_cmds=
13655 finish_eval=
13656 shlibpath_var=
13657 shlibpath_overrides_runpath=unknown
13658 version_type=none
13659 dynamic_linker="$host_os ld.so"
13660 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13661 if test "$GCC" = yes; then
13662 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13663 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13664 # if the path contains ";" then we assume it to be the separator
13665 # otherwise default to the standard path separator (i.e. ":") - it is
13666 # assumed that no part of a normal pathname contains ";" but that should
13667 # okay in the real world where ";" in dirpaths is itself problematic.
13668 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13669 else
13670 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13672 else
13673 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13675 need_lib_prefix=unknown
13676 hardcode_into_libs=no
13678 # when you set need_version to no, make sure it does not cause -set_version
13679 # flags to be left without arguments
13680 need_version=unknown
13682 case $host_os in
13683 aix3*)
13684 version_type=linux
13685 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13686 shlibpath_var=LIBPATH
13688 # AIX 3 has no versioning support, so we append a major version to the name.
13689 soname_spec='${libname}${release}${shared_ext}$major'
13692 aix4* | aix5*)
13693 version_type=linux
13694 need_lib_prefix=no
13695 need_version=no
13696 hardcode_into_libs=yes
13697 if test "$host_cpu" = ia64; then
13698 # AIX 5 supports IA64
13699 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13700 shlibpath_var=LD_LIBRARY_PATH
13701 else
13702 # With GCC up to 2.95.x, collect2 would create an import file
13703 # for dependence libraries. The import file would start with
13704 # the line `#! .'. This would cause the generated library to
13705 # depend on `.', always an invalid library. This was fixed in
13706 # development snapshots of GCC prior to 3.0.
13707 case $host_os in
13708 aix4 | aix4.[01] | aix4.[01].*)
13709 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13710 echo ' yes '
13711 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13713 else
13714 can_build_shared=no
13717 esac
13718 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13719 # soname into executable. Probably we can add versioning support to
13720 # collect2, so additional links can be useful in future.
13721 if test "$aix_use_runtimelinking" = yes; then
13722 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13723 # instead of lib<name>.a to let people know that these are not
13724 # typical AIX shared libraries.
13725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13726 else
13727 # We preserve .a as extension for shared libraries through AIX4.2
13728 # and later when we are not doing run time linking.
13729 library_names_spec='${libname}${release}.a $libname.a'
13730 soname_spec='${libname}${release}${shared_ext}$major'
13732 shlibpath_var=LIBPATH
13736 amigaos*)
13737 library_names_spec='$libname.ixlibrary $libname.a'
13738 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13739 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'
13742 beos*)
13743 library_names_spec='${libname}${shared_ext}'
13744 dynamic_linker="$host_os ld.so"
13745 shlibpath_var=LIBRARY_PATH
13748 bsdi[45]*)
13749 version_type=linux
13750 need_version=no
13751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13752 soname_spec='${libname}${release}${shared_ext}$major'
13753 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13754 shlibpath_var=LD_LIBRARY_PATH
13755 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13756 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13757 # the default ld.so.conf also contains /usr/contrib/lib and
13758 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13759 # libtool to hard-code these into programs
13762 cygwin* | mingw* | pw32*)
13763 version_type=windows
13764 shrext_cmds=".dll"
13765 need_version=no
13766 need_lib_prefix=no
13768 case $GCC,$host_os in
13769 yes,cygwin* | yes,mingw* | yes,pw32*)
13770 library_names_spec='$libname.dll.a'
13771 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13772 postinstall_cmds='base_file=`basename \${file}`~
13773 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13774 dldir=$destdir/`dirname \$dlpath`~
13775 test -d \$dldir || mkdir -p \$dldir~
13776 $install_prog $dir/$dlname \$dldir/$dlname~
13777 chmod a+x \$dldir/$dlname'
13778 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13779 dlpath=$dir/\$dldll~
13780 $rm \$dlpath'
13781 shlibpath_overrides_runpath=yes
13783 case $host_os in
13784 cygwin*)
13785 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13786 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13787 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13789 mingw*)
13790 # MinGW DLLs use traditional 'lib' prefix
13791 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13792 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13793 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13794 # It is most probably a Windows format PATH printed by
13795 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13796 # path with ; separators, and with drive letters. We can handle the
13797 # drive letters (cygwin fileutils understands them), so leave them,
13798 # especially as we might pass files found there to a mingw objdump,
13799 # which wouldn't understand a cygwinified path. Ahh.
13800 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13801 else
13802 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13805 pw32*)
13806 # pw32 DLLs use 'pw' prefix rather than 'lib'
13807 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13809 esac
13813 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13815 esac
13816 dynamic_linker='Win32 ld.exe'
13817 # FIXME: first we should search . and the directory the executable is in
13818 shlibpath_var=PATH
13821 darwin* | rhapsody*)
13822 dynamic_linker="$host_os dyld"
13823 version_type=darwin
13824 need_lib_prefix=no
13825 need_version=no
13826 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13827 soname_spec='${libname}${release}${major}$shared_ext'
13828 shlibpath_overrides_runpath=yes
13829 shlibpath_var=DYLD_LIBRARY_PATH
13830 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13831 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13832 if test "$GCC" = yes; then
13833 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13834 else
13835 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13837 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13840 dgux*)
13841 version_type=linux
13842 need_lib_prefix=no
13843 need_version=no
13844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13845 soname_spec='${libname}${release}${shared_ext}$major'
13846 shlibpath_var=LD_LIBRARY_PATH
13849 freebsd1*)
13850 dynamic_linker=no
13853 kfreebsd*-gnu)
13854 version_type=linux
13855 need_lib_prefix=no
13856 need_version=no
13857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13858 soname_spec='${libname}${release}${shared_ext}$major'
13859 shlibpath_var=LD_LIBRARY_PATH
13860 shlibpath_overrides_runpath=no
13861 hardcode_into_libs=yes
13862 dynamic_linker='GNU ld.so'
13865 freebsd* | dragonfly*)
13866 # DragonFly does not have aout. When/if they implement a new
13867 # versioning mechanism, adjust this.
13868 if test -x /usr/bin/objformat; then
13869 objformat=`/usr/bin/objformat`
13870 else
13871 case $host_os in
13872 freebsd[123]*) objformat=aout ;;
13873 *) objformat=elf ;;
13874 esac
13876 version_type=freebsd-$objformat
13877 case $version_type in
13878 freebsd-elf*)
13879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13880 need_version=no
13881 need_lib_prefix=no
13883 freebsd-*)
13884 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13885 need_version=yes
13887 esac
13888 shlibpath_var=LD_LIBRARY_PATH
13889 case $host_os in
13890 freebsd2*)
13891 shlibpath_overrides_runpath=yes
13893 freebsd3.[01]* | freebsdelf3.[01]*)
13894 shlibpath_overrides_runpath=yes
13895 hardcode_into_libs=yes
13897 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13898 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13899 shlibpath_overrides_runpath=no
13900 hardcode_into_libs=yes
13902 freebsd*) # from 4.6 on
13903 shlibpath_overrides_runpath=yes
13904 hardcode_into_libs=yes
13906 esac
13909 gnu*)
13910 version_type=linux
13911 need_lib_prefix=no
13912 need_version=no
13913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13914 soname_spec='${libname}${release}${shared_ext}$major'
13915 shlibpath_var=LD_LIBRARY_PATH
13916 hardcode_into_libs=yes
13919 hpux9* | hpux10* | hpux11*)
13920 # Give a soname corresponding to the major version so that dld.sl refuses to
13921 # link against other versions.
13922 version_type=sunos
13923 need_lib_prefix=no
13924 need_version=no
13925 case $host_cpu in
13926 ia64*)
13927 shrext_cmds='.so'
13928 hardcode_into_libs=yes
13929 dynamic_linker="$host_os dld.so"
13930 shlibpath_var=LD_LIBRARY_PATH
13931 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13933 soname_spec='${libname}${release}${shared_ext}$major'
13934 if test "X$HPUX_IA64_MODE" = X32; then
13935 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13936 else
13937 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13939 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13941 hppa*64*)
13942 shrext_cmds='.sl'
13943 hardcode_into_libs=yes
13944 dynamic_linker="$host_os dld.sl"
13945 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13946 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13948 soname_spec='${libname}${release}${shared_ext}$major'
13949 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13950 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13953 shrext_cmds='.sl'
13954 dynamic_linker="$host_os dld.sl"
13955 shlibpath_var=SHLIB_PATH
13956 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13958 soname_spec='${libname}${release}${shared_ext}$major'
13960 esac
13961 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13962 postinstall_cmds='chmod 555 $lib'
13965 interix3*)
13966 version_type=linux
13967 need_lib_prefix=no
13968 need_version=no
13969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13970 soname_spec='${libname}${release}${shared_ext}$major'
13971 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13972 shlibpath_var=LD_LIBRARY_PATH
13973 shlibpath_overrides_runpath=no
13974 hardcode_into_libs=yes
13977 irix5* | irix6* | nonstopux*)
13978 case $host_os in
13979 nonstopux*) version_type=nonstopux ;;
13981 if test "$lt_cv_prog_gnu_ld" = yes; then
13982 version_type=linux
13983 else
13984 version_type=irix
13985 fi ;;
13986 esac
13987 need_lib_prefix=no
13988 need_version=no
13989 soname_spec='${libname}${release}${shared_ext}$major'
13990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13991 case $host_os in
13992 irix5* | nonstopux*)
13993 libsuff= shlibsuff=
13996 case $LD in # libtool.m4 will add one of these switches to LD
13997 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13998 libsuff= shlibsuff= libmagic=32-bit;;
13999 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14000 libsuff=32 shlibsuff=N32 libmagic=N32;;
14001 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14002 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14003 *) libsuff= shlibsuff= libmagic=never-match;;
14004 esac
14006 esac
14007 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14008 shlibpath_overrides_runpath=no
14009 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14010 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14011 hardcode_into_libs=yes
14014 # No shared lib support for Linux oldld, aout, or coff.
14015 linux*oldld* | linux*aout* | linux*coff*)
14016 dynamic_linker=no
14019 # This must be Linux ELF.
14020 linux*)
14021 version_type=linux
14022 need_lib_prefix=no
14023 need_version=no
14024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14025 soname_spec='${libname}${release}${shared_ext}$major'
14026 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14027 shlibpath_var=LD_LIBRARY_PATH
14028 shlibpath_overrides_runpath=no
14029 # This implies no fast_install, which is unacceptable.
14030 # Some rework will be needed to allow for fast_install
14031 # before this can be enabled.
14032 hardcode_into_libs=yes
14034 # Append ld.so.conf contents to the search path
14035 if test -f /etc/ld.so.conf; then
14036 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14037 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14040 # We used to test for /lib/ld.so.1 and disable shared libraries on
14041 # powerpc, because MkLinux only supported shared libraries with the
14042 # GNU dynamic linker. Since this was broken with cross compilers,
14043 # most powerpc-linux boxes support dynamic linking these days and
14044 # people can always --disable-shared, the test was removed, and we
14045 # assume the GNU/Linux dynamic linker is in use.
14046 dynamic_linker='GNU/Linux ld.so'
14049 knetbsd*-gnu)
14050 version_type=linux
14051 need_lib_prefix=no
14052 need_version=no
14053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14054 soname_spec='${libname}${release}${shared_ext}$major'
14055 shlibpath_var=LD_LIBRARY_PATH
14056 shlibpath_overrides_runpath=no
14057 hardcode_into_libs=yes
14058 dynamic_linker='GNU ld.so'
14061 netbsd*)
14062 version_type=sunos
14063 need_lib_prefix=no
14064 need_version=no
14065 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14067 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14068 dynamic_linker='NetBSD (a.out) ld.so'
14069 else
14070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14071 soname_spec='${libname}${release}${shared_ext}$major'
14072 dynamic_linker='NetBSD ld.elf_so'
14074 shlibpath_var=LD_LIBRARY_PATH
14075 shlibpath_overrides_runpath=yes
14076 hardcode_into_libs=yes
14079 newsos6)
14080 version_type=linux
14081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14082 shlibpath_var=LD_LIBRARY_PATH
14083 shlibpath_overrides_runpath=yes
14086 nto-qnx*)
14087 version_type=linux
14088 need_lib_prefix=no
14089 need_version=no
14090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14091 soname_spec='${libname}${release}${shared_ext}$major'
14092 shlibpath_var=LD_LIBRARY_PATH
14093 shlibpath_overrides_runpath=yes
14096 openbsd*)
14097 version_type=sunos
14098 sys_lib_dlsearch_path_spec="/usr/lib"
14099 need_lib_prefix=no
14100 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14101 case $host_os in
14102 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14103 *) need_version=no ;;
14104 esac
14105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14107 shlibpath_var=LD_LIBRARY_PATH
14108 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14109 case $host_os in
14110 openbsd2.[89] | openbsd2.[89].*)
14111 shlibpath_overrides_runpath=no
14114 shlibpath_overrides_runpath=yes
14116 esac
14117 else
14118 shlibpath_overrides_runpath=yes
14122 os2*)
14123 libname_spec='$name'
14124 shrext_cmds=".dll"
14125 need_lib_prefix=no
14126 library_names_spec='$libname${shared_ext} $libname.a'
14127 dynamic_linker='OS/2 ld.exe'
14128 shlibpath_var=LIBPATH
14131 osf3* | osf4* | osf5*)
14132 version_type=osf
14133 need_lib_prefix=no
14134 need_version=no
14135 soname_spec='${libname}${release}${shared_ext}$major'
14136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14137 shlibpath_var=LD_LIBRARY_PATH
14138 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14139 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14142 solaris*)
14143 version_type=linux
14144 need_lib_prefix=no
14145 need_version=no
14146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14147 soname_spec='${libname}${release}${shared_ext}$major'
14148 shlibpath_var=LD_LIBRARY_PATH
14149 shlibpath_overrides_runpath=yes
14150 hardcode_into_libs=yes
14151 # ldd complains unless libraries are executable
14152 postinstall_cmds='chmod +x $lib'
14155 sunos4*)
14156 version_type=sunos
14157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14158 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14159 shlibpath_var=LD_LIBRARY_PATH
14160 shlibpath_overrides_runpath=yes
14161 if test "$with_gnu_ld" = yes; then
14162 need_lib_prefix=no
14164 need_version=yes
14167 sysv4 | sysv4.3*)
14168 version_type=linux
14169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14170 soname_spec='${libname}${release}${shared_ext}$major'
14171 shlibpath_var=LD_LIBRARY_PATH
14172 case $host_vendor in
14173 sni)
14174 shlibpath_overrides_runpath=no
14175 need_lib_prefix=no
14176 export_dynamic_flag_spec='${wl}-Blargedynsym'
14177 runpath_var=LD_RUN_PATH
14179 siemens)
14180 need_lib_prefix=no
14182 motorola)
14183 need_lib_prefix=no
14184 need_version=no
14185 shlibpath_overrides_runpath=no
14186 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14188 esac
14191 sysv4*MP*)
14192 if test -d /usr/nec ;then
14193 version_type=linux
14194 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14195 soname_spec='$libname${shared_ext}.$major'
14196 shlibpath_var=LD_LIBRARY_PATH
14200 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14201 version_type=freebsd-elf
14202 need_lib_prefix=no
14203 need_version=no
14204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14205 soname_spec='${libname}${release}${shared_ext}$major'
14206 shlibpath_var=LD_LIBRARY_PATH
14207 hardcode_into_libs=yes
14208 if test "$with_gnu_ld" = yes; then
14209 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14210 shlibpath_overrides_runpath=no
14211 else
14212 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14213 shlibpath_overrides_runpath=yes
14214 case $host_os in
14215 sco3.2v5*)
14216 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14218 esac
14220 sys_lib_dlsearch_path_spec='/usr/lib'
14223 uts4*)
14224 version_type=linux
14225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14226 soname_spec='${libname}${release}${shared_ext}$major'
14227 shlibpath_var=LD_LIBRARY_PATH
14231 dynamic_linker=no
14233 esac
14234 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14235 echo "${ECHO_T}$dynamic_linker" >&6; }
14236 test "$dynamic_linker" = no && can_build_shared=no
14238 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14239 if test "$GCC" = yes; then
14240 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14243 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14244 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14245 hardcode_action_CXX=
14246 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14247 test -n "$runpath_var_CXX" || \
14248 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14250 # We can hardcode non-existant directories.
14251 if test "$hardcode_direct_CXX" != no &&
14252 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14253 # have to relink, otherwise we might link with an installed library
14254 # when we should be linking with a yet-to-be-installed one
14255 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14256 test "$hardcode_minus_L_CXX" != no; then
14257 # Linking always hardcodes the temporary library directory.
14258 hardcode_action_CXX=relink
14259 else
14260 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14261 hardcode_action_CXX=immediate
14263 else
14264 # We cannot hardcode anything, or else we can only hardcode existing
14265 # directories.
14266 hardcode_action_CXX=unsupported
14268 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14269 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14271 if test "$hardcode_action_CXX" = relink; then
14272 # Fast installation is not supported
14273 enable_fast_install=no
14274 elif test "$shlibpath_overrides_runpath" = yes ||
14275 test "$enable_shared" = no; then
14276 # Fast installation is not necessary
14277 enable_fast_install=needless
14281 # The else clause should only fire when bootstrapping the
14282 # libtool distribution, otherwise you forgot to ship ltmain.sh
14283 # with your package, and you will get complaints that there are
14284 # no rules to generate ltmain.sh.
14285 if test -f "$ltmain"; then
14286 # See if we are running on zsh, and set the options which allow our commands through
14287 # without removal of \ escapes.
14288 if test -n "${ZSH_VERSION+set}" ; then
14289 setopt NO_GLOB_SUBST
14291 # Now quote all the things that may contain metacharacters while being
14292 # careful not to overquote the AC_SUBSTed values. We take copies of the
14293 # variables and quote the copies for generation of the libtool script.
14294 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14295 SED SHELL STRIP \
14296 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14297 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14298 deplibs_check_method reload_flag reload_cmds need_locks \
14299 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14300 lt_cv_sys_global_symbol_to_c_name_address \
14301 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14302 old_postinstall_cmds old_postuninstall_cmds \
14303 compiler_CXX \
14304 CC_CXX \
14305 LD_CXX \
14306 lt_prog_compiler_wl_CXX \
14307 lt_prog_compiler_pic_CXX \
14308 lt_prog_compiler_static_CXX \
14309 lt_prog_compiler_no_builtin_flag_CXX \
14310 export_dynamic_flag_spec_CXX \
14311 thread_safe_flag_spec_CXX \
14312 whole_archive_flag_spec_CXX \
14313 enable_shared_with_static_runtimes_CXX \
14314 old_archive_cmds_CXX \
14315 old_archive_from_new_cmds_CXX \
14316 predep_objects_CXX \
14317 postdep_objects_CXX \
14318 predeps_CXX \
14319 postdeps_CXX \
14320 compiler_lib_search_path_CXX \
14321 archive_cmds_CXX \
14322 archive_expsym_cmds_CXX \
14323 postinstall_cmds_CXX \
14324 postuninstall_cmds_CXX \
14325 old_archive_from_expsyms_cmds_CXX \
14326 allow_undefined_flag_CXX \
14327 no_undefined_flag_CXX \
14328 export_symbols_cmds_CXX \
14329 hardcode_libdir_flag_spec_CXX \
14330 hardcode_libdir_flag_spec_ld_CXX \
14331 hardcode_libdir_separator_CXX \
14332 hardcode_automatic_CXX \
14333 module_cmds_CXX \
14334 module_expsym_cmds_CXX \
14335 lt_cv_prog_compiler_c_o_CXX \
14336 exclude_expsyms_CXX \
14337 include_expsyms_CXX; do
14339 case $var in
14340 old_archive_cmds_CXX | \
14341 old_archive_from_new_cmds_CXX | \
14342 archive_cmds_CXX | \
14343 archive_expsym_cmds_CXX | \
14344 module_cmds_CXX | \
14345 module_expsym_cmds_CXX | \
14346 old_archive_from_expsyms_cmds_CXX | \
14347 export_symbols_cmds_CXX | \
14348 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14349 postinstall_cmds | postuninstall_cmds | \
14350 old_postinstall_cmds | old_postuninstall_cmds | \
14351 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14352 # Double-quote double-evaled strings.
14353 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14356 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14358 esac
14359 done
14361 case $lt_echo in
14362 *'\$0 --fallback-echo"')
14363 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14365 esac
14367 cfgfile="$ofile"
14369 cat <<__EOF__ >> "$cfgfile"
14370 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14372 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14374 # Shell to use when invoking shell scripts.
14375 SHELL=$lt_SHELL
14377 # Whether or not to build shared libraries.
14378 build_libtool_libs=$enable_shared
14380 # Whether or not to build static libraries.
14381 build_old_libs=$enable_static
14383 # Whether or not to add -lc for building shared libraries.
14384 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14386 # Whether or not to disallow shared libs when runtime libs are static
14387 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14389 # Whether or not to optimize for fast installation.
14390 fast_install=$enable_fast_install
14392 # The host system.
14393 host_alias=$host_alias
14394 host=$host
14395 host_os=$host_os
14397 # The build system.
14398 build_alias=$build_alias
14399 build=$build
14400 build_os=$build_os
14402 # An echo program that does not interpret backslashes.
14403 echo=$lt_echo
14405 # The archiver.
14406 AR=$lt_AR
14407 AR_FLAGS=$lt_AR_FLAGS
14409 # A C compiler.
14410 LTCC=$lt_LTCC
14412 # LTCC compiler flags.
14413 LTCFLAGS=$lt_LTCFLAGS
14415 # A language-specific compiler.
14416 CC=$lt_compiler_CXX
14418 # Is the compiler the GNU C compiler?
14419 with_gcc=$GCC_CXX
14421 # An ERE matcher.
14422 EGREP=$lt_EGREP
14424 # The linker used to build libraries.
14425 LD=$lt_LD_CXX
14427 # Whether we need hard or soft links.
14428 LN_S=$lt_LN_S
14430 # A BSD-compatible nm program.
14431 NM=$lt_NM
14433 # A symbol stripping program
14434 STRIP=$lt_STRIP
14436 # Used to examine libraries when file_magic_cmd begins "file"
14437 MAGIC_CMD=$MAGIC_CMD
14439 # Used on cygwin: DLL creation program.
14440 DLLTOOL="$DLLTOOL"
14442 # Used on cygwin: object dumper.
14443 OBJDUMP="$OBJDUMP"
14445 # Used on cygwin: assembler.
14446 AS="$AS"
14448 # The name of the directory that contains temporary libtool files.
14449 objdir=$objdir
14451 # How to create reloadable object files.
14452 reload_flag=$lt_reload_flag
14453 reload_cmds=$lt_reload_cmds
14455 # How to pass a linker flag through the compiler.
14456 wl=$lt_lt_prog_compiler_wl_CXX
14458 # Object file suffix (normally "o").
14459 objext="$ac_objext"
14461 # Old archive suffix (normally "a").
14462 libext="$libext"
14464 # Shared library suffix (normally ".so").
14465 shrext_cmds='$shrext_cmds'
14467 # Executable file suffix (normally "").
14468 exeext="$exeext"
14470 # Additional compiler flags for building library objects.
14471 pic_flag=$lt_lt_prog_compiler_pic_CXX
14472 pic_mode=$pic_mode
14474 # What is the maximum length of a command?
14475 max_cmd_len=$lt_cv_sys_max_cmd_len
14477 # Does compiler simultaneously support -c and -o options?
14478 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14480 # Must we lock files when doing compilation?
14481 need_locks=$lt_need_locks
14483 # Do we need the lib prefix for modules?
14484 need_lib_prefix=$need_lib_prefix
14486 # Do we need a version for libraries?
14487 need_version=$need_version
14489 # Whether dlopen is supported.
14490 dlopen_support=$enable_dlopen
14492 # Whether dlopen of programs is supported.
14493 dlopen_self=$enable_dlopen_self
14495 # Whether dlopen of statically linked programs is supported.
14496 dlopen_self_static=$enable_dlopen_self_static
14498 # Compiler flag to prevent dynamic linking.
14499 link_static_flag=$lt_lt_prog_compiler_static_CXX
14501 # Compiler flag to turn off builtin functions.
14502 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14504 # Compiler flag to allow reflexive dlopens.
14505 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14507 # Compiler flag to generate shared objects directly from archives.
14508 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14510 # Compiler flag to generate thread-safe objects.
14511 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14513 # Library versioning type.
14514 version_type=$version_type
14516 # Format of library name prefix.
14517 libname_spec=$lt_libname_spec
14519 # List of archive names. First name is the real one, the rest are links.
14520 # The last name is the one that the linker finds with -lNAME.
14521 library_names_spec=$lt_library_names_spec
14523 # The coded name of the library, if different from the real name.
14524 soname_spec=$lt_soname_spec
14526 # Commands used to build and install an old-style archive.
14527 RANLIB=$lt_RANLIB
14528 old_archive_cmds=$lt_old_archive_cmds_CXX
14529 old_postinstall_cmds=$lt_old_postinstall_cmds
14530 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14532 # Create an old-style archive from a shared archive.
14533 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14535 # Create a temporary old-style archive to link instead of a shared archive.
14536 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14538 # Commands used to build and install a shared archive.
14539 archive_cmds=$lt_archive_cmds_CXX
14540 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14541 postinstall_cmds=$lt_postinstall_cmds
14542 postuninstall_cmds=$lt_postuninstall_cmds
14544 # Commands used to build a loadable module (assumed same as above if empty)
14545 module_cmds=$lt_module_cmds_CXX
14546 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14548 # Commands to strip libraries.
14549 old_striplib=$lt_old_striplib
14550 striplib=$lt_striplib
14552 # Dependencies to place before the objects being linked to create a
14553 # shared library.
14554 predep_objects=$lt_predep_objects_CXX
14556 # Dependencies to place after the objects being linked to create a
14557 # shared library.
14558 postdep_objects=$lt_postdep_objects_CXX
14560 # Dependencies to place before the objects being linked to create a
14561 # shared library.
14562 predeps=$lt_predeps_CXX
14564 # Dependencies to place after the objects being linked to create a
14565 # shared library.
14566 postdeps=$lt_postdeps_CXX
14568 # The library search path used internally by the compiler when linking
14569 # a shared library.
14570 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14572 # Method to check whether dependent libraries are shared objects.
14573 deplibs_check_method=$lt_deplibs_check_method
14575 # Command to use when deplibs_check_method == file_magic.
14576 file_magic_cmd=$lt_file_magic_cmd
14578 # Flag that allows shared libraries with undefined symbols to be built.
14579 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14581 # Flag that forces no undefined symbols.
14582 no_undefined_flag=$lt_no_undefined_flag_CXX
14584 # Commands used to finish a libtool library installation in a directory.
14585 finish_cmds=$lt_finish_cmds
14587 # Same as above, but a single script fragment to be evaled but not shown.
14588 finish_eval=$lt_finish_eval
14590 # Take the output of nm and produce a listing of raw symbols and C names.
14591 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14593 # Transform the output of nm in a proper C declaration
14594 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14596 # Transform the output of nm in a C name address pair
14597 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14599 # This is the shared library runtime path variable.
14600 runpath_var=$runpath_var
14602 # This is the shared library path variable.
14603 shlibpath_var=$shlibpath_var
14605 # Is shlibpath searched before the hard-coded library search path?
14606 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14608 # How to hardcode a shared library path into an executable.
14609 hardcode_action=$hardcode_action_CXX
14611 # Whether we should hardcode library paths into libraries.
14612 hardcode_into_libs=$hardcode_into_libs
14614 # Flag to hardcode \$libdir into a binary during linking.
14615 # This must work even if \$libdir does not exist.
14616 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14618 # If ld is used when linking, flag to hardcode \$libdir into
14619 # a binary during linking. This must work even if \$libdir does
14620 # not exist.
14621 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14623 # Whether we need a single -rpath flag with a separated argument.
14624 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14626 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14627 # resulting binary.
14628 hardcode_direct=$hardcode_direct_CXX
14630 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14631 # resulting binary.
14632 hardcode_minus_L=$hardcode_minus_L_CXX
14634 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14635 # the resulting binary.
14636 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14638 # Set to yes if building a shared library automatically hardcodes DIR into the library
14639 # and all subsequent libraries and executables linked against it.
14640 hardcode_automatic=$hardcode_automatic_CXX
14642 # Variables whose values should be saved in libtool wrapper scripts and
14643 # restored at relink time.
14644 variables_saved_for_relink="$variables_saved_for_relink"
14646 # Whether libtool must link a program against all its dependency libraries.
14647 link_all_deplibs=$link_all_deplibs_CXX
14649 # Compile-time system search path for libraries
14650 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14652 # Run-time system search path for libraries
14653 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14655 # Fix the shell variable \$srcfile for the compiler.
14656 fix_srcfile_path="$fix_srcfile_path_CXX"
14658 # Set to yes if exported symbols are required.
14659 always_export_symbols=$always_export_symbols_CXX
14661 # The commands to list exported symbols.
14662 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14664 # The commands to extract the exported symbol list from a shared archive.
14665 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14667 # Symbols that should not be listed in the preloaded symbols.
14668 exclude_expsyms=$lt_exclude_expsyms_CXX
14670 # Symbols that must always be exported.
14671 include_expsyms=$lt_include_expsyms_CXX
14673 # ### END LIBTOOL TAG CONFIG: $tagname
14675 __EOF__
14678 else
14679 # If there is no Makefile yet, we rely on a make rule to execute
14680 # `config.status --recheck' to rerun these tests and create the
14681 # libtool script then.
14682 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14683 if test -f "$ltmain_in"; then
14684 test -f Makefile && make "$ltmain"
14689 ac_ext=c
14690 ac_cpp='$CPP $CPPFLAGS'
14691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14695 CC=$lt_save_CC
14696 LDCXX=$LD
14697 LD=$lt_save_LD
14698 GCC=$lt_save_GCC
14699 with_gnu_ldcxx=$with_gnu_ld
14700 with_gnu_ld=$lt_save_with_gnu_ld
14701 lt_cv_path_LDCXX=$lt_cv_path_LD
14702 lt_cv_path_LD=$lt_save_path_LD
14703 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14704 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14706 else
14707 tagname=""
14711 F77)
14712 if test -n "$F77" && test "X$F77" != "Xno"; then
14714 ac_ext=f
14715 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14716 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14717 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14720 archive_cmds_need_lc_F77=no
14721 allow_undefined_flag_F77=
14722 always_export_symbols_F77=no
14723 archive_expsym_cmds_F77=
14724 export_dynamic_flag_spec_F77=
14725 hardcode_direct_F77=no
14726 hardcode_libdir_flag_spec_F77=
14727 hardcode_libdir_flag_spec_ld_F77=
14728 hardcode_libdir_separator_F77=
14729 hardcode_minus_L_F77=no
14730 hardcode_automatic_F77=no
14731 module_cmds_F77=
14732 module_expsym_cmds_F77=
14733 link_all_deplibs_F77=unknown
14734 old_archive_cmds_F77=$old_archive_cmds
14735 no_undefined_flag_F77=
14736 whole_archive_flag_spec_F77=
14737 enable_shared_with_static_runtimes_F77=no
14739 # Source file extension for f77 test sources.
14740 ac_ext=f
14742 # Object file extension for compiled f77 test sources.
14743 objext=o
14744 objext_F77=$objext
14746 # Code to be used in simple compile tests
14747 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14749 # Code to be used in simple link tests
14750 lt_simple_link_test_code=" program t\n end\n"
14752 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14754 # If no C compiler was specified, use CC.
14755 LTCC=${LTCC-"$CC"}
14757 # If no C compiler flags were specified, use CFLAGS.
14758 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14760 # Allow CC to be a program name with arguments.
14761 compiler=$CC
14764 # save warnings/boilerplate of simple test code
14765 ac_outfile=conftest.$ac_objext
14766 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14767 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14768 _lt_compiler_boilerplate=`cat conftest.err`
14769 $rm conftest*
14771 ac_outfile=conftest.$ac_objext
14772 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14773 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14774 _lt_linker_boilerplate=`cat conftest.err`
14775 $rm conftest*
14778 # Allow CC to be a program name with arguments.
14779 lt_save_CC="$CC"
14780 CC=${F77-"f77"}
14781 compiler=$CC
14782 compiler_F77=$CC
14783 for cc_temp in $compiler""; do
14784 case $cc_temp in
14785 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14786 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14787 \-*) ;;
14788 *) break;;
14789 esac
14790 done
14791 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14794 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14795 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14796 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14797 echo "${ECHO_T}$can_build_shared" >&6; }
14799 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14800 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14801 test "$can_build_shared" = "no" && enable_shared=no
14803 # On AIX, shared libraries and static libraries use the same namespace, and
14804 # are all built from PIC.
14805 case $host_os in
14806 aix3*)
14807 test "$enable_shared" = yes && enable_static=no
14808 if test -n "$RANLIB"; then
14809 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14810 postinstall_cmds='$RANLIB $lib'
14813 aix4* | aix5*)
14814 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14815 test "$enable_shared" = yes && enable_static=no
14818 esac
14819 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14820 echo "${ECHO_T}$enable_shared" >&6; }
14822 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14823 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14824 # Make sure either enable_shared or enable_static is yes.
14825 test "$enable_shared" = yes || enable_static=yes
14826 { echo "$as_me:$LINENO: result: $enable_static" >&5
14827 echo "${ECHO_T}$enable_static" >&6; }
14829 GCC_F77="$G77"
14830 LD_F77="$LD"
14832 lt_prog_compiler_wl_F77=
14833 lt_prog_compiler_pic_F77=
14834 lt_prog_compiler_static_F77=
14836 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14837 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14839 if test "$GCC" = yes; then
14840 lt_prog_compiler_wl_F77='-Wl,'
14841 lt_prog_compiler_static_F77='-static'
14843 case $host_os in
14844 aix*)
14845 # All AIX code is PIC.
14846 if test "$host_cpu" = ia64; then
14847 # AIX 5 now supports IA64 processor
14848 lt_prog_compiler_static_F77='-Bstatic'
14852 amigaos*)
14853 # FIXME: we need at least 68020 code to build shared libraries, but
14854 # adding the `-m68020' flag to GCC prevents building anything better,
14855 # like `-m68040'.
14856 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14859 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14860 # PIC is the default for these OSes.
14863 mingw* | pw32* | os2*)
14864 # This hack is so that the source file can tell whether it is being
14865 # built for inclusion in a dll (and should export symbols for example).
14866 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14869 darwin* | rhapsody*)
14870 # PIC is the default on this platform
14871 # Common symbols not allowed in MH_DYLIB files
14872 lt_prog_compiler_pic_F77='-fno-common'
14875 interix3*)
14876 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14877 # Instead, we relocate shared libraries at runtime.
14880 msdosdjgpp*)
14881 # Just because we use GCC doesn't mean we suddenly get shared libraries
14882 # on systems that don't support them.
14883 lt_prog_compiler_can_build_shared_F77=no
14884 enable_shared=no
14887 sysv4*MP*)
14888 if test -d /usr/nec; then
14889 lt_prog_compiler_pic_F77=-Kconform_pic
14893 hpux*)
14894 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14895 # not for PA HP-UX.
14896 case $host_cpu in
14897 hppa*64*|ia64*)
14898 # +Z the default
14901 lt_prog_compiler_pic_F77='-fPIC'
14903 esac
14907 lt_prog_compiler_pic_F77='-fPIC'
14909 esac
14910 else
14911 # PORTME Check for flag to pass linker flags through the system compiler.
14912 case $host_os in
14913 aix*)
14914 lt_prog_compiler_wl_F77='-Wl,'
14915 if test "$host_cpu" = ia64; then
14916 # AIX 5 now supports IA64 processor
14917 lt_prog_compiler_static_F77='-Bstatic'
14918 else
14919 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14922 darwin*)
14923 # PIC is the default on this platform
14924 # Common symbols not allowed in MH_DYLIB files
14925 case $cc_basename in
14926 xlc*)
14927 lt_prog_compiler_pic_F77='-qnocommon'
14928 lt_prog_compiler_wl_F77='-Wl,'
14930 esac
14933 mingw* | pw32* | os2*)
14934 # This hack is so that the source file can tell whether it is being
14935 # built for inclusion in a dll (and should export symbols for example).
14936 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14939 hpux9* | hpux10* | hpux11*)
14940 lt_prog_compiler_wl_F77='-Wl,'
14941 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14942 # not for PA HP-UX.
14943 case $host_cpu in
14944 hppa*64*|ia64*)
14945 # +Z the default
14948 lt_prog_compiler_pic_F77='+Z'
14950 esac
14951 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14952 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14955 irix5* | irix6* | nonstopux*)
14956 lt_prog_compiler_wl_F77='-Wl,'
14957 # PIC (with -KPIC) is the default.
14958 lt_prog_compiler_static_F77='-non_shared'
14961 newsos6)
14962 lt_prog_compiler_pic_F77='-KPIC'
14963 lt_prog_compiler_static_F77='-Bstatic'
14966 linux*)
14967 case $cc_basename in
14968 icc* | ecc*)
14969 lt_prog_compiler_wl_F77='-Wl,'
14970 lt_prog_compiler_pic_F77='-KPIC'
14971 lt_prog_compiler_static_F77='-static'
14973 pgcc* | pgf77* | pgf90* | pgf95*)
14974 # Portland Group compilers (*not* the Pentium gcc compiler,
14975 # which looks to be a dead project)
14976 lt_prog_compiler_wl_F77='-Wl,'
14977 lt_prog_compiler_pic_F77='-fpic'
14978 lt_prog_compiler_static_F77='-Bstatic'
14980 ccc*)
14981 lt_prog_compiler_wl_F77='-Wl,'
14982 # All Alpha code is PIC.
14983 lt_prog_compiler_static_F77='-non_shared'
14985 esac
14988 osf3* | osf4* | osf5*)
14989 lt_prog_compiler_wl_F77='-Wl,'
14990 # All OSF/1 code is PIC.
14991 lt_prog_compiler_static_F77='-non_shared'
14994 solaris*)
14995 lt_prog_compiler_pic_F77='-KPIC'
14996 lt_prog_compiler_static_F77='-Bstatic'
14997 case $cc_basename in
14998 f77* | f90* | f95*)
14999 lt_prog_compiler_wl_F77='-Qoption ld ';;
15001 lt_prog_compiler_wl_F77='-Wl,';;
15002 esac
15005 sunos4*)
15006 lt_prog_compiler_wl_F77='-Qoption ld '
15007 lt_prog_compiler_pic_F77='-PIC'
15008 lt_prog_compiler_static_F77='-Bstatic'
15011 sysv4 | sysv4.2uw2* | sysv4.3*)
15012 lt_prog_compiler_wl_F77='-Wl,'
15013 lt_prog_compiler_pic_F77='-KPIC'
15014 lt_prog_compiler_static_F77='-Bstatic'
15017 sysv4*MP*)
15018 if test -d /usr/nec ;then
15019 lt_prog_compiler_pic_F77='-Kconform_pic'
15020 lt_prog_compiler_static_F77='-Bstatic'
15024 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15025 lt_prog_compiler_wl_F77='-Wl,'
15026 lt_prog_compiler_pic_F77='-KPIC'
15027 lt_prog_compiler_static_F77='-Bstatic'
15030 unicos*)
15031 lt_prog_compiler_wl_F77='-Wl,'
15032 lt_prog_compiler_can_build_shared_F77=no
15035 uts4*)
15036 lt_prog_compiler_pic_F77='-pic'
15037 lt_prog_compiler_static_F77='-Bstatic'
15041 lt_prog_compiler_can_build_shared_F77=no
15043 esac
15046 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15047 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15050 # Check to make sure the PIC flag actually works.
15052 if test -n "$lt_prog_compiler_pic_F77"; then
15054 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15055 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15056 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15057 echo $ECHO_N "(cached) $ECHO_C" >&6
15058 else
15059 lt_prog_compiler_pic_works_F77=no
15060 ac_outfile=conftest.$ac_objext
15061 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15062 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15063 # Insert the option either (1) after the last *FLAGS variable, or
15064 # (2) before a word containing "conftest.", or (3) at the end.
15065 # Note that $ac_compile itself does not contain backslashes and begins
15066 # with a dollar sign (not a hyphen), so the echo should work correctly.
15067 # The option is referenced via a variable to avoid confusing sed.
15068 lt_compile=`echo "$ac_compile" | $SED \
15069 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15070 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15071 -e 's:$: $lt_compiler_flag:'`
15072 (eval echo "\"\$as_me:15072: $lt_compile\"" >&5)
15073 (eval "$lt_compile" 2>conftest.err)
15074 ac_status=$?
15075 cat conftest.err >&5
15076 echo "$as_me:15076: \$? = $ac_status" >&5
15077 if (exit $ac_status) && test -s "$ac_outfile"; then
15078 # The compiler can only warn and ignore the option if not recognized
15079 # So say no if there are warnings other than the usual output.
15080 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15081 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15082 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15083 lt_prog_compiler_pic_works_F77=yes
15086 $rm conftest*
15089 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15090 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15092 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15093 case $lt_prog_compiler_pic_F77 in
15094 "" | " "*) ;;
15095 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15096 esac
15097 else
15098 lt_prog_compiler_pic_F77=
15099 lt_prog_compiler_can_build_shared_F77=no
15103 case $host_os in
15104 # For platforms which do not support PIC, -DPIC is meaningless:
15105 *djgpp*)
15106 lt_prog_compiler_pic_F77=
15109 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15111 esac
15114 # Check to make sure the static flag actually works.
15116 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15117 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15118 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15119 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15120 echo $ECHO_N "(cached) $ECHO_C" >&6
15121 else
15122 lt_prog_compiler_static_works_F77=no
15123 save_LDFLAGS="$LDFLAGS"
15124 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15125 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15126 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15127 # The linker can only warn and ignore the option if not recognized
15128 # So say no if there are warnings
15129 if test -s conftest.err; then
15130 # Append any errors to the config.log.
15131 cat conftest.err 1>&5
15132 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15133 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15134 if diff conftest.exp conftest.er2 >/dev/null; then
15135 lt_prog_compiler_static_works_F77=yes
15137 else
15138 lt_prog_compiler_static_works_F77=yes
15141 $rm conftest*
15142 LDFLAGS="$save_LDFLAGS"
15145 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15146 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15148 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15150 else
15151 lt_prog_compiler_static_F77=
15155 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15156 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15157 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15158 echo $ECHO_N "(cached) $ECHO_C" >&6
15159 else
15160 lt_cv_prog_compiler_c_o_F77=no
15161 $rm -r conftest 2>/dev/null
15162 mkdir conftest
15163 cd conftest
15164 mkdir out
15165 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15167 lt_compiler_flag="-o out/conftest2.$ac_objext"
15168 # Insert the option either (1) after the last *FLAGS variable, or
15169 # (2) before a word containing "conftest.", or (3) at the end.
15170 # Note that $ac_compile itself does not contain backslashes and begins
15171 # with a dollar sign (not a hyphen), so the echo should work correctly.
15172 lt_compile=`echo "$ac_compile" | $SED \
15173 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15174 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15175 -e 's:$: $lt_compiler_flag:'`
15176 (eval echo "\"\$as_me:15176: $lt_compile\"" >&5)
15177 (eval "$lt_compile" 2>out/conftest.err)
15178 ac_status=$?
15179 cat out/conftest.err >&5
15180 echo "$as_me:15180: \$? = $ac_status" >&5
15181 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15182 then
15183 # The compiler can only warn and ignore the option if not recognized
15184 # So say no if there are warnings
15185 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15186 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15187 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15188 lt_cv_prog_compiler_c_o_F77=yes
15191 chmod u+w . 2>&5
15192 $rm conftest*
15193 # SGI C++ compiler will create directory out/ii_files/ for
15194 # template instantiation
15195 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15196 $rm out/* && rmdir out
15197 cd ..
15198 rmdir conftest
15199 $rm conftest*
15202 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15203 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15206 hard_links="nottested"
15207 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15208 # do not overwrite the value of need_locks provided by the user
15209 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15210 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15211 hard_links=yes
15212 $rm conftest*
15213 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15214 touch conftest.a
15215 ln conftest.a conftest.b 2>&5 || hard_links=no
15216 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15217 { echo "$as_me:$LINENO: result: $hard_links" >&5
15218 echo "${ECHO_T}$hard_links" >&6; }
15219 if test "$hard_links" = no; then
15220 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15221 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15222 need_locks=warn
15224 else
15225 need_locks=no
15228 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15229 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15231 runpath_var=
15232 allow_undefined_flag_F77=
15233 enable_shared_with_static_runtimes_F77=no
15234 archive_cmds_F77=
15235 archive_expsym_cmds_F77=
15236 old_archive_From_new_cmds_F77=
15237 old_archive_from_expsyms_cmds_F77=
15238 export_dynamic_flag_spec_F77=
15239 whole_archive_flag_spec_F77=
15240 thread_safe_flag_spec_F77=
15241 hardcode_libdir_flag_spec_F77=
15242 hardcode_libdir_flag_spec_ld_F77=
15243 hardcode_libdir_separator_F77=
15244 hardcode_direct_F77=no
15245 hardcode_minus_L_F77=no
15246 hardcode_shlibpath_var_F77=unsupported
15247 link_all_deplibs_F77=unknown
15248 hardcode_automatic_F77=no
15249 module_cmds_F77=
15250 module_expsym_cmds_F77=
15251 always_export_symbols_F77=no
15252 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15253 # include_expsyms should be a list of space-separated symbols to be *always*
15254 # included in the symbol list
15255 include_expsyms_F77=
15256 # exclude_expsyms can be an extended regexp of symbols to exclude
15257 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15258 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15259 # as well as any symbol that contains `d'.
15260 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15261 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15262 # platforms (ab)use it in PIC code, but their linkers get confused if
15263 # the symbol is explicitly referenced. Since portable code cannot
15264 # rely on this symbol name, it's probably fine to never include it in
15265 # preloaded symbol tables.
15266 extract_expsyms_cmds=
15267 # Just being paranoid about ensuring that cc_basename is set.
15268 for cc_temp in $compiler""; do
15269 case $cc_temp in
15270 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15271 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15272 \-*) ;;
15273 *) break;;
15274 esac
15275 done
15276 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15278 case $host_os in
15279 cygwin* | mingw* | pw32*)
15280 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15281 # When not using gcc, we currently assume that we are using
15282 # Microsoft Visual C++.
15283 if test "$GCC" != yes; then
15284 with_gnu_ld=no
15287 interix*)
15288 # we just hope/assume this is gcc and not c89 (= MSVC++)
15289 with_gnu_ld=yes
15291 openbsd*)
15292 with_gnu_ld=no
15294 esac
15296 ld_shlibs_F77=yes
15297 if test "$with_gnu_ld" = yes; then
15298 # If archive_cmds runs LD, not CC, wlarc should be empty
15299 wlarc='${wl}'
15301 # Set some defaults for GNU ld with shared library support. These
15302 # are reset later if shared libraries are not supported. Putting them
15303 # here allows them to be overridden if necessary.
15304 runpath_var=LD_RUN_PATH
15305 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15306 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15307 # ancient GNU ld didn't support --whole-archive et. al.
15308 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15309 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15310 else
15311 whole_archive_flag_spec_F77=
15313 supports_anon_versioning=no
15314 case `$LD -v 2>/dev/null` in
15315 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15316 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15317 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15318 *\ 2.11.*) ;; # other 2.11 versions
15319 *) supports_anon_versioning=yes ;;
15320 esac
15322 # See if GNU ld supports shared libraries.
15323 case $host_os in
15324 aix3* | aix4* | aix5*)
15325 # On AIX/PPC, the GNU linker is very broken
15326 if test "$host_cpu" != ia64; then
15327 ld_shlibs_F77=no
15328 cat <<EOF 1>&2
15330 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15331 *** to be unable to reliably create shared libraries on AIX.
15332 *** Therefore, libtool is disabling shared libraries support. If you
15333 *** really care for shared libraries, you may want to modify your PATH
15334 *** so that a non-GNU linker is found, and then restart.
15340 amigaos*)
15341 archive_cmds_F77='$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)'
15342 hardcode_libdir_flag_spec_F77='-L$libdir'
15343 hardcode_minus_L_F77=yes
15345 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15346 # that the semantics of dynamic libraries on AmigaOS, at least up
15347 # to version 4, is to share data among multiple programs linked
15348 # with the same dynamic library. Since this doesn't match the
15349 # behavior of shared libraries on other platforms, we can't use
15350 # them.
15351 ld_shlibs_F77=no
15354 beos*)
15355 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15356 allow_undefined_flag_F77=unsupported
15357 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15358 # support --undefined. This deserves some investigation. FIXME
15359 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15360 else
15361 ld_shlibs_F77=no
15365 cygwin* | mingw* | pw32*)
15366 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15367 # as there is no search path for DLLs.
15368 hardcode_libdir_flag_spec_F77='-L$libdir'
15369 allow_undefined_flag_F77=unsupported
15370 always_export_symbols_F77=no
15371 enable_shared_with_static_runtimes_F77=yes
15372 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15374 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15375 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15376 # If the export-symbols file already is a .def file (1st line
15377 # is EXPORTS), use it as is; otherwise, prepend...
15378 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15379 cp $export_symbols $output_objdir/$soname.def;
15380 else
15381 echo EXPORTS > $output_objdir/$soname.def;
15382 cat $export_symbols >> $output_objdir/$soname.def;
15384 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15385 else
15386 ld_shlibs_F77=no
15390 interix3*)
15391 hardcode_direct_F77=no
15392 hardcode_shlibpath_var_F77=no
15393 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15394 export_dynamic_flag_spec_F77='${wl}-E'
15395 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15396 # Instead, shared libraries are loaded at an image base (0x10000000 by
15397 # default) and relocated if they conflict, which is a slow very memory
15398 # consuming and fragmenting process. To avoid this, we pick a random,
15399 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15400 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15401 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15402 archive_expsym_cmds_F77='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'
15405 linux*)
15406 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15407 tmp_addflag=
15408 case $cc_basename,$host_cpu in
15409 pgcc*) # Portland Group C compiler
15410 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15411 tmp_addflag=' $pic_flag'
15413 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15414 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15415 tmp_addflag=' $pic_flag -Mnomain' ;;
15416 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15417 tmp_addflag=' -i_dynamic' ;;
15418 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15419 tmp_addflag=' -i_dynamic -nofor_main' ;;
15420 ifc* | ifort*) # Intel Fortran compiler
15421 tmp_addflag=' -nofor_main' ;;
15422 esac
15423 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15425 if test $supports_anon_versioning = yes; then
15426 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15427 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15428 $echo "local: *; };" >> $output_objdir/$libname.ver~
15429 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15431 else
15432 ld_shlibs_F77=no
15436 netbsd*)
15437 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15438 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15439 wlarc=
15440 else
15441 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15442 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15446 solaris*)
15447 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15448 ld_shlibs_F77=no
15449 cat <<EOF 1>&2
15451 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15452 *** create shared libraries on Solaris systems. Therefore, libtool
15453 *** is disabling shared libraries support. We urge you to upgrade GNU
15454 *** binutils to release 2.9.1 or newer. Another option is to modify
15455 *** your PATH or compiler configuration so that the native linker is
15456 *** used, and then restart.
15459 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15460 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15461 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15462 else
15463 ld_shlibs_F77=no
15467 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15468 case `$LD -v 2>&1` in
15469 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15470 ld_shlibs_F77=no
15471 cat <<_LT_EOF 1>&2
15473 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15474 *** reliably create shared libraries on SCO systems. Therefore, libtool
15475 *** is disabling shared libraries support. We urge you to upgrade GNU
15476 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15477 *** your PATH or compiler configuration so that the native linker is
15478 *** used, and then restart.
15480 _LT_EOF
15483 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15484 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15485 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15486 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15487 else
15488 ld_shlibs_F77=no
15491 esac
15494 sunos4*)
15495 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15496 wlarc=
15497 hardcode_direct_F77=yes
15498 hardcode_shlibpath_var_F77=no
15502 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15503 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15504 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15505 else
15506 ld_shlibs_F77=no
15509 esac
15511 if test "$ld_shlibs_F77" = no; then
15512 runpath_var=
15513 hardcode_libdir_flag_spec_F77=
15514 export_dynamic_flag_spec_F77=
15515 whole_archive_flag_spec_F77=
15517 else
15518 # PORTME fill in a description of your system's linker (not GNU ld)
15519 case $host_os in
15520 aix3*)
15521 allow_undefined_flag_F77=unsupported
15522 always_export_symbols_F77=yes
15523 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15524 # Note: this linker hardcodes the directories in LIBPATH if there
15525 # are no directories specified by -L.
15526 hardcode_minus_L_F77=yes
15527 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15528 # Neither direct hardcoding nor static linking is supported with a
15529 # broken collect2.
15530 hardcode_direct_F77=unsupported
15534 aix4* | aix5*)
15535 if test "$host_cpu" = ia64; then
15536 # On IA64, the linker does run time linking by default, so we don't
15537 # have to do anything special.
15538 aix_use_runtimelinking=no
15539 exp_sym_flag='-Bexport'
15540 no_entry_flag=""
15541 else
15542 # If we're using GNU nm, then we don't want the "-C" option.
15543 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15544 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15545 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15546 else
15547 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15549 aix_use_runtimelinking=no
15551 # Test if we are trying to use run time linking or normal
15552 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15553 # need to do runtime linking.
15554 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15555 for ld_flag in $LDFLAGS; do
15556 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15557 aix_use_runtimelinking=yes
15558 break
15560 done
15562 esac
15564 exp_sym_flag='-bexport'
15565 no_entry_flag='-bnoentry'
15568 # When large executables or shared objects are built, AIX ld can
15569 # have problems creating the table of contents. If linking a library
15570 # or program results in "error TOC overflow" add -mminimal-toc to
15571 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15572 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15574 archive_cmds_F77=''
15575 hardcode_direct_F77=yes
15576 hardcode_libdir_separator_F77=':'
15577 link_all_deplibs_F77=yes
15579 if test "$GCC" = yes; then
15580 case $host_os in aix4.[012]|aix4.[012].*)
15581 # We only want to do this on AIX 4.2 and lower, the check
15582 # below for broken collect2 doesn't work under 4.3+
15583 collect2name=`${CC} -print-prog-name=collect2`
15584 if test -f "$collect2name" && \
15585 strings "$collect2name" | grep resolve_lib_name >/dev/null
15586 then
15587 # We have reworked collect2
15588 hardcode_direct_F77=yes
15589 else
15590 # We have old collect2
15591 hardcode_direct_F77=unsupported
15592 # It fails to find uninstalled libraries when the uninstalled
15593 # path is not listed in the libpath. Setting hardcode_minus_L
15594 # to unsupported forces relinking
15595 hardcode_minus_L_F77=yes
15596 hardcode_libdir_flag_spec_F77='-L$libdir'
15597 hardcode_libdir_separator_F77=
15600 esac
15601 shared_flag='-shared'
15602 if test "$aix_use_runtimelinking" = yes; then
15603 shared_flag="$shared_flag "'${wl}-G'
15605 else
15606 # not using gcc
15607 if test "$host_cpu" = ia64; then
15608 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15609 # chokes on -Wl,-G. The following line is correct:
15610 shared_flag='-G'
15611 else
15612 if test "$aix_use_runtimelinking" = yes; then
15613 shared_flag='${wl}-G'
15614 else
15615 shared_flag='${wl}-bM:SRE'
15620 # It seems that -bexpall does not export symbols beginning with
15621 # underscore (_), so it is better to generate a list of symbols to export.
15622 always_export_symbols_F77=yes
15623 if test "$aix_use_runtimelinking" = yes; then
15624 # Warning - without using the other runtime loading flags (-brtl),
15625 # -berok will link without error, but may produce a broken library.
15626 allow_undefined_flag_F77='-berok'
15627 # Determine the default libpath from the value encoded in an empty executable.
15628 cat >conftest.$ac_ext <<_ACEOF
15629 program main
15632 _ACEOF
15633 rm -f conftest.$ac_objext conftest$ac_exeext
15634 if { (ac_try="$ac_link"
15635 case "(($ac_try" in
15636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15637 *) ac_try_echo=$ac_try;;
15638 esac
15639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15640 (eval "$ac_link") 2>conftest.er1
15641 ac_status=$?
15642 grep -v '^ *+' conftest.er1 >conftest.err
15643 rm -f conftest.er1
15644 cat conftest.err >&5
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); } && {
15647 test -z "$ac_f77_werror_flag" ||
15648 test ! -s conftest.err
15649 } && test -s conftest$ac_exeext &&
15650 $as_test_x conftest$ac_exeext; then
15652 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15654 # Check for a 64-bit object if we didn't find anything.
15655 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15656 }'`; fi
15657 else
15658 echo "$as_me: failed program was:" >&5
15659 sed 's/^/| /' conftest.$ac_ext >&5
15664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15665 conftest$ac_exeext conftest.$ac_ext
15666 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15668 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15669 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15670 else
15671 if test "$host_cpu" = ia64; then
15672 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15673 allow_undefined_flag_F77="-z nodefs"
15674 archive_expsym_cmds_F77="\$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"
15675 else
15676 # Determine the default libpath from the value encoded in an empty executable.
15677 cat >conftest.$ac_ext <<_ACEOF
15678 program main
15681 _ACEOF
15682 rm -f conftest.$ac_objext conftest$ac_exeext
15683 if { (ac_try="$ac_link"
15684 case "(($ac_try" in
15685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15686 *) ac_try_echo=$ac_try;;
15687 esac
15688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15689 (eval "$ac_link") 2>conftest.er1
15690 ac_status=$?
15691 grep -v '^ *+' conftest.er1 >conftest.err
15692 rm -f conftest.er1
15693 cat conftest.err >&5
15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 (exit $ac_status); } && {
15696 test -z "$ac_f77_werror_flag" ||
15697 test ! -s conftest.err
15698 } && test -s conftest$ac_exeext &&
15699 $as_test_x conftest$ac_exeext; then
15701 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15703 # Check for a 64-bit object if we didn't find anything.
15704 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15705 }'`; fi
15706 else
15707 echo "$as_me: failed program was:" >&5
15708 sed 's/^/| /' conftest.$ac_ext >&5
15713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15714 conftest$ac_exeext conftest.$ac_ext
15715 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15717 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15718 # Warning - without using the other run time loading flags,
15719 # -berok will link without error, but may produce a broken library.
15720 no_undefined_flag_F77=' ${wl}-bernotok'
15721 allow_undefined_flag_F77=' ${wl}-berok'
15722 # Exported symbols can be pulled into shared objects from archives
15723 whole_archive_flag_spec_F77='$convenience'
15724 archive_cmds_need_lc_F77=yes
15725 # This is similar to how AIX traditionally builds its shared libraries.
15726 archive_expsym_cmds_F77="\$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'
15731 amigaos*)
15732 archive_cmds_F77='$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)'
15733 hardcode_libdir_flag_spec_F77='-L$libdir'
15734 hardcode_minus_L_F77=yes
15735 # see comment about different semantics on the GNU ld section
15736 ld_shlibs_F77=no
15739 bsdi[45]*)
15740 export_dynamic_flag_spec_F77=-rdynamic
15743 cygwin* | mingw* | pw32*)
15744 # When not using gcc, we currently assume that we are using
15745 # Microsoft Visual C++.
15746 # hardcode_libdir_flag_spec is actually meaningless, as there is
15747 # no search path for DLLs.
15748 hardcode_libdir_flag_spec_F77=' '
15749 allow_undefined_flag_F77=unsupported
15750 # Tell ltmain to make .lib files, not .a files.
15751 libext=lib
15752 # Tell ltmain to make .dll files, not .so files.
15753 shrext_cmds=".dll"
15754 # FIXME: Setting linknames here is a bad hack.
15755 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15756 # The linker will automatically build a .lib file if we build a DLL.
15757 old_archive_From_new_cmds_F77='true'
15758 # FIXME: Should let the user specify the lib program.
15759 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15760 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15761 enable_shared_with_static_runtimes_F77=yes
15764 darwin* | rhapsody*)
15765 case $host_os in
15766 rhapsody* | darwin1.[012])
15767 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15769 *) # Darwin 1.3 on
15770 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15771 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15772 else
15773 case ${MACOSX_DEPLOYMENT_TARGET} in
15774 10.[012])
15775 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15777 10.*)
15778 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15780 esac
15783 esac
15784 archive_cmds_need_lc_F77=no
15785 hardcode_direct_F77=no
15786 hardcode_automatic_F77=yes
15787 hardcode_shlibpath_var_F77=unsupported
15788 whole_archive_flag_spec_F77=''
15789 link_all_deplibs_F77=yes
15790 if test "$GCC" = yes ; then
15791 output_verbose_link_cmd='echo'
15792 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15793 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15794 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15795 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15796 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15797 else
15798 case $cc_basename in
15799 xlc*)
15800 output_verbose_link_cmd='echo'
15801 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15802 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15803 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15804 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15805 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15808 ld_shlibs_F77=no
15810 esac
15814 dgux*)
15815 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15816 hardcode_libdir_flag_spec_F77='-L$libdir'
15817 hardcode_shlibpath_var_F77=no
15820 freebsd1*)
15821 ld_shlibs_F77=no
15824 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15825 # support. Future versions do this automatically, but an explicit c++rt0.o
15826 # does not break anything, and helps significantly (at the cost of a little
15827 # extra space).
15828 freebsd2.2*)
15829 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15830 hardcode_libdir_flag_spec_F77='-R$libdir'
15831 hardcode_direct_F77=yes
15832 hardcode_shlibpath_var_F77=no
15835 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15836 freebsd2*)
15837 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15838 hardcode_direct_F77=yes
15839 hardcode_minus_L_F77=yes
15840 hardcode_shlibpath_var_F77=no
15843 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15844 freebsd* | kfreebsd*-gnu | dragonfly*)
15845 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15846 hardcode_libdir_flag_spec_F77='-R$libdir'
15847 hardcode_direct_F77=yes
15848 hardcode_shlibpath_var_F77=no
15851 hpux9*)
15852 if test "$GCC" = yes; then
15853 archive_cmds_F77='$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'
15854 else
15855 archive_cmds_F77='$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'
15857 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15858 hardcode_libdir_separator_F77=:
15859 hardcode_direct_F77=yes
15861 # hardcode_minus_L: Not really in the search PATH,
15862 # but as the default location of the library.
15863 hardcode_minus_L_F77=yes
15864 export_dynamic_flag_spec_F77='${wl}-E'
15867 hpux10*)
15868 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15869 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15870 else
15871 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15873 if test "$with_gnu_ld" = no; then
15874 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15875 hardcode_libdir_separator_F77=:
15877 hardcode_direct_F77=yes
15878 export_dynamic_flag_spec_F77='${wl}-E'
15880 # hardcode_minus_L: Not really in the search PATH,
15881 # but as the default location of the library.
15882 hardcode_minus_L_F77=yes
15886 hpux11*)
15887 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15888 case $host_cpu in
15889 hppa*64*)
15890 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15892 ia64*)
15893 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15896 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15898 esac
15899 else
15900 case $host_cpu in
15901 hppa*64*)
15902 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15904 ia64*)
15905 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15908 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15910 esac
15912 if test "$with_gnu_ld" = no; then
15913 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15914 hardcode_libdir_separator_F77=:
15916 case $host_cpu in
15917 hppa*64*|ia64*)
15918 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15919 hardcode_direct_F77=no
15920 hardcode_shlibpath_var_F77=no
15923 hardcode_direct_F77=yes
15924 export_dynamic_flag_spec_F77='${wl}-E'
15926 # hardcode_minus_L: Not really in the search PATH,
15927 # but as the default location of the library.
15928 hardcode_minus_L_F77=yes
15930 esac
15934 irix5* | irix6* | nonstopux*)
15935 if test "$GCC" = yes; then
15936 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15937 else
15938 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15939 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15941 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15942 hardcode_libdir_separator_F77=:
15943 link_all_deplibs_F77=yes
15946 netbsd*)
15947 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15948 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15949 else
15950 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15952 hardcode_libdir_flag_spec_F77='-R$libdir'
15953 hardcode_direct_F77=yes
15954 hardcode_shlibpath_var_F77=no
15957 newsos6)
15958 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15959 hardcode_direct_F77=yes
15960 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15961 hardcode_libdir_separator_F77=:
15962 hardcode_shlibpath_var_F77=no
15965 openbsd*)
15966 hardcode_direct_F77=yes
15967 hardcode_shlibpath_var_F77=no
15968 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15969 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15970 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15971 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15972 export_dynamic_flag_spec_F77='${wl}-E'
15973 else
15974 case $host_os in
15975 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15976 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15977 hardcode_libdir_flag_spec_F77='-R$libdir'
15980 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15981 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15983 esac
15987 os2*)
15988 hardcode_libdir_flag_spec_F77='-L$libdir'
15989 hardcode_minus_L_F77=yes
15990 allow_undefined_flag_F77=unsupported
15991 archive_cmds_F77='$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'
15992 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15995 osf3*)
15996 if test "$GCC" = yes; then
15997 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15998 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15999 else
16000 allow_undefined_flag_F77=' -expect_unresolved \*'
16001 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16003 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16004 hardcode_libdir_separator_F77=:
16007 osf4* | osf5*) # as osf3* with the addition of -msym flag
16008 if test "$GCC" = yes; then
16009 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16010 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16011 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16012 else
16013 allow_undefined_flag_F77=' -expect_unresolved \*'
16014 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16015 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16016 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16018 # Both c and cxx compiler support -rpath directly
16019 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16021 hardcode_libdir_separator_F77=:
16024 solaris*)
16025 no_undefined_flag_F77=' -z text'
16026 if test "$GCC" = yes; then
16027 wlarc='${wl}'
16028 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16029 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16030 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16031 else
16032 wlarc=''
16033 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16034 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16035 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16037 hardcode_libdir_flag_spec_F77='-R$libdir'
16038 hardcode_shlibpath_var_F77=no
16039 case $host_os in
16040 solaris2.[0-5] | solaris2.[0-5].*) ;;
16042 # The compiler driver will combine linker options so we
16043 # cannot just pass the convience library names through
16044 # without $wl, iff we do not link with $LD.
16045 # Luckily, gcc supports the same syntax we need for Sun Studio.
16046 # Supported since Solaris 2.6 (maybe 2.5.1?)
16047 case $wlarc in
16049 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16051 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16052 esac ;;
16053 esac
16054 link_all_deplibs_F77=yes
16057 sunos4*)
16058 if test "x$host_vendor" = xsequent; then
16059 # Use $CC to link under sequent, because it throws in some extra .o
16060 # files that make .init and .fini sections work.
16061 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16062 else
16063 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16065 hardcode_libdir_flag_spec_F77='-L$libdir'
16066 hardcode_direct_F77=yes
16067 hardcode_minus_L_F77=yes
16068 hardcode_shlibpath_var_F77=no
16071 sysv4)
16072 case $host_vendor in
16073 sni)
16074 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16075 hardcode_direct_F77=yes # is this really true???
16077 siemens)
16078 ## LD is ld it makes a PLAMLIB
16079 ## CC just makes a GrossModule.
16080 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16081 reload_cmds_F77='$CC -r -o $output$reload_objs'
16082 hardcode_direct_F77=no
16084 motorola)
16085 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16086 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16088 esac
16089 runpath_var='LD_RUN_PATH'
16090 hardcode_shlibpath_var_F77=no
16093 sysv4.3*)
16094 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16095 hardcode_shlibpath_var_F77=no
16096 export_dynamic_flag_spec_F77='-Bexport'
16099 sysv4*MP*)
16100 if test -d /usr/nec; then
16101 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16102 hardcode_shlibpath_var_F77=no
16103 runpath_var=LD_RUN_PATH
16104 hardcode_runpath_var=yes
16105 ld_shlibs_F77=yes
16109 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16110 no_undefined_flag_F77='${wl}-z,text'
16111 archive_cmds_need_lc_F77=no
16112 hardcode_shlibpath_var_F77=no
16113 runpath_var='LD_RUN_PATH'
16115 if test "$GCC" = yes; then
16116 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16117 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16118 else
16119 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16120 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16124 sysv5* | sco3.2v5* | sco5v6*)
16125 # Note: We can NOT use -z defs as we might desire, because we do not
16126 # link with -lc, and that would cause any symbols used from libc to
16127 # always be unresolved, which means just about no library would
16128 # ever link correctly. If we're not using GNU ld we use -z text
16129 # though, which does catch some bad symbols but isn't as heavy-handed
16130 # as -z defs.
16131 no_undefined_flag_F77='${wl}-z,text'
16132 allow_undefined_flag_F77='${wl}-z,nodefs'
16133 archive_cmds_need_lc_F77=no
16134 hardcode_shlibpath_var_F77=no
16135 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16136 hardcode_libdir_separator_F77=':'
16137 link_all_deplibs_F77=yes
16138 export_dynamic_flag_spec_F77='${wl}-Bexport'
16139 runpath_var='LD_RUN_PATH'
16141 if test "$GCC" = yes; then
16142 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16143 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16144 else
16145 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16146 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16150 uts4*)
16151 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16152 hardcode_libdir_flag_spec_F77='-L$libdir'
16153 hardcode_shlibpath_var_F77=no
16157 ld_shlibs_F77=no
16159 esac
16162 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16163 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16164 test "$ld_shlibs_F77" = no && can_build_shared=no
16167 # Do we need to explicitly link libc?
16169 case "x$archive_cmds_need_lc_F77" in
16170 x|xyes)
16171 # Assume -lc should be added
16172 archive_cmds_need_lc_F77=yes
16174 if test "$enable_shared" = yes && test "$GCC" = yes; then
16175 case $archive_cmds_F77 in
16176 *'~'*)
16177 # FIXME: we may have to deal with multi-command sequences.
16179 '$CC '*)
16180 # Test whether the compiler implicitly links with -lc since on some
16181 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16182 # to ld, don't add -lc before -lgcc.
16183 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16184 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16185 $rm conftest*
16186 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16189 (eval $ac_compile) 2>&5
16190 ac_status=$?
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); } 2>conftest.err; then
16193 soname=conftest
16194 lib=conftest
16195 libobjs=conftest.$ac_objext
16196 deplibs=
16197 wl=$lt_prog_compiler_wl_F77
16198 pic_flag=$lt_prog_compiler_pic_F77
16199 compiler_flags=-v
16200 linker_flags=-v
16201 verstring=
16202 output_objdir=.
16203 libname=conftest
16204 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16205 allow_undefined_flag_F77=
16206 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16207 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16208 ac_status=$?
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); }
16211 then
16212 archive_cmds_need_lc_F77=no
16213 else
16214 archive_cmds_need_lc_F77=yes
16216 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16217 else
16218 cat conftest.err 1>&5
16220 $rm conftest*
16221 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16222 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16224 esac
16227 esac
16229 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16230 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16231 library_names_spec=
16232 libname_spec='lib$name'
16233 soname_spec=
16234 shrext_cmds=".so"
16235 postinstall_cmds=
16236 postuninstall_cmds=
16237 finish_cmds=
16238 finish_eval=
16239 shlibpath_var=
16240 shlibpath_overrides_runpath=unknown
16241 version_type=none
16242 dynamic_linker="$host_os ld.so"
16243 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16244 if test "$GCC" = yes; then
16245 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16246 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16247 # if the path contains ";" then we assume it to be the separator
16248 # otherwise default to the standard path separator (i.e. ":") - it is
16249 # assumed that no part of a normal pathname contains ";" but that should
16250 # okay in the real world where ";" in dirpaths is itself problematic.
16251 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16252 else
16253 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16255 else
16256 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16258 need_lib_prefix=unknown
16259 hardcode_into_libs=no
16261 # when you set need_version to no, make sure it does not cause -set_version
16262 # flags to be left without arguments
16263 need_version=unknown
16265 case $host_os in
16266 aix3*)
16267 version_type=linux
16268 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16269 shlibpath_var=LIBPATH
16271 # AIX 3 has no versioning support, so we append a major version to the name.
16272 soname_spec='${libname}${release}${shared_ext}$major'
16275 aix4* | aix5*)
16276 version_type=linux
16277 need_lib_prefix=no
16278 need_version=no
16279 hardcode_into_libs=yes
16280 if test "$host_cpu" = ia64; then
16281 # AIX 5 supports IA64
16282 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16283 shlibpath_var=LD_LIBRARY_PATH
16284 else
16285 # With GCC up to 2.95.x, collect2 would create an import file
16286 # for dependence libraries. The import file would start with
16287 # the line `#! .'. This would cause the generated library to
16288 # depend on `.', always an invalid library. This was fixed in
16289 # development snapshots of GCC prior to 3.0.
16290 case $host_os in
16291 aix4 | aix4.[01] | aix4.[01].*)
16292 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16293 echo ' yes '
16294 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16296 else
16297 can_build_shared=no
16300 esac
16301 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16302 # soname into executable. Probably we can add versioning support to
16303 # collect2, so additional links can be useful in future.
16304 if test "$aix_use_runtimelinking" = yes; then
16305 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16306 # instead of lib<name>.a to let people know that these are not
16307 # typical AIX shared libraries.
16308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16309 else
16310 # We preserve .a as extension for shared libraries through AIX4.2
16311 # and later when we are not doing run time linking.
16312 library_names_spec='${libname}${release}.a $libname.a'
16313 soname_spec='${libname}${release}${shared_ext}$major'
16315 shlibpath_var=LIBPATH
16319 amigaos*)
16320 library_names_spec='$libname.ixlibrary $libname.a'
16321 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16322 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'
16325 beos*)
16326 library_names_spec='${libname}${shared_ext}'
16327 dynamic_linker="$host_os ld.so"
16328 shlibpath_var=LIBRARY_PATH
16331 bsdi[45]*)
16332 version_type=linux
16333 need_version=no
16334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16335 soname_spec='${libname}${release}${shared_ext}$major'
16336 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16337 shlibpath_var=LD_LIBRARY_PATH
16338 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16339 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16340 # the default ld.so.conf also contains /usr/contrib/lib and
16341 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16342 # libtool to hard-code these into programs
16345 cygwin* | mingw* | pw32*)
16346 version_type=windows
16347 shrext_cmds=".dll"
16348 need_version=no
16349 need_lib_prefix=no
16351 case $GCC,$host_os in
16352 yes,cygwin* | yes,mingw* | yes,pw32*)
16353 library_names_spec='$libname.dll.a'
16354 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16355 postinstall_cmds='base_file=`basename \${file}`~
16356 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16357 dldir=$destdir/`dirname \$dlpath`~
16358 test -d \$dldir || mkdir -p \$dldir~
16359 $install_prog $dir/$dlname \$dldir/$dlname~
16360 chmod a+x \$dldir/$dlname'
16361 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16362 dlpath=$dir/\$dldll~
16363 $rm \$dlpath'
16364 shlibpath_overrides_runpath=yes
16366 case $host_os in
16367 cygwin*)
16368 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16369 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16370 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16372 mingw*)
16373 # MinGW DLLs use traditional 'lib' prefix
16374 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16375 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16376 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16377 # It is most probably a Windows format PATH printed by
16378 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16379 # path with ; separators, and with drive letters. We can handle the
16380 # drive letters (cygwin fileutils understands them), so leave them,
16381 # especially as we might pass files found there to a mingw objdump,
16382 # which wouldn't understand a cygwinified path. Ahh.
16383 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16384 else
16385 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16388 pw32*)
16389 # pw32 DLLs use 'pw' prefix rather than 'lib'
16390 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16392 esac
16396 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16398 esac
16399 dynamic_linker='Win32 ld.exe'
16400 # FIXME: first we should search . and the directory the executable is in
16401 shlibpath_var=PATH
16404 darwin* | rhapsody*)
16405 dynamic_linker="$host_os dyld"
16406 version_type=darwin
16407 need_lib_prefix=no
16408 need_version=no
16409 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16410 soname_spec='${libname}${release}${major}$shared_ext'
16411 shlibpath_overrides_runpath=yes
16412 shlibpath_var=DYLD_LIBRARY_PATH
16413 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16414 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16415 if test "$GCC" = yes; then
16416 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16417 else
16418 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16420 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16423 dgux*)
16424 version_type=linux
16425 need_lib_prefix=no
16426 need_version=no
16427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16428 soname_spec='${libname}${release}${shared_ext}$major'
16429 shlibpath_var=LD_LIBRARY_PATH
16432 freebsd1*)
16433 dynamic_linker=no
16436 kfreebsd*-gnu)
16437 version_type=linux
16438 need_lib_prefix=no
16439 need_version=no
16440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16441 soname_spec='${libname}${release}${shared_ext}$major'
16442 shlibpath_var=LD_LIBRARY_PATH
16443 shlibpath_overrides_runpath=no
16444 hardcode_into_libs=yes
16445 dynamic_linker='GNU ld.so'
16448 freebsd* | dragonfly*)
16449 # DragonFly does not have aout. When/if they implement a new
16450 # versioning mechanism, adjust this.
16451 if test -x /usr/bin/objformat; then
16452 objformat=`/usr/bin/objformat`
16453 else
16454 case $host_os in
16455 freebsd[123]*) objformat=aout ;;
16456 *) objformat=elf ;;
16457 esac
16459 version_type=freebsd-$objformat
16460 case $version_type in
16461 freebsd-elf*)
16462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16463 need_version=no
16464 need_lib_prefix=no
16466 freebsd-*)
16467 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16468 need_version=yes
16470 esac
16471 shlibpath_var=LD_LIBRARY_PATH
16472 case $host_os in
16473 freebsd2*)
16474 shlibpath_overrides_runpath=yes
16476 freebsd3.[01]* | freebsdelf3.[01]*)
16477 shlibpath_overrides_runpath=yes
16478 hardcode_into_libs=yes
16480 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16481 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16482 shlibpath_overrides_runpath=no
16483 hardcode_into_libs=yes
16485 freebsd*) # from 4.6 on
16486 shlibpath_overrides_runpath=yes
16487 hardcode_into_libs=yes
16489 esac
16492 gnu*)
16493 version_type=linux
16494 need_lib_prefix=no
16495 need_version=no
16496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16497 soname_spec='${libname}${release}${shared_ext}$major'
16498 shlibpath_var=LD_LIBRARY_PATH
16499 hardcode_into_libs=yes
16502 hpux9* | hpux10* | hpux11*)
16503 # Give a soname corresponding to the major version so that dld.sl refuses to
16504 # link against other versions.
16505 version_type=sunos
16506 need_lib_prefix=no
16507 need_version=no
16508 case $host_cpu in
16509 ia64*)
16510 shrext_cmds='.so'
16511 hardcode_into_libs=yes
16512 dynamic_linker="$host_os dld.so"
16513 shlibpath_var=LD_LIBRARY_PATH
16514 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16516 soname_spec='${libname}${release}${shared_ext}$major'
16517 if test "X$HPUX_IA64_MODE" = X32; then
16518 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16519 else
16520 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16522 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16524 hppa*64*)
16525 shrext_cmds='.sl'
16526 hardcode_into_libs=yes
16527 dynamic_linker="$host_os dld.sl"
16528 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16529 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16531 soname_spec='${libname}${release}${shared_ext}$major'
16532 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16533 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16536 shrext_cmds='.sl'
16537 dynamic_linker="$host_os dld.sl"
16538 shlibpath_var=SHLIB_PATH
16539 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16541 soname_spec='${libname}${release}${shared_ext}$major'
16543 esac
16544 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16545 postinstall_cmds='chmod 555 $lib'
16548 interix3*)
16549 version_type=linux
16550 need_lib_prefix=no
16551 need_version=no
16552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16553 soname_spec='${libname}${release}${shared_ext}$major'
16554 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16555 shlibpath_var=LD_LIBRARY_PATH
16556 shlibpath_overrides_runpath=no
16557 hardcode_into_libs=yes
16560 irix5* | irix6* | nonstopux*)
16561 case $host_os in
16562 nonstopux*) version_type=nonstopux ;;
16564 if test "$lt_cv_prog_gnu_ld" = yes; then
16565 version_type=linux
16566 else
16567 version_type=irix
16568 fi ;;
16569 esac
16570 need_lib_prefix=no
16571 need_version=no
16572 soname_spec='${libname}${release}${shared_ext}$major'
16573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16574 case $host_os in
16575 irix5* | nonstopux*)
16576 libsuff= shlibsuff=
16579 case $LD in # libtool.m4 will add one of these switches to LD
16580 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16581 libsuff= shlibsuff= libmagic=32-bit;;
16582 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16583 libsuff=32 shlibsuff=N32 libmagic=N32;;
16584 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16585 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16586 *) libsuff= shlibsuff= libmagic=never-match;;
16587 esac
16589 esac
16590 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16591 shlibpath_overrides_runpath=no
16592 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16593 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16594 hardcode_into_libs=yes
16597 # No shared lib support for Linux oldld, aout, or coff.
16598 linux*oldld* | linux*aout* | linux*coff*)
16599 dynamic_linker=no
16602 # This must be Linux ELF.
16603 linux*)
16604 version_type=linux
16605 need_lib_prefix=no
16606 need_version=no
16607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16608 soname_spec='${libname}${release}${shared_ext}$major'
16609 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16610 shlibpath_var=LD_LIBRARY_PATH
16611 shlibpath_overrides_runpath=no
16612 # This implies no fast_install, which is unacceptable.
16613 # Some rework will be needed to allow for fast_install
16614 # before this can be enabled.
16615 hardcode_into_libs=yes
16617 # Append ld.so.conf contents to the search path
16618 if test -f /etc/ld.so.conf; then
16619 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16620 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16623 # We used to test for /lib/ld.so.1 and disable shared libraries on
16624 # powerpc, because MkLinux only supported shared libraries with the
16625 # GNU dynamic linker. Since this was broken with cross compilers,
16626 # most powerpc-linux boxes support dynamic linking these days and
16627 # people can always --disable-shared, the test was removed, and we
16628 # assume the GNU/Linux dynamic linker is in use.
16629 dynamic_linker='GNU/Linux ld.so'
16632 knetbsd*-gnu)
16633 version_type=linux
16634 need_lib_prefix=no
16635 need_version=no
16636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16637 soname_spec='${libname}${release}${shared_ext}$major'
16638 shlibpath_var=LD_LIBRARY_PATH
16639 shlibpath_overrides_runpath=no
16640 hardcode_into_libs=yes
16641 dynamic_linker='GNU ld.so'
16644 netbsd*)
16645 version_type=sunos
16646 need_lib_prefix=no
16647 need_version=no
16648 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16650 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16651 dynamic_linker='NetBSD (a.out) ld.so'
16652 else
16653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16654 soname_spec='${libname}${release}${shared_ext}$major'
16655 dynamic_linker='NetBSD ld.elf_so'
16657 shlibpath_var=LD_LIBRARY_PATH
16658 shlibpath_overrides_runpath=yes
16659 hardcode_into_libs=yes
16662 newsos6)
16663 version_type=linux
16664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16665 shlibpath_var=LD_LIBRARY_PATH
16666 shlibpath_overrides_runpath=yes
16669 nto-qnx*)
16670 version_type=linux
16671 need_lib_prefix=no
16672 need_version=no
16673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16674 soname_spec='${libname}${release}${shared_ext}$major'
16675 shlibpath_var=LD_LIBRARY_PATH
16676 shlibpath_overrides_runpath=yes
16679 openbsd*)
16680 version_type=sunos
16681 sys_lib_dlsearch_path_spec="/usr/lib"
16682 need_lib_prefix=no
16683 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16684 case $host_os in
16685 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16686 *) need_version=no ;;
16687 esac
16688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16689 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16690 shlibpath_var=LD_LIBRARY_PATH
16691 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16692 case $host_os in
16693 openbsd2.[89] | openbsd2.[89].*)
16694 shlibpath_overrides_runpath=no
16697 shlibpath_overrides_runpath=yes
16699 esac
16700 else
16701 shlibpath_overrides_runpath=yes
16705 os2*)
16706 libname_spec='$name'
16707 shrext_cmds=".dll"
16708 need_lib_prefix=no
16709 library_names_spec='$libname${shared_ext} $libname.a'
16710 dynamic_linker='OS/2 ld.exe'
16711 shlibpath_var=LIBPATH
16714 osf3* | osf4* | osf5*)
16715 version_type=osf
16716 need_lib_prefix=no
16717 need_version=no
16718 soname_spec='${libname}${release}${shared_ext}$major'
16719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16720 shlibpath_var=LD_LIBRARY_PATH
16721 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16722 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16725 solaris*)
16726 version_type=linux
16727 need_lib_prefix=no
16728 need_version=no
16729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16730 soname_spec='${libname}${release}${shared_ext}$major'
16731 shlibpath_var=LD_LIBRARY_PATH
16732 shlibpath_overrides_runpath=yes
16733 hardcode_into_libs=yes
16734 # ldd complains unless libraries are executable
16735 postinstall_cmds='chmod +x $lib'
16738 sunos4*)
16739 version_type=sunos
16740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16741 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16742 shlibpath_var=LD_LIBRARY_PATH
16743 shlibpath_overrides_runpath=yes
16744 if test "$with_gnu_ld" = yes; then
16745 need_lib_prefix=no
16747 need_version=yes
16750 sysv4 | sysv4.3*)
16751 version_type=linux
16752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16753 soname_spec='${libname}${release}${shared_ext}$major'
16754 shlibpath_var=LD_LIBRARY_PATH
16755 case $host_vendor in
16756 sni)
16757 shlibpath_overrides_runpath=no
16758 need_lib_prefix=no
16759 export_dynamic_flag_spec='${wl}-Blargedynsym'
16760 runpath_var=LD_RUN_PATH
16762 siemens)
16763 need_lib_prefix=no
16765 motorola)
16766 need_lib_prefix=no
16767 need_version=no
16768 shlibpath_overrides_runpath=no
16769 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16771 esac
16774 sysv4*MP*)
16775 if test -d /usr/nec ;then
16776 version_type=linux
16777 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16778 soname_spec='$libname${shared_ext}.$major'
16779 shlibpath_var=LD_LIBRARY_PATH
16783 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16784 version_type=freebsd-elf
16785 need_lib_prefix=no
16786 need_version=no
16787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16788 soname_spec='${libname}${release}${shared_ext}$major'
16789 shlibpath_var=LD_LIBRARY_PATH
16790 hardcode_into_libs=yes
16791 if test "$with_gnu_ld" = yes; then
16792 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16793 shlibpath_overrides_runpath=no
16794 else
16795 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16796 shlibpath_overrides_runpath=yes
16797 case $host_os in
16798 sco3.2v5*)
16799 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16801 esac
16803 sys_lib_dlsearch_path_spec='/usr/lib'
16806 uts4*)
16807 version_type=linux
16808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16809 soname_spec='${libname}${release}${shared_ext}$major'
16810 shlibpath_var=LD_LIBRARY_PATH
16814 dynamic_linker=no
16816 esac
16817 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16818 echo "${ECHO_T}$dynamic_linker" >&6; }
16819 test "$dynamic_linker" = no && can_build_shared=no
16821 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16822 if test "$GCC" = yes; then
16823 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16826 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16827 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16828 hardcode_action_F77=
16829 if test -n "$hardcode_libdir_flag_spec_F77" || \
16830 test -n "$runpath_var_F77" || \
16831 test "X$hardcode_automatic_F77" = "Xyes" ; then
16833 # We can hardcode non-existant directories.
16834 if test "$hardcode_direct_F77" != no &&
16835 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16836 # have to relink, otherwise we might link with an installed library
16837 # when we should be linking with a yet-to-be-installed one
16838 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16839 test "$hardcode_minus_L_F77" != no; then
16840 # Linking always hardcodes the temporary library directory.
16841 hardcode_action_F77=relink
16842 else
16843 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16844 hardcode_action_F77=immediate
16846 else
16847 # We cannot hardcode anything, or else we can only hardcode existing
16848 # directories.
16849 hardcode_action_F77=unsupported
16851 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16852 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16854 if test "$hardcode_action_F77" = relink; then
16855 # Fast installation is not supported
16856 enable_fast_install=no
16857 elif test "$shlibpath_overrides_runpath" = yes ||
16858 test "$enable_shared" = no; then
16859 # Fast installation is not necessary
16860 enable_fast_install=needless
16864 # The else clause should only fire when bootstrapping the
16865 # libtool distribution, otherwise you forgot to ship ltmain.sh
16866 # with your package, and you will get complaints that there are
16867 # no rules to generate ltmain.sh.
16868 if test -f "$ltmain"; then
16869 # See if we are running on zsh, and set the options which allow our commands through
16870 # without removal of \ escapes.
16871 if test -n "${ZSH_VERSION+set}" ; then
16872 setopt NO_GLOB_SUBST
16874 # Now quote all the things that may contain metacharacters while being
16875 # careful not to overquote the AC_SUBSTed values. We take copies of the
16876 # variables and quote the copies for generation of the libtool script.
16877 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16878 SED SHELL STRIP \
16879 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16880 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16881 deplibs_check_method reload_flag reload_cmds need_locks \
16882 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16883 lt_cv_sys_global_symbol_to_c_name_address \
16884 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16885 old_postinstall_cmds old_postuninstall_cmds \
16886 compiler_F77 \
16887 CC_F77 \
16888 LD_F77 \
16889 lt_prog_compiler_wl_F77 \
16890 lt_prog_compiler_pic_F77 \
16891 lt_prog_compiler_static_F77 \
16892 lt_prog_compiler_no_builtin_flag_F77 \
16893 export_dynamic_flag_spec_F77 \
16894 thread_safe_flag_spec_F77 \
16895 whole_archive_flag_spec_F77 \
16896 enable_shared_with_static_runtimes_F77 \
16897 old_archive_cmds_F77 \
16898 old_archive_from_new_cmds_F77 \
16899 predep_objects_F77 \
16900 postdep_objects_F77 \
16901 predeps_F77 \
16902 postdeps_F77 \
16903 compiler_lib_search_path_F77 \
16904 archive_cmds_F77 \
16905 archive_expsym_cmds_F77 \
16906 postinstall_cmds_F77 \
16907 postuninstall_cmds_F77 \
16908 old_archive_from_expsyms_cmds_F77 \
16909 allow_undefined_flag_F77 \
16910 no_undefined_flag_F77 \
16911 export_symbols_cmds_F77 \
16912 hardcode_libdir_flag_spec_F77 \
16913 hardcode_libdir_flag_spec_ld_F77 \
16914 hardcode_libdir_separator_F77 \
16915 hardcode_automatic_F77 \
16916 module_cmds_F77 \
16917 module_expsym_cmds_F77 \
16918 lt_cv_prog_compiler_c_o_F77 \
16919 exclude_expsyms_F77 \
16920 include_expsyms_F77; do
16922 case $var in
16923 old_archive_cmds_F77 | \
16924 old_archive_from_new_cmds_F77 | \
16925 archive_cmds_F77 | \
16926 archive_expsym_cmds_F77 | \
16927 module_cmds_F77 | \
16928 module_expsym_cmds_F77 | \
16929 old_archive_from_expsyms_cmds_F77 | \
16930 export_symbols_cmds_F77 | \
16931 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16932 postinstall_cmds | postuninstall_cmds | \
16933 old_postinstall_cmds | old_postuninstall_cmds | \
16934 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16935 # Double-quote double-evaled strings.
16936 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16939 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16941 esac
16942 done
16944 case $lt_echo in
16945 *'\$0 --fallback-echo"')
16946 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16948 esac
16950 cfgfile="$ofile"
16952 cat <<__EOF__ >> "$cfgfile"
16953 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16955 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16957 # Shell to use when invoking shell scripts.
16958 SHELL=$lt_SHELL
16960 # Whether or not to build shared libraries.
16961 build_libtool_libs=$enable_shared
16963 # Whether or not to build static libraries.
16964 build_old_libs=$enable_static
16966 # Whether or not to add -lc for building shared libraries.
16967 build_libtool_need_lc=$archive_cmds_need_lc_F77
16969 # Whether or not to disallow shared libs when runtime libs are static
16970 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16972 # Whether or not to optimize for fast installation.
16973 fast_install=$enable_fast_install
16975 # The host system.
16976 host_alias=$host_alias
16977 host=$host
16978 host_os=$host_os
16980 # The build system.
16981 build_alias=$build_alias
16982 build=$build
16983 build_os=$build_os
16985 # An echo program that does not interpret backslashes.
16986 echo=$lt_echo
16988 # The archiver.
16989 AR=$lt_AR
16990 AR_FLAGS=$lt_AR_FLAGS
16992 # A C compiler.
16993 LTCC=$lt_LTCC
16995 # LTCC compiler flags.
16996 LTCFLAGS=$lt_LTCFLAGS
16998 # A language-specific compiler.
16999 CC=$lt_compiler_F77
17001 # Is the compiler the GNU C compiler?
17002 with_gcc=$GCC_F77
17004 # An ERE matcher.
17005 EGREP=$lt_EGREP
17007 # The linker used to build libraries.
17008 LD=$lt_LD_F77
17010 # Whether we need hard or soft links.
17011 LN_S=$lt_LN_S
17013 # A BSD-compatible nm program.
17014 NM=$lt_NM
17016 # A symbol stripping program
17017 STRIP=$lt_STRIP
17019 # Used to examine libraries when file_magic_cmd begins "file"
17020 MAGIC_CMD=$MAGIC_CMD
17022 # Used on cygwin: DLL creation program.
17023 DLLTOOL="$DLLTOOL"
17025 # Used on cygwin: object dumper.
17026 OBJDUMP="$OBJDUMP"
17028 # Used on cygwin: assembler.
17029 AS="$AS"
17031 # The name of the directory that contains temporary libtool files.
17032 objdir=$objdir
17034 # How to create reloadable object files.
17035 reload_flag=$lt_reload_flag
17036 reload_cmds=$lt_reload_cmds
17038 # How to pass a linker flag through the compiler.
17039 wl=$lt_lt_prog_compiler_wl_F77
17041 # Object file suffix (normally "o").
17042 objext="$ac_objext"
17044 # Old archive suffix (normally "a").
17045 libext="$libext"
17047 # Shared library suffix (normally ".so").
17048 shrext_cmds='$shrext_cmds'
17050 # Executable file suffix (normally "").
17051 exeext="$exeext"
17053 # Additional compiler flags for building library objects.
17054 pic_flag=$lt_lt_prog_compiler_pic_F77
17055 pic_mode=$pic_mode
17057 # What is the maximum length of a command?
17058 max_cmd_len=$lt_cv_sys_max_cmd_len
17060 # Does compiler simultaneously support -c and -o options?
17061 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17063 # Must we lock files when doing compilation?
17064 need_locks=$lt_need_locks
17066 # Do we need the lib prefix for modules?
17067 need_lib_prefix=$need_lib_prefix
17069 # Do we need a version for libraries?
17070 need_version=$need_version
17072 # Whether dlopen is supported.
17073 dlopen_support=$enable_dlopen
17075 # Whether dlopen of programs is supported.
17076 dlopen_self=$enable_dlopen_self
17078 # Whether dlopen of statically linked programs is supported.
17079 dlopen_self_static=$enable_dlopen_self_static
17081 # Compiler flag to prevent dynamic linking.
17082 link_static_flag=$lt_lt_prog_compiler_static_F77
17084 # Compiler flag to turn off builtin functions.
17085 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17087 # Compiler flag to allow reflexive dlopens.
17088 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17090 # Compiler flag to generate shared objects directly from archives.
17091 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17093 # Compiler flag to generate thread-safe objects.
17094 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17096 # Library versioning type.
17097 version_type=$version_type
17099 # Format of library name prefix.
17100 libname_spec=$lt_libname_spec
17102 # List of archive names. First name is the real one, the rest are links.
17103 # The last name is the one that the linker finds with -lNAME.
17104 library_names_spec=$lt_library_names_spec
17106 # The coded name of the library, if different from the real name.
17107 soname_spec=$lt_soname_spec
17109 # Commands used to build and install an old-style archive.
17110 RANLIB=$lt_RANLIB
17111 old_archive_cmds=$lt_old_archive_cmds_F77
17112 old_postinstall_cmds=$lt_old_postinstall_cmds
17113 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17115 # Create an old-style archive from a shared archive.
17116 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17118 # Create a temporary old-style archive to link instead of a shared archive.
17119 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17121 # Commands used to build and install a shared archive.
17122 archive_cmds=$lt_archive_cmds_F77
17123 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17124 postinstall_cmds=$lt_postinstall_cmds
17125 postuninstall_cmds=$lt_postuninstall_cmds
17127 # Commands used to build a loadable module (assumed same as above if empty)
17128 module_cmds=$lt_module_cmds_F77
17129 module_expsym_cmds=$lt_module_expsym_cmds_F77
17131 # Commands to strip libraries.
17132 old_striplib=$lt_old_striplib
17133 striplib=$lt_striplib
17135 # Dependencies to place before the objects being linked to create a
17136 # shared library.
17137 predep_objects=$lt_predep_objects_F77
17139 # Dependencies to place after the objects being linked to create a
17140 # shared library.
17141 postdep_objects=$lt_postdep_objects_F77
17143 # Dependencies to place before the objects being linked to create a
17144 # shared library.
17145 predeps=$lt_predeps_F77
17147 # Dependencies to place after the objects being linked to create a
17148 # shared library.
17149 postdeps=$lt_postdeps_F77
17151 # The library search path used internally by the compiler when linking
17152 # a shared library.
17153 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17155 # Method to check whether dependent libraries are shared objects.
17156 deplibs_check_method=$lt_deplibs_check_method
17158 # Command to use when deplibs_check_method == file_magic.
17159 file_magic_cmd=$lt_file_magic_cmd
17161 # Flag that allows shared libraries with undefined symbols to be built.
17162 allow_undefined_flag=$lt_allow_undefined_flag_F77
17164 # Flag that forces no undefined symbols.
17165 no_undefined_flag=$lt_no_undefined_flag_F77
17167 # Commands used to finish a libtool library installation in a directory.
17168 finish_cmds=$lt_finish_cmds
17170 # Same as above, but a single script fragment to be evaled but not shown.
17171 finish_eval=$lt_finish_eval
17173 # Take the output of nm and produce a listing of raw symbols and C names.
17174 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17176 # Transform the output of nm in a proper C declaration
17177 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17179 # Transform the output of nm in a C name address pair
17180 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17182 # This is the shared library runtime path variable.
17183 runpath_var=$runpath_var
17185 # This is the shared library path variable.
17186 shlibpath_var=$shlibpath_var
17188 # Is shlibpath searched before the hard-coded library search path?
17189 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17191 # How to hardcode a shared library path into an executable.
17192 hardcode_action=$hardcode_action_F77
17194 # Whether we should hardcode library paths into libraries.
17195 hardcode_into_libs=$hardcode_into_libs
17197 # Flag to hardcode \$libdir into a binary during linking.
17198 # This must work even if \$libdir does not exist.
17199 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17201 # If ld is used when linking, flag to hardcode \$libdir into
17202 # a binary during linking. This must work even if \$libdir does
17203 # not exist.
17204 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17206 # Whether we need a single -rpath flag with a separated argument.
17207 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17209 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17210 # resulting binary.
17211 hardcode_direct=$hardcode_direct_F77
17213 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17214 # resulting binary.
17215 hardcode_minus_L=$hardcode_minus_L_F77
17217 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17218 # the resulting binary.
17219 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17221 # Set to yes if building a shared library automatically hardcodes DIR into the library
17222 # and all subsequent libraries and executables linked against it.
17223 hardcode_automatic=$hardcode_automatic_F77
17225 # Variables whose values should be saved in libtool wrapper scripts and
17226 # restored at relink time.
17227 variables_saved_for_relink="$variables_saved_for_relink"
17229 # Whether libtool must link a program against all its dependency libraries.
17230 link_all_deplibs=$link_all_deplibs_F77
17232 # Compile-time system search path for libraries
17233 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17235 # Run-time system search path for libraries
17236 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17238 # Fix the shell variable \$srcfile for the compiler.
17239 fix_srcfile_path="$fix_srcfile_path_F77"
17241 # Set to yes if exported symbols are required.
17242 always_export_symbols=$always_export_symbols_F77
17244 # The commands to list exported symbols.
17245 export_symbols_cmds=$lt_export_symbols_cmds_F77
17247 # The commands to extract the exported symbol list from a shared archive.
17248 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17250 # Symbols that should not be listed in the preloaded symbols.
17251 exclude_expsyms=$lt_exclude_expsyms_F77
17253 # Symbols that must always be exported.
17254 include_expsyms=$lt_include_expsyms_F77
17256 # ### END LIBTOOL TAG CONFIG: $tagname
17258 __EOF__
17261 else
17262 # If there is no Makefile yet, we rely on a make rule to execute
17263 # `config.status --recheck' to rerun these tests and create the
17264 # libtool script then.
17265 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17266 if test -f "$ltmain_in"; then
17267 test -f Makefile && make "$ltmain"
17272 ac_ext=c
17273 ac_cpp='$CPP $CPPFLAGS'
17274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17278 CC="$lt_save_CC"
17280 else
17281 tagname=""
17285 GCJ)
17286 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17289 # Source file extension for Java test sources.
17290 ac_ext=java
17292 # Object file extension for compiled Java test sources.
17293 objext=o
17294 objext_GCJ=$objext
17296 # Code to be used in simple compile tests
17297 lt_simple_compile_test_code="class foo {}\n"
17299 # Code to be used in simple link tests
17300 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17302 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17304 # If no C compiler was specified, use CC.
17305 LTCC=${LTCC-"$CC"}
17307 # If no C compiler flags were specified, use CFLAGS.
17308 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17310 # Allow CC to be a program name with arguments.
17311 compiler=$CC
17314 # save warnings/boilerplate of simple test code
17315 ac_outfile=conftest.$ac_objext
17316 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17317 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17318 _lt_compiler_boilerplate=`cat conftest.err`
17319 $rm conftest*
17321 ac_outfile=conftest.$ac_objext
17322 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17323 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17324 _lt_linker_boilerplate=`cat conftest.err`
17325 $rm conftest*
17328 # Allow CC to be a program name with arguments.
17329 lt_save_CC="$CC"
17330 CC=${GCJ-"gcj"}
17331 compiler=$CC
17332 compiler_GCJ=$CC
17333 for cc_temp in $compiler""; do
17334 case $cc_temp in
17335 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17336 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17337 \-*) ;;
17338 *) break;;
17339 esac
17340 done
17341 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17344 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17345 archive_cmds_need_lc_GCJ=no
17347 old_archive_cmds_GCJ=$old_archive_cmds
17350 lt_prog_compiler_no_builtin_flag_GCJ=
17352 if test "$GCC" = yes; then
17353 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17356 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17357 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17358 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17359 echo $ECHO_N "(cached) $ECHO_C" >&6
17360 else
17361 lt_cv_prog_compiler_rtti_exceptions=no
17362 ac_outfile=conftest.$ac_objext
17363 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17364 lt_compiler_flag="-fno-rtti -fno-exceptions"
17365 # Insert the option either (1) after the last *FLAGS variable, or
17366 # (2) before a word containing "conftest.", or (3) at the end.
17367 # Note that $ac_compile itself does not contain backslashes and begins
17368 # with a dollar sign (not a hyphen), so the echo should work correctly.
17369 # The option is referenced via a variable to avoid confusing sed.
17370 lt_compile=`echo "$ac_compile" | $SED \
17371 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17372 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17373 -e 's:$: $lt_compiler_flag:'`
17374 (eval echo "\"\$as_me:17374: $lt_compile\"" >&5)
17375 (eval "$lt_compile" 2>conftest.err)
17376 ac_status=$?
17377 cat conftest.err >&5
17378 echo "$as_me:17378: \$? = $ac_status" >&5
17379 if (exit $ac_status) && test -s "$ac_outfile"; then
17380 # The compiler can only warn and ignore the option if not recognized
17381 # So say no if there are warnings other than the usual output.
17382 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17383 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17384 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17385 lt_cv_prog_compiler_rtti_exceptions=yes
17388 $rm conftest*
17391 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17392 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17394 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17395 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17396 else
17402 lt_prog_compiler_wl_GCJ=
17403 lt_prog_compiler_pic_GCJ=
17404 lt_prog_compiler_static_GCJ=
17406 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17407 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17409 if test "$GCC" = yes; then
17410 lt_prog_compiler_wl_GCJ='-Wl,'
17411 lt_prog_compiler_static_GCJ='-static'
17413 case $host_os in
17414 aix*)
17415 # All AIX code is PIC.
17416 if test "$host_cpu" = ia64; then
17417 # AIX 5 now supports IA64 processor
17418 lt_prog_compiler_static_GCJ='-Bstatic'
17422 amigaos*)
17423 # FIXME: we need at least 68020 code to build shared libraries, but
17424 # adding the `-m68020' flag to GCC prevents building anything better,
17425 # like `-m68040'.
17426 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17429 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17430 # PIC is the default for these OSes.
17433 mingw* | pw32* | os2*)
17434 # This hack is so that the source file can tell whether it is being
17435 # built for inclusion in a dll (and should export symbols for example).
17436 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17439 darwin* | rhapsody*)
17440 # PIC is the default on this platform
17441 # Common symbols not allowed in MH_DYLIB files
17442 lt_prog_compiler_pic_GCJ='-fno-common'
17445 interix3*)
17446 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17447 # Instead, we relocate shared libraries at runtime.
17450 msdosdjgpp*)
17451 # Just because we use GCC doesn't mean we suddenly get shared libraries
17452 # on systems that don't support them.
17453 lt_prog_compiler_can_build_shared_GCJ=no
17454 enable_shared=no
17457 sysv4*MP*)
17458 if test -d /usr/nec; then
17459 lt_prog_compiler_pic_GCJ=-Kconform_pic
17463 hpux*)
17464 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17465 # not for PA HP-UX.
17466 case $host_cpu in
17467 hppa*64*|ia64*)
17468 # +Z the default
17471 lt_prog_compiler_pic_GCJ='-fPIC'
17473 esac
17477 lt_prog_compiler_pic_GCJ='-fPIC'
17479 esac
17480 else
17481 # PORTME Check for flag to pass linker flags through the system compiler.
17482 case $host_os in
17483 aix*)
17484 lt_prog_compiler_wl_GCJ='-Wl,'
17485 if test "$host_cpu" = ia64; then
17486 # AIX 5 now supports IA64 processor
17487 lt_prog_compiler_static_GCJ='-Bstatic'
17488 else
17489 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17492 darwin*)
17493 # PIC is the default on this platform
17494 # Common symbols not allowed in MH_DYLIB files
17495 case $cc_basename in
17496 xlc*)
17497 lt_prog_compiler_pic_GCJ='-qnocommon'
17498 lt_prog_compiler_wl_GCJ='-Wl,'
17500 esac
17503 mingw* | pw32* | os2*)
17504 # This hack is so that the source file can tell whether it is being
17505 # built for inclusion in a dll (and should export symbols for example).
17506 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17509 hpux9* | hpux10* | hpux11*)
17510 lt_prog_compiler_wl_GCJ='-Wl,'
17511 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17512 # not for PA HP-UX.
17513 case $host_cpu in
17514 hppa*64*|ia64*)
17515 # +Z the default
17518 lt_prog_compiler_pic_GCJ='+Z'
17520 esac
17521 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17522 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17525 irix5* | irix6* | nonstopux*)
17526 lt_prog_compiler_wl_GCJ='-Wl,'
17527 # PIC (with -KPIC) is the default.
17528 lt_prog_compiler_static_GCJ='-non_shared'
17531 newsos6)
17532 lt_prog_compiler_pic_GCJ='-KPIC'
17533 lt_prog_compiler_static_GCJ='-Bstatic'
17536 linux*)
17537 case $cc_basename in
17538 icc* | ecc*)
17539 lt_prog_compiler_wl_GCJ='-Wl,'
17540 lt_prog_compiler_pic_GCJ='-KPIC'
17541 lt_prog_compiler_static_GCJ='-static'
17543 pgcc* | pgf77* | pgf90* | pgf95*)
17544 # Portland Group compilers (*not* the Pentium gcc compiler,
17545 # which looks to be a dead project)
17546 lt_prog_compiler_wl_GCJ='-Wl,'
17547 lt_prog_compiler_pic_GCJ='-fpic'
17548 lt_prog_compiler_static_GCJ='-Bstatic'
17550 ccc*)
17551 lt_prog_compiler_wl_GCJ='-Wl,'
17552 # All Alpha code is PIC.
17553 lt_prog_compiler_static_GCJ='-non_shared'
17555 esac
17558 osf3* | osf4* | osf5*)
17559 lt_prog_compiler_wl_GCJ='-Wl,'
17560 # All OSF/1 code is PIC.
17561 lt_prog_compiler_static_GCJ='-non_shared'
17564 solaris*)
17565 lt_prog_compiler_pic_GCJ='-KPIC'
17566 lt_prog_compiler_static_GCJ='-Bstatic'
17567 case $cc_basename in
17568 f77* | f90* | f95*)
17569 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17571 lt_prog_compiler_wl_GCJ='-Wl,';;
17572 esac
17575 sunos4*)
17576 lt_prog_compiler_wl_GCJ='-Qoption ld '
17577 lt_prog_compiler_pic_GCJ='-PIC'
17578 lt_prog_compiler_static_GCJ='-Bstatic'
17581 sysv4 | sysv4.2uw2* | sysv4.3*)
17582 lt_prog_compiler_wl_GCJ='-Wl,'
17583 lt_prog_compiler_pic_GCJ='-KPIC'
17584 lt_prog_compiler_static_GCJ='-Bstatic'
17587 sysv4*MP*)
17588 if test -d /usr/nec ;then
17589 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17590 lt_prog_compiler_static_GCJ='-Bstatic'
17594 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17595 lt_prog_compiler_wl_GCJ='-Wl,'
17596 lt_prog_compiler_pic_GCJ='-KPIC'
17597 lt_prog_compiler_static_GCJ='-Bstatic'
17600 unicos*)
17601 lt_prog_compiler_wl_GCJ='-Wl,'
17602 lt_prog_compiler_can_build_shared_GCJ=no
17605 uts4*)
17606 lt_prog_compiler_pic_GCJ='-pic'
17607 lt_prog_compiler_static_GCJ='-Bstatic'
17611 lt_prog_compiler_can_build_shared_GCJ=no
17613 esac
17616 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17617 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17620 # Check to make sure the PIC flag actually works.
17622 if test -n "$lt_prog_compiler_pic_GCJ"; then
17624 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17625 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17626 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17627 echo $ECHO_N "(cached) $ECHO_C" >&6
17628 else
17629 lt_prog_compiler_pic_works_GCJ=no
17630 ac_outfile=conftest.$ac_objext
17631 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17632 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17633 # Insert the option either (1) after the last *FLAGS variable, or
17634 # (2) before a word containing "conftest.", or (3) at the end.
17635 # Note that $ac_compile itself does not contain backslashes and begins
17636 # with a dollar sign (not a hyphen), so the echo should work correctly.
17637 # The option is referenced via a variable to avoid confusing sed.
17638 lt_compile=`echo "$ac_compile" | $SED \
17639 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17640 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17641 -e 's:$: $lt_compiler_flag:'`
17642 (eval echo "\"\$as_me:17642: $lt_compile\"" >&5)
17643 (eval "$lt_compile" 2>conftest.err)
17644 ac_status=$?
17645 cat conftest.err >&5
17646 echo "$as_me:17646: \$? = $ac_status" >&5
17647 if (exit $ac_status) && test -s "$ac_outfile"; then
17648 # The compiler can only warn and ignore the option if not recognized
17649 # So say no if there are warnings other than the usual output.
17650 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17651 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17652 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17653 lt_prog_compiler_pic_works_GCJ=yes
17656 $rm conftest*
17659 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17660 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17662 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17663 case $lt_prog_compiler_pic_GCJ in
17664 "" | " "*) ;;
17665 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17666 esac
17667 else
17668 lt_prog_compiler_pic_GCJ=
17669 lt_prog_compiler_can_build_shared_GCJ=no
17673 case $host_os in
17674 # For platforms which do not support PIC, -DPIC is meaningless:
17675 *djgpp*)
17676 lt_prog_compiler_pic_GCJ=
17679 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17681 esac
17684 # Check to make sure the static flag actually works.
17686 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17687 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17688 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17689 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17690 echo $ECHO_N "(cached) $ECHO_C" >&6
17691 else
17692 lt_prog_compiler_static_works_GCJ=no
17693 save_LDFLAGS="$LDFLAGS"
17694 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17695 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17696 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17697 # The linker can only warn and ignore the option if not recognized
17698 # So say no if there are warnings
17699 if test -s conftest.err; then
17700 # Append any errors to the config.log.
17701 cat conftest.err 1>&5
17702 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17703 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17704 if diff conftest.exp conftest.er2 >/dev/null; then
17705 lt_prog_compiler_static_works_GCJ=yes
17707 else
17708 lt_prog_compiler_static_works_GCJ=yes
17711 $rm conftest*
17712 LDFLAGS="$save_LDFLAGS"
17715 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17716 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17718 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17720 else
17721 lt_prog_compiler_static_GCJ=
17725 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17726 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17727 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17728 echo $ECHO_N "(cached) $ECHO_C" >&6
17729 else
17730 lt_cv_prog_compiler_c_o_GCJ=no
17731 $rm -r conftest 2>/dev/null
17732 mkdir conftest
17733 cd conftest
17734 mkdir out
17735 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17737 lt_compiler_flag="-o out/conftest2.$ac_objext"
17738 # Insert the option either (1) after the last *FLAGS variable, or
17739 # (2) before a word containing "conftest.", or (3) at the end.
17740 # Note that $ac_compile itself does not contain backslashes and begins
17741 # with a dollar sign (not a hyphen), so the echo should work correctly.
17742 lt_compile=`echo "$ac_compile" | $SED \
17743 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17744 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17745 -e 's:$: $lt_compiler_flag:'`
17746 (eval echo "\"\$as_me:17746: $lt_compile\"" >&5)
17747 (eval "$lt_compile" 2>out/conftest.err)
17748 ac_status=$?
17749 cat out/conftest.err >&5
17750 echo "$as_me:17750: \$? = $ac_status" >&5
17751 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17752 then
17753 # The compiler can only warn and ignore the option if not recognized
17754 # So say no if there are warnings
17755 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17756 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17757 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17758 lt_cv_prog_compiler_c_o_GCJ=yes
17761 chmod u+w . 2>&5
17762 $rm conftest*
17763 # SGI C++ compiler will create directory out/ii_files/ for
17764 # template instantiation
17765 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17766 $rm out/* && rmdir out
17767 cd ..
17768 rmdir conftest
17769 $rm conftest*
17772 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17773 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17776 hard_links="nottested"
17777 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17778 # do not overwrite the value of need_locks provided by the user
17779 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17780 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17781 hard_links=yes
17782 $rm conftest*
17783 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17784 touch conftest.a
17785 ln conftest.a conftest.b 2>&5 || hard_links=no
17786 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17787 { echo "$as_me:$LINENO: result: $hard_links" >&5
17788 echo "${ECHO_T}$hard_links" >&6; }
17789 if test "$hard_links" = no; then
17790 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17791 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17792 need_locks=warn
17794 else
17795 need_locks=no
17798 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17799 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17801 runpath_var=
17802 allow_undefined_flag_GCJ=
17803 enable_shared_with_static_runtimes_GCJ=no
17804 archive_cmds_GCJ=
17805 archive_expsym_cmds_GCJ=
17806 old_archive_From_new_cmds_GCJ=
17807 old_archive_from_expsyms_cmds_GCJ=
17808 export_dynamic_flag_spec_GCJ=
17809 whole_archive_flag_spec_GCJ=
17810 thread_safe_flag_spec_GCJ=
17811 hardcode_libdir_flag_spec_GCJ=
17812 hardcode_libdir_flag_spec_ld_GCJ=
17813 hardcode_libdir_separator_GCJ=
17814 hardcode_direct_GCJ=no
17815 hardcode_minus_L_GCJ=no
17816 hardcode_shlibpath_var_GCJ=unsupported
17817 link_all_deplibs_GCJ=unknown
17818 hardcode_automatic_GCJ=no
17819 module_cmds_GCJ=
17820 module_expsym_cmds_GCJ=
17821 always_export_symbols_GCJ=no
17822 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17823 # include_expsyms should be a list of space-separated symbols to be *always*
17824 # included in the symbol list
17825 include_expsyms_GCJ=
17826 # exclude_expsyms can be an extended regexp of symbols to exclude
17827 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17828 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17829 # as well as any symbol that contains `d'.
17830 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17831 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17832 # platforms (ab)use it in PIC code, but their linkers get confused if
17833 # the symbol is explicitly referenced. Since portable code cannot
17834 # rely on this symbol name, it's probably fine to never include it in
17835 # preloaded symbol tables.
17836 extract_expsyms_cmds=
17837 # Just being paranoid about ensuring that cc_basename is set.
17838 for cc_temp in $compiler""; do
17839 case $cc_temp in
17840 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17841 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17842 \-*) ;;
17843 *) break;;
17844 esac
17845 done
17846 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17848 case $host_os in
17849 cygwin* | mingw* | pw32*)
17850 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17851 # When not using gcc, we currently assume that we are using
17852 # Microsoft Visual C++.
17853 if test "$GCC" != yes; then
17854 with_gnu_ld=no
17857 interix*)
17858 # we just hope/assume this is gcc and not c89 (= MSVC++)
17859 with_gnu_ld=yes
17861 openbsd*)
17862 with_gnu_ld=no
17864 esac
17866 ld_shlibs_GCJ=yes
17867 if test "$with_gnu_ld" = yes; then
17868 # If archive_cmds runs LD, not CC, wlarc should be empty
17869 wlarc='${wl}'
17871 # Set some defaults for GNU ld with shared library support. These
17872 # are reset later if shared libraries are not supported. Putting them
17873 # here allows them to be overridden if necessary.
17874 runpath_var=LD_RUN_PATH
17875 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17876 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17877 # ancient GNU ld didn't support --whole-archive et. al.
17878 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17879 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17880 else
17881 whole_archive_flag_spec_GCJ=
17883 supports_anon_versioning=no
17884 case `$LD -v 2>/dev/null` in
17885 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17886 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17887 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17888 *\ 2.11.*) ;; # other 2.11 versions
17889 *) supports_anon_versioning=yes ;;
17890 esac
17892 # See if GNU ld supports shared libraries.
17893 case $host_os in
17894 aix3* | aix4* | aix5*)
17895 # On AIX/PPC, the GNU linker is very broken
17896 if test "$host_cpu" != ia64; then
17897 ld_shlibs_GCJ=no
17898 cat <<EOF 1>&2
17900 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17901 *** to be unable to reliably create shared libraries on AIX.
17902 *** Therefore, libtool is disabling shared libraries support. If you
17903 *** really care for shared libraries, you may want to modify your PATH
17904 *** so that a non-GNU linker is found, and then restart.
17910 amigaos*)
17911 archive_cmds_GCJ='$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)'
17912 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17913 hardcode_minus_L_GCJ=yes
17915 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17916 # that the semantics of dynamic libraries on AmigaOS, at least up
17917 # to version 4, is to share data among multiple programs linked
17918 # with the same dynamic library. Since this doesn't match the
17919 # behavior of shared libraries on other platforms, we can't use
17920 # them.
17921 ld_shlibs_GCJ=no
17924 beos*)
17925 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17926 allow_undefined_flag_GCJ=unsupported
17927 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17928 # support --undefined. This deserves some investigation. FIXME
17929 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17930 else
17931 ld_shlibs_GCJ=no
17935 cygwin* | mingw* | pw32*)
17936 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17937 # as there is no search path for DLLs.
17938 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17939 allow_undefined_flag_GCJ=unsupported
17940 always_export_symbols_GCJ=no
17941 enable_shared_with_static_runtimes_GCJ=yes
17942 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17944 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17945 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17946 # If the export-symbols file already is a .def file (1st line
17947 # is EXPORTS), use it as is; otherwise, prepend...
17948 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17949 cp $export_symbols $output_objdir/$soname.def;
17950 else
17951 echo EXPORTS > $output_objdir/$soname.def;
17952 cat $export_symbols >> $output_objdir/$soname.def;
17954 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17955 else
17956 ld_shlibs_GCJ=no
17960 interix3*)
17961 hardcode_direct_GCJ=no
17962 hardcode_shlibpath_var_GCJ=no
17963 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17964 export_dynamic_flag_spec_GCJ='${wl}-E'
17965 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17966 # Instead, shared libraries are loaded at an image base (0x10000000 by
17967 # default) and relocated if they conflict, which is a slow very memory
17968 # consuming and fragmenting process. To avoid this, we pick a random,
17969 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17970 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17971 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17972 archive_expsym_cmds_GCJ='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'
17975 linux*)
17976 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17977 tmp_addflag=
17978 case $cc_basename,$host_cpu in
17979 pgcc*) # Portland Group C compiler
17980 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17981 tmp_addflag=' $pic_flag'
17983 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17984 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17985 tmp_addflag=' $pic_flag -Mnomain' ;;
17986 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17987 tmp_addflag=' -i_dynamic' ;;
17988 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17989 tmp_addflag=' -i_dynamic -nofor_main' ;;
17990 ifc* | ifort*) # Intel Fortran compiler
17991 tmp_addflag=' -nofor_main' ;;
17992 esac
17993 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17995 if test $supports_anon_versioning = yes; then
17996 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17997 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17998 $echo "local: *; };" >> $output_objdir/$libname.ver~
17999 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18001 else
18002 ld_shlibs_GCJ=no
18006 netbsd*)
18007 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18008 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18009 wlarc=
18010 else
18011 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18012 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18016 solaris*)
18017 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18018 ld_shlibs_GCJ=no
18019 cat <<EOF 1>&2
18021 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18022 *** create shared libraries on Solaris systems. Therefore, libtool
18023 *** is disabling shared libraries support. We urge you to upgrade GNU
18024 *** binutils to release 2.9.1 or newer. Another option is to modify
18025 *** your PATH or compiler configuration so that the native linker is
18026 *** used, and then restart.
18029 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18030 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18031 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18032 else
18033 ld_shlibs_GCJ=no
18037 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18038 case `$LD -v 2>&1` in
18039 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18040 ld_shlibs_GCJ=no
18041 cat <<_LT_EOF 1>&2
18043 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18044 *** reliably create shared libraries on SCO systems. Therefore, libtool
18045 *** is disabling shared libraries support. We urge you to upgrade GNU
18046 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18047 *** your PATH or compiler configuration so that the native linker is
18048 *** used, and then restart.
18050 _LT_EOF
18053 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18054 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18055 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18056 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18057 else
18058 ld_shlibs_GCJ=no
18061 esac
18064 sunos4*)
18065 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18066 wlarc=
18067 hardcode_direct_GCJ=yes
18068 hardcode_shlibpath_var_GCJ=no
18072 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18073 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18074 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18075 else
18076 ld_shlibs_GCJ=no
18079 esac
18081 if test "$ld_shlibs_GCJ" = no; then
18082 runpath_var=
18083 hardcode_libdir_flag_spec_GCJ=
18084 export_dynamic_flag_spec_GCJ=
18085 whole_archive_flag_spec_GCJ=
18087 else
18088 # PORTME fill in a description of your system's linker (not GNU ld)
18089 case $host_os in
18090 aix3*)
18091 allow_undefined_flag_GCJ=unsupported
18092 always_export_symbols_GCJ=yes
18093 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
18094 # Note: this linker hardcodes the directories in LIBPATH if there
18095 # are no directories specified by -L.
18096 hardcode_minus_L_GCJ=yes
18097 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18098 # Neither direct hardcoding nor static linking is supported with a
18099 # broken collect2.
18100 hardcode_direct_GCJ=unsupported
18104 aix4* | aix5*)
18105 if test "$host_cpu" = ia64; then
18106 # On IA64, the linker does run time linking by default, so we don't
18107 # have to do anything special.
18108 aix_use_runtimelinking=no
18109 exp_sym_flag='-Bexport'
18110 no_entry_flag=""
18111 else
18112 # If we're using GNU nm, then we don't want the "-C" option.
18113 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18114 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18115 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18116 else
18117 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18119 aix_use_runtimelinking=no
18121 # Test if we are trying to use run time linking or normal
18122 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18123 # need to do runtime linking.
18124 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18125 for ld_flag in $LDFLAGS; do
18126 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18127 aix_use_runtimelinking=yes
18128 break
18130 done
18132 esac
18134 exp_sym_flag='-bexport'
18135 no_entry_flag='-bnoentry'
18138 # When large executables or shared objects are built, AIX ld can
18139 # have problems creating the table of contents. If linking a library
18140 # or program results in "error TOC overflow" add -mminimal-toc to
18141 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18142 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18144 archive_cmds_GCJ=''
18145 hardcode_direct_GCJ=yes
18146 hardcode_libdir_separator_GCJ=':'
18147 link_all_deplibs_GCJ=yes
18149 if test "$GCC" = yes; then
18150 case $host_os in aix4.[012]|aix4.[012].*)
18151 # We only want to do this on AIX 4.2 and lower, the check
18152 # below for broken collect2 doesn't work under 4.3+
18153 collect2name=`${CC} -print-prog-name=collect2`
18154 if test -f "$collect2name" && \
18155 strings "$collect2name" | grep resolve_lib_name >/dev/null
18156 then
18157 # We have reworked collect2
18158 hardcode_direct_GCJ=yes
18159 else
18160 # We have old collect2
18161 hardcode_direct_GCJ=unsupported
18162 # It fails to find uninstalled libraries when the uninstalled
18163 # path is not listed in the libpath. Setting hardcode_minus_L
18164 # to unsupported forces relinking
18165 hardcode_minus_L_GCJ=yes
18166 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18167 hardcode_libdir_separator_GCJ=
18170 esac
18171 shared_flag='-shared'
18172 if test "$aix_use_runtimelinking" = yes; then
18173 shared_flag="$shared_flag "'${wl}-G'
18175 else
18176 # not using gcc
18177 if test "$host_cpu" = ia64; then
18178 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18179 # chokes on -Wl,-G. The following line is correct:
18180 shared_flag='-G'
18181 else
18182 if test "$aix_use_runtimelinking" = yes; then
18183 shared_flag='${wl}-G'
18184 else
18185 shared_flag='${wl}-bM:SRE'
18190 # It seems that -bexpall does not export symbols beginning with
18191 # underscore (_), so it is better to generate a list of symbols to export.
18192 always_export_symbols_GCJ=yes
18193 if test "$aix_use_runtimelinking" = yes; then
18194 # Warning - without using the other runtime loading flags (-brtl),
18195 # -berok will link without error, but may produce a broken library.
18196 allow_undefined_flag_GCJ='-berok'
18197 # Determine the default libpath from the value encoded in an empty executable.
18198 cat >conftest.$ac_ext <<_ACEOF
18199 /* confdefs.h. */
18200 _ACEOF
18201 cat confdefs.h >>conftest.$ac_ext
18202 cat >>conftest.$ac_ext <<_ACEOF
18203 /* end confdefs.h. */
18206 main ()
18210 return 0;
18212 _ACEOF
18213 rm -f conftest.$ac_objext conftest$ac_exeext
18214 if { (ac_try="$ac_link"
18215 case "(($ac_try" in
18216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18217 *) ac_try_echo=$ac_try;;
18218 esac
18219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18220 (eval "$ac_link") 2>conftest.er1
18221 ac_status=$?
18222 grep -v '^ *+' conftest.er1 >conftest.err
18223 rm -f conftest.er1
18224 cat conftest.err >&5
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); } && {
18227 test -z "$ac_c_werror_flag" ||
18228 test ! -s conftest.err
18229 } && test -s conftest$ac_exeext &&
18230 $as_test_x conftest$ac_exeext; then
18232 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18234 # Check for a 64-bit object if we didn't find anything.
18235 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18236 }'`; fi
18237 else
18238 echo "$as_me: failed program was:" >&5
18239 sed 's/^/| /' conftest.$ac_ext >&5
18244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18245 conftest$ac_exeext conftest.$ac_ext
18246 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18248 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18249 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18250 else
18251 if test "$host_cpu" = ia64; then
18252 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18253 allow_undefined_flag_GCJ="-z nodefs"
18254 archive_expsym_cmds_GCJ="\$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"
18255 else
18256 # Determine the default libpath from the value encoded in an empty executable.
18257 cat >conftest.$ac_ext <<_ACEOF
18258 /* confdefs.h. */
18259 _ACEOF
18260 cat confdefs.h >>conftest.$ac_ext
18261 cat >>conftest.$ac_ext <<_ACEOF
18262 /* end confdefs.h. */
18265 main ()
18269 return 0;
18271 _ACEOF
18272 rm -f conftest.$ac_objext conftest$ac_exeext
18273 if { (ac_try="$ac_link"
18274 case "(($ac_try" in
18275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18276 *) ac_try_echo=$ac_try;;
18277 esac
18278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18279 (eval "$ac_link") 2>conftest.er1
18280 ac_status=$?
18281 grep -v '^ *+' conftest.er1 >conftest.err
18282 rm -f conftest.er1
18283 cat conftest.err >&5
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); } && {
18286 test -z "$ac_c_werror_flag" ||
18287 test ! -s conftest.err
18288 } && test -s conftest$ac_exeext &&
18289 $as_test_x conftest$ac_exeext; then
18291 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18293 # Check for a 64-bit object if we didn't find anything.
18294 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18295 }'`; fi
18296 else
18297 echo "$as_me: failed program was:" >&5
18298 sed 's/^/| /' conftest.$ac_ext >&5
18303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18304 conftest$ac_exeext conftest.$ac_ext
18305 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18307 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18308 # Warning - without using the other run time loading flags,
18309 # -berok will link without error, but may produce a broken library.
18310 no_undefined_flag_GCJ=' ${wl}-bernotok'
18311 allow_undefined_flag_GCJ=' ${wl}-berok'
18312 # Exported symbols can be pulled into shared objects from archives
18313 whole_archive_flag_spec_GCJ='$convenience'
18314 archive_cmds_need_lc_GCJ=yes
18315 # This is similar to how AIX traditionally builds its shared libraries.
18316 archive_expsym_cmds_GCJ="\$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'
18321 amigaos*)
18322 archive_cmds_GCJ='$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)'
18323 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18324 hardcode_minus_L_GCJ=yes
18325 # see comment about different semantics on the GNU ld section
18326 ld_shlibs_GCJ=no
18329 bsdi[45]*)
18330 export_dynamic_flag_spec_GCJ=-rdynamic
18333 cygwin* | mingw* | pw32*)
18334 # When not using gcc, we currently assume that we are using
18335 # Microsoft Visual C++.
18336 # hardcode_libdir_flag_spec is actually meaningless, as there is
18337 # no search path for DLLs.
18338 hardcode_libdir_flag_spec_GCJ=' '
18339 allow_undefined_flag_GCJ=unsupported
18340 # Tell ltmain to make .lib files, not .a files.
18341 libext=lib
18342 # Tell ltmain to make .dll files, not .so files.
18343 shrext_cmds=".dll"
18344 # FIXME: Setting linknames here is a bad hack.
18345 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18346 # The linker will automatically build a .lib file if we build a DLL.
18347 old_archive_From_new_cmds_GCJ='true'
18348 # FIXME: Should let the user specify the lib program.
18349 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18350 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18351 enable_shared_with_static_runtimes_GCJ=yes
18354 darwin* | rhapsody*)
18355 case $host_os in
18356 rhapsody* | darwin1.[012])
18357 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18359 *) # Darwin 1.3 on
18360 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18361 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18362 else
18363 case ${MACOSX_DEPLOYMENT_TARGET} in
18364 10.[012])
18365 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18367 10.*)
18368 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18370 esac
18373 esac
18374 archive_cmds_need_lc_GCJ=no
18375 hardcode_direct_GCJ=no
18376 hardcode_automatic_GCJ=yes
18377 hardcode_shlibpath_var_GCJ=unsupported
18378 whole_archive_flag_spec_GCJ=''
18379 link_all_deplibs_GCJ=yes
18380 if test "$GCC" = yes ; then
18381 output_verbose_link_cmd='echo'
18382 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18383 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18384 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18385 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18386 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18387 else
18388 case $cc_basename in
18389 xlc*)
18390 output_verbose_link_cmd='echo'
18391 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18392 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18393 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18394 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18395 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18398 ld_shlibs_GCJ=no
18400 esac
18404 dgux*)
18405 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18406 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18407 hardcode_shlibpath_var_GCJ=no
18410 freebsd1*)
18411 ld_shlibs_GCJ=no
18414 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18415 # support. Future versions do this automatically, but an explicit c++rt0.o
18416 # does not break anything, and helps significantly (at the cost of a little
18417 # extra space).
18418 freebsd2.2*)
18419 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18420 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18421 hardcode_direct_GCJ=yes
18422 hardcode_shlibpath_var_GCJ=no
18425 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18426 freebsd2*)
18427 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18428 hardcode_direct_GCJ=yes
18429 hardcode_minus_L_GCJ=yes
18430 hardcode_shlibpath_var_GCJ=no
18433 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18434 freebsd* | kfreebsd*-gnu | dragonfly*)
18435 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18436 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18437 hardcode_direct_GCJ=yes
18438 hardcode_shlibpath_var_GCJ=no
18441 hpux9*)
18442 if test "$GCC" = yes; then
18443 archive_cmds_GCJ='$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'
18444 else
18445 archive_cmds_GCJ='$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'
18447 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18448 hardcode_libdir_separator_GCJ=:
18449 hardcode_direct_GCJ=yes
18451 # hardcode_minus_L: Not really in the search PATH,
18452 # but as the default location of the library.
18453 hardcode_minus_L_GCJ=yes
18454 export_dynamic_flag_spec_GCJ='${wl}-E'
18457 hpux10*)
18458 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18459 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18460 else
18461 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18463 if test "$with_gnu_ld" = no; then
18464 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18465 hardcode_libdir_separator_GCJ=:
18467 hardcode_direct_GCJ=yes
18468 export_dynamic_flag_spec_GCJ='${wl}-E'
18470 # hardcode_minus_L: Not really in the search PATH,
18471 # but as the default location of the library.
18472 hardcode_minus_L_GCJ=yes
18476 hpux11*)
18477 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18478 case $host_cpu in
18479 hppa*64*)
18480 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18482 ia64*)
18483 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18486 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18488 esac
18489 else
18490 case $host_cpu in
18491 hppa*64*)
18492 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18494 ia64*)
18495 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18498 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18500 esac
18502 if test "$with_gnu_ld" = no; then
18503 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18504 hardcode_libdir_separator_GCJ=:
18506 case $host_cpu in
18507 hppa*64*|ia64*)
18508 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18509 hardcode_direct_GCJ=no
18510 hardcode_shlibpath_var_GCJ=no
18513 hardcode_direct_GCJ=yes
18514 export_dynamic_flag_spec_GCJ='${wl}-E'
18516 # hardcode_minus_L: Not really in the search PATH,
18517 # but as the default location of the library.
18518 hardcode_minus_L_GCJ=yes
18520 esac
18524 irix5* | irix6* | nonstopux*)
18525 if test "$GCC" = yes; then
18526 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18527 else
18528 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18529 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18531 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18532 hardcode_libdir_separator_GCJ=:
18533 link_all_deplibs_GCJ=yes
18536 netbsd*)
18537 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18538 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18539 else
18540 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18542 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18543 hardcode_direct_GCJ=yes
18544 hardcode_shlibpath_var_GCJ=no
18547 newsos6)
18548 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18549 hardcode_direct_GCJ=yes
18550 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18551 hardcode_libdir_separator_GCJ=:
18552 hardcode_shlibpath_var_GCJ=no
18555 openbsd*)
18556 hardcode_direct_GCJ=yes
18557 hardcode_shlibpath_var_GCJ=no
18558 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18559 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18560 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18561 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18562 export_dynamic_flag_spec_GCJ='${wl}-E'
18563 else
18564 case $host_os in
18565 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18566 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18567 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18570 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18571 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18573 esac
18577 os2*)
18578 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18579 hardcode_minus_L_GCJ=yes
18580 allow_undefined_flag_GCJ=unsupported
18581 archive_cmds_GCJ='$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'
18582 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18585 osf3*)
18586 if test "$GCC" = yes; then
18587 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18588 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18589 else
18590 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18591 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18593 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18594 hardcode_libdir_separator_GCJ=:
18597 osf4* | osf5*) # as osf3* with the addition of -msym flag
18598 if test "$GCC" = yes; then
18599 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18600 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18601 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18602 else
18603 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18604 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18605 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18606 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18608 # Both c and cxx compiler support -rpath directly
18609 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18611 hardcode_libdir_separator_GCJ=:
18614 solaris*)
18615 no_undefined_flag_GCJ=' -z text'
18616 if test "$GCC" = yes; then
18617 wlarc='${wl}'
18618 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18619 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18620 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18621 else
18622 wlarc=''
18623 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18624 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18625 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18627 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18628 hardcode_shlibpath_var_GCJ=no
18629 case $host_os in
18630 solaris2.[0-5] | solaris2.[0-5].*) ;;
18632 # The compiler driver will combine linker options so we
18633 # cannot just pass the convience library names through
18634 # without $wl, iff we do not link with $LD.
18635 # Luckily, gcc supports the same syntax we need for Sun Studio.
18636 # Supported since Solaris 2.6 (maybe 2.5.1?)
18637 case $wlarc in
18639 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18641 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18642 esac ;;
18643 esac
18644 link_all_deplibs_GCJ=yes
18647 sunos4*)
18648 if test "x$host_vendor" = xsequent; then
18649 # Use $CC to link under sequent, because it throws in some extra .o
18650 # files that make .init and .fini sections work.
18651 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18652 else
18653 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18655 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18656 hardcode_direct_GCJ=yes
18657 hardcode_minus_L_GCJ=yes
18658 hardcode_shlibpath_var_GCJ=no
18661 sysv4)
18662 case $host_vendor in
18663 sni)
18664 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18665 hardcode_direct_GCJ=yes # is this really true???
18667 siemens)
18668 ## LD is ld it makes a PLAMLIB
18669 ## CC just makes a GrossModule.
18670 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18671 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18672 hardcode_direct_GCJ=no
18674 motorola)
18675 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18676 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18678 esac
18679 runpath_var='LD_RUN_PATH'
18680 hardcode_shlibpath_var_GCJ=no
18683 sysv4.3*)
18684 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18685 hardcode_shlibpath_var_GCJ=no
18686 export_dynamic_flag_spec_GCJ='-Bexport'
18689 sysv4*MP*)
18690 if test -d /usr/nec; then
18691 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18692 hardcode_shlibpath_var_GCJ=no
18693 runpath_var=LD_RUN_PATH
18694 hardcode_runpath_var=yes
18695 ld_shlibs_GCJ=yes
18699 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18700 no_undefined_flag_GCJ='${wl}-z,text'
18701 archive_cmds_need_lc_GCJ=no
18702 hardcode_shlibpath_var_GCJ=no
18703 runpath_var='LD_RUN_PATH'
18705 if test "$GCC" = yes; then
18706 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18707 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18708 else
18709 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18710 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18714 sysv5* | sco3.2v5* | sco5v6*)
18715 # Note: We can NOT use -z defs as we might desire, because we do not
18716 # link with -lc, and that would cause any symbols used from libc to
18717 # always be unresolved, which means just about no library would
18718 # ever link correctly. If we're not using GNU ld we use -z text
18719 # though, which does catch some bad symbols but isn't as heavy-handed
18720 # as -z defs.
18721 no_undefined_flag_GCJ='${wl}-z,text'
18722 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18723 archive_cmds_need_lc_GCJ=no
18724 hardcode_shlibpath_var_GCJ=no
18725 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18726 hardcode_libdir_separator_GCJ=':'
18727 link_all_deplibs_GCJ=yes
18728 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18729 runpath_var='LD_RUN_PATH'
18731 if test "$GCC" = yes; then
18732 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18733 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18734 else
18735 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18736 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18740 uts4*)
18741 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18742 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18743 hardcode_shlibpath_var_GCJ=no
18747 ld_shlibs_GCJ=no
18749 esac
18752 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18753 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18754 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18757 # Do we need to explicitly link libc?
18759 case "x$archive_cmds_need_lc_GCJ" in
18760 x|xyes)
18761 # Assume -lc should be added
18762 archive_cmds_need_lc_GCJ=yes
18764 if test "$enable_shared" = yes && test "$GCC" = yes; then
18765 case $archive_cmds_GCJ in
18766 *'~'*)
18767 # FIXME: we may have to deal with multi-command sequences.
18769 '$CC '*)
18770 # Test whether the compiler implicitly links with -lc since on some
18771 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18772 # to ld, don't add -lc before -lgcc.
18773 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18774 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18775 $rm conftest*
18776 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18779 (eval $ac_compile) 2>&5
18780 ac_status=$?
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); } 2>conftest.err; then
18783 soname=conftest
18784 lib=conftest
18785 libobjs=conftest.$ac_objext
18786 deplibs=
18787 wl=$lt_prog_compiler_wl_GCJ
18788 pic_flag=$lt_prog_compiler_pic_GCJ
18789 compiler_flags=-v
18790 linker_flags=-v
18791 verstring=
18792 output_objdir=.
18793 libname=conftest
18794 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18795 allow_undefined_flag_GCJ=
18796 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18797 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18798 ac_status=$?
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); }
18801 then
18802 archive_cmds_need_lc_GCJ=no
18803 else
18804 archive_cmds_need_lc_GCJ=yes
18806 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18807 else
18808 cat conftest.err 1>&5
18810 $rm conftest*
18811 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18812 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18814 esac
18817 esac
18819 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18820 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18821 library_names_spec=
18822 libname_spec='lib$name'
18823 soname_spec=
18824 shrext_cmds=".so"
18825 postinstall_cmds=
18826 postuninstall_cmds=
18827 finish_cmds=
18828 finish_eval=
18829 shlibpath_var=
18830 shlibpath_overrides_runpath=unknown
18831 version_type=none
18832 dynamic_linker="$host_os ld.so"
18833 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18834 if test "$GCC" = yes; then
18835 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18836 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18837 # if the path contains ";" then we assume it to be the separator
18838 # otherwise default to the standard path separator (i.e. ":") - it is
18839 # assumed that no part of a normal pathname contains ";" but that should
18840 # okay in the real world where ";" in dirpaths is itself problematic.
18841 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18842 else
18843 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18845 else
18846 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18848 need_lib_prefix=unknown
18849 hardcode_into_libs=no
18851 # when you set need_version to no, make sure it does not cause -set_version
18852 # flags to be left without arguments
18853 need_version=unknown
18855 case $host_os in
18856 aix3*)
18857 version_type=linux
18858 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18859 shlibpath_var=LIBPATH
18861 # AIX 3 has no versioning support, so we append a major version to the name.
18862 soname_spec='${libname}${release}${shared_ext}$major'
18865 aix4* | aix5*)
18866 version_type=linux
18867 need_lib_prefix=no
18868 need_version=no
18869 hardcode_into_libs=yes
18870 if test "$host_cpu" = ia64; then
18871 # AIX 5 supports IA64
18872 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18873 shlibpath_var=LD_LIBRARY_PATH
18874 else
18875 # With GCC up to 2.95.x, collect2 would create an import file
18876 # for dependence libraries. The import file would start with
18877 # the line `#! .'. This would cause the generated library to
18878 # depend on `.', always an invalid library. This was fixed in
18879 # development snapshots of GCC prior to 3.0.
18880 case $host_os in
18881 aix4 | aix4.[01] | aix4.[01].*)
18882 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18883 echo ' yes '
18884 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18886 else
18887 can_build_shared=no
18890 esac
18891 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18892 # soname into executable. Probably we can add versioning support to
18893 # collect2, so additional links can be useful in future.
18894 if test "$aix_use_runtimelinking" = yes; then
18895 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18896 # instead of lib<name>.a to let people know that these are not
18897 # typical AIX shared libraries.
18898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18899 else
18900 # We preserve .a as extension for shared libraries through AIX4.2
18901 # and later when we are not doing run time linking.
18902 library_names_spec='${libname}${release}.a $libname.a'
18903 soname_spec='${libname}${release}${shared_ext}$major'
18905 shlibpath_var=LIBPATH
18909 amigaos*)
18910 library_names_spec='$libname.ixlibrary $libname.a'
18911 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18912 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'
18915 beos*)
18916 library_names_spec='${libname}${shared_ext}'
18917 dynamic_linker="$host_os ld.so"
18918 shlibpath_var=LIBRARY_PATH
18921 bsdi[45]*)
18922 version_type=linux
18923 need_version=no
18924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18925 soname_spec='${libname}${release}${shared_ext}$major'
18926 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18927 shlibpath_var=LD_LIBRARY_PATH
18928 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18929 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18930 # the default ld.so.conf also contains /usr/contrib/lib and
18931 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18932 # libtool to hard-code these into programs
18935 cygwin* | mingw* | pw32*)
18936 version_type=windows
18937 shrext_cmds=".dll"
18938 need_version=no
18939 need_lib_prefix=no
18941 case $GCC,$host_os in
18942 yes,cygwin* | yes,mingw* | yes,pw32*)
18943 library_names_spec='$libname.dll.a'
18944 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18945 postinstall_cmds='base_file=`basename \${file}`~
18946 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18947 dldir=$destdir/`dirname \$dlpath`~
18948 test -d \$dldir || mkdir -p \$dldir~
18949 $install_prog $dir/$dlname \$dldir/$dlname~
18950 chmod a+x \$dldir/$dlname'
18951 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18952 dlpath=$dir/\$dldll~
18953 $rm \$dlpath'
18954 shlibpath_overrides_runpath=yes
18956 case $host_os in
18957 cygwin*)
18958 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18959 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18960 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18962 mingw*)
18963 # MinGW DLLs use traditional 'lib' prefix
18964 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18965 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18966 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18967 # It is most probably a Windows format PATH printed by
18968 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18969 # path with ; separators, and with drive letters. We can handle the
18970 # drive letters (cygwin fileutils understands them), so leave them,
18971 # especially as we might pass files found there to a mingw objdump,
18972 # which wouldn't understand a cygwinified path. Ahh.
18973 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18974 else
18975 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18978 pw32*)
18979 # pw32 DLLs use 'pw' prefix rather than 'lib'
18980 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18982 esac
18986 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18988 esac
18989 dynamic_linker='Win32 ld.exe'
18990 # FIXME: first we should search . and the directory the executable is in
18991 shlibpath_var=PATH
18994 darwin* | rhapsody*)
18995 dynamic_linker="$host_os dyld"
18996 version_type=darwin
18997 need_lib_prefix=no
18998 need_version=no
18999 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19000 soname_spec='${libname}${release}${major}$shared_ext'
19001 shlibpath_overrides_runpath=yes
19002 shlibpath_var=DYLD_LIBRARY_PATH
19003 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19004 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19005 if test "$GCC" = yes; then
19006 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
19007 else
19008 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19010 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19013 dgux*)
19014 version_type=linux
19015 need_lib_prefix=no
19016 need_version=no
19017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19018 soname_spec='${libname}${release}${shared_ext}$major'
19019 shlibpath_var=LD_LIBRARY_PATH
19022 freebsd1*)
19023 dynamic_linker=no
19026 kfreebsd*-gnu)
19027 version_type=linux
19028 need_lib_prefix=no
19029 need_version=no
19030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19031 soname_spec='${libname}${release}${shared_ext}$major'
19032 shlibpath_var=LD_LIBRARY_PATH
19033 shlibpath_overrides_runpath=no
19034 hardcode_into_libs=yes
19035 dynamic_linker='GNU ld.so'
19038 freebsd* | dragonfly*)
19039 # DragonFly does not have aout. When/if they implement a new
19040 # versioning mechanism, adjust this.
19041 if test -x /usr/bin/objformat; then
19042 objformat=`/usr/bin/objformat`
19043 else
19044 case $host_os in
19045 freebsd[123]*) objformat=aout ;;
19046 *) objformat=elf ;;
19047 esac
19049 version_type=freebsd-$objformat
19050 case $version_type in
19051 freebsd-elf*)
19052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19053 need_version=no
19054 need_lib_prefix=no
19056 freebsd-*)
19057 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19058 need_version=yes
19060 esac
19061 shlibpath_var=LD_LIBRARY_PATH
19062 case $host_os in
19063 freebsd2*)
19064 shlibpath_overrides_runpath=yes
19066 freebsd3.[01]* | freebsdelf3.[01]*)
19067 shlibpath_overrides_runpath=yes
19068 hardcode_into_libs=yes
19070 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19071 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19072 shlibpath_overrides_runpath=no
19073 hardcode_into_libs=yes
19075 freebsd*) # from 4.6 on
19076 shlibpath_overrides_runpath=yes
19077 hardcode_into_libs=yes
19079 esac
19082 gnu*)
19083 version_type=linux
19084 need_lib_prefix=no
19085 need_version=no
19086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19087 soname_spec='${libname}${release}${shared_ext}$major'
19088 shlibpath_var=LD_LIBRARY_PATH
19089 hardcode_into_libs=yes
19092 hpux9* | hpux10* | hpux11*)
19093 # Give a soname corresponding to the major version so that dld.sl refuses to
19094 # link against other versions.
19095 version_type=sunos
19096 need_lib_prefix=no
19097 need_version=no
19098 case $host_cpu in
19099 ia64*)
19100 shrext_cmds='.so'
19101 hardcode_into_libs=yes
19102 dynamic_linker="$host_os dld.so"
19103 shlibpath_var=LD_LIBRARY_PATH
19104 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19106 soname_spec='${libname}${release}${shared_ext}$major'
19107 if test "X$HPUX_IA64_MODE" = X32; then
19108 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19109 else
19110 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19112 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19114 hppa*64*)
19115 shrext_cmds='.sl'
19116 hardcode_into_libs=yes
19117 dynamic_linker="$host_os dld.sl"
19118 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19119 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19121 soname_spec='${libname}${release}${shared_ext}$major'
19122 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19123 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19126 shrext_cmds='.sl'
19127 dynamic_linker="$host_os dld.sl"
19128 shlibpath_var=SHLIB_PATH
19129 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19131 soname_spec='${libname}${release}${shared_ext}$major'
19133 esac
19134 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19135 postinstall_cmds='chmod 555 $lib'
19138 interix3*)
19139 version_type=linux
19140 need_lib_prefix=no
19141 need_version=no
19142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19143 soname_spec='${libname}${release}${shared_ext}$major'
19144 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19145 shlibpath_var=LD_LIBRARY_PATH
19146 shlibpath_overrides_runpath=no
19147 hardcode_into_libs=yes
19150 irix5* | irix6* | nonstopux*)
19151 case $host_os in
19152 nonstopux*) version_type=nonstopux ;;
19154 if test "$lt_cv_prog_gnu_ld" = yes; then
19155 version_type=linux
19156 else
19157 version_type=irix
19158 fi ;;
19159 esac
19160 need_lib_prefix=no
19161 need_version=no
19162 soname_spec='${libname}${release}${shared_ext}$major'
19163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19164 case $host_os in
19165 irix5* | nonstopux*)
19166 libsuff= shlibsuff=
19169 case $LD in # libtool.m4 will add one of these switches to LD
19170 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19171 libsuff= shlibsuff= libmagic=32-bit;;
19172 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19173 libsuff=32 shlibsuff=N32 libmagic=N32;;
19174 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19175 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19176 *) libsuff= shlibsuff= libmagic=never-match;;
19177 esac
19179 esac
19180 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19181 shlibpath_overrides_runpath=no
19182 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19183 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19184 hardcode_into_libs=yes
19187 # No shared lib support for Linux oldld, aout, or coff.
19188 linux*oldld* | linux*aout* | linux*coff*)
19189 dynamic_linker=no
19192 # This must be Linux ELF.
19193 linux*)
19194 version_type=linux
19195 need_lib_prefix=no
19196 need_version=no
19197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19198 soname_spec='${libname}${release}${shared_ext}$major'
19199 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19200 shlibpath_var=LD_LIBRARY_PATH
19201 shlibpath_overrides_runpath=no
19202 # This implies no fast_install, which is unacceptable.
19203 # Some rework will be needed to allow for fast_install
19204 # before this can be enabled.
19205 hardcode_into_libs=yes
19207 # Append ld.so.conf contents to the search path
19208 if test -f /etc/ld.so.conf; then
19209 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19210 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19213 # We used to test for /lib/ld.so.1 and disable shared libraries on
19214 # powerpc, because MkLinux only supported shared libraries with the
19215 # GNU dynamic linker. Since this was broken with cross compilers,
19216 # most powerpc-linux boxes support dynamic linking these days and
19217 # people can always --disable-shared, the test was removed, and we
19218 # assume the GNU/Linux dynamic linker is in use.
19219 dynamic_linker='GNU/Linux ld.so'
19222 knetbsd*-gnu)
19223 version_type=linux
19224 need_lib_prefix=no
19225 need_version=no
19226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19227 soname_spec='${libname}${release}${shared_ext}$major'
19228 shlibpath_var=LD_LIBRARY_PATH
19229 shlibpath_overrides_runpath=no
19230 hardcode_into_libs=yes
19231 dynamic_linker='GNU ld.so'
19234 netbsd*)
19235 version_type=sunos
19236 need_lib_prefix=no
19237 need_version=no
19238 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19240 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19241 dynamic_linker='NetBSD (a.out) ld.so'
19242 else
19243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19244 soname_spec='${libname}${release}${shared_ext}$major'
19245 dynamic_linker='NetBSD ld.elf_so'
19247 shlibpath_var=LD_LIBRARY_PATH
19248 shlibpath_overrides_runpath=yes
19249 hardcode_into_libs=yes
19252 newsos6)
19253 version_type=linux
19254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19255 shlibpath_var=LD_LIBRARY_PATH
19256 shlibpath_overrides_runpath=yes
19259 nto-qnx*)
19260 version_type=linux
19261 need_lib_prefix=no
19262 need_version=no
19263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19264 soname_spec='${libname}${release}${shared_ext}$major'
19265 shlibpath_var=LD_LIBRARY_PATH
19266 shlibpath_overrides_runpath=yes
19269 openbsd*)
19270 version_type=sunos
19271 sys_lib_dlsearch_path_spec="/usr/lib"
19272 need_lib_prefix=no
19273 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19274 case $host_os in
19275 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19276 *) need_version=no ;;
19277 esac
19278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19279 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19280 shlibpath_var=LD_LIBRARY_PATH
19281 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19282 case $host_os in
19283 openbsd2.[89] | openbsd2.[89].*)
19284 shlibpath_overrides_runpath=no
19287 shlibpath_overrides_runpath=yes
19289 esac
19290 else
19291 shlibpath_overrides_runpath=yes
19295 os2*)
19296 libname_spec='$name'
19297 shrext_cmds=".dll"
19298 need_lib_prefix=no
19299 library_names_spec='$libname${shared_ext} $libname.a'
19300 dynamic_linker='OS/2 ld.exe'
19301 shlibpath_var=LIBPATH
19304 osf3* | osf4* | osf5*)
19305 version_type=osf
19306 need_lib_prefix=no
19307 need_version=no
19308 soname_spec='${libname}${release}${shared_ext}$major'
19309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19310 shlibpath_var=LD_LIBRARY_PATH
19311 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19312 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19315 solaris*)
19316 version_type=linux
19317 need_lib_prefix=no
19318 need_version=no
19319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19320 soname_spec='${libname}${release}${shared_ext}$major'
19321 shlibpath_var=LD_LIBRARY_PATH
19322 shlibpath_overrides_runpath=yes
19323 hardcode_into_libs=yes
19324 # ldd complains unless libraries are executable
19325 postinstall_cmds='chmod +x $lib'
19328 sunos4*)
19329 version_type=sunos
19330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19331 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19332 shlibpath_var=LD_LIBRARY_PATH
19333 shlibpath_overrides_runpath=yes
19334 if test "$with_gnu_ld" = yes; then
19335 need_lib_prefix=no
19337 need_version=yes
19340 sysv4 | sysv4.3*)
19341 version_type=linux
19342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19343 soname_spec='${libname}${release}${shared_ext}$major'
19344 shlibpath_var=LD_LIBRARY_PATH
19345 case $host_vendor in
19346 sni)
19347 shlibpath_overrides_runpath=no
19348 need_lib_prefix=no
19349 export_dynamic_flag_spec='${wl}-Blargedynsym'
19350 runpath_var=LD_RUN_PATH
19352 siemens)
19353 need_lib_prefix=no
19355 motorola)
19356 need_lib_prefix=no
19357 need_version=no
19358 shlibpath_overrides_runpath=no
19359 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19361 esac
19364 sysv4*MP*)
19365 if test -d /usr/nec ;then
19366 version_type=linux
19367 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19368 soname_spec='$libname${shared_ext}.$major'
19369 shlibpath_var=LD_LIBRARY_PATH
19373 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19374 version_type=freebsd-elf
19375 need_lib_prefix=no
19376 need_version=no
19377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19378 soname_spec='${libname}${release}${shared_ext}$major'
19379 shlibpath_var=LD_LIBRARY_PATH
19380 hardcode_into_libs=yes
19381 if test "$with_gnu_ld" = yes; then
19382 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19383 shlibpath_overrides_runpath=no
19384 else
19385 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19386 shlibpath_overrides_runpath=yes
19387 case $host_os in
19388 sco3.2v5*)
19389 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19391 esac
19393 sys_lib_dlsearch_path_spec='/usr/lib'
19396 uts4*)
19397 version_type=linux
19398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19399 soname_spec='${libname}${release}${shared_ext}$major'
19400 shlibpath_var=LD_LIBRARY_PATH
19404 dynamic_linker=no
19406 esac
19407 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19408 echo "${ECHO_T}$dynamic_linker" >&6; }
19409 test "$dynamic_linker" = no && can_build_shared=no
19411 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19412 if test "$GCC" = yes; then
19413 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19416 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19417 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19418 hardcode_action_GCJ=
19419 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19420 test -n "$runpath_var_GCJ" || \
19421 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19423 # We can hardcode non-existant directories.
19424 if test "$hardcode_direct_GCJ" != no &&
19425 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19426 # have to relink, otherwise we might link with an installed library
19427 # when we should be linking with a yet-to-be-installed one
19428 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19429 test "$hardcode_minus_L_GCJ" != no; then
19430 # Linking always hardcodes the temporary library directory.
19431 hardcode_action_GCJ=relink
19432 else
19433 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19434 hardcode_action_GCJ=immediate
19436 else
19437 # We cannot hardcode anything, or else we can only hardcode existing
19438 # directories.
19439 hardcode_action_GCJ=unsupported
19441 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19442 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19444 if test "$hardcode_action_GCJ" = relink; then
19445 # Fast installation is not supported
19446 enable_fast_install=no
19447 elif test "$shlibpath_overrides_runpath" = yes ||
19448 test "$enable_shared" = no; then
19449 # Fast installation is not necessary
19450 enable_fast_install=needless
19454 # The else clause should only fire when bootstrapping the
19455 # libtool distribution, otherwise you forgot to ship ltmain.sh
19456 # with your package, and you will get complaints that there are
19457 # no rules to generate ltmain.sh.
19458 if test -f "$ltmain"; then
19459 # See if we are running on zsh, and set the options which allow our commands through
19460 # without removal of \ escapes.
19461 if test -n "${ZSH_VERSION+set}" ; then
19462 setopt NO_GLOB_SUBST
19464 # Now quote all the things that may contain metacharacters while being
19465 # careful not to overquote the AC_SUBSTed values. We take copies of the
19466 # variables and quote the copies for generation of the libtool script.
19467 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19468 SED SHELL STRIP \
19469 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19470 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19471 deplibs_check_method reload_flag reload_cmds need_locks \
19472 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19473 lt_cv_sys_global_symbol_to_c_name_address \
19474 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19475 old_postinstall_cmds old_postuninstall_cmds \
19476 compiler_GCJ \
19477 CC_GCJ \
19478 LD_GCJ \
19479 lt_prog_compiler_wl_GCJ \
19480 lt_prog_compiler_pic_GCJ \
19481 lt_prog_compiler_static_GCJ \
19482 lt_prog_compiler_no_builtin_flag_GCJ \
19483 export_dynamic_flag_spec_GCJ \
19484 thread_safe_flag_spec_GCJ \
19485 whole_archive_flag_spec_GCJ \
19486 enable_shared_with_static_runtimes_GCJ \
19487 old_archive_cmds_GCJ \
19488 old_archive_from_new_cmds_GCJ \
19489 predep_objects_GCJ \
19490 postdep_objects_GCJ \
19491 predeps_GCJ \
19492 postdeps_GCJ \
19493 compiler_lib_search_path_GCJ \
19494 archive_cmds_GCJ \
19495 archive_expsym_cmds_GCJ \
19496 postinstall_cmds_GCJ \
19497 postuninstall_cmds_GCJ \
19498 old_archive_from_expsyms_cmds_GCJ \
19499 allow_undefined_flag_GCJ \
19500 no_undefined_flag_GCJ \
19501 export_symbols_cmds_GCJ \
19502 hardcode_libdir_flag_spec_GCJ \
19503 hardcode_libdir_flag_spec_ld_GCJ \
19504 hardcode_libdir_separator_GCJ \
19505 hardcode_automatic_GCJ \
19506 module_cmds_GCJ \
19507 module_expsym_cmds_GCJ \
19508 lt_cv_prog_compiler_c_o_GCJ \
19509 exclude_expsyms_GCJ \
19510 include_expsyms_GCJ; do
19512 case $var in
19513 old_archive_cmds_GCJ | \
19514 old_archive_from_new_cmds_GCJ | \
19515 archive_cmds_GCJ | \
19516 archive_expsym_cmds_GCJ | \
19517 module_cmds_GCJ | \
19518 module_expsym_cmds_GCJ | \
19519 old_archive_from_expsyms_cmds_GCJ | \
19520 export_symbols_cmds_GCJ | \
19521 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19522 postinstall_cmds | postuninstall_cmds | \
19523 old_postinstall_cmds | old_postuninstall_cmds | \
19524 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19525 # Double-quote double-evaled strings.
19526 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19529 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19531 esac
19532 done
19534 case $lt_echo in
19535 *'\$0 --fallback-echo"')
19536 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19538 esac
19540 cfgfile="$ofile"
19542 cat <<__EOF__ >> "$cfgfile"
19543 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19545 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19547 # Shell to use when invoking shell scripts.
19548 SHELL=$lt_SHELL
19550 # Whether or not to build shared libraries.
19551 build_libtool_libs=$enable_shared
19553 # Whether or not to build static libraries.
19554 build_old_libs=$enable_static
19556 # Whether or not to add -lc for building shared libraries.
19557 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19559 # Whether or not to disallow shared libs when runtime libs are static
19560 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19562 # Whether or not to optimize for fast installation.
19563 fast_install=$enable_fast_install
19565 # The host system.
19566 host_alias=$host_alias
19567 host=$host
19568 host_os=$host_os
19570 # The build system.
19571 build_alias=$build_alias
19572 build=$build
19573 build_os=$build_os
19575 # An echo program that does not interpret backslashes.
19576 echo=$lt_echo
19578 # The archiver.
19579 AR=$lt_AR
19580 AR_FLAGS=$lt_AR_FLAGS
19582 # A C compiler.
19583 LTCC=$lt_LTCC
19585 # LTCC compiler flags.
19586 LTCFLAGS=$lt_LTCFLAGS
19588 # A language-specific compiler.
19589 CC=$lt_compiler_GCJ
19591 # Is the compiler the GNU C compiler?
19592 with_gcc=$GCC_GCJ
19594 # An ERE matcher.
19595 EGREP=$lt_EGREP
19597 # The linker used to build libraries.
19598 LD=$lt_LD_GCJ
19600 # Whether we need hard or soft links.
19601 LN_S=$lt_LN_S
19603 # A BSD-compatible nm program.
19604 NM=$lt_NM
19606 # A symbol stripping program
19607 STRIP=$lt_STRIP
19609 # Used to examine libraries when file_magic_cmd begins "file"
19610 MAGIC_CMD=$MAGIC_CMD
19612 # Used on cygwin: DLL creation program.
19613 DLLTOOL="$DLLTOOL"
19615 # Used on cygwin: object dumper.
19616 OBJDUMP="$OBJDUMP"
19618 # Used on cygwin: assembler.
19619 AS="$AS"
19621 # The name of the directory that contains temporary libtool files.
19622 objdir=$objdir
19624 # How to create reloadable object files.
19625 reload_flag=$lt_reload_flag
19626 reload_cmds=$lt_reload_cmds
19628 # How to pass a linker flag through the compiler.
19629 wl=$lt_lt_prog_compiler_wl_GCJ
19631 # Object file suffix (normally "o").
19632 objext="$ac_objext"
19634 # Old archive suffix (normally "a").
19635 libext="$libext"
19637 # Shared library suffix (normally ".so").
19638 shrext_cmds='$shrext_cmds'
19640 # Executable file suffix (normally "").
19641 exeext="$exeext"
19643 # Additional compiler flags for building library objects.
19644 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19645 pic_mode=$pic_mode
19647 # What is the maximum length of a command?
19648 max_cmd_len=$lt_cv_sys_max_cmd_len
19650 # Does compiler simultaneously support -c and -o options?
19651 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19653 # Must we lock files when doing compilation?
19654 need_locks=$lt_need_locks
19656 # Do we need the lib prefix for modules?
19657 need_lib_prefix=$need_lib_prefix
19659 # Do we need a version for libraries?
19660 need_version=$need_version
19662 # Whether dlopen is supported.
19663 dlopen_support=$enable_dlopen
19665 # Whether dlopen of programs is supported.
19666 dlopen_self=$enable_dlopen_self
19668 # Whether dlopen of statically linked programs is supported.
19669 dlopen_self_static=$enable_dlopen_self_static
19671 # Compiler flag to prevent dynamic linking.
19672 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19674 # Compiler flag to turn off builtin functions.
19675 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19677 # Compiler flag to allow reflexive dlopens.
19678 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19680 # Compiler flag to generate shared objects directly from archives.
19681 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19683 # Compiler flag to generate thread-safe objects.
19684 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19686 # Library versioning type.
19687 version_type=$version_type
19689 # Format of library name prefix.
19690 libname_spec=$lt_libname_spec
19692 # List of archive names. First name is the real one, the rest are links.
19693 # The last name is the one that the linker finds with -lNAME.
19694 library_names_spec=$lt_library_names_spec
19696 # The coded name of the library, if different from the real name.
19697 soname_spec=$lt_soname_spec
19699 # Commands used to build and install an old-style archive.
19700 RANLIB=$lt_RANLIB
19701 old_archive_cmds=$lt_old_archive_cmds_GCJ
19702 old_postinstall_cmds=$lt_old_postinstall_cmds
19703 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19705 # Create an old-style archive from a shared archive.
19706 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19708 # Create a temporary old-style archive to link instead of a shared archive.
19709 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19711 # Commands used to build and install a shared archive.
19712 archive_cmds=$lt_archive_cmds_GCJ
19713 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19714 postinstall_cmds=$lt_postinstall_cmds
19715 postuninstall_cmds=$lt_postuninstall_cmds
19717 # Commands used to build a loadable module (assumed same as above if empty)
19718 module_cmds=$lt_module_cmds_GCJ
19719 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19721 # Commands to strip libraries.
19722 old_striplib=$lt_old_striplib
19723 striplib=$lt_striplib
19725 # Dependencies to place before the objects being linked to create a
19726 # shared library.
19727 predep_objects=$lt_predep_objects_GCJ
19729 # Dependencies to place after the objects being linked to create a
19730 # shared library.
19731 postdep_objects=$lt_postdep_objects_GCJ
19733 # Dependencies to place before the objects being linked to create a
19734 # shared library.
19735 predeps=$lt_predeps_GCJ
19737 # Dependencies to place after the objects being linked to create a
19738 # shared library.
19739 postdeps=$lt_postdeps_GCJ
19741 # The library search path used internally by the compiler when linking
19742 # a shared library.
19743 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19745 # Method to check whether dependent libraries are shared objects.
19746 deplibs_check_method=$lt_deplibs_check_method
19748 # Command to use when deplibs_check_method == file_magic.
19749 file_magic_cmd=$lt_file_magic_cmd
19751 # Flag that allows shared libraries with undefined symbols to be built.
19752 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19754 # Flag that forces no undefined symbols.
19755 no_undefined_flag=$lt_no_undefined_flag_GCJ
19757 # Commands used to finish a libtool library installation in a directory.
19758 finish_cmds=$lt_finish_cmds
19760 # Same as above, but a single script fragment to be evaled but not shown.
19761 finish_eval=$lt_finish_eval
19763 # Take the output of nm and produce a listing of raw symbols and C names.
19764 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19766 # Transform the output of nm in a proper C declaration
19767 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19769 # Transform the output of nm in a C name address pair
19770 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19772 # This is the shared library runtime path variable.
19773 runpath_var=$runpath_var
19775 # This is the shared library path variable.
19776 shlibpath_var=$shlibpath_var
19778 # Is shlibpath searched before the hard-coded library search path?
19779 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19781 # How to hardcode a shared library path into an executable.
19782 hardcode_action=$hardcode_action_GCJ
19784 # Whether we should hardcode library paths into libraries.
19785 hardcode_into_libs=$hardcode_into_libs
19787 # Flag to hardcode \$libdir into a binary during linking.
19788 # This must work even if \$libdir does not exist.
19789 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19791 # If ld is used when linking, flag to hardcode \$libdir into
19792 # a binary during linking. This must work even if \$libdir does
19793 # not exist.
19794 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19796 # Whether we need a single -rpath flag with a separated argument.
19797 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19799 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19800 # resulting binary.
19801 hardcode_direct=$hardcode_direct_GCJ
19803 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19804 # resulting binary.
19805 hardcode_minus_L=$hardcode_minus_L_GCJ
19807 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19808 # the resulting binary.
19809 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19811 # Set to yes if building a shared library automatically hardcodes DIR into the library
19812 # and all subsequent libraries and executables linked against it.
19813 hardcode_automatic=$hardcode_automatic_GCJ
19815 # Variables whose values should be saved in libtool wrapper scripts and
19816 # restored at relink time.
19817 variables_saved_for_relink="$variables_saved_for_relink"
19819 # Whether libtool must link a program against all its dependency libraries.
19820 link_all_deplibs=$link_all_deplibs_GCJ
19822 # Compile-time system search path for libraries
19823 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19825 # Run-time system search path for libraries
19826 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19828 # Fix the shell variable \$srcfile for the compiler.
19829 fix_srcfile_path="$fix_srcfile_path_GCJ"
19831 # Set to yes if exported symbols are required.
19832 always_export_symbols=$always_export_symbols_GCJ
19834 # The commands to list exported symbols.
19835 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19837 # The commands to extract the exported symbol list from a shared archive.
19838 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19840 # Symbols that should not be listed in the preloaded symbols.
19841 exclude_expsyms=$lt_exclude_expsyms_GCJ
19843 # Symbols that must always be exported.
19844 include_expsyms=$lt_include_expsyms_GCJ
19846 # ### END LIBTOOL TAG CONFIG: $tagname
19848 __EOF__
19851 else
19852 # If there is no Makefile yet, we rely on a make rule to execute
19853 # `config.status --recheck' to rerun these tests and create the
19854 # libtool script then.
19855 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19856 if test -f "$ltmain_in"; then
19857 test -f Makefile && make "$ltmain"
19862 ac_ext=c
19863 ac_cpp='$CPP $CPPFLAGS'
19864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19868 CC="$lt_save_CC"
19870 else
19871 tagname=""
19878 # Source file extension for RC test sources.
19879 ac_ext=rc
19881 # Object file extension for compiled RC test sources.
19882 objext=o
19883 objext_RC=$objext
19885 # Code to be used in simple compile tests
19886 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19888 # Code to be used in simple link tests
19889 lt_simple_link_test_code="$lt_simple_compile_test_code"
19891 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19893 # If no C compiler was specified, use CC.
19894 LTCC=${LTCC-"$CC"}
19896 # If no C compiler flags were specified, use CFLAGS.
19897 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19899 # Allow CC to be a program name with arguments.
19900 compiler=$CC
19903 # save warnings/boilerplate of simple test code
19904 ac_outfile=conftest.$ac_objext
19905 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19906 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19907 _lt_compiler_boilerplate=`cat conftest.err`
19908 $rm conftest*
19910 ac_outfile=conftest.$ac_objext
19911 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19912 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19913 _lt_linker_boilerplate=`cat conftest.err`
19914 $rm conftest*
19917 # Allow CC to be a program name with arguments.
19918 lt_save_CC="$CC"
19919 CC=${RC-"windres"}
19920 compiler=$CC
19921 compiler_RC=$CC
19922 for cc_temp in $compiler""; do
19923 case $cc_temp in
19924 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19925 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19926 \-*) ;;
19927 *) break;;
19928 esac
19929 done
19930 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19932 lt_cv_prog_compiler_c_o_RC=yes
19934 # The else clause should only fire when bootstrapping the
19935 # libtool distribution, otherwise you forgot to ship ltmain.sh
19936 # with your package, and you will get complaints that there are
19937 # no rules to generate ltmain.sh.
19938 if test -f "$ltmain"; then
19939 # See if we are running on zsh, and set the options which allow our commands through
19940 # without removal of \ escapes.
19941 if test -n "${ZSH_VERSION+set}" ; then
19942 setopt NO_GLOB_SUBST
19944 # Now quote all the things that may contain metacharacters while being
19945 # careful not to overquote the AC_SUBSTed values. We take copies of the
19946 # variables and quote the copies for generation of the libtool script.
19947 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19948 SED SHELL STRIP \
19949 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19950 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19951 deplibs_check_method reload_flag reload_cmds need_locks \
19952 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19953 lt_cv_sys_global_symbol_to_c_name_address \
19954 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19955 old_postinstall_cmds old_postuninstall_cmds \
19956 compiler_RC \
19957 CC_RC \
19958 LD_RC \
19959 lt_prog_compiler_wl_RC \
19960 lt_prog_compiler_pic_RC \
19961 lt_prog_compiler_static_RC \
19962 lt_prog_compiler_no_builtin_flag_RC \
19963 export_dynamic_flag_spec_RC \
19964 thread_safe_flag_spec_RC \
19965 whole_archive_flag_spec_RC \
19966 enable_shared_with_static_runtimes_RC \
19967 old_archive_cmds_RC \
19968 old_archive_from_new_cmds_RC \
19969 predep_objects_RC \
19970 postdep_objects_RC \
19971 predeps_RC \
19972 postdeps_RC \
19973 compiler_lib_search_path_RC \
19974 archive_cmds_RC \
19975 archive_expsym_cmds_RC \
19976 postinstall_cmds_RC \
19977 postuninstall_cmds_RC \
19978 old_archive_from_expsyms_cmds_RC \
19979 allow_undefined_flag_RC \
19980 no_undefined_flag_RC \
19981 export_symbols_cmds_RC \
19982 hardcode_libdir_flag_spec_RC \
19983 hardcode_libdir_flag_spec_ld_RC \
19984 hardcode_libdir_separator_RC \
19985 hardcode_automatic_RC \
19986 module_cmds_RC \
19987 module_expsym_cmds_RC \
19988 lt_cv_prog_compiler_c_o_RC \
19989 exclude_expsyms_RC \
19990 include_expsyms_RC; do
19992 case $var in
19993 old_archive_cmds_RC | \
19994 old_archive_from_new_cmds_RC | \
19995 archive_cmds_RC | \
19996 archive_expsym_cmds_RC | \
19997 module_cmds_RC | \
19998 module_expsym_cmds_RC | \
19999 old_archive_from_expsyms_cmds_RC | \
20000 export_symbols_cmds_RC | \
20001 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20002 postinstall_cmds | postuninstall_cmds | \
20003 old_postinstall_cmds | old_postuninstall_cmds | \
20004 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20005 # Double-quote double-evaled strings.
20006 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20009 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20011 esac
20012 done
20014 case $lt_echo in
20015 *'\$0 --fallback-echo"')
20016 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20018 esac
20020 cfgfile="$ofile"
20022 cat <<__EOF__ >> "$cfgfile"
20023 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20025 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20027 # Shell to use when invoking shell scripts.
20028 SHELL=$lt_SHELL
20030 # Whether or not to build shared libraries.
20031 build_libtool_libs=$enable_shared
20033 # Whether or not to build static libraries.
20034 build_old_libs=$enable_static
20036 # Whether or not to add -lc for building shared libraries.
20037 build_libtool_need_lc=$archive_cmds_need_lc_RC
20039 # Whether or not to disallow shared libs when runtime libs are static
20040 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20042 # Whether or not to optimize for fast installation.
20043 fast_install=$enable_fast_install
20045 # The host system.
20046 host_alias=$host_alias
20047 host=$host
20048 host_os=$host_os
20050 # The build system.
20051 build_alias=$build_alias
20052 build=$build
20053 build_os=$build_os
20055 # An echo program that does not interpret backslashes.
20056 echo=$lt_echo
20058 # The archiver.
20059 AR=$lt_AR
20060 AR_FLAGS=$lt_AR_FLAGS
20062 # A C compiler.
20063 LTCC=$lt_LTCC
20065 # LTCC compiler flags.
20066 LTCFLAGS=$lt_LTCFLAGS
20068 # A language-specific compiler.
20069 CC=$lt_compiler_RC
20071 # Is the compiler the GNU C compiler?
20072 with_gcc=$GCC_RC
20074 # An ERE matcher.
20075 EGREP=$lt_EGREP
20077 # The linker used to build libraries.
20078 LD=$lt_LD_RC
20080 # Whether we need hard or soft links.
20081 LN_S=$lt_LN_S
20083 # A BSD-compatible nm program.
20084 NM=$lt_NM
20086 # A symbol stripping program
20087 STRIP=$lt_STRIP
20089 # Used to examine libraries when file_magic_cmd begins "file"
20090 MAGIC_CMD=$MAGIC_CMD
20092 # Used on cygwin: DLL creation program.
20093 DLLTOOL="$DLLTOOL"
20095 # Used on cygwin: object dumper.
20096 OBJDUMP="$OBJDUMP"
20098 # Used on cygwin: assembler.
20099 AS="$AS"
20101 # The name of the directory that contains temporary libtool files.
20102 objdir=$objdir
20104 # How to create reloadable object files.
20105 reload_flag=$lt_reload_flag
20106 reload_cmds=$lt_reload_cmds
20108 # How to pass a linker flag through the compiler.
20109 wl=$lt_lt_prog_compiler_wl_RC
20111 # Object file suffix (normally "o").
20112 objext="$ac_objext"
20114 # Old archive suffix (normally "a").
20115 libext="$libext"
20117 # Shared library suffix (normally ".so").
20118 shrext_cmds='$shrext_cmds'
20120 # Executable file suffix (normally "").
20121 exeext="$exeext"
20123 # Additional compiler flags for building library objects.
20124 pic_flag=$lt_lt_prog_compiler_pic_RC
20125 pic_mode=$pic_mode
20127 # What is the maximum length of a command?
20128 max_cmd_len=$lt_cv_sys_max_cmd_len
20130 # Does compiler simultaneously support -c and -o options?
20131 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20133 # Must we lock files when doing compilation?
20134 need_locks=$lt_need_locks
20136 # Do we need the lib prefix for modules?
20137 need_lib_prefix=$need_lib_prefix
20139 # Do we need a version for libraries?
20140 need_version=$need_version
20142 # Whether dlopen is supported.
20143 dlopen_support=$enable_dlopen
20145 # Whether dlopen of programs is supported.
20146 dlopen_self=$enable_dlopen_self
20148 # Whether dlopen of statically linked programs is supported.
20149 dlopen_self_static=$enable_dlopen_self_static
20151 # Compiler flag to prevent dynamic linking.
20152 link_static_flag=$lt_lt_prog_compiler_static_RC
20154 # Compiler flag to turn off builtin functions.
20155 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20157 # Compiler flag to allow reflexive dlopens.
20158 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20160 # Compiler flag to generate shared objects directly from archives.
20161 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20163 # Compiler flag to generate thread-safe objects.
20164 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20166 # Library versioning type.
20167 version_type=$version_type
20169 # Format of library name prefix.
20170 libname_spec=$lt_libname_spec
20172 # List of archive names. First name is the real one, the rest are links.
20173 # The last name is the one that the linker finds with -lNAME.
20174 library_names_spec=$lt_library_names_spec
20176 # The coded name of the library, if different from the real name.
20177 soname_spec=$lt_soname_spec
20179 # Commands used to build and install an old-style archive.
20180 RANLIB=$lt_RANLIB
20181 old_archive_cmds=$lt_old_archive_cmds_RC
20182 old_postinstall_cmds=$lt_old_postinstall_cmds
20183 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20185 # Create an old-style archive from a shared archive.
20186 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20188 # Create a temporary old-style archive to link instead of a shared archive.
20189 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20191 # Commands used to build and install a shared archive.
20192 archive_cmds=$lt_archive_cmds_RC
20193 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20194 postinstall_cmds=$lt_postinstall_cmds
20195 postuninstall_cmds=$lt_postuninstall_cmds
20197 # Commands used to build a loadable module (assumed same as above if empty)
20198 module_cmds=$lt_module_cmds_RC
20199 module_expsym_cmds=$lt_module_expsym_cmds_RC
20201 # Commands to strip libraries.
20202 old_striplib=$lt_old_striplib
20203 striplib=$lt_striplib
20205 # Dependencies to place before the objects being linked to create a
20206 # shared library.
20207 predep_objects=$lt_predep_objects_RC
20209 # Dependencies to place after the objects being linked to create a
20210 # shared library.
20211 postdep_objects=$lt_postdep_objects_RC
20213 # Dependencies to place before the objects being linked to create a
20214 # shared library.
20215 predeps=$lt_predeps_RC
20217 # Dependencies to place after the objects being linked to create a
20218 # shared library.
20219 postdeps=$lt_postdeps_RC
20221 # The library search path used internally by the compiler when linking
20222 # a shared library.
20223 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20225 # Method to check whether dependent libraries are shared objects.
20226 deplibs_check_method=$lt_deplibs_check_method
20228 # Command to use when deplibs_check_method == file_magic.
20229 file_magic_cmd=$lt_file_magic_cmd
20231 # Flag that allows shared libraries with undefined symbols to be built.
20232 allow_undefined_flag=$lt_allow_undefined_flag_RC
20234 # Flag that forces no undefined symbols.
20235 no_undefined_flag=$lt_no_undefined_flag_RC
20237 # Commands used to finish a libtool library installation in a directory.
20238 finish_cmds=$lt_finish_cmds
20240 # Same as above, but a single script fragment to be evaled but not shown.
20241 finish_eval=$lt_finish_eval
20243 # Take the output of nm and produce a listing of raw symbols and C names.
20244 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20246 # Transform the output of nm in a proper C declaration
20247 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20249 # Transform the output of nm in a C name address pair
20250 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20252 # This is the shared library runtime path variable.
20253 runpath_var=$runpath_var
20255 # This is the shared library path variable.
20256 shlibpath_var=$shlibpath_var
20258 # Is shlibpath searched before the hard-coded library search path?
20259 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20261 # How to hardcode a shared library path into an executable.
20262 hardcode_action=$hardcode_action_RC
20264 # Whether we should hardcode library paths into libraries.
20265 hardcode_into_libs=$hardcode_into_libs
20267 # Flag to hardcode \$libdir into a binary during linking.
20268 # This must work even if \$libdir does not exist.
20269 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20271 # If ld is used when linking, flag to hardcode \$libdir into
20272 # a binary during linking. This must work even if \$libdir does
20273 # not exist.
20274 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20276 # Whether we need a single -rpath flag with a separated argument.
20277 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20279 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20280 # resulting binary.
20281 hardcode_direct=$hardcode_direct_RC
20283 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20284 # resulting binary.
20285 hardcode_minus_L=$hardcode_minus_L_RC
20287 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20288 # the resulting binary.
20289 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20291 # Set to yes if building a shared library automatically hardcodes DIR into the library
20292 # and all subsequent libraries and executables linked against it.
20293 hardcode_automatic=$hardcode_automatic_RC
20295 # Variables whose values should be saved in libtool wrapper scripts and
20296 # restored at relink time.
20297 variables_saved_for_relink="$variables_saved_for_relink"
20299 # Whether libtool must link a program against all its dependency libraries.
20300 link_all_deplibs=$link_all_deplibs_RC
20302 # Compile-time system search path for libraries
20303 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20305 # Run-time system search path for libraries
20306 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20308 # Fix the shell variable \$srcfile for the compiler.
20309 fix_srcfile_path="$fix_srcfile_path_RC"
20311 # Set to yes if exported symbols are required.
20312 always_export_symbols=$always_export_symbols_RC
20314 # The commands to list exported symbols.
20315 export_symbols_cmds=$lt_export_symbols_cmds_RC
20317 # The commands to extract the exported symbol list from a shared archive.
20318 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20320 # Symbols that should not be listed in the preloaded symbols.
20321 exclude_expsyms=$lt_exclude_expsyms_RC
20323 # Symbols that must always be exported.
20324 include_expsyms=$lt_include_expsyms_RC
20326 # ### END LIBTOOL TAG CONFIG: $tagname
20328 __EOF__
20331 else
20332 # If there is no Makefile yet, we rely on a make rule to execute
20333 # `config.status --recheck' to rerun these tests and create the
20334 # libtool script then.
20335 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20336 if test -f "$ltmain_in"; then
20337 test -f Makefile && make "$ltmain"
20342 ac_ext=c
20343 ac_cpp='$CPP $CPPFLAGS'
20344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20348 CC="$lt_save_CC"
20353 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20354 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20355 { (exit 1); exit 1; }; }
20357 esac
20359 # Append the new tag name to the list of available tags.
20360 if test -n "$tagname" ; then
20361 available_tags="$available_tags $tagname"
20364 done
20365 IFS="$lt_save_ifs"
20367 # Now substitute the updated list of available tags.
20368 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20369 mv "${ofile}T" "$ofile"
20370 chmod +x "$ofile"
20371 else
20372 rm -f "${ofile}T"
20373 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20374 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20375 { (exit 1); exit 1; }; }
20381 # This can be used to rebuild libtool when needed
20382 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20384 # Always use our own libtool.
20385 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20387 # Prevent multiple expansion
20408 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20409 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20410 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20411 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20412 echo $ECHO_N "(cached) $ECHO_C" >&6
20413 else
20414 cat >conftest.make <<\_ACEOF
20415 SHELL = /bin/sh
20416 all:
20417 @echo '@@@%%%=$(MAKE)=@@@%%%'
20418 _ACEOF
20419 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20420 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20421 *@@@%%%=?*=@@@%%%*)
20422 eval ac_cv_prog_make_${ac_make}_set=yes;;
20424 eval ac_cv_prog_make_${ac_make}_set=no;;
20425 esac
20426 rm -f conftest.make
20428 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20429 { echo "$as_me:$LINENO: result: yes" >&5
20430 echo "${ECHO_T}yes" >&6; }
20431 SET_MAKE=
20432 else
20433 { echo "$as_me:$LINENO: result: no" >&5
20434 echo "${ECHO_T}no" >&6; }
20435 SET_MAKE="MAKE=${MAKE-make}"
20440 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20441 if test -n "$ac_tool_prefix"; then
20442 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20443 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20446 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20447 echo $ECHO_N "(cached) $ECHO_C" >&6
20448 else
20449 case $PKG_CONFIG in
20450 [\\/]* | ?:[\\/]*)
20451 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20455 for as_dir in $PATH
20457 IFS=$as_save_IFS
20458 test -z "$as_dir" && as_dir=.
20459 for ac_exec_ext in '' $ac_executable_extensions; do
20460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20461 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20463 break 2
20465 done
20466 done
20467 IFS=$as_save_IFS
20470 esac
20472 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20473 if test -n "$PKG_CONFIG"; then
20474 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20475 echo "${ECHO_T}$PKG_CONFIG" >&6; }
20476 else
20477 { echo "$as_me:$LINENO: result: no" >&5
20478 echo "${ECHO_T}no" >&6; }
20483 if test -z "$ac_cv_path_PKG_CONFIG"; then
20484 ac_pt_PKG_CONFIG=$PKG_CONFIG
20485 # Extract the first word of "pkg-config", so it can be a program name with args.
20486 set dummy pkg-config; ac_word=$2
20487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20489 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20490 echo $ECHO_N "(cached) $ECHO_C" >&6
20491 else
20492 case $ac_pt_PKG_CONFIG in
20493 [\\/]* | ?:[\\/]*)
20494 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20498 for as_dir in $PATH
20500 IFS=$as_save_IFS
20501 test -z "$as_dir" && as_dir=.
20502 for ac_exec_ext in '' $ac_executable_extensions; do
20503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20504 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20506 break 2
20508 done
20509 done
20510 IFS=$as_save_IFS
20513 esac
20515 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20516 if test -n "$ac_pt_PKG_CONFIG"; then
20517 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20518 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
20519 else
20520 { echo "$as_me:$LINENO: result: no" >&5
20521 echo "${ECHO_T}no" >&6; }
20524 if test "x$ac_pt_PKG_CONFIG" = x; then
20525 PKG_CONFIG=""
20526 else
20527 case $cross_compiling:$ac_tool_warned in
20528 yes:)
20529 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20530 whose name does not start with the host triplet. If you think this
20531 configuration is useful to you, please write to autoconf@gnu.org." >&5
20532 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20533 whose name does not start with the host triplet. If you think this
20534 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20535 ac_tool_warned=yes ;;
20536 esac
20537 PKG_CONFIG=$ac_pt_PKG_CONFIG
20539 else
20540 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20544 if test -n "$PKG_CONFIG"; then
20545 _pkg_min_version=0.9.0
20546 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20547 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
20548 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20549 { echo "$as_me:$LINENO: result: yes" >&5
20550 echo "${ECHO_T}yes" >&6; }
20551 else
20552 { echo "$as_me:$LINENO: result: no" >&5
20553 echo "${ECHO_T}no" >&6; }
20554 PKG_CONFIG=""
20558 for ac_prog in flex lex
20560 # Extract the first word of "$ac_prog", so it can be a program name with args.
20561 set dummy $ac_prog; ac_word=$2
20562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20564 if test "${ac_cv_prog_LEX+set}" = set; then
20565 echo $ECHO_N "(cached) $ECHO_C" >&6
20566 else
20567 if test -n "$LEX"; then
20568 ac_cv_prog_LEX="$LEX" # Let the user override the test.
20569 else
20570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20571 for as_dir in $PATH
20573 IFS=$as_save_IFS
20574 test -z "$as_dir" && as_dir=.
20575 for ac_exec_ext in '' $ac_executable_extensions; do
20576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20577 ac_cv_prog_LEX="$ac_prog"
20578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20579 break 2
20581 done
20582 done
20583 IFS=$as_save_IFS
20587 LEX=$ac_cv_prog_LEX
20588 if test -n "$LEX"; then
20589 { echo "$as_me:$LINENO: result: $LEX" >&5
20590 echo "${ECHO_T}$LEX" >&6; }
20591 else
20592 { echo "$as_me:$LINENO: result: no" >&5
20593 echo "${ECHO_T}no" >&6; }
20597 test -n "$LEX" && break
20598 done
20599 test -n "$LEX" || LEX=":"
20601 if test "x$LEX" != "x:"; then
20602 cat >conftest.l <<_ACEOF
20604 a { ECHO; }
20605 b { REJECT; }
20606 c { yymore (); }
20607 d { yyless (1); }
20608 e { yyless (input () != 0); }
20609 f { unput (yytext[0]); }
20610 . { BEGIN INITIAL; }
20612 #ifdef YYTEXT_POINTER
20613 extern char *yytext;
20614 #endif
20616 main (void)
20618 return ! yylex () + ! yywrap ();
20620 _ACEOF
20621 { (ac_try="$LEX conftest.l"
20622 case "(($ac_try" in
20623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20624 *) ac_try_echo=$ac_try;;
20625 esac
20626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20627 (eval "$LEX conftest.l") 2>&5
20628 ac_status=$?
20629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630 (exit $ac_status); }
20631 { echo "$as_me:$LINENO: checking lex output file root" >&5
20632 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
20633 if test "${ac_cv_prog_lex_root+set}" = set; then
20634 echo $ECHO_N "(cached) $ECHO_C" >&6
20635 else
20637 if test -f lex.yy.c; then
20638 ac_cv_prog_lex_root=lex.yy
20639 elif test -f lexyy.c; then
20640 ac_cv_prog_lex_root=lexyy
20641 else
20642 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
20643 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
20644 { (exit 1); exit 1; }; }
20647 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
20648 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
20649 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
20651 if test -z "${LEXLIB+set}"; then
20652 { echo "$as_me:$LINENO: checking lex library" >&5
20653 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
20654 if test "${ac_cv_lib_lex+set}" = set; then
20655 echo $ECHO_N "(cached) $ECHO_C" >&6
20656 else
20658 ac_save_LIBS=$LIBS
20659 ac_cv_lib_lex='none needed'
20660 for ac_lib in '' -lfl -ll; do
20661 LIBS="$ac_lib $ac_save_LIBS"
20662 cat >conftest.$ac_ext <<_ACEOF
20663 `cat $LEX_OUTPUT_ROOT.c`
20664 _ACEOF
20665 rm -f conftest.$ac_objext conftest$ac_exeext
20666 if { (ac_try="$ac_link"
20667 case "(($ac_try" in
20668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20669 *) ac_try_echo=$ac_try;;
20670 esac
20671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20672 (eval "$ac_link") 2>conftest.er1
20673 ac_status=$?
20674 grep -v '^ *+' conftest.er1 >conftest.err
20675 rm -f conftest.er1
20676 cat conftest.err >&5
20677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678 (exit $ac_status); } && {
20679 test -z "$ac_c_werror_flag" ||
20680 test ! -s conftest.err
20681 } && test -s conftest$ac_exeext &&
20682 $as_test_x conftest$ac_exeext; then
20683 ac_cv_lib_lex=$ac_lib
20684 else
20685 echo "$as_me: failed program was:" >&5
20686 sed 's/^/| /' conftest.$ac_ext >&5
20691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20692 conftest$ac_exeext conftest.$ac_ext
20693 test "$ac_cv_lib_lex" != 'none needed' && break
20694 done
20695 LIBS=$ac_save_LIBS
20698 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
20699 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
20700 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
20704 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
20705 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
20706 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
20707 echo $ECHO_N "(cached) $ECHO_C" >&6
20708 else
20709 # POSIX says lex can declare yytext either as a pointer or an array; the
20710 # default is implementation-dependent. Figure out which it is, since
20711 # not all implementations provide the %pointer and %array declarations.
20712 ac_cv_prog_lex_yytext_pointer=no
20713 ac_save_LIBS=$LIBS
20714 LIBS="$LEXLIB $ac_save_LIBS"
20715 cat >conftest.$ac_ext <<_ACEOF
20716 #define YYTEXT_POINTER 1
20717 `cat $LEX_OUTPUT_ROOT.c`
20718 _ACEOF
20719 rm -f conftest.$ac_objext conftest$ac_exeext
20720 if { (ac_try="$ac_link"
20721 case "(($ac_try" in
20722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20723 *) ac_try_echo=$ac_try;;
20724 esac
20725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20726 (eval "$ac_link") 2>conftest.er1
20727 ac_status=$?
20728 grep -v '^ *+' conftest.er1 >conftest.err
20729 rm -f conftest.er1
20730 cat conftest.err >&5
20731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732 (exit $ac_status); } && {
20733 test -z "$ac_c_werror_flag" ||
20734 test ! -s conftest.err
20735 } && test -s conftest$ac_exeext &&
20736 $as_test_x conftest$ac_exeext; then
20737 ac_cv_prog_lex_yytext_pointer=yes
20738 else
20739 echo "$as_me: failed program was:" >&5
20740 sed 's/^/| /' conftest.$ac_ext >&5
20745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20746 conftest$ac_exeext conftest.$ac_ext
20747 LIBS=$ac_save_LIBS
20750 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
20751 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
20752 if test $ac_cv_prog_lex_yytext_pointer = yes; then
20754 cat >>confdefs.h <<\_ACEOF
20755 #define YYTEXT_POINTER 1
20756 _ACEOF
20759 rm -f conftest.l $LEX_OUTPUT_ROOT.c
20762 for ac_prog in 'bison -y' byacc
20764 # Extract the first word of "$ac_prog", so it can be a program name with args.
20765 set dummy $ac_prog; ac_word=$2
20766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20768 if test "${ac_cv_prog_YACC+set}" = set; then
20769 echo $ECHO_N "(cached) $ECHO_C" >&6
20770 else
20771 if test -n "$YACC"; then
20772 ac_cv_prog_YACC="$YACC" # Let the user override the test.
20773 else
20774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20775 for as_dir in $PATH
20777 IFS=$as_save_IFS
20778 test -z "$as_dir" && as_dir=.
20779 for ac_exec_ext in '' $ac_executable_extensions; do
20780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20781 ac_cv_prog_YACC="$ac_prog"
20782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20783 break 2
20785 done
20786 done
20787 IFS=$as_save_IFS
20791 YACC=$ac_cv_prog_YACC
20792 if test -n "$YACC"; then
20793 { echo "$as_me:$LINENO: result: $YACC" >&5
20794 echo "${ECHO_T}$YACC" >&6; }
20795 else
20796 { echo "$as_me:$LINENO: result: no" >&5
20797 echo "${ECHO_T}no" >&6; }
20801 test -n "$YACC" && break
20802 done
20803 test -n "$YACC" || YACC="yacc"
20805 # Check whether --enable-largefile was given.
20806 if test "${enable_largefile+set}" = set; then
20807 enableval=$enable_largefile;
20810 if test "$enable_largefile" != no; then
20812 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
20813 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
20814 if test "${ac_cv_sys_largefile_CC+set}" = set; then
20815 echo $ECHO_N "(cached) $ECHO_C" >&6
20816 else
20817 ac_cv_sys_largefile_CC=no
20818 if test "$GCC" != yes; then
20819 ac_save_CC=$CC
20820 while :; do
20821 # IRIX 6.2 and later do not support large files by default,
20822 # so use the C compiler's -n32 option if that helps.
20823 cat >conftest.$ac_ext <<_ACEOF
20824 /* confdefs.h. */
20825 _ACEOF
20826 cat confdefs.h >>conftest.$ac_ext
20827 cat >>conftest.$ac_ext <<_ACEOF
20828 /* end confdefs.h. */
20829 #include <sys/types.h>
20830 /* Check that off_t can represent 2**63 - 1 correctly.
20831 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20832 since some C++ compilers masquerading as C compilers
20833 incorrectly reject 9223372036854775807. */
20834 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20835 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20836 && LARGE_OFF_T % 2147483647 == 1)
20837 ? 1 : -1];
20839 main ()
20843 return 0;
20845 _ACEOF
20846 rm -f conftest.$ac_objext
20847 if { (ac_try="$ac_compile"
20848 case "(($ac_try" in
20849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20850 *) ac_try_echo=$ac_try;;
20851 esac
20852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20853 (eval "$ac_compile") 2>conftest.er1
20854 ac_status=$?
20855 grep -v '^ *+' conftest.er1 >conftest.err
20856 rm -f conftest.er1
20857 cat conftest.err >&5
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859 (exit $ac_status); } && {
20860 test -z "$ac_c_werror_flag" ||
20861 test ! -s conftest.err
20862 } && test -s conftest.$ac_objext; then
20863 break
20864 else
20865 echo "$as_me: failed program was:" >&5
20866 sed 's/^/| /' conftest.$ac_ext >&5
20871 rm -f core conftest.err conftest.$ac_objext
20872 CC="$CC -n32"
20873 rm -f conftest.$ac_objext
20874 if { (ac_try="$ac_compile"
20875 case "(($ac_try" in
20876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20877 *) ac_try_echo=$ac_try;;
20878 esac
20879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20880 (eval "$ac_compile") 2>conftest.er1
20881 ac_status=$?
20882 grep -v '^ *+' conftest.er1 >conftest.err
20883 rm -f conftest.er1
20884 cat conftest.err >&5
20885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886 (exit $ac_status); } && {
20887 test -z "$ac_c_werror_flag" ||
20888 test ! -s conftest.err
20889 } && test -s conftest.$ac_objext; then
20890 ac_cv_sys_largefile_CC=' -n32'; break
20891 else
20892 echo "$as_me: failed program was:" >&5
20893 sed 's/^/| /' conftest.$ac_ext >&5
20898 rm -f core conftest.err conftest.$ac_objext
20899 break
20900 done
20901 CC=$ac_save_CC
20902 rm -f conftest.$ac_ext
20905 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
20906 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
20907 if test "$ac_cv_sys_largefile_CC" != no; then
20908 CC=$CC$ac_cv_sys_largefile_CC
20911 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
20912 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
20913 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
20914 echo $ECHO_N "(cached) $ECHO_C" >&6
20915 else
20916 while :; do
20917 cat >conftest.$ac_ext <<_ACEOF
20918 /* confdefs.h. */
20919 _ACEOF
20920 cat confdefs.h >>conftest.$ac_ext
20921 cat >>conftest.$ac_ext <<_ACEOF
20922 /* end confdefs.h. */
20923 #include <sys/types.h>
20924 /* Check that off_t can represent 2**63 - 1 correctly.
20925 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20926 since some C++ compilers masquerading as C compilers
20927 incorrectly reject 9223372036854775807. */
20928 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20929 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20930 && LARGE_OFF_T % 2147483647 == 1)
20931 ? 1 : -1];
20933 main ()
20937 return 0;
20939 _ACEOF
20940 rm -f conftest.$ac_objext
20941 if { (ac_try="$ac_compile"
20942 case "(($ac_try" in
20943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20944 *) ac_try_echo=$ac_try;;
20945 esac
20946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20947 (eval "$ac_compile") 2>conftest.er1
20948 ac_status=$?
20949 grep -v '^ *+' conftest.er1 >conftest.err
20950 rm -f conftest.er1
20951 cat conftest.err >&5
20952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953 (exit $ac_status); } && {
20954 test -z "$ac_c_werror_flag" ||
20955 test ! -s conftest.err
20956 } && test -s conftest.$ac_objext; then
20957 ac_cv_sys_file_offset_bits=no; break
20958 else
20959 echo "$as_me: failed program was:" >&5
20960 sed 's/^/| /' conftest.$ac_ext >&5
20965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20966 cat >conftest.$ac_ext <<_ACEOF
20967 /* confdefs.h. */
20968 _ACEOF
20969 cat confdefs.h >>conftest.$ac_ext
20970 cat >>conftest.$ac_ext <<_ACEOF
20971 /* end confdefs.h. */
20972 #define _FILE_OFFSET_BITS 64
20973 #include <sys/types.h>
20974 /* Check that off_t can represent 2**63 - 1 correctly.
20975 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20976 since some C++ compilers masquerading as C compilers
20977 incorrectly reject 9223372036854775807. */
20978 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20979 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20980 && LARGE_OFF_T % 2147483647 == 1)
20981 ? 1 : -1];
20983 main ()
20987 return 0;
20989 _ACEOF
20990 rm -f conftest.$ac_objext
20991 if { (ac_try="$ac_compile"
20992 case "(($ac_try" in
20993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20994 *) ac_try_echo=$ac_try;;
20995 esac
20996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20997 (eval "$ac_compile") 2>conftest.er1
20998 ac_status=$?
20999 grep -v '^ *+' conftest.er1 >conftest.err
21000 rm -f conftest.er1
21001 cat conftest.err >&5
21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); } && {
21004 test -z "$ac_c_werror_flag" ||
21005 test ! -s conftest.err
21006 } && test -s conftest.$ac_objext; then
21007 ac_cv_sys_file_offset_bits=64; break
21008 else
21009 echo "$as_me: failed program was:" >&5
21010 sed 's/^/| /' conftest.$ac_ext >&5
21015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21016 ac_cv_sys_file_offset_bits=unknown
21017 break
21018 done
21020 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21021 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
21022 case $ac_cv_sys_file_offset_bits in #(
21023 no | unknown) ;;
21025 cat >>confdefs.h <<_ACEOF
21026 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21027 _ACEOF
21029 esac
21030 rm -f conftest*
21031 if test $ac_cv_sys_file_offset_bits = unknown; then
21032 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21033 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
21034 if test "${ac_cv_sys_large_files+set}" = set; then
21035 echo $ECHO_N "(cached) $ECHO_C" >&6
21036 else
21037 while :; do
21038 cat >conftest.$ac_ext <<_ACEOF
21039 /* confdefs.h. */
21040 _ACEOF
21041 cat confdefs.h >>conftest.$ac_ext
21042 cat >>conftest.$ac_ext <<_ACEOF
21043 /* end confdefs.h. */
21044 #include <sys/types.h>
21045 /* Check that off_t can represent 2**63 - 1 correctly.
21046 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21047 since some C++ compilers masquerading as C compilers
21048 incorrectly reject 9223372036854775807. */
21049 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21050 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21051 && LARGE_OFF_T % 2147483647 == 1)
21052 ? 1 : -1];
21054 main ()
21058 return 0;
21060 _ACEOF
21061 rm -f conftest.$ac_objext
21062 if { (ac_try="$ac_compile"
21063 case "(($ac_try" in
21064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21065 *) ac_try_echo=$ac_try;;
21066 esac
21067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21068 (eval "$ac_compile") 2>conftest.er1
21069 ac_status=$?
21070 grep -v '^ *+' conftest.er1 >conftest.err
21071 rm -f conftest.er1
21072 cat conftest.err >&5
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); } && {
21075 test -z "$ac_c_werror_flag" ||
21076 test ! -s conftest.err
21077 } && test -s conftest.$ac_objext; then
21078 ac_cv_sys_large_files=no; break
21079 else
21080 echo "$as_me: failed program was:" >&5
21081 sed 's/^/| /' conftest.$ac_ext >&5
21086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21087 cat >conftest.$ac_ext <<_ACEOF
21088 /* confdefs.h. */
21089 _ACEOF
21090 cat confdefs.h >>conftest.$ac_ext
21091 cat >>conftest.$ac_ext <<_ACEOF
21092 /* end confdefs.h. */
21093 #define _LARGE_FILES 1
21094 #include <sys/types.h>
21095 /* Check that off_t can represent 2**63 - 1 correctly.
21096 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21097 since some C++ compilers masquerading as C compilers
21098 incorrectly reject 9223372036854775807. */
21099 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21100 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21101 && LARGE_OFF_T % 2147483647 == 1)
21102 ? 1 : -1];
21104 main ()
21108 return 0;
21110 _ACEOF
21111 rm -f conftest.$ac_objext
21112 if { (ac_try="$ac_compile"
21113 case "(($ac_try" in
21114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21115 *) ac_try_echo=$ac_try;;
21116 esac
21117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21118 (eval "$ac_compile") 2>conftest.er1
21119 ac_status=$?
21120 grep -v '^ *+' conftest.er1 >conftest.err
21121 rm -f conftest.er1
21122 cat conftest.err >&5
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); } && {
21125 test -z "$ac_c_werror_flag" ||
21126 test ! -s conftest.err
21127 } && test -s conftest.$ac_objext; then
21128 ac_cv_sys_large_files=1; break
21129 else
21130 echo "$as_me: failed program was:" >&5
21131 sed 's/^/| /' conftest.$ac_ext >&5
21136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21137 ac_cv_sys_large_files=unknown
21138 break
21139 done
21141 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21142 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
21143 case $ac_cv_sys_large_files in #(
21144 no | unknown) ;;
21146 cat >>confdefs.h <<_ACEOF
21147 #define _LARGE_FILES $ac_cv_sys_large_files
21148 _ACEOF
21150 esac
21151 rm -f conftest*
21157 for ac_prog in cpp
21159 # Extract the first word of "$ac_prog", so it can be a program name with args.
21160 set dummy $ac_prog; ac_word=$2
21161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21163 if test "${ac_cv_path_RAWCPP+set}" = set; then
21164 echo $ECHO_N "(cached) $ECHO_C" >&6
21165 else
21166 case $RAWCPP in
21167 [\\/]* | ?:[\\/]*)
21168 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
21171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21172 as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
21173 for as_dir in $as_dummy
21175 IFS=$as_save_IFS
21176 test -z "$as_dir" && as_dir=.
21177 for ac_exec_ext in '' $ac_executable_extensions; do
21178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21179 ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
21180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21181 break 2
21183 done
21184 done
21185 IFS=$as_save_IFS
21188 esac
21190 RAWCPP=$ac_cv_path_RAWCPP
21191 if test -n "$RAWCPP"; then
21192 { echo "$as_me:$LINENO: result: $RAWCPP" >&5
21193 echo "${ECHO_T}$RAWCPP" >&6; }
21194 else
21195 { echo "$as_me:$LINENO: result: no" >&5
21196 echo "${ECHO_T}no" >&6; }
21200 test -n "$RAWCPP" && break
21201 done
21202 test -n "$RAWCPP" || RAWCPP="${CPP}"
21205 # Check for flag to avoid builtin definitions - assumes unix is predefined,
21206 # which is not the best choice for supporting other OS'es, but covers most
21207 # of the ones we need for now.
21208 { echo "$as_me:$LINENO: checking if $RAWCPP requires -undef" >&5
21209 echo $ECHO_N "checking if $RAWCPP requires -undef... $ECHO_C" >&6; }
21210 cat >conftest.$ac_ext <<_ACEOF
21211 Does cpp redefine unix ?
21212 _ACEOF
21213 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
21214 { echo "$as_me:$LINENO: result: no" >&5
21215 echo "${ECHO_T}no" >&6; }
21216 else
21217 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
21218 RAWCPPFLAGS=-undef
21219 { echo "$as_me:$LINENO: result: yes" >&5
21220 echo "${ECHO_T}yes" >&6; }
21221 else
21222 { { echo "$as_me:$LINENO: error: ${RAWCPP} defines unix with or without -undef. I don't know what to do." >&5
21223 echo "$as_me: error: ${RAWCPP} defines unix with or without -undef. I don't know what to do." >&2;}
21224 { (exit 1); exit 1; }; }
21227 rm -f conftest.$ac_ext
21229 { echo "$as_me:$LINENO: checking if $RAWCPP requires -traditional" >&5
21230 echo $ECHO_N "checking if $RAWCPP requires -traditional... $ECHO_C" >&6; }
21231 cat >conftest.$ac_ext <<_ACEOF
21232 Does cpp preserve "whitespace"?
21233 _ACEOF
21234 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
21235 { echo "$as_me:$LINENO: result: no" >&5
21236 echo "${ECHO_T}no" >&6; }
21237 else
21238 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
21239 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
21240 { echo "$as_me:$LINENO: result: yes" >&5
21241 echo "${ECHO_T}yes" >&6; }
21242 else
21243 { { echo "$as_me:$LINENO: error: ${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." >&5
21244 echo "$as_me: error: ${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." >&2;}
21245 { (exit 1); exit 1; }; }
21248 rm -f conftest.$ac_ext
21253 # Check whether --with-dtrace was given.
21254 if test "${with_dtrace+set}" = set; then
21255 withval=$with_dtrace; WDTRACE=$withval
21256 else
21257 WDTRACE=auto
21260 if test "x$WDTRACE" = "xyes" -o "x$WDTRACE" = "xauto" ; then
21261 # Extract the first word of "dtrace", so it can be a program name with args.
21262 set dummy dtrace; ac_word=$2
21263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21265 if test "${ac_cv_path_DTRACE+set}" = set; then
21266 echo $ECHO_N "(cached) $ECHO_C" >&6
21267 else
21268 case $DTRACE in
21269 [\\/]* | ?:[\\/]*)
21270 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
21273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21274 as_dummy="$PATH:/usr/sbin"
21275 for as_dir in $as_dummy
21277 IFS=$as_save_IFS
21278 test -z "$as_dir" && as_dir=.
21279 for ac_exec_ext in '' $ac_executable_extensions; do
21280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21281 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
21282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21283 break 2
21285 done
21286 done
21287 IFS=$as_save_IFS
21289 test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not_found"
21291 esac
21293 DTRACE=$ac_cv_path_DTRACE
21294 if test -n "$DTRACE"; then
21295 { echo "$as_me:$LINENO: result: $DTRACE" >&5
21296 echo "${ECHO_T}$DTRACE" >&6; }
21297 else
21298 { echo "$as_me:$LINENO: result: no" >&5
21299 echo "${ECHO_T}no" >&6; }
21303 if test "x$DTRACE" = "xnot_found" ; then
21304 if test "x$WDTRACE" = "xyes" ; then
21305 { { echo "$as_me:$LINENO: error: dtrace requested but not found
21306 See \`config.log' for more details." >&5
21307 echo "$as_me: error: dtrace requested but not found
21308 See \`config.log' for more details." >&2;}
21309 { (exit 1); exit 1; }; }
21311 WDTRACE="no"
21314 if test "x$WDTRACE" != "xno" ; then
21316 cat >>confdefs.h <<\_ACEOF
21317 #define XSERVER_DTRACE 1
21318 _ACEOF
21321 if test "x$WDTRACE" != "xno"; then
21322 XSERVER_DTRACE_TRUE=
21323 XSERVER_DTRACE_FALSE='#'
21324 else
21325 XSERVER_DTRACE_TRUE='#'
21326 XSERVER_DTRACE_FALSE=
21330 # DTrace support uses XErrorDB to get request names
21332 # Check whether --with-xerrordb was given.
21333 if test "${with_xerrordb+set}" = set; then
21334 withval=$with_xerrordb; XERRORDB_PATH="$withval"
21335 else
21336 XERRORDB_PATH="${datadir}/X11/XErrorDB"
21340 prefix_NONE=
21341 exec_prefix_NONE=
21342 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21343 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21344 eval ac_define_dir="\"$XERRORDB_PATH\""
21345 eval ac_define_dir="\"$ac_define_dir\""
21346 XERRORDB_PATH="$ac_define_dir"
21349 cat >>confdefs.h <<_ACEOF
21350 #define XERRORDB_PATH "$ac_define_dir"
21351 _ACEOF
21353 test "$prefix_NONE" && prefix=NONE
21354 test "$exec_prefix_NONE" && exec_prefix=NONE
21362 ac_header_dirent=no
21363 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21364 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21365 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
21366 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
21367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21368 echo $ECHO_N "(cached) $ECHO_C" >&6
21369 else
21370 cat >conftest.$ac_ext <<_ACEOF
21371 /* confdefs.h. */
21372 _ACEOF
21373 cat confdefs.h >>conftest.$ac_ext
21374 cat >>conftest.$ac_ext <<_ACEOF
21375 /* end confdefs.h. */
21376 #include <sys/types.h>
21377 #include <$ac_hdr>
21380 main ()
21382 if ((DIR *) 0)
21383 return 0;
21385 return 0;
21387 _ACEOF
21388 rm -f conftest.$ac_objext
21389 if { (ac_try="$ac_compile"
21390 case "(($ac_try" in
21391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21392 *) ac_try_echo=$ac_try;;
21393 esac
21394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21395 (eval "$ac_compile") 2>conftest.er1
21396 ac_status=$?
21397 grep -v '^ *+' conftest.er1 >conftest.err
21398 rm -f conftest.er1
21399 cat conftest.err >&5
21400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21401 (exit $ac_status); } && {
21402 test -z "$ac_c_werror_flag" ||
21403 test ! -s conftest.err
21404 } && test -s conftest.$ac_objext; then
21405 eval "$as_ac_Header=yes"
21406 else
21407 echo "$as_me: failed program was:" >&5
21408 sed 's/^/| /' conftest.$ac_ext >&5
21410 eval "$as_ac_Header=no"
21413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21415 ac_res=`eval echo '${'$as_ac_Header'}'`
21416 { echo "$as_me:$LINENO: result: $ac_res" >&5
21417 echo "${ECHO_T}$ac_res" >&6; }
21418 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21419 cat >>confdefs.h <<_ACEOF
21420 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21421 _ACEOF
21423 ac_header_dirent=$ac_hdr; break
21426 done
21427 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21428 if test $ac_header_dirent = dirent.h; then
21429 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
21430 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21431 if test "${ac_cv_search_opendir+set}" = set; then
21432 echo $ECHO_N "(cached) $ECHO_C" >&6
21433 else
21434 ac_func_search_save_LIBS=$LIBS
21435 cat >conftest.$ac_ext <<_ACEOF
21436 /* confdefs.h. */
21437 _ACEOF
21438 cat confdefs.h >>conftest.$ac_ext
21439 cat >>conftest.$ac_ext <<_ACEOF
21440 /* end confdefs.h. */
21442 /* Override any GCC internal prototype to avoid an error.
21443 Use char because int might match the return type of a GCC
21444 builtin and then its argument prototype would still apply. */
21445 #ifdef __cplusplus
21446 extern "C"
21447 #endif
21448 char opendir ();
21450 main ()
21452 return opendir ();
21454 return 0;
21456 _ACEOF
21457 for ac_lib in '' dir; do
21458 if test -z "$ac_lib"; then
21459 ac_res="none required"
21460 else
21461 ac_res=-l$ac_lib
21462 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21464 rm -f conftest.$ac_objext conftest$ac_exeext
21465 if { (ac_try="$ac_link"
21466 case "(($ac_try" in
21467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21468 *) ac_try_echo=$ac_try;;
21469 esac
21470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21471 (eval "$ac_link") 2>conftest.er1
21472 ac_status=$?
21473 grep -v '^ *+' conftest.er1 >conftest.err
21474 rm -f conftest.er1
21475 cat conftest.err >&5
21476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477 (exit $ac_status); } && {
21478 test -z "$ac_c_werror_flag" ||
21479 test ! -s conftest.err
21480 } && test -s conftest$ac_exeext &&
21481 $as_test_x conftest$ac_exeext; then
21482 ac_cv_search_opendir=$ac_res
21483 else
21484 echo "$as_me: failed program was:" >&5
21485 sed 's/^/| /' conftest.$ac_ext >&5
21490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21491 conftest$ac_exeext
21492 if test "${ac_cv_search_opendir+set}" = set; then
21493 break
21495 done
21496 if test "${ac_cv_search_opendir+set}" = set; then
21498 else
21499 ac_cv_search_opendir=no
21501 rm conftest.$ac_ext
21502 LIBS=$ac_func_search_save_LIBS
21504 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21505 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21506 ac_res=$ac_cv_search_opendir
21507 if test "$ac_res" != no; then
21508 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21512 else
21513 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
21514 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21515 if test "${ac_cv_search_opendir+set}" = set; then
21516 echo $ECHO_N "(cached) $ECHO_C" >&6
21517 else
21518 ac_func_search_save_LIBS=$LIBS
21519 cat >conftest.$ac_ext <<_ACEOF
21520 /* confdefs.h. */
21521 _ACEOF
21522 cat confdefs.h >>conftest.$ac_ext
21523 cat >>conftest.$ac_ext <<_ACEOF
21524 /* end confdefs.h. */
21526 /* Override any GCC internal prototype to avoid an error.
21527 Use char because int might match the return type of a GCC
21528 builtin and then its argument prototype would still apply. */
21529 #ifdef __cplusplus
21530 extern "C"
21531 #endif
21532 char opendir ();
21534 main ()
21536 return opendir ();
21538 return 0;
21540 _ACEOF
21541 for ac_lib in '' x; do
21542 if test -z "$ac_lib"; then
21543 ac_res="none required"
21544 else
21545 ac_res=-l$ac_lib
21546 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21548 rm -f conftest.$ac_objext conftest$ac_exeext
21549 if { (ac_try="$ac_link"
21550 case "(($ac_try" in
21551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21552 *) ac_try_echo=$ac_try;;
21553 esac
21554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21555 (eval "$ac_link") 2>conftest.er1
21556 ac_status=$?
21557 grep -v '^ *+' conftest.er1 >conftest.err
21558 rm -f conftest.er1
21559 cat conftest.err >&5
21560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561 (exit $ac_status); } && {
21562 test -z "$ac_c_werror_flag" ||
21563 test ! -s conftest.err
21564 } && test -s conftest$ac_exeext &&
21565 $as_test_x conftest$ac_exeext; then
21566 ac_cv_search_opendir=$ac_res
21567 else
21568 echo "$as_me: failed program was:" >&5
21569 sed 's/^/| /' conftest.$ac_ext >&5
21574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21575 conftest$ac_exeext
21576 if test "${ac_cv_search_opendir+set}" = set; then
21577 break
21579 done
21580 if test "${ac_cv_search_opendir+set}" = set; then
21582 else
21583 ac_cv_search_opendir=no
21585 rm conftest.$ac_ext
21586 LIBS=$ac_func_search_save_LIBS
21588 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21589 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21590 ac_res=$ac_cv_search_opendir
21591 if test "$ac_res" != no; then
21592 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21598 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21599 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21600 if test "${ac_cv_header_stdc+set}" = set; then
21601 echo $ECHO_N "(cached) $ECHO_C" >&6
21602 else
21603 cat >conftest.$ac_ext <<_ACEOF
21604 /* confdefs.h. */
21605 _ACEOF
21606 cat confdefs.h >>conftest.$ac_ext
21607 cat >>conftest.$ac_ext <<_ACEOF
21608 /* end confdefs.h. */
21609 #include <stdlib.h>
21610 #include <stdarg.h>
21611 #include <string.h>
21612 #include <float.h>
21615 main ()
21619 return 0;
21621 _ACEOF
21622 rm -f conftest.$ac_objext
21623 if { (ac_try="$ac_compile"
21624 case "(($ac_try" in
21625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21626 *) ac_try_echo=$ac_try;;
21627 esac
21628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21629 (eval "$ac_compile") 2>conftest.er1
21630 ac_status=$?
21631 grep -v '^ *+' conftest.er1 >conftest.err
21632 rm -f conftest.er1
21633 cat conftest.err >&5
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); } && {
21636 test -z "$ac_c_werror_flag" ||
21637 test ! -s conftest.err
21638 } && test -s conftest.$ac_objext; then
21639 ac_cv_header_stdc=yes
21640 else
21641 echo "$as_me: failed program was:" >&5
21642 sed 's/^/| /' conftest.$ac_ext >&5
21644 ac_cv_header_stdc=no
21647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21649 if test $ac_cv_header_stdc = yes; then
21650 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21651 cat >conftest.$ac_ext <<_ACEOF
21652 /* confdefs.h. */
21653 _ACEOF
21654 cat confdefs.h >>conftest.$ac_ext
21655 cat >>conftest.$ac_ext <<_ACEOF
21656 /* end confdefs.h. */
21657 #include <string.h>
21659 _ACEOF
21660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21661 $EGREP "memchr" >/dev/null 2>&1; then
21663 else
21664 ac_cv_header_stdc=no
21666 rm -f conftest*
21670 if test $ac_cv_header_stdc = yes; then
21671 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21672 cat >conftest.$ac_ext <<_ACEOF
21673 /* confdefs.h. */
21674 _ACEOF
21675 cat confdefs.h >>conftest.$ac_ext
21676 cat >>conftest.$ac_ext <<_ACEOF
21677 /* end confdefs.h. */
21678 #include <stdlib.h>
21680 _ACEOF
21681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21682 $EGREP "free" >/dev/null 2>&1; then
21684 else
21685 ac_cv_header_stdc=no
21687 rm -f conftest*
21691 if test $ac_cv_header_stdc = yes; then
21692 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21693 if test "$cross_compiling" = yes; then
21695 else
21696 cat >conftest.$ac_ext <<_ACEOF
21697 /* confdefs.h. */
21698 _ACEOF
21699 cat confdefs.h >>conftest.$ac_ext
21700 cat >>conftest.$ac_ext <<_ACEOF
21701 /* end confdefs.h. */
21702 #include <ctype.h>
21703 #include <stdlib.h>
21704 #if ((' ' & 0x0FF) == 0x020)
21705 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21706 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21707 #else
21708 # define ISLOWER(c) \
21709 (('a' <= (c) && (c) <= 'i') \
21710 || ('j' <= (c) && (c) <= 'r') \
21711 || ('s' <= (c) && (c) <= 'z'))
21712 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21713 #endif
21715 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21717 main ()
21719 int i;
21720 for (i = 0; i < 256; i++)
21721 if (XOR (islower (i), ISLOWER (i))
21722 || toupper (i) != TOUPPER (i))
21723 return 2;
21724 return 0;
21726 _ACEOF
21727 rm -f conftest$ac_exeext
21728 if { (ac_try="$ac_link"
21729 case "(($ac_try" in
21730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21731 *) ac_try_echo=$ac_try;;
21732 esac
21733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21734 (eval "$ac_link") 2>&5
21735 ac_status=$?
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21738 { (case "(($ac_try" in
21739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21740 *) ac_try_echo=$ac_try;;
21741 esac
21742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21743 (eval "$ac_try") 2>&5
21744 ac_status=$?
21745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746 (exit $ac_status); }; }; then
21748 else
21749 echo "$as_me: program exited with status $ac_status" >&5
21750 echo "$as_me: failed program was:" >&5
21751 sed 's/^/| /' conftest.$ac_ext >&5
21753 ( exit $ac_status )
21754 ac_cv_header_stdc=no
21756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21762 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21763 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21764 if test $ac_cv_header_stdc = yes; then
21766 cat >>confdefs.h <<\_ACEOF
21767 #define STDC_HEADERS 1
21768 _ACEOF
21776 for ac_header in fcntl.h stdlib.h string.h unistd.h
21778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21780 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21783 echo $ECHO_N "(cached) $ECHO_C" >&6
21785 ac_res=`eval echo '${'$as_ac_Header'}'`
21786 { echo "$as_me:$LINENO: result: $ac_res" >&5
21787 echo "${ECHO_T}$ac_res" >&6; }
21788 else
21789 # Is the header compilable?
21790 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21791 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21792 cat >conftest.$ac_ext <<_ACEOF
21793 /* confdefs.h. */
21794 _ACEOF
21795 cat confdefs.h >>conftest.$ac_ext
21796 cat >>conftest.$ac_ext <<_ACEOF
21797 /* end confdefs.h. */
21798 $ac_includes_default
21799 #include <$ac_header>
21800 _ACEOF
21801 rm -f conftest.$ac_objext
21802 if { (ac_try="$ac_compile"
21803 case "(($ac_try" in
21804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21805 *) ac_try_echo=$ac_try;;
21806 esac
21807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21808 (eval "$ac_compile") 2>conftest.er1
21809 ac_status=$?
21810 grep -v '^ *+' conftest.er1 >conftest.err
21811 rm -f conftest.er1
21812 cat conftest.err >&5
21813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814 (exit $ac_status); } && {
21815 test -z "$ac_c_werror_flag" ||
21816 test ! -s conftest.err
21817 } && test -s conftest.$ac_objext; then
21818 ac_header_compiler=yes
21819 else
21820 echo "$as_me: failed program was:" >&5
21821 sed 's/^/| /' conftest.$ac_ext >&5
21823 ac_header_compiler=no
21826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21827 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21828 echo "${ECHO_T}$ac_header_compiler" >&6; }
21830 # Is the header present?
21831 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21833 cat >conftest.$ac_ext <<_ACEOF
21834 /* confdefs.h. */
21835 _ACEOF
21836 cat confdefs.h >>conftest.$ac_ext
21837 cat >>conftest.$ac_ext <<_ACEOF
21838 /* end confdefs.h. */
21839 #include <$ac_header>
21840 _ACEOF
21841 if { (ac_try="$ac_cpp conftest.$ac_ext"
21842 case "(($ac_try" in
21843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21844 *) ac_try_echo=$ac_try;;
21845 esac
21846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21848 ac_status=$?
21849 grep -v '^ *+' conftest.er1 >conftest.err
21850 rm -f conftest.er1
21851 cat conftest.err >&5
21852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853 (exit $ac_status); } >/dev/null && {
21854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21855 test ! -s conftest.err
21856 }; then
21857 ac_header_preproc=yes
21858 else
21859 echo "$as_me: failed program was:" >&5
21860 sed 's/^/| /' conftest.$ac_ext >&5
21862 ac_header_preproc=no
21865 rm -f conftest.err conftest.$ac_ext
21866 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21867 echo "${ECHO_T}$ac_header_preproc" >&6; }
21869 # So? What about this header?
21870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21871 yes:no: )
21872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21873 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21875 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21876 ac_header_preproc=yes
21878 no:yes:* )
21879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21880 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21882 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21883 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21884 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21885 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21886 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21889 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21890 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21891 ( cat <<\_ASBOX
21892 ## ---------------------------------------------------------------------- ##
21893 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
21894 ## ---------------------------------------------------------------------- ##
21895 _ASBOX
21896 ) | sed "s/^/$as_me: WARNING: /" >&2
21898 esac
21899 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21902 echo $ECHO_N "(cached) $ECHO_C" >&6
21903 else
21904 eval "$as_ac_Header=\$ac_header_preproc"
21906 ac_res=`eval echo '${'$as_ac_Header'}'`
21907 { echo "$as_me:$LINENO: result: $ac_res" >&5
21908 echo "${ECHO_T}$ac_res" >&6; }
21911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21912 cat >>confdefs.h <<_ACEOF
21913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21914 _ACEOF
21918 done
21921 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21922 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21923 if test "${ac_cv_c_const+set}" = set; then
21924 echo $ECHO_N "(cached) $ECHO_C" >&6
21925 else
21926 cat >conftest.$ac_ext <<_ACEOF
21927 /* confdefs.h. */
21928 _ACEOF
21929 cat confdefs.h >>conftest.$ac_ext
21930 cat >>conftest.$ac_ext <<_ACEOF
21931 /* end confdefs.h. */
21934 main ()
21936 /* FIXME: Include the comments suggested by Paul. */
21937 #ifndef __cplusplus
21938 /* Ultrix mips cc rejects this. */
21939 typedef int charset[2];
21940 const charset cs;
21941 /* SunOS 4.1.1 cc rejects this. */
21942 char const *const *pcpcc;
21943 char **ppc;
21944 /* NEC SVR4.0.2 mips cc rejects this. */
21945 struct point {int x, y;};
21946 static struct point const zero = {0,0};
21947 /* AIX XL C 1.02.0.0 rejects this.
21948 It does not let you subtract one const X* pointer from another in
21949 an arm of an if-expression whose if-part is not a constant
21950 expression */
21951 const char *g = "string";
21952 pcpcc = &g + (g ? g-g : 0);
21953 /* HPUX 7.0 cc rejects these. */
21954 ++pcpcc;
21955 ppc = (char**) pcpcc;
21956 pcpcc = (char const *const *) ppc;
21957 { /* SCO 3.2v4 cc rejects this. */
21958 char *t;
21959 char const *s = 0 ? (char *) 0 : (char const *) 0;
21961 *t++ = 0;
21962 if (s) return 0;
21964 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21965 int x[] = {25, 17};
21966 const int *foo = &x[0];
21967 ++foo;
21969 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21970 typedef const int *iptr;
21971 iptr p = 0;
21972 ++p;
21974 { /* AIX XL C 1.02.0.0 rejects this saying
21975 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21976 struct s { int j; const int *ap[3]; };
21977 struct s *b; b->j = 5;
21979 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21980 const int foo = 10;
21981 if (!foo) return 0;
21983 return !cs[0] && !zero.x;
21984 #endif
21987 return 0;
21989 _ACEOF
21990 rm -f conftest.$ac_objext
21991 if { (ac_try="$ac_compile"
21992 case "(($ac_try" in
21993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21994 *) ac_try_echo=$ac_try;;
21995 esac
21996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21997 (eval "$ac_compile") 2>conftest.er1
21998 ac_status=$?
21999 grep -v '^ *+' conftest.er1 >conftest.err
22000 rm -f conftest.er1
22001 cat conftest.err >&5
22002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003 (exit $ac_status); } && {
22004 test -z "$ac_c_werror_flag" ||
22005 test ! -s conftest.err
22006 } && test -s conftest.$ac_objext; then
22007 ac_cv_c_const=yes
22008 else
22009 echo "$as_me: failed program was:" >&5
22010 sed 's/^/| /' conftest.$ac_ext >&5
22012 ac_cv_c_const=no
22015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22017 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22018 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22019 if test $ac_cv_c_const = no; then
22021 cat >>confdefs.h <<\_ACEOF
22022 #define const
22023 _ACEOF
22027 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22028 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22029 if test "${ac_cv_c_bigendian+set}" = set; then
22030 echo $ECHO_N "(cached) $ECHO_C" >&6
22031 else
22032 # See if sys/param.h defines the BYTE_ORDER macro.
22033 cat >conftest.$ac_ext <<_ACEOF
22034 /* confdefs.h. */
22035 _ACEOF
22036 cat confdefs.h >>conftest.$ac_ext
22037 cat >>conftest.$ac_ext <<_ACEOF
22038 /* end confdefs.h. */
22039 #include <sys/types.h>
22040 #include <sys/param.h>
22043 main ()
22045 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22046 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22047 bogus endian macros
22048 #endif
22051 return 0;
22053 _ACEOF
22054 rm -f conftest.$ac_objext
22055 if { (ac_try="$ac_compile"
22056 case "(($ac_try" in
22057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22058 *) ac_try_echo=$ac_try;;
22059 esac
22060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22061 (eval "$ac_compile") 2>conftest.er1
22062 ac_status=$?
22063 grep -v '^ *+' conftest.er1 >conftest.err
22064 rm -f conftest.er1
22065 cat conftest.err >&5
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); } && {
22068 test -z "$ac_c_werror_flag" ||
22069 test ! -s conftest.err
22070 } && test -s conftest.$ac_objext; then
22071 # It does; now see whether it defined to BIG_ENDIAN or not.
22072 cat >conftest.$ac_ext <<_ACEOF
22073 /* confdefs.h. */
22074 _ACEOF
22075 cat confdefs.h >>conftest.$ac_ext
22076 cat >>conftest.$ac_ext <<_ACEOF
22077 /* end confdefs.h. */
22078 #include <sys/types.h>
22079 #include <sys/param.h>
22082 main ()
22084 #if BYTE_ORDER != BIG_ENDIAN
22085 not big endian
22086 #endif
22089 return 0;
22091 _ACEOF
22092 rm -f conftest.$ac_objext
22093 if { (ac_try="$ac_compile"
22094 case "(($ac_try" in
22095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22096 *) ac_try_echo=$ac_try;;
22097 esac
22098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22099 (eval "$ac_compile") 2>conftest.er1
22100 ac_status=$?
22101 grep -v '^ *+' conftest.er1 >conftest.err
22102 rm -f conftest.er1
22103 cat conftest.err >&5
22104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105 (exit $ac_status); } && {
22106 test -z "$ac_c_werror_flag" ||
22107 test ! -s conftest.err
22108 } && test -s conftest.$ac_objext; then
22109 ac_cv_c_bigendian=yes
22110 else
22111 echo "$as_me: failed program was:" >&5
22112 sed 's/^/| /' conftest.$ac_ext >&5
22114 ac_cv_c_bigendian=no
22117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22118 else
22119 echo "$as_me: failed program was:" >&5
22120 sed 's/^/| /' conftest.$ac_ext >&5
22122 # It does not; compile a test program.
22123 if test "$cross_compiling" = yes; then
22124 # try to guess the endianness by grepping values into an object file
22125 ac_cv_c_bigendian=unknown
22126 cat >conftest.$ac_ext <<_ACEOF
22127 /* confdefs.h. */
22128 _ACEOF
22129 cat confdefs.h >>conftest.$ac_ext
22130 cat >>conftest.$ac_ext <<_ACEOF
22131 /* end confdefs.h. */
22132 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22133 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22134 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22135 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22136 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22137 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22139 main ()
22141 _ascii (); _ebcdic ();
22143 return 0;
22145 _ACEOF
22146 rm -f conftest.$ac_objext
22147 if { (ac_try="$ac_compile"
22148 case "(($ac_try" in
22149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22150 *) ac_try_echo=$ac_try;;
22151 esac
22152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22153 (eval "$ac_compile") 2>conftest.er1
22154 ac_status=$?
22155 grep -v '^ *+' conftest.er1 >conftest.err
22156 rm -f conftest.er1
22157 cat conftest.err >&5
22158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159 (exit $ac_status); } && {
22160 test -z "$ac_c_werror_flag" ||
22161 test ! -s conftest.err
22162 } && test -s conftest.$ac_objext; then
22163 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22164 ac_cv_c_bigendian=yes
22166 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22167 if test "$ac_cv_c_bigendian" = unknown; then
22168 ac_cv_c_bigendian=no
22169 else
22170 # finding both strings is unlikely to happen, but who knows?
22171 ac_cv_c_bigendian=unknown
22174 else
22175 echo "$as_me: failed program was:" >&5
22176 sed 's/^/| /' conftest.$ac_ext >&5
22181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22182 else
22183 cat >conftest.$ac_ext <<_ACEOF
22184 /* confdefs.h. */
22185 _ACEOF
22186 cat confdefs.h >>conftest.$ac_ext
22187 cat >>conftest.$ac_ext <<_ACEOF
22188 /* end confdefs.h. */
22189 $ac_includes_default
22191 main ()
22194 /* Are we little or big endian? From Harbison&Steele. */
22195 union
22197 long int l;
22198 char c[sizeof (long int)];
22199 } u;
22200 u.l = 1;
22201 return u.c[sizeof (long int) - 1] == 1;
22204 return 0;
22206 _ACEOF
22207 rm -f conftest$ac_exeext
22208 if { (ac_try="$ac_link"
22209 case "(($ac_try" in
22210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22211 *) ac_try_echo=$ac_try;;
22212 esac
22213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22214 (eval "$ac_link") 2>&5
22215 ac_status=$?
22216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22218 { (case "(($ac_try" in
22219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22220 *) ac_try_echo=$ac_try;;
22221 esac
22222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22223 (eval "$ac_try") 2>&5
22224 ac_status=$?
22225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22226 (exit $ac_status); }; }; then
22227 ac_cv_c_bigendian=no
22228 else
22229 echo "$as_me: program exited with status $ac_status" >&5
22230 echo "$as_me: failed program was:" >&5
22231 sed 's/^/| /' conftest.$ac_ext >&5
22233 ( exit $ac_status )
22234 ac_cv_c_bigendian=yes
22236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22244 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22245 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22246 case $ac_cv_c_bigendian in
22247 yes)
22248 ENDIAN="X_BIG_ENDIAN" ;;
22250 ENDIAN="X_LITTLE_ENDIAN" ;;
22252 { { echo "$as_me:$LINENO: error: unknown endianness
22253 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
22254 echo "$as_me: error: unknown endianness
22255 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
22256 { (exit 1); exit 1; }; } ;;
22257 esac
22260 { echo "$as_me:$LINENO: checking for unsigned long" >&5
22261 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
22262 if test "${ac_cv_type_unsigned_long+set}" = set; then
22263 echo $ECHO_N "(cached) $ECHO_C" >&6
22264 else
22265 cat >conftest.$ac_ext <<_ACEOF
22266 /* confdefs.h. */
22267 _ACEOF
22268 cat confdefs.h >>conftest.$ac_ext
22269 cat >>conftest.$ac_ext <<_ACEOF
22270 /* end confdefs.h. */
22271 $ac_includes_default
22272 typedef unsigned long ac__type_new_;
22274 main ()
22276 if ((ac__type_new_ *) 0)
22277 return 0;
22278 if (sizeof (ac__type_new_))
22279 return 0;
22281 return 0;
22283 _ACEOF
22284 rm -f conftest.$ac_objext
22285 if { (ac_try="$ac_compile"
22286 case "(($ac_try" in
22287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22288 *) ac_try_echo=$ac_try;;
22289 esac
22290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22291 (eval "$ac_compile") 2>conftest.er1
22292 ac_status=$?
22293 grep -v '^ *+' conftest.er1 >conftest.err
22294 rm -f conftest.er1
22295 cat conftest.err >&5
22296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297 (exit $ac_status); } && {
22298 test -z "$ac_c_werror_flag" ||
22299 test ! -s conftest.err
22300 } && test -s conftest.$ac_objext; then
22301 ac_cv_type_unsigned_long=yes
22302 else
22303 echo "$as_me: failed program was:" >&5
22304 sed 's/^/| /' conftest.$ac_ext >&5
22306 ac_cv_type_unsigned_long=no
22309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22311 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
22312 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
22314 # The cast to long int works around a bug in the HP C Compiler
22315 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22316 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22317 # This bug is HP SR number 8606223364.
22318 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
22319 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
22320 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
22321 echo $ECHO_N "(cached) $ECHO_C" >&6
22322 else
22323 if test "$cross_compiling" = yes; then
22324 # Depending upon the size, compute the lo and hi bounds.
22325 cat >conftest.$ac_ext <<_ACEOF
22326 /* confdefs.h. */
22327 _ACEOF
22328 cat confdefs.h >>conftest.$ac_ext
22329 cat >>conftest.$ac_ext <<_ACEOF
22330 /* end confdefs.h. */
22331 $ac_includes_default
22332 typedef unsigned long ac__type_sizeof_;
22334 main ()
22336 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22337 test_array [0] = 0
22340 return 0;
22342 _ACEOF
22343 rm -f conftest.$ac_objext
22344 if { (ac_try="$ac_compile"
22345 case "(($ac_try" in
22346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22347 *) ac_try_echo=$ac_try;;
22348 esac
22349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22350 (eval "$ac_compile") 2>conftest.er1
22351 ac_status=$?
22352 grep -v '^ *+' conftest.er1 >conftest.err
22353 rm -f conftest.er1
22354 cat conftest.err >&5
22355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22356 (exit $ac_status); } && {
22357 test -z "$ac_c_werror_flag" ||
22358 test ! -s conftest.err
22359 } && test -s conftest.$ac_objext; then
22360 ac_lo=0 ac_mid=0
22361 while :; do
22362 cat >conftest.$ac_ext <<_ACEOF
22363 /* confdefs.h. */
22364 _ACEOF
22365 cat confdefs.h >>conftest.$ac_ext
22366 cat >>conftest.$ac_ext <<_ACEOF
22367 /* end confdefs.h. */
22368 $ac_includes_default
22369 typedef unsigned long ac__type_sizeof_;
22371 main ()
22373 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22374 test_array [0] = 0
22377 return 0;
22379 _ACEOF
22380 rm -f conftest.$ac_objext
22381 if { (ac_try="$ac_compile"
22382 case "(($ac_try" in
22383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22384 *) ac_try_echo=$ac_try;;
22385 esac
22386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22387 (eval "$ac_compile") 2>conftest.er1
22388 ac_status=$?
22389 grep -v '^ *+' conftest.er1 >conftest.err
22390 rm -f conftest.er1
22391 cat conftest.err >&5
22392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393 (exit $ac_status); } && {
22394 test -z "$ac_c_werror_flag" ||
22395 test ! -s conftest.err
22396 } && test -s conftest.$ac_objext; then
22397 ac_hi=$ac_mid; break
22398 else
22399 echo "$as_me: failed program was:" >&5
22400 sed 's/^/| /' conftest.$ac_ext >&5
22402 ac_lo=`expr $ac_mid + 1`
22403 if test $ac_lo -le $ac_mid; then
22404 ac_lo= ac_hi=
22405 break
22407 ac_mid=`expr 2 '*' $ac_mid + 1`
22410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22411 done
22412 else
22413 echo "$as_me: failed program was:" >&5
22414 sed 's/^/| /' conftest.$ac_ext >&5
22416 cat >conftest.$ac_ext <<_ACEOF
22417 /* confdefs.h. */
22418 _ACEOF
22419 cat confdefs.h >>conftest.$ac_ext
22420 cat >>conftest.$ac_ext <<_ACEOF
22421 /* end confdefs.h. */
22422 $ac_includes_default
22423 typedef unsigned long ac__type_sizeof_;
22425 main ()
22427 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22428 test_array [0] = 0
22431 return 0;
22433 _ACEOF
22434 rm -f conftest.$ac_objext
22435 if { (ac_try="$ac_compile"
22436 case "(($ac_try" in
22437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22438 *) ac_try_echo=$ac_try;;
22439 esac
22440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22441 (eval "$ac_compile") 2>conftest.er1
22442 ac_status=$?
22443 grep -v '^ *+' conftest.er1 >conftest.err
22444 rm -f conftest.er1
22445 cat conftest.err >&5
22446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447 (exit $ac_status); } && {
22448 test -z "$ac_c_werror_flag" ||
22449 test ! -s conftest.err
22450 } && test -s conftest.$ac_objext; then
22451 ac_hi=-1 ac_mid=-1
22452 while :; do
22453 cat >conftest.$ac_ext <<_ACEOF
22454 /* confdefs.h. */
22455 _ACEOF
22456 cat confdefs.h >>conftest.$ac_ext
22457 cat >>conftest.$ac_ext <<_ACEOF
22458 /* end confdefs.h. */
22459 $ac_includes_default
22460 typedef unsigned long ac__type_sizeof_;
22462 main ()
22464 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22465 test_array [0] = 0
22468 return 0;
22470 _ACEOF
22471 rm -f conftest.$ac_objext
22472 if { (ac_try="$ac_compile"
22473 case "(($ac_try" in
22474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22475 *) ac_try_echo=$ac_try;;
22476 esac
22477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22478 (eval "$ac_compile") 2>conftest.er1
22479 ac_status=$?
22480 grep -v '^ *+' conftest.er1 >conftest.err
22481 rm -f conftest.er1
22482 cat conftest.err >&5
22483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484 (exit $ac_status); } && {
22485 test -z "$ac_c_werror_flag" ||
22486 test ! -s conftest.err
22487 } && test -s conftest.$ac_objext; then
22488 ac_lo=$ac_mid; break
22489 else
22490 echo "$as_me: failed program was:" >&5
22491 sed 's/^/| /' conftest.$ac_ext >&5
22493 ac_hi=`expr '(' $ac_mid ')' - 1`
22494 if test $ac_mid -le $ac_hi; then
22495 ac_lo= ac_hi=
22496 break
22498 ac_mid=`expr 2 '*' $ac_mid`
22501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22502 done
22503 else
22504 echo "$as_me: failed program was:" >&5
22505 sed 's/^/| /' conftest.$ac_ext >&5
22507 ac_lo= ac_hi=
22510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22514 # Binary search between lo and hi bounds.
22515 while test "x$ac_lo" != "x$ac_hi"; do
22516 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22517 cat >conftest.$ac_ext <<_ACEOF
22518 /* confdefs.h. */
22519 _ACEOF
22520 cat confdefs.h >>conftest.$ac_ext
22521 cat >>conftest.$ac_ext <<_ACEOF
22522 /* end confdefs.h. */
22523 $ac_includes_default
22524 typedef unsigned long ac__type_sizeof_;
22526 main ()
22528 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22529 test_array [0] = 0
22532 return 0;
22534 _ACEOF
22535 rm -f conftest.$ac_objext
22536 if { (ac_try="$ac_compile"
22537 case "(($ac_try" in
22538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22539 *) ac_try_echo=$ac_try;;
22540 esac
22541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22542 (eval "$ac_compile") 2>conftest.er1
22543 ac_status=$?
22544 grep -v '^ *+' conftest.er1 >conftest.err
22545 rm -f conftest.er1
22546 cat conftest.err >&5
22547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548 (exit $ac_status); } && {
22549 test -z "$ac_c_werror_flag" ||
22550 test ! -s conftest.err
22551 } && test -s conftest.$ac_objext; then
22552 ac_hi=$ac_mid
22553 else
22554 echo "$as_me: failed program was:" >&5
22555 sed 's/^/| /' conftest.$ac_ext >&5
22557 ac_lo=`expr '(' $ac_mid ')' + 1`
22560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22561 done
22562 case $ac_lo in
22563 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
22564 '') if test "$ac_cv_type_unsigned_long" = yes; then
22565 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
22566 See \`config.log' for more details." >&5
22567 echo "$as_me: error: cannot compute sizeof (unsigned long)
22568 See \`config.log' for more details." >&2;}
22569 { (exit 77); exit 77; }; }
22570 else
22571 ac_cv_sizeof_unsigned_long=0
22572 fi ;;
22573 esac
22574 else
22575 cat >conftest.$ac_ext <<_ACEOF
22576 /* confdefs.h. */
22577 _ACEOF
22578 cat confdefs.h >>conftest.$ac_ext
22579 cat >>conftest.$ac_ext <<_ACEOF
22580 /* end confdefs.h. */
22581 $ac_includes_default
22582 typedef unsigned long ac__type_sizeof_;
22583 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22584 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22585 #include <stdio.h>
22586 #include <stdlib.h>
22588 main ()
22591 FILE *f = fopen ("conftest.val", "w");
22592 if (! f)
22593 return 1;
22594 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22596 long int i = longval ();
22597 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22598 return 1;
22599 fprintf (f, "%ld\n", i);
22601 else
22603 unsigned long int i = ulongval ();
22604 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22605 return 1;
22606 fprintf (f, "%lu\n", i);
22608 return ferror (f) || fclose (f) != 0;
22611 return 0;
22613 _ACEOF
22614 rm -f conftest$ac_exeext
22615 if { (ac_try="$ac_link"
22616 case "(($ac_try" in
22617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22618 *) ac_try_echo=$ac_try;;
22619 esac
22620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22621 (eval "$ac_link") 2>&5
22622 ac_status=$?
22623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22625 { (case "(($ac_try" in
22626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22627 *) ac_try_echo=$ac_try;;
22628 esac
22629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22630 (eval "$ac_try") 2>&5
22631 ac_status=$?
22632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633 (exit $ac_status); }; }; then
22634 ac_cv_sizeof_unsigned_long=`cat conftest.val`
22635 else
22636 echo "$as_me: program exited with status $ac_status" >&5
22637 echo "$as_me: failed program was:" >&5
22638 sed 's/^/| /' conftest.$ac_ext >&5
22640 ( exit $ac_status )
22641 if test "$ac_cv_type_unsigned_long" = yes; then
22642 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
22643 See \`config.log' for more details." >&5
22644 echo "$as_me: error: cannot compute sizeof (unsigned long)
22645 See \`config.log' for more details." >&2;}
22646 { (exit 77); exit 77; }; }
22647 else
22648 ac_cv_sizeof_unsigned_long=0
22651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22653 rm -f conftest.val
22655 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
22656 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
22660 cat >>confdefs.h <<_ACEOF
22661 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
22662 _ACEOF
22665 if test "$ac_cv_sizeof_unsigned_long" = 8; then
22667 cat >>confdefs.h <<\_ACEOF
22668 #define _XSERVER64 1
22669 _ACEOF
22673 { echo "$as_me:$LINENO: checking for pid_t" >&5
22674 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22675 if test "${ac_cv_type_pid_t+set}" = set; then
22676 echo $ECHO_N "(cached) $ECHO_C" >&6
22677 else
22678 cat >conftest.$ac_ext <<_ACEOF
22679 /* confdefs.h. */
22680 _ACEOF
22681 cat confdefs.h >>conftest.$ac_ext
22682 cat >>conftest.$ac_ext <<_ACEOF
22683 /* end confdefs.h. */
22684 $ac_includes_default
22685 typedef pid_t ac__type_new_;
22687 main ()
22689 if ((ac__type_new_ *) 0)
22690 return 0;
22691 if (sizeof (ac__type_new_))
22692 return 0;
22694 return 0;
22696 _ACEOF
22697 rm -f conftest.$ac_objext
22698 if { (ac_try="$ac_compile"
22699 case "(($ac_try" in
22700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22701 *) ac_try_echo=$ac_try;;
22702 esac
22703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22704 (eval "$ac_compile") 2>conftest.er1
22705 ac_status=$?
22706 grep -v '^ *+' conftest.er1 >conftest.err
22707 rm -f conftest.er1
22708 cat conftest.err >&5
22709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22710 (exit $ac_status); } && {
22711 test -z "$ac_c_werror_flag" ||
22712 test ! -s conftest.err
22713 } && test -s conftest.$ac_objext; then
22714 ac_cv_type_pid_t=yes
22715 else
22716 echo "$as_me: failed program was:" >&5
22717 sed 's/^/| /' conftest.$ac_ext >&5
22719 ac_cv_type_pid_t=no
22722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22724 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22725 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22726 if test $ac_cv_type_pid_t = yes; then
22728 else
22730 cat >>confdefs.h <<_ACEOF
22731 #define pid_t int
22732 _ACEOF
22737 # Checks for headers/macros for byte swapping
22738 # Known variants:
22739 # <byteswap.h> bswap_16, bswap_32, bswap_64 (glibc)
22740 # <sys/endian.h> __swap16, __swap32, __swap64 (OpenBSD)
22741 # <sys/endian.h> bswap16, bswap32, bswap64 (other BSD's)
22742 # and a fallback to local macros if none of the above are found
22744 # if <byteswap.h> is found, assume it's the correct version
22746 for ac_header in byteswap.h
22748 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22750 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22753 echo $ECHO_N "(cached) $ECHO_C" >&6
22755 ac_res=`eval echo '${'$as_ac_Header'}'`
22756 { echo "$as_me:$LINENO: result: $ac_res" >&5
22757 echo "${ECHO_T}$ac_res" >&6; }
22758 else
22759 # Is the header compilable?
22760 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22761 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22762 cat >conftest.$ac_ext <<_ACEOF
22763 /* confdefs.h. */
22764 _ACEOF
22765 cat confdefs.h >>conftest.$ac_ext
22766 cat >>conftest.$ac_ext <<_ACEOF
22767 /* end confdefs.h. */
22768 $ac_includes_default
22769 #include <$ac_header>
22770 _ACEOF
22771 rm -f conftest.$ac_objext
22772 if { (ac_try="$ac_compile"
22773 case "(($ac_try" in
22774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22775 *) ac_try_echo=$ac_try;;
22776 esac
22777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22778 (eval "$ac_compile") 2>conftest.er1
22779 ac_status=$?
22780 grep -v '^ *+' conftest.er1 >conftest.err
22781 rm -f conftest.er1
22782 cat conftest.err >&5
22783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784 (exit $ac_status); } && {
22785 test -z "$ac_c_werror_flag" ||
22786 test ! -s conftest.err
22787 } && test -s conftest.$ac_objext; then
22788 ac_header_compiler=yes
22789 else
22790 echo "$as_me: failed program was:" >&5
22791 sed 's/^/| /' conftest.$ac_ext >&5
22793 ac_header_compiler=no
22796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22797 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22798 echo "${ECHO_T}$ac_header_compiler" >&6; }
22800 # Is the header present?
22801 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22803 cat >conftest.$ac_ext <<_ACEOF
22804 /* confdefs.h. */
22805 _ACEOF
22806 cat confdefs.h >>conftest.$ac_ext
22807 cat >>conftest.$ac_ext <<_ACEOF
22808 /* end confdefs.h. */
22809 #include <$ac_header>
22810 _ACEOF
22811 if { (ac_try="$ac_cpp conftest.$ac_ext"
22812 case "(($ac_try" in
22813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22814 *) ac_try_echo=$ac_try;;
22815 esac
22816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22818 ac_status=$?
22819 grep -v '^ *+' conftest.er1 >conftest.err
22820 rm -f conftest.er1
22821 cat conftest.err >&5
22822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22823 (exit $ac_status); } >/dev/null && {
22824 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22825 test ! -s conftest.err
22826 }; then
22827 ac_header_preproc=yes
22828 else
22829 echo "$as_me: failed program was:" >&5
22830 sed 's/^/| /' conftest.$ac_ext >&5
22832 ac_header_preproc=no
22835 rm -f conftest.err conftest.$ac_ext
22836 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22837 echo "${ECHO_T}$ac_header_preproc" >&6; }
22839 # So? What about this header?
22840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22841 yes:no: )
22842 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22843 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22845 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22846 ac_header_preproc=yes
22848 no:yes:* )
22849 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22850 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22851 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22852 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22853 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22854 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22855 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22856 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22858 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22859 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22860 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22861 ( cat <<\_ASBOX
22862 ## ---------------------------------------------------------------------- ##
22863 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
22864 ## ---------------------------------------------------------------------- ##
22865 _ASBOX
22866 ) | sed "s/^/$as_me: WARNING: /" >&2
22868 esac
22869 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22872 echo $ECHO_N "(cached) $ECHO_C" >&6
22873 else
22874 eval "$as_ac_Header=\$ac_header_preproc"
22876 ac_res=`eval echo '${'$as_ac_Header'}'`
22877 { echo "$as_me:$LINENO: result: $ac_res" >&5
22878 echo "${ECHO_T}$ac_res" >&6; }
22881 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22882 cat >>confdefs.h <<_ACEOF
22883 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22884 _ACEOF
22888 done
22891 # if <sys/endian.h> is found, have to check which version
22892 if test "${ac_cv_header_sys_endian_h+set}" = set; then
22893 { echo "$as_me:$LINENO: checking for sys/endian.h" >&5
22894 echo $ECHO_N "checking for sys/endian.h... $ECHO_C" >&6; }
22895 if test "${ac_cv_header_sys_endian_h+set}" = set; then
22896 echo $ECHO_N "(cached) $ECHO_C" >&6
22898 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_endian_h" >&5
22899 echo "${ECHO_T}$ac_cv_header_sys_endian_h" >&6; }
22900 else
22901 # Is the header compilable?
22902 { echo "$as_me:$LINENO: checking sys/endian.h usability" >&5
22903 echo $ECHO_N "checking sys/endian.h usability... $ECHO_C" >&6; }
22904 cat >conftest.$ac_ext <<_ACEOF
22905 /* confdefs.h. */
22906 _ACEOF
22907 cat confdefs.h >>conftest.$ac_ext
22908 cat >>conftest.$ac_ext <<_ACEOF
22909 /* end confdefs.h. */
22910 $ac_includes_default
22911 #include <sys/endian.h>
22912 _ACEOF
22913 rm -f conftest.$ac_objext
22914 if { (ac_try="$ac_compile"
22915 case "(($ac_try" in
22916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22917 *) ac_try_echo=$ac_try;;
22918 esac
22919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22920 (eval "$ac_compile") 2>conftest.er1
22921 ac_status=$?
22922 grep -v '^ *+' conftest.er1 >conftest.err
22923 rm -f conftest.er1
22924 cat conftest.err >&5
22925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22926 (exit $ac_status); } && {
22927 test -z "$ac_c_werror_flag" ||
22928 test ! -s conftest.err
22929 } && test -s conftest.$ac_objext; then
22930 ac_header_compiler=yes
22931 else
22932 echo "$as_me: failed program was:" >&5
22933 sed 's/^/| /' conftest.$ac_ext >&5
22935 ac_header_compiler=no
22938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22939 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22940 echo "${ECHO_T}$ac_header_compiler" >&6; }
22942 # Is the header present?
22943 { echo "$as_me:$LINENO: checking sys/endian.h presence" >&5
22944 echo $ECHO_N "checking sys/endian.h presence... $ECHO_C" >&6; }
22945 cat >conftest.$ac_ext <<_ACEOF
22946 /* confdefs.h. */
22947 _ACEOF
22948 cat confdefs.h >>conftest.$ac_ext
22949 cat >>conftest.$ac_ext <<_ACEOF
22950 /* end confdefs.h. */
22951 #include <sys/endian.h>
22952 _ACEOF
22953 if { (ac_try="$ac_cpp conftest.$ac_ext"
22954 case "(($ac_try" in
22955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22956 *) ac_try_echo=$ac_try;;
22957 esac
22958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22960 ac_status=$?
22961 grep -v '^ *+' conftest.er1 >conftest.err
22962 rm -f conftest.er1
22963 cat conftest.err >&5
22964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22965 (exit $ac_status); } >/dev/null && {
22966 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22967 test ! -s conftest.err
22968 }; then
22969 ac_header_preproc=yes
22970 else
22971 echo "$as_me: failed program was:" >&5
22972 sed 's/^/| /' conftest.$ac_ext >&5
22974 ac_header_preproc=no
22977 rm -f conftest.err conftest.$ac_ext
22978 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22979 echo "${ECHO_T}$ac_header_preproc" >&6; }
22981 # So? What about this header?
22982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22983 yes:no: )
22984 { echo "$as_me:$LINENO: WARNING: sys/endian.h: accepted by the compiler, rejected by the preprocessor!" >&5
22985 echo "$as_me: WARNING: sys/endian.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22986 { echo "$as_me:$LINENO: WARNING: sys/endian.h: proceeding with the compiler's result" >&5
22987 echo "$as_me: WARNING: sys/endian.h: proceeding with the compiler's result" >&2;}
22988 ac_header_preproc=yes
22990 no:yes:* )
22991 { echo "$as_me:$LINENO: WARNING: sys/endian.h: present but cannot be compiled" >&5
22992 echo "$as_me: WARNING: sys/endian.h: present but cannot be compiled" >&2;}
22993 { echo "$as_me:$LINENO: WARNING: sys/endian.h: check for missing prerequisite headers?" >&5
22994 echo "$as_me: WARNING: sys/endian.h: check for missing prerequisite headers?" >&2;}
22995 { echo "$as_me:$LINENO: WARNING: sys/endian.h: see the Autoconf documentation" >&5
22996 echo "$as_me: WARNING: sys/endian.h: see the Autoconf documentation" >&2;}
22997 { echo "$as_me:$LINENO: WARNING: sys/endian.h: section \"Present But Cannot Be Compiled\"" >&5
22998 echo "$as_me: WARNING: sys/endian.h: section \"Present But Cannot Be Compiled\"" >&2;}
22999 { echo "$as_me:$LINENO: WARNING: sys/endian.h: proceeding with the preprocessor's result" >&5
23000 echo "$as_me: WARNING: sys/endian.h: proceeding with the preprocessor's result" >&2;}
23001 { echo "$as_me:$LINENO: WARNING: sys/endian.h: in the future, the compiler will take precedence" >&5
23002 echo "$as_me: WARNING: sys/endian.h: in the future, the compiler will take precedence" >&2;}
23003 ( cat <<\_ASBOX
23004 ## ---------------------------------------------------------------------- ##
23005 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
23006 ## ---------------------------------------------------------------------- ##
23007 _ASBOX
23008 ) | sed "s/^/$as_me: WARNING: /" >&2
23010 esac
23011 { echo "$as_me:$LINENO: checking for sys/endian.h" >&5
23012 echo $ECHO_N "checking for sys/endian.h... $ECHO_C" >&6; }
23013 if test "${ac_cv_header_sys_endian_h+set}" = set; then
23014 echo $ECHO_N "(cached) $ECHO_C" >&6
23015 else
23016 ac_cv_header_sys_endian_h=$ac_header_preproc
23018 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_endian_h" >&5
23019 echo "${ECHO_T}$ac_cv_header_sys_endian_h" >&6; }
23022 if test $ac_cv_header_sys_endian_h = yes; then
23023 HAVE_SYS_ENDIAN_H="yes"
23024 else
23025 HAVE_SYS_ENDIAN_H="no"
23030 if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then
23031 { echo "$as_me:$LINENO: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
23032 echo $ECHO_N "checking for __swap16 variant of <sys/endian.h> byteswapping macros... $ECHO_C" >&6; }
23033 cat >conftest.$ac_ext <<_ACEOF
23034 /* confdefs.h. */
23035 _ACEOF
23036 cat confdefs.h >>conftest.$ac_ext
23037 cat >>conftest.$ac_ext <<_ACEOF
23038 /* end confdefs.h. */
23040 #include <sys/endian.h>
23043 main ()
23046 int a = 1, b;
23047 b = __swap16(a);
23050 return 0;
23053 _ACEOF
23054 rm -f conftest.$ac_objext conftest$ac_exeext
23055 if { (ac_try="$ac_link"
23056 case "(($ac_try" in
23057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23058 *) ac_try_echo=$ac_try;;
23059 esac
23060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23061 (eval "$ac_link") 2>conftest.er1
23062 ac_status=$?
23063 grep -v '^ *+' conftest.er1 >conftest.err
23064 rm -f conftest.er1
23065 cat conftest.err >&5
23066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067 (exit $ac_status); } && {
23068 test -z "$ac_c_werror_flag" ||
23069 test ! -s conftest.err
23070 } && test -s conftest$ac_exeext &&
23071 $as_test_x conftest$ac_exeext; then
23072 SYS_ENDIAN__SWAP='yes'
23073 else
23074 echo "$as_me: failed program was:" >&5
23075 sed 's/^/| /' conftest.$ac_ext >&5
23077 SYS_ENDIAN__SWAP='no'
23080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23081 conftest$ac_exeext conftest.$ac_ext
23082 { echo "$as_me:$LINENO: result: $SYS_ENDIAN__SWAP" >&5
23083 echo "${ECHO_T}$SYS_ENDIAN__SWAP" >&6; }
23085 { echo "$as_me:$LINENO: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
23086 echo $ECHO_N "checking for bswap16 variant of <sys/endian.h> byteswapping macros... $ECHO_C" >&6; }
23087 cat >conftest.$ac_ext <<_ACEOF
23088 /* confdefs.h. */
23089 _ACEOF
23090 cat confdefs.h >>conftest.$ac_ext
23091 cat >>conftest.$ac_ext <<_ACEOF
23092 /* end confdefs.h. */
23094 #include <sys/endian.h>
23097 main ()
23100 int a = 1, b;
23101 b = bswap16(a);
23104 return 0;
23107 _ACEOF
23108 rm -f conftest.$ac_objext conftest$ac_exeext
23109 if { (ac_try="$ac_link"
23110 case "(($ac_try" in
23111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23112 *) ac_try_echo=$ac_try;;
23113 esac
23114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23115 (eval "$ac_link") 2>conftest.er1
23116 ac_status=$?
23117 grep -v '^ *+' conftest.er1 >conftest.err
23118 rm -f conftest.er1
23119 cat conftest.err >&5
23120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23121 (exit $ac_status); } && {
23122 test -z "$ac_c_werror_flag" ||
23123 test ! -s conftest.err
23124 } && test -s conftest$ac_exeext &&
23125 $as_test_x conftest$ac_exeext; then
23126 SYS_ENDIAN_BSWAP='yes'
23127 else
23128 echo "$as_me: failed program was:" >&5
23129 sed 's/^/| /' conftest.$ac_ext >&5
23131 SYS_ENDIAN_BSWAP='no'
23134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23135 conftest$ac_exeext conftest.$ac_ext
23136 { echo "$as_me:$LINENO: result: $SYS_ENDIAN_BSWAP" >&5
23137 echo "${ECHO_T}$SYS_ENDIAN_BSWAP" >&6; }
23139 if test "$SYS_ENDIAN_BSWAP" = "yes" ; then
23140 USE_SYS_ENDIAN_H=yes
23141 BSWAP=bswap
23142 else
23143 if test "$SYS_ENDIAN__SWAP" = "yes" ; then
23144 USE_SYS_ENDIAN_H=yes
23145 BSWAP=__swap
23146 else
23147 USE_SYS_ENDIAN_H=no
23151 if test "$USE_SYS_ENDIAN_H" = "yes" ; then
23153 cat >>confdefs.h <<\_ACEOF
23154 #define USE_SYS_ENDIAN_H 1
23155 _ACEOF
23158 cat >>confdefs.h <<_ACEOF
23159 #define bswap_16 ${BSWAP}16
23160 _ACEOF
23163 cat >>confdefs.h <<_ACEOF
23164 #define bswap_32 ${BSWAP}32
23165 _ACEOF
23168 cat >>confdefs.h <<_ACEOF
23169 #define bswap_64 ${BSWAP}64
23170 _ACEOF
23176 for ac_func in vprintf
23178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23179 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23181 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23182 echo $ECHO_N "(cached) $ECHO_C" >&6
23183 else
23184 cat >conftest.$ac_ext <<_ACEOF
23185 /* confdefs.h. */
23186 _ACEOF
23187 cat confdefs.h >>conftest.$ac_ext
23188 cat >>conftest.$ac_ext <<_ACEOF
23189 /* end confdefs.h. */
23190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23192 #define $ac_func innocuous_$ac_func
23194 /* System header to define __stub macros and hopefully few prototypes,
23195 which can conflict with char $ac_func (); below.
23196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23197 <limits.h> exists even on freestanding compilers. */
23199 #ifdef __STDC__
23200 # include <limits.h>
23201 #else
23202 # include <assert.h>
23203 #endif
23205 #undef $ac_func
23207 /* Override any GCC internal prototype to avoid an error.
23208 Use char because int might match the return type of a GCC
23209 builtin and then its argument prototype would still apply. */
23210 #ifdef __cplusplus
23211 extern "C"
23212 #endif
23213 char $ac_func ();
23214 /* The GNU C library defines this for functions which it implements
23215 to always fail with ENOSYS. Some functions are actually named
23216 something starting with __ and the normal name is an alias. */
23217 #if defined __stub_$ac_func || defined __stub___$ac_func
23218 choke me
23219 #endif
23222 main ()
23224 return $ac_func ();
23226 return 0;
23228 _ACEOF
23229 rm -f conftest.$ac_objext conftest$ac_exeext
23230 if { (ac_try="$ac_link"
23231 case "(($ac_try" in
23232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23233 *) ac_try_echo=$ac_try;;
23234 esac
23235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23236 (eval "$ac_link") 2>conftest.er1
23237 ac_status=$?
23238 grep -v '^ *+' conftest.er1 >conftest.err
23239 rm -f conftest.er1
23240 cat conftest.err >&5
23241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23242 (exit $ac_status); } && {
23243 test -z "$ac_c_werror_flag" ||
23244 test ! -s conftest.err
23245 } && test -s conftest$ac_exeext &&
23246 $as_test_x conftest$ac_exeext; then
23247 eval "$as_ac_var=yes"
23248 else
23249 echo "$as_me: failed program was:" >&5
23250 sed 's/^/| /' conftest.$ac_ext >&5
23252 eval "$as_ac_var=no"
23255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23256 conftest$ac_exeext conftest.$ac_ext
23258 ac_res=`eval echo '${'$as_ac_var'}'`
23259 { echo "$as_me:$LINENO: result: $ac_res" >&5
23260 echo "${ECHO_T}$ac_res" >&6; }
23261 if test `eval echo '${'$as_ac_var'}'` = yes; then
23262 cat >>confdefs.h <<_ACEOF
23263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23264 _ACEOF
23266 { echo "$as_me:$LINENO: checking for _doprnt" >&5
23267 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
23268 if test "${ac_cv_func__doprnt+set}" = set; then
23269 echo $ECHO_N "(cached) $ECHO_C" >&6
23270 else
23271 cat >conftest.$ac_ext <<_ACEOF
23272 /* confdefs.h. */
23273 _ACEOF
23274 cat confdefs.h >>conftest.$ac_ext
23275 cat >>conftest.$ac_ext <<_ACEOF
23276 /* end confdefs.h. */
23277 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
23278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23279 #define _doprnt innocuous__doprnt
23281 /* System header to define __stub macros and hopefully few prototypes,
23282 which can conflict with char _doprnt (); below.
23283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23284 <limits.h> exists even on freestanding compilers. */
23286 #ifdef __STDC__
23287 # include <limits.h>
23288 #else
23289 # include <assert.h>
23290 #endif
23292 #undef _doprnt
23294 /* Override any GCC internal prototype to avoid an error.
23295 Use char because int might match the return type of a GCC
23296 builtin and then its argument prototype would still apply. */
23297 #ifdef __cplusplus
23298 extern "C"
23299 #endif
23300 char _doprnt ();
23301 /* The GNU C library defines this for functions which it implements
23302 to always fail with ENOSYS. Some functions are actually named
23303 something starting with __ and the normal name is an alias. */
23304 #if defined __stub__doprnt || defined __stub____doprnt
23305 choke me
23306 #endif
23309 main ()
23311 return _doprnt ();
23313 return 0;
23315 _ACEOF
23316 rm -f conftest.$ac_objext conftest$ac_exeext
23317 if { (ac_try="$ac_link"
23318 case "(($ac_try" in
23319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23320 *) ac_try_echo=$ac_try;;
23321 esac
23322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23323 (eval "$ac_link") 2>conftest.er1
23324 ac_status=$?
23325 grep -v '^ *+' conftest.er1 >conftest.err
23326 rm -f conftest.er1
23327 cat conftest.err >&5
23328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23329 (exit $ac_status); } && {
23330 test -z "$ac_c_werror_flag" ||
23331 test ! -s conftest.err
23332 } && test -s conftest$ac_exeext &&
23333 $as_test_x conftest$ac_exeext; then
23334 ac_cv_func__doprnt=yes
23335 else
23336 echo "$as_me: failed program was:" >&5
23337 sed 's/^/| /' conftest.$ac_ext >&5
23339 ac_cv_func__doprnt=no
23342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23343 conftest$ac_exeext conftest.$ac_ext
23345 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
23346 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
23347 if test $ac_cv_func__doprnt = yes; then
23349 cat >>confdefs.h <<\_ACEOF
23350 #define HAVE_DOPRNT 1
23351 _ACEOF
23356 done
23374 for ac_func in geteuid getuid link memmove memset mkstemp strchr strrchr \
23375 strtol getopt getopt_long vsnprintf walkcontext backtrace \
23376 getisax
23378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23379 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23381 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23382 echo $ECHO_N "(cached) $ECHO_C" >&6
23383 else
23384 cat >conftest.$ac_ext <<_ACEOF
23385 /* confdefs.h. */
23386 _ACEOF
23387 cat confdefs.h >>conftest.$ac_ext
23388 cat >>conftest.$ac_ext <<_ACEOF
23389 /* end confdefs.h. */
23390 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23392 #define $ac_func innocuous_$ac_func
23394 /* System header to define __stub macros and hopefully few prototypes,
23395 which can conflict with char $ac_func (); below.
23396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23397 <limits.h> exists even on freestanding compilers. */
23399 #ifdef __STDC__
23400 # include <limits.h>
23401 #else
23402 # include <assert.h>
23403 #endif
23405 #undef $ac_func
23407 /* Override any GCC internal prototype to avoid an error.
23408 Use char because int might match the return type of a GCC
23409 builtin and then its argument prototype would still apply. */
23410 #ifdef __cplusplus
23411 extern "C"
23412 #endif
23413 char $ac_func ();
23414 /* The GNU C library defines this for functions which it implements
23415 to always fail with ENOSYS. Some functions are actually named
23416 something starting with __ and the normal name is an alias. */
23417 #if defined __stub_$ac_func || defined __stub___$ac_func
23418 choke me
23419 #endif
23422 main ()
23424 return $ac_func ();
23426 return 0;
23428 _ACEOF
23429 rm -f conftest.$ac_objext conftest$ac_exeext
23430 if { (ac_try="$ac_link"
23431 case "(($ac_try" in
23432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23433 *) ac_try_echo=$ac_try;;
23434 esac
23435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23436 (eval "$ac_link") 2>conftest.er1
23437 ac_status=$?
23438 grep -v '^ *+' conftest.er1 >conftest.err
23439 rm -f conftest.er1
23440 cat conftest.err >&5
23441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23442 (exit $ac_status); } && {
23443 test -z "$ac_c_werror_flag" ||
23444 test ! -s conftest.err
23445 } && test -s conftest$ac_exeext &&
23446 $as_test_x conftest$ac_exeext; then
23447 eval "$as_ac_var=yes"
23448 else
23449 echo "$as_me: failed program was:" >&5
23450 sed 's/^/| /' conftest.$ac_ext >&5
23452 eval "$as_ac_var=no"
23455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23456 conftest$ac_exeext conftest.$ac_ext
23458 ac_res=`eval echo '${'$as_ac_var'}'`
23459 { echo "$as_me:$LINENO: result: $ac_res" >&5
23460 echo "${ECHO_T}$ac_res" >&6; }
23461 if test `eval echo '${'$as_ac_var'}'` = yes; then
23462 cat >>confdefs.h <<_ACEOF
23463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23464 _ACEOF
23467 done
23469 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23470 # for constant arguments. Useless!
23471 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
23472 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
23473 if test "${ac_cv_working_alloca_h+set}" = set; then
23474 echo $ECHO_N "(cached) $ECHO_C" >&6
23475 else
23476 cat >conftest.$ac_ext <<_ACEOF
23477 /* confdefs.h. */
23478 _ACEOF
23479 cat confdefs.h >>conftest.$ac_ext
23480 cat >>conftest.$ac_ext <<_ACEOF
23481 /* end confdefs.h. */
23482 #include <alloca.h>
23484 main ()
23486 char *p = (char *) alloca (2 * sizeof (int));
23487 if (p) return 0;
23489 return 0;
23491 _ACEOF
23492 rm -f conftest.$ac_objext conftest$ac_exeext
23493 if { (ac_try="$ac_link"
23494 case "(($ac_try" in
23495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23496 *) ac_try_echo=$ac_try;;
23497 esac
23498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23499 (eval "$ac_link") 2>conftest.er1
23500 ac_status=$?
23501 grep -v '^ *+' conftest.er1 >conftest.err
23502 rm -f conftest.er1
23503 cat conftest.err >&5
23504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23505 (exit $ac_status); } && {
23506 test -z "$ac_c_werror_flag" ||
23507 test ! -s conftest.err
23508 } && test -s conftest$ac_exeext &&
23509 $as_test_x conftest$ac_exeext; then
23510 ac_cv_working_alloca_h=yes
23511 else
23512 echo "$as_me: failed program was:" >&5
23513 sed 's/^/| /' conftest.$ac_ext >&5
23515 ac_cv_working_alloca_h=no
23518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23519 conftest$ac_exeext conftest.$ac_ext
23521 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
23522 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
23523 if test $ac_cv_working_alloca_h = yes; then
23525 cat >>confdefs.h <<\_ACEOF
23526 #define HAVE_ALLOCA_H 1
23527 _ACEOF
23531 { echo "$as_me:$LINENO: checking for alloca" >&5
23532 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
23533 if test "${ac_cv_func_alloca_works+set}" = set; then
23534 echo $ECHO_N "(cached) $ECHO_C" >&6
23535 else
23536 cat >conftest.$ac_ext <<_ACEOF
23537 /* confdefs.h. */
23538 _ACEOF
23539 cat confdefs.h >>conftest.$ac_ext
23540 cat >>conftest.$ac_ext <<_ACEOF
23541 /* end confdefs.h. */
23542 #ifdef __GNUC__
23543 # define alloca __builtin_alloca
23544 #else
23545 # ifdef _MSC_VER
23546 # include <malloc.h>
23547 # define alloca _alloca
23548 # else
23549 # ifdef HAVE_ALLOCA_H
23550 # include <alloca.h>
23551 # else
23552 # ifdef _AIX
23553 #pragma alloca
23554 # else
23555 # ifndef alloca /* predefined by HP cc +Olibcalls */
23556 char *alloca ();
23557 # endif
23558 # endif
23559 # endif
23560 # endif
23561 #endif
23564 main ()
23566 char *p = (char *) alloca (1);
23567 if (p) return 0;
23569 return 0;
23571 _ACEOF
23572 rm -f conftest.$ac_objext conftest$ac_exeext
23573 if { (ac_try="$ac_link"
23574 case "(($ac_try" in
23575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23576 *) ac_try_echo=$ac_try;;
23577 esac
23578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23579 (eval "$ac_link") 2>conftest.er1
23580 ac_status=$?
23581 grep -v '^ *+' conftest.er1 >conftest.err
23582 rm -f conftest.er1
23583 cat conftest.err >&5
23584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585 (exit $ac_status); } && {
23586 test -z "$ac_c_werror_flag" ||
23587 test ! -s conftest.err
23588 } && test -s conftest$ac_exeext &&
23589 $as_test_x conftest$ac_exeext; then
23590 ac_cv_func_alloca_works=yes
23591 else
23592 echo "$as_me: failed program was:" >&5
23593 sed 's/^/| /' conftest.$ac_ext >&5
23595 ac_cv_func_alloca_works=no
23598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23599 conftest$ac_exeext conftest.$ac_ext
23601 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
23602 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
23604 if test $ac_cv_func_alloca_works = yes; then
23606 cat >>confdefs.h <<\_ACEOF
23607 #define HAVE_ALLOCA 1
23608 _ACEOF
23610 else
23611 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
23612 # that cause trouble. Some versions do not even contain alloca or
23613 # contain a buggy version. If you still want to use their alloca,
23614 # use ar to extract alloca.o from them instead of compiling alloca.c.
23616 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
23618 cat >>confdefs.h <<\_ACEOF
23619 #define C_ALLOCA 1
23620 _ACEOF
23623 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
23624 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
23625 if test "${ac_cv_os_cray+set}" = set; then
23626 echo $ECHO_N "(cached) $ECHO_C" >&6
23627 else
23628 cat >conftest.$ac_ext <<_ACEOF
23629 /* confdefs.h. */
23630 _ACEOF
23631 cat confdefs.h >>conftest.$ac_ext
23632 cat >>conftest.$ac_ext <<_ACEOF
23633 /* end confdefs.h. */
23634 #if defined CRAY && ! defined CRAY2
23635 webecray
23636 #else
23637 wenotbecray
23638 #endif
23640 _ACEOF
23641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23642 $EGREP "webecray" >/dev/null 2>&1; then
23643 ac_cv_os_cray=yes
23644 else
23645 ac_cv_os_cray=no
23647 rm -f conftest*
23650 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
23651 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
23652 if test $ac_cv_os_cray = yes; then
23653 for ac_func in _getb67 GETB67 getb67; do
23654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23655 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23657 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23658 echo $ECHO_N "(cached) $ECHO_C" >&6
23659 else
23660 cat >conftest.$ac_ext <<_ACEOF
23661 /* confdefs.h. */
23662 _ACEOF
23663 cat confdefs.h >>conftest.$ac_ext
23664 cat >>conftest.$ac_ext <<_ACEOF
23665 /* end confdefs.h. */
23666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23668 #define $ac_func innocuous_$ac_func
23670 /* System header to define __stub macros and hopefully few prototypes,
23671 which can conflict with char $ac_func (); below.
23672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23673 <limits.h> exists even on freestanding compilers. */
23675 #ifdef __STDC__
23676 # include <limits.h>
23677 #else
23678 # include <assert.h>
23679 #endif
23681 #undef $ac_func
23683 /* Override any GCC internal prototype to avoid an error.
23684 Use char because int might match the return type of a GCC
23685 builtin and then its argument prototype would still apply. */
23686 #ifdef __cplusplus
23687 extern "C"
23688 #endif
23689 char $ac_func ();
23690 /* The GNU C library defines this for functions which it implements
23691 to always fail with ENOSYS. Some functions are actually named
23692 something starting with __ and the normal name is an alias. */
23693 #if defined __stub_$ac_func || defined __stub___$ac_func
23694 choke me
23695 #endif
23698 main ()
23700 return $ac_func ();
23702 return 0;
23704 _ACEOF
23705 rm -f conftest.$ac_objext conftest$ac_exeext
23706 if { (ac_try="$ac_link"
23707 case "(($ac_try" in
23708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23709 *) ac_try_echo=$ac_try;;
23710 esac
23711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23712 (eval "$ac_link") 2>conftest.er1
23713 ac_status=$?
23714 grep -v '^ *+' conftest.er1 >conftest.err
23715 rm -f conftest.er1
23716 cat conftest.err >&5
23717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718 (exit $ac_status); } && {
23719 test -z "$ac_c_werror_flag" ||
23720 test ! -s conftest.err
23721 } && test -s conftest$ac_exeext &&
23722 $as_test_x conftest$ac_exeext; then
23723 eval "$as_ac_var=yes"
23724 else
23725 echo "$as_me: failed program was:" >&5
23726 sed 's/^/| /' conftest.$ac_ext >&5
23728 eval "$as_ac_var=no"
23731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23732 conftest$ac_exeext conftest.$ac_ext
23734 ac_res=`eval echo '${'$as_ac_var'}'`
23735 { echo "$as_me:$LINENO: result: $ac_res" >&5
23736 echo "${ECHO_T}$ac_res" >&6; }
23737 if test `eval echo '${'$as_ac_var'}'` = yes; then
23739 cat >>confdefs.h <<_ACEOF
23740 #define CRAY_STACKSEG_END $ac_func
23741 _ACEOF
23743 break
23746 done
23749 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
23750 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
23751 if test "${ac_cv_c_stack_direction+set}" = set; then
23752 echo $ECHO_N "(cached) $ECHO_C" >&6
23753 else
23754 if test "$cross_compiling" = yes; then
23755 ac_cv_c_stack_direction=0
23756 else
23757 cat >conftest.$ac_ext <<_ACEOF
23758 /* confdefs.h. */
23759 _ACEOF
23760 cat confdefs.h >>conftest.$ac_ext
23761 cat >>conftest.$ac_ext <<_ACEOF
23762 /* end confdefs.h. */
23763 $ac_includes_default
23765 find_stack_direction ()
23767 static char *addr = 0;
23768 auto char dummy;
23769 if (addr == 0)
23771 addr = &dummy;
23772 return find_stack_direction ();
23774 else
23775 return (&dummy > addr) ? 1 : -1;
23779 main ()
23781 return find_stack_direction () < 0;
23783 _ACEOF
23784 rm -f conftest$ac_exeext
23785 if { (ac_try="$ac_link"
23786 case "(($ac_try" in
23787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23788 *) ac_try_echo=$ac_try;;
23789 esac
23790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23791 (eval "$ac_link") 2>&5
23792 ac_status=$?
23793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23795 { (case "(($ac_try" in
23796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23797 *) ac_try_echo=$ac_try;;
23798 esac
23799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23800 (eval "$ac_try") 2>&5
23801 ac_status=$?
23802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23803 (exit $ac_status); }; }; then
23804 ac_cv_c_stack_direction=1
23805 else
23806 echo "$as_me: program exited with status $ac_status" >&5
23807 echo "$as_me: failed program was:" >&5
23808 sed 's/^/| /' conftest.$ac_ext >&5
23810 ( exit $ac_status )
23811 ac_cv_c_stack_direction=-1
23813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23818 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23819 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
23821 cat >>confdefs.h <<_ACEOF
23822 #define STACK_DIRECTION $ac_cv_c_stack_direction
23823 _ACEOF
23828 { echo "$as_me:$LINENO: checking for getdtablesize" >&5
23829 echo $ECHO_N "checking for getdtablesize... $ECHO_C" >&6; }
23830 if test "${ac_cv_func_getdtablesize+set}" = set; then
23831 echo $ECHO_N "(cached) $ECHO_C" >&6
23832 else
23833 cat >conftest.$ac_ext <<_ACEOF
23834 /* confdefs.h. */
23835 _ACEOF
23836 cat confdefs.h >>conftest.$ac_ext
23837 cat >>conftest.$ac_ext <<_ACEOF
23838 /* end confdefs.h. */
23839 /* Define getdtablesize to an innocuous variant, in case <limits.h> declares getdtablesize.
23840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23841 #define getdtablesize innocuous_getdtablesize
23843 /* System header to define __stub macros and hopefully few prototypes,
23844 which can conflict with char getdtablesize (); below.
23845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23846 <limits.h> exists even on freestanding compilers. */
23848 #ifdef __STDC__
23849 # include <limits.h>
23850 #else
23851 # include <assert.h>
23852 #endif
23854 #undef getdtablesize
23856 /* Override any GCC internal prototype to avoid an error.
23857 Use char because int might match the return type of a GCC
23858 builtin and then its argument prototype would still apply. */
23859 #ifdef __cplusplus
23860 extern "C"
23861 #endif
23862 char getdtablesize ();
23863 /* The GNU C library defines this for functions which it implements
23864 to always fail with ENOSYS. Some functions are actually named
23865 something starting with __ and the normal name is an alias. */
23866 #if defined __stub_getdtablesize || defined __stub___getdtablesize
23867 choke me
23868 #endif
23871 main ()
23873 return getdtablesize ();
23875 return 0;
23877 _ACEOF
23878 rm -f conftest.$ac_objext conftest$ac_exeext
23879 if { (ac_try="$ac_link"
23880 case "(($ac_try" in
23881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23882 *) ac_try_echo=$ac_try;;
23883 esac
23884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23885 (eval "$ac_link") 2>conftest.er1
23886 ac_status=$?
23887 grep -v '^ *+' conftest.er1 >conftest.err
23888 rm -f conftest.er1
23889 cat conftest.err >&5
23890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891 (exit $ac_status); } && {
23892 test -z "$ac_c_werror_flag" ||
23893 test ! -s conftest.err
23894 } && test -s conftest$ac_exeext &&
23895 $as_test_x conftest$ac_exeext; then
23896 ac_cv_func_getdtablesize=yes
23897 else
23898 echo "$as_me: failed program was:" >&5
23899 sed 's/^/| /' conftest.$ac_ext >&5
23901 ac_cv_func_getdtablesize=no
23904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23905 conftest$ac_exeext conftest.$ac_ext
23907 { echo "$as_me:$LINENO: result: $ac_cv_func_getdtablesize" >&5
23908 echo "${ECHO_T}$ac_cv_func_getdtablesize" >&6; }
23909 if test $ac_cv_func_getdtablesize = yes; then
23911 cat >>confdefs.h <<\_ACEOF
23912 #define HAS_GETDTABLESIZE 1
23913 _ACEOF
23917 { echo "$as_me:$LINENO: checking for getifaddrs" >&5
23918 echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6; }
23919 if test "${ac_cv_func_getifaddrs+set}" = set; then
23920 echo $ECHO_N "(cached) $ECHO_C" >&6
23921 else
23922 cat >conftest.$ac_ext <<_ACEOF
23923 /* confdefs.h. */
23924 _ACEOF
23925 cat confdefs.h >>conftest.$ac_ext
23926 cat >>conftest.$ac_ext <<_ACEOF
23927 /* end confdefs.h. */
23928 /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
23929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23930 #define getifaddrs innocuous_getifaddrs
23932 /* System header to define __stub macros and hopefully few prototypes,
23933 which can conflict with char getifaddrs (); below.
23934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23935 <limits.h> exists even on freestanding compilers. */
23937 #ifdef __STDC__
23938 # include <limits.h>
23939 #else
23940 # include <assert.h>
23941 #endif
23943 #undef getifaddrs
23945 /* Override any GCC internal prototype to avoid an error.
23946 Use char because int might match the return type of a GCC
23947 builtin and then its argument prototype would still apply. */
23948 #ifdef __cplusplus
23949 extern "C"
23950 #endif
23951 char getifaddrs ();
23952 /* The GNU C library defines this for functions which it implements
23953 to always fail with ENOSYS. Some functions are actually named
23954 something starting with __ and the normal name is an alias. */
23955 #if defined __stub_getifaddrs || defined __stub___getifaddrs
23956 choke me
23957 #endif
23960 main ()
23962 return getifaddrs ();
23964 return 0;
23966 _ACEOF
23967 rm -f conftest.$ac_objext conftest$ac_exeext
23968 if { (ac_try="$ac_link"
23969 case "(($ac_try" in
23970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23971 *) ac_try_echo=$ac_try;;
23972 esac
23973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23974 (eval "$ac_link") 2>conftest.er1
23975 ac_status=$?
23976 grep -v '^ *+' conftest.er1 >conftest.err
23977 rm -f conftest.er1
23978 cat conftest.err >&5
23979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980 (exit $ac_status); } && {
23981 test -z "$ac_c_werror_flag" ||
23982 test ! -s conftest.err
23983 } && test -s conftest$ac_exeext &&
23984 $as_test_x conftest$ac_exeext; then
23985 ac_cv_func_getifaddrs=yes
23986 else
23987 echo "$as_me: failed program was:" >&5
23988 sed 's/^/| /' conftest.$ac_ext >&5
23990 ac_cv_func_getifaddrs=no
23993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23994 conftest$ac_exeext conftest.$ac_ext
23996 { echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
23997 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; }
23998 if test $ac_cv_func_getifaddrs = yes; then
24000 cat >>confdefs.h <<\_ACEOF
24001 #define HAS_GETIFADDRS 1
24002 _ACEOF
24006 { echo "$as_me:$LINENO: checking for getpeereid" >&5
24007 echo $ECHO_N "checking for getpeereid... $ECHO_C" >&6; }
24008 if test "${ac_cv_func_getpeereid+set}" = set; then
24009 echo $ECHO_N "(cached) $ECHO_C" >&6
24010 else
24011 cat >conftest.$ac_ext <<_ACEOF
24012 /* confdefs.h. */
24013 _ACEOF
24014 cat confdefs.h >>conftest.$ac_ext
24015 cat >>conftest.$ac_ext <<_ACEOF
24016 /* end confdefs.h. */
24017 /* Define getpeereid to an innocuous variant, in case <limits.h> declares getpeereid.
24018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24019 #define getpeereid innocuous_getpeereid
24021 /* System header to define __stub macros and hopefully few prototypes,
24022 which can conflict with char getpeereid (); below.
24023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24024 <limits.h> exists even on freestanding compilers. */
24026 #ifdef __STDC__
24027 # include <limits.h>
24028 #else
24029 # include <assert.h>
24030 #endif
24032 #undef getpeereid
24034 /* Override any GCC internal prototype to avoid an error.
24035 Use char because int might match the return type of a GCC
24036 builtin and then its argument prototype would still apply. */
24037 #ifdef __cplusplus
24038 extern "C"
24039 #endif
24040 char getpeereid ();
24041 /* The GNU C library defines this for functions which it implements
24042 to always fail with ENOSYS. Some functions are actually named
24043 something starting with __ and the normal name is an alias. */
24044 #if defined __stub_getpeereid || defined __stub___getpeereid
24045 choke me
24046 #endif
24049 main ()
24051 return getpeereid ();
24053 return 0;
24055 _ACEOF
24056 rm -f conftest.$ac_objext conftest$ac_exeext
24057 if { (ac_try="$ac_link"
24058 case "(($ac_try" in
24059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24060 *) ac_try_echo=$ac_try;;
24061 esac
24062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24063 (eval "$ac_link") 2>conftest.er1
24064 ac_status=$?
24065 grep -v '^ *+' conftest.er1 >conftest.err
24066 rm -f conftest.er1
24067 cat conftest.err >&5
24068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24069 (exit $ac_status); } && {
24070 test -z "$ac_c_werror_flag" ||
24071 test ! -s conftest.err
24072 } && test -s conftest$ac_exeext &&
24073 $as_test_x conftest$ac_exeext; then
24074 ac_cv_func_getpeereid=yes
24075 else
24076 echo "$as_me: failed program was:" >&5
24077 sed 's/^/| /' conftest.$ac_ext >&5
24079 ac_cv_func_getpeereid=no
24082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24083 conftest$ac_exeext conftest.$ac_ext
24085 { echo "$as_me:$LINENO: result: $ac_cv_func_getpeereid" >&5
24086 echo "${ECHO_T}$ac_cv_func_getpeereid" >&6; }
24087 if test $ac_cv_func_getpeereid = yes; then
24089 cat >>confdefs.h <<\_ACEOF
24090 #define HAS_GETPEEREID 1
24091 _ACEOF
24095 { echo "$as_me:$LINENO: checking for getpeerucred" >&5
24096 echo $ECHO_N "checking for getpeerucred... $ECHO_C" >&6; }
24097 if test "${ac_cv_func_getpeerucred+set}" = set; then
24098 echo $ECHO_N "(cached) $ECHO_C" >&6
24099 else
24100 cat >conftest.$ac_ext <<_ACEOF
24101 /* confdefs.h. */
24102 _ACEOF
24103 cat confdefs.h >>conftest.$ac_ext
24104 cat >>conftest.$ac_ext <<_ACEOF
24105 /* end confdefs.h. */
24106 /* Define getpeerucred to an innocuous variant, in case <limits.h> declares getpeerucred.
24107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24108 #define getpeerucred innocuous_getpeerucred
24110 /* System header to define __stub macros and hopefully few prototypes,
24111 which can conflict with char getpeerucred (); below.
24112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24113 <limits.h> exists even on freestanding compilers. */
24115 #ifdef __STDC__
24116 # include <limits.h>
24117 #else
24118 # include <assert.h>
24119 #endif
24121 #undef getpeerucred
24123 /* Override any GCC internal prototype to avoid an error.
24124 Use char because int might match the return type of a GCC
24125 builtin and then its argument prototype would still apply. */
24126 #ifdef __cplusplus
24127 extern "C"
24128 #endif
24129 char getpeerucred ();
24130 /* The GNU C library defines this for functions which it implements
24131 to always fail with ENOSYS. Some functions are actually named
24132 something starting with __ and the normal name is an alias. */
24133 #if defined __stub_getpeerucred || defined __stub___getpeerucred
24134 choke me
24135 #endif
24138 main ()
24140 return getpeerucred ();
24142 return 0;
24144 _ACEOF
24145 rm -f conftest.$ac_objext conftest$ac_exeext
24146 if { (ac_try="$ac_link"
24147 case "(($ac_try" in
24148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24149 *) ac_try_echo=$ac_try;;
24150 esac
24151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24152 (eval "$ac_link") 2>conftest.er1
24153 ac_status=$?
24154 grep -v '^ *+' conftest.er1 >conftest.err
24155 rm -f conftest.er1
24156 cat conftest.err >&5
24157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24158 (exit $ac_status); } && {
24159 test -z "$ac_c_werror_flag" ||
24160 test ! -s conftest.err
24161 } && test -s conftest$ac_exeext &&
24162 $as_test_x conftest$ac_exeext; then
24163 ac_cv_func_getpeerucred=yes
24164 else
24165 echo "$as_me: failed program was:" >&5
24166 sed 's/^/| /' conftest.$ac_ext >&5
24168 ac_cv_func_getpeerucred=no
24171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24172 conftest$ac_exeext conftest.$ac_ext
24174 { echo "$as_me:$LINENO: result: $ac_cv_func_getpeerucred" >&5
24175 echo "${ECHO_T}$ac_cv_func_getpeerucred" >&6; }
24176 if test $ac_cv_func_getpeerucred = yes; then
24178 cat >>confdefs.h <<\_ACEOF
24179 #define HAS_GETPEERUCRED 1
24180 _ACEOF
24184 { echo "$as_me:$LINENO: checking for strlcat" >&5
24185 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6; }
24186 if test "${ac_cv_func_strlcat+set}" = set; then
24187 echo $ECHO_N "(cached) $ECHO_C" >&6
24188 else
24189 cat >conftest.$ac_ext <<_ACEOF
24190 /* confdefs.h. */
24191 _ACEOF
24192 cat confdefs.h >>conftest.$ac_ext
24193 cat >>conftest.$ac_ext <<_ACEOF
24194 /* end confdefs.h. */
24195 /* Define strlcat to an innocuous variant, in case <limits.h> declares strlcat.
24196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24197 #define strlcat innocuous_strlcat
24199 /* System header to define __stub macros and hopefully few prototypes,
24200 which can conflict with char strlcat (); below.
24201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24202 <limits.h> exists even on freestanding compilers. */
24204 #ifdef __STDC__
24205 # include <limits.h>
24206 #else
24207 # include <assert.h>
24208 #endif
24210 #undef strlcat
24212 /* Override any GCC internal prototype to avoid an error.
24213 Use char because int might match the return type of a GCC
24214 builtin and then its argument prototype would still apply. */
24215 #ifdef __cplusplus
24216 extern "C"
24217 #endif
24218 char strlcat ();
24219 /* The GNU C library defines this for functions which it implements
24220 to always fail with ENOSYS. Some functions are actually named
24221 something starting with __ and the normal name is an alias. */
24222 #if defined __stub_strlcat || defined __stub___strlcat
24223 choke me
24224 #endif
24227 main ()
24229 return strlcat ();
24231 return 0;
24233 _ACEOF
24234 rm -f conftest.$ac_objext conftest$ac_exeext
24235 if { (ac_try="$ac_link"
24236 case "(($ac_try" in
24237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24238 *) ac_try_echo=$ac_try;;
24239 esac
24240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24241 (eval "$ac_link") 2>conftest.er1
24242 ac_status=$?
24243 grep -v '^ *+' conftest.er1 >conftest.err
24244 rm -f conftest.er1
24245 cat conftest.err >&5
24246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24247 (exit $ac_status); } && {
24248 test -z "$ac_c_werror_flag" ||
24249 test ! -s conftest.err
24250 } && test -s conftest$ac_exeext &&
24251 $as_test_x conftest$ac_exeext; then
24252 ac_cv_func_strlcat=yes
24253 else
24254 echo "$as_me: failed program was:" >&5
24255 sed 's/^/| /' conftest.$ac_ext >&5
24257 ac_cv_func_strlcat=no
24260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24261 conftest$ac_exeext conftest.$ac_ext
24263 { echo "$as_me:$LINENO: result: $ac_cv_func_strlcat" >&5
24264 echo "${ECHO_T}$ac_cv_func_strlcat" >&6; }
24265 if test $ac_cv_func_strlcat = yes; then
24266 HAVE_STRLCAT=yes
24267 else
24268 HAVE_STRLCAT=no
24271 if test x$HAVE_STRLCAT = xno; then
24272 NEED_STRLCAT_TRUE=
24273 NEED_STRLCAT_FALSE='#'
24274 else
24275 NEED_STRLCAT_TRUE='#'
24276 NEED_STRLCAT_FALSE=
24280 if test x$HAVE_VSNPRINTF = xno; then
24281 NEED_VSNPRINTF_TRUE=
24282 NEED_VSNPRINTF_FALSE='#'
24283 else
24284 NEED_VSNPRINTF_TRUE='#'
24285 NEED_VSNPRINTF_FALSE=
24289 { echo "$as_me:$LINENO: checking for mmap" >&5
24290 echo $ECHO_N "checking for mmap... $ECHO_C" >&6; }
24291 if test "${ac_cv_func_mmap+set}" = set; then
24292 echo $ECHO_N "(cached) $ECHO_C" >&6
24293 else
24294 cat >conftest.$ac_ext <<_ACEOF
24295 /* confdefs.h. */
24296 _ACEOF
24297 cat confdefs.h >>conftest.$ac_ext
24298 cat >>conftest.$ac_ext <<_ACEOF
24299 /* end confdefs.h. */
24300 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
24301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24302 #define mmap innocuous_mmap
24304 /* System header to define __stub macros and hopefully few prototypes,
24305 which can conflict with char mmap (); below.
24306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24307 <limits.h> exists even on freestanding compilers. */
24309 #ifdef __STDC__
24310 # include <limits.h>
24311 #else
24312 # include <assert.h>
24313 #endif
24315 #undef mmap
24317 /* Override any GCC internal prototype to avoid an error.
24318 Use char because int might match the return type of a GCC
24319 builtin and then its argument prototype would still apply. */
24320 #ifdef __cplusplus
24321 extern "C"
24322 #endif
24323 char mmap ();
24324 /* The GNU C library defines this for functions which it implements
24325 to always fail with ENOSYS. Some functions are actually named
24326 something starting with __ and the normal name is an alias. */
24327 #if defined __stub_mmap || defined __stub___mmap
24328 choke me
24329 #endif
24332 main ()
24334 return mmap ();
24336 return 0;
24338 _ACEOF
24339 rm -f conftest.$ac_objext conftest$ac_exeext
24340 if { (ac_try="$ac_link"
24341 case "(($ac_try" in
24342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24343 *) ac_try_echo=$ac_try;;
24344 esac
24345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24346 (eval "$ac_link") 2>conftest.er1
24347 ac_status=$?
24348 grep -v '^ *+' conftest.er1 >conftest.err
24349 rm -f conftest.er1
24350 cat conftest.err >&5
24351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24352 (exit $ac_status); } && {
24353 test -z "$ac_c_werror_flag" ||
24354 test ! -s conftest.err
24355 } && test -s conftest$ac_exeext &&
24356 $as_test_x conftest$ac_exeext; then
24357 ac_cv_func_mmap=yes
24358 else
24359 echo "$as_me: failed program was:" >&5
24360 sed 's/^/| /' conftest.$ac_ext >&5
24362 ac_cv_func_mmap=no
24365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24366 conftest$ac_exeext conftest.$ac_ext
24368 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
24369 echo "${ECHO_T}$ac_cv_func_mmap" >&6; }
24370 if test $ac_cv_func_mmap = yes; then
24372 cat >>confdefs.h <<\_ACEOF
24373 #define HAS_MMAP 1
24374 _ACEOF
24380 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
24381 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
24382 if test "${ac_cv_lib_m_sqrt+set}" = set; then
24383 echo $ECHO_N "(cached) $ECHO_C" >&6
24384 else
24385 ac_check_lib_save_LIBS=$LIBS
24386 LIBS="-lm $LIBS"
24387 cat >conftest.$ac_ext <<_ACEOF
24388 /* confdefs.h. */
24389 _ACEOF
24390 cat confdefs.h >>conftest.$ac_ext
24391 cat >>conftest.$ac_ext <<_ACEOF
24392 /* end confdefs.h. */
24394 /* Override any GCC internal prototype to avoid an error.
24395 Use char because int might match the return type of a GCC
24396 builtin and then its argument prototype would still apply. */
24397 #ifdef __cplusplus
24398 extern "C"
24399 #endif
24400 char sqrt ();
24402 main ()
24404 return sqrt ();
24406 return 0;
24408 _ACEOF
24409 rm -f conftest.$ac_objext conftest$ac_exeext
24410 if { (ac_try="$ac_link"
24411 case "(($ac_try" in
24412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24413 *) ac_try_echo=$ac_try;;
24414 esac
24415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24416 (eval "$ac_link") 2>conftest.er1
24417 ac_status=$?
24418 grep -v '^ *+' conftest.er1 >conftest.err
24419 rm -f conftest.er1
24420 cat conftest.err >&5
24421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24422 (exit $ac_status); } && {
24423 test -z "$ac_c_werror_flag" ||
24424 test ! -s conftest.err
24425 } && test -s conftest$ac_exeext &&
24426 $as_test_x conftest$ac_exeext; then
24427 ac_cv_lib_m_sqrt=yes
24428 else
24429 echo "$as_me: failed program was:" >&5
24430 sed 's/^/| /' conftest.$ac_ext >&5
24432 ac_cv_lib_m_sqrt=no
24435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24436 conftest$ac_exeext conftest.$ac_ext
24437 LIBS=$ac_check_lib_save_LIBS
24439 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
24440 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
24441 if test $ac_cv_lib_m_sqrt = yes; then
24442 cat >>confdefs.h <<_ACEOF
24443 #define HAVE_LIBM 1
24444 _ACEOF
24446 LIBS="-lm $LIBS"
24450 { echo "$as_me:$LINENO: checking for cbrt in -lm" >&5
24451 echo $ECHO_N "checking for cbrt in -lm... $ECHO_C" >&6; }
24452 if test "${ac_cv_lib_m_cbrt+set}" = set; then
24453 echo $ECHO_N "(cached) $ECHO_C" >&6
24454 else
24455 ac_check_lib_save_LIBS=$LIBS
24456 LIBS="-lm $LIBS"
24457 cat >conftest.$ac_ext <<_ACEOF
24458 /* confdefs.h. */
24459 _ACEOF
24460 cat confdefs.h >>conftest.$ac_ext
24461 cat >>conftest.$ac_ext <<_ACEOF
24462 /* end confdefs.h. */
24464 /* Override any GCC internal prototype to avoid an error.
24465 Use char because int might match the return type of a GCC
24466 builtin and then its argument prototype would still apply. */
24467 #ifdef __cplusplus
24468 extern "C"
24469 #endif
24470 char cbrt ();
24472 main ()
24474 return cbrt ();
24476 return 0;
24478 _ACEOF
24479 rm -f conftest.$ac_objext conftest$ac_exeext
24480 if { (ac_try="$ac_link"
24481 case "(($ac_try" in
24482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24483 *) ac_try_echo=$ac_try;;
24484 esac
24485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24486 (eval "$ac_link") 2>conftest.er1
24487 ac_status=$?
24488 grep -v '^ *+' conftest.er1 >conftest.err
24489 rm -f conftest.er1
24490 cat conftest.err >&5
24491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492 (exit $ac_status); } && {
24493 test -z "$ac_c_werror_flag" ||
24494 test ! -s conftest.err
24495 } && test -s conftest$ac_exeext &&
24496 $as_test_x conftest$ac_exeext; then
24497 ac_cv_lib_m_cbrt=yes
24498 else
24499 echo "$as_me: failed program was:" >&5
24500 sed 's/^/| /' conftest.$ac_ext >&5
24502 ac_cv_lib_m_cbrt=no
24505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24506 conftest$ac_exeext conftest.$ac_ext
24507 LIBS=$ac_check_lib_save_LIBS
24509 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_cbrt" >&5
24510 echo "${ECHO_T}$ac_cv_lib_m_cbrt" >&6; }
24511 if test $ac_cv_lib_m_cbrt = yes; then
24513 cat >>confdefs.h <<\_ACEOF
24514 #define HAVE_CBRT 1
24515 _ACEOF
24523 for ac_header in ndbm.h dbm.h rpcsvc/dbm.h
24525 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24527 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24530 echo $ECHO_N "(cached) $ECHO_C" >&6
24532 ac_res=`eval echo '${'$as_ac_Header'}'`
24533 { echo "$as_me:$LINENO: result: $ac_res" >&5
24534 echo "${ECHO_T}$ac_res" >&6; }
24535 else
24536 # Is the header compilable?
24537 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24538 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24539 cat >conftest.$ac_ext <<_ACEOF
24540 /* confdefs.h. */
24541 _ACEOF
24542 cat confdefs.h >>conftest.$ac_ext
24543 cat >>conftest.$ac_ext <<_ACEOF
24544 /* end confdefs.h. */
24545 $ac_includes_default
24546 #include <$ac_header>
24547 _ACEOF
24548 rm -f conftest.$ac_objext
24549 if { (ac_try="$ac_compile"
24550 case "(($ac_try" in
24551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24552 *) ac_try_echo=$ac_try;;
24553 esac
24554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24555 (eval "$ac_compile") 2>conftest.er1
24556 ac_status=$?
24557 grep -v '^ *+' conftest.er1 >conftest.err
24558 rm -f conftest.er1
24559 cat conftest.err >&5
24560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24561 (exit $ac_status); } && {
24562 test -z "$ac_c_werror_flag" ||
24563 test ! -s conftest.err
24564 } && test -s conftest.$ac_objext; then
24565 ac_header_compiler=yes
24566 else
24567 echo "$as_me: failed program was:" >&5
24568 sed 's/^/| /' conftest.$ac_ext >&5
24570 ac_header_compiler=no
24573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24574 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24575 echo "${ECHO_T}$ac_header_compiler" >&6; }
24577 # Is the header present?
24578 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24579 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24580 cat >conftest.$ac_ext <<_ACEOF
24581 /* confdefs.h. */
24582 _ACEOF
24583 cat confdefs.h >>conftest.$ac_ext
24584 cat >>conftest.$ac_ext <<_ACEOF
24585 /* end confdefs.h. */
24586 #include <$ac_header>
24587 _ACEOF
24588 if { (ac_try="$ac_cpp conftest.$ac_ext"
24589 case "(($ac_try" in
24590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24591 *) ac_try_echo=$ac_try;;
24592 esac
24593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24595 ac_status=$?
24596 grep -v '^ *+' conftest.er1 >conftest.err
24597 rm -f conftest.er1
24598 cat conftest.err >&5
24599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24600 (exit $ac_status); } >/dev/null && {
24601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24602 test ! -s conftest.err
24603 }; then
24604 ac_header_preproc=yes
24605 else
24606 echo "$as_me: failed program was:" >&5
24607 sed 's/^/| /' conftest.$ac_ext >&5
24609 ac_header_preproc=no
24612 rm -f conftest.err conftest.$ac_ext
24613 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24614 echo "${ECHO_T}$ac_header_preproc" >&6; }
24616 # So? What about this header?
24617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24618 yes:no: )
24619 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24620 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24622 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24623 ac_header_preproc=yes
24625 no:yes:* )
24626 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24627 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24628 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24629 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24630 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24631 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24632 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24633 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24636 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24637 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24638 ( cat <<\_ASBOX
24639 ## ---------------------------------------------------------------------- ##
24640 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
24641 ## ---------------------------------------------------------------------- ##
24642 _ASBOX
24643 ) | sed "s/^/$as_me: WARNING: /" >&2
24645 esac
24646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24649 echo $ECHO_N "(cached) $ECHO_C" >&6
24650 else
24651 eval "$as_ac_Header=\$ac_header_preproc"
24653 ac_res=`eval echo '${'$as_ac_Header'}'`
24654 { echo "$as_me:$LINENO: result: $ac_res" >&5
24655 echo "${ECHO_T}$ac_res" >&6; }
24658 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24659 cat >>confdefs.h <<_ACEOF
24660 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24661 _ACEOF
24665 done
24670 for ac_header in linux/agpgart.h sys/agpio.h
24672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24674 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24677 echo $ECHO_N "(cached) $ECHO_C" >&6
24679 ac_res=`eval echo '${'$as_ac_Header'}'`
24680 { echo "$as_me:$LINENO: result: $ac_res" >&5
24681 echo "${ECHO_T}$ac_res" >&6; }
24682 else
24683 # Is the header compilable?
24684 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24685 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24686 cat >conftest.$ac_ext <<_ACEOF
24687 /* confdefs.h. */
24688 _ACEOF
24689 cat confdefs.h >>conftest.$ac_ext
24690 cat >>conftest.$ac_ext <<_ACEOF
24691 /* end confdefs.h. */
24692 $ac_includes_default
24693 #include <$ac_header>
24694 _ACEOF
24695 rm -f conftest.$ac_objext
24696 if { (ac_try="$ac_compile"
24697 case "(($ac_try" in
24698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24699 *) ac_try_echo=$ac_try;;
24700 esac
24701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24702 (eval "$ac_compile") 2>conftest.er1
24703 ac_status=$?
24704 grep -v '^ *+' conftest.er1 >conftest.err
24705 rm -f conftest.er1
24706 cat conftest.err >&5
24707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24708 (exit $ac_status); } && {
24709 test -z "$ac_c_werror_flag" ||
24710 test ! -s conftest.err
24711 } && test -s conftest.$ac_objext; then
24712 ac_header_compiler=yes
24713 else
24714 echo "$as_me: failed program was:" >&5
24715 sed 's/^/| /' conftest.$ac_ext >&5
24717 ac_header_compiler=no
24720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24721 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24722 echo "${ECHO_T}$ac_header_compiler" >&6; }
24724 # Is the header present?
24725 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24726 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24727 cat >conftest.$ac_ext <<_ACEOF
24728 /* confdefs.h. */
24729 _ACEOF
24730 cat confdefs.h >>conftest.$ac_ext
24731 cat >>conftest.$ac_ext <<_ACEOF
24732 /* end confdefs.h. */
24733 #include <$ac_header>
24734 _ACEOF
24735 if { (ac_try="$ac_cpp conftest.$ac_ext"
24736 case "(($ac_try" in
24737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24738 *) ac_try_echo=$ac_try;;
24739 esac
24740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24741 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24742 ac_status=$?
24743 grep -v '^ *+' conftest.er1 >conftest.err
24744 rm -f conftest.er1
24745 cat conftest.err >&5
24746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24747 (exit $ac_status); } >/dev/null && {
24748 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24749 test ! -s conftest.err
24750 }; then
24751 ac_header_preproc=yes
24752 else
24753 echo "$as_me: failed program was:" >&5
24754 sed 's/^/| /' conftest.$ac_ext >&5
24756 ac_header_preproc=no
24759 rm -f conftest.err conftest.$ac_ext
24760 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24761 echo "${ECHO_T}$ac_header_preproc" >&6; }
24763 # So? What about this header?
24764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24765 yes:no: )
24766 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24767 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24769 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24770 ac_header_preproc=yes
24772 no:yes:* )
24773 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24774 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24775 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24776 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24777 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24778 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24779 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24780 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24783 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24784 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24785 ( cat <<\_ASBOX
24786 ## ---------------------------------------------------------------------- ##
24787 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
24788 ## ---------------------------------------------------------------------- ##
24789 _ASBOX
24790 ) | sed "s/^/$as_me: WARNING: /" >&2
24792 esac
24793 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24796 echo $ECHO_N "(cached) $ECHO_C" >&6
24797 else
24798 eval "$as_ac_Header=\$ac_header_preproc"
24800 ac_res=`eval echo '${'$as_ac_Header'}'`
24801 { echo "$as_me:$LINENO: result: $ac_res" >&5
24802 echo "${ECHO_T}$ac_res" >&6; }
24805 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24806 cat >>confdefs.h <<_ACEOF
24807 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24808 _ACEOF
24809 AGP=yes
24812 done
24814 if test "x$AGP" = xyes; then
24815 AGP_TRUE=
24816 AGP_FALSE='#'
24817 else
24818 AGP_TRUE='#'
24819 AGP_FALSE=
24824 for ac_header in linux/apm_bios.h
24826 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24828 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24831 echo $ECHO_N "(cached) $ECHO_C" >&6
24833 ac_res=`eval echo '${'$as_ac_Header'}'`
24834 { echo "$as_me:$LINENO: result: $ac_res" >&5
24835 echo "${ECHO_T}$ac_res" >&6; }
24836 else
24837 # Is the header compilable?
24838 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24839 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24840 cat >conftest.$ac_ext <<_ACEOF
24841 /* confdefs.h. */
24842 _ACEOF
24843 cat confdefs.h >>conftest.$ac_ext
24844 cat >>conftest.$ac_ext <<_ACEOF
24845 /* end confdefs.h. */
24846 $ac_includes_default
24847 #include <$ac_header>
24848 _ACEOF
24849 rm -f conftest.$ac_objext
24850 if { (ac_try="$ac_compile"
24851 case "(($ac_try" in
24852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24853 *) ac_try_echo=$ac_try;;
24854 esac
24855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24856 (eval "$ac_compile") 2>conftest.er1
24857 ac_status=$?
24858 grep -v '^ *+' conftest.er1 >conftest.err
24859 rm -f conftest.er1
24860 cat conftest.err >&5
24861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24862 (exit $ac_status); } && {
24863 test -z "$ac_c_werror_flag" ||
24864 test ! -s conftest.err
24865 } && test -s conftest.$ac_objext; then
24866 ac_header_compiler=yes
24867 else
24868 echo "$as_me: failed program was:" >&5
24869 sed 's/^/| /' conftest.$ac_ext >&5
24871 ac_header_compiler=no
24874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24875 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24876 echo "${ECHO_T}$ac_header_compiler" >&6; }
24878 # Is the header present?
24879 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24880 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24881 cat >conftest.$ac_ext <<_ACEOF
24882 /* confdefs.h. */
24883 _ACEOF
24884 cat confdefs.h >>conftest.$ac_ext
24885 cat >>conftest.$ac_ext <<_ACEOF
24886 /* end confdefs.h. */
24887 #include <$ac_header>
24888 _ACEOF
24889 if { (ac_try="$ac_cpp conftest.$ac_ext"
24890 case "(($ac_try" in
24891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24892 *) ac_try_echo=$ac_try;;
24893 esac
24894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24896 ac_status=$?
24897 grep -v '^ *+' conftest.er1 >conftest.err
24898 rm -f conftest.er1
24899 cat conftest.err >&5
24900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901 (exit $ac_status); } >/dev/null && {
24902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24903 test ! -s conftest.err
24904 }; then
24905 ac_header_preproc=yes
24906 else
24907 echo "$as_me: failed program was:" >&5
24908 sed 's/^/| /' conftest.$ac_ext >&5
24910 ac_header_preproc=no
24913 rm -f conftest.err conftest.$ac_ext
24914 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24915 echo "${ECHO_T}$ac_header_preproc" >&6; }
24917 # So? What about this header?
24918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24919 yes:no: )
24920 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24921 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24923 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24924 ac_header_preproc=yes
24926 no:yes:* )
24927 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24928 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24929 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24930 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24931 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24932 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24933 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24934 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24937 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24938 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24939 ( cat <<\_ASBOX
24940 ## ---------------------------------------------------------------------- ##
24941 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
24942 ## ---------------------------------------------------------------------- ##
24943 _ASBOX
24944 ) | sed "s/^/$as_me: WARNING: /" >&2
24946 esac
24947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24950 echo $ECHO_N "(cached) $ECHO_C" >&6
24951 else
24952 eval "$as_ac_Header=\$ac_header_preproc"
24954 ac_res=`eval echo '${'$as_ac_Header'}'`
24955 { echo "$as_me:$LINENO: result: $ac_res" >&5
24956 echo "${ECHO_T}$ac_res" >&6; }
24959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24960 cat >>confdefs.h <<_ACEOF
24961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24962 _ACEOF
24963 LNXAPM=yes
24966 done
24968 if test "x$LNXAPM" = xyes; then
24969 LNXAPM_TRUE=
24970 LNXAPM_FALSE='#'
24971 else
24972 LNXAPM_TRUE='#'
24973 LNXAPM_FALSE=
24978 for ac_header in linux/fb.h
24980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24985 echo $ECHO_N "(cached) $ECHO_C" >&6
24987 ac_res=`eval echo '${'$as_ac_Header'}'`
24988 { echo "$as_me:$LINENO: result: $ac_res" >&5
24989 echo "${ECHO_T}$ac_res" >&6; }
24990 else
24991 # Is the header compilable?
24992 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24993 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24994 cat >conftest.$ac_ext <<_ACEOF
24995 /* confdefs.h. */
24996 _ACEOF
24997 cat confdefs.h >>conftest.$ac_ext
24998 cat >>conftest.$ac_ext <<_ACEOF
24999 /* end confdefs.h. */
25000 $ac_includes_default
25001 #include <$ac_header>
25002 _ACEOF
25003 rm -f conftest.$ac_objext
25004 if { (ac_try="$ac_compile"
25005 case "(($ac_try" in
25006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25007 *) ac_try_echo=$ac_try;;
25008 esac
25009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25010 (eval "$ac_compile") 2>conftest.er1
25011 ac_status=$?
25012 grep -v '^ *+' conftest.er1 >conftest.err
25013 rm -f conftest.er1
25014 cat conftest.err >&5
25015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016 (exit $ac_status); } && {
25017 test -z "$ac_c_werror_flag" ||
25018 test ! -s conftest.err
25019 } && test -s conftest.$ac_objext; then
25020 ac_header_compiler=yes
25021 else
25022 echo "$as_me: failed program was:" >&5
25023 sed 's/^/| /' conftest.$ac_ext >&5
25025 ac_header_compiler=no
25028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25029 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25030 echo "${ECHO_T}$ac_header_compiler" >&6; }
25032 # Is the header present?
25033 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25034 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25035 cat >conftest.$ac_ext <<_ACEOF
25036 /* confdefs.h. */
25037 _ACEOF
25038 cat confdefs.h >>conftest.$ac_ext
25039 cat >>conftest.$ac_ext <<_ACEOF
25040 /* end confdefs.h. */
25041 #include <$ac_header>
25042 _ACEOF
25043 if { (ac_try="$ac_cpp conftest.$ac_ext"
25044 case "(($ac_try" in
25045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25046 *) ac_try_echo=$ac_try;;
25047 esac
25048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25050 ac_status=$?
25051 grep -v '^ *+' conftest.er1 >conftest.err
25052 rm -f conftest.er1
25053 cat conftest.err >&5
25054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25055 (exit $ac_status); } >/dev/null && {
25056 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25057 test ! -s conftest.err
25058 }; then
25059 ac_header_preproc=yes
25060 else
25061 echo "$as_me: failed program was:" >&5
25062 sed 's/^/| /' conftest.$ac_ext >&5
25064 ac_header_preproc=no
25067 rm -f conftest.err conftest.$ac_ext
25068 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25069 echo "${ECHO_T}$ac_header_preproc" >&6; }
25071 # So? What about this header?
25072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25073 yes:no: )
25074 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25078 ac_header_preproc=yes
25080 no:yes:* )
25081 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25083 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25084 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25085 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25086 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25087 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25088 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25091 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25092 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25093 ( cat <<\_ASBOX
25094 ## ---------------------------------------------------------------------- ##
25095 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
25096 ## ---------------------------------------------------------------------- ##
25097 _ASBOX
25098 ) | sed "s/^/$as_me: WARNING: /" >&2
25100 esac
25101 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25104 echo $ECHO_N "(cached) $ECHO_C" >&6
25105 else
25106 eval "$as_ac_Header=\$ac_header_preproc"
25108 ac_res=`eval echo '${'$as_ac_Header'}'`
25109 { echo "$as_me:$LINENO: result: $ac_res" >&5
25110 echo "${ECHO_T}$ac_res" >&6; }
25113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25114 cat >>confdefs.h <<_ACEOF
25115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25116 _ACEOF
25117 FBDEV=yes
25120 done
25122 if test "x$FBDEV" = xyes; then
25123 FBDEVHW_TRUE=
25124 FBDEVHW_FALSE='#'
25125 else
25126 FBDEVHW_TRUE='#'
25127 FBDEVHW_FALSE=
25132 for ac_header in asm/mtrr.h
25134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25136 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25139 echo $ECHO_N "(cached) $ECHO_C" >&6
25141 ac_res=`eval echo '${'$as_ac_Header'}'`
25142 { echo "$as_me:$LINENO: result: $ac_res" >&5
25143 echo "${ECHO_T}$ac_res" >&6; }
25144 else
25145 # Is the header compilable?
25146 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25147 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25148 cat >conftest.$ac_ext <<_ACEOF
25149 /* confdefs.h. */
25150 _ACEOF
25151 cat confdefs.h >>conftest.$ac_ext
25152 cat >>conftest.$ac_ext <<_ACEOF
25153 /* end confdefs.h. */
25154 $ac_includes_default
25155 #include <$ac_header>
25156 _ACEOF
25157 rm -f conftest.$ac_objext
25158 if { (ac_try="$ac_compile"
25159 case "(($ac_try" in
25160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25161 *) ac_try_echo=$ac_try;;
25162 esac
25163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25164 (eval "$ac_compile") 2>conftest.er1
25165 ac_status=$?
25166 grep -v '^ *+' conftest.er1 >conftest.err
25167 rm -f conftest.er1
25168 cat conftest.err >&5
25169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25170 (exit $ac_status); } && {
25171 test -z "$ac_c_werror_flag" ||
25172 test ! -s conftest.err
25173 } && test -s conftest.$ac_objext; then
25174 ac_header_compiler=yes
25175 else
25176 echo "$as_me: failed program was:" >&5
25177 sed 's/^/| /' conftest.$ac_ext >&5
25179 ac_header_compiler=no
25182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25183 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25184 echo "${ECHO_T}$ac_header_compiler" >&6; }
25186 # Is the header present?
25187 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25188 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25189 cat >conftest.$ac_ext <<_ACEOF
25190 /* confdefs.h. */
25191 _ACEOF
25192 cat confdefs.h >>conftest.$ac_ext
25193 cat >>conftest.$ac_ext <<_ACEOF
25194 /* end confdefs.h. */
25195 #include <$ac_header>
25196 _ACEOF
25197 if { (ac_try="$ac_cpp conftest.$ac_ext"
25198 case "(($ac_try" in
25199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25200 *) ac_try_echo=$ac_try;;
25201 esac
25202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25204 ac_status=$?
25205 grep -v '^ *+' conftest.er1 >conftest.err
25206 rm -f conftest.er1
25207 cat conftest.err >&5
25208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25209 (exit $ac_status); } >/dev/null && {
25210 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25211 test ! -s conftest.err
25212 }; then
25213 ac_header_preproc=yes
25214 else
25215 echo "$as_me: failed program was:" >&5
25216 sed 's/^/| /' conftest.$ac_ext >&5
25218 ac_header_preproc=no
25221 rm -f conftest.err conftest.$ac_ext
25222 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25223 echo "${ECHO_T}$ac_header_preproc" >&6; }
25225 # So? What about this header?
25226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25227 yes:no: )
25228 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25229 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25231 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25232 ac_header_preproc=yes
25234 no:yes:* )
25235 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25236 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25237 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25238 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25239 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25240 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25241 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25242 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25244 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25245 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25246 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25247 ( cat <<\_ASBOX
25248 ## ---------------------------------------------------------------------- ##
25249 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
25250 ## ---------------------------------------------------------------------- ##
25251 _ASBOX
25252 ) | sed "s/^/$as_me: WARNING: /" >&2
25254 esac
25255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25258 echo $ECHO_N "(cached) $ECHO_C" >&6
25259 else
25260 eval "$as_ac_Header=\$ac_header_preproc"
25262 ac_res=`eval echo '${'$as_ac_Header'}'`
25263 { echo "$as_me:$LINENO: result: $ac_res" >&5
25264 echo "${ECHO_T}$ac_res" >&6; }
25267 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25268 cat >>confdefs.h <<_ACEOF
25269 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25270 _ACEOF
25271 ac_cv_asm_mtrr_h=yes
25274 done
25276 if test "x$ac_cv_asm_mtrr_h" = xyes; then
25277 HAVE_MTRR=yes
25281 for ac_header in sys/memrange.h
25283 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25288 echo $ECHO_N "(cached) $ECHO_C" >&6
25290 ac_res=`eval echo '${'$as_ac_Header'}'`
25291 { echo "$as_me:$LINENO: result: $ac_res" >&5
25292 echo "${ECHO_T}$ac_res" >&6; }
25293 else
25294 # Is the header compilable?
25295 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25296 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25297 cat >conftest.$ac_ext <<_ACEOF
25298 /* confdefs.h. */
25299 _ACEOF
25300 cat confdefs.h >>conftest.$ac_ext
25301 cat >>conftest.$ac_ext <<_ACEOF
25302 /* end confdefs.h. */
25303 $ac_includes_default
25304 #include <$ac_header>
25305 _ACEOF
25306 rm -f conftest.$ac_objext
25307 if { (ac_try="$ac_compile"
25308 case "(($ac_try" in
25309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25310 *) ac_try_echo=$ac_try;;
25311 esac
25312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25313 (eval "$ac_compile") 2>conftest.er1
25314 ac_status=$?
25315 grep -v '^ *+' conftest.er1 >conftest.err
25316 rm -f conftest.er1
25317 cat conftest.err >&5
25318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25319 (exit $ac_status); } && {
25320 test -z "$ac_c_werror_flag" ||
25321 test ! -s conftest.err
25322 } && test -s conftest.$ac_objext; then
25323 ac_header_compiler=yes
25324 else
25325 echo "$as_me: failed program was:" >&5
25326 sed 's/^/| /' conftest.$ac_ext >&5
25328 ac_header_compiler=no
25331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25332 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25333 echo "${ECHO_T}$ac_header_compiler" >&6; }
25335 # Is the header present?
25336 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25337 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25338 cat >conftest.$ac_ext <<_ACEOF
25339 /* confdefs.h. */
25340 _ACEOF
25341 cat confdefs.h >>conftest.$ac_ext
25342 cat >>conftest.$ac_ext <<_ACEOF
25343 /* end confdefs.h. */
25344 #include <$ac_header>
25345 _ACEOF
25346 if { (ac_try="$ac_cpp conftest.$ac_ext"
25347 case "(($ac_try" in
25348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25349 *) ac_try_echo=$ac_try;;
25350 esac
25351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25352 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25353 ac_status=$?
25354 grep -v '^ *+' conftest.er1 >conftest.err
25355 rm -f conftest.er1
25356 cat conftest.err >&5
25357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25358 (exit $ac_status); } >/dev/null && {
25359 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25360 test ! -s conftest.err
25361 }; then
25362 ac_header_preproc=yes
25363 else
25364 echo "$as_me: failed program was:" >&5
25365 sed 's/^/| /' conftest.$ac_ext >&5
25367 ac_header_preproc=no
25370 rm -f conftest.err conftest.$ac_ext
25371 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25372 echo "${ECHO_T}$ac_header_preproc" >&6; }
25374 # So? What about this header?
25375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25376 yes:no: )
25377 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25378 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25380 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25381 ac_header_preproc=yes
25383 no:yes:* )
25384 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25385 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25386 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25387 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25388 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25389 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25390 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25391 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25393 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25394 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25395 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25396 ( cat <<\_ASBOX
25397 ## ---------------------------------------------------------------------- ##
25398 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
25399 ## ---------------------------------------------------------------------- ##
25400 _ASBOX
25401 ) | sed "s/^/$as_me: WARNING: /" >&2
25403 esac
25404 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25407 echo $ECHO_N "(cached) $ECHO_C" >&6
25408 else
25409 eval "$as_ac_Header=\$ac_header_preproc"
25411 ac_res=`eval echo '${'$as_ac_Header'}'`
25412 { echo "$as_me:$LINENO: result: $ac_res" >&5
25413 echo "${ECHO_T}$ac_res" >&6; }
25416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25417 cat >>confdefs.h <<_ACEOF
25418 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25419 _ACEOF
25420 ac_cv_memrange_h=yes
25423 done
25425 if test "x$ac_cv_memrange_h" = xyes; then
25426 HAVE_MTRR=yes
25429 if test "x$HAVE_MTRR" = xyes; then
25431 cat >>confdefs.h <<\_ACEOF
25432 #define HAS_MTRR_SUPPORT 1
25433 _ACEOF
25438 for ac_header in machine/mtrr.h
25440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25442 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25445 echo $ECHO_N "(cached) $ECHO_C" >&6
25447 ac_res=`eval echo '${'$as_ac_Header'}'`
25448 { echo "$as_me:$LINENO: result: $ac_res" >&5
25449 echo "${ECHO_T}$ac_res" >&6; }
25450 else
25451 # Is the header compilable?
25452 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25454 cat >conftest.$ac_ext <<_ACEOF
25455 /* confdefs.h. */
25456 _ACEOF
25457 cat confdefs.h >>conftest.$ac_ext
25458 cat >>conftest.$ac_ext <<_ACEOF
25459 /* end confdefs.h. */
25460 $ac_includes_default
25461 #include <$ac_header>
25462 _ACEOF
25463 rm -f conftest.$ac_objext
25464 if { (ac_try="$ac_compile"
25465 case "(($ac_try" in
25466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25467 *) ac_try_echo=$ac_try;;
25468 esac
25469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25470 (eval "$ac_compile") 2>conftest.er1
25471 ac_status=$?
25472 grep -v '^ *+' conftest.er1 >conftest.err
25473 rm -f conftest.er1
25474 cat conftest.err >&5
25475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476 (exit $ac_status); } && {
25477 test -z "$ac_c_werror_flag" ||
25478 test ! -s conftest.err
25479 } && test -s conftest.$ac_objext; then
25480 ac_header_compiler=yes
25481 else
25482 echo "$as_me: failed program was:" >&5
25483 sed 's/^/| /' conftest.$ac_ext >&5
25485 ac_header_compiler=no
25488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25489 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25490 echo "${ECHO_T}$ac_header_compiler" >&6; }
25492 # Is the header present?
25493 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25494 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25495 cat >conftest.$ac_ext <<_ACEOF
25496 /* confdefs.h. */
25497 _ACEOF
25498 cat confdefs.h >>conftest.$ac_ext
25499 cat >>conftest.$ac_ext <<_ACEOF
25500 /* end confdefs.h. */
25501 #include <$ac_header>
25502 _ACEOF
25503 if { (ac_try="$ac_cpp conftest.$ac_ext"
25504 case "(($ac_try" in
25505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25506 *) ac_try_echo=$ac_try;;
25507 esac
25508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25510 ac_status=$?
25511 grep -v '^ *+' conftest.er1 >conftest.err
25512 rm -f conftest.er1
25513 cat conftest.err >&5
25514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25515 (exit $ac_status); } >/dev/null && {
25516 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25517 test ! -s conftest.err
25518 }; then
25519 ac_header_preproc=yes
25520 else
25521 echo "$as_me: failed program was:" >&5
25522 sed 's/^/| /' conftest.$ac_ext >&5
25524 ac_header_preproc=no
25527 rm -f conftest.err conftest.$ac_ext
25528 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25529 echo "${ECHO_T}$ac_header_preproc" >&6; }
25531 # So? What about this header?
25532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25533 yes:no: )
25534 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25537 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25538 ac_header_preproc=yes
25540 no:yes:* )
25541 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25543 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25544 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25545 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25546 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25547 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25548 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25551 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25552 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25553 ( cat <<\_ASBOX
25554 ## ---------------------------------------------------------------------- ##
25555 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
25556 ## ---------------------------------------------------------------------- ##
25557 _ASBOX
25558 ) | sed "s/^/$as_me: WARNING: /" >&2
25560 esac
25561 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25564 echo $ECHO_N "(cached) $ECHO_C" >&6
25565 else
25566 eval "$as_ac_Header=\$ac_header_preproc"
25568 ac_res=`eval echo '${'$as_ac_Header'}'`
25569 { echo "$as_me:$LINENO: result: $ac_res" >&5
25570 echo "${ECHO_T}$ac_res" >&6; }
25573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25574 cat >>confdefs.h <<_ACEOF
25575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25576 _ACEOF
25577 ac_cv_machine_mtrr_h=yes
25580 done
25582 if test "x$ac_cv_machine_mtrr_h" = xyes; then
25584 cat >>confdefs.h <<\_ACEOF
25585 #define HAS_MTRR_BUILTIN 1
25586 _ACEOF
25591 for ac_header in sys/linker.h
25593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25597 echo $ECHO_N "(cached) $ECHO_C" >&6
25598 else
25599 cat >conftest.$ac_ext <<_ACEOF
25600 /* confdefs.h. */
25601 _ACEOF
25602 cat confdefs.h >>conftest.$ac_ext
25603 cat >>conftest.$ac_ext <<_ACEOF
25604 /* end confdefs.h. */
25605 #include <sys/param.h>
25607 #include <$ac_header>
25608 _ACEOF
25609 rm -f conftest.$ac_objext
25610 if { (ac_try="$ac_compile"
25611 case "(($ac_try" in
25612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25613 *) ac_try_echo=$ac_try;;
25614 esac
25615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25616 (eval "$ac_compile") 2>conftest.er1
25617 ac_status=$?
25618 grep -v '^ *+' conftest.er1 >conftest.err
25619 rm -f conftest.er1
25620 cat conftest.err >&5
25621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25622 (exit $ac_status); } && {
25623 test -z "$ac_c_werror_flag" ||
25624 test ! -s conftest.err
25625 } && test -s conftest.$ac_objext; then
25626 eval "$as_ac_Header=yes"
25627 else
25628 echo "$as_me: failed program was:" >&5
25629 sed 's/^/| /' conftest.$ac_ext >&5
25631 eval "$as_ac_Header=no"
25634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25636 ac_res=`eval echo '${'$as_ac_Header'}'`
25637 { echo "$as_me:$LINENO: result: $ac_res" >&5
25638 echo "${ECHO_T}$ac_res" >&6; }
25639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25640 cat >>confdefs.h <<_ACEOF
25641 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25642 _ACEOF
25643 ac_cv_sys_linker_h=yes
25644 else
25645 ac_cv_sys_linker_h=no
25648 done
25650 if test "x$ac_cv_sys_linker_h" = xyes; then
25651 FREEBSD_KLDLOAD_TRUE=
25652 FREEBSD_KLDLOAD_FALSE='#'
25653 else
25654 FREEBSD_KLDLOAD_TRUE='#'
25655 FREEBSD_KLDLOAD_FALSE=
25659 { echo "$as_me:$LINENO: checking for SYSV IPC" >&5
25660 echo $ECHO_N "checking for SYSV IPC... $ECHO_C" >&6; }
25661 if test "${ac_cv_sysv_ipc+set}" = set; then
25662 echo $ECHO_N "(cached) $ECHO_C" >&6
25663 else
25664 cat >conftest.$ac_ext <<_ACEOF
25665 /* confdefs.h. */
25666 _ACEOF
25667 cat confdefs.h >>conftest.$ac_ext
25668 cat >>conftest.$ac_ext <<_ACEOF
25669 /* end confdefs.h. */
25671 #include <sys/shm.h>
25674 main ()
25678 int id;
25679 id = shmget(IPC_PRIVATE, 512, SHM_W | SHM_R);
25680 if (id < 0) return -1;
25681 return shmctl(id, IPC_RMID, 0);
25684 return 0;
25686 _ACEOF
25687 rm -f conftest.$ac_objext conftest$ac_exeext
25688 if { (ac_try="$ac_link"
25689 case "(($ac_try" in
25690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25691 *) ac_try_echo=$ac_try;;
25692 esac
25693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25694 (eval "$ac_link") 2>conftest.er1
25695 ac_status=$?
25696 grep -v '^ *+' conftest.er1 >conftest.err
25697 rm -f conftest.er1
25698 cat conftest.err >&5
25699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25700 (exit $ac_status); } && {
25701 test -z "$ac_c_werror_flag" ||
25702 test ! -s conftest.err
25703 } && test -s conftest$ac_exeext &&
25704 $as_test_x conftest$ac_exeext; then
25705 ac_cv_sysv_ipc=yes
25706 else
25707 echo "$as_me: failed program was:" >&5
25708 sed 's/^/| /' conftest.$ac_ext >&5
25710 ac_cv_sysv_ipc=no
25713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25714 conftest$ac_exeext conftest.$ac_ext
25716 { echo "$as_me:$LINENO: result: $ac_cv_sysv_ipc" >&5
25717 echo "${ECHO_T}$ac_cv_sysv_ipc" >&6; }
25718 if test "x$ac_cv_sysv_ipc" = xyes; then
25720 cat >>confdefs.h <<\_ACEOF
25721 #define HAVE_SYSV_IPC 1
25722 _ACEOF
25726 if test -c /dev/xf86 ; then
25728 cat >>confdefs.h <<\_ACEOF
25729 #define HAS_APERTURE_DRV 1
25730 _ACEOF
25734 if test "${ac_cv_header_execinfo_h+set}" = set; then
25735 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
25736 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
25737 if test "${ac_cv_header_execinfo_h+set}" = set; then
25738 echo $ECHO_N "(cached) $ECHO_C" >&6
25740 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
25741 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
25742 else
25743 # Is the header compilable?
25744 { echo "$as_me:$LINENO: checking execinfo.h usability" >&5
25745 echo $ECHO_N "checking execinfo.h usability... $ECHO_C" >&6; }
25746 cat >conftest.$ac_ext <<_ACEOF
25747 /* confdefs.h. */
25748 _ACEOF
25749 cat confdefs.h >>conftest.$ac_ext
25750 cat >>conftest.$ac_ext <<_ACEOF
25751 /* end confdefs.h. */
25752 $ac_includes_default
25753 #include <execinfo.h>
25754 _ACEOF
25755 rm -f conftest.$ac_objext
25756 if { (ac_try="$ac_compile"
25757 case "(($ac_try" in
25758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25759 *) ac_try_echo=$ac_try;;
25760 esac
25761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25762 (eval "$ac_compile") 2>conftest.er1
25763 ac_status=$?
25764 grep -v '^ *+' conftest.er1 >conftest.err
25765 rm -f conftest.er1
25766 cat conftest.err >&5
25767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25768 (exit $ac_status); } && {
25769 test -z "$ac_c_werror_flag" ||
25770 test ! -s conftest.err
25771 } && test -s conftest.$ac_objext; then
25772 ac_header_compiler=yes
25773 else
25774 echo "$as_me: failed program was:" >&5
25775 sed 's/^/| /' conftest.$ac_ext >&5
25777 ac_header_compiler=no
25780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25781 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25782 echo "${ECHO_T}$ac_header_compiler" >&6; }
25784 # Is the header present?
25785 { echo "$as_me:$LINENO: checking execinfo.h presence" >&5
25786 echo $ECHO_N "checking execinfo.h presence... $ECHO_C" >&6; }
25787 cat >conftest.$ac_ext <<_ACEOF
25788 /* confdefs.h. */
25789 _ACEOF
25790 cat confdefs.h >>conftest.$ac_ext
25791 cat >>conftest.$ac_ext <<_ACEOF
25792 /* end confdefs.h. */
25793 #include <execinfo.h>
25794 _ACEOF
25795 if { (ac_try="$ac_cpp conftest.$ac_ext"
25796 case "(($ac_try" in
25797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25798 *) ac_try_echo=$ac_try;;
25799 esac
25800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25802 ac_status=$?
25803 grep -v '^ *+' conftest.er1 >conftest.err
25804 rm -f conftest.er1
25805 cat conftest.err >&5
25806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25807 (exit $ac_status); } >/dev/null && {
25808 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25809 test ! -s conftest.err
25810 }; then
25811 ac_header_preproc=yes
25812 else
25813 echo "$as_me: failed program was:" >&5
25814 sed 's/^/| /' conftest.$ac_ext >&5
25816 ac_header_preproc=no
25819 rm -f conftest.err conftest.$ac_ext
25820 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25821 echo "${ECHO_T}$ac_header_preproc" >&6; }
25823 # So? What about this header?
25824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25825 yes:no: )
25826 { echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
25827 echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25828 { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the compiler's result" >&5
25829 echo "$as_me: WARNING: execinfo.h: proceeding with the compiler's result" >&2;}
25830 ac_header_preproc=yes
25832 no:yes:* )
25833 { echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
25834 echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
25835 { echo "$as_me:$LINENO: WARNING: execinfo.h: check for missing prerequisite headers?" >&5
25836 echo "$as_me: WARNING: execinfo.h: check for missing prerequisite headers?" >&2;}
25837 { echo "$as_me:$LINENO: WARNING: execinfo.h: see the Autoconf documentation" >&5
25838 echo "$as_me: WARNING: execinfo.h: see the Autoconf documentation" >&2;}
25839 { echo "$as_me:$LINENO: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&5
25840 echo "$as_me: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
25841 { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
25842 echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
25843 { echo "$as_me:$LINENO: WARNING: execinfo.h: in the future, the compiler will take precedence" >&5
25844 echo "$as_me: WARNING: execinfo.h: in the future, the compiler will take precedence" >&2;}
25845 ( cat <<\_ASBOX
25846 ## ---------------------------------------------------------------------- ##
25847 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
25848 ## ---------------------------------------------------------------------- ##
25849 _ASBOX
25850 ) | sed "s/^/$as_me: WARNING: /" >&2
25852 esac
25853 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
25854 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
25855 if test "${ac_cv_header_execinfo_h+set}" = set; then
25856 echo $ECHO_N "(cached) $ECHO_C" >&6
25857 else
25858 ac_cv_header_execinfo_h=$ac_header_preproc
25860 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
25861 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
25864 if test $ac_cv_header_execinfo_h = yes; then
25866 { echo "$as_me:$LINENO: checking for backtrace in -lc" >&5
25867 echo $ECHO_N "checking for backtrace in -lc... $ECHO_C" >&6; }
25868 if test "${ac_cv_lib_c_backtrace+set}" = set; then
25869 echo $ECHO_N "(cached) $ECHO_C" >&6
25870 else
25871 ac_check_lib_save_LIBS=$LIBS
25872 LIBS="-lc $LIBS"
25873 cat >conftest.$ac_ext <<_ACEOF
25874 /* confdefs.h. */
25875 _ACEOF
25876 cat confdefs.h >>conftest.$ac_ext
25877 cat >>conftest.$ac_ext <<_ACEOF
25878 /* end confdefs.h. */
25880 /* Override any GCC internal prototype to avoid an error.
25881 Use char because int might match the return type of a GCC
25882 builtin and then its argument prototype would still apply. */
25883 #ifdef __cplusplus
25884 extern "C"
25885 #endif
25886 char backtrace ();
25888 main ()
25890 return backtrace ();
25892 return 0;
25894 _ACEOF
25895 rm -f conftest.$ac_objext conftest$ac_exeext
25896 if { (ac_try="$ac_link"
25897 case "(($ac_try" in
25898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25899 *) ac_try_echo=$ac_try;;
25900 esac
25901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25902 (eval "$ac_link") 2>conftest.er1
25903 ac_status=$?
25904 grep -v '^ *+' conftest.er1 >conftest.err
25905 rm -f conftest.er1
25906 cat conftest.err >&5
25907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25908 (exit $ac_status); } && {
25909 test -z "$ac_c_werror_flag" ||
25910 test ! -s conftest.err
25911 } && test -s conftest$ac_exeext &&
25912 $as_test_x conftest$ac_exeext; then
25913 ac_cv_lib_c_backtrace=yes
25914 else
25915 echo "$as_me: failed program was:" >&5
25916 sed 's/^/| /' conftest.$ac_ext >&5
25918 ac_cv_lib_c_backtrace=no
25921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25922 conftest$ac_exeext conftest.$ac_ext
25923 LIBS=$ac_check_lib_save_LIBS
25925 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_backtrace" >&5
25926 echo "${ECHO_T}$ac_cv_lib_c_backtrace" >&6; }
25927 if test $ac_cv_lib_c_backtrace = yes; then
25930 cat >>confdefs.h <<\_ACEOF
25931 #define HAVE_BACKTRACE 1
25932 _ACEOF
25935 cat >>confdefs.h <<\_ACEOF
25936 #define HAVE_EXECINFO_H 1
25937 _ACEOF
25947 DEFAULT_INT10="x86emu"
25948 use_x86_asm="no"
25951 case $host_cpu in
25952 alpha*)
25953 ALPHA_VIDEO=yes
25954 case $host_os in
25955 *netbsd*)
25956 cat >>confdefs.h <<\_ACEOF
25957 #define USE_ALPHA_PIO 1
25958 _ACEOF
25960 esac
25962 arm*)
25963 ARM_VIDEO=yes
25965 i*86)
25966 use_x86_asm="yes"
25967 I386_VIDEO=yes
25968 case $host_os in
25969 darwin*) use_x86_asm="no" ;;
25970 *linux*) DEFAULT_INT10=vm86 ;;
25971 *freebsd*) cat >>confdefs.h <<\_ACEOF
25972 #define USE_DEV_IO 1
25973 _ACEOF
25975 *netbsd*) cat >>confdefs.h <<\_ACEOF
25976 #define USE_I386_IOPL 1
25977 _ACEOF
25979 SYS_LIBS=-li386
25981 *openbsd*) cat >>confdefs.h <<\_ACEOF
25982 #define USE_I386_IOPL 1
25983 _ACEOF
25985 SYS_LIBS=-li386
25987 esac
25989 powerpc*)
25990 PPC_VIDEO=yes
25991 case $host_os in
25992 *freebsd*) DEFAULT_INT10=stub ;;
25993 esac
25995 sparc*)
25996 xorg_loader_sparcmuldiv="yes"
25997 SPARC64_VIDEO=yes
25998 BSD_ARCH_SOURCES="sparc64_video.c ioperm_noop.c"
26000 x86_64*|amd64*)
26001 use_x86_asm="yes"
26002 I386_VIDEO=yes
26003 case $host_os in
26004 darwin*) use_x86_asm="no" ;;
26005 *freebsd*)
26006 cat >>confdefs.h <<\_ACEOF
26007 #define USE_DEV_IO 1
26008 _ACEOF
26010 *netbsd*)
26011 cat >>confdefs.h <<\_ACEOF
26012 #define USE_I386_IOPL 1
26013 _ACEOF
26015 SYS_LIBS=-lx86_64
26017 *openbsd*)
26018 cat >>confdefs.h <<\_ACEOF
26019 #define USE_AMD64_IOPL 1
26020 _ACEOF
26022 SYS_LIBS=-lamd64
26024 esac
26026 esac
26028 if test "x$ALPHA_VIDEO" = xyes; then
26029 ALPHA_VIDEO_TRUE=
26030 ALPHA_VIDEO_FALSE='#'
26031 else
26032 ALPHA_VIDEO_TRUE='#'
26033 ALPHA_VIDEO_FALSE=
26036 if test "x$ARM_VIDEO" = xyes; then
26037 ARM_VIDEO_TRUE=
26038 ARM_VIDEO_FALSE='#'
26039 else
26040 ARM_VIDEO_TRUE='#'
26041 ARM_VIDEO_FALSE=
26044 if test "x$I386_VIDEO" = xyes; then
26045 I386_VIDEO_TRUE=
26046 I386_VIDEO_FALSE='#'
26047 else
26048 I386_VIDEO_TRUE='#'
26049 I386_VIDEO_FALSE=
26052 if test "x$PPC_VIDEO" = xyes; then
26053 PPC_VIDEO_TRUE=
26054 PPC_VIDEO_FALSE='#'
26055 else
26056 PPC_VIDEO_TRUE='#'
26057 PPC_VIDEO_FALSE=
26060 if test "x$SPARC64_VIDEO" = xyes; then
26061 SPARC64_VIDEO_TRUE=
26062 SPARC64_VIDEO_FALSE='#'
26063 else
26064 SPARC64_VIDEO_TRUE='#'
26065 SPARC64_VIDEO_FALSE=
26069 DRI=no
26070 KDRIVE_HW=no
26071 case $host_os in
26072 *freebsd*)
26073 case $host_os in
26074 kfreebsd*-gnu) ;;
26076 cat >>confdefs.h <<\_ACEOF
26077 #define CSRG_BASED 1
26078 _ACEOF
26080 esac
26082 cat >>confdefs.h <<\_ACEOF
26083 #define PCCONS_SUPPORT 1
26084 _ACEOF
26087 cat >>confdefs.h <<\_ACEOF
26088 #define PCVT_SUPPORT 1
26089 _ACEOF
26092 cat >>confdefs.h <<\_ACEOF
26093 #define SYSCONS_SUPPORT 1
26094 _ACEOF
26096 DRI=yes
26098 *netbsd*)
26100 cat >>confdefs.h <<\_ACEOF
26101 #define CSRG_BASED 1
26102 _ACEOF
26105 cat >>confdefs.h <<\_ACEOF
26106 #define PCCONS_SUPPORT 1
26107 _ACEOF
26110 cat >>confdefs.h <<\_ACEOF
26111 #define PCVT_SUPPORT 1
26112 _ACEOF
26115 cat >>confdefs.h <<\_ACEOF
26116 #define WSCONS_SUPPORT 1
26117 _ACEOF
26119 DRI=yes
26121 *openbsd*)
26123 cat >>confdefs.h <<\_ACEOF
26124 #define CSRG_BASED 1
26125 _ACEOF
26128 cat >>confdefs.h <<\_ACEOF
26129 #define PCVT_SUPPORT 1
26130 _ACEOF
26133 cat >>confdefs.h <<\_ACEOF
26134 #define WSCONS_SUPPORT 1
26135 _ACEOF
26138 *linux*)
26139 DRI=yes
26140 KDRIVE_HW=yes
26142 *solaris*)
26143 if test -n "$PKG_CONFIG" && \
26144 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm\"") >&5
26145 ($PKG_CONFIG --exists --print-errors "libdrm") 2>&5
26146 ac_status=$?
26147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26148 (exit $ac_status); }; then
26149 DRI=yes
26150 else
26151 DRI=no
26154 esac
26155 if test "x$KDRIVE_HW" = xyes; then
26156 KDRIVE_HW_TRUE=
26157 KDRIVE_HW_FALSE='#'
26158 else
26159 KDRIVE_HW_TRUE='#'
26160 KDRIVE_HW_FALSE=
26166 # Check whether --with-release-version was given.
26167 if test "${with_release_version+set}" = set; then
26168 withval=$with_release_version; RELEASE_VERSION="$withval"
26169 else
26170 RELEASE_VERSION=""
26173 if test "x$RELEASE_VERSION" != "x"; then
26174 PACKAGE="$PACKAGE-$RELEASE_VERSION"
26175 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
26176 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
26177 echo "$as_me: Building with package name set to $PACKAGE" >&6;}
26180 cat >>confdefs.h <<_ACEOF
26181 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
26182 _ACEOF
26184 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2`
26185 if test "x$PVM" = "x"; then
26186 PVM="0"
26189 cat >>confdefs.h <<_ACEOF
26190 #define PACKAGE_VERSION_MINOR $PVM
26191 _ACEOF
26193 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3`
26194 if test "x$PVP" = "x"; then
26195 PVP="0"
26198 cat >>confdefs.h <<_ACEOF
26199 #define PACKAGE_VERSION_PATCHLEVEL $PVP
26200 _ACEOF
26203 PVMAJOR=`echo $PACKAGE_VERSION | cut -d . -f 1`
26204 PVS=`echo $PACKAGE_VERSION | cut -d . -f 4`
26205 if test "x$PVS" = "x"; then
26206 PVS="0"
26209 VENDOR_RELEASE="((($PVMAJOR) * 10000000) + (($PVM) * 100000) + (($PVP) * 1000) + $PVS)"
26210 VENDOR_MAN_VERSION="Version ${PACKAGE_VERSION}"
26212 VENDOR_NAME="The X.Org Foundation"
26213 VENDOR_NAME_SHORT="X.Org"
26214 RELEASE_DATE="5 September 2007"
26215 VENDOR_WEB="http://wiki.x.org"
26219 # Check whether --enable-werror was given.
26220 if test "${enable_werror+set}" = set; then
26221 enableval=$enable_werror; WERROR=$enableval
26222 else
26223 WERROR=no
26226 # Check whether --enable-debug was given.
26227 if test "${enable_debug+set}" = set; then
26228 enableval=$enable_debug; DEBUGGING=$enableval
26229 else
26230 DEBUGGING=no
26234 # Check whether --with-int10 was given.
26235 if test "${with_int10+set}" = set; then
26236 withval=$with_int10; INT10="$withval"
26237 else
26238 INT10="$DEFAULT_INT10"
26242 # Check whether --with-vendor-name was given.
26243 if test "${with_vendor_name+set}" = set; then
26244 withval=$with_vendor_name; VENDOR_NAME="$withval"
26248 # Check whether --with-vendor-name-short was given.
26249 if test "${with_vendor_name_short+set}" = set; then
26250 withval=$with_vendor_name_short; VENDOR_NAME_SHORT="$withval"
26254 # Check whether --with-vendor-web was given.
26255 if test "${with_vendor_web+set}" = set; then
26256 withval=$with_vendor_web; VENDOR_WEB="$withval"
26260 # Check whether --with-module-dir was given.
26261 if test "${with_module_dir+set}" = set; then
26262 withval=$with_module_dir; moduledir="$withval"
26263 else
26264 moduledir="${libdir}/xorg/modules"
26268 # Check whether --with-log-dir was given.
26269 if test "${with_log_dir+set}" = set; then
26270 withval=$with_log_dir; logdir="$withval"
26271 else
26272 logdir="$localstatedir/log"
26276 # Check whether --with-builder-addr was given.
26277 if test "${with_builder_addr+set}" = set; then
26278 withval=$with_builder_addr; BUILDERADDR="$withval"
26279 else
26280 BUILDERADDR="xorg@lists.freedesktop.org"
26284 # Check whether --with-os-name was given.
26285 if test "${with_os_name+set}" = set; then
26286 withval=$with_os_name; OSNAME="$withval"
26287 else
26288 OSNAME=`uname -srm`
26292 # Check whether --with-os-vendor was given.
26293 if test "${with_os_vendor+set}" = set; then
26294 withval=$with_os_vendor; OSVENDOR="$withval"
26295 else
26296 OSVENDOR=""
26300 # Check whether --with-builderstring was given.
26301 if test "${with_builderstring+set}" = set; then
26302 withval=$with_builderstring; BUILDERSTRING="$withval"
26307 # Check whether --with-fontdir was given.
26308 if test "${with_fontdir+set}" = set; then
26309 withval=$with_fontdir; FONTDIR="$withval"
26310 else
26311 FONTDIR="${libdir}/X11/fonts"
26314 DEFAULT_FONT_PATH="${FONTDIR}/misc/,${FONTDIR}/TTF/,${FONTDIR}/OTF,${FONTDIR}/Type1/,${FONTDIR}/100dpi/,${FONTDIR}/75dpi/"
26316 # Check whether --with-default-font-path was given.
26317 if test "${with_default_font_path+set}" = set; then
26318 withval=$with_default_font_path; FONTPATH="$withval"
26319 else
26320 FONTPATH="${DEFAULT_FONT_PATH}"
26324 # Check whether --with-xkb-path was given.
26325 if test "${with_xkb_path+set}" = set; then
26326 withval=$with_xkb_path; XKBPATH="$withval"
26327 else
26328 XKBPATH="${datadir}/X11/xkb"
26332 # Check whether --with-xkb-output was given.
26333 if test "${with_xkb_output+set}" = set; then
26334 withval=$with_xkb_output; XKBOUTPUT="$withval"
26335 else
26336 XKBOUTPUT="compiled"
26340 # Check whether --with-rgb-path was given.
26341 if test "${with_rgb_path+set}" = set; then
26342 withval=$with_rgb_path; RGBPATH="$withval"
26343 else
26344 RGBPATH="${datadir}/X11/rgb"
26348 # Check whether --with-serverconfig-path was given.
26349 if test "${with_serverconfig_path+set}" = set; then
26350 withval=$with_serverconfig_path; SERVERCONFIG="$withval"
26351 else
26352 SERVERCONFIG="${libdir}/xserver"
26355 APPLE_APPLICATIONS_DIR="${bindir}/Applications"
26357 # Check whether --with-apple-applications-dir was given.
26358 if test "${with_apple_applications_dir+set}" = set; then
26359 withval=$with_apple_applications_dir; APPLE_APPLICATIONS_DIR="${withval}" .
26360 APPLE_APPLICATIONS_DIR="${bindir}/Applications"
26363 # Check whether --enable-builddocs was given.
26364 if test "${enable_builddocs+set}" = set; then
26365 enableval=$enable_builddocs; BUILDDOCS=$enableval
26366 else
26367 BUILDDOCS=no
26370 # Check whether --enable-install-libxf86config was given.
26371 if test "${enable_install_libxf86config+set}" = set; then
26372 enableval=$enable_install_libxf86config; INSTALL_LIBXF86CONFIG=$enableval
26373 else
26374 INSTALL_LIBXF86CONFIG=no
26377 # Check whether --enable-builtin-fonts was given.
26378 if test "${enable_builtin_fonts+set}" = set; then
26379 enableval=$enable_builtin_fonts; BUILTIN_FONTS=$enableval
26380 else
26381 BUILTIN_FONTS=no
26384 # Check whether --enable-null-root-cursor was given.
26385 if test "${enable_null_root_cursor+set}" = set; then
26386 enableval=$enable_null_root_cursor; NULL_ROOT_CURSOR=$enableval
26387 else
26388 NULL_ROOT_CURSOR=no
26393 # Check whether --with-mesa-source was given.
26394 if test "${with_mesa_source+set}" = set; then
26395 withval=$with_mesa_source; MESA_SOURCE="$withval"
26396 else
26397 MESA_SOURCE=""
26401 # Check whether --with-dri-driver-path was given.
26402 if test "${with_dri_driver_path+set}" = set; then
26403 withval=$with_dri_driver_path; DRI_DRIVER_PATH="$withval"
26404 else
26405 DRI_DRIVER_PATH="${libdir}/dri"
26408 # Check whether --enable-aiglx was given.
26409 if test "${enable_aiglx+set}" = set; then
26410 enableval=$enable_aiglx; AIGLX=$enableval
26411 else
26412 AIGLX=yes
26415 # Check whether --enable-glx-tls was given.
26416 if test "${enable_glx_tls+set}" = set; then
26417 enableval=$enable_glx_tls; GLX_USE_TLS=$enableval
26418 else
26419 GLX_USE_TLS=no
26423 # Check whether --enable-composite was given.
26424 if test "${enable_composite+set}" = set; then
26425 enableval=$enable_composite; COMPOSITE=$enableval
26426 else
26427 COMPOSITE=yes
26430 # Check whether --enable-mitshm was given.
26431 if test "${enable_mitshm+set}" = set; then
26432 enableval=$enable_mitshm; MITSHM=$enableval
26433 else
26434 MITSHM=yes
26437 # Check whether --enable-xres was given.
26438 if test "${enable_xres+set}" = set; then
26439 enableval=$enable_xres; RES=$enableval
26440 else
26441 RES=yes
26444 # Check whether --enable-xtrap was given.
26445 if test "${enable_xtrap+set}" = set; then
26446 enableval=$enable_xtrap; XTRAP=$enableval
26447 else
26448 XTRAP=yes
26451 # Check whether --enable-record was given.
26452 if test "${enable_record+set}" = set; then
26453 enableval=$enable_record; RECORD=$enableval
26454 else
26455 RECORD=yes
26458 # Check whether --enable-xv was given.
26459 if test "${enable_xv+set}" = set; then
26460 enableval=$enable_xv; XV=$enableval
26461 else
26462 XV=yes
26465 # Check whether --enable-quartz was given.
26466 if test "${enable_quartz+set}" = set; then
26467 enableval=$enable_quartz; XQUARTZ=$enableval
26468 else
26469 XQUARTZ=auto
26472 # Check whether --enable-xvmc was given.
26473 if test "${enable_xvmc+set}" = set; then
26474 enableval=$enable_xvmc; XVMC=$enableval
26475 else
26476 XVMC=yes
26479 # Check whether --enable-dga was given.
26480 if test "${enable_dga+set}" = set; then
26481 enableval=$enable_dga; DGA=$enableval
26482 else
26483 DGA=auto
26486 # Check whether --enable-screensaver was given.
26487 if test "${enable_screensaver+set}" = set; then
26488 enableval=$enable_screensaver; SCREENSAVER=$enableval
26489 else
26490 SCREENSAVER=yes
26493 # Check whether --enable-xdmcp was given.
26494 if test "${enable_xdmcp+set}" = set; then
26495 enableval=$enable_xdmcp; XDMCP=$enableval
26496 else
26497 XDMCP=auto
26500 # Check whether --enable-xdm-auth-1 was given.
26501 if test "${enable_xdm_auth_1+set}" = set; then
26502 enableval=$enable_xdm_auth_1; XDMAUTH=$enableval
26503 else
26504 XDMAUTH=auto
26507 # Check whether --enable-glx was given.
26508 if test "${enable_glx+set}" = set; then
26509 enableval=$enable_glx; GLX=$enableval
26510 else
26511 GLX=yes
26514 # Check whether --enable-dri was given.
26515 if test "${enable_dri+set}" = set; then
26516 enableval=$enable_dri; DRI=$enableval
26519 # Check whether --enable-xinerama was given.
26520 if test "${enable_xinerama+set}" = set; then
26521 enableval=$enable_xinerama; XINERAMA=$enableval
26522 else
26523 XINERAMA=yes
26526 # Check whether --enable-xf86vidmode was given.
26527 if test "${enable_xf86vidmode+set}" = set; then
26528 enableval=$enable_xf86vidmode; XF86VIDMODE=$enableval
26529 else
26530 XF86VIDMODE=auto
26533 # Check whether --enable-xf86misc was given.
26534 if test "${enable_xf86misc+set}" = set; then
26535 enableval=$enable_xf86misc; XF86MISC=$enableval
26536 else
26537 XF86MISC=auto
26540 # Check whether --enable-xace was given.
26541 if test "${enable_xace+set}" = set; then
26542 enableval=$enable_xace; XACE=$enableval
26543 else
26544 XACE=yes
26547 # Check whether --enable-xcsecurity was given.
26548 if test "${enable_xcsecurity+set}" = set; then
26549 enableval=$enable_xcsecurity; XCSECURITY=$enableval
26550 else
26551 XCSECURITY=$XACE
26554 # Check whether --enable-appgroup was given.
26555 if test "${enable_appgroup+set}" = set; then
26556 enableval=$enable_appgroup; APPGROUP=$enableval
26557 else
26558 APPGROUP=$XCSECURITY
26561 # Check whether --enable-xcalibrate was given.
26562 if test "${enable_xcalibrate+set}" = set; then
26563 enableval=$enable_xcalibrate; XCALIBRATE=$enableval
26564 else
26565 XCALIBRATE=no
26568 # Check whether --enable-tslib was given.
26569 if test "${enable_tslib+set}" = set; then
26570 enableval=$enable_tslib; TSLIB=$enableval
26571 else
26572 TSLIB=no
26575 # Check whether --enable-xevie was given.
26576 if test "${enable_xevie+set}" = set; then
26577 enableval=$enable_xevie; XEVIE=$enableval
26578 else
26579 XEVIE=yes
26582 # Check whether --enable-cup was given.
26583 if test "${enable_cup+set}" = set; then
26584 enableval=$enable_cup; CUP=$enableval
26585 else
26586 CUP=yes
26589 # Check whether --enable-evi was given.
26590 if test "${enable_evi+set}" = set; then
26591 enableval=$enable_evi; EVI=$enableval
26592 else
26593 EVI=yes
26596 # Check whether --enable-multibuffer was given.
26597 if test "${enable_multibuffer+set}" = set; then
26598 enableval=$enable_multibuffer; MULTIBUFFER=$enableval
26599 else
26600 MULTIBUFFER=no
26603 # Check whether --enable-fontcache was given.
26604 if test "${enable_fontcache+set}" = set; then
26605 enableval=$enable_fontcache; FONTCACHE=$enableval
26606 else
26607 FONTCACHE=no
26610 # Check whether --enable-dbe was given.
26611 if test "${enable_dbe+set}" = set; then
26612 enableval=$enable_dbe; DBE=$enableval
26613 else
26614 DBE=yes
26617 # Check whether --enable-xf86bigfont was given.
26618 if test "${enable_xf86bigfont+set}" = set; then
26619 enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval
26620 else
26621 XF86BIGFONT=yes
26624 # Check whether --enable-dpms was given.
26625 if test "${enable_dpms+set}" = set; then
26626 enableval=$enable_dpms; DPMSExtension=$enableval
26627 else
26628 DPMSExtension=yes
26631 # Check whether --enable-config-dbus was given.
26632 if test "${enable_config_dbus+set}" = set; then
26633 enableval=$enable_config_dbus; CONFIG_DBUS_API=$enableval
26634 else
26635 CONFIG_DBUS_API=no
26638 # Check whether --enable-config-hal was given.
26639 if test "${enable_config_hal+set}" = set; then
26640 enableval=$enable_config_hal; CONFIG_HAL=$enableval
26641 else
26642 CONFIG_HAL=auto
26645 # Check whether --enable-xfree86-utils was given.
26646 if test "${enable_xfree86_utils+set}" = set; then
26647 enableval=$enable_xfree86_utils; XF86UTILS=$enableval
26648 else
26649 XF86UTILS=yes
26653 # Check whether --enable-xorg was given.
26654 if test "${enable_xorg+set}" = set; then
26655 enableval=$enable_xorg; XORG=$enableval
26656 else
26657 XORG=auto
26660 # Check whether --enable-dmx was given.
26661 if test "${enable_dmx+set}" = set; then
26662 enableval=$enable_dmx; DMX=$enableval
26663 else
26664 DMX=no
26667 # Check whether --enable-xvfb was given.
26668 if test "${enable_xvfb+set}" = set; then
26669 enableval=$enable_xvfb; XVFB=$enableval
26670 else
26671 XVFB=yes
26674 # Check whether --enable-xnest was given.
26675 if test "${enable_xnest+set}" = set; then
26676 enableval=$enable_xnest; XNEST=$enableval
26677 else
26678 XNEST=auto
26681 # Check whether --enable-xwin was given.
26682 if test "${enable_xwin+set}" = set; then
26683 enableval=$enable_xwin; XWIN=$enableval
26684 else
26685 XWIN=auto
26688 # Check whether --enable-xprint was given.
26689 if test "${enable_xprint+set}" = set; then
26690 enableval=$enable_xprint; XPRINT=$enableval
26691 else
26692 XPRINT=no
26695 # Check whether --enable-xgl was given.
26696 if test "${enable_xgl+set}" = set; then
26697 enableval=$enable_xgl; XGL=$enableval
26698 else
26699 XGL=no
26702 # Check whether --enable-xglx was given.
26703 if test "${enable_xglx+set}" = set; then
26704 enableval=$enable_xglx; XGLX=$enableval
26705 else
26706 XGLX=no
26709 # Check whether --enable-xegl was given.
26710 if test "${enable_xegl+set}" = set; then
26711 enableval=$enable_xegl; XEGL=$enableval
26712 else
26713 XEGL=no
26716 # Check whether --enable-mfb was given.
26717 if test "${enable_mfb+set}" = set; then
26718 enableval=$enable_mfb; MFB=$enableval
26719 else
26720 MFB=$XORG
26723 # Check whether --enable-cfb was given.
26724 if test "${enable_cfb+set}" = set; then
26725 enableval=$enable_cfb; CFB=$enableval
26726 else
26727 CFB=$XORG
26730 # Check whether --enable-afb was given.
26731 if test "${enable_afb+set}" = set; then
26732 enableval=$enable_afb; AFB=$enableval
26733 else
26734 AFB=$XORG
26737 # Check whether --enable-kdrive was given.
26738 if test "${enable_kdrive+set}" = set; then
26739 enableval=$enable_kdrive; KDRIVE=$enableval
26740 else
26741 KDRIVE=no
26744 # Check whether --enable-xephyr was given.
26745 if test "${enable_xephyr+set}" = set; then
26746 enableval=$enable_xephyr; XEPHYR=$enableval
26747 else
26748 XEPHYR=auto
26751 # Check whether --enable-xsdl was given.
26752 if test "${enable_xsdl+set}" = set; then
26753 enableval=$enable_xsdl; XSDL=$enableval
26754 else
26755 XSDL=auto
26758 # Check whether --enable-xfake was given.
26759 if test "${enable_xfake+set}" = set; then
26760 enableval=$enable_xfake; XFAKE=$enableval
26761 else
26762 XFAKE=auto
26765 # Check whether --enable-xfbdev was given.
26766 if test "${enable_xfbdev+set}" = set; then
26767 enableval=$enable_xfbdev; XFBDEV=$enableval
26768 else
26769 XFBDEV=auto
26772 # Check whether --enable-kdrive-vesa was given.
26773 if test "${enable_kdrive_vesa+set}" = set; then
26774 enableval=$enable_kdrive_vesa; KDRIVEVESA=$enableval
26775 else
26776 KDRIVEVESA=auto
26779 # Check whether --enable-freetype was given.
26780 if test "${enable_freetype+set}" = set; then
26781 enableval=$enable_freetype; XP_USE_FREETYPE=$enableval
26782 else
26783 XP_USE_FREETYPE=no
26787 # Check whether --with-freetype-config was given.
26788 if test "${with_freetype_config+set}" = set; then
26789 withval=$with_freetype_config; freetype_config=$withval
26790 else
26791 freetype_config=auto
26796 # Check whether --enable-install-setuid was given.
26797 if test "${enable_install_setuid+set}" = set; then
26798 enableval=$enable_install_setuid; SETUID=$enableval
26799 else
26800 SETUID=auto
26803 { echo "$as_me:$LINENO: checking to see if we can install the Xorg server as root" >&5
26804 echo $ECHO_N "checking to see if we can install the Xorg server as root... $ECHO_C" >&6; }
26805 if test "x$SETUID" = "xauto" ; then
26806 case $host_os in
26807 darwin*) SETUID="no" ;;
26809 case $host_cpu in
26810 sparc) SETUID="no" ;;
26811 *) SETUID="yes" ;;
26812 esac
26813 esac
26814 if test "x$SETUID" = xyes; then
26815 touch testfile
26816 chown root testfile > /dev/null 2>&1 || SETUID="no"
26817 rm -f testfile
26820 { echo "$as_me:$LINENO: result: $SETUID" >&5
26821 echo "${ECHO_T}$SETUID" >&6; }
26822 if test "x$SETUID" = "xyes"; then
26823 INSTALL_SETUID_TRUE=
26824 INSTALL_SETUID_FALSE='#'
26825 else
26826 INSTALL_SETUID_TRUE='#'
26827 INSTALL_SETUID_FALSE=
26833 # Transport selection macro from xtrans.m4
26837 # Check whether --enable-unix-transport was given.
26838 if test "${enable_unix_transport+set}" = set; then
26839 enableval=$enable_unix_transport; UNIXCONN=$enableval
26840 else
26841 UNIXCONN=yes
26844 # Check whether --enable-tcp-transport was given.
26845 if test "${enable_tcp_transport+set}" = set; then
26846 enableval=$enable_tcp_transport; TCPCONN=$enableval
26847 else
26848 TCPCONN=yes
26851 { echo "$as_me:$LINENO: checking if Xtrans should support UNIX socket connections" >&5
26852 echo $ECHO_N "checking if Xtrans should support UNIX socket connections... $ECHO_C" >&6; }
26853 if test "$UNIXCONN" = "yes"; then
26855 cat >>confdefs.h <<\_ACEOF
26856 #define UNIXCONN 1
26857 _ACEOF
26860 { echo "$as_me:$LINENO: result: $UNIXCONN" >&5
26861 echo "${ECHO_T}$UNIXCONN" >&6; }
26862 { echo "$as_me:$LINENO: checking if Xtrans should support TCP socket connections" >&5
26863 echo $ECHO_N "checking if Xtrans should support TCP socket connections... $ECHO_C" >&6; }
26864 { echo "$as_me:$LINENO: result: $TCPCONN" >&5
26865 echo "${ECHO_T}$TCPCONN" >&6; }
26866 if test "$TCPCONN" = "yes"; then
26868 cat >>confdefs.h <<\_ACEOF
26869 #define TCPCONN 1
26870 _ACEOF
26873 # SVR4 hides these in libraries other than libc
26874 { echo "$as_me:$LINENO: checking for library containing socket" >&5
26875 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
26876 if test "${ac_cv_search_socket+set}" = set; then
26877 echo $ECHO_N "(cached) $ECHO_C" >&6
26878 else
26879 ac_func_search_save_LIBS=$LIBS
26880 cat >conftest.$ac_ext <<_ACEOF
26881 /* confdefs.h. */
26882 _ACEOF
26883 cat confdefs.h >>conftest.$ac_ext
26884 cat >>conftest.$ac_ext <<_ACEOF
26885 /* end confdefs.h. */
26887 /* Override any GCC internal prototype to avoid an error.
26888 Use char because int might match the return type of a GCC
26889 builtin and then its argument prototype would still apply. */
26890 #ifdef __cplusplus
26891 extern "C"
26892 #endif
26893 char socket ();
26895 main ()
26897 return socket ();
26899 return 0;
26901 _ACEOF
26902 for ac_lib in '' socket; do
26903 if test -z "$ac_lib"; then
26904 ac_res="none required"
26905 else
26906 ac_res=-l$ac_lib
26907 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26909 rm -f conftest.$ac_objext conftest$ac_exeext
26910 if { (ac_try="$ac_link"
26911 case "(($ac_try" in
26912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26913 *) ac_try_echo=$ac_try;;
26914 esac
26915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26916 (eval "$ac_link") 2>conftest.er1
26917 ac_status=$?
26918 grep -v '^ *+' conftest.er1 >conftest.err
26919 rm -f conftest.er1
26920 cat conftest.err >&5
26921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26922 (exit $ac_status); } && {
26923 test -z "$ac_c_werror_flag" ||
26924 test ! -s conftest.err
26925 } && test -s conftest$ac_exeext &&
26926 $as_test_x conftest$ac_exeext; then
26927 ac_cv_search_socket=$ac_res
26928 else
26929 echo "$as_me: failed program was:" >&5
26930 sed 's/^/| /' conftest.$ac_ext >&5
26935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26936 conftest$ac_exeext
26937 if test "${ac_cv_search_socket+set}" = set; then
26938 break
26940 done
26941 if test "${ac_cv_search_socket+set}" = set; then
26943 else
26944 ac_cv_search_socket=no
26946 rm conftest.$ac_ext
26947 LIBS=$ac_func_search_save_LIBS
26949 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
26950 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
26951 ac_res=$ac_cv_search_socket
26952 if test "$ac_res" != no; then
26953 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26957 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
26958 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
26959 if test "${ac_cv_search_gethostbyname+set}" = set; then
26960 echo $ECHO_N "(cached) $ECHO_C" >&6
26961 else
26962 ac_func_search_save_LIBS=$LIBS
26963 cat >conftest.$ac_ext <<_ACEOF
26964 /* confdefs.h. */
26965 _ACEOF
26966 cat confdefs.h >>conftest.$ac_ext
26967 cat >>conftest.$ac_ext <<_ACEOF
26968 /* end confdefs.h. */
26970 /* Override any GCC internal prototype to avoid an error.
26971 Use char because int might match the return type of a GCC
26972 builtin and then its argument prototype would still apply. */
26973 #ifdef __cplusplus
26974 extern "C"
26975 #endif
26976 char gethostbyname ();
26978 main ()
26980 return gethostbyname ();
26982 return 0;
26984 _ACEOF
26985 for ac_lib in '' nsl; do
26986 if test -z "$ac_lib"; then
26987 ac_res="none required"
26988 else
26989 ac_res=-l$ac_lib
26990 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26992 rm -f conftest.$ac_objext conftest$ac_exeext
26993 if { (ac_try="$ac_link"
26994 case "(($ac_try" in
26995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26996 *) ac_try_echo=$ac_try;;
26997 esac
26998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26999 (eval "$ac_link") 2>conftest.er1
27000 ac_status=$?
27001 grep -v '^ *+' conftest.er1 >conftest.err
27002 rm -f conftest.er1
27003 cat conftest.err >&5
27004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27005 (exit $ac_status); } && {
27006 test -z "$ac_c_werror_flag" ||
27007 test ! -s conftest.err
27008 } && test -s conftest$ac_exeext &&
27009 $as_test_x conftest$ac_exeext; then
27010 ac_cv_search_gethostbyname=$ac_res
27011 else
27012 echo "$as_me: failed program was:" >&5
27013 sed 's/^/| /' conftest.$ac_ext >&5
27018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27019 conftest$ac_exeext
27020 if test "${ac_cv_search_gethostbyname+set}" = set; then
27021 break
27023 done
27024 if test "${ac_cv_search_gethostbyname+set}" = set; then
27026 else
27027 ac_cv_search_gethostbyname=no
27029 rm conftest.$ac_ext
27030 LIBS=$ac_func_search_save_LIBS
27032 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
27033 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
27034 ac_res=$ac_cv_search_gethostbyname
27035 if test "$ac_res" != no; then
27036 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27041 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
27042 # Check whether --enable-ipv6 was given.
27043 if test "${enable_ipv6+set}" = set; then
27044 enableval=$enable_ipv6; IPV6CONN=$enableval
27045 else
27046 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
27047 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
27048 if test "${ac_cv_func_getaddrinfo+set}" = set; then
27049 echo $ECHO_N "(cached) $ECHO_C" >&6
27050 else
27051 cat >conftest.$ac_ext <<_ACEOF
27052 /* confdefs.h. */
27053 _ACEOF
27054 cat confdefs.h >>conftest.$ac_ext
27055 cat >>conftest.$ac_ext <<_ACEOF
27056 /* end confdefs.h. */
27057 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
27058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27059 #define getaddrinfo innocuous_getaddrinfo
27061 /* System header to define __stub macros and hopefully few prototypes,
27062 which can conflict with char getaddrinfo (); below.
27063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27064 <limits.h> exists even on freestanding compilers. */
27066 #ifdef __STDC__
27067 # include <limits.h>
27068 #else
27069 # include <assert.h>
27070 #endif
27072 #undef getaddrinfo
27074 /* Override any GCC internal prototype to avoid an error.
27075 Use char because int might match the return type of a GCC
27076 builtin and then its argument prototype would still apply. */
27077 #ifdef __cplusplus
27078 extern "C"
27079 #endif
27080 char getaddrinfo ();
27081 /* The GNU C library defines this for functions which it implements
27082 to always fail with ENOSYS. Some functions are actually named
27083 something starting with __ and the normal name is an alias. */
27084 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
27085 choke me
27086 #endif
27089 main ()
27091 return getaddrinfo ();
27093 return 0;
27095 _ACEOF
27096 rm -f conftest.$ac_objext conftest$ac_exeext
27097 if { (ac_try="$ac_link"
27098 case "(($ac_try" in
27099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27100 *) ac_try_echo=$ac_try;;
27101 esac
27102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27103 (eval "$ac_link") 2>conftest.er1
27104 ac_status=$?
27105 grep -v '^ *+' conftest.er1 >conftest.err
27106 rm -f conftest.er1
27107 cat conftest.err >&5
27108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27109 (exit $ac_status); } && {
27110 test -z "$ac_c_werror_flag" ||
27111 test ! -s conftest.err
27112 } && test -s conftest$ac_exeext &&
27113 $as_test_x conftest$ac_exeext; then
27114 ac_cv_func_getaddrinfo=yes
27115 else
27116 echo "$as_me: failed program was:" >&5
27117 sed 's/^/| /' conftest.$ac_ext >&5
27119 ac_cv_func_getaddrinfo=no
27122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27123 conftest$ac_exeext conftest.$ac_ext
27125 { echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
27126 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
27127 if test $ac_cv_func_getaddrinfo = yes; then
27128 IPV6CONN=yes
27129 else
27130 IPV6CONN=no
27135 { echo "$as_me:$LINENO: checking if IPv6 support should be built" >&5
27136 echo $ECHO_N "checking if IPv6 support should be built... $ECHO_C" >&6; }
27137 if test "$IPV6CONN" = "yes"; then
27139 cat >>confdefs.h <<\_ACEOF
27140 #define IPv6 1
27141 _ACEOF
27144 { echo "$as_me:$LINENO: result: $IPV6CONN" >&5
27145 echo "${ECHO_T}$IPV6CONN" >&6; }
27147 # 4.3BSD-Reno added a new member to struct sockaddr_in
27148 { echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
27149 echo $ECHO_N "checking for struct sockaddr_in.sin_len... $ECHO_C" >&6; }
27150 if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
27151 echo $ECHO_N "(cached) $ECHO_C" >&6
27152 else
27153 cat >conftest.$ac_ext <<_ACEOF
27154 /* confdefs.h. */
27155 _ACEOF
27156 cat confdefs.h >>conftest.$ac_ext
27157 cat >>conftest.$ac_ext <<_ACEOF
27158 /* end confdefs.h. */
27160 #include <sys/types.h>
27161 #include <sys/socket.h>
27162 #include <netinet/in.h>
27166 main ()
27168 static struct sockaddr_in ac_aggr;
27169 if (ac_aggr.sin_len)
27170 return 0;
27172 return 0;
27174 _ACEOF
27175 rm -f conftest.$ac_objext
27176 if { (ac_try="$ac_compile"
27177 case "(($ac_try" in
27178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27179 *) ac_try_echo=$ac_try;;
27180 esac
27181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27182 (eval "$ac_compile") 2>conftest.er1
27183 ac_status=$?
27184 grep -v '^ *+' conftest.er1 >conftest.err
27185 rm -f conftest.er1
27186 cat conftest.err >&5
27187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27188 (exit $ac_status); } && {
27189 test -z "$ac_c_werror_flag" ||
27190 test ! -s conftest.err
27191 } && test -s conftest.$ac_objext; then
27192 ac_cv_member_struct_sockaddr_in_sin_len=yes
27193 else
27194 echo "$as_me: failed program was:" >&5
27195 sed 's/^/| /' conftest.$ac_ext >&5
27197 cat >conftest.$ac_ext <<_ACEOF
27198 /* confdefs.h. */
27199 _ACEOF
27200 cat confdefs.h >>conftest.$ac_ext
27201 cat >>conftest.$ac_ext <<_ACEOF
27202 /* end confdefs.h. */
27204 #include <sys/types.h>
27205 #include <sys/socket.h>
27206 #include <netinet/in.h>
27210 main ()
27212 static struct sockaddr_in ac_aggr;
27213 if (sizeof ac_aggr.sin_len)
27214 return 0;
27216 return 0;
27218 _ACEOF
27219 rm -f conftest.$ac_objext
27220 if { (ac_try="$ac_compile"
27221 case "(($ac_try" in
27222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27223 *) ac_try_echo=$ac_try;;
27224 esac
27225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27226 (eval "$ac_compile") 2>conftest.er1
27227 ac_status=$?
27228 grep -v '^ *+' conftest.er1 >conftest.err
27229 rm -f conftest.er1
27230 cat conftest.err >&5
27231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27232 (exit $ac_status); } && {
27233 test -z "$ac_c_werror_flag" ||
27234 test ! -s conftest.err
27235 } && test -s conftest.$ac_objext; then
27236 ac_cv_member_struct_sockaddr_in_sin_len=yes
27237 else
27238 echo "$as_me: failed program was:" >&5
27239 sed 's/^/| /' conftest.$ac_ext >&5
27241 ac_cv_member_struct_sockaddr_in_sin_len=no
27244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27249 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
27250 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in_sin_len" >&6; }
27251 if test $ac_cv_member_struct_sockaddr_in_sin_len = yes; then
27253 cat >>confdefs.h <<\_ACEOF
27254 #define BSD44SOCKETS 1
27255 _ACEOF
27261 case $host_os in
27262 solaris*|sco*|sysv4*) localdef="yes" ;;
27263 *) localdef="no" ;;
27264 esac
27265 # Check whether --enable-local-transport was given.
27266 if test "${enable_local_transport+set}" = set; then
27267 enableval=$enable_local_transport; LOCALCONN=$enableval
27268 else
27269 LOCALCONN=$localdef
27272 { echo "$as_me:$LINENO: checking if Xtrans should support os-specific local connections" >&5
27273 echo $ECHO_N "checking if Xtrans should support os-specific local connections... $ECHO_C" >&6; }
27274 { echo "$as_me:$LINENO: result: $LOCALCONN" >&5
27275 echo "${ECHO_T}$LOCALCONN" >&6; }
27276 if test "$LOCALCONN" = "yes"; then
27278 cat >>confdefs.h <<\_ACEOF
27279 #define LOCALCONN 1
27280 _ACEOF
27286 # Secure RPC detection macro from xtrans.m4
27288 # Check whether --enable-secure-rpc was given.
27289 if test "${enable_secure_rpc+set}" = set; then
27290 enableval=$enable_secure_rpc; SECURE_RPC=$enableval
27291 else
27292 SECURE_RPC="try"
27296 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then
27297 FOUND_SECURE_RPC="no"
27300 for ac_func in authdes_seccreate authdes_create
27302 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27303 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27304 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27305 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27306 echo $ECHO_N "(cached) $ECHO_C" >&6
27307 else
27308 cat >conftest.$ac_ext <<_ACEOF
27309 /* confdefs.h. */
27310 _ACEOF
27311 cat confdefs.h >>conftest.$ac_ext
27312 cat >>conftest.$ac_ext <<_ACEOF
27313 /* end confdefs.h. */
27314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27316 #define $ac_func innocuous_$ac_func
27318 /* System header to define __stub macros and hopefully few prototypes,
27319 which can conflict with char $ac_func (); below.
27320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27321 <limits.h> exists even on freestanding compilers. */
27323 #ifdef __STDC__
27324 # include <limits.h>
27325 #else
27326 # include <assert.h>
27327 #endif
27329 #undef $ac_func
27331 /* Override any GCC internal prototype to avoid an error.
27332 Use char because int might match the return type of a GCC
27333 builtin and then its argument prototype would still apply. */
27334 #ifdef __cplusplus
27335 extern "C"
27336 #endif
27337 char $ac_func ();
27338 /* The GNU C library defines this for functions which it implements
27339 to always fail with ENOSYS. Some functions are actually named
27340 something starting with __ and the normal name is an alias. */
27341 #if defined __stub_$ac_func || defined __stub___$ac_func
27342 choke me
27343 #endif
27346 main ()
27348 return $ac_func ();
27350 return 0;
27352 _ACEOF
27353 rm -f conftest.$ac_objext conftest$ac_exeext
27354 if { (ac_try="$ac_link"
27355 case "(($ac_try" in
27356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27357 *) ac_try_echo=$ac_try;;
27358 esac
27359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27360 (eval "$ac_link") 2>conftest.er1
27361 ac_status=$?
27362 grep -v '^ *+' conftest.er1 >conftest.err
27363 rm -f conftest.er1
27364 cat conftest.err >&5
27365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27366 (exit $ac_status); } && {
27367 test -z "$ac_c_werror_flag" ||
27368 test ! -s conftest.err
27369 } && test -s conftest$ac_exeext &&
27370 $as_test_x conftest$ac_exeext; then
27371 eval "$as_ac_var=yes"
27372 else
27373 echo "$as_me: failed program was:" >&5
27374 sed 's/^/| /' conftest.$ac_ext >&5
27376 eval "$as_ac_var=no"
27379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27380 conftest$ac_exeext conftest.$ac_ext
27382 ac_res=`eval echo '${'$as_ac_var'}'`
27383 { echo "$as_me:$LINENO: result: $ac_res" >&5
27384 echo "${ECHO_T}$ac_res" >&6; }
27385 if test `eval echo '${'$as_ac_var'}'` = yes; then
27386 cat >>confdefs.h <<_ACEOF
27387 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27388 _ACEOF
27389 FOUND_SECURE_RPC="yes"
27391 done
27393 if test "x$FOUND_SECURE_RPC" = "xno" ; then
27394 if test "x$SECURE_RPC" = "xyes" ; then
27395 { { echo "$as_me:$LINENO: error: Secure RPC requested, but required functions not found" >&5
27396 echo "$as_me: error: Secure RPC requested, but required functions not found" >&2;}
27397 { (exit 1); exit 1; }; }
27399 SECURE_RPC="no"
27400 else
27401 { echo "$as_me:$LINENO: checking for library containing getsecretkey" >&5
27402 echo $ECHO_N "checking for library containing getsecretkey... $ECHO_C" >&6; }
27403 if test "${ac_cv_search_getsecretkey+set}" = set; then
27404 echo $ECHO_N "(cached) $ECHO_C" >&6
27405 else
27406 ac_func_search_save_LIBS=$LIBS
27407 cat >conftest.$ac_ext <<_ACEOF
27408 /* confdefs.h. */
27409 _ACEOF
27410 cat confdefs.h >>conftest.$ac_ext
27411 cat >>conftest.$ac_ext <<_ACEOF
27412 /* end confdefs.h. */
27414 /* Override any GCC internal prototype to avoid an error.
27415 Use char because int might match the return type of a GCC
27416 builtin and then its argument prototype would still apply. */
27417 #ifdef __cplusplus
27418 extern "C"
27419 #endif
27420 char getsecretkey ();
27422 main ()
27424 return getsecretkey ();
27426 return 0;
27428 _ACEOF
27429 for ac_lib in '' rpcsvc; do
27430 if test -z "$ac_lib"; then
27431 ac_res="none required"
27432 else
27433 ac_res=-l$ac_lib
27434 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27436 rm -f conftest.$ac_objext conftest$ac_exeext
27437 if { (ac_try="$ac_link"
27438 case "(($ac_try" in
27439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27440 *) ac_try_echo=$ac_try;;
27441 esac
27442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27443 (eval "$ac_link") 2>conftest.er1
27444 ac_status=$?
27445 grep -v '^ *+' conftest.er1 >conftest.err
27446 rm -f conftest.er1
27447 cat conftest.err >&5
27448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27449 (exit $ac_status); } && {
27450 test -z "$ac_c_werror_flag" ||
27451 test ! -s conftest.err
27452 } && test -s conftest$ac_exeext &&
27453 $as_test_x conftest$ac_exeext; then
27454 ac_cv_search_getsecretkey=$ac_res
27455 else
27456 echo "$as_me: failed program was:" >&5
27457 sed 's/^/| /' conftest.$ac_ext >&5
27462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27463 conftest$ac_exeext
27464 if test "${ac_cv_search_getsecretkey+set}" = set; then
27465 break
27467 done
27468 if test "${ac_cv_search_getsecretkey+set}" = set; then
27470 else
27471 ac_cv_search_getsecretkey=no
27473 rm conftest.$ac_ext
27474 LIBS=$ac_func_search_save_LIBS
27476 { echo "$as_me:$LINENO: result: $ac_cv_search_getsecretkey" >&5
27477 echo "${ECHO_T}$ac_cv_search_getsecretkey" >&6; }
27478 ac_res=$ac_cv_search_getsecretkey
27479 if test "$ac_res" != no; then
27480 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27484 SECURE_RPC="yes"
27487 { echo "$as_me:$LINENO: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5
27488 echo $ECHO_N "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... $ECHO_C" >&6; }
27489 if test "x$SECURE_RPC" = "xyes" ; then
27491 cat >>confdefs.h <<\_ACEOF
27492 #define SECURE_RPC 1
27493 _ACEOF
27496 { echo "$as_me:$LINENO: result: $SECURE_RPC" >&5
27497 echo "${ECHO_T}$SECURE_RPC" >&6; }
27500 if test "x$INT10" = xvm86; then
27501 INT10_VM86_TRUE=
27502 INT10_VM86_FALSE='#'
27503 else
27504 INT10_VM86_TRUE='#'
27505 INT10_VM86_FALSE=
27508 if test "x$INT10" = xx86emu; then
27509 INT10_X86EMU_TRUE=
27510 INT10_X86EMU_FALSE='#'
27511 else
27512 INT10_X86EMU_TRUE='#'
27513 INT10_X86EMU_FALSE=
27516 if test "x$INT10" = xstub; then
27517 INT10_STUB_TRUE=
27518 INT10_STUB_FALSE='#'
27519 else
27520 INT10_STUB_TRUE='#'
27521 INT10_STUB_FALSE=
27524 if test "x$INT10" = xyes; then
27527 for ac_header in sys/vm86.h sys/io.h
27529 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27531 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27534 echo $ECHO_N "(cached) $ECHO_C" >&6
27536 ac_res=`eval echo '${'$as_ac_Header'}'`
27537 { echo "$as_me:$LINENO: result: $ac_res" >&5
27538 echo "${ECHO_T}$ac_res" >&6; }
27539 else
27540 # Is the header compilable?
27541 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27542 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27543 cat >conftest.$ac_ext <<_ACEOF
27544 /* confdefs.h. */
27545 _ACEOF
27546 cat confdefs.h >>conftest.$ac_ext
27547 cat >>conftest.$ac_ext <<_ACEOF
27548 /* end confdefs.h. */
27549 $ac_includes_default
27550 #include <$ac_header>
27551 _ACEOF
27552 rm -f conftest.$ac_objext
27553 if { (ac_try="$ac_compile"
27554 case "(($ac_try" in
27555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27556 *) ac_try_echo=$ac_try;;
27557 esac
27558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27559 (eval "$ac_compile") 2>conftest.er1
27560 ac_status=$?
27561 grep -v '^ *+' conftest.er1 >conftest.err
27562 rm -f conftest.er1
27563 cat conftest.err >&5
27564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27565 (exit $ac_status); } && {
27566 test -z "$ac_c_werror_flag" ||
27567 test ! -s conftest.err
27568 } && test -s conftest.$ac_objext; then
27569 ac_header_compiler=yes
27570 else
27571 echo "$as_me: failed program was:" >&5
27572 sed 's/^/| /' conftest.$ac_ext >&5
27574 ac_header_compiler=no
27577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27578 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27579 echo "${ECHO_T}$ac_header_compiler" >&6; }
27581 # Is the header present?
27582 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27583 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27584 cat >conftest.$ac_ext <<_ACEOF
27585 /* confdefs.h. */
27586 _ACEOF
27587 cat confdefs.h >>conftest.$ac_ext
27588 cat >>conftest.$ac_ext <<_ACEOF
27589 /* end confdefs.h. */
27590 #include <$ac_header>
27591 _ACEOF
27592 if { (ac_try="$ac_cpp conftest.$ac_ext"
27593 case "(($ac_try" in
27594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27595 *) ac_try_echo=$ac_try;;
27596 esac
27597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27599 ac_status=$?
27600 grep -v '^ *+' conftest.er1 >conftest.err
27601 rm -f conftest.er1
27602 cat conftest.err >&5
27603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27604 (exit $ac_status); } >/dev/null && {
27605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27606 test ! -s conftest.err
27607 }; then
27608 ac_header_preproc=yes
27609 else
27610 echo "$as_me: failed program was:" >&5
27611 sed 's/^/| /' conftest.$ac_ext >&5
27613 ac_header_preproc=no
27616 rm -f conftest.err conftest.$ac_ext
27617 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27618 echo "${ECHO_T}$ac_header_preproc" >&6; }
27620 # So? What about this header?
27621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27622 yes:no: )
27623 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27624 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27626 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27627 ac_header_preproc=yes
27629 no:yes:* )
27630 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27631 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27632 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27633 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27634 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27635 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27636 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27637 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27639 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27640 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27641 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27642 ( cat <<\_ASBOX
27643 ## ---------------------------------------------------------------------- ##
27644 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
27645 ## ---------------------------------------------------------------------- ##
27646 _ASBOX
27647 ) | sed "s/^/$as_me: WARNING: /" >&2
27649 esac
27650 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27653 echo $ECHO_N "(cached) $ECHO_C" >&6
27654 else
27655 eval "$as_ac_Header=\$ac_header_preproc"
27657 ac_res=`eval echo '${'$as_ac_Header'}'`
27658 { echo "$as_me:$LINENO: result: $ac_res" >&5
27659 echo "${ECHO_T}$ac_res" >&6; }
27662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27663 cat >>confdefs.h <<_ACEOF
27664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27665 _ACEOF
27669 done
27673 if test "x$BUILDDOCS" = xyes; then
27674 BUILDDOCS_TRUE=
27675 BUILDDOCS_FALSE='#'
27676 else
27677 BUILDDOCS_TRUE='#'
27678 BUILDDOCS_FALSE=
27683 XORG_SGML_PATH=$prefix/share/sgml
27684 HAVE_DEFS_ENT=
27686 as_ac_File=`echo "ac_cv_file_$XORG_SGML_PATH/X11/defs.ent" | $as_tr_sh`
27687 { echo "$as_me:$LINENO: checking for $XORG_SGML_PATH/X11/defs.ent" >&5
27688 echo $ECHO_N "checking for $XORG_SGML_PATH/X11/defs.ent... $ECHO_C" >&6; }
27689 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
27690 echo $ECHO_N "(cached) $ECHO_C" >&6
27691 else
27692 test "$cross_compiling" = yes &&
27693 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27694 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27695 { (exit 1); exit 1; }; }
27696 if test -r "$XORG_SGML_PATH/X11/defs.ent"; then
27697 eval "$as_ac_File=yes"
27698 else
27699 eval "$as_ac_File=no"
27702 ac_res=`eval echo '${'$as_ac_File'}'`
27703 { echo "$as_me:$LINENO: result: $ac_res" >&5
27704 echo "${ECHO_T}$ac_res" >&6; }
27705 if test `eval echo '${'$as_ac_File'}'` = yes; then
27706 HAVE_DEFS_ENT=yes
27710 # Extract the first word of "linuxdoc", so it can be a program name with args.
27711 set dummy linuxdoc; ac_word=$2
27712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27714 if test "${ac_cv_path_LINUXDOC+set}" = set; then
27715 echo $ECHO_N "(cached) $ECHO_C" >&6
27716 else
27717 case $LINUXDOC in
27718 [\\/]* | ?:[\\/]*)
27719 ac_cv_path_LINUXDOC="$LINUXDOC" # Let the user override the test with a path.
27722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27723 for as_dir in $PATH
27725 IFS=$as_save_IFS
27726 test -z "$as_dir" && as_dir=.
27727 for ac_exec_ext in '' $ac_executable_extensions; do
27728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27729 ac_cv_path_LINUXDOC="$as_dir/$ac_word$ac_exec_ext"
27730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27731 break 2
27733 done
27734 done
27735 IFS=$as_save_IFS
27738 esac
27740 LINUXDOC=$ac_cv_path_LINUXDOC
27741 if test -n "$LINUXDOC"; then
27742 { echo "$as_me:$LINENO: result: $LINUXDOC" >&5
27743 echo "${ECHO_T}$LINUXDOC" >&6; }
27744 else
27745 { echo "$as_me:$LINENO: result: no" >&5
27746 echo "${ECHO_T}no" >&6; }
27750 # Extract the first word of "ps2pdf", so it can be a program name with args.
27751 set dummy ps2pdf; ac_word=$2
27752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27754 if test "${ac_cv_path_PS2PDF+set}" = set; then
27755 echo $ECHO_N "(cached) $ECHO_C" >&6
27756 else
27757 case $PS2PDF in
27758 [\\/]* | ?:[\\/]*)
27759 ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
27762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27763 for as_dir in $PATH
27765 IFS=$as_save_IFS
27766 test -z "$as_dir" && as_dir=.
27767 for ac_exec_ext in '' $ac_executable_extensions; do
27768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27769 ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
27770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27771 break 2
27773 done
27774 done
27775 IFS=$as_save_IFS
27778 esac
27780 PS2PDF=$ac_cv_path_PS2PDF
27781 if test -n "$PS2PDF"; then
27782 { echo "$as_me:$LINENO: result: $PS2PDF" >&5
27783 echo "${ECHO_T}$PS2PDF" >&6; }
27784 else
27785 { echo "$as_me:$LINENO: result: no" >&5
27786 echo "${ECHO_T}no" >&6; }
27791 { echo "$as_me:$LINENO: checking Whether to build documentation" >&5
27792 echo $ECHO_N "checking Whether to build documentation... $ECHO_C" >&6; }
27794 if test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then
27795 BUILDDOC=yes
27796 else
27797 BUILDDOC=no
27800 if test x$BUILDDOC = xyes; then
27801 BUILD_LINUXDOC_TRUE=
27802 BUILD_LINUXDOC_FALSE='#'
27803 else
27804 BUILD_LINUXDOC_TRUE='#'
27805 BUILD_LINUXDOC_FALSE=
27809 { echo "$as_me:$LINENO: result: $BUILDDOC" >&5
27810 echo "${ECHO_T}$BUILDDOC" >&6; }
27812 { echo "$as_me:$LINENO: checking Whether to build pdf documentation" >&5
27813 echo $ECHO_N "checking Whether to build pdf documentation... $ECHO_C" >&6; }
27815 if test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then
27816 BUILDPDFDOC=yes
27817 else
27818 BUILDPDFDOC=no
27821 if test x$BUILDPDFDOC = xyes; then
27822 BUILD_PDFDOC_TRUE=
27823 BUILD_PDFDOC_FALSE='#'
27824 else
27825 BUILD_PDFDOC_TRUE='#'
27826 BUILD_PDFDOC_FALSE=
27830 { echo "$as_me:$LINENO: result: $BUILDPDFDOC" >&5
27831 echo "${ECHO_T}$BUILDPDFDOC" >&6; }
27833 MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt"
27834 MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps"
27835 MAKE_PDF="$PS2PDF"
27836 MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0"
27844 if test "x$INSTALL_LIBXF86CONFIG" = xyes; then
27845 INSTALL_LIBXF86CONFIG_TRUE=
27846 INSTALL_LIBXF86CONFIG_FALSE='#'
27847 else
27848 INSTALL_LIBXF86CONFIG_TRUE='#'
27849 INSTALL_LIBXF86CONFIG_FALSE=
27853 XEXT_INC='-I$(top_srcdir)/Xext'
27854 XEXT_LIB='$(top_builddir)/Xext/libXext.la'
27855 XEXTXORG_LIB='$(top_builddir)/Xext/libXextbuiltin.la'
27857 PIXMAN="pixman-1 >= 0.9.5"
27859 pkg_failed=no
27860 { echo "$as_me:$LINENO: checking for PIXMAN" >&5
27861 echo $ECHO_N "checking for PIXMAN... $ECHO_C" >&6; }
27863 if test -n "$PKG_CONFIG"; then
27864 if test -n "$PIXMAN_CFLAGS"; then
27865 pkg_cv_PIXMAN_CFLAGS="$PIXMAN_CFLAGS"
27866 else
27867 if test -n "$PKG_CONFIG" && \
27868 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$PIXMAN\"") >&5
27869 ($PKG_CONFIG --exists --print-errors "$PIXMAN") 2>&5
27870 ac_status=$?
27871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27872 (exit $ac_status); }; then
27873 pkg_cv_PIXMAN_CFLAGS=`$PKG_CONFIG --cflags "$PIXMAN" 2>/dev/null`
27874 else
27875 pkg_failed=yes
27878 else
27879 pkg_failed=untried
27881 if test -n "$PKG_CONFIG"; then
27882 if test -n "$PIXMAN_LIBS"; then
27883 pkg_cv_PIXMAN_LIBS="$PIXMAN_LIBS"
27884 else
27885 if test -n "$PKG_CONFIG" && \
27886 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$PIXMAN\"") >&5
27887 ($PKG_CONFIG --exists --print-errors "$PIXMAN") 2>&5
27888 ac_status=$?
27889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27890 (exit $ac_status); }; then
27891 pkg_cv_PIXMAN_LIBS=`$PKG_CONFIG --libs "$PIXMAN" 2>/dev/null`
27892 else
27893 pkg_failed=yes
27896 else
27897 pkg_failed=untried
27902 if test $pkg_failed = yes; then
27904 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27905 _pkg_short_errors_supported=yes
27906 else
27907 _pkg_short_errors_supported=no
27909 if test $_pkg_short_errors_supported = yes; then
27910 PIXMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$PIXMAN"`
27911 else
27912 PIXMAN_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$PIXMAN"`
27914 # Put the nasty error message in config.log where it belongs
27915 echo "$PIXMAN_PKG_ERRORS" >&5
27917 { { echo "$as_me:$LINENO: error: Package requirements ($PIXMAN) were not met:
27919 $PIXMAN_PKG_ERRORS
27921 Consider adjusting the PKG_CONFIG_PATH environment variable if you
27922 installed software in a non-standard prefix.
27924 Alternatively, you may set the environment variables PIXMAN_CFLAGS
27925 and PIXMAN_LIBS to avoid the need to call pkg-config.
27926 See the pkg-config man page for more details.
27927 " >&5
27928 echo "$as_me: error: Package requirements ($PIXMAN) were not met:
27930 $PIXMAN_PKG_ERRORS
27932 Consider adjusting the PKG_CONFIG_PATH environment variable if you
27933 installed software in a non-standard prefix.
27935 Alternatively, you may set the environment variables PIXMAN_CFLAGS
27936 and PIXMAN_LIBS to avoid the need to call pkg-config.
27937 See the pkg-config man page for more details.
27938 " >&2;}
27939 { (exit 1); exit 1; }; }
27940 elif test $pkg_failed = untried; then
27941 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
27942 is in your PATH or set the PKG_CONFIG environment variable to the full
27943 path to pkg-config.
27945 Alternatively, you may set the environment variables PIXMAN_CFLAGS
27946 and PIXMAN_LIBS to avoid the need to call pkg-config.
27947 See the pkg-config man page for more details.
27949 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
27950 See \`config.log' for more details." >&5
27951 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
27952 is in your PATH or set the PKG_CONFIG environment variable to the full
27953 path to pkg-config.
27955 Alternatively, you may set the environment variables PIXMAN_CFLAGS
27956 and PIXMAN_LIBS to avoid the need to call pkg-config.
27957 See the pkg-config man page for more details.
27959 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
27960 See \`config.log' for more details." >&2;}
27961 { (exit 1); exit 1; }; }
27962 else
27963 PIXMAN_CFLAGS=$pkg_cv_PIXMAN_CFLAGS
27964 PIXMAN_LIBS=$pkg_cv_PIXMAN_LIBS
27965 { echo "$as_me:$LINENO: result: yes" >&5
27966 echo "${ECHO_T}yes" >&6; }
27971 # Require updated renderproto for ABI sanity if we're 64-bit.
27972 if test "$ac_cv_sizeof_unsigned_long" = 8; then
27973 RENDERPROTO="renderproto >= 0.9.3"
27974 else
27975 RENDERPROTO="renderproto"
27977 REQUIRED_MODULES="randrproto >= 1.2 $RENDERPROTO fixesproto >= 4.0 damageproto >= 1.1 xcmiscproto xextproto xproto >= 7.0.9 xtrans scrnsaverproto >= 1.1 bigreqsproto resourceproto fontsproto inputproto >= 1.4.2 kbproto >= 1.0.3"
27978 REQUIRED_LIBS="xfont xau fontenc $PIXMAN"
27981 pkg_failed=no
27982 { echo "$as_me:$LINENO: checking for DBUS" >&5
27983 echo $ECHO_N "checking for DBUS... $ECHO_C" >&6; }
27985 if test -n "$PKG_CONFIG"; then
27986 if test -n "$DBUS_CFLAGS"; then
27987 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
27988 else
27989 if test -n "$PKG_CONFIG" && \
27990 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1\"") >&5
27991 ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
27992 ac_status=$?
27993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27994 (exit $ac_status); }; then
27995 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
27996 else
27997 pkg_failed=yes
28000 else
28001 pkg_failed=untried
28003 if test -n "$PKG_CONFIG"; then
28004 if test -n "$DBUS_LIBS"; then
28005 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
28006 else
28007 if test -n "$PKG_CONFIG" && \
28008 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1\"") >&5
28009 ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
28010 ac_status=$?
28011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28012 (exit $ac_status); }; then
28013 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
28014 else
28015 pkg_failed=yes
28018 else
28019 pkg_failed=untried
28024 if test $pkg_failed = yes; then
28026 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28027 _pkg_short_errors_supported=yes
28028 else
28029 _pkg_short_errors_supported=no
28031 if test $_pkg_short_errors_supported = yes; then
28032 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dbus-1"`
28033 else
28034 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1"`
28036 # Put the nasty error message in config.log where it belongs
28037 echo "$DBUS_PKG_ERRORS" >&5
28039 { echo "$as_me:$LINENO: result: no" >&5
28040 echo "${ECHO_T}no" >&6; }
28041 HAVE_DBUS=no
28042 elif test $pkg_failed = untried; then
28043 HAVE_DBUS=no
28044 else
28045 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
28046 DBUS_LIBS=$pkg_cv_DBUS_LIBS
28047 { echo "$as_me:$LINENO: result: yes" >&5
28048 echo "${ECHO_T}yes" >&6; }
28049 HAVE_DBUS=yes
28051 if test "x$HAVE_DBUS" = xyes; then
28053 cat >>confdefs.h <<\_ACEOF
28054 #define HAVE_DBUS 1
28055 _ACEOF
28058 if test "x$HAVE_DBUS" = xyes; then
28059 HAVE_DBUS_TRUE=
28060 HAVE_DBUS_FALSE='#'
28061 else
28062 HAVE_DBUS_TRUE='#'
28063 HAVE_DBUS_FALSE=
28067 if test "x$CONFIG_DBUS_API" = xauto; then
28068 CONFIG_DBUS_API="$HAVE_DBUS"
28070 if test "x$CONFIG_DBUS_API" = xyes; then
28071 if ! test "x$HAVE_DBUS" = xyes; then
28072 { { echo "$as_me:$LINENO: error: D-Bus configuration API requested, but D-Bus is not installed." >&5
28073 echo "$as_me: error: D-Bus configuration API requested, but D-Bus is not installed." >&2;}
28074 { (exit 1); exit 1; }; }
28078 cat >>confdefs.h <<\_ACEOF
28079 #define CONFIG_DBUS_API 1
28080 _ACEOF
28082 NEED_DBUS="yes"
28084 if test "x$CONFIG_DBUS_API" = xyes; then
28085 CONFIG_DBUS_API_TRUE=
28086 CONFIG_DBUS_API_FALSE='#'
28087 else
28088 CONFIG_DBUS_API_TRUE='#'
28089 CONFIG_DBUS_API_FALSE=
28094 pkg_failed=no
28095 { echo "$as_me:$LINENO: checking for HAL" >&5
28096 echo $ECHO_N "checking for HAL... $ECHO_C" >&6; }
28098 if test -n "$PKG_CONFIG"; then
28099 if test -n "$HAL_CFLAGS"; then
28100 pkg_cv_HAL_CFLAGS="$HAL_CFLAGS"
28101 else
28102 if test -n "$PKG_CONFIG" && \
28103 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hal\"") >&5
28104 ($PKG_CONFIG --exists --print-errors "hal") 2>&5
28105 ac_status=$?
28106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28107 (exit $ac_status); }; then
28108 pkg_cv_HAL_CFLAGS=`$PKG_CONFIG --cflags "hal" 2>/dev/null`
28109 else
28110 pkg_failed=yes
28113 else
28114 pkg_failed=untried
28116 if test -n "$PKG_CONFIG"; then
28117 if test -n "$HAL_LIBS"; then
28118 pkg_cv_HAL_LIBS="$HAL_LIBS"
28119 else
28120 if test -n "$PKG_CONFIG" && \
28121 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hal\"") >&5
28122 ($PKG_CONFIG --exists --print-errors "hal") 2>&5
28123 ac_status=$?
28124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28125 (exit $ac_status); }; then
28126 pkg_cv_HAL_LIBS=`$PKG_CONFIG --libs "hal" 2>/dev/null`
28127 else
28128 pkg_failed=yes
28131 else
28132 pkg_failed=untried
28137 if test $pkg_failed = yes; then
28139 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28140 _pkg_short_errors_supported=yes
28141 else
28142 _pkg_short_errors_supported=no
28144 if test $_pkg_short_errors_supported = yes; then
28145 HAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hal"`
28146 else
28147 HAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hal"`
28149 # Put the nasty error message in config.log where it belongs
28150 echo "$HAL_PKG_ERRORS" >&5
28152 { echo "$as_me:$LINENO: result: no" >&5
28153 echo "${ECHO_T}no" >&6; }
28154 HAVE_HAL=no
28155 elif test $pkg_failed = untried; then
28156 HAVE_HAL=no
28157 else
28158 HAL_CFLAGS=$pkg_cv_HAL_CFLAGS
28159 HAL_LIBS=$pkg_cv_HAL_LIBS
28160 { echo "$as_me:$LINENO: result: yes" >&5
28161 echo "${ECHO_T}yes" >&6; }
28162 HAVE_HAL=yes
28164 if test "x$CONFIG_HAL" = xauto; then
28165 CONFIG_HAL="$HAVE_HAL"
28167 if test "x$CONFIG_HAL" = xyes; then
28168 if ! test "x$HAVE_HAL" = xyes; then
28169 { { echo "$as_me:$LINENO: error: HAL hotplug API requested, but HAL is not installed." >&5
28170 echo "$as_me: error: HAL hotplug API requested, but HAL is not installed." >&2;}
28171 { (exit 1); exit 1; }; }
28175 cat >>confdefs.h <<\_ACEOF
28176 #define CONFIG_HAL 1
28177 _ACEOF
28179 REQUIRED_LIBS="$REQUIRED_LIBS hal"
28180 NEED_DBUS="yes"
28182 if test "x$CONFIG_HAL" = xyes; then
28183 CONFIG_HAL_TRUE=
28184 CONFIG_HAL_FALSE='#'
28185 else
28186 CONFIG_HAL_TRUE='#'
28187 CONFIG_HAL_FALSE=
28191 if test "x$NEED_DBUS" = xyes; then
28192 REQUIRED_LIBS="$REQUIRED_LIBS dbus-1"
28194 CONFIG_LIB='$(top_builddir)/config/libconfig.a'
28196 if test "x$XV" = xyes; then
28197 XV_TRUE=
28198 XV_FALSE='#'
28199 else
28200 XV_TRUE='#'
28201 XV_FALSE=
28204 if test "x$XV" = xyes; then
28206 cat >>confdefs.h <<\_ACEOF
28207 #define XV 1
28208 _ACEOF
28211 cat >>confdefs.h <<\_ACEOF
28212 #define XvExtension 1
28213 _ACEOF
28215 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
28216 else
28217 XVMC=no
28220 if test "x$XVMC" = xyes; then
28221 XVMC_TRUE=
28222 XVMC_FALSE='#'
28223 else
28224 XVMC_TRUE='#'
28225 XVMC_FALSE=
28228 if test "x$XVMC" = xyes; then
28230 cat >>confdefs.h <<\_ACEOF
28231 #define XvMCExtension 1
28232 _ACEOF
28237 if test "x$COMPOSITE" = xyes; then
28238 COMPOSITE_TRUE=
28239 COMPOSITE_FALSE='#'
28240 else
28241 COMPOSITE_TRUE='#'
28242 COMPOSITE_FALSE=
28245 if test "x$COMPOSITE" = xyes; then
28247 cat >>confdefs.h <<\_ACEOF
28248 #define COMPOSITE 1
28249 _ACEOF
28251 REQUIRED_MODULES="$REQUIRED_MODULES compositeproto >= 0.4"
28252 COMPOSITE_LIB='$(top_builddir)/composite/libcomposite.la'
28253 COMPOSITE_INC='-I$(top_srcdir)/composite'
28256 if test "x$MITSHM" = xyes; then
28257 MITSHM_TRUE=
28258 MITSHM_FALSE='#'
28259 else
28260 MITSHM_TRUE='#'
28261 MITSHM_FALSE=
28264 if test "x$MITSHM" = xyes; then
28266 cat >>confdefs.h <<\_ACEOF
28267 #define MITSHM 1
28268 _ACEOF
28271 cat >>confdefs.h <<\_ACEOF
28272 #define HAS_SHM 1
28273 _ACEOF
28277 if test "x$XTRAP" = xyes; then
28278 XTRAP_TRUE=
28279 XTRAP_FALSE='#'
28280 else
28281 XTRAP_TRUE='#'
28282 XTRAP_FALSE=
28285 if test "x$XTRAP" = xyes; then
28287 cat >>confdefs.h <<\_ACEOF
28288 #define XTRAP 1
28289 _ACEOF
28291 REQUIRED_MODULES="$REQUIRED_MODULES trapproto"
28292 XTRAP_LIB='$(top_builddir)/XTrap/libxtrap.la'
28295 if test "x$RECORD" = xyes; then
28296 RECORD_TRUE=
28297 RECORD_FALSE='#'
28298 else
28299 RECORD_TRUE='#'
28300 RECORD_FALSE=
28303 if test "x$RECORD" = xyes; then
28305 cat >>confdefs.h <<\_ACEOF
28306 #define XRECORD 1
28307 _ACEOF
28309 REQUIRED_MODULES="$REQUIRED_MODULES recordproto"
28310 RECORD_LIB='$(top_builddir)/record/librecord.la'
28313 if test "x$SCREENSAVER" = xyes; then
28314 SCREENSAVER_TRUE=
28315 SCREENSAVER_FALSE='#'
28316 else
28317 SCREENSAVER_TRUE='#'
28318 SCREENSAVER_FALSE=
28321 if test "x$SCREENSAVER" = xyes; then
28323 cat >>confdefs.h <<\_ACEOF
28324 #define SCREENSAVER 1
28325 _ACEOF
28329 if test "x$RES" = xyes; then
28330 RES_TRUE=
28331 RES_FALSE='#'
28332 else
28333 RES_TRUE='#'
28334 RES_FALSE=
28337 if test "x$RES" = xyes; then
28339 cat >>confdefs.h <<\_ACEOF
28340 #define RES 1
28341 _ACEOF
28343 REQUIRED_MODULES="$REQUIRED_MODULES resourceproto"
28346 if test "x$GLX" = xyes && ! test "x$MESA_SOURCE" = x; then
28348 pkg_failed=no
28349 { echo "$as_me:$LINENO: checking for XLIB" >&5
28350 echo $ECHO_N "checking for XLIB... $ECHO_C" >&6; }
28352 if test -n "$PKG_CONFIG"; then
28353 if test -n "$XLIB_CFLAGS"; then
28354 pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS"
28355 else
28356 if test -n "$PKG_CONFIG" && \
28357 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
28358 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
28359 ac_status=$?
28360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28361 (exit $ac_status); }; then
28362 pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
28363 else
28364 pkg_failed=yes
28367 else
28368 pkg_failed=untried
28370 if test -n "$PKG_CONFIG"; then
28371 if test -n "$XLIB_LIBS"; then
28372 pkg_cv_XLIB_LIBS="$XLIB_LIBS"
28373 else
28374 if test -n "$PKG_CONFIG" && \
28375 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
28376 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
28377 ac_status=$?
28378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28379 (exit $ac_status); }; then
28380 pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
28381 else
28382 pkg_failed=yes
28385 else
28386 pkg_failed=untried
28391 if test $pkg_failed = yes; then
28393 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28394 _pkg_short_errors_supported=yes
28395 else
28396 _pkg_short_errors_supported=no
28398 if test $_pkg_short_errors_supported = yes; then
28399 XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11"`
28400 else
28401 XLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11"`
28403 # Put the nasty error message in config.log where it belongs
28404 echo "$XLIB_PKG_ERRORS" >&5
28406 { { echo "$as_me:$LINENO: error: Package requirements (x11) were not met:
28408 $XLIB_PKG_ERRORS
28410 Consider adjusting the PKG_CONFIG_PATH environment variable if you
28411 installed software in a non-standard prefix.
28413 Alternatively, you may set the environment variables XLIB_CFLAGS
28414 and XLIB_LIBS to avoid the need to call pkg-config.
28415 See the pkg-config man page for more details.
28416 " >&5
28417 echo "$as_me: error: Package requirements (x11) were not met:
28419 $XLIB_PKG_ERRORS
28421 Consider adjusting the PKG_CONFIG_PATH environment variable if you
28422 installed software in a non-standard prefix.
28424 Alternatively, you may set the environment variables XLIB_CFLAGS
28425 and XLIB_LIBS to avoid the need to call pkg-config.
28426 See the pkg-config man page for more details.
28427 " >&2;}
28428 { (exit 1); exit 1; }; }
28429 elif test $pkg_failed = untried; then
28430 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
28431 is in your PATH or set the PKG_CONFIG environment variable to the full
28432 path to pkg-config.
28434 Alternatively, you may set the environment variables XLIB_CFLAGS
28435 and XLIB_LIBS to avoid the need to call pkg-config.
28436 See the pkg-config man page for more details.
28438 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
28439 See \`config.log' for more details." >&5
28440 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
28441 is in your PATH or set the PKG_CONFIG environment variable to the full
28442 path to pkg-config.
28444 Alternatively, you may set the environment variables XLIB_CFLAGS
28445 and XLIB_LIBS to avoid the need to call pkg-config.
28446 See the pkg-config man page for more details.
28448 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
28449 See \`config.log' for more details." >&2;}
28450 { (exit 1); exit 1; }; }
28451 else
28452 XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS
28453 XLIB_LIBS=$pkg_cv_XLIB_LIBS
28454 { echo "$as_me:$LINENO: result: yes" >&5
28455 echo "${ECHO_T}yes" >&6; }
28459 pkg_failed=no
28460 { echo "$as_me:$LINENO: checking for GL" >&5
28461 echo $ECHO_N "checking for GL... $ECHO_C" >&6; }
28463 if test -n "$PKG_CONFIG"; then
28464 if test -n "$GL_CFLAGS"; then
28465 pkg_cv_GL_CFLAGS="$GL_CFLAGS"
28466 else
28467 if test -n "$PKG_CONFIG" && \
28468 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glproto >= 1.4.8\"") >&5
28469 ($PKG_CONFIG --exists --print-errors "glproto >= 1.4.8") 2>&5
28470 ac_status=$?
28471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28472 (exit $ac_status); }; then
28473 pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "glproto >= 1.4.8" 2>/dev/null`
28474 else
28475 pkg_failed=yes
28478 else
28479 pkg_failed=untried
28481 if test -n "$PKG_CONFIG"; then
28482 if test -n "$GL_LIBS"; then
28483 pkg_cv_GL_LIBS="$GL_LIBS"
28484 else
28485 if test -n "$PKG_CONFIG" && \
28486 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glproto >= 1.4.8\"") >&5
28487 ($PKG_CONFIG --exists --print-errors "glproto >= 1.4.8") 2>&5
28488 ac_status=$?
28489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28490 (exit $ac_status); }; then
28491 pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "glproto >= 1.4.8" 2>/dev/null`
28492 else
28493 pkg_failed=yes
28496 else
28497 pkg_failed=untried
28502 if test $pkg_failed = yes; then
28504 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28505 _pkg_short_errors_supported=yes
28506 else
28507 _pkg_short_errors_supported=no
28509 if test $_pkg_short_errors_supported = yes; then
28510 GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glproto >= 1.4.8"`
28511 else
28512 GL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glproto >= 1.4.8"`
28514 # Put the nasty error message in config.log where it belongs
28515 echo "$GL_PKG_ERRORS" >&5
28517 { { echo "$as_me:$LINENO: error: Package requirements (glproto >= 1.4.8) were not met:
28519 $GL_PKG_ERRORS
28521 Consider adjusting the PKG_CONFIG_PATH environment variable if you
28522 installed software in a non-standard prefix.
28524 Alternatively, you may set the environment variables GL_CFLAGS
28525 and GL_LIBS to avoid the need to call pkg-config.
28526 See the pkg-config man page for more details.
28527 " >&5
28528 echo "$as_me: error: Package requirements (glproto >= 1.4.8) were not met:
28530 $GL_PKG_ERRORS
28532 Consider adjusting the PKG_CONFIG_PATH environment variable if you
28533 installed software in a non-standard prefix.
28535 Alternatively, you may set the environment variables GL_CFLAGS
28536 and GL_LIBS to avoid the need to call pkg-config.
28537 See the pkg-config man page for more details.
28538 " >&2;}
28539 { (exit 1); exit 1; }; }
28540 elif test $pkg_failed = untried; then
28541 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
28542 is in your PATH or set the PKG_CONFIG environment variable to the full
28543 path to pkg-config.
28545 Alternatively, you may set the environment variables GL_CFLAGS
28546 and GL_LIBS to avoid the need to call pkg-config.
28547 See the pkg-config man page for more details.
28549 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
28550 See \`config.log' for more details." >&5
28551 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
28552 is in your PATH or set the PKG_CONFIG environment variable to the full
28553 path to pkg-config.
28555 Alternatively, you may set the environment variables GL_CFLAGS
28556 and GL_LIBS to avoid the need to call pkg-config.
28557 See the pkg-config man page for more details.
28559 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
28560 See \`config.log' for more details." >&2;}
28561 { (exit 1); exit 1; }; }
28562 else
28563 GL_CFLAGS=$pkg_cv_GL_CFLAGS
28564 GL_LIBS=$pkg_cv_GL_LIBS
28565 { echo "$as_me:$LINENO: result: yes" >&5
28566 echo "${ECHO_T}yes" >&6; }
28571 cat >>confdefs.h <<\_ACEOF
28572 #define GLXEXT 1
28573 _ACEOF
28575 GLX_LIBS='$(top_builddir)/GL/glx/libglx.la $(top_builddir)/GL/mesa/libGLcore.la'
28576 test -d GL || mkdir GL
28577 case $host_os in
28578 solaris*)
28579 SYMLINK_MESA="/usr/bin/bash $srcdir/GL/symlink-mesa.sh" ;;
28580 *) SYMLINK_MESA=$srcdir/GL/symlink-mesa.sh ;;
28581 esac
28582 $SYMLINK_MESA $MESA_SOURCE GL/
28583 if test $? -ne 0; then
28584 { { echo "$as_me:$LINENO: error: Failed to link Mesa source tree. Please specify a proper path to Mesa sources, or disable GLX." >&5
28585 echo "$as_me: error: Failed to link Mesa source tree. Please specify a proper path to Mesa sources, or disable GLX." >&2;}
28586 { (exit 1); exit 1; }; }
28588 else
28589 GLX=no
28591 if test "x$GLX" = xyes; then
28592 GLX_TRUE=
28593 GLX_FALSE='#'
28594 else
28595 GLX_TRUE='#'
28596 GLX_FALSE=
28601 if test "x$AIGLX" = xyes -a "x$GLX" = xyes -a "x$DRI" = xyes; then
28603 cat >>confdefs.h <<\_ACEOF
28604 #define AIGLX 1
28605 _ACEOF
28607 else
28608 AIGLX=no
28610 if test "x$AIGLX" = xyes; then
28611 AIGLX_TRUE=
28612 AIGLX_FALSE='#'
28613 else
28614 AIGLX_TRUE='#'
28615 AIGLX_FALSE=
28619 if test "x$GLX_USE_TLS" = xyes -a "x$AIGLX" = xyes; then
28620 GLX_DEFINES="-DGLX_USE_TLS -DPTHREADS"
28621 GLX_LIBS="$GLX_LIBS -lpthread"
28625 if test "x$DRI" = xyes; then
28626 DRI_TRUE=
28627 DRI_FALSE='#'
28628 else
28629 DRI_TRUE='#'
28630 DRI_FALSE=
28633 if test "x$DRI" = xyes; then
28635 cat >>confdefs.h <<\_ACEOF
28636 #define XF86DRI 1
28637 _ACEOF
28640 pkg_failed=no
28641 { echo "$as_me:$LINENO: checking for DRIPROTO" >&5
28642 echo $ECHO_N "checking for DRIPROTO... $ECHO_C" >&6; }
28644 if test -n "$PKG_CONFIG"; then
28645 if test -n "$DRIPROTO_CFLAGS"; then
28646 pkg_cv_DRIPROTO_CFLAGS="$DRIPROTO_CFLAGS"
28647 else
28648 if test -n "$PKG_CONFIG" && \
28649 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xf86driproto\"") >&5
28650 ($PKG_CONFIG --exists --print-errors "xf86driproto") 2>&5
28651 ac_status=$?
28652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28653 (exit $ac_status); }; then
28654 pkg_cv_DRIPROTO_CFLAGS=`$PKG_CONFIG --cflags "xf86driproto" 2>/dev/null`
28655 else
28656 pkg_failed=yes
28659 else
28660 pkg_failed=untried
28662 if test -n "$PKG_CONFIG"; then
28663 if test -n "$DRIPROTO_LIBS"; then
28664 pkg_cv_DRIPROTO_LIBS="$DRIPROTO_LIBS"
28665 else
28666 if test -n "$PKG_CONFIG" && \
28667 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xf86driproto\"") >&5
28668 ($PKG_CONFIG --exists --print-errors "xf86driproto") 2>&5
28669 ac_status=$?
28670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28671 (exit $ac_status); }; then
28672 pkg_cv_DRIPROTO_LIBS=`$PKG_CONFIG --libs "xf86driproto" 2>/dev/null`
28673 else
28674 pkg_failed=yes
28677 else
28678 pkg_failed=untried
28683 if test $pkg_failed = yes; then
28685 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28686 _pkg_short_errors_supported=yes
28687 else
28688 _pkg_short_errors_supported=no
28690 if test $_pkg_short_errors_supported = yes; then
28691 DRIPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xf86driproto"`
28692 else
28693 DRIPROTO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xf86driproto"`
28695 # Put the nasty error message in config.log where it belongs
28696 echo "$DRIPROTO_PKG_ERRORS" >&5
28698 { { echo "$as_me:$LINENO: error: Package requirements (xf86driproto) were not met:
28700 $DRIPROTO_PKG_ERRORS
28702 Consider adjusting the PKG_CONFIG_PATH environment variable if you
28703 installed software in a non-standard prefix.
28705 Alternatively, you may set the environment variables DRIPROTO_CFLAGS
28706 and DRIPROTO_LIBS to avoid the need to call pkg-config.
28707 See the pkg-config man page for more details.
28708 " >&5
28709 echo "$as_me: error: Package requirements (xf86driproto) were not met:
28711 $DRIPROTO_PKG_ERRORS
28713 Consider adjusting the PKG_CONFIG_PATH environment variable if you
28714 installed software in a non-standard prefix.
28716 Alternatively, you may set the environment variables DRIPROTO_CFLAGS
28717 and DRIPROTO_LIBS to avoid the need to call pkg-config.
28718 See the pkg-config man page for more details.
28719 " >&2;}
28720 { (exit 1); exit 1; }; }
28721 elif test $pkg_failed = untried; then
28722 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
28723 is in your PATH or set the PKG_CONFIG environment variable to the full
28724 path to pkg-config.
28726 Alternatively, you may set the environment variables DRIPROTO_CFLAGS
28727 and DRIPROTO_LIBS to avoid the need to call pkg-config.
28728 See the pkg-config man page for more details.
28730 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
28731 See \`config.log' for more details." >&5
28732 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
28733 is in your PATH or set the PKG_CONFIG environment variable to the full
28734 path to pkg-config.
28736 Alternatively, you may set the environment variables DRIPROTO_CFLAGS
28737 and DRIPROTO_LIBS to avoid the need to call pkg-config.
28738 See the pkg-config man page for more details.
28740 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
28741 See \`config.log' for more details." >&2;}
28742 { (exit 1); exit 1; }; }
28743 else
28744 DRIPROTO_CFLAGS=$pkg_cv_DRIPROTO_CFLAGS
28745 DRIPROTO_LIBS=$pkg_cv_DRIPROTO_LIBS
28746 { echo "$as_me:$LINENO: result: yes" >&5
28747 echo "${ECHO_T}yes" >&6; }
28751 pkg_failed=no
28752 { echo "$as_me:$LINENO: checking for LIBDRM" >&5
28753 echo $ECHO_N "checking for LIBDRM... $ECHO_C" >&6; }
28755 if test -n "$PKG_CONFIG"; then
28756 if test -n "$LIBDRM_CFLAGS"; then
28757 pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
28758 else
28759 if test -n "$PKG_CONFIG" && \
28760 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.3.0\"") >&5
28761 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.3.0") 2>&5
28762 ac_status=$?
28763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28764 (exit $ac_status); }; then
28765 pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.3.0" 2>/dev/null`
28766 else
28767 pkg_failed=yes
28770 else
28771 pkg_failed=untried
28773 if test -n "$PKG_CONFIG"; then
28774 if test -n "$LIBDRM_LIBS"; then
28775 pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
28776 else
28777 if test -n "$PKG_CONFIG" && \
28778 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.3.0\"") >&5
28779 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.3.0") 2>&5
28780 ac_status=$?
28781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28782 (exit $ac_status); }; then
28783 pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.3.0" 2>/dev/null`
28784 else
28785 pkg_failed=yes
28788 else
28789 pkg_failed=untried
28794 if test $pkg_failed = yes; then
28796 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28797 _pkg_short_errors_supported=yes
28798 else
28799 _pkg_short_errors_supported=no
28801 if test $_pkg_short_errors_supported = yes; then
28802 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libdrm >= 2.3.0"`
28803 else
28804 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libdrm >= 2.3.0"`
28806 # Put the nasty error message in config.log where it belongs
28807 echo "$LIBDRM_PKG_ERRORS" >&5
28809 { { echo "$as_me:$LINENO: error: Package requirements (libdrm >= 2.3.0) were not met:
28811 $LIBDRM_PKG_ERRORS
28813 Consider adjusting the PKG_CONFIG_PATH environment variable if you
28814 installed software in a non-standard prefix.
28816 Alternatively, you may set the environment variables LIBDRM_CFLAGS
28817 and LIBDRM_LIBS to avoid the need to call pkg-config.
28818 See the pkg-config man page for more details.
28819 " >&5
28820 echo "$as_me: error: Package requirements (libdrm >= 2.3.0) were not met:
28822 $LIBDRM_PKG_ERRORS
28824 Consider adjusting the PKG_CONFIG_PATH environment variable if you
28825 installed software in a non-standard prefix.
28827 Alternatively, you may set the environment variables LIBDRM_CFLAGS
28828 and LIBDRM_LIBS to avoid the need to call pkg-config.
28829 See the pkg-config man page for more details.
28830 " >&2;}
28831 { (exit 1); exit 1; }; }
28832 elif test $pkg_failed = untried; then
28833 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
28834 is in your PATH or set the PKG_CONFIG environment variable to the full
28835 path to pkg-config.
28837 Alternatively, you may set the environment variables LIBDRM_CFLAGS
28838 and LIBDRM_LIBS to avoid the need to call pkg-config.
28839 See the pkg-config man page for more details.
28841 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
28842 See \`config.log' for more details." >&5
28843 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
28844 is in your PATH or set the PKG_CONFIG environment variable to the full
28845 path to pkg-config.
28847 Alternatively, you may set the environment variables LIBDRM_CFLAGS
28848 and LIBDRM_LIBS to avoid the need to call pkg-config.
28849 See the pkg-config man page for more details.
28851 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
28852 See \`config.log' for more details." >&2;}
28853 { (exit 1); exit 1; }; }
28854 else
28855 LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
28856 LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
28857 { echo "$as_me:$LINENO: result: yes" >&5
28858 echo "${ECHO_T}yes" >&6; }
28862 pkg_failed=no
28863 { echo "$as_me:$LINENO: checking for GL" >&5
28864 echo $ECHO_N "checking for GL... $ECHO_C" >&6; }
28866 if test -n "$PKG_CONFIG"; then
28867 if test -n "$GL_CFLAGS"; then
28868 pkg_cv_GL_CFLAGS="$GL_CFLAGS"
28869 else
28870 if test -n "$PKG_CONFIG" && \
28871 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glproto >= 1.4.1\"") >&5
28872 ($PKG_CONFIG --exists --print-errors "glproto >= 1.4.1") 2>&5
28873 ac_status=$?
28874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28875 (exit $ac_status); }; then
28876 pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "glproto >= 1.4.1" 2>/dev/null`
28877 else
28878 pkg_failed=yes
28881 else
28882 pkg_failed=untried
28884 if test -n "$PKG_CONFIG"; then
28885 if test -n "$GL_LIBS"; then
28886 pkg_cv_GL_LIBS="$GL_LIBS"
28887 else
28888 if test -n "$PKG_CONFIG" && \
28889 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glproto >= 1.4.1\"") >&5
28890 ($PKG_CONFIG --exists --print-errors "glproto >= 1.4.1") 2>&5
28891 ac_status=$?
28892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28893 (exit $ac_status); }; then
28894 pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "glproto >= 1.4.1" 2>/dev/null`
28895 else
28896 pkg_failed=yes
28899 else
28900 pkg_failed=untried
28905 if test $pkg_failed = yes; then
28907 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28908 _pkg_short_errors_supported=yes
28909 else
28910 _pkg_short_errors_supported=no
28912 if test $_pkg_short_errors_supported = yes; then
28913 GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glproto >= 1.4.1"`
28914 else
28915 GL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glproto >= 1.4.1"`
28917 # Put the nasty error message in config.log where it belongs
28918 echo "$GL_PKG_ERRORS" >&5
28920 { { echo "$as_me:$LINENO: error: Package requirements (glproto >= 1.4.1) were not met:
28922 $GL_PKG_ERRORS
28924 Consider adjusting the PKG_CONFIG_PATH environment variable if you
28925 installed software in a non-standard prefix.
28927 Alternatively, you may set the environment variables GL_CFLAGS
28928 and GL_LIBS to avoid the need to call pkg-config.
28929 See the pkg-config man page for more details.
28930 " >&5
28931 echo "$as_me: error: Package requirements (glproto >= 1.4.1) were not met:
28933 $GL_PKG_ERRORS
28935 Consider adjusting the PKG_CONFIG_PATH environment variable if you
28936 installed software in a non-standard prefix.
28938 Alternatively, you may set the environment variables GL_CFLAGS
28939 and GL_LIBS to avoid the need to call pkg-config.
28940 See the pkg-config man page for more details.
28941 " >&2;}
28942 { (exit 1); exit 1; }; }
28943 elif test $pkg_failed = untried; then
28944 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
28945 is in your PATH or set the PKG_CONFIG environment variable to the full
28946 path to pkg-config.
28948 Alternatively, you may set the environment variables GL_CFLAGS
28949 and GL_LIBS to avoid the need to call pkg-config.
28950 See the pkg-config man page for more details.
28952 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
28953 See \`config.log' for more details." >&5
28954 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
28955 is in your PATH or set the PKG_CONFIG environment variable to the full
28956 path to pkg-config.
28958 Alternatively, you may set the environment variables GL_CFLAGS
28959 and GL_LIBS to avoid the need to call pkg-config.
28960 See the pkg-config man page for more details.
28962 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
28963 See \`config.log' for more details." >&2;}
28964 { (exit 1); exit 1; }; }
28965 else
28966 GL_CFLAGS=$pkg_cv_GL_CFLAGS
28967 GL_LIBS=$pkg_cv_GL_LIBS
28968 { echo "$as_me:$LINENO: result: yes" >&5
28969 echo "${ECHO_T}yes" >&6; }
28972 if test -n "$PKG_CONFIG" && \
28973 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2.0\"") >&5
28974 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2.0") 2>&5
28975 ac_status=$?
28976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28977 (exit $ac_status); }; then
28979 cat >>confdefs.h <<\_ACEOF
28980 #define HAVE_LIBDRM_2_2 1
28981 _ACEOF
28990 if test "x$XINERAMA" = xyes; then
28991 XINERAMA_TRUE=
28992 XINERAMA_FALSE='#'
28993 else
28994 XINERAMA_TRUE='#'
28995 XINERAMA_FALSE=
28998 if test "x$XINERAMA" = xyes; then
29000 cat >>confdefs.h <<\_ACEOF
29001 #define XINERAMA 1
29002 _ACEOF
29005 cat >>confdefs.h <<\_ACEOF
29006 #define PANORAMIX 1
29007 _ACEOF
29009 REQUIRED_MODULES="$REQUIRED_MODULES xineramaproto"
29012 if test "x$XACE" = xyes; then
29013 XACE_TRUE=
29014 XACE_FALSE='#'
29015 else
29016 XACE_TRUE='#'
29017 XACE_FALSE=
29020 if test "x$XACE" = xyes; then
29022 cat >>confdefs.h <<\_ACEOF
29023 #define XACE 1
29024 _ACEOF
29028 if test "x$XCSECURITY" = xyes; then
29029 XCSECURITY_TRUE=
29030 XCSECURITY_FALSE='#'
29031 else
29032 XCSECURITY_TRUE='#'
29033 XCSECURITY_FALSE=
29036 if test "x$XCSECURITY" = xyes; then
29037 if test "x$XACE" != xyes; then
29038 { { echo "$as_me:$LINENO: error: cannot build Security extension without X-ACE" >&5
29039 echo "$as_me: error: cannot build Security extension without X-ACE" >&2;}
29040 { (exit 1); exit 1; }; }
29043 cat >>confdefs.h <<\_ACEOF
29044 #define XCSECURITY 1
29045 _ACEOF
29049 if test "x$XEVIE" = xyes; then
29050 XEVIE_TRUE=
29051 XEVIE_FALSE='#'
29052 else
29053 XEVIE_TRUE='#'
29054 XEVIE_FALSE=
29057 if test "x$XEVIE" = xyes; then
29059 cat >>confdefs.h <<\_ACEOF
29060 #define XEVIE 1
29061 _ACEOF
29063 REQUIRED_MODULES="$REQUIRED_MODULES evieproto"
29066 if test "x$APPGROUP" = xyes; then
29067 APPGROUP_TRUE=
29068 APPGROUP_FALSE='#'
29069 else
29070 APPGROUP_TRUE='#'
29071 APPGROUP_FALSE=
29074 if test "x$APPGROUP" = xyes; then
29075 if test "x$XACE" != xyes || test "x$XCSECURITY" != xyes; then
29076 { { echo "$as_me:$LINENO: error: cannot build APPGROUP extension without X-ACE and XC-SECURITY" >&5
29077 echo "$as_me: error: cannot build APPGROUP extension without X-ACE and XC-SECURITY" >&2;}
29078 { (exit 1); exit 1; }; }
29081 cat >>confdefs.h <<\_ACEOF
29082 #define XAPPGROUP 1
29083 _ACEOF
29087 if test "x$CUP" = xyes; then
29088 CUP_TRUE=
29089 CUP_FALSE='#'
29090 else
29091 CUP_TRUE='#'
29092 CUP_FALSE=
29095 if test "x$CUP" = xyes; then
29097 cat >>confdefs.h <<\_ACEOF
29098 #define TOGCUP 1
29099 _ACEOF
29101 # Requires xextproto which is always required
29104 if test "x$EVI" = xyes; then
29105 EVI_TRUE=
29106 EVI_FALSE='#'
29107 else
29108 EVI_TRUE='#'
29109 EVI_FALSE=
29112 if test "x$EVI" = xyes; then
29114 cat >>confdefs.h <<\_ACEOF
29115 #define EVI 1
29116 _ACEOF
29118 # Requires xextproto which is always required
29121 if test "x$MULTIBUFFER" = xyes; then
29122 MULTIBUFFER_TRUE=
29123 MULTIBUFFER_FALSE='#'
29124 else
29125 MULTIBUFFER_TRUE='#'
29126 MULTIBUFFER_FALSE=
29129 if test "x$MULTIBUFFER" = xyes; then
29131 cat >>confdefs.h <<\_ACEOF
29132 #define MULTIBUFFER 1
29133 _ACEOF
29135 # Requires xextproto which is always required
29138 if test "x$FONTCACHE" = xyes; then
29139 FONTCACHE_TRUE=
29140 FONTCACHE_FALSE='#'
29141 else
29142 FONTCACHE_TRUE='#'
29143 FONTCACHE_FALSE=
29146 if test "x$FONTCACHE" = xyes; then
29148 cat >>confdefs.h <<\_ACEOF
29149 #define FONTCACHE 1
29150 _ACEOF
29152 REQUIRED_MODULES="$REQUIRED_MODULES fontcacheproto"
29155 if test "x$DBE" = xyes; then
29156 DBE_TRUE=
29157 DBE_FALSE='#'
29158 else
29159 DBE_TRUE='#'
29160 DBE_FALSE=
29163 if test "x$DBE" = xyes; then
29165 cat >>confdefs.h <<\_ACEOF
29166 #define DBE 1
29167 _ACEOF
29169 DBE_LIB='$(top_builddir)/dbe/libdbe.la'
29172 if test "x$XF86BIGFONT" = xyes; then
29173 XF86BIGFONT_TRUE=
29174 XF86BIGFONT_FALSE='#'
29175 else
29176 XF86BIGFONT_TRUE='#'
29177 XF86BIGFONT_FALSE=
29180 if test "x$XF86BIGFONT" = xyes; then
29182 cat >>confdefs.h <<\_ACEOF
29183 #define XF86BIGFONT 1
29184 _ACEOF
29188 if test "x$DPMSExtension" = xyes; then
29189 DPMSExtension_TRUE=
29190 DPMSExtension_FALSE='#'
29191 else
29192 DPMSExtension_TRUE='#'
29193 DPMSExtension_FALSE=
29196 if test "x$DPMSExtension" = xyes; then
29198 cat >>confdefs.h <<\_ACEOF
29199 #define DPMSExtension 1
29200 _ACEOF
29204 if test "x$XPRINT" = xauto; then
29206 pkg_failed=no
29207 { echo "$as_me:$LINENO: checking for XPRINTPROTO" >&5
29208 echo $ECHO_N "checking for XPRINTPROTO... $ECHO_C" >&6; }
29210 if test -n "$PKG_CONFIG"; then
29211 if test -n "$XPRINTPROTO_CFLAGS"; then
29212 pkg_cv_XPRINTPROTO_CFLAGS="$XPRINTPROTO_CFLAGS"
29213 else
29214 if test -n "$PKG_CONFIG" && \
29215 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"printproto\"") >&5
29216 ($PKG_CONFIG --exists --print-errors "printproto") 2>&5
29217 ac_status=$?
29218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29219 (exit $ac_status); }; then
29220 pkg_cv_XPRINTPROTO_CFLAGS=`$PKG_CONFIG --cflags "printproto" 2>/dev/null`
29221 else
29222 pkg_failed=yes
29225 else
29226 pkg_failed=untried
29228 if test -n "$PKG_CONFIG"; then
29229 if test -n "$XPRINTPROTO_LIBS"; then
29230 pkg_cv_XPRINTPROTO_LIBS="$XPRINTPROTO_LIBS"
29231 else
29232 if test -n "$PKG_CONFIG" && \
29233 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"printproto\"") >&5
29234 ($PKG_CONFIG --exists --print-errors "printproto") 2>&5
29235 ac_status=$?
29236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29237 (exit $ac_status); }; then
29238 pkg_cv_XPRINTPROTO_LIBS=`$PKG_CONFIG --libs "printproto" 2>/dev/null`
29239 else
29240 pkg_failed=yes
29243 else
29244 pkg_failed=untried
29249 if test $pkg_failed = yes; then
29251 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29252 _pkg_short_errors_supported=yes
29253 else
29254 _pkg_short_errors_supported=no
29256 if test $_pkg_short_errors_supported = yes; then
29257 XPRINTPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "printproto"`
29258 else
29259 XPRINTPROTO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "printproto"`
29261 # Put the nasty error message in config.log where it belongs
29262 echo "$XPRINTPROTO_PKG_ERRORS" >&5
29264 { echo "$as_me:$LINENO: result: no" >&5
29265 echo "${ECHO_T}no" >&6; }
29266 XPRINT=no
29267 elif test $pkg_failed = untried; then
29268 XPRINT=no
29269 else
29270 XPRINTPROTO_CFLAGS=$pkg_cv_XPRINTPROTO_CFLAGS
29271 XPRINTPROTO_LIBS=$pkg_cv_XPRINTPROTO_LIBS
29272 { echo "$as_me:$LINENO: result: yes" >&5
29273 echo "${ECHO_T}yes" >&6; }
29274 XPRINT=yes
29277 if test "x$XPRINT" = xyes; then
29278 XPRINT_TRUE=
29279 XPRINT_FALSE='#'
29280 else
29281 XPRINT_TRUE='#'
29282 XPRINT_FALSE=
29285 if test "x$XPRINT" = xyes; then
29287 cat >>confdefs.h <<\_ACEOF
29288 #define XPRINT 1
29289 _ACEOF
29291 REQUIRED_MODULES="$REQUIRED_MODULES printproto"
29294 if test "x$BUILTIN_FONTS" = xyes; then
29296 cat >>confdefs.h <<\_ACEOF
29297 #define BUILTIN_FONTS 1
29298 _ACEOF
29301 cat >>confdefs.h <<\_ACEOF
29302 #define NOFONTSERVERACCESS 1
29303 _ACEOF
29305 FONTPATH="built-ins"
29308 if test "x$XCALIBRATE" = xyes && test "$KDRIVE" = yes; then
29310 cat >>confdefs.h <<\_ACEOF
29311 #define XCALIBRATE 1
29312 _ACEOF
29314 REQUIRED_MODULES="$REQUIRED_MODULES xcalibrateproto"
29315 else
29316 XCALIBRATE=no
29318 if test "x$XCALIBRATE" = xyes; then
29319 XCALIBRATE_TRUE=
29320 XCALIBRATE_FALSE='#'
29321 else
29322 XCALIBRATE_TRUE='#'
29323 XCALIBRATE_FALSE=
29328 cat >>confdefs.h <<\_ACEOF
29329 #define RENDER 1
29330 _ACEOF
29332 RENDER_LIB='$(top_builddir)/render/librender.la'
29333 RENDER_INC='-I$(top_srcdir)/render'
29336 cat >>confdefs.h <<\_ACEOF
29337 #define RANDR 1
29338 _ACEOF
29340 RANDR_LIB='$(top_builddir)/randr/librandr.la'
29341 RANDR_INC='-I$(top_srcdir)/randr'
29344 cat >>confdefs.h <<\_ACEOF
29345 #define XFIXES 1
29346 _ACEOF
29348 FIXES_LIB='$(top_builddir)/xfixes/libxfixes.la'
29349 FIXES_INC='-I$(top_srcdir)/xfixes'
29352 cat >>confdefs.h <<\_ACEOF
29353 #define DAMAGE 1
29354 _ACEOF
29356 DAMAGE_LIB='$(top_builddir)/damageext/libdamageext.la'
29357 DAMAGE_INC='-I$(top_srcdir)/damageext'
29358 MIEXT_DAMAGE_LIB='$(top_builddir)/miext/damage/libdamage.la'
29359 MIEXT_DAMAGE_INC='-I$(top_srcdir)/miext/damage'
29362 cat >>confdefs.h <<\_ACEOF
29363 #define XINPUT 1
29364 _ACEOF
29366 XI_LIB='$(top_builddir)/Xi/libXi.la'
29367 XI_INC='-I$(top_srcdir)/Xi'
29369 if test "x$XF86UTILS" = xyes; then
29370 XF86UTILS_TRUE=
29371 XF86UTILS_FALSE='#'
29372 else
29373 XF86UTILS_TRUE='#'
29374 XF86UTILS_FALSE=
29379 cat >>confdefs.h <<\_ACEOF
29380 #define SHAPE 1
29381 _ACEOF
29385 cat >>confdefs.h <<\_ACEOF
29386 #define XKB 1
29387 _ACEOF
29390 cat >>confdefs.h <<\_ACEOF
29391 #define XKB_IN_SERVER 1
29392 _ACEOF
29395 cat >>confdefs.h <<\_ACEOF
29396 #define XKB_DFLT_DISABLED 0
29397 _ACEOF
29399 REQUIRED_MODULES="$REQUIRED_MODULES xkbfile"
29400 XKB_LIB='$(top_builddir)/xkb/libxkb.la'
29401 XKB_STUB_LIB='$(top_builddir)/xkb/libxkbstubs.la'
29403 { echo "$as_me:$LINENO: checking for strcasecmp" >&5
29404 echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; }
29405 if test "${ac_cv_func_strcasecmp+set}" = set; then
29406 echo $ECHO_N "(cached) $ECHO_C" >&6
29407 else
29408 cat >conftest.$ac_ext <<_ACEOF
29409 /* confdefs.h. */
29410 _ACEOF
29411 cat confdefs.h >>conftest.$ac_ext
29412 cat >>conftest.$ac_ext <<_ACEOF
29413 /* end confdefs.h. */
29414 /* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
29415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29416 #define strcasecmp innocuous_strcasecmp
29418 /* System header to define __stub macros and hopefully few prototypes,
29419 which can conflict with char strcasecmp (); below.
29420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29421 <limits.h> exists even on freestanding compilers. */
29423 #ifdef __STDC__
29424 # include <limits.h>
29425 #else
29426 # include <assert.h>
29427 #endif
29429 #undef strcasecmp
29431 /* Override any GCC internal prototype to avoid an error.
29432 Use char because int might match the return type of a GCC
29433 builtin and then its argument prototype would still apply. */
29434 #ifdef __cplusplus
29435 extern "C"
29436 #endif
29437 char strcasecmp ();
29438 /* The GNU C library defines this for functions which it implements
29439 to always fail with ENOSYS. Some functions are actually named
29440 something starting with __ and the normal name is an alias. */
29441 #if defined __stub_strcasecmp || defined __stub___strcasecmp
29442 choke me
29443 #endif
29446 main ()
29448 return strcasecmp ();
29450 return 0;
29452 _ACEOF
29453 rm -f conftest.$ac_objext conftest$ac_exeext
29454 if { (ac_try="$ac_link"
29455 case "(($ac_try" in
29456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29457 *) ac_try_echo=$ac_try;;
29458 esac
29459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29460 (eval "$ac_link") 2>conftest.er1
29461 ac_status=$?
29462 grep -v '^ *+' conftest.er1 >conftest.err
29463 rm -f conftest.er1
29464 cat conftest.err >&5
29465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29466 (exit $ac_status); } && {
29467 test -z "$ac_c_werror_flag" ||
29468 test ! -s conftest.err
29469 } && test -s conftest$ac_exeext &&
29470 $as_test_x conftest$ac_exeext; then
29471 ac_cv_func_strcasecmp=yes
29472 else
29473 echo "$as_me: failed program was:" >&5
29474 sed 's/^/| /' conftest.$ac_ext >&5
29476 ac_cv_func_strcasecmp=no
29479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29480 conftest$ac_exeext conftest.$ac_ext
29482 { echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
29483 echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; }
29484 if test $ac_cv_func_strcasecmp = yes; then
29486 else
29488 cat >>confdefs.h <<\_ACEOF
29489 #define NEED_STRCASECMP 1
29490 _ACEOF
29495 if test "x$NULL_ROOT_CURSOR" = xyes; then
29497 cat >>confdefs.h <<\_ACEOF
29498 #define NULL_ROOT_CURSOR 1
29499 _ACEOF
29504 pkg_failed=no
29505 { echo "$as_me:$LINENO: checking for XDMCP" >&5
29506 echo $ECHO_N "checking for XDMCP... $ECHO_C" >&6; }
29508 if test -n "$PKG_CONFIG"; then
29509 if test -n "$XDMCP_CFLAGS"; then
29510 pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS"
29511 else
29512 if test -n "$PKG_CONFIG" && \
29513 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xdmcp\"") >&5
29514 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
29515 ac_status=$?
29516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517 (exit $ac_status); }; then
29518 pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null`
29519 else
29520 pkg_failed=yes
29523 else
29524 pkg_failed=untried
29526 if test -n "$PKG_CONFIG"; then
29527 if test -n "$XDMCP_LIBS"; then
29528 pkg_cv_XDMCP_LIBS="$XDMCP_LIBS"
29529 else
29530 if test -n "$PKG_CONFIG" && \
29531 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xdmcp\"") >&5
29532 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
29533 ac_status=$?
29534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29535 (exit $ac_status); }; then
29536 pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null`
29537 else
29538 pkg_failed=yes
29541 else
29542 pkg_failed=untried
29547 if test $pkg_failed = yes; then
29549 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29550 _pkg_short_errors_supported=yes
29551 else
29552 _pkg_short_errors_supported=no
29554 if test $_pkg_short_errors_supported = yes; then
29555 XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xdmcp"`
29556 else
29557 XDMCP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xdmcp"`
29559 # Put the nasty error message in config.log where it belongs
29560 echo "$XDMCP_PKG_ERRORS" >&5
29562 { echo "$as_me:$LINENO: result: no" >&5
29563 echo "${ECHO_T}no" >&6; }
29564 have_libxdmcp="no"
29565 elif test $pkg_failed = untried; then
29566 have_libxdmcp="no"
29567 else
29568 XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS
29569 XDMCP_LIBS=$pkg_cv_XDMCP_LIBS
29570 { echo "$as_me:$LINENO: result: yes" >&5
29571 echo "${ECHO_T}yes" >&6; }
29572 have_libxdmcp="yes"
29574 if test "x$have_libxdmcp" = xyes; then
29575 { echo "$as_me:$LINENO: checking for XdmcpWrap in -lXdmcp" >&5
29576 echo $ECHO_N "checking for XdmcpWrap in -lXdmcp... $ECHO_C" >&6; }
29577 if test "${ac_cv_lib_Xdmcp_XdmcpWrap+set}" = set; then
29578 echo $ECHO_N "(cached) $ECHO_C" >&6
29579 else
29580 ac_check_lib_save_LIBS=$LIBS
29581 LIBS="-lXdmcp $XDMCP_LIBS $LIBS"
29582 cat >conftest.$ac_ext <<_ACEOF
29583 /* confdefs.h. */
29584 _ACEOF
29585 cat confdefs.h >>conftest.$ac_ext
29586 cat >>conftest.$ac_ext <<_ACEOF
29587 /* end confdefs.h. */
29589 /* Override any GCC internal prototype to avoid an error.
29590 Use char because int might match the return type of a GCC
29591 builtin and then its argument prototype would still apply. */
29592 #ifdef __cplusplus
29593 extern "C"
29594 #endif
29595 char XdmcpWrap ();
29597 main ()
29599 return XdmcpWrap ();
29601 return 0;
29603 _ACEOF
29604 rm -f conftest.$ac_objext conftest$ac_exeext
29605 if { (ac_try="$ac_link"
29606 case "(($ac_try" in
29607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29608 *) ac_try_echo=$ac_try;;
29609 esac
29610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29611 (eval "$ac_link") 2>conftest.er1
29612 ac_status=$?
29613 grep -v '^ *+' conftest.er1 >conftest.err
29614 rm -f conftest.er1
29615 cat conftest.err >&5
29616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29617 (exit $ac_status); } && {
29618 test -z "$ac_c_werror_flag" ||
29619 test ! -s conftest.err
29620 } && test -s conftest$ac_exeext &&
29621 $as_test_x conftest$ac_exeext; then
29622 ac_cv_lib_Xdmcp_XdmcpWrap=yes
29623 else
29624 echo "$as_me: failed program was:" >&5
29625 sed 's/^/| /' conftest.$ac_ext >&5
29627 ac_cv_lib_Xdmcp_XdmcpWrap=no
29630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29631 conftest$ac_exeext conftest.$ac_ext
29632 LIBS=$ac_check_lib_save_LIBS
29634 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5
29635 echo "${ECHO_T}$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; }
29636 if test $ac_cv_lib_Xdmcp_XdmcpWrap = yes; then
29637 have_xdmcpwrap="yes"
29638 else
29639 have_xdmcpwrap="no"
29643 if test "x$XDMCP" = xauto; then
29644 if test "x$have_libxdmcp" = xyes; then
29645 XDMCP=yes
29646 else
29647 XDMCP=no
29650 if test "x$XDMAUTH" = xauto; then
29651 if test "x$have_libxdmcp" = xyes && test "x$have_xdmcpwrap" = xyes; then
29652 XDMAUTH=yes
29653 else
29654 XDMAUTH=no
29658 if test "x$XDMCP" = xyes; then
29659 XDMCP_TRUE=
29660 XDMCP_FALSE='#'
29661 else
29662 XDMCP_TRUE='#'
29663 XDMCP_FALSE=
29666 if test "x$XDMCP" = xyes; then
29668 cat >>confdefs.h <<\_ACEOF
29669 #define XDMCP 1
29670 _ACEOF
29672 REQUIRED_LIBS="$REQUIRED_LIBS xdmcp"
29673 XDMCP_MODULES="xdmcp"
29676 if test "x$XDMAUTH" = xyes; then
29677 XDMAUTH_TRUE=
29678 XDMAUTH_FALSE='#'
29679 else
29680 XDMAUTH_TRUE='#'
29681 XDMAUTH_FALSE=
29684 if test "x$XDMAUTH" = xyes; then
29686 cat >>confdefs.h <<\_ACEOF
29687 #define HASXDMAUTH 1
29688 _ACEOF
29690 if ! test "x$XDMCP" = xyes; then
29691 REQUIRED_LIBS="$REQUIRED_LIBS xdmcp"
29692 XDMCP_MODULES="xdmcp"
29696 if test "x$USE_RGB_BUILTIN" = xyes; then
29697 USE_RGB_BUILTIN_TRUE=
29698 USE_RGB_BUILTIN_FALSE='#'
29699 else
29700 USE_RGB_BUILTIN_TRUE='#'
29701 USE_RGB_BUILTIN_FALSE=
29704 if test "x$USE_RGB_BUILTIN" = xyes; then
29706 cat >>confdefs.h <<\_ACEOF
29707 #define USE_RGB_BUILTIN 1
29708 _ACEOF
29713 prefix_NONE=
29714 exec_prefix_NONE=
29715 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29716 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29717 eval ac_define_dir="\"$FONTPATH\""
29718 eval ac_define_dir="\"$ac_define_dir\""
29719 COMPILEDDEFAULTFONTPATH="$ac_define_dir"
29722 cat >>confdefs.h <<_ACEOF
29723 #define COMPILEDDEFAULTFONTPATH "$ac_define_dir"
29724 _ACEOF
29726 test "$prefix_NONE" && prefix=NONE
29727 test "$exec_prefix_NONE" && exec_prefix=NONE
29730 prefix_NONE=
29731 exec_prefix_NONE=
29732 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29733 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29734 eval ac_define_dir="\"$RGBPATH\""
29735 eval ac_define_dir="\"$ac_define_dir\""
29736 RGB_DB="$ac_define_dir"
29739 cat >>confdefs.h <<_ACEOF
29740 #define RGB_DB "$ac_define_dir"
29741 _ACEOF
29743 test "$prefix_NONE" && prefix=NONE
29744 test "$exec_prefix_NONE" && exec_prefix=NONE
29747 prefix_NONE=
29748 exec_prefix_NONE=
29749 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29750 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29751 eval ac_define_dir="\"$SERVERCONFIG\""
29752 eval ac_define_dir="\"$ac_define_dir\""
29753 SERVERCONFIGdir="$ac_define_dir"
29756 cat >>confdefs.h <<_ACEOF
29757 #define SERVERCONFIGdir "$ac_define_dir"
29758 _ACEOF
29760 test "$prefix_NONE" && prefix=NONE
29761 test "$exec_prefix_NONE" && exec_prefix=NONE
29764 prefix_NONE=
29765 exec_prefix_NONE=
29766 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29767 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29768 eval ac_define_dir="\"$FONTDIR\""
29769 eval ac_define_dir="\"$ac_define_dir\""
29770 BASE_FONT_PATH="$ac_define_dir"
29773 cat >>confdefs.h <<_ACEOF
29774 #define BASE_FONT_PATH "$ac_define_dir"
29775 _ACEOF
29777 test "$prefix_NONE" && prefix=NONE
29778 test "$exec_prefix_NONE" && exec_prefix=NONE
29781 prefix_NONE=
29782 exec_prefix_NONE=
29783 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29784 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29785 eval ac_define_dir="\"$DRI_DRIVER_PATH\""
29786 eval ac_define_dir="\"$ac_define_dir\""
29787 DRI_DRIVER_PATH="$ac_define_dir"
29790 cat >>confdefs.h <<_ACEOF
29791 #define DRI_DRIVER_PATH "$ac_define_dir"
29792 _ACEOF
29794 test "$prefix_NONE" && prefix=NONE
29795 test "$exec_prefix_NONE" && exec_prefix=NONE
29798 cat >>confdefs.h <<_ACEOF
29799 #define XVENDORNAME "$VENDOR_NAME"
29800 _ACEOF
29803 cat >>confdefs.h <<_ACEOF
29804 #define XVENDORNAMESHORT "$VENDOR_NAME_SHORT"
29805 _ACEOF
29808 cat >>confdefs.h <<_ACEOF
29809 #define XORG_DATE "$RELEASE_DATE"
29810 _ACEOF
29813 cat >>confdefs.h <<_ACEOF
29814 #define XORG_MAN_VERSION "$VENDOR_MAN_VERSION"
29815 _ACEOF
29818 cat >>confdefs.h <<_ACEOF
29819 #define BUILDERADDR "$BUILDERADDR"
29820 _ACEOF
29823 if test -z "$OSNAME"; then
29824 OSNAME="UNKNOWN"
29828 cat >>confdefs.h <<_ACEOF
29829 #define OSNAME "$OSNAME"
29830 _ACEOF
29833 cat >>confdefs.h <<_ACEOF
29834 #define OSVENDOR "$OSVENDOR"
29835 _ACEOF
29838 cat >>confdefs.h <<_ACEOF
29839 #define BUILDERSTRING "$BUILDERSTRING"
29840 _ACEOF
29849 cat >>confdefs.h <<\_ACEOF
29850 #define DDXOSINIT 1
29851 _ACEOF
29854 cat >>confdefs.h <<\_ACEOF
29855 #define SERVER_LOCK 1
29856 _ACEOF
29859 cat >>confdefs.h <<\_ACEOF
29860 #define SMART_SCHEDULE 1
29861 _ACEOF
29864 cat >>confdefs.h <<\_ACEOF
29865 #define NO_LIBCWRAPPER 1
29866 _ACEOF
29869 if test "x$DEBUGGING" = xyes; then
29871 cat >>confdefs.h <<\_ACEOF
29872 #define DEBUG 1
29873 _ACEOF
29875 else
29877 cat >>confdefs.h <<\_ACEOF
29878 #define NDEBUG 1
29879 _ACEOF
29882 if test "x$DEBUGGING" = xyes; then
29883 DEBUG_TRUE=
29884 DEBUG_FALSE='#'
29885 else
29886 DEBUG_TRUE='#'
29887 DEBUG_FALSE=
29892 cat >>confdefs.h <<\_ACEOF
29893 #define USE_RGB_TXT 1
29894 _ACEOF
29897 cat >>confdefs.h <<\_ACEOF
29898 #define MITMISC 1
29899 _ACEOF
29902 cat >>confdefs.h <<\_ACEOF
29903 #define XTEST 1
29904 _ACEOF
29907 cat >>confdefs.h <<\_ACEOF
29908 #define XSYNC 1
29909 _ACEOF
29912 cat >>confdefs.h <<\_ACEOF
29913 #define XCMISC 1
29914 _ACEOF
29917 cat >>confdefs.h <<\_ACEOF
29918 #define BIGREQS 1
29919 _ACEOF
29922 cat >>confdefs.h <<\_ACEOF
29923 #define PIXPRIV 1
29924 _ACEOF
29927 if test "x$WDTRACE" != "xno" ; then
29928 DIX_LIB='$(top_builddir)/dix/dix.O'
29929 OS_LIB='$(top_builddir)/os/os.O'
29930 else
29931 DIX_LIB='$(top_builddir)/dix/libdix.la'
29932 OS_LIB='$(top_builddir)/os/libos.la'
29934 CWRAP_LIB='$(top_builddir)/os/libcwrapper.la'
29935 MI_LIB='$(top_builddir)/mi/libmi.la'
29936 MI_EXT_LIB='$(top_builddir)/mi/libmiext.la'
29937 MI_INC='-I$(top_srcdir)/mi'
29938 FB_LIB='$(top_builddir)/fb/libfb.la'
29939 FB_INC='-I$(top_srcdir)/fb'
29940 MIEXT_SHADOW_INC='-I$(top_srcdir)/miext/shadow'
29941 MIEXT_SHADOW_LIB='$(top_builddir)/miext/shadow/libshadow.la'
29942 XPSTUBS_LIB='$(top_builddir)/dix/libxpstubs.la'
29943 CORE_INCS='-I$(top_srcdir)/include -I$(top_builddir)/include'
29946 pkg_failed=no
29947 { echo "$as_me:$LINENO: checking for XSERVERCFLAGS" >&5
29948 echo $ECHO_N "checking for XSERVERCFLAGS... $ECHO_C" >&6; }
29950 if test -n "$PKG_CONFIG"; then
29951 if test -n "$XSERVERCFLAGS_CFLAGS"; then
29952 pkg_cv_XSERVERCFLAGS_CFLAGS="$XSERVERCFLAGS_CFLAGS"
29953 else
29954 if test -n "$PKG_CONFIG" && \
29955 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\"") >&5
29956 ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5
29957 ac_status=$?
29958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29959 (exit $ac_status); }; then
29960 pkg_cv_XSERVERCFLAGS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null`
29961 else
29962 pkg_failed=yes
29965 else
29966 pkg_failed=untried
29968 if test -n "$PKG_CONFIG"; then
29969 if test -n "$XSERVERCFLAGS_LIBS"; then
29970 pkg_cv_XSERVERCFLAGS_LIBS="$XSERVERCFLAGS_LIBS"
29971 else
29972 if test -n "$PKG_CONFIG" && \
29973 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\"") >&5
29974 ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5
29975 ac_status=$?
29976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29977 (exit $ac_status); }; then
29978 pkg_cv_XSERVERCFLAGS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null`
29979 else
29980 pkg_failed=yes
29983 else
29984 pkg_failed=untried
29989 if test $pkg_failed = yes; then
29991 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29992 _pkg_short_errors_supported=yes
29993 else
29994 _pkg_short_errors_supported=no
29996 if test $_pkg_short_errors_supported = yes; then
29997 XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS"`
29998 else
29999 XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS"`
30001 # Put the nasty error message in config.log where it belongs
30002 echo "$XSERVERCFLAGS_PKG_ERRORS" >&5
30004 { { echo "$as_me:$LINENO: error: Package requirements ($REQUIRED_MODULES $REQUIRED_LIBS) were not met:
30006 $XSERVERCFLAGS_PKG_ERRORS
30008 Consider adjusting the PKG_CONFIG_PATH environment variable if you
30009 installed software in a non-standard prefix.
30011 Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS
30012 and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config.
30013 See the pkg-config man page for more details.
30014 " >&5
30015 echo "$as_me: error: Package requirements ($REQUIRED_MODULES $REQUIRED_LIBS) were not met:
30017 $XSERVERCFLAGS_PKG_ERRORS
30019 Consider adjusting the PKG_CONFIG_PATH environment variable if you
30020 installed software in a non-standard prefix.
30022 Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS
30023 and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config.
30024 See the pkg-config man page for more details.
30025 " >&2;}
30026 { (exit 1); exit 1; }; }
30027 elif test $pkg_failed = untried; then
30028 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
30029 is in your PATH or set the PKG_CONFIG environment variable to the full
30030 path to pkg-config.
30032 Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS
30033 and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config.
30034 See the pkg-config man page for more details.
30036 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
30037 See \`config.log' for more details." >&5
30038 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
30039 is in your PATH or set the PKG_CONFIG environment variable to the full
30040 path to pkg-config.
30042 Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS
30043 and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config.
30044 See the pkg-config man page for more details.
30046 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
30047 See \`config.log' for more details." >&2;}
30048 { (exit 1); exit 1; }; }
30049 else
30050 XSERVERCFLAGS_CFLAGS=$pkg_cv_XSERVERCFLAGS_CFLAGS
30051 XSERVERCFLAGS_LIBS=$pkg_cv_XSERVERCFLAGS_LIBS
30052 { echo "$as_me:$LINENO: result: yes" >&5
30053 echo "${ECHO_T}yes" >&6; }
30057 pkg_failed=no
30058 { echo "$as_me:$LINENO: checking for XSERVERLIBS" >&5
30059 echo $ECHO_N "checking for XSERVERLIBS... $ECHO_C" >&6; }
30061 if test -n "$PKG_CONFIG"; then
30062 if test -n "$XSERVERLIBS_CFLAGS"; then
30063 pkg_cv_XSERVERLIBS_CFLAGS="$XSERVERLIBS_CFLAGS"
30064 else
30065 if test -n "$PKG_CONFIG" && \
30066 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\"") >&5
30067 ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5
30068 ac_status=$?
30069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30070 (exit $ac_status); }; then
30071 pkg_cv_XSERVERLIBS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_LIBS" 2>/dev/null`
30072 else
30073 pkg_failed=yes
30076 else
30077 pkg_failed=untried
30079 if test -n "$PKG_CONFIG"; then
30080 if test -n "$XSERVERLIBS_LIBS"; then
30081 pkg_cv_XSERVERLIBS_LIBS="$XSERVERLIBS_LIBS"
30082 else
30083 if test -n "$PKG_CONFIG" && \
30084 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\"") >&5
30085 ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5
30086 ac_status=$?
30087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30088 (exit $ac_status); }; then
30089 pkg_cv_XSERVERLIBS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_LIBS" 2>/dev/null`
30090 else
30091 pkg_failed=yes
30094 else
30095 pkg_failed=untried
30100 if test $pkg_failed = yes; then
30102 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30103 _pkg_short_errors_supported=yes
30104 else
30105 _pkg_short_errors_supported=no
30107 if test $_pkg_short_errors_supported = yes; then
30108 XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$REQUIRED_LIBS"`
30109 else
30110 XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$REQUIRED_LIBS"`
30112 # Put the nasty error message in config.log where it belongs
30113 echo "$XSERVERLIBS_PKG_ERRORS" >&5
30115 { { echo "$as_me:$LINENO: error: Package requirements ($REQUIRED_LIBS) were not met:
30117 $XSERVERLIBS_PKG_ERRORS
30119 Consider adjusting the PKG_CONFIG_PATH environment variable if you
30120 installed software in a non-standard prefix.
30122 Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS
30123 and XSERVERLIBS_LIBS to avoid the need to call pkg-config.
30124 See the pkg-config man page for more details.
30125 " >&5
30126 echo "$as_me: error: Package requirements ($REQUIRED_LIBS) were not met:
30128 $XSERVERLIBS_PKG_ERRORS
30130 Consider adjusting the PKG_CONFIG_PATH environment variable if you
30131 installed software in a non-standard prefix.
30133 Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS
30134 and XSERVERLIBS_LIBS to avoid the need to call pkg-config.
30135 See the pkg-config man page for more details.
30136 " >&2;}
30137 { (exit 1); exit 1; }; }
30138 elif test $pkg_failed = untried; then
30139 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
30140 is in your PATH or set the PKG_CONFIG environment variable to the full
30141 path to pkg-config.
30143 Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS
30144 and XSERVERLIBS_LIBS to avoid the need to call pkg-config.
30145 See the pkg-config man page for more details.
30147 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
30148 See \`config.log' for more details." >&5
30149 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
30150 is in your PATH or set the PKG_CONFIG environment variable to the full
30151 path to pkg-config.
30153 Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS
30154 and XSERVERLIBS_LIBS to avoid the need to call pkg-config.
30155 See the pkg-config man page for more details.
30157 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
30158 See \`config.log' for more details." >&2;}
30159 { (exit 1); exit 1; }; }
30160 else
30161 XSERVERLIBS_CFLAGS=$pkg_cv_XSERVERLIBS_CFLAGS
30162 XSERVERLIBS_LIBS=$pkg_cv_XSERVERLIBS_LIBS
30163 { echo "$as_me:$LINENO: result: yes" >&5
30164 echo "${ECHO_T}yes" >&6; }
30168 XSERVER_CFLAGS="${XSERVERCFLAGS_CFLAGS}"
30169 XSERVER_LIBS="${XSERVERLIBS_LIBS} ${SYS_LIBS} ${LIBS}"
30172 # The Xorg binary needs to export symbols so that they can be used from modules
30173 # Some platforms require extra flags to do this. gcc should set these flags
30174 # when -rdynamic is passed to it, other compilers/linkers may need to be added
30175 # here.
30176 if test "x$GCC" = "xyes"; then
30177 GCC_WARNINGS1="-Wall -Wpointer-arith -Wstrict-prototypes"
30178 GCC_WARNINGS2="-Wmissing-prototypes -Wmissing-declarations"
30179 GCC_WARNINGS3="-Wnested-externs -fno-strict-aliasing"
30180 GCC_WARNINGS="$GCC_WARNINGS1 $GCC_WARNINGS2 $GCC_WARNINGS3"
30181 if test "x$WERROR" = "xyes"; then
30182 GCC_WARNINGS="${GCC_WARNINGS} -Werror"
30184 XSERVER_CFLAGS="$GCC_WARNINGS $XSERVER_CFLAGS"
30186 LD_EXPORT_SYMBOLS_FLAG="-rdynamic"
30188 case $host_os in
30189 darwin*)
30190 LD_EXPORT_SYMBOLS_FLAG=""
30192 openbsd*)
30193 LD_EXPORT_SYMBOLS_FLAG="-Wl,--export-dynamic"
30195 esac
30199 for ac_func in clock_gettime
30201 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30202 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30204 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30205 echo $ECHO_N "(cached) $ECHO_C" >&6
30206 else
30207 cat >conftest.$ac_ext <<_ACEOF
30208 /* confdefs.h. */
30209 _ACEOF
30210 cat confdefs.h >>conftest.$ac_ext
30211 cat >>conftest.$ac_ext <<_ACEOF
30212 /* end confdefs.h. */
30213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30215 #define $ac_func innocuous_$ac_func
30217 /* System header to define __stub macros and hopefully few prototypes,
30218 which can conflict with char $ac_func (); below.
30219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30220 <limits.h> exists even on freestanding compilers. */
30222 #ifdef __STDC__
30223 # include <limits.h>
30224 #else
30225 # include <assert.h>
30226 #endif
30228 #undef $ac_func
30230 /* Override any GCC internal prototype to avoid an error.
30231 Use char because int might match the return type of a GCC
30232 builtin and then its argument prototype would still apply. */
30233 #ifdef __cplusplus
30234 extern "C"
30235 #endif
30236 char $ac_func ();
30237 /* The GNU C library defines this for functions which it implements
30238 to always fail with ENOSYS. Some functions are actually named
30239 something starting with __ and the normal name is an alias. */
30240 #if defined __stub_$ac_func || defined __stub___$ac_func
30241 choke me
30242 #endif
30245 main ()
30247 return $ac_func ();
30249 return 0;
30251 _ACEOF
30252 rm -f conftest.$ac_objext conftest$ac_exeext
30253 if { (ac_try="$ac_link"
30254 case "(($ac_try" in
30255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30256 *) ac_try_echo=$ac_try;;
30257 esac
30258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30259 (eval "$ac_link") 2>conftest.er1
30260 ac_status=$?
30261 grep -v '^ *+' conftest.er1 >conftest.err
30262 rm -f conftest.er1
30263 cat conftest.err >&5
30264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30265 (exit $ac_status); } && {
30266 test -z "$ac_c_werror_flag" ||
30267 test ! -s conftest.err
30268 } && test -s conftest$ac_exeext &&
30269 $as_test_x conftest$ac_exeext; then
30270 eval "$as_ac_var=yes"
30271 else
30272 echo "$as_me: failed program was:" >&5
30273 sed 's/^/| /' conftest.$ac_ext >&5
30275 eval "$as_ac_var=no"
30278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30279 conftest$ac_exeext conftest.$ac_ext
30281 ac_res=`eval echo '${'$as_ac_var'}'`
30282 { echo "$as_me:$LINENO: result: $ac_res" >&5
30283 echo "${ECHO_T}$ac_res" >&6; }
30284 if test `eval echo '${'$as_ac_var'}'` = yes; then
30285 cat >>confdefs.h <<_ACEOF
30286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30287 _ACEOF
30288 have_clock_gettime=yes
30289 else
30290 { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
30291 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
30292 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
30293 echo $ECHO_N "(cached) $ECHO_C" >&6
30294 else
30295 ac_check_lib_save_LIBS=$LIBS
30296 LIBS="-lrt $LIBS"
30297 cat >conftest.$ac_ext <<_ACEOF
30298 /* confdefs.h. */
30299 _ACEOF
30300 cat confdefs.h >>conftest.$ac_ext
30301 cat >>conftest.$ac_ext <<_ACEOF
30302 /* end confdefs.h. */
30304 /* Override any GCC internal prototype to avoid an error.
30305 Use char because int might match the return type of a GCC
30306 builtin and then its argument prototype would still apply. */
30307 #ifdef __cplusplus
30308 extern "C"
30309 #endif
30310 char clock_gettime ();
30312 main ()
30314 return clock_gettime ();
30316 return 0;
30318 _ACEOF
30319 rm -f conftest.$ac_objext conftest$ac_exeext
30320 if { (ac_try="$ac_link"
30321 case "(($ac_try" in
30322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30323 *) ac_try_echo=$ac_try;;
30324 esac
30325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30326 (eval "$ac_link") 2>conftest.er1
30327 ac_status=$?
30328 grep -v '^ *+' conftest.er1 >conftest.err
30329 rm -f conftest.er1
30330 cat conftest.err >&5
30331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30332 (exit $ac_status); } && {
30333 test -z "$ac_c_werror_flag" ||
30334 test ! -s conftest.err
30335 } && test -s conftest$ac_exeext &&
30336 $as_test_x conftest$ac_exeext; then
30337 ac_cv_lib_rt_clock_gettime=yes
30338 else
30339 echo "$as_me: failed program was:" >&5
30340 sed 's/^/| /' conftest.$ac_ext >&5
30342 ac_cv_lib_rt_clock_gettime=no
30345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30346 conftest$ac_exeext conftest.$ac_ext
30347 LIBS=$ac_check_lib_save_LIBS
30349 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
30350 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
30351 if test $ac_cv_lib_rt_clock_gettime = yes; then
30352 have_clock_gettime=-lrt
30353 else
30354 have_clock_gettime=no
30358 done
30361 { echo "$as_me:$LINENO: checking for a useful monotonic clock ..." >&5
30362 echo $ECHO_N "checking for a useful monotonic clock ...... $ECHO_C" >&6; }
30364 if ! test "x$have_clock_gettime" = xno; then
30365 if ! test "x$have_clock_gettime" = xyes; then
30366 CLOCK_LIBS="$have_clock_gettime"
30367 else
30368 CLOCK_LIBS=""
30371 LIBS_SAVE="$LIBS"
30372 LIBS="$CLOCK_LIBS"
30374 if test "$cross_compiling" = yes; then
30375 MONOTONIC_CLOCK="cross compiling"
30376 else
30377 cat >conftest.$ac_ext <<_ACEOF
30379 #define _POSIX_C_SOURCE 199309L
30380 #include <time.h>
30382 int main(int argc, char *argv[]) {
30383 struct timespec tp;
30385 if (clock_gettime(CLOCK_MONOTONIC, &tp) == 0)
30386 return 0;
30387 else
30388 return 1;
30391 _ACEOF
30392 rm -f conftest$ac_exeext
30393 if { (ac_try="$ac_link"
30394 case "(($ac_try" in
30395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30396 *) ac_try_echo=$ac_try;;
30397 esac
30398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30399 (eval "$ac_link") 2>&5
30400 ac_status=$?
30401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30402 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30403 { (case "(($ac_try" in
30404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30405 *) ac_try_echo=$ac_try;;
30406 esac
30407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30408 (eval "$ac_try") 2>&5
30409 ac_status=$?
30410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30411 (exit $ac_status); }; }; then
30412 MONOTONIC_CLOCK=yes
30413 else
30414 echo "$as_me: program exited with status $ac_status" >&5
30415 echo "$as_me: failed program was:" >&5
30416 sed 's/^/| /' conftest.$ac_ext >&5
30418 ( exit $ac_status )
30419 MONOTONIC_CLOCK=no
30421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30426 LIBS="$LIBS_SAVE"
30427 else
30428 MONOTONIC_CLOCK=no
30431 { echo "$as_me:$LINENO: result: $MONOTONIC_CLOCK" >&5
30432 echo "${ECHO_T}$MONOTONIC_CLOCK" >&6; }
30434 if test "x$MONOTONIC_CLOCK" = xyes; then
30436 cat >>confdefs.h <<\_ACEOF
30437 #define MONOTONIC_CLOCK 1
30438 _ACEOF
30440 XSERVER_LIBS="$XSERVER_LIBS $CLOCK_LIBS"
30441 LIBS="$LIBS $CLOCK_LIBS"
30444 { echo "$as_me:$LINENO: checking if SVR4 needs to be defined" >&5
30445 echo $ECHO_N "checking if SVR4 needs to be defined... $ECHO_C" >&6; }
30446 cat >conftest.$ac_ext <<_ACEOF
30447 /* confdefs.h. */
30448 _ACEOF
30449 cat confdefs.h >>conftest.$ac_ext
30450 cat >>conftest.$ac_ext <<_ACEOF
30451 /* end confdefs.h. */
30453 #if defined(SVR4) || defined(__svr4__) || defined(__SVR4)
30454 I_AM_SVR4
30455 #endif
30457 _ACEOF
30458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30459 $EGREP "I_AM_SVR4" >/dev/null 2>&1; then
30462 cat >>confdefs.h <<\_ACEOF
30463 #define SVR4 1
30464 _ACEOF
30466 { echo "$as_me:$LINENO: result: yes" >&5
30467 echo "${ECHO_T}yes" >&6; }
30468 else
30469 { echo "$as_me:$LINENO: result: no" >&5
30470 echo "${ECHO_T}no" >&6; }
30472 rm -f conftest*
30475 XSERVER_CFLAGS="$XSERVER_CFLAGS $CORE_INCS $XEXT_INC $COMPOSITE_INC $DAMAGE_INC $FIXES_INC $XI_INC $MI_INC $MIEXT_SHADOW_INC $MIEXT_LAYER_INC $MIEXT_DAMAGE_INC $RENDER_INC $RANDR_INC $FB_INC"
30477 cat >>confdefs.h <<_ACEOF
30478 #define _X_BYTE_ORDER $ENDIAN
30479 _ACEOF
30488 { echo "$as_me:$LINENO: checking whether to build Xdmx DDX" >&5
30489 echo $ECHO_N "checking whether to build Xdmx DDX... $ECHO_C" >&6; }
30491 pkg_failed=no
30492 { echo "$as_me:$LINENO: checking for DMXMODULES" >&5
30493 echo $ECHO_N "checking for DMXMODULES... $ECHO_C" >&6; }
30495 if test -n "$PKG_CONFIG"; then
30496 if test -n "$DMXMODULES_CFLAGS"; then
30497 pkg_cv_DMXMODULES_CFLAGS="$DMXMODULES_CFLAGS"
30498 else
30499 if test -n "$PKG_CONFIG" && \
30500 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xmuu xext x11 xrender xfixes xfont xi dmxproto xau \$XDMCP_MODULES \$PIXMAN\"") >&5
30501 ($PKG_CONFIG --exists --print-errors "xmuu xext x11 xrender xfixes xfont xi dmxproto xau $XDMCP_MODULES $PIXMAN") 2>&5
30502 ac_status=$?
30503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30504 (exit $ac_status); }; then
30505 pkg_cv_DMXMODULES_CFLAGS=`$PKG_CONFIG --cflags "xmuu xext x11 xrender xfixes xfont xi dmxproto xau $XDMCP_MODULES $PIXMAN" 2>/dev/null`
30506 else
30507 pkg_failed=yes
30510 else
30511 pkg_failed=untried
30513 if test -n "$PKG_CONFIG"; then
30514 if test -n "$DMXMODULES_LIBS"; then
30515 pkg_cv_DMXMODULES_LIBS="$DMXMODULES_LIBS"
30516 else
30517 if test -n "$PKG_CONFIG" && \
30518 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xmuu xext x11 xrender xfixes xfont xi dmxproto xau \$XDMCP_MODULES \$PIXMAN\"") >&5
30519 ($PKG_CONFIG --exists --print-errors "xmuu xext x11 xrender xfixes xfont xi dmxproto xau $XDMCP_MODULES $PIXMAN") 2>&5
30520 ac_status=$?
30521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30522 (exit $ac_status); }; then
30523 pkg_cv_DMXMODULES_LIBS=`$PKG_CONFIG --libs "xmuu xext x11 xrender xfixes xfont xi dmxproto xau $XDMCP_MODULES $PIXMAN" 2>/dev/null`
30524 else
30525 pkg_failed=yes
30528 else
30529 pkg_failed=untried
30534 if test $pkg_failed = yes; then
30536 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30537 _pkg_short_errors_supported=yes
30538 else
30539 _pkg_short_errors_supported=no
30541 if test $_pkg_short_errors_supported = yes; then
30542 DMXMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xmuu xext x11 xrender xfixes xfont xi dmxproto xau $XDMCP_MODULES $PIXMAN"`
30543 else
30544 DMXMODULES_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xmuu xext x11 xrender xfixes xfont xi dmxproto xau $XDMCP_MODULES $PIXMAN"`
30546 # Put the nasty error message in config.log where it belongs
30547 echo "$DMXMODULES_PKG_ERRORS" >&5
30549 { echo "$as_me:$LINENO: result: no" >&5
30550 echo "${ECHO_T}no" >&6; }
30551 have_dmx=no
30552 elif test $pkg_failed = untried; then
30553 have_dmx=no
30554 else
30555 DMXMODULES_CFLAGS=$pkg_cv_DMXMODULES_CFLAGS
30556 DMXMODULES_LIBS=$pkg_cv_DMXMODULES_LIBS
30557 { echo "$as_me:$LINENO: result: yes" >&5
30558 echo "${ECHO_T}yes" >&6; }
30559 have_dmx=yes
30561 if test "x$DMX" = xauto; then
30562 DMX="$have_dmx"
30564 { echo "$as_me:$LINENO: result: $DMX" >&5
30565 echo "${ECHO_T}$DMX" >&6; }
30566 if test "x$DMX" = xyes; then
30567 DMX_TRUE=
30568 DMX_FALSE='#'
30569 else
30570 DMX_TRUE='#'
30571 DMX_FALSE=
30575 if test "x$DMX" = xyes; then
30576 if test "x$have_dmx" = xno; then
30577 { { echo "$as_me:$LINENO: error: Xdmx build explicitly requested, but required
30578 modules not found." >&5
30579 echo "$as_me: error: Xdmx build explicitly requested, but required
30580 modules not found." >&2;}
30581 { (exit 1); exit 1; }; }
30583 DMX_INCLUDES="$XEXT_INC $RENDER_INC $XTRAP_INC $RECORD_INC"
30584 XDMX_LIBS="$FB_LIB $MI_LIB $XEXT_LIB $CONFIG_LIB $RENDER_LIB $XTRAP_LIB $RECORD_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $OS_LIB $CWRAP_LIB"
30587 if test "${ac_cv_header_linux_input_h+set}" = set; then
30588 { echo "$as_me:$LINENO: checking for linux/input.h" >&5
30589 echo $ECHO_N "checking for linux/input.h... $ECHO_C" >&6; }
30590 if test "${ac_cv_header_linux_input_h+set}" = set; then
30591 echo $ECHO_N "(cached) $ECHO_C" >&6
30593 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_input_h" >&5
30594 echo "${ECHO_T}$ac_cv_header_linux_input_h" >&6; }
30595 else
30596 # Is the header compilable?
30597 { echo "$as_me:$LINENO: checking linux/input.h usability" >&5
30598 echo $ECHO_N "checking linux/input.h usability... $ECHO_C" >&6; }
30599 cat >conftest.$ac_ext <<_ACEOF
30600 /* confdefs.h. */
30601 _ACEOF
30602 cat confdefs.h >>conftest.$ac_ext
30603 cat >>conftest.$ac_ext <<_ACEOF
30604 /* end confdefs.h. */
30605 $ac_includes_default
30606 #include <linux/input.h>
30607 _ACEOF
30608 rm -f conftest.$ac_objext
30609 if { (ac_try="$ac_compile"
30610 case "(($ac_try" in
30611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30612 *) ac_try_echo=$ac_try;;
30613 esac
30614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30615 (eval "$ac_compile") 2>conftest.er1
30616 ac_status=$?
30617 grep -v '^ *+' conftest.er1 >conftest.err
30618 rm -f conftest.er1
30619 cat conftest.err >&5
30620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30621 (exit $ac_status); } && {
30622 test -z "$ac_c_werror_flag" ||
30623 test ! -s conftest.err
30624 } && test -s conftest.$ac_objext; then
30625 ac_header_compiler=yes
30626 else
30627 echo "$as_me: failed program was:" >&5
30628 sed 's/^/| /' conftest.$ac_ext >&5
30630 ac_header_compiler=no
30633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30634 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30635 echo "${ECHO_T}$ac_header_compiler" >&6; }
30637 # Is the header present?
30638 { echo "$as_me:$LINENO: checking linux/input.h presence" >&5
30639 echo $ECHO_N "checking linux/input.h presence... $ECHO_C" >&6; }
30640 cat >conftest.$ac_ext <<_ACEOF
30641 /* confdefs.h. */
30642 _ACEOF
30643 cat confdefs.h >>conftest.$ac_ext
30644 cat >>conftest.$ac_ext <<_ACEOF
30645 /* end confdefs.h. */
30646 #include <linux/input.h>
30647 _ACEOF
30648 if { (ac_try="$ac_cpp conftest.$ac_ext"
30649 case "(($ac_try" in
30650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30651 *) ac_try_echo=$ac_try;;
30652 esac
30653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30655 ac_status=$?
30656 grep -v '^ *+' conftest.er1 >conftest.err
30657 rm -f conftest.er1
30658 cat conftest.err >&5
30659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30660 (exit $ac_status); } >/dev/null && {
30661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30662 test ! -s conftest.err
30663 }; then
30664 ac_header_preproc=yes
30665 else
30666 echo "$as_me: failed program was:" >&5
30667 sed 's/^/| /' conftest.$ac_ext >&5
30669 ac_header_preproc=no
30672 rm -f conftest.err conftest.$ac_ext
30673 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30674 echo "${ECHO_T}$ac_header_preproc" >&6; }
30676 # So? What about this header?
30677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30678 yes:no: )
30679 { echo "$as_me:$LINENO: WARNING: linux/input.h: accepted by the compiler, rejected by the preprocessor!" >&5
30680 echo "$as_me: WARNING: linux/input.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30681 { echo "$as_me:$LINENO: WARNING: linux/input.h: proceeding with the compiler's result" >&5
30682 echo "$as_me: WARNING: linux/input.h: proceeding with the compiler's result" >&2;}
30683 ac_header_preproc=yes
30685 no:yes:* )
30686 { echo "$as_me:$LINENO: WARNING: linux/input.h: present but cannot be compiled" >&5
30687 echo "$as_me: WARNING: linux/input.h: present but cannot be compiled" >&2;}
30688 { echo "$as_me:$LINENO: WARNING: linux/input.h: check for missing prerequisite headers?" >&5
30689 echo "$as_me: WARNING: linux/input.h: check for missing prerequisite headers?" >&2;}
30690 { echo "$as_me:$LINENO: WARNING: linux/input.h: see the Autoconf documentation" >&5
30691 echo "$as_me: WARNING: linux/input.h: see the Autoconf documentation" >&2;}
30692 { echo "$as_me:$LINENO: WARNING: linux/input.h: section \"Present But Cannot Be Compiled\"" >&5
30693 echo "$as_me: WARNING: linux/input.h: section \"Present But Cannot Be Compiled\"" >&2;}
30694 { echo "$as_me:$LINENO: WARNING: linux/input.h: proceeding with the preprocessor's result" >&5
30695 echo "$as_me: WARNING: linux/input.h: proceeding with the preprocessor's result" >&2;}
30696 { echo "$as_me:$LINENO: WARNING: linux/input.h: in the future, the compiler will take precedence" >&5
30697 echo "$as_me: WARNING: linux/input.h: in the future, the compiler will take precedence" >&2;}
30698 ( cat <<\_ASBOX
30699 ## ---------------------------------------------------------------------- ##
30700 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
30701 ## ---------------------------------------------------------------------- ##
30702 _ASBOX
30703 ) | sed "s/^/$as_me: WARNING: /" >&2
30705 esac
30706 { echo "$as_me:$LINENO: checking for linux/input.h" >&5
30707 echo $ECHO_N "checking for linux/input.h... $ECHO_C" >&6; }
30708 if test "${ac_cv_header_linux_input_h+set}" = set; then
30709 echo $ECHO_N "(cached) $ECHO_C" >&6
30710 else
30711 ac_cv_header_linux_input_h=$ac_header_preproc
30713 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_input_h" >&5
30714 echo "${ECHO_T}$ac_cv_header_linux_input_h" >&6; }
30717 if test $ac_cv_header_linux_input_h = yes; then
30718 DMX_BUILD_USB="yes"
30719 else
30720 DMX_BUILD_USB="no"
30724 if test "${ac_cv_header_linux_keyboard_h+set}" = set; then
30725 { echo "$as_me:$LINENO: checking for linux/keyboard.h" >&5
30726 echo $ECHO_N "checking for linux/keyboard.h... $ECHO_C" >&6; }
30727 if test "${ac_cv_header_linux_keyboard_h+set}" = set; then
30728 echo $ECHO_N "(cached) $ECHO_C" >&6
30730 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_keyboard_h" >&5
30731 echo "${ECHO_T}$ac_cv_header_linux_keyboard_h" >&6; }
30732 else
30733 # Is the header compilable?
30734 { echo "$as_me:$LINENO: checking linux/keyboard.h usability" >&5
30735 echo $ECHO_N "checking linux/keyboard.h usability... $ECHO_C" >&6; }
30736 cat >conftest.$ac_ext <<_ACEOF
30737 /* confdefs.h. */
30738 _ACEOF
30739 cat confdefs.h >>conftest.$ac_ext
30740 cat >>conftest.$ac_ext <<_ACEOF
30741 /* end confdefs.h. */
30742 $ac_includes_default
30743 #include <linux/keyboard.h>
30744 _ACEOF
30745 rm -f conftest.$ac_objext
30746 if { (ac_try="$ac_compile"
30747 case "(($ac_try" in
30748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30749 *) ac_try_echo=$ac_try;;
30750 esac
30751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30752 (eval "$ac_compile") 2>conftest.er1
30753 ac_status=$?
30754 grep -v '^ *+' conftest.er1 >conftest.err
30755 rm -f conftest.er1
30756 cat conftest.err >&5
30757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30758 (exit $ac_status); } && {
30759 test -z "$ac_c_werror_flag" ||
30760 test ! -s conftest.err
30761 } && test -s conftest.$ac_objext; then
30762 ac_header_compiler=yes
30763 else
30764 echo "$as_me: failed program was:" >&5
30765 sed 's/^/| /' conftest.$ac_ext >&5
30767 ac_header_compiler=no
30770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30771 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30772 echo "${ECHO_T}$ac_header_compiler" >&6; }
30774 # Is the header present?
30775 { echo "$as_me:$LINENO: checking linux/keyboard.h presence" >&5
30776 echo $ECHO_N "checking linux/keyboard.h presence... $ECHO_C" >&6; }
30777 cat >conftest.$ac_ext <<_ACEOF
30778 /* confdefs.h. */
30779 _ACEOF
30780 cat confdefs.h >>conftest.$ac_ext
30781 cat >>conftest.$ac_ext <<_ACEOF
30782 /* end confdefs.h. */
30783 #include <linux/keyboard.h>
30784 _ACEOF
30785 if { (ac_try="$ac_cpp conftest.$ac_ext"
30786 case "(($ac_try" in
30787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30788 *) ac_try_echo=$ac_try;;
30789 esac
30790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30792 ac_status=$?
30793 grep -v '^ *+' conftest.er1 >conftest.err
30794 rm -f conftest.er1
30795 cat conftest.err >&5
30796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30797 (exit $ac_status); } >/dev/null && {
30798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30799 test ! -s conftest.err
30800 }; then
30801 ac_header_preproc=yes
30802 else
30803 echo "$as_me: failed program was:" >&5
30804 sed 's/^/| /' conftest.$ac_ext >&5
30806 ac_header_preproc=no
30809 rm -f conftest.err conftest.$ac_ext
30810 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30811 echo "${ECHO_T}$ac_header_preproc" >&6; }
30813 # So? What about this header?
30814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30815 yes:no: )
30816 { echo "$as_me:$LINENO: WARNING: linux/keyboard.h: accepted by the compiler, rejected by the preprocessor!" >&5
30817 echo "$as_me: WARNING: linux/keyboard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30818 { echo "$as_me:$LINENO: WARNING: linux/keyboard.h: proceeding with the compiler's result" >&5
30819 echo "$as_me: WARNING: linux/keyboard.h: proceeding with the compiler's result" >&2;}
30820 ac_header_preproc=yes
30822 no:yes:* )
30823 { echo "$as_me:$LINENO: WARNING: linux/keyboard.h: present but cannot be compiled" >&5
30824 echo "$as_me: WARNING: linux/keyboard.h: present but cannot be compiled" >&2;}
30825 { echo "$as_me:$LINENO: WARNING: linux/keyboard.h: check for missing prerequisite headers?" >&5
30826 echo "$as_me: WARNING: linux/keyboard.h: check for missing prerequisite headers?" >&2;}
30827 { echo "$as_me:$LINENO: WARNING: linux/keyboard.h: see the Autoconf documentation" >&5
30828 echo "$as_me: WARNING: linux/keyboard.h: see the Autoconf documentation" >&2;}
30829 { echo "$as_me:$LINENO: WARNING: linux/keyboard.h: section \"Present But Cannot Be Compiled\"" >&5
30830 echo "$as_me: WARNING: linux/keyboard.h: section \"Present But Cannot Be Compiled\"" >&2;}
30831 { echo "$as_me:$LINENO: WARNING: linux/keyboard.h: proceeding with the preprocessor's result" >&5
30832 echo "$as_me: WARNING: linux/keyboard.h: proceeding with the preprocessor's result" >&2;}
30833 { echo "$as_me:$LINENO: WARNING: linux/keyboard.h: in the future, the compiler will take precedence" >&5
30834 echo "$as_me: WARNING: linux/keyboard.h: in the future, the compiler will take precedence" >&2;}
30835 ( cat <<\_ASBOX
30836 ## ---------------------------------------------------------------------- ##
30837 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
30838 ## ---------------------------------------------------------------------- ##
30839 _ASBOX
30840 ) | sed "s/^/$as_me: WARNING: /" >&2
30842 esac
30843 { echo "$as_me:$LINENO: checking for linux/keyboard.h" >&5
30844 echo $ECHO_N "checking for linux/keyboard.h... $ECHO_C" >&6; }
30845 if test "${ac_cv_header_linux_keyboard_h+set}" = set; then
30846 echo $ECHO_N "(cached) $ECHO_C" >&6
30847 else
30848 ac_cv_header_linux_keyboard_h=$ac_header_preproc
30850 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_keyboard_h" >&5
30851 echo "${ECHO_T}$ac_cv_header_linux_keyboard_h" >&6; }
30854 if test $ac_cv_header_linux_keyboard_h = yes; then
30855 DMX_BUILD_LNX="yes"
30856 else
30857 DMX_BUILD_LNX="no"
30861 if test "x$GLX" = xyes; then
30863 pkg_failed=no
30864 { echo "$as_me:$LINENO: checking for GL" >&5
30865 echo $ECHO_N "checking for GL... $ECHO_C" >&6; }
30867 if test -n "$PKG_CONFIG"; then
30868 if test -n "$GL_CFLAGS"; then
30869 pkg_cv_GL_CFLAGS="$GL_CFLAGS"
30870 else
30871 if test -n "$PKG_CONFIG" && \
30872 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glproto\"") >&5
30873 ($PKG_CONFIG --exists --print-errors "glproto") 2>&5
30874 ac_status=$?
30875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30876 (exit $ac_status); }; then
30877 pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "glproto" 2>/dev/null`
30878 else
30879 pkg_failed=yes
30882 else
30883 pkg_failed=untried
30885 if test -n "$PKG_CONFIG"; then
30886 if test -n "$GL_LIBS"; then
30887 pkg_cv_GL_LIBS="$GL_LIBS"
30888 else
30889 if test -n "$PKG_CONFIG" && \
30890 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glproto\"") >&5
30891 ($PKG_CONFIG --exists --print-errors "glproto") 2>&5
30892 ac_status=$?
30893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30894 (exit $ac_status); }; then
30895 pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "glproto" 2>/dev/null`
30896 else
30897 pkg_failed=yes
30900 else
30901 pkg_failed=untried
30906 if test $pkg_failed = yes; then
30908 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30909 _pkg_short_errors_supported=yes
30910 else
30911 _pkg_short_errors_supported=no
30913 if test $_pkg_short_errors_supported = yes; then
30914 GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glproto"`
30915 else
30916 GL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glproto"`
30918 # Put the nasty error message in config.log where it belongs
30919 echo "$GL_PKG_ERRORS" >&5
30921 { { echo "$as_me:$LINENO: error: Package requirements (glproto) were not met:
30923 $GL_PKG_ERRORS
30925 Consider adjusting the PKG_CONFIG_PATH environment variable if you
30926 installed software in a non-standard prefix.
30928 Alternatively, you may set the environment variables GL_CFLAGS
30929 and GL_LIBS to avoid the need to call pkg-config.
30930 See the pkg-config man page for more details.
30931 " >&5
30932 echo "$as_me: error: Package requirements (glproto) were not met:
30934 $GL_PKG_ERRORS
30936 Consider adjusting the PKG_CONFIG_PATH environment variable if you
30937 installed software in a non-standard prefix.
30939 Alternatively, you may set the environment variables GL_CFLAGS
30940 and GL_LIBS to avoid the need to call pkg-config.
30941 See the pkg-config man page for more details.
30942 " >&2;}
30943 { (exit 1); exit 1; }; }
30944 elif test $pkg_failed = untried; then
30945 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
30946 is in your PATH or set the PKG_CONFIG environment variable to the full
30947 path to pkg-config.
30949 Alternatively, you may set the environment variables GL_CFLAGS
30950 and GL_LIBS to avoid the need to call pkg-config.
30951 See the pkg-config man page for more details.
30953 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
30954 See \`config.log' for more details." >&5
30955 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
30956 is in your PATH or set the PKG_CONFIG environment variable to the full
30957 path to pkg-config.
30959 Alternatively, you may set the environment variables GL_CFLAGS
30960 and GL_LIBS to avoid the need to call pkg-config.
30961 See the pkg-config man page for more details.
30963 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
30964 See \`config.log' for more details." >&2;}
30965 { (exit 1); exit 1; }; }
30966 else
30967 GL_CFLAGS=$pkg_cv_GL_CFLAGS
30968 GL_LIBS=$pkg_cv_GL_LIBS
30969 { echo "$as_me:$LINENO: result: yes" >&5
30970 echo "${ECHO_T}yes" >&6; }
30975 pkg_failed=no
30976 { echo "$as_me:$LINENO: checking for XDMXCONFIG_DEP" >&5
30977 echo $ECHO_N "checking for XDMXCONFIG_DEP... $ECHO_C" >&6; }
30979 if test -n "$PKG_CONFIG"; then
30980 if test -n "$XDMXCONFIG_DEP_CFLAGS"; then
30981 pkg_cv_XDMXCONFIG_DEP_CFLAGS="$XDMXCONFIG_DEP_CFLAGS"
30982 else
30983 if test -n "$PKG_CONFIG" && \
30984 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt xpm x11\"") >&5
30985 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt xpm x11") 2>&5
30986 ac_status=$?
30987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30988 (exit $ac_status); }; then
30989 pkg_cv_XDMXCONFIG_DEP_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt xpm x11" 2>/dev/null`
30990 else
30991 pkg_failed=yes
30994 else
30995 pkg_failed=untried
30997 if test -n "$PKG_CONFIG"; then
30998 if test -n "$XDMXCONFIG_DEP_LIBS"; then
30999 pkg_cv_XDMXCONFIG_DEP_LIBS="$XDMXCONFIG_DEP_LIBS"
31000 else
31001 if test -n "$PKG_CONFIG" && \
31002 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt xpm x11\"") >&5
31003 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt xpm x11") 2>&5
31004 ac_status=$?
31005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31006 (exit $ac_status); }; then
31007 pkg_cv_XDMXCONFIG_DEP_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt xpm x11" 2>/dev/null`
31008 else
31009 pkg_failed=yes
31012 else
31013 pkg_failed=untried
31018 if test $pkg_failed = yes; then
31020 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31021 _pkg_short_errors_supported=yes
31022 else
31023 _pkg_short_errors_supported=no
31025 if test $_pkg_short_errors_supported = yes; then
31026 XDMXCONFIG_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xaw7 xmu xt xpm x11"`
31027 else
31028 XDMXCONFIG_DEP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xaw7 xmu xt xpm x11"`
31030 # Put the nasty error message in config.log where it belongs
31031 echo "$XDMXCONFIG_DEP_PKG_ERRORS" >&5
31033 { { echo "$as_me:$LINENO: error: Package requirements (xaw7 xmu xt xpm x11) were not met:
31035 $XDMXCONFIG_DEP_PKG_ERRORS
31037 Consider adjusting the PKG_CONFIG_PATH environment variable if you
31038 installed software in a non-standard prefix.
31040 Alternatively, you may set the environment variables XDMXCONFIG_DEP_CFLAGS
31041 and XDMXCONFIG_DEP_LIBS to avoid the need to call pkg-config.
31042 See the pkg-config man page for more details.
31043 " >&5
31044 echo "$as_me: error: Package requirements (xaw7 xmu xt xpm x11) were not met:
31046 $XDMXCONFIG_DEP_PKG_ERRORS
31048 Consider adjusting the PKG_CONFIG_PATH environment variable if you
31049 installed software in a non-standard prefix.
31051 Alternatively, you may set the environment variables XDMXCONFIG_DEP_CFLAGS
31052 and XDMXCONFIG_DEP_LIBS to avoid the need to call pkg-config.
31053 See the pkg-config man page for more details.
31054 " >&2;}
31055 { (exit 1); exit 1; }; }
31056 elif test $pkg_failed = untried; then
31057 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
31058 is in your PATH or set the PKG_CONFIG environment variable to the full
31059 path to pkg-config.
31061 Alternatively, you may set the environment variables XDMXCONFIG_DEP_CFLAGS
31062 and XDMXCONFIG_DEP_LIBS to avoid the need to call pkg-config.
31063 See the pkg-config man page for more details.
31065 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
31066 See \`config.log' for more details." >&5
31067 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
31068 is in your PATH or set the PKG_CONFIG environment variable to the full
31069 path to pkg-config.
31071 Alternatively, you may set the environment variables XDMXCONFIG_DEP_CFLAGS
31072 and XDMXCONFIG_DEP_LIBS to avoid the need to call pkg-config.
31073 See the pkg-config man page for more details.
31075 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
31076 See \`config.log' for more details." >&2;}
31077 { (exit 1); exit 1; }; }
31078 else
31079 XDMXCONFIG_DEP_CFLAGS=$pkg_cv_XDMXCONFIG_DEP_CFLAGS
31080 XDMXCONFIG_DEP_LIBS=$pkg_cv_XDMXCONFIG_DEP_LIBS
31081 { echo "$as_me:$LINENO: result: yes" >&5
31082 echo "${ECHO_T}yes" >&6; }
31088 pkg_failed=no
31089 { echo "$as_me:$LINENO: checking for DMXEXAMPLES_DEP" >&5
31090 echo $ECHO_N "checking for DMXEXAMPLES_DEP... $ECHO_C" >&6; }
31092 if test -n "$PKG_CONFIG"; then
31093 if test -n "$DMXEXAMPLES_DEP_CFLAGS"; then
31094 pkg_cv_DMXEXAMPLES_DEP_CFLAGS="$DMXEXAMPLES_DEP_CFLAGS"
31095 else
31096 if test -n "$PKG_CONFIG" && \
31097 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dmx xext x11\"") >&5
31098 ($PKG_CONFIG --exists --print-errors "dmx xext x11") 2>&5
31099 ac_status=$?
31100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31101 (exit $ac_status); }; then
31102 pkg_cv_DMXEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "dmx xext x11" 2>/dev/null`
31103 else
31104 pkg_failed=yes
31107 else
31108 pkg_failed=untried
31110 if test -n "$PKG_CONFIG"; then
31111 if test -n "$DMXEXAMPLES_DEP_LIBS"; then
31112 pkg_cv_DMXEXAMPLES_DEP_LIBS="$DMXEXAMPLES_DEP_LIBS"
31113 else
31114 if test -n "$PKG_CONFIG" && \
31115 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dmx xext x11\"") >&5
31116 ($PKG_CONFIG --exists --print-errors "dmx xext x11") 2>&5
31117 ac_status=$?
31118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31119 (exit $ac_status); }; then
31120 pkg_cv_DMXEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "dmx xext x11" 2>/dev/null`
31121 else
31122 pkg_failed=yes
31125 else
31126 pkg_failed=untried
31131 if test $pkg_failed = yes; then
31133 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31134 _pkg_short_errors_supported=yes
31135 else
31136 _pkg_short_errors_supported=no
31138 if test $_pkg_short_errors_supported = yes; then
31139 DMXEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dmx xext x11"`
31140 else
31141 DMXEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dmx xext x11"`
31143 # Put the nasty error message in config.log where it belongs
31144 echo "$DMXEXAMPLES_DEP_PKG_ERRORS" >&5
31146 { { echo "$as_me:$LINENO: error: Package requirements (dmx xext x11) were not met:
31148 $DMXEXAMPLES_DEP_PKG_ERRORS
31150 Consider adjusting the PKG_CONFIG_PATH environment variable if you
31151 installed software in a non-standard prefix.
31153 Alternatively, you may set the environment variables DMXEXAMPLES_DEP_CFLAGS
31154 and DMXEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31155 See the pkg-config man page for more details.
31156 " >&5
31157 echo "$as_me: error: Package requirements (dmx xext x11) were not met:
31159 $DMXEXAMPLES_DEP_PKG_ERRORS
31161 Consider adjusting the PKG_CONFIG_PATH environment variable if you
31162 installed software in a non-standard prefix.
31164 Alternatively, you may set the environment variables DMXEXAMPLES_DEP_CFLAGS
31165 and DMXEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31166 See the pkg-config man page for more details.
31167 " >&2;}
31168 { (exit 1); exit 1; }; }
31169 elif test $pkg_failed = untried; then
31170 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
31171 is in your PATH or set the PKG_CONFIG environment variable to the full
31172 path to pkg-config.
31174 Alternatively, you may set the environment variables DMXEXAMPLES_DEP_CFLAGS
31175 and DMXEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31176 See the pkg-config man page for more details.
31178 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
31179 See \`config.log' for more details." >&5
31180 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
31181 is in your PATH or set the PKG_CONFIG environment variable to the full
31182 path to pkg-config.
31184 Alternatively, you may set the environment variables DMXEXAMPLES_DEP_CFLAGS
31185 and DMXEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31186 See the pkg-config man page for more details.
31188 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
31189 See \`config.log' for more details." >&2;}
31190 { (exit 1); exit 1; }; }
31191 else
31192 DMXEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXEXAMPLES_DEP_CFLAGS
31193 DMXEXAMPLES_DEP_LIBS=$pkg_cv_DMXEXAMPLES_DEP_LIBS
31194 { echo "$as_me:$LINENO: result: yes" >&5
31195 echo "${ECHO_T}yes" >&6; }
31200 pkg_failed=no
31201 { echo "$as_me:$LINENO: checking for DMXXMUEXAMPLES_DEP" >&5
31202 echo $ECHO_N "checking for DMXXMUEXAMPLES_DEP... $ECHO_C" >&6; }
31204 if test -n "$PKG_CONFIG"; then
31205 if test -n "$DMXXMUEXAMPLES_DEP_CFLAGS"; then
31206 pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS="$DMXXMUEXAMPLES_DEP_CFLAGS"
31207 else
31208 if test -n "$PKG_CONFIG" && \
31209 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dmx xmu xext x11\"") >&5
31210 ($PKG_CONFIG --exists --print-errors "dmx xmu xext x11") 2>&5
31211 ac_status=$?
31212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31213 (exit $ac_status); }; then
31214 pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "dmx xmu xext x11" 2>/dev/null`
31215 else
31216 pkg_failed=yes
31219 else
31220 pkg_failed=untried
31222 if test -n "$PKG_CONFIG"; then
31223 if test -n "$DMXXMUEXAMPLES_DEP_LIBS"; then
31224 pkg_cv_DMXXMUEXAMPLES_DEP_LIBS="$DMXXMUEXAMPLES_DEP_LIBS"
31225 else
31226 if test -n "$PKG_CONFIG" && \
31227 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dmx xmu xext x11\"") >&5
31228 ($PKG_CONFIG --exists --print-errors "dmx xmu xext x11") 2>&5
31229 ac_status=$?
31230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31231 (exit $ac_status); }; then
31232 pkg_cv_DMXXMUEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "dmx xmu xext x11" 2>/dev/null`
31233 else
31234 pkg_failed=yes
31237 else
31238 pkg_failed=untried
31243 if test $pkg_failed = yes; then
31245 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31246 _pkg_short_errors_supported=yes
31247 else
31248 _pkg_short_errors_supported=no
31250 if test $_pkg_short_errors_supported = yes; then
31251 DMXXMUEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dmx xmu xext x11"`
31252 else
31253 DMXXMUEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dmx xmu xext x11"`
31255 # Put the nasty error message in config.log where it belongs
31256 echo "$DMXXMUEXAMPLES_DEP_PKG_ERRORS" >&5
31258 { { echo "$as_me:$LINENO: error: Package requirements (dmx xmu xext x11) were not met:
31260 $DMXXMUEXAMPLES_DEP_PKG_ERRORS
31262 Consider adjusting the PKG_CONFIG_PATH environment variable if you
31263 installed software in a non-standard prefix.
31265 Alternatively, you may set the environment variables DMXXMUEXAMPLES_DEP_CFLAGS
31266 and DMXXMUEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31267 See the pkg-config man page for more details.
31268 " >&5
31269 echo "$as_me: error: Package requirements (dmx xmu xext x11) were not met:
31271 $DMXXMUEXAMPLES_DEP_PKG_ERRORS
31273 Consider adjusting the PKG_CONFIG_PATH environment variable if you
31274 installed software in a non-standard prefix.
31276 Alternatively, you may set the environment variables DMXXMUEXAMPLES_DEP_CFLAGS
31277 and DMXXMUEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31278 See the pkg-config man page for more details.
31279 " >&2;}
31280 { (exit 1); exit 1; }; }
31281 elif test $pkg_failed = untried; then
31282 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
31283 is in your PATH or set the PKG_CONFIG environment variable to the full
31284 path to pkg-config.
31286 Alternatively, you may set the environment variables DMXXMUEXAMPLES_DEP_CFLAGS
31287 and DMXXMUEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31288 See the pkg-config man page for more details.
31290 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
31291 See \`config.log' for more details." >&5
31292 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
31293 is in your PATH or set the PKG_CONFIG environment variable to the full
31294 path to pkg-config.
31296 Alternatively, you may set the environment variables DMXXMUEXAMPLES_DEP_CFLAGS
31297 and DMXXMUEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31298 See the pkg-config man page for more details.
31300 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
31301 See \`config.log' for more details." >&2;}
31302 { (exit 1); exit 1; }; }
31303 else
31304 DMXXMUEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS
31305 DMXXMUEXAMPLES_DEP_LIBS=$pkg_cv_DMXXMUEXAMPLES_DEP_LIBS
31306 { echo "$as_me:$LINENO: result: yes" >&5
31307 echo "${ECHO_T}yes" >&6; }
31312 pkg_failed=no
31313 { echo "$as_me:$LINENO: checking for DMXXIEXAMPLES_DEP" >&5
31314 echo $ECHO_N "checking for DMXXIEXAMPLES_DEP... $ECHO_C" >&6; }
31316 if test -n "$PKG_CONFIG"; then
31317 if test -n "$DMXXIEXAMPLES_DEP_CFLAGS"; then
31318 pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS="$DMXXIEXAMPLES_DEP_CFLAGS"
31319 else
31320 if test -n "$PKG_CONFIG" && \
31321 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dmx xi xext x11\"") >&5
31322 ($PKG_CONFIG --exists --print-errors "dmx xi xext x11") 2>&5
31323 ac_status=$?
31324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31325 (exit $ac_status); }; then
31326 pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "dmx xi xext x11" 2>/dev/null`
31327 else
31328 pkg_failed=yes
31331 else
31332 pkg_failed=untried
31334 if test -n "$PKG_CONFIG"; then
31335 if test -n "$DMXXIEXAMPLES_DEP_LIBS"; then
31336 pkg_cv_DMXXIEXAMPLES_DEP_LIBS="$DMXXIEXAMPLES_DEP_LIBS"
31337 else
31338 if test -n "$PKG_CONFIG" && \
31339 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dmx xi xext x11\"") >&5
31340 ($PKG_CONFIG --exists --print-errors "dmx xi xext x11") 2>&5
31341 ac_status=$?
31342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31343 (exit $ac_status); }; then
31344 pkg_cv_DMXXIEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "dmx xi xext x11" 2>/dev/null`
31345 else
31346 pkg_failed=yes
31349 else
31350 pkg_failed=untried
31355 if test $pkg_failed = yes; then
31357 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31358 _pkg_short_errors_supported=yes
31359 else
31360 _pkg_short_errors_supported=no
31362 if test $_pkg_short_errors_supported = yes; then
31363 DMXXIEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dmx xi xext x11"`
31364 else
31365 DMXXIEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dmx xi xext x11"`
31367 # Put the nasty error message in config.log where it belongs
31368 echo "$DMXXIEXAMPLES_DEP_PKG_ERRORS" >&5
31370 { { echo "$as_me:$LINENO: error: Package requirements (dmx xi xext x11) were not met:
31372 $DMXXIEXAMPLES_DEP_PKG_ERRORS
31374 Consider adjusting the PKG_CONFIG_PATH environment variable if you
31375 installed software in a non-standard prefix.
31377 Alternatively, you may set the environment variables DMXXIEXAMPLES_DEP_CFLAGS
31378 and DMXXIEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31379 See the pkg-config man page for more details.
31380 " >&5
31381 echo "$as_me: error: Package requirements (dmx xi xext x11) were not met:
31383 $DMXXIEXAMPLES_DEP_PKG_ERRORS
31385 Consider adjusting the PKG_CONFIG_PATH environment variable if you
31386 installed software in a non-standard prefix.
31388 Alternatively, you may set the environment variables DMXXIEXAMPLES_DEP_CFLAGS
31389 and DMXXIEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31390 See the pkg-config man page for more details.
31391 " >&2;}
31392 { (exit 1); exit 1; }; }
31393 elif test $pkg_failed = untried; then
31394 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
31395 is in your PATH or set the PKG_CONFIG environment variable to the full
31396 path to pkg-config.
31398 Alternatively, you may set the environment variables DMXXIEXAMPLES_DEP_CFLAGS
31399 and DMXXIEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31400 See the pkg-config man page for more details.
31402 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
31403 See \`config.log' for more details." >&5
31404 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
31405 is in your PATH or set the PKG_CONFIG environment variable to the full
31406 path to pkg-config.
31408 Alternatively, you may set the environment variables DMXXIEXAMPLES_DEP_CFLAGS
31409 and DMXXIEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31410 See the pkg-config man page for more details.
31412 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
31413 See \`config.log' for more details." >&2;}
31414 { (exit 1); exit 1; }; }
31415 else
31416 DMXXIEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS
31417 DMXXIEXAMPLES_DEP_LIBS=$pkg_cv_DMXXIEXAMPLES_DEP_LIBS
31418 { echo "$as_me:$LINENO: result: yes" >&5
31419 echo "${ECHO_T}yes" >&6; }
31424 pkg_failed=no
31425 { echo "$as_me:$LINENO: checking for XTSTEXAMPLES_DEP" >&5
31426 echo $ECHO_N "checking for XTSTEXAMPLES_DEP... $ECHO_C" >&6; }
31428 if test -n "$PKG_CONFIG"; then
31429 if test -n "$XTSTEXAMPLES_DEP_CFLAGS"; then
31430 pkg_cv_XTSTEXAMPLES_DEP_CFLAGS="$XTSTEXAMPLES_DEP_CFLAGS"
31431 else
31432 if test -n "$PKG_CONFIG" && \
31433 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xtst xext x11\"") >&5
31434 ($PKG_CONFIG --exists --print-errors "xtst xext x11") 2>&5
31435 ac_status=$?
31436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31437 (exit $ac_status); }; then
31438 pkg_cv_XTSTEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "xtst xext x11" 2>/dev/null`
31439 else
31440 pkg_failed=yes
31443 else
31444 pkg_failed=untried
31446 if test -n "$PKG_CONFIG"; then
31447 if test -n "$XTSTEXAMPLES_DEP_LIBS"; then
31448 pkg_cv_XTSTEXAMPLES_DEP_LIBS="$XTSTEXAMPLES_DEP_LIBS"
31449 else
31450 if test -n "$PKG_CONFIG" && \
31451 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xtst xext x11\"") >&5
31452 ($PKG_CONFIG --exists --print-errors "xtst xext x11") 2>&5
31453 ac_status=$?
31454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31455 (exit $ac_status); }; then
31456 pkg_cv_XTSTEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "xtst xext x11" 2>/dev/null`
31457 else
31458 pkg_failed=yes
31461 else
31462 pkg_failed=untried
31467 if test $pkg_failed = yes; then
31469 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31470 _pkg_short_errors_supported=yes
31471 else
31472 _pkg_short_errors_supported=no
31474 if test $_pkg_short_errors_supported = yes; then
31475 XTSTEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xtst xext x11"`
31476 else
31477 XTSTEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xtst xext x11"`
31479 # Put the nasty error message in config.log where it belongs
31480 echo "$XTSTEXAMPLES_DEP_PKG_ERRORS" >&5
31482 { { echo "$as_me:$LINENO: error: Package requirements (xtst xext x11) were not met:
31484 $XTSTEXAMPLES_DEP_PKG_ERRORS
31486 Consider adjusting the PKG_CONFIG_PATH environment variable if you
31487 installed software in a non-standard prefix.
31489 Alternatively, you may set the environment variables XTSTEXAMPLES_DEP_CFLAGS
31490 and XTSTEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31491 See the pkg-config man page for more details.
31492 " >&5
31493 echo "$as_me: error: Package requirements (xtst xext x11) were not met:
31495 $XTSTEXAMPLES_DEP_PKG_ERRORS
31497 Consider adjusting the PKG_CONFIG_PATH environment variable if you
31498 installed software in a non-standard prefix.
31500 Alternatively, you may set the environment variables XTSTEXAMPLES_DEP_CFLAGS
31501 and XTSTEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31502 See the pkg-config man page for more details.
31503 " >&2;}
31504 { (exit 1); exit 1; }; }
31505 elif test $pkg_failed = untried; then
31506 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
31507 is in your PATH or set the PKG_CONFIG environment variable to the full
31508 path to pkg-config.
31510 Alternatively, you may set the environment variables XTSTEXAMPLES_DEP_CFLAGS
31511 and XTSTEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31512 See the pkg-config man page for more details.
31514 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
31515 See \`config.log' for more details." >&5
31516 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
31517 is in your PATH or set the PKG_CONFIG environment variable to the full
31518 path to pkg-config.
31520 Alternatively, you may set the environment variables XTSTEXAMPLES_DEP_CFLAGS
31521 and XTSTEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31522 See the pkg-config man page for more details.
31524 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
31525 See \`config.log' for more details." >&2;}
31526 { (exit 1); exit 1; }; }
31527 else
31528 XTSTEXAMPLES_DEP_CFLAGS=$pkg_cv_XTSTEXAMPLES_DEP_CFLAGS
31529 XTSTEXAMPLES_DEP_LIBS=$pkg_cv_XTSTEXAMPLES_DEP_LIBS
31530 { echo "$as_me:$LINENO: result: yes" >&5
31531 echo "${ECHO_T}yes" >&6; }
31536 pkg_failed=no
31537 { echo "$as_me:$LINENO: checking for XRESEXAMPLES_DEP" >&5
31538 echo $ECHO_N "checking for XRESEXAMPLES_DEP... $ECHO_C" >&6; }
31540 if test -n "$PKG_CONFIG"; then
31541 if test -n "$XRESEXAMPLES_DEP_CFLAGS"; then
31542 pkg_cv_XRESEXAMPLES_DEP_CFLAGS="$XRESEXAMPLES_DEP_CFLAGS"
31543 else
31544 if test -n "$PKG_CONFIG" && \
31545 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xres xext x11\"") >&5
31546 ($PKG_CONFIG --exists --print-errors "xres xext x11") 2>&5
31547 ac_status=$?
31548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31549 (exit $ac_status); }; then
31550 pkg_cv_XRESEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "xres xext x11" 2>/dev/null`
31551 else
31552 pkg_failed=yes
31555 else
31556 pkg_failed=untried
31558 if test -n "$PKG_CONFIG"; then
31559 if test -n "$XRESEXAMPLES_DEP_LIBS"; then
31560 pkg_cv_XRESEXAMPLES_DEP_LIBS="$XRESEXAMPLES_DEP_LIBS"
31561 else
31562 if test -n "$PKG_CONFIG" && \
31563 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xres xext x11\"") >&5
31564 ($PKG_CONFIG --exists --print-errors "xres xext x11") 2>&5
31565 ac_status=$?
31566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31567 (exit $ac_status); }; then
31568 pkg_cv_XRESEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "xres xext x11" 2>/dev/null`
31569 else
31570 pkg_failed=yes
31573 else
31574 pkg_failed=untried
31579 if test $pkg_failed = yes; then
31581 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31582 _pkg_short_errors_supported=yes
31583 else
31584 _pkg_short_errors_supported=no
31586 if test $_pkg_short_errors_supported = yes; then
31587 XRESEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xres xext x11"`
31588 else
31589 XRESEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xres xext x11"`
31591 # Put the nasty error message in config.log where it belongs
31592 echo "$XRESEXAMPLES_DEP_PKG_ERRORS" >&5
31594 { { echo "$as_me:$LINENO: error: Package requirements (xres xext x11) were not met:
31596 $XRESEXAMPLES_DEP_PKG_ERRORS
31598 Consider adjusting the PKG_CONFIG_PATH environment variable if you
31599 installed software in a non-standard prefix.
31601 Alternatively, you may set the environment variables XRESEXAMPLES_DEP_CFLAGS
31602 and XRESEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31603 See the pkg-config man page for more details.
31604 " >&5
31605 echo "$as_me: error: Package requirements (xres xext x11) were not met:
31607 $XRESEXAMPLES_DEP_PKG_ERRORS
31609 Consider adjusting the PKG_CONFIG_PATH environment variable if you
31610 installed software in a non-standard prefix.
31612 Alternatively, you may set the environment variables XRESEXAMPLES_DEP_CFLAGS
31613 and XRESEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31614 See the pkg-config man page for more details.
31615 " >&2;}
31616 { (exit 1); exit 1; }; }
31617 elif test $pkg_failed = untried; then
31618 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
31619 is in your PATH or set the PKG_CONFIG environment variable to the full
31620 path to pkg-config.
31622 Alternatively, you may set the environment variables XRESEXAMPLES_DEP_CFLAGS
31623 and XRESEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31624 See the pkg-config man page for more details.
31626 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
31627 See \`config.log' for more details." >&5
31628 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
31629 is in your PATH or set the PKG_CONFIG environment variable to the full
31630 path to pkg-config.
31632 Alternatively, you may set the environment variables XRESEXAMPLES_DEP_CFLAGS
31633 and XRESEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31634 See the pkg-config man page for more details.
31636 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
31637 See \`config.log' for more details." >&2;}
31638 { (exit 1); exit 1; }; }
31639 else
31640 XRESEXAMPLES_DEP_CFLAGS=$pkg_cv_XRESEXAMPLES_DEP_CFLAGS
31641 XRESEXAMPLES_DEP_LIBS=$pkg_cv_XRESEXAMPLES_DEP_LIBS
31642 { echo "$as_me:$LINENO: result: yes" >&5
31643 echo "${ECHO_T}yes" >&6; }
31648 pkg_failed=no
31649 { echo "$as_me:$LINENO: checking for X11EXAMPLES_DEP" >&5
31650 echo $ECHO_N "checking for X11EXAMPLES_DEP... $ECHO_C" >&6; }
31652 if test -n "$PKG_CONFIG"; then
31653 if test -n "$X11EXAMPLES_DEP_CFLAGS"; then
31654 pkg_cv_X11EXAMPLES_DEP_CFLAGS="$X11EXAMPLES_DEP_CFLAGS"
31655 else
31656 if test -n "$PKG_CONFIG" && \
31657 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xext x11\"") >&5
31658 ($PKG_CONFIG --exists --print-errors "xext x11") 2>&5
31659 ac_status=$?
31660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31661 (exit $ac_status); }; then
31662 pkg_cv_X11EXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "xext x11" 2>/dev/null`
31663 else
31664 pkg_failed=yes
31667 else
31668 pkg_failed=untried
31670 if test -n "$PKG_CONFIG"; then
31671 if test -n "$X11EXAMPLES_DEP_LIBS"; then
31672 pkg_cv_X11EXAMPLES_DEP_LIBS="$X11EXAMPLES_DEP_LIBS"
31673 else
31674 if test -n "$PKG_CONFIG" && \
31675 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xext x11\"") >&5
31676 ($PKG_CONFIG --exists --print-errors "xext x11") 2>&5
31677 ac_status=$?
31678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31679 (exit $ac_status); }; then
31680 pkg_cv_X11EXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "xext x11" 2>/dev/null`
31681 else
31682 pkg_failed=yes
31685 else
31686 pkg_failed=untried
31691 if test $pkg_failed = yes; then
31693 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31694 _pkg_short_errors_supported=yes
31695 else
31696 _pkg_short_errors_supported=no
31698 if test $_pkg_short_errors_supported = yes; then
31699 X11EXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xext x11"`
31700 else
31701 X11EXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xext x11"`
31703 # Put the nasty error message in config.log where it belongs
31704 echo "$X11EXAMPLES_DEP_PKG_ERRORS" >&5
31706 { { echo "$as_me:$LINENO: error: Package requirements (xext x11) were not met:
31708 $X11EXAMPLES_DEP_PKG_ERRORS
31710 Consider adjusting the PKG_CONFIG_PATH environment variable if you
31711 installed software in a non-standard prefix.
31713 Alternatively, you may set the environment variables X11EXAMPLES_DEP_CFLAGS
31714 and X11EXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31715 See the pkg-config man page for more details.
31716 " >&5
31717 echo "$as_me: error: Package requirements (xext x11) were not met:
31719 $X11EXAMPLES_DEP_PKG_ERRORS
31721 Consider adjusting the PKG_CONFIG_PATH environment variable if you
31722 installed software in a non-standard prefix.
31724 Alternatively, you may set the environment variables X11EXAMPLES_DEP_CFLAGS
31725 and X11EXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31726 See the pkg-config man page for more details.
31727 " >&2;}
31728 { (exit 1); exit 1; }; }
31729 elif test $pkg_failed = untried; then
31730 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
31731 is in your PATH or set the PKG_CONFIG environment variable to the full
31732 path to pkg-config.
31734 Alternatively, you may set the environment variables X11EXAMPLES_DEP_CFLAGS
31735 and X11EXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31736 See the pkg-config man page for more details.
31738 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
31739 See \`config.log' for more details." >&5
31740 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
31741 is in your PATH or set the PKG_CONFIG environment variable to the full
31742 path to pkg-config.
31744 Alternatively, you may set the environment variables X11EXAMPLES_DEP_CFLAGS
31745 and X11EXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31746 See the pkg-config man page for more details.
31748 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
31749 See \`config.log' for more details." >&2;}
31750 { (exit 1); exit 1; }; }
31751 else
31752 X11EXAMPLES_DEP_CFLAGS=$pkg_cv_X11EXAMPLES_DEP_CFLAGS
31753 X11EXAMPLES_DEP_LIBS=$pkg_cv_X11EXAMPLES_DEP_LIBS
31754 { echo "$as_me:$LINENO: result: yes" >&5
31755 echo "${ECHO_T}yes" >&6; }
31760 if test "x$DMX_BUILD_LNX" = xyes; then
31761 DMX_BUILD_LNX_TRUE=
31762 DMX_BUILD_LNX_FALSE='#'
31763 else
31764 DMX_BUILD_LNX_TRUE='#'
31765 DMX_BUILD_LNX_FALSE=
31768 if test "x$DMX_BUILD_USB" = xyes; then
31769 DMX_BUILD_USB_TRUE=
31770 DMX_BUILD_USB_FALSE='#'
31771 else
31772 DMX_BUILD_USB_TRUE='#'
31773 DMX_BUILD_USB_FALSE=
31779 { echo "$as_me:$LINENO: checking whether to build Xvfb DDX" >&5
31780 echo $ECHO_N "checking whether to build Xvfb DDX... $ECHO_C" >&6; }
31781 { echo "$as_me:$LINENO: result: $XVFB" >&5
31782 echo "${ECHO_T}$XVFB" >&6; }
31783 if test "x$XVFB" = xyes; then
31784 XVFB_TRUE=
31785 XVFB_FALSE='#'
31786 else
31787 XVFB_TRUE='#'
31788 XVFB_FALSE=
31792 if test "x$XVFB" = xyes; then
31793 XVFB_LIBS="$FB_LIB $MI_LIB $FIXES_LIB $XEXT_LIB $CONFIG_LIB $DBE_LIB $XTRAP_LIB $RECORD_LIB $GLX_LIBS $RENDER_LIB $RANDR_LIB $DAMAGE_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $XPSTUBS_LIB $CWRAP_LIB $OS_LIB $LIBS"
31799 { echo "$as_me:$LINENO: checking whether to build Xnest DDX" >&5
31800 echo $ECHO_N "checking whether to build Xnest DDX... $ECHO_C" >&6; }
31802 pkg_failed=no
31803 { echo "$as_me:$LINENO: checking for XNESTMODULES" >&5
31804 echo $ECHO_N "checking for XNESTMODULES... $ECHO_C" >&6; }
31806 if test -n "$PKG_CONFIG"; then
31807 if test -n "$XNESTMODULES_CFLAGS"; then
31808 pkg_cv_XNESTMODULES_CFLAGS="$XNESTMODULES_CFLAGS"
31809 else
31810 if test -n "$PKG_CONFIG" && \
31811 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xfont xext x11 xau \$XDMCP_MODULES\"") >&5
31812 ($PKG_CONFIG --exists --print-errors "xfont xext x11 xau $XDMCP_MODULES") 2>&5
31813 ac_status=$?
31814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31815 (exit $ac_status); }; then
31816 pkg_cv_XNESTMODULES_CFLAGS=`$PKG_CONFIG --cflags "xfont xext x11 xau $XDMCP_MODULES" 2>/dev/null`
31817 else
31818 pkg_failed=yes
31821 else
31822 pkg_failed=untried
31824 if test -n "$PKG_CONFIG"; then
31825 if test -n "$XNESTMODULES_LIBS"; then
31826 pkg_cv_XNESTMODULES_LIBS="$XNESTMODULES_LIBS"
31827 else
31828 if test -n "$PKG_CONFIG" && \
31829 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xfont xext x11 xau \$XDMCP_MODULES\"") >&5
31830 ($PKG_CONFIG --exists --print-errors "xfont xext x11 xau $XDMCP_MODULES") 2>&5
31831 ac_status=$?
31832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31833 (exit $ac_status); }; then
31834 pkg_cv_XNESTMODULES_LIBS=`$PKG_CONFIG --libs "xfont xext x11 xau $XDMCP_MODULES" 2>/dev/null`
31835 else
31836 pkg_failed=yes
31839 else
31840 pkg_failed=untried
31845 if test $pkg_failed = yes; then
31847 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31848 _pkg_short_errors_supported=yes
31849 else
31850 _pkg_short_errors_supported=no
31852 if test $_pkg_short_errors_supported = yes; then
31853 XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xfont xext x11 xau $XDMCP_MODULES"`
31854 else
31855 XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xfont xext x11 xau $XDMCP_MODULES"`
31857 # Put the nasty error message in config.log where it belongs
31858 echo "$XNESTMODULES_PKG_ERRORS" >&5
31860 { echo "$as_me:$LINENO: result: no" >&5
31861 echo "${ECHO_T}no" >&6; }
31862 have_xnest=no
31863 elif test $pkg_failed = untried; then
31864 have_xnest=no
31865 else
31866 XNESTMODULES_CFLAGS=$pkg_cv_XNESTMODULES_CFLAGS
31867 XNESTMODULES_LIBS=$pkg_cv_XNESTMODULES_LIBS
31868 { echo "$as_me:$LINENO: result: yes" >&5
31869 echo "${ECHO_T}yes" >&6; }
31870 have_xnest=yes
31872 if test "x$XNEST" = xauto; then
31873 XNEST="$have_xnest"
31875 { echo "$as_me:$LINENO: result: $XNEST" >&5
31876 echo "${ECHO_T}$XNEST" >&6; }
31877 if test "x$XNEST" = xyes; then
31878 XNEST_TRUE=
31879 XNEST_FALSE='#'
31880 else
31881 XNEST_TRUE='#'
31882 XNEST_FALSE=
31886 if test "x$XNEST" = xyes; then
31887 XNEST_LIBS="$MI_LIB $CONFIG_LIB $XSERVER_LIBS $FB_LIB $FIXES_LIB $XEXT_LIB $DBE_LIB $XTRAP_LIB $RECORD_LIB $GLX_LIBS $RENDER_LIB $RANDR_LIB $DAMAGE_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $XPSTUBS_LIB $CWRAP_LIB $OS_LIB $LIBS"
31893 { echo "$as_me:$LINENO: checking whether to build Xorg DDX" >&5
31894 echo $ECHO_N "checking whether to build Xorg DDX... $ECHO_C" >&6; }
31895 if test "x$XORG" = xauto; then
31896 XORG="yes"
31897 case $host_os in
31898 cygwin*) XORG="no" ;;
31899 esac
31901 { echo "$as_me:$LINENO: result: $XORG" >&5
31902 echo "${ECHO_T}$XORG" >&6; }
31905 { echo "$as_me:$LINENO: checking whether to build Xgl DDX" >&5
31906 echo $ECHO_N "checking whether to build Xgl DDX... $ECHO_C" >&6; }
31907 if test "x$XGL" != xno; then
31909 pkg_failed=no
31910 { echo "$as_me:$LINENO: checking for XGLMODULES" >&5
31911 echo $ECHO_N "checking for XGLMODULES... $ECHO_C" >&6; }
31913 if test -n "$PKG_CONFIG"; then
31914 if test -n "$XGLMODULES_CFLAGS"; then
31915 pkg_cv_XGLMODULES_CFLAGS="$XGLMODULES_CFLAGS"
31916 else
31917 if test -n "$PKG_CONFIG" && \
31918 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glitz-glx >= 0.4.3\"") >&5
31919 ($PKG_CONFIG --exists --print-errors "glitz-glx >= 0.4.3") 2>&5
31920 ac_status=$?
31921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31922 (exit $ac_status); }; then
31923 pkg_cv_XGLMODULES_CFLAGS=`$PKG_CONFIG --cflags "glitz-glx >= 0.4.3" 2>/dev/null`
31924 else
31925 pkg_failed=yes
31928 else
31929 pkg_failed=untried
31931 if test -n "$PKG_CONFIG"; then
31932 if test -n "$XGLMODULES_LIBS"; then
31933 pkg_cv_XGLMODULES_LIBS="$XGLMODULES_LIBS"
31934 else
31935 if test -n "$PKG_CONFIG" && \
31936 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glitz-glx >= 0.4.3\"") >&5
31937 ($PKG_CONFIG --exists --print-errors "glitz-glx >= 0.4.3") 2>&5
31938 ac_status=$?
31939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31940 (exit $ac_status); }; then
31941 pkg_cv_XGLMODULES_LIBS=`$PKG_CONFIG --libs "glitz-glx >= 0.4.3" 2>/dev/null`
31942 else
31943 pkg_failed=yes
31946 else
31947 pkg_failed=untried
31952 if test $pkg_failed = yes; then
31954 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31955 _pkg_short_errors_supported=yes
31956 else
31957 _pkg_short_errors_supported=no
31959 if test $_pkg_short_errors_supported = yes; then
31960 XGLMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glitz-glx >= 0.4.3"`
31961 else
31962 XGLMODULES_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glitz-glx >= 0.4.3"`
31964 # Put the nasty error message in config.log where it belongs
31965 echo "$XGLMODULES_PKG_ERRORS" >&5
31967 { echo "$as_me:$LINENO: result: no" >&5
31968 echo "${ECHO_T}no" >&6; }
31969 XGL=no
31970 elif test $pkg_failed = untried; then
31971 XGL=no
31972 else
31973 XGLMODULES_CFLAGS=$pkg_cv_XGLMODULES_CFLAGS
31974 XGLMODULES_LIBS=$pkg_cv_XGLMODULES_LIBS
31975 { echo "$as_me:$LINENO: result: yes" >&5
31976 echo "${ECHO_T}yes" >&6; }
31977 XGL=yes
31982 { echo "$as_me:$LINENO: result: $XGL" >&5
31983 echo "${ECHO_T}$XGL" >&6; }
31984 if test "x$XGL" = xyes; then
31985 XGL_TRUE=
31986 XGL_FALSE='#'
31987 else
31988 XGL_TRUE='#'
31989 XGL_FALSE=
31993 if test "x$XGL" = xyes; then
31994 XGL_LIBS="$FB_LIB $MI_LIB $COMPOSITE_LIB $FIXES_LIB $XEXT_LIB $CONFIG_LIB $DBE_LIB $XTRAP_LIB $RECORD_LIB $GLX_LIBS $RENDER_LIB $RANDR_LIB $DAMAGE_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $MIEXT_LAYER_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $XPSTUBS_LIB $CWRAP_LIB $OS_LIB"
31997 cat >>confdefs.h <<\_ACEOF
31998 #define XGL_MODULAR 1
31999 _ACEOF
32002 xglmoduledir="$moduledir/xgl"
32005 prefix_NONE=
32006 exec_prefix_NONE=
32007 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
32008 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
32009 eval ac_define_dir="\"$xglmoduledir\""
32010 eval ac_define_dir="\"$ac_define_dir\""
32011 XGL_MODULE_PATH="$ac_define_dir"
32014 cat >>confdefs.h <<_ACEOF
32015 #define XGL_MODULE_PATH "$ac_define_dir"
32016 _ACEOF
32018 test "$prefix_NONE" && prefix=NONE
32019 test "$exec_prefix_NONE" && exec_prefix=NONE
32024 { echo "$as_me:$LINENO: checking whether to build Xegl DDX" >&5
32025 echo $ECHO_N "checking whether to build Xegl DDX... $ECHO_C" >&6; }
32026 if test "x$XEGL" != xno; then
32028 pkg_failed=no
32029 { echo "$as_me:$LINENO: checking for XGLMODULES" >&5
32030 echo $ECHO_N "checking for XGLMODULES... $ECHO_C" >&6; }
32032 if test -n "$PKG_CONFIG"; then
32033 if test -n "$XGLMODULES_CFLAGS"; then
32034 pkg_cv_XGLMODULES_CFLAGS="$XGLMODULES_CFLAGS"
32035 else
32036 if test -n "$PKG_CONFIG" && \
32037 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glitz-glx >= 0.4.3\"") >&5
32038 ($PKG_CONFIG --exists --print-errors "glitz-glx >= 0.4.3") 2>&5
32039 ac_status=$?
32040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32041 (exit $ac_status); }; then
32042 pkg_cv_XGLMODULES_CFLAGS=`$PKG_CONFIG --cflags "glitz-glx >= 0.4.3" 2>/dev/null`
32043 else
32044 pkg_failed=yes
32047 else
32048 pkg_failed=untried
32050 if test -n "$PKG_CONFIG"; then
32051 if test -n "$XGLMODULES_LIBS"; then
32052 pkg_cv_XGLMODULES_LIBS="$XGLMODULES_LIBS"
32053 else
32054 if test -n "$PKG_CONFIG" && \
32055 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glitz-glx >= 0.4.3\"") >&5
32056 ($PKG_CONFIG --exists --print-errors "glitz-glx >= 0.4.3") 2>&5
32057 ac_status=$?
32058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32059 (exit $ac_status); }; then
32060 pkg_cv_XGLMODULES_LIBS=`$PKG_CONFIG --libs "glitz-glx >= 0.4.3" 2>/dev/null`
32061 else
32062 pkg_failed=yes
32065 else
32066 pkg_failed=untried
32071 if test $pkg_failed = yes; then
32073 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32074 _pkg_short_errors_supported=yes
32075 else
32076 _pkg_short_errors_supported=no
32078 if test $_pkg_short_errors_supported = yes; then
32079 XGLMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glitz-glx >= 0.4.3"`
32080 else
32081 XGLMODULES_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glitz-glx >= 0.4.3"`
32083 # Put the nasty error message in config.log where it belongs
32084 echo "$XGLMODULES_PKG_ERRORS" >&5
32086 { echo "$as_me:$LINENO: result: no" >&5
32087 echo "${ECHO_T}no" >&6; }
32088 XEGL=no
32089 elif test $pkg_failed = untried; then
32090 XEGL=no
32091 else
32092 XGLMODULES_CFLAGS=$pkg_cv_XGLMODULES_CFLAGS
32093 XGLMODULES_LIBS=$pkg_cv_XGLMODULES_LIBS
32094 { echo "$as_me:$LINENO: result: yes" >&5
32095 echo "${ECHO_T}yes" >&6; }
32096 XEGL=yes
32101 { echo "$as_me:$LINENO: result: $XEGL" >&5
32102 echo "${ECHO_T}$XEGL" >&6; }
32103 if test "x$XEGL" = xyes; then
32104 XEGL_TRUE=
32105 XEGL_FALSE='#'
32106 else
32107 XEGL_TRUE='#'
32108 XEGL_FALSE=
32112 if test "x$XEGL" = xyes; then
32113 XEGL_LIBS="$FB_LIB $MI_LIB $COMPOSITE_LIB $FIXES_LIB $XEXT_LIB $CONFIG_LIB $DBE_LIB $XTRAP_LIB $RECORD_LIB $GLX_LIBS $RENDER_LIB $RANDR_LIB $DAMAGE_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $MIEXT_LAYER_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $XPSTUBS_LIB $CWRAP_LIB $OS_LIB"
32118 { echo "$as_me:$LINENO: checking whether to build Xglx DDX" >&5
32119 echo $ECHO_N "checking whether to build Xglx DDX... $ECHO_C" >&6; }
32120 if test "x$XGLX" != xno; then
32122 pkg_failed=no
32123 { echo "$as_me:$LINENO: checking for XGLXMODULES" >&5
32124 echo $ECHO_N "checking for XGLXMODULES... $ECHO_C" >&6; }
32126 if test -n "$PKG_CONFIG"; then
32127 if test -n "$XGLXMODULES_CFLAGS"; then
32128 pkg_cv_XGLXMODULES_CFLAGS="$XGLXMODULES_CFLAGS"
32129 else
32130 if test -n "$PKG_CONFIG" && \
32131 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glitz-glx >= 0.4.3 xrender\"") >&5
32132 ($PKG_CONFIG --exists --print-errors "glitz-glx >= 0.4.3 xrender") 2>&5
32133 ac_status=$?
32134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32135 (exit $ac_status); }; then
32136 pkg_cv_XGLXMODULES_CFLAGS=`$PKG_CONFIG --cflags "glitz-glx >= 0.4.3 xrender" 2>/dev/null`
32137 else
32138 pkg_failed=yes
32141 else
32142 pkg_failed=untried
32144 if test -n "$PKG_CONFIG"; then
32145 if test -n "$XGLXMODULES_LIBS"; then
32146 pkg_cv_XGLXMODULES_LIBS="$XGLXMODULES_LIBS"
32147 else
32148 if test -n "$PKG_CONFIG" && \
32149 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glitz-glx >= 0.4.3 xrender\"") >&5
32150 ($PKG_CONFIG --exists --print-errors "glitz-glx >= 0.4.3 xrender") 2>&5
32151 ac_status=$?
32152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32153 (exit $ac_status); }; then
32154 pkg_cv_XGLXMODULES_LIBS=`$PKG_CONFIG --libs "glitz-glx >= 0.4.3 xrender" 2>/dev/null`
32155 else
32156 pkg_failed=yes
32159 else
32160 pkg_failed=untried
32165 if test $pkg_failed = yes; then
32167 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32168 _pkg_short_errors_supported=yes
32169 else
32170 _pkg_short_errors_supported=no
32172 if test $_pkg_short_errors_supported = yes; then
32173 XGLXMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glitz-glx >= 0.4.3 xrender"`
32174 else
32175 XGLXMODULES_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glitz-glx >= 0.4.3 xrender"`
32177 # Put the nasty error message in config.log where it belongs
32178 echo "$XGLXMODULES_PKG_ERRORS" >&5
32180 { echo "$as_me:$LINENO: result: no" >&5
32181 echo "${ECHO_T}no" >&6; }
32182 XGLX=no
32183 elif test $pkg_failed = untried; then
32184 XGLX=no
32185 else
32186 XGLXMODULES_CFLAGS=$pkg_cv_XGLXMODULES_CFLAGS
32187 XGLXMODULES_LIBS=$pkg_cv_XGLXMODULES_LIBS
32188 { echo "$as_me:$LINENO: result: yes" >&5
32189 echo "${ECHO_T}yes" >&6; }
32190 XGLX=yes
32195 { echo "$as_me:$LINENO: result: $XGLX" >&5
32196 echo "${ECHO_T}$XGLX" >&6; }
32197 if test "x$XGLX" = xyes; then
32198 XGLX_TRUE=
32199 XGLX_FALSE='#'
32200 else
32201 XGLX_TRUE='#'
32202 XGLX_FALSE=
32206 if test "x$XGLX" = xyes; then
32207 XGLX_LIBS="$FB_LIB $MI_LIB $COMPOSITE_LIB $FIXES_LIB $XEXT_LIB $CONFIG_LIB $DBE_LIB $XTRAP_LIB $RECORD_LIB $GLX_LIBS $RENDER_LIB $RANDR_LIB $DAMAGE_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $MIEXT_LAYER_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $XPSTUBS_LIB $CWRAP_LIB $OS_LIB"
32211 # XORG_CORE_LIBS is needed even if you're not building the Xorg DDX
32212 XORG_CORE_LIBS="$DIX_LIB $CONFIG_LIB"
32215 xorg_bus_linuxpci=no
32216 xorg_bus_freebsdpci=no
32217 xorg_bus_netbsdpci=no
32218 xorg_bus_ix86pci=no
32219 xorg_bus_ppcpci=no
32220 xorg_bus_sparcpci=no
32221 xorg_bus_sparc=no
32223 if test "x$XORG" = xyes -o "x$XGL" = xyes; then
32224 XORG_DDXINCS='-I$(top_srcdir)/hw/xfree86 -I$(top_srcdir)/hw/xfree86/include -I$(top_srcdir)/hw/xfree86/common'
32225 XORG_OSINCS='-I$(top_srcdir)/hw/xfree86/os-support -I$(top_srcdir)/hw/xfree86/os-support/bus -I$(top_srcdir)/os'
32226 XORG_INCS="$XORG_DDXINCS $XORG_OSINCS"
32227 XORG_CFLAGS="$XORGSERVER_CFLAGS -DHAVE_XORG_CONFIG_H"
32228 XORG_LIBS="$COMPOSITE_LIB $MI_LIB $FIXES_LIB $XEXTXORG_LIB $GLX_LIBS $RENDER_LIB $RANDR_LIB $DAMAGE_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XPSTUBS_LIB $OS_LIB"
32230 { echo "$as_me:$LINENO: checking for dlopen" >&5
32231 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
32232 if test "${ac_cv_func_dlopen+set}" = set; then
32233 echo $ECHO_N "(cached) $ECHO_C" >&6
32234 else
32235 cat >conftest.$ac_ext <<_ACEOF
32236 /* confdefs.h. */
32237 _ACEOF
32238 cat confdefs.h >>conftest.$ac_ext
32239 cat >>conftest.$ac_ext <<_ACEOF
32240 /* end confdefs.h. */
32241 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
32242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32243 #define dlopen innocuous_dlopen
32245 /* System header to define __stub macros and hopefully few prototypes,
32246 which can conflict with char dlopen (); below.
32247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32248 <limits.h> exists even on freestanding compilers. */
32250 #ifdef __STDC__
32251 # include <limits.h>
32252 #else
32253 # include <assert.h>
32254 #endif
32256 #undef dlopen
32258 /* Override any GCC internal prototype to avoid an error.
32259 Use char because int might match the return type of a GCC
32260 builtin and then its argument prototype would still apply. */
32261 #ifdef __cplusplus
32262 extern "C"
32263 #endif
32264 char dlopen ();
32265 /* The GNU C library defines this for functions which it implements
32266 to always fail with ENOSYS. Some functions are actually named
32267 something starting with __ and the normal name is an alias. */
32268 #if defined __stub_dlopen || defined __stub___dlopen
32269 choke me
32270 #endif
32273 main ()
32275 return dlopen ();
32277 return 0;
32279 _ACEOF
32280 rm -f conftest.$ac_objext conftest$ac_exeext
32281 if { (ac_try="$ac_link"
32282 case "(($ac_try" in
32283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32284 *) ac_try_echo=$ac_try;;
32285 esac
32286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32287 (eval "$ac_link") 2>conftest.er1
32288 ac_status=$?
32289 grep -v '^ *+' conftest.er1 >conftest.err
32290 rm -f conftest.er1
32291 cat conftest.err >&5
32292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32293 (exit $ac_status); } && {
32294 test -z "$ac_c_werror_flag" ||
32295 test ! -s conftest.err
32296 } && test -s conftest$ac_exeext &&
32297 $as_test_x conftest$ac_exeext; then
32298 ac_cv_func_dlopen=yes
32299 else
32300 echo "$as_me: failed program was:" >&5
32301 sed 's/^/| /' conftest.$ac_ext >&5
32303 ac_cv_func_dlopen=no
32306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32307 conftest$ac_exeext conftest.$ac_ext
32309 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
32310 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
32311 if test $ac_cv_func_dlopen = yes; then
32313 else
32314 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
32315 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
32316 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
32317 echo $ECHO_N "(cached) $ECHO_C" >&6
32318 else
32319 ac_check_lib_save_LIBS=$LIBS
32320 LIBS="-ldl $LIBS"
32321 cat >conftest.$ac_ext <<_ACEOF
32322 /* confdefs.h. */
32323 _ACEOF
32324 cat confdefs.h >>conftest.$ac_ext
32325 cat >>conftest.$ac_ext <<_ACEOF
32326 /* end confdefs.h. */
32328 /* Override any GCC internal prototype to avoid an error.
32329 Use char because int might match the return type of a GCC
32330 builtin and then its argument prototype would still apply. */
32331 #ifdef __cplusplus
32332 extern "C"
32333 #endif
32334 char dlopen ();
32336 main ()
32338 return dlopen ();
32340 return 0;
32342 _ACEOF
32343 rm -f conftest.$ac_objext conftest$ac_exeext
32344 if { (ac_try="$ac_link"
32345 case "(($ac_try" in
32346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32347 *) ac_try_echo=$ac_try;;
32348 esac
32349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32350 (eval "$ac_link") 2>conftest.er1
32351 ac_status=$?
32352 grep -v '^ *+' conftest.er1 >conftest.err
32353 rm -f conftest.er1
32354 cat conftest.err >&5
32355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32356 (exit $ac_status); } && {
32357 test -z "$ac_c_werror_flag" ||
32358 test ! -s conftest.err
32359 } && test -s conftest$ac_exeext &&
32360 $as_test_x conftest$ac_exeext; then
32361 ac_cv_lib_dl_dlopen=yes
32362 else
32363 echo "$as_me: failed program was:" >&5
32364 sed 's/^/| /' conftest.$ac_ext >&5
32366 ac_cv_lib_dl_dlopen=no
32369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32370 conftest$ac_exeext conftest.$ac_ext
32371 LIBS=$ac_check_lib_save_LIBS
32373 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
32374 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
32375 if test $ac_cv_lib_dl_dlopen = yes; then
32376 XORG_LIBS="$XORG_LIBS -ldl"
32382 case $host_os in
32383 darwin*)
32384 XORG_OS="Darwin"
32385 build_darwin=yes
32386 if test "X$XQUARTZ" = Xauto; then
32387 { echo "$as_me:$LINENO: checking for Carbon framework" >&5
32388 echo $ECHO_N "checking for Carbon framework... $ECHO_C" >&6; }
32389 if test "${xorg_cv_Carbon_framework+set}" = set; then
32390 echo $ECHO_N "(cached) $ECHO_C" >&6
32391 else
32393 save_LDFLAGS=$LDFLAGS
32394 LDFLAGS="$LDFLAGS -framework Carbon"
32395 cat >conftest.$ac_ext <<_ACEOF
32396 char FSFindFolder();
32397 int main() {
32398 FSFindFolder();
32399 return 0;}
32401 _ACEOF
32402 rm -f conftest.$ac_objext conftest$ac_exeext
32403 if { (ac_try="$ac_link"
32404 case "(($ac_try" in
32405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32406 *) ac_try_echo=$ac_try;;
32407 esac
32408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32409 (eval "$ac_link") 2>conftest.er1
32410 ac_status=$?
32411 grep -v '^ *+' conftest.er1 >conftest.err
32412 rm -f conftest.er1
32413 cat conftest.err >&5
32414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32415 (exit $ac_status); } && {
32416 test -z "$ac_c_werror_flag" ||
32417 test ! -s conftest.err
32418 } && test -s conftest$ac_exeext &&
32419 $as_test_x conftest$ac_exeext; then
32420 xorg_cv_Carbon_framework=yes
32421 else
32422 echo "$as_me: failed program was:" >&5
32423 sed 's/^/| /' conftest.$ac_ext >&5
32425 xorg_cv_Carbon_framework=no
32428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32429 conftest$ac_exeext conftest.$ac_ext
32430 LDFLAGS=$save_LDFLAGS
32432 { echo "$as_me:$LINENO: result: $xorg_cv_Carbon_framework" >&5
32433 echo "${ECHO_T}$xorg_cv_Carbon_framework" >&6; }
32434 if test "X$xorg_cv_Carbon_framework" = Xyes; then
32436 cat >>confdefs.h <<\_ACEOF
32437 #define DARWIN_WITH_QUARTZ 1
32438 _ACEOF
32440 XQUARTZ=yes
32441 else
32442 XQUARTZ=no
32445 # glxAGL / glxCGL don't work yet
32446 # AC_CACHE_CHECK([for AGL framework],xorg_cv_AGL_framework,[
32447 # save_LDFLAGS=$LDFLAGS
32448 # LDFLAGS="$LDFLAGS -framework AGL"
32449 # AC_LINK_IFELSE([char aglEnable();
32450 #int main() {
32451 #aglEnable();
32452 #return 0;}
32453 # ],[xorg_cv_AGL_framework=yes],
32454 # [xorg_cv_AGL_framework=no])
32455 # LDFLAGS=$save_LDFLAGS
32456 # ])
32457 xorg_cv_AGL_framework=no
32458 DARWIN_LIBS="$FB_LIB $MI_LIB $FIXES_LIB $XEXT_LIB $CONFIG_LIB $DBE_LIB $XTRAP_LIB $RECORD_LIB $GLX_LIBS $RENDER_LIB $RANDR_LIB $DAMAGE_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $XPSTUBS_LIB $OS_LIB"
32460 { echo "$as_me:$LINENO: checking for xp_init in -lXplugin" >&5
32461 echo $ECHO_N "checking for xp_init in -lXplugin... $ECHO_C" >&6; }
32462 if test "${ac_cv_lib_Xplugin_xp_init+set}" = set; then
32463 echo $ECHO_N "(cached) $ECHO_C" >&6
32464 else
32465 ac_check_lib_save_LIBS=$LIBS
32466 LIBS="-lXplugin $LIBS"
32467 cat >conftest.$ac_ext <<_ACEOF
32468 /* confdefs.h. */
32469 _ACEOF
32470 cat confdefs.h >>conftest.$ac_ext
32471 cat >>conftest.$ac_ext <<_ACEOF
32472 /* end confdefs.h. */
32474 /* Override any GCC internal prototype to avoid an error.
32475 Use char because int might match the return type of a GCC
32476 builtin and then its argument prototype would still apply. */
32477 #ifdef __cplusplus
32478 extern "C"
32479 #endif
32480 char xp_init ();
32482 main ()
32484 return xp_init ();
32486 return 0;
32488 _ACEOF
32489 rm -f conftest.$ac_objext conftest$ac_exeext
32490 if { (ac_try="$ac_link"
32491 case "(($ac_try" in
32492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32493 *) ac_try_echo=$ac_try;;
32494 esac
32495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32496 (eval "$ac_link") 2>conftest.er1
32497 ac_status=$?
32498 grep -v '^ *+' conftest.er1 >conftest.err
32499 rm -f conftest.er1
32500 cat conftest.err >&5
32501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32502 (exit $ac_status); } && {
32503 test -z "$ac_c_werror_flag" ||
32504 test ! -s conftest.err
32505 } && test -s conftest$ac_exeext &&
32506 $as_test_x conftest$ac_exeext; then
32507 ac_cv_lib_Xplugin_xp_init=yes
32508 else
32509 echo "$as_me: failed program was:" >&5
32510 sed 's/^/| /' conftest.$ac_ext >&5
32512 ac_cv_lib_Xplugin_xp_init=no
32515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32516 conftest$ac_exeext conftest.$ac_ext
32517 LIBS=$ac_check_lib_save_LIBS
32519 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xplugin_xp_init" >&5
32520 echo "${ECHO_T}$ac_cv_lib_Xplugin_xp_init" >&6; }
32521 if test $ac_cv_lib_Xplugin_xp_init = yes; then
32526 CFLAGS="${CFLAGS} -D__DARWIN__"
32527 PLIST_VERSION_STRING=$PACKAGE_VERSION
32529 PLIST_VENDOR_WEB=$VENDOR_WEB
32531 # Not sure that we should be disabling all these...
32532 if test "x$XF86MISC" = xyes || test "x$XF86MISC" = xauto; then
32533 { echo "$as_me:$LINENO: Disabling XF86Misc extension" >&5
32534 echo "$as_me: Disabling XF86Misc extension" >&6;}
32535 XF86MISC=no
32537 if test "x$XF86VIDMODE" = xyes || test "x$XF86VIDMODE" = xauto; then
32538 { echo "$as_me:$LINENO: Disabling XF86VidMode extension" >&5
32539 echo "$as_me: Disabling XF86VidMode extension" >&6;}
32540 XF86VIDMODE=no
32542 if test "x$DGA" = xyes || test "x$DGA" = xauto; then
32543 { echo "$as_me:$LINENO: Disabling DGA extension" >&5
32544 echo "$as_me: Disabling DGA extension" >&6;}
32545 DGA=no
32548 linux*)
32549 if test "x$LNXAPM" = xyes; then
32550 XORG_CFLAGS="$XORG_CFLAGS -DXF86PM"
32552 XORG_OS="linux"
32553 XORG_OS_SUBDIR="linux"
32554 xorg_bus_linuxpci="yes"
32555 linux_acpi="no"
32556 case $host_cpu in
32557 ia64*)
32558 linux_ia64=yes
32559 linux_acpi="yes"
32561 alpha*)
32562 linux_alpha=yes
32563 XORG_OS_PCI="axp"
32564 xorg_bus_linuxpci="no"
32566 i*86|amd64*|x86_64*)
32567 linux_acpi="yes"
32571 esac
32573 freebsd* | kfreebsd*-gnu)
32574 XORG_OS="freebsd"
32575 XORG_OS_SUBDIR="bsd"
32576 case $host_cpu in
32577 i*86)
32580 xorg_bus_freebsdpci="yes"
32582 esac
32584 netbsd*)
32585 XORG_OS="netbsd"
32586 XORG_OS_SUBDIR="bsd"
32587 case $host_cpu in
32588 i*86|amd64*|x86_64*|ia64*)
32591 xorg_bus_netbsdpci="yes"
32593 esac
32595 openbsd*)
32596 XORG_OS="openbsd"
32597 XORG_OS_SUBDIR="bsd"
32598 case $host_cpu in
32599 i*86|amd64*|x86_64*|ia64*)
32602 xorg_bus_freebsdpci="yes"
32604 esac
32606 solaris*)
32607 XORG_OS="solaris"
32608 XORG_OS_SUBDIR="solaris"
32609 # This really should be tests for specific features, but the #ifdef's
32610 # were done as a simple version check in XFree86 4.x and haven't been
32611 # fixed yet
32612 { echo "$as_me:$LINENO: checking Solaris version" >&5
32613 echo $ECHO_N "checking Solaris version... $ECHO_C" >&6; }
32614 OS_MINOR=`echo ${host_os}|sed -e 's/^.*solaris2\.//' -e s'/\..*$//'`
32615 if test "${OS_MINOR}" -ge 7 ; then
32616 { echo "$as_me:$LINENO: result: Solaris ${OS_MINOR}" >&5
32617 echo "${ECHO_T}Solaris ${OS_MINOR}" >&6; }
32618 else
32619 { echo "$as_me:$LINENO: result: Solaris \`echo ${host_os}|sed -e 's/^.*solaris//\`" >&5
32620 echo "${ECHO_T}Solaris \`echo ${host_os}|sed -e 's/^.*solaris//\`" >&6; }
32622 if test "${OS_MINOR}" -ge 8 ; then
32624 cat >>confdefs.h <<\_ACEOF
32625 #define __SOL8__ 1
32626 _ACEOF
32629 { echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
32630 echo $ECHO_N "checking whether __SUNPRO_C is declared... $ECHO_C" >&6; }
32631 if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
32632 echo $ECHO_N "(cached) $ECHO_C" >&6
32633 else
32634 cat >conftest.$ac_ext <<_ACEOF
32635 /* confdefs.h. */
32636 _ACEOF
32637 cat confdefs.h >>conftest.$ac_ext
32638 cat >>conftest.$ac_ext <<_ACEOF
32639 /* end confdefs.h. */
32640 $ac_includes_default
32642 main ()
32644 #ifndef __SUNPRO_C
32645 (void) __SUNPRO_C;
32646 #endif
32649 return 0;
32651 _ACEOF
32652 rm -f conftest.$ac_objext
32653 if { (ac_try="$ac_compile"
32654 case "(($ac_try" in
32655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32656 *) ac_try_echo=$ac_try;;
32657 esac
32658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32659 (eval "$ac_compile") 2>conftest.er1
32660 ac_status=$?
32661 grep -v '^ *+' conftest.er1 >conftest.err
32662 rm -f conftest.er1
32663 cat conftest.err >&5
32664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32665 (exit $ac_status); } && {
32666 test -z "$ac_c_werror_flag" ||
32667 test ! -s conftest.err
32668 } && test -s conftest.$ac_objext; then
32669 ac_cv_have_decl___SUNPRO_C=yes
32670 else
32671 echo "$as_me: failed program was:" >&5
32672 sed 's/^/| /' conftest.$ac_ext >&5
32674 ac_cv_have_decl___SUNPRO_C=no
32677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32679 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
32680 echo "${ECHO_T}$ac_cv_have_decl___SUNPRO_C" >&6; }
32681 if test $ac_cv_have_decl___SUNPRO_C = yes; then
32682 SUNCC="yes"
32683 else
32684 SUNCC="no"
32687 if test "x$SUNCC" = "xyes"; then
32688 solaris_asm_inline="yes"
32690 { echo "$as_me:$LINENO: checking whether _LP64 is declared" >&5
32691 echo $ECHO_N "checking whether _LP64 is declared... $ECHO_C" >&6; }
32692 if test "${ac_cv_have_decl__LP64+set}" = set; then
32693 echo $ECHO_N "(cached) $ECHO_C" >&6
32694 else
32695 cat >conftest.$ac_ext <<_ACEOF
32696 /* confdefs.h. */
32697 _ACEOF
32698 cat confdefs.h >>conftest.$ac_ext
32699 cat >>conftest.$ac_ext <<_ACEOF
32700 /* end confdefs.h. */
32701 $ac_includes_default
32703 main ()
32705 #ifndef _LP64
32706 (void) _LP64;
32707 #endif
32710 return 0;
32712 _ACEOF
32713 rm -f conftest.$ac_objext
32714 if { (ac_try="$ac_compile"
32715 case "(($ac_try" in
32716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32717 *) ac_try_echo=$ac_try;;
32718 esac
32719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32720 (eval "$ac_compile") 2>conftest.er1
32721 ac_status=$?
32722 grep -v '^ *+' conftest.er1 >conftest.err
32723 rm -f conftest.er1
32724 cat conftest.err >&5
32725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32726 (exit $ac_status); } && {
32727 test -z "$ac_c_werror_flag" ||
32728 test ! -s conftest.err
32729 } && test -s conftest.$ac_objext; then
32730 ac_cv_have_decl__LP64=yes
32731 else
32732 echo "$as_me: failed program was:" >&5
32733 sed 's/^/| /' conftest.$ac_ext >&5
32735 ac_cv_have_decl__LP64=no
32738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32740 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__LP64" >&5
32741 echo "${ECHO_T}$ac_cv_have_decl__LP64" >&6; }
32742 if test $ac_cv_have_decl__LP64 = yes; then
32743 SOLARIS_64="yes"
32744 else
32745 SOLARIS_64="no"
32749 case $host_cpu in
32750 sparc*)
32751 SOLARIS_INOUT_ARCH="sparcv8plus"
32753 i*86)
32754 if test x$SOLARIS_64 = xyes ; then
32755 SOLARIS_INOUT_ARCH="amd64"
32756 else
32757 SOLARIS_INOUT_ARCH="ia32"
32759 if test "${OS_MINOR}" -lt 8 ; then
32760 solaris_usl_console="yes"
32761 else
32762 XORG_CFLAGS="$XORG_CFLAGS -DXF86PM"
32766 { { echo "$as_me:$LINENO: error: Unsupported Solaris platform. Only SPARC & x86 \
32767 are supported on Solaris in this release. If you are \
32768 interested in porting Xorg to your platform, please email \
32769 xorg@lists.freedesktop.org." >&5
32770 echo "$as_me: error: Unsupported Solaris platform. Only SPARC & x86 \
32771 are supported on Solaris in this release. If you are \
32772 interested in porting Xorg to your platform, please email \
32773 xorg@lists.freedesktop.org." >&2;}
32774 { (exit 1); exit 1; }; } ;;
32775 esac
32777 if test x$solaris_asm_inline = xyes ; then
32778 SOLARIS_ASM_CFLAGS='$(top_srcdir)/hw/xfree86/os-support/solaris/solaris-$(SOLARIS_INOUT_ARCH).il'
32779 XORG_CFLAGS="${XORG_CFLAGS} "'$(SOLARIS_ASM_CFLAGS)'
32783 gnu*)
32784 XORG_OS="gnu"
32785 XORG_OS_SUBDIR="hurd"
32788 XORG_OS="unknown"
32789 XORG_OS_SUBDIR="unknown"
32790 { { echo "$as_me:$LINENO: error: Your OS is unknown. Xorg currently only supports Linux, \
32791 Free/Open/NetBSD, Solaris, and OS X. If you are interested in porting \
32792 Xorg to your platform, please email xorg@lists.freedesktop.org." >&5
32793 echo "$as_me: error: Your OS is unknown. Xorg currently only supports Linux, \
32794 Free/Open/NetBSD, Solaris, and OS X. If you are interested in porting \
32795 Xorg to your platform, please email xorg@lists.freedesktop.org." >&2;}
32796 { (exit 1); exit 1; }; }
32798 esac
32800 case $host_cpu in
32801 i*86)
32802 case $host_os in
32803 darwin*) ;;
32804 *) xorg_bus_ix86pci=yes ;;
32805 esac
32807 powerpc*)
32808 case $host_os in
32809 darwin*|linux*|freebsd*|netbsd*|openbsd*|kfreebsd*-gnu)
32812 xorg_bus_ppcpci="yes"
32814 esac
32816 sparc*)
32817 xorg_bus_sparcpci="yes"
32818 xorg_bus_sparc="yes"
32820 x86_64*|amd64*)
32821 case $host_os in
32822 darwin*|freebsd*|kfreebsd*-gnu)
32823 # FreeBSD uses the system pci interface
32826 xorg_bus_ix86pci="yes"
32828 esac
32830 esac
32832 if test "x$XORG_OS_PCI" = x ; then
32833 XORG_OS_PCI=$XORG_OS
32835 if test "x$DGA" = xauto; then
32837 pkg_failed=no
32838 { echo "$as_me:$LINENO: checking for DGA" >&5
32839 echo $ECHO_N "checking for DGA... $ECHO_C" >&6; }
32841 if test -n "$PKG_CONFIG"; then
32842 if test -n "$DGA_CFLAGS"; then
32843 pkg_cv_DGA_CFLAGS="$DGA_CFLAGS"
32844 else
32845 if test -n "$PKG_CONFIG" && \
32846 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xf86dgaproto\"") >&5
32847 ($PKG_CONFIG --exists --print-errors "xf86dgaproto") 2>&5
32848 ac_status=$?
32849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32850 (exit $ac_status); }; then
32851 pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "xf86dgaproto" 2>/dev/null`
32852 else
32853 pkg_failed=yes
32856 else
32857 pkg_failed=untried
32859 if test -n "$PKG_CONFIG"; then
32860 if test -n "$DGA_LIBS"; then
32861 pkg_cv_DGA_LIBS="$DGA_LIBS"
32862 else
32863 if test -n "$PKG_CONFIG" && \
32864 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xf86dgaproto\"") >&5
32865 ($PKG_CONFIG --exists --print-errors "xf86dgaproto") 2>&5
32866 ac_status=$?
32867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32868 (exit $ac_status); }; then
32869 pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "xf86dgaproto" 2>/dev/null`
32870 else
32871 pkg_failed=yes
32874 else
32875 pkg_failed=untried
32880 if test $pkg_failed = yes; then
32882 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32883 _pkg_short_errors_supported=yes
32884 else
32885 _pkg_short_errors_supported=no
32887 if test $_pkg_short_errors_supported = yes; then
32888 DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xf86dgaproto"`
32889 else
32890 DGA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xf86dgaproto"`
32892 # Put the nasty error message in config.log where it belongs
32893 echo "$DGA_PKG_ERRORS" >&5
32895 { echo "$as_me:$LINENO: result: no" >&5
32896 echo "${ECHO_T}no" >&6; }
32897 DGA=no
32898 elif test $pkg_failed = untried; then
32899 DGA=no
32900 else
32901 DGA_CFLAGS=$pkg_cv_DGA_CFLAGS
32902 DGA_LIBS=$pkg_cv_DGA_LIBS
32903 { echo "$as_me:$LINENO: result: yes" >&5
32904 echo "${ECHO_T}yes" >&6; }
32905 DGA=yes
32908 if test "x$DGA" = xyes; then
32909 XORG_MODULES="$XORG_MODULES xf86dgaproto"
32911 pkg_failed=no
32912 { echo "$as_me:$LINENO: checking for DGA" >&5
32913 echo $ECHO_N "checking for DGA... $ECHO_C" >&6; }
32915 if test -n "$PKG_CONFIG"; then
32916 if test -n "$DGA_CFLAGS"; then
32917 pkg_cv_DGA_CFLAGS="$DGA_CFLAGS"
32918 else
32919 if test -n "$PKG_CONFIG" && \
32920 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xf86dgaproto\"") >&5
32921 ($PKG_CONFIG --exists --print-errors "xf86dgaproto") 2>&5
32922 ac_status=$?
32923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32924 (exit $ac_status); }; then
32925 pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "xf86dgaproto" 2>/dev/null`
32926 else
32927 pkg_failed=yes
32930 else
32931 pkg_failed=untried
32933 if test -n "$PKG_CONFIG"; then
32934 if test -n "$DGA_LIBS"; then
32935 pkg_cv_DGA_LIBS="$DGA_LIBS"
32936 else
32937 if test -n "$PKG_CONFIG" && \
32938 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xf86dgaproto\"") >&5
32939 ($PKG_CONFIG --exists --print-errors "xf86dgaproto") 2>&5
32940 ac_status=$?
32941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32942 (exit $ac_status); }; then
32943 pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "xf86dgaproto" 2>/dev/null`
32944 else
32945 pkg_failed=yes
32948 else
32949 pkg_failed=untried
32954 if test $pkg_failed = yes; then
32956 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32957 _pkg_short_errors_supported=yes
32958 else
32959 _pkg_short_errors_supported=no
32961 if test $_pkg_short_errors_supported = yes; then
32962 DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xf86dgaproto"`
32963 else
32964 DGA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xf86dgaproto"`
32966 # Put the nasty error message in config.log where it belongs
32967 echo "$DGA_PKG_ERRORS" >&5
32969 { { echo "$as_me:$LINENO: error: Package requirements (xf86dgaproto) were not met:
32971 $DGA_PKG_ERRORS
32973 Consider adjusting the PKG_CONFIG_PATH environment variable if you
32974 installed software in a non-standard prefix.
32976 Alternatively, you may set the environment variables DGA_CFLAGS
32977 and DGA_LIBS to avoid the need to call pkg-config.
32978 See the pkg-config man page for more details.
32979 " >&5
32980 echo "$as_me: error: Package requirements (xf86dgaproto) were not met:
32982 $DGA_PKG_ERRORS
32984 Consider adjusting the PKG_CONFIG_PATH environment variable if you
32985 installed software in a non-standard prefix.
32987 Alternatively, you may set the environment variables DGA_CFLAGS
32988 and DGA_LIBS to avoid the need to call pkg-config.
32989 See the pkg-config man page for more details.
32990 " >&2;}
32991 { (exit 1); exit 1; }; }
32992 elif test $pkg_failed = untried; then
32993 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
32994 is in your PATH or set the PKG_CONFIG environment variable to the full
32995 path to pkg-config.
32997 Alternatively, you may set the environment variables DGA_CFLAGS
32998 and DGA_LIBS to avoid the need to call pkg-config.
32999 See the pkg-config man page for more details.
33001 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
33002 See \`config.log' for more details." >&5
33003 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
33004 is in your PATH or set the PKG_CONFIG environment variable to the full
33005 path to pkg-config.
33007 Alternatively, you may set the environment variables DGA_CFLAGS
33008 and DGA_LIBS to avoid the need to call pkg-config.
33009 See the pkg-config man page for more details.
33011 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
33012 See \`config.log' for more details." >&2;}
33013 { (exit 1); exit 1; }; }
33014 else
33015 DGA_CFLAGS=$pkg_cv_DGA_CFLAGS
33016 DGA_LIBS=$pkg_cv_DGA_LIBS
33017 { echo "$as_me:$LINENO: result: yes" >&5
33018 echo "${ECHO_T}yes" >&6; }
33022 cat >>confdefs.h <<\_ACEOF
33023 #define DGA 1
33024 _ACEOF
33027 cat >>confdefs.h <<\_ACEOF
33028 #define XFreeXDGA 1
33029 _ACEOF
33033 if test "x$XF86MISC" = xauto; then
33035 pkg_failed=no
33036 { echo "$as_me:$LINENO: checking for XF86MISC" >&5
33037 echo $ECHO_N "checking for XF86MISC... $ECHO_C" >&6; }
33039 if test -n "$PKG_CONFIG"; then
33040 if test -n "$XF86MISC_CFLAGS"; then
33041 pkg_cv_XF86MISC_CFLAGS="$XF86MISC_CFLAGS"
33042 else
33043 if test -n "$PKG_CONFIG" && \
33044 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xf86miscproto\"") >&5
33045 ($PKG_CONFIG --exists --print-errors "xf86miscproto") 2>&5
33046 ac_status=$?
33047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33048 (exit $ac_status); }; then
33049 pkg_cv_XF86MISC_CFLAGS=`$PKG_CONFIG --cflags "xf86miscproto" 2>/dev/null`
33050 else
33051 pkg_failed=yes
33054 else
33055 pkg_failed=untried
33057 if test -n "$PKG_CONFIG"; then
33058 if test -n "$XF86MISC_LIBS"; then
33059 pkg_cv_XF86MISC_LIBS="$XF86MISC_LIBS"
33060 else
33061 if test -n "$PKG_CONFIG" && \
33062 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xf86miscproto\"") >&5
33063 ($PKG_CONFIG --exists --print-errors "xf86miscproto") 2>&5
33064 ac_status=$?
33065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33066 (exit $ac_status); }; then
33067 pkg_cv_XF86MISC_LIBS=`$PKG_CONFIG --libs "xf86miscproto" 2>/dev/null`
33068 else
33069 pkg_failed=yes
33072 else
33073 pkg_failed=untried
33078 if test $pkg_failed = yes; then
33080 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33081 _pkg_short_errors_supported=yes
33082 else
33083 _pkg_short_errors_supported=no
33085 if test $_pkg_short_errors_supported = yes; then
33086 XF86MISC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xf86miscproto"`
33087 else
33088 XF86MISC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xf86miscproto"`
33090 # Put the nasty error message in config.log where it belongs
33091 echo "$XF86MISC_PKG_ERRORS" >&5
33093 { echo "$as_me:$LINENO: result: no" >&5
33094 echo "${ECHO_T}no" >&6; }
33095 XF86MISC=no
33096 elif test $pkg_failed = untried; then
33097 XF86MISC=no
33098 else
33099 XF86MISC_CFLAGS=$pkg_cv_XF86MISC_CFLAGS
33100 XF86MISC_LIBS=$pkg_cv_XF86MISC_LIBS
33101 { echo "$as_me:$LINENO: result: yes" >&5
33102 echo "${ECHO_T}yes" >&6; }
33103 XF86MISC=yes
33106 if test "x$XF86MISC" = xyes; then
33107 XORG_MODULES="$XORG_MODULES xf86miscproto"
33109 pkg_failed=no
33110 { echo "$as_me:$LINENO: checking for XF86MISC" >&5
33111 echo $ECHO_N "checking for XF86MISC... $ECHO_C" >&6; }
33113 if test -n "$PKG_CONFIG"; then
33114 if test -n "$XF86MISC_CFLAGS"; then
33115 pkg_cv_XF86MISC_CFLAGS="$XF86MISC_CFLAGS"
33116 else
33117 if test -n "$PKG_CONFIG" && \
33118 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xf86miscproto\"") >&5
33119 ($PKG_CONFIG --exists --print-errors "xf86miscproto") 2>&5
33120 ac_status=$?
33121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33122 (exit $ac_status); }; then
33123 pkg_cv_XF86MISC_CFLAGS=`$PKG_CONFIG --cflags "xf86miscproto" 2>/dev/null`
33124 else
33125 pkg_failed=yes
33128 else
33129 pkg_failed=untried
33131 if test -n "$PKG_CONFIG"; then
33132 if test -n "$XF86MISC_LIBS"; then
33133 pkg_cv_XF86MISC_LIBS="$XF86MISC_LIBS"
33134 else
33135 if test -n "$PKG_CONFIG" && \
33136 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xf86miscproto\"") >&5
33137 ($PKG_CONFIG --exists --print-errors "xf86miscproto") 2>&5
33138 ac_status=$?
33139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33140 (exit $ac_status); }; then
33141 pkg_cv_XF86MISC_LIBS=`$PKG_CONFIG --libs "xf86miscproto" 2>/dev/null`
33142 else
33143 pkg_failed=yes
33146 else
33147 pkg_failed=untried
33152 if test $pkg_failed = yes; then
33154 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33155 _pkg_short_errors_supported=yes
33156 else
33157 _pkg_short_errors_supported=no
33159 if test $_pkg_short_errors_supported = yes; then
33160 XF86MISC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xf86miscproto"`
33161 else
33162 XF86MISC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xf86miscproto"`
33164 # Put the nasty error message in config.log where it belongs
33165 echo "$XF86MISC_PKG_ERRORS" >&5
33167 { { echo "$as_me:$LINENO: error: Package requirements (xf86miscproto) were not met:
33169 $XF86MISC_PKG_ERRORS
33171 Consider adjusting the PKG_CONFIG_PATH environment variable if you
33172 installed software in a non-standard prefix.
33174 Alternatively, you may set the environment variables XF86MISC_CFLAGS
33175 and XF86MISC_LIBS to avoid the need to call pkg-config.
33176 See the pkg-config man page for more details.
33177 " >&5
33178 echo "$as_me: error: Package requirements (xf86miscproto) were not met:
33180 $XF86MISC_PKG_ERRORS
33182 Consider adjusting the PKG_CONFIG_PATH environment variable if you
33183 installed software in a non-standard prefix.
33185 Alternatively, you may set the environment variables XF86MISC_CFLAGS
33186 and XF86MISC_LIBS to avoid the need to call pkg-config.
33187 See the pkg-config man page for more details.
33188 " >&2;}
33189 { (exit 1); exit 1; }; }
33190 elif test $pkg_failed = untried; then
33191 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
33192 is in your PATH or set the PKG_CONFIG environment variable to the full
33193 path to pkg-config.
33195 Alternatively, you may set the environment variables XF86MISC_CFLAGS
33196 and XF86MISC_LIBS to avoid the need to call pkg-config.
33197 See the pkg-config man page for more details.
33199 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
33200 See \`config.log' for more details." >&5
33201 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
33202 is in your PATH or set the PKG_CONFIG environment variable to the full
33203 path to pkg-config.
33205 Alternatively, you may set the environment variables XF86MISC_CFLAGS
33206 and XF86MISC_LIBS to avoid the need to call pkg-config.
33207 See the pkg-config man page for more details.
33209 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
33210 See \`config.log' for more details." >&2;}
33211 { (exit 1); exit 1; }; }
33212 else
33213 XF86MISC_CFLAGS=$pkg_cv_XF86MISC_CFLAGS
33214 XF86MISC_LIBS=$pkg_cv_XF86MISC_LIBS
33215 { echo "$as_me:$LINENO: result: yes" >&5
33216 echo "${ECHO_T}yes" >&6; }
33220 cat >>confdefs.h <<\_ACEOF
33221 #define XF86MISC 1
33222 _ACEOF
33226 if test "x$XF86VIDMODE" = xauto; then
33228 pkg_failed=no
33229 { echo "$as_me:$LINENO: checking for XF86VIDMODE" >&5
33230 echo $ECHO_N "checking for XF86VIDMODE... $ECHO_C" >&6; }
33232 if test -n "$PKG_CONFIG"; then
33233 if test -n "$XF86VIDMODE_CFLAGS"; then
33234 pkg_cv_XF86VIDMODE_CFLAGS="$XF86VIDMODE_CFLAGS"
33235 else
33236 if test -n "$PKG_CONFIG" && \
33237 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xf86vidmodeproto\"") >&5
33238 ($PKG_CONFIG --exists --print-errors "xf86vidmodeproto") 2>&5
33239 ac_status=$?
33240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33241 (exit $ac_status); }; then
33242 pkg_cv_XF86VIDMODE_CFLAGS=`$PKG_CONFIG --cflags "xf86vidmodeproto" 2>/dev/null`
33243 else
33244 pkg_failed=yes
33247 else
33248 pkg_failed=untried
33250 if test -n "$PKG_CONFIG"; then
33251 if test -n "$XF86VIDMODE_LIBS"; then
33252 pkg_cv_XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS"
33253 else
33254 if test -n "$PKG_CONFIG" && \
33255 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xf86vidmodeproto\"") >&5
33256 ($PKG_CONFIG --exists --print-errors "xf86vidmodeproto") 2>&5
33257 ac_status=$?
33258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33259 (exit $ac_status); }; then
33260 pkg_cv_XF86VIDMODE_LIBS=`$PKG_CONFIG --libs "xf86vidmodeproto" 2>/dev/null`
33261 else
33262 pkg_failed=yes
33265 else
33266 pkg_failed=untried
33271 if test $pkg_failed = yes; then
33273 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33274 _pkg_short_errors_supported=yes
33275 else
33276 _pkg_short_errors_supported=no
33278 if test $_pkg_short_errors_supported = yes; then
33279 XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xf86vidmodeproto"`
33280 else
33281 XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xf86vidmodeproto"`
33283 # Put the nasty error message in config.log where it belongs
33284 echo "$XF86VIDMODE_PKG_ERRORS" >&5
33286 { echo "$as_me:$LINENO: result: no" >&5
33287 echo "${ECHO_T}no" >&6; }
33288 XF86VIDMODE=no
33289 elif test $pkg_failed = untried; then
33290 XF86VIDMODE=no
33291 else
33292 XF86VIDMODE_CFLAGS=$pkg_cv_XF86VIDMODE_CFLAGS
33293 XF86VIDMODE_LIBS=$pkg_cv_XF86VIDMODE_LIBS
33294 { echo "$as_me:$LINENO: result: yes" >&5
33295 echo "${ECHO_T}yes" >&6; }
33296 XF86VIDMODE=yes
33299 if test "x$XF86VIDMODE" = xyes; then
33300 XORG_MODULES="$XORG_MODULES xf86vidmodeproto"
33302 pkg_failed=no
33303 { echo "$as_me:$LINENO: checking for XF86VIDMODE" >&5
33304 echo $ECHO_N "checking for XF86VIDMODE... $ECHO_C" >&6; }
33306 if test -n "$PKG_CONFIG"; then
33307 if test -n "$XF86VIDMODE_CFLAGS"; then
33308 pkg_cv_XF86VIDMODE_CFLAGS="$XF86VIDMODE_CFLAGS"
33309 else
33310 if test -n "$PKG_CONFIG" && \
33311 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xf86vidmodeproto\"") >&5
33312 ($PKG_CONFIG --exists --print-errors "xf86vidmodeproto") 2>&5
33313 ac_status=$?
33314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33315 (exit $ac_status); }; then
33316 pkg_cv_XF86VIDMODE_CFLAGS=`$PKG_CONFIG --cflags "xf86vidmodeproto" 2>/dev/null`
33317 else
33318 pkg_failed=yes
33321 else
33322 pkg_failed=untried
33324 if test -n "$PKG_CONFIG"; then
33325 if test -n "$XF86VIDMODE_LIBS"; then
33326 pkg_cv_XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS"
33327 else
33328 if test -n "$PKG_CONFIG" && \
33329 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xf86vidmodeproto\"") >&5
33330 ($PKG_CONFIG --exists --print-errors "xf86vidmodeproto") 2>&5
33331 ac_status=$?
33332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33333 (exit $ac_status); }; then
33334 pkg_cv_XF86VIDMODE_LIBS=`$PKG_CONFIG --libs "xf86vidmodeproto" 2>/dev/null`
33335 else
33336 pkg_failed=yes
33339 else
33340 pkg_failed=untried
33345 if test $pkg_failed = yes; then
33347 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33348 _pkg_short_errors_supported=yes
33349 else
33350 _pkg_short_errors_supported=no
33352 if test $_pkg_short_errors_supported = yes; then
33353 XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xf86vidmodeproto"`
33354 else
33355 XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xf86vidmodeproto"`
33357 # Put the nasty error message in config.log where it belongs
33358 echo "$XF86VIDMODE_PKG_ERRORS" >&5
33360 { { echo "$as_me:$LINENO: error: Package requirements (xf86vidmodeproto) were not met:
33362 $XF86VIDMODE_PKG_ERRORS
33364 Consider adjusting the PKG_CONFIG_PATH environment variable if you
33365 installed software in a non-standard prefix.
33367 Alternatively, you may set the environment variables XF86VIDMODE_CFLAGS
33368 and XF86VIDMODE_LIBS to avoid the need to call pkg-config.
33369 See the pkg-config man page for more details.
33370 " >&5
33371 echo "$as_me: error: Package requirements (xf86vidmodeproto) were not met:
33373 $XF86VIDMODE_PKG_ERRORS
33375 Consider adjusting the PKG_CONFIG_PATH environment variable if you
33376 installed software in a non-standard prefix.
33378 Alternatively, you may set the environment variables XF86VIDMODE_CFLAGS
33379 and XF86VIDMODE_LIBS to avoid the need to call pkg-config.
33380 See the pkg-config man page for more details.
33381 " >&2;}
33382 { (exit 1); exit 1; }; }
33383 elif test $pkg_failed = untried; then
33384 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
33385 is in your PATH or set the PKG_CONFIG environment variable to the full
33386 path to pkg-config.
33388 Alternatively, you may set the environment variables XF86VIDMODE_CFLAGS
33389 and XF86VIDMODE_LIBS to avoid the need to call pkg-config.
33390 See the pkg-config man page for more details.
33392 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
33393 See \`config.log' for more details." >&5
33394 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
33395 is in your PATH or set the PKG_CONFIG environment variable to the full
33396 path to pkg-config.
33398 Alternatively, you may set the environment variables XF86VIDMODE_CFLAGS
33399 and XF86VIDMODE_LIBS to avoid the need to call pkg-config.
33400 See the pkg-config man page for more details.
33402 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
33403 See \`config.log' for more details." >&2;}
33404 { (exit 1); exit 1; }; }
33405 else
33406 XF86VIDMODE_CFLAGS=$pkg_cv_XF86VIDMODE_CFLAGS
33407 XF86VIDMODE_LIBS=$pkg_cv_XF86VIDMODE_LIBS
33408 { echo "$as_me:$LINENO: result: yes" >&5
33409 echo "${ECHO_T}yes" >&6; }
33413 cat >>confdefs.h <<\_ACEOF
33414 #define XF86VIDMODE 1
33415 _ACEOF
33419 if test -n "$XORG_MODULES"; then
33421 pkg_failed=no
33422 { echo "$as_me:$LINENO: checking for XORG_MODULES" >&5
33423 echo $ECHO_N "checking for XORG_MODULES... $ECHO_C" >&6; }
33425 if test -n "$PKG_CONFIG"; then
33426 if test -n "$XORG_MODULES_CFLAGS"; then
33427 pkg_cv_XORG_MODULES_CFLAGS="$XORG_MODULES_CFLAGS"
33428 else
33429 if test -n "$PKG_CONFIG" && \
33430 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\"") >&5
33431 ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5
33432 ac_status=$?
33433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33434 (exit $ac_status); }; then
33435 pkg_cv_XORG_MODULES_CFLAGS=`$PKG_CONFIG --cflags "$XORG_MODULES" 2>/dev/null`
33436 else
33437 pkg_failed=yes
33440 else
33441 pkg_failed=untried
33443 if test -n "$PKG_CONFIG"; then
33444 if test -n "$XORG_MODULES_LIBS"; then
33445 pkg_cv_XORG_MODULES_LIBS="$XORG_MODULES_LIBS"
33446 else
33447 if test -n "$PKG_CONFIG" && \
33448 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\"") >&5
33449 ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5
33450 ac_status=$?
33451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33452 (exit $ac_status); }; then
33453 pkg_cv_XORG_MODULES_LIBS=`$PKG_CONFIG --libs "$XORG_MODULES" 2>/dev/null`
33454 else
33455 pkg_failed=yes
33458 else
33459 pkg_failed=untried
33464 if test $pkg_failed = yes; then
33466 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33467 _pkg_short_errors_supported=yes
33468 else
33469 _pkg_short_errors_supported=no
33471 if test $_pkg_short_errors_supported = yes; then
33472 XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$XORG_MODULES"`
33473 else
33474 XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$XORG_MODULES"`
33476 # Put the nasty error message in config.log where it belongs
33477 echo "$XORG_MODULES_PKG_ERRORS" >&5
33479 { { echo "$as_me:$LINENO: error: Package requirements ($XORG_MODULES) were not met:
33481 $XORG_MODULES_PKG_ERRORS
33483 Consider adjusting the PKG_CONFIG_PATH environment variable if you
33484 installed software in a non-standard prefix.
33486 Alternatively, you may set the environment variables XORG_MODULES_CFLAGS
33487 and XORG_MODULES_LIBS to avoid the need to call pkg-config.
33488 See the pkg-config man page for more details.
33489 " >&5
33490 echo "$as_me: error: Package requirements ($XORG_MODULES) were not met:
33492 $XORG_MODULES_PKG_ERRORS
33494 Consider adjusting the PKG_CONFIG_PATH environment variable if you
33495 installed software in a non-standard prefix.
33497 Alternatively, you may set the environment variables XORG_MODULES_CFLAGS
33498 and XORG_MODULES_LIBS to avoid the need to call pkg-config.
33499 See the pkg-config man page for more details.
33500 " >&2;}
33501 { (exit 1); exit 1; }; }
33502 elif test $pkg_failed = untried; then
33503 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
33504 is in your PATH or set the PKG_CONFIG environment variable to the full
33505 path to pkg-config.
33507 Alternatively, you may set the environment variables XORG_MODULES_CFLAGS
33508 and XORG_MODULES_LIBS to avoid the need to call pkg-config.
33509 See the pkg-config man page for more details.
33511 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
33512 See \`config.log' for more details." >&5
33513 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
33514 is in your PATH or set the PKG_CONFIG environment variable to the full
33515 path to pkg-config.
33517 Alternatively, you may set the environment variables XORG_MODULES_CFLAGS
33518 and XORG_MODULES_LIBS to avoid the need to call pkg-config.
33519 See the pkg-config man page for more details.
33521 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
33522 See \`config.log' for more details." >&2;}
33523 { (exit 1); exit 1; }; }
33524 else
33525 XORG_MODULES_CFLAGS=$pkg_cv_XORG_MODULES_CFLAGS
33526 XORG_MODULES_LIBS=$pkg_cv_XORG_MODULES_LIBS
33527 { echo "$as_me:$LINENO: result: yes" >&5
33528 echo "${ECHO_T}yes" >&6; }
33531 XORG_CFLAGS="$XORG_CFLAGS $XORG_MODULES_CFLAGS"
33532 XORG_LIBS="$XORG_LIBS $XORG_MODULES_LIBS"
33540 # Extract the first word of "perl", so it can be a program name with args.
33541 set dummy perl; ac_word=$2
33542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33544 if test "${ac_cv_path_PERL+set}" = set; then
33545 echo $ECHO_N "(cached) $ECHO_C" >&6
33546 else
33547 case $PERL in
33548 [\\/]* | ?:[\\/]*)
33549 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
33552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33553 for as_dir in $PATH
33555 IFS=$as_save_IFS
33556 test -z "$as_dir" && as_dir=.
33557 for ac_exec_ext in '' $ac_executable_extensions; do
33558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33559 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
33560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33561 break 2
33563 done
33564 done
33565 IFS=$as_save_IFS
33567 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
33569 esac
33571 PERL=$ac_cv_path_PERL
33572 if test -n "$PERL"; then
33573 { echo "$as_me:$LINENO: result: $PERL" >&5
33574 echo "${ECHO_T}$PERL" >&6; }
33575 else
33576 { echo "$as_me:$LINENO: result: no" >&5
33577 echo "${ECHO_T}no" >&6; }
33581 if test "x$PERL" = xno; then
33582 { { echo "$as_me:$LINENO: error: Perl is required to build the XFree86/Xorg DDX." >&5
33583 echo "$as_me: error: Perl is required to build the XFree86/Xorg DDX." >&2;}
33584 { (exit 1); exit 1; }; }
33590 XF86CONFIGFILE="xorg.conf"
33591 CONFIGFILE="$sysconfdir/$XF86CONFIGFILE"
33592 LOGPREFIX="$logdir/Xorg."
33594 cat >>confdefs.h <<\_ACEOF
33595 #define XORG_SERVER 1
33596 _ACEOF
33599 cat >>confdefs.h <<\_ACEOF
33600 #define XORGSERVER 1
33601 _ACEOF
33604 cat >>confdefs.h <<\_ACEOF
33605 #define XFree86Server 1
33606 _ACEOF
33609 cat >>confdefs.h <<\_ACEOF
33610 #define XFree86LOADER 1
33611 _ACEOF
33614 cat >>confdefs.h <<_ACEOF
33615 #define XORG_VERSION_CURRENT $VENDOR_RELEASE
33616 _ACEOF
33619 cat >>confdefs.h <<\_ACEOF
33620 #define NEED_XF86_TYPES 1
33621 _ACEOF
33624 cat >>confdefs.h <<\_ACEOF
33625 #define NEED_XF86_PROTOTYPES 1
33626 _ACEOF
33629 cat >>confdefs.h <<\_ACEOF
33630 #define __XSERVERNAME__ "Xorg"
33631 _ACEOF
33634 cat >>confdefs.h <<\_ACEOF
33635 #define WITH_VGAHW 1
33636 _ACEOF
33639 cat >>confdefs.h <<\_ACEOF
33640 #define DRIVERS {}
33641 _ACEOF
33644 cat >>confdefs.h <<\_ACEOF
33645 #define IDRIVERS {}
33646 _ACEOF
33649 prefix_NONE=
33650 exec_prefix_NONE=
33651 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
33652 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
33653 eval ac_define_dir="\"$XF86CONFIGFILE\""
33654 eval ac_define_dir="\"$ac_define_dir\""
33655 __XCONFIGFILE__="$ac_define_dir"
33658 cat >>confdefs.h <<_ACEOF
33659 #define __XCONFIGFILE__ "$ac_define_dir"
33660 _ACEOF
33662 test "$prefix_NONE" && prefix=NONE
33663 test "$exec_prefix_NONE" && exec_prefix=NONE
33666 prefix_NONE=
33667 exec_prefix_NONE=
33668 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
33669 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
33670 eval ac_define_dir="\"$XF86CONFIGFILE\""
33671 eval ac_define_dir="\"$ac_define_dir\""
33672 XF86CONFIGFILE="$ac_define_dir"
33675 cat >>confdefs.h <<_ACEOF
33676 #define XF86CONFIGFILE "$ac_define_dir"
33677 _ACEOF
33679 test "$prefix_NONE" && prefix=NONE
33680 test "$exec_prefix_NONE" && exec_prefix=NONE
33683 prefix_NONE=
33684 exec_prefix_NONE=
33685 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
33686 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
33687 eval ac_define_dir="\"$moduledir\""
33688 eval ac_define_dir="\"$ac_define_dir\""
33689 DEFAULT_MODULE_PATH="$ac_define_dir"
33692 cat >>confdefs.h <<_ACEOF
33693 #define DEFAULT_MODULE_PATH "$ac_define_dir"
33694 _ACEOF
33696 test "$prefix_NONE" && prefix=NONE
33697 test "$exec_prefix_NONE" && exec_prefix=NONE
33700 prefix_NONE=
33701 exec_prefix_NONE=
33702 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
33703 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
33704 eval ac_define_dir="\"$libdir\""
33705 eval ac_define_dir="\"$ac_define_dir\""
33706 DEFAULT_LIBRARY_PATH="$ac_define_dir"
33709 cat >>confdefs.h <<_ACEOF
33710 #define DEFAULT_LIBRARY_PATH "$ac_define_dir"
33711 _ACEOF
33713 test "$prefix_NONE" && prefix=NONE
33714 test "$exec_prefix_NONE" && exec_prefix=NONE
33717 prefix_NONE=
33718 exec_prefix_NONE=
33719 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
33720 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
33721 eval ac_define_dir="\"$LOGPREFIX\""
33722 eval ac_define_dir="\"$ac_define_dir\""
33723 DEFAULT_LOGPREFIX="$ac_define_dir"
33726 cat >>confdefs.h <<_ACEOF
33727 #define DEFAULT_LOGPREFIX "$ac_define_dir"
33728 _ACEOF
33730 test "$prefix_NONE" && prefix=NONE
33731 test "$exec_prefix_NONE" && exec_prefix=NONE
33734 cat >>confdefs.h <<_ACEOF
33735 #define __VENDORDWEBSUPPORT__ "$VENDOR_WEB"
33736 _ACEOF
33739 driverdir="$moduledir/drivers"
33742 sdkdir="$includedir/xorg"
33743 extdir="$includedir/X11/extensions"
33748 if test "x$XORG" = xyes; then
33749 XORG_TRUE=
33750 XORG_FALSE='#'
33751 else
33752 XORG_TRUE='#'
33753 XORG_FALSE=
33756 if test "x$xorg_bus_linuxpci" = xyes; then
33757 XORG_BUS_LINUXPCI_TRUE=
33758 XORG_BUS_LINUXPCI_FALSE='#'
33759 else
33760 XORG_BUS_LINUXPCI_TRUE='#'
33761 XORG_BUS_LINUXPCI_FALSE=
33764 if test "x$xorg_bus_freebsdpci" = xyes; then
33765 XORG_BUS_FREEBSDPCI_TRUE=
33766 XORG_BUS_FREEBSDPCI_FALSE='#'
33767 else
33768 XORG_BUS_FREEBSDPCI_TRUE='#'
33769 XORG_BUS_FREEBSDPCI_FALSE=
33772 if test "x$xorg_bus_netbsdpci" = xyes; then
33773 XORG_BUS_NETBSDPCI_TRUE=
33774 XORG_BUS_NETBSDPCI_FALSE='#'
33775 else
33776 XORG_BUS_NETBSDPCI_TRUE='#'
33777 XORG_BUS_NETBSDPCI_FALSE=
33780 if test "x$xorg_bus_ix86pci" = xyes; then
33781 XORG_BUS_IX86PCI_TRUE=
33782 XORG_BUS_IX86PCI_FALSE='#'
33783 else
33784 XORG_BUS_IX86PCI_TRUE='#'
33785 XORG_BUS_IX86PCI_FALSE=
33788 if test "x$xorg_bus_ppcpci" = xyes; then
33789 XORG_BUS_PPCPCI_TRUE=
33790 XORG_BUS_PPCPCI_FALSE='#'
33791 else
33792 XORG_BUS_PPCPCI_TRUE='#'
33793 XORG_BUS_PPCPCI_FALSE=
33796 if test "x$xorg_bus_sparcpci" = xyes; then
33797 XORG_BUS_SPARCPCI_TRUE=
33798 XORG_BUS_SPARCPCI_FALSE='#'
33799 else
33800 XORG_BUS_SPARCPCI_TRUE='#'
33801 XORG_BUS_SPARCPCI_FALSE=
33804 if test "x$xorg_bus_sparc" = xyes; then
33805 XORG_BUS_SPARC_TRUE=
33806 XORG_BUS_SPARC_FALSE='#'
33807 else
33808 XORG_BUS_SPARC_TRUE='#'
33809 XORG_BUS_SPARC_FALSE=
33812 if test "x$xorg_loader_sparcmuldiv" = xyes; then
33813 XORG_LOADER_SPARC_TRUE=
33814 XORG_LOADER_SPARC_FALSE='#'
33815 else
33816 XORG_LOADER_SPARC_TRUE='#'
33817 XORG_LOADER_SPARC_FALSE=
33820 if test "x$linux_ia64" = xyes; then
33821 LINUX_IA64_TRUE=
33822 LINUX_IA64_FALSE='#'
33823 else
33824 LINUX_IA64_TRUE='#'
33825 LINUX_IA64_FALSE=
33828 if test "x$linux_alpha" = xyes; then
33829 LINUX_ALPHA_TRUE=
33830 LINUX_ALPHA_FALSE='#'
33831 else
33832 LINUX_ALPHA_TRUE='#'
33833 LINUX_ALPHA_FALSE=
33836 if test "x$linux_acpi" = xyes; then
33837 LNXACPI_TRUE=
33838 LNXACPI_FALSE='#'
33839 else
33840 LNXACPI_TRUE='#'
33841 LNXACPI_FALSE=
33844 if test "x$solaris_usl_console" = xyes; then
33845 SOLARIS_USL_CONSOLE_TRUE=
33846 SOLARIS_USL_CONSOLE_FALSE='#'
33847 else
33848 SOLARIS_USL_CONSOLE_TRUE='#'
33849 SOLARIS_USL_CONSOLE_FALSE=
33852 if test "x$solaris_asm_inline" = xyes; then
33853 SOLARIS_ASM_INLINE_TRUE=
33854 SOLARIS_ASM_INLINE_FALSE='#'
33855 else
33856 SOLARIS_ASM_INLINE_TRUE='#'
33857 SOLARIS_ASM_INLINE_FALSE=
33860 if test "X$build_darwin" = Xyes; then
33861 BUILD_DARWIN_TRUE=
33862 BUILD_DARWIN_FALSE='#'
33863 else
33864 BUILD_DARWIN_TRUE='#'
33865 BUILD_DARWIN_FALSE=
33868 if test "X$XQUARTZ" = Xyes; then
33869 XQUARTZ_TRUE=
33870 XQUARTZ_FALSE='#'
33871 else
33872 XQUARTZ_TRUE='#'
33873 XQUARTZ_FALSE=
33876 if test "x$DGA" = xyes; then
33877 DGA_TRUE=
33878 DGA_FALSE='#'
33879 else
33880 DGA_TRUE='#'
33881 DGA_FALSE=
33885 test "x$MFB" = xauto && MFB="$XORG"
33886 test "x$CFB" = xauto && CFB="$XORG"
33887 test "x$AFB" = xauto && AFB="$XORG"
33888 if test "x$MFB" = xyes; then
33889 MFB_TRUE=
33890 MFB_FALSE='#'
33891 else
33892 MFB_TRUE='#'
33893 MFB_FALSE=
33896 if test "x$CFB" = xyes; then
33897 CFB_TRUE=
33898 CFB_FALSE='#'
33899 else
33900 CFB_TRUE='#'
33901 CFB_FALSE=
33904 if test "x$AFB" = xyes; then
33905 AFB_TRUE=
33906 AFB_FALSE='#'
33907 else
33908 AFB_TRUE='#'
33909 AFB_FALSE=
33912 if test "x$MFB" = xyes -o "x$CFB" = xyes -o "x$AFB" = xyes; then
33913 if test "x$XORG" != xyes; then
33914 { { echo "$as_me:$LINENO: error: legacy fb support requires the Xorg server" >&5
33915 echo "$as_me: error: legacy fb support requires the Xorg server" >&2;}
33916 { (exit 1); exit 1; }; }
33921 { echo "$as_me:$LINENO: checking whether to build Xprint DDX" >&5
33922 echo $ECHO_N "checking whether to build Xprint DDX... $ECHO_C" >&6; }
33923 { echo "$as_me:$LINENO: result: $XPRINT" >&5
33924 echo "${ECHO_T}$XPRINT" >&6; }
33926 if test "x$XPRINT" = xyes; then
33928 pkg_failed=no
33929 { echo "$as_me:$LINENO: checking for XPRINT" >&5
33930 echo $ECHO_N "checking for XPRINT... $ECHO_C" >&6; }
33932 if test -n "$PKG_CONFIG"; then
33933 if test -n "$XPRINT_CFLAGS"; then
33934 pkg_cv_XPRINT_CFLAGS="$XPRINT_CFLAGS"
33935 else
33936 if test -n "$PKG_CONFIG" && \
33937 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"printproto x11 xfont \$XDMCP_MODULES xau \$PIXMAN\"") >&5
33938 ($PKG_CONFIG --exists --print-errors "printproto x11 xfont $XDMCP_MODULES xau $PIXMAN") 2>&5
33939 ac_status=$?
33940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33941 (exit $ac_status); }; then
33942 pkg_cv_XPRINT_CFLAGS=`$PKG_CONFIG --cflags "printproto x11 xfont $XDMCP_MODULES xau $PIXMAN" 2>/dev/null`
33943 else
33944 pkg_failed=yes
33947 else
33948 pkg_failed=untried
33950 if test -n "$PKG_CONFIG"; then
33951 if test -n "$XPRINT_LIBS"; then
33952 pkg_cv_XPRINT_LIBS="$XPRINT_LIBS"
33953 else
33954 if test -n "$PKG_CONFIG" && \
33955 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"printproto x11 xfont \$XDMCP_MODULES xau \$PIXMAN\"") >&5
33956 ($PKG_CONFIG --exists --print-errors "printproto x11 xfont $XDMCP_MODULES xau $PIXMAN") 2>&5
33957 ac_status=$?
33958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33959 (exit $ac_status); }; then
33960 pkg_cv_XPRINT_LIBS=`$PKG_CONFIG --libs "printproto x11 xfont $XDMCP_MODULES xau $PIXMAN" 2>/dev/null`
33961 else
33962 pkg_failed=yes
33965 else
33966 pkg_failed=untried
33971 if test $pkg_failed = yes; then
33973 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33974 _pkg_short_errors_supported=yes
33975 else
33976 _pkg_short_errors_supported=no
33978 if test $_pkg_short_errors_supported = yes; then
33979 XPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "printproto x11 xfont $XDMCP_MODULES xau $PIXMAN"`
33980 else
33981 XPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "printproto x11 xfont $XDMCP_MODULES xau $PIXMAN"`
33983 # Put the nasty error message in config.log where it belongs
33984 echo "$XPRINT_PKG_ERRORS" >&5
33986 { { echo "$as_me:$LINENO: error: Package requirements (printproto x11 xfont $XDMCP_MODULES xau $PIXMAN) were not met:
33988 $XPRINT_PKG_ERRORS
33990 Consider adjusting the PKG_CONFIG_PATH environment variable if you
33991 installed software in a non-standard prefix.
33993 Alternatively, you may set the environment variables XPRINT_CFLAGS
33994 and XPRINT_LIBS to avoid the need to call pkg-config.
33995 See the pkg-config man page for more details.
33996 " >&5
33997 echo "$as_me: error: Package requirements (printproto x11 xfont $XDMCP_MODULES xau $PIXMAN) were not met:
33999 $XPRINT_PKG_ERRORS
34001 Consider adjusting the PKG_CONFIG_PATH environment variable if you
34002 installed software in a non-standard prefix.
34004 Alternatively, you may set the environment variables XPRINT_CFLAGS
34005 and XPRINT_LIBS to avoid the need to call pkg-config.
34006 See the pkg-config man page for more details.
34007 " >&2;}
34008 { (exit 1); exit 1; }; }
34009 elif test $pkg_failed = untried; then
34010 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
34011 is in your PATH or set the PKG_CONFIG environment variable to the full
34012 path to pkg-config.
34014 Alternatively, you may set the environment variables XPRINT_CFLAGS
34015 and XPRINT_LIBS to avoid the need to call pkg-config.
34016 See the pkg-config man page for more details.
34018 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
34019 See \`config.log' for more details." >&5
34020 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
34021 is in your PATH or set the PKG_CONFIG environment variable to the full
34022 path to pkg-config.
34024 Alternatively, you may set the environment variables XPRINT_CFLAGS
34025 and XPRINT_LIBS to avoid the need to call pkg-config.
34026 See the pkg-config man page for more details.
34028 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
34029 See \`config.log' for more details." >&2;}
34030 { (exit 1); exit 1; }; }
34031 else
34032 XPRINT_CFLAGS=$pkg_cv_XPRINT_CFLAGS
34033 XPRINT_LIBS=$pkg_cv_XPRINT_LIBS
34034 { echo "$as_me:$LINENO: result: yes" >&5
34035 echo "${ECHO_T}yes" >&6; }
34038 XPRINT_EXTENSIONS="$XEXT_LIB $CONFIG_LIB $DBE_LIB $XTRAP_LIB $RECORD_LIB $RENDER_LIB $COMPOSITE_LIB $RANDR_LIB $XI_LIB $FIXES_LIB $DAMAGE_LIB $XI_LIB $GLX_LIBS"
34039 XPRINT_LIBS="$DIX_LIB $XKB_LIB $XKB_STUB_LIB $XPRINT_EXTENSIONS $MI_LIB $MIEXT_DAMAGE_LIB $CWRAP_LIB $OS_LIB $LIBS $XPRINT_LIBS"
34043 xpconfigdir=$libdir/X11/xserver
34046 # Extract the first word of "mkfontscale", so it can be a program name with args.
34047 set dummy mkfontscale; ac_word=$2
34048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34050 if test "${ac_cv_path_MKFONTSCALE+set}" = set; then
34051 echo $ECHO_N "(cached) $ECHO_C" >&6
34052 else
34053 case $MKFONTSCALE in
34054 [\\/]* | ?:[\\/]*)
34055 ac_cv_path_MKFONTSCALE="$MKFONTSCALE" # Let the user override the test with a path.
34058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34059 for as_dir in $PATH
34061 IFS=$as_save_IFS
34062 test -z "$as_dir" && as_dir=.
34063 for ac_exec_ext in '' $ac_executable_extensions; do
34064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34065 ac_cv_path_MKFONTSCALE="$as_dir/$ac_word$ac_exec_ext"
34066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34067 break 2
34069 done
34070 done
34071 IFS=$as_save_IFS
34074 esac
34076 MKFONTSCALE=$ac_cv_path_MKFONTSCALE
34077 if test -n "$MKFONTSCALE"; then
34078 { echo "$as_me:$LINENO: result: $MKFONTSCALE" >&5
34079 echo "${ECHO_T}$MKFONTSCALE" >&6; }
34080 else
34081 { echo "$as_me:$LINENO: result: no" >&5
34082 echo "${ECHO_T}no" >&6; }
34086 # Extract the first word of "mkfontdir", so it can be a program name with args.
34087 set dummy mkfontdir; ac_word=$2
34088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34090 if test "${ac_cv_path_MKFONTDIR+set}" = set; then
34091 echo $ECHO_N "(cached) $ECHO_C" >&6
34092 else
34093 case $MKFONTDIR in
34094 [\\/]* | ?:[\\/]*)
34095 ac_cv_path_MKFONTDIR="$MKFONTDIR" # Let the user override the test with a path.
34098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34099 for as_dir in $PATH
34101 IFS=$as_save_IFS
34102 test -z "$as_dir" && as_dir=.
34103 for ac_exec_ext in '' $ac_executable_extensions; do
34104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34105 ac_cv_path_MKFONTDIR="$as_dir/$ac_word$ac_exec_ext"
34106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34107 break 2
34109 done
34110 done
34111 IFS=$as_save_IFS
34114 esac
34116 MKFONTDIR=$ac_cv_path_MKFONTDIR
34117 if test -n "$MKFONTDIR"; then
34118 { echo "$as_me:$LINENO: result: $MKFONTDIR" >&5
34119 echo "${ECHO_T}$MKFONTDIR" >&6; }
34120 else
34121 { echo "$as_me:$LINENO: result: no" >&5
34122 echo "${ECHO_T}no" >&6; }
34127 # freetype support code borrowed from lib/XFont
34128 if test x$XP_USE_FREETYPE = xyes; then
34130 cat >>confdefs.h <<\_ACEOF
34131 #define XP_USE_FREETYPE 1
34132 _ACEOF
34135 if test "$freetype_config" = "auto" ; then
34137 pkg_failed=no
34138 { echo "$as_me:$LINENO: checking for FREETYPE" >&5
34139 echo $ECHO_N "checking for FREETYPE... $ECHO_C" >&6; }
34141 if test -n "$PKG_CONFIG"; then
34142 if test -n "$FREETYPE_CFLAGS"; then
34143 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
34144 else
34145 if test -n "$PKG_CONFIG" && \
34146 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"freetype2\"") >&5
34147 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
34148 ac_status=$?
34149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34150 (exit $ac_status); }; then
34151 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
34152 else
34153 pkg_failed=yes
34156 else
34157 pkg_failed=untried
34159 if test -n "$PKG_CONFIG"; then
34160 if test -n "$FREETYPE_LIBS"; then
34161 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
34162 else
34163 if test -n "$PKG_CONFIG" && \
34164 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"freetype2\"") >&5
34165 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
34166 ac_status=$?
34167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34168 (exit $ac_status); }; then
34169 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
34170 else
34171 pkg_failed=yes
34174 else
34175 pkg_failed=untried
34180 if test $pkg_failed = yes; then
34182 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34183 _pkg_short_errors_supported=yes
34184 else
34185 _pkg_short_errors_supported=no
34187 if test $_pkg_short_errors_supported = yes; then
34188 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "freetype2"`
34189 else
34190 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
34192 # Put the nasty error message in config.log where it belongs
34193 echo "$FREETYPE_PKG_ERRORS" >&5
34195 { echo "$as_me:$LINENO: result: no" >&5
34196 echo "${ECHO_T}no" >&6; }
34197 freetype_config=yes
34198 elif test $pkg_failed = untried; then
34199 freetype_config=yes
34200 else
34201 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
34202 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
34203 { echo "$as_me:$LINENO: result: yes" >&5
34204 echo "${ECHO_T}yes" >&6; }
34205 freetype_config=no
34209 if test "$freetype_config" = "yes"; then
34210 # Extract the first word of "freetype-config", so it can be a program name with args.
34211 set dummy freetype-config; ac_word=$2
34212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34214 if test "${ac_cv_path_ft_config+set}" = set; then
34215 echo $ECHO_N "(cached) $ECHO_C" >&6
34216 else
34217 case $ft_config in
34218 [\\/]* | ?:[\\/]*)
34219 ac_cv_path_ft_config="$ft_config" # Let the user override the test with a path.
34222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34223 for as_dir in $PATH
34225 IFS=$as_save_IFS
34226 test -z "$as_dir" && as_dir=.
34227 for ac_exec_ext in '' $ac_executable_extensions; do
34228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34229 ac_cv_path_ft_config="$as_dir/$ac_word$ac_exec_ext"
34230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34231 break 2
34233 done
34234 done
34235 IFS=$as_save_IFS
34237 test -z "$ac_cv_path_ft_config" && ac_cv_path_ft_config="no"
34239 esac
34241 ft_config=$ac_cv_path_ft_config
34242 if test -n "$ft_config"; then
34243 { echo "$as_me:$LINENO: result: $ft_config" >&5
34244 echo "${ECHO_T}$ft_config" >&6; }
34245 else
34246 { echo "$as_me:$LINENO: result: no" >&5
34247 echo "${ECHO_T}no" >&6; }
34251 if test "$ft_config" = "no"; then
34252 { { echo "$as_me:$LINENO: error: You must have freetype installed; see http://www.freetype.org/" >&5
34253 echo "$as_me: error: You must have freetype installed; see http://www.freetype.org/" >&2;}
34254 { (exit 1); exit 1; }; }
34256 else
34257 ft_config="$freetype_config"
34260 if test "$freetype_config" != "no"; then
34261 FREETYPE_CFLAGS="`$ft_config --cflags`"
34262 FREETYPE_LIBS="`$ft_config --libs`"
34264 FREETYPE_REQUIRES="freetype2"
34265 else
34266 FREETYPE_CFLAGS=""
34267 FREETYPE_LIBS=""
34268 FREETYPE_REQUIRES=""
34273 # end freetype support
34275 if test "x$XPRINT" = xyes && test "x$XP_USE_FREETYPE" = xyes; then
34276 XP_USE_FREETYPE_TRUE=
34277 XP_USE_FREETYPE_FALSE='#'
34278 else
34279 XP_USE_FREETYPE_TRUE='#'
34280 XP_USE_FREETYPE_FALSE=
34286 { echo "$as_me:$LINENO: checking whether to build XWin DDX" >&5
34287 echo $ECHO_N "checking whether to build XWin DDX... $ECHO_C" >&6; }
34288 if test "x$XWIN" = xauto; then
34289 case $host_os in
34290 cygwin*) XWIN="yes" ;;
34291 mingw*) XWIN="yes" ;;
34292 *) XWIN="no" ;;
34293 esac
34294 XWIN_LIBS="$FB_LIB $MI_LIB $XEXT_LIB $CONFIG_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $DAMAGE_LIB $LAYER_LIB $XPSTUBS_LIB $OS_LIB $SHADOW_LIB"
34297 { echo "$as_me:$LINENO: result: $XWIN" >&5
34298 echo "${ECHO_T}$XWIN" >&6; }
34300 if test "x$XWIN" = xyes; then
34301 XWIN_SERVER_NAME=XWin
34302 case $host_os in
34303 cygwin*)
34305 pkg_failed=no
34306 { echo "$as_me:$LINENO: checking for XWINMODULES" >&5
34307 echo $ECHO_N "checking for XWINMODULES... $ECHO_C" >&6; }
34309 if test -n "$PKG_CONFIG"; then
34310 if test -n "$XWINMODULES_CFLAGS"; then
34311 pkg_cv_XWINMODULES_CFLAGS="$XWINMODULES_CFLAGS"
34312 else
34313 if test -n "$PKG_CONFIG" && \
34314 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xdmcp xau xfont\"") >&5
34315 ($PKG_CONFIG --exists --print-errors "x11 xdmcp xau xfont") 2>&5
34316 ac_status=$?
34317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34318 (exit $ac_status); }; then
34319 pkg_cv_XWINMODULES_CFLAGS=`$PKG_CONFIG --cflags "x11 xdmcp xau xfont" 2>/dev/null`
34320 else
34321 pkg_failed=yes
34324 else
34325 pkg_failed=untried
34327 if test -n "$PKG_CONFIG"; then
34328 if test -n "$XWINMODULES_LIBS"; then
34329 pkg_cv_XWINMODULES_LIBS="$XWINMODULES_LIBS"
34330 else
34331 if test -n "$PKG_CONFIG" && \
34332 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xdmcp xau xfont\"") >&5
34333 ($PKG_CONFIG --exists --print-errors "x11 xdmcp xau xfont") 2>&5
34334 ac_status=$?
34335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34336 (exit $ac_status); }; then
34337 pkg_cv_XWINMODULES_LIBS=`$PKG_CONFIG --libs "x11 xdmcp xau xfont" 2>/dev/null`
34338 else
34339 pkg_failed=yes
34342 else
34343 pkg_failed=untried
34348 if test $pkg_failed = yes; then
34350 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34351 _pkg_short_errors_supported=yes
34352 else
34353 _pkg_short_errors_supported=no
34355 if test $_pkg_short_errors_supported = yes; then
34356 XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11 xdmcp xau xfont"`
34357 else
34358 XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11 xdmcp xau xfont"`
34360 # Put the nasty error message in config.log where it belongs
34361 echo "$XWINMODULES_PKG_ERRORS" >&5
34363 { { echo "$as_me:$LINENO: error: Package requirements (x11 xdmcp xau xfont) were not met:
34365 $XWINMODULES_PKG_ERRORS
34367 Consider adjusting the PKG_CONFIG_PATH environment variable if you
34368 installed software in a non-standard prefix.
34370 Alternatively, you may set the environment variables XWINMODULES_CFLAGS
34371 and XWINMODULES_LIBS to avoid the need to call pkg-config.
34372 See the pkg-config man page for more details.
34373 " >&5
34374 echo "$as_me: error: Package requirements (x11 xdmcp xau xfont) were not met:
34376 $XWINMODULES_PKG_ERRORS
34378 Consider adjusting the PKG_CONFIG_PATH environment variable if you
34379 installed software in a non-standard prefix.
34381 Alternatively, you may set the environment variables XWINMODULES_CFLAGS
34382 and XWINMODULES_LIBS to avoid the need to call pkg-config.
34383 See the pkg-config man page for more details.
34384 " >&2;}
34385 { (exit 1); exit 1; }; }
34386 elif test $pkg_failed = untried; then
34387 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
34388 is in your PATH or set the PKG_CONFIG environment variable to the full
34389 path to pkg-config.
34391 Alternatively, you may set the environment variables XWINMODULES_CFLAGS
34392 and XWINMODULES_LIBS to avoid the need to call pkg-config.
34393 See the pkg-config man page for more details.
34395 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
34396 See \`config.log' for more details." >&5
34397 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
34398 is in your PATH or set the PKG_CONFIG environment variable to the full
34399 path to pkg-config.
34401 Alternatively, you may set the environment variables XWINMODULES_CFLAGS
34402 and XWINMODULES_LIBS to avoid the need to call pkg-config.
34403 See the pkg-config man page for more details.
34405 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
34406 See \`config.log' for more details." >&2;}
34407 { (exit 1); exit 1; }; }
34408 else
34409 XWINMODULES_CFLAGS=$pkg_cv_XWINMODULES_CFLAGS
34410 XWINMODULES_LIBS=$pkg_cv_XWINMODULES_LIBS
34411 { echo "$as_me:$LINENO: result: yes" >&5
34412 echo "${ECHO_T}yes" >&6; }
34416 cat >>confdefs.h <<\_ACEOF
34417 #define HAS_DEVWINDOWS 1
34418 _ACEOF
34421 cat >>confdefs.h <<\_ACEOF
34422 #define ROOTLESS 1
34423 _ACEOF
34425 CFLAGS="$CFLAGS -DFD_SETSIZE=256"
34427 mingw*)
34429 pkg_failed=no
34430 { echo "$as_me:$LINENO: checking for XWINMODULES" >&5
34431 echo $ECHO_N "checking for XWINMODULES... $ECHO_C" >&6; }
34433 if test -n "$PKG_CONFIG"; then
34434 if test -n "$XWINMODULES_CFLAGS"; then
34435 pkg_cv_XWINMODULES_CFLAGS="$XWINMODULES_CFLAGS"
34436 else
34437 if test -n "$PKG_CONFIG" && \
34438 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xdmcp xau xfont\"") >&5
34439 ($PKG_CONFIG --exists --print-errors "x11 xdmcp xau xfont") 2>&5
34440 ac_status=$?
34441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34442 (exit $ac_status); }; then
34443 pkg_cv_XWINMODULES_CFLAGS=`$PKG_CONFIG --cflags "x11 xdmcp xau xfont" 2>/dev/null`
34444 else
34445 pkg_failed=yes
34448 else
34449 pkg_failed=untried
34451 if test -n "$PKG_CONFIG"; then
34452 if test -n "$XWINMODULES_LIBS"; then
34453 pkg_cv_XWINMODULES_LIBS="$XWINMODULES_LIBS"
34454 else
34455 if test -n "$PKG_CONFIG" && \
34456 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xdmcp xau xfont\"") >&5
34457 ($PKG_CONFIG --exists --print-errors "x11 xdmcp xau xfont") 2>&5
34458 ac_status=$?
34459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34460 (exit $ac_status); }; then
34461 pkg_cv_XWINMODULES_LIBS=`$PKG_CONFIG --libs "x11 xdmcp xau xfont" 2>/dev/null`
34462 else
34463 pkg_failed=yes
34466 else
34467 pkg_failed=untried
34472 if test $pkg_failed = yes; then
34474 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34475 _pkg_short_errors_supported=yes
34476 else
34477 _pkg_short_errors_supported=no
34479 if test $_pkg_short_errors_supported = yes; then
34480 XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11 xdmcp xau xfont"`
34481 else
34482 XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11 xdmcp xau xfont"`
34484 # Put the nasty error message in config.log where it belongs
34485 echo "$XWINMODULES_PKG_ERRORS" >&5
34487 { { echo "$as_me:$LINENO: error: Package requirements (x11 xdmcp xau xfont) were not met:
34489 $XWINMODULES_PKG_ERRORS
34491 Consider adjusting the PKG_CONFIG_PATH environment variable if you
34492 installed software in a non-standard prefix.
34494 Alternatively, you may set the environment variables XWINMODULES_CFLAGS
34495 and XWINMODULES_LIBS to avoid the need to call pkg-config.
34496 See the pkg-config man page for more details.
34497 " >&5
34498 echo "$as_me: error: Package requirements (x11 xdmcp xau xfont) were not met:
34500 $XWINMODULES_PKG_ERRORS
34502 Consider adjusting the PKG_CONFIG_PATH environment variable if you
34503 installed software in a non-standard prefix.
34505 Alternatively, you may set the environment variables XWINMODULES_CFLAGS
34506 and XWINMODULES_LIBS to avoid the need to call pkg-config.
34507 See the pkg-config man page for more details.
34508 " >&2;}
34509 { (exit 1); exit 1; }; }
34510 elif test $pkg_failed = untried; then
34511 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
34512 is in your PATH or set the PKG_CONFIG environment variable to the full
34513 path to pkg-config.
34515 Alternatively, you may set the environment variables XWINMODULES_CFLAGS
34516 and XWINMODULES_LIBS to avoid the need to call pkg-config.
34517 See the pkg-config man page for more details.
34519 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
34520 See \`config.log' for more details." >&5
34521 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
34522 is in your PATH or set the PKG_CONFIG environment variable to the full
34523 path to pkg-config.
34525 Alternatively, you may set the environment variables XWINMODULES_CFLAGS
34526 and XWINMODULES_LIBS to avoid the need to call pkg-config.
34527 See the pkg-config man page for more details.
34529 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
34530 See \`config.log' for more details." >&2;}
34531 { (exit 1); exit 1; }; }
34532 else
34533 XWINMODULES_CFLAGS=$pkg_cv_XWINMODULES_CFLAGS
34534 XWINMODULES_LIBS=$pkg_cv_XWINMODULES_LIBS
34535 { echo "$as_me:$LINENO: result: yes" >&5
34536 echo "${ECHO_T}yes" >&6; }
34539 XWIN_SERVER_NAME=Xming
34541 cat >>confdefs.h <<\_ACEOF
34542 #define RELOCATE_PROJECTROOT 1
34543 _ACEOF
34546 cat >>confdefs.h <<\_ACEOF
34547 #define HAS_WINSOCK 1
34548 _ACEOF
34550 XWIN_SYSTEM_LIBS=-lwinsock2
34552 esac
34556 if test "x$DEBUGGING" = xyes; then
34558 cat >>confdefs.h <<\_ACEOF
34559 #define CYGDEBUG 1
34560 _ACEOF
34563 cat >>confdefs.h <<\_ACEOF
34564 #define CYGWINDOWING_DEBUG 1
34565 _ACEOF
34568 cat >>confdefs.h <<\_ACEOF
34569 #define CYGMULTIWINDOW_DEBUG 1
34570 _ACEOF
34575 cat >>confdefs.h <<\_ACEOF
34576 #define DDXOSINIT 1
34577 _ACEOF
34580 cat >>confdefs.h <<\_ACEOF
34581 #define DDXTIME 1
34582 _ACEOF
34585 cat >>confdefs.h <<\_ACEOF
34586 #define DDXOSFATALERROR 1
34587 _ACEOF
34590 cat >>confdefs.h <<\_ACEOF
34591 #define DDXOSVERRORF 1
34592 _ACEOF
34595 cat >>confdefs.h <<\_ACEOF
34596 #define DDXBEFORERESET 1
34597 _ACEOF
34599 if test "x$XF86VIDMODE" = xyes; then
34600 { echo "$as_me:$LINENO: Disabling XF86VidMode extension" >&5
34601 echo "$as_me: Disabling XF86VidMode extension" >&6;}
34602 XF86VIDMODE=no
34604 if test "x$XF86MISC" = xyes; then
34605 { echo "$as_me:$LINENO: Disabling XF86Misc extension" >&5
34606 echo "$as_me: Disabling XF86Misc extension" >&6;}
34607 XF86MISC=no
34609 if test "x$COMPOSITE" = xyes; then
34610 { echo "$as_me:$LINENO: Disabling Composite extension" >&5
34611 echo "$as_me: Disabling Composite extension" >&6;}
34612 COMPOSITE=no
34615 if test "x$XWIN" = xyes; then
34616 XWIN_TRUE=
34617 XWIN_FALSE='#'
34618 else
34619 XWIN_TRUE='#'
34620 XWIN_FALSE=
34623 if test "x$XWIN" = xyes; then
34624 XWIN_MULTIWINDOW_TRUE=
34625 XWIN_MULTIWINDOW_FALSE='#'
34626 else
34627 XWIN_MULTIWINDOW_TRUE='#'
34628 XWIN_MULTIWINDOW_FALSE=
34631 if test "x$XWIN" = xyes && false; then
34632 XWIN_MULTIWINDOWEXTWM_TRUE=
34633 XWIN_MULTIWINDOWEXTWM_FALSE='#'
34634 else
34635 XWIN_MULTIWINDOWEXTWM_TRUE='#'
34636 XWIN_MULTIWINDOWEXTWM_FALSE=
34639 if test "x$XWIN" = xyes; then
34640 XWIN_CLIPBOARD_TRUE=
34641 XWIN_CLIPBOARD_FALSE='#'
34642 else
34643 XWIN_CLIPBOARD_TRUE='#'
34644 XWIN_CLIPBOARD_FALSE=
34647 if test "x$XWIN" = xyes && false; then
34648 XWIN_GLX_WINDOWS_TRUE=
34649 XWIN_GLX_WINDOWS_FALSE='#'
34650 else
34651 XWIN_GLX_WINDOWS_TRUE='#'
34652 XWIN_GLX_WINDOWS_FALSE=
34655 if test "x$XWIN" = xyes && false; then
34656 XWIN_NATIVEGDI_TRUE=
34657 XWIN_NATIVEGDI_FALSE='#'
34658 else
34659 XWIN_NATIVEGDI_TRUE='#'
34660 XWIN_NATIVEGDI_FALSE=
34663 if test "x$XWIN" = xyes && false; then
34664 XWIN_PRIMARYFB_TRUE=
34665 XWIN_PRIMARYFB_FALSE='#'
34666 else
34667 XWIN_PRIMARYFB_TRUE='#'
34668 XWIN_PRIMARYFB_FALSE=
34671 if test "x$XWIN" = xyes; then
34672 XWIN_RANDR_TRUE=
34673 XWIN_RANDR_FALSE='#'
34674 else
34675 XWIN_RANDR_TRUE='#'
34676 XWIN_RANDR_FALSE=
34679 if test "x$XWIN" = xyes && test "x$XV" = xyes; then
34680 XWIN_XV_TRUE=
34681 XWIN_XV_FALSE='#'
34682 else
34683 XWIN_XV_TRUE='#'
34684 XWIN_XV_FALSE=
34688 if test "x$ac_cv_lib_Xplugin_xp_init" = xyes; then
34689 HAVE_X_PLUGIN_TRUE=
34690 HAVE_X_PLUGIN_FALSE='#'
34691 else
34692 HAVE_X_PLUGIN_TRUE='#'
34693 HAVE_X_PLUGIN_FALSE=
34696 if test "x$xorg_cv_AGL_framework" = xyes; then
34697 HAVE_AGL_FRAMEWORK_TRUE=
34698 HAVE_AGL_FRAMEWORK_FALSE='#'
34699 else
34700 HAVE_AGL_FRAMEWORK_TRUE='#'
34701 HAVE_AGL_FRAMEWORK_FALSE=
34704 # Support for objc in autotools is minimal and not
34705 # documented.
34706 OBJC='$(CC)'
34707 OBJCLD='$(CCLD)'
34708 OBJCLINK='$(LINK)'
34709 OBJCFLAGS='$(CFLAGS)'
34714 # internal, undocumented automake func follows :(
34716 depcc="$OBJC" am_compiler_list='gcc3 gcc'
34718 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
34719 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
34720 if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
34721 echo $ECHO_N "(cached) $ECHO_C" >&6
34722 else
34723 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
34724 # We make a subdir and do the tests there. Otherwise we can end up
34725 # making bogus files that we don't know about and never remove. For
34726 # instance it was reported that on HP-UX the gcc test will end up
34727 # making a dummy file named `D' -- because `-MD' means `put the output
34728 # in D'.
34729 mkdir conftest.dir
34730 # Copy depcomp to subdir because otherwise we won't find it if we're
34731 # using a relative directory.
34732 cp "$am_depcomp" conftest.dir
34733 cd conftest.dir
34734 # We will build objects and dependencies in a subdirectory because
34735 # it helps to detect inapplicable dependency modes. For instance
34736 # both Tru64's cc and ICC support -MD to output dependencies as a
34737 # side effect of compilation, but ICC will put the dependencies in
34738 # the current directory while Tru64 will put them in the object
34739 # directory.
34740 mkdir sub
34742 am_cv_OBJC_dependencies_compiler_type=none
34743 if test "$am_compiler_list" = ""; then
34744 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
34746 for depmode in $am_compiler_list; do
34747 # Setup a source with many dependencies, because some compilers
34748 # like to wrap large dependency lists on column 80 (with \), and
34749 # we should not choose a depcomp mode which is confused by this.
34751 # We need to recreate these files for each test, as the compiler may
34752 # overwrite some of them when testing with obscure command lines.
34753 # This happens at least with the AIX C compiler.
34754 : > sub/conftest.c
34755 for i in 1 2 3 4 5 6; do
34756 echo '#include "conftst'$i'.h"' >> sub/conftest.c
34757 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
34758 # Solaris 8's {/usr,}/bin/sh.
34759 touch sub/conftst$i.h
34760 done
34761 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
34763 case $depmode in
34764 nosideeffect)
34765 # after this tag, mechanisms are not by side-effect, so they'll
34766 # only be used when explicitly requested
34767 if test "x$enable_dependency_tracking" = xyes; then
34768 continue
34769 else
34770 break
34773 none) break ;;
34774 esac
34775 # We check with `-c' and `-o' for the sake of the "dashmstdout"
34776 # mode. It turns out that the SunPro C++ compiler does not properly
34777 # handle `-M -o', and we need to detect this.
34778 if depmode=$depmode \
34779 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
34780 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
34781 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
34782 >/dev/null 2>conftest.err &&
34783 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
34784 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
34785 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
34786 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
34787 # icc doesn't choke on unknown options, it will just issue warnings
34788 # or remarks (even with -Werror). So we grep stderr for any message
34789 # that says an option was ignored or not supported.
34790 # When given -MP, icc 7.0 and 7.1 complain thusly:
34791 # icc: Command line warning: ignoring option '-M'; no argument required
34792 # The diagnosis changed in icc 8.0:
34793 # icc: Command line remark: option '-MP' not supported
34794 if (grep 'ignoring option' conftest.err ||
34795 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
34796 am_cv_OBJC_dependencies_compiler_type=$depmode
34797 break
34800 done
34802 cd ..
34803 rm -rf conftest.dir
34804 else
34805 am_cv_OBJC_dependencies_compiler_type=none
34809 { echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
34810 echo "${ECHO_T}$am_cv_OBJC_dependencies_compiler_type" >&6; }
34811 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
34814 test "x$enable_dependency_tracking" != xno \
34815 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
34816 am__fastdepOBJC_TRUE=
34817 am__fastdepOBJC_FALSE='#'
34818 else
34819 am__fastdepOBJC_TRUE='#'
34820 am__fastdepOBJC_FALSE=
34826 XEPHYR_LIBS=
34827 XEPHYR_INCS=
34828 XSDL_LIBS=
34829 XSDL_INCS=
34830 XSDL_DIRS=
34832 if test x$KDRIVE = xyes; then
34833 KDRIVE_TRUE=
34834 KDRIVE_FALSE='#'
34835 else
34836 KDRIVE_TRUE='#'
34837 KDRIVE_FALSE=
34840 if test "$KDRIVE" = yes; then
34842 cat >>confdefs.h <<\_ACEOF
34843 #define KDRIVESERVER 1
34844 _ACEOF
34847 cat >>confdefs.h <<\_ACEOF
34848 #define KDRIVEDDXACTIONS
34849 _ACEOF
34854 for ac_header in sys/vm86.h sys/io.h
34856 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34858 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34861 echo $ECHO_N "(cached) $ECHO_C" >&6
34863 ac_res=`eval echo '${'$as_ac_Header'}'`
34864 { echo "$as_me:$LINENO: result: $ac_res" >&5
34865 echo "${ECHO_T}$ac_res" >&6; }
34866 else
34867 # Is the header compilable?
34868 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34869 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34870 cat >conftest.$ac_ext <<_ACEOF
34871 /* confdefs.h. */
34872 _ACEOF
34873 cat confdefs.h >>conftest.$ac_ext
34874 cat >>conftest.$ac_ext <<_ACEOF
34875 /* end confdefs.h. */
34876 $ac_includes_default
34877 #include <$ac_header>
34878 _ACEOF
34879 rm -f conftest.$ac_objext
34880 if { (ac_try="$ac_compile"
34881 case "(($ac_try" in
34882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34883 *) ac_try_echo=$ac_try;;
34884 esac
34885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34886 (eval "$ac_compile") 2>conftest.er1
34887 ac_status=$?
34888 grep -v '^ *+' conftest.er1 >conftest.err
34889 rm -f conftest.er1
34890 cat conftest.err >&5
34891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34892 (exit $ac_status); } && {
34893 test -z "$ac_c_werror_flag" ||
34894 test ! -s conftest.err
34895 } && test -s conftest.$ac_objext; then
34896 ac_header_compiler=yes
34897 else
34898 echo "$as_me: failed program was:" >&5
34899 sed 's/^/| /' conftest.$ac_ext >&5
34901 ac_header_compiler=no
34904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34905 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34906 echo "${ECHO_T}$ac_header_compiler" >&6; }
34908 # Is the header present?
34909 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34911 cat >conftest.$ac_ext <<_ACEOF
34912 /* confdefs.h. */
34913 _ACEOF
34914 cat confdefs.h >>conftest.$ac_ext
34915 cat >>conftest.$ac_ext <<_ACEOF
34916 /* end confdefs.h. */
34917 #include <$ac_header>
34918 _ACEOF
34919 if { (ac_try="$ac_cpp conftest.$ac_ext"
34920 case "(($ac_try" in
34921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34922 *) ac_try_echo=$ac_try;;
34923 esac
34924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34926 ac_status=$?
34927 grep -v '^ *+' conftest.er1 >conftest.err
34928 rm -f conftest.er1
34929 cat conftest.err >&5
34930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34931 (exit $ac_status); } >/dev/null && {
34932 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34933 test ! -s conftest.err
34934 }; then
34935 ac_header_preproc=yes
34936 else
34937 echo "$as_me: failed program was:" >&5
34938 sed 's/^/| /' conftest.$ac_ext >&5
34940 ac_header_preproc=no
34943 rm -f conftest.err conftest.$ac_ext
34944 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34945 echo "${ECHO_T}$ac_header_preproc" >&6; }
34947 # So? What about this header?
34948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34949 yes:no: )
34950 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34951 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34953 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34954 ac_header_preproc=yes
34956 no:yes:* )
34957 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34958 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34959 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34960 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34961 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34962 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34963 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34964 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34966 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34967 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34968 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34969 ( cat <<\_ASBOX
34970 ## ---------------------------------------------------------------------- ##
34971 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
34972 ## ---------------------------------------------------------------------- ##
34973 _ASBOX
34974 ) | sed "s/^/$as_me: WARNING: /" >&2
34976 esac
34977 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34980 echo $ECHO_N "(cached) $ECHO_C" >&6
34981 else
34982 eval "$as_ac_Header=\$ac_header_preproc"
34984 ac_res=`eval echo '${'$as_ac_Header'}'`
34985 { echo "$as_me:$LINENO: result: $ac_res" >&5
34986 echo "${ECHO_T}$ac_res" >&6; }
34989 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34990 cat >>confdefs.h <<_ACEOF
34991 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34992 _ACEOF
34996 done
34998 if test "$ac_cv_header_sys_vm86_h" = yes && test "x$KDRIVEVESA" = xauto; then
34999 KDRIVEVESA=yes
35002 if test "x$KDRIVEVESA" = xyes; then
35003 KDRIVEFBDEVLIB=yes
35005 cat >>confdefs.h <<\_ACEOF
35006 #define KDRIVEVESA 1
35007 _ACEOF
35012 for ac_header in linux/fb.h
35014 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35019 echo $ECHO_N "(cached) $ECHO_C" >&6
35021 ac_res=`eval echo '${'$as_ac_Header'}'`
35022 { echo "$as_me:$LINENO: result: $ac_res" >&5
35023 echo "${ECHO_T}$ac_res" >&6; }
35024 else
35025 # Is the header compilable?
35026 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35028 cat >conftest.$ac_ext <<_ACEOF
35029 /* confdefs.h. */
35030 _ACEOF
35031 cat confdefs.h >>conftest.$ac_ext
35032 cat >>conftest.$ac_ext <<_ACEOF
35033 /* end confdefs.h. */
35034 $ac_includes_default
35035 #include <$ac_header>
35036 _ACEOF
35037 rm -f conftest.$ac_objext
35038 if { (ac_try="$ac_compile"
35039 case "(($ac_try" in
35040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35041 *) ac_try_echo=$ac_try;;
35042 esac
35043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35044 (eval "$ac_compile") 2>conftest.er1
35045 ac_status=$?
35046 grep -v '^ *+' conftest.er1 >conftest.err
35047 rm -f conftest.er1
35048 cat conftest.err >&5
35049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35050 (exit $ac_status); } && {
35051 test -z "$ac_c_werror_flag" ||
35052 test ! -s conftest.err
35053 } && test -s conftest.$ac_objext; then
35054 ac_header_compiler=yes
35055 else
35056 echo "$as_me: failed program was:" >&5
35057 sed 's/^/| /' conftest.$ac_ext >&5
35059 ac_header_compiler=no
35062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35063 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35064 echo "${ECHO_T}$ac_header_compiler" >&6; }
35066 # Is the header present?
35067 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35068 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35069 cat >conftest.$ac_ext <<_ACEOF
35070 /* confdefs.h. */
35071 _ACEOF
35072 cat confdefs.h >>conftest.$ac_ext
35073 cat >>conftest.$ac_ext <<_ACEOF
35074 /* end confdefs.h. */
35075 #include <$ac_header>
35076 _ACEOF
35077 if { (ac_try="$ac_cpp conftest.$ac_ext"
35078 case "(($ac_try" in
35079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35080 *) ac_try_echo=$ac_try;;
35081 esac
35082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35084 ac_status=$?
35085 grep -v '^ *+' conftest.er1 >conftest.err
35086 rm -f conftest.er1
35087 cat conftest.err >&5
35088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35089 (exit $ac_status); } >/dev/null && {
35090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35091 test ! -s conftest.err
35092 }; then
35093 ac_header_preproc=yes
35094 else
35095 echo "$as_me: failed program was:" >&5
35096 sed 's/^/| /' conftest.$ac_ext >&5
35098 ac_header_preproc=no
35101 rm -f conftest.err conftest.$ac_ext
35102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35103 echo "${ECHO_T}$ac_header_preproc" >&6; }
35105 # So? What about this header?
35106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35107 yes:no: )
35108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35112 ac_header_preproc=yes
35114 no:yes:* )
35115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35122 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35127 ( cat <<\_ASBOX
35128 ## ---------------------------------------------------------------------- ##
35129 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
35130 ## ---------------------------------------------------------------------- ##
35131 _ASBOX
35132 ) | sed "s/^/$as_me: WARNING: /" >&2
35134 esac
35135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35138 echo $ECHO_N "(cached) $ECHO_C" >&6
35139 else
35140 eval "$as_ac_Header=\$ac_header_preproc"
35142 ac_res=`eval echo '${'$as_ac_Header'}'`
35143 { echo "$as_me:$LINENO: result: $ac_res" >&5
35144 echo "${ECHO_T}$ac_res" >&6; }
35147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35148 cat >>confdefs.h <<_ACEOF
35149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35150 _ACEOF
35154 done
35156 if test "$ac_cv_header_linux_fb_h" = yes && test "x$XFBDEV" = xauto; then
35157 XFBDEV=yes
35160 if test "x$XFBDEV" = xyes; then
35161 KDRIVEFBDEVLIB=yes
35163 cat >>confdefs.h <<\_ACEOF
35164 #define KDRIVEFBDEV 1
35165 _ACEOF
35169 # tslib...
35170 { echo "$as_me:$LINENO: checking for ts_open in -lts" >&5
35171 echo $ECHO_N "checking for ts_open in -lts... $ECHO_C" >&6; }
35172 if test "${ac_cv_lib_ts_ts_open+set}" = set; then
35173 echo $ECHO_N "(cached) $ECHO_C" >&6
35174 else
35175 ac_check_lib_save_LIBS=$LIBS
35176 LIBS="-lts $LIBS"
35177 cat >conftest.$ac_ext <<_ACEOF
35178 /* confdefs.h. */
35179 _ACEOF
35180 cat confdefs.h >>conftest.$ac_ext
35181 cat >>conftest.$ac_ext <<_ACEOF
35182 /* end confdefs.h. */
35184 /* Override any GCC internal prototype to avoid an error.
35185 Use char because int might match the return type of a GCC
35186 builtin and then its argument prototype would still apply. */
35187 #ifdef __cplusplus
35188 extern "C"
35189 #endif
35190 char ts_open ();
35192 main ()
35194 return ts_open ();
35196 return 0;
35198 _ACEOF
35199 rm -f conftest.$ac_objext conftest$ac_exeext
35200 if { (ac_try="$ac_link"
35201 case "(($ac_try" in
35202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35203 *) ac_try_echo=$ac_try;;
35204 esac
35205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35206 (eval "$ac_link") 2>conftest.er1
35207 ac_status=$?
35208 grep -v '^ *+' conftest.er1 >conftest.err
35209 rm -f conftest.er1
35210 cat conftest.err >&5
35211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35212 (exit $ac_status); } && {
35213 test -z "$ac_c_werror_flag" ||
35214 test ! -s conftest.err
35215 } && test -s conftest$ac_exeext &&
35216 $as_test_x conftest$ac_exeext; then
35217 ac_cv_lib_ts_ts_open=yes
35218 else
35219 echo "$as_me: failed program was:" >&5
35220 sed 's/^/| /' conftest.$ac_ext >&5
35222 ac_cv_lib_ts_ts_open=no
35225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35226 conftest$ac_exeext conftest.$ac_ext
35227 LIBS=$ac_check_lib_save_LIBS
35229 { echo "$as_me:$LINENO: result: $ac_cv_lib_ts_ts_open" >&5
35230 echo "${ECHO_T}$ac_cv_lib_ts_ts_open" >&6; }
35231 if test $ac_cv_lib_ts_ts_open = yes; then
35232 HAVE_TSLIB="yes"
35235 if test "x$TSLIB" = xauto && test "x$HAVE_TSLIB" = xyes; then
35236 TSLIB=yes
35239 if test "x$TSLIB" = xyes; then
35240 if ! test "x$HAVE_TSLIB" = xyes; then
35241 { { echo "$as_me:$LINENO: error: tslib must be installed to build the tslib input driver." >&5
35242 echo "$as_me: error: tslib must be installed to build the tslib input driver." >&2;}
35243 { (exit 1); exit 1; }; }
35245 TSLIB_LIBS="-lts"
35247 cat >>confdefs.h <<\_ACEOF
35248 #define TSLIB 1
35249 _ACEOF
35254 for ac_header in SDL/SDL.h
35256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35258 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35261 echo $ECHO_N "(cached) $ECHO_C" >&6
35263 ac_res=`eval echo '${'$as_ac_Header'}'`
35264 { echo "$as_me:$LINENO: result: $ac_res" >&5
35265 echo "${ECHO_T}$ac_res" >&6; }
35266 else
35267 # Is the header compilable?
35268 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35270 cat >conftest.$ac_ext <<_ACEOF
35271 /* confdefs.h. */
35272 _ACEOF
35273 cat confdefs.h >>conftest.$ac_ext
35274 cat >>conftest.$ac_ext <<_ACEOF
35275 /* end confdefs.h. */
35276 $ac_includes_default
35277 #include <$ac_header>
35278 _ACEOF
35279 rm -f conftest.$ac_objext
35280 if { (ac_try="$ac_compile"
35281 case "(($ac_try" in
35282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35283 *) ac_try_echo=$ac_try;;
35284 esac
35285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35286 (eval "$ac_compile") 2>conftest.er1
35287 ac_status=$?
35288 grep -v '^ *+' conftest.er1 >conftest.err
35289 rm -f conftest.er1
35290 cat conftest.err >&5
35291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35292 (exit $ac_status); } && {
35293 test -z "$ac_c_werror_flag" ||
35294 test ! -s conftest.err
35295 } && test -s conftest.$ac_objext; then
35296 ac_header_compiler=yes
35297 else
35298 echo "$as_me: failed program was:" >&5
35299 sed 's/^/| /' conftest.$ac_ext >&5
35301 ac_header_compiler=no
35304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35305 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35306 echo "${ECHO_T}$ac_header_compiler" >&6; }
35308 # Is the header present?
35309 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35310 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35311 cat >conftest.$ac_ext <<_ACEOF
35312 /* confdefs.h. */
35313 _ACEOF
35314 cat confdefs.h >>conftest.$ac_ext
35315 cat >>conftest.$ac_ext <<_ACEOF
35316 /* end confdefs.h. */
35317 #include <$ac_header>
35318 _ACEOF
35319 if { (ac_try="$ac_cpp conftest.$ac_ext"
35320 case "(($ac_try" in
35321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35322 *) ac_try_echo=$ac_try;;
35323 esac
35324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35326 ac_status=$?
35327 grep -v '^ *+' conftest.er1 >conftest.err
35328 rm -f conftest.er1
35329 cat conftest.err >&5
35330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35331 (exit $ac_status); } >/dev/null && {
35332 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35333 test ! -s conftest.err
35334 }; then
35335 ac_header_preproc=yes
35336 else
35337 echo "$as_me: failed program was:" >&5
35338 sed 's/^/| /' conftest.$ac_ext >&5
35340 ac_header_preproc=no
35343 rm -f conftest.err conftest.$ac_ext
35344 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35345 echo "${ECHO_T}$ac_header_preproc" >&6; }
35347 # So? What about this header?
35348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35349 yes:no: )
35350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35354 ac_header_preproc=yes
35356 no:yes:* )
35357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35360 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35362 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35364 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35368 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35369 ( cat <<\_ASBOX
35370 ## ---------------------------------------------------------------------- ##
35371 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
35372 ## ---------------------------------------------------------------------- ##
35373 _ASBOX
35374 ) | sed "s/^/$as_me: WARNING: /" >&2
35376 esac
35377 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35380 echo $ECHO_N "(cached) $ECHO_C" >&6
35381 else
35382 eval "$as_ac_Header=\$ac_header_preproc"
35384 ac_res=`eval echo '${'$as_ac_Header'}'`
35385 { echo "$as_me:$LINENO: result: $ac_res" >&5
35386 echo "${ECHO_T}$ac_res" >&6; }
35389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35390 cat >>confdefs.h <<_ACEOF
35391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35392 _ACEOF
35396 done
35398 if test x"$ac_cv_header_SDL_SDL_h" = xyes && test "x$XSDL" = xauto; then
35399 XSDL=yes
35402 if test x"$XSDL" = xyes; then
35403 # PKG_CHECK_MODULES(XSDL_EXTRA, Xfont xau $XDMCP_MODULES)
35405 cat >>confdefs.h <<\_ACEOF
35406 #define XSDLSERVER 1
35407 _ACEOF
35409 XSDL_LIBS="`sdl-config --libs` $XSERVER_LIBS"
35410 XSDL_INCS="`sdl-config --cflags` $XSERVER_CFLAGS"
35414 pkg_failed=no
35415 { echo "$as_me:$LINENO: checking for XEPHYR" >&5
35416 echo $ECHO_N "checking for XEPHYR... $ECHO_C" >&6; }
35418 if test -n "$PKG_CONFIG"; then
35419 if test -n "$XEPHYR_CFLAGS"; then
35420 pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS"
35421 else
35422 if test -n "$PKG_CONFIG" && \
35423 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xext xfont xau xdmcp\"") >&5
35424 ($PKG_CONFIG --exists --print-errors "x11 xext xfont xau xdmcp") 2>&5
35425 ac_status=$?
35426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35427 (exit $ac_status); }; then
35428 pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xfont xau xdmcp" 2>/dev/null`
35429 else
35430 pkg_failed=yes
35433 else
35434 pkg_failed=untried
35436 if test -n "$PKG_CONFIG"; then
35437 if test -n "$XEPHYR_LIBS"; then
35438 pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS"
35439 else
35440 if test -n "$PKG_CONFIG" && \
35441 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xext xfont xau xdmcp\"") >&5
35442 ($PKG_CONFIG --exists --print-errors "x11 xext xfont xau xdmcp") 2>&5
35443 ac_status=$?
35444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35445 (exit $ac_status); }; then
35446 pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "x11 xext xfont xau xdmcp" 2>/dev/null`
35447 else
35448 pkg_failed=yes
35451 else
35452 pkg_failed=untried
35457 if test $pkg_failed = yes; then
35459 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35460 _pkg_short_errors_supported=yes
35461 else
35462 _pkg_short_errors_supported=no
35464 if test $_pkg_short_errors_supported = yes; then
35465 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11 xext xfont xau xdmcp"`
35466 else
35467 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11 xext xfont xau xdmcp"`
35469 # Put the nasty error message in config.log where it belongs
35470 echo "$XEPHYR_PKG_ERRORS" >&5
35472 { echo "$as_me:$LINENO: result: no" >&5
35473 echo "${ECHO_T}no" >&6; }
35474 xephyr="no"
35475 elif test $pkg_failed = untried; then
35476 xephyr="no"
35477 else
35478 XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS
35479 XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS
35480 { echo "$as_me:$LINENO: result: yes" >&5
35481 echo "${ECHO_T}yes" >&6; }
35482 xephyr="yes"
35484 if test "x$XEPHYR" = xauto; then
35485 XEPHYR=$xephyr
35488 # Xephyr needs nanosleep() which is in librt on Solaris
35489 { echo "$as_me:$LINENO: checking for nanosleep" >&5
35490 echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; }
35491 if test "${ac_cv_func_nanosleep+set}" = set; then
35492 echo $ECHO_N "(cached) $ECHO_C" >&6
35493 else
35494 cat >conftest.$ac_ext <<_ACEOF
35495 /* confdefs.h. */
35496 _ACEOF
35497 cat confdefs.h >>conftest.$ac_ext
35498 cat >>conftest.$ac_ext <<_ACEOF
35499 /* end confdefs.h. */
35500 /* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep.
35501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35502 #define nanosleep innocuous_nanosleep
35504 /* System header to define __stub macros and hopefully few prototypes,
35505 which can conflict with char nanosleep (); below.
35506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35507 <limits.h> exists even on freestanding compilers. */
35509 #ifdef __STDC__
35510 # include <limits.h>
35511 #else
35512 # include <assert.h>
35513 #endif
35515 #undef nanosleep
35517 /* Override any GCC internal prototype to avoid an error.
35518 Use char because int might match the return type of a GCC
35519 builtin and then its argument prototype would still apply. */
35520 #ifdef __cplusplus
35521 extern "C"
35522 #endif
35523 char nanosleep ();
35524 /* The GNU C library defines this for functions which it implements
35525 to always fail with ENOSYS. Some functions are actually named
35526 something starting with __ and the normal name is an alias. */
35527 #if defined __stub_nanosleep || defined __stub___nanosleep
35528 choke me
35529 #endif
35532 main ()
35534 return nanosleep ();
35536 return 0;
35538 _ACEOF
35539 rm -f conftest.$ac_objext conftest$ac_exeext
35540 if { (ac_try="$ac_link"
35541 case "(($ac_try" in
35542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35543 *) ac_try_echo=$ac_try;;
35544 esac
35545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35546 (eval "$ac_link") 2>conftest.er1
35547 ac_status=$?
35548 grep -v '^ *+' conftest.er1 >conftest.err
35549 rm -f conftest.er1
35550 cat conftest.err >&5
35551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35552 (exit $ac_status); } && {
35553 test -z "$ac_c_werror_flag" ||
35554 test ! -s conftest.err
35555 } && test -s conftest$ac_exeext &&
35556 $as_test_x conftest$ac_exeext; then
35557 ac_cv_func_nanosleep=yes
35558 else
35559 echo "$as_me: failed program was:" >&5
35560 sed 's/^/| /' conftest.$ac_ext >&5
35562 ac_cv_func_nanosleep=no
35565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35566 conftest$ac_exeext conftest.$ac_ext
35568 { echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5
35569 echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; }
35570 if test $ac_cv_func_nanosleep = yes; then
35572 else
35573 { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
35574 echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
35575 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
35576 echo $ECHO_N "(cached) $ECHO_C" >&6
35577 else
35578 ac_check_lib_save_LIBS=$LIBS
35579 LIBS="-lrt $LIBS"
35580 cat >conftest.$ac_ext <<_ACEOF
35581 /* confdefs.h. */
35582 _ACEOF
35583 cat confdefs.h >>conftest.$ac_ext
35584 cat >>conftest.$ac_ext <<_ACEOF
35585 /* end confdefs.h. */
35587 /* Override any GCC internal prototype to avoid an error.
35588 Use char because int might match the return type of a GCC
35589 builtin and then its argument prototype would still apply. */
35590 #ifdef __cplusplus
35591 extern "C"
35592 #endif
35593 char nanosleep ();
35595 main ()
35597 return nanosleep ();
35599 return 0;
35601 _ACEOF
35602 rm -f conftest.$ac_objext conftest$ac_exeext
35603 if { (ac_try="$ac_link"
35604 case "(($ac_try" in
35605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35606 *) ac_try_echo=$ac_try;;
35607 esac
35608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35609 (eval "$ac_link") 2>conftest.er1
35610 ac_status=$?
35611 grep -v '^ *+' conftest.er1 >conftest.err
35612 rm -f conftest.er1
35613 cat conftest.err >&5
35614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35615 (exit $ac_status); } && {
35616 test -z "$ac_c_werror_flag" ||
35617 test ! -s conftest.err
35618 } && test -s conftest$ac_exeext &&
35619 $as_test_x conftest$ac_exeext; then
35620 ac_cv_lib_rt_nanosleep=yes
35621 else
35622 echo "$as_me: failed program was:" >&5
35623 sed 's/^/| /' conftest.$ac_ext >&5
35625 ac_cv_lib_rt_nanosleep=no
35628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35629 conftest$ac_exeext conftest.$ac_ext
35630 LIBS=$ac_check_lib_save_LIBS
35632 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
35633 echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
35634 if test $ac_cv_lib_rt_nanosleep = yes; then
35635 XEPHYR_LIBS="$XEPHYR_LIBS -lrt"
35641 if test "x$TSLIB" = xyes; then
35643 pkg_failed=no
35644 { echo "$as_me:$LINENO: checking for TSLIB" >&5
35645 echo $ECHO_N "checking for TSLIB... $ECHO_C" >&6; }
35647 if test -n "$PKG_CONFIG"; then
35648 if test -n "$TSLIB_CFLAGS"; then
35649 pkg_cv_TSLIB_CFLAGS="$TSLIB_CFLAGS"
35650 else
35651 if test -n "$PKG_CONFIG" && \
35652 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"tslib-0.0\"") >&5
35653 ($PKG_CONFIG --exists --print-errors "tslib-0.0") 2>&5
35654 ac_status=$?
35655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35656 (exit $ac_status); }; then
35657 pkg_cv_TSLIB_CFLAGS=`$PKG_CONFIG --cflags "tslib-0.0" 2>/dev/null`
35658 else
35659 pkg_failed=yes
35662 else
35663 pkg_failed=untried
35665 if test -n "$PKG_CONFIG"; then
35666 if test -n "$TSLIB_LIBS"; then
35667 pkg_cv_TSLIB_LIBS="$TSLIB_LIBS"
35668 else
35669 if test -n "$PKG_CONFIG" && \
35670 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"tslib-0.0\"") >&5
35671 ($PKG_CONFIG --exists --print-errors "tslib-0.0") 2>&5
35672 ac_status=$?
35673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35674 (exit $ac_status); }; then
35675 pkg_cv_TSLIB_LIBS=`$PKG_CONFIG --libs "tslib-0.0" 2>/dev/null`
35676 else
35677 pkg_failed=yes
35680 else
35681 pkg_failed=untried
35686 if test $pkg_failed = yes; then
35688 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35689 _pkg_short_errors_supported=yes
35690 else
35691 _pkg_short_errors_supported=no
35693 if test $_pkg_short_errors_supported = yes; then
35694 TSLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "tslib-0.0"`
35695 else
35696 TSLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "tslib-0.0"`
35698 # Put the nasty error message in config.log where it belongs
35699 echo "$TSLIB_PKG_ERRORS" >&5
35701 { echo "$as_me:$LINENO: result: no" >&5
35702 echo "${ECHO_T}no" >&6; }
35703 HAVE_TSLIB="no"
35704 elif test $pkg_failed = untried; then
35705 HAVE_TSLIB="no"
35706 else
35707 TSLIB_CFLAGS=$pkg_cv_TSLIB_CFLAGS
35708 TSLIB_LIBS=$pkg_cv_TSLIB_LIBS
35709 { echo "$as_me:$LINENO: result: yes" >&5
35710 echo "${ECHO_T}yes" >&6; }
35711 HAVE_TSLIB="yes"
35713 if test "x$HAVE_TSLIB" = xno; then
35714 { { echo "$as_me:$LINENO: error: tslib must be installed to build the tslib driver. See http://tslib.berlios.de/" >&5
35715 echo "$as_me: error: tslib must be installed to build the tslib driver. See http://tslib.berlios.de/" >&2;}
35716 { (exit 1); exit 1; }; }
35719 cat >>confdefs.h <<\_ACEOF
35720 #define TSLIB 1
35721 _ACEOF
35725 # damage shadow extension glx (NOTYET) fb mi
35726 KDRIVE_INC='-I$(top_srcdir)/hw/kdrive/src'
35727 KDRIVE_PURE_INCS="$KDRIVE_INC $MIEXT_DAMAGE_INC $MIEXT_SHADOW_INC $XEXT_INC $FB_INC $MI_INC"
35728 KDRIVE_OS_INC='-I$(top_srcdir)/hw/kdrive/linux'
35729 KDRIVE_INCS="$KDRIVE_PURE_INCS $KDRIVE_OS_INC"
35731 KDRIVE_CFLAGS="$XSERVER_CFLAGS -DHAVE_KDRIVE_CONFIG_H $TSLIB_CFLAGS"
35733 KDRIVE_PURE_LIBS="$FB_LIB $MI_LIB $FIXES_LIB $XEXT_LIB $DBE_LIB $XTRAP_LIB $RECORD_LIB $GLX_LIBS $RENDER_LIB $RANDR_LIB $DAMAGE_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $XPSTUBS_LIB $OS_LIB"
35734 KDRIVE_LIB='$(top_builddir)/hw/kdrive/src/libkdrive.a'
35735 case $host_os in
35736 *linux*)
35737 KDRIVE_OS_LIB='$(top_builddir)/hw/kdrive/linux/liblinux.a'
35738 KDRIVELINUX=yes
35740 esac
35741 KDRIVE_STUB_LIB='$(top_builddir)/hw/kdrive/src/libkdrivestubs.a'
35742 KDRIVE_LOCAL_LIBS="$DIX_LIB $CONFIG_LIB $KDRIVE_LIB $TSLIB_LIBS $KDRIVE_OS_LIB $KDRIVE_PURE_LIBS $KDRIVE_STUB_LIB"
35743 KDRIVE_LIBS="$XSERVERLIBS_LIBS $KDRIVE_LOCAL_LIBS"
35745 # check if we can build Xephyr
35747 pkg_failed=no
35748 { echo "$as_me:$LINENO: checking for XEPHYR" >&5
35749 echo $ECHO_N "checking for XEPHYR... $ECHO_C" >&6; }
35751 if test -n "$PKG_CONFIG"; then
35752 if test -n "$XEPHYR_CFLAGS"; then
35753 pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS"
35754 else
35755 if test -n "$PKG_CONFIG" && \
35756 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xext xfont xau xdmcp\"") >&5
35757 ($PKG_CONFIG --exists --print-errors "x11 xext xfont xau xdmcp") 2>&5
35758 ac_status=$?
35759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35760 (exit $ac_status); }; then
35761 pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xfont xau xdmcp" 2>/dev/null`
35762 else
35763 pkg_failed=yes
35766 else
35767 pkg_failed=untried
35769 if test -n "$PKG_CONFIG"; then
35770 if test -n "$XEPHYR_LIBS"; then
35771 pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS"
35772 else
35773 if test -n "$PKG_CONFIG" && \
35774 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xext xfont xau xdmcp\"") >&5
35775 ($PKG_CONFIG --exists --print-errors "x11 xext xfont xau xdmcp") 2>&5
35776 ac_status=$?
35777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35778 (exit $ac_status); }; then
35779 pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "x11 xext xfont xau xdmcp" 2>/dev/null`
35780 else
35781 pkg_failed=yes
35784 else
35785 pkg_failed=untried
35790 if test $pkg_failed = yes; then
35792 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35793 _pkg_short_errors_supported=yes
35794 else
35795 _pkg_short_errors_supported=no
35797 if test $_pkg_short_errors_supported = yes; then
35798 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11 xext xfont xau xdmcp"`
35799 else
35800 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11 xext xfont xau xdmcp"`
35802 # Put the nasty error message in config.log where it belongs
35803 echo "$XEPHYR_PKG_ERRORS" >&5
35805 { echo "$as_me:$LINENO: result: no" >&5
35806 echo "${ECHO_T}no" >&6; }
35807 xephyr="no"
35808 elif test $pkg_failed = untried; then
35809 xephyr="no"
35810 else
35811 XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS
35812 XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS
35813 { echo "$as_me:$LINENO: result: yes" >&5
35814 echo "${ECHO_T}yes" >&6; }
35815 xephyr="yes"
35829 if test "x$KDRIVELINUX" = xyes; then
35830 KDRIVELINUX_TRUE=
35831 KDRIVELINUX_FALSE='#'
35832 else
35833 KDRIVELINUX_TRUE='#'
35834 KDRIVELINUX_FALSE=
35837 if test "x$HAVE_TSLIB" = xyes; then
35838 TSLIB_TRUE=
35839 TSLIB_FALSE='#'
35840 else
35841 TSLIB_TRUE='#'
35842 TSLIB_FALSE=
35845 if false; then
35846 H3600_TS_TRUE=
35847 H3600_TS_FALSE='#'
35848 else
35849 H3600_TS_TRUE='#'
35850 H3600_TS_FALSE=
35853 if test "x$KDRIVEVESA" = xyes; then
35854 KDRIVEVESA_TRUE=
35855 KDRIVEVESA_FALSE='#'
35856 else
35857 KDRIVEVESA_TRUE='#'
35858 KDRIVEVESA_FALSE=
35861 if test "x$XFBDEV" = xyes; then
35862 KDRIVEFBDEV_TRUE=
35863 KDRIVEFBDEV_FALSE='#'
35864 else
35865 KDRIVEFBDEV_TRUE='#'
35866 KDRIVEFBDEV_FALSE=
35869 if test x"$XSDL" = xyes; then
35870 XSDLSERVER_TRUE=
35871 XSDLSERVER_FALSE='#'
35872 else
35873 XSDLSERVER_TRUE='#'
35874 XSDLSERVER_FALSE=
35877 if test "x$KDRIVE" = xyes && test "x$XEPHYR" = xyes; then
35878 XEPHYR_TRUE=
35879 XEPHYR_FALSE='#'
35880 else
35881 XEPHYR_TRUE='#'
35882 XEPHYR_FALSE=
35885 if test "x$KDRIVE" = xyes && test "x$KDRIVEFBDEVLIB" = xyes; then
35886 BUILD_KDRIVEFBDEVLIB_TRUE=
35887 BUILD_KDRIVEFBDEVLIB_FALSE='#'
35888 else
35889 BUILD_KDRIVEFBDEVLIB_TRUE='#'
35890 BUILD_KDRIVEFBDEVLIB_FALSE=
35893 if test "x$KDRIVE" = xyes && test "x$XFAKE" = xyes; then
35894 XFAKESERVER_TRUE=
35895 XFAKESERVER_FALSE='#'
35896 else
35897 XFAKESERVER_TRUE='#'
35898 XFAKESERVER_FALSE=
35903 cat >>confdefs.h <<\_ACEOF
35904 #define __XKBDEFRULES__ "xorg"
35905 _ACEOF
35908 prefix_NONE=
35909 exec_prefix_NONE=
35910 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
35911 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
35912 eval ac_define_dir="\"$XKBPATH\""
35913 eval ac_define_dir="\"$ac_define_dir\""
35914 XKB_BASE_DIRECTORY="$ac_define_dir"
35917 cat >>confdefs.h <<_ACEOF
35918 #define XKB_BASE_DIRECTORY "$ac_define_dir"
35919 _ACEOF
35921 test "$prefix_NONE" && prefix=NONE
35922 test "$exec_prefix_NONE" && exec_prefix=NONE
35925 prefix_NONE=
35926 exec_prefix_NONE=
35927 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
35928 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
35929 eval ac_define_dir="\"$bindir\""
35930 eval ac_define_dir="\"$ac_define_dir\""
35931 XKB_BIN_DIRECTORY="$ac_define_dir"
35934 cat >>confdefs.h <<_ACEOF
35935 #define XKB_BIN_DIRECTORY "$ac_define_dir"
35936 _ACEOF
35938 test "$prefix_NONE" && prefix=NONE
35939 test "$exec_prefix_NONE" && exec_prefix=NONE
35942 # Make sure XKM_OUTPUT_DIR is an absolute path
35943 XKBOUTPUT_FIRSTCHAR=`echo $XKBOUTPUT | cut -b 1`
35945 if [ x$XKBOUTPUT_FIRSTCHAR != x/ ] ; then
35946 XKBOUTPUT="$XKB_BASE_DIRECTORY/$XKBOUTPUT"
35949 # XKM_OUTPUT_DIR (used in code) must end in / or file names get hosed
35950 # XKB_COMPILED_DIR (used in Makefiles) must not or install-sh gets confused
35952 XKBOUTPUT=`echo $XKBOUTPUT/ | sed 's|/*$|/|'`
35953 XKB_COMPILED_DIR=`echo $XKBOUTPUT | sed 's|/*$||'`
35956 prefix_NONE=
35957 exec_prefix_NONE=
35958 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
35959 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
35960 eval ac_define_dir="\"$XKBOUTPUT\""
35961 eval ac_define_dir="\"$ac_define_dir\""
35962 XKM_OUTPUT_DIR="$ac_define_dir"
35965 cat >>confdefs.h <<_ACEOF
35966 #define XKM_OUTPUT_DIR "$ac_define_dir"
35967 _ACEOF
35969 test "$prefix_NONE" && prefix=NONE
35970 test "$exec_prefix_NONE" && exec_prefix=NONE
35976 cat >>confdefs.h <<\_ACEOF
35977 #define XResExtension 1
35978 _ACEOF
35981 cat >conftest.$ac_ext <<_ACEOF
35982 /* confdefs.h. */
35983 _ACEOF
35984 cat confdefs.h >>conftest.$ac_ext
35985 cat >>conftest.$ac_ext <<_ACEOF
35986 /* end confdefs.h. */
35988 #include <features.h>
35989 #ifndef __GLIBC__
35990 #error not glibc
35991 #endif
35994 main ()
35998 return 0;
36000 _ACEOF
36001 rm -f conftest.$ac_objext
36002 if { (ac_try="$ac_compile"
36003 case "(($ac_try" in
36004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36005 *) ac_try_echo=$ac_try;;
36006 esac
36007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36008 (eval "$ac_compile") 2>conftest.er1
36009 ac_status=$?
36010 grep -v '^ *+' conftest.er1 >conftest.err
36011 rm -f conftest.er1
36012 cat conftest.err >&5
36013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36014 (exit $ac_status); } && {
36015 test -z "$ac_c_werror_flag" ||
36016 test ! -s conftest.err
36017 } && test -s conftest.$ac_objext; then
36019 cat >>confdefs.h <<\_ACEOF
36020 #define _GNU_SOURCE 1
36021 _ACEOF
36023 else
36024 echo "$as_me: failed program was:" >&5
36025 sed 's/^/| /' conftest.$ac_ext >&5
36030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36033 prefix_NONE=
36034 exec_prefix_NONE=
36035 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
36036 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
36037 eval ac_define_dir="\"$prefix\""
36038 eval ac_define_dir="\"$ac_define_dir\""
36039 PROJECTROOT="$ac_define_dir"
36042 cat >>confdefs.h <<_ACEOF
36043 #define PROJECTROOT "$ac_define_dir"
36044 _ACEOF
36046 test "$prefix_NONE" && prefix=NONE
36047 test "$exec_prefix_NONE" && exec_prefix=NONE
36050 if test "x$XORG" = xyes; then
36052 pkg_failed=no
36053 { echo "$as_me:$LINENO: checking for XORGCONFIG_DEP" >&5
36054 echo $ECHO_N "checking for XORGCONFIG_DEP... $ECHO_C" >&6; }
36056 if test -n "$PKG_CONFIG"; then
36057 if test -n "$XORGCONFIG_DEP_CFLAGS"; then
36058 pkg_cv_XORGCONFIG_DEP_CFLAGS="$XORGCONFIG_DEP_CFLAGS"
36059 else
36060 if test -n "$PKG_CONFIG" && \
36061 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xkbfile x11\"") >&5
36062 ($PKG_CONFIG --exists --print-errors "xkbfile x11") 2>&5
36063 ac_status=$?
36064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36065 (exit $ac_status); }; then
36066 pkg_cv_XORGCONFIG_DEP_CFLAGS=`$PKG_CONFIG --cflags "xkbfile x11" 2>/dev/null`
36067 else
36068 pkg_failed=yes
36071 else
36072 pkg_failed=untried
36074 if test -n "$PKG_CONFIG"; then
36075 if test -n "$XORGCONFIG_DEP_LIBS"; then
36076 pkg_cv_XORGCONFIG_DEP_LIBS="$XORGCONFIG_DEP_LIBS"
36077 else
36078 if test -n "$PKG_CONFIG" && \
36079 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xkbfile x11\"") >&5
36080 ($PKG_CONFIG --exists --print-errors "xkbfile x11") 2>&5
36081 ac_status=$?
36082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36083 (exit $ac_status); }; then
36084 pkg_cv_XORGCONFIG_DEP_LIBS=`$PKG_CONFIG --libs "xkbfile x11" 2>/dev/null`
36085 else
36086 pkg_failed=yes
36089 else
36090 pkg_failed=untried
36095 if test $pkg_failed = yes; then
36097 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36098 _pkg_short_errors_supported=yes
36099 else
36100 _pkg_short_errors_supported=no
36102 if test $_pkg_short_errors_supported = yes; then
36103 XORGCONFIG_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xkbfile x11"`
36104 else
36105 XORGCONFIG_DEP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xkbfile x11"`
36107 # Put the nasty error message in config.log where it belongs
36108 echo "$XORGCONFIG_DEP_PKG_ERRORS" >&5
36110 { { echo "$as_me:$LINENO: error: Package requirements (xkbfile x11) were not met:
36112 $XORGCONFIG_DEP_PKG_ERRORS
36114 Consider adjusting the PKG_CONFIG_PATH environment variable if you
36115 installed software in a non-standard prefix.
36117 Alternatively, you may set the environment variables XORGCONFIG_DEP_CFLAGS
36118 and XORGCONFIG_DEP_LIBS to avoid the need to call pkg-config.
36119 See the pkg-config man page for more details.
36120 " >&5
36121 echo "$as_me: error: Package requirements (xkbfile x11) were not met:
36123 $XORGCONFIG_DEP_PKG_ERRORS
36125 Consider adjusting the PKG_CONFIG_PATH environment variable if you
36126 installed software in a non-standard prefix.
36128 Alternatively, you may set the environment variables XORGCONFIG_DEP_CFLAGS
36129 and XORGCONFIG_DEP_LIBS to avoid the need to call pkg-config.
36130 See the pkg-config man page for more details.
36131 " >&2;}
36132 { (exit 1); exit 1; }; }
36133 elif test $pkg_failed = untried; then
36134 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
36135 is in your PATH or set the PKG_CONFIG environment variable to the full
36136 path to pkg-config.
36138 Alternatively, you may set the environment variables XORGCONFIG_DEP_CFLAGS
36139 and XORGCONFIG_DEP_LIBS to avoid the need to call pkg-config.
36140 See the pkg-config man page for more details.
36142 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
36143 See \`config.log' for more details." >&5
36144 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
36145 is in your PATH or set the PKG_CONFIG environment variable to the full
36146 path to pkg-config.
36148 Alternatively, you may set the environment variables XORGCONFIG_DEP_CFLAGS
36149 and XORGCONFIG_DEP_LIBS to avoid the need to call pkg-config.
36150 See the pkg-config man page for more details.
36152 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
36153 See \`config.log' for more details." >&2;}
36154 { (exit 1); exit 1; }; }
36155 else
36156 XORGCONFIG_DEP_CFLAGS=$pkg_cv_XORGCONFIG_DEP_CFLAGS
36157 XORGCONFIG_DEP_LIBS=$pkg_cv_XORGCONFIG_DEP_LIBS
36158 { echo "$as_me:$LINENO: result: yes" >&5
36159 echo "${ECHO_T}yes" >&6; }
36166 # Check whether --enable-xorgcfg was given.
36167 if test "${enable_xorgcfg+set}" = set; then
36168 enableval=$enable_xorgcfg; XORGCFG=$enableval
36169 else
36170 XORGCFG=no
36173 if test x$XORGCFG = xyes ; then
36175 pkg_failed=no
36176 { echo "$as_me:$LINENO: checking for XORGCFG_DEP" >&5
36177 echo $ECHO_N "checking for XORGCFG_DEP... $ECHO_C" >&6; }
36179 if test -n "$PKG_CONFIG"; then
36180 if test -n "$XORGCFG_DEP_CFLAGS"; then
36181 pkg_cv_XORGCFG_DEP_CFLAGS="$XORGCFG_DEP_CFLAGS"
36182 else
36183 if test -n "$PKG_CONFIG" && \
36184 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xkbui >= 1.0.2 xkbfile xxf86misc xxf86vm xaw7 xmu xt xpm xext x11\"") >&5
36185 ($PKG_CONFIG --exists --print-errors "xkbui >= 1.0.2 xkbfile xxf86misc xxf86vm xaw7 xmu xt xpm xext x11") 2>&5
36186 ac_status=$?
36187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36188 (exit $ac_status); }; then
36189 pkg_cv_XORGCFG_DEP_CFLAGS=`$PKG_CONFIG --cflags "xkbui >= 1.0.2 xkbfile xxf86misc xxf86vm xaw7 xmu xt xpm xext x11" 2>/dev/null`
36190 else
36191 pkg_failed=yes
36194 else
36195 pkg_failed=untried
36197 if test -n "$PKG_CONFIG"; then
36198 if test -n "$XORGCFG_DEP_LIBS"; then
36199 pkg_cv_XORGCFG_DEP_LIBS="$XORGCFG_DEP_LIBS"
36200 else
36201 if test -n "$PKG_CONFIG" && \
36202 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xkbui >= 1.0.2 xkbfile xxf86misc xxf86vm xaw7 xmu xt xpm xext x11\"") >&5
36203 ($PKG_CONFIG --exists --print-errors "xkbui >= 1.0.2 xkbfile xxf86misc xxf86vm xaw7 xmu xt xpm xext x11") 2>&5
36204 ac_status=$?
36205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36206 (exit $ac_status); }; then
36207 pkg_cv_XORGCFG_DEP_LIBS=`$PKG_CONFIG --libs "xkbui >= 1.0.2 xkbfile xxf86misc xxf86vm xaw7 xmu xt xpm xext x11" 2>/dev/null`
36208 else
36209 pkg_failed=yes
36212 else
36213 pkg_failed=untried
36218 if test $pkg_failed = yes; then
36220 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36221 _pkg_short_errors_supported=yes
36222 else
36223 _pkg_short_errors_supported=no
36225 if test $_pkg_short_errors_supported = yes; then
36226 XORGCFG_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xkbui >= 1.0.2 xkbfile xxf86misc xxf86vm xaw7 xmu xt xpm xext x11"`
36227 else
36228 XORGCFG_DEP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xkbui >= 1.0.2 xkbfile xxf86misc xxf86vm xaw7 xmu xt xpm xext x11"`
36230 # Put the nasty error message in config.log where it belongs
36231 echo "$XORGCFG_DEP_PKG_ERRORS" >&5
36233 { { echo "$as_me:$LINENO: error: Package requirements (xkbui >= 1.0.2 xkbfile xxf86misc xxf86vm xaw7 xmu xt xpm xext x11) were not met:
36235 $XORGCFG_DEP_PKG_ERRORS
36237 Consider adjusting the PKG_CONFIG_PATH environment variable if you
36238 installed software in a non-standard prefix.
36240 Alternatively, you may set the environment variables XORGCFG_DEP_CFLAGS
36241 and XORGCFG_DEP_LIBS to avoid the need to call pkg-config.
36242 See the pkg-config man page for more details.
36243 " >&5
36244 echo "$as_me: error: Package requirements (xkbui >= 1.0.2 xkbfile xxf86misc xxf86vm xaw7 xmu xt xpm xext x11) were not met:
36246 $XORGCFG_DEP_PKG_ERRORS
36248 Consider adjusting the PKG_CONFIG_PATH environment variable if you
36249 installed software in a non-standard prefix.
36251 Alternatively, you may set the environment variables XORGCFG_DEP_CFLAGS
36252 and XORGCFG_DEP_LIBS to avoid the need to call pkg-config.
36253 See the pkg-config man page for more details.
36254 " >&2;}
36255 { (exit 1); exit 1; }; }
36256 elif test $pkg_failed = untried; then
36257 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
36258 is in your PATH or set the PKG_CONFIG environment variable to the full
36259 path to pkg-config.
36261 Alternatively, you may set the environment variables XORGCFG_DEP_CFLAGS
36262 and XORGCFG_DEP_LIBS to avoid the need to call pkg-config.
36263 See the pkg-config man page for more details.
36265 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
36266 See \`config.log' for more details." >&5
36267 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
36268 is in your PATH or set the PKG_CONFIG environment variable to the full
36269 path to pkg-config.
36271 Alternatively, you may set the environment variables XORGCFG_DEP_CFLAGS
36272 and XORGCFG_DEP_LIBS to avoid the need to call pkg-config.
36273 See the pkg-config man page for more details.
36275 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
36276 See \`config.log' for more details." >&2;}
36277 { (exit 1); exit 1; }; }
36278 else
36279 XORGCFG_DEP_CFLAGS=$pkg_cv_XORGCFG_DEP_CFLAGS
36280 XORGCFG_DEP_LIBS=$pkg_cv_XORGCFG_DEP_LIBS
36281 { echo "$as_me:$LINENO: result: yes" >&5
36282 echo "${ECHO_T}yes" >&6; }
36285 XORGCFG_DEP_CFLAGS="$XORGCFG_DEP_CFLAGS $PIXMAN_CFLAGS"
36286 { echo "$as_me:$LINENO: checking for waddstr in -lcurses" >&5
36287 echo $ECHO_N "checking for waddstr in -lcurses... $ECHO_C" >&6; }
36288 if test "${ac_cv_lib_curses_waddstr+set}" = set; then
36289 echo $ECHO_N "(cached) $ECHO_C" >&6
36290 else
36291 ac_check_lib_save_LIBS=$LIBS
36292 LIBS="-lcurses $LIBS"
36293 cat >conftest.$ac_ext <<_ACEOF
36294 /* confdefs.h. */
36295 _ACEOF
36296 cat confdefs.h >>conftest.$ac_ext
36297 cat >>conftest.$ac_ext <<_ACEOF
36298 /* end confdefs.h. */
36300 /* Override any GCC internal prototype to avoid an error.
36301 Use char because int might match the return type of a GCC
36302 builtin and then its argument prototype would still apply. */
36303 #ifdef __cplusplus
36304 extern "C"
36305 #endif
36306 char waddstr ();
36308 main ()
36310 return waddstr ();
36312 return 0;
36314 _ACEOF
36315 rm -f conftest.$ac_objext conftest$ac_exeext
36316 if { (ac_try="$ac_link"
36317 case "(($ac_try" in
36318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36319 *) ac_try_echo=$ac_try;;
36320 esac
36321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36322 (eval "$ac_link") 2>conftest.er1
36323 ac_status=$?
36324 grep -v '^ *+' conftest.er1 >conftest.err
36325 rm -f conftest.er1
36326 cat conftest.err >&5
36327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36328 (exit $ac_status); } && {
36329 test -z "$ac_c_werror_flag" ||
36330 test ! -s conftest.err
36331 } && test -s conftest$ac_exeext &&
36332 $as_test_x conftest$ac_exeext; then
36333 ac_cv_lib_curses_waddstr=yes
36334 else
36335 echo "$as_me: failed program was:" >&5
36336 sed 's/^/| /' conftest.$ac_ext >&5
36338 ac_cv_lib_curses_waddstr=no
36341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36342 conftest$ac_exeext conftest.$ac_ext
36343 LIBS=$ac_check_lib_save_LIBS
36345 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddstr" >&5
36346 echo "${ECHO_T}$ac_cv_lib_curses_waddstr" >&6; }
36347 if test $ac_cv_lib_curses_waddstr = yes; then
36348 XORGCFG_DEP_LIBS="$XORGCFG_DEP_LIBS -lcurses"; CURSES=yes
36349 else
36350 { echo "$as_me:$LINENO: checking for waddstr in -lncurses" >&5
36351 echo $ECHO_N "checking for waddstr in -lncurses... $ECHO_C" >&6; }
36352 if test "${ac_cv_lib_ncurses_waddstr+set}" = set; then
36353 echo $ECHO_N "(cached) $ECHO_C" >&6
36354 else
36355 ac_check_lib_save_LIBS=$LIBS
36356 LIBS="-lncurses $LIBS"
36357 cat >conftest.$ac_ext <<_ACEOF
36358 /* confdefs.h. */
36359 _ACEOF
36360 cat confdefs.h >>conftest.$ac_ext
36361 cat >>conftest.$ac_ext <<_ACEOF
36362 /* end confdefs.h. */
36364 /* Override any GCC internal prototype to avoid an error.
36365 Use char because int might match the return type of a GCC
36366 builtin and then its argument prototype would still apply. */
36367 #ifdef __cplusplus
36368 extern "C"
36369 #endif
36370 char waddstr ();
36372 main ()
36374 return waddstr ();
36376 return 0;
36378 _ACEOF
36379 rm -f conftest.$ac_objext conftest$ac_exeext
36380 if { (ac_try="$ac_link"
36381 case "(($ac_try" in
36382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36383 *) ac_try_echo=$ac_try;;
36384 esac
36385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36386 (eval "$ac_link") 2>conftest.er1
36387 ac_status=$?
36388 grep -v '^ *+' conftest.er1 >conftest.err
36389 rm -f conftest.er1
36390 cat conftest.err >&5
36391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36392 (exit $ac_status); } && {
36393 test -z "$ac_c_werror_flag" ||
36394 test ! -s conftest.err
36395 } && test -s conftest$ac_exeext &&
36396 $as_test_x conftest$ac_exeext; then
36397 ac_cv_lib_ncurses_waddstr=yes
36398 else
36399 echo "$as_me: failed program was:" >&5
36400 sed 's/^/| /' conftest.$ac_ext >&5
36402 ac_cv_lib_ncurses_waddstr=no
36405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36406 conftest$ac_exeext conftest.$ac_ext
36407 LIBS=$ac_check_lib_save_LIBS
36409 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddstr" >&5
36410 echo "${ECHO_T}$ac_cv_lib_ncurses_waddstr" >&6; }
36411 if test $ac_cv_lib_ncurses_waddstr = yes; then
36412 XORGCFG_DEP_LIBS="$XORGCFG_DEP_LIBS -lncurses" ; CURSES=yes
36413 else
36414 CURSES=no
36422 APPDEFAULTDIR=$(pkg-config --variable=appdefaultdir xt)
36425 if test x$XORGCFG = xyes; then
36426 BUILD_XORGCFG_TRUE=
36427 BUILD_XORGCFG_FALSE='#'
36428 else
36429 BUILD_XORGCFG_TRUE='#'
36430 BUILD_XORGCFG_FALSE=
36433 if test x$CURSES = xyes; then
36434 USE_CURSES_TRUE=
36435 USE_CURSES_FALSE='#'
36436 else
36437 USE_CURSES_TRUE='#'
36438 USE_CURSES_FALSE=
36442 # Check whether --enable-kbd_mode was given.
36443 if test "${enable_kbd_mode+set}" = set; then
36444 enableval=$enable_kbd_mode; BUILD_KBD_MODE=$enable_val
36445 else
36446 BUILD_KBD_MODE="auto"
36449 if test x$BUILD_KBD_MODE != xno ; then
36450 case $host_os in
36451 *bsd*)
36452 KBD_MODE_TYPE="bsd"
36453 # BUILD_KBD_MODE="yes" # need to test on BSD before enabling
36454 # by default
36456 solaris*)
36457 KBD_MODE_TYPE="sun"
36458 BUILD_KBD_MODE="yes" # enabled by default
36461 BUILD_KBD_MODE="no" # disabled by default
36463 esac
36465 if test x$BUILD_KBD_MODE = xyes; then
36466 BUILD_KBD_MODE_TRUE=
36467 BUILD_KBD_MODE_FALSE='#'
36468 else
36469 BUILD_KBD_MODE_TRUE='#'
36470 BUILD_KBD_MODE_FALSE=
36473 if test x$KBD_MODE_TYPE = xbsd; then
36474 BSD_KBD_MODE_TRUE=
36475 BSD_KBD_MODE_FALSE='#'
36476 else
36477 BSD_KBD_MODE_TRUE='#'
36478 BSD_KBD_MODE_FALSE=
36481 if test x$KBD_MODE_TYPE = xsun; then
36482 SUN_KBD_MODE_TRUE=
36483 SUN_KBD_MODE_FALSE='#'
36484 else
36485 SUN_KBD_MODE_TRUE='#'
36486 SUN_KBD_MODE_FALSE=
36490 BUILD_DATE="$(date +'%Y%m%d')"
36492 BUILD_TIME="$(date +'1%H%M%S')"
36495 DIX_CFLAGS="-DHAVE_DIX_CONFIG_H $XSERVER_CFLAGS"
36501 # Man page sections - used in config utils & generating man pages
36505 if test x$APP_MAN_SUFFIX = x ; then
36506 APP_MAN_SUFFIX=1
36508 if test x$APP_MAN_DIR = x ; then
36509 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
36512 if test x$LIB_MAN_SUFFIX = x ; then
36513 LIB_MAN_SUFFIX=3
36515 if test x$LIB_MAN_DIR = x ; then
36516 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
36519 if test x$FILE_MAN_SUFFIX = x ; then
36520 case $host_os in
36521 solaris*) FILE_MAN_SUFFIX=4 ;;
36522 *) FILE_MAN_SUFFIX=5 ;;
36523 esac
36525 if test x$FILE_MAN_DIR = x ; then
36526 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
36529 if test x$MISC_MAN_SUFFIX = x ; then
36530 case $host_os in
36531 solaris*) MISC_MAN_SUFFIX=5 ;;
36532 *) MISC_MAN_SUFFIX=7 ;;
36533 esac
36535 if test x$MISC_MAN_DIR = x ; then
36536 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
36539 if test x$DRIVER_MAN_SUFFIX = x ; then
36540 case $host_os in
36541 solaris*) DRIVER_MAN_SUFFIX=7 ;;
36542 *) DRIVER_MAN_SUFFIX=4 ;;
36543 esac
36545 if test x$DRIVER_MAN_DIR = x ; then
36546 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
36549 if test x$ADMIN_MAN_SUFFIX = x ; then
36550 case $host_os in
36551 solaris*) ADMIN_MAN_SUFFIX=1m ;;
36552 *) ADMIN_MAN_SUFFIX=8 ;;
36553 esac
36555 if test x$ADMIN_MAN_DIR = x ; then
36556 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
36574 ac_config_files="$ac_config_files Makefile GL/Makefile GL/apple/Makefile GL/glx/Makefile GL/mesa/Makefile GL/mesa/glapi/Makefile GL/mesa/main/Makefile GL/mesa/math/Makefile GL/mesa/shader/Makefile GL/mesa/shader/grammar/Makefile GL/mesa/shader/slang/Makefile GL/mesa/swrast/Makefile GL/mesa/swrast_setup/Makefile GL/mesa/tnl/Makefile GL/mesa/vbo/Makefile GL/mesa/X/Makefile include/Makefile afb/Makefile composite/Makefile damageext/Makefile dbe/Makefile dix/Makefile doc/Makefile fb/Makefile record/Makefile XTrap/Makefile mfb/Makefile cfb/Makefile cfb32/Makefile config/Makefile mi/Makefile miext/Makefile miext/damage/Makefile miext/shadow/Makefile miext/cw/Makefile miext/rootless/Makefile miext/rootless/safeAlpha/Makefile miext/rootless/accel/Makefile os/Makefile randr/Makefile render/Makefile xkb/Makefile Xext/Makefile Xi/Makefile xfixes/Makefile exa/Makefile hw/Makefile hw/xfree86/Makefile hw/xfree86/common/Makefile hw/xfree86/common/xf86Build.h hw/xfree86/ddc/Makefile hw/xfree86/dixmods/Makefile hw/xfree86/dixmods/extmod/Makefile hw/xfree86/doc/Makefile hw/xfree86/doc/devel/Makefile hw/xfree86/doc/man/Makefile hw/xfree86/doc/sgml/Makefile hw/xfree86/dri/Makefile hw/xfree86/dummylib/Makefile hw/xfree86/exa/Makefile hw/xfree86/fbdevhw/Makefile hw/xfree86/i2c/Makefile hw/xfree86/int10/Makefile hw/xfree86/loader/Makefile hw/xfree86/modes/Makefile hw/xfree86/os-support/Makefile hw/xfree86/os-support/bsd/Makefile hw/xfree86/os-support/bus/Makefile hw/xfree86/os-support/hurd/Makefile hw/xfree86/os-support/misc/Makefile hw/xfree86/os-support/linux/Makefile hw/xfree86/os-support/lynxos/Makefile hw/xfree86/os-support/sco/Makefile hw/xfree86/os-support/solaris/Makefile hw/xfree86/os-support/sysv/Makefile hw/xfree86/os-support/usl/Makefile hw/xfree86/parser/Makefile hw/xfree86/rac/Makefile hw/xfree86/ramdac/Makefile hw/xfree86/scanpci/Makefile hw/xfree86/shadowfb/Makefile hw/xfree86/vbe/Makefile hw/xfree86/vgahw/Makefile hw/xfree86/x86emu/Makefile hw/xfree86/xaa/Makefile hw/xfree86/xf1bpp/Makefile hw/xfree86/xf4bpp/Makefile hw/xfree86/xf8_16bpp/Makefile hw/xfree86/xf8_32bpp/Makefile hw/xfree86/utils/Makefile hw/xfree86/utils/cvt/Makefile hw/xfree86/utils/gtf/Makefile hw/xfree86/utils/ioport/Makefile hw/xfree86/utils/kbd_mode/Makefile hw/xfree86/utils/pcitweak/Makefile hw/xfree86/utils/scanpci/Makefile hw/xfree86/utils/xorgcfg/Makefile hw/xfree86/utils/xorgconfig/Makefile hw/dmx/config/Makefile hw/dmx/doc/Makefile hw/dmx/examples/Makefile hw/dmx/input/Makefile hw/dmx/glxProxy/Makefile hw/dmx/Makefile hw/vfb/Makefile hw/xgl/Makefile hw/xgl/egl/Makefile hw/xgl/egl/module/Makefile hw/xgl/glx/Makefile hw/xgl/glx/module/Makefile hw/xgl/glxext/Makefile hw/xgl/glxext/module/Makefile hw/xnest/Makefile hw/xwin/Makefile hw/darwin/Makefile hw/darwin/bundle/Makefile hw/darwin/bundle/Dutch.lproj/Makefile hw/darwin/bundle/English.lproj/Makefile hw/darwin/bundle/French.lproj/Makefile hw/darwin/bundle/German.lproj/Makefile hw/darwin/bundle/Japanese.lproj/Makefile hw/darwin/bundle/Portuguese.lproj/Makefile hw/darwin/bundle/Spanish.lproj/Makefile hw/darwin/bundle/Swedish.lproj/Makefile hw/darwin/bundle/ko.lproj/Makefile hw/darwin/iokit/Makefile hw/darwin/quartz/Makefile hw/darwin/utils/Makefile hw/kdrive/Makefile hw/kdrive/ati/Makefile hw/kdrive/chips/Makefile hw/kdrive/ephyr/Makefile hw/kdrive/epson/Makefile hw/kdrive/fake/Makefile hw/kdrive/fbdev/Makefile hw/kdrive/i810/Makefile hw/kdrive/linux/Makefile hw/kdrive/mach64/Makefile hw/kdrive/mga/Makefile hw/kdrive/neomagic/Makefile hw/kdrive/nvidia/Makefile hw/kdrive/pm2/Makefile hw/kdrive/r128/Makefile hw/kdrive/sdl/Makefile hw/kdrive/sis300/Makefile hw/kdrive/smi/Makefile hw/kdrive/src/Makefile hw/kdrive/vesa/Makefile hw/kdrive/via/Makefile hw/xprint/Makefile hw/xprint/doc/Makefile hw/xprint/pcl/Makefile hw/xprint/pcl-mono/Makefile hw/xprint/raster/Makefile hw/xprint/ps/Makefile hw/xprint/etc/Makefile hw/xprint/etc/Xsession.d/Makefile hw/xprint/etc/init.d/Makefile hw/xprint/etc/profile.d/Makefile hw/xprint/config/Makefile hw/xprint/config/C/print/attributes/Makefile hw/xprint/config/C/print/ddx-config/Makefile hw/xprint/config/C/print/ddx-config/raster/Makefile hw/xprint/config/C/print/models/CANONBJ10E-GS/Makefile hw/xprint/config/C/print/models/PSdefault/fonts/Makefile hw/xprint/config/C/print/models/PSdefault/Makefile hw/xprint/config/C/print/models/PSspooldir/Makefile hw/xprint/config/C/print/models/SPSPARC2/Makefile hw/xprint/config/C/print/models/SPSPARC2/fonts/Makefile hw/xprint/config/C/print/models/GSdefault/Makefile hw/xprint/config/C/print/models/HPLJ4050-PS/Makefile hw/xprint/config/C/print/models/HPLJ4050-PS/fonts/Makefile hw/xprint/config/C/print/models/Makefile hw/xprint/config/C/print/models/PS2PDFspooldir-GS/Makefile hw/xprint/config/C/print/models/CANONC3200-PS/Makefile hw/xprint/config/C/print/models/CANONC3200-PS/fonts/Makefile hw/xprint/config/C/print/models/HPLJ4family/fonts/Makefile hw/xprint/config/C/print/models/HPLJ4family/Makefile hw/xprint/config/C/print/models/HPDJ1600C/Makefile hw/xprint/config/C/print/models/HPDJ1600C/fonts/Makefile hw/xprint/config/C/print/Makefile hw/xprint/config/C/Makefile hw/xprint/config/en_US/print/attributes/Makefile hw/xprint/config/en_US/print/Makefile hw/xprint/config/en_US/Makefile xorg-server.pc"
36576 cat >confcache <<\_ACEOF
36577 # This file is a shell script that caches the results of configure
36578 # tests run on this system so they can be shared between configure
36579 # scripts and configure runs, see configure's option --config-cache.
36580 # It is not useful on other systems. If it contains results you don't
36581 # want to keep, you may remove or edit it.
36583 # config.status only pays attention to the cache file if you give it
36584 # the --recheck option to rerun configure.
36586 # `ac_cv_env_foo' variables (set or unset) will be overridden when
36587 # loading this file, other *unset* `ac_cv_foo' will be assigned the
36588 # following values.
36590 _ACEOF
36592 # The following way of writing the cache mishandles newlines in values,
36593 # but we know of no workaround that is simple, portable, and efficient.
36594 # So, we kill variables containing newlines.
36595 # Ultrix sh set writes to stderr and can't be redirected directly,
36596 # and sets the high bit in the cache file unless we assign to the vars.
36598 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
36599 eval ac_val=\$$ac_var
36600 case $ac_val in #(
36601 *${as_nl}*)
36602 case $ac_var in #(
36603 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
36604 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
36605 esac
36606 case $ac_var in #(
36607 _ | IFS | as_nl) ;; #(
36608 *) $as_unset $ac_var ;;
36609 esac ;;
36610 esac
36611 done
36613 (set) 2>&1 |
36614 case $as_nl`(ac_space=' '; set) 2>&1` in #(
36615 *${as_nl}ac_space=\ *)
36616 # `set' does not quote correctly, so add quotes (double-quote
36617 # substitution turns \\\\ into \\, and sed turns \\ into \).
36618 sed -n \
36619 "s/'/'\\\\''/g;
36620 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36621 ;; #(
36623 # `set' quotes correctly as required by POSIX, so do not add quotes.
36624 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
36626 esac |
36627 sort
36629 sed '
36630 /^ac_cv_env_/b end
36631 t clear
36632 :clear
36633 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36634 t end
36635 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36636 :end' >>confcache
36637 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
36638 if test -w "$cache_file"; then
36639 test "x$cache_file" != "x/dev/null" &&
36640 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
36641 echo "$as_me: updating cache $cache_file" >&6;}
36642 cat confcache >$cache_file
36643 else
36644 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
36645 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
36648 rm -f confcache
36650 test "x$prefix" = xNONE && prefix=$ac_default_prefix
36651 # Let make expand exec_prefix.
36652 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36654 DEFS=-DHAVE_CONFIG_H
36656 ac_libobjs=
36657 ac_ltlibobjs=
36658 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36659 # 1. Remove the extension, and $U if already installed.
36660 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36661 ac_i=`echo "$ac_i" | sed "$ac_script"`
36662 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
36663 # will be set to the directory where LIBOBJS objects are built.
36664 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36665 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
36666 done
36667 LIBOBJS=$ac_libobjs
36669 LTLIBOBJS=$ac_ltlibobjs
36672 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
36673 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
36674 Usually this means the macro was only invoked conditionally." >&5
36675 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
36676 Usually this means the macro was only invoked conditionally." >&2;}
36677 { (exit 1); exit 1; }; }
36679 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
36680 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
36681 Usually this means the macro was only invoked conditionally." >&5
36682 echo "$as_me: error: conditional \"AMDEP\" was never defined.
36683 Usually this means the macro was only invoked conditionally." >&2;}
36684 { (exit 1); exit 1; }; }
36686 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
36687 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
36688 Usually this means the macro was only invoked conditionally." >&5
36689 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
36690 Usually this means the macro was only invoked conditionally." >&2;}
36691 { (exit 1); exit 1; }; }
36693 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
36694 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
36695 Usually this means the macro was only invoked conditionally." >&5
36696 echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
36697 Usually this means the macro was only invoked conditionally." >&2;}
36698 { (exit 1); exit 1; }; }
36700 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
36701 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
36702 Usually this means the macro was only invoked conditionally." >&5
36703 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
36704 Usually this means the macro was only invoked conditionally." >&2;}
36705 { (exit 1); exit 1; }; }
36707 if test -z "${XSERVER_DTRACE_TRUE}" && test -z "${XSERVER_DTRACE_FALSE}"; then
36708 { { echo "$as_me:$LINENO: error: conditional \"XSERVER_DTRACE\" was never defined.
36709 Usually this means the macro was only invoked conditionally." >&5
36710 echo "$as_me: error: conditional \"XSERVER_DTRACE\" was never defined.
36711 Usually this means the macro was only invoked conditionally." >&2;}
36712 { (exit 1); exit 1; }; }
36714 if test -z "${NEED_STRLCAT_TRUE}" && test -z "${NEED_STRLCAT_FALSE}"; then
36715 { { echo "$as_me:$LINENO: error: conditional \"NEED_STRLCAT\" was never defined.
36716 Usually this means the macro was only invoked conditionally." >&5
36717 echo "$as_me: error: conditional \"NEED_STRLCAT\" was never defined.
36718 Usually this means the macro was only invoked conditionally." >&2;}
36719 { (exit 1); exit 1; }; }
36721 if test -z "${NEED_VSNPRINTF_TRUE}" && test -z "${NEED_VSNPRINTF_FALSE}"; then
36722 { { echo "$as_me:$LINENO: error: conditional \"NEED_VSNPRINTF\" was never defined.
36723 Usually this means the macro was only invoked conditionally." >&5
36724 echo "$as_me: error: conditional \"NEED_VSNPRINTF\" was never defined.
36725 Usually this means the macro was only invoked conditionally." >&2;}
36726 { (exit 1); exit 1; }; }
36728 if test -z "${AGP_TRUE}" && test -z "${AGP_FALSE}"; then
36729 { { echo "$as_me:$LINENO: error: conditional \"AGP\" was never defined.
36730 Usually this means the macro was only invoked conditionally." >&5
36731 echo "$as_me: error: conditional \"AGP\" was never defined.
36732 Usually this means the macro was only invoked conditionally." >&2;}
36733 { (exit 1); exit 1; }; }
36735 if test -z "${LNXAPM_TRUE}" && test -z "${LNXAPM_FALSE}"; then
36736 { { echo "$as_me:$LINENO: error: conditional \"LNXAPM\" was never defined.
36737 Usually this means the macro was only invoked conditionally." >&5
36738 echo "$as_me: error: conditional \"LNXAPM\" was never defined.
36739 Usually this means the macro was only invoked conditionally." >&2;}
36740 { (exit 1); exit 1; }; }
36742 if test -z "${FBDEVHW_TRUE}" && test -z "${FBDEVHW_FALSE}"; then
36743 { { echo "$as_me:$LINENO: error: conditional \"FBDEVHW\" was never defined.
36744 Usually this means the macro was only invoked conditionally." >&5
36745 echo "$as_me: error: conditional \"FBDEVHW\" was never defined.
36746 Usually this means the macro was only invoked conditionally." >&2;}
36747 { (exit 1); exit 1; }; }
36749 if test -z "${FREEBSD_KLDLOAD_TRUE}" && test -z "${FREEBSD_KLDLOAD_FALSE}"; then
36750 { { echo "$as_me:$LINENO: error: conditional \"FREEBSD_KLDLOAD\" was never defined.
36751 Usually this means the macro was only invoked conditionally." >&5
36752 echo "$as_me: error: conditional \"FREEBSD_KLDLOAD\" was never defined.
36753 Usually this means the macro was only invoked conditionally." >&2;}
36754 { (exit 1); exit 1; }; }
36756 if test -z "${ALPHA_VIDEO_TRUE}" && test -z "${ALPHA_VIDEO_FALSE}"; then
36757 { { echo "$as_me:$LINENO: error: conditional \"ALPHA_VIDEO\" was never defined.
36758 Usually this means the macro was only invoked conditionally." >&5
36759 echo "$as_me: error: conditional \"ALPHA_VIDEO\" was never defined.
36760 Usually this means the macro was only invoked conditionally." >&2;}
36761 { (exit 1); exit 1; }; }
36763 if test -z "${ARM_VIDEO_TRUE}" && test -z "${ARM_VIDEO_FALSE}"; then
36764 { { echo "$as_me:$LINENO: error: conditional \"ARM_VIDEO\" was never defined.
36765 Usually this means the macro was only invoked conditionally." >&5
36766 echo "$as_me: error: conditional \"ARM_VIDEO\" was never defined.
36767 Usually this means the macro was only invoked conditionally." >&2;}
36768 { (exit 1); exit 1; }; }
36770 if test -z "${I386_VIDEO_TRUE}" && test -z "${I386_VIDEO_FALSE}"; then
36771 { { echo "$as_me:$LINENO: error: conditional \"I386_VIDEO\" was never defined.
36772 Usually this means the macro was only invoked conditionally." >&5
36773 echo "$as_me: error: conditional \"I386_VIDEO\" was never defined.
36774 Usually this means the macro was only invoked conditionally." >&2;}
36775 { (exit 1); exit 1; }; }
36777 if test -z "${PPC_VIDEO_TRUE}" && test -z "${PPC_VIDEO_FALSE}"; then
36778 { { echo "$as_me:$LINENO: error: conditional \"PPC_VIDEO\" was never defined.
36779 Usually this means the macro was only invoked conditionally." >&5
36780 echo "$as_me: error: conditional \"PPC_VIDEO\" was never defined.
36781 Usually this means the macro was only invoked conditionally." >&2;}
36782 { (exit 1); exit 1; }; }
36784 if test -z "${SPARC64_VIDEO_TRUE}" && test -z "${SPARC64_VIDEO_FALSE}"; then
36785 { { echo "$as_me:$LINENO: error: conditional \"SPARC64_VIDEO\" was never defined.
36786 Usually this means the macro was only invoked conditionally." >&5
36787 echo "$as_me: error: conditional \"SPARC64_VIDEO\" was never defined.
36788 Usually this means the macro was only invoked conditionally." >&2;}
36789 { (exit 1); exit 1; }; }
36791 if test -z "${KDRIVE_HW_TRUE}" && test -z "${KDRIVE_HW_FALSE}"; then
36792 { { echo "$as_me:$LINENO: error: conditional \"KDRIVE_HW\" was never defined.
36793 Usually this means the macro was only invoked conditionally." >&5
36794 echo "$as_me: error: conditional \"KDRIVE_HW\" was never defined.
36795 Usually this means the macro was only invoked conditionally." >&2;}
36796 { (exit 1); exit 1; }; }
36798 if test -z "${INSTALL_SETUID_TRUE}" && test -z "${INSTALL_SETUID_FALSE}"; then
36799 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_SETUID\" was never defined.
36800 Usually this means the macro was only invoked conditionally." >&5
36801 echo "$as_me: error: conditional \"INSTALL_SETUID\" was never defined.
36802 Usually this means the macro was only invoked conditionally." >&2;}
36803 { (exit 1); exit 1; }; }
36805 if test -z "${INT10_VM86_TRUE}" && test -z "${INT10_VM86_FALSE}"; then
36806 { { echo "$as_me:$LINENO: error: conditional \"INT10_VM86\" was never defined.
36807 Usually this means the macro was only invoked conditionally." >&5
36808 echo "$as_me: error: conditional \"INT10_VM86\" was never defined.
36809 Usually this means the macro was only invoked conditionally." >&2;}
36810 { (exit 1); exit 1; }; }
36812 if test -z "${INT10_X86EMU_TRUE}" && test -z "${INT10_X86EMU_FALSE}"; then
36813 { { echo "$as_me:$LINENO: error: conditional \"INT10_X86EMU\" was never defined.
36814 Usually this means the macro was only invoked conditionally." >&5
36815 echo "$as_me: error: conditional \"INT10_X86EMU\" was never defined.
36816 Usually this means the macro was only invoked conditionally." >&2;}
36817 { (exit 1); exit 1; }; }
36819 if test -z "${INT10_STUB_TRUE}" && test -z "${INT10_STUB_FALSE}"; then
36820 { { echo "$as_me:$LINENO: error: conditional \"INT10_STUB\" was never defined.
36821 Usually this means the macro was only invoked conditionally." >&5
36822 echo "$as_me: error: conditional \"INT10_STUB\" was never defined.
36823 Usually this means the macro was only invoked conditionally." >&2;}
36824 { (exit 1); exit 1; }; }
36826 if test -z "${BUILDDOCS_TRUE}" && test -z "${BUILDDOCS_FALSE}"; then
36827 { { echo "$as_me:$LINENO: error: conditional \"BUILDDOCS\" was never defined.
36828 Usually this means the macro was only invoked conditionally." >&5
36829 echo "$as_me: error: conditional \"BUILDDOCS\" was never defined.
36830 Usually this means the macro was only invoked conditionally." >&2;}
36831 { (exit 1); exit 1; }; }
36833 if test -z "${BUILD_LINUXDOC_TRUE}" && test -z "${BUILD_LINUXDOC_FALSE}"; then
36834 { { echo "$as_me:$LINENO: error: conditional \"BUILD_LINUXDOC\" was never defined.
36835 Usually this means the macro was only invoked conditionally." >&5
36836 echo "$as_me: error: conditional \"BUILD_LINUXDOC\" was never defined.
36837 Usually this means the macro was only invoked conditionally." >&2;}
36838 { (exit 1); exit 1; }; }
36840 if test -z "${BUILD_PDFDOC_TRUE}" && test -z "${BUILD_PDFDOC_FALSE}"; then
36841 { { echo "$as_me:$LINENO: error: conditional \"BUILD_PDFDOC\" was never defined.
36842 Usually this means the macro was only invoked conditionally." >&5
36843 echo "$as_me: error: conditional \"BUILD_PDFDOC\" was never defined.
36844 Usually this means the macro was only invoked conditionally." >&2;}
36845 { (exit 1); exit 1; }; }
36847 if test -z "${INSTALL_LIBXF86CONFIG_TRUE}" && test -z "${INSTALL_LIBXF86CONFIG_FALSE}"; then
36848 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBXF86CONFIG\" was never defined.
36849 Usually this means the macro was only invoked conditionally." >&5
36850 echo "$as_me: error: conditional \"INSTALL_LIBXF86CONFIG\" was never defined.
36851 Usually this means the macro was only invoked conditionally." >&2;}
36852 { (exit 1); exit 1; }; }
36854 if test -z "${HAVE_DBUS_TRUE}" && test -z "${HAVE_DBUS_FALSE}"; then
36855 { { echo "$as_me:$LINENO: error: conditional \"HAVE_DBUS\" was never defined.
36856 Usually this means the macro was only invoked conditionally." >&5
36857 echo "$as_me: error: conditional \"HAVE_DBUS\" was never defined.
36858 Usually this means the macro was only invoked conditionally." >&2;}
36859 { (exit 1); exit 1; }; }
36861 if test -z "${CONFIG_DBUS_API_TRUE}" && test -z "${CONFIG_DBUS_API_FALSE}"; then
36862 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_DBUS_API\" was never defined.
36863 Usually this means the macro was only invoked conditionally." >&5
36864 echo "$as_me: error: conditional \"CONFIG_DBUS_API\" was never defined.
36865 Usually this means the macro was only invoked conditionally." >&2;}
36866 { (exit 1); exit 1; }; }
36868 if test -z "${CONFIG_HAL_TRUE}" && test -z "${CONFIG_HAL_FALSE}"; then
36869 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_HAL\" was never defined.
36870 Usually this means the macro was only invoked conditionally." >&5
36871 echo "$as_me: error: conditional \"CONFIG_HAL\" was never defined.
36872 Usually this means the macro was only invoked conditionally." >&2;}
36873 { (exit 1); exit 1; }; }
36875 if test -z "${XV_TRUE}" && test -z "${XV_FALSE}"; then
36876 { { echo "$as_me:$LINENO: error: conditional \"XV\" was never defined.
36877 Usually this means the macro was only invoked conditionally." >&5
36878 echo "$as_me: error: conditional \"XV\" was never defined.
36879 Usually this means the macro was only invoked conditionally." >&2;}
36880 { (exit 1); exit 1; }; }
36882 if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then
36883 { { echo "$as_me:$LINENO: error: conditional \"XVMC\" was never defined.
36884 Usually this means the macro was only invoked conditionally." >&5
36885 echo "$as_me: error: conditional \"XVMC\" was never defined.
36886 Usually this means the macro was only invoked conditionally." >&2;}
36887 { (exit 1); exit 1; }; }
36889 if test -z "${COMPOSITE_TRUE}" && test -z "${COMPOSITE_FALSE}"; then
36890 { { echo "$as_me:$LINENO: error: conditional \"COMPOSITE\" was never defined.
36891 Usually this means the macro was only invoked conditionally." >&5
36892 echo "$as_me: error: conditional \"COMPOSITE\" was never defined.
36893 Usually this means the macro was only invoked conditionally." >&2;}
36894 { (exit 1); exit 1; }; }
36896 if test -z "${MITSHM_TRUE}" && test -z "${MITSHM_FALSE}"; then
36897 { { echo "$as_me:$LINENO: error: conditional \"MITSHM\" was never defined.
36898 Usually this means the macro was only invoked conditionally." >&5
36899 echo "$as_me: error: conditional \"MITSHM\" was never defined.
36900 Usually this means the macro was only invoked conditionally." >&2;}
36901 { (exit 1); exit 1; }; }
36903 if test -z "${XTRAP_TRUE}" && test -z "${XTRAP_FALSE}"; then
36904 { { echo "$as_me:$LINENO: error: conditional \"XTRAP\" was never defined.
36905 Usually this means the macro was only invoked conditionally." >&5
36906 echo "$as_me: error: conditional \"XTRAP\" was never defined.
36907 Usually this means the macro was only invoked conditionally." >&2;}
36908 { (exit 1); exit 1; }; }
36910 if test -z "${RECORD_TRUE}" && test -z "${RECORD_FALSE}"; then
36911 { { echo "$as_me:$LINENO: error: conditional \"RECORD\" was never defined.
36912 Usually this means the macro was only invoked conditionally." >&5
36913 echo "$as_me: error: conditional \"RECORD\" was never defined.
36914 Usually this means the macro was only invoked conditionally." >&2;}
36915 { (exit 1); exit 1; }; }
36917 if test -z "${SCREENSAVER_TRUE}" && test -z "${SCREENSAVER_FALSE}"; then
36918 { { echo "$as_me:$LINENO: error: conditional \"SCREENSAVER\" was never defined.
36919 Usually this means the macro was only invoked conditionally." >&5
36920 echo "$as_me: error: conditional \"SCREENSAVER\" was never defined.
36921 Usually this means the macro was only invoked conditionally." >&2;}
36922 { (exit 1); exit 1; }; }
36924 if test -z "${RES_TRUE}" && test -z "${RES_FALSE}"; then
36925 { { echo "$as_me:$LINENO: error: conditional \"RES\" was never defined.
36926 Usually this means the macro was only invoked conditionally." >&5
36927 echo "$as_me: error: conditional \"RES\" was never defined.
36928 Usually this means the macro was only invoked conditionally." >&2;}
36929 { (exit 1); exit 1; }; }
36931 if test -z "${GLX_TRUE}" && test -z "${GLX_FALSE}"; then
36932 { { echo "$as_me:$LINENO: error: conditional \"GLX\" was never defined.
36933 Usually this means the macro was only invoked conditionally." >&5
36934 echo "$as_me: error: conditional \"GLX\" was never defined.
36935 Usually this means the macro was only invoked conditionally." >&2;}
36936 { (exit 1); exit 1; }; }
36938 if test -z "${AIGLX_TRUE}" && test -z "${AIGLX_FALSE}"; then
36939 { { echo "$as_me:$LINENO: error: conditional \"AIGLX\" was never defined.
36940 Usually this means the macro was only invoked conditionally." >&5
36941 echo "$as_me: error: conditional \"AIGLX\" was never defined.
36942 Usually this means the macro was only invoked conditionally." >&2;}
36943 { (exit 1); exit 1; }; }
36945 if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
36946 { { echo "$as_me:$LINENO: error: conditional \"DRI\" was never defined.
36947 Usually this means the macro was only invoked conditionally." >&5
36948 echo "$as_me: error: conditional \"DRI\" was never defined.
36949 Usually this means the macro was only invoked conditionally." >&2;}
36950 { (exit 1); exit 1; }; }
36952 if test -z "${XINERAMA_TRUE}" && test -z "${XINERAMA_FALSE}"; then
36953 { { echo "$as_me:$LINENO: error: conditional \"XINERAMA\" was never defined.
36954 Usually this means the macro was only invoked conditionally." >&5
36955 echo "$as_me: error: conditional \"XINERAMA\" was never defined.
36956 Usually this means the macro was only invoked conditionally." >&2;}
36957 { (exit 1); exit 1; }; }
36959 if test -z "${XACE_TRUE}" && test -z "${XACE_FALSE}"; then
36960 { { echo "$as_me:$LINENO: error: conditional \"XACE\" was never defined.
36961 Usually this means the macro was only invoked conditionally." >&5
36962 echo "$as_me: error: conditional \"XACE\" was never defined.
36963 Usually this means the macro was only invoked conditionally." >&2;}
36964 { (exit 1); exit 1; }; }
36966 if test -z "${XCSECURITY_TRUE}" && test -z "${XCSECURITY_FALSE}"; then
36967 { { echo "$as_me:$LINENO: error: conditional \"XCSECURITY\" was never defined.
36968 Usually this means the macro was only invoked conditionally." >&5
36969 echo "$as_me: error: conditional \"XCSECURITY\" was never defined.
36970 Usually this means the macro was only invoked conditionally." >&2;}
36971 { (exit 1); exit 1; }; }
36973 if test -z "${XEVIE_TRUE}" && test -z "${XEVIE_FALSE}"; then
36974 { { echo "$as_me:$LINENO: error: conditional \"XEVIE\" was never defined.
36975 Usually this means the macro was only invoked conditionally." >&5
36976 echo "$as_me: error: conditional \"XEVIE\" was never defined.
36977 Usually this means the macro was only invoked conditionally." >&2;}
36978 { (exit 1); exit 1; }; }
36980 if test -z "${APPGROUP_TRUE}" && test -z "${APPGROUP_FALSE}"; then
36981 { { echo "$as_me:$LINENO: error: conditional \"APPGROUP\" was never defined.
36982 Usually this means the macro was only invoked conditionally." >&5
36983 echo "$as_me: error: conditional \"APPGROUP\" was never defined.
36984 Usually this means the macro was only invoked conditionally." >&2;}
36985 { (exit 1); exit 1; }; }
36987 if test -z "${CUP_TRUE}" && test -z "${CUP_FALSE}"; then
36988 { { echo "$as_me:$LINENO: error: conditional \"CUP\" was never defined.
36989 Usually this means the macro was only invoked conditionally." >&5
36990 echo "$as_me: error: conditional \"CUP\" was never defined.
36991 Usually this means the macro was only invoked conditionally." >&2;}
36992 { (exit 1); exit 1; }; }
36994 if test -z "${EVI_TRUE}" && test -z "${EVI_FALSE}"; then
36995 { { echo "$as_me:$LINENO: error: conditional \"EVI\" was never defined.
36996 Usually this means the macro was only invoked conditionally." >&5
36997 echo "$as_me: error: conditional \"EVI\" was never defined.
36998 Usually this means the macro was only invoked conditionally." >&2;}
36999 { (exit 1); exit 1; }; }
37001 if test -z "${MULTIBUFFER_TRUE}" && test -z "${MULTIBUFFER_FALSE}"; then
37002 { { echo "$as_me:$LINENO: error: conditional \"MULTIBUFFER\" was never defined.
37003 Usually this means the macro was only invoked conditionally." >&5
37004 echo "$as_me: error: conditional \"MULTIBUFFER\" was never defined.
37005 Usually this means the macro was only invoked conditionally." >&2;}
37006 { (exit 1); exit 1; }; }
37008 if test -z "${FONTCACHE_TRUE}" && test -z "${FONTCACHE_FALSE}"; then
37009 { { echo "$as_me:$LINENO: error: conditional \"FONTCACHE\" was never defined.
37010 Usually this means the macro was only invoked conditionally." >&5
37011 echo "$as_me: error: conditional \"FONTCACHE\" was never defined.
37012 Usually this means the macro was only invoked conditionally." >&2;}
37013 { (exit 1); exit 1; }; }
37015 if test -z "${DBE_TRUE}" && test -z "${DBE_FALSE}"; then
37016 { { echo "$as_me:$LINENO: error: conditional \"DBE\" was never defined.
37017 Usually this means the macro was only invoked conditionally." >&5
37018 echo "$as_me: error: conditional \"DBE\" was never defined.
37019 Usually this means the macro was only invoked conditionally." >&2;}
37020 { (exit 1); exit 1; }; }
37022 if test -z "${XF86BIGFONT_TRUE}" && test -z "${XF86BIGFONT_FALSE}"; then
37023 { { echo "$as_me:$LINENO: error: conditional \"XF86BIGFONT\" was never defined.
37024 Usually this means the macro was only invoked conditionally." >&5
37025 echo "$as_me: error: conditional \"XF86BIGFONT\" was never defined.
37026 Usually this means the macro was only invoked conditionally." >&2;}
37027 { (exit 1); exit 1; }; }
37029 if test -z "${DPMSExtension_TRUE}" && test -z "${DPMSExtension_FALSE}"; then
37030 { { echo "$as_me:$LINENO: error: conditional \"DPMSExtension\" was never defined.
37031 Usually this means the macro was only invoked conditionally." >&5
37032 echo "$as_me: error: conditional \"DPMSExtension\" was never defined.
37033 Usually this means the macro was only invoked conditionally." >&2;}
37034 { (exit 1); exit 1; }; }
37036 if test -z "${XPRINT_TRUE}" && test -z "${XPRINT_FALSE}"; then
37037 { { echo "$as_me:$LINENO: error: conditional \"XPRINT\" was never defined.
37038 Usually this means the macro was only invoked conditionally." >&5
37039 echo "$as_me: error: conditional \"XPRINT\" was never defined.
37040 Usually this means the macro was only invoked conditionally." >&2;}
37041 { (exit 1); exit 1; }; }
37043 if test -z "${XCALIBRATE_TRUE}" && test -z "${XCALIBRATE_FALSE}"; then
37044 { { echo "$as_me:$LINENO: error: conditional \"XCALIBRATE\" was never defined.
37045 Usually this means the macro was only invoked conditionally." >&5
37046 echo "$as_me: error: conditional \"XCALIBRATE\" was never defined.
37047 Usually this means the macro was only invoked conditionally." >&2;}
37048 { (exit 1); exit 1; }; }
37050 if test -z "${XF86UTILS_TRUE}" && test -z "${XF86UTILS_FALSE}"; then
37051 { { echo "$as_me:$LINENO: error: conditional \"XF86UTILS\" was never defined.
37052 Usually this means the macro was only invoked conditionally." >&5
37053 echo "$as_me: error: conditional \"XF86UTILS\" was never defined.
37054 Usually this means the macro was only invoked conditionally." >&2;}
37055 { (exit 1); exit 1; }; }
37057 if test -z "${XDMCP_TRUE}" && test -z "${XDMCP_FALSE}"; then
37058 { { echo "$as_me:$LINENO: error: conditional \"XDMCP\" was never defined.
37059 Usually this means the macro was only invoked conditionally." >&5
37060 echo "$as_me: error: conditional \"XDMCP\" was never defined.
37061 Usually this means the macro was only invoked conditionally." >&2;}
37062 { (exit 1); exit 1; }; }
37064 if test -z "${XDMAUTH_TRUE}" && test -z "${XDMAUTH_FALSE}"; then
37065 { { echo "$as_me:$LINENO: error: conditional \"XDMAUTH\" was never defined.
37066 Usually this means the macro was only invoked conditionally." >&5
37067 echo "$as_me: error: conditional \"XDMAUTH\" was never defined.
37068 Usually this means the macro was only invoked conditionally." >&2;}
37069 { (exit 1); exit 1; }; }
37071 if test -z "${USE_RGB_BUILTIN_TRUE}" && test -z "${USE_RGB_BUILTIN_FALSE}"; then
37072 { { echo "$as_me:$LINENO: error: conditional \"USE_RGB_BUILTIN\" was never defined.
37073 Usually this means the macro was only invoked conditionally." >&5
37074 echo "$as_me: error: conditional \"USE_RGB_BUILTIN\" was never defined.
37075 Usually this means the macro was only invoked conditionally." >&2;}
37076 { (exit 1); exit 1; }; }
37078 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
37079 { { echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined.
37080 Usually this means the macro was only invoked conditionally." >&5
37081 echo "$as_me: error: conditional \"DEBUG\" was never defined.
37082 Usually this means the macro was only invoked conditionally." >&2;}
37083 { (exit 1); exit 1; }; }
37085 if test -z "${DMX_TRUE}" && test -z "${DMX_FALSE}"; then
37086 { { echo "$as_me:$LINENO: error: conditional \"DMX\" was never defined.
37087 Usually this means the macro was only invoked conditionally." >&5
37088 echo "$as_me: error: conditional \"DMX\" was never defined.
37089 Usually this means the macro was only invoked conditionally." >&2;}
37090 { (exit 1); exit 1; }; }
37092 if test -z "${DMX_BUILD_LNX_TRUE}" && test -z "${DMX_BUILD_LNX_FALSE}"; then
37093 { { echo "$as_me:$LINENO: error: conditional \"DMX_BUILD_LNX\" was never defined.
37094 Usually this means the macro was only invoked conditionally." >&5
37095 echo "$as_me: error: conditional \"DMX_BUILD_LNX\" was never defined.
37096 Usually this means the macro was only invoked conditionally." >&2;}
37097 { (exit 1); exit 1; }; }
37099 if test -z "${DMX_BUILD_USB_TRUE}" && test -z "${DMX_BUILD_USB_FALSE}"; then
37100 { { echo "$as_me:$LINENO: error: conditional \"DMX_BUILD_USB\" was never defined.
37101 Usually this means the macro was only invoked conditionally." >&5
37102 echo "$as_me: error: conditional \"DMX_BUILD_USB\" was never defined.
37103 Usually this means the macro was only invoked conditionally." >&2;}
37104 { (exit 1); exit 1; }; }
37106 if test -z "${XVFB_TRUE}" && test -z "${XVFB_FALSE}"; then
37107 { { echo "$as_me:$LINENO: error: conditional \"XVFB\" was never defined.
37108 Usually this means the macro was only invoked conditionally." >&5
37109 echo "$as_me: error: conditional \"XVFB\" was never defined.
37110 Usually this means the macro was only invoked conditionally." >&2;}
37111 { (exit 1); exit 1; }; }
37113 if test -z "${XNEST_TRUE}" && test -z "${XNEST_FALSE}"; then
37114 { { echo "$as_me:$LINENO: error: conditional \"XNEST\" was never defined.
37115 Usually this means the macro was only invoked conditionally." >&5
37116 echo "$as_me: error: conditional \"XNEST\" was never defined.
37117 Usually this means the macro was only invoked conditionally." >&2;}
37118 { (exit 1); exit 1; }; }
37120 if test -z "${XGL_TRUE}" && test -z "${XGL_FALSE}"; then
37121 { { echo "$as_me:$LINENO: error: conditional \"XGL\" was never defined.
37122 Usually this means the macro was only invoked conditionally." >&5
37123 echo "$as_me: error: conditional \"XGL\" was never defined.
37124 Usually this means the macro was only invoked conditionally." >&2;}
37125 { (exit 1); exit 1; }; }
37127 if test -z "${XEGL_TRUE}" && test -z "${XEGL_FALSE}"; then
37128 { { echo "$as_me:$LINENO: error: conditional \"XEGL\" was never defined.
37129 Usually this means the macro was only invoked conditionally." >&5
37130 echo "$as_me: error: conditional \"XEGL\" was never defined.
37131 Usually this means the macro was only invoked conditionally." >&2;}
37132 { (exit 1); exit 1; }; }
37134 if test -z "${XGLX_TRUE}" && test -z "${XGLX_FALSE}"; then
37135 { { echo "$as_me:$LINENO: error: conditional \"XGLX\" was never defined.
37136 Usually this means the macro was only invoked conditionally." >&5
37137 echo "$as_me: error: conditional \"XGLX\" was never defined.
37138 Usually this means the macro was only invoked conditionally." >&2;}
37139 { (exit 1); exit 1; }; }
37141 if test -z "${XORG_TRUE}" && test -z "${XORG_FALSE}"; then
37142 { { echo "$as_me:$LINENO: error: conditional \"XORG\" was never defined.
37143 Usually this means the macro was only invoked conditionally." >&5
37144 echo "$as_me: error: conditional \"XORG\" was never defined.
37145 Usually this means the macro was only invoked conditionally." >&2;}
37146 { (exit 1); exit 1; }; }
37148 if test -z "${XORG_BUS_LINUXPCI_TRUE}" && test -z "${XORG_BUS_LINUXPCI_FALSE}"; then
37149 { { echo "$as_me:$LINENO: error: conditional \"XORG_BUS_LINUXPCI\" was never defined.
37150 Usually this means the macro was only invoked conditionally." >&5
37151 echo "$as_me: error: conditional \"XORG_BUS_LINUXPCI\" was never defined.
37152 Usually this means the macro was only invoked conditionally." >&2;}
37153 { (exit 1); exit 1; }; }
37155 if test -z "${XORG_BUS_FREEBSDPCI_TRUE}" && test -z "${XORG_BUS_FREEBSDPCI_FALSE}"; then
37156 { { echo "$as_me:$LINENO: error: conditional \"XORG_BUS_FREEBSDPCI\" was never defined.
37157 Usually this means the macro was only invoked conditionally." >&5
37158 echo "$as_me: error: conditional \"XORG_BUS_FREEBSDPCI\" was never defined.
37159 Usually this means the macro was only invoked conditionally." >&2;}
37160 { (exit 1); exit 1; }; }
37162 if test -z "${XORG_BUS_NETBSDPCI_TRUE}" && test -z "${XORG_BUS_NETBSDPCI_FALSE}"; then
37163 { { echo "$as_me:$LINENO: error: conditional \"XORG_BUS_NETBSDPCI\" was never defined.
37164 Usually this means the macro was only invoked conditionally." >&5
37165 echo "$as_me: error: conditional \"XORG_BUS_NETBSDPCI\" was never defined.
37166 Usually this means the macro was only invoked conditionally." >&2;}
37167 { (exit 1); exit 1; }; }
37169 if test -z "${XORG_BUS_IX86PCI_TRUE}" && test -z "${XORG_BUS_IX86PCI_FALSE}"; then
37170 { { echo "$as_me:$LINENO: error: conditional \"XORG_BUS_IX86PCI\" was never defined.
37171 Usually this means the macro was only invoked conditionally." >&5
37172 echo "$as_me: error: conditional \"XORG_BUS_IX86PCI\" was never defined.
37173 Usually this means the macro was only invoked conditionally." >&2;}
37174 { (exit 1); exit 1; }; }
37176 if test -z "${XORG_BUS_PPCPCI_TRUE}" && test -z "${XORG_BUS_PPCPCI_FALSE}"; then
37177 { { echo "$as_me:$LINENO: error: conditional \"XORG_BUS_PPCPCI\" was never defined.
37178 Usually this means the macro was only invoked conditionally." >&5
37179 echo "$as_me: error: conditional \"XORG_BUS_PPCPCI\" was never defined.
37180 Usually this means the macro was only invoked conditionally." >&2;}
37181 { (exit 1); exit 1; }; }
37183 if test -z "${XORG_BUS_SPARCPCI_TRUE}" && test -z "${XORG_BUS_SPARCPCI_FALSE}"; then
37184 { { echo "$as_me:$LINENO: error: conditional \"XORG_BUS_SPARCPCI\" was never defined.
37185 Usually this means the macro was only invoked conditionally." >&5
37186 echo "$as_me: error: conditional \"XORG_BUS_SPARCPCI\" was never defined.
37187 Usually this means the macro was only invoked conditionally." >&2;}
37188 { (exit 1); exit 1; }; }
37190 if test -z "${XORG_BUS_SPARC_TRUE}" && test -z "${XORG_BUS_SPARC_FALSE}"; then
37191 { { echo "$as_me:$LINENO: error: conditional \"XORG_BUS_SPARC\" was never defined.
37192 Usually this means the macro was only invoked conditionally." >&5
37193 echo "$as_me: error: conditional \"XORG_BUS_SPARC\" was never defined.
37194 Usually this means the macro was only invoked conditionally." >&2;}
37195 { (exit 1); exit 1; }; }
37197 if test -z "${XORG_LOADER_SPARC_TRUE}" && test -z "${XORG_LOADER_SPARC_FALSE}"; then
37198 { { echo "$as_me:$LINENO: error: conditional \"XORG_LOADER_SPARC\" was never defined.
37199 Usually this means the macro was only invoked conditionally." >&5
37200 echo "$as_me: error: conditional \"XORG_LOADER_SPARC\" was never defined.
37201 Usually this means the macro was only invoked conditionally." >&2;}
37202 { (exit 1); exit 1; }; }
37204 if test -z "${LINUX_IA64_TRUE}" && test -z "${LINUX_IA64_FALSE}"; then
37205 { { echo "$as_me:$LINENO: error: conditional \"LINUX_IA64\" was never defined.
37206 Usually this means the macro was only invoked conditionally." >&5
37207 echo "$as_me: error: conditional \"LINUX_IA64\" was never defined.
37208 Usually this means the macro was only invoked conditionally." >&2;}
37209 { (exit 1); exit 1; }; }
37211 if test -z "${LINUX_ALPHA_TRUE}" && test -z "${LINUX_ALPHA_FALSE}"; then
37212 { { echo "$as_me:$LINENO: error: conditional \"LINUX_ALPHA\" was never defined.
37213 Usually this means the macro was only invoked conditionally." >&5
37214 echo "$as_me: error: conditional \"LINUX_ALPHA\" was never defined.
37215 Usually this means the macro was only invoked conditionally." >&2;}
37216 { (exit 1); exit 1; }; }
37218 if test -z "${LNXACPI_TRUE}" && test -z "${LNXACPI_FALSE}"; then
37219 { { echo "$as_me:$LINENO: error: conditional \"LNXACPI\" was never defined.
37220 Usually this means the macro was only invoked conditionally." >&5
37221 echo "$as_me: error: conditional \"LNXACPI\" was never defined.
37222 Usually this means the macro was only invoked conditionally." >&2;}
37223 { (exit 1); exit 1; }; }
37225 if test -z "${SOLARIS_USL_CONSOLE_TRUE}" && test -z "${SOLARIS_USL_CONSOLE_FALSE}"; then
37226 { { echo "$as_me:$LINENO: error: conditional \"SOLARIS_USL_CONSOLE\" was never defined.
37227 Usually this means the macro was only invoked conditionally." >&5
37228 echo "$as_me: error: conditional \"SOLARIS_USL_CONSOLE\" was never defined.
37229 Usually this means the macro was only invoked conditionally." >&2;}
37230 { (exit 1); exit 1; }; }
37232 if test -z "${SOLARIS_ASM_INLINE_TRUE}" && test -z "${SOLARIS_ASM_INLINE_FALSE}"; then
37233 { { echo "$as_me:$LINENO: error: conditional \"SOLARIS_ASM_INLINE\" was never defined.
37234 Usually this means the macro was only invoked conditionally." >&5
37235 echo "$as_me: error: conditional \"SOLARIS_ASM_INLINE\" was never defined.
37236 Usually this means the macro was only invoked conditionally." >&2;}
37237 { (exit 1); exit 1; }; }
37239 if test -z "${BUILD_DARWIN_TRUE}" && test -z "${BUILD_DARWIN_FALSE}"; then
37240 { { echo "$as_me:$LINENO: error: conditional \"BUILD_DARWIN\" was never defined.
37241 Usually this means the macro was only invoked conditionally." >&5
37242 echo "$as_me: error: conditional \"BUILD_DARWIN\" was never defined.
37243 Usually this means the macro was only invoked conditionally." >&2;}
37244 { (exit 1); exit 1; }; }
37246 if test -z "${XQUARTZ_TRUE}" && test -z "${XQUARTZ_FALSE}"; then
37247 { { echo "$as_me:$LINENO: error: conditional \"XQUARTZ\" was never defined.
37248 Usually this means the macro was only invoked conditionally." >&5
37249 echo "$as_me: error: conditional \"XQUARTZ\" was never defined.
37250 Usually this means the macro was only invoked conditionally." >&2;}
37251 { (exit 1); exit 1; }; }
37253 if test -z "${DGA_TRUE}" && test -z "${DGA_FALSE}"; then
37254 { { echo "$as_me:$LINENO: error: conditional \"DGA\" was never defined.
37255 Usually this means the macro was only invoked conditionally." >&5
37256 echo "$as_me: error: conditional \"DGA\" was never defined.
37257 Usually this means the macro was only invoked conditionally." >&2;}
37258 { (exit 1); exit 1; }; }
37260 if test -z "${MFB_TRUE}" && test -z "${MFB_FALSE}"; then
37261 { { echo "$as_me:$LINENO: error: conditional \"MFB\" was never defined.
37262 Usually this means the macro was only invoked conditionally." >&5
37263 echo "$as_me: error: conditional \"MFB\" was never defined.
37264 Usually this means the macro was only invoked conditionally." >&2;}
37265 { (exit 1); exit 1; }; }
37267 if test -z "${CFB_TRUE}" && test -z "${CFB_FALSE}"; then
37268 { { echo "$as_me:$LINENO: error: conditional \"CFB\" was never defined.
37269 Usually this means the macro was only invoked conditionally." >&5
37270 echo "$as_me: error: conditional \"CFB\" was never defined.
37271 Usually this means the macro was only invoked conditionally." >&2;}
37272 { (exit 1); exit 1; }; }
37274 if test -z "${AFB_TRUE}" && test -z "${AFB_FALSE}"; then
37275 { { echo "$as_me:$LINENO: error: conditional \"AFB\" was never defined.
37276 Usually this means the macro was only invoked conditionally." >&5
37277 echo "$as_me: error: conditional \"AFB\" was never defined.
37278 Usually this means the macro was only invoked conditionally." >&2;}
37279 { (exit 1); exit 1; }; }
37281 if test -z "${XP_USE_FREETYPE_TRUE}" && test -z "${XP_USE_FREETYPE_FALSE}"; then
37282 { { echo "$as_me:$LINENO: error: conditional \"XP_USE_FREETYPE\" was never defined.
37283 Usually this means the macro was only invoked conditionally." >&5
37284 echo "$as_me: error: conditional \"XP_USE_FREETYPE\" was never defined.
37285 Usually this means the macro was only invoked conditionally." >&2;}
37286 { (exit 1); exit 1; }; }
37288 if test -z "${XWIN_TRUE}" && test -z "${XWIN_FALSE}"; then
37289 { { echo "$as_me:$LINENO: error: conditional \"XWIN\" was never defined.
37290 Usually this means the macro was only invoked conditionally." >&5
37291 echo "$as_me: error: conditional \"XWIN\" was never defined.
37292 Usually this means the macro was only invoked conditionally." >&2;}
37293 { (exit 1); exit 1; }; }
37295 if test -z "${XWIN_MULTIWINDOW_TRUE}" && test -z "${XWIN_MULTIWINDOW_FALSE}"; then
37296 { { echo "$as_me:$LINENO: error: conditional \"XWIN_MULTIWINDOW\" was never defined.
37297 Usually this means the macro was only invoked conditionally." >&5
37298 echo "$as_me: error: conditional \"XWIN_MULTIWINDOW\" was never defined.
37299 Usually this means the macro was only invoked conditionally." >&2;}
37300 { (exit 1); exit 1; }; }
37302 if test -z "${XWIN_MULTIWINDOWEXTWM_TRUE}" && test -z "${XWIN_MULTIWINDOWEXTWM_FALSE}"; then
37303 { { echo "$as_me:$LINENO: error: conditional \"XWIN_MULTIWINDOWEXTWM\" was never defined.
37304 Usually this means the macro was only invoked conditionally." >&5
37305 echo "$as_me: error: conditional \"XWIN_MULTIWINDOWEXTWM\" was never defined.
37306 Usually this means the macro was only invoked conditionally." >&2;}
37307 { (exit 1); exit 1; }; }
37309 if test -z "${XWIN_CLIPBOARD_TRUE}" && test -z "${XWIN_CLIPBOARD_FALSE}"; then
37310 { { echo "$as_me:$LINENO: error: conditional \"XWIN_CLIPBOARD\" was never defined.
37311 Usually this means the macro was only invoked conditionally." >&5
37312 echo "$as_me: error: conditional \"XWIN_CLIPBOARD\" was never defined.
37313 Usually this means the macro was only invoked conditionally." >&2;}
37314 { (exit 1); exit 1; }; }
37316 if test -z "${XWIN_GLX_WINDOWS_TRUE}" && test -z "${XWIN_GLX_WINDOWS_FALSE}"; then
37317 { { echo "$as_me:$LINENO: error: conditional \"XWIN_GLX_WINDOWS\" was never defined.
37318 Usually this means the macro was only invoked conditionally." >&5
37319 echo "$as_me: error: conditional \"XWIN_GLX_WINDOWS\" was never defined.
37320 Usually this means the macro was only invoked conditionally." >&2;}
37321 { (exit 1); exit 1; }; }
37323 if test -z "${XWIN_NATIVEGDI_TRUE}" && test -z "${XWIN_NATIVEGDI_FALSE}"; then
37324 { { echo "$as_me:$LINENO: error: conditional \"XWIN_NATIVEGDI\" was never defined.
37325 Usually this means the macro was only invoked conditionally." >&5
37326 echo "$as_me: error: conditional \"XWIN_NATIVEGDI\" was never defined.
37327 Usually this means the macro was only invoked conditionally." >&2;}
37328 { (exit 1); exit 1; }; }
37330 if test -z "${XWIN_PRIMARYFB_TRUE}" && test -z "${XWIN_PRIMARYFB_FALSE}"; then
37331 { { echo "$as_me:$LINENO: error: conditional \"XWIN_PRIMARYFB\" was never defined.
37332 Usually this means the macro was only invoked conditionally." >&5
37333 echo "$as_me: error: conditional \"XWIN_PRIMARYFB\" was never defined.
37334 Usually this means the macro was only invoked conditionally." >&2;}
37335 { (exit 1); exit 1; }; }
37337 if test -z "${XWIN_RANDR_TRUE}" && test -z "${XWIN_RANDR_FALSE}"; then
37338 { { echo "$as_me:$LINENO: error: conditional \"XWIN_RANDR\" was never defined.
37339 Usually this means the macro was only invoked conditionally." >&5
37340 echo "$as_me: error: conditional \"XWIN_RANDR\" was never defined.
37341 Usually this means the macro was only invoked conditionally." >&2;}
37342 { (exit 1); exit 1; }; }
37344 if test -z "${XWIN_XV_TRUE}" && test -z "${XWIN_XV_FALSE}"; then
37345 { { echo "$as_me:$LINENO: error: conditional \"XWIN_XV\" was never defined.
37346 Usually this means the macro was only invoked conditionally." >&5
37347 echo "$as_me: error: conditional \"XWIN_XV\" was never defined.
37348 Usually this means the macro was only invoked conditionally." >&2;}
37349 { (exit 1); exit 1; }; }
37351 if test -z "${HAVE_X_PLUGIN_TRUE}" && test -z "${HAVE_X_PLUGIN_FALSE}"; then
37352 { { echo "$as_me:$LINENO: error: conditional \"HAVE_X_PLUGIN\" was never defined.
37353 Usually this means the macro was only invoked conditionally." >&5
37354 echo "$as_me: error: conditional \"HAVE_X_PLUGIN\" was never defined.
37355 Usually this means the macro was only invoked conditionally." >&2;}
37356 { (exit 1); exit 1; }; }
37358 if test -z "${HAVE_AGL_FRAMEWORK_TRUE}" && test -z "${HAVE_AGL_FRAMEWORK_FALSE}"; then
37359 { { echo "$as_me:$LINENO: error: conditional \"HAVE_AGL_FRAMEWORK\" was never defined.
37360 Usually this means the macro was only invoked conditionally." >&5
37361 echo "$as_me: error: conditional \"HAVE_AGL_FRAMEWORK\" was never defined.
37362 Usually this means the macro was only invoked conditionally." >&2;}
37363 { (exit 1); exit 1; }; }
37365 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
37366 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
37367 Usually this means the macro was only invoked conditionally." >&5
37368 echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
37369 Usually this means the macro was only invoked conditionally." >&2;}
37370 { (exit 1); exit 1; }; }
37372 if test -z "${KDRIVE_TRUE}" && test -z "${KDRIVE_FALSE}"; then
37373 { { echo "$as_me:$LINENO: error: conditional \"KDRIVE\" was never defined.
37374 Usually this means the macro was only invoked conditionally." >&5
37375 echo "$as_me: error: conditional \"KDRIVE\" was never defined.
37376 Usually this means the macro was only invoked conditionally." >&2;}
37377 { (exit 1); exit 1; }; }
37379 if test -z "${KDRIVELINUX_TRUE}" && test -z "${KDRIVELINUX_FALSE}"; then
37380 { { echo "$as_me:$LINENO: error: conditional \"KDRIVELINUX\" was never defined.
37381 Usually this means the macro was only invoked conditionally." >&5
37382 echo "$as_me: error: conditional \"KDRIVELINUX\" was never defined.
37383 Usually this means the macro was only invoked conditionally." >&2;}
37384 { (exit 1); exit 1; }; }
37386 if test -z "${TSLIB_TRUE}" && test -z "${TSLIB_FALSE}"; then
37387 { { echo "$as_me:$LINENO: error: conditional \"TSLIB\" was never defined.
37388 Usually this means the macro was only invoked conditionally." >&5
37389 echo "$as_me: error: conditional \"TSLIB\" was never defined.
37390 Usually this means the macro was only invoked conditionally." >&2;}
37391 { (exit 1); exit 1; }; }
37393 if test -z "${H3600_TS_TRUE}" && test -z "${H3600_TS_FALSE}"; then
37394 { { echo "$as_me:$LINENO: error: conditional \"H3600_TS\" was never defined.
37395 Usually this means the macro was only invoked conditionally." >&5
37396 echo "$as_me: error: conditional \"H3600_TS\" was never defined.
37397 Usually this means the macro was only invoked conditionally." >&2;}
37398 { (exit 1); exit 1; }; }
37400 if test -z "${KDRIVEVESA_TRUE}" && test -z "${KDRIVEVESA_FALSE}"; then
37401 { { echo "$as_me:$LINENO: error: conditional \"KDRIVEVESA\" was never defined.
37402 Usually this means the macro was only invoked conditionally." >&5
37403 echo "$as_me: error: conditional \"KDRIVEVESA\" was never defined.
37404 Usually this means the macro was only invoked conditionally." >&2;}
37405 { (exit 1); exit 1; }; }
37407 if test -z "${KDRIVEFBDEV_TRUE}" && test -z "${KDRIVEFBDEV_FALSE}"; then
37408 { { echo "$as_me:$LINENO: error: conditional \"KDRIVEFBDEV\" was never defined.
37409 Usually this means the macro was only invoked conditionally." >&5
37410 echo "$as_me: error: conditional \"KDRIVEFBDEV\" was never defined.
37411 Usually this means the macro was only invoked conditionally." >&2;}
37412 { (exit 1); exit 1; }; }
37414 if test -z "${XSDLSERVER_TRUE}" && test -z "${XSDLSERVER_FALSE}"; then
37415 { { echo "$as_me:$LINENO: error: conditional \"XSDLSERVER\" was never defined.
37416 Usually this means the macro was only invoked conditionally." >&5
37417 echo "$as_me: error: conditional \"XSDLSERVER\" was never defined.
37418 Usually this means the macro was only invoked conditionally." >&2;}
37419 { (exit 1); exit 1; }; }
37421 if test -z "${XEPHYR_TRUE}" && test -z "${XEPHYR_FALSE}"; then
37422 { { echo "$as_me:$LINENO: error: conditional \"XEPHYR\" was never defined.
37423 Usually this means the macro was only invoked conditionally." >&5
37424 echo "$as_me: error: conditional \"XEPHYR\" was never defined.
37425 Usually this means the macro was only invoked conditionally." >&2;}
37426 { (exit 1); exit 1; }; }
37428 if test -z "${BUILD_KDRIVEFBDEVLIB_TRUE}" && test -z "${BUILD_KDRIVEFBDEVLIB_FALSE}"; then
37429 { { echo "$as_me:$LINENO: error: conditional \"BUILD_KDRIVEFBDEVLIB\" was never defined.
37430 Usually this means the macro was only invoked conditionally." >&5
37431 echo "$as_me: error: conditional \"BUILD_KDRIVEFBDEVLIB\" was never defined.
37432 Usually this means the macro was only invoked conditionally." >&2;}
37433 { (exit 1); exit 1; }; }
37435 if test -z "${XFAKESERVER_TRUE}" && test -z "${XFAKESERVER_FALSE}"; then
37436 { { echo "$as_me:$LINENO: error: conditional \"XFAKESERVER\" was never defined.
37437 Usually this means the macro was only invoked conditionally." >&5
37438 echo "$as_me: error: conditional \"XFAKESERVER\" was never defined.
37439 Usually this means the macro was only invoked conditionally." >&2;}
37440 { (exit 1); exit 1; }; }
37442 if test -z "${BUILD_XORGCFG_TRUE}" && test -z "${BUILD_XORGCFG_FALSE}"; then
37443 { { echo "$as_me:$LINENO: error: conditional \"BUILD_XORGCFG\" was never defined.
37444 Usually this means the macro was only invoked conditionally." >&5
37445 echo "$as_me: error: conditional \"BUILD_XORGCFG\" was never defined.
37446 Usually this means the macro was only invoked conditionally." >&2;}
37447 { (exit 1); exit 1; }; }
37449 if test -z "${USE_CURSES_TRUE}" && test -z "${USE_CURSES_FALSE}"; then
37450 { { echo "$as_me:$LINENO: error: conditional \"USE_CURSES\" was never defined.
37451 Usually this means the macro was only invoked conditionally." >&5
37452 echo "$as_me: error: conditional \"USE_CURSES\" was never defined.
37453 Usually this means the macro was only invoked conditionally." >&2;}
37454 { (exit 1); exit 1; }; }
37456 if test -z "${BUILD_KBD_MODE_TRUE}" && test -z "${BUILD_KBD_MODE_FALSE}"; then
37457 { { echo "$as_me:$LINENO: error: conditional \"BUILD_KBD_MODE\" was never defined.
37458 Usually this means the macro was only invoked conditionally." >&5
37459 echo "$as_me: error: conditional \"BUILD_KBD_MODE\" was never defined.
37460 Usually this means the macro was only invoked conditionally." >&2;}
37461 { (exit 1); exit 1; }; }
37463 if test -z "${BSD_KBD_MODE_TRUE}" && test -z "${BSD_KBD_MODE_FALSE}"; then
37464 { { echo "$as_me:$LINENO: error: conditional \"BSD_KBD_MODE\" was never defined.
37465 Usually this means the macro was only invoked conditionally." >&5
37466 echo "$as_me: error: conditional \"BSD_KBD_MODE\" was never defined.
37467 Usually this means the macro was only invoked conditionally." >&2;}
37468 { (exit 1); exit 1; }; }
37470 if test -z "${SUN_KBD_MODE_TRUE}" && test -z "${SUN_KBD_MODE_FALSE}"; then
37471 { { echo "$as_me:$LINENO: error: conditional \"SUN_KBD_MODE\" was never defined.
37472 Usually this means the macro was only invoked conditionally." >&5
37473 echo "$as_me: error: conditional \"SUN_KBD_MODE\" was never defined.
37474 Usually this means the macro was only invoked conditionally." >&2;}
37475 { (exit 1); exit 1; }; }
37478 : ${CONFIG_STATUS=./config.status}
37479 ac_clean_files_save=$ac_clean_files
37480 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
37481 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
37482 echo "$as_me: creating $CONFIG_STATUS" >&6;}
37483 cat >$CONFIG_STATUS <<_ACEOF
37484 #! $SHELL
37485 # Generated by $as_me.
37486 # Run this file to recreate the current configuration.
37487 # Compiler output produced by configure, useful for debugging
37488 # configure, is in config.log if it exists.
37490 debug=false
37491 ac_cs_recheck=false
37492 ac_cs_silent=false
37493 SHELL=\${CONFIG_SHELL-$SHELL}
37494 _ACEOF
37496 cat >>$CONFIG_STATUS <<\_ACEOF
37497 ## --------------------- ##
37498 ## M4sh Initialization. ##
37499 ## --------------------- ##
37501 # Be more Bourne compatible
37502 DUALCASE=1; export DUALCASE # for MKS sh
37503 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
37504 emulate sh
37505 NULLCMD=:
37506 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
37507 # is contrary to our usage. Disable this feature.
37508 alias -g '${1+"$@"}'='"$@"'
37509 setopt NO_GLOB_SUBST
37510 else
37511 case `(set -o) 2>/dev/null` in
37512 *posix*) set -o posix ;;
37513 esac
37520 # PATH needs CR
37521 # Avoid depending upon Character Ranges.
37522 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37523 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37524 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37525 as_cr_digits='0123456789'
37526 as_cr_alnum=$as_cr_Letters$as_cr_digits
37528 # The user is always right.
37529 if test "${PATH_SEPARATOR+set}" != set; then
37530 echo "#! /bin/sh" >conf$$.sh
37531 echo "exit 0" >>conf$$.sh
37532 chmod +x conf$$.sh
37533 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
37534 PATH_SEPARATOR=';'
37535 else
37536 PATH_SEPARATOR=:
37538 rm -f conf$$.sh
37541 # Support unset when possible.
37542 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
37543 as_unset=unset
37544 else
37545 as_unset=false
37549 # IFS
37550 # We need space, tab and new line, in precisely that order. Quoting is
37551 # there to prevent editors from complaining about space-tab.
37552 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
37553 # splitting by setting IFS to empty value.)
37554 as_nl='
37556 IFS=" "" $as_nl"
37558 # Find who we are. Look in the path if we contain no directory separator.
37559 case $0 in
37560 *[\\/]* ) as_myself=$0 ;;
37561 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37562 for as_dir in $PATH
37564 IFS=$as_save_IFS
37565 test -z "$as_dir" && as_dir=.
37566 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
37567 done
37568 IFS=$as_save_IFS
37571 esac
37572 # We did not find ourselves, most probably we were run as `sh COMMAND'
37573 # in which case we are not to be found in the path.
37574 if test "x$as_myself" = x; then
37575 as_myself=$0
37577 if test ! -f "$as_myself"; then
37578 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
37579 { (exit 1); exit 1; }
37582 # Work around bugs in pre-3.0 UWIN ksh.
37583 for as_var in ENV MAIL MAILPATH
37584 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
37585 done
37586 PS1='$ '
37587 PS2='> '
37588 PS4='+ '
37590 # NLS nuisances.
37591 for as_var in \
37592 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
37593 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
37594 LC_TELEPHONE LC_TIME
37596 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
37597 eval $as_var=C; export $as_var
37598 else
37599 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
37601 done
37603 # Required to use basename.
37604 if expr a : '\(a\)' >/dev/null 2>&1 &&
37605 test "X`expr 00001 : '.*\(...\)'`" = X001; then
37606 as_expr=expr
37607 else
37608 as_expr=false
37611 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
37612 as_basename=basename
37613 else
37614 as_basename=false
37618 # Name of the executable.
37619 as_me=`$as_basename -- "$0" ||
37620 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
37621 X"$0" : 'X\(//\)$' \| \
37622 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
37623 echo X/"$0" |
37624 sed '/^.*\/\([^/][^/]*\)\/*$/{
37625 s//\1/
37628 /^X\/\(\/\/\)$/{
37629 s//\1/
37632 /^X\/\(\/\).*/{
37633 s//\1/
37636 s/.*/./; q'`
37638 # CDPATH.
37639 $as_unset CDPATH
37643 as_lineno_1=$LINENO
37644 as_lineno_2=$LINENO
37645 test "x$as_lineno_1" != "x$as_lineno_2" &&
37646 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
37648 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
37649 # uniformly replaced by the line number. The first 'sed' inserts a
37650 # line-number line after each line using $LINENO; the second 'sed'
37651 # does the real work. The second script uses 'N' to pair each
37652 # line-number line with the line containing $LINENO, and appends
37653 # trailing '-' during substitution so that $LINENO is not a special
37654 # case at line end.
37655 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
37656 # scripts with optimization help from Paolo Bonzini. Blame Lee
37657 # E. McMahon (1931-1989) for sed's syntax. :-)
37658 sed -n '
37660 /[$]LINENO/=
37661 ' <$as_myself |
37662 sed '
37663 s/[$]LINENO.*/&-/
37664 t lineno
37666 :lineno
37668 :loop
37669 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
37670 t loop
37671 s/-\n.*//
37672 ' >$as_me.lineno &&
37673 chmod +x "$as_me.lineno" ||
37674 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
37675 { (exit 1); exit 1; }; }
37677 # Don't try to exec as it changes $[0], causing all sort of problems
37678 # (the dirname of $[0] is not the place where we might find the
37679 # original and so on. Autoconf is especially sensitive to this).
37680 . "./$as_me.lineno"
37681 # Exit status is that of the last command.
37682 exit
37686 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
37687 as_dirname=dirname
37688 else
37689 as_dirname=false
37692 ECHO_C= ECHO_N= ECHO_T=
37693 case `echo -n x` in
37694 -n*)
37695 case `echo 'x\c'` in
37696 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
37697 *) ECHO_C='\c';;
37698 esac;;
37700 ECHO_N='-n';;
37701 esac
37703 if expr a : '\(a\)' >/dev/null 2>&1 &&
37704 test "X`expr 00001 : '.*\(...\)'`" = X001; then
37705 as_expr=expr
37706 else
37707 as_expr=false
37710 rm -f conf$$ conf$$.exe conf$$.file
37711 if test -d conf$$.dir; then
37712 rm -f conf$$.dir/conf$$.file
37713 else
37714 rm -f conf$$.dir
37715 mkdir conf$$.dir
37717 echo >conf$$.file
37718 if ln -s conf$$.file conf$$ 2>/dev/null; then
37719 as_ln_s='ln -s'
37720 # ... but there are two gotchas:
37721 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
37722 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
37723 # In both cases, we have to default to `cp -p'.
37724 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
37725 as_ln_s='cp -p'
37726 elif ln conf$$.file conf$$ 2>/dev/null; then
37727 as_ln_s=ln
37728 else
37729 as_ln_s='cp -p'
37731 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
37732 rmdir conf$$.dir 2>/dev/null
37734 if mkdir -p . 2>/dev/null; then
37735 as_mkdir_p=:
37736 else
37737 test -d ./-p && rmdir ./-p
37738 as_mkdir_p=false
37741 if test -x / >/dev/null 2>&1; then
37742 as_test_x='test -x'
37743 else
37744 if ls -dL / >/dev/null 2>&1; then
37745 as_ls_L_option=L
37746 else
37747 as_ls_L_option=
37749 as_test_x='
37750 eval sh -c '\''
37751 if test -d "$1"; then
37752 test -d "$1/.";
37753 else
37754 case $1 in
37755 -*)set "./$1";;
37756 esac;
37757 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
37758 ???[sx]*):;;*)false;;esac;fi
37759 '\'' sh
37762 as_executable_p=$as_test_x
37764 # Sed expression to map a string onto a valid CPP name.
37765 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
37767 # Sed expression to map a string onto a valid variable name.
37768 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
37771 exec 6>&1
37773 # Save the log message, to keep $[0] and so on meaningful, and to
37774 # report actual input values of CONFIG_FILES etc. instead of their
37775 # values after options handling.
37776 ac_log="
37777 This file was extended by xorg-server $as_me 1.4, which was
37778 generated by GNU Autoconf 2.61. Invocation command line was
37780 CONFIG_FILES = $CONFIG_FILES
37781 CONFIG_HEADERS = $CONFIG_HEADERS
37782 CONFIG_LINKS = $CONFIG_LINKS
37783 CONFIG_COMMANDS = $CONFIG_COMMANDS
37784 $ $0 $@
37786 on `(hostname || uname -n) 2>/dev/null | sed 1q`
37789 _ACEOF
37791 cat >>$CONFIG_STATUS <<_ACEOF
37792 # Files that config.status was made for.
37793 config_files="$ac_config_files"
37794 config_headers="$ac_config_headers"
37795 config_commands="$ac_config_commands"
37797 _ACEOF
37799 cat >>$CONFIG_STATUS <<\_ACEOF
37800 ac_cs_usage="\
37801 \`$as_me' instantiates files from templates according to the
37802 current configuration.
37804 Usage: $0 [OPTIONS] [FILE]...
37806 -h, --help print this help, then exit
37807 -V, --version print version number and configuration settings, then exit
37808 -q, --quiet do not print progress messages
37809 -d, --debug don't remove temporary files
37810 --recheck update $as_me by reconfiguring in the same conditions
37811 --file=FILE[:TEMPLATE]
37812 instantiate the configuration file FILE
37813 --header=FILE[:TEMPLATE]
37814 instantiate the configuration header FILE
37816 Configuration files:
37817 $config_files
37819 Configuration headers:
37820 $config_headers
37822 Configuration commands:
37823 $config_commands
37825 Report bugs to <bug-autoconf@gnu.org>."
37827 _ACEOF
37828 cat >>$CONFIG_STATUS <<_ACEOF
37829 ac_cs_version="\\
37830 xorg-server config.status 1.4
37831 configured by $0, generated by GNU Autoconf 2.61,
37832 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
37834 Copyright (C) 2006 Free Software Foundation, Inc.
37835 This config.status script is free software; the Free Software Foundation
37836 gives unlimited permission to copy, distribute and modify it."
37838 ac_pwd='$ac_pwd'
37839 srcdir='$srcdir'
37840 INSTALL='$INSTALL'
37841 MKDIR_P='$MKDIR_P'
37842 _ACEOF
37844 cat >>$CONFIG_STATUS <<\_ACEOF
37845 # If no file are specified by the user, then we need to provide default
37846 # value. By we need to know if files were specified by the user.
37847 ac_need_defaults=:
37848 while test $# != 0
37850 case $1 in
37851 --*=*)
37852 ac_option=`expr "X$1" : 'X\([^=]*\)='`
37853 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
37854 ac_shift=:
37857 ac_option=$1
37858 ac_optarg=$2
37859 ac_shift=shift
37861 esac
37863 case $ac_option in
37864 # Handling of the options.
37865 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37866 ac_cs_recheck=: ;;
37867 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
37868 echo "$ac_cs_version"; exit ;;
37869 --debug | --debu | --deb | --de | --d | -d )
37870 debug=: ;;
37871 --file | --fil | --fi | --f )
37872 $ac_shift
37873 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
37874 ac_need_defaults=false;;
37875 --header | --heade | --head | --hea )
37876 $ac_shift
37877 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
37878 ac_need_defaults=false;;
37879 --he | --h)
37880 # Conflict between --help and --header
37881 { echo "$as_me: error: ambiguous option: $1
37882 Try \`$0 --help' for more information." >&2
37883 { (exit 1); exit 1; }; };;
37884 --help | --hel | -h )
37885 echo "$ac_cs_usage"; exit ;;
37886 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37887 | -silent | --silent | --silen | --sile | --sil | --si | --s)
37888 ac_cs_silent=: ;;
37890 # This is an error.
37891 -*) { echo "$as_me: error: unrecognized option: $1
37892 Try \`$0 --help' for more information." >&2
37893 { (exit 1); exit 1; }; } ;;
37895 *) ac_config_targets="$ac_config_targets $1"
37896 ac_need_defaults=false ;;
37898 esac
37899 shift
37900 done
37902 ac_configure_extra_args=
37904 if $ac_cs_silent; then
37905 exec 6>/dev/null
37906 ac_configure_extra_args="$ac_configure_extra_args --silent"
37909 _ACEOF
37910 cat >>$CONFIG_STATUS <<_ACEOF
37911 if \$ac_cs_recheck; then
37912 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
37913 CONFIG_SHELL=$SHELL
37914 export CONFIG_SHELL
37915 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
37918 _ACEOF
37919 cat >>$CONFIG_STATUS <<\_ACEOF
37920 exec 5>>config.log
37922 echo
37923 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37924 ## Running $as_me. ##
37925 _ASBOX
37926 echo "$ac_log"
37927 } >&5
37929 _ACEOF
37930 cat >>$CONFIG_STATUS <<_ACEOF
37932 # INIT-COMMANDS
37934 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
37936 _ACEOF
37938 cat >>$CONFIG_STATUS <<\_ACEOF
37940 # Handling of arguments.
37941 for ac_config_target in $ac_config_targets
37943 case $ac_config_target in
37944 "include/do-not-use-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/do-not-use-config.h" ;;
37945 "include/xorg-server.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-server.h" ;;
37946 "include/dix-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/dix-config.h" ;;
37947 "include/xgl-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xgl-config.h" ;;
37948 "include/xorg-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-config.h" ;;
37949 "include/xkb-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xkb-config.h" ;;
37950 "include/xwin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xwin-config.h" ;;
37951 "include/kdrive-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/kdrive-config.h" ;;
37952 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37953 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37954 "GL/Makefile") CONFIG_FILES="$CONFIG_FILES GL/Makefile" ;;
37955 "GL/apple/Makefile") CONFIG_FILES="$CONFIG_FILES GL/apple/Makefile" ;;
37956 "GL/glx/Makefile") CONFIG_FILES="$CONFIG_FILES GL/glx/Makefile" ;;
37957 "GL/mesa/Makefile") CONFIG_FILES="$CONFIG_FILES GL/mesa/Makefile" ;;
37958 "GL/mesa/glapi/Makefile") CONFIG_FILES="$CONFIG_FILES GL/mesa/glapi/Makefile" ;;
37959 "GL/mesa/main/Makefile") CONFIG_FILES="$CONFIG_FILES GL/mesa/main/Makefile" ;;
37960 "GL/mesa/math/Makefile") CONFIG_FILES="$CONFIG_FILES GL/mesa/math/Makefile" ;;
37961 "GL/mesa/shader/Makefile") CONFIG_FILES="$CONFIG_FILES GL/mesa/shader/Makefile" ;;
37962 "GL/mesa/shader/grammar/Makefile") CONFIG_FILES="$CONFIG_FILES GL/mesa/shader/grammar/Makefile" ;;
37963 "GL/mesa/shader/slang/Makefile") CONFIG_FILES="$CONFIG_FILES GL/mesa/shader/slang/Makefile" ;;
37964 "GL/mesa/swrast/Makefile") CONFIG_FILES="$CONFIG_FILES GL/mesa/swrast/Makefile" ;;
37965 "GL/mesa/swrast_setup/Makefile") CONFIG_FILES="$CONFIG_FILES GL/mesa/swrast_setup/Makefile" ;;
37966 "GL/mesa/tnl/Makefile") CONFIG_FILES="$CONFIG_FILES GL/mesa/tnl/Makefile" ;;
37967 "GL/mesa/vbo/Makefile") CONFIG_FILES="$CONFIG_FILES GL/mesa/vbo/Makefile" ;;
37968 "GL/mesa/X/Makefile") CONFIG_FILES="$CONFIG_FILES GL/mesa/X/Makefile" ;;
37969 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
37970 "afb/Makefile") CONFIG_FILES="$CONFIG_FILES afb/Makefile" ;;
37971 "composite/Makefile") CONFIG_FILES="$CONFIG_FILES composite/Makefile" ;;
37972 "damageext/Makefile") CONFIG_FILES="$CONFIG_FILES damageext/Makefile" ;;
37973 "dbe/Makefile") CONFIG_FILES="$CONFIG_FILES dbe/Makefile" ;;
37974 "dix/Makefile") CONFIG_FILES="$CONFIG_FILES dix/Makefile" ;;
37975 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
37976 "fb/Makefile") CONFIG_FILES="$CONFIG_FILES fb/Makefile" ;;
37977 "record/Makefile") CONFIG_FILES="$CONFIG_FILES record/Makefile" ;;
37978 "XTrap/Makefile") CONFIG_FILES="$CONFIG_FILES XTrap/Makefile" ;;
37979 "mfb/Makefile") CONFIG_FILES="$CONFIG_FILES mfb/Makefile" ;;
37980 "cfb/Makefile") CONFIG_FILES="$CONFIG_FILES cfb/Makefile" ;;
37981 "cfb32/Makefile") CONFIG_FILES="$CONFIG_FILES cfb32/Makefile" ;;
37982 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
37983 "mi/Makefile") CONFIG_FILES="$CONFIG_FILES mi/Makefile" ;;
37984 "miext/Makefile") CONFIG_FILES="$CONFIG_FILES miext/Makefile" ;;
37985 "miext/damage/Makefile") CONFIG_FILES="$CONFIG_FILES miext/damage/Makefile" ;;
37986 "miext/shadow/Makefile") CONFIG_FILES="$CONFIG_FILES miext/shadow/Makefile" ;;
37987 "miext/cw/Makefile") CONFIG_FILES="$CONFIG_FILES miext/cw/Makefile" ;;
37988 "miext/rootless/Makefile") CONFIG_FILES="$CONFIG_FILES miext/rootless/Makefile" ;;
37989 "miext/rootless/safeAlpha/Makefile") CONFIG_FILES="$CONFIG_FILES miext/rootless/safeAlpha/Makefile" ;;
37990 "miext/rootless/accel/Makefile") CONFIG_FILES="$CONFIG_FILES miext/rootless/accel/Makefile" ;;
37991 "os/Makefile") CONFIG_FILES="$CONFIG_FILES os/Makefile" ;;
37992 "randr/Makefile") CONFIG_FILES="$CONFIG_FILES randr/Makefile" ;;
37993 "render/Makefile") CONFIG_FILES="$CONFIG_FILES render/Makefile" ;;
37994 "xkb/Makefile") CONFIG_FILES="$CONFIG_FILES xkb/Makefile" ;;
37995 "Xext/Makefile") CONFIG_FILES="$CONFIG_FILES Xext/Makefile" ;;
37996 "Xi/Makefile") CONFIG_FILES="$CONFIG_FILES Xi/Makefile" ;;
37997 "xfixes/Makefile") CONFIG_FILES="$CONFIG_FILES xfixes/Makefile" ;;
37998 "exa/Makefile") CONFIG_FILES="$CONFIG_FILES exa/Makefile" ;;
37999 "hw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/Makefile" ;;
38000 "hw/xfree86/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/Makefile" ;;
38001 "hw/xfree86/common/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/common/Makefile" ;;
38002 "hw/xfree86/common/xf86Build.h") CONFIG_FILES="$CONFIG_FILES hw/xfree86/common/xf86Build.h" ;;
38003 "hw/xfree86/ddc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ddc/Makefile" ;;
38004 "hw/xfree86/dixmods/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dixmods/Makefile" ;;
38005 "hw/xfree86/dixmods/extmod/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dixmods/extmod/Makefile" ;;
38006 "hw/xfree86/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/Makefile" ;;
38007 "hw/xfree86/doc/devel/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/devel/Makefile" ;;
38008 "hw/xfree86/doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/man/Makefile" ;;
38009 "hw/xfree86/doc/sgml/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/sgml/Makefile" ;;
38010 "hw/xfree86/dri/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri/Makefile" ;;
38011 "hw/xfree86/dummylib/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dummylib/Makefile" ;;
38012 "hw/xfree86/exa/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/Makefile" ;;
38013 "hw/xfree86/fbdevhw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/Makefile" ;;
38014 "hw/xfree86/i2c/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/i2c/Makefile" ;;
38015 "hw/xfree86/int10/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/int10/Makefile" ;;
38016 "hw/xfree86/loader/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/loader/Makefile" ;;
38017 "hw/xfree86/modes/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/modes/Makefile" ;;
38018 "hw/xfree86/os-support/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/Makefile" ;;
38019 "hw/xfree86/os-support/bsd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bsd/Makefile" ;;
38020 "hw/xfree86/os-support/bus/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bus/Makefile" ;;
38021 "hw/xfree86/os-support/hurd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/hurd/Makefile" ;;
38022 "hw/xfree86/os-support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/misc/Makefile" ;;
38023 "hw/xfree86/os-support/linux/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/linux/Makefile" ;;
38024 "hw/xfree86/os-support/lynxos/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/lynxos/Makefile" ;;
38025 "hw/xfree86/os-support/sco/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/sco/Makefile" ;;
38026 "hw/xfree86/os-support/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/solaris/Makefile" ;;
38027 "hw/xfree86/os-support/sysv/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/sysv/Makefile" ;;
38028 "hw/xfree86/os-support/usl/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/usl/Makefile" ;;
38029 "hw/xfree86/parser/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/parser/Makefile" ;;
38030 "hw/xfree86/rac/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/rac/Makefile" ;;
38031 "hw/xfree86/ramdac/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ramdac/Makefile" ;;
38032 "hw/xfree86/scanpci/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/scanpci/Makefile" ;;
38033 "hw/xfree86/shadowfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/shadowfb/Makefile" ;;
38034 "hw/xfree86/vbe/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/vbe/Makefile" ;;
38035 "hw/xfree86/vgahw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/vgahw/Makefile" ;;
38036 "hw/xfree86/x86emu/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/x86emu/Makefile" ;;
38037 "hw/xfree86/xaa/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/xaa/Makefile" ;;
38038 "hw/xfree86/xf1bpp/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/xf1bpp/Makefile" ;;
38039 "hw/xfree86/xf4bpp/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/xf4bpp/Makefile" ;;
38040 "hw/xfree86/xf8_16bpp/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/xf8_16bpp/Makefile" ;;
38041 "hw/xfree86/xf8_32bpp/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/xf8_32bpp/Makefile" ;;
38042 "hw/xfree86/utils/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/Makefile" ;;
38043 "hw/xfree86/utils/cvt/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/cvt/Makefile" ;;
38044 "hw/xfree86/utils/gtf/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/gtf/Makefile" ;;
38045 "hw/xfree86/utils/ioport/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/ioport/Makefile" ;;
38046 "hw/xfree86/utils/kbd_mode/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/kbd_mode/Makefile" ;;
38047 "hw/xfree86/utils/pcitweak/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/pcitweak/Makefile" ;;
38048 "hw/xfree86/utils/scanpci/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/scanpci/Makefile" ;;
38049 "hw/xfree86/utils/xorgcfg/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/xorgcfg/Makefile" ;;
38050 "hw/xfree86/utils/xorgconfig/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/xorgconfig/Makefile" ;;
38051 "hw/dmx/config/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/config/Makefile" ;;
38052 "hw/dmx/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/doc/Makefile" ;;
38053 "hw/dmx/examples/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/examples/Makefile" ;;
38054 "hw/dmx/input/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/input/Makefile" ;;
38055 "hw/dmx/glxProxy/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/glxProxy/Makefile" ;;
38056 "hw/dmx/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/Makefile" ;;
38057 "hw/vfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/Makefile" ;;
38058 "hw/xgl/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xgl/Makefile" ;;
38059 "hw/xgl/egl/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xgl/egl/Makefile" ;;
38060 "hw/xgl/egl/module/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xgl/egl/module/Makefile" ;;
38061 "hw/xgl/glx/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xgl/glx/Makefile" ;;
38062 "hw/xgl/glx/module/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xgl/glx/module/Makefile" ;;
38063 "hw/xgl/glxext/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xgl/glxext/Makefile" ;;
38064 "hw/xgl/glxext/module/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xgl/glxext/module/Makefile" ;;
38065 "hw/xnest/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/Makefile" ;;
38066 "hw/xwin/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/Makefile" ;;
38067 "hw/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES hw/darwin/Makefile" ;;
38068 "hw/darwin/bundle/Makefile") CONFIG_FILES="$CONFIG_FILES hw/darwin/bundle/Makefile" ;;
38069 "hw/darwin/bundle/Dutch.lproj/Makefile") CONFIG_FILES="$CONFIG_FILES hw/darwin/bundle/Dutch.lproj/Makefile" ;;
38070 "hw/darwin/bundle/English.lproj/Makefile") CONFIG_FILES="$CONFIG_FILES hw/darwin/bundle/English.lproj/Makefile" ;;
38071 "hw/darwin/bundle/French.lproj/Makefile") CONFIG_FILES="$CONFIG_FILES hw/darwin/bundle/French.lproj/Makefile" ;;
38072 "hw/darwin/bundle/German.lproj/Makefile") CONFIG_FILES="$CONFIG_FILES hw/darwin/bundle/German.lproj/Makefile" ;;
38073 "hw/darwin/bundle/Japanese.lproj/Makefile") CONFIG_FILES="$CONFIG_FILES hw/darwin/bundle/Japanese.lproj/Makefile" ;;
38074 "hw/darwin/bundle/Portuguese.lproj/Makefile") CONFIG_FILES="$CONFIG_FILES hw/darwin/bundle/Portuguese.lproj/Makefile" ;;
38075 "hw/darwin/bundle/Spanish.lproj/Makefile") CONFIG_FILES="$CONFIG_FILES hw/darwin/bundle/Spanish.lproj/Makefile" ;;
38076 "hw/darwin/bundle/Swedish.lproj/Makefile") CONFIG_FILES="$CONFIG_FILES hw/darwin/bundle/Swedish.lproj/Makefile" ;;
38077 "hw/darwin/bundle/ko.lproj/Makefile") CONFIG_FILES="$CONFIG_FILES hw/darwin/bundle/ko.lproj/Makefile" ;;
38078 "hw/darwin/iokit/Makefile") CONFIG_FILES="$CONFIG_FILES hw/darwin/iokit/Makefile" ;;
38079 "hw/darwin/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES hw/darwin/quartz/Makefile" ;;
38080 "hw/darwin/utils/Makefile") CONFIG_FILES="$CONFIG_FILES hw/darwin/utils/Makefile" ;;
38081 "hw/kdrive/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/Makefile" ;;
38082 "hw/kdrive/ati/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ati/Makefile" ;;
38083 "hw/kdrive/chips/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/chips/Makefile" ;;
38084 "hw/kdrive/ephyr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/Makefile" ;;
38085 "hw/kdrive/epson/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/epson/Makefile" ;;
38086 "hw/kdrive/fake/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/fake/Makefile" ;;
38087 "hw/kdrive/fbdev/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/fbdev/Makefile" ;;
38088 "hw/kdrive/i810/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/i810/Makefile" ;;
38089 "hw/kdrive/linux/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/linux/Makefile" ;;
38090 "hw/kdrive/mach64/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/mach64/Makefile" ;;
38091 "hw/kdrive/mga/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/mga/Makefile" ;;
38092 "hw/kdrive/neomagic/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/neomagic/Makefile" ;;
38093 "hw/kdrive/nvidia/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/nvidia/Makefile" ;;
38094 "hw/kdrive/pm2/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/pm2/Makefile" ;;
38095 "hw/kdrive/r128/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/r128/Makefile" ;;
38096 "hw/kdrive/sdl/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/sdl/Makefile" ;;
38097 "hw/kdrive/sis300/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/sis300/Makefile" ;;
38098 "hw/kdrive/smi/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/smi/Makefile" ;;
38099 "hw/kdrive/src/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/src/Makefile" ;;
38100 "hw/kdrive/vesa/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/vesa/Makefile" ;;
38101 "hw/kdrive/via/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/via/Makefile" ;;
38102 "hw/xprint/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xprint/Makefile" ;;
38103 "hw/xprint/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xprint/doc/Makefile" ;;
38104 "hw/xprint/pcl/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xprint/pcl/Makefile" ;;
38105 "hw/xprint/pcl-mono/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xprint/pcl-mono/Makefile" ;;
38106 "hw/xprint/raster/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xprint/raster/Makefile" ;;
38107 "hw/xprint/ps/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xprint/ps/Makefile" ;;
38108 "hw/xprint/etc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xprint/etc/Makefile" ;;
38109 "hw/xprint/etc/Xsession.d/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xprint/etc/Xsession.d/Makefile" ;;
38110 "hw/xprint/etc/init.d/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xprint/etc/init.d/Makefile" ;;
38111 "hw/xprint/etc/profile.d/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xprint/etc/profile.d/Makefile" ;;
38112 "hw/xprint/config/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xprint/config/Makefile" ;;
38113 "hw/xprint/config/C/print/attributes/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xprint/config/C/print/attributes/Makefile" ;;
38114 "hw/xprint/config/C/print/ddx-config/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xprint/config/C/print/ddx-config/Makefile" ;;
38115 "hw/xprint/config/C/print/ddx-config/raster/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xprint/config/C/print/ddx-config/raster/Makefile" ;;
38116 "hw/xprint/config/C/print/models/CANONBJ10E-GS/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xprint/config/C/print/models/CANONBJ10E-GS/Makefile" ;;
38117 "hw/xprint/config/C/print/models/PSdefault/fonts/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xprint/config/C/print/models/PSdefault/fonts/Makefile" ;;
38118 "hw/xprint/config/C/print/models/PSdefault/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xprint/config/C/print/models/PSdefault/Makefile" ;;
38119 "hw/xprint/config/C/print/models/PSspooldir/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xprint/config/C/print/models/PSspooldir/Makefile" ;;
38120 "hw/xprint/config/C/print/models/SPSPARC2/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xprint/config/C/print/models/SPSPARC2/Makefile" ;;
38121 "hw/xprint/config/C/print/models/SPSPARC2/fonts/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xprint/config/C/print/models/SPSPARC2/fonts/Makefile" ;;
38122 "hw/xprint/config/C/print/models/GSdefault/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xprint/config/C/print/models/GSdefault/Makefile" ;;
38123 "hw/xprint/config/C/print/models/HPLJ4050-PS/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xprint/config/C/print/models/HPLJ4050-PS/Makefile" ;;
38124 "hw/xprint/config/C/print/models/HPLJ4050-PS/fonts/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xprint/config/C/print/models/HPLJ4050-PS/fonts/Makefile" ;;
38125 "hw/xprint/config/C/print/models/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xprint/config/C/print/models/Makefile" ;;
38126 "hw/xprint/config/C/print/models/PS2PDFspooldir-GS/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xprint/config/C/print/models/PS2PDFspooldir-GS/Makefile" ;;
38127 "hw/xprint/config/C/print/models/CANONC3200-PS/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xprint/config/C/print/models/CANONC3200-PS/Makefile" ;;
38128 "hw/xprint/config/C/print/models/CANONC3200-PS/fonts/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xprint/config/C/print/models/CANONC3200-PS/fonts/Makefile" ;;
38129 "hw/xprint/config/C/print/models/HPLJ4family/fonts/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xprint/config/C/print/models/HPLJ4family/fonts/Makefile" ;;
38130 "hw/xprint/config/C/print/models/HPLJ4family/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xprint/config/C/print/models/HPLJ4family/Makefile" ;;
38131 "hw/xprint/config/C/print/models/HPDJ1600C/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xprint/config/C/print/models/HPDJ1600C/Makefile" ;;
38132 "hw/xprint/config/C/print/models/HPDJ1600C/fonts/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xprint/config/C/print/models/HPDJ1600C/fonts/Makefile" ;;
38133 "hw/xprint/config/C/print/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xprint/config/C/print/Makefile" ;;
38134 "hw/xprint/config/C/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xprint/config/C/Makefile" ;;
38135 "hw/xprint/config/en_US/print/attributes/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xprint/config/en_US/print/attributes/Makefile" ;;
38136 "hw/xprint/config/en_US/print/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xprint/config/en_US/print/Makefile" ;;
38137 "hw/xprint/config/en_US/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xprint/config/en_US/Makefile" ;;
38138 "xorg-server.pc") CONFIG_FILES="$CONFIG_FILES xorg-server.pc" ;;
38140 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
38141 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
38142 { (exit 1); exit 1; }; };;
38143 esac
38144 done
38147 # If the user did not use the arguments to specify the items to instantiate,
38148 # then the envvar interface is used. Set only those that are not.
38149 # We use the long form for the default assignment because of an extremely
38150 # bizarre bug on SunOS 4.1.3.
38151 if $ac_need_defaults; then
38152 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
38153 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
38154 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
38157 # Have a temporary directory for convenience. Make it in the build tree
38158 # simply because there is no reason against having it here, and in addition,
38159 # creating and moving files from /tmp can sometimes cause problems.
38160 # Hook for its removal unless debugging.
38161 # Note that there is a small window in which the directory will not be cleaned:
38162 # after its creation but before its name has been assigned to `$tmp'.
38163 $debug ||
38165 tmp=
38166 trap 'exit_status=$?
38167 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
38169 trap '{ (exit 1); exit 1; }' 1 2 13 15
38171 # Create a (secure) tmp directory for tmp files.
38174 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
38175 test -n "$tmp" && test -d "$tmp"
38176 } ||
38178 tmp=./conf$$-$RANDOM
38179 (umask 077 && mkdir "$tmp")
38180 } ||
38182 echo "$me: cannot create a temporary directory in ." >&2
38183 { (exit 1); exit 1; }
38187 # Set up the sed scripts for CONFIG_FILES section.
38190 # No need to generate the scripts if there are no CONFIG_FILES.
38191 # This happens for instance when ./config.status config.h
38192 if test -n "$CONFIG_FILES"; then
38194 _ACEOF
38198 ac_delim='%!_!# '
38199 for ac_last_try in false false false false false :; do
38200 cat >conf$$subs.sed <<_ACEOF
38201 SHELL!$SHELL$ac_delim
38202 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
38203 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
38204 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
38205 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
38206 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
38207 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
38208 exec_prefix!$exec_prefix$ac_delim
38209 prefix!$prefix$ac_delim
38210 program_transform_name!$program_transform_name$ac_delim
38211 bindir!$bindir$ac_delim
38212 sbindir!$sbindir$ac_delim
38213 libexecdir!$libexecdir$ac_delim
38214 datarootdir!$datarootdir$ac_delim
38215 datadir!$datadir$ac_delim
38216 sysconfdir!$sysconfdir$ac_delim
38217 sharedstatedir!$sharedstatedir$ac_delim
38218 localstatedir!$localstatedir$ac_delim
38219 includedir!$includedir$ac_delim
38220 oldincludedir!$oldincludedir$ac_delim
38221 docdir!$docdir$ac_delim
38222 infodir!$infodir$ac_delim
38223 htmldir!$htmldir$ac_delim
38224 dvidir!$dvidir$ac_delim
38225 pdfdir!$pdfdir$ac_delim
38226 psdir!$psdir$ac_delim
38227 libdir!$libdir$ac_delim
38228 localedir!$localedir$ac_delim
38229 mandir!$mandir$ac_delim
38230 DEFS!$DEFS$ac_delim
38231 ECHO_C!$ECHO_C$ac_delim
38232 ECHO_N!$ECHO_N$ac_delim
38233 ECHO_T!$ECHO_T$ac_delim
38234 LIBS!$LIBS$ac_delim
38235 build_alias!$build_alias$ac_delim
38236 host_alias!$host_alias$ac_delim
38237 target_alias!$target_alias$ac_delim
38238 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
38239 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
38240 INSTALL_DATA!$INSTALL_DATA$ac_delim
38241 am__isrc!$am__isrc$ac_delim
38242 CYGPATH_W!$CYGPATH_W$ac_delim
38243 PACKAGE!$PACKAGE$ac_delim
38244 VERSION!$VERSION$ac_delim
38245 ACLOCAL!$ACLOCAL$ac_delim
38246 AUTOCONF!$AUTOCONF$ac_delim
38247 AUTOMAKE!$AUTOMAKE$ac_delim
38248 AUTOHEADER!$AUTOHEADER$ac_delim
38249 MAKEINFO!$MAKEINFO$ac_delim
38250 install_sh!$install_sh$ac_delim
38251 STRIP!$STRIP$ac_delim
38252 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
38253 mkdir_p!$mkdir_p$ac_delim
38254 AWK!$AWK$ac_delim
38255 SET_MAKE!$SET_MAKE$ac_delim
38256 am__leading_dot!$am__leading_dot$ac_delim
38257 AMTAR!$AMTAR$ac_delim
38258 am__tar!$am__tar$ac_delim
38259 am__untar!$am__untar$ac_delim
38260 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
38261 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
38262 MAINT!$MAINT$ac_delim
38263 CC!$CC$ac_delim
38264 CFLAGS!$CFLAGS$ac_delim
38265 LDFLAGS!$LDFLAGS$ac_delim
38266 CPPFLAGS!$CPPFLAGS$ac_delim
38267 ac_ct_CC!$ac_ct_CC$ac_delim
38268 EXEEXT!$EXEEXT$ac_delim
38269 OBJEXT!$OBJEXT$ac_delim
38270 DEPDIR!$DEPDIR$ac_delim
38271 am__include!$am__include$ac_delim
38272 am__quote!$am__quote$ac_delim
38273 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
38274 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
38275 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
38276 CCDEPMODE!$CCDEPMODE$ac_delim
38277 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
38278 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
38279 CCAS!$CCAS$ac_delim
38280 CCASFLAGS!$CCASFLAGS$ac_delim
38281 CCASDEPMODE!$CCASDEPMODE$ac_delim
38282 am__fastdepCCAS_TRUE!$am__fastdepCCAS_TRUE$ac_delim
38283 am__fastdepCCAS_FALSE!$am__fastdepCCAS_FALSE$ac_delim
38284 LN_S!$LN_S$ac_delim
38285 build!$build$ac_delim
38286 build_cpu!$build_cpu$ac_delim
38287 build_vendor!$build_vendor$ac_delim
38288 build_os!$build_os$ac_delim
38289 host!$host$ac_delim
38290 host_cpu!$host_cpu$ac_delim
38291 host_vendor!$host_vendor$ac_delim
38292 host_os!$host_os$ac_delim
38293 GREP!$GREP$ac_delim
38294 EGREP!$EGREP$ac_delim
38295 ECHO!$ECHO$ac_delim
38296 AR!$AR$ac_delim
38297 RANLIB!$RANLIB$ac_delim
38298 _ACEOF
38300 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
38301 break
38302 elif $ac_last_try; then
38303 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
38304 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
38305 { (exit 1); exit 1; }; }
38306 else
38307 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38309 done
38311 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
38312 if test -n "$ac_eof"; then
38313 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
38314 ac_eof=`expr $ac_eof + 1`
38317 cat >>$CONFIG_STATUS <<_ACEOF
38318 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
38319 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38320 _ACEOF
38321 sed '
38322 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
38323 s/^/s,@/; s/!/@,|#_!!_#|/
38326 s/'"$ac_delim"'$/,g/; t
38327 s/$/\\/; p
38328 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
38329 ' >>$CONFIG_STATUS <conf$$subs.sed
38330 rm -f conf$$subs.sed
38331 cat >>$CONFIG_STATUS <<_ACEOF
38332 CEOF$ac_eof
38333 _ACEOF
38336 ac_delim='%!_!# '
38337 for ac_last_try in false false false false false :; do
38338 cat >conf$$subs.sed <<_ACEOF
38339 DLLTOOL!$DLLTOOL$ac_delim
38340 AS!$AS$ac_delim
38341 OBJDUMP!$OBJDUMP$ac_delim
38342 CPP!$CPP$ac_delim
38343 CXX!$CXX$ac_delim
38344 CXXFLAGS!$CXXFLAGS$ac_delim
38345 ac_ct_CXX!$ac_ct_CXX$ac_delim
38346 CXXDEPMODE!$CXXDEPMODE$ac_delim
38347 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
38348 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
38349 CXXCPP!$CXXCPP$ac_delim
38350 F77!$F77$ac_delim
38351 FFLAGS!$FFLAGS$ac_delim
38352 ac_ct_F77!$ac_ct_F77$ac_delim
38353 LIBTOOL!$LIBTOOL$ac_delim
38354 PKG_CONFIG!$PKG_CONFIG$ac_delim
38355 LEX!$LEX$ac_delim
38356 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
38357 LEXLIB!$LEXLIB$ac_delim
38358 YACC!$YACC$ac_delim
38359 YFLAGS!$YFLAGS$ac_delim
38360 RAWCPP!$RAWCPP$ac_delim
38361 RAWCPPFLAGS!$RAWCPPFLAGS$ac_delim
38362 DTRACE!$DTRACE$ac_delim
38363 XSERVER_DTRACE_TRUE!$XSERVER_DTRACE_TRUE$ac_delim
38364 XSERVER_DTRACE_FALSE!$XSERVER_DTRACE_FALSE$ac_delim
38365 XERRORDB_PATH!$XERRORDB_PATH$ac_delim
38366 ALLOCA!$ALLOCA$ac_delim
38367 NEED_STRLCAT_TRUE!$NEED_STRLCAT_TRUE$ac_delim
38368 NEED_STRLCAT_FALSE!$NEED_STRLCAT_FALSE$ac_delim
38369 NEED_VSNPRINTF_TRUE!$NEED_VSNPRINTF_TRUE$ac_delim
38370 NEED_VSNPRINTF_FALSE!$NEED_VSNPRINTF_FALSE$ac_delim
38371 AGP_TRUE!$AGP_TRUE$ac_delim
38372 AGP_FALSE!$AGP_FALSE$ac_delim
38373 LNXAPM_TRUE!$LNXAPM_TRUE$ac_delim
38374 LNXAPM_FALSE!$LNXAPM_FALSE$ac_delim
38375 FBDEVHW_TRUE!$FBDEVHW_TRUE$ac_delim
38376 FBDEVHW_FALSE!$FBDEVHW_FALSE$ac_delim
38377 FREEBSD_KLDLOAD_TRUE!$FREEBSD_KLDLOAD_TRUE$ac_delim
38378 FREEBSD_KLDLOAD_FALSE!$FREEBSD_KLDLOAD_FALSE$ac_delim
38379 ALPHA_VIDEO_TRUE!$ALPHA_VIDEO_TRUE$ac_delim
38380 ALPHA_VIDEO_FALSE!$ALPHA_VIDEO_FALSE$ac_delim
38381 ARM_VIDEO_TRUE!$ARM_VIDEO_TRUE$ac_delim
38382 ARM_VIDEO_FALSE!$ARM_VIDEO_FALSE$ac_delim
38383 I386_VIDEO_TRUE!$I386_VIDEO_TRUE$ac_delim
38384 I386_VIDEO_FALSE!$I386_VIDEO_FALSE$ac_delim
38385 PPC_VIDEO_TRUE!$PPC_VIDEO_TRUE$ac_delim
38386 PPC_VIDEO_FALSE!$PPC_VIDEO_FALSE$ac_delim
38387 SPARC64_VIDEO_TRUE!$SPARC64_VIDEO_TRUE$ac_delim
38388 SPARC64_VIDEO_FALSE!$SPARC64_VIDEO_FALSE$ac_delim
38389 KDRIVE_HW_TRUE!$KDRIVE_HW_TRUE$ac_delim
38390 KDRIVE_HW_FALSE!$KDRIVE_HW_FALSE$ac_delim
38391 INSTALL_SETUID_TRUE!$INSTALL_SETUID_TRUE$ac_delim
38392 INSTALL_SETUID_FALSE!$INSTALL_SETUID_FALSE$ac_delim
38393 INT10_VM86_TRUE!$INT10_VM86_TRUE$ac_delim
38394 INT10_VM86_FALSE!$INT10_VM86_FALSE$ac_delim
38395 INT10_X86EMU_TRUE!$INT10_X86EMU_TRUE$ac_delim
38396 INT10_X86EMU_FALSE!$INT10_X86EMU_FALSE$ac_delim
38397 INT10_STUB_TRUE!$INT10_STUB_TRUE$ac_delim
38398 INT10_STUB_FALSE!$INT10_STUB_FALSE$ac_delim
38399 BUILDDOCS_TRUE!$BUILDDOCS_TRUE$ac_delim
38400 BUILDDOCS_FALSE!$BUILDDOCS_FALSE$ac_delim
38401 LINUXDOC!$LINUXDOC$ac_delim
38402 PS2PDF!$PS2PDF$ac_delim
38403 BUILD_LINUXDOC_TRUE!$BUILD_LINUXDOC_TRUE$ac_delim
38404 BUILD_LINUXDOC_FALSE!$BUILD_LINUXDOC_FALSE$ac_delim
38405 BUILD_PDFDOC_TRUE!$BUILD_PDFDOC_TRUE$ac_delim
38406 BUILD_PDFDOC_FALSE!$BUILD_PDFDOC_FALSE$ac_delim
38407 MAKE_TEXT!$MAKE_TEXT$ac_delim
38408 MAKE_PS!$MAKE_PS$ac_delim
38409 MAKE_PDF!$MAKE_PDF$ac_delim
38410 MAKE_HTML!$MAKE_HTML$ac_delim
38411 INSTALL_LIBXF86CONFIG_TRUE!$INSTALL_LIBXF86CONFIG_TRUE$ac_delim
38412 INSTALL_LIBXF86CONFIG_FALSE!$INSTALL_LIBXF86CONFIG_FALSE$ac_delim
38413 PIXMAN_CFLAGS!$PIXMAN_CFLAGS$ac_delim
38414 PIXMAN_LIBS!$PIXMAN_LIBS$ac_delim
38415 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
38416 DBUS_LIBS!$DBUS_LIBS$ac_delim
38417 HAVE_DBUS_TRUE!$HAVE_DBUS_TRUE$ac_delim
38418 HAVE_DBUS_FALSE!$HAVE_DBUS_FALSE$ac_delim
38419 CONFIG_DBUS_API_TRUE!$CONFIG_DBUS_API_TRUE$ac_delim
38420 CONFIG_DBUS_API_FALSE!$CONFIG_DBUS_API_FALSE$ac_delim
38421 HAL_CFLAGS!$HAL_CFLAGS$ac_delim
38422 HAL_LIBS!$HAL_LIBS$ac_delim
38423 CONFIG_HAL_TRUE!$CONFIG_HAL_TRUE$ac_delim
38424 CONFIG_HAL_FALSE!$CONFIG_HAL_FALSE$ac_delim
38425 XV_TRUE!$XV_TRUE$ac_delim
38426 XV_FALSE!$XV_FALSE$ac_delim
38427 XVMC_TRUE!$XVMC_TRUE$ac_delim
38428 XVMC_FALSE!$XVMC_FALSE$ac_delim
38429 COMPOSITE_TRUE!$COMPOSITE_TRUE$ac_delim
38430 COMPOSITE_FALSE!$COMPOSITE_FALSE$ac_delim
38431 MITSHM_TRUE!$MITSHM_TRUE$ac_delim
38432 MITSHM_FALSE!$MITSHM_FALSE$ac_delim
38433 XTRAP_TRUE!$XTRAP_TRUE$ac_delim
38434 XTRAP_FALSE!$XTRAP_FALSE$ac_delim
38435 RECORD_TRUE!$RECORD_TRUE$ac_delim
38436 _ACEOF
38438 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
38439 break
38440 elif $ac_last_try; then
38441 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
38442 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
38443 { (exit 1); exit 1; }; }
38444 else
38445 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38447 done
38449 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
38450 if test -n "$ac_eof"; then
38451 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
38452 ac_eof=`expr $ac_eof + 1`
38455 cat >>$CONFIG_STATUS <<_ACEOF
38456 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
38457 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38458 _ACEOF
38459 sed '
38460 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
38461 s/^/s,@/; s/!/@,|#_!!_#|/
38464 s/'"$ac_delim"'$/,g/; t
38465 s/$/\\/; p
38466 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
38467 ' >>$CONFIG_STATUS <conf$$subs.sed
38468 rm -f conf$$subs.sed
38469 cat >>$CONFIG_STATUS <<_ACEOF
38470 CEOF$ac_eof
38471 _ACEOF
38474 ac_delim='%!_!# '
38475 for ac_last_try in false false false false false :; do
38476 cat >conf$$subs.sed <<_ACEOF
38477 RECORD_FALSE!$RECORD_FALSE$ac_delim
38478 SCREENSAVER_TRUE!$SCREENSAVER_TRUE$ac_delim
38479 SCREENSAVER_FALSE!$SCREENSAVER_FALSE$ac_delim
38480 RES_TRUE!$RES_TRUE$ac_delim
38481 RES_FALSE!$RES_FALSE$ac_delim
38482 XLIB_CFLAGS!$XLIB_CFLAGS$ac_delim
38483 XLIB_LIBS!$XLIB_LIBS$ac_delim
38484 GL_CFLAGS!$GL_CFLAGS$ac_delim
38485 GL_LIBS!$GL_LIBS$ac_delim
38486 GLX_TRUE!$GLX_TRUE$ac_delim
38487 GLX_FALSE!$GLX_FALSE$ac_delim
38488 MESA_SOURCE!$MESA_SOURCE$ac_delim
38489 AIGLX_TRUE!$AIGLX_TRUE$ac_delim
38490 AIGLX_FALSE!$AIGLX_FALSE$ac_delim
38491 GLX_DEFINES!$GLX_DEFINES$ac_delim
38492 DRI_TRUE!$DRI_TRUE$ac_delim
38493 DRI_FALSE!$DRI_FALSE$ac_delim
38494 DRIPROTO_CFLAGS!$DRIPROTO_CFLAGS$ac_delim
38495 DRIPROTO_LIBS!$DRIPROTO_LIBS$ac_delim
38496 LIBDRM_CFLAGS!$LIBDRM_CFLAGS$ac_delim
38497 LIBDRM_LIBS!$LIBDRM_LIBS$ac_delim
38498 XINERAMA_TRUE!$XINERAMA_TRUE$ac_delim
38499 XINERAMA_FALSE!$XINERAMA_FALSE$ac_delim
38500 XACE_TRUE!$XACE_TRUE$ac_delim
38501 XACE_FALSE!$XACE_FALSE$ac_delim
38502 XCSECURITY_TRUE!$XCSECURITY_TRUE$ac_delim
38503 XCSECURITY_FALSE!$XCSECURITY_FALSE$ac_delim
38504 XEVIE_TRUE!$XEVIE_TRUE$ac_delim
38505 XEVIE_FALSE!$XEVIE_FALSE$ac_delim
38506 APPGROUP_TRUE!$APPGROUP_TRUE$ac_delim
38507 APPGROUP_FALSE!$APPGROUP_FALSE$ac_delim
38508 CUP_TRUE!$CUP_TRUE$ac_delim
38509 CUP_FALSE!$CUP_FALSE$ac_delim
38510 EVI_TRUE!$EVI_TRUE$ac_delim
38511 EVI_FALSE!$EVI_FALSE$ac_delim
38512 MULTIBUFFER_TRUE!$MULTIBUFFER_TRUE$ac_delim
38513 MULTIBUFFER_FALSE!$MULTIBUFFER_FALSE$ac_delim
38514 FONTCACHE_TRUE!$FONTCACHE_TRUE$ac_delim
38515 FONTCACHE_FALSE!$FONTCACHE_FALSE$ac_delim
38516 DBE_TRUE!$DBE_TRUE$ac_delim
38517 DBE_FALSE!$DBE_FALSE$ac_delim
38518 XF86BIGFONT_TRUE!$XF86BIGFONT_TRUE$ac_delim
38519 XF86BIGFONT_FALSE!$XF86BIGFONT_FALSE$ac_delim
38520 DPMSExtension_TRUE!$DPMSExtension_TRUE$ac_delim
38521 DPMSExtension_FALSE!$DPMSExtension_FALSE$ac_delim
38522 XPRINTPROTO_CFLAGS!$XPRINTPROTO_CFLAGS$ac_delim
38523 XPRINTPROTO_LIBS!$XPRINTPROTO_LIBS$ac_delim
38524 XPRINT_TRUE!$XPRINT_TRUE$ac_delim
38525 XPRINT_FALSE!$XPRINT_FALSE$ac_delim
38526 XCALIBRATE_TRUE!$XCALIBRATE_TRUE$ac_delim
38527 XCALIBRATE_FALSE!$XCALIBRATE_FALSE$ac_delim
38528 XF86UTILS_TRUE!$XF86UTILS_TRUE$ac_delim
38529 XF86UTILS_FALSE!$XF86UTILS_FALSE$ac_delim
38530 XDMCP_CFLAGS!$XDMCP_CFLAGS$ac_delim
38531 XDMCP_LIBS!$XDMCP_LIBS$ac_delim
38532 XDMCP_TRUE!$XDMCP_TRUE$ac_delim
38533 XDMCP_FALSE!$XDMCP_FALSE$ac_delim
38534 XDMAUTH_TRUE!$XDMAUTH_TRUE$ac_delim
38535 XDMAUTH_FALSE!$XDMAUTH_FALSE$ac_delim
38536 USE_RGB_BUILTIN_TRUE!$USE_RGB_BUILTIN_TRUE$ac_delim
38537 USE_RGB_BUILTIN_FALSE!$USE_RGB_BUILTIN_FALSE$ac_delim
38538 COMPILEDDEFAULTFONTPATH!$COMPILEDDEFAULTFONTPATH$ac_delim
38539 RGB_DB!$RGB_DB$ac_delim
38540 SERVERCONFIGdir!$SERVERCONFIGdir$ac_delim
38541 BASE_FONT_PATH!$BASE_FONT_PATH$ac_delim
38542 DRI_DRIVER_PATH!$DRI_DRIVER_PATH$ac_delim
38543 VENDOR_NAME!$VENDOR_NAME$ac_delim
38544 VENDOR_NAME_SHORT!$VENDOR_NAME_SHORT$ac_delim
38545 VENDOR_RELEASE!$VENDOR_RELEASE$ac_delim
38546 VENDOR_MAN_VERSION!$VENDOR_MAN_VERSION$ac_delim
38547 DEBUG_TRUE!$DEBUG_TRUE$ac_delim
38548 DEBUG_FALSE!$DEBUG_FALSE$ac_delim
38549 XSERVERCFLAGS_CFLAGS!$XSERVERCFLAGS_CFLAGS$ac_delim
38550 XSERVERCFLAGS_LIBS!$XSERVERCFLAGS_LIBS$ac_delim
38551 XSERVERLIBS_CFLAGS!$XSERVERLIBS_CFLAGS$ac_delim
38552 XSERVERLIBS_LIBS!$XSERVERLIBS_LIBS$ac_delim
38553 SYS_LIBS!$SYS_LIBS$ac_delim
38554 LD_EXPORT_SYMBOLS_FLAG!$LD_EXPORT_SYMBOLS_FLAG$ac_delim
38555 XSERVER_LIBS!$XSERVER_LIBS$ac_delim
38556 DMXMODULES_CFLAGS!$DMXMODULES_CFLAGS$ac_delim
38557 DMXMODULES_LIBS!$DMXMODULES_LIBS$ac_delim
38558 DMX_TRUE!$DMX_TRUE$ac_delim
38559 DMX_FALSE!$DMX_FALSE$ac_delim
38560 XDMX_LIBS!$XDMX_LIBS$ac_delim
38561 XDMXCONFIG_DEP_CFLAGS!$XDMXCONFIG_DEP_CFLAGS$ac_delim
38562 XDMXCONFIG_DEP_LIBS!$XDMXCONFIG_DEP_LIBS$ac_delim
38563 DMXEXAMPLES_DEP_CFLAGS!$DMXEXAMPLES_DEP_CFLAGS$ac_delim
38564 DMXEXAMPLES_DEP_LIBS!$DMXEXAMPLES_DEP_LIBS$ac_delim
38565 DMXXMUEXAMPLES_DEP_CFLAGS!$DMXXMUEXAMPLES_DEP_CFLAGS$ac_delim
38566 DMXXMUEXAMPLES_DEP_LIBS!$DMXXMUEXAMPLES_DEP_LIBS$ac_delim
38567 DMXXIEXAMPLES_DEP_CFLAGS!$DMXXIEXAMPLES_DEP_CFLAGS$ac_delim
38568 DMXXIEXAMPLES_DEP_LIBS!$DMXXIEXAMPLES_DEP_LIBS$ac_delim
38569 XTSTEXAMPLES_DEP_CFLAGS!$XTSTEXAMPLES_DEP_CFLAGS$ac_delim
38570 XTSTEXAMPLES_DEP_LIBS!$XTSTEXAMPLES_DEP_LIBS$ac_delim
38571 XRESEXAMPLES_DEP_CFLAGS!$XRESEXAMPLES_DEP_CFLAGS$ac_delim
38572 XRESEXAMPLES_DEP_LIBS!$XRESEXAMPLES_DEP_LIBS$ac_delim
38573 X11EXAMPLES_DEP_CFLAGS!$X11EXAMPLES_DEP_CFLAGS$ac_delim
38574 _ACEOF
38576 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
38577 break
38578 elif $ac_last_try; then
38579 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
38580 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
38581 { (exit 1); exit 1; }; }
38582 else
38583 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38585 done
38587 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
38588 if test -n "$ac_eof"; then
38589 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
38590 ac_eof=`expr $ac_eof + 1`
38593 cat >>$CONFIG_STATUS <<_ACEOF
38594 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
38595 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38596 _ACEOF
38597 sed '
38598 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
38599 s/^/s,@/; s/!/@,|#_!!_#|/
38602 s/'"$ac_delim"'$/,g/; t
38603 s/$/\\/; p
38604 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
38605 ' >>$CONFIG_STATUS <conf$$subs.sed
38606 rm -f conf$$subs.sed
38607 cat >>$CONFIG_STATUS <<_ACEOF
38608 CEOF$ac_eof
38609 _ACEOF
38612 ac_delim='%!_!# '
38613 for ac_last_try in false false false false false :; do
38614 cat >conf$$subs.sed <<_ACEOF
38615 X11EXAMPLES_DEP_LIBS!$X11EXAMPLES_DEP_LIBS$ac_delim
38616 DMX_BUILD_LNX_TRUE!$DMX_BUILD_LNX_TRUE$ac_delim
38617 DMX_BUILD_LNX_FALSE!$DMX_BUILD_LNX_FALSE$ac_delim
38618 DMX_BUILD_USB_TRUE!$DMX_BUILD_USB_TRUE$ac_delim
38619 DMX_BUILD_USB_FALSE!$DMX_BUILD_USB_FALSE$ac_delim
38620 XVFB_TRUE!$XVFB_TRUE$ac_delim
38621 XVFB_FALSE!$XVFB_FALSE$ac_delim
38622 XVFB_LIBS!$XVFB_LIBS$ac_delim
38623 XNESTMODULES_CFLAGS!$XNESTMODULES_CFLAGS$ac_delim
38624 XNESTMODULES_LIBS!$XNESTMODULES_LIBS$ac_delim
38625 XNEST_TRUE!$XNEST_TRUE$ac_delim
38626 XNEST_FALSE!$XNEST_FALSE$ac_delim
38627 XNEST_LIBS!$XNEST_LIBS$ac_delim
38628 XGLMODULES_CFLAGS!$XGLMODULES_CFLAGS$ac_delim
38629 XGLMODULES_LIBS!$XGLMODULES_LIBS$ac_delim
38630 XGL_TRUE!$XGL_TRUE$ac_delim
38631 XGL_FALSE!$XGL_FALSE$ac_delim
38632 XGL_LIBS!$XGL_LIBS$ac_delim
38633 xglmoduledir!$xglmoduledir$ac_delim
38634 XGL_MODULE_PATH!$XGL_MODULE_PATH$ac_delim
38635 XEGLMODULES_CFLAGS!$XEGLMODULES_CFLAGS$ac_delim
38636 XEGLMODULES_LIBS!$XEGLMODULES_LIBS$ac_delim
38637 XEGL_TRUE!$XEGL_TRUE$ac_delim
38638 XEGL_FALSE!$XEGL_FALSE$ac_delim
38639 XEGL_LIBS!$XEGL_LIBS$ac_delim
38640 XGLXMODULES_CFLAGS!$XGLXMODULES_CFLAGS$ac_delim
38641 XGLXMODULES_LIBS!$XGLXMODULES_LIBS$ac_delim
38642 XGLX_TRUE!$XGLX_TRUE$ac_delim
38643 XGLX_FALSE!$XGLX_FALSE$ac_delim
38644 XGLX_LIBS!$XGLX_LIBS$ac_delim
38645 XORG_CORE_LIBS!$XORG_CORE_LIBS$ac_delim
38646 DARWIN_LIBS!$DARWIN_LIBS$ac_delim
38647 APPLE_APPLICATIONS_DIR!$APPLE_APPLICATIONS_DIR$ac_delim
38648 PLIST_VERSION_STRING!$PLIST_VERSION_STRING$ac_delim
38649 PLIST_VENDOR_WEB!$PLIST_VENDOR_WEB$ac_delim
38650 SOLARIS_INOUT_ARCH!$SOLARIS_INOUT_ARCH$ac_delim
38651 SOLARIS_ASM_CFLAGS!$SOLARIS_ASM_CFLAGS$ac_delim
38652 DGA_CFLAGS!$DGA_CFLAGS$ac_delim
38653 DGA_LIBS!$DGA_LIBS$ac_delim
38654 XF86MISC_CFLAGS!$XF86MISC_CFLAGS$ac_delim
38655 XF86MISC_LIBS!$XF86MISC_LIBS$ac_delim
38656 XF86VIDMODE_CFLAGS!$XF86VIDMODE_CFLAGS$ac_delim
38657 XF86VIDMODE_LIBS!$XF86VIDMODE_LIBS$ac_delim
38658 XORG_MODULES_CFLAGS!$XORG_MODULES_CFLAGS$ac_delim
38659 XORG_MODULES_LIBS!$XORG_MODULES_LIBS$ac_delim
38660 XORG_LIBS!$XORG_LIBS$ac_delim
38661 XORG_INCS!$XORG_INCS$ac_delim
38662 XORG_OS!$XORG_OS$ac_delim
38663 XORG_OS_SUBDIR!$XORG_OS_SUBDIR$ac_delim
38664 PERL!$PERL$ac_delim
38665 XORG_CFLAGS!$XORG_CFLAGS$ac_delim
38666 __XCONFIGFILE__!$__XCONFIGFILE__$ac_delim
38667 XF86CONFIGFILE!$XF86CONFIGFILE$ac_delim
38668 DEFAULT_MODULE_PATH!$DEFAULT_MODULE_PATH$ac_delim
38669 DEFAULT_LIBRARY_PATH!$DEFAULT_LIBRARY_PATH$ac_delim
38670 DEFAULT_LOGPREFIX!$DEFAULT_LOGPREFIX$ac_delim
38671 moduledir!$moduledir$ac_delim
38672 driverdir!$driverdir$ac_delim
38673 sdkdir!$sdkdir$ac_delim
38674 extdir!$extdir$ac_delim
38675 logdir!$logdir$ac_delim
38676 XORG_TRUE!$XORG_TRUE$ac_delim
38677 XORG_FALSE!$XORG_FALSE$ac_delim
38678 XORG_BUS_LINUXPCI_TRUE!$XORG_BUS_LINUXPCI_TRUE$ac_delim
38679 XORG_BUS_LINUXPCI_FALSE!$XORG_BUS_LINUXPCI_FALSE$ac_delim
38680 XORG_BUS_FREEBSDPCI_TRUE!$XORG_BUS_FREEBSDPCI_TRUE$ac_delim
38681 XORG_BUS_FREEBSDPCI_FALSE!$XORG_BUS_FREEBSDPCI_FALSE$ac_delim
38682 XORG_BUS_NETBSDPCI_TRUE!$XORG_BUS_NETBSDPCI_TRUE$ac_delim
38683 XORG_BUS_NETBSDPCI_FALSE!$XORG_BUS_NETBSDPCI_FALSE$ac_delim
38684 XORG_BUS_IX86PCI_TRUE!$XORG_BUS_IX86PCI_TRUE$ac_delim
38685 XORG_BUS_IX86PCI_FALSE!$XORG_BUS_IX86PCI_FALSE$ac_delim
38686 XORG_BUS_PPCPCI_TRUE!$XORG_BUS_PPCPCI_TRUE$ac_delim
38687 XORG_BUS_PPCPCI_FALSE!$XORG_BUS_PPCPCI_FALSE$ac_delim
38688 XORG_BUS_SPARCPCI_TRUE!$XORG_BUS_SPARCPCI_TRUE$ac_delim
38689 XORG_BUS_SPARCPCI_FALSE!$XORG_BUS_SPARCPCI_FALSE$ac_delim
38690 XORG_BUS_SPARC_TRUE!$XORG_BUS_SPARC_TRUE$ac_delim
38691 XORG_BUS_SPARC_FALSE!$XORG_BUS_SPARC_FALSE$ac_delim
38692 XORG_LOADER_SPARC_TRUE!$XORG_LOADER_SPARC_TRUE$ac_delim
38693 XORG_LOADER_SPARC_FALSE!$XORG_LOADER_SPARC_FALSE$ac_delim
38694 LINUX_IA64_TRUE!$LINUX_IA64_TRUE$ac_delim
38695 LINUX_IA64_FALSE!$LINUX_IA64_FALSE$ac_delim
38696 LINUX_ALPHA_TRUE!$LINUX_ALPHA_TRUE$ac_delim
38697 LINUX_ALPHA_FALSE!$LINUX_ALPHA_FALSE$ac_delim
38698 LNXACPI_TRUE!$LNXACPI_TRUE$ac_delim
38699 LNXACPI_FALSE!$LNXACPI_FALSE$ac_delim
38700 SOLARIS_USL_CONSOLE_TRUE!$SOLARIS_USL_CONSOLE_TRUE$ac_delim
38701 SOLARIS_USL_CONSOLE_FALSE!$SOLARIS_USL_CONSOLE_FALSE$ac_delim
38702 SOLARIS_ASM_INLINE_TRUE!$SOLARIS_ASM_INLINE_TRUE$ac_delim
38703 SOLARIS_ASM_INLINE_FALSE!$SOLARIS_ASM_INLINE_FALSE$ac_delim
38704 BUILD_DARWIN_TRUE!$BUILD_DARWIN_TRUE$ac_delim
38705 BUILD_DARWIN_FALSE!$BUILD_DARWIN_FALSE$ac_delim
38706 XQUARTZ_TRUE!$XQUARTZ_TRUE$ac_delim
38707 XQUARTZ_FALSE!$XQUARTZ_FALSE$ac_delim
38708 DGA_TRUE!$DGA_TRUE$ac_delim
38709 DGA_FALSE!$DGA_FALSE$ac_delim
38710 MFB_TRUE!$MFB_TRUE$ac_delim
38711 MFB_FALSE!$MFB_FALSE$ac_delim
38712 _ACEOF
38714 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
38715 break
38716 elif $ac_last_try; then
38717 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
38718 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
38719 { (exit 1); exit 1; }; }
38720 else
38721 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38723 done
38725 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
38726 if test -n "$ac_eof"; then
38727 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
38728 ac_eof=`expr $ac_eof + 1`
38731 cat >>$CONFIG_STATUS <<_ACEOF
38732 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
38733 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38734 _ACEOF
38735 sed '
38736 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
38737 s/^/s,@/; s/!/@,|#_!!_#|/
38740 s/'"$ac_delim"'$/,g/; t
38741 s/$/\\/; p
38742 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
38743 ' >>$CONFIG_STATUS <conf$$subs.sed
38744 rm -f conf$$subs.sed
38745 cat >>$CONFIG_STATUS <<_ACEOF
38746 CEOF$ac_eof
38747 _ACEOF
38750 ac_delim='%!_!# '
38751 for ac_last_try in false false false false false :; do
38752 cat >conf$$subs.sed <<_ACEOF
38753 CFB_TRUE!$CFB_TRUE$ac_delim
38754 CFB_FALSE!$CFB_FALSE$ac_delim
38755 AFB_TRUE!$AFB_TRUE$ac_delim
38756 AFB_FALSE!$AFB_FALSE$ac_delim
38757 XPRINT_CFLAGS!$XPRINT_CFLAGS$ac_delim
38758 XPRINT_LIBS!$XPRINT_LIBS$ac_delim
38759 xpconfigdir!$xpconfigdir$ac_delim
38760 MKFONTSCALE!$MKFONTSCALE$ac_delim
38761 MKFONTDIR!$MKFONTDIR$ac_delim
38762 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
38763 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
38764 ft_config!$ft_config$ac_delim
38765 FREETYPE_REQUIRES!$FREETYPE_REQUIRES$ac_delim
38766 XP_USE_FREETYPE_TRUE!$XP_USE_FREETYPE_TRUE$ac_delim
38767 XP_USE_FREETYPE_FALSE!$XP_USE_FREETYPE_FALSE$ac_delim
38768 XWIN_LIBS!$XWIN_LIBS$ac_delim
38769 XWINMODULES_CFLAGS!$XWINMODULES_CFLAGS$ac_delim
38770 XWINMODULES_LIBS!$XWINMODULES_LIBS$ac_delim
38771 XWIN_SERVER_NAME!$XWIN_SERVER_NAME$ac_delim
38772 XWIN_SYSTEM_LIBS!$XWIN_SYSTEM_LIBS$ac_delim
38773 XWIN_TRUE!$XWIN_TRUE$ac_delim
38774 XWIN_FALSE!$XWIN_FALSE$ac_delim
38775 XWIN_MULTIWINDOW_TRUE!$XWIN_MULTIWINDOW_TRUE$ac_delim
38776 XWIN_MULTIWINDOW_FALSE!$XWIN_MULTIWINDOW_FALSE$ac_delim
38777 XWIN_MULTIWINDOWEXTWM_TRUE!$XWIN_MULTIWINDOWEXTWM_TRUE$ac_delim
38778 XWIN_MULTIWINDOWEXTWM_FALSE!$XWIN_MULTIWINDOWEXTWM_FALSE$ac_delim
38779 XWIN_CLIPBOARD_TRUE!$XWIN_CLIPBOARD_TRUE$ac_delim
38780 XWIN_CLIPBOARD_FALSE!$XWIN_CLIPBOARD_FALSE$ac_delim
38781 XWIN_GLX_WINDOWS_TRUE!$XWIN_GLX_WINDOWS_TRUE$ac_delim
38782 XWIN_GLX_WINDOWS_FALSE!$XWIN_GLX_WINDOWS_FALSE$ac_delim
38783 XWIN_NATIVEGDI_TRUE!$XWIN_NATIVEGDI_TRUE$ac_delim
38784 XWIN_NATIVEGDI_FALSE!$XWIN_NATIVEGDI_FALSE$ac_delim
38785 XWIN_PRIMARYFB_TRUE!$XWIN_PRIMARYFB_TRUE$ac_delim
38786 XWIN_PRIMARYFB_FALSE!$XWIN_PRIMARYFB_FALSE$ac_delim
38787 XWIN_RANDR_TRUE!$XWIN_RANDR_TRUE$ac_delim
38788 XWIN_RANDR_FALSE!$XWIN_RANDR_FALSE$ac_delim
38789 XWIN_XV_TRUE!$XWIN_XV_TRUE$ac_delim
38790 XWIN_XV_FALSE!$XWIN_XV_FALSE$ac_delim
38791 HAVE_X_PLUGIN_TRUE!$HAVE_X_PLUGIN_TRUE$ac_delim
38792 HAVE_X_PLUGIN_FALSE!$HAVE_X_PLUGIN_FALSE$ac_delim
38793 HAVE_AGL_FRAMEWORK_TRUE!$HAVE_AGL_FRAMEWORK_TRUE$ac_delim
38794 HAVE_AGL_FRAMEWORK_FALSE!$HAVE_AGL_FRAMEWORK_FALSE$ac_delim
38795 OBJC!$OBJC$ac_delim
38796 OBJCCLD!$OBJCCLD$ac_delim
38797 OBJCLINK!$OBJCLINK$ac_delim
38798 OBJCFLAGS!$OBJCFLAGS$ac_delim
38799 OBJCDEPMODE!$OBJCDEPMODE$ac_delim
38800 am__fastdepOBJC_TRUE!$am__fastdepOBJC_TRUE$ac_delim
38801 am__fastdepOBJC_FALSE!$am__fastdepOBJC_FALSE$ac_delim
38802 KDRIVE_TRUE!$KDRIVE_TRUE$ac_delim
38803 KDRIVE_FALSE!$KDRIVE_FALSE$ac_delim
38804 XEPHYR_CFLAGS!$XEPHYR_CFLAGS$ac_delim
38805 XEPHYR_LIBS!$XEPHYR_LIBS$ac_delim
38806 TSLIB_CFLAGS!$TSLIB_CFLAGS$ac_delim
38807 TSLIB_LIBS!$TSLIB_LIBS$ac_delim
38808 XEPHYR_INCS!$XEPHYR_INCS$ac_delim
38809 XSDL_LIBS!$XSDL_LIBS$ac_delim
38810 XSDL_INCS!$XSDL_INCS$ac_delim
38811 KDRIVE_INCS!$KDRIVE_INCS$ac_delim
38812 KDRIVE_PURE_INCS!$KDRIVE_PURE_INCS$ac_delim
38813 KDRIVE_CFLAGS!$KDRIVE_CFLAGS$ac_delim
38814 KDRIVE_PURE_LIBS!$KDRIVE_PURE_LIBS$ac_delim
38815 KDRIVE_LOCAL_LIBS!$KDRIVE_LOCAL_LIBS$ac_delim
38816 KDRIVE_LIBS!$KDRIVE_LIBS$ac_delim
38817 KDRIVELINUX_TRUE!$KDRIVELINUX_TRUE$ac_delim
38818 KDRIVELINUX_FALSE!$KDRIVELINUX_FALSE$ac_delim
38819 TSLIB_TRUE!$TSLIB_TRUE$ac_delim
38820 TSLIB_FALSE!$TSLIB_FALSE$ac_delim
38821 H3600_TS_TRUE!$H3600_TS_TRUE$ac_delim
38822 H3600_TS_FALSE!$H3600_TS_FALSE$ac_delim
38823 KDRIVEVESA_TRUE!$KDRIVEVESA_TRUE$ac_delim
38824 KDRIVEVESA_FALSE!$KDRIVEVESA_FALSE$ac_delim
38825 KDRIVEFBDEV_TRUE!$KDRIVEFBDEV_TRUE$ac_delim
38826 KDRIVEFBDEV_FALSE!$KDRIVEFBDEV_FALSE$ac_delim
38827 XSDLSERVER_TRUE!$XSDLSERVER_TRUE$ac_delim
38828 XSDLSERVER_FALSE!$XSDLSERVER_FALSE$ac_delim
38829 XEPHYR_TRUE!$XEPHYR_TRUE$ac_delim
38830 XEPHYR_FALSE!$XEPHYR_FALSE$ac_delim
38831 BUILD_KDRIVEFBDEVLIB_TRUE!$BUILD_KDRIVEFBDEVLIB_TRUE$ac_delim
38832 BUILD_KDRIVEFBDEVLIB_FALSE!$BUILD_KDRIVEFBDEVLIB_FALSE$ac_delim
38833 XFAKESERVER_TRUE!$XFAKESERVER_TRUE$ac_delim
38834 XFAKESERVER_FALSE!$XFAKESERVER_FALSE$ac_delim
38835 XKB_BASE_DIRECTORY!$XKB_BASE_DIRECTORY$ac_delim
38836 XKB_BIN_DIRECTORY!$XKB_BIN_DIRECTORY$ac_delim
38837 XKM_OUTPUT_DIR!$XKM_OUTPUT_DIR$ac_delim
38838 XKB_COMPILED_DIR!$XKB_COMPILED_DIR$ac_delim
38839 PROJECTROOT!$PROJECTROOT$ac_delim
38840 XORGCONFIG_DEP_CFLAGS!$XORGCONFIG_DEP_CFLAGS$ac_delim
38841 XORGCONFIG_DEP_LIBS!$XORGCONFIG_DEP_LIBS$ac_delim
38842 XORGCFG_DEP_CFLAGS!$XORGCFG_DEP_CFLAGS$ac_delim
38843 XORGCFG_DEP_LIBS!$XORGCFG_DEP_LIBS$ac_delim
38844 APPDEFAULTDIR!$APPDEFAULTDIR$ac_delim
38845 BUILD_XORGCFG_TRUE!$BUILD_XORGCFG_TRUE$ac_delim
38846 BUILD_XORGCFG_FALSE!$BUILD_XORGCFG_FALSE$ac_delim
38847 USE_CURSES_TRUE!$USE_CURSES_TRUE$ac_delim
38848 USE_CURSES_FALSE!$USE_CURSES_FALSE$ac_delim
38849 BUILD_KBD_MODE_TRUE!$BUILD_KBD_MODE_TRUE$ac_delim
38850 _ACEOF
38852 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
38853 break
38854 elif $ac_last_try; then
38855 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
38856 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
38857 { (exit 1); exit 1; }; }
38858 else
38859 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38861 done
38863 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
38864 if test -n "$ac_eof"; then
38865 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
38866 ac_eof=`expr $ac_eof + 1`
38869 cat >>$CONFIG_STATUS <<_ACEOF
38870 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
38871 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38872 _ACEOF
38873 sed '
38874 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
38875 s/^/s,@/; s/!/@,|#_!!_#|/
38878 s/'"$ac_delim"'$/,g/; t
38879 s/$/\\/; p
38880 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
38881 ' >>$CONFIG_STATUS <conf$$subs.sed
38882 rm -f conf$$subs.sed
38883 cat >>$CONFIG_STATUS <<_ACEOF
38884 CEOF$ac_eof
38885 _ACEOF
38888 ac_delim='%!_!# '
38889 for ac_last_try in false false false false false :; do
38890 cat >conf$$subs.sed <<_ACEOF
38891 BUILD_KBD_MODE_FALSE!$BUILD_KBD_MODE_FALSE$ac_delim
38892 BSD_KBD_MODE_TRUE!$BSD_KBD_MODE_TRUE$ac_delim
38893 BSD_KBD_MODE_FALSE!$BSD_KBD_MODE_FALSE$ac_delim
38894 SUN_KBD_MODE_TRUE!$SUN_KBD_MODE_TRUE$ac_delim
38895 SUN_KBD_MODE_FALSE!$SUN_KBD_MODE_FALSE$ac_delim
38896 BUILD_DATE!$BUILD_DATE$ac_delim
38897 BUILD_TIME!$BUILD_TIME$ac_delim
38898 DIX_CFLAGS!$DIX_CFLAGS$ac_delim
38899 libdir!$libdir$ac_delim
38900 exec_prefix!$exec_prefix$ac_delim
38901 prefix!$prefix$ac_delim
38902 APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
38903 LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
38904 FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
38905 MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
38906 DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
38907 ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
38908 APP_MAN_DIR!$APP_MAN_DIR$ac_delim
38909 LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
38910 FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
38911 MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
38912 DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
38913 ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
38914 LIBOBJS!$LIBOBJS$ac_delim
38915 LTLIBOBJS!$LTLIBOBJS$ac_delim
38916 _ACEOF
38918 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 25; then
38919 break
38920 elif $ac_last_try; then
38921 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
38922 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
38923 { (exit 1); exit 1; }; }
38924 else
38925 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38927 done
38929 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
38930 if test -n "$ac_eof"; then
38931 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
38932 ac_eof=`expr $ac_eof + 1`
38935 cat >>$CONFIG_STATUS <<_ACEOF
38936 cat >"\$tmp/subs-6.sed" <<\CEOF$ac_eof
38937 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
38938 _ACEOF
38939 sed '
38940 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
38941 s/^/s,@/; s/!/@,|#_!!_#|/
38944 s/'"$ac_delim"'$/,g/; t
38945 s/$/\\/; p
38946 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
38947 ' >>$CONFIG_STATUS <conf$$subs.sed
38948 rm -f conf$$subs.sed
38949 cat >>$CONFIG_STATUS <<_ACEOF
38950 :end
38951 s/|#_!!_#|//g
38952 CEOF$ac_eof
38953 _ACEOF
38956 # VPATH may cause trouble with some makes, so we remove $(srcdir),
38957 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
38958 # trailing colons and then remove the whole line if VPATH becomes empty
38959 # (actually we leave an empty line to preserve line numbers).
38960 if test "x$srcdir" = x.; then
38961 ac_vpsub='/^[ ]*VPATH[ ]*=/{
38962 s/:*\$(srcdir):*/:/
38963 s/:*\${srcdir}:*/:/
38964 s/:*@srcdir@:*/:/
38965 s/^\([^=]*=[ ]*\):*/\1/
38966 s/:*$//
38967 s/^[^=]*=[ ]*$//
38971 cat >>$CONFIG_STATUS <<\_ACEOF
38972 fi # test -n "$CONFIG_FILES"
38975 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
38977 case $ac_tag in
38978 :[FHLC]) ac_mode=$ac_tag; continue;;
38979 esac
38980 case $ac_mode$ac_tag in
38981 :[FHL]*:*);;
38982 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
38983 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
38984 { (exit 1); exit 1; }; };;
38985 :[FH]-) ac_tag=-:-;;
38986 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
38987 esac
38988 ac_save_IFS=$IFS
38989 IFS=:
38990 set x $ac_tag
38991 IFS=$ac_save_IFS
38992 shift
38993 ac_file=$1
38994 shift
38996 case $ac_mode in
38997 :L) ac_source=$1;;
38998 :[FH])
38999 ac_file_inputs=
39000 for ac_f
39002 case $ac_f in
39003 -) ac_f="$tmp/stdin";;
39004 *) # Look for the file first in the build tree, then in the source tree
39005 # (if the path is not absolute). The absolute path cannot be DOS-style,
39006 # because $ac_f cannot contain `:'.
39007 test -f "$ac_f" ||
39008 case $ac_f in
39009 [\\/$]*) false;;
39010 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
39011 esac ||
39012 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
39013 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
39014 { (exit 1); exit 1; }; };;
39015 esac
39016 ac_file_inputs="$ac_file_inputs $ac_f"
39017 done
39019 # Let's still pretend it is `configure' which instantiates (i.e., don't
39020 # use $as_me), people would be surprised to read:
39021 # /* config.h. Generated by config.status. */
39022 configure_input="Generated from "`IFS=:
39023 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
39024 if test x"$ac_file" != x-; then
39025 configure_input="$ac_file. $configure_input"
39026 { echo "$as_me:$LINENO: creating $ac_file" >&5
39027 echo "$as_me: creating $ac_file" >&6;}
39030 case $ac_tag in
39031 *:-:* | *:-) cat >"$tmp/stdin";;
39032 esac
39034 esac
39036 ac_dir=`$as_dirname -- "$ac_file" ||
39037 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39038 X"$ac_file" : 'X\(//\)[^/]' \| \
39039 X"$ac_file" : 'X\(//\)$' \| \
39040 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39041 echo X"$ac_file" |
39042 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39043 s//\1/
39046 /^X\(\/\/\)[^/].*/{
39047 s//\1/
39050 /^X\(\/\/\)$/{
39051 s//\1/
39054 /^X\(\/\).*/{
39055 s//\1/
39058 s/.*/./; q'`
39059 { as_dir="$ac_dir"
39060 case $as_dir in #(
39061 -*) as_dir=./$as_dir;;
39062 esac
39063 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
39064 as_dirs=
39065 while :; do
39066 case $as_dir in #(
39067 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
39068 *) as_qdir=$as_dir;;
39069 esac
39070 as_dirs="'$as_qdir' $as_dirs"
39071 as_dir=`$as_dirname -- "$as_dir" ||
39072 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39073 X"$as_dir" : 'X\(//\)[^/]' \| \
39074 X"$as_dir" : 'X\(//\)$' \| \
39075 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
39076 echo X"$as_dir" |
39077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39078 s//\1/
39081 /^X\(\/\/\)[^/].*/{
39082 s//\1/
39085 /^X\(\/\/\)$/{
39086 s//\1/
39089 /^X\(\/\).*/{
39090 s//\1/
39093 s/.*/./; q'`
39094 test -d "$as_dir" && break
39095 done
39096 test -z "$as_dirs" || eval "mkdir $as_dirs"
39097 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
39098 echo "$as_me: error: cannot create directory $as_dir" >&2;}
39099 { (exit 1); exit 1; }; }; }
39100 ac_builddir=.
39102 case "$ac_dir" in
39103 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
39105 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39106 # A ".." for each directory in $ac_dir_suffix.
39107 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
39108 case $ac_top_builddir_sub in
39109 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
39110 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
39111 esac ;;
39112 esac
39113 ac_abs_top_builddir=$ac_pwd
39114 ac_abs_builddir=$ac_pwd$ac_dir_suffix
39115 # for backward compatibility:
39116 ac_top_builddir=$ac_top_build_prefix
39118 case $srcdir in
39119 .) # We are building in place.
39120 ac_srcdir=.
39121 ac_top_srcdir=$ac_top_builddir_sub
39122 ac_abs_top_srcdir=$ac_pwd ;;
39123 [\\/]* | ?:[\\/]* ) # Absolute name.
39124 ac_srcdir=$srcdir$ac_dir_suffix;
39125 ac_top_srcdir=$srcdir
39126 ac_abs_top_srcdir=$srcdir ;;
39127 *) # Relative name.
39128 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
39129 ac_top_srcdir=$ac_top_build_prefix$srcdir
39130 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
39131 esac
39132 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
39135 case $ac_mode in
39138 # CONFIG_FILE
39141 case $INSTALL in
39142 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
39143 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
39144 esac
39145 ac_MKDIR_P=$MKDIR_P
39146 case $MKDIR_P in
39147 [\\/$]* | ?:[\\/]* ) ;;
39148 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
39149 esac
39150 _ACEOF
39152 cat >>$CONFIG_STATUS <<\_ACEOF
39153 # If the template does not know about datarootdir, expand it.
39154 # FIXME: This hack should be removed a few years after 2.60.
39155 ac_datarootdir_hack=; ac_datarootdir_seen=
39157 case `sed -n '/datarootdir/ {
39161 /@datadir@/p
39162 /@docdir@/p
39163 /@infodir@/p
39164 /@localedir@/p
39165 /@mandir@/p
39166 ' $ac_file_inputs` in
39167 *datarootdir*) ac_datarootdir_seen=yes;;
39168 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
39169 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
39170 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
39171 _ACEOF
39172 cat >>$CONFIG_STATUS <<_ACEOF
39173 ac_datarootdir_hack='
39174 s&@datadir@&$datadir&g
39175 s&@docdir@&$docdir&g
39176 s&@infodir@&$infodir&g
39177 s&@localedir@&$localedir&g
39178 s&@mandir@&$mandir&g
39179 s&\\\${datarootdir}&$datarootdir&g' ;;
39180 esac
39181 _ACEOF
39183 # Neutralize VPATH when `$srcdir' = `.'.
39184 # Shell code in configure.ac might set extrasub.
39185 # FIXME: do we really want to maintain this feature?
39186 cat >>$CONFIG_STATUS <<_ACEOF
39187 sed "$ac_vpsub
39188 $extrasub
39189 _ACEOF
39190 cat >>$CONFIG_STATUS <<\_ACEOF
39192 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39193 s&@configure_input@&$configure_input&;t t
39194 s&@top_builddir@&$ac_top_builddir_sub&;t t
39195 s&@srcdir@&$ac_srcdir&;t t
39196 s&@abs_srcdir@&$ac_abs_srcdir&;t t
39197 s&@top_srcdir@&$ac_top_srcdir&;t t
39198 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
39199 s&@builddir@&$ac_builddir&;t t
39200 s&@abs_builddir@&$ac_abs_builddir&;t t
39201 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
39202 s&@INSTALL@&$ac_INSTALL&;t t
39203 s&@MKDIR_P@&$ac_MKDIR_P&;t t
39204 $ac_datarootdir_hack
39205 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" | sed -f "$tmp/subs-4.sed" | sed -f "$tmp/subs-5.sed" | sed -f "$tmp/subs-6.sed" >$tmp/out
39207 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
39208 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
39209 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
39210 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39211 which seems to be undefined. Please make sure it is defined." >&5
39212 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39213 which seems to be undefined. Please make sure it is defined." >&2;}
39215 rm -f "$tmp/stdin"
39216 case $ac_file in
39217 -) cat "$tmp/out"; rm -f "$tmp/out";;
39218 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
39219 esac
39223 # CONFIG_HEADER
39225 _ACEOF
39227 # Transform confdefs.h into a sed script `conftest.defines', that
39228 # substitutes the proper values into config.h.in to produce config.h.
39229 rm -f conftest.defines conftest.tail
39230 # First, append a space to every undef/define line, to ease matching.
39231 echo 's/$/ /' >conftest.defines
39232 # Then, protect against being on the right side of a sed subst, or in
39233 # an unquoted here document, in config.status. If some macros were
39234 # called several times there might be several #defines for the same
39235 # symbol, which is useless. But do not sort them, since the last
39236 # AC_DEFINE must be honored.
39237 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
39238 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
39239 # NAME is the cpp macro being defined, VALUE is the value it is being given.
39240 # PARAMS is the parameter list in the macro definition--in most cases, it's
39241 # just an empty string.
39242 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
39243 ac_dB='\\)[ (].*,\\1define\\2'
39244 ac_dC=' '
39245 ac_dD=' ,'
39247 uniq confdefs.h |
39248 sed -n '
39249 t rset
39250 :rset
39251 s/^[ ]*#[ ]*define[ ][ ]*//
39252 t ok
39255 s/[\\&,]/\\&/g
39256 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
39257 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
39258 ' >>conftest.defines
39260 # Remove the space that was appended to ease matching.
39261 # Then replace #undef with comments. This is necessary, for
39262 # example, in the case of _POSIX_SOURCE, which is predefined and required
39263 # on some systems where configure will not decide to define it.
39264 # (The regexp can be short, since the line contains either #define or #undef.)
39265 echo 's/ $//
39266 s,^[ #]*u.*,/* & */,' >>conftest.defines
39268 # Break up conftest.defines:
39269 ac_max_sed_lines=50
39271 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
39272 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
39273 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
39274 # et cetera.
39275 ac_in='$ac_file_inputs'
39276 ac_out='"$tmp/out1"'
39277 ac_nxt='"$tmp/out2"'
39279 while :
39281 # Write a here document:
39282 cat >>$CONFIG_STATUS <<_ACEOF
39283 # First, check the format of the line:
39284 cat >"\$tmp/defines.sed" <<\\CEOF
39285 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
39286 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
39288 :def
39289 _ACEOF
39290 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
39291 echo 'CEOF
39292 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
39293 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
39294 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
39295 grep . conftest.tail >/dev/null || break
39296 rm -f conftest.defines
39297 mv conftest.tail conftest.defines
39298 done
39299 rm -f conftest.defines conftest.tail
39301 echo "ac_result=$ac_in" >>$CONFIG_STATUS
39302 cat >>$CONFIG_STATUS <<\_ACEOF
39303 if test x"$ac_file" != x-; then
39304 echo "/* $configure_input */" >"$tmp/config.h"
39305 cat "$ac_result" >>"$tmp/config.h"
39306 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
39307 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
39308 echo "$as_me: $ac_file is unchanged" >&6;}
39309 else
39310 rm -f $ac_file
39311 mv "$tmp/config.h" $ac_file
39313 else
39314 echo "/* $configure_input */"
39315 cat "$ac_result"
39317 rm -f "$tmp/out12"
39318 # Compute $ac_file's index in $config_headers.
39319 _am_stamp_count=1
39320 for _am_header in $config_headers :; do
39321 case $_am_header in
39322 $ac_file | $ac_file:* )
39323 break ;;
39325 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
39326 esac
39327 done
39328 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
39329 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39330 X$ac_file : 'X\(//\)[^/]' \| \
39331 X$ac_file : 'X\(//\)$' \| \
39332 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
39333 echo X$ac_file |
39334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39335 s//\1/
39338 /^X\(\/\/\)[^/].*/{
39339 s//\1/
39342 /^X\(\/\/\)$/{
39343 s//\1/
39346 /^X\(\/\).*/{
39347 s//\1/
39350 s/.*/./; q'`/stamp-h$_am_stamp_count
39353 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
39354 echo "$as_me: executing $ac_file commands" >&6;}
39356 esac
39359 case $ac_file$ac_mode in
39360 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
39361 # Strip MF so we end up with the name of the file.
39362 mf=`echo "$mf" | sed -e 's/:.*$//'`
39363 # Check whether this is an Automake generated Makefile or not.
39364 # We used to match only the files named `Makefile.in', but
39365 # some people rename them; so instead we look at the file content.
39366 # Grep'ing the first line is not enough: some people post-process
39367 # each Makefile.in and add a new line on top of each file to say so.
39368 # Grep'ing the whole file is not good either: AIX grep has a line
39369 # limit of 2048, but all sed's we know have understand at least 4000.
39370 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
39371 dirpart=`$as_dirname -- "$mf" ||
39372 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39373 X"$mf" : 'X\(//\)[^/]' \| \
39374 X"$mf" : 'X\(//\)$' \| \
39375 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
39376 echo X"$mf" |
39377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39378 s//\1/
39381 /^X\(\/\/\)[^/].*/{
39382 s//\1/
39385 /^X\(\/\/\)$/{
39386 s//\1/
39389 /^X\(\/\).*/{
39390 s//\1/
39393 s/.*/./; q'`
39394 else
39395 continue
39397 # Extract the definition of DEPDIR, am__include, and am__quote
39398 # from the Makefile without running `make'.
39399 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
39400 test -z "$DEPDIR" && continue
39401 am__include=`sed -n 's/^am__include = //p' < "$mf"`
39402 test -z "am__include" && continue
39403 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
39404 # When using ansi2knr, U may be empty or an underscore; expand it
39405 U=`sed -n 's/^U = //p' < "$mf"`
39406 # Find all dependency output files, they are included files with
39407 # $(DEPDIR) in their names. We invoke sed twice because it is the
39408 # simplest approach to changing $(DEPDIR) to its actual value in the
39409 # expansion.
39410 for file in `sed -n "
39411 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
39412 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
39413 # Make sure the directory exists.
39414 test -f "$dirpart/$file" && continue
39415 fdir=`$as_dirname -- "$file" ||
39416 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39417 X"$file" : 'X\(//\)[^/]' \| \
39418 X"$file" : 'X\(//\)$' \| \
39419 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
39420 echo X"$file" |
39421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39422 s//\1/
39425 /^X\(\/\/\)[^/].*/{
39426 s//\1/
39429 /^X\(\/\/\)$/{
39430 s//\1/
39433 /^X\(\/\).*/{
39434 s//\1/
39437 s/.*/./; q'`
39438 { as_dir=$dirpart/$fdir
39439 case $as_dir in #(
39440 -*) as_dir=./$as_dir;;
39441 esac
39442 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
39443 as_dirs=
39444 while :; do
39445 case $as_dir in #(
39446 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
39447 *) as_qdir=$as_dir;;
39448 esac
39449 as_dirs="'$as_qdir' $as_dirs"
39450 as_dir=`$as_dirname -- "$as_dir" ||
39451 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39452 X"$as_dir" : 'X\(//\)[^/]' \| \
39453 X"$as_dir" : 'X\(//\)$' \| \
39454 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
39455 echo X"$as_dir" |
39456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39457 s//\1/
39460 /^X\(\/\/\)[^/].*/{
39461 s//\1/
39464 /^X\(\/\/\)$/{
39465 s//\1/
39468 /^X\(\/\).*/{
39469 s//\1/
39472 s/.*/./; q'`
39473 test -d "$as_dir" && break
39474 done
39475 test -z "$as_dirs" || eval "mkdir $as_dirs"
39476 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
39477 echo "$as_me: error: cannot create directory $as_dir" >&2;}
39478 { (exit 1); exit 1; }; }; }
39479 # echo "creating $dirpart/$file"
39480 echo '# dummy' > "$dirpart/$file"
39481 done
39482 done
39485 esac
39486 done # for ac_tag
39489 { (exit 0); exit 0; }
39490 _ACEOF
39491 chmod +x $CONFIG_STATUS
39492 ac_clean_files=$ac_clean_files_save
39495 # configure is writing to config.log, and then calls config.status.
39496 # config.status does its own redirection, appending to config.log.
39497 # Unfortunately, on DOS this fails, as config.log is still kept open
39498 # by configure, so config.status won't be able to write to it; its
39499 # output is simply discarded. So we exec the FD to /dev/null,
39500 # effectively closing config.log, so it can be properly (re)opened and
39501 # appended to by config.status. When coming back to configure, we
39502 # need to make the FD available again.
39503 if test "$no_create" != yes; then
39504 ac_cs_success=:
39505 ac_config_status_args=
39506 test "$silent" = yes &&
39507 ac_config_status_args="$ac_config_status_args --quiet"
39508 exec 5>/dev/null
39509 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
39510 exec 5>>config.log
39511 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
39512 # would make configure fail if this is the last instruction.
39513 $ac_cs_success || { (exit 1); exit 1; }