configure revision 1.1.1.4 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for xf86-video-mga 1.4.12.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86 else
87 as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" "" $as_nl"
97
98 # Find who we are. Look in the path if we contain no directory separator.
99 case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110 ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115 as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140 else
141 as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146 else
147 as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181
182 if test $as_have_required = yes && (eval ":
183 (as_func_return () {
184 (exit \$1)
185 }
186 as_func_success () {
187 as_func_return 0
188 }
189 as_func_failure () {
190 as_func_return 1
191 }
192 as_func_ret_success () {
193 return 0
194 }
195 as_func_ret_failure () {
196 return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201 :
202 else
203 exitcode=1
204 echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213 :
214 else
215 exitcode=1
216 echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226 else
227 exitcode=1
228 echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239 :
240 else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
248 /*)
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253 done
254 IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289 else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299 (exit $1)
300 }
301 as_func_success () {
302 as_func_return 0
303 }
304 as_func_failure () {
305 as_func_return 1
306 }
307 as_func_ret_success () {
308 return 0
309 }
310 as_func_ret_failure () {
311 return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316 :
317 else
318 exitcode=1
319 echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328 :
329 else
330 exitcode=1
331 echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341 else
342 exitcode=1
343 echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356 break
357 fi
358
359 fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388 (exit \$1)
389 }
390 as_func_success () {
391 as_func_return 0
392 }
393 as_func_failure () {
394 as_func_return 1
395 }
396 as_func_ret_success () {
397 return 0
398 }
399 as_func_ret_failure () {
400 return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405 :
406 else
407 exitcode=1
408 echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417 :
418 else
419 exitcode=1
420 echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430 else
431 exitcode=1
432 echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
441 }
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
469 N
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490 else
491 as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501 *)
502 ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507 else
508 as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514 else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
531 fi
532 else
533 as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540 else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547 else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
579
580 case X$lt_ECHO in
581 X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584 ;;
585 esac
586
587 ECHO=${lt_ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
593 :
594 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
596 :
597 else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 fi
601
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
605 cat <<_LT_EOF
606 $*
607 _LT_EOF
608 exit 0
609 fi
610
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615 if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622 then
623 break
624 fi
625 done
626 fi
627
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
631 :
632 else
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
636 #
637 # So, first we look for a working echo in the user's PATH.
638
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
641 IFS="$lt_save_ifs"
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
646 ECHO="$dir/echo"
647 break
648 fi
649 done
650 IFS="$lt_save_ifs"
651
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
658 ECHO='print -r'
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
665 export CONFIG_SHELL
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667 else
668 # Try using printf.
669 ECHO='printf %s\n'
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 # Cool, printf works
674 :
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680 export CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
682 export SHELL
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
689 else
690 # maybe with a smaller string...
691 prev=:
692
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695 then
696 break
697 fi
698 prev="$cmd"
699 done
700
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705 else
706 # Oops. We lost completely, so just stick with echo.
707 ECHO=echo
708 fi
709 fi
710 fi
711 fi
712 fi
713 fi
714
715 # Copy echo and quote the copy suitably for passing to libtool from
716 # the Makefile, instead of quoting the original, which is used later.
717 lt_ECHO=$ECHO
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720 fi
721
722
723
724
725 exec 7<&0 </dev/null 6>&1
726
727 # Name of the host.
728 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729 # so uname gets run too.
730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732 #
733 # Initializations.
734 #
735 ac_default_prefix=/usr/local
736 ac_clean_files=
737 ac_config_libobj_dir=.
738 LIBOBJS=
739 cross_compiling=no
740 subdirs=
741 MFLAGS=
742 MAKEFLAGS=
743 SHELL=${CONFIG_SHELL-/bin/sh}
744
745 # Identity of this package.
746 PACKAGE_NAME='xf86-video-mga'
747 PACKAGE_TARNAME='xf86-video-mga'
748 PACKAGE_VERSION='1.4.12'
749 PACKAGE_STRING='xf86-video-mga 1.4.12'
750 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
751
752 ac_unique_file="Makefile.am"
753 # Factoring default headers for most tests.
754 ac_includes_default="\
755 #include <stdio.h>
756 #ifdef HAVE_SYS_TYPES_H
757 # include <sys/types.h>
758 #endif
759 #ifdef HAVE_SYS_STAT_H
760 # include <sys/stat.h>
761 #endif
762 #ifdef STDC_HEADERS
763 # include <stdlib.h>
764 # include <stddef.h>
765 #else
766 # ifdef HAVE_STDLIB_H
767 # include <stdlib.h>
768 # endif
769 #endif
770 #ifdef HAVE_STRING_H
771 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
772 # include <memory.h>
773 # endif
774 # include <string.h>
775 #endif
776 #ifdef HAVE_STRINGS_H
777 # include <strings.h>
778 #endif
779 #ifdef HAVE_INTTYPES_H
780 # include <inttypes.h>
781 #endif
782 #ifdef HAVE_STDINT_H
783 # include <stdint.h>
784 #endif
785 #ifdef HAVE_UNISTD_H
786 # include <unistd.h>
787 #endif"
788
789 ac_subst_vars='am__EXEEXT_FALSE
790 am__EXEEXT_TRUE
791 LTLIBOBJS
792 LIBOBJS
793 DRIVER_NAME
794 moduledir
795 USE_EXA_FALSE
796 USE_EXA_TRUE
797 USE_XAA_FALSE
798 USE_XAA_TRUE
799 XSERVER_LIBPCIACCESS_FALSE
800 XSERVER_LIBPCIACCESS_TRUE
801 PCIACCESS_LIBS
802 PCIACCESS_CFLAGS
803 DRI_LIBS
804 DRI_CFLAGS
805 DRI_FALSE
806 DRI_TRUE
807 XORG_LIBS
808 XORG_CFLAGS
809 OTOOL64
810 OTOOL
811 LIPO
812 NMEDIT
813 DSYMUTIL
814 lt_ECHO
815 RANLIB
816 AR
817 OBJDUMP
818 LN_S
819 NM
820 ac_ct_DUMPBIN
821 DUMPBIN
822 LD
823 FGREP
824 SED
825 LIBTOOL
826 MAINT
827 MAINTAINER_MODE_FALSE
828 MAINTAINER_MODE_TRUE
829 am__fastdepCC_FALSE
830 am__fastdepCC_TRUE
831 CCDEPMODE
832 AMDEPBACKSLASH
833 AMDEP_FALSE
834 AMDEP_TRUE
835 am__quote
836 am__include
837 DEPDIR
838 am__untar
839 am__tar
840 AMTAR
841 am__leading_dot
842 SET_MAKE
843 AWK
844 mkdir_p
845 MKDIR_P
846 INSTALL_STRIP_PROGRAM
847 STRIP
848 install_sh
849 MAKEINFO
850 AUTOHEADER
851 AUTOMAKE
852 AUTOCONF
853 ACLOCAL
854 VERSION
855 PACKAGE
856 CYGPATH_W
857 am__isrc
858 INSTALL_DATA
859 INSTALL_SCRIPT
860 INSTALL_PROGRAM
861 ADMIN_MAN_DIR
862 DRIVER_MAN_DIR
863 MISC_MAN_DIR
864 FILE_MAN_DIR
865 LIB_MAN_DIR
866 APP_MAN_DIR
867 ADMIN_MAN_SUFFIX
868 DRIVER_MAN_SUFFIX
869 MISC_MAN_SUFFIX
870 FILE_MAN_SUFFIX
871 LIB_MAN_SUFFIX
872 APP_MAN_SUFFIX
873 host_os
874 host_vendor
875 host_cpu
876 host
877 build_os
878 build_vendor
879 build_cpu
880 build
881 INSTALL_CMD
882 PKG_CONFIG
883 CHANGELOG_CMD
884 AM_BACKSLASH
885 AM_DEFAULT_VERBOSITY
886 CWARNFLAGS
887 EGREP
888 GREP
889 CPP
890 OBJEXT
891 EXEEXT
892 ac_ct_CC
893 CPPFLAGS
894 LDFLAGS
895 CFLAGS
896 CC
897 target_alias
898 host_alias
899 build_alias
900 LIBS
901 ECHO_T
902 ECHO_N
903 ECHO_C
904 DEFS
905 mandir
906 localedir
907 libdir
908 psdir
909 pdfdir
910 dvidir
911 htmldir
912 infodir
913 docdir
914 oldincludedir
915 includedir
916 localstatedir
917 sharedstatedir
918 sysconfdir
919 datadir
920 datarootdir
921 libexecdir
922 sbindir
923 bindir
924 program_transform_name
925 prefix
926 exec_prefix
927 PACKAGE_BUGREPORT
928 PACKAGE_STRING
929 PACKAGE_VERSION
930 PACKAGE_TARNAME
931 PACKAGE_NAME
932 PATH_SEPARATOR
933 SHELL'
934 ac_subst_files=''
935 ac_user_opts='
936 enable_option_checking
937 enable_silent_rules
938 enable_strict_compilation
939 with_release_version
940 enable_dependency_tracking
941 enable_maintainer_mode
942 enable_static
943 enable_shared
944 with_pic
945 enable_fast_install
946 with_gnu_ld
947 enable_libtool_lock
948 with_xorg_module_dir
949 enable_dri
950 enable_exa
951 '
952 ac_precious_vars='build_alias
953 host_alias
954 target_alias
955 CC
956 CFLAGS
957 LDFLAGS
958 LIBS
959 CPPFLAGS
960 CPP
961 PKG_CONFIG
962 XORG_CFLAGS
963 XORG_LIBS
964 DRI_CFLAGS
965 DRI_LIBS
966 PCIACCESS_CFLAGS
967 PCIACCESS_LIBS'
968
969
970 # Initialize some variables set by options.
971 ac_init_help=
972 ac_init_version=false
973 ac_unrecognized_opts=
974 ac_unrecognized_sep=
975 # The variables have the same names as the options, with
976 # dashes changed to underlines.
977 cache_file=/dev/null
978 exec_prefix=NONE
979 no_create=
980 no_recursion=
981 prefix=NONE
982 program_prefix=NONE
983 program_suffix=NONE
984 program_transform_name=s,x,x,
985 silent=
986 site=
987 srcdir=
988 verbose=
989 x_includes=NONE
990 x_libraries=NONE
991
992 # Installation directory options.
993 # These are left unexpanded so users can "make install exec_prefix=/foo"
994 # and all the variables that are supposed to be based on exec_prefix
995 # by default will actually change.
996 # Use braces instead of parens because sh, perl, etc. also accept them.
997 # (The list follows the same order as the GNU Coding Standards.)
998 bindir='${exec_prefix}/bin'
999 sbindir='${exec_prefix}/sbin'
1000 libexecdir='${exec_prefix}/libexec'
1001 datarootdir='${prefix}/share'
1002 datadir='${datarootdir}'
1003 sysconfdir='${prefix}/etc'
1004 sharedstatedir='${prefix}/com'
1005 localstatedir='${prefix}/var'
1006 includedir='${prefix}/include'
1007 oldincludedir='/usr/include'
1008 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1009 infodir='${datarootdir}/info'
1010 htmldir='${docdir}'
1011 dvidir='${docdir}'
1012 pdfdir='${docdir}'
1013 psdir='${docdir}'
1014 libdir='${exec_prefix}/lib'
1015 localedir='${datarootdir}/locale'
1016 mandir='${datarootdir}/man'
1017
1018 ac_prev=
1019 ac_dashdash=
1020 for ac_option
1021 do
1022 # If the previous option needs an argument, assign it.
1023 if test -n "$ac_prev"; then
1024 eval $ac_prev=\$ac_option
1025 ac_prev=
1026 continue
1027 fi
1028
1029 case $ac_option in
1030 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1031 *) ac_optarg=yes ;;
1032 esac
1033
1034 # Accept the important Cygnus configure options, so we can diagnose typos.
1035
1036 case $ac_dashdash$ac_option in
1037 --)
1038 ac_dashdash=yes ;;
1039
1040 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1041 ac_prev=bindir ;;
1042 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1043 bindir=$ac_optarg ;;
1044
1045 -build | --build | --buil | --bui | --bu)
1046 ac_prev=build_alias ;;
1047 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1048 build_alias=$ac_optarg ;;
1049
1050 -cache-file | --cache-file | --cache-fil | --cache-fi \
1051 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1052 ac_prev=cache_file ;;
1053 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1054 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1055 cache_file=$ac_optarg ;;
1056
1057 --config-cache | -C)
1058 cache_file=config.cache ;;
1059
1060 -datadir | --datadir | --datadi | --datad)
1061 ac_prev=datadir ;;
1062 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1063 datadir=$ac_optarg ;;
1064
1065 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1066 | --dataroo | --dataro | --datar)
1067 ac_prev=datarootdir ;;
1068 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1069 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1070 datarootdir=$ac_optarg ;;
1071
1072 -disable-* | --disable-*)
1073 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1077 { (exit 1); exit 1; }; }
1078 ac_useropt_orig=$ac_useropt
1079 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080 case $ac_user_opts in
1081 *"
1082 "enable_$ac_useropt"
1083 "*) ;;
1084 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1085 ac_unrecognized_sep=', ';;
1086 esac
1087 eval enable_$ac_useropt=no ;;
1088
1089 -docdir | --docdir | --docdi | --doc | --do)
1090 ac_prev=docdir ;;
1091 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1092 docdir=$ac_optarg ;;
1093
1094 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1095 ac_prev=dvidir ;;
1096 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1097 dvidir=$ac_optarg ;;
1098
1099 -enable-* | --enable-*)
1100 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1104 { (exit 1); exit 1; }; }
1105 ac_useropt_orig=$ac_useropt
1106 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107 case $ac_user_opts in
1108 *"
1109 "enable_$ac_useropt"
1110 "*) ;;
1111 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1112 ac_unrecognized_sep=', ';;
1113 esac
1114 eval enable_$ac_useropt=\$ac_optarg ;;
1115
1116 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1117 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1118 | --exec | --exe | --ex)
1119 ac_prev=exec_prefix ;;
1120 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1121 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1122 | --exec=* | --exe=* | --ex=*)
1123 exec_prefix=$ac_optarg ;;
1124
1125 -gas | --gas | --ga | --g)
1126 # Obsolete; use --with-gas.
1127 with_gas=yes ;;
1128
1129 -help | --help | --hel | --he | -h)
1130 ac_init_help=long ;;
1131 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1132 ac_init_help=recursive ;;
1133 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1134 ac_init_help=short ;;
1135
1136 -host | --host | --hos | --ho)
1137 ac_prev=host_alias ;;
1138 -host=* | --host=* | --hos=* | --ho=*)
1139 host_alias=$ac_optarg ;;
1140
1141 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1142 ac_prev=htmldir ;;
1143 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1144 | --ht=*)
1145 htmldir=$ac_optarg ;;
1146
1147 -includedir | --includedir | --includedi | --included | --include \
1148 | --includ | --inclu | --incl | --inc)
1149 ac_prev=includedir ;;
1150 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1151 | --includ=* | --inclu=* | --incl=* | --inc=*)
1152 includedir=$ac_optarg ;;
1153
1154 -infodir | --infodir | --infodi | --infod | --info | --inf)
1155 ac_prev=infodir ;;
1156 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1157 infodir=$ac_optarg ;;
1158
1159 -libdir | --libdir | --libdi | --libd)
1160 ac_prev=libdir ;;
1161 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1162 libdir=$ac_optarg ;;
1163
1164 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1165 | --libexe | --libex | --libe)
1166 ac_prev=libexecdir ;;
1167 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1168 | --libexe=* | --libex=* | --libe=*)
1169 libexecdir=$ac_optarg ;;
1170
1171 -localedir | --localedir | --localedi | --localed | --locale)
1172 ac_prev=localedir ;;
1173 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1174 localedir=$ac_optarg ;;
1175
1176 -localstatedir | --localstatedir | --localstatedi | --localstated \
1177 | --localstate | --localstat | --localsta | --localst | --locals)
1178 ac_prev=localstatedir ;;
1179 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1180 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1181 localstatedir=$ac_optarg ;;
1182
1183 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1184 ac_prev=mandir ;;
1185 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1186 mandir=$ac_optarg ;;
1187
1188 -nfp | --nfp | --nf)
1189 # Obsolete; use --without-fp.
1190 with_fp=no ;;
1191
1192 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1193 | --no-cr | --no-c | -n)
1194 no_create=yes ;;
1195
1196 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1197 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1198 no_recursion=yes ;;
1199
1200 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1201 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1202 | --oldin | --oldi | --old | --ol | --o)
1203 ac_prev=oldincludedir ;;
1204 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1205 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1206 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1207 oldincludedir=$ac_optarg ;;
1208
1209 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1210 ac_prev=prefix ;;
1211 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1212 prefix=$ac_optarg ;;
1213
1214 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1215 | --program-pre | --program-pr | --program-p)
1216 ac_prev=program_prefix ;;
1217 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1218 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1219 program_prefix=$ac_optarg ;;
1220
1221 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1222 | --program-suf | --program-su | --program-s)
1223 ac_prev=program_suffix ;;
1224 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1225 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1226 program_suffix=$ac_optarg ;;
1227
1228 -program-transform-name | --program-transform-name \
1229 | --program-transform-nam | --program-transform-na \
1230 | --program-transform-n | --program-transform- \
1231 | --program-transform | --program-transfor \
1232 | --program-transfo | --program-transf \
1233 | --program-trans | --program-tran \
1234 | --progr-tra | --program-tr | --program-t)
1235 ac_prev=program_transform_name ;;
1236 -program-transform-name=* | --program-transform-name=* \
1237 | --program-transform-nam=* | --program-transform-na=* \
1238 | --program-transform-n=* | --program-transform-=* \
1239 | --program-transform=* | --program-transfor=* \
1240 | --program-transfo=* | --program-transf=* \
1241 | --program-trans=* | --program-tran=* \
1242 | --progr-tra=* | --program-tr=* | --program-t=*)
1243 program_transform_name=$ac_optarg ;;
1244
1245 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1246 ac_prev=pdfdir ;;
1247 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1248 pdfdir=$ac_optarg ;;
1249
1250 -psdir | --psdir | --psdi | --psd | --ps)
1251 ac_prev=psdir ;;
1252 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1253 psdir=$ac_optarg ;;
1254
1255 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1256 | -silent | --silent | --silen | --sile | --sil)
1257 silent=yes ;;
1258
1259 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1260 ac_prev=sbindir ;;
1261 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1262 | --sbi=* | --sb=*)
1263 sbindir=$ac_optarg ;;
1264
1265 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1266 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1267 | --sharedst | --shareds | --shared | --share | --shar \
1268 | --sha | --sh)
1269 ac_prev=sharedstatedir ;;
1270 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1271 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1272 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1273 | --sha=* | --sh=*)
1274 sharedstatedir=$ac_optarg ;;
1275
1276 -site | --site | --sit)
1277 ac_prev=site ;;
1278 -site=* | --site=* | --sit=*)
1279 site=$ac_optarg ;;
1280
1281 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1282 ac_prev=srcdir ;;
1283 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1284 srcdir=$ac_optarg ;;
1285
1286 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1287 | --syscon | --sysco | --sysc | --sys | --sy)
1288 ac_prev=sysconfdir ;;
1289 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1290 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1291 sysconfdir=$ac_optarg ;;
1292
1293 -target | --target | --targe | --targ | --tar | --ta | --t)
1294 ac_prev=target_alias ;;
1295 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1296 target_alias=$ac_optarg ;;
1297
1298 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1299 verbose=yes ;;
1300
1301 -version | --version | --versio | --versi | --vers | -V)
1302 ac_init_version=: ;;
1303
1304 -with-* | --with-*)
1305 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1306 # Reject names that are not valid shell variable names.
1307 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1308 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1309 { (exit 1); exit 1; }; }
1310 ac_useropt_orig=$ac_useropt
1311 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1312 case $ac_user_opts in
1313 *"
1314 "with_$ac_useropt"
1315 "*) ;;
1316 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1317 ac_unrecognized_sep=', ';;
1318 esac
1319 eval with_$ac_useropt=\$ac_optarg ;;
1320
1321 -without-* | --without-*)
1322 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1323 # Reject names that are not valid shell variable names.
1324 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1325 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1326 { (exit 1); exit 1; }; }
1327 ac_useropt_orig=$ac_useropt
1328 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1329 case $ac_user_opts in
1330 *"
1331 "with_$ac_useropt"
1332 "*) ;;
1333 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1334 ac_unrecognized_sep=', ';;
1335 esac
1336 eval with_$ac_useropt=no ;;
1337
1338 --x)
1339 # Obsolete; use --with-x.
1340 with_x=yes ;;
1341
1342 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1343 | --x-incl | --x-inc | --x-in | --x-i)
1344 ac_prev=x_includes ;;
1345 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1346 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1347 x_includes=$ac_optarg ;;
1348
1349 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1350 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1351 ac_prev=x_libraries ;;
1352 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1353 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1354 x_libraries=$ac_optarg ;;
1355
1356 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1357 Try \`$0 --help' for more information." >&2
1358 { (exit 1); exit 1; }; }
1359 ;;
1360
1361 *=*)
1362 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1363 # Reject names that are not valid shell variable names.
1364 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1365 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1366 { (exit 1); exit 1; }; }
1367 eval $ac_envvar=\$ac_optarg
1368 export $ac_envvar ;;
1369
1370 *)
1371 # FIXME: should be removed in autoconf 3.0.
1372 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1373 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1374 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1375 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1376 ;;
1377
1378 esac
1379 done
1380
1381 if test -n "$ac_prev"; then
1382 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1383 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1384 { (exit 1); exit 1; }; }
1385 fi
1386
1387 if test -n "$ac_unrecognized_opts"; then
1388 case $enable_option_checking in
1389 no) ;;
1390 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1391 { (exit 1); exit 1; }; } ;;
1392 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1393 esac
1394 fi
1395
1396 # Check all directory arguments for consistency.
1397 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1398 datadir sysconfdir sharedstatedir localstatedir includedir \
1399 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1400 libdir localedir mandir
1401 do
1402 eval ac_val=\$$ac_var
1403 # Remove trailing slashes.
1404 case $ac_val in
1405 */ )
1406 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1407 eval $ac_var=\$ac_val;;
1408 esac
1409 # Be sure to have absolute directory names.
1410 case $ac_val in
1411 [\\/$]* | ?:[\\/]* ) continue;;
1412 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1413 esac
1414 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1415 { (exit 1); exit 1; }; }
1416 done
1417
1418 # There might be people who depend on the old broken behavior: `$host'
1419 # used to hold the argument of --host etc.
1420 # FIXME: To remove some day.
1421 build=$build_alias
1422 host=$host_alias
1423 target=$target_alias
1424
1425 # FIXME: To remove some day.
1426 if test "x$host_alias" != x; then
1427 if test "x$build_alias" = x; then
1428 cross_compiling=maybe
1429 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1430 If a cross compiler is detected then cross compile mode will be used." >&2
1431 elif test "x$build_alias" != "x$host_alias"; then
1432 cross_compiling=yes
1433 fi
1434 fi
1435
1436 ac_tool_prefix=
1437 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1438
1439 test "$silent" = yes && exec 6>/dev/null
1440
1441
1442 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1443 ac_ls_di=`ls -di .` &&
1444 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1445 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1446 { (exit 1); exit 1; }; }
1447 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1448 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1449 { (exit 1); exit 1; }; }
1450
1451
1452 # Find the source files, if location was not specified.
1453 if test -z "$srcdir"; then
1454 ac_srcdir_defaulted=yes
1455 # Try the directory containing this script, then the parent directory.
1456 ac_confdir=`$as_dirname -- "$as_myself" ||
1457 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1458 X"$as_myself" : 'X\(//\)[^/]' \| \
1459 X"$as_myself" : 'X\(//\)$' \| \
1460 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1461 $as_echo X"$as_myself" |
1462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1463 s//\1/
1464 q
1465 }
1466 /^X\(\/\/\)[^/].*/{
1467 s//\1/
1468 q
1469 }
1470 /^X\(\/\/\)$/{
1471 s//\1/
1472 q
1473 }
1474 /^X\(\/\).*/{
1475 s//\1/
1476 q
1477 }
1478 s/.*/./; q'`
1479 srcdir=$ac_confdir
1480 if test ! -r "$srcdir/$ac_unique_file"; then
1481 srcdir=..
1482 fi
1483 else
1484 ac_srcdir_defaulted=no
1485 fi
1486 if test ! -r "$srcdir/$ac_unique_file"; then
1487 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1488 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1489 { (exit 1); exit 1; }; }
1490 fi
1491 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1492 ac_abs_confdir=`(
1493 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1494 { (exit 1); exit 1; }; }
1495 pwd)`
1496 # When building in place, set srcdir=.
1497 if test "$ac_abs_confdir" = "$ac_pwd"; then
1498 srcdir=.
1499 fi
1500 # Remove unnecessary trailing slashes from srcdir.
1501 # Double slashes in file names in object file debugging info
1502 # mess up M-x gdb in Emacs.
1503 case $srcdir in
1504 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1505 esac
1506 for ac_var in $ac_precious_vars; do
1507 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1508 eval ac_env_${ac_var}_value=\$${ac_var}
1509 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1510 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1511 done
1512
1513 #
1514 # Report the --help message.
1515 #
1516 if test "$ac_init_help" = "long"; then
1517 # Omit some internal or obsolete options to make the list less imposing.
1518 # This message is too long to be a string in the A/UX 3.1 sh.
1519 cat <<_ACEOF
1520 \`configure' configures xf86-video-mga 1.4.12 to adapt to many kinds of systems.
1521
1522 Usage: $0 [OPTION]... [VAR=VALUE]...
1523
1524 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1525 VAR=VALUE. See below for descriptions of some of the useful variables.
1526
1527 Defaults for the options are specified in brackets.
1528
1529 Configuration:
1530 -h, --help display this help and exit
1531 --help=short display options specific to this package
1532 --help=recursive display the short help of all the included packages
1533 -V, --version display version information and exit
1534 -q, --quiet, --silent do not print \`checking...' messages
1535 --cache-file=FILE cache test results in FILE [disabled]
1536 -C, --config-cache alias for \`--cache-file=config.cache'
1537 -n, --no-create do not create output files
1538 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1539
1540 Installation directories:
1541 --prefix=PREFIX install architecture-independent files in PREFIX
1542 [$ac_default_prefix]
1543 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1544 [PREFIX]
1545
1546 By default, \`make install' will install all the files in
1547 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1548 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1549 for instance \`--prefix=\$HOME'.
1550
1551 For better control, use the options below.
1552
1553 Fine tuning of the installation directories:
1554 --bindir=DIR user executables [EPREFIX/bin]
1555 --sbindir=DIR system admin executables [EPREFIX/sbin]
1556 --libexecdir=DIR program executables [EPREFIX/libexec]
1557 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1558 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1559 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1560 --libdir=DIR object code libraries [EPREFIX/lib]
1561 --includedir=DIR C header files [PREFIX/include]
1562 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1563 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1564 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1565 --infodir=DIR info documentation [DATAROOTDIR/info]
1566 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1567 --mandir=DIR man documentation [DATAROOTDIR/man]
1568 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-mga]
1569 --htmldir=DIR html documentation [DOCDIR]
1570 --dvidir=DIR dvi documentation [DOCDIR]
1571 --pdfdir=DIR pdf documentation [DOCDIR]
1572 --psdir=DIR ps documentation [DOCDIR]
1573 _ACEOF
1574
1575 cat <<\_ACEOF
1576
1577 Program names:
1578 --program-prefix=PREFIX prepend PREFIX to installed program names
1579 --program-suffix=SUFFIX append SUFFIX to installed program names
1580 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1581
1582 System types:
1583 --build=BUILD configure for building on BUILD [guessed]
1584 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1585 _ACEOF
1586 fi
1587
1588 if test -n "$ac_init_help"; then
1589 case $ac_init_help in
1590 short | recursive ) echo "Configuration of xf86-video-mga 1.4.12:";;
1591 esac
1592 cat <<\_ACEOF
1593
1594 Optional Features:
1595 --disable-option-checking ignore unrecognized --enable/--with options
1596 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1597 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1598 --enable-silent-rules less verbose build output (undo: `make V=1')
1599 --disable-silent-rules verbose build output (undo: `make V=0')
1600 --enable-strict-compilation
1601 Enable all warnings from compiler and make them
1602 errors (default: disabled)
1603 --disable-dependency-tracking speeds up one-time build
1604 --enable-dependency-tracking do not reject slow dependency extractors
1605 --enable-maintainer-mode enable make rules and dependencies not useful
1606 (and sometimes confusing) to the casual installer
1607 --enable-static[=PKGS] build static libraries [default=no]
1608 --enable-shared[=PKGS] build shared libraries [default=yes]
1609 --enable-fast-install[=PKGS]
1610 optimize for fast installation [default=yes]
1611 --disable-libtool-lock avoid locking (might break parallel builds)
1612 --disable-dri Disable DRI support [default=auto]
1613 --disable-exa Disable EXA support [default=enabled]
1614
1615 Optional Packages:
1616 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1617 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1618 --with-release-version=STRING
1619 Use release version string in package name
1620 --with-pic try to use only PIC/non-PIC objects [default=use
1621 both]
1622 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1623 --with-xorg-module-dir=DIR
1624 Default xorg module directory
1625 [default=$libdir/xorg/modules]
1626
1627 Some influential environment variables:
1628 CC C compiler command
1629 CFLAGS C compiler flags
1630 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1631 nonstandard directory <lib dir>
1632 LIBS libraries to pass to the linker, e.g. -l<library>
1633 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1634 you have headers in a nonstandard directory <include dir>
1635 CPP C preprocessor
1636 PKG_CONFIG path to pkg-config utility
1637 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1638 XORG_LIBS linker flags for XORG, overriding pkg-config
1639 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config
1640 DRI_LIBS linker flags for DRI, overriding pkg-config
1641 PCIACCESS_CFLAGS
1642 C compiler flags for PCIACCESS, overriding pkg-config
1643 PCIACCESS_LIBS
1644 linker flags for PCIACCESS, overriding pkg-config
1645
1646 Use these variables to override the choices made by `configure' or to help
1647 it to find libraries and programs with nonstandard names/locations.
1648
1649 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1650 _ACEOF
1651 ac_status=$?
1652 fi
1653
1654 if test "$ac_init_help" = "recursive"; then
1655 # If there are subdirs, report their specific --help.
1656 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1657 test -d "$ac_dir" ||
1658 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1659 continue
1660 ac_builddir=.
1661
1662 case "$ac_dir" in
1663 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1664 *)
1665 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1666 # A ".." for each directory in $ac_dir_suffix.
1667 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1668 case $ac_top_builddir_sub in
1669 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1670 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1671 esac ;;
1672 esac
1673 ac_abs_top_builddir=$ac_pwd
1674 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1675 # for backward compatibility:
1676 ac_top_builddir=$ac_top_build_prefix
1677
1678 case $srcdir in
1679 .) # We are building in place.
1680 ac_srcdir=.
1681 ac_top_srcdir=$ac_top_builddir_sub
1682 ac_abs_top_srcdir=$ac_pwd ;;
1683 [\\/]* | ?:[\\/]* ) # Absolute name.
1684 ac_srcdir=$srcdir$ac_dir_suffix;
1685 ac_top_srcdir=$srcdir
1686 ac_abs_top_srcdir=$srcdir ;;
1687 *) # Relative name.
1688 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1689 ac_top_srcdir=$ac_top_build_prefix$srcdir
1690 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1691 esac
1692 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1693
1694 cd "$ac_dir" || { ac_status=$?; continue; }
1695 # Check for guested configure.
1696 if test -f "$ac_srcdir/configure.gnu"; then
1697 echo &&
1698 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1699 elif test -f "$ac_srcdir/configure"; then
1700 echo &&
1701 $SHELL "$ac_srcdir/configure" --help=recursive
1702 else
1703 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1704 fi || ac_status=$?
1705 cd "$ac_pwd" || { ac_status=$?; break; }
1706 done
1707 fi
1708
1709 test -n "$ac_init_help" && exit $ac_status
1710 if $ac_init_version; then
1711 cat <<\_ACEOF
1712 xf86-video-mga configure 1.4.12
1713 generated by GNU Autoconf 2.63
1714
1715 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1716 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1717 This configure script is free software; the Free Software Foundation
1718 gives unlimited permission to copy, distribute and modify it.
1719 _ACEOF
1720 exit
1721 fi
1722 cat >config.log <<_ACEOF
1723 This file contains any messages produced by compilers while
1724 running configure, to aid debugging if configure makes a mistake.
1725
1726 It was created by xf86-video-mga $as_me 1.4.12, which was
1727 generated by GNU Autoconf 2.63. Invocation command line was
1728
1729 $ $0 $@
1730
1731 _ACEOF
1732 exec 5>>config.log
1733 {
1734 cat <<_ASUNAME
1735 ## --------- ##
1736 ## Platform. ##
1737 ## --------- ##
1738
1739 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1740 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1741 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1742 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1743 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1744
1745 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1746 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1747
1748 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1749 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1750 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1751 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1752 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1753 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1754 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1755
1756 _ASUNAME
1757
1758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1759 for as_dir in $PATH
1760 do
1761 IFS=$as_save_IFS
1762 test -z "$as_dir" && as_dir=.
1763 $as_echo "PATH: $as_dir"
1764 done
1765 IFS=$as_save_IFS
1766
1767 } >&5
1768
1769 cat >&5 <<_ACEOF
1770
1771
1772 ## ----------- ##
1773 ## Core tests. ##
1774 ## ----------- ##
1775
1776 _ACEOF
1777
1778
1779 # Keep a trace of the command line.
1780 # Strip out --no-create and --no-recursion so they do not pile up.
1781 # Strip out --silent because we don't want to record it for future runs.
1782 # Also quote any args containing shell meta-characters.
1783 # Make two passes to allow for proper duplicate-argument suppression.
1784 ac_configure_args=
1785 ac_configure_args0=
1786 ac_configure_args1=
1787 ac_must_keep_next=false
1788 for ac_pass in 1 2
1789 do
1790 for ac_arg
1791 do
1792 case $ac_arg in
1793 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1794 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1795 | -silent | --silent | --silen | --sile | --sil)
1796 continue ;;
1797 *\'*)
1798 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1799 esac
1800 case $ac_pass in
1801 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1802 2)
1803 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1804 if test $ac_must_keep_next = true; then
1805 ac_must_keep_next=false # Got value, back to normal.
1806 else
1807 case $ac_arg in
1808 *=* | --config-cache | -C | -disable-* | --disable-* \
1809 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1810 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1811 | -with-* | --with-* | -without-* | --without-* | --x)
1812 case "$ac_configure_args0 " in
1813 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1814 esac
1815 ;;
1816 -* ) ac_must_keep_next=true ;;
1817 esac
1818 fi
1819 ac_configure_args="$ac_configure_args '$ac_arg'"
1820 ;;
1821 esac
1822 done
1823 done
1824 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1825 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1826
1827 # When interrupted or exit'd, cleanup temporary files, and complete
1828 # config.log. We remove comments because anyway the quotes in there
1829 # would cause problems or look ugly.
1830 # WARNING: Use '\'' to represent an apostrophe within the trap.
1831 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1832 trap 'exit_status=$?
1833 # Save into config.log some information that might help in debugging.
1834 {
1835 echo
1836
1837 cat <<\_ASBOX
1838 ## ---------------- ##
1839 ## Cache variables. ##
1840 ## ---------------- ##
1841 _ASBOX
1842 echo
1843 # The following way of writing the cache mishandles newlines in values,
1844 (
1845 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1846 eval ac_val=\$$ac_var
1847 case $ac_val in #(
1848 *${as_nl}*)
1849 case $ac_var in #(
1850 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1851 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1852 esac
1853 case $ac_var in #(
1854 _ | IFS | as_nl) ;; #(
1855 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1856 *) $as_unset $ac_var ;;
1857 esac ;;
1858 esac
1859 done
1860 (set) 2>&1 |
1861 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1862 *${as_nl}ac_space=\ *)
1863 sed -n \
1864 "s/'\''/'\''\\\\'\'''\''/g;
1865 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1866 ;; #(
1867 *)
1868 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1869 ;;
1870 esac |
1871 sort
1872 )
1873 echo
1874
1875 cat <<\_ASBOX
1876 ## ----------------- ##
1877 ## Output variables. ##
1878 ## ----------------- ##
1879 _ASBOX
1880 echo
1881 for ac_var in $ac_subst_vars
1882 do
1883 eval ac_val=\$$ac_var
1884 case $ac_val in
1885 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1886 esac
1887 $as_echo "$ac_var='\''$ac_val'\''"
1888 done | sort
1889 echo
1890
1891 if test -n "$ac_subst_files"; then
1892 cat <<\_ASBOX
1893 ## ------------------- ##
1894 ## File substitutions. ##
1895 ## ------------------- ##
1896 _ASBOX
1897 echo
1898 for ac_var in $ac_subst_files
1899 do
1900 eval ac_val=\$$ac_var
1901 case $ac_val in
1902 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1903 esac
1904 $as_echo "$ac_var='\''$ac_val'\''"
1905 done | sort
1906 echo
1907 fi
1908
1909 if test -s confdefs.h; then
1910 cat <<\_ASBOX
1911 ## ----------- ##
1912 ## confdefs.h. ##
1913 ## ----------- ##
1914 _ASBOX
1915 echo
1916 cat confdefs.h
1917 echo
1918 fi
1919 test "$ac_signal" != 0 &&
1920 $as_echo "$as_me: caught signal $ac_signal"
1921 $as_echo "$as_me: exit $exit_status"
1922 } >&5
1923 rm -f core *.core core.conftest.* &&
1924 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1925 exit $exit_status
1926 ' 0
1927 for ac_signal in 1 2 13 15; do
1928 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1929 done
1930 ac_signal=0
1931
1932 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1933 rm -f -r conftest* confdefs.h
1934
1935 # Predefined preprocessor variables.
1936
1937 cat >>confdefs.h <<_ACEOF
1938 #define PACKAGE_NAME "$PACKAGE_NAME"
1939 _ACEOF
1940
1941
1942 cat >>confdefs.h <<_ACEOF
1943 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1944 _ACEOF
1945
1946
1947 cat >>confdefs.h <<_ACEOF
1948 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1949 _ACEOF
1950
1951
1952 cat >>confdefs.h <<_ACEOF
1953 #define PACKAGE_STRING "$PACKAGE_STRING"
1954 _ACEOF
1955
1956
1957 cat >>confdefs.h <<_ACEOF
1958 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1959 _ACEOF
1960
1961
1962 # Let the site file select an alternate cache file if it wants to.
1963 # Prefer an explicitly selected file to automatically selected ones.
1964 ac_site_file1=NONE
1965 ac_site_file2=NONE
1966 if test -n "$CONFIG_SITE"; then
1967 ac_site_file1=$CONFIG_SITE
1968 elif test "x$prefix" != xNONE; then
1969 ac_site_file1=$prefix/share/config.site
1970 ac_site_file2=$prefix/etc/config.site
1971 else
1972 ac_site_file1=$ac_default_prefix/share/config.site
1973 ac_site_file2=$ac_default_prefix/etc/config.site
1974 fi
1975 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1976 do
1977 test "x$ac_site_file" = xNONE && continue
1978 if test -r "$ac_site_file"; then
1979 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1980 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1981 sed 's/^/| /' "$ac_site_file" >&5
1982 . "$ac_site_file"
1983 fi
1984 done
1985
1986 if test -r "$cache_file"; then
1987 # Some versions of bash will fail to source /dev/null (special
1988 # files actually), so we avoid doing that.
1989 if test -f "$cache_file"; then
1990 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1991 $as_echo "$as_me: loading cache $cache_file" >&6;}
1992 case $cache_file in
1993 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1994 *) . "./$cache_file";;
1995 esac
1996 fi
1997 else
1998 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1999 $as_echo "$as_me: creating cache $cache_file" >&6;}
2000 >$cache_file
2001 fi
2002
2003 # Check that the precious variables saved in the cache have kept the same
2004 # value.
2005 ac_cache_corrupted=false
2006 for ac_var in $ac_precious_vars; do
2007 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2008 eval ac_new_set=\$ac_env_${ac_var}_set
2009 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2010 eval ac_new_val=\$ac_env_${ac_var}_value
2011 case $ac_old_set,$ac_new_set in
2012 set,)
2013 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2014 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2015 ac_cache_corrupted=: ;;
2016 ,set)
2017 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2018 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2019 ac_cache_corrupted=: ;;
2020 ,);;
2021 *)
2022 if test "x$ac_old_val" != "x$ac_new_val"; then
2023 # differences in whitespace do not lead to failure.
2024 ac_old_val_w=`echo x $ac_old_val`
2025 ac_new_val_w=`echo x $ac_new_val`
2026 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2027 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2028 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2029 ac_cache_corrupted=:
2030 else
2031 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2032 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2033 eval $ac_var=\$ac_old_val
2034 fi
2035 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2036 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2037 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2038 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2039 fi;;
2040 esac
2041 # Pass precious variables to config.status.
2042 if test "$ac_new_set" = set; then
2043 case $ac_new_val in
2044 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2045 *) ac_arg=$ac_var=$ac_new_val ;;
2046 esac
2047 case " $ac_configure_args " in
2048 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2049 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2050 esac
2051 fi
2052 done
2053 if $ac_cache_corrupted; then
2054 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2056 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2057 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2058 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2059 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2060 { (exit 1); exit 1; }; }
2061 fi
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087 ac_ext=c
2088 ac_cpp='$CPP $CPPFLAGS'
2089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2092
2093
2094
2095
2096 ac_config_headers="$ac_config_headers config.h"
2097
2098
2099 # Require xorg-macros: XORG_DEFAULT_OPTIONS
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111 ac_ext=c
2112 ac_cpp='$CPP $CPPFLAGS'
2113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2116 if test -n "$ac_tool_prefix"; then
2117 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2118 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2119 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2120 $as_echo_n "checking for $ac_word... " >&6; }
2121 if test "${ac_cv_prog_CC+set}" = set; then
2122 $as_echo_n "(cached) " >&6
2123 else
2124 if test -n "$CC"; then
2125 ac_cv_prog_CC="$CC" # Let the user override the test.
2126 else
2127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128 for as_dir in $PATH
2129 do
2130 IFS=$as_save_IFS
2131 test -z "$as_dir" && as_dir=.
2132 for ac_exec_ext in '' $ac_executable_extensions; do
2133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2134 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2135 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2136 break 2
2137 fi
2138 done
2139 done
2140 IFS=$as_save_IFS
2141
2142 fi
2143 fi
2144 CC=$ac_cv_prog_CC
2145 if test -n "$CC"; then
2146 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2147 $as_echo "$CC" >&6; }
2148 else
2149 { $as_echo "$as_me:$LINENO: result: no" >&5
2150 $as_echo "no" >&6; }
2151 fi
2152
2153
2154 fi
2155 if test -z "$ac_cv_prog_CC"; then
2156 ac_ct_CC=$CC
2157 # Extract the first word of "gcc", so it can be a program name with args.
2158 set dummy gcc; ac_word=$2
2159 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2160 $as_echo_n "checking for $ac_word... " >&6; }
2161 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2162 $as_echo_n "(cached) " >&6
2163 else
2164 if test -n "$ac_ct_CC"; then
2165 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2166 else
2167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168 for as_dir in $PATH
2169 do
2170 IFS=$as_save_IFS
2171 test -z "$as_dir" && as_dir=.
2172 for ac_exec_ext in '' $ac_executable_extensions; do
2173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2174 ac_cv_prog_ac_ct_CC="gcc"
2175 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2176 break 2
2177 fi
2178 done
2179 done
2180 IFS=$as_save_IFS
2181
2182 fi
2183 fi
2184 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2185 if test -n "$ac_ct_CC"; then
2186 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2187 $as_echo "$ac_ct_CC" >&6; }
2188 else
2189 { $as_echo "$as_me:$LINENO: result: no" >&5
2190 $as_echo "no" >&6; }
2191 fi
2192
2193 if test "x$ac_ct_CC" = x; then
2194 CC=""
2195 else
2196 case $cross_compiling:$ac_tool_warned in
2197 yes:)
2198 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2200 ac_tool_warned=yes ;;
2201 esac
2202 CC=$ac_ct_CC
2203 fi
2204 else
2205 CC="$ac_cv_prog_CC"
2206 fi
2207
2208 if test -z "$CC"; then
2209 if test -n "$ac_tool_prefix"; then
2210 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2211 set dummy ${ac_tool_prefix}cc; ac_word=$2
2212 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2213 $as_echo_n "checking for $ac_word... " >&6; }
2214 if test "${ac_cv_prog_CC+set}" = set; then
2215 $as_echo_n "(cached) " >&6
2216 else
2217 if test -n "$CC"; then
2218 ac_cv_prog_CC="$CC" # Let the user override the test.
2219 else
2220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2221 for as_dir in $PATH
2222 do
2223 IFS=$as_save_IFS
2224 test -z "$as_dir" && as_dir=.
2225 for ac_exec_ext in '' $ac_executable_extensions; do
2226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2227 ac_cv_prog_CC="${ac_tool_prefix}cc"
2228 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2229 break 2
2230 fi
2231 done
2232 done
2233 IFS=$as_save_IFS
2234
2235 fi
2236 fi
2237 CC=$ac_cv_prog_CC
2238 if test -n "$CC"; then
2239 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2240 $as_echo "$CC" >&6; }
2241 else
2242 { $as_echo "$as_me:$LINENO: result: no" >&5
2243 $as_echo "no" >&6; }
2244 fi
2245
2246
2247 fi
2248 fi
2249 if test -z "$CC"; then
2250 # Extract the first word of "cc", so it can be a program name with args.
2251 set dummy cc; ac_word=$2
2252 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2253 $as_echo_n "checking for $ac_word... " >&6; }
2254 if test "${ac_cv_prog_CC+set}" = set; then
2255 $as_echo_n "(cached) " >&6
2256 else
2257 if test -n "$CC"; then
2258 ac_cv_prog_CC="$CC" # Let the user override the test.
2259 else
2260 ac_prog_rejected=no
2261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2262 for as_dir in $PATH
2263 do
2264 IFS=$as_save_IFS
2265 test -z "$as_dir" && as_dir=.
2266 for ac_exec_ext in '' $ac_executable_extensions; do
2267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2268 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2269 ac_prog_rejected=yes
2270 continue
2271 fi
2272 ac_cv_prog_CC="cc"
2273 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2274 break 2
2275 fi
2276 done
2277 done
2278 IFS=$as_save_IFS
2279
2280 if test $ac_prog_rejected = yes; then
2281 # We found a bogon in the path, so make sure we never use it.
2282 set dummy $ac_cv_prog_CC
2283 shift
2284 if test $# != 0; then
2285 # We chose a different compiler from the bogus one.
2286 # However, it has the same basename, so the bogon will be chosen
2287 # first if we set CC to just the basename; use the full file name.
2288 shift
2289 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2290 fi
2291 fi
2292 fi
2293 fi
2294 CC=$ac_cv_prog_CC
2295 if test -n "$CC"; then
2296 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2297 $as_echo "$CC" >&6; }
2298 else
2299 { $as_echo "$as_me:$LINENO: result: no" >&5
2300 $as_echo "no" >&6; }
2301 fi
2302
2303
2304 fi
2305 if test -z "$CC"; then
2306 if test -n "$ac_tool_prefix"; then
2307 for ac_prog in cl.exe
2308 do
2309 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2310 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2311 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2312 $as_echo_n "checking for $ac_word... " >&6; }
2313 if test "${ac_cv_prog_CC+set}" = set; then
2314 $as_echo_n "(cached) " >&6
2315 else
2316 if test -n "$CC"; then
2317 ac_cv_prog_CC="$CC" # Let the user override the test.
2318 else
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 for as_dir in $PATH
2321 do
2322 IFS=$as_save_IFS
2323 test -z "$as_dir" && as_dir=.
2324 for ac_exec_ext in '' $ac_executable_extensions; do
2325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2326 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2327 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2328 break 2
2329 fi
2330 done
2331 done
2332 IFS=$as_save_IFS
2333
2334 fi
2335 fi
2336 CC=$ac_cv_prog_CC
2337 if test -n "$CC"; then
2338 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2339 $as_echo "$CC" >&6; }
2340 else
2341 { $as_echo "$as_me:$LINENO: result: no" >&5
2342 $as_echo "no" >&6; }
2343 fi
2344
2345
2346 test -n "$CC" && break
2347 done
2348 fi
2349 if test -z "$CC"; then
2350 ac_ct_CC=$CC
2351 for ac_prog in cl.exe
2352 do
2353 # Extract the first word of "$ac_prog", so it can be a program name with args.
2354 set dummy $ac_prog; ac_word=$2
2355 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2356 $as_echo_n "checking for $ac_word... " >&6; }
2357 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2358 $as_echo_n "(cached) " >&6
2359 else
2360 if test -n "$ac_ct_CC"; then
2361 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2362 else
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 for as_dir in $PATH
2365 do
2366 IFS=$as_save_IFS
2367 test -z "$as_dir" && as_dir=.
2368 for ac_exec_ext in '' $ac_executable_extensions; do
2369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2370 ac_cv_prog_ac_ct_CC="$ac_prog"
2371 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2372 break 2
2373 fi
2374 done
2375 done
2376 IFS=$as_save_IFS
2377
2378 fi
2379 fi
2380 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2381 if test -n "$ac_ct_CC"; then
2382 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2383 $as_echo "$ac_ct_CC" >&6; }
2384 else
2385 { $as_echo "$as_me:$LINENO: result: no" >&5
2386 $as_echo "no" >&6; }
2387 fi
2388
2389
2390 test -n "$ac_ct_CC" && break
2391 done
2392
2393 if test "x$ac_ct_CC" = x; then
2394 CC=""
2395 else
2396 case $cross_compiling:$ac_tool_warned in
2397 yes:)
2398 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2400 ac_tool_warned=yes ;;
2401 esac
2402 CC=$ac_ct_CC
2403 fi
2404 fi
2405
2406 fi
2407
2408
2409 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2411 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2412 See \`config.log' for more details." >&5
2413 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2414 See \`config.log' for more details." >&2;}
2415 { (exit 1); exit 1; }; }; }
2416
2417 # Provide some information about the compiler.
2418 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2419 set X $ac_compile
2420 ac_compiler=$2
2421 { (ac_try="$ac_compiler --version >&5"
2422 case "(($ac_try" in
2423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424 *) ac_try_echo=$ac_try;;
2425 esac
2426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2427 $as_echo "$ac_try_echo") >&5
2428 (eval "$ac_compiler --version >&5") 2>&5
2429 ac_status=$?
2430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); }
2432 { (ac_try="$ac_compiler -v >&5"
2433 case "(($ac_try" in
2434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2435 *) ac_try_echo=$ac_try;;
2436 esac
2437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2438 $as_echo "$ac_try_echo") >&5
2439 (eval "$ac_compiler -v >&5") 2>&5
2440 ac_status=$?
2441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }
2443 { (ac_try="$ac_compiler -V >&5"
2444 case "(($ac_try" in
2445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2446 *) ac_try_echo=$ac_try;;
2447 esac
2448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2449 $as_echo "$ac_try_echo") >&5
2450 (eval "$ac_compiler -V >&5") 2>&5
2451 ac_status=$?
2452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }
2454
2455 cat >conftest.$ac_ext <<_ACEOF
2456 /* confdefs.h. */
2457 _ACEOF
2458 cat confdefs.h >>conftest.$ac_ext
2459 cat >>conftest.$ac_ext <<_ACEOF
2460 /* end confdefs.h. */
2461
2462 int
2463 main ()
2464 {
2465
2466 ;
2467 return 0;
2468 }
2469 _ACEOF
2470 ac_clean_files_save=$ac_clean_files
2471 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2472 # Try to create an executable without -o first, disregard a.out.
2473 # It will help us diagnose broken compilers, and finding out an intuition
2474 # of exeext.
2475 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2476 $as_echo_n "checking for C compiler default output file name... " >&6; }
2477 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2478
2479 # The possible output files:
2480 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2481
2482 ac_rmfiles=
2483 for ac_file in $ac_files
2484 do
2485 case $ac_file in
2486 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2487 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2488 esac
2489 done
2490 rm -f $ac_rmfiles
2491
2492 if { (ac_try="$ac_link_default"
2493 case "(($ac_try" in
2494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2495 *) ac_try_echo=$ac_try;;
2496 esac
2497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2498 $as_echo "$ac_try_echo") >&5
2499 (eval "$ac_link_default") 2>&5
2500 ac_status=$?
2501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); }; then
2503 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2504 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2505 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2506 # so that the user can short-circuit this test for compilers unknown to
2507 # Autoconf.
2508 for ac_file in $ac_files ''
2509 do
2510 test -f "$ac_file" || continue
2511 case $ac_file in
2512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2513 ;;
2514 [ab].out )
2515 # We found the default executable, but exeext='' is most
2516 # certainly right.
2517 break;;
2518 *.* )
2519 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2520 then :; else
2521 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2522 fi
2523 # We set ac_cv_exeext here because the later test for it is not
2524 # safe: cross compilers may not add the suffix if given an `-o'
2525 # argument, so we may need to know it at that point already.
2526 # Even if this section looks crufty: it has the advantage of
2527 # actually working.
2528 break;;
2529 * )
2530 break;;
2531 esac
2532 done
2533 test "$ac_cv_exeext" = no && ac_cv_exeext=
2534
2535 else
2536 ac_file=''
2537 fi
2538
2539 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2540 $as_echo "$ac_file" >&6; }
2541 if test -z "$ac_file"; then
2542 $as_echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2544
2545 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2547 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2548 See \`config.log' for more details." >&5
2549 $as_echo "$as_me: error: C compiler cannot create executables
2550 See \`config.log' for more details." >&2;}
2551 { (exit 77); exit 77; }; }; }
2552 fi
2553
2554 ac_exeext=$ac_cv_exeext
2555
2556 # Check that the compiler produces executables we can run. If not, either
2557 # the compiler is broken, or we cross compile.
2558 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2559 $as_echo_n "checking whether the C compiler works... " >&6; }
2560 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2561 # If not cross compiling, check that we can run a simple program.
2562 if test "$cross_compiling" != yes; then
2563 if { ac_try='./$ac_file'
2564 { (case "(($ac_try" in
2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566 *) ac_try_echo=$ac_try;;
2567 esac
2568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2569 $as_echo "$ac_try_echo") >&5
2570 (eval "$ac_try") 2>&5
2571 ac_status=$?
2572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }; }; then
2574 cross_compiling=no
2575 else
2576 if test "$cross_compiling" = maybe; then
2577 cross_compiling=yes
2578 else
2579 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2581 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2582 If you meant to cross compile, use \`--host'.
2583 See \`config.log' for more details." >&5
2584 $as_echo "$as_me: error: cannot run C compiled programs.
2585 If you meant to cross compile, use \`--host'.
2586 See \`config.log' for more details." >&2;}
2587 { (exit 1); exit 1; }; }; }
2588 fi
2589 fi
2590 fi
2591 { $as_echo "$as_me:$LINENO: result: yes" >&5
2592 $as_echo "yes" >&6; }
2593
2594 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2595 ac_clean_files=$ac_clean_files_save
2596 # Check that the compiler produces executables we can run. If not, either
2597 # the compiler is broken, or we cross compile.
2598 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2599 $as_echo_n "checking whether we are cross compiling... " >&6; }
2600 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2601 $as_echo "$cross_compiling" >&6; }
2602
2603 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2604 $as_echo_n "checking for suffix of executables... " >&6; }
2605 if { (ac_try="$ac_link"
2606 case "(($ac_try" in
2607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608 *) ac_try_echo=$ac_try;;
2609 esac
2610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2611 $as_echo "$ac_try_echo") >&5
2612 (eval "$ac_link") 2>&5
2613 ac_status=$?
2614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; then
2616 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2617 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2618 # work properly (i.e., refer to `conftest.exe'), while it won't with
2619 # `rm'.
2620 for ac_file in conftest.exe conftest conftest.*; do
2621 test -f "$ac_file" || continue
2622 case $ac_file in
2623 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2624 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2625 break;;
2626 * ) break;;
2627 esac
2628 done
2629 else
2630 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2631 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2632 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2633 See \`config.log' for more details." >&5
2634 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2635 See \`config.log' for more details." >&2;}
2636 { (exit 1); exit 1; }; }; }
2637 fi
2638
2639 rm -f conftest$ac_cv_exeext
2640 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2641 $as_echo "$ac_cv_exeext" >&6; }
2642
2643 rm -f conftest.$ac_ext
2644 EXEEXT=$ac_cv_exeext
2645 ac_exeext=$EXEEXT
2646 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2647 $as_echo_n "checking for suffix of object files... " >&6; }
2648 if test "${ac_cv_objext+set}" = set; then
2649 $as_echo_n "(cached) " >&6
2650 else
2651 cat >conftest.$ac_ext <<_ACEOF
2652 /* confdefs.h. */
2653 _ACEOF
2654 cat confdefs.h >>conftest.$ac_ext
2655 cat >>conftest.$ac_ext <<_ACEOF
2656 /* end confdefs.h. */
2657
2658 int
2659 main ()
2660 {
2661
2662 ;
2663 return 0;
2664 }
2665 _ACEOF
2666 rm -f conftest.o conftest.obj
2667 if { (ac_try="$ac_compile"
2668 case "(($ac_try" in
2669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2670 *) ac_try_echo=$ac_try;;
2671 esac
2672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2673 $as_echo "$ac_try_echo") >&5
2674 (eval "$ac_compile") 2>&5
2675 ac_status=$?
2676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }; then
2678 for ac_file in conftest.o conftest.obj conftest.*; do
2679 test -f "$ac_file" || continue;
2680 case $ac_file in
2681 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2682 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2683 break;;
2684 esac
2685 done
2686 else
2687 $as_echo "$as_me: failed program was:" >&5
2688 sed 's/^/| /' conftest.$ac_ext >&5
2689
2690 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2692 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2693 See \`config.log' for more details." >&5
2694 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2695 See \`config.log' for more details." >&2;}
2696 { (exit 1); exit 1; }; }; }
2697 fi
2698
2699 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2700 fi
2701 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2702 $as_echo "$ac_cv_objext" >&6; }
2703 OBJEXT=$ac_cv_objext
2704 ac_objext=$OBJEXT
2705 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2706 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2707 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2708 $as_echo_n "(cached) " >&6
2709 else
2710 cat >conftest.$ac_ext <<_ACEOF
2711 /* confdefs.h. */
2712 _ACEOF
2713 cat confdefs.h >>conftest.$ac_ext
2714 cat >>conftest.$ac_ext <<_ACEOF
2715 /* end confdefs.h. */
2716
2717 int
2718 main ()
2719 {
2720 #ifndef __GNUC__
2721 choke me
2722 #endif
2723
2724 ;
2725 return 0;
2726 }
2727 _ACEOF
2728 rm -f conftest.$ac_objext
2729 if { (ac_try="$ac_compile"
2730 case "(($ac_try" in
2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732 *) ac_try_echo=$ac_try;;
2733 esac
2734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2735 $as_echo "$ac_try_echo") >&5
2736 (eval "$ac_compile") 2>conftest.er1
2737 ac_status=$?
2738 grep -v '^ *+' conftest.er1 >conftest.err
2739 rm -f conftest.er1
2740 cat conftest.err >&5
2741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); } && {
2743 test -z "$ac_c_werror_flag" ||
2744 test ! -s conftest.err
2745 } && test -s conftest.$ac_objext; then
2746 ac_compiler_gnu=yes
2747 else
2748 $as_echo "$as_me: failed program was:" >&5
2749 sed 's/^/| /' conftest.$ac_ext >&5
2750
2751 ac_compiler_gnu=no
2752 fi
2753
2754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2755 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2756
2757 fi
2758 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2759 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2760 if test $ac_compiler_gnu = yes; then
2761 GCC=yes
2762 else
2763 GCC=
2764 fi
2765 ac_test_CFLAGS=${CFLAGS+set}
2766 ac_save_CFLAGS=$CFLAGS
2767 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2768 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2769 if test "${ac_cv_prog_cc_g+set}" = set; then
2770 $as_echo_n "(cached) " >&6
2771 else
2772 ac_save_c_werror_flag=$ac_c_werror_flag
2773 ac_c_werror_flag=yes
2774 ac_cv_prog_cc_g=no
2775 CFLAGS="-g"
2776 cat >conftest.$ac_ext <<_ACEOF
2777 /* confdefs.h. */
2778 _ACEOF
2779 cat confdefs.h >>conftest.$ac_ext
2780 cat >>conftest.$ac_ext <<_ACEOF
2781 /* end confdefs.h. */
2782
2783 int
2784 main ()
2785 {
2786
2787 ;
2788 return 0;
2789 }
2790 _ACEOF
2791 rm -f conftest.$ac_objext
2792 if { (ac_try="$ac_compile"
2793 case "(($ac_try" in
2794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795 *) ac_try_echo=$ac_try;;
2796 esac
2797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2798 $as_echo "$ac_try_echo") >&5
2799 (eval "$ac_compile") 2>conftest.er1
2800 ac_status=$?
2801 grep -v '^ *+' conftest.er1 >conftest.err
2802 rm -f conftest.er1
2803 cat conftest.err >&5
2804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); } && {
2806 test -z "$ac_c_werror_flag" ||
2807 test ! -s conftest.err
2808 } && test -s conftest.$ac_objext; then
2809 ac_cv_prog_cc_g=yes
2810 else
2811 $as_echo "$as_me: failed program was:" >&5
2812 sed 's/^/| /' conftest.$ac_ext >&5
2813
2814 CFLAGS=""
2815 cat >conftest.$ac_ext <<_ACEOF
2816 /* confdefs.h. */
2817 _ACEOF
2818 cat confdefs.h >>conftest.$ac_ext
2819 cat >>conftest.$ac_ext <<_ACEOF
2820 /* end confdefs.h. */
2821
2822 int
2823 main ()
2824 {
2825
2826 ;
2827 return 0;
2828 }
2829 _ACEOF
2830 rm -f conftest.$ac_objext
2831 if { (ac_try="$ac_compile"
2832 case "(($ac_try" in
2833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834 *) ac_try_echo=$ac_try;;
2835 esac
2836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2837 $as_echo "$ac_try_echo") >&5
2838 (eval "$ac_compile") 2>conftest.er1
2839 ac_status=$?
2840 grep -v '^ *+' conftest.er1 >conftest.err
2841 rm -f conftest.er1
2842 cat conftest.err >&5
2843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); } && {
2845 test -z "$ac_c_werror_flag" ||
2846 test ! -s conftest.err
2847 } && test -s conftest.$ac_objext; then
2848 :
2849 else
2850 $as_echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2852
2853 ac_c_werror_flag=$ac_save_c_werror_flag
2854 CFLAGS="-g"
2855 cat >conftest.$ac_ext <<_ACEOF
2856 /* confdefs.h. */
2857 _ACEOF
2858 cat confdefs.h >>conftest.$ac_ext
2859 cat >>conftest.$ac_ext <<_ACEOF
2860 /* end confdefs.h. */
2861
2862 int
2863 main ()
2864 {
2865
2866 ;
2867 return 0;
2868 }
2869 _ACEOF
2870 rm -f conftest.$ac_objext
2871 if { (ac_try="$ac_compile"
2872 case "(($ac_try" in
2873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874 *) ac_try_echo=$ac_try;;
2875 esac
2876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2877 $as_echo "$ac_try_echo") >&5
2878 (eval "$ac_compile") 2>conftest.er1
2879 ac_status=$?
2880 grep -v '^ *+' conftest.er1 >conftest.err
2881 rm -f conftest.er1
2882 cat conftest.err >&5
2883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); } && {
2885 test -z "$ac_c_werror_flag" ||
2886 test ! -s conftest.err
2887 } && test -s conftest.$ac_objext; then
2888 ac_cv_prog_cc_g=yes
2889 else
2890 $as_echo "$as_me: failed program was:" >&5
2891 sed 's/^/| /' conftest.$ac_ext >&5
2892
2893
2894 fi
2895
2896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2897 fi
2898
2899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2900 fi
2901
2902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2903 ac_c_werror_flag=$ac_save_c_werror_flag
2904 fi
2905 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2906 $as_echo "$ac_cv_prog_cc_g" >&6; }
2907 if test "$ac_test_CFLAGS" = set; then
2908 CFLAGS=$ac_save_CFLAGS
2909 elif test $ac_cv_prog_cc_g = yes; then
2910 if test "$GCC" = yes; then
2911 CFLAGS="-g -O2"
2912 else
2913 CFLAGS="-g"
2914 fi
2915 else
2916 if test "$GCC" = yes; then
2917 CFLAGS="-O2"
2918 else
2919 CFLAGS=
2920 fi
2921 fi
2922 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2923 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2924 if test "${ac_cv_prog_cc_c89+set}" = set; then
2925 $as_echo_n "(cached) " >&6
2926 else
2927 ac_cv_prog_cc_c89=no
2928 ac_save_CC=$CC
2929 cat >conftest.$ac_ext <<_ACEOF
2930 /* confdefs.h. */
2931 _ACEOF
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h. */
2935 #include <stdarg.h>
2936 #include <stdio.h>
2937 #include <sys/types.h>
2938 #include <sys/stat.h>
2939 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2940 struct buf { int x; };
2941 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2942 static char *e (p, i)
2943 char **p;
2944 int i;
2945 {
2946 return p[i];
2947 }
2948 static char *f (char * (*g) (char **, int), char **p, ...)
2949 {
2950 char *s;
2951 va_list v;
2952 va_start (v,p);
2953 s = g (p, va_arg (v,int));
2954 va_end (v);
2955 return s;
2956 }
2957
2958 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2959 function prototypes and stuff, but not '\xHH' hex character constants.
2960 These don't provoke an error unfortunately, instead are silently treated
2961 as 'x'. The following induces an error, until -std is added to get
2962 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2963 array size at least. It's necessary to write '\x00'==0 to get something
2964 that's true only with -std. */
2965 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2966
2967 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2968 inside strings and character constants. */
2969 #define FOO(x) 'x'
2970 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2971
2972 int test (int i, double x);
2973 struct s1 {int (*f) (int a);};
2974 struct s2 {int (*f) (double a);};
2975 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2976 int argc;
2977 char **argv;
2978 int
2979 main ()
2980 {
2981 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2982 ;
2983 return 0;
2984 }
2985 _ACEOF
2986 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2987 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2988 do
2989 CC="$ac_save_CC $ac_arg"
2990 rm -f conftest.$ac_objext
2991 if { (ac_try="$ac_compile"
2992 case "(($ac_try" in
2993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994 *) ac_try_echo=$ac_try;;
2995 esac
2996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2997 $as_echo "$ac_try_echo") >&5
2998 (eval "$ac_compile") 2>conftest.er1
2999 ac_status=$?
3000 grep -v '^ *+' conftest.er1 >conftest.err
3001 rm -f conftest.er1
3002 cat conftest.err >&5
3003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); } && {
3005 test -z "$ac_c_werror_flag" ||
3006 test ! -s conftest.err
3007 } && test -s conftest.$ac_objext; then
3008 ac_cv_prog_cc_c89=$ac_arg
3009 else
3010 $as_echo "$as_me: failed program was:" >&5
3011 sed 's/^/| /' conftest.$ac_ext >&5
3012
3013
3014 fi
3015
3016 rm -f core conftest.err conftest.$ac_objext
3017 test "x$ac_cv_prog_cc_c89" != "xno" && break
3018 done
3019 rm -f conftest.$ac_ext
3020 CC=$ac_save_CC
3021
3022 fi
3023 # AC_CACHE_VAL
3024 case "x$ac_cv_prog_cc_c89" in
3025 x)
3026 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3027 $as_echo "none needed" >&6; } ;;
3028 xno)
3029 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3030 $as_echo "unsupported" >&6; } ;;
3031 *)
3032 CC="$CC $ac_cv_prog_cc_c89"
3033 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3034 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3035 esac
3036
3037
3038 ac_ext=c
3039 ac_cpp='$CPP $CPPFLAGS'
3040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3043
3044
3045 ac_ext=c
3046 ac_cpp='$CPP $CPPFLAGS'
3047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3050 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3051 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3052 # On Suns, sometimes $CPP names a directory.
3053 if test -n "$CPP" && test -d "$CPP"; then
3054 CPP=
3055 fi
3056 if test -z "$CPP"; then
3057 if test "${ac_cv_prog_CPP+set}" = set; then
3058 $as_echo_n "(cached) " >&6
3059 else
3060 # Double quotes because CPP needs to be expanded
3061 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3062 do
3063 ac_preproc_ok=false
3064 for ac_c_preproc_warn_flag in '' yes
3065 do
3066 # Use a header file that comes with gcc, so configuring glibc
3067 # with a fresh cross-compiler works.
3068 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3069 # <limits.h> exists even on freestanding compilers.
3070 # On the NeXT, cc -E runs the code through the compiler's parser,
3071 # not just through cpp. "Syntax error" is here to catch this case.
3072 cat >conftest.$ac_ext <<_ACEOF
3073 /* confdefs.h. */
3074 _ACEOF
3075 cat confdefs.h >>conftest.$ac_ext
3076 cat >>conftest.$ac_ext <<_ACEOF
3077 /* end confdefs.h. */
3078 #ifdef __STDC__
3079 # include <limits.h>
3080 #else
3081 # include <assert.h>
3082 #endif
3083 Syntax error
3084 _ACEOF
3085 if { (ac_try="$ac_cpp conftest.$ac_ext"
3086 case "(($ac_try" in
3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3089 esac
3090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3091 $as_echo "$ac_try_echo") >&5
3092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3093 ac_status=$?
3094 grep -v '^ *+' conftest.er1 >conftest.err
3095 rm -f conftest.er1
3096 cat conftest.err >&5
3097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); } >/dev/null && {
3099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3100 test ! -s conftest.err
3101 }; then
3102 :
3103 else
3104 $as_echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3106
3107 # Broken: fails on valid input.
3108 continue
3109 fi
3110
3111 rm -f conftest.err conftest.$ac_ext
3112
3113 # OK, works on sane cases. Now check whether nonexistent headers
3114 # can be detected and how.
3115 cat >conftest.$ac_ext <<_ACEOF
3116 /* confdefs.h. */
3117 _ACEOF
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h. */
3121 #include <ac_nonexistent.h>
3122 _ACEOF
3123 if { (ac_try="$ac_cpp conftest.$ac_ext"
3124 case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127 esac
3128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3129 $as_echo "$ac_try_echo") >&5
3130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3131 ac_status=$?
3132 grep -v '^ *+' conftest.er1 >conftest.err
3133 rm -f conftest.er1
3134 cat conftest.err >&5
3135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } >/dev/null && {
3137 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3138 test ! -s conftest.err
3139 }; then
3140 # Broken: success on invalid input.
3141 continue
3142 else
3143 $as_echo "$as_me: failed program was:" >&5
3144 sed 's/^/| /' conftest.$ac_ext >&5
3145
3146 # Passes both tests.
3147 ac_preproc_ok=:
3148 break
3149 fi
3150
3151 rm -f conftest.err conftest.$ac_ext
3152
3153 done
3154 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3155 rm -f conftest.err conftest.$ac_ext
3156 if $ac_preproc_ok; then
3157 break
3158 fi
3159
3160 done
3161 ac_cv_prog_CPP=$CPP
3162
3163 fi
3164 CPP=$ac_cv_prog_CPP
3165 else
3166 ac_cv_prog_CPP=$CPP
3167 fi
3168 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3169 $as_echo "$CPP" >&6; }
3170 ac_preproc_ok=false
3171 for ac_c_preproc_warn_flag in '' yes
3172 do
3173 # Use a header file that comes with gcc, so configuring glibc
3174 # with a fresh cross-compiler works.
3175 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3176 # <limits.h> exists even on freestanding compilers.
3177 # On the NeXT, cc -E runs the code through the compiler's parser,
3178 # not just through cpp. "Syntax error" is here to catch this case.
3179 cat >conftest.$ac_ext <<_ACEOF
3180 /* confdefs.h. */
3181 _ACEOF
3182 cat confdefs.h >>conftest.$ac_ext
3183 cat >>conftest.$ac_ext <<_ACEOF
3184 /* end confdefs.h. */
3185 #ifdef __STDC__
3186 # include <limits.h>
3187 #else
3188 # include <assert.h>
3189 #endif
3190 Syntax error
3191 _ACEOF
3192 if { (ac_try="$ac_cpp conftest.$ac_ext"
3193 case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3196 esac
3197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3198 $as_echo "$ac_try_echo") >&5
3199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3200 ac_status=$?
3201 grep -v '^ *+' conftest.er1 >conftest.err
3202 rm -f conftest.er1
3203 cat conftest.err >&5
3204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); } >/dev/null && {
3206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3207 test ! -s conftest.err
3208 }; then
3209 :
3210 else
3211 $as_echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.$ac_ext >&5
3213
3214 # Broken: fails on valid input.
3215 continue
3216 fi
3217
3218 rm -f conftest.err conftest.$ac_ext
3219
3220 # OK, works on sane cases. Now check whether nonexistent headers
3221 # can be detected and how.
3222 cat >conftest.$ac_ext <<_ACEOF
3223 /* confdefs.h. */
3224 _ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3228 #include <ac_nonexistent.h>
3229 _ACEOF
3230 if { (ac_try="$ac_cpp conftest.$ac_ext"
3231 case "(($ac_try" in
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3234 esac
3235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3236 $as_echo "$ac_try_echo") >&5
3237 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3238 ac_status=$?
3239 grep -v '^ *+' conftest.er1 >conftest.err
3240 rm -f conftest.er1
3241 cat conftest.err >&5
3242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); } >/dev/null && {
3244 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3245 test ! -s conftest.err
3246 }; then
3247 # Broken: success on invalid input.
3248 continue
3249 else
3250 $as_echo "$as_me: failed program was:" >&5
3251 sed 's/^/| /' conftest.$ac_ext >&5
3252
3253 # Passes both tests.
3254 ac_preproc_ok=:
3255 break
3256 fi
3257
3258 rm -f conftest.err conftest.$ac_ext
3259
3260 done
3261 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3262 rm -f conftest.err conftest.$ac_ext
3263 if $ac_preproc_ok; then
3264 :
3265 else
3266 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3268 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3269 See \`config.log' for more details." >&5
3270 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3271 See \`config.log' for more details." >&2;}
3272 { (exit 1); exit 1; }; }; }
3273 fi
3274
3275 ac_ext=c
3276 ac_cpp='$CPP $CPPFLAGS'
3277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3280
3281
3282 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3283 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3284 if test "${ac_cv_path_GREP+set}" = set; then
3285 $as_echo_n "(cached) " >&6
3286 else
3287 if test -z "$GREP"; then
3288 ac_path_GREP_found=false
3289 # Loop through the user's path and test for each of PROGNAME-LIST
3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3292 do
3293 IFS=$as_save_IFS
3294 test -z "$as_dir" && as_dir=.
3295 for ac_prog in grep ggrep; do
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3298 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3299 # Check for GNU ac_path_GREP and select it if it is found.
3300 # Check for GNU $ac_path_GREP
3301 case `"$ac_path_GREP" --version 2>&1` in
3302 *GNU*)
3303 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3304 *)
3305 ac_count=0
3306 $as_echo_n 0123456789 >"conftest.in"
3307 while :
3308 do
3309 cat "conftest.in" "conftest.in" >"conftest.tmp"
3310 mv "conftest.tmp" "conftest.in"
3311 cp "conftest.in" "conftest.nl"
3312 $as_echo 'GREP' >> "conftest.nl"
3313 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3314 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3315 ac_count=`expr $ac_count + 1`
3316 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3317 # Best one so far, save it but keep looking for a better one
3318 ac_cv_path_GREP="$ac_path_GREP"
3319 ac_path_GREP_max=$ac_count
3320 fi
3321 # 10*(2^10) chars as input seems more than enough
3322 test $ac_count -gt 10 && break
3323 done
3324 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3325 esac
3326
3327 $ac_path_GREP_found && break 3
3328 done
3329 done
3330 done
3331 IFS=$as_save_IFS
3332 if test -z "$ac_cv_path_GREP"; then
3333 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3334 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3335 { (exit 1); exit 1; }; }
3336 fi
3337 else
3338 ac_cv_path_GREP=$GREP
3339 fi
3340
3341 fi
3342 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3343 $as_echo "$ac_cv_path_GREP" >&6; }
3344 GREP="$ac_cv_path_GREP"
3345
3346
3347 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3348 $as_echo_n "checking for egrep... " >&6; }
3349 if test "${ac_cv_path_EGREP+set}" = set; then
3350 $as_echo_n "(cached) " >&6
3351 else
3352 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3353 then ac_cv_path_EGREP="$GREP -E"
3354 else
3355 if test -z "$EGREP"; then
3356 ac_path_EGREP_found=false
3357 # Loop through the user's path and test for each of PROGNAME-LIST
3358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3360 do
3361 IFS=$as_save_IFS
3362 test -z "$as_dir" && as_dir=.
3363 for ac_prog in egrep; do
3364 for ac_exec_ext in '' $ac_executable_extensions; do
3365 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3366 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3367 # Check for GNU ac_path_EGREP and select it if it is found.
3368 # Check for GNU $ac_path_EGREP
3369 case `"$ac_path_EGREP" --version 2>&1` in
3370 *GNU*)
3371 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3372 *)
3373 ac_count=0
3374 $as_echo_n 0123456789 >"conftest.in"
3375 while :
3376 do
3377 cat "conftest.in" "conftest.in" >"conftest.tmp"
3378 mv "conftest.tmp" "conftest.in"
3379 cp "conftest.in" "conftest.nl"
3380 $as_echo 'EGREP' >> "conftest.nl"
3381 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3382 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3383 ac_count=`expr $ac_count + 1`
3384 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3385 # Best one so far, save it but keep looking for a better one
3386 ac_cv_path_EGREP="$ac_path_EGREP"
3387 ac_path_EGREP_max=$ac_count
3388 fi
3389 # 10*(2^10) chars as input seems more than enough
3390 test $ac_count -gt 10 && break
3391 done
3392 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3393 esac
3394
3395 $ac_path_EGREP_found && break 3
3396 done
3397 done
3398 done
3399 IFS=$as_save_IFS
3400 if test -z "$ac_cv_path_EGREP"; then
3401 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3402 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3403 { (exit 1); exit 1; }; }
3404 fi
3405 else
3406 ac_cv_path_EGREP=$EGREP
3407 fi
3408
3409 fi
3410 fi
3411 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3412 $as_echo "$ac_cv_path_EGREP" >&6; }
3413 EGREP="$ac_cv_path_EGREP"
3414
3415
3416 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3417 $as_echo_n "checking for ANSI C header files... " >&6; }
3418 if test "${ac_cv_header_stdc+set}" = set; then
3419 $as_echo_n "(cached) " >&6
3420 else
3421 cat >conftest.$ac_ext <<_ACEOF
3422 /* confdefs.h. */
3423 _ACEOF
3424 cat confdefs.h >>conftest.$ac_ext
3425 cat >>conftest.$ac_ext <<_ACEOF
3426 /* end confdefs.h. */
3427 #include <stdlib.h>
3428 #include <stdarg.h>
3429 #include <string.h>
3430 #include <float.h>
3431
3432 int
3433 main ()
3434 {
3435
3436 ;
3437 return 0;
3438 }
3439 _ACEOF
3440 rm -f conftest.$ac_objext
3441 if { (ac_try="$ac_compile"
3442 case "(($ac_try" in
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3445 esac
3446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3447 $as_echo "$ac_try_echo") >&5
3448 (eval "$ac_compile") 2>conftest.er1
3449 ac_status=$?
3450 grep -v '^ *+' conftest.er1 >conftest.err
3451 rm -f conftest.er1
3452 cat conftest.err >&5
3453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } && {
3455 test -z "$ac_c_werror_flag" ||
3456 test ! -s conftest.err
3457 } && test -s conftest.$ac_objext; then
3458 ac_cv_header_stdc=yes
3459 else
3460 $as_echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3462
3463 ac_cv_header_stdc=no
3464 fi
3465
3466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467
3468 if test $ac_cv_header_stdc = yes; then
3469 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3470 cat >conftest.$ac_ext <<_ACEOF
3471 /* confdefs.h. */
3472 _ACEOF
3473 cat confdefs.h >>conftest.$ac_ext
3474 cat >>conftest.$ac_ext <<_ACEOF
3475 /* end confdefs.h. */
3476 #include <string.h>
3477
3478 _ACEOF
3479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3480 $EGREP "memchr" >/dev/null 2>&1; then
3481 :
3482 else
3483 ac_cv_header_stdc=no
3484 fi
3485 rm -f conftest*
3486
3487 fi
3488
3489 if test $ac_cv_header_stdc = yes; then
3490 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3491 cat >conftest.$ac_ext <<_ACEOF
3492 /* confdefs.h. */
3493 _ACEOF
3494 cat confdefs.h >>conftest.$ac_ext
3495 cat >>conftest.$ac_ext <<_ACEOF
3496 /* end confdefs.h. */
3497 #include <stdlib.h>
3498
3499 _ACEOF
3500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3501 $EGREP "free" >/dev/null 2>&1; then
3502 :
3503 else
3504 ac_cv_header_stdc=no
3505 fi
3506 rm -f conftest*
3507
3508 fi
3509
3510 if test $ac_cv_header_stdc = yes; then
3511 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3512 if test "$cross_compiling" = yes; then
3513 :
3514 else
3515 cat >conftest.$ac_ext <<_ACEOF
3516 /* confdefs.h. */
3517 _ACEOF
3518 cat confdefs.h >>conftest.$ac_ext
3519 cat >>conftest.$ac_ext <<_ACEOF
3520 /* end confdefs.h. */
3521 #include <ctype.h>
3522 #include <stdlib.h>
3523 #if ((' ' & 0x0FF) == 0x020)
3524 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3525 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3526 #else
3527 # define ISLOWER(c) \
3528 (('a' <= (c) && (c) <= 'i') \
3529 || ('j' <= (c) && (c) <= 'r') \
3530 || ('s' <= (c) && (c) <= 'z'))
3531 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3532 #endif
3533
3534 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3535 int
3536 main ()
3537 {
3538 int i;
3539 for (i = 0; i < 256; i++)
3540 if (XOR (islower (i), ISLOWER (i))
3541 || toupper (i) != TOUPPER (i))
3542 return 2;
3543 return 0;
3544 }
3545 _ACEOF
3546 rm -f conftest$ac_exeext
3547 if { (ac_try="$ac_link"
3548 case "(($ac_try" in
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3551 esac
3552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3553 $as_echo "$ac_try_echo") >&5
3554 (eval "$ac_link") 2>&5
3555 ac_status=$?
3556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3558 { (case "(($ac_try" in
3559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3560 *) ac_try_echo=$ac_try;;
3561 esac
3562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3563 $as_echo "$ac_try_echo") >&5
3564 (eval "$ac_try") 2>&5
3565 ac_status=$?
3566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); }; }; then
3568 :
3569 else
3570 $as_echo "$as_me: program exited with status $ac_status" >&5
3571 $as_echo "$as_me: failed program was:" >&5
3572 sed 's/^/| /' conftest.$ac_ext >&5
3573
3574 ( exit $ac_status )
3575 ac_cv_header_stdc=no
3576 fi
3577 rm -rf conftest.dSYM
3578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3579 fi
3580
3581
3582 fi
3583 fi
3584 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3585 $as_echo "$ac_cv_header_stdc" >&6; }
3586 if test $ac_cv_header_stdc = yes; then
3587
3588 cat >>confdefs.h <<\_ACEOF
3589 #define STDC_HEADERS 1
3590 _ACEOF
3591
3592 fi
3593
3594 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3605 inttypes.h stdint.h unistd.h
3606 do
3607 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3608 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3609 $as_echo_n "checking for $ac_header... " >&6; }
3610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3611 $as_echo_n "(cached) " >&6
3612 else
3613 cat >conftest.$ac_ext <<_ACEOF
3614 /* confdefs.h. */
3615 _ACEOF
3616 cat confdefs.h >>conftest.$ac_ext
3617 cat >>conftest.$ac_ext <<_ACEOF
3618 /* end confdefs.h. */
3619 $ac_includes_default
3620
3621 #include <$ac_header>
3622 _ACEOF
3623 rm -f conftest.$ac_objext
3624 if { (ac_try="$ac_compile"
3625 case "(($ac_try" in
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3628 esac
3629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3630 $as_echo "$ac_try_echo") >&5
3631 (eval "$ac_compile") 2>conftest.er1
3632 ac_status=$?
3633 grep -v '^ *+' conftest.er1 >conftest.err
3634 rm -f conftest.er1
3635 cat conftest.err >&5
3636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); } && {
3638 test -z "$ac_c_werror_flag" ||
3639 test ! -s conftest.err
3640 } && test -s conftest.$ac_objext; then
3641 eval "$as_ac_Header=yes"
3642 else
3643 $as_echo "$as_me: failed program was:" >&5
3644 sed 's/^/| /' conftest.$ac_ext >&5
3645
3646 eval "$as_ac_Header=no"
3647 fi
3648
3649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650 fi
3651 ac_res=`eval 'as_val=${'$as_ac_Header'}
3652 $as_echo "$as_val"'`
3653 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3654 $as_echo "$ac_res" >&6; }
3655 as_val=`eval 'as_val=${'$as_ac_Header'}
3656 $as_echo "$as_val"'`
3657 if test "x$as_val" = x""yes; then
3658 cat >>confdefs.h <<_ACEOF
3659 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3660 _ACEOF
3661
3662 fi
3663
3664 done
3665
3666
3667 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3668 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3669 if test "${ac_cv_prog_cc_c99+set}" = set; then
3670 $as_echo_n "(cached) " >&6
3671 else
3672 ac_cv_prog_cc_c99=no
3673 ac_save_CC=$CC
3674 cat >conftest.$ac_ext <<_ACEOF
3675 /* confdefs.h. */
3676 _ACEOF
3677 cat confdefs.h >>conftest.$ac_ext
3678 cat >>conftest.$ac_ext <<_ACEOF
3679 /* end confdefs.h. */
3680 #include <stdarg.h>
3681 #include <stdbool.h>
3682 #include <stdlib.h>
3683 #include <wchar.h>
3684 #include <stdio.h>
3685
3686 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3687 #define debug(...) fprintf (stderr, __VA_ARGS__)
3688 #define showlist(...) puts (#__VA_ARGS__)
3689 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3690 static void
3691 test_varargs_macros (void)
3692 {
3693 int x = 1234;
3694 int y = 5678;
3695 debug ("Flag");
3696 debug ("X = %d\n", x);
3697 showlist (The first, second, and third items.);
3698 report (x>y, "x is %d but y is %d", x, y);
3699 }
3700
3701 // Check long long types.
3702 #define BIG64 18446744073709551615ull
3703 #define BIG32 4294967295ul
3704 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3705 #if !BIG_OK
3706 your preprocessor is broken;
3707 #endif
3708 #if BIG_OK
3709 #else
3710 your preprocessor is broken;
3711 #endif
3712 static long long int bignum = -9223372036854775807LL;
3713 static unsigned long long int ubignum = BIG64;
3714
3715 struct incomplete_array
3716 {
3717 int datasize;
3718 double data[];
3719 };
3720
3721 struct named_init {
3722 int number;
3723 const wchar_t *name;
3724 double average;
3725 };
3726
3727 typedef const char *ccp;
3728
3729 static inline int
3730 test_restrict (ccp restrict text)
3731 {
3732 // See if C++-style comments work.
3733 // Iterate through items via the restricted pointer.
3734 // Also check for declarations in for loops.
3735 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3736 continue;
3737 return 0;
3738 }
3739
3740 // Check varargs and va_copy.
3741 static void
3742 test_varargs (const char *format, ...)
3743 {
3744 va_list args;
3745 va_start (args, format);
3746 va_list args_copy;
3747 va_copy (args_copy, args);
3748
3749 const char *str;
3750 int number;
3751 float fnumber;
3752
3753 while (*format)
3754 {
3755 switch (*format++)
3756 {
3757 case 's': // string
3758 str = va_arg (args_copy, const char *);
3759 break;
3760 case 'd': // int
3761 number = va_arg (args_copy, int);
3762 break;
3763 case 'f': // float
3764 fnumber = va_arg (args_copy, double);
3765 break;
3766 default:
3767 break;
3768 }
3769 }
3770 va_end (args_copy);
3771 va_end (args);
3772 }
3773
3774 int
3775 main ()
3776 {
3777
3778 // Check bool.
3779 _Bool success = false;
3780
3781 // Check restrict.
3782 if (test_restrict ("String literal") == 0)
3783 success = true;
3784 char *restrict newvar = "Another string";
3785
3786 // Check varargs.
3787 test_varargs ("s, d' f .", "string", 65, 34.234);
3788 test_varargs_macros ();
3789
3790 // Check flexible array members.
3791 struct incomplete_array *ia =
3792 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3793 ia->datasize = 10;
3794 for (int i = 0; i < ia->datasize; ++i)
3795 ia->data[i] = i * 1.234;
3796
3797 // Check named initializers.
3798 struct named_init ni = {
3799 .number = 34,
3800 .name = L"Test wide string",
3801 .average = 543.34343,
3802 };
3803
3804 ni.number = 58;
3805
3806 int dynamic_array[ni.number];
3807 dynamic_array[ni.number - 1] = 543;
3808
3809 // work around unused variable warnings
3810 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3811 || dynamic_array[ni.number - 1] != 543);
3812
3813 ;
3814 return 0;
3815 }
3816 _ACEOF
3817 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3818 do
3819 CC="$ac_save_CC $ac_arg"
3820 rm -f conftest.$ac_objext
3821 if { (ac_try="$ac_compile"
3822 case "(($ac_try" in
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3825 esac
3826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3827 $as_echo "$ac_try_echo") >&5
3828 (eval "$ac_compile") 2>conftest.er1
3829 ac_status=$?
3830 grep -v '^ *+' conftest.er1 >conftest.err
3831 rm -f conftest.er1
3832 cat conftest.err >&5
3833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); } && {
3835 test -z "$ac_c_werror_flag" ||
3836 test ! -s conftest.err
3837 } && test -s conftest.$ac_objext; then
3838 ac_cv_prog_cc_c99=$ac_arg
3839 else
3840 $as_echo "$as_me: failed program was:" >&5
3841 sed 's/^/| /' conftest.$ac_ext >&5
3842
3843
3844 fi
3845
3846 rm -f core conftest.err conftest.$ac_objext
3847 test "x$ac_cv_prog_cc_c99" != "xno" && break
3848 done
3849 rm -f conftest.$ac_ext
3850 CC=$ac_save_CC
3851
3852 fi
3853 # AC_CACHE_VAL
3854 case "x$ac_cv_prog_cc_c99" in
3855 x)
3856 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3857 $as_echo "none needed" >&6; } ;;
3858 xno)
3859 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3860 $as_echo "unsupported" >&6; } ;;
3861 *)
3862 CC="$CC $ac_cv_prog_cc_c99"
3863 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3864 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3865 esac
3866
3867
3868
3869
3870
3871 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3872 if test -n "$ac_tool_prefix"; then
3873 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3874 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3875 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3876 $as_echo_n "checking for $ac_word... " >&6; }
3877 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3878 $as_echo_n "(cached) " >&6
3879 else
3880 case $PKG_CONFIG in
3881 [\\/]* | ?:[\\/]*)
3882 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3883 ;;
3884 *)
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886 for as_dir in $PATH
3887 do
3888 IFS=$as_save_IFS
3889 test -z "$as_dir" && as_dir=.
3890 for ac_exec_ext in '' $ac_executable_extensions; do
3891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3892 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3893 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3894 break 2
3895 fi
3896 done
3897 done
3898 IFS=$as_save_IFS
3899
3900 ;;
3901 esac
3902 fi
3903 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3904 if test -n "$PKG_CONFIG"; then
3905 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3906 $as_echo "$PKG_CONFIG" >&6; }
3907 else
3908 { $as_echo "$as_me:$LINENO: result: no" >&5
3909 $as_echo "no" >&6; }
3910 fi
3911
3912
3913 fi
3914 if test -z "$ac_cv_path_PKG_CONFIG"; then
3915 ac_pt_PKG_CONFIG=$PKG_CONFIG
3916 # Extract the first word of "pkg-config", so it can be a program name with args.
3917 set dummy pkg-config; ac_word=$2
3918 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3919 $as_echo_n "checking for $ac_word... " >&6; }
3920 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3921 $as_echo_n "(cached) " >&6
3922 else
3923 case $ac_pt_PKG_CONFIG in
3924 [\\/]* | ?:[\\/]*)
3925 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3926 ;;
3927 *)
3928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929 for as_dir in $PATH
3930 do
3931 IFS=$as_save_IFS
3932 test -z "$as_dir" && as_dir=.
3933 for ac_exec_ext in '' $ac_executable_extensions; do
3934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3935 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3936 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3937 break 2
3938 fi
3939 done
3940 done
3941 IFS=$as_save_IFS
3942
3943 ;;
3944 esac
3945 fi
3946 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3947 if test -n "$ac_pt_PKG_CONFIG"; then
3948 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
3949 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3950 else
3951 { $as_echo "$as_me:$LINENO: result: no" >&5
3952 $as_echo "no" >&6; }
3953 fi
3954
3955 if test "x$ac_pt_PKG_CONFIG" = x; then
3956 PKG_CONFIG=""
3957 else
3958 case $cross_compiling:$ac_tool_warned in
3959 yes:)
3960 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3962 ac_tool_warned=yes ;;
3963 esac
3964 PKG_CONFIG=$ac_pt_PKG_CONFIG
3965 fi
3966 else
3967 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3968 fi
3969
3970 fi
3971 if test -n "$PKG_CONFIG"; then
3972 _pkg_min_version=0.9.0
3973 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3974 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3975 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3976 { $as_echo "$as_me:$LINENO: result: yes" >&5
3977 $as_echo "yes" >&6; }
3978 else
3979 { $as_echo "$as_me:$LINENO: result: no" >&5
3980 $as_echo "no" >&6; }
3981 PKG_CONFIG=""
3982 fi
3983
3984 fi
3985 ac_aux_dir=
3986 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3987 if test -f "$ac_dir/install-sh"; then
3988 ac_aux_dir=$ac_dir
3989 ac_install_sh="$ac_aux_dir/install-sh -c"
3990 break
3991 elif test -f "$ac_dir/install.sh"; then
3992 ac_aux_dir=$ac_dir
3993 ac_install_sh="$ac_aux_dir/install.sh -c"
3994 break
3995 elif test -f "$ac_dir/shtool"; then
3996 ac_aux_dir=$ac_dir
3997 ac_install_sh="$ac_aux_dir/shtool install -c"
3998 break
3999 fi
4000 done
4001 if test -z "$ac_aux_dir"; then
4002 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4003 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4004 { (exit 1); exit 1; }; }
4005 fi
4006
4007 # These three variables are undocumented and unsupported,
4008 # and are intended to be withdrawn in a future Autoconf release.
4009 # They can cause serious problems if a builder's source tree is in a directory
4010 # whose full name contains unusual characters.
4011 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4012 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4013 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4014
4015
4016 # Make sure we can run config.sub.
4017 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4018 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4019 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4020 { (exit 1); exit 1; }; }
4021
4022 { $as_echo "$as_me:$LINENO: checking build system type" >&5
4023 $as_echo_n "checking build system type... " >&6; }
4024 if test "${ac_cv_build+set}" = set; then
4025 $as_echo_n "(cached) " >&6
4026 else
4027 ac_build_alias=$build_alias
4028 test "x$ac_build_alias" = x &&
4029 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4030 test "x$ac_build_alias" = x &&
4031 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4032 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4033 { (exit 1); exit 1; }; }
4034 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4035 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4036 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4037 { (exit 1); exit 1; }; }
4038
4039 fi
4040 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4041 $as_echo "$ac_cv_build" >&6; }
4042 case $ac_cv_build in
4043 *-*-*) ;;
4044 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4045 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
4046 { (exit 1); exit 1; }; };;
4047 esac
4048 build=$ac_cv_build
4049 ac_save_IFS=$IFS; IFS='-'
4050 set x $ac_cv_build
4051 shift
4052 build_cpu=$1
4053 build_vendor=$2
4054 shift; shift
4055 # Remember, the first character of IFS is used to create $*,
4056 # except with old shells:
4057 build_os=$*
4058 IFS=$ac_save_IFS
4059 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4060
4061
4062 { $as_echo "$as_me:$LINENO: checking host system type" >&5
4063 $as_echo_n "checking host system type... " >&6; }
4064 if test "${ac_cv_host+set}" = set; then
4065 $as_echo_n "(cached) " >&6
4066 else
4067 if test "x$host_alias" = x; then
4068 ac_cv_host=$ac_cv_build
4069 else
4070 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4071 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4072 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4073 { (exit 1); exit 1; }; }
4074 fi
4075
4076 fi
4077 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4078 $as_echo "$ac_cv_host" >&6; }
4079 case $ac_cv_host in
4080 *-*-*) ;;
4081 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4082 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
4083 { (exit 1); exit 1; }; };;
4084 esac
4085 host=$ac_cv_host
4086 ac_save_IFS=$IFS; IFS='-'
4087 set x $ac_cv_host
4088 shift
4089 host_cpu=$1
4090 host_vendor=$2
4091 shift; shift
4092 # Remember, the first character of IFS is used to create $*,
4093 # except with old shells:
4094 host_os=$*
4095 IFS=$ac_save_IFS
4096 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4097
4098
4099
4100
4101
4102 if test "x$GCC" = xyes ; then
4103 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4104 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4105 -Wbad-function-cast"
4106 case `$CC -dumpversion` in
4107 3.4.* | 4.*)
4108 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4109 ;;
4110 esac
4111 else
4112 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4113 $as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
4114 if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4115 $as_echo_n "(cached) " >&6
4116 else
4117 cat >conftest.$ac_ext <<_ACEOF
4118 /* confdefs.h. */
4119 _ACEOF
4120 cat confdefs.h >>conftest.$ac_ext
4121 cat >>conftest.$ac_ext <<_ACEOF
4122 /* end confdefs.h. */
4123 $ac_includes_default
4124 int
4125 main ()
4126 {
4127 #ifndef __SUNPRO_C
4128 (void) __SUNPRO_C;
4129 #endif
4130
4131 ;
4132 return 0;
4133 }
4134 _ACEOF
4135 rm -f conftest.$ac_objext
4136 if { (ac_try="$ac_compile"
4137 case "(($ac_try" in
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4140 esac
4141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4142 $as_echo "$ac_try_echo") >&5
4143 (eval "$ac_compile") 2>conftest.er1
4144 ac_status=$?
4145 grep -v '^ *+' conftest.er1 >conftest.err
4146 rm -f conftest.er1
4147 cat conftest.err >&5
4148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); } && {
4150 test -z "$ac_c_werror_flag" ||
4151 test ! -s conftest.err
4152 } && test -s conftest.$ac_objext; then
4153 ac_cv_have_decl___SUNPRO_C=yes
4154 else
4155 $as_echo "$as_me: failed program was:" >&5
4156 sed 's/^/| /' conftest.$ac_ext >&5
4157
4158 ac_cv_have_decl___SUNPRO_C=no
4159 fi
4160
4161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4162 fi
4163 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
4164 $as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
4165 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
4166 SUNCC="yes"
4167 else
4168 SUNCC="no"
4169 fi
4170
4171 if test "x$SUNCC" = "xyes"; then
4172 CWARNFLAGS="-v"
4173 fi
4174 fi
4175
4176 # Check whether --enable-silent-rules was given.
4177 if test "${enable_silent_rules+set}" = set; then
4178 enableval=$enable_silent_rules;
4179 fi
4180
4181 case $enable_silent_rules in
4182 yes) AM_DEFAULT_VERBOSITY=0;;
4183 no) AM_DEFAULT_VERBOSITY=1;;
4184 *) AM_DEFAULT_VERBOSITY=0;;
4185 esac
4186 AM_BACKSLASH='\'
4187
4188
4189
4190
4191
4192
4193
4194 # Check whether --enable-strict-compilation was given.
4195 if test "${enable_strict_compilation+set}" = set; then
4196 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4197 else
4198 STRICT_COMPILE=no
4199 fi
4200
4201 if test "x$STRICT_COMPILE" = "xyes"; then
4202 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4203 $as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
4204 if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4205 $as_echo_n "(cached) " >&6
4206 else
4207 cat >conftest.$ac_ext <<_ACEOF
4208 /* confdefs.h. */
4209 _ACEOF
4210 cat confdefs.h >>conftest.$ac_ext
4211 cat >>conftest.$ac_ext <<_ACEOF
4212 /* end confdefs.h. */
4213 $ac_includes_default
4214 int
4215 main ()
4216 {
4217 #ifndef __SUNPRO_C
4218 (void) __SUNPRO_C;
4219 #endif
4220
4221 ;
4222 return 0;
4223 }
4224 _ACEOF
4225 rm -f conftest.$ac_objext
4226 if { (ac_try="$ac_compile"
4227 case "(($ac_try" in
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4230 esac
4231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4232 $as_echo "$ac_try_echo") >&5
4233 (eval "$ac_compile") 2>conftest.er1
4234 ac_status=$?
4235 grep -v '^ *+' conftest.er1 >conftest.err
4236 rm -f conftest.er1
4237 cat conftest.err >&5
4238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); } && {
4240 test -z "$ac_c_werror_flag" ||
4241 test ! -s conftest.err
4242 } && test -s conftest.$ac_objext; then
4243 ac_cv_have_decl___SUNPRO_C=yes
4244 else
4245 $as_echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.$ac_ext >&5
4247
4248 ac_cv_have_decl___SUNPRO_C=no
4249 fi
4250
4251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4252 fi
4253 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
4254 $as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
4255 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
4256 SUNCC="yes"
4257 else
4258 SUNCC="no"
4259 fi
4260
4261 { $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
4262 $as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; }
4263 if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
4264 $as_echo_n "(cached) " >&6
4265 else
4266 cat >conftest.$ac_ext <<_ACEOF
4267 /* confdefs.h. */
4268 _ACEOF
4269 cat confdefs.h >>conftest.$ac_ext
4270 cat >>conftest.$ac_ext <<_ACEOF
4271 /* end confdefs.h. */
4272 $ac_includes_default
4273 int
4274 main ()
4275 {
4276 #ifndef __INTEL_COMPILER
4277 (void) __INTEL_COMPILER;
4278 #endif
4279
4280 ;
4281 return 0;
4282 }
4283 _ACEOF
4284 rm -f conftest.$ac_objext
4285 if { (ac_try="$ac_compile"
4286 case "(($ac_try" in
4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4289 esac
4290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4291 $as_echo "$ac_try_echo") >&5
4292 (eval "$ac_compile") 2>conftest.er1
4293 ac_status=$?
4294 grep -v '^ *+' conftest.er1 >conftest.err
4295 rm -f conftest.er1
4296 cat conftest.err >&5
4297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); } && {
4299 test -z "$ac_c_werror_flag" ||
4300 test ! -s conftest.err
4301 } && test -s conftest.$ac_objext; then
4302 ac_cv_have_decl___INTEL_COMPILER=yes
4303 else
4304 $as_echo "$as_me: failed program was:" >&5
4305 sed 's/^/| /' conftest.$ac_ext >&5
4306
4307 ac_cv_have_decl___INTEL_COMPILER=no
4308 fi
4309
4310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4311 fi
4312 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
4313 $as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; }
4314 if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then
4315 INTELCC="yes"
4316 else
4317 INTELCC="no"
4318 fi
4319
4320 if test "x$GCC" = xyes ; then
4321 STRICT_CFLAGS="-pedantic -Werror"
4322 elif test "x$SUNCC" = "xyes"; then
4323 STRICT_CFLAGS="-errwarn"
4324 elif test "x$INTELCC" = "xyes"; then
4325 STRICT_CFLAGS="-Werror"
4326 fi
4327 fi
4328 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4329
4330
4331
4332
4333 # Check whether --with-release-version was given.
4334 if test "${with_release_version+set}" = set; then
4335 withval=$with_release_version; RELEASE_VERSION="$withval"
4336 else
4337 RELEASE_VERSION=""
4338 fi
4339
4340 if test "x$RELEASE_VERSION" != "x"; then
4341 PACKAGE="$PACKAGE-$RELEASE_VERSION"
4342 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
4343 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
4344 $as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
4345 fi
4346
4347 cat >>confdefs.h <<_ACEOF
4348 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4349 _ACEOF
4350
4351 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4352 if test "x$PVM" = "x"; then
4353 PVM="0"
4354 fi
4355
4356 cat >>confdefs.h <<_ACEOF
4357 #define PACKAGE_VERSION_MINOR $PVM
4358 _ACEOF
4359
4360 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4361 if test "x$PVP" = "x"; then
4362 PVP="0"
4363 fi
4364
4365 cat >>confdefs.h <<_ACEOF
4366 #define PACKAGE_VERSION_PATCHLEVEL $PVP
4367 _ACEOF
4368
4369
4370
4371 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4372 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4373 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4374 echo 'git directory not found: installing possibly empty changelog.' >&2)"
4375
4376
4377
4378
4379 macros_docdir=$($PKG_CONFIG --print-errors --variable=docdir xorg-macros)
4380 INSTALL_CMD="(cp -f "$macros_docdir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4381 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4382 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4383 echo 'util-macros \"docdir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4384
4385
4386
4387
4388
4389 if test x$APP_MAN_SUFFIX = x ; then
4390 APP_MAN_SUFFIX=1
4391 fi
4392 if test x$APP_MAN_DIR = x ; then
4393 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4394 fi
4395
4396 if test x$LIB_MAN_SUFFIX = x ; then
4397 LIB_MAN_SUFFIX=3
4398 fi
4399 if test x$LIB_MAN_DIR = x ; then
4400 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4401 fi
4402
4403 if test x$FILE_MAN_SUFFIX = x ; then
4404 case $host_os in
4405 solaris*) FILE_MAN_SUFFIX=4 ;;
4406 *) FILE_MAN_SUFFIX=5 ;;
4407 esac
4408 fi
4409 if test x$FILE_MAN_DIR = x ; then
4410 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4411 fi
4412
4413 if test x$MISC_MAN_SUFFIX = x ; then
4414 case $host_os in
4415 solaris*) MISC_MAN_SUFFIX=5 ;;
4416 *) MISC_MAN_SUFFIX=7 ;;
4417 esac
4418 fi
4419 if test x$MISC_MAN_DIR = x ; then
4420 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4421 fi
4422
4423 if test x$DRIVER_MAN_SUFFIX = x ; then
4424 case $host_os in
4425 solaris*) DRIVER_MAN_SUFFIX=7 ;;
4426 *) DRIVER_MAN_SUFFIX=4 ;;
4427 esac
4428 fi
4429 if test x$DRIVER_MAN_DIR = x ; then
4430 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4431 fi
4432
4433 if test x$ADMIN_MAN_SUFFIX = x ; then
4434 case $host_os in
4435 solaris*) ADMIN_MAN_SUFFIX=1m ;;
4436 *) ADMIN_MAN_SUFFIX=8 ;;
4437 esac
4438 fi
4439 if test x$ADMIN_MAN_DIR = x ; then
4440 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4441 fi
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459 ac_aux_dir=
4460 for ac_dir in . "$srcdir"/.; do
4461 if test -f "$ac_dir/install-sh"; then
4462 ac_aux_dir=$ac_dir
4463 ac_install_sh="$ac_aux_dir/install-sh -c"
4464 break
4465 elif test -f "$ac_dir/install.sh"; then
4466 ac_aux_dir=$ac_dir
4467 ac_install_sh="$ac_aux_dir/install.sh -c"
4468 break
4469 elif test -f "$ac_dir/shtool"; then
4470 ac_aux_dir=$ac_dir
4471 ac_install_sh="$ac_aux_dir/shtool install -c"
4472 break
4473 fi
4474 done
4475 if test -z "$ac_aux_dir"; then
4476 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
4477 $as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
4478 { (exit 1); exit 1; }; }
4479 fi
4480
4481 # These three variables are undocumented and unsupported,
4482 # and are intended to be withdrawn in a future Autoconf release.
4483 # They can cause serious problems if a builder's source tree is in a directory
4484 # whose full name contains unusual characters.
4485 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4486 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4487 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4488
4489
4490
4491 am__api_version='1.11'
4492
4493 # Find a good install program. We prefer a C program (faster),
4494 # so one script is as good as another. But avoid the broken or
4495 # incompatible versions:
4496 # SysV /etc/install, /usr/sbin/install
4497 # SunOS /usr/etc/install
4498 # IRIX /sbin/install
4499 # AIX /bin/install
4500 # AmigaOS /C/install, which installs bootblocks on floppy discs
4501 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4502 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4503 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4504 # OS/2's system install, which has a completely different semantic
4505 # ./install, which can be erroneously created by make from ./install.sh.
4506 # Reject install programs that cannot install multiple files.
4507 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4508 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4509 if test -z "$INSTALL"; then
4510 if test "${ac_cv_path_install+set}" = set; then
4511 $as_echo_n "(cached) " >&6
4512 else
4513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 for as_dir in $PATH
4515 do
4516 IFS=$as_save_IFS
4517 test -z "$as_dir" && as_dir=.
4518 # Account for people who put trailing slashes in PATH elements.
4519 case $as_dir/ in
4520 ./ | .// | /cC/* | \
4521 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4522 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4523 /usr/ucb/* ) ;;
4524 *)
4525 # OSF1 and SCO ODT 3.0 have their own names for install.
4526 # Don't use installbsd from OSF since it installs stuff as root
4527 # by default.
4528 for ac_prog in ginstall scoinst install; do
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4531 if test $ac_prog = install &&
4532 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4533 # AIX install. It has an incompatible calling convention.
4534 :
4535 elif test $ac_prog = install &&
4536 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4537 # program-specific install script used by HP pwplus--don't use.
4538 :
4539 else
4540 rm -rf conftest.one conftest.two conftest.dir
4541 echo one > conftest.one
4542 echo two > conftest.two
4543 mkdir conftest.dir
4544 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4545 test -s conftest.one && test -s conftest.two &&
4546 test -s conftest.dir/conftest.one &&
4547 test -s conftest.dir/conftest.two
4548 then
4549 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4550 break 3
4551 fi
4552 fi
4553 fi
4554 done
4555 done
4556 ;;
4557 esac
4558
4559 done
4560 IFS=$as_save_IFS
4561
4562 rm -rf conftest.one conftest.two conftest.dir
4563
4564 fi
4565 if test "${ac_cv_path_install+set}" = set; then
4566 INSTALL=$ac_cv_path_install
4567 else
4568 # As a last resort, use the slow shell script. Don't cache a
4569 # value for INSTALL within a source directory, because that will
4570 # break other packages using the cache if that directory is
4571 # removed, or if the value is a relative name.
4572 INSTALL=$ac_install_sh
4573 fi
4574 fi
4575 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4576 $as_echo "$INSTALL" >&6; }
4577
4578 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4579 # It thinks the first close brace ends the variable substitution.
4580 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4581
4582 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4583
4584 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4585
4586 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4587 $as_echo_n "checking whether build environment is sane... " >&6; }
4588 # Just in case
4589 sleep 1
4590 echo timestamp > conftest.file
4591 # Reject unsafe characters in $srcdir or the absolute working directory
4592 # name. Accept space and tab only in the latter.
4593 am_lf='
4594 '
4595 case `pwd` in
4596 *[\\\"\#\$\&\'\`$am_lf]*)
4597 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
4598 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
4599 { (exit 1); exit 1; }; };;
4600 esac
4601 case $srcdir in
4602 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4603 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
4604 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
4605 { (exit 1); exit 1; }; };;
4606 esac
4607
4608 # Do `set' in a subshell so we don't clobber the current shell's
4609 # arguments. Must try -L first in case configure is actually a
4610 # symlink; some systems play weird games with the mod time of symlinks
4611 # (eg FreeBSD returns the mod time of the symlink's containing
4612 # directory).
4613 if (
4614 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4615 if test "$*" = "X"; then
4616 # -L didn't work.
4617 set X `ls -t "$srcdir/configure" conftest.file`
4618 fi
4619 rm -f conftest.file
4620 if test "$*" != "X $srcdir/configure conftest.file" \
4621 && test "$*" != "X conftest.file $srcdir/configure"; then
4622
4623 # If neither matched, then we have a broken ls. This can happen
4624 # if, for instance, CONFIG_SHELL is bash and it inherits a
4625 # broken ls alias from the environment. This has actually
4626 # happened. Such a system could not be considered "sane".
4627 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
4628 alias in your environment" >&5
4629 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
4630 alias in your environment" >&2;}
4631 { (exit 1); exit 1; }; }
4632 fi
4633
4634 test "$2" = conftest.file
4635 )
4636 then
4637 # Ok.
4638 :
4639 else
4640 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4641 Check your system clock" >&5
4642 $as_echo "$as_me: error: newly created file is older than distributed files!
4643 Check your system clock" >&2;}
4644 { (exit 1); exit 1; }; }
4645 fi
4646 { $as_echo "$as_me:$LINENO: result: yes" >&5
4647 $as_echo "yes" >&6; }
4648 test "$program_prefix" != NONE &&
4649 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4650 # Use a double $ so make ignores it.
4651 test "$program_suffix" != NONE &&
4652 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4653 # Double any \ or $.
4654 # By default was `s,x,x', remove it if useless.
4655 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4656 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4657
4658 # expand $ac_aux_dir to an absolute path
4659 am_aux_dir=`cd $ac_aux_dir && pwd`
4660
4661 if test x"${MISSING+set}" != xset; then
4662 case $am_aux_dir in
4663 *\ * | *\ *)
4664 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4665 *)
4666 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4667 esac
4668 fi
4669 # Use eval to expand $SHELL
4670 if eval "$MISSING --run true"; then
4671 am_missing_run="$MISSING --run "
4672 else
4673 am_missing_run=
4674 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4675 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4676 fi
4677
4678 if test x"${install_sh}" != xset; then
4679 case $am_aux_dir in
4680 *\ * | *\ *)
4681 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4682 *)
4683 install_sh="\${SHELL} $am_aux_dir/install-sh"
4684 esac
4685 fi
4686
4687 # Installed binaries are usually stripped using `strip' when the user
4688 # run `make install-strip'. However `strip' might not be the right
4689 # tool to use in cross-compilation environments, therefore Automake
4690 # will honor the `STRIP' environment variable to overrule this program.
4691 if test "$cross_compiling" != no; then
4692 if test -n "$ac_tool_prefix"; then
4693 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4694 set dummy ${ac_tool_prefix}strip; ac_word=$2
4695 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4696 $as_echo_n "checking for $ac_word... " >&6; }
4697 if test "${ac_cv_prog_STRIP+set}" = set; then
4698 $as_echo_n "(cached) " >&6
4699 else
4700 if test -n "$STRIP"; then
4701 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4702 else
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 for as_dir in $PATH
4705 do
4706 IFS=$as_save_IFS
4707 test -z "$as_dir" && as_dir=.
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4710 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4711 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4712 break 2
4713 fi
4714 done
4715 done
4716 IFS=$as_save_IFS
4717
4718 fi
4719 fi
4720 STRIP=$ac_cv_prog_STRIP
4721 if test -n "$STRIP"; then
4722 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4723 $as_echo "$STRIP" >&6; }
4724 else
4725 { $as_echo "$as_me:$LINENO: result: no" >&5
4726 $as_echo "no" >&6; }
4727 fi
4728
4729
4730 fi
4731 if test -z "$ac_cv_prog_STRIP"; then
4732 ac_ct_STRIP=$STRIP
4733 # Extract the first word of "strip", so it can be a program name with args.
4734 set dummy strip; ac_word=$2
4735 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4736 $as_echo_n "checking for $ac_word... " >&6; }
4737 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4738 $as_echo_n "(cached) " >&6
4739 else
4740 if test -n "$ac_ct_STRIP"; then
4741 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4742 else
4743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744 for as_dir in $PATH
4745 do
4746 IFS=$as_save_IFS
4747 test -z "$as_dir" && as_dir=.
4748 for ac_exec_ext in '' $ac_executable_extensions; do
4749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4750 ac_cv_prog_ac_ct_STRIP="strip"
4751 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4752 break 2
4753 fi
4754 done
4755 done
4756 IFS=$as_save_IFS
4757
4758 fi
4759 fi
4760 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4761 if test -n "$ac_ct_STRIP"; then
4762 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4763 $as_echo "$ac_ct_STRIP" >&6; }
4764 else
4765 { $as_echo "$as_me:$LINENO: result: no" >&5
4766 $as_echo "no" >&6; }
4767 fi
4768
4769 if test "x$ac_ct_STRIP" = x; then
4770 STRIP=":"
4771 else
4772 case $cross_compiling:$ac_tool_warned in
4773 yes:)
4774 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4776 ac_tool_warned=yes ;;
4777 esac
4778 STRIP=$ac_ct_STRIP
4779 fi
4780 else
4781 STRIP="$ac_cv_prog_STRIP"
4782 fi
4783
4784 fi
4785 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4786
4787 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
4788 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4789 if test -z "$MKDIR_P"; then
4790 if test "${ac_cv_path_mkdir+set}" = set; then
4791 $as_echo_n "(cached) " >&6
4792 else
4793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4795 do
4796 IFS=$as_save_IFS
4797 test -z "$as_dir" && as_dir=.
4798 for ac_prog in mkdir gmkdir; do
4799 for ac_exec_ext in '' $ac_executable_extensions; do
4800 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4801 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4802 'mkdir (GNU coreutils) '* | \
4803 'mkdir (coreutils) '* | \
4804 'mkdir (fileutils) '4.1*)
4805 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4806 break 3;;
4807 esac
4808 done
4809 done
4810 done
4811 IFS=$as_save_IFS
4812
4813 fi
4814
4815 if test "${ac_cv_path_mkdir+set}" = set; then
4816 MKDIR_P="$ac_cv_path_mkdir -p"
4817 else
4818 # As a last resort, use the slow shell script. Don't cache a
4819 # value for MKDIR_P within a source directory, because that will
4820 # break other packages using the cache if that directory is
4821 # removed, or if the value is a relative name.
4822 test -d ./--version && rmdir ./--version
4823 MKDIR_P="$ac_install_sh -d"
4824 fi
4825 fi
4826 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
4827 $as_echo "$MKDIR_P" >&6; }
4828
4829 mkdir_p="$MKDIR_P"
4830 case $mkdir_p in
4831 [\\/$]* | ?:[\\/]*) ;;
4832 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4833 esac
4834
4835 for ac_prog in gawk mawk nawk awk
4836 do
4837 # Extract the first word of "$ac_prog", so it can be a program name with args.
4838 set dummy $ac_prog; ac_word=$2
4839 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4840 $as_echo_n "checking for $ac_word... " >&6; }
4841 if test "${ac_cv_prog_AWK+set}" = set; then
4842 $as_echo_n "(cached) " >&6
4843 else
4844 if test -n "$AWK"; then
4845 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4846 else
4847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848 for as_dir in $PATH
4849 do
4850 IFS=$as_save_IFS
4851 test -z "$as_dir" && as_dir=.
4852 for ac_exec_ext in '' $ac_executable_extensions; do
4853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4854 ac_cv_prog_AWK="$ac_prog"
4855 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4856 break 2
4857 fi
4858 done
4859 done
4860 IFS=$as_save_IFS
4861
4862 fi
4863 fi
4864 AWK=$ac_cv_prog_AWK
4865 if test -n "$AWK"; then
4866 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
4867 $as_echo "$AWK" >&6; }
4868 else
4869 { $as_echo "$as_me:$LINENO: result: no" >&5
4870 $as_echo "no" >&6; }
4871 fi
4872
4873
4874 test -n "$AWK" && break
4875 done
4876
4877 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4878 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4879 set x ${MAKE-make}
4880 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4881 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4882 $as_echo_n "(cached) " >&6
4883 else
4884 cat >conftest.make <<\_ACEOF
4885 SHELL = /bin/sh
4886 all:
4887 @echo '@@@%%%=$(MAKE)=@@@%%%'
4888 _ACEOF
4889 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4890 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4891 *@@@%%%=?*=@@@%%%*)
4892 eval ac_cv_prog_make_${ac_make}_set=yes;;
4893 *)
4894 eval ac_cv_prog_make_${ac_make}_set=no;;
4895 esac
4896 rm -f conftest.make
4897 fi
4898 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4899 { $as_echo "$as_me:$LINENO: result: yes" >&5
4900 $as_echo "yes" >&6; }
4901 SET_MAKE=
4902 else
4903 { $as_echo "$as_me:$LINENO: result: no" >&5
4904 $as_echo "no" >&6; }
4905 SET_MAKE="MAKE=${MAKE-make}"
4906 fi
4907
4908 rm -rf .tst 2>/dev/null
4909 mkdir .tst 2>/dev/null
4910 if test -d .tst; then
4911 am__leading_dot=.
4912 else
4913 am__leading_dot=_
4914 fi
4915 rmdir .tst 2>/dev/null
4916
4917 DEPDIR="${am__leading_dot}deps"
4918
4919 ac_config_commands="$ac_config_commands depfiles"
4920
4921
4922 am_make=${MAKE-make}
4923 cat > confinc << 'END'
4924 am__doit:
4925 @echo this is the am__doit target
4926 .PHONY: am__doit
4927 END
4928 # If we don't find an include directive, just comment out the code.
4929 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4930 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4931 am__include="#"
4932 am__quote=
4933 _am_result=none
4934 # First try GNU make style include.
4935 echo "include confinc" > confmf
4936 # Ignore all kinds of additional output from `make'.
4937 case `$am_make -s -f confmf 2> /dev/null` in #(
4938 *the\ am__doit\ target*)
4939 am__include=include
4940 am__quote=
4941 _am_result=GNU
4942 ;;
4943 esac
4944 # Now try BSD make style include.
4945 if test "$am__include" = "#"; then
4946 echo '.include "confinc"' > confmf
4947 case `$am_make -s -f confmf 2> /dev/null` in #(
4948 *the\ am__doit\ target*)
4949 am__include=.include
4950 am__quote="\""
4951 _am_result=BSD
4952 ;;
4953 esac
4954 fi
4955
4956
4957 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4958 $as_echo "$_am_result" >&6; }
4959 rm -f confinc confmf
4960
4961 # Check whether --enable-dependency-tracking was given.
4962 if test "${enable_dependency_tracking+set}" = set; then
4963 enableval=$enable_dependency_tracking;
4964 fi
4965
4966 if test "x$enable_dependency_tracking" != xno; then
4967 am_depcomp="$ac_aux_dir/depcomp"
4968 AMDEPBACKSLASH='\'
4969 fi
4970 if test "x$enable_dependency_tracking" != xno; then
4971 AMDEP_TRUE=
4972 AMDEP_FALSE='#'
4973 else
4974 AMDEP_TRUE='#'
4975 AMDEP_FALSE=
4976 fi
4977
4978
4979 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4980 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4981 # is not polluted with repeated "-I."
4982 am__isrc=' -I$(srcdir)'
4983 # test to see if srcdir already configured
4984 if test -f $srcdir/config.status; then
4985 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4986 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4987 { (exit 1); exit 1; }; }
4988 fi
4989 fi
4990
4991 # test whether we have cygpath
4992 if test -z "$CYGPATH_W"; then
4993 if (cygpath --version) >/dev/null 2>/dev/null; then
4994 CYGPATH_W='cygpath -w'
4995 else
4996 CYGPATH_W=echo
4997 fi
4998 fi
4999
5000
5001 # Define the identity of the package.
5002 PACKAGE='xf86-video-mga'
5003 VERSION='1.4.12'
5004
5005
5006 cat >>confdefs.h <<_ACEOF
5007 #define PACKAGE "$PACKAGE"
5008 _ACEOF
5009
5010
5011 cat >>confdefs.h <<_ACEOF
5012 #define VERSION "$VERSION"
5013 _ACEOF
5014
5015 # Some tools Automake needs.
5016
5017 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5018
5019
5020 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5021
5022
5023 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5024
5025
5026 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5027
5028
5029 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5030
5031 # We need awk for the "check" target. The system "awk" is bad on
5032 # some platforms.
5033 # Always define AMTAR for backward compatibility.
5034
5035 AMTAR=${AMTAR-"${am_missing_run}tar"}
5036
5037 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5038
5039
5040
5041
5042 depcc="$CC" am_compiler_list=
5043
5044 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5045 $as_echo_n "checking dependency style of $depcc... " >&6; }
5046 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5047 $as_echo_n "(cached) " >&6
5048 else
5049 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5050 # We make a subdir and do the tests there. Otherwise we can end up
5051 # making bogus files that we don't know about and never remove. For
5052 # instance it was reported that on HP-UX the gcc test will end up
5053 # making a dummy file named `D' -- because `-MD' means `put the output
5054 # in D'.
5055 mkdir conftest.dir
5056 # Copy depcomp to subdir because otherwise we won't find it if we're
5057 # using a relative directory.
5058 cp "$am_depcomp" conftest.dir
5059 cd conftest.dir
5060 # We will build objects and dependencies in a subdirectory because
5061 # it helps to detect inapplicable dependency modes. For instance
5062 # both Tru64's cc and ICC support -MD to output dependencies as a
5063 # side effect of compilation, but ICC will put the dependencies in
5064 # the current directory while Tru64 will put them in the object
5065 # directory.
5066 mkdir sub
5067
5068 am_cv_CC_dependencies_compiler_type=none
5069 if test "$am_compiler_list" = ""; then
5070 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5071 fi
5072 am__universal=false
5073 case " $depcc " in #(
5074 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5075 esac
5076
5077 for depmode in $am_compiler_list; do
5078 # Setup a source with many dependencies, because some compilers
5079 # like to wrap large dependency lists on column 80 (with \), and
5080 # we should not choose a depcomp mode which is confused by this.
5081 #
5082 # We need to recreate these files for each test, as the compiler may
5083 # overwrite some of them when testing with obscure command lines.
5084 # This happens at least with the AIX C compiler.
5085 : > sub/conftest.c
5086 for i in 1 2 3 4 5 6; do
5087 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5088 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5089 # Solaris 8's {/usr,}/bin/sh.
5090 touch sub/conftst$i.h
5091 done
5092 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5093
5094 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5095 # mode. It turns out that the SunPro C++ compiler does not properly
5096 # handle `-M -o', and we need to detect this. Also, some Intel
5097 # versions had trouble with output in subdirs
5098 am__obj=sub/conftest.${OBJEXT-o}
5099 am__minus_obj="-o $am__obj"
5100 case $depmode in
5101 gcc)
5102 # This depmode causes a compiler race in universal mode.
5103 test "$am__universal" = false || continue
5104 ;;
5105 nosideeffect)
5106 # after this tag, mechanisms are not by side-effect, so they'll
5107 # only be used when explicitly requested
5108 if test "x$enable_dependency_tracking" = xyes; then
5109 continue
5110 else
5111 break
5112 fi
5113 ;;
5114 msvisualcpp | msvcmsys)
5115 # This compiler won't grok `-c -o', but also, the minuso test has
5116 # not run yet. These depmodes are late enough in the game, and
5117 # so weak that their functioning should not be impacted.
5118 am__obj=conftest.${OBJEXT-o}
5119 am__minus_obj=
5120 ;;
5121 none) break ;;
5122 esac
5123 if depmode=$depmode \
5124 source=sub/conftest.c object=$am__obj \
5125 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5126 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5127 >/dev/null 2>conftest.err &&
5128 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5129 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5130 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5131 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5132 # icc doesn't choke on unknown options, it will just issue warnings
5133 # or remarks (even with -Werror). So we grep stderr for any message
5134 # that says an option was ignored or not supported.
5135 # When given -MP, icc 7.0 and 7.1 complain thusly:
5136 # icc: Command line warning: ignoring option '-M'; no argument required
5137 # The diagnosis changed in icc 8.0:
5138 # icc: Command line remark: option '-MP' not supported
5139 if (grep 'ignoring option' conftest.err ||
5140 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5141 am_cv_CC_dependencies_compiler_type=$depmode
5142 break
5143 fi
5144 fi
5145 done
5146
5147 cd ..
5148 rm -rf conftest.dir
5149 else
5150 am_cv_CC_dependencies_compiler_type=none
5151 fi
5152
5153 fi
5154 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5155 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5156 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5157
5158 if
5159 test "x$enable_dependency_tracking" != xno \
5160 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5161 am__fastdepCC_TRUE=
5162 am__fastdepCC_FALSE='#'
5163 else
5164 am__fastdepCC_TRUE='#'
5165 am__fastdepCC_FALSE=
5166 fi
5167
5168
5169
5170
5171
5172 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5173 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5174 # Check whether --enable-maintainer-mode was given.
5175 if test "${enable_maintainer_mode+set}" = set; then
5176 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5177 else
5178 USE_MAINTAINER_MODE=no
5179 fi
5180
5181 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5182 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5183 if test $USE_MAINTAINER_MODE = yes; then
5184 MAINTAINER_MODE_TRUE=
5185 MAINTAINER_MODE_FALSE='#'
5186 else
5187 MAINTAINER_MODE_TRUE='#'
5188 MAINTAINER_MODE_FALSE=
5189 fi
5190
5191 MAINT=$MAINTAINER_MODE_TRUE
5192
5193
5194
5195 # Checks for programs.
5196 # Check whether --enable-static was given.
5197 if test "${enable_static+set}" = set; then
5198 enableval=$enable_static; p=${PACKAGE-default}
5199 case $enableval in
5200 yes) enable_static=yes ;;
5201 no) enable_static=no ;;
5202 *)
5203 enable_static=no
5204 # Look at the argument we got. We use all the common list separators.
5205 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5206 for pkg in $enableval; do
5207 IFS="$lt_save_ifs"
5208 if test "X$pkg" = "X$p"; then
5209 enable_static=yes
5210 fi
5211 done
5212 IFS="$lt_save_ifs"
5213 ;;
5214 esac
5215 else
5216 enable_static=no
5217 fi
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227 case `pwd` in
5228 *\ * | *\ *)
5229 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5230 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5231 esac
5232
5233
5234
5235 macro_version='2.2.6'
5236 macro_revision='1.3012'
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250 ltmain="$ac_aux_dir/ltmain.sh"
5251
5252 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5253 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5254 if test "${ac_cv_path_SED+set}" = set; then
5255 $as_echo_n "(cached) " >&6
5256 else
5257 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5258 for ac_i in 1 2 3 4 5 6 7; do
5259 ac_script="$ac_script$as_nl$ac_script"
5260 done
5261 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5262 $as_unset ac_script || ac_script=
5263 if test -z "$SED"; then
5264 ac_path_SED_found=false
5265 # Loop through the user's path and test for each of PROGNAME-LIST
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 for as_dir in $PATH
5268 do
5269 IFS=$as_save_IFS
5270 test -z "$as_dir" && as_dir=.
5271 for ac_prog in sed gsed; do
5272 for ac_exec_ext in '' $ac_executable_extensions; do
5273 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5274 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5275 # Check for GNU ac_path_SED and select it if it is found.
5276 # Check for GNU $ac_path_SED
5277 case `"$ac_path_SED" --version 2>&1` in
5278 *GNU*)
5279 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5280 *)
5281 ac_count=0
5282 $as_echo_n 0123456789 >"conftest.in"
5283 while :
5284 do
5285 cat "conftest.in" "conftest.in" >"conftest.tmp"
5286 mv "conftest.tmp" "conftest.in"
5287 cp "conftest.in" "conftest.nl"
5288 $as_echo '' >> "conftest.nl"
5289 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5290 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5291 ac_count=`expr $ac_count + 1`
5292 if test $ac_count -gt ${ac_path_SED_max-0}; then
5293 # Best one so far, save it but keep looking for a better one
5294 ac_cv_path_SED="$ac_path_SED"
5295 ac_path_SED_max=$ac_count
5296 fi
5297 # 10*(2^10) chars as input seems more than enough
5298 test $ac_count -gt 10 && break
5299 done
5300 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5301 esac
5302
5303 $ac_path_SED_found && break 3
5304 done
5305 done
5306 done
5307 IFS=$as_save_IFS
5308 if test -z "$ac_cv_path_SED"; then
5309 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5310 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5311 { (exit 1); exit 1; }; }
5312 fi
5313 else
5314 ac_cv_path_SED=$SED
5315 fi
5316
5317 fi
5318 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5319 $as_echo "$ac_cv_path_SED" >&6; }
5320 SED="$ac_cv_path_SED"
5321 rm -f conftest.sed
5322
5323 test -z "$SED" && SED=sed
5324 Xsed="$SED -e 1s/^X//"
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5337 $as_echo_n "checking for fgrep... " >&6; }
5338 if test "${ac_cv_path_FGREP+set}" = set; then
5339 $as_echo_n "(cached) " >&6
5340 else
5341 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5342 then ac_cv_path_FGREP="$GREP -F"
5343 else
5344 if test -z "$FGREP"; then
5345 ac_path_FGREP_found=false
5346 # Loop through the user's path and test for each of PROGNAME-LIST
5347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5349 do
5350 IFS=$as_save_IFS
5351 test -z "$as_dir" && as_dir=.
5352 for ac_prog in fgrep; do
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5355 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5356 # Check for GNU ac_path_FGREP and select it if it is found.
5357 # Check for GNU $ac_path_FGREP
5358 case `"$ac_path_FGREP" --version 2>&1` in
5359 *GNU*)
5360 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5361 *)
5362 ac_count=0
5363 $as_echo_n 0123456789 >"conftest.in"
5364 while :
5365 do
5366 cat "conftest.in" "conftest.in" >"conftest.tmp"
5367 mv "conftest.tmp" "conftest.in"
5368 cp "conftest.in" "conftest.nl"
5369 $as_echo 'FGREP' >> "conftest.nl"
5370 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5371 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5372 ac_count=`expr $ac_count + 1`
5373 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5374 # Best one so far, save it but keep looking for a better one
5375 ac_cv_path_FGREP="$ac_path_FGREP"
5376 ac_path_FGREP_max=$ac_count
5377 fi
5378 # 10*(2^10) chars as input seems more than enough
5379 test $ac_count -gt 10 && break
5380 done
5381 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5382 esac
5383
5384 $ac_path_FGREP_found && break 3
5385 done
5386 done
5387 done
5388 IFS=$as_save_IFS
5389 if test -z "$ac_cv_path_FGREP"; then
5390 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5391 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5392 { (exit 1); exit 1; }; }
5393 fi
5394 else
5395 ac_cv_path_FGREP=$FGREP
5396 fi
5397
5398 fi
5399 fi
5400 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5401 $as_echo "$ac_cv_path_FGREP" >&6; }
5402 FGREP="$ac_cv_path_FGREP"
5403
5404
5405 test -z "$GREP" && GREP=grep
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425 # Check whether --with-gnu-ld was given.
5426 if test "${with_gnu_ld+set}" = set; then
5427 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5428 else
5429 with_gnu_ld=no
5430 fi
5431
5432 ac_prog=ld
5433 if test "$GCC" = yes; then
5434 # Check if gcc -print-prog-name=ld gives a path.
5435 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5436 $as_echo_n "checking for ld used by $CC... " >&6; }
5437 case $host in
5438 *-*-mingw*)
5439 # gcc leaves a trailing carriage return which upsets mingw
5440 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5441 *)
5442 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5443 esac
5444 case $ac_prog in
5445 # Accept absolute paths.
5446 [\\/]* | ?:[\\/]*)
5447 re_direlt='/[^/][^/]*/\.\./'
5448 # Canonicalize the pathname of ld
5449 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5450 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5451 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5452 done
5453 test -z "$LD" && LD="$ac_prog"
5454 ;;
5455 "")
5456 # If it fails, then pretend we aren't using GCC.
5457 ac_prog=ld
5458 ;;
5459 *)
5460 # If it is relative, then search for the first ld in PATH.
5461 with_gnu_ld=unknown
5462 ;;
5463 esac
5464 elif test "$with_gnu_ld" = yes; then
5465 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5466 $as_echo_n "checking for GNU ld... " >&6; }
5467 else
5468 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5469 $as_echo_n "checking for non-GNU ld... " >&6; }
5470 fi
5471 if test "${lt_cv_path_LD+set}" = set; then
5472 $as_echo_n "(cached) " >&6
5473 else
5474 if test -z "$LD"; then
5475 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5476 for ac_dir in $PATH; do
5477 IFS="$lt_save_ifs"
5478 test -z "$ac_dir" && ac_dir=.
5479 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5480 lt_cv_path_LD="$ac_dir/$ac_prog"
5481 # Check to see if the program is GNU ld. I'd rather use --version,
5482 # but apparently some variants of GNU ld only accept -v.
5483 # Break only if it was the GNU/non-GNU ld that we prefer.
5484 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5485 *GNU* | *'with BFD'*)
5486 test "$with_gnu_ld" != no && break
5487 ;;
5488 *)
5489 test "$with_gnu_ld" != yes && break
5490 ;;
5491 esac
5492 fi
5493 done
5494 IFS="$lt_save_ifs"
5495 else
5496 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5497 fi
5498 fi
5499
5500 LD="$lt_cv_path_LD"
5501 if test -n "$LD"; then
5502 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5503 $as_echo "$LD" >&6; }
5504 else
5505 { $as_echo "$as_me:$LINENO: result: no" >&5
5506 $as_echo "no" >&6; }
5507 fi
5508 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5509 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5510 { (exit 1); exit 1; }; }
5511 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5512 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5513 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5514 $as_echo_n "(cached) " >&6
5515 else
5516 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5517 case `$LD -v 2>&1 </dev/null` in
5518 *GNU* | *'with BFD'*)
5519 lt_cv_prog_gnu_ld=yes
5520 ;;
5521 *)
5522 lt_cv_prog_gnu_ld=no
5523 ;;
5524 esac
5525 fi
5526 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5527 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5528 with_gnu_ld=$lt_cv_prog_gnu_ld
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5539 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5540 if test "${lt_cv_path_NM+set}" = set; then
5541 $as_echo_n "(cached) " >&6
5542 else
5543 if test -n "$NM"; then
5544 # Let the user override the test.
5545 lt_cv_path_NM="$NM"
5546 else
5547 lt_nm_to_check="${ac_tool_prefix}nm"
5548 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5549 lt_nm_to_check="$lt_nm_to_check nm"
5550 fi
5551 for lt_tmp_nm in $lt_nm_to_check; do
5552 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5553 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5554 IFS="$lt_save_ifs"
5555 test -z "$ac_dir" && ac_dir=.
5556 tmp_nm="$ac_dir/$lt_tmp_nm"
5557 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5558 # Check to see if the nm accepts a BSD-compat flag.
5559 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5560 # nm: unknown option "B" ignored
5561 # Tru64's nm complains that /dev/null is an invalid object file
5562 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5563 */dev/null* | *'Invalid file or object type'*)
5564 lt_cv_path_NM="$tmp_nm -B"
5565 break
5566 ;;
5567 *)
5568 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5569 */dev/null*)
5570 lt_cv_path_NM="$tmp_nm -p"
5571 break
5572 ;;
5573 *)
5574 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5575 continue # so that we can try to find one that supports BSD flags
5576 ;;
5577 esac
5578 ;;
5579 esac
5580 fi
5581 done
5582 IFS="$lt_save_ifs"
5583 done
5584 : ${lt_cv_path_NM=no}
5585 fi
5586 fi
5587 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5588 $as_echo "$lt_cv_path_NM" >&6; }
5589 if test "$lt_cv_path_NM" != "no"; then
5590 NM="$lt_cv_path_NM"
5591 else
5592 # Didn't find any BSD compatible name lister, look for dumpbin.
5593 if test -n "$ac_tool_prefix"; then
5594 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5595 do
5596 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5597 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5598 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5599 $as_echo_n "checking for $ac_word... " >&6; }
5600 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5601 $as_echo_n "(cached) " >&6
5602 else
5603 if test -n "$DUMPBIN"; then
5604 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5605 else
5606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5607 for as_dir in $PATH
5608 do
5609 IFS=$as_save_IFS
5610 test -z "$as_dir" && as_dir=.
5611 for ac_exec_ext in '' $ac_executable_extensions; do
5612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5613 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5614 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5615 break 2
5616 fi
5617 done
5618 done
5619 IFS=$as_save_IFS
5620
5621 fi
5622 fi
5623 DUMPBIN=$ac_cv_prog_DUMPBIN
5624 if test -n "$DUMPBIN"; then
5625 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5626 $as_echo "$DUMPBIN" >&6; }
5627 else
5628 { $as_echo "$as_me:$LINENO: result: no" >&5
5629 $as_echo "no" >&6; }
5630 fi
5631
5632
5633 test -n "$DUMPBIN" && break
5634 done
5635 fi
5636 if test -z "$DUMPBIN"; then
5637 ac_ct_DUMPBIN=$DUMPBIN
5638 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5639 do
5640 # Extract the first word of "$ac_prog", so it can be a program name with args.
5641 set dummy $ac_prog; ac_word=$2
5642 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5643 $as_echo_n "checking for $ac_word... " >&6; }
5644 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5645 $as_echo_n "(cached) " >&6
5646 else
5647 if test -n "$ac_ct_DUMPBIN"; then
5648 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5649 else
5650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651 for as_dir in $PATH
5652 do
5653 IFS=$as_save_IFS
5654 test -z "$as_dir" && as_dir=.
5655 for ac_exec_ext in '' $ac_executable_extensions; do
5656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5657 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5658 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5659 break 2
5660 fi
5661 done
5662 done
5663 IFS=$as_save_IFS
5664
5665 fi
5666 fi
5667 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5668 if test -n "$ac_ct_DUMPBIN"; then
5669 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5670 $as_echo "$ac_ct_DUMPBIN" >&6; }
5671 else
5672 { $as_echo "$as_me:$LINENO: result: no" >&5
5673 $as_echo "no" >&6; }
5674 fi
5675
5676
5677 test -n "$ac_ct_DUMPBIN" && break
5678 done
5679
5680 if test "x$ac_ct_DUMPBIN" = x; then
5681 DUMPBIN=":"
5682 else
5683 case $cross_compiling:$ac_tool_warned in
5684 yes:)
5685 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5687 ac_tool_warned=yes ;;
5688 esac
5689 DUMPBIN=$ac_ct_DUMPBIN
5690 fi
5691 fi
5692
5693
5694 if test "$DUMPBIN" != ":"; then
5695 NM="$DUMPBIN"
5696 fi
5697 fi
5698 test -z "$NM" && NM=nm
5699
5700
5701
5702
5703
5704
5705 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5706 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5707 if test "${lt_cv_nm_interface+set}" = set; then
5708 $as_echo_n "(cached) " >&6
5709 else
5710 lt_cv_nm_interface="BSD nm"
5711 echo "int some_variable = 0;" > conftest.$ac_ext
5712 (eval echo "\"\$as_me:5712: $ac_compile\"" >&5)
5713 (eval "$ac_compile" 2>conftest.err)
5714 cat conftest.err >&5
5715 (eval echo "\"\$as_me:5715: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5716 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5717 cat conftest.err >&5
5718 (eval echo "\"\$as_me:5718: output\"" >&5)
5719 cat conftest.out >&5
5720 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5721 lt_cv_nm_interface="MS dumpbin"
5722 fi
5723 rm -f conftest*
5724 fi
5725 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5726 $as_echo "$lt_cv_nm_interface" >&6; }
5727
5728 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5729 $as_echo_n "checking whether ln -s works... " >&6; }
5730 LN_S=$as_ln_s
5731 if test "$LN_S" = "ln -s"; then
5732 { $as_echo "$as_me:$LINENO: result: yes" >&5
5733 $as_echo "yes" >&6; }
5734 else
5735 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5736 $as_echo "no, using $LN_S" >&6; }
5737 fi
5738
5739 # find the maximum length of command line arguments
5740 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5741 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5742 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5743 $as_echo_n "(cached) " >&6
5744 else
5745 i=0
5746 teststring="ABCD"
5747
5748 case $build_os in
5749 msdosdjgpp*)
5750 # On DJGPP, this test can blow up pretty badly due to problems in libc
5751 # (any single argument exceeding 2000 bytes causes a buffer overrun
5752 # during glob expansion). Even if it were fixed, the result of this
5753 # check would be larger than it should be.
5754 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5755 ;;
5756
5757 gnu*)
5758 # Under GNU Hurd, this test is not required because there is
5759 # no limit to the length of command line arguments.
5760 # Libtool will interpret -1 as no limit whatsoever
5761 lt_cv_sys_max_cmd_len=-1;
5762 ;;
5763
5764 cygwin* | mingw* | cegcc*)
5765 # On Win9x/ME, this test blows up -- it succeeds, but takes
5766 # about 5 minutes as the teststring grows exponentially.
5767 # Worse, since 9x/ME are not pre-emptively multitasking,
5768 # you end up with a "frozen" computer, even though with patience
5769 # the test eventually succeeds (with a max line length of 256k).
5770 # Instead, let's just punt: use the minimum linelength reported by
5771 # all of the supported platforms: 8192 (on NT/2K/XP).
5772 lt_cv_sys_max_cmd_len=8192;
5773 ;;
5774
5775 amigaos*)
5776 # On AmigaOS with pdksh, this test takes hours, literally.
5777 # So we just punt and use a minimum line length of 8192.
5778 lt_cv_sys_max_cmd_len=8192;
5779 ;;
5780
5781 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5782 # This has been around since 386BSD, at least. Likely further.
5783 if test -x /sbin/sysctl; then
5784 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5785 elif test -x /usr/sbin/sysctl; then
5786 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5787 else
5788 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5789 fi
5790 # And add a safety zone
5791 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5792 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5793 ;;
5794
5795 interix*)
5796 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5797 lt_cv_sys_max_cmd_len=196608
5798 ;;
5799
5800 osf*)
5801 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5802 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5803 # nice to cause kernel panics so lets avoid the loop below.
5804 # First set a reasonable default.
5805 lt_cv_sys_max_cmd_len=16384
5806 #
5807 if test -x /sbin/sysconfig; then
5808 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5809 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5810 esac
5811 fi
5812 ;;
5813 sco3.2v5*)
5814 lt_cv_sys_max_cmd_len=102400
5815 ;;
5816 sysv5* | sco5v6* | sysv4.2uw2*)
5817 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5818 if test -n "$kargmax"; then
5819 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5820 else
5821 lt_cv_sys_max_cmd_len=32768
5822 fi
5823 ;;
5824 *)
5825 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5826 if test -n "$lt_cv_sys_max_cmd_len"; then
5827 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5828 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5829 else
5830 # Make teststring a little bigger before we do anything with it.
5831 # a 1K string should be a reasonable start.
5832 for i in 1 2 3 4 5 6 7 8 ; do
5833 teststring=$teststring$teststring
5834 done
5835 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5836 # If test is not a shell built-in, we'll probably end up computing a
5837 # maximum length that is only half of the actual maximum length, but
5838 # we can't tell.
5839 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5840 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5841 test $i != 17 # 1/2 MB should be enough
5842 do
5843 i=`expr $i + 1`
5844 teststring=$teststring$teststring
5845 done
5846 # Only check the string length outside the loop.
5847 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5848 teststring=
5849 # Add a significant safety factor because C++ compilers can tack on
5850 # massive amounts of additional arguments before passing them to the
5851 # linker. It appears as though 1/2 is a usable value.
5852 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5853 fi
5854 ;;
5855 esac
5856
5857 fi
5858
5859 if test -n $lt_cv_sys_max_cmd_len ; then
5860 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5861 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5862 else
5863 { $as_echo "$as_me:$LINENO: result: none" >&5
5864 $as_echo "none" >&6; }
5865 fi
5866 max_cmd_len=$lt_cv_sys_max_cmd_len
5867
5868
5869
5870
5871
5872
5873 : ${CP="cp -f"}
5874 : ${MV="mv -f"}
5875 : ${RM="rm -f"}
5876
5877 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5878 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5879 # Try some XSI features
5880 xsi_shell=no
5881 ( _lt_dummy="a/b/c"
5882 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5883 = c,a/b,, \
5884 && eval 'test $(( 1 + 1 )) -eq 2 \
5885 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5886 && xsi_shell=yes
5887 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5888 $as_echo "$xsi_shell" >&6; }
5889
5890
5891 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5892 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5893 lt_shell_append=no
5894 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5895 >/dev/null 2>&1 \
5896 && lt_shell_append=yes
5897 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5898 $as_echo "$lt_shell_append" >&6; }
5899
5900
5901 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5902 lt_unset=unset
5903 else
5904 lt_unset=false
5905 fi
5906
5907
5908
5909
5910
5911 # test EBCDIC or ASCII
5912 case `echo X|tr X '\101'` in
5913 A) # ASCII based system
5914 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5915 lt_SP2NL='tr \040 \012'
5916 lt_NL2SP='tr \015\012 \040\040'
5917 ;;
5918 *) # EBCDIC based system
5919 lt_SP2NL='tr \100 \n'
5920 lt_NL2SP='tr \r\n \100\100'
5921 ;;
5922 esac
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5933 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5934 if test "${lt_cv_ld_reload_flag+set}" = set; then
5935 $as_echo_n "(cached) " >&6
5936 else
5937 lt_cv_ld_reload_flag='-r'
5938 fi
5939 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5940 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5941 reload_flag=$lt_cv_ld_reload_flag
5942 case $reload_flag in
5943 "" | " "*) ;;
5944 *) reload_flag=" $reload_flag" ;;
5945 esac
5946 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5947 case $host_os in
5948 darwin*)
5949 if test "$GCC" = yes; then
5950 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5951 else
5952 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5953 fi
5954 ;;
5955 esac
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965 if test -n "$ac_tool_prefix"; then
5966 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5967 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5968 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5969 $as_echo_n "checking for $ac_word... " >&6; }
5970 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5971 $as_echo_n "(cached) " >&6
5972 else
5973 if test -n "$OBJDUMP"; then
5974 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5975 else
5976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977 for as_dir in $PATH
5978 do
5979 IFS=$as_save_IFS
5980 test -z "$as_dir" && as_dir=.
5981 for ac_exec_ext in '' $ac_executable_extensions; do
5982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5983 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5984 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5985 break 2
5986 fi
5987 done
5988 done
5989 IFS=$as_save_IFS
5990
5991 fi
5992 fi
5993 OBJDUMP=$ac_cv_prog_OBJDUMP
5994 if test -n "$OBJDUMP"; then
5995 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5996 $as_echo "$OBJDUMP" >&6; }
5997 else
5998 { $as_echo "$as_me:$LINENO: result: no" >&5
5999 $as_echo "no" >&6; }
6000 fi
6001
6002
6003 fi
6004 if test -z "$ac_cv_prog_OBJDUMP"; then
6005 ac_ct_OBJDUMP=$OBJDUMP
6006 # Extract the first word of "objdump", so it can be a program name with args.
6007 set dummy objdump; ac_word=$2
6008 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6009 $as_echo_n "checking for $ac_word... " >&6; }
6010 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6011 $as_echo_n "(cached) " >&6
6012 else
6013 if test -n "$ac_ct_OBJDUMP"; then
6014 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6015 else
6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017 for as_dir in $PATH
6018 do
6019 IFS=$as_save_IFS
6020 test -z "$as_dir" && as_dir=.
6021 for ac_exec_ext in '' $ac_executable_extensions; do
6022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6023 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6024 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6025 break 2
6026 fi
6027 done
6028 done
6029 IFS=$as_save_IFS
6030
6031 fi
6032 fi
6033 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6034 if test -n "$ac_ct_OBJDUMP"; then
6035 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6036 $as_echo "$ac_ct_OBJDUMP" >&6; }
6037 else
6038 { $as_echo "$as_me:$LINENO: result: no" >&5
6039 $as_echo "no" >&6; }
6040 fi
6041
6042 if test "x$ac_ct_OBJDUMP" = x; then
6043 OBJDUMP="false"
6044 else
6045 case $cross_compiling:$ac_tool_warned in
6046 yes:)
6047 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6049 ac_tool_warned=yes ;;
6050 esac
6051 OBJDUMP=$ac_ct_OBJDUMP
6052 fi
6053 else
6054 OBJDUMP="$ac_cv_prog_OBJDUMP"
6055 fi
6056
6057 test -z "$OBJDUMP" && OBJDUMP=objdump
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6068 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6069 if test "${lt_cv_deplibs_check_method+set}" = set; then
6070 $as_echo_n "(cached) " >&6
6071 else
6072 lt_cv_file_magic_cmd='$MAGIC_CMD'
6073 lt_cv_file_magic_test_file=
6074 lt_cv_deplibs_check_method='unknown'
6075 # Need to set the preceding variable on all platforms that support
6076 # interlibrary dependencies.
6077 # 'none' -- dependencies not supported.
6078 # `unknown' -- same as none, but documents that we really don't know.
6079 # 'pass_all' -- all dependencies passed with no checks.
6080 # 'test_compile' -- check by making test program.
6081 # 'file_magic [[regex]]' -- check by looking for files in library path
6082 # which responds to the $file_magic_cmd with a given extended regex.
6083 # If you have `file' or equivalent on your system and you're not sure
6084 # whether `pass_all' will *always* work, you probably want this one.
6085
6086 case $host_os in
6087 aix[4-9]*)
6088 lt_cv_deplibs_check_method=pass_all
6089 ;;
6090
6091 beos*)
6092 lt_cv_deplibs_check_method=pass_all
6093 ;;
6094
6095 bsdi[45]*)
6096 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6097 lt_cv_file_magic_cmd='/usr/bin/file -L'
6098 lt_cv_file_magic_test_file=/shlib/libc.so
6099 ;;
6100
6101 cygwin*)
6102 # func_win32_libid is a shell function defined in ltmain.sh
6103 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6104 lt_cv_file_magic_cmd='func_win32_libid'
6105 ;;
6106
6107 mingw* | pw32*)
6108 # Base MSYS/MinGW do not provide the 'file' command needed by
6109 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6110 # unless we find 'file', for example because we are cross-compiling.
6111 if ( file / ) >/dev/null 2>&1; then
6112 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6113 lt_cv_file_magic_cmd='func_win32_libid'
6114 else
6115 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6116 lt_cv_file_magic_cmd='$OBJDUMP -f'
6117 fi
6118 ;;
6119
6120 cegcc)
6121 # use the weaker test based on 'objdump'. See mingw*.
6122 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6123 lt_cv_file_magic_cmd='$OBJDUMP -f'
6124 ;;
6125
6126 darwin* | rhapsody*)
6127 lt_cv_deplibs_check_method=pass_all
6128 ;;
6129
6130 freebsd* | dragonfly*)
6131 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6132 case $host_cpu in
6133 i*86 )
6134 # Not sure whether the presence of OpenBSD here was a mistake.
6135 # Let's accept both of them until this is cleared up.
6136 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6137 lt_cv_file_magic_cmd=/usr/bin/file
6138 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6139 ;;
6140 esac
6141 else
6142 lt_cv_deplibs_check_method=pass_all
6143 fi
6144 ;;
6145
6146 gnu*)
6147 lt_cv_deplibs_check_method=pass_all
6148 ;;
6149
6150 hpux10.20* | hpux11*)
6151 lt_cv_file_magic_cmd=/usr/bin/file
6152 case $host_cpu in
6153 ia64*)
6154 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6155 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6156 ;;
6157 hppa*64*)
6158 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]'
6159 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6160 ;;
6161 *)
6162 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6163 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6164 ;;
6165 esac
6166 ;;
6167
6168 interix[3-9]*)
6169 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6170 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6171 ;;
6172
6173 irix5* | irix6* | nonstopux*)
6174 case $LD in
6175 *-32|*"-32 ") libmagic=32-bit;;
6176 *-n32|*"-n32 ") libmagic=N32;;
6177 *-64|*"-64 ") libmagic=64-bit;;
6178 *) libmagic=never-match;;
6179 esac
6180 lt_cv_deplibs_check_method=pass_all
6181 ;;
6182
6183 # This must be Linux ELF.
6184 linux* | k*bsd*-gnu)
6185 lt_cv_deplibs_check_method=pass_all
6186 ;;
6187
6188 netbsd*)
6189 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6190 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6191 else
6192 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6193 fi
6194 ;;
6195
6196 newos6*)
6197 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6198 lt_cv_file_magic_cmd=/usr/bin/file
6199 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6200 ;;
6201
6202 *nto* | *qnx*)
6203 lt_cv_deplibs_check_method=pass_all
6204 ;;
6205
6206 openbsd*)
6207 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6208 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6209 else
6210 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6211 fi
6212 ;;
6213
6214 osf3* | osf4* | osf5*)
6215 lt_cv_deplibs_check_method=pass_all
6216 ;;
6217
6218 rdos*)
6219 lt_cv_deplibs_check_method=pass_all
6220 ;;
6221
6222 solaris*)
6223 lt_cv_deplibs_check_method=pass_all
6224 ;;
6225
6226 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6227 lt_cv_deplibs_check_method=pass_all
6228 ;;
6229
6230 sysv4 | sysv4.3*)
6231 case $host_vendor in
6232 motorola)
6233 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]'
6234 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6235 ;;
6236 ncr)
6237 lt_cv_deplibs_check_method=pass_all
6238 ;;
6239 sequent)
6240 lt_cv_file_magic_cmd='/bin/file'
6241 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6242 ;;
6243 sni)
6244 lt_cv_file_magic_cmd='/bin/file'
6245 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6246 lt_cv_file_magic_test_file=/lib/libc.so
6247 ;;
6248 siemens)
6249 lt_cv_deplibs_check_method=pass_all
6250 ;;
6251 pc)
6252 lt_cv_deplibs_check_method=pass_all
6253 ;;
6254 esac
6255 ;;
6256
6257 tpf*)
6258 lt_cv_deplibs_check_method=pass_all
6259 ;;
6260 esac
6261
6262 fi
6263 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6264 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6265 file_magic_cmd=$lt_cv_file_magic_cmd
6266 deplibs_check_method=$lt_cv_deplibs_check_method
6267 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280 if test -n "$ac_tool_prefix"; then
6281 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6282 set dummy ${ac_tool_prefix}ar; ac_word=$2
6283 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6284 $as_echo_n "checking for $ac_word... " >&6; }
6285 if test "${ac_cv_prog_AR+set}" = set; then
6286 $as_echo_n "(cached) " >&6
6287 else
6288 if test -n "$AR"; then
6289 ac_cv_prog_AR="$AR" # Let the user override the test.
6290 else
6291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292 for as_dir in $PATH
6293 do
6294 IFS=$as_save_IFS
6295 test -z "$as_dir" && as_dir=.
6296 for ac_exec_ext in '' $ac_executable_extensions; do
6297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6298 ac_cv_prog_AR="${ac_tool_prefix}ar"
6299 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6300 break 2
6301 fi
6302 done
6303 done
6304 IFS=$as_save_IFS
6305
6306 fi
6307 fi
6308 AR=$ac_cv_prog_AR
6309 if test -n "$AR"; then
6310 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6311 $as_echo "$AR" >&6; }
6312 else
6313 { $as_echo "$as_me:$LINENO: result: no" >&5
6314 $as_echo "no" >&6; }
6315 fi
6316
6317
6318 fi
6319 if test -z "$ac_cv_prog_AR"; then
6320 ac_ct_AR=$AR
6321 # Extract the first word of "ar", so it can be a program name with args.
6322 set dummy ar; ac_word=$2
6323 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6324 $as_echo_n "checking for $ac_word... " >&6; }
6325 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6326 $as_echo_n "(cached) " >&6
6327 else
6328 if test -n "$ac_ct_AR"; then
6329 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6330 else
6331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332 for as_dir in $PATH
6333 do
6334 IFS=$as_save_IFS
6335 test -z "$as_dir" && as_dir=.
6336 for ac_exec_ext in '' $ac_executable_extensions; do
6337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6338 ac_cv_prog_ac_ct_AR="ar"
6339 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6340 break 2
6341 fi
6342 done
6343 done
6344 IFS=$as_save_IFS
6345
6346 fi
6347 fi
6348 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6349 if test -n "$ac_ct_AR"; then
6350 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6351 $as_echo "$ac_ct_AR" >&6; }
6352 else
6353 { $as_echo "$as_me:$LINENO: result: no" >&5
6354 $as_echo "no" >&6; }
6355 fi
6356
6357 if test "x$ac_ct_AR" = x; then
6358 AR="false"
6359 else
6360 case $cross_compiling:$ac_tool_warned in
6361 yes:)
6362 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6363 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6364 ac_tool_warned=yes ;;
6365 esac
6366 AR=$ac_ct_AR
6367 fi
6368 else
6369 AR="$ac_cv_prog_AR"
6370 fi
6371
6372 test -z "$AR" && AR=ar
6373 test -z "$AR_FLAGS" && AR_FLAGS=cru
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385 if test -n "$ac_tool_prefix"; then
6386 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6387 set dummy ${ac_tool_prefix}strip; ac_word=$2
6388 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6389 $as_echo_n "checking for $ac_word... " >&6; }
6390 if test "${ac_cv_prog_STRIP+set}" = set; then
6391 $as_echo_n "(cached) " >&6
6392 else
6393 if test -n "$STRIP"; then
6394 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6395 else
6396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397 for as_dir in $PATH
6398 do
6399 IFS=$as_save_IFS
6400 test -z "$as_dir" && as_dir=.
6401 for ac_exec_ext in '' $ac_executable_extensions; do
6402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6403 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6404 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6405 break 2
6406 fi
6407 done
6408 done
6409 IFS=$as_save_IFS
6410
6411 fi
6412 fi
6413 STRIP=$ac_cv_prog_STRIP
6414 if test -n "$STRIP"; then
6415 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6416 $as_echo "$STRIP" >&6; }
6417 else
6418 { $as_echo "$as_me:$LINENO: result: no" >&5
6419 $as_echo "no" >&6; }
6420 fi
6421
6422
6423 fi
6424 if test -z "$ac_cv_prog_STRIP"; then
6425 ac_ct_STRIP=$STRIP
6426 # Extract the first word of "strip", so it can be a program name with args.
6427 set dummy strip; ac_word=$2
6428 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6429 $as_echo_n "checking for $ac_word... " >&6; }
6430 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6431 $as_echo_n "(cached) " >&6
6432 else
6433 if test -n "$ac_ct_STRIP"; then
6434 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6435 else
6436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437 for as_dir in $PATH
6438 do
6439 IFS=$as_save_IFS
6440 test -z "$as_dir" && as_dir=.
6441 for ac_exec_ext in '' $ac_executable_extensions; do
6442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6443 ac_cv_prog_ac_ct_STRIP="strip"
6444 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6445 break 2
6446 fi
6447 done
6448 done
6449 IFS=$as_save_IFS
6450
6451 fi
6452 fi
6453 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6454 if test -n "$ac_ct_STRIP"; then
6455 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6456 $as_echo "$ac_ct_STRIP" >&6; }
6457 else
6458 { $as_echo "$as_me:$LINENO: result: no" >&5
6459 $as_echo "no" >&6; }
6460 fi
6461
6462 if test "x$ac_ct_STRIP" = x; then
6463 STRIP=":"
6464 else
6465 case $cross_compiling:$ac_tool_warned in
6466 yes:)
6467 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6469 ac_tool_warned=yes ;;
6470 esac
6471 STRIP=$ac_ct_STRIP
6472 fi
6473 else
6474 STRIP="$ac_cv_prog_STRIP"
6475 fi
6476
6477 test -z "$STRIP" && STRIP=:
6478
6479
6480
6481
6482
6483
6484 if test -n "$ac_tool_prefix"; then
6485 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6486 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6487 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6488 $as_echo_n "checking for $ac_word... " >&6; }
6489 if test "${ac_cv_prog_RANLIB+set}" = set; then
6490 $as_echo_n "(cached) " >&6
6491 else
6492 if test -n "$RANLIB"; then
6493 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6494 else
6495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496 for as_dir in $PATH
6497 do
6498 IFS=$as_save_IFS
6499 test -z "$as_dir" && as_dir=.
6500 for ac_exec_ext in '' $ac_executable_extensions; do
6501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6502 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6503 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6504 break 2
6505 fi
6506 done
6507 done
6508 IFS=$as_save_IFS
6509
6510 fi
6511 fi
6512 RANLIB=$ac_cv_prog_RANLIB
6513 if test -n "$RANLIB"; then
6514 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6515 $as_echo "$RANLIB" >&6; }
6516 else
6517 { $as_echo "$as_me:$LINENO: result: no" >&5
6518 $as_echo "no" >&6; }
6519 fi
6520
6521
6522 fi
6523 if test -z "$ac_cv_prog_RANLIB"; then
6524 ac_ct_RANLIB=$RANLIB
6525 # Extract the first word of "ranlib", so it can be a program name with args.
6526 set dummy ranlib; ac_word=$2
6527 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6528 $as_echo_n "checking for $ac_word... " >&6; }
6529 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6530 $as_echo_n "(cached) " >&6
6531 else
6532 if test -n "$ac_ct_RANLIB"; then
6533 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6534 else
6535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536 for as_dir in $PATH
6537 do
6538 IFS=$as_save_IFS
6539 test -z "$as_dir" && as_dir=.
6540 for ac_exec_ext in '' $ac_executable_extensions; do
6541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6542 ac_cv_prog_ac_ct_RANLIB="ranlib"
6543 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6544 break 2
6545 fi
6546 done
6547 done
6548 IFS=$as_save_IFS
6549
6550 fi
6551 fi
6552 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6553 if test -n "$ac_ct_RANLIB"; then
6554 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6555 $as_echo "$ac_ct_RANLIB" >&6; }
6556 else
6557 { $as_echo "$as_me:$LINENO: result: no" >&5
6558 $as_echo "no" >&6; }
6559 fi
6560
6561 if test "x$ac_ct_RANLIB" = x; then
6562 RANLIB=":"
6563 else
6564 case $cross_compiling:$ac_tool_warned in
6565 yes:)
6566 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6568 ac_tool_warned=yes ;;
6569 esac
6570 RANLIB=$ac_ct_RANLIB
6571 fi
6572 else
6573 RANLIB="$ac_cv_prog_RANLIB"
6574 fi
6575
6576 test -z "$RANLIB" && RANLIB=:
6577
6578
6579
6580
6581
6582
6583 # Determine commands to create old-style static archives.
6584 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6585 old_postinstall_cmds='chmod 644 $oldlib'
6586 old_postuninstall_cmds=
6587
6588 if test -n "$RANLIB"; then
6589 case $host_os in
6590 openbsd*)
6591 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6592 ;;
6593 *)
6594 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6595 ;;
6596 esac
6597 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6598 fi
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633 # If no C compiler was specified, use CC.
6634 LTCC=${LTCC-"$CC"}
6635
6636 # If no C compiler flags were specified, use CFLAGS.
6637 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6638
6639 # Allow CC to be a program name with arguments.
6640 compiler=$CC
6641
6642
6643 # Check for command to grab the raw symbol name followed by C symbol from nm.
6644 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6645 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6646 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6647 $as_echo_n "(cached) " >&6
6648 else
6649
6650 # These are sane defaults that work on at least a few old systems.
6651 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6652
6653 # Character class describing NM global symbol codes.
6654 symcode='[BCDEGRST]'
6655
6656 # Regexp to match symbols that can be accessed directly from C.
6657 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6658
6659 # Define system-specific variables.
6660 case $host_os in
6661 aix*)
6662 symcode='[BCDT]'
6663 ;;
6664 cygwin* | mingw* | pw32* | cegcc*)
6665 symcode='[ABCDGISTW]'
6666 ;;
6667 hpux*)
6668 if test "$host_cpu" = ia64; then
6669 symcode='[ABCDEGRST]'
6670 fi
6671 ;;
6672 irix* | nonstopux*)
6673 symcode='[BCDEGRST]'
6674 ;;
6675 osf*)
6676 symcode='[BCDEGQRST]'
6677 ;;
6678 solaris*)
6679 symcode='[BDRT]'
6680 ;;
6681 sco3.2v5*)
6682 symcode='[DT]'
6683 ;;
6684 sysv4.2uw2*)
6685 symcode='[DT]'
6686 ;;
6687 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6688 symcode='[ABDT]'
6689 ;;
6690 sysv4)
6691 symcode='[DFNSTU]'
6692 ;;
6693 esac
6694
6695 # If we're using GNU nm, then use its standard symbol codes.
6696 case `$NM -V 2>&1` in
6697 *GNU* | *'with BFD'*)
6698 symcode='[ABCDGIRSTW]' ;;
6699 esac
6700
6701 # Transform an extracted symbol line into a proper C declaration.
6702 # Some systems (esp. on ia64) link data and code symbols differently,
6703 # so use this general approach.
6704 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6705
6706 # Transform an extracted symbol line into symbol name and symbol address
6707 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6708 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6709
6710 # Handle CRLF in mingw tool chain
6711 opt_cr=
6712 case $build_os in
6713 mingw*)
6714 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6715 ;;
6716 esac
6717
6718 # Try without a prefix underscore, then with it.
6719 for ac_symprfx in "" "_"; do
6720
6721 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6722 symxfrm="\\1 $ac_symprfx\\2 \\2"
6723
6724 # Write the raw and C identifiers.
6725 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6726 # Fake it for dumpbin and say T for any non-static function
6727 # and D for any global variable.
6728 # Also find C++ and __fastcall symbols from MSVC++,
6729 # which start with @ or ?.
6730 lt_cv_sys_global_symbol_pipe="$AWK '"\
6731 " {last_section=section; section=\$ 3};"\
6732 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6733 " \$ 0!~/External *\|/{next};"\
6734 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6735 " {if(hide[section]) next};"\
6736 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6737 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6738 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6739 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6740 " ' prfx=^$ac_symprfx"
6741 else
6742 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6743 fi
6744
6745 # Check to see that the pipe works correctly.
6746 pipe_works=no
6747
6748 rm -f conftest*
6749 cat > conftest.$ac_ext <<_LT_EOF
6750 #ifdef __cplusplus
6751 extern "C" {
6752 #endif
6753 char nm_test_var;
6754 void nm_test_func(void);
6755 void nm_test_func(void){}
6756 #ifdef __cplusplus
6757 }
6758 #endif
6759 int main(){nm_test_var='a';nm_test_func();return(0);}
6760 _LT_EOF
6761
6762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6763 (eval $ac_compile) 2>&5
6764 ac_status=$?
6765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); }; then
6767 # Now try to grab the symbols.
6768 nlist=conftest.nm
6769 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6770 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6771 ac_status=$?
6772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } && test -s "$nlist"; then
6774 # Try sorting and uniquifying the output.
6775 if sort "$nlist" | uniq > "$nlist"T; then
6776 mv -f "$nlist"T "$nlist"
6777 else
6778 rm -f "$nlist"T
6779 fi
6780
6781 # Make sure that we snagged all the symbols we need.
6782 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6783 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6784 cat <<_LT_EOF > conftest.$ac_ext
6785 #ifdef __cplusplus
6786 extern "C" {
6787 #endif
6788
6789 _LT_EOF
6790 # Now generate the symbol file.
6791 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6792
6793 cat <<_LT_EOF >> conftest.$ac_ext
6794
6795 /* The mapping between symbol names and symbols. */
6796 const struct {
6797 const char *name;
6798 void *address;
6799 }
6800 lt__PROGRAM__LTX_preloaded_symbols[] =
6801 {
6802 { "@PROGRAM@", (void *) 0 },
6803 _LT_EOF
6804 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6805 cat <<\_LT_EOF >> conftest.$ac_ext
6806 {0, (void *) 0}
6807 };
6808
6809 /* This works around a problem in FreeBSD linker */
6810 #ifdef FREEBSD_WORKAROUND
6811 static const void *lt_preloaded_setup() {
6812 return lt__PROGRAM__LTX_preloaded_symbols;
6813 }
6814 #endif
6815
6816 #ifdef __cplusplus
6817 }
6818 #endif
6819 _LT_EOF
6820 # Now try linking the two files.
6821 mv conftest.$ac_objext conftstm.$ac_objext
6822 lt_save_LIBS="$LIBS"
6823 lt_save_CFLAGS="$CFLAGS"
6824 LIBS="conftstm.$ac_objext"
6825 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6827 (eval $ac_link) 2>&5
6828 ac_status=$?
6829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6831 pipe_works=yes
6832 fi
6833 LIBS="$lt_save_LIBS"
6834 CFLAGS="$lt_save_CFLAGS"
6835 else
6836 echo "cannot find nm_test_func in $nlist" >&5
6837 fi
6838 else
6839 echo "cannot find nm_test_var in $nlist" >&5
6840 fi
6841 else
6842 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6843 fi
6844 else
6845 echo "$progname: failed program was:" >&5
6846 cat conftest.$ac_ext >&5
6847 fi
6848 rm -rf conftest* conftst*
6849
6850 # Do not use the global_symbol_pipe unless it works.
6851 if test "$pipe_works" = yes; then
6852 break
6853 else
6854 lt_cv_sys_global_symbol_pipe=
6855 fi
6856 done
6857
6858 fi
6859
6860 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6861 lt_cv_sys_global_symbol_to_cdecl=
6862 fi
6863 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6864 { $as_echo "$as_me:$LINENO: result: failed" >&5
6865 $as_echo "failed" >&6; }
6866 else
6867 { $as_echo "$as_me:$LINENO: result: ok" >&5
6868 $as_echo "ok" >&6; }
6869 fi
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892 # Check whether --enable-libtool-lock was given.
6893 if test "${enable_libtool_lock+set}" = set; then
6894 enableval=$enable_libtool_lock;
6895 fi
6896
6897 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6898
6899 # Some flags need to be propagated to the compiler or linker for good
6900 # libtool support.
6901 case $host in
6902 ia64-*-hpux*)
6903 # Find out which ABI we are using.
6904 echo 'int i;' > conftest.$ac_ext
6905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6906 (eval $ac_compile) 2>&5
6907 ac_status=$?
6908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); }; then
6910 case `/usr/bin/file conftest.$ac_objext` in
6911 *ELF-32*)
6912 HPUX_IA64_MODE="32"
6913 ;;
6914 *ELF-64*)
6915 HPUX_IA64_MODE="64"
6916 ;;
6917 esac
6918 fi
6919 rm -rf conftest*
6920 ;;
6921 *-*-irix6*)
6922 # Find out which ABI we are using.
6923 echo '#line 6923 "configure"' > conftest.$ac_ext
6924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6925 (eval $ac_compile) 2>&5
6926 ac_status=$?
6927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); }; then
6929 if test "$lt_cv_prog_gnu_ld" = yes; then
6930 case `/usr/bin/file conftest.$ac_objext` in
6931 *32-bit*)
6932 LD="${LD-ld} -melf32bsmip"
6933 ;;
6934 *N32*)
6935 LD="${LD-ld} -melf32bmipn32"
6936 ;;
6937 *64-bit*)
6938 LD="${LD-ld} -melf64bmip"
6939 ;;
6940 esac
6941 else
6942 case `/usr/bin/file conftest.$ac_objext` in
6943 *32-bit*)
6944 LD="${LD-ld} -32"
6945 ;;
6946 *N32*)
6947 LD="${LD-ld} -n32"
6948 ;;
6949 *64-bit*)
6950 LD="${LD-ld} -64"
6951 ;;
6952 esac
6953 fi
6954 fi
6955 rm -rf conftest*
6956 ;;
6957
6958 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6959 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6960 # Find out which ABI we are using.
6961 echo 'int i;' > conftest.$ac_ext
6962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6963 (eval $ac_compile) 2>&5
6964 ac_status=$?
6965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); }; then
6967 case `/usr/bin/file conftest.o` in
6968 *32-bit*)
6969 case $host in
6970 x86_64-*kfreebsd*-gnu)
6971 LD="${LD-ld} -m elf_i386_fbsd"
6972 ;;
6973 x86_64-*linux*)
6974 LD="${LD-ld} -m elf_i386"
6975 ;;
6976 ppc64-*linux*|powerpc64-*linux*)
6977 LD="${LD-ld} -m elf32ppclinux"
6978 ;;
6979 s390x-*linux*)
6980 LD="${LD-ld} -m elf_s390"
6981 ;;
6982 sparc64-*linux*)
6983 LD="${LD-ld} -m elf32_sparc"
6984 ;;
6985 esac
6986 ;;
6987 *64-bit*)
6988 case $host in
6989 x86_64-*kfreebsd*-gnu)
6990 LD="${LD-ld} -m elf_x86_64_fbsd"
6991 ;;
6992 x86_64-*linux*)
6993 LD="${LD-ld} -m elf_x86_64"
6994 ;;
6995 ppc*-*linux*|powerpc*-*linux*)
6996 LD="${LD-ld} -m elf64ppc"
6997 ;;
6998 s390*-*linux*|s390*-*tpf*)
6999 LD="${LD-ld} -m elf64_s390"
7000 ;;
7001 sparc*-*linux*)
7002 LD="${LD-ld} -m elf64_sparc"
7003 ;;
7004 esac
7005 ;;
7006 esac
7007 fi
7008 rm -rf conftest*
7009 ;;
7010
7011 *-*-sco3.2v5*)
7012 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7013 SAVE_CFLAGS="$CFLAGS"
7014 CFLAGS="$CFLAGS -belf"
7015 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7016 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7017 if test "${lt_cv_cc_needs_belf+set}" = set; then
7018 $as_echo_n "(cached) " >&6
7019 else
7020 ac_ext=c
7021 ac_cpp='$CPP $CPPFLAGS'
7022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7025
7026 cat >conftest.$ac_ext <<_ACEOF
7027 /* confdefs.h. */
7028 _ACEOF
7029 cat confdefs.h >>conftest.$ac_ext
7030 cat >>conftest.$ac_ext <<_ACEOF
7031 /* end confdefs.h. */
7032
7033 int
7034 main ()
7035 {
7036
7037 ;
7038 return 0;
7039 }
7040 _ACEOF
7041 rm -f conftest.$ac_objext conftest$ac_exeext
7042 if { (ac_try="$ac_link"
7043 case "(($ac_try" in
7044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7045 *) ac_try_echo=$ac_try;;
7046 esac
7047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7048 $as_echo "$ac_try_echo") >&5
7049 (eval "$ac_link") 2>conftest.er1
7050 ac_status=$?
7051 grep -v '^ *+' conftest.er1 >conftest.err
7052 rm -f conftest.er1
7053 cat conftest.err >&5
7054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); } && {
7056 test -z "$ac_c_werror_flag" ||
7057 test ! -s conftest.err
7058 } && test -s conftest$ac_exeext && {
7059 test "$cross_compiling" = yes ||
7060 $as_test_x conftest$ac_exeext
7061 }; then
7062 lt_cv_cc_needs_belf=yes
7063 else
7064 $as_echo "$as_me: failed program was:" >&5
7065 sed 's/^/| /' conftest.$ac_ext >&5
7066
7067 lt_cv_cc_needs_belf=no
7068 fi
7069
7070 rm -rf conftest.dSYM
7071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7072 conftest$ac_exeext conftest.$ac_ext
7073 ac_ext=c
7074 ac_cpp='$CPP $CPPFLAGS'
7075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7078
7079 fi
7080 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7081 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7082 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7083 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7084 CFLAGS="$SAVE_CFLAGS"
7085 fi
7086 ;;
7087 sparc*-*solaris*)
7088 # Find out which ABI we are using.
7089 echo 'int i;' > conftest.$ac_ext
7090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7091 (eval $ac_compile) 2>&5
7092 ac_status=$?
7093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); }; then
7095 case `/usr/bin/file conftest.o` in
7096 *64-bit*)
7097 case $lt_cv_prog_gnu_ld in
7098 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7099 *)
7100 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7101 LD="${LD-ld} -64"
7102 fi
7103 ;;
7104 esac
7105 ;;
7106 esac
7107 fi
7108 rm -rf conftest*
7109 ;;
7110 esac
7111
7112 need_locks="$enable_libtool_lock"
7113
7114
7115 case $host_os in
7116 rhapsody* | darwin*)
7117 if test -n "$ac_tool_prefix"; then
7118 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7119 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7120 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7121 $as_echo_n "checking for $ac_word... " >&6; }
7122 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7123 $as_echo_n "(cached) " >&6
7124 else
7125 if test -n "$DSYMUTIL"; then
7126 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7127 else
7128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129 for as_dir in $PATH
7130 do
7131 IFS=$as_save_IFS
7132 test -z "$as_dir" && as_dir=.
7133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7135 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7136 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7137 break 2
7138 fi
7139 done
7140 done
7141 IFS=$as_save_IFS
7142
7143 fi
7144 fi
7145 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7146 if test -n "$DSYMUTIL"; then
7147 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7148 $as_echo "$DSYMUTIL" >&6; }
7149 else
7150 { $as_echo "$as_me:$LINENO: result: no" >&5
7151 $as_echo "no" >&6; }
7152 fi
7153
7154
7155 fi
7156 if test -z "$ac_cv_prog_DSYMUTIL"; then
7157 ac_ct_DSYMUTIL=$DSYMUTIL
7158 # Extract the first word of "dsymutil", so it can be a program name with args.
7159 set dummy dsymutil; ac_word=$2
7160 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7161 $as_echo_n "checking for $ac_word... " >&6; }
7162 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7163 $as_echo_n "(cached) " >&6
7164 else
7165 if test -n "$ac_ct_DSYMUTIL"; then
7166 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7167 else
7168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169 for as_dir in $PATH
7170 do
7171 IFS=$as_save_IFS
7172 test -z "$as_dir" && as_dir=.
7173 for ac_exec_ext in '' $ac_executable_extensions; do
7174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7175 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7176 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7177 break 2
7178 fi
7179 done
7180 done
7181 IFS=$as_save_IFS
7182
7183 fi
7184 fi
7185 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7186 if test -n "$ac_ct_DSYMUTIL"; then
7187 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7188 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7189 else
7190 { $as_echo "$as_me:$LINENO: result: no" >&5
7191 $as_echo "no" >&6; }
7192 fi
7193
7194 if test "x$ac_ct_DSYMUTIL" = x; then
7195 DSYMUTIL=":"
7196 else
7197 case $cross_compiling:$ac_tool_warned in
7198 yes:)
7199 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7201 ac_tool_warned=yes ;;
7202 esac
7203 DSYMUTIL=$ac_ct_DSYMUTIL
7204 fi
7205 else
7206 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7207 fi
7208
7209 if test -n "$ac_tool_prefix"; then
7210 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7211 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7212 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7213 $as_echo_n "checking for $ac_word... " >&6; }
7214 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7215 $as_echo_n "(cached) " >&6
7216 else
7217 if test -n "$NMEDIT"; then
7218 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7219 else
7220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221 for as_dir in $PATH
7222 do
7223 IFS=$as_save_IFS
7224 test -z "$as_dir" && as_dir=.
7225 for ac_exec_ext in '' $ac_executable_extensions; do
7226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7227 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7228 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7229 break 2
7230 fi
7231 done
7232 done
7233 IFS=$as_save_IFS
7234
7235 fi
7236 fi
7237 NMEDIT=$ac_cv_prog_NMEDIT
7238 if test -n "$NMEDIT"; then
7239 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7240 $as_echo "$NMEDIT" >&6; }
7241 else
7242 { $as_echo "$as_me:$LINENO: result: no" >&5
7243 $as_echo "no" >&6; }
7244 fi
7245
7246
7247 fi
7248 if test -z "$ac_cv_prog_NMEDIT"; then
7249 ac_ct_NMEDIT=$NMEDIT
7250 # Extract the first word of "nmedit", so it can be a program name with args.
7251 set dummy nmedit; ac_word=$2
7252 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7253 $as_echo_n "checking for $ac_word... " >&6; }
7254 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7255 $as_echo_n "(cached) " >&6
7256 else
7257 if test -n "$ac_ct_NMEDIT"; then
7258 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7259 else
7260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261 for as_dir in $PATH
7262 do
7263 IFS=$as_save_IFS
7264 test -z "$as_dir" && as_dir=.
7265 for ac_exec_ext in '' $ac_executable_extensions; do
7266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7267 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7268 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7269 break 2
7270 fi
7271 done
7272 done
7273 IFS=$as_save_IFS
7274
7275 fi
7276 fi
7277 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7278 if test -n "$ac_ct_NMEDIT"; then
7279 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7280 $as_echo "$ac_ct_NMEDIT" >&6; }
7281 else
7282 { $as_echo "$as_me:$LINENO: result: no" >&5
7283 $as_echo "no" >&6; }
7284 fi
7285
7286 if test "x$ac_ct_NMEDIT" = x; then
7287 NMEDIT=":"
7288 else
7289 case $cross_compiling:$ac_tool_warned in
7290 yes:)
7291 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7293 ac_tool_warned=yes ;;
7294 esac
7295 NMEDIT=$ac_ct_NMEDIT
7296 fi
7297 else
7298 NMEDIT="$ac_cv_prog_NMEDIT"
7299 fi
7300
7301 if test -n "$ac_tool_prefix"; then
7302 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7303 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7304 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7305 $as_echo_n "checking for $ac_word... " >&6; }
7306 if test "${ac_cv_prog_LIPO+set}" = set; then
7307 $as_echo_n "(cached) " >&6
7308 else
7309 if test -n "$LIPO"; then
7310 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7311 else
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313 for as_dir in $PATH
7314 do
7315 IFS=$as_save_IFS
7316 test -z "$as_dir" && as_dir=.
7317 for ac_exec_ext in '' $ac_executable_extensions; do
7318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7319 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7320 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7321 break 2
7322 fi
7323 done
7324 done
7325 IFS=$as_save_IFS
7326
7327 fi
7328 fi
7329 LIPO=$ac_cv_prog_LIPO
7330 if test -n "$LIPO"; then
7331 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7332 $as_echo "$LIPO" >&6; }
7333 else
7334 { $as_echo "$as_me:$LINENO: result: no" >&5
7335 $as_echo "no" >&6; }
7336 fi
7337
7338
7339 fi
7340 if test -z "$ac_cv_prog_LIPO"; then
7341 ac_ct_LIPO=$LIPO
7342 # Extract the first word of "lipo", so it can be a program name with args.
7343 set dummy lipo; ac_word=$2
7344 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7345 $as_echo_n "checking for $ac_word... " >&6; }
7346 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7347 $as_echo_n "(cached) " >&6
7348 else
7349 if test -n "$ac_ct_LIPO"; then
7350 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7351 else
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353 for as_dir in $PATH
7354 do
7355 IFS=$as_save_IFS
7356 test -z "$as_dir" && as_dir=.
7357 for ac_exec_ext in '' $ac_executable_extensions; do
7358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7359 ac_cv_prog_ac_ct_LIPO="lipo"
7360 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7361 break 2
7362 fi
7363 done
7364 done
7365 IFS=$as_save_IFS
7366
7367 fi
7368 fi
7369 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7370 if test -n "$ac_ct_LIPO"; then
7371 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7372 $as_echo "$ac_ct_LIPO" >&6; }
7373 else
7374 { $as_echo "$as_me:$LINENO: result: no" >&5
7375 $as_echo "no" >&6; }
7376 fi
7377
7378 if test "x$ac_ct_LIPO" = x; then
7379 LIPO=":"
7380 else
7381 case $cross_compiling:$ac_tool_warned in
7382 yes:)
7383 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7385 ac_tool_warned=yes ;;
7386 esac
7387 LIPO=$ac_ct_LIPO
7388 fi
7389 else
7390 LIPO="$ac_cv_prog_LIPO"
7391 fi
7392
7393 if test -n "$ac_tool_prefix"; then
7394 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7395 set dummy ${ac_tool_prefix}otool; ac_word=$2
7396 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7397 $as_echo_n "checking for $ac_word... " >&6; }
7398 if test "${ac_cv_prog_OTOOL+set}" = set; then
7399 $as_echo_n "(cached) " >&6
7400 else
7401 if test -n "$OTOOL"; then
7402 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7403 else
7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405 for as_dir in $PATH
7406 do
7407 IFS=$as_save_IFS
7408 test -z "$as_dir" && as_dir=.
7409 for ac_exec_ext in '' $ac_executable_extensions; do
7410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7411 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7412 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7413 break 2
7414 fi
7415 done
7416 done
7417 IFS=$as_save_IFS
7418
7419 fi
7420 fi
7421 OTOOL=$ac_cv_prog_OTOOL
7422 if test -n "$OTOOL"; then
7423 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7424 $as_echo "$OTOOL" >&6; }
7425 else
7426 { $as_echo "$as_me:$LINENO: result: no" >&5
7427 $as_echo "no" >&6; }
7428 fi
7429
7430
7431 fi
7432 if test -z "$ac_cv_prog_OTOOL"; then
7433 ac_ct_OTOOL=$OTOOL
7434 # Extract the first word of "otool", so it can be a program name with args.
7435 set dummy otool; ac_word=$2
7436 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7437 $as_echo_n "checking for $ac_word... " >&6; }
7438 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7439 $as_echo_n "(cached) " >&6
7440 else
7441 if test -n "$ac_ct_OTOOL"; then
7442 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7443 else
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 for as_dir in $PATH
7446 do
7447 IFS=$as_save_IFS
7448 test -z "$as_dir" && as_dir=.
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7451 ac_cv_prog_ac_ct_OTOOL="otool"
7452 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 break 2
7454 fi
7455 done
7456 done
7457 IFS=$as_save_IFS
7458
7459 fi
7460 fi
7461 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7462 if test -n "$ac_ct_OTOOL"; then
7463 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7464 $as_echo "$ac_ct_OTOOL" >&6; }
7465 else
7466 { $as_echo "$as_me:$LINENO: result: no" >&5
7467 $as_echo "no" >&6; }
7468 fi
7469
7470 if test "x$ac_ct_OTOOL" = x; then
7471 OTOOL=":"
7472 else
7473 case $cross_compiling:$ac_tool_warned in
7474 yes:)
7475 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7477 ac_tool_warned=yes ;;
7478 esac
7479 OTOOL=$ac_ct_OTOOL
7480 fi
7481 else
7482 OTOOL="$ac_cv_prog_OTOOL"
7483 fi
7484
7485 if test -n "$ac_tool_prefix"; then
7486 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7487 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7488 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7489 $as_echo_n "checking for $ac_word... " >&6; }
7490 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7491 $as_echo_n "(cached) " >&6
7492 else
7493 if test -n "$OTOOL64"; then
7494 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7495 else
7496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7497 for as_dir in $PATH
7498 do
7499 IFS=$as_save_IFS
7500 test -z "$as_dir" && as_dir=.
7501 for ac_exec_ext in '' $ac_executable_extensions; do
7502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7503 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7504 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7505 break 2
7506 fi
7507 done
7508 done
7509 IFS=$as_save_IFS
7510
7511 fi
7512 fi
7513 OTOOL64=$ac_cv_prog_OTOOL64
7514 if test -n "$OTOOL64"; then
7515 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7516 $as_echo "$OTOOL64" >&6; }
7517 else
7518 { $as_echo "$as_me:$LINENO: result: no" >&5
7519 $as_echo "no" >&6; }
7520 fi
7521
7522
7523 fi
7524 if test -z "$ac_cv_prog_OTOOL64"; then
7525 ac_ct_OTOOL64=$OTOOL64
7526 # Extract the first word of "otool64", so it can be a program name with args.
7527 set dummy otool64; ac_word=$2
7528 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7529 $as_echo_n "checking for $ac_word... " >&6; }
7530 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7531 $as_echo_n "(cached) " >&6
7532 else
7533 if test -n "$ac_ct_OTOOL64"; then
7534 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7535 else
7536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537 for as_dir in $PATH
7538 do
7539 IFS=$as_save_IFS
7540 test -z "$as_dir" && as_dir=.
7541 for ac_exec_ext in '' $ac_executable_extensions; do
7542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7543 ac_cv_prog_ac_ct_OTOOL64="otool64"
7544 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7545 break 2
7546 fi
7547 done
7548 done
7549 IFS=$as_save_IFS
7550
7551 fi
7552 fi
7553 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7554 if test -n "$ac_ct_OTOOL64"; then
7555 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7556 $as_echo "$ac_ct_OTOOL64" >&6; }
7557 else
7558 { $as_echo "$as_me:$LINENO: result: no" >&5
7559 $as_echo "no" >&6; }
7560 fi
7561
7562 if test "x$ac_ct_OTOOL64" = x; then
7563 OTOOL64=":"
7564 else
7565 case $cross_compiling:$ac_tool_warned in
7566 yes:)
7567 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7569 ac_tool_warned=yes ;;
7570 esac
7571 OTOOL64=$ac_ct_OTOOL64
7572 fi
7573 else
7574 OTOOL64="$ac_cv_prog_OTOOL64"
7575 fi
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7604 $as_echo_n "checking for -single_module linker flag... " >&6; }
7605 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7606 $as_echo_n "(cached) " >&6
7607 else
7608 lt_cv_apple_cc_single_mod=no
7609 if test -z "${LT_MULTI_MODULE}"; then
7610 # By default we will add the -single_module flag. You can override
7611 # by either setting the environment variable LT_MULTI_MODULE
7612 # non-empty at configure time, or by adding -multi_module to the
7613 # link flags.
7614 rm -rf libconftest.dylib*
7615 echo "int foo(void){return 1;}" > conftest.c
7616 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7617 -dynamiclib -Wl,-single_module conftest.c" >&5
7618 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7619 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7620 _lt_result=$?
7621 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7622 lt_cv_apple_cc_single_mod=yes
7623 else
7624 cat conftest.err >&5
7625 fi
7626 rm -rf libconftest.dylib*
7627 rm -f conftest.*
7628 fi
7629 fi
7630 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7631 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7632 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7633 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7634 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7635 $as_echo_n "(cached) " >&6
7636 else
7637 lt_cv_ld_exported_symbols_list=no
7638 save_LDFLAGS=$LDFLAGS
7639 echo "_main" > conftest.sym
7640 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7641 cat >conftest.$ac_ext <<_ACEOF
7642 /* confdefs.h. */
7643 _ACEOF
7644 cat confdefs.h >>conftest.$ac_ext
7645 cat >>conftest.$ac_ext <<_ACEOF
7646 /* end confdefs.h. */
7647
7648 int
7649 main ()
7650 {
7651
7652 ;
7653 return 0;
7654 }
7655 _ACEOF
7656 rm -f conftest.$ac_objext conftest$ac_exeext
7657 if { (ac_try="$ac_link"
7658 case "(($ac_try" in
7659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7660 *) ac_try_echo=$ac_try;;
7661 esac
7662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7663 $as_echo "$ac_try_echo") >&5
7664 (eval "$ac_link") 2>conftest.er1
7665 ac_status=$?
7666 grep -v '^ *+' conftest.er1 >conftest.err
7667 rm -f conftest.er1
7668 cat conftest.err >&5
7669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); } && {
7671 test -z "$ac_c_werror_flag" ||
7672 test ! -s conftest.err
7673 } && test -s conftest$ac_exeext && {
7674 test "$cross_compiling" = yes ||
7675 $as_test_x conftest$ac_exeext
7676 }; then
7677 lt_cv_ld_exported_symbols_list=yes
7678 else
7679 $as_echo "$as_me: failed program was:" >&5
7680 sed 's/^/| /' conftest.$ac_ext >&5
7681
7682 lt_cv_ld_exported_symbols_list=no
7683 fi
7684
7685 rm -rf conftest.dSYM
7686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7687 conftest$ac_exeext conftest.$ac_ext
7688 LDFLAGS="$save_LDFLAGS"
7689
7690 fi
7691 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7692 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7693 case $host_os in
7694 rhapsody* | darwin1.[012])
7695 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7696 darwin1.*)
7697 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7698 darwin*) # darwin 5.x on
7699 # if running on 10.5 or later, the deployment target defaults
7700 # to the OS version, if on x86, and 10.4, the deployment
7701 # target defaults to 10.4. Don't you love it?
7702 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7703 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7704 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7705 10.[012]*)
7706 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7707 10.*)
7708 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7709 esac
7710 ;;
7711 esac
7712 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7713 _lt_dar_single_mod='$single_module'
7714 fi
7715 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7716 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7717 else
7718 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7719 fi
7720 if test "$DSYMUTIL" != ":"; then
7721 _lt_dsymutil='~$DSYMUTIL $lib || :'
7722 else
7723 _lt_dsymutil=
7724 fi
7725 ;;
7726 esac
7727
7728
7729 for ac_header in dlfcn.h
7730 do
7731 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7732 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7733 $as_echo_n "checking for $ac_header... " >&6; }
7734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7735 $as_echo_n "(cached) " >&6
7736 else
7737 cat >conftest.$ac_ext <<_ACEOF
7738 /* confdefs.h. */
7739 _ACEOF
7740 cat confdefs.h >>conftest.$ac_ext
7741 cat >>conftest.$ac_ext <<_ACEOF
7742 /* end confdefs.h. */
7743 $ac_includes_default
7744
7745 #include <$ac_header>
7746 _ACEOF
7747 rm -f conftest.$ac_objext
7748 if { (ac_try="$ac_compile"
7749 case "(($ac_try" in
7750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7751 *) ac_try_echo=$ac_try;;
7752 esac
7753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7754 $as_echo "$ac_try_echo") >&5
7755 (eval "$ac_compile") 2>conftest.er1
7756 ac_status=$?
7757 grep -v '^ *+' conftest.er1 >conftest.err
7758 rm -f conftest.er1
7759 cat conftest.err >&5
7760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); } && {
7762 test -z "$ac_c_werror_flag" ||
7763 test ! -s conftest.err
7764 } && test -s conftest.$ac_objext; then
7765 eval "$as_ac_Header=yes"
7766 else
7767 $as_echo "$as_me: failed program was:" >&5
7768 sed 's/^/| /' conftest.$ac_ext >&5
7769
7770 eval "$as_ac_Header=no"
7771 fi
7772
7773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7774 fi
7775 ac_res=`eval 'as_val=${'$as_ac_Header'}
7776 $as_echo "$as_val"'`
7777 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7778 $as_echo "$ac_res" >&6; }
7779 as_val=`eval 'as_val=${'$as_ac_Header'}
7780 $as_echo "$as_val"'`
7781 if test "x$as_val" = x""yes; then
7782 cat >>confdefs.h <<_ACEOF
7783 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7784 _ACEOF
7785
7786 fi
7787
7788 done
7789
7790
7791
7792 # Set options
7793
7794
7795
7796 enable_dlopen=no
7797
7798
7799 enable_win32_dll=no
7800
7801
7802 # Check whether --enable-shared was given.
7803 if test "${enable_shared+set}" = set; then
7804 enableval=$enable_shared; p=${PACKAGE-default}
7805 case $enableval in
7806 yes) enable_shared=yes ;;
7807 no) enable_shared=no ;;
7808 *)
7809 enable_shared=no
7810 # Look at the argument we got. We use all the common list separators.
7811 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7812 for pkg in $enableval; do
7813 IFS="$lt_save_ifs"
7814 if test "X$pkg" = "X$p"; then
7815 enable_shared=yes
7816 fi
7817 done
7818 IFS="$lt_save_ifs"
7819 ;;
7820 esac
7821 else
7822 enable_shared=yes
7823 fi
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835 # Check whether --with-pic was given.
7836 if test "${with_pic+set}" = set; then
7837 withval=$with_pic; pic_mode="$withval"
7838 else
7839 pic_mode=default
7840 fi
7841
7842
7843 test -z "$pic_mode" && pic_mode=default
7844
7845
7846
7847
7848
7849
7850
7851 # Check whether --enable-fast-install was given.
7852 if test "${enable_fast_install+set}" = set; then
7853 enableval=$enable_fast_install; p=${PACKAGE-default}
7854 case $enableval in
7855 yes) enable_fast_install=yes ;;
7856 no) enable_fast_install=no ;;
7857 *)
7858 enable_fast_install=no
7859 # Look at the argument we got. We use all the common list separators.
7860 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7861 for pkg in $enableval; do
7862 IFS="$lt_save_ifs"
7863 if test "X$pkg" = "X$p"; then
7864 enable_fast_install=yes
7865 fi
7866 done
7867 IFS="$lt_save_ifs"
7868 ;;
7869 esac
7870 else
7871 enable_fast_install=yes
7872 fi
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884 # This can be used to rebuild libtool when needed
7885 LIBTOOL_DEPS="$ltmain"
7886
7887 # Always use our own libtool.
7888 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914 test -z "$LN_S" && LN_S="ln -s"
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929 if test -n "${ZSH_VERSION+set}" ; then
7930 setopt NO_GLOB_SUBST
7931 fi
7932
7933 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7934 $as_echo_n "checking for objdir... " >&6; }
7935 if test "${lt_cv_objdir+set}" = set; then
7936 $as_echo_n "(cached) " >&6
7937 else
7938 rm -f .libs 2>/dev/null
7939 mkdir .libs 2>/dev/null
7940 if test -d .libs; then
7941 lt_cv_objdir=.libs
7942 else
7943 # MS-DOS does not allow filenames that begin with a dot.
7944 lt_cv_objdir=_libs
7945 fi
7946 rmdir .libs 2>/dev/null
7947 fi
7948 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7949 $as_echo "$lt_cv_objdir" >&6; }
7950 objdir=$lt_cv_objdir
7951
7952
7953
7954
7955
7956 cat >>confdefs.h <<_ACEOF
7957 #define LT_OBJDIR "$lt_cv_objdir/"
7958 _ACEOF
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976 case $host_os in
7977 aix3*)
7978 # AIX sometimes has problems with the GCC collect2 program. For some
7979 # reason, if we set the COLLECT_NAMES environment variable, the problems
7980 # vanish in a puff of smoke.
7981 if test "X${COLLECT_NAMES+set}" != Xset; then
7982 COLLECT_NAMES=
7983 export COLLECT_NAMES
7984 fi
7985 ;;
7986 esac
7987
7988 # Sed substitution that helps us do robust quoting. It backslashifies
7989 # metacharacters that are still active within double-quoted strings.
7990 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7991
7992 # Same as above, but do not quote variable references.
7993 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7994
7995 # Sed substitution to delay expansion of an escaped shell variable in a
7996 # double_quote_subst'ed string.
7997 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7998
7999 # Sed substitution to delay expansion of an escaped single quote.
8000 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8001
8002 # Sed substitution to avoid accidental globbing in evaled expressions
8003 no_glob_subst='s/\*/\\\*/g'
8004
8005 # Global variables:
8006 ofile=libtool
8007 can_build_shared=yes
8008
8009 # All known linkers require a `.a' archive for static linking (except MSVC,
8010 # which needs '.lib').
8011 libext=a
8012
8013 with_gnu_ld="$lt_cv_prog_gnu_ld"
8014
8015 old_CC="$CC"
8016 old_CFLAGS="$CFLAGS"
8017
8018 # Set sane defaults for various variables
8019 test -z "$CC" && CC=cc
8020 test -z "$LTCC" && LTCC=$CC
8021 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8022 test -z "$LD" && LD=ld
8023 test -z "$ac_objext" && ac_objext=o
8024
8025 for cc_temp in $compiler""; do
8026 case $cc_temp in
8027 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8028 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8029 \-*) ;;
8030 *) break;;
8031 esac
8032 done
8033 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8034
8035
8036 # Only perform the check for file, if the check method requires it
8037 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8038 case $deplibs_check_method in
8039 file_magic*)
8040 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8041 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8042 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8043 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8044 $as_echo_n "(cached) " >&6
8045 else
8046 case $MAGIC_CMD in
8047 [\\/*] | ?:[\\/]*)
8048 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8049 ;;
8050 *)
8051 lt_save_MAGIC_CMD="$MAGIC_CMD"
8052 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8053 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8054 for ac_dir in $ac_dummy; do
8055 IFS="$lt_save_ifs"
8056 test -z "$ac_dir" && ac_dir=.
8057 if test -f $ac_dir/${ac_tool_prefix}file; then
8058 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8059 if test -n "$file_magic_test_file"; then
8060 case $deplibs_check_method in
8061 "file_magic "*)
8062 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8063 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8064 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8065 $EGREP "$file_magic_regex" > /dev/null; then
8066 :
8067 else
8068 cat <<_LT_EOF 1>&2
8069
8070 *** Warning: the command libtool uses to detect shared libraries,
8071 *** $file_magic_cmd, produces output that libtool cannot recognize.
8072 *** The result is that libtool may fail to recognize shared libraries
8073 *** as such. This will affect the creation of libtool libraries that
8074 *** depend on shared libraries, but programs linked with such libtool
8075 *** libraries will work regardless of this problem. Nevertheless, you
8076 *** may want to report the problem to your system manager and/or to
8077 *** bug-libtool@gnu.org
8078
8079 _LT_EOF
8080 fi ;;
8081 esac
8082 fi
8083 break
8084 fi
8085 done
8086 IFS="$lt_save_ifs"
8087 MAGIC_CMD="$lt_save_MAGIC_CMD"
8088 ;;
8089 esac
8090 fi
8091
8092 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8093 if test -n "$MAGIC_CMD"; then
8094 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8095 $as_echo "$MAGIC_CMD" >&6; }
8096 else
8097 { $as_echo "$as_me:$LINENO: result: no" >&5
8098 $as_echo "no" >&6; }
8099 fi
8100
8101
8102
8103
8104
8105 if test -z "$lt_cv_path_MAGIC_CMD"; then
8106 if test -n "$ac_tool_prefix"; then
8107 { $as_echo "$as_me:$LINENO: checking for file" >&5
8108 $as_echo_n "checking for file... " >&6; }
8109 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8110 $as_echo_n "(cached) " >&6
8111 else
8112 case $MAGIC_CMD in
8113 [\\/*] | ?:[\\/]*)
8114 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8115 ;;
8116 *)
8117 lt_save_MAGIC_CMD="$MAGIC_CMD"
8118 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8119 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8120 for ac_dir in $ac_dummy; do
8121 IFS="$lt_save_ifs"
8122 test -z "$ac_dir" && ac_dir=.
8123 if test -f $ac_dir/file; then
8124 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8125 if test -n "$file_magic_test_file"; then
8126 case $deplibs_check_method in
8127 "file_magic "*)
8128 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8129 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8130 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8131 $EGREP "$file_magic_regex" > /dev/null; then
8132 :
8133 else
8134 cat <<_LT_EOF 1>&2
8135
8136 *** Warning: the command libtool uses to detect shared libraries,
8137 *** $file_magic_cmd, produces output that libtool cannot recognize.
8138 *** The result is that libtool may fail to recognize shared libraries
8139 *** as such. This will affect the creation of libtool libraries that
8140 *** depend on shared libraries, but programs linked with such libtool
8141 *** libraries will work regardless of this problem. Nevertheless, you
8142 *** may want to report the problem to your system manager and/or to
8143 *** bug-libtool@gnu.org
8144
8145 _LT_EOF
8146 fi ;;
8147 esac
8148 fi
8149 break
8150 fi
8151 done
8152 IFS="$lt_save_ifs"
8153 MAGIC_CMD="$lt_save_MAGIC_CMD"
8154 ;;
8155 esac
8156 fi
8157
8158 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8159 if test -n "$MAGIC_CMD"; then
8160 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8161 $as_echo "$MAGIC_CMD" >&6; }
8162 else
8163 { $as_echo "$as_me:$LINENO: result: no" >&5
8164 $as_echo "no" >&6; }
8165 fi
8166
8167
8168 else
8169 MAGIC_CMD=:
8170 fi
8171 fi
8172
8173 fi
8174 ;;
8175 esac
8176
8177 # Use C for the default configuration in the libtool script
8178
8179 lt_save_CC="$CC"
8180 ac_ext=c
8181 ac_cpp='$CPP $CPPFLAGS'
8182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8185
8186
8187 # Source file extension for C test sources.
8188 ac_ext=c
8189
8190 # Object file extension for compiled C test sources.
8191 objext=o
8192 objext=$objext
8193
8194 # Code to be used in simple compile tests
8195 lt_simple_compile_test_code="int some_variable = 0;"
8196
8197 # Code to be used in simple link tests
8198 lt_simple_link_test_code='int main(){return(0);}'
8199
8200
8201
8202
8203
8204
8205
8206 # If no C compiler was specified, use CC.
8207 LTCC=${LTCC-"$CC"}
8208
8209 # If no C compiler flags were specified, use CFLAGS.
8210 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8211
8212 # Allow CC to be a program name with arguments.
8213 compiler=$CC
8214
8215 # Save the default compiler, since it gets overwritten when the other
8216 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8217 compiler_DEFAULT=$CC
8218
8219 # save warnings/boilerplate of simple test code
8220 ac_outfile=conftest.$ac_objext
8221 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8222 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8223 _lt_compiler_boilerplate=`cat conftest.err`
8224 $RM conftest*
8225
8226 ac_outfile=conftest.$ac_objext
8227 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8228 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8229 _lt_linker_boilerplate=`cat conftest.err`
8230 $RM -r conftest*
8231
8232
8233 if test -n "$compiler"; then
8234
8235 lt_prog_compiler_no_builtin_flag=
8236
8237 if test "$GCC" = yes; then
8238 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8239
8240 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8241 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8242 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8243 $as_echo_n "(cached) " >&6
8244 else
8245 lt_cv_prog_compiler_rtti_exceptions=no
8246 ac_outfile=conftest.$ac_objext
8247 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8248 lt_compiler_flag="-fno-rtti -fno-exceptions"
8249 # Insert the option either (1) after the last *FLAGS variable, or
8250 # (2) before a word containing "conftest.", or (3) at the end.
8251 # Note that $ac_compile itself does not contain backslashes and begins
8252 # with a dollar sign (not a hyphen), so the echo should work correctly.
8253 # The option is referenced via a variable to avoid confusing sed.
8254 lt_compile=`echo "$ac_compile" | $SED \
8255 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8256 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8257 -e 's:$: $lt_compiler_flag:'`
8258 (eval echo "\"\$as_me:8258: $lt_compile\"" >&5)
8259 (eval "$lt_compile" 2>conftest.err)
8260 ac_status=$?
8261 cat conftest.err >&5
8262 echo "$as_me:8262: \$? = $ac_status" >&5
8263 if (exit $ac_status) && test -s "$ac_outfile"; then
8264 # The compiler can only warn and ignore the option if not recognized
8265 # So say no if there are warnings other than the usual output.
8266 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8267 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8268 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8269 lt_cv_prog_compiler_rtti_exceptions=yes
8270 fi
8271 fi
8272 $RM conftest*
8273
8274 fi
8275 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8276 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8277
8278 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8279 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8280 else
8281 :
8282 fi
8283
8284 fi
8285
8286
8287
8288
8289
8290
8291 lt_prog_compiler_wl=
8292 lt_prog_compiler_pic=
8293 lt_prog_compiler_static=
8294
8295 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8296 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8297
8298 if test "$GCC" = yes; then
8299 lt_prog_compiler_wl='-Wl,'
8300 lt_prog_compiler_static='-static'
8301
8302 case $host_os in
8303 aix*)
8304 # All AIX code is PIC.
8305 if test "$host_cpu" = ia64; then
8306 # AIX 5 now supports IA64 processor
8307 lt_prog_compiler_static='-Bstatic'
8308 fi
8309 ;;
8310
8311 amigaos*)
8312 case $host_cpu in
8313 powerpc)
8314 # see comment about AmigaOS4 .so support
8315 lt_prog_compiler_pic='-fPIC'
8316 ;;
8317 m68k)
8318 # FIXME: we need at least 68020 code to build shared libraries, but
8319 # adding the `-m68020' flag to GCC prevents building anything better,
8320 # like `-m68040'.
8321 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8322 ;;
8323 esac
8324 ;;
8325
8326 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8327 # PIC is the default for these OSes.
8328 ;;
8329
8330 mingw* | cygwin* | pw32* | os2* | cegcc*)
8331 # This hack is so that the source file can tell whether it is being
8332 # built for inclusion in a dll (and should export symbols for example).
8333 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8334 # (--disable-auto-import) libraries
8335 lt_prog_compiler_pic='-DDLL_EXPORT'
8336 ;;
8337
8338 darwin* | rhapsody*)
8339 # PIC is the default on this platform
8340 # Common symbols not allowed in MH_DYLIB files
8341 lt_prog_compiler_pic='-fno-common'
8342 ;;
8343
8344 hpux*)
8345 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8346 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8347 # sets the default TLS model and affects inlining.
8348 case $host_cpu in
8349 hppa*64*)
8350 # +Z the default
8351 ;;
8352 *)
8353 lt_prog_compiler_pic='-fPIC'
8354 ;;
8355 esac
8356 ;;
8357
8358 interix[3-9]*)
8359 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8360 # Instead, we relocate shared libraries at runtime.
8361 ;;
8362
8363 msdosdjgpp*)
8364 # Just because we use GCC doesn't mean we suddenly get shared libraries
8365 # on systems that don't support them.
8366 lt_prog_compiler_can_build_shared=no
8367 enable_shared=no
8368 ;;
8369
8370 *nto* | *qnx*)
8371 # QNX uses GNU C++, but need to define -shared option too, otherwise
8372 # it will coredump.
8373 lt_prog_compiler_pic='-fPIC -shared'
8374 ;;
8375
8376 sysv4*MP*)
8377 if test -d /usr/nec; then
8378 lt_prog_compiler_pic=-Kconform_pic
8379 fi
8380 ;;
8381
8382 *)
8383 lt_prog_compiler_pic='-fPIC'
8384 ;;
8385 esac
8386 else
8387 # PORTME Check for flag to pass linker flags through the system compiler.
8388 case $host_os in
8389 aix*)
8390 lt_prog_compiler_wl='-Wl,'
8391 if test "$host_cpu" = ia64; then
8392 # AIX 5 now supports IA64 processor
8393 lt_prog_compiler_static='-Bstatic'
8394 else
8395 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8396 fi
8397 ;;
8398
8399 mingw* | cygwin* | pw32* | os2* | cegcc*)
8400 # This hack is so that the source file can tell whether it is being
8401 # built for inclusion in a dll (and should export symbols for example).
8402 lt_prog_compiler_pic='-DDLL_EXPORT'
8403 ;;
8404
8405 hpux9* | hpux10* | hpux11*)
8406 lt_prog_compiler_wl='-Wl,'
8407 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8408 # not for PA HP-UX.
8409 case $host_cpu in
8410 hppa*64*|ia64*)
8411 # +Z the default
8412 ;;
8413 *)
8414 lt_prog_compiler_pic='+Z'
8415 ;;
8416 esac
8417 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8418 lt_prog_compiler_static='${wl}-a ${wl}archive'
8419 ;;
8420
8421 irix5* | irix6* | nonstopux*)
8422 lt_prog_compiler_wl='-Wl,'
8423 # PIC (with -KPIC) is the default.
8424 lt_prog_compiler_static='-non_shared'
8425 ;;
8426
8427 linux* | k*bsd*-gnu)
8428 case $cc_basename in
8429 # old Intel for x86_64 which still supported -KPIC.
8430 ecc*)
8431 lt_prog_compiler_wl='-Wl,'
8432 lt_prog_compiler_pic='-KPIC'
8433 lt_prog_compiler_static='-static'
8434 ;;
8435 # icc used to be incompatible with GCC.
8436 # ICC 10 doesn't accept -KPIC any more.
8437 icc* | ifort*)
8438 lt_prog_compiler_wl='-Wl,'
8439 lt_prog_compiler_pic='-fPIC'
8440 lt_prog_compiler_static='-static'
8441 ;;
8442 # Lahey Fortran 8.1.
8443 lf95*)
8444 lt_prog_compiler_wl='-Wl,'
8445 lt_prog_compiler_pic='--shared'
8446 lt_prog_compiler_static='--static'
8447 ;;
8448 pgcc* | pgf77* | pgf90* | pgf95*)
8449 # Portland Group compilers (*not* the Pentium gcc compiler,
8450 # which looks to be a dead project)
8451 lt_prog_compiler_wl='-Wl,'
8452 lt_prog_compiler_pic='-fpic'
8453 lt_prog_compiler_static='-Bstatic'
8454 ;;
8455 ccc*)
8456 lt_prog_compiler_wl='-Wl,'
8457 # All Alpha code is PIC.
8458 lt_prog_compiler_static='-non_shared'
8459 ;;
8460 xl*)
8461 # IBM XL C 8.0/Fortran 10.1 on PPC
8462 lt_prog_compiler_wl='-Wl,'
8463 lt_prog_compiler_pic='-qpic'
8464 lt_prog_compiler_static='-qstaticlink'
8465 ;;
8466 *)
8467 case `$CC -V 2>&1 | sed 5q` in
8468 *Sun\ C*)
8469 # Sun C 5.9
8470 lt_prog_compiler_pic='-KPIC'
8471 lt_prog_compiler_static='-Bstatic'
8472 lt_prog_compiler_wl='-Wl,'
8473 ;;
8474 *Sun\ F*)
8475 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8476 lt_prog_compiler_pic='-KPIC'
8477 lt_prog_compiler_static='-Bstatic'
8478 lt_prog_compiler_wl=''
8479 ;;
8480 esac
8481 ;;
8482 esac
8483 ;;
8484
8485 newsos6)
8486 lt_prog_compiler_pic='-KPIC'
8487 lt_prog_compiler_static='-Bstatic'
8488 ;;
8489
8490 *nto* | *qnx*)
8491 # QNX uses GNU C++, but need to define -shared option too, otherwise
8492 # it will coredump.
8493 lt_prog_compiler_pic='-fPIC -shared'
8494 ;;
8495
8496 osf3* | osf4* | osf5*)
8497 lt_prog_compiler_wl='-Wl,'
8498 # All OSF/1 code is PIC.
8499 lt_prog_compiler_static='-non_shared'
8500 ;;
8501
8502 rdos*)
8503 lt_prog_compiler_static='-non_shared'
8504 ;;
8505
8506 solaris*)
8507 lt_prog_compiler_pic='-KPIC'
8508 lt_prog_compiler_static='-Bstatic'
8509 case $cc_basename in
8510 f77* | f90* | f95*)
8511 lt_prog_compiler_wl='-Qoption ld ';;
8512 *)
8513 lt_prog_compiler_wl='-Wl,';;
8514 esac
8515 ;;
8516
8517 sunos4*)
8518 lt_prog_compiler_wl='-Qoption ld '
8519 lt_prog_compiler_pic='-PIC'
8520 lt_prog_compiler_static='-Bstatic'
8521 ;;
8522
8523 sysv4 | sysv4.2uw2* | sysv4.3*)
8524 lt_prog_compiler_wl='-Wl,'
8525 lt_prog_compiler_pic='-KPIC'
8526 lt_prog_compiler_static='-Bstatic'
8527 ;;
8528
8529 sysv4*MP*)
8530 if test -d /usr/nec ;then
8531 lt_prog_compiler_pic='-Kconform_pic'
8532 lt_prog_compiler_static='-Bstatic'
8533 fi
8534 ;;
8535
8536 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8537 lt_prog_compiler_wl='-Wl,'
8538 lt_prog_compiler_pic='-KPIC'
8539 lt_prog_compiler_static='-Bstatic'
8540 ;;
8541
8542 unicos*)
8543 lt_prog_compiler_wl='-Wl,'
8544 lt_prog_compiler_can_build_shared=no
8545 ;;
8546
8547 uts4*)
8548 lt_prog_compiler_pic='-pic'
8549 lt_prog_compiler_static='-Bstatic'
8550 ;;
8551
8552 *)
8553 lt_prog_compiler_can_build_shared=no
8554 ;;
8555 esac
8556 fi
8557
8558 case $host_os in
8559 # For platforms which do not support PIC, -DPIC is meaningless:
8560 *djgpp*)
8561 lt_prog_compiler_pic=
8562 ;;
8563 *)
8564 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8565 ;;
8566 esac
8567 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8568 $as_echo "$lt_prog_compiler_pic" >&6; }
8569
8570
8571
8572
8573
8574
8575 #
8576 # Check to make sure the PIC flag actually works.
8577 #
8578 if test -n "$lt_prog_compiler_pic"; then
8579 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8580 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8581 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8582 $as_echo_n "(cached) " >&6
8583 else
8584 lt_cv_prog_compiler_pic_works=no
8585 ac_outfile=conftest.$ac_objext
8586 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8587 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8588 # Insert the option either (1) after the last *FLAGS variable, or
8589 # (2) before a word containing "conftest.", or (3) at the end.
8590 # Note that $ac_compile itself does not contain backslashes and begins
8591 # with a dollar sign (not a hyphen), so the echo should work correctly.
8592 # The option is referenced via a variable to avoid confusing sed.
8593 lt_compile=`echo "$ac_compile" | $SED \
8594 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8595 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8596 -e 's:$: $lt_compiler_flag:'`
8597 (eval echo "\"\$as_me:8597: $lt_compile\"" >&5)
8598 (eval "$lt_compile" 2>conftest.err)
8599 ac_status=$?
8600 cat conftest.err >&5
8601 echo "$as_me:8601: \$? = $ac_status" >&5
8602 if (exit $ac_status) && test -s "$ac_outfile"; then
8603 # The compiler can only warn and ignore the option if not recognized
8604 # So say no if there are warnings other than the usual output.
8605 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8606 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8607 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8608 lt_cv_prog_compiler_pic_works=yes
8609 fi
8610 fi
8611 $RM conftest*
8612
8613 fi
8614 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8615 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8616
8617 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8618 case $lt_prog_compiler_pic in
8619 "" | " "*) ;;
8620 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8621 esac
8622 else
8623 lt_prog_compiler_pic=
8624 lt_prog_compiler_can_build_shared=no
8625 fi
8626
8627 fi
8628
8629
8630
8631
8632
8633
8634 #
8635 # Check to make sure the static flag actually works.
8636 #
8637 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8638 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8639 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8640 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8641 $as_echo_n "(cached) " >&6
8642 else
8643 lt_cv_prog_compiler_static_works=no
8644 save_LDFLAGS="$LDFLAGS"
8645 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8646 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8647 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8648 # The linker can only warn and ignore the option if not recognized
8649 # So say no if there are warnings
8650 if test -s conftest.err; then
8651 # Append any errors to the config.log.
8652 cat conftest.err 1>&5
8653 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8654 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8655 if diff conftest.exp conftest.er2 >/dev/null; then
8656 lt_cv_prog_compiler_static_works=yes
8657 fi
8658 else
8659 lt_cv_prog_compiler_static_works=yes
8660 fi
8661 fi
8662 $RM -r conftest*
8663 LDFLAGS="$save_LDFLAGS"
8664
8665 fi
8666 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8667 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8668
8669 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8670 :
8671 else
8672 lt_prog_compiler_static=
8673 fi
8674
8675
8676
8677
8678
8679
8680
8681 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8682 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8683 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8684 $as_echo_n "(cached) " >&6
8685 else
8686 lt_cv_prog_compiler_c_o=no
8687 $RM -r conftest 2>/dev/null
8688 mkdir conftest
8689 cd conftest
8690 mkdir out
8691 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8692
8693 lt_compiler_flag="-o out/conftest2.$ac_objext"
8694 # Insert the option either (1) after the last *FLAGS variable, or
8695 # (2) before a word containing "conftest.", or (3) at the end.
8696 # Note that $ac_compile itself does not contain backslashes and begins
8697 # with a dollar sign (not a hyphen), so the echo should work correctly.
8698 lt_compile=`echo "$ac_compile" | $SED \
8699 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8701 -e 's:$: $lt_compiler_flag:'`
8702 (eval echo "\"\$as_me:8702: $lt_compile\"" >&5)
8703 (eval "$lt_compile" 2>out/conftest.err)
8704 ac_status=$?
8705 cat out/conftest.err >&5
8706 echo "$as_me:8706: \$? = $ac_status" >&5
8707 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8708 then
8709 # The compiler can only warn and ignore the option if not recognized
8710 # So say no if there are warnings
8711 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8712 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8713 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8714 lt_cv_prog_compiler_c_o=yes
8715 fi
8716 fi
8717 chmod u+w . 2>&5
8718 $RM conftest*
8719 # SGI C++ compiler will create directory out/ii_files/ for
8720 # template instantiation
8721 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8722 $RM out/* && rmdir out
8723 cd ..
8724 $RM -r conftest
8725 $RM conftest*
8726
8727 fi
8728 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8729 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8730
8731
8732
8733
8734
8735
8736 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8737 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8738 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8739 $as_echo_n "(cached) " >&6
8740 else
8741 lt_cv_prog_compiler_c_o=no
8742 $RM -r conftest 2>/dev/null
8743 mkdir conftest
8744 cd conftest
8745 mkdir out
8746 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8747
8748 lt_compiler_flag="-o out/conftest2.$ac_objext"
8749 # Insert the option either (1) after the last *FLAGS variable, or
8750 # (2) before a word containing "conftest.", or (3) at the end.
8751 # Note that $ac_compile itself does not contain backslashes and begins
8752 # with a dollar sign (not a hyphen), so the echo should work correctly.
8753 lt_compile=`echo "$ac_compile" | $SED \
8754 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8755 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8756 -e 's:$: $lt_compiler_flag:'`
8757 (eval echo "\"\$as_me:8757: $lt_compile\"" >&5)
8758 (eval "$lt_compile" 2>out/conftest.err)
8759 ac_status=$?
8760 cat out/conftest.err >&5
8761 echo "$as_me:8761: \$? = $ac_status" >&5
8762 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8763 then
8764 # The compiler can only warn and ignore the option if not recognized
8765 # So say no if there are warnings
8766 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8767 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8768 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8769 lt_cv_prog_compiler_c_o=yes
8770 fi
8771 fi
8772 chmod u+w . 2>&5
8773 $RM conftest*
8774 # SGI C++ compiler will create directory out/ii_files/ for
8775 # template instantiation
8776 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8777 $RM out/* && rmdir out
8778 cd ..
8779 $RM -r conftest
8780 $RM conftest*
8781
8782 fi
8783 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8784 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8785
8786
8787
8788
8789 hard_links="nottested"
8790 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8791 # do not overwrite the value of need_locks provided by the user
8792 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8793 $as_echo_n "checking if we can lock with hard links... " >&6; }
8794 hard_links=yes
8795 $RM conftest*
8796 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8797 touch conftest.a
8798 ln conftest.a conftest.b 2>&5 || hard_links=no
8799 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8800 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8801 $as_echo "$hard_links" >&6; }
8802 if test "$hard_links" = no; then
8803 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8804 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8805 need_locks=warn
8806 fi
8807 else
8808 need_locks=no
8809 fi
8810
8811
8812
8813
8814
8815
8816 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8817 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8818
8819 runpath_var=
8820 allow_undefined_flag=
8821 always_export_symbols=no
8822 archive_cmds=
8823 archive_expsym_cmds=
8824 compiler_needs_object=no
8825 enable_shared_with_static_runtimes=no
8826 export_dynamic_flag_spec=
8827 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8828 hardcode_automatic=no
8829 hardcode_direct=no
8830 hardcode_direct_absolute=no
8831 hardcode_libdir_flag_spec=
8832 hardcode_libdir_flag_spec_ld=
8833 hardcode_libdir_separator=
8834 hardcode_minus_L=no
8835 hardcode_shlibpath_var=unsupported
8836 inherit_rpath=no
8837 link_all_deplibs=unknown
8838 module_cmds=
8839 module_expsym_cmds=
8840 old_archive_from_new_cmds=
8841 old_archive_from_expsyms_cmds=
8842 thread_safe_flag_spec=
8843 whole_archive_flag_spec=
8844 # include_expsyms should be a list of space-separated symbols to be *always*
8845 # included in the symbol list
8846 include_expsyms=
8847 # exclude_expsyms can be an extended regexp of symbols to exclude
8848 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8849 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8850 # as well as any symbol that contains `d'.
8851 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8852 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8853 # platforms (ab)use it in PIC code, but their linkers get confused if
8854 # the symbol is explicitly referenced. Since portable code cannot
8855 # rely on this symbol name, it's probably fine to never include it in
8856 # preloaded symbol tables.
8857 # Exclude shared library initialization/finalization symbols.
8858 extract_expsyms_cmds=
8859
8860 case $host_os in
8861 cygwin* | mingw* | pw32* | cegcc*)
8862 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8863 # When not using gcc, we currently assume that we are using
8864 # Microsoft Visual C++.
8865 if test "$GCC" != yes; then
8866 with_gnu_ld=no
8867 fi
8868 ;;
8869 interix*)
8870 # we just hope/assume this is gcc and not c89 (= MSVC++)
8871 with_gnu_ld=yes
8872 ;;
8873 openbsd*)
8874 with_gnu_ld=no
8875 ;;
8876 esac
8877
8878 ld_shlibs=yes
8879 if test "$with_gnu_ld" = yes; then
8880 # If archive_cmds runs LD, not CC, wlarc should be empty
8881 wlarc='${wl}'
8882
8883 # Set some defaults for GNU ld with shared library support. These
8884 # are reset later if shared libraries are not supported. Putting them
8885 # here allows them to be overridden if necessary.
8886 runpath_var=LD_RUN_PATH
8887 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8888 export_dynamic_flag_spec='${wl}--export-dynamic'
8889 # ancient GNU ld didn't support --whole-archive et. al.
8890 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8891 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8892 else
8893 whole_archive_flag_spec=
8894 fi
8895 supports_anon_versioning=no
8896 case `$LD -v 2>&1` in
8897 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8898 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8899 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8900 *\ 2.11.*) ;; # other 2.11 versions
8901 *) supports_anon_versioning=yes ;;
8902 esac
8903
8904 # See if GNU ld supports shared libraries.
8905 case $host_os in
8906 aix[3-9]*)
8907 # On AIX/PPC, the GNU linker is very broken
8908 if test "$host_cpu" != ia64; then
8909 ld_shlibs=no
8910 cat <<_LT_EOF 1>&2
8911
8912 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8913 *** to be unable to reliably create shared libraries on AIX.
8914 *** Therefore, libtool is disabling shared libraries support. If you
8915 *** really care for shared libraries, you may want to modify your PATH
8916 *** so that a non-GNU linker is found, and then restart.
8917
8918 _LT_EOF
8919 fi
8920 ;;
8921
8922 amigaos*)
8923 case $host_cpu in
8924 powerpc)
8925 # see comment about AmigaOS4 .so support
8926 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8927 archive_expsym_cmds=''
8928 ;;
8929 m68k)
8930 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)'
8931 hardcode_libdir_flag_spec='-L$libdir'
8932 hardcode_minus_L=yes
8933 ;;
8934 esac
8935 ;;
8936
8937 beos*)
8938 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8939 allow_undefined_flag=unsupported
8940 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8941 # support --undefined. This deserves some investigation. FIXME
8942 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8943 else
8944 ld_shlibs=no
8945 fi
8946 ;;
8947
8948 cygwin* | mingw* | pw32* | cegcc*)
8949 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8950 # as there is no search path for DLLs.
8951 hardcode_libdir_flag_spec='-L$libdir'
8952 allow_undefined_flag=unsupported
8953 always_export_symbols=no
8954 enable_shared_with_static_runtimes=yes
8955 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8956
8957 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8958 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8959 # If the export-symbols file already is a .def file (1st line
8960 # is EXPORTS), use it as is; otherwise, prepend...
8961 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8962 cp $export_symbols $output_objdir/$soname.def;
8963 else
8964 echo EXPORTS > $output_objdir/$soname.def;
8965 cat $export_symbols >> $output_objdir/$soname.def;
8966 fi~
8967 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8968 else
8969 ld_shlibs=no
8970 fi
8971 ;;
8972
8973 interix[3-9]*)
8974 hardcode_direct=no
8975 hardcode_shlibpath_var=no
8976 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8977 export_dynamic_flag_spec='${wl}-E'
8978 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8979 # Instead, shared libraries are loaded at an image base (0x10000000 by
8980 # default) and relocated if they conflict, which is a slow very memory
8981 # consuming and fragmenting process. To avoid this, we pick a random,
8982 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8983 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8984 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8985 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'
8986 ;;
8987
8988 gnu* | linux* | tpf* | k*bsd*-gnu)
8989 tmp_diet=no
8990 if test "$host_os" = linux-dietlibc; then
8991 case $cc_basename in
8992 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8993 esac
8994 fi
8995 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8996 && test "$tmp_diet" = no
8997 then
8998 tmp_addflag=
8999 tmp_sharedflag='-shared'
9000 case $cc_basename,$host_cpu in
9001 pgcc*) # Portland Group C compiler
9002 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'
9003 tmp_addflag=' $pic_flag'
9004 ;;
9005 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9006 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'
9007 tmp_addflag=' $pic_flag -Mnomain' ;;
9008 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9009 tmp_addflag=' -i_dynamic' ;;
9010 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9011 tmp_addflag=' -i_dynamic -nofor_main' ;;
9012 ifc* | ifort*) # Intel Fortran compiler
9013 tmp_addflag=' -nofor_main' ;;
9014 lf95*) # Lahey Fortran 8.1
9015 whole_archive_flag_spec=
9016 tmp_sharedflag='--shared' ;;
9017 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9018 tmp_sharedflag='-qmkshrobj'
9019 tmp_addflag= ;;
9020 esac
9021 case `$CC -V 2>&1 | sed 5q` in
9022 *Sun\ C*) # Sun C 5.9
9023 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9024 compiler_needs_object=yes
9025 tmp_sharedflag='-G' ;;
9026 *Sun\ F*) # Sun Fortran 8.3
9027 tmp_sharedflag='-G' ;;
9028 esac
9029 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9030
9031 if test "x$supports_anon_versioning" = xyes; then
9032 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9033 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9034 echo "local: *; };" >> $output_objdir/$libname.ver~
9035 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9036 fi
9037
9038 case $cc_basename in
9039 xlf*)
9040 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9041 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9042 hardcode_libdir_flag_spec=
9043 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9044 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9045 if test "x$supports_anon_versioning" = xyes; then
9046 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9047 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9048 echo "local: *; };" >> $output_objdir/$libname.ver~
9049 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9050 fi
9051 ;;
9052 esac
9053 else
9054 ld_shlibs=no
9055 fi
9056 ;;
9057
9058 netbsd*)
9059 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9060 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9061 wlarc=
9062 else
9063 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9064 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9065 fi
9066 ;;
9067
9068 solaris*)
9069 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9070 ld_shlibs=no
9071 cat <<_LT_EOF 1>&2
9072
9073 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9074 *** create shared libraries on Solaris systems. Therefore, libtool
9075 *** is disabling shared libraries support. We urge you to upgrade GNU
9076 *** binutils to release 2.9.1 or newer. Another option is to modify
9077 *** your PATH or compiler configuration so that the native linker is
9078 *** used, and then restart.
9079
9080 _LT_EOF
9081 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9082 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9083 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9084 else
9085 ld_shlibs=no
9086 fi
9087 ;;
9088
9089 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9090 case `$LD -v 2>&1` in
9091 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9092 ld_shlibs=no
9093 cat <<_LT_EOF 1>&2
9094
9095 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9096 *** reliably create shared libraries on SCO systems. Therefore, libtool
9097 *** is disabling shared libraries support. We urge you to upgrade GNU
9098 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9099 *** your PATH or compiler configuration so that the native linker is
9100 *** used, and then restart.
9101
9102 _LT_EOF
9103 ;;
9104 *)
9105 # For security reasons, it is highly recommended that you always
9106 # use absolute paths for naming shared libraries, and exclude the
9107 # DT_RUNPATH tag from executables and libraries. But doing so
9108 # requires that you compile everything twice, which is a pain.
9109 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9110 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9111 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9112 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9113 else
9114 ld_shlibs=no
9115 fi
9116 ;;
9117 esac
9118 ;;
9119
9120 sunos4*)
9121 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9122 wlarc=
9123 hardcode_direct=yes
9124 hardcode_shlibpath_var=no
9125 ;;
9126
9127 *)
9128 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9129 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9130 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9131 else
9132 ld_shlibs=no
9133 fi
9134 ;;
9135 esac
9136
9137 if test "$ld_shlibs" = no; then
9138 runpath_var=
9139 hardcode_libdir_flag_spec=
9140 export_dynamic_flag_spec=
9141 whole_archive_flag_spec=
9142 fi
9143 else
9144 # PORTME fill in a description of your system's linker (not GNU ld)
9145 case $host_os in
9146 aix3*)
9147 allow_undefined_flag=unsupported
9148 always_export_symbols=yes
9149 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'
9150 # Note: this linker hardcodes the directories in LIBPATH if there
9151 # are no directories specified by -L.
9152 hardcode_minus_L=yes
9153 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9154 # Neither direct hardcoding nor static linking is supported with a
9155 # broken collect2.
9156 hardcode_direct=unsupported
9157 fi
9158 ;;
9159
9160 aix[4-9]*)
9161 if test "$host_cpu" = ia64; then
9162 # On IA64, the linker does run time linking by default, so we don't
9163 # have to do anything special.
9164 aix_use_runtimelinking=no
9165 exp_sym_flag='-Bexport'
9166 no_entry_flag=""
9167 else
9168 # If we're using GNU nm, then we don't want the "-C" option.
9169 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9170 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9171 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'
9172 else
9173 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'
9174 fi
9175 aix_use_runtimelinking=no
9176
9177 # Test if we are trying to use run time linking or normal
9178 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9179 # need to do runtime linking.
9180 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9181 for ld_flag in $LDFLAGS; do
9182 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9183 aix_use_runtimelinking=yes
9184 break
9185 fi
9186 done
9187 ;;
9188 esac
9189
9190 exp_sym_flag='-bexport'
9191 no_entry_flag='-bnoentry'
9192 fi
9193
9194 # When large executables or shared objects are built, AIX ld can
9195 # have problems creating the table of contents. If linking a library
9196 # or program results in "error TOC overflow" add -mminimal-toc to
9197 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9198 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9199
9200 archive_cmds=''
9201 hardcode_direct=yes
9202 hardcode_direct_absolute=yes
9203 hardcode_libdir_separator=':'
9204 link_all_deplibs=yes
9205 file_list_spec='${wl}-f,'
9206
9207 if test "$GCC" = yes; then
9208 case $host_os in aix4.[012]|aix4.[012].*)
9209 # We only want to do this on AIX 4.2 and lower, the check
9210 # below for broken collect2 doesn't work under 4.3+
9211 collect2name=`${CC} -print-prog-name=collect2`
9212 if test -f "$collect2name" &&
9213 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9214 then
9215 # We have reworked collect2
9216 :
9217 else
9218 # We have old collect2
9219 hardcode_direct=unsupported
9220 # It fails to find uninstalled libraries when the uninstalled
9221 # path is not listed in the libpath. Setting hardcode_minus_L
9222 # to unsupported forces relinking
9223 hardcode_minus_L=yes
9224 hardcode_libdir_flag_spec='-L$libdir'
9225 hardcode_libdir_separator=
9226 fi
9227 ;;
9228 esac
9229 shared_flag='-shared'
9230 if test "$aix_use_runtimelinking" = yes; then
9231 shared_flag="$shared_flag "'${wl}-G'
9232 fi
9233 else
9234 # not using gcc
9235 if test "$host_cpu" = ia64; then
9236 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9237 # chokes on -Wl,-G. The following line is correct:
9238 shared_flag='-G'
9239 else
9240 if test "$aix_use_runtimelinking" = yes; then
9241 shared_flag='${wl}-G'
9242 else
9243 shared_flag='${wl}-bM:SRE'
9244 fi
9245 fi
9246 fi
9247
9248 export_dynamic_flag_spec='${wl}-bexpall'
9249 # It seems that -bexpall does not export symbols beginning with
9250 # underscore (_), so it is better to generate a list of symbols to export.
9251 always_export_symbols=yes
9252 if test "$aix_use_runtimelinking" = yes; then
9253 # Warning - without using the other runtime loading flags (-brtl),
9254 # -berok will link without error, but may produce a broken library.
9255 allow_undefined_flag='-berok'
9256 # Determine the default libpath from the value encoded in an
9257 # empty executable.
9258 cat >conftest.$ac_ext <<_ACEOF
9259 /* confdefs.h. */
9260 _ACEOF
9261 cat confdefs.h >>conftest.$ac_ext
9262 cat >>conftest.$ac_ext <<_ACEOF
9263 /* end confdefs.h. */
9264
9265 int
9266 main ()
9267 {
9268
9269 ;
9270 return 0;
9271 }
9272 _ACEOF
9273 rm -f conftest.$ac_objext conftest$ac_exeext
9274 if { (ac_try="$ac_link"
9275 case "(($ac_try" in
9276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9277 *) ac_try_echo=$ac_try;;
9278 esac
9279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9280 $as_echo "$ac_try_echo") >&5
9281 (eval "$ac_link") 2>conftest.er1
9282 ac_status=$?
9283 grep -v '^ *+' conftest.er1 >conftest.err
9284 rm -f conftest.er1
9285 cat conftest.err >&5
9286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); } && {
9288 test -z "$ac_c_werror_flag" ||
9289 test ! -s conftest.err
9290 } && test -s conftest$ac_exeext && {
9291 test "$cross_compiling" = yes ||
9292 $as_test_x conftest$ac_exeext
9293 }; then
9294
9295 lt_aix_libpath_sed='
9296 /Import File Strings/,/^$/ {
9297 /^0/ {
9298 s/^0 *\(.*\)$/\1/
9299 p
9300 }
9301 }'
9302 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9303 # Check for a 64-bit object if we didn't find anything.
9304 if test -z "$aix_libpath"; then
9305 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9306 fi
9307 else
9308 $as_echo "$as_me: failed program was:" >&5
9309 sed 's/^/| /' conftest.$ac_ext >&5
9310
9311
9312 fi
9313
9314 rm -rf conftest.dSYM
9315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9316 conftest$ac_exeext conftest.$ac_ext
9317 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9318
9319 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9320 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9321 else
9322 if test "$host_cpu" = ia64; then
9323 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9324 allow_undefined_flag="-z nodefs"
9325 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"
9326 else
9327 # Determine the default libpath from the value encoded in an
9328 # empty executable.
9329 cat >conftest.$ac_ext <<_ACEOF
9330 /* confdefs.h. */
9331 _ACEOF
9332 cat confdefs.h >>conftest.$ac_ext
9333 cat >>conftest.$ac_ext <<_ACEOF
9334 /* end confdefs.h. */
9335
9336 int
9337 main ()
9338 {
9339
9340 ;
9341 return 0;
9342 }
9343 _ACEOF
9344 rm -f conftest.$ac_objext conftest$ac_exeext
9345 if { (ac_try="$ac_link"
9346 case "(($ac_try" in
9347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9348 *) ac_try_echo=$ac_try;;
9349 esac
9350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9351 $as_echo "$ac_try_echo") >&5
9352 (eval "$ac_link") 2>conftest.er1
9353 ac_status=$?
9354 grep -v '^ *+' conftest.er1 >conftest.err
9355 rm -f conftest.er1
9356 cat conftest.err >&5
9357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); } && {
9359 test -z "$ac_c_werror_flag" ||
9360 test ! -s conftest.err
9361 } && test -s conftest$ac_exeext && {
9362 test "$cross_compiling" = yes ||
9363 $as_test_x conftest$ac_exeext
9364 }; then
9365
9366 lt_aix_libpath_sed='
9367 /Import File Strings/,/^$/ {
9368 /^0/ {
9369 s/^0 *\(.*\)$/\1/
9370 p
9371 }
9372 }'
9373 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9374 # Check for a 64-bit object if we didn't find anything.
9375 if test -z "$aix_libpath"; then
9376 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9377 fi
9378 else
9379 $as_echo "$as_me: failed program was:" >&5
9380 sed 's/^/| /' conftest.$ac_ext >&5
9381
9382
9383 fi
9384
9385 rm -rf conftest.dSYM
9386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9387 conftest$ac_exeext conftest.$ac_ext
9388 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9389
9390 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9391 # Warning - without using the other run time loading flags,
9392 # -berok will link without error, but may produce a broken library.
9393 no_undefined_flag=' ${wl}-bernotok'
9394 allow_undefined_flag=' ${wl}-berok'
9395 # Exported symbols can be pulled into shared objects from archives
9396 whole_archive_flag_spec='$convenience'
9397 archive_cmds_need_lc=yes
9398 # This is similar to how AIX traditionally builds its shared libraries.
9399 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'
9400 fi
9401 fi
9402 ;;
9403
9404 amigaos*)
9405 case $host_cpu in
9406 powerpc)
9407 # see comment about AmigaOS4 .so support
9408 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9409 archive_expsym_cmds=''
9410 ;;
9411 m68k)
9412 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)'
9413 hardcode_libdir_flag_spec='-L$libdir'
9414 hardcode_minus_L=yes
9415 ;;
9416 esac
9417 ;;
9418
9419 bsdi[45]*)
9420 export_dynamic_flag_spec=-rdynamic
9421 ;;
9422
9423 cygwin* | mingw* | pw32* | cegcc*)
9424 # When not using gcc, we currently assume that we are using
9425 # Microsoft Visual C++.
9426 # hardcode_libdir_flag_spec is actually meaningless, as there is
9427 # no search path for DLLs.
9428 hardcode_libdir_flag_spec=' '
9429 allow_undefined_flag=unsupported
9430 # Tell ltmain to make .lib files, not .a files.
9431 libext=lib
9432 # Tell ltmain to make .dll files, not .so files.
9433 shrext_cmds=".dll"
9434 # FIXME: Setting linknames here is a bad hack.
9435 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9436 # The linker will automatically build a .lib file if we build a DLL.
9437 old_archive_from_new_cmds='true'
9438 # FIXME: Should let the user specify the lib program.
9439 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9440 fix_srcfile_path='`cygpath -w "$srcfile"`'
9441 enable_shared_with_static_runtimes=yes
9442 ;;
9443
9444 darwin* | rhapsody*)
9445
9446
9447 archive_cmds_need_lc=no
9448 hardcode_direct=no
9449 hardcode_automatic=yes
9450 hardcode_shlibpath_var=unsupported
9451 whole_archive_flag_spec=''
9452 link_all_deplibs=yes
9453 allow_undefined_flag="$_lt_dar_allow_undefined"
9454 case $cc_basename in
9455 ifort*) _lt_dar_can_shared=yes ;;
9456 *) _lt_dar_can_shared=$GCC ;;
9457 esac
9458 if test "$_lt_dar_can_shared" = "yes"; then
9459 output_verbose_link_cmd=echo
9460 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9461 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9462 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9463 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9464
9465 else
9466 ld_shlibs=no
9467 fi
9468
9469 ;;
9470
9471 dgux*)
9472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9473 hardcode_libdir_flag_spec='-L$libdir'
9474 hardcode_shlibpath_var=no
9475 ;;
9476
9477 freebsd1*)
9478 ld_shlibs=no
9479 ;;
9480
9481 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9482 # support. Future versions do this automatically, but an explicit c++rt0.o
9483 # does not break anything, and helps significantly (at the cost of a little
9484 # extra space).
9485 freebsd2.2*)
9486 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9487 hardcode_libdir_flag_spec='-R$libdir'
9488 hardcode_direct=yes
9489 hardcode_shlibpath_var=no
9490 ;;
9491
9492 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9493 freebsd2*)
9494 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9495 hardcode_direct=yes
9496 hardcode_minus_L=yes
9497 hardcode_shlibpath_var=no
9498 ;;
9499
9500 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9501 freebsd* | dragonfly*)
9502 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9503 hardcode_libdir_flag_spec='-R$libdir'
9504 hardcode_direct=yes
9505 hardcode_shlibpath_var=no
9506 ;;
9507
9508 hpux9*)
9509 if test "$GCC" = yes; then
9510 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'
9511 else
9512 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'
9513 fi
9514 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9515 hardcode_libdir_separator=:
9516 hardcode_direct=yes
9517
9518 # hardcode_minus_L: Not really in the search PATH,
9519 # but as the default location of the library.
9520 hardcode_minus_L=yes
9521 export_dynamic_flag_spec='${wl}-E'
9522 ;;
9523
9524 hpux10*)
9525 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9526 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9527 else
9528 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9529 fi
9530 if test "$with_gnu_ld" = no; then
9531 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9532 hardcode_libdir_flag_spec_ld='+b $libdir'
9533 hardcode_libdir_separator=:
9534 hardcode_direct=yes
9535 hardcode_direct_absolute=yes
9536 export_dynamic_flag_spec='${wl}-E'
9537 # hardcode_minus_L: Not really in the search PATH,
9538 # but as the default location of the library.
9539 hardcode_minus_L=yes
9540 fi
9541 ;;
9542
9543 hpux11*)
9544 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9545 case $host_cpu in
9546 hppa*64*)
9547 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9548 ;;
9549 ia64*)
9550 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9551 ;;
9552 *)
9553 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9554 ;;
9555 esac
9556 else
9557 case $host_cpu in
9558 hppa*64*)
9559 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9560 ;;
9561 ia64*)
9562 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9563 ;;
9564 *)
9565 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9566 ;;
9567 esac
9568 fi
9569 if test "$with_gnu_ld" = no; then
9570 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9571 hardcode_libdir_separator=:
9572
9573 case $host_cpu in
9574 hppa*64*|ia64*)
9575 hardcode_direct=no
9576 hardcode_shlibpath_var=no
9577 ;;
9578 *)
9579 hardcode_direct=yes
9580 hardcode_direct_absolute=yes
9581 export_dynamic_flag_spec='${wl}-E'
9582
9583 # hardcode_minus_L: Not really in the search PATH,
9584 # but as the default location of the library.
9585 hardcode_minus_L=yes
9586 ;;
9587 esac
9588 fi
9589 ;;
9590
9591 irix5* | irix6* | nonstopux*)
9592 if test "$GCC" = yes; then
9593 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9594 # Try to use the -exported_symbol ld option, if it does not
9595 # work, assume that -exports_file does not work either and
9596 # implicitly export all symbols.
9597 save_LDFLAGS="$LDFLAGS"
9598 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9599 cat >conftest.$ac_ext <<_ACEOF
9600 int foo(void) {}
9601 _ACEOF
9602 rm -f conftest.$ac_objext conftest$ac_exeext
9603 if { (ac_try="$ac_link"
9604 case "(($ac_try" in
9605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9606 *) ac_try_echo=$ac_try;;
9607 esac
9608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9609 $as_echo "$ac_try_echo") >&5
9610 (eval "$ac_link") 2>conftest.er1
9611 ac_status=$?
9612 grep -v '^ *+' conftest.er1 >conftest.err
9613 rm -f conftest.er1
9614 cat conftest.err >&5
9615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); } && {
9617 test -z "$ac_c_werror_flag" ||
9618 test ! -s conftest.err
9619 } && test -s conftest$ac_exeext && {
9620 test "$cross_compiling" = yes ||
9621 $as_test_x conftest$ac_exeext
9622 }; then
9623 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9624
9625 else
9626 $as_echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9628
9629
9630 fi
9631
9632 rm -rf conftest.dSYM
9633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9634 conftest$ac_exeext conftest.$ac_ext
9635 LDFLAGS="$save_LDFLAGS"
9636 else
9637 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9638 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9639 fi
9640 archive_cmds_need_lc='no'
9641 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9642 hardcode_libdir_separator=:
9643 inherit_rpath=yes
9644 link_all_deplibs=yes
9645 ;;
9646
9647 netbsd*)
9648 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9649 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9650 else
9651 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9652 fi
9653 hardcode_libdir_flag_spec='-R$libdir'
9654 hardcode_direct=yes
9655 hardcode_shlibpath_var=no
9656 ;;
9657
9658 newsos6)
9659 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9660 hardcode_direct=yes
9661 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9662 hardcode_libdir_separator=:
9663 hardcode_shlibpath_var=no
9664 ;;
9665
9666 *nto* | *qnx*)
9667 ;;
9668
9669 openbsd*)
9670 if test -f /usr/libexec/ld.so; then
9671 hardcode_direct=yes
9672 hardcode_shlibpath_var=no
9673 hardcode_direct_absolute=yes
9674 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9675 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9676 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9677 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9678 export_dynamic_flag_spec='${wl}-E'
9679 else
9680 case $host_os in
9681 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9682 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9683 hardcode_libdir_flag_spec='-R$libdir'
9684 ;;
9685 *)
9686 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9687 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9688 ;;
9689 esac
9690 fi
9691 else
9692 ld_shlibs=no
9693 fi
9694 ;;
9695
9696 os2*)
9697 hardcode_libdir_flag_spec='-L$libdir'
9698 hardcode_minus_L=yes
9699 allow_undefined_flag=unsupported
9700 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'
9701 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9702 ;;
9703
9704 osf3*)
9705 if test "$GCC" = yes; then
9706 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9707 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9708 else
9709 allow_undefined_flag=' -expect_unresolved \*'
9710 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9711 fi
9712 archive_cmds_need_lc='no'
9713 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9714 hardcode_libdir_separator=:
9715 ;;
9716
9717 osf4* | osf5*) # as osf3* with the addition of -msym flag
9718 if test "$GCC" = yes; then
9719 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9720 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9721 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9722 else
9723 allow_undefined_flag=' -expect_unresolved \*'
9724 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9725 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9726 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9727
9728 # Both c and cxx compiler support -rpath directly
9729 hardcode_libdir_flag_spec='-rpath $libdir'
9730 fi
9731 archive_cmds_need_lc='no'
9732 hardcode_libdir_separator=:
9733 ;;
9734
9735 solaris*)
9736 no_undefined_flag=' -z defs'
9737 if test "$GCC" = yes; then
9738 wlarc='${wl}'
9739 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9740 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9741 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9742 else
9743 case `$CC -V 2>&1` in
9744 *"Compilers 5.0"*)
9745 wlarc=''
9746 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9747 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9748 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9749 ;;
9750 *)
9751 wlarc='${wl}'
9752 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9753 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9754 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9755 ;;
9756 esac
9757 fi
9758 hardcode_libdir_flag_spec='-R$libdir'
9759 hardcode_shlibpath_var=no
9760 case $host_os in
9761 solaris2.[0-5] | solaris2.[0-5].*) ;;
9762 *)
9763 # The compiler driver will combine and reorder linker options,
9764 # but understands `-z linker_flag'. GCC discards it without `$wl',
9765 # but is careful enough not to reorder.
9766 # Supported since Solaris 2.6 (maybe 2.5.1?)
9767 if test "$GCC" = yes; then
9768 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9769 else
9770 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9771 fi
9772 ;;
9773 esac
9774 link_all_deplibs=yes
9775 ;;
9776
9777 sunos4*)
9778 if test "x$host_vendor" = xsequent; then
9779 # Use $CC to link under sequent, because it throws in some extra .o
9780 # files that make .init and .fini sections work.
9781 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9782 else
9783 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9784 fi
9785 hardcode_libdir_flag_spec='-L$libdir'
9786 hardcode_direct=yes
9787 hardcode_minus_L=yes
9788 hardcode_shlibpath_var=no
9789 ;;
9790
9791 sysv4)
9792 case $host_vendor in
9793 sni)
9794 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9795 hardcode_direct=yes # is this really true???
9796 ;;
9797 siemens)
9798 ## LD is ld it makes a PLAMLIB
9799 ## CC just makes a GrossModule.
9800 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9801 reload_cmds='$CC -r -o $output$reload_objs'
9802 hardcode_direct=no
9803 ;;
9804 motorola)
9805 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9806 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9807 ;;
9808 esac
9809 runpath_var='LD_RUN_PATH'
9810 hardcode_shlibpath_var=no
9811 ;;
9812
9813 sysv4.3*)
9814 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9815 hardcode_shlibpath_var=no
9816 export_dynamic_flag_spec='-Bexport'
9817 ;;
9818
9819 sysv4*MP*)
9820 if test -d /usr/nec; then
9821 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9822 hardcode_shlibpath_var=no
9823 runpath_var=LD_RUN_PATH
9824 hardcode_runpath_var=yes
9825 ld_shlibs=yes
9826 fi
9827 ;;
9828
9829 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9830 no_undefined_flag='${wl}-z,text'
9831 archive_cmds_need_lc=no
9832 hardcode_shlibpath_var=no
9833 runpath_var='LD_RUN_PATH'
9834
9835 if test "$GCC" = yes; then
9836 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9837 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9838 else
9839 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9840 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9841 fi
9842 ;;
9843
9844 sysv5* | sco3.2v5* | sco5v6*)
9845 # Note: We can NOT use -z defs as we might desire, because we do not
9846 # link with -lc, and that would cause any symbols used from libc to
9847 # always be unresolved, which means just about no library would
9848 # ever link correctly. If we're not using GNU ld we use -z text
9849 # though, which does catch some bad symbols but isn't as heavy-handed
9850 # as -z defs.
9851 no_undefined_flag='${wl}-z,text'
9852 allow_undefined_flag='${wl}-z,nodefs'
9853 archive_cmds_need_lc=no
9854 hardcode_shlibpath_var=no
9855 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9856 hardcode_libdir_separator=':'
9857 link_all_deplibs=yes
9858 export_dynamic_flag_spec='${wl}-Bexport'
9859 runpath_var='LD_RUN_PATH'
9860
9861 if test "$GCC" = yes; then
9862 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9863 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9864 else
9865 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9866 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9867 fi
9868 ;;
9869
9870 uts4*)
9871 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9872 hardcode_libdir_flag_spec='-L$libdir'
9873 hardcode_shlibpath_var=no
9874 ;;
9875
9876 *)
9877 ld_shlibs=no
9878 ;;
9879 esac
9880
9881 if test x$host_vendor = xsni; then
9882 case $host in
9883 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9884 export_dynamic_flag_spec='${wl}-Blargedynsym'
9885 ;;
9886 esac
9887 fi
9888 fi
9889
9890 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9891 $as_echo "$ld_shlibs" >&6; }
9892 test "$ld_shlibs" = no && can_build_shared=no
9893
9894 with_gnu_ld=$with_gnu_ld
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910 #
9911 # Do we need to explicitly link libc?
9912 #
9913 case "x$archive_cmds_need_lc" in
9914 x|xyes)
9915 # Assume -lc should be added
9916 archive_cmds_need_lc=yes
9917
9918 if test "$enable_shared" = yes && test "$GCC" = yes; then
9919 case $archive_cmds in
9920 *'~'*)
9921 # FIXME: we may have to deal with multi-command sequences.
9922 ;;
9923 '$CC '*)
9924 # Test whether the compiler implicitly links with -lc since on some
9925 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9926 # to ld, don't add -lc before -lgcc.
9927 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9928 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9929 $RM conftest*
9930 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9931
9932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9933 (eval $ac_compile) 2>&5
9934 ac_status=$?
9935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } 2>conftest.err; then
9937 soname=conftest
9938 lib=conftest
9939 libobjs=conftest.$ac_objext
9940 deplibs=
9941 wl=$lt_prog_compiler_wl
9942 pic_flag=$lt_prog_compiler_pic
9943 compiler_flags=-v
9944 linker_flags=-v
9945 verstring=
9946 output_objdir=.
9947 libname=conftest
9948 lt_save_allow_undefined_flag=$allow_undefined_flag
9949 allow_undefined_flag=
9950 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9951 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9952 ac_status=$?
9953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); }
9955 then
9956 archive_cmds_need_lc=no
9957 else
9958 archive_cmds_need_lc=yes
9959 fi
9960 allow_undefined_flag=$lt_save_allow_undefined_flag
9961 else
9962 cat conftest.err 1>&5
9963 fi
9964 $RM conftest*
9965 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9966 $as_echo "$archive_cmds_need_lc" >&6; }
9967 ;;
9968 esac
9969 fi
9970 ;;
9971 esac
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10130 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10131
10132 if test "$GCC" = yes; then
10133 case $host_os in
10134 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10135 *) lt_awk_arg="/^libraries:/" ;;
10136 esac
10137 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10138 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10139 # if the path contains ";" then we assume it to be the separator
10140 # otherwise default to the standard path separator (i.e. ":") - it is
10141 # assumed that no part of a normal pathname contains ";" but that should
10142 # okay in the real world where ";" in dirpaths is itself problematic.
10143 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10144 else
10145 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10146 fi
10147 # Ok, now we have the path, separated by spaces, we can step through it
10148 # and add multilib dir if necessary.
10149 lt_tmp_lt_search_path_spec=
10150 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10151 for lt_sys_path in $lt_search_path_spec; do
10152 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10153 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10154 else
10155 test -d "$lt_sys_path" && \
10156 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10157 fi
10158 done
10159 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10160 BEGIN {RS=" "; FS="/|\n";} {
10161 lt_foo="";
10162 lt_count=0;
10163 for (lt_i = NF; lt_i > 0; lt_i--) {
10164 if ($lt_i != "" && $lt_i != ".") {
10165 if ($lt_i == "..") {
10166 lt_count++;
10167 } else {
10168 if (lt_count == 0) {
10169 lt_foo="/" $lt_i lt_foo;
10170 } else {
10171 lt_count--;
10172 }
10173 }
10174 }
10175 }
10176 if (lt_foo != "") { lt_freq[lt_foo]++; }
10177 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10178 }'`
10179 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10180 else
10181 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10182 fi
10183 library_names_spec=
10184 libname_spec='lib$name'
10185 soname_spec=
10186 shrext_cmds=".so"
10187 postinstall_cmds=
10188 postuninstall_cmds=
10189 finish_cmds=
10190 finish_eval=
10191 shlibpath_var=
10192 shlibpath_overrides_runpath=unknown
10193 version_type=none
10194 dynamic_linker="$host_os ld.so"
10195 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10196 need_lib_prefix=unknown
10197 hardcode_into_libs=no
10198
10199 # when you set need_version to no, make sure it does not cause -set_version
10200 # flags to be left without arguments
10201 need_version=unknown
10202
10203 case $host_os in
10204 aix3*)
10205 version_type=linux
10206 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10207 shlibpath_var=LIBPATH
10208
10209 # AIX 3 has no versioning support, so we append a major version to the name.
10210 soname_spec='${libname}${release}${shared_ext}$major'
10211 ;;
10212
10213 aix[4-9]*)
10214 version_type=linux
10215 need_lib_prefix=no
10216 need_version=no
10217 hardcode_into_libs=yes
10218 if test "$host_cpu" = ia64; then
10219 # AIX 5 supports IA64
10220 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10221 shlibpath_var=LD_LIBRARY_PATH
10222 else
10223 # With GCC up to 2.95.x, collect2 would create an import file
10224 # for dependence libraries. The import file would start with
10225 # the line `#! .'. This would cause the generated library to
10226 # depend on `.', always an invalid library. This was fixed in
10227 # development snapshots of GCC prior to 3.0.
10228 case $host_os in
10229 aix4 | aix4.[01] | aix4.[01].*)
10230 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10231 echo ' yes '
10232 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10233 :
10234 else
10235 can_build_shared=no
10236 fi
10237 ;;
10238 esac
10239 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10240 # soname into executable. Probably we can add versioning support to
10241 # collect2, so additional links can be useful in future.
10242 if test "$aix_use_runtimelinking" = yes; then
10243 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10244 # instead of lib<name>.a to let people know that these are not
10245 # typical AIX shared libraries.
10246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10247 else
10248 # We preserve .a as extension for shared libraries through AIX4.2
10249 # and later when we are not doing run time linking.
10250 library_names_spec='${libname}${release}.a $libname.a'
10251 soname_spec='${libname}${release}${shared_ext}$major'
10252 fi
10253 shlibpath_var=LIBPATH
10254 fi
10255 ;;
10256
10257 amigaos*)
10258 case $host_cpu in
10259 powerpc)
10260 # Since July 2007 AmigaOS4 officially supports .so libraries.
10261 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10263 ;;
10264 m68k)
10265 library_names_spec='$libname.ixlibrary $libname.a'
10266 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10267 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'
10268 ;;
10269 esac
10270 ;;
10271
10272 beos*)
10273 library_names_spec='${libname}${shared_ext}'
10274 dynamic_linker="$host_os ld.so"
10275 shlibpath_var=LIBRARY_PATH
10276 ;;
10277
10278 bsdi[45]*)
10279 version_type=linux
10280 need_version=no
10281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10282 soname_spec='${libname}${release}${shared_ext}$major'
10283 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10284 shlibpath_var=LD_LIBRARY_PATH
10285 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10286 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10287 # the default ld.so.conf also contains /usr/contrib/lib and
10288 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10289 # libtool to hard-code these into programs
10290 ;;
10291
10292 cygwin* | mingw* | pw32* | cegcc*)
10293 version_type=windows
10294 shrext_cmds=".dll"
10295 need_version=no
10296 need_lib_prefix=no
10297
10298 case $GCC,$host_os in
10299 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10300 library_names_spec='$libname.dll.a'
10301 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10302 postinstall_cmds='base_file=`basename \${file}`~
10303 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10304 dldir=$destdir/`dirname \$dlpath`~
10305 test -d \$dldir || mkdir -p \$dldir~
10306 $install_prog $dir/$dlname \$dldir/$dlname~
10307 chmod a+x \$dldir/$dlname~
10308 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10309 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10310 fi'
10311 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10312 dlpath=$dir/\$dldll~
10313 $RM \$dlpath'
10314 shlibpath_overrides_runpath=yes
10315
10316 case $host_os in
10317 cygwin*)
10318 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10319 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10320 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10321 ;;
10322 mingw* | cegcc*)
10323 # MinGW DLLs use traditional 'lib' prefix
10324 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10325 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10326 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10327 # It is most probably a Windows format PATH printed by
10328 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10329 # path with ; separators, and with drive letters. We can handle the
10330 # drive letters (cygwin fileutils understands them), so leave them,
10331 # especially as we might pass files found there to a mingw objdump,
10332 # which wouldn't understand a cygwinified path. Ahh.
10333 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10334 else
10335 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10336 fi
10337 ;;
10338 pw32*)
10339 # pw32 DLLs use 'pw' prefix rather than 'lib'
10340 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10341 ;;
10342 esac
10343 ;;
10344
10345 *)
10346 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10347 ;;
10348 esac
10349 dynamic_linker='Win32 ld.exe'
10350 # FIXME: first we should search . and the directory the executable is in
10351 shlibpath_var=PATH
10352 ;;
10353
10354 darwin* | rhapsody*)
10355 dynamic_linker="$host_os dyld"
10356 version_type=darwin
10357 need_lib_prefix=no
10358 need_version=no
10359 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10360 soname_spec='${libname}${release}${major}$shared_ext'
10361 shlibpath_overrides_runpath=yes
10362 shlibpath_var=DYLD_LIBRARY_PATH
10363 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10364
10365 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10366 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10367 ;;
10368
10369 dgux*)
10370 version_type=linux
10371 need_lib_prefix=no
10372 need_version=no
10373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10374 soname_spec='${libname}${release}${shared_ext}$major'
10375 shlibpath_var=LD_LIBRARY_PATH
10376 ;;
10377
10378 freebsd1*)
10379 dynamic_linker=no
10380 ;;
10381
10382 freebsd* | dragonfly*)
10383 # DragonFly does not have aout. When/if they implement a new
10384 # versioning mechanism, adjust this.
10385 if test -x /usr/bin/objformat; then
10386 objformat=`/usr/bin/objformat`
10387 else
10388 case $host_os in
10389 freebsd[123]*) objformat=aout ;;
10390 *) objformat=elf ;;
10391 esac
10392 fi
10393 version_type=freebsd-$objformat
10394 case $version_type in
10395 freebsd-elf*)
10396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10397 need_version=no
10398 need_lib_prefix=no
10399 ;;
10400 freebsd-*)
10401 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10402 need_version=yes
10403 ;;
10404 esac
10405 shlibpath_var=LD_LIBRARY_PATH
10406 case $host_os in
10407 freebsd2*)
10408 shlibpath_overrides_runpath=yes
10409 ;;
10410 freebsd3.[01]* | freebsdelf3.[01]*)
10411 shlibpath_overrides_runpath=yes
10412 hardcode_into_libs=yes
10413 ;;
10414 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10415 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10416 shlibpath_overrides_runpath=no
10417 hardcode_into_libs=yes
10418 ;;
10419 *) # from 4.6 on, and DragonFly
10420 shlibpath_overrides_runpath=yes
10421 hardcode_into_libs=yes
10422 ;;
10423 esac
10424 ;;
10425
10426 gnu*)
10427 version_type=linux
10428 need_lib_prefix=no
10429 need_version=no
10430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10431 soname_spec='${libname}${release}${shared_ext}$major'
10432 shlibpath_var=LD_LIBRARY_PATH
10433 hardcode_into_libs=yes
10434 ;;
10435
10436 hpux9* | hpux10* | hpux11*)
10437 # Give a soname corresponding to the major version so that dld.sl refuses to
10438 # link against other versions.
10439 version_type=sunos
10440 need_lib_prefix=no
10441 need_version=no
10442 case $host_cpu in
10443 ia64*)
10444 shrext_cmds='.so'
10445 hardcode_into_libs=yes
10446 dynamic_linker="$host_os dld.so"
10447 shlibpath_var=LD_LIBRARY_PATH
10448 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10450 soname_spec='${libname}${release}${shared_ext}$major'
10451 if test "X$HPUX_IA64_MODE" = X32; then
10452 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10453 else
10454 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10455 fi
10456 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10457 ;;
10458 hppa*64*)
10459 shrext_cmds='.sl'
10460 hardcode_into_libs=yes
10461 dynamic_linker="$host_os dld.sl"
10462 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10463 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10465 soname_spec='${libname}${release}${shared_ext}$major'
10466 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10467 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10468 ;;
10469 *)
10470 shrext_cmds='.sl'
10471 dynamic_linker="$host_os dld.sl"
10472 shlibpath_var=SHLIB_PATH
10473 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10475 soname_spec='${libname}${release}${shared_ext}$major'
10476 ;;
10477 esac
10478 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10479 postinstall_cmds='chmod 555 $lib'
10480 ;;
10481
10482 interix[3-9]*)
10483 version_type=linux
10484 need_lib_prefix=no
10485 need_version=no
10486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10487 soname_spec='${libname}${release}${shared_ext}$major'
10488 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10489 shlibpath_var=LD_LIBRARY_PATH
10490 shlibpath_overrides_runpath=no
10491 hardcode_into_libs=yes
10492 ;;
10493
10494 irix5* | irix6* | nonstopux*)
10495 case $host_os in
10496 nonstopux*) version_type=nonstopux ;;
10497 *)
10498 if test "$lt_cv_prog_gnu_ld" = yes; then
10499 version_type=linux
10500 else
10501 version_type=irix
10502 fi ;;
10503 esac
10504 need_lib_prefix=no
10505 need_version=no
10506 soname_spec='${libname}${release}${shared_ext}$major'
10507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10508 case $host_os in
10509 irix5* | nonstopux*)
10510 libsuff= shlibsuff=
10511 ;;
10512 *)
10513 case $LD in # libtool.m4 will add one of these switches to LD
10514 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10515 libsuff= shlibsuff= libmagic=32-bit;;
10516 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10517 libsuff=32 shlibsuff=N32 libmagic=N32;;
10518 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10519 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10520 *) libsuff= shlibsuff= libmagic=never-match;;
10521 esac
10522 ;;
10523 esac
10524 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10525 shlibpath_overrides_runpath=no
10526 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10527 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10528 hardcode_into_libs=yes
10529 ;;
10530
10531 # No shared lib support for Linux oldld, aout, or coff.
10532 linux*oldld* | linux*aout* | linux*coff*)
10533 dynamic_linker=no
10534 ;;
10535
10536 # This must be Linux ELF.
10537 linux* | k*bsd*-gnu)
10538 version_type=linux
10539 need_lib_prefix=no
10540 need_version=no
10541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10542 soname_spec='${libname}${release}${shared_ext}$major'
10543 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10544 shlibpath_var=LD_LIBRARY_PATH
10545 shlibpath_overrides_runpath=no
10546 # Some binutils ld are patched to set DT_RUNPATH
10547 save_LDFLAGS=$LDFLAGS
10548 save_libdir=$libdir
10549 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10550 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10551 cat >conftest.$ac_ext <<_ACEOF
10552 /* confdefs.h. */
10553 _ACEOF
10554 cat confdefs.h >>conftest.$ac_ext
10555 cat >>conftest.$ac_ext <<_ACEOF
10556 /* end confdefs.h. */
10557
10558 int
10559 main ()
10560 {
10561
10562 ;
10563 return 0;
10564 }
10565 _ACEOF
10566 rm -f conftest.$ac_objext conftest$ac_exeext
10567 if { (ac_try="$ac_link"
10568 case "(($ac_try" in
10569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10570 *) ac_try_echo=$ac_try;;
10571 esac
10572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10573 $as_echo "$ac_try_echo") >&5
10574 (eval "$ac_link") 2>conftest.er1
10575 ac_status=$?
10576 grep -v '^ *+' conftest.er1 >conftest.err
10577 rm -f conftest.er1
10578 cat conftest.err >&5
10579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); } && {
10581 test -z "$ac_c_werror_flag" ||
10582 test ! -s conftest.err
10583 } && test -s conftest$ac_exeext && {
10584 test "$cross_compiling" = yes ||
10585 $as_test_x conftest$ac_exeext
10586 }; then
10587 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10588 shlibpath_overrides_runpath=yes
10589 fi
10590
10591 else
10592 $as_echo "$as_me: failed program was:" >&5
10593 sed 's/^/| /' conftest.$ac_ext >&5
10594
10595
10596 fi
10597
10598 rm -rf conftest.dSYM
10599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10600 conftest$ac_exeext conftest.$ac_ext
10601 LDFLAGS=$save_LDFLAGS
10602 libdir=$save_libdir
10603
10604 # This implies no fast_install, which is unacceptable.
10605 # Some rework will be needed to allow for fast_install
10606 # before this can be enabled.
10607 hardcode_into_libs=yes
10608
10609 # Add ABI-specific directories to the system library path.
10610 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10611
10612 # Append ld.so.conf contents to the search path
10613 if test -f /etc/ld.so.conf; then
10614 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10615 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10616 fi
10617
10618 # We used to test for /lib/ld.so.1 and disable shared libraries on
10619 # powerpc, because MkLinux only supported shared libraries with the
10620 # GNU dynamic linker. Since this was broken with cross compilers,
10621 # most powerpc-linux boxes support dynamic linking these days and
10622 # people can always --disable-shared, the test was removed, and we
10623 # assume the GNU/Linux dynamic linker is in use.
10624 dynamic_linker='GNU/Linux ld.so'
10625 ;;
10626
10627 netbsd*)
10628 version_type=sunos
10629 need_lib_prefix=no
10630 need_version=no
10631 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10633 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10634 dynamic_linker='NetBSD (a.out) ld.so'
10635 else
10636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10637 soname_spec='${libname}${release}${shared_ext}$major'
10638 dynamic_linker='NetBSD ld.elf_so'
10639 fi
10640 shlibpath_var=LD_LIBRARY_PATH
10641 shlibpath_overrides_runpath=yes
10642 hardcode_into_libs=yes
10643 ;;
10644
10645 newsos6)
10646 version_type=linux
10647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10648 shlibpath_var=LD_LIBRARY_PATH
10649 shlibpath_overrides_runpath=yes
10650 ;;
10651
10652 *nto* | *qnx*)
10653 version_type=qnx
10654 need_lib_prefix=no
10655 need_version=no
10656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10657 soname_spec='${libname}${release}${shared_ext}$major'
10658 shlibpath_var=LD_LIBRARY_PATH
10659 shlibpath_overrides_runpath=no
10660 hardcode_into_libs=yes
10661 dynamic_linker='ldqnx.so'
10662 ;;
10663
10664 openbsd*)
10665 version_type=sunos
10666 sys_lib_dlsearch_path_spec="/usr/lib"
10667 need_lib_prefix=no
10668 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10669 case $host_os in
10670 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10671 *) need_version=no ;;
10672 esac
10673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10674 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10675 shlibpath_var=LD_LIBRARY_PATH
10676 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10677 case $host_os in
10678 openbsd2.[89] | openbsd2.[89].*)
10679 shlibpath_overrides_runpath=no
10680 ;;
10681 *)
10682 shlibpath_overrides_runpath=yes
10683 ;;
10684 esac
10685 else
10686 shlibpath_overrides_runpath=yes
10687 fi
10688 ;;
10689
10690 os2*)
10691 libname_spec='$name'
10692 shrext_cmds=".dll"
10693 need_lib_prefix=no
10694 library_names_spec='$libname${shared_ext} $libname.a'
10695 dynamic_linker='OS/2 ld.exe'
10696 shlibpath_var=LIBPATH
10697 ;;
10698
10699 osf3* | osf4* | osf5*)
10700 version_type=osf
10701 need_lib_prefix=no
10702 need_version=no
10703 soname_spec='${libname}${release}${shared_ext}$major'
10704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10705 shlibpath_var=LD_LIBRARY_PATH
10706 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10707 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10708 ;;
10709
10710 rdos*)
10711 dynamic_linker=no
10712 ;;
10713
10714 solaris*)
10715 version_type=linux
10716 need_lib_prefix=no
10717 need_version=no
10718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10719 soname_spec='${libname}${release}${shared_ext}$major'
10720 shlibpath_var=LD_LIBRARY_PATH
10721 shlibpath_overrides_runpath=yes
10722 hardcode_into_libs=yes
10723 # ldd complains unless libraries are executable
10724 postinstall_cmds='chmod +x $lib'
10725 ;;
10726
10727 sunos4*)
10728 version_type=sunos
10729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10730 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10731 shlibpath_var=LD_LIBRARY_PATH
10732 shlibpath_overrides_runpath=yes
10733 if test "$with_gnu_ld" = yes; then
10734 need_lib_prefix=no
10735 fi
10736 need_version=yes
10737 ;;
10738
10739 sysv4 | sysv4.3*)
10740 version_type=linux
10741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10742 soname_spec='${libname}${release}${shared_ext}$major'
10743 shlibpath_var=LD_LIBRARY_PATH
10744 case $host_vendor in
10745 sni)
10746 shlibpath_overrides_runpath=no
10747 need_lib_prefix=no
10748 runpath_var=LD_RUN_PATH
10749 ;;
10750 siemens)
10751 need_lib_prefix=no
10752 ;;
10753 motorola)
10754 need_lib_prefix=no
10755 need_version=no
10756 shlibpath_overrides_runpath=no
10757 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10758 ;;
10759 esac
10760 ;;
10761
10762 sysv4*MP*)
10763 if test -d /usr/nec ;then
10764 version_type=linux
10765 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10766 soname_spec='$libname${shared_ext}.$major'
10767 shlibpath_var=LD_LIBRARY_PATH
10768 fi
10769 ;;
10770
10771 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10772 version_type=freebsd-elf
10773 need_lib_prefix=no
10774 need_version=no
10775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10776 soname_spec='${libname}${release}${shared_ext}$major'
10777 shlibpath_var=LD_LIBRARY_PATH
10778 shlibpath_overrides_runpath=yes
10779 hardcode_into_libs=yes
10780 if test "$with_gnu_ld" = yes; then
10781 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10782 else
10783 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10784 case $host_os in
10785 sco3.2v5*)
10786 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10787 ;;
10788 esac
10789 fi
10790 sys_lib_dlsearch_path_spec='/usr/lib'
10791 ;;
10792
10793 tpf*)
10794 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10795 version_type=linux
10796 need_lib_prefix=no
10797 need_version=no
10798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10799 shlibpath_var=LD_LIBRARY_PATH
10800 shlibpath_overrides_runpath=no
10801 hardcode_into_libs=yes
10802 ;;
10803
10804 uts4*)
10805 version_type=linux
10806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10807 soname_spec='${libname}${release}${shared_ext}$major'
10808 shlibpath_var=LD_LIBRARY_PATH
10809 ;;
10810
10811 *)
10812 dynamic_linker=no
10813 ;;
10814 esac
10815 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10816 $as_echo "$dynamic_linker" >&6; }
10817 test "$dynamic_linker" = no && can_build_shared=no
10818
10819 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10820 if test "$GCC" = yes; then
10821 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10822 fi
10823
10824 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10825 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10826 fi
10827 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10828 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10829 fi
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10918 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10919 hardcode_action=
10920 if test -n "$hardcode_libdir_flag_spec" ||
10921 test -n "$runpath_var" ||
10922 test "X$hardcode_automatic" = "Xyes" ; then
10923
10924 # We can hardcode non-existent directories.
10925 if test "$hardcode_direct" != no &&
10926 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10927 # have to relink, otherwise we might link with an installed library
10928 # when we should be linking with a yet-to-be-installed one
10929 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10930 test "$hardcode_minus_L" != no; then
10931 # Linking always hardcodes the temporary library directory.
10932 hardcode_action=relink
10933 else
10934 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10935 hardcode_action=immediate
10936 fi
10937 else
10938 # We cannot hardcode anything, or else we can only hardcode existing
10939 # directories.
10940 hardcode_action=unsupported
10941 fi
10942 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10943 $as_echo "$hardcode_action" >&6; }
10944
10945 if test "$hardcode_action" = relink ||
10946 test "$inherit_rpath" = yes; then
10947 # Fast installation is not supported
10948 enable_fast_install=no
10949 elif test "$shlibpath_overrides_runpath" = yes ||
10950 test "$enable_shared" = no; then
10951 # Fast installation is not necessary
10952 enable_fast_install=needless
10953 fi
10954
10955
10956
10957
10958
10959
10960 if test "x$enable_dlopen" != xyes; then
10961 enable_dlopen=unknown
10962 enable_dlopen_self=unknown
10963 enable_dlopen_self_static=unknown
10964 else
10965 lt_cv_dlopen=no
10966 lt_cv_dlopen_libs=
10967
10968 case $host_os in
10969 beos*)
10970 lt_cv_dlopen="load_add_on"
10971 lt_cv_dlopen_libs=
10972 lt_cv_dlopen_self=yes
10973 ;;
10974
10975 mingw* | pw32* | cegcc*)
10976 lt_cv_dlopen="LoadLibrary"
10977 lt_cv_dlopen_libs=
10978 ;;
10979
10980 cygwin*)
10981 lt_cv_dlopen="dlopen"
10982 lt_cv_dlopen_libs=
10983 ;;
10984
10985 darwin*)
10986 # if libdl is installed we need to link against it
10987 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10988 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10989 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10990 $as_echo_n "(cached) " >&6
10991 else
10992 ac_check_lib_save_LIBS=$LIBS
10993 LIBS="-ldl $LIBS"
10994 cat >conftest.$ac_ext <<_ACEOF
10995 /* confdefs.h. */
10996 _ACEOF
10997 cat confdefs.h >>conftest.$ac_ext
10998 cat >>conftest.$ac_ext <<_ACEOF
10999 /* end confdefs.h. */
11000
11001 /* Override any GCC internal prototype to avoid an error.
11002 Use char because int might match the return type of a GCC
11003 builtin and then its argument prototype would still apply. */
11004 #ifdef __cplusplus
11005 extern "C"
11006 #endif
11007 char dlopen ();
11008 int
11009 main ()
11010 {
11011 return dlopen ();
11012 ;
11013 return 0;
11014 }
11015 _ACEOF
11016 rm -f conftest.$ac_objext conftest$ac_exeext
11017 if { (ac_try="$ac_link"
11018 case "(($ac_try" in
11019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11020 *) ac_try_echo=$ac_try;;
11021 esac
11022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11023 $as_echo "$ac_try_echo") >&5
11024 (eval "$ac_link") 2>conftest.er1
11025 ac_status=$?
11026 grep -v '^ *+' conftest.er1 >conftest.err
11027 rm -f conftest.er1
11028 cat conftest.err >&5
11029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); } && {
11031 test -z "$ac_c_werror_flag" ||
11032 test ! -s conftest.err
11033 } && test -s conftest$ac_exeext && {
11034 test "$cross_compiling" = yes ||
11035 $as_test_x conftest$ac_exeext
11036 }; then
11037 ac_cv_lib_dl_dlopen=yes
11038 else
11039 $as_echo "$as_me: failed program was:" >&5
11040 sed 's/^/| /' conftest.$ac_ext >&5
11041
11042 ac_cv_lib_dl_dlopen=no
11043 fi
11044
11045 rm -rf conftest.dSYM
11046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11047 conftest$ac_exeext conftest.$ac_ext
11048 LIBS=$ac_check_lib_save_LIBS
11049 fi
11050 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11051 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11052 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11053 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11054 else
11055
11056 lt_cv_dlopen="dyld"
11057 lt_cv_dlopen_libs=
11058 lt_cv_dlopen_self=yes
11059
11060 fi
11061
11062 ;;
11063
11064 *)
11065 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11066 $as_echo_n "checking for shl_load... " >&6; }
11067 if test "${ac_cv_func_shl_load+set}" = set; then
11068 $as_echo_n "(cached) " >&6
11069 else
11070 cat >conftest.$ac_ext <<_ACEOF
11071 /* confdefs.h. */
11072 _ACEOF
11073 cat confdefs.h >>conftest.$ac_ext
11074 cat >>conftest.$ac_ext <<_ACEOF
11075 /* end confdefs.h. */
11076 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11078 #define shl_load innocuous_shl_load
11079
11080 /* System header to define __stub macros and hopefully few prototypes,
11081 which can conflict with char shl_load (); below.
11082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11083 <limits.h> exists even on freestanding compilers. */
11084
11085 #ifdef __STDC__
11086 # include <limits.h>
11087 #else
11088 # include <assert.h>
11089 #endif
11090
11091 #undef shl_load
11092
11093 /* Override any GCC internal prototype to avoid an error.
11094 Use char because int might match the return type of a GCC
11095 builtin and then its argument prototype would still apply. */
11096 #ifdef __cplusplus
11097 extern "C"
11098 #endif
11099 char shl_load ();
11100 /* The GNU C library defines this for functions which it implements
11101 to always fail with ENOSYS. Some functions are actually named
11102 something starting with __ and the normal name is an alias. */
11103 #if defined __stub_shl_load || defined __stub___shl_load
11104 choke me
11105 #endif
11106
11107 int
11108 main ()
11109 {
11110 return shl_load ();
11111 ;
11112 return 0;
11113 }
11114 _ACEOF
11115 rm -f conftest.$ac_objext conftest$ac_exeext
11116 if { (ac_try="$ac_link"
11117 case "(($ac_try" in
11118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11119 *) ac_try_echo=$ac_try;;
11120 esac
11121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11122 $as_echo "$ac_try_echo") >&5
11123 (eval "$ac_link") 2>conftest.er1
11124 ac_status=$?
11125 grep -v '^ *+' conftest.er1 >conftest.err
11126 rm -f conftest.er1
11127 cat conftest.err >&5
11128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } && {
11130 test -z "$ac_c_werror_flag" ||
11131 test ! -s conftest.err
11132 } && test -s conftest$ac_exeext && {
11133 test "$cross_compiling" = yes ||
11134 $as_test_x conftest$ac_exeext
11135 }; then
11136 ac_cv_func_shl_load=yes
11137 else
11138 $as_echo "$as_me: failed program was:" >&5
11139 sed 's/^/| /' conftest.$ac_ext >&5
11140
11141 ac_cv_func_shl_load=no
11142 fi
11143
11144 rm -rf conftest.dSYM
11145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11146 conftest$ac_exeext conftest.$ac_ext
11147 fi
11148 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11149 $as_echo "$ac_cv_func_shl_load" >&6; }
11150 if test "x$ac_cv_func_shl_load" = x""yes; then
11151 lt_cv_dlopen="shl_load"
11152 else
11153 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11154 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11155 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11156 $as_echo_n "(cached) " >&6
11157 else
11158 ac_check_lib_save_LIBS=$LIBS
11159 LIBS="-ldld $LIBS"
11160 cat >conftest.$ac_ext <<_ACEOF
11161 /* confdefs.h. */
11162 _ACEOF
11163 cat confdefs.h >>conftest.$ac_ext
11164 cat >>conftest.$ac_ext <<_ACEOF
11165 /* end confdefs.h. */
11166
11167 /* Override any GCC internal prototype to avoid an error.
11168 Use char because int might match the return type of a GCC
11169 builtin and then its argument prototype would still apply. */
11170 #ifdef __cplusplus
11171 extern "C"
11172 #endif
11173 char shl_load ();
11174 int
11175 main ()
11176 {
11177 return shl_load ();
11178 ;
11179 return 0;
11180 }
11181 _ACEOF
11182 rm -f conftest.$ac_objext conftest$ac_exeext
11183 if { (ac_try="$ac_link"
11184 case "(($ac_try" in
11185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11186 *) ac_try_echo=$ac_try;;
11187 esac
11188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11189 $as_echo "$ac_try_echo") >&5
11190 (eval "$ac_link") 2>conftest.er1
11191 ac_status=$?
11192 grep -v '^ *+' conftest.er1 >conftest.err
11193 rm -f conftest.er1
11194 cat conftest.err >&5
11195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); } && {
11197 test -z "$ac_c_werror_flag" ||
11198 test ! -s conftest.err
11199 } && test -s conftest$ac_exeext && {
11200 test "$cross_compiling" = yes ||
11201 $as_test_x conftest$ac_exeext
11202 }; then
11203 ac_cv_lib_dld_shl_load=yes
11204 else
11205 $as_echo "$as_me: failed program was:" >&5
11206 sed 's/^/| /' conftest.$ac_ext >&5
11207
11208 ac_cv_lib_dld_shl_load=no
11209 fi
11210
11211 rm -rf conftest.dSYM
11212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11213 conftest$ac_exeext conftest.$ac_ext
11214 LIBS=$ac_check_lib_save_LIBS
11215 fi
11216 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11217 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11218 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11219 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11220 else
11221 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11222 $as_echo_n "checking for dlopen... " >&6; }
11223 if test "${ac_cv_func_dlopen+set}" = set; then
11224 $as_echo_n "(cached) " >&6
11225 else
11226 cat >conftest.$ac_ext <<_ACEOF
11227 /* confdefs.h. */
11228 _ACEOF
11229 cat confdefs.h >>conftest.$ac_ext
11230 cat >>conftest.$ac_ext <<_ACEOF
11231 /* end confdefs.h. */
11232 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11234 #define dlopen innocuous_dlopen
11235
11236 /* System header to define __stub macros and hopefully few prototypes,
11237 which can conflict with char dlopen (); below.
11238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11239 <limits.h> exists even on freestanding compilers. */
11240
11241 #ifdef __STDC__
11242 # include <limits.h>
11243 #else
11244 # include <assert.h>
11245 #endif
11246
11247 #undef dlopen
11248
11249 /* Override any GCC internal prototype to avoid an error.
11250 Use char because int might match the return type of a GCC
11251 builtin and then its argument prototype would still apply. */
11252 #ifdef __cplusplus
11253 extern "C"
11254 #endif
11255 char dlopen ();
11256 /* The GNU C library defines this for functions which it implements
11257 to always fail with ENOSYS. Some functions are actually named
11258 something starting with __ and the normal name is an alias. */
11259 #if defined __stub_dlopen || defined __stub___dlopen
11260 choke me
11261 #endif
11262
11263 int
11264 main ()
11265 {
11266 return dlopen ();
11267 ;
11268 return 0;
11269 }
11270 _ACEOF
11271 rm -f conftest.$ac_objext conftest$ac_exeext
11272 if { (ac_try="$ac_link"
11273 case "(($ac_try" in
11274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11275 *) ac_try_echo=$ac_try;;
11276 esac
11277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11278 $as_echo "$ac_try_echo") >&5
11279 (eval "$ac_link") 2>conftest.er1
11280 ac_status=$?
11281 grep -v '^ *+' conftest.er1 >conftest.err
11282 rm -f conftest.er1
11283 cat conftest.err >&5
11284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); } && {
11286 test -z "$ac_c_werror_flag" ||
11287 test ! -s conftest.err
11288 } && test -s conftest$ac_exeext && {
11289 test "$cross_compiling" = yes ||
11290 $as_test_x conftest$ac_exeext
11291 }; then
11292 ac_cv_func_dlopen=yes
11293 else
11294 $as_echo "$as_me: failed program was:" >&5
11295 sed 's/^/| /' conftest.$ac_ext >&5
11296
11297 ac_cv_func_dlopen=no
11298 fi
11299
11300 rm -rf conftest.dSYM
11301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11302 conftest$ac_exeext conftest.$ac_ext
11303 fi
11304 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11305 $as_echo "$ac_cv_func_dlopen" >&6; }
11306 if test "x$ac_cv_func_dlopen" = x""yes; then
11307 lt_cv_dlopen="dlopen"
11308 else
11309 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11310 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11311 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11312 $as_echo_n "(cached) " >&6
11313 else
11314 ac_check_lib_save_LIBS=$LIBS
11315 LIBS="-ldl $LIBS"
11316 cat >conftest.$ac_ext <<_ACEOF
11317 /* confdefs.h. */
11318 _ACEOF
11319 cat confdefs.h >>conftest.$ac_ext
11320 cat >>conftest.$ac_ext <<_ACEOF
11321 /* end confdefs.h. */
11322
11323 /* Override any GCC internal prototype to avoid an error.
11324 Use char because int might match the return type of a GCC
11325 builtin and then its argument prototype would still apply. */
11326 #ifdef __cplusplus
11327 extern "C"
11328 #endif
11329 char dlopen ();
11330 int
11331 main ()
11332 {
11333 return dlopen ();
11334 ;
11335 return 0;
11336 }
11337 _ACEOF
11338 rm -f conftest.$ac_objext conftest$ac_exeext
11339 if { (ac_try="$ac_link"
11340 case "(($ac_try" in
11341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11342 *) ac_try_echo=$ac_try;;
11343 esac
11344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11345 $as_echo "$ac_try_echo") >&5
11346 (eval "$ac_link") 2>conftest.er1
11347 ac_status=$?
11348 grep -v '^ *+' conftest.er1 >conftest.err
11349 rm -f conftest.er1
11350 cat conftest.err >&5
11351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); } && {
11353 test -z "$ac_c_werror_flag" ||
11354 test ! -s conftest.err
11355 } && test -s conftest$ac_exeext && {
11356 test "$cross_compiling" = yes ||
11357 $as_test_x conftest$ac_exeext
11358 }; then
11359 ac_cv_lib_dl_dlopen=yes
11360 else
11361 $as_echo "$as_me: failed program was:" >&5
11362 sed 's/^/| /' conftest.$ac_ext >&5
11363
11364 ac_cv_lib_dl_dlopen=no
11365 fi
11366
11367 rm -rf conftest.dSYM
11368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11369 conftest$ac_exeext conftest.$ac_ext
11370 LIBS=$ac_check_lib_save_LIBS
11371 fi
11372 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11373 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11374 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11375 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11376 else
11377 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11378 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11379 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11380 $as_echo_n "(cached) " >&6
11381 else
11382 ac_check_lib_save_LIBS=$LIBS
11383 LIBS="-lsvld $LIBS"
11384 cat >conftest.$ac_ext <<_ACEOF
11385 /* confdefs.h. */
11386 _ACEOF
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h. */
11390
11391 /* Override any GCC internal prototype to avoid an error.
11392 Use char because int might match the return type of a GCC
11393 builtin and then its argument prototype would still apply. */
11394 #ifdef __cplusplus
11395 extern "C"
11396 #endif
11397 char dlopen ();
11398 int
11399 main ()
11400 {
11401 return dlopen ();
11402 ;
11403 return 0;
11404 }
11405 _ACEOF
11406 rm -f conftest.$ac_objext conftest$ac_exeext
11407 if { (ac_try="$ac_link"
11408 case "(($ac_try" in
11409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11410 *) ac_try_echo=$ac_try;;
11411 esac
11412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11413 $as_echo "$ac_try_echo") >&5
11414 (eval "$ac_link") 2>conftest.er1
11415 ac_status=$?
11416 grep -v '^ *+' conftest.er1 >conftest.err
11417 rm -f conftest.er1
11418 cat conftest.err >&5
11419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); } && {
11421 test -z "$ac_c_werror_flag" ||
11422 test ! -s conftest.err
11423 } && test -s conftest$ac_exeext && {
11424 test "$cross_compiling" = yes ||
11425 $as_test_x conftest$ac_exeext
11426 }; then
11427 ac_cv_lib_svld_dlopen=yes
11428 else
11429 $as_echo "$as_me: failed program was:" >&5
11430 sed 's/^/| /' conftest.$ac_ext >&5
11431
11432 ac_cv_lib_svld_dlopen=no
11433 fi
11434
11435 rm -rf conftest.dSYM
11436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11437 conftest$ac_exeext conftest.$ac_ext
11438 LIBS=$ac_check_lib_save_LIBS
11439 fi
11440 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11441 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11442 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11443 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11444 else
11445 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11446 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11447 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11448 $as_echo_n "(cached) " >&6
11449 else
11450 ac_check_lib_save_LIBS=$LIBS
11451 LIBS="-ldld $LIBS"
11452 cat >conftest.$ac_ext <<_ACEOF
11453 /* confdefs.h. */
11454 _ACEOF
11455 cat confdefs.h >>conftest.$ac_ext
11456 cat >>conftest.$ac_ext <<_ACEOF
11457 /* end confdefs.h. */
11458
11459 /* Override any GCC internal prototype to avoid an error.
11460 Use char because int might match the return type of a GCC
11461 builtin and then its argument prototype would still apply. */
11462 #ifdef __cplusplus
11463 extern "C"
11464 #endif
11465 char dld_link ();
11466 int
11467 main ()
11468 {
11469 return dld_link ();
11470 ;
11471 return 0;
11472 }
11473 _ACEOF
11474 rm -f conftest.$ac_objext conftest$ac_exeext
11475 if { (ac_try="$ac_link"
11476 case "(($ac_try" in
11477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11478 *) ac_try_echo=$ac_try;;
11479 esac
11480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11481 $as_echo "$ac_try_echo") >&5
11482 (eval "$ac_link") 2>conftest.er1
11483 ac_status=$?
11484 grep -v '^ *+' conftest.er1 >conftest.err
11485 rm -f conftest.er1
11486 cat conftest.err >&5
11487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); } && {
11489 test -z "$ac_c_werror_flag" ||
11490 test ! -s conftest.err
11491 } && test -s conftest$ac_exeext && {
11492 test "$cross_compiling" = yes ||
11493 $as_test_x conftest$ac_exeext
11494 }; then
11495 ac_cv_lib_dld_dld_link=yes
11496 else
11497 $as_echo "$as_me: failed program was:" >&5
11498 sed 's/^/| /' conftest.$ac_ext >&5
11499
11500 ac_cv_lib_dld_dld_link=no
11501 fi
11502
11503 rm -rf conftest.dSYM
11504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11505 conftest$ac_exeext conftest.$ac_ext
11506 LIBS=$ac_check_lib_save_LIBS
11507 fi
11508 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11509 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11510 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11511 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11512 fi
11513
11514
11515 fi
11516
11517
11518 fi
11519
11520
11521 fi
11522
11523
11524 fi
11525
11526
11527 fi
11528
11529 ;;
11530 esac
11531
11532 if test "x$lt_cv_dlopen" != xno; then
11533 enable_dlopen=yes
11534 else
11535 enable_dlopen=no
11536 fi
11537
11538 case $lt_cv_dlopen in
11539 dlopen)
11540 save_CPPFLAGS="$CPPFLAGS"
11541 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11542
11543 save_LDFLAGS="$LDFLAGS"
11544 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11545
11546 save_LIBS="$LIBS"
11547 LIBS="$lt_cv_dlopen_libs $LIBS"
11548
11549 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11550 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11551 if test "${lt_cv_dlopen_self+set}" = set; then
11552 $as_echo_n "(cached) " >&6
11553 else
11554 if test "$cross_compiling" = yes; then :
11555 lt_cv_dlopen_self=cross
11556 else
11557 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11558 lt_status=$lt_dlunknown
11559 cat > conftest.$ac_ext <<_LT_EOF
11560 #line 11560 "configure"
11561 #include "confdefs.h"
11562
11563 #if HAVE_DLFCN_H
11564 #include <dlfcn.h>
11565 #endif
11566
11567 #include <stdio.h>
11568
11569 #ifdef RTLD_GLOBAL
11570 # define LT_DLGLOBAL RTLD_GLOBAL
11571 #else
11572 # ifdef DL_GLOBAL
11573 # define LT_DLGLOBAL DL_GLOBAL
11574 # else
11575 # define LT_DLGLOBAL 0
11576 # endif
11577 #endif
11578
11579 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11580 find out it does not work in some platform. */
11581 #ifndef LT_DLLAZY_OR_NOW
11582 # ifdef RTLD_LAZY
11583 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11584 # else
11585 # ifdef DL_LAZY
11586 # define LT_DLLAZY_OR_NOW DL_LAZY
11587 # else
11588 # ifdef RTLD_NOW
11589 # define LT_DLLAZY_OR_NOW RTLD_NOW
11590 # else
11591 # ifdef DL_NOW
11592 # define LT_DLLAZY_OR_NOW DL_NOW
11593 # else
11594 # define LT_DLLAZY_OR_NOW 0
11595 # endif
11596 # endif
11597 # endif
11598 # endif
11599 #endif
11600
11601 void fnord() { int i=42;}
11602 int main ()
11603 {
11604 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11605 int status = $lt_dlunknown;
11606
11607 if (self)
11608 {
11609 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11610 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11611 /* dlclose (self); */
11612 }
11613 else
11614 puts (dlerror ());
11615
11616 return status;
11617 }
11618 _LT_EOF
11619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11620 (eval $ac_link) 2>&5
11621 ac_status=$?
11622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11624 (./conftest; exit; ) >&5 2>/dev/null
11625 lt_status=$?
11626 case x$lt_status in
11627 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11628 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11629 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11630 esac
11631 else :
11632 # compilation failed
11633 lt_cv_dlopen_self=no
11634 fi
11635 fi
11636 rm -fr conftest*
11637
11638
11639 fi
11640 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11641 $as_echo "$lt_cv_dlopen_self" >&6; }
11642
11643 if test "x$lt_cv_dlopen_self" = xyes; then
11644 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11645 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11646 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11647 if test "${lt_cv_dlopen_self_static+set}" = set; then
11648 $as_echo_n "(cached) " >&6
11649 else
11650 if test "$cross_compiling" = yes; then :
11651 lt_cv_dlopen_self_static=cross
11652 else
11653 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11654 lt_status=$lt_dlunknown
11655 cat > conftest.$ac_ext <<_LT_EOF
11656 #line 11656 "configure"
11657 #include "confdefs.h"
11658
11659 #if HAVE_DLFCN_H
11660 #include <dlfcn.h>
11661 #endif
11662
11663 #include <stdio.h>
11664
11665 #ifdef RTLD_GLOBAL
11666 # define LT_DLGLOBAL RTLD_GLOBAL
11667 #else
11668 # ifdef DL_GLOBAL
11669 # define LT_DLGLOBAL DL_GLOBAL
11670 # else
11671 # define LT_DLGLOBAL 0
11672 # endif
11673 #endif
11674
11675 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11676 find out it does not work in some platform. */
11677 #ifndef LT_DLLAZY_OR_NOW
11678 # ifdef RTLD_LAZY
11679 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11680 # else
11681 # ifdef DL_LAZY
11682 # define LT_DLLAZY_OR_NOW DL_LAZY
11683 # else
11684 # ifdef RTLD_NOW
11685 # define LT_DLLAZY_OR_NOW RTLD_NOW
11686 # else
11687 # ifdef DL_NOW
11688 # define LT_DLLAZY_OR_NOW DL_NOW
11689 # else
11690 # define LT_DLLAZY_OR_NOW 0
11691 # endif
11692 # endif
11693 # endif
11694 # endif
11695 #endif
11696
11697 void fnord() { int i=42;}
11698 int main ()
11699 {
11700 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11701 int status = $lt_dlunknown;
11702
11703 if (self)
11704 {
11705 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11706 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11707 /* dlclose (self); */
11708 }
11709 else
11710 puts (dlerror ());
11711
11712 return status;
11713 }
11714 _LT_EOF
11715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11716 (eval $ac_link) 2>&5
11717 ac_status=$?
11718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11720 (./conftest; exit; ) >&5 2>/dev/null
11721 lt_status=$?
11722 case x$lt_status in
11723 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11724 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11725 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11726 esac
11727 else :
11728 # compilation failed
11729 lt_cv_dlopen_self_static=no
11730 fi
11731 fi
11732 rm -fr conftest*
11733
11734
11735 fi
11736 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11737 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11738 fi
11739
11740 CPPFLAGS="$save_CPPFLAGS"
11741 LDFLAGS="$save_LDFLAGS"
11742 LIBS="$save_LIBS"
11743 ;;
11744 esac
11745
11746 case $lt_cv_dlopen_self in
11747 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11748 *) enable_dlopen_self=unknown ;;
11749 esac
11750
11751 case $lt_cv_dlopen_self_static in
11752 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11753 *) enable_dlopen_self_static=unknown ;;
11754 esac
11755 fi
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773 striplib=
11774 old_striplib=
11775 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11776 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11777 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11778 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11779 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11780 { $as_echo "$as_me:$LINENO: result: yes" >&5
11781 $as_echo "yes" >&6; }
11782 else
11783 # FIXME - insert some real tests, host_os isn't really good enough
11784 case $host_os in
11785 darwin*)
11786 if test -n "$STRIP" ; then
11787 striplib="$STRIP -x"
11788 old_striplib="$STRIP -S"
11789 { $as_echo "$as_me:$LINENO: result: yes" >&5
11790 $as_echo "yes" >&6; }
11791 else
11792 { $as_echo "$as_me:$LINENO: result: no" >&5
11793 $as_echo "no" >&6; }
11794 fi
11795 ;;
11796 *)
11797 { $as_echo "$as_me:$LINENO: result: no" >&5
11798 $as_echo "no" >&6; }
11799 ;;
11800 esac
11801 fi
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814 # Report which library types will actually be built
11815 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11816 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11817 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11818 $as_echo "$can_build_shared" >&6; }
11819
11820 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11821 $as_echo_n "checking whether to build shared libraries... " >&6; }
11822 test "$can_build_shared" = "no" && enable_shared=no
11823
11824 # On AIX, shared libraries and static libraries use the same namespace, and
11825 # are all built from PIC.
11826 case $host_os in
11827 aix3*)
11828 test "$enable_shared" = yes && enable_static=no
11829 if test -n "$RANLIB"; then
11830 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11831 postinstall_cmds='$RANLIB $lib'
11832 fi
11833 ;;
11834
11835 aix[4-9]*)
11836 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11837 test "$enable_shared" = yes && enable_static=no
11838 fi
11839 ;;
11840 esac
11841 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11842 $as_echo "$enable_shared" >&6; }
11843
11844 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11845 $as_echo_n "checking whether to build static libraries... " >&6; }
11846 # Make sure either enable_shared or enable_static is yes.
11847 test "$enable_shared" = yes || enable_static=yes
11848 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11849 $as_echo "$enable_static" >&6; }
11850
11851
11852
11853
11854 fi
11855 ac_ext=c
11856 ac_cpp='$CPP $CPPFLAGS'
11857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11860
11861 CC="$lt_save_CC"
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875 ac_config_commands="$ac_config_commands libtool"
11876
11877
11878
11879
11880 # Only expand once:
11881
11882
11883 ac_ext=c
11884 ac_cpp='$CPP $CPPFLAGS'
11885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11888 if test -n "$ac_tool_prefix"; then
11889 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11890 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11891 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11892 $as_echo_n "checking for $ac_word... " >&6; }
11893 if test "${ac_cv_prog_CC+set}" = set; then
11894 $as_echo_n "(cached) " >&6
11895 else
11896 if test -n "$CC"; then
11897 ac_cv_prog_CC="$CC" # Let the user override the test.
11898 else
11899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11900 for as_dir in $PATH
11901 do
11902 IFS=$as_save_IFS
11903 test -z "$as_dir" && as_dir=.
11904 for ac_exec_ext in '' $ac_executable_extensions; do
11905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11906 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11907 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11908 break 2
11909 fi
11910 done
11911 done
11912 IFS=$as_save_IFS
11913
11914 fi
11915 fi
11916 CC=$ac_cv_prog_CC
11917 if test -n "$CC"; then
11918 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11919 $as_echo "$CC" >&6; }
11920 else
11921 { $as_echo "$as_me:$LINENO: result: no" >&5
11922 $as_echo "no" >&6; }
11923 fi
11924
11925
11926 fi
11927 if test -z "$ac_cv_prog_CC"; then
11928 ac_ct_CC=$CC
11929 # Extract the first word of "gcc", so it can be a program name with args.
11930 set dummy gcc; ac_word=$2
11931 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11932 $as_echo_n "checking for $ac_word... " >&6; }
11933 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11934 $as_echo_n "(cached) " >&6
11935 else
11936 if test -n "$ac_ct_CC"; then
11937 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11938 else
11939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11940 for as_dir in $PATH
11941 do
11942 IFS=$as_save_IFS
11943 test -z "$as_dir" && as_dir=.
11944 for ac_exec_ext in '' $ac_executable_extensions; do
11945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11946 ac_cv_prog_ac_ct_CC="gcc"
11947 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11948 break 2
11949 fi
11950 done
11951 done
11952 IFS=$as_save_IFS
11953
11954 fi
11955 fi
11956 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11957 if test -n "$ac_ct_CC"; then
11958 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11959 $as_echo "$ac_ct_CC" >&6; }
11960 else
11961 { $as_echo "$as_me:$LINENO: result: no" >&5
11962 $as_echo "no" >&6; }
11963 fi
11964
11965 if test "x$ac_ct_CC" = x; then
11966 CC=""
11967 else
11968 case $cross_compiling:$ac_tool_warned in
11969 yes:)
11970 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11972 ac_tool_warned=yes ;;
11973 esac
11974 CC=$ac_ct_CC
11975 fi
11976 else
11977 CC="$ac_cv_prog_CC"
11978 fi
11979
11980 if test -z "$CC"; then
11981 if test -n "$ac_tool_prefix"; then
11982 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11983 set dummy ${ac_tool_prefix}cc; ac_word=$2
11984 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11985 $as_echo_n "checking for $ac_word... " >&6; }
11986 if test "${ac_cv_prog_CC+set}" = set; then
11987 $as_echo_n "(cached) " >&6
11988 else
11989 if test -n "$CC"; then
11990 ac_cv_prog_CC="$CC" # Let the user override the test.
11991 else
11992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11993 for as_dir in $PATH
11994 do
11995 IFS=$as_save_IFS
11996 test -z "$as_dir" && as_dir=.
11997 for ac_exec_ext in '' $ac_executable_extensions; do
11998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11999 ac_cv_prog_CC="${ac_tool_prefix}cc"
12000 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12001 break 2
12002 fi
12003 done
12004 done
12005 IFS=$as_save_IFS
12006
12007 fi
12008 fi
12009 CC=$ac_cv_prog_CC
12010 if test -n "$CC"; then
12011 { $as_echo "$as_me:$LINENO: result: $CC" >&5
12012 $as_echo "$CC" >&6; }
12013 else
12014 { $as_echo "$as_me:$LINENO: result: no" >&5
12015 $as_echo "no" >&6; }
12016 fi
12017
12018
12019 fi
12020 fi
12021 if test -z "$CC"; then
12022 # Extract the first word of "cc", so it can be a program name with args.
12023 set dummy cc; ac_word=$2
12024 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12025 $as_echo_n "checking for $ac_word... " >&6; }
12026 if test "${ac_cv_prog_CC+set}" = set; then
12027 $as_echo_n "(cached) " >&6
12028 else
12029 if test -n "$CC"; then
12030 ac_cv_prog_CC="$CC" # Let the user override the test.
12031 else
12032 ac_prog_rejected=no
12033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12034 for as_dir in $PATH
12035 do
12036 IFS=$as_save_IFS
12037 test -z "$as_dir" && as_dir=.
12038 for ac_exec_ext in '' $ac_executable_extensions; do
12039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12040 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12041 ac_prog_rejected=yes
12042 continue
12043 fi
12044 ac_cv_prog_CC="cc"
12045 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12046 break 2
12047 fi
12048 done
12049 done
12050 IFS=$as_save_IFS
12051
12052 if test $ac_prog_rejected = yes; then
12053 # We found a bogon in the path, so make sure we never use it.
12054 set dummy $ac_cv_prog_CC
12055 shift
12056 if test $# != 0; then
12057 # We chose a different compiler from the bogus one.
12058 # However, it has the same basename, so the bogon will be chosen
12059 # first if we set CC to just the basename; use the full file name.
12060 shift
12061 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12062 fi
12063 fi
12064 fi
12065 fi
12066 CC=$ac_cv_prog_CC
12067 if test -n "$CC"; then
12068 { $as_echo "$as_me:$LINENO: result: $CC" >&5
12069 $as_echo "$CC" >&6; }
12070 else
12071 { $as_echo "$as_me:$LINENO: result: no" >&5
12072 $as_echo "no" >&6; }
12073 fi
12074
12075
12076 fi
12077 if test -z "$CC"; then
12078 if test -n "$ac_tool_prefix"; then
12079 for ac_prog in cl.exe
12080 do
12081 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12082 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12083 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12084 $as_echo_n "checking for $ac_word... " >&6; }
12085 if test "${ac_cv_prog_CC+set}" = set; then
12086 $as_echo_n "(cached) " >&6
12087 else
12088 if test -n "$CC"; then
12089 ac_cv_prog_CC="$CC" # Let the user override the test.
12090 else
12091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12092 for as_dir in $PATH
12093 do
12094 IFS=$as_save_IFS
12095 test -z "$as_dir" && as_dir=.
12096 for ac_exec_ext in '' $ac_executable_extensions; do
12097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12098 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12099 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12100 break 2
12101 fi
12102 done
12103 done
12104 IFS=$as_save_IFS
12105
12106 fi
12107 fi
12108 CC=$ac_cv_prog_CC
12109 if test -n "$CC"; then
12110 { $as_echo "$as_me:$LINENO: result: $CC" >&5
12111 $as_echo "$CC" >&6; }
12112 else
12113 { $as_echo "$as_me:$LINENO: result: no" >&5
12114 $as_echo "no" >&6; }
12115 fi
12116
12117
12118 test -n "$CC" && break
12119 done
12120 fi
12121 if test -z "$CC"; then
12122 ac_ct_CC=$CC
12123 for ac_prog in cl.exe
12124 do
12125 # Extract the first word of "$ac_prog", so it can be a program name with args.
12126 set dummy $ac_prog; ac_word=$2
12127 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12128 $as_echo_n "checking for $ac_word... " >&6; }
12129 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12130 $as_echo_n "(cached) " >&6
12131 else
12132 if test -n "$ac_ct_CC"; then
12133 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12134 else
12135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12136 for as_dir in $PATH
12137 do
12138 IFS=$as_save_IFS
12139 test -z "$as_dir" && as_dir=.
12140 for ac_exec_ext in '' $ac_executable_extensions; do
12141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12142 ac_cv_prog_ac_ct_CC="$ac_prog"
12143 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12144 break 2
12145 fi
12146 done
12147 done
12148 IFS=$as_save_IFS
12149
12150 fi
12151 fi
12152 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12153 if test -n "$ac_ct_CC"; then
12154 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12155 $as_echo "$ac_ct_CC" >&6; }
12156 else
12157 { $as_echo "$as_me:$LINENO: result: no" >&5
12158 $as_echo "no" >&6; }
12159 fi
12160
12161
12162 test -n "$ac_ct_CC" && break
12163 done
12164
12165 if test "x$ac_ct_CC" = x; then
12166 CC=""
12167 else
12168 case $cross_compiling:$ac_tool_warned in
12169 yes:)
12170 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12172 ac_tool_warned=yes ;;
12173 esac
12174 CC=$ac_ct_CC
12175 fi
12176 fi
12177
12178 fi
12179
12180
12181 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12183 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12184 See \`config.log' for more details." >&5
12185 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
12186 See \`config.log' for more details." >&2;}
12187 { (exit 1); exit 1; }; }; }
12188
12189 # Provide some information about the compiler.
12190 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
12191 set X $ac_compile
12192 ac_compiler=$2
12193 { (ac_try="$ac_compiler --version >&5"
12194 case "(($ac_try" in
12195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12196 *) ac_try_echo=$ac_try;;
12197 esac
12198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12199 $as_echo "$ac_try_echo") >&5
12200 (eval "$ac_compiler --version >&5") 2>&5
12201 ac_status=$?
12202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); }
12204 { (ac_try="$ac_compiler -v >&5"
12205 case "(($ac_try" in
12206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12207 *) ac_try_echo=$ac_try;;
12208 esac
12209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12210 $as_echo "$ac_try_echo") >&5
12211 (eval "$ac_compiler -v >&5") 2>&5
12212 ac_status=$?
12213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); }
12215 { (ac_try="$ac_compiler -V >&5"
12216 case "(($ac_try" in
12217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12218 *) ac_try_echo=$ac_try;;
12219 esac
12220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12221 $as_echo "$ac_try_echo") >&5
12222 (eval "$ac_compiler -V >&5") 2>&5
12223 ac_status=$?
12224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); }
12226
12227 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12228 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12229 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12230 $as_echo_n "(cached) " >&6
12231 else
12232 cat >conftest.$ac_ext <<_ACEOF
12233 /* confdefs.h. */
12234 _ACEOF
12235 cat confdefs.h >>conftest.$ac_ext
12236 cat >>conftest.$ac_ext <<_ACEOF
12237 /* end confdefs.h. */
12238
12239 int
12240 main ()
12241 {
12242 #ifndef __GNUC__
12243 choke me
12244 #endif
12245
12246 ;
12247 return 0;
12248 }
12249 _ACEOF
12250 rm -f conftest.$ac_objext
12251 if { (ac_try="$ac_compile"
12252 case "(($ac_try" in
12253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12254 *) ac_try_echo=$ac_try;;
12255 esac
12256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12257 $as_echo "$ac_try_echo") >&5
12258 (eval "$ac_compile") 2>conftest.er1
12259 ac_status=$?
12260 grep -v '^ *+' conftest.er1 >conftest.err
12261 rm -f conftest.er1
12262 cat conftest.err >&5
12263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); } && {
12265 test -z "$ac_c_werror_flag" ||
12266 test ! -s conftest.err
12267 } && test -s conftest.$ac_objext; then
12268 ac_compiler_gnu=yes
12269 else
12270 $as_echo "$as_me: failed program was:" >&5
12271 sed 's/^/| /' conftest.$ac_ext >&5
12272
12273 ac_compiler_gnu=no
12274 fi
12275
12276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12277 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12278
12279 fi
12280 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12281 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12282 if test $ac_compiler_gnu = yes; then
12283 GCC=yes
12284 else
12285 GCC=
12286 fi
12287 ac_test_CFLAGS=${CFLAGS+set}
12288 ac_save_CFLAGS=$CFLAGS
12289 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12290 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12291 if test "${ac_cv_prog_cc_g+set}" = set; then
12292 $as_echo_n "(cached) " >&6
12293 else
12294 ac_save_c_werror_flag=$ac_c_werror_flag
12295 ac_c_werror_flag=yes
12296 ac_cv_prog_cc_g=no
12297 CFLAGS="-g"
12298 cat >conftest.$ac_ext <<_ACEOF
12299 /* confdefs.h. */
12300 _ACEOF
12301 cat confdefs.h >>conftest.$ac_ext
12302 cat >>conftest.$ac_ext <<_ACEOF
12303 /* end confdefs.h. */
12304
12305 int
12306 main ()
12307 {
12308
12309 ;
12310 return 0;
12311 }
12312 _ACEOF
12313 rm -f conftest.$ac_objext
12314 if { (ac_try="$ac_compile"
12315 case "(($ac_try" in
12316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12317 *) ac_try_echo=$ac_try;;
12318 esac
12319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12320 $as_echo "$ac_try_echo") >&5
12321 (eval "$ac_compile") 2>conftest.er1
12322 ac_status=$?
12323 grep -v '^ *+' conftest.er1 >conftest.err
12324 rm -f conftest.er1
12325 cat conftest.err >&5
12326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); } && {
12328 test -z "$ac_c_werror_flag" ||
12329 test ! -s conftest.err
12330 } && test -s conftest.$ac_objext; then
12331 ac_cv_prog_cc_g=yes
12332 else
12333 $as_echo "$as_me: failed program was:" >&5
12334 sed 's/^/| /' conftest.$ac_ext >&5
12335
12336 CFLAGS=""
12337 cat >conftest.$ac_ext <<_ACEOF
12338 /* confdefs.h. */
12339 _ACEOF
12340 cat confdefs.h >>conftest.$ac_ext
12341 cat >>conftest.$ac_ext <<_ACEOF
12342 /* end confdefs.h. */
12343
12344 int
12345 main ()
12346 {
12347
12348 ;
12349 return 0;
12350 }
12351 _ACEOF
12352 rm -f conftest.$ac_objext
12353 if { (ac_try="$ac_compile"
12354 case "(($ac_try" in
12355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12356 *) ac_try_echo=$ac_try;;
12357 esac
12358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12359 $as_echo "$ac_try_echo") >&5
12360 (eval "$ac_compile") 2>conftest.er1
12361 ac_status=$?
12362 grep -v '^ *+' conftest.er1 >conftest.err
12363 rm -f conftest.er1
12364 cat conftest.err >&5
12365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); } && {
12367 test -z "$ac_c_werror_flag" ||
12368 test ! -s conftest.err
12369 } && test -s conftest.$ac_objext; then
12370 :
12371 else
12372 $as_echo "$as_me: failed program was:" >&5
12373 sed 's/^/| /' conftest.$ac_ext >&5
12374
12375 ac_c_werror_flag=$ac_save_c_werror_flag
12376 CFLAGS="-g"
12377 cat >conftest.$ac_ext <<_ACEOF
12378 /* confdefs.h. */
12379 _ACEOF
12380 cat confdefs.h >>conftest.$ac_ext
12381 cat >>conftest.$ac_ext <<_ACEOF
12382 /* end confdefs.h. */
12383
12384 int
12385 main ()
12386 {
12387
12388 ;
12389 return 0;
12390 }
12391 _ACEOF
12392 rm -f conftest.$ac_objext
12393 if { (ac_try="$ac_compile"
12394 case "(($ac_try" in
12395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396 *) ac_try_echo=$ac_try;;
12397 esac
12398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12399 $as_echo "$ac_try_echo") >&5
12400 (eval "$ac_compile") 2>conftest.er1
12401 ac_status=$?
12402 grep -v '^ *+' conftest.er1 >conftest.err
12403 rm -f conftest.er1
12404 cat conftest.err >&5
12405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); } && {
12407 test -z "$ac_c_werror_flag" ||
12408 test ! -s conftest.err
12409 } && test -s conftest.$ac_objext; then
12410 ac_cv_prog_cc_g=yes
12411 else
12412 $as_echo "$as_me: failed program was:" >&5
12413 sed 's/^/| /' conftest.$ac_ext >&5
12414
12415
12416 fi
12417
12418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12419 fi
12420
12421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12422 fi
12423
12424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12425 ac_c_werror_flag=$ac_save_c_werror_flag
12426 fi
12427 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12428 $as_echo "$ac_cv_prog_cc_g" >&6; }
12429 if test "$ac_test_CFLAGS" = set; then
12430 CFLAGS=$ac_save_CFLAGS
12431 elif test $ac_cv_prog_cc_g = yes; then
12432 if test "$GCC" = yes; then
12433 CFLAGS="-g -O2"
12434 else
12435 CFLAGS="-g"
12436 fi
12437 else
12438 if test "$GCC" = yes; then
12439 CFLAGS="-O2"
12440 else
12441 CFLAGS=
12442 fi
12443 fi
12444 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
12445 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12446 if test "${ac_cv_prog_cc_c89+set}" = set; then
12447 $as_echo_n "(cached) " >&6
12448 else
12449 ac_cv_prog_cc_c89=no
12450 ac_save_CC=$CC
12451 cat >conftest.$ac_ext <<_ACEOF
12452 /* confdefs.h. */
12453 _ACEOF
12454 cat confdefs.h >>conftest.$ac_ext
12455 cat >>conftest.$ac_ext <<_ACEOF
12456 /* end confdefs.h. */
12457 #include <stdarg.h>
12458 #include <stdio.h>
12459 #include <sys/types.h>
12460 #include <sys/stat.h>
12461 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12462 struct buf { int x; };
12463 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12464 static char *e (p, i)
12465 char **p;
12466 int i;
12467 {
12468 return p[i];
12469 }
12470 static char *f (char * (*g) (char **, int), char **p, ...)
12471 {
12472 char *s;
12473 va_list v;
12474 va_start (v,p);
12475 s = g (p, va_arg (v,int));
12476 va_end (v);
12477 return s;
12478 }
12479
12480 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12481 function prototypes and stuff, but not '\xHH' hex character constants.
12482 These don't provoke an error unfortunately, instead are silently treated
12483 as 'x'. The following induces an error, until -std is added to get
12484 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12485 array size at least. It's necessary to write '\x00'==0 to get something
12486 that's true only with -std. */
12487 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12488
12489 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12490 inside strings and character constants. */
12491 #define FOO(x) 'x'
12492 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12493
12494 int test (int i, double x);
12495 struct s1 {int (*f) (int a);};
12496 struct s2 {int (*f) (double a);};
12497 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12498 int argc;
12499 char **argv;
12500 int
12501 main ()
12502 {
12503 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12504 ;
12505 return 0;
12506 }
12507 _ACEOF
12508 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12509 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12510 do
12511 CC="$ac_save_CC $ac_arg"
12512 rm -f conftest.$ac_objext
12513 if { (ac_try="$ac_compile"
12514 case "(($ac_try" in
12515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12516 *) ac_try_echo=$ac_try;;
12517 esac
12518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12519 $as_echo "$ac_try_echo") >&5
12520 (eval "$ac_compile") 2>conftest.er1
12521 ac_status=$?
12522 grep -v '^ *+' conftest.er1 >conftest.err
12523 rm -f conftest.er1
12524 cat conftest.err >&5
12525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); } && {
12527 test -z "$ac_c_werror_flag" ||
12528 test ! -s conftest.err
12529 } && test -s conftest.$ac_objext; then
12530 ac_cv_prog_cc_c89=$ac_arg
12531 else
12532 $as_echo "$as_me: failed program was:" >&5
12533 sed 's/^/| /' conftest.$ac_ext >&5
12534
12535
12536 fi
12537
12538 rm -f core conftest.err conftest.$ac_objext
12539 test "x$ac_cv_prog_cc_c89" != "xno" && break
12540 done
12541 rm -f conftest.$ac_ext
12542 CC=$ac_save_CC
12543
12544 fi
12545 # AC_CACHE_VAL
12546 case "x$ac_cv_prog_cc_c89" in
12547 x)
12548 { $as_echo "$as_me:$LINENO: result: none needed" >&5
12549 $as_echo "none needed" >&6; } ;;
12550 xno)
12551 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
12552 $as_echo "unsupported" >&6; } ;;
12553 *)
12554 CC="$CC $ac_cv_prog_cc_c89"
12555 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
12556 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12557 esac
12558
12559
12560 ac_ext=c
12561 ac_cpp='$CPP $CPPFLAGS'
12562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12565
12566
12567
12568
12569
12570
12571 # Check whether --with-xorg-module-dir was given.
12572 if test "${with_xorg_module_dir+set}" = set; then
12573 withval=$with_xorg_module_dir; moduledir="$withval"
12574 else
12575 moduledir="$libdir/xorg/modules"
12576 fi
12577
12578
12579 # Check whether --enable-dri was given.
12580 if test "${enable_dri+set}" = set; then
12581 enableval=$enable_dri; DRI="$enableval"
12582 else
12583 DRI=auto
12584 fi
12585
12586 # Check whether --enable-exa was given.
12587 if test "${enable_exa+set}" = set; then
12588 enableval=$enable_exa; EXA="$enableval"
12589 else
12590 EXA=yes
12591 fi
12592
12593
12594 # Checks for extensions
12595
12596 SAVE_CFLAGS="$CFLAGS"
12597 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12598 cat >conftest.$ac_ext <<_ACEOF
12599 /* confdefs.h. */
12600 _ACEOF
12601 cat confdefs.h >>conftest.$ac_ext
12602 cat >>conftest.$ac_ext <<_ACEOF
12603 /* end confdefs.h. */
12604
12605 #include "xorg-server.h"
12606 #if !defined RANDR
12607 #error RANDR not defined
12608 #endif
12609
12610 int
12611 main ()
12612 {
12613
12614 ;
12615 return 0;
12616 }
12617 _ACEOF
12618 rm -f conftest.$ac_objext
12619 if { (ac_try="$ac_compile"
12620 case "(($ac_try" in
12621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12622 *) ac_try_echo=$ac_try;;
12623 esac
12624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12625 $as_echo "$ac_try_echo") >&5
12626 (eval "$ac_compile") 2>conftest.er1
12627 ac_status=$?
12628 grep -v '^ *+' conftest.er1 >conftest.err
12629 rm -f conftest.er1
12630 cat conftest.err >&5
12631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); } && {
12633 test -z "$ac_c_werror_flag" ||
12634 test ! -s conftest.err
12635 } && test -s conftest.$ac_objext; then
12636 _EXT_CHECK=yes
12637 else
12638 $as_echo "$as_me: failed program was:" >&5
12639 sed 's/^/| /' conftest.$ac_ext >&5
12640
12641 _EXT_CHECK=no
12642 fi
12643
12644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12645 CFLAGS="$SAVE_CFLAGS"
12646 { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5
12647 $as_echo_n "checking if RANDR is defined... " >&6; }
12648 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12649 $as_echo "$_EXT_CHECK" >&6; }
12650 if test "$_EXT_CHECK" != no; then
12651 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
12652 fi
12653
12654
12655 SAVE_CFLAGS="$CFLAGS"
12656 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12657 cat >conftest.$ac_ext <<_ACEOF
12658 /* confdefs.h. */
12659 _ACEOF
12660 cat confdefs.h >>conftest.$ac_ext
12661 cat >>conftest.$ac_ext <<_ACEOF
12662 /* end confdefs.h. */
12663
12664 #include "xorg-server.h"
12665 #if !defined RENDER
12666 #error RENDER not defined
12667 #endif
12668
12669 int
12670 main ()
12671 {
12672
12673 ;
12674 return 0;
12675 }
12676 _ACEOF
12677 rm -f conftest.$ac_objext
12678 if { (ac_try="$ac_compile"
12679 case "(($ac_try" in
12680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12681 *) ac_try_echo=$ac_try;;
12682 esac
12683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12684 $as_echo "$ac_try_echo") >&5
12685 (eval "$ac_compile") 2>conftest.er1
12686 ac_status=$?
12687 grep -v '^ *+' conftest.er1 >conftest.err
12688 rm -f conftest.er1
12689 cat conftest.err >&5
12690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); } && {
12692 test -z "$ac_c_werror_flag" ||
12693 test ! -s conftest.err
12694 } && test -s conftest.$ac_objext; then
12695 _EXT_CHECK=yes
12696 else
12697 $as_echo "$as_me: failed program was:" >&5
12698 sed 's/^/| /' conftest.$ac_ext >&5
12699
12700 _EXT_CHECK=no
12701 fi
12702
12703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12704 CFLAGS="$SAVE_CFLAGS"
12705 { $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5
12706 $as_echo_n "checking if RENDER is defined... " >&6; }
12707 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12708 $as_echo "$_EXT_CHECK" >&6; }
12709 if test "$_EXT_CHECK" != no; then
12710 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
12711 fi
12712
12713
12714 SAVE_CFLAGS="$CFLAGS"
12715 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12716 cat >conftest.$ac_ext <<_ACEOF
12717 /* confdefs.h. */
12718 _ACEOF
12719 cat confdefs.h >>conftest.$ac_ext
12720 cat >>conftest.$ac_ext <<_ACEOF
12721 /* end confdefs.h. */
12722
12723 #include "xorg-server.h"
12724 #if !defined XV
12725 #error XV not defined
12726 #endif
12727
12728 int
12729 main ()
12730 {
12731
12732 ;
12733 return 0;
12734 }
12735 _ACEOF
12736 rm -f conftest.$ac_objext
12737 if { (ac_try="$ac_compile"
12738 case "(($ac_try" in
12739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12740 *) ac_try_echo=$ac_try;;
12741 esac
12742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12743 $as_echo "$ac_try_echo") >&5
12744 (eval "$ac_compile") 2>conftest.er1
12745 ac_status=$?
12746 grep -v '^ *+' conftest.er1 >conftest.err
12747 rm -f conftest.er1
12748 cat conftest.err >&5
12749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); } && {
12751 test -z "$ac_c_werror_flag" ||
12752 test ! -s conftest.err
12753 } && test -s conftest.$ac_objext; then
12754 _EXT_CHECK=yes
12755 else
12756 $as_echo "$as_me: failed program was:" >&5
12757 sed 's/^/| /' conftest.$ac_ext >&5
12758
12759 _EXT_CHECK=no
12760 fi
12761
12762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12763 CFLAGS="$SAVE_CFLAGS"
12764 { $as_echo "$as_me:$LINENO: checking if XV is defined" >&5
12765 $as_echo_n "checking if XV is defined... " >&6; }
12766 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12767 $as_echo "$_EXT_CHECK" >&6; }
12768 if test "$_EXT_CHECK" != no; then
12769 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
12770 fi
12771
12772
12773 SAVE_CFLAGS="$CFLAGS"
12774 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12775 cat >conftest.$ac_ext <<_ACEOF
12776 /* confdefs.h. */
12777 _ACEOF
12778 cat confdefs.h >>conftest.$ac_ext
12779 cat >>conftest.$ac_ext <<_ACEOF
12780 /* end confdefs.h. */
12781
12782 #include "xorg-server.h"
12783 #if !defined DPMSExtension
12784 #error DPMSExtension not defined
12785 #endif
12786
12787 int
12788 main ()
12789 {
12790
12791 ;
12792 return 0;
12793 }
12794 _ACEOF
12795 rm -f conftest.$ac_objext
12796 if { (ac_try="$ac_compile"
12797 case "(($ac_try" in
12798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12799 *) ac_try_echo=$ac_try;;
12800 esac
12801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12802 $as_echo "$ac_try_echo") >&5
12803 (eval "$ac_compile") 2>conftest.er1
12804 ac_status=$?
12805 grep -v '^ *+' conftest.er1 >conftest.err
12806 rm -f conftest.er1
12807 cat conftest.err >&5
12808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 (exit $ac_status); } && {
12810 test -z "$ac_c_werror_flag" ||
12811 test ! -s conftest.err
12812 } && test -s conftest.$ac_objext; then
12813 _EXT_CHECK=yes
12814 else
12815 $as_echo "$as_me: failed program was:" >&5
12816 sed 's/^/| /' conftest.$ac_ext >&5
12817
12818 _EXT_CHECK=no
12819 fi
12820
12821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12822 CFLAGS="$SAVE_CFLAGS"
12823 { $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
12824 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
12825 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12826 $as_echo "$_EXT_CHECK" >&6; }
12827 if test "$_EXT_CHECK" != no; then
12828 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
12829 fi
12830
12831
12832 # Checks for pkg-config packages
12833
12834 pkg_failed=no
12835 { $as_echo "$as_me:$LINENO: checking for XORG" >&5
12836 $as_echo_n "checking for XORG... " >&6; }
12837
12838 if test -n "$XORG_CFLAGS"; then
12839 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
12840 elif test -n "$PKG_CONFIG"; then
12841 if test -n "$PKG_CONFIG" && \
12842 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\"") >&5
12843 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5
12844 ac_status=$?
12845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); }; then
12847 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
12848 else
12849 pkg_failed=yes
12850 fi
12851 else
12852 pkg_failed=untried
12853 fi
12854 if test -n "$XORG_LIBS"; then
12855 pkg_cv_XORG_LIBS="$XORG_LIBS"
12856 elif test -n "$PKG_CONFIG"; then
12857 if test -n "$PKG_CONFIG" && \
12858 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\"") >&5
12859 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5
12860 ac_status=$?
12861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); }; then
12863 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
12864 else
12865 pkg_failed=yes
12866 fi
12867 else
12868 pkg_failed=untried
12869 fi
12870
12871
12872
12873 if test $pkg_failed = yes; then
12874
12875 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12876 _pkg_short_errors_supported=yes
12877 else
12878 _pkg_short_errors_supported=no
12879 fi
12880 if test $_pkg_short_errors_supported = yes; then
12881 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1`
12882 else
12883 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1`
12884 fi
12885 # Put the nasty error message in config.log where it belongs
12886 echo "$XORG_PKG_ERRORS" >&5
12887
12888 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES) were not met:
12889
12890 $XORG_PKG_ERRORS
12891
12892 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12893 installed software in a non-standard prefix.
12894
12895 Alternatively, you may set the environment variables XORG_CFLAGS
12896 and XORG_LIBS to avoid the need to call pkg-config.
12897 See the pkg-config man page for more details.
12898 " >&5
12899 $as_echo "$as_me: error: Package requirements (xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES) were not met:
12900
12901 $XORG_PKG_ERRORS
12902
12903 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12904 installed software in a non-standard prefix.
12905
12906 Alternatively, you may set the environment variables XORG_CFLAGS
12907 and XORG_LIBS to avoid the need to call pkg-config.
12908 See the pkg-config man page for more details.
12909 " >&2;}
12910 { (exit 1); exit 1; }; }
12911 elif test $pkg_failed = untried; then
12912 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12913 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12914 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12915 is in your PATH or set the PKG_CONFIG environment variable to the full
12916 path to pkg-config.
12917
12918 Alternatively, you may set the environment variables XORG_CFLAGS
12919 and XORG_LIBS to avoid the need to call pkg-config.
12920 See the pkg-config man page for more details.
12921
12922 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12923 See \`config.log' for more details." >&5
12924 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12925 is in your PATH or set the PKG_CONFIG environment variable to the full
12926 path to pkg-config.
12927
12928 Alternatively, you may set the environment variables XORG_CFLAGS
12929 and XORG_LIBS to avoid the need to call pkg-config.
12930 See the pkg-config man page for more details.
12931
12932 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12933 See \`config.log' for more details." >&2;}
12934 { (exit 1); exit 1; }; }; }
12935 else
12936 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
12937 XORG_LIBS=$pkg_cv_XORG_LIBS
12938 { $as_echo "$as_me:$LINENO: result: yes" >&5
12939 $as_echo "yes" >&6; }
12940 :
12941 fi
12942 sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
12943
12944 # Checks for libraries.
12945
12946 # Checks for header files.
12947 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12948 $as_echo_n "checking for ANSI C header files... " >&6; }
12949 if test "${ac_cv_header_stdc+set}" = set; then
12950 $as_echo_n "(cached) " >&6
12951 else
12952 cat >conftest.$ac_ext <<_ACEOF
12953 /* confdefs.h. */
12954 _ACEOF
12955 cat confdefs.h >>conftest.$ac_ext
12956 cat >>conftest.$ac_ext <<_ACEOF
12957 /* end confdefs.h. */
12958 #include <stdlib.h>
12959 #include <stdarg.h>
12960 #include <string.h>
12961 #include <float.h>
12962
12963 int
12964 main ()
12965 {
12966
12967 ;
12968 return 0;
12969 }
12970 _ACEOF
12971 rm -f conftest.$ac_objext
12972 if { (ac_try="$ac_compile"
12973 case "(($ac_try" in
12974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12975 *) ac_try_echo=$ac_try;;
12976 esac
12977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12978 $as_echo "$ac_try_echo") >&5
12979 (eval "$ac_compile") 2>conftest.er1
12980 ac_status=$?
12981 grep -v '^ *+' conftest.er1 >conftest.err
12982 rm -f conftest.er1
12983 cat conftest.err >&5
12984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); } && {
12986 test -z "$ac_c_werror_flag" ||
12987 test ! -s conftest.err
12988 } && test -s conftest.$ac_objext; then
12989 ac_cv_header_stdc=yes
12990 else
12991 $as_echo "$as_me: failed program was:" >&5
12992 sed 's/^/| /' conftest.$ac_ext >&5
12993
12994 ac_cv_header_stdc=no
12995 fi
12996
12997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12998
12999 if test $ac_cv_header_stdc = yes; then
13000 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13001 cat >conftest.$ac_ext <<_ACEOF
13002 /* confdefs.h. */
13003 _ACEOF
13004 cat confdefs.h >>conftest.$ac_ext
13005 cat >>conftest.$ac_ext <<_ACEOF
13006 /* end confdefs.h. */
13007 #include <string.h>
13008
13009 _ACEOF
13010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13011 $EGREP "memchr" >/dev/null 2>&1; then
13012 :
13013 else
13014 ac_cv_header_stdc=no
13015 fi
13016 rm -f conftest*
13017
13018 fi
13019
13020 if test $ac_cv_header_stdc = yes; then
13021 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13022 cat >conftest.$ac_ext <<_ACEOF
13023 /* confdefs.h. */
13024 _ACEOF
13025 cat confdefs.h >>conftest.$ac_ext
13026 cat >>conftest.$ac_ext <<_ACEOF
13027 /* end confdefs.h. */
13028 #include <stdlib.h>
13029
13030 _ACEOF
13031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13032 $EGREP "free" >/dev/null 2>&1; then
13033 :
13034 else
13035 ac_cv_header_stdc=no
13036 fi
13037 rm -f conftest*
13038
13039 fi
13040
13041 if test $ac_cv_header_stdc = yes; then
13042 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13043 if test "$cross_compiling" = yes; then
13044 :
13045 else
13046 cat >conftest.$ac_ext <<_ACEOF
13047 /* confdefs.h. */
13048 _ACEOF
13049 cat confdefs.h >>conftest.$ac_ext
13050 cat >>conftest.$ac_ext <<_ACEOF
13051 /* end confdefs.h. */
13052 #include <ctype.h>
13053 #include <stdlib.h>
13054 #if ((' ' & 0x0FF) == 0x020)
13055 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13056 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13057 #else
13058 # define ISLOWER(c) \
13059 (('a' <= (c) && (c) <= 'i') \
13060 || ('j' <= (c) && (c) <= 'r') \
13061 || ('s' <= (c) && (c) <= 'z'))
13062 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13063 #endif
13064
13065 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13066 int
13067 main ()
13068 {
13069 int i;
13070 for (i = 0; i < 256; i++)
13071 if (XOR (islower (i), ISLOWER (i))
13072 || toupper (i) != TOUPPER (i))
13073 return 2;
13074 return 0;
13075 }
13076 _ACEOF
13077 rm -f conftest$ac_exeext
13078 if { (ac_try="$ac_link"
13079 case "(($ac_try" in
13080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13081 *) ac_try_echo=$ac_try;;
13082 esac
13083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13084 $as_echo "$ac_try_echo") >&5
13085 (eval "$ac_link") 2>&5
13086 ac_status=$?
13087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13089 { (case "(($ac_try" in
13090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13091 *) ac_try_echo=$ac_try;;
13092 esac
13093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13094 $as_echo "$ac_try_echo") >&5
13095 (eval "$ac_try") 2>&5
13096 ac_status=$?
13097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); }; }; then
13099 :
13100 else
13101 $as_echo "$as_me: program exited with status $ac_status" >&5
13102 $as_echo "$as_me: failed program was:" >&5
13103 sed 's/^/| /' conftest.$ac_ext >&5
13104
13105 ( exit $ac_status )
13106 ac_cv_header_stdc=no
13107 fi
13108 rm -rf conftest.dSYM
13109 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13110 fi
13111
13112
13113 fi
13114 fi
13115 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13116 $as_echo "$ac_cv_header_stdc" >&6; }
13117 if test $ac_cv_header_stdc = yes; then
13118
13119 cat >>confdefs.h <<\_ACEOF
13120 #define STDC_HEADERS 1
13121 _ACEOF
13122
13123 fi
13124
13125
13126 if test "x$DRI" != xno; then
13127 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
13128 { $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dri.h" >&5
13129 $as_echo_n "checking for ${sdkdir}/dri.h... " >&6; }
13130 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
13131 $as_echo_n "(cached) " >&6
13132 else
13133 test "$cross_compiling" = yes &&
13134 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
13135 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
13136 { (exit 1); exit 1; }; }
13137 if test -r "${sdkdir}/dri.h"; then
13138 eval "$as_ac_File=yes"
13139 else
13140 eval "$as_ac_File=no"
13141 fi
13142 fi
13143 ac_res=`eval 'as_val=${'$as_ac_File'}
13144 $as_echo "$as_val"'`
13145 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13146 $as_echo "$ac_res" >&6; }
13147 as_val=`eval 'as_val=${'$as_ac_File'}
13148 $as_echo "$as_val"'`
13149 if test "x$as_val" = x""yes; then
13150 have_dri_h="yes"
13151 else
13152 have_dri_h="no"
13153 fi
13154
13155 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
13156 { $as_echo "$as_me:$LINENO: checking for ${sdkdir}/sarea.h" >&5
13157 $as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; }
13158 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
13159 $as_echo_n "(cached) " >&6
13160 else
13161 test "$cross_compiling" = yes &&
13162 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
13163 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
13164 { (exit 1); exit 1; }; }
13165 if test -r "${sdkdir}/sarea.h"; then
13166 eval "$as_ac_File=yes"
13167 else
13168 eval "$as_ac_File=no"
13169 fi
13170 fi
13171 ac_res=`eval 'as_val=${'$as_ac_File'}
13172 $as_echo "$as_val"'`
13173 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13174 $as_echo "$ac_res" >&6; }
13175 as_val=`eval 'as_val=${'$as_ac_File'}
13176 $as_echo "$as_val"'`
13177 if test "x$as_val" = x""yes; then
13178 have_sarea_h="yes"
13179 else
13180 have_sarea_h="no"
13181 fi
13182
13183 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
13184 { $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dristruct.h" >&5
13185 $as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; }
13186 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
13187 $as_echo_n "(cached) " >&6
13188 else
13189 test "$cross_compiling" = yes &&
13190 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
13191 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
13192 { (exit 1); exit 1; }; }
13193 if test -r "${sdkdir}/dristruct.h"; then
13194 eval "$as_ac_File=yes"
13195 else
13196 eval "$as_ac_File=no"
13197 fi
13198 fi
13199 ac_res=`eval 'as_val=${'$as_ac_File'}
13200 $as_echo "$as_val"'`
13201 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13202 $as_echo "$ac_res" >&6; }
13203 as_val=`eval 'as_val=${'$as_ac_File'}
13204 $as_echo "$as_val"'`
13205 if test "x$as_val" = x""yes; then
13206 have_dristruct_h="yes"
13207 else
13208 have_dristruct_h="no"
13209 fi
13210
13211 fi
13212
13213 { $as_echo "$as_me:$LINENO: checking whether to include DRI support" >&5
13214 $as_echo_n "checking whether to include DRI support... " >&6; }
13215 if test "x$DRI" = xauto; then
13216 if test "x$have_dri_h" = xyes && \
13217 test "x$have_sarea_h" = xyes && \
13218 test "x$have_dristruct_h" = xyes; then
13219 DRI="yes"
13220 else
13221 DRI="no"
13222 fi
13223 fi
13224 { $as_echo "$as_me:$LINENO: result: $DRI" >&5
13225 $as_echo "$DRI" >&6; }
13226
13227 if test "x$DRI" = xyes; then
13228 DRI_TRUE=
13229 DRI_FALSE='#'
13230 else
13231 DRI_TRUE='#'
13232 DRI_FALSE=
13233 fi
13234
13235 if test "x$DRI" = xyes; then
13236
13237 pkg_failed=no
13238 { $as_echo "$as_me:$LINENO: checking for DRI" >&5
13239 $as_echo_n "checking for DRI... " >&6; }
13240
13241 if test -n "$DRI_CFLAGS"; then
13242 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
13243 elif test -n "$PKG_CONFIG"; then
13244 if test -n "$PKG_CONFIG" && \
13245 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\"") >&5
13246 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
13247 ac_status=$?
13248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; then
13250 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null`
13251 else
13252 pkg_failed=yes
13253 fi
13254 else
13255 pkg_failed=untried
13256 fi
13257 if test -n "$DRI_LIBS"; then
13258 pkg_cv_DRI_LIBS="$DRI_LIBS"
13259 elif test -n "$PKG_CONFIG"; then
13260 if test -n "$PKG_CONFIG" && \
13261 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\"") >&5
13262 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
13263 ac_status=$?
13264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); }; then
13266 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null`
13267 else
13268 pkg_failed=yes
13269 fi
13270 else
13271 pkg_failed=untried
13272 fi
13273
13274
13275
13276 if test $pkg_failed = yes; then
13277
13278 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13279 _pkg_short_errors_supported=yes
13280 else
13281 _pkg_short_errors_supported=no
13282 fi
13283 if test $_pkg_short_errors_supported = yes; then
13284 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.0 xf86driproto" 2>&1`
13285 else
13286 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.0 xf86driproto" 2>&1`
13287 fi
13288 # Put the nasty error message in config.log where it belongs
13289 echo "$DRI_PKG_ERRORS" >&5
13290
13291 { { $as_echo "$as_me:$LINENO: error: Package requirements (libdrm >= 2.0 xf86driproto) were not met:
13292
13293 $DRI_PKG_ERRORS
13294
13295 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13296 installed software in a non-standard prefix.
13297
13298 Alternatively, you may set the environment variables DRI_CFLAGS
13299 and DRI_LIBS to avoid the need to call pkg-config.
13300 See the pkg-config man page for more details.
13301 " >&5
13302 $as_echo "$as_me: error: Package requirements (libdrm >= 2.0 xf86driproto) were not met:
13303
13304 $DRI_PKG_ERRORS
13305
13306 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13307 installed software in a non-standard prefix.
13308
13309 Alternatively, you may set the environment variables DRI_CFLAGS
13310 and DRI_LIBS to avoid the need to call pkg-config.
13311 See the pkg-config man page for more details.
13312 " >&2;}
13313 { (exit 1); exit 1; }; }
13314 elif test $pkg_failed = untried; then
13315 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13317 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
13318 is in your PATH or set the PKG_CONFIG environment variable to the full
13319 path to pkg-config.
13320
13321 Alternatively, you may set the environment variables DRI_CFLAGS
13322 and DRI_LIBS to avoid the need to call pkg-config.
13323 See the pkg-config man page for more details.
13324
13325 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13326 See \`config.log' for more details." >&5
13327 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
13328 is in your PATH or set the PKG_CONFIG environment variable to the full
13329 path to pkg-config.
13330
13331 Alternatively, you may set the environment variables DRI_CFLAGS
13332 and DRI_LIBS to avoid the need to call pkg-config.
13333 See the pkg-config man page for more details.
13334
13335 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13336 See \`config.log' for more details." >&2;}
13337 { (exit 1); exit 1; }; }; }
13338 else
13339 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
13340 DRI_LIBS=$pkg_cv_DRI_LIBS
13341 { $as_echo "$as_me:$LINENO: result: yes" >&5
13342 $as_echo "yes" >&6; }
13343 :
13344 fi
13345
13346 cat >>confdefs.h <<\_ACEOF
13347 #define XF86DRI 1
13348 _ACEOF
13349
13350
13351 cat >>confdefs.h <<\_ACEOF
13352 #define XF86DRI_DEVEL 1
13353 _ACEOF
13354
13355 fi
13356
13357 save_CFLAGS="$CFLAGS"
13358 CFLAGS="$XORG_CFLAGS"
13359 { $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5
13360 $as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; }
13361 if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then
13362 $as_echo_n "(cached) " >&6
13363 else
13364 cat >conftest.$ac_ext <<_ACEOF
13365 /* confdefs.h. */
13366 _ACEOF
13367 cat confdefs.h >>conftest.$ac_ext
13368 cat >>conftest.$ac_ext <<_ACEOF
13369 /* end confdefs.h. */
13370 #include "xorg-server.h"
13371
13372 int
13373 main ()
13374 {
13375 #ifndef XSERVER_LIBPCIACCESS
13376 (void) XSERVER_LIBPCIACCESS;
13377 #endif
13378
13379 ;
13380 return 0;
13381 }
13382 _ACEOF
13383 rm -f conftest.$ac_objext
13384 if { (ac_try="$ac_compile"
13385 case "(($ac_try" in
13386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13387 *) ac_try_echo=$ac_try;;
13388 esac
13389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13390 $as_echo "$ac_try_echo") >&5
13391 (eval "$ac_compile") 2>conftest.er1
13392 ac_status=$?
13393 grep -v '^ *+' conftest.er1 >conftest.err
13394 rm -f conftest.er1
13395 cat conftest.err >&5
13396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); } && {
13398 test -z "$ac_c_werror_flag" ||
13399 test ! -s conftest.err
13400 } && test -s conftest.$ac_objext; then
13401 ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes
13402 else
13403 $as_echo "$as_me: failed program was:" >&5
13404 sed 's/^/| /' conftest.$ac_ext >&5
13405
13406 ac_cv_have_decl_XSERVER_LIBPCIACCESS=no
13407 fi
13408
13409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13410 fi
13411 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5
13412 $as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; }
13413 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then
13414 XSERVER_LIBPCIACCESS=yes
13415 else
13416 XSERVER_LIBPCIACCESS=no
13417 fi
13418
13419 CFLAGS="$save_CFLAGS"
13420
13421 save_CFLAGS="$CFLAGS"
13422 CFLAGS="$XORG_CFLAGS"
13423 { $as_echo "$as_me:$LINENO: checking whether xf86ModeBandwidth is declared" >&5
13424 $as_echo_n "checking whether xf86ModeBandwidth is declared... " >&6; }
13425 if test "${ac_cv_have_decl_xf86ModeBandwidth+set}" = set; then
13426 $as_echo_n "(cached) " >&6
13427 else
13428 cat >conftest.$ac_ext <<_ACEOF
13429 /* confdefs.h. */
13430 _ACEOF
13431 cat confdefs.h >>conftest.$ac_ext
13432 cat >>conftest.$ac_ext <<_ACEOF
13433 /* end confdefs.h. */
13434 #include <X11/extensions/randr.h>
13435 #include "xorg-server.h"
13436 #include "xf86Modes.h"
13437
13438 int
13439 main ()
13440 {
13441 #ifndef xf86ModeBandwidth
13442 (void) xf86ModeBandwidth;
13443 #endif
13444
13445 ;
13446 return 0;
13447 }
13448 _ACEOF
13449 rm -f conftest.$ac_objext
13450 if { (ac_try="$ac_compile"
13451 case "(($ac_try" in
13452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13453 *) ac_try_echo=$ac_try;;
13454 esac
13455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13456 $as_echo "$ac_try_echo") >&5
13457 (eval "$ac_compile") 2>conftest.er1
13458 ac_status=$?
13459 grep -v '^ *+' conftest.er1 >conftest.err
13460 rm -f conftest.er1
13461 cat conftest.err >&5
13462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); } && {
13464 test -z "$ac_c_werror_flag" ||
13465 test ! -s conftest.err
13466 } && test -s conftest.$ac_objext; then
13467 ac_cv_have_decl_xf86ModeBandwidth=yes
13468 else
13469 $as_echo "$as_me: failed program was:" >&5
13470 sed 's/^/| /' conftest.$ac_ext >&5
13471
13472 ac_cv_have_decl_xf86ModeBandwidth=no
13473 fi
13474
13475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13476 fi
13477 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_xf86ModeBandwidth" >&5
13478 $as_echo "$ac_cv_have_decl_xf86ModeBandwidth" >&6; }
13479 if test "x$ac_cv_have_decl_xf86ModeBandwidth" = x""yes; then
13480
13481 cat >>confdefs.h <<\_ACEOF
13482 #define HAVE_XF86MODEBANDWIDTH 1
13483 _ACEOF
13484
13485 fi
13486
13487 CFLAGS="$save_CFLAGS"
13488
13489 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
13490
13491 pkg_failed=no
13492 { $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5
13493 $as_echo_n "checking for PCIACCESS... " >&6; }
13494
13495 if test -n "$PCIACCESS_CFLAGS"; then
13496 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
13497 elif test -n "$PKG_CONFIG"; then
13498 if test -n "$PKG_CONFIG" && \
13499 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
13500 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
13501 ac_status=$?
13502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); }; then
13504 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
13505 else
13506 pkg_failed=yes
13507 fi
13508 else
13509 pkg_failed=untried
13510 fi
13511 if test -n "$PCIACCESS_LIBS"; then
13512 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
13513 elif test -n "$PKG_CONFIG"; then
13514 if test -n "$PKG_CONFIG" && \
13515 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
13516 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
13517 ac_status=$?
13518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); }; then
13520 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
13521 else
13522 pkg_failed=yes
13523 fi
13524 else
13525 pkg_failed=untried
13526 fi
13527
13528
13529
13530 if test $pkg_failed = yes; then
13531
13532 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13533 _pkg_short_errors_supported=yes
13534 else
13535 _pkg_short_errors_supported=no
13536 fi
13537 if test $_pkg_short_errors_supported = yes; then
13538 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
13539 else
13540 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
13541 fi
13542 # Put the nasty error message in config.log where it belongs
13543 echo "$PCIACCESS_PKG_ERRORS" >&5
13544
13545 { { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met:
13546
13547 $PCIACCESS_PKG_ERRORS
13548
13549 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13550 installed software in a non-standard prefix.
13551
13552 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
13553 and PCIACCESS_LIBS to avoid the need to call pkg-config.
13554 See the pkg-config man page for more details.
13555 " >&5
13556 $as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met:
13557
13558 $PCIACCESS_PKG_ERRORS
13559
13560 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13561 installed software in a non-standard prefix.
13562
13563 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
13564 and PCIACCESS_LIBS to avoid the need to call pkg-config.
13565 See the pkg-config man page for more details.
13566 " >&2;}
13567 { (exit 1); exit 1; }; }
13568 elif test $pkg_failed = untried; then
13569 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13571 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
13572 is in your PATH or set the PKG_CONFIG environment variable to the full
13573 path to pkg-config.
13574
13575 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
13576 and PCIACCESS_LIBS to avoid the need to call pkg-config.
13577 See the pkg-config man page for more details.
13578
13579 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13580 See \`config.log' for more details." >&5
13581 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
13582 is in your PATH or set the PKG_CONFIG environment variable to the full
13583 path to pkg-config.
13584
13585 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
13586 and PCIACCESS_LIBS to avoid the need to call pkg-config.
13587 See the pkg-config man page for more details.
13588
13589 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13590 See \`config.log' for more details." >&2;}
13591 { (exit 1); exit 1; }; }; }
13592 else
13593 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
13594 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
13595 { $as_echo "$as_me:$LINENO: result: yes" >&5
13596 $as_echo "yes" >&6; }
13597 :
13598 fi
13599 fi
13600 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
13601 XSERVER_LIBPCIACCESS_TRUE=
13602 XSERVER_LIBPCIACCESS_FALSE='#'
13603 else
13604 XSERVER_LIBPCIACCESS_TRUE='#'
13605 XSERVER_LIBPCIACCESS_FALSE=
13606 fi
13607
13608
13609 if true; then
13610 USE_XAA_TRUE=
13611 USE_XAA_FALSE='#'
13612 else
13613 USE_XAA_TRUE='#'
13614 USE_XAA_FALSE=
13615 fi
13616
13617
13618 cat >>confdefs.h <<\_ACEOF
13619 #define USE_XAA 1
13620 _ACEOF
13621
13622
13623 # Properly handle EXA.
13624 { $as_echo "$as_me:$LINENO: checking whether to enable EXA support" >&5
13625 $as_echo_n "checking whether to enable EXA support... " >&6; }
13626 if test "x$EXA" = xyes; then
13627 { $as_echo "$as_me:$LINENO: result: yes" >&5
13628 $as_echo "yes" >&6; }
13629
13630 SAVE_CPPFLAGS="$CPPFLAGS"
13631 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
13632 if test "${ac_cv_header_exa_h+set}" = set; then
13633 { $as_echo "$as_me:$LINENO: checking for exa.h" >&5
13634 $as_echo_n "checking for exa.h... " >&6; }
13635 if test "${ac_cv_header_exa_h+set}" = set; then
13636 $as_echo_n "(cached) " >&6
13637 fi
13638 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_exa_h" >&5
13639 $as_echo "$ac_cv_header_exa_h" >&6; }
13640 else
13641 # Is the header compilable?
13642 { $as_echo "$as_me:$LINENO: checking exa.h usability" >&5
13643 $as_echo_n "checking exa.h usability... " >&6; }
13644 cat >conftest.$ac_ext <<_ACEOF
13645 /* confdefs.h. */
13646 _ACEOF
13647 cat confdefs.h >>conftest.$ac_ext
13648 cat >>conftest.$ac_ext <<_ACEOF
13649 /* end confdefs.h. */
13650 $ac_includes_default
13651 #include <exa.h>
13652 _ACEOF
13653 rm -f conftest.$ac_objext
13654 if { (ac_try="$ac_compile"
13655 case "(($ac_try" in
13656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13657 *) ac_try_echo=$ac_try;;
13658 esac
13659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13660 $as_echo "$ac_try_echo") >&5
13661 (eval "$ac_compile") 2>conftest.er1
13662 ac_status=$?
13663 grep -v '^ *+' conftest.er1 >conftest.err
13664 rm -f conftest.er1
13665 cat conftest.err >&5
13666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); } && {
13668 test -z "$ac_c_werror_flag" ||
13669 test ! -s conftest.err
13670 } && test -s conftest.$ac_objext; then
13671 ac_header_compiler=yes
13672 else
13673 $as_echo "$as_me: failed program was:" >&5
13674 sed 's/^/| /' conftest.$ac_ext >&5
13675
13676 ac_header_compiler=no
13677 fi
13678
13679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13680 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13681 $as_echo "$ac_header_compiler" >&6; }
13682
13683 # Is the header present?
13684 { $as_echo "$as_me:$LINENO: checking exa.h presence" >&5
13685 $as_echo_n "checking exa.h presence... " >&6; }
13686 cat >conftest.$ac_ext <<_ACEOF
13687 /* confdefs.h. */
13688 _ACEOF
13689 cat confdefs.h >>conftest.$ac_ext
13690 cat >>conftest.$ac_ext <<_ACEOF
13691 /* end confdefs.h. */
13692 #include <exa.h>
13693 _ACEOF
13694 if { (ac_try="$ac_cpp conftest.$ac_ext"
13695 case "(($ac_try" in
13696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13697 *) ac_try_echo=$ac_try;;
13698 esac
13699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13700 $as_echo "$ac_try_echo") >&5
13701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13702 ac_status=$?
13703 grep -v '^ *+' conftest.er1 >conftest.err
13704 rm -f conftest.er1
13705 cat conftest.err >&5
13706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); } >/dev/null && {
13708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13709 test ! -s conftest.err
13710 }; then
13711 ac_header_preproc=yes
13712 else
13713 $as_echo "$as_me: failed program was:" >&5
13714 sed 's/^/| /' conftest.$ac_ext >&5
13715
13716 ac_header_preproc=no
13717 fi
13718
13719 rm -f conftest.err conftest.$ac_ext
13720 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13721 $as_echo "$ac_header_preproc" >&6; }
13722
13723 # So? What about this header?
13724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13725 yes:no: )
13726 { $as_echo "$as_me:$LINENO: WARNING: exa.h: accepted by the compiler, rejected by the preprocessor!" >&5
13727 $as_echo "$as_me: WARNING: exa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13728 { $as_echo "$as_me:$LINENO: WARNING: exa.h: proceeding with the compiler's result" >&5
13729 $as_echo "$as_me: WARNING: exa.h: proceeding with the compiler's result" >&2;}
13730 ac_header_preproc=yes
13731 ;;
13732 no:yes:* )
13733 { $as_echo "$as_me:$LINENO: WARNING: exa.h: present but cannot be compiled" >&5
13734 $as_echo "$as_me: WARNING: exa.h: present but cannot be compiled" >&2;}
13735 { $as_echo "$as_me:$LINENO: WARNING: exa.h: check for missing prerequisite headers?" >&5
13736 $as_echo "$as_me: WARNING: exa.h: check for missing prerequisite headers?" >&2;}
13737 { $as_echo "$as_me:$LINENO: WARNING: exa.h: see the Autoconf documentation" >&5
13738 $as_echo "$as_me: WARNING: exa.h: see the Autoconf documentation" >&2;}
13739 { $as_echo "$as_me:$LINENO: WARNING: exa.h: section \"Present But Cannot Be Compiled\"" >&5
13740 $as_echo "$as_me: WARNING: exa.h: section \"Present But Cannot Be Compiled\"" >&2;}
13741 { $as_echo "$as_me:$LINENO: WARNING: exa.h: proceeding with the preprocessor's result" >&5
13742 $as_echo "$as_me: WARNING: exa.h: proceeding with the preprocessor's result" >&2;}
13743 { $as_echo "$as_me:$LINENO: WARNING: exa.h: in the future, the compiler will take precedence" >&5
13744 $as_echo "$as_me: WARNING: exa.h: in the future, the compiler will take precedence" >&2;}
13745 ( cat <<\_ASBOX
13746 ## ---------------------------------------------------------------------- ##
13747 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
13748 ## ---------------------------------------------------------------------- ##
13749 _ASBOX
13750 ) | sed "s/^/$as_me: WARNING: /" >&2
13751 ;;
13752 esac
13753 { $as_echo "$as_me:$LINENO: checking for exa.h" >&5
13754 $as_echo_n "checking for exa.h... " >&6; }
13755 if test "${ac_cv_header_exa_h+set}" = set; then
13756 $as_echo_n "(cached) " >&6
13757 else
13758 ac_cv_header_exa_h=$ac_header_preproc
13759 fi
13760 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_exa_h" >&5
13761 $as_echo "$ac_cv_header_exa_h" >&6; }
13762
13763 fi
13764 if test "x$ac_cv_header_exa_h" = x""yes; then
13765 have_exa_h="yes"
13766 else
13767 have_exa_h="no"
13768 fi
13769
13770
13771 CPPFLAGS="$SAVE_CPPFLAGS"
13772 else
13773 { $as_echo "$as_me:$LINENO: result: no" >&5
13774 $as_echo "no" >&6; }
13775 fi
13776
13777 SAVE_CPPFLAGS="$CPPFLAGS"
13778 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
13779 if test "x$have_exa_h" = xyes; then
13780 { $as_echo "$as_me:$LINENO: checking whether EXA version is at least 2.0.0" >&5
13781 $as_echo_n "checking whether EXA version is at least 2.0.0... " >&6; }
13782 cat >conftest.$ac_ext <<_ACEOF
13783 /* confdefs.h. */
13784 _ACEOF
13785 cat confdefs.h >>conftest.$ac_ext
13786 cat >>conftest.$ac_ext <<_ACEOF
13787 /* end confdefs.h. */
13788
13789 #include "exa.h"
13790 #if EXA_VERSION_MAJOR < 2
13791 #error OLD EXA!
13792 #endif
13793
13794 int
13795 main ()
13796 {
13797
13798 ;
13799 return 0;
13800 }
13801 _ACEOF
13802 if { (ac_try="$ac_cpp conftest.$ac_ext"
13803 case "(($ac_try" in
13804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13805 *) ac_try_echo=$ac_try;;
13806 esac
13807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13808 $as_echo "$ac_try_echo") >&5
13809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13810 ac_status=$?
13811 grep -v '^ *+' conftest.er1 >conftest.err
13812 rm -f conftest.er1
13813 cat conftest.err >&5
13814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); } >/dev/null && {
13816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13817 test ! -s conftest.err
13818 }; then
13819 USE_EXA=yes
13820 else
13821 $as_echo "$as_me: failed program was:" >&5
13822 sed 's/^/| /' conftest.$ac_ext >&5
13823
13824 USE_EXA=no
13825 fi
13826
13827 rm -f conftest.err conftest.$ac_ext
13828 { $as_echo "$as_me:$LINENO: result: $USE_EXA" >&5
13829 $as_echo "$USE_EXA" >&6; }
13830
13831 if test "x$USE_EXA" = xyes; then
13832
13833 cat >>confdefs.h <<\_ACEOF
13834 #define USE_EXA 1
13835 _ACEOF
13836
13837 fi
13838 fi
13839 CPPFLAGS="$SAVE_CPPFLAGS"
13840
13841 if test "x$USE_EXA" = xyes; then
13842 USE_EXA_TRUE=
13843 USE_EXA_FALSE='#'
13844 else
13845 USE_EXA_TRUE='#'
13846 USE_EXA_FALSE=
13847 fi
13848
13849
13850
13851
13852
13853
13854 DRIVER_NAME=mga
13855
13856
13857 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile util/Makefile"
13858
13859 cat >confcache <<\_ACEOF
13860 # This file is a shell script that caches the results of configure
13861 # tests run on this system so they can be shared between configure
13862 # scripts and configure runs, see configure's option --config-cache.
13863 # It is not useful on other systems. If it contains results you don't
13864 # want to keep, you may remove or edit it.
13865 #
13866 # config.status only pays attention to the cache file if you give it
13867 # the --recheck option to rerun configure.
13868 #
13869 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13870 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13871 # following values.
13872
13873 _ACEOF
13874
13875 # The following way of writing the cache mishandles newlines in values,
13876 # but we know of no workaround that is simple, portable, and efficient.
13877 # So, we kill variables containing newlines.
13878 # Ultrix sh set writes to stderr and can't be redirected directly,
13879 # and sets the high bit in the cache file unless we assign to the vars.
13880 (
13881 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13882 eval ac_val=\$$ac_var
13883 case $ac_val in #(
13884 *${as_nl}*)
13885 case $ac_var in #(
13886 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13887 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13888 esac
13889 case $ac_var in #(
13890 _ | IFS | as_nl) ;; #(
13891 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13892 *) $as_unset $ac_var ;;
13893 esac ;;
13894 esac
13895 done
13896
13897 (set) 2>&1 |
13898 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13899 *${as_nl}ac_space=\ *)
13900 # `set' does not quote correctly, so add quotes (double-quote
13901 # substitution turns \\\\ into \\, and sed turns \\ into \).
13902 sed -n \
13903 "s/'/'\\\\''/g;
13904 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13905 ;; #(
13906 *)
13907 # `set' quotes correctly as required by POSIX, so do not add quotes.
13908 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13909 ;;
13910 esac |
13911 sort
13912 ) |
13913 sed '
13914 /^ac_cv_env_/b end
13915 t clear
13916 :clear
13917 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13918 t end
13919 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13920 :end' >>confcache
13921 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13922 if test -w "$cache_file"; then
13923 test "x$cache_file" != "x/dev/null" &&
13924 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13925 $as_echo "$as_me: updating cache $cache_file" >&6;}
13926 cat confcache >$cache_file
13927 else
13928 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13929 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13930 fi
13931 fi
13932 rm -f confcache
13933
13934 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13935 # Let make expand exec_prefix.
13936 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13937
13938 DEFS=-DHAVE_CONFIG_H
13939
13940 ac_libobjs=
13941 ac_ltlibobjs=
13942 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13943 # 1. Remove the extension, and $U if already installed.
13944 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13945 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13946 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13947 # will be set to the directory where LIBOBJS objects are built.
13948 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13949 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13950 done
13951 LIBOBJS=$ac_libobjs
13952
13953 LTLIBOBJS=$ac_ltlibobjs
13954
13955
13956 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13957 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13958 Usually this means the macro was only invoked conditionally." >&5
13959 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
13960 Usually this means the macro was only invoked conditionally." >&2;}
13961 { (exit 1); exit 1; }; }
13962 fi
13963 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13964 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13965 Usually this means the macro was only invoked conditionally." >&5
13966 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13967 Usually this means the macro was only invoked conditionally." >&2;}
13968 { (exit 1); exit 1; }; }
13969 fi
13970 if test -n "$EXEEXT"; then
13971 am__EXEEXT_TRUE=
13972 am__EXEEXT_FALSE='#'
13973 else
13974 am__EXEEXT_TRUE='#'
13975 am__EXEEXT_FALSE=
13976 fi
13977
13978 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13979 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13980 Usually this means the macro was only invoked conditionally." >&5
13981 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13982 Usually this means the macro was only invoked conditionally." >&2;}
13983 { (exit 1); exit 1; }; }
13984 fi
13985 if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
13986 { { $as_echo "$as_me:$LINENO: error: conditional \"DRI\" was never defined.
13987 Usually this means the macro was only invoked conditionally." >&5
13988 $as_echo "$as_me: error: conditional \"DRI\" was never defined.
13989 Usually this means the macro was only invoked conditionally." >&2;}
13990 { (exit 1); exit 1; }; }
13991 fi
13992 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
13993 { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
13994 Usually this means the macro was only invoked conditionally." >&5
13995 $as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
13996 Usually this means the macro was only invoked conditionally." >&2;}
13997 { (exit 1); exit 1; }; }
13998 fi
13999 if test -z "${USE_XAA_TRUE}" && test -z "${USE_XAA_FALSE}"; then
14000 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_XAA\" was never defined.
14001 Usually this means the macro was only invoked conditionally." >&5
14002 $as_echo "$as_me: error: conditional \"USE_XAA\" was never defined.
14003 Usually this means the macro was only invoked conditionally." >&2;}
14004 { (exit 1); exit 1; }; }
14005 fi
14006 if test -z "${USE_EXA_TRUE}" && test -z "${USE_EXA_FALSE}"; then
14007 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_EXA\" was never defined.
14008 Usually this means the macro was only invoked conditionally." >&5
14009 $as_echo "$as_me: error: conditional \"USE_EXA\" was never defined.
14010 Usually this means the macro was only invoked conditionally." >&2;}
14011 { (exit 1); exit 1; }; }
14012 fi
14013
14014 : ${CONFIG_STATUS=./config.status}
14015 ac_write_fail=0
14016 ac_clean_files_save=$ac_clean_files
14017 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14018 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14019 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14020 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14021 #! $SHELL
14022 # Generated by $as_me.
14023 # Run this file to recreate the current configuration.
14024 # Compiler output produced by configure, useful for debugging
14025 # configure, is in config.log if it exists.
14026
14027 debug=false
14028 ac_cs_recheck=false
14029 ac_cs_silent=false
14030 SHELL=\${CONFIG_SHELL-$SHELL}
14031 _ACEOF
14032
14033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14034 ## --------------------- ##
14035 ## M4sh Initialization. ##
14036 ## --------------------- ##
14037
14038 # Be more Bourne compatible
14039 DUALCASE=1; export DUALCASE # for MKS sh
14040 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14041 emulate sh
14042 NULLCMD=:
14043 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14044 # is contrary to our usage. Disable this feature.
14045 alias -g '${1+"$@"}'='"$@"'
14046 setopt NO_GLOB_SUBST
14047 else
14048 case `(set -o) 2>/dev/null` in
14049 *posix*) set -o posix ;;
14050 esac
14051
14052 fi
14053
14054
14055
14056
14057 # PATH needs CR
14058 # Avoid depending upon Character Ranges.
14059 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14060 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14061 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14062 as_cr_digits='0123456789'
14063 as_cr_alnum=$as_cr_Letters$as_cr_digits
14064
14065 as_nl='
14066 '
14067 export as_nl
14068 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14069 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14070 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14071 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14072 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14073 as_echo='printf %s\n'
14074 as_echo_n='printf %s'
14075 else
14076 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14077 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14078 as_echo_n='/usr/ucb/echo -n'
14079 else
14080 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14081 as_echo_n_body='eval
14082 arg=$1;
14083 case $arg in
14084 *"$as_nl"*)
14085 expr "X$arg" : "X\\(.*\\)$as_nl";
14086 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14087 esac;
14088 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14089 '
14090 export as_echo_n_body
14091 as_echo_n='sh -c $as_echo_n_body as_echo'
14092 fi
14093 export as_echo_body
14094 as_echo='sh -c $as_echo_body as_echo'
14095 fi
14096
14097 # The user is always right.
14098 if test "${PATH_SEPARATOR+set}" != set; then
14099 PATH_SEPARATOR=:
14100 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14101 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14102 PATH_SEPARATOR=';'
14103 }
14104 fi
14105
14106 # Support unset when possible.
14107 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14108 as_unset=unset
14109 else
14110 as_unset=false
14111 fi
14112
14113
14114 # IFS
14115 # We need space, tab and new line, in precisely that order. Quoting is
14116 # there to prevent editors from complaining about space-tab.
14117 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14118 # splitting by setting IFS to empty value.)
14119 IFS=" "" $as_nl"
14120
14121 # Find who we are. Look in the path if we contain no directory separator.
14122 case $0 in
14123 *[\\/]* ) as_myself=$0 ;;
14124 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14125 for as_dir in $PATH
14126 do
14127 IFS=$as_save_IFS
14128 test -z "$as_dir" && as_dir=.
14129 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14130 done
14131 IFS=$as_save_IFS
14132
14133 ;;
14134 esac
14135 # We did not find ourselves, most probably we were run as `sh COMMAND'
14136 # in which case we are not to be found in the path.
14137 if test "x$as_myself" = x; then
14138 as_myself=$0
14139 fi
14140 if test ! -f "$as_myself"; then
14141 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14142 { (exit 1); exit 1; }
14143 fi
14144
14145 # Work around bugs in pre-3.0 UWIN ksh.
14146 for as_var in ENV MAIL MAILPATH
14147 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14148 done
14149 PS1='$ '
14150 PS2='> '
14151 PS4='+ '
14152
14153 # NLS nuisances.
14154 LC_ALL=C
14155 export LC_ALL
14156 LANGUAGE=C
14157 export LANGUAGE
14158
14159 # Required to use basename.
14160 if expr a : '\(a\)' >/dev/null 2>&1 &&
14161 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14162 as_expr=expr
14163 else
14164 as_expr=false
14165 fi
14166
14167 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14168 as_basename=basename
14169 else
14170 as_basename=false
14171 fi
14172
14173
14174 # Name of the executable.
14175 as_me=`$as_basename -- "$0" ||
14176 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14177 X"$0" : 'X\(//\)$' \| \
14178 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14179 $as_echo X/"$0" |
14180 sed '/^.*\/\([^/][^/]*\)\/*$/{
14181 s//\1/
14182 q
14183 }
14184 /^X\/\(\/\/\)$/{
14185 s//\1/
14186 q
14187 }
14188 /^X\/\(\/\).*/{
14189 s//\1/
14190 q
14191 }
14192 s/.*/./; q'`
14193
14194 # CDPATH.
14195 $as_unset CDPATH
14196
14197
14198
14199 as_lineno_1=$LINENO
14200 as_lineno_2=$LINENO
14201 test "x$as_lineno_1" != "x$as_lineno_2" &&
14202 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14203
14204 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14205 # uniformly replaced by the line number. The first 'sed' inserts a
14206 # line-number line after each line using $LINENO; the second 'sed'
14207 # does the real work. The second script uses 'N' to pair each
14208 # line-number line with the line containing $LINENO, and appends
14209 # trailing '-' during substitution so that $LINENO is not a special
14210 # case at line end.
14211 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14212 # scripts with optimization help from Paolo Bonzini. Blame Lee
14213 # E. McMahon (1931-1989) for sed's syntax. :-)
14214 sed -n '
14215 p
14216 /[$]LINENO/=
14217 ' <$as_myself |
14218 sed '
14219 s/[$]LINENO.*/&-/
14220 t lineno
14221 b
14222 :lineno
14223 N
14224 :loop
14225 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14226 t loop
14227 s/-\n.*//
14228 ' >$as_me.lineno &&
14229 chmod +x "$as_me.lineno" ||
14230 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14231 { (exit 1); exit 1; }; }
14232
14233 # Don't try to exec as it changes $[0], causing all sort of problems
14234 # (the dirname of $[0] is not the place where we might find the
14235 # original and so on. Autoconf is especially sensitive to this).
14236 . "./$as_me.lineno"
14237 # Exit status is that of the last command.
14238 exit
14239 }
14240
14241
14242 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14243 as_dirname=dirname
14244 else
14245 as_dirname=false
14246 fi
14247
14248 ECHO_C= ECHO_N= ECHO_T=
14249 case `echo -n x` in
14250 -n*)
14251 case `echo 'x\c'` in
14252 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14253 *) ECHO_C='\c';;
14254 esac;;
14255 *)
14256 ECHO_N='-n';;
14257 esac
14258 if expr a : '\(a\)' >/dev/null 2>&1 &&
14259 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14260 as_expr=expr
14261 else
14262 as_expr=false
14263 fi
14264
14265 rm -f conf$$ conf$$.exe conf$$.file
14266 if test -d conf$$.dir; then
14267 rm -f conf$$.dir/conf$$.file
14268 else
14269 rm -f conf$$.dir
14270 mkdir conf$$.dir 2>/dev/null
14271 fi
14272 if (echo >conf$$.file) 2>/dev/null; then
14273 if ln -s conf$$.file conf$$ 2>/dev/null; then
14274 as_ln_s='ln -s'
14275 # ... but there are two gotchas:
14276 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14277 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14278 # In both cases, we have to default to `cp -p'.
14279 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14280 as_ln_s='cp -p'
14281 elif ln conf$$.file conf$$ 2>/dev/null; then
14282 as_ln_s=ln
14283 else
14284 as_ln_s='cp -p'
14285 fi
14286 else
14287 as_ln_s='cp -p'
14288 fi
14289 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14290 rmdir conf$$.dir 2>/dev/null
14291
14292 if mkdir -p . 2>/dev/null; then
14293 as_mkdir_p=:
14294 else
14295 test -d ./-p && rmdir ./-p
14296 as_mkdir_p=false
14297 fi
14298
14299 if test -x / >/dev/null 2>&1; then
14300 as_test_x='test -x'
14301 else
14302 if ls -dL / >/dev/null 2>&1; then
14303 as_ls_L_option=L
14304 else
14305 as_ls_L_option=
14306 fi
14307 as_test_x='
14308 eval sh -c '\''
14309 if test -d "$1"; then
14310 test -d "$1/.";
14311 else
14312 case $1 in
14313 -*)set "./$1";;
14314 esac;
14315 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14316 ???[sx]*):;;*)false;;esac;fi
14317 '\'' sh
14318 '
14319 fi
14320 as_executable_p=$as_test_x
14321
14322 # Sed expression to map a string onto a valid CPP name.
14323 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14324
14325 # Sed expression to map a string onto a valid variable name.
14326 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14327
14328
14329 exec 6>&1
14330
14331 # Save the log message, to keep $[0] and so on meaningful, and to
14332 # report actual input values of CONFIG_FILES etc. instead of their
14333 # values after options handling.
14334 ac_log="
14335 This file was extended by xf86-video-mga $as_me 1.4.12, which was
14336 generated by GNU Autoconf 2.63. Invocation command line was
14337
14338 CONFIG_FILES = $CONFIG_FILES
14339 CONFIG_HEADERS = $CONFIG_HEADERS
14340 CONFIG_LINKS = $CONFIG_LINKS
14341 CONFIG_COMMANDS = $CONFIG_COMMANDS
14342 $ $0 $@
14343
14344 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14345 "
14346
14347 _ACEOF
14348
14349 case $ac_config_files in *"
14350 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14351 esac
14352
14353 case $ac_config_headers in *"
14354 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14355 esac
14356
14357
14358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14359 # Files that config.status was made for.
14360 config_files="$ac_config_files"
14361 config_headers="$ac_config_headers"
14362 config_commands="$ac_config_commands"
14363
14364 _ACEOF
14365
14366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14367 ac_cs_usage="\
14368 \`$as_me' instantiates files from templates according to the
14369 current configuration.
14370
14371 Usage: $0 [OPTION]... [FILE]...
14372
14373 -h, --help print this help, then exit
14374 -V, --version print version number and configuration settings, then exit
14375 -q, --quiet, --silent
14376 do not print progress messages
14377 -d, --debug don't remove temporary files
14378 --recheck update $as_me by reconfiguring in the same conditions
14379 --file=FILE[:TEMPLATE]
14380 instantiate the configuration file FILE
14381 --header=FILE[:TEMPLATE]
14382 instantiate the configuration header FILE
14383
14384 Configuration files:
14385 $config_files
14386
14387 Configuration headers:
14388 $config_headers
14389
14390 Configuration commands:
14391 $config_commands
14392
14393 Report bugs to <bug-autoconf (at] gnu.org>."
14394
14395 _ACEOF
14396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14397 ac_cs_version="\\
14398 xf86-video-mga config.status 1.4.12
14399 configured by $0, generated by GNU Autoconf 2.63,
14400 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14401
14402 Copyright (C) 2008 Free Software Foundation, Inc.
14403 This config.status script is free software; the Free Software Foundation
14404 gives unlimited permission to copy, distribute and modify it."
14405
14406 ac_pwd='$ac_pwd'
14407 srcdir='$srcdir'
14408 INSTALL='$INSTALL'
14409 MKDIR_P='$MKDIR_P'
14410 AWK='$AWK'
14411 test -n "\$AWK" || AWK=awk
14412 _ACEOF
14413
14414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14415 # The default lists apply if the user does not specify any file.
14416 ac_need_defaults=:
14417 while test $# != 0
14418 do
14419 case $1 in
14420 --*=*)
14421 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14422 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14423 ac_shift=:
14424 ;;
14425 *)
14426 ac_option=$1
14427 ac_optarg=$2
14428 ac_shift=shift
14429 ;;
14430 esac
14431
14432 case $ac_option in
14433 # Handling of the options.
14434 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14435 ac_cs_recheck=: ;;
14436 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14437 $as_echo "$ac_cs_version"; exit ;;
14438 --debug | --debu | --deb | --de | --d | -d )
14439 debug=: ;;
14440 --file | --fil | --fi | --f )
14441 $ac_shift
14442 case $ac_optarg in
14443 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14444 esac
14445 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14446 ac_need_defaults=false;;
14447 --header | --heade | --head | --hea )
14448 $ac_shift
14449 case $ac_optarg in
14450 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14451 esac
14452 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14453 ac_need_defaults=false;;
14454 --he | --h)
14455 # Conflict between --help and --header
14456 { $as_echo "$as_me: error: ambiguous option: $1
14457 Try \`$0 --help' for more information." >&2
14458 { (exit 1); exit 1; }; };;
14459 --help | --hel | -h )
14460 $as_echo "$ac_cs_usage"; exit ;;
14461 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14462 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14463 ac_cs_silent=: ;;
14464
14465 # This is an error.
14466 -*) { $as_echo "$as_me: error: unrecognized option: $1
14467 Try \`$0 --help' for more information." >&2
14468 { (exit 1); exit 1; }; } ;;
14469
14470 *) ac_config_targets="$ac_config_targets $1"
14471 ac_need_defaults=false ;;
14472
14473 esac
14474 shift
14475 done
14476
14477 ac_configure_extra_args=
14478
14479 if $ac_cs_silent; then
14480 exec 6>/dev/null
14481 ac_configure_extra_args="$ac_configure_extra_args --silent"
14482 fi
14483
14484 _ACEOF
14485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14486 if \$ac_cs_recheck; then
14487 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14488 shift
14489 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14490 CONFIG_SHELL='$SHELL'
14491 export CONFIG_SHELL
14492 exec "\$@"
14493 fi
14494
14495 _ACEOF
14496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14497 exec 5>>config.log
14498 {
14499 echo
14500 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14501 ## Running $as_me. ##
14502 _ASBOX
14503 $as_echo "$ac_log"
14504 } >&5
14505
14506 _ACEOF
14507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14508 #
14509 # INIT-COMMANDS
14510 #
14511 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14512
14513
14514 # The HP-UX ksh and POSIX shell print the target directory to stdout
14515 # if CDPATH is set.
14516 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14517
14518 sed_quote_subst='$sed_quote_subst'
14519 double_quote_subst='$double_quote_subst'
14520 delay_variable_subst='$delay_variable_subst'
14521 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14522 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14523 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14524 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14525 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14526 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14527 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14528 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14529 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14530 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14531 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14532 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14533 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14534 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14535 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14536 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14537 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14538 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14539 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14540 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14541 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14542 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14543 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14544 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14545 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14546 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14547 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14548 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14549 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14550 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14551 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14552 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14553 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14554 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14555 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14556 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14557 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14558 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14559 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14560 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14561 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14562 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14563 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14564 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14565 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
14566 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14567 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14568 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14569 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14570 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14571 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14572 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14573 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14574 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14575 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14576 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14577 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14578 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14579 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14580 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14581 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14582 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14583 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14584 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14585 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14586 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14587 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14588 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14589 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14590 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14591 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14592 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14593 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14594 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14595 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14596 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14597 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14598 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14599 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14600 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14601 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14602 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14603 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14604 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14605 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14606 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14607 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14608 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14609 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14610 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14611 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14612 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14613 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14614 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14615 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14616 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14617 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14618 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14619 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14620 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14621 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14622 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14623 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14624 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14625 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14626 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14627 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14628 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14629 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14630 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14631 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14632 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14633 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14634 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14635 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14636 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14637 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14638 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14639
14640 LTCC='$LTCC'
14641 LTCFLAGS='$LTCFLAGS'
14642 compiler='$compiler_DEFAULT'
14643
14644 # Quote evaled strings.
14645 for var in SED \
14646 GREP \
14647 EGREP \
14648 FGREP \
14649 LD \
14650 NM \
14651 LN_S \
14652 lt_SP2NL \
14653 lt_NL2SP \
14654 reload_flag \
14655 OBJDUMP \
14656 deplibs_check_method \
14657 file_magic_cmd \
14658 AR \
14659 AR_FLAGS \
14660 STRIP \
14661 RANLIB \
14662 CC \
14663 CFLAGS \
14664 compiler \
14665 lt_cv_sys_global_symbol_pipe \
14666 lt_cv_sys_global_symbol_to_cdecl \
14667 lt_cv_sys_global_symbol_to_c_name_address \
14668 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14669 SHELL \
14670 ECHO \
14671 lt_prog_compiler_no_builtin_flag \
14672 lt_prog_compiler_wl \
14673 lt_prog_compiler_pic \
14674 lt_prog_compiler_static \
14675 lt_cv_prog_compiler_c_o \
14676 need_locks \
14677 DSYMUTIL \
14678 NMEDIT \
14679 LIPO \
14680 OTOOL \
14681 OTOOL64 \
14682 shrext_cmds \
14683 export_dynamic_flag_spec \
14684 whole_archive_flag_spec \
14685 compiler_needs_object \
14686 with_gnu_ld \
14687 allow_undefined_flag \
14688 no_undefined_flag \
14689 hardcode_libdir_flag_spec \
14690 hardcode_libdir_flag_spec_ld \
14691 hardcode_libdir_separator \
14692 fix_srcfile_path \
14693 exclude_expsyms \
14694 include_expsyms \
14695 file_list_spec \
14696 variables_saved_for_relink \
14697 libname_spec \
14698 library_names_spec \
14699 soname_spec \
14700 finish_eval \
14701 old_striplib \
14702 striplib; do
14703 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14704 *[\\\\\\\`\\"\\\$]*)
14705 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14706 ;;
14707 *)
14708 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14709 ;;
14710 esac
14711 done
14712
14713 # Double-quote double-evaled strings.
14714 for var in reload_cmds \
14715 old_postinstall_cmds \
14716 old_postuninstall_cmds \
14717 old_archive_cmds \
14718 extract_expsyms_cmds \
14719 old_archive_from_new_cmds \
14720 old_archive_from_expsyms_cmds \
14721 archive_cmds \
14722 archive_expsym_cmds \
14723 module_cmds \
14724 module_expsym_cmds \
14725 export_symbols_cmds \
14726 prelink_cmds \
14727 postinstall_cmds \
14728 postuninstall_cmds \
14729 finish_cmds \
14730 sys_lib_search_path_spec \
14731 sys_lib_dlsearch_path_spec; do
14732 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14733 *[\\\\\\\`\\"\\\$]*)
14734 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14735 ;;
14736 *)
14737 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14738 ;;
14739 esac
14740 done
14741
14742 # Fix-up fallback echo if it was mangled by the above quoting rules.
14743 case \$lt_ECHO in
14744 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14745 ;;
14746 esac
14747
14748 ac_aux_dir='$ac_aux_dir'
14749 xsi_shell='$xsi_shell'
14750 lt_shell_append='$lt_shell_append'
14751
14752 # See if we are running on zsh, and set the options which allow our
14753 # commands through without removal of \ escapes INIT.
14754 if test -n "\${ZSH_VERSION+set}" ; then
14755 setopt NO_GLOB_SUBST
14756 fi
14757
14758
14759 PACKAGE='$PACKAGE'
14760 VERSION='$VERSION'
14761 TIMESTAMP='$TIMESTAMP'
14762 RM='$RM'
14763 ofile='$ofile'
14764
14765
14766
14767
14768 _ACEOF
14769
14770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14771
14772 # Handling of arguments.
14773 for ac_config_target in $ac_config_targets
14774 do
14775 case $ac_config_target in
14776 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14777 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14778 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14779 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14780 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14781 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14782 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
14783
14784 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14785 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14786 { (exit 1); exit 1; }; };;
14787 esac
14788 done
14789
14790
14791 # If the user did not use the arguments to specify the items to instantiate,
14792 # then the envvar interface is used. Set only those that are not.
14793 # We use the long form for the default assignment because of an extremely
14794 # bizarre bug on SunOS 4.1.3.
14795 if $ac_need_defaults; then
14796 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14797 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14798 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14799 fi
14800
14801 # Have a temporary directory for convenience. Make it in the build tree
14802 # simply because there is no reason against having it here, and in addition,
14803 # creating and moving files from /tmp can sometimes cause problems.
14804 # Hook for its removal unless debugging.
14805 # Note that there is a small window in which the directory will not be cleaned:
14806 # after its creation but before its name has been assigned to `$tmp'.
14807 $debug ||
14808 {
14809 tmp=
14810 trap 'exit_status=$?
14811 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14812 ' 0
14813 trap '{ (exit 1); exit 1; }' 1 2 13 15
14814 }
14815 # Create a (secure) tmp directory for tmp files.
14816
14817 {
14818 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14819 test -n "$tmp" && test -d "$tmp"
14820 } ||
14821 {
14822 tmp=./conf$$-$RANDOM
14823 (umask 077 && mkdir "$tmp")
14824 } ||
14825 {
14826 $as_echo "$as_me: cannot create a temporary directory in ." >&2
14827 { (exit 1); exit 1; }
14828 }
14829
14830 # Set up the scripts for CONFIG_FILES section.
14831 # No need to generate them if there are no CONFIG_FILES.
14832 # This happens for instance with `./config.status config.h'.
14833 if test -n "$CONFIG_FILES"; then
14834
14835
14836 ac_cr='
'
14838 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14839 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14840 ac_cs_awk_cr='\\r'
14841 else
14842 ac_cs_awk_cr=$ac_cr
14843 fi
14844
14845 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14846 _ACEOF
14847
14848
14849 {
14850 echo "cat >conf$$subs.awk <<_ACEOF" &&
14851 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14852 echo "_ACEOF"
14853 } >conf$$subs.sh ||
14854 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14855 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14856 { (exit 1); exit 1; }; }
14857 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14858 ac_delim='%!_!# '
14859 for ac_last_try in false false false false false :; do
14860 . ./conf$$subs.sh ||
14861 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14862 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14863 { (exit 1); exit 1; }; }
14864
14865 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14866 if test $ac_delim_n = $ac_delim_num; then
14867 break
14868 elif $ac_last_try; then
14869 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14870 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14871 { (exit 1); exit 1; }; }
14872 else
14873 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14874 fi
14875 done
14876 rm -f conf$$subs.sh
14877
14878 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14879 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14880 _ACEOF
14881 sed -n '
14882 h
14883 s/^/S["/; s/!.*/"]=/
14884 p
14885 g
14886 s/^[^!]*!//
14887 :repl
14888 t repl
14889 s/'"$ac_delim"'$//
14890 t delim
14891 :nl
14892 h
14893 s/\(.\{148\}\).*/\1/
14894 t more1
14895 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14896 p
14897 n
14898 b repl
14899 :more1
14900 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14901 p
14902 g
14903 s/.\{148\}//
14904 t nl
14905 :delim
14906 h
14907 s/\(.\{148\}\).*/\1/
14908 t more2
14909 s/["\\]/\\&/g; s/^/"/; s/$/"/
14910 p
14911 b
14912 :more2
14913 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14914 p
14915 g
14916 s/.\{148\}//
14917 t delim
14918 ' <conf$$subs.awk | sed '
14919 /^[^""]/{
14920 N
14921 s/\n//
14922 }
14923 ' >>$CONFIG_STATUS || ac_write_fail=1
14924 rm -f conf$$subs.awk
14925 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14926 _ACAWK
14927 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14928 for (key in S) S_is_set[key] = 1
14929 FS = ""
14930
14931 }
14932 {
14933 line = $ 0
14934 nfields = split(line, field, "@")
14935 substed = 0
14936 len = length(field[1])
14937 for (i = 2; i < nfields; i++) {
14938 key = field[i]
14939 keylen = length(key)
14940 if (S_is_set[key]) {
14941 value = S[key]
14942 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14943 len += length(value) + length(field[++i])
14944 substed = 1
14945 } else
14946 len += 1 + keylen
14947 }
14948
14949 print line
14950 }
14951
14952 _ACAWK
14953 _ACEOF
14954 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14955 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14956 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14957 else
14958 cat
14959 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14960 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14961 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
14962 { (exit 1); exit 1; }; }
14963 _ACEOF
14964
14965 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14966 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14967 # trailing colons and then remove the whole line if VPATH becomes empty
14968 # (actually we leave an empty line to preserve line numbers).
14969 if test "x$srcdir" = x.; then
14970 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14971 s/:*\$(srcdir):*/:/
14972 s/:*\${srcdir}:*/:/
14973 s/:*@srcdir@:*/:/
14974 s/^\([^=]*=[ ]*\):*/\1/
14975 s/:*$//
14976 s/^[^=]*=[ ]*$//
14977 }'
14978 fi
14979
14980 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14981 fi # test -n "$CONFIG_FILES"
14982
14983 # Set up the scripts for CONFIG_HEADERS section.
14984 # No need to generate them if there are no CONFIG_HEADERS.
14985 # This happens for instance with `./config.status Makefile'.
14986 if test -n "$CONFIG_HEADERS"; then
14987 cat >"$tmp/defines.awk" <<\_ACAWK ||
14988 BEGIN {
14989 _ACEOF
14990
14991 # Transform confdefs.h into an awk script `defines.awk', embedded as
14992 # here-document in config.status, that substitutes the proper values into
14993 # config.h.in to produce config.h.
14994
14995 # Create a delimiter string that does not exist in confdefs.h, to ease
14996 # handling of long lines.
14997 ac_delim='%!_!# '
14998 for ac_last_try in false false :; do
14999 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15000 if test -z "$ac_t"; then
15001 break
15002 elif $ac_last_try; then
15003 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
15004 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
15005 { (exit 1); exit 1; }; }
15006 else
15007 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15008 fi
15009 done
15010
15011 # For the awk script, D is an array of macro values keyed by name,
15012 # likewise P contains macro parameters if any. Preserve backslash
15013 # newline sequences.
15014
15015 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15016 sed -n '
15017 s/.\{148\}/&'"$ac_delim"'/g
15018 t rset
15019 :rset
15020 s/^[ ]*#[ ]*define[ ][ ]*/ /
15021 t def
15022 d
15023 :def
15024 s/\\$//
15025 t bsnl
15026 s/["\\]/\\&/g
15027 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15028 D["\1"]=" \3"/p
15029 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15030 d
15031 :bsnl
15032 s/["\\]/\\&/g
15033 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15034 D["\1"]=" \3\\\\\\n"\\/p
15035 t cont
15036 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15037 t cont
15038 d
15039 :cont
15040 n
15041 s/.\{148\}/&'"$ac_delim"'/g
15042 t clear
15043 :clear
15044 s/\\$//
15045 t bsnlc
15046 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15047 d
15048 :bsnlc
15049 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15050 b cont
15051 ' <confdefs.h | sed '
15052 s/'"$ac_delim"'/"\\\
15053 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15054
15055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15056 for (key in D) D_is_set[key] = 1
15057 FS = ""
15058 }
15059 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15060 line = \$ 0
15061 split(line, arg, " ")
15062 if (arg[1] == "#") {
15063 defundef = arg[2]
15064 mac1 = arg[3]
15065 } else {
15066 defundef = substr(arg[1], 2)
15067 mac1 = arg[2]
15068 }
15069 split(mac1, mac2, "(") #)
15070 macro = mac2[1]
15071 prefix = substr(line, 1, index(line, defundef) - 1)
15072 if (D_is_set[macro]) {
15073 # Preserve the white space surrounding the "#".
15074 print prefix "define", macro P[macro] D[macro]
15075 next
15076 } else {
15077 # Replace #undef with comments. This is necessary, for example,
15078 # in the case of _POSIX_SOURCE, which is predefined and required
15079 # on some systems where configure will not decide to define it.
15080 if (defundef == "undef") {
15081 print "/*", prefix defundef, macro, "*/"
15082 next
15083 }
15084 }
15085 }
15086 { print }
15087 _ACAWK
15088 _ACEOF
15089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15090 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
15091 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
15092 { (exit 1); exit 1; }; }
15093 fi # test -n "$CONFIG_HEADERS"
15094
15095
15096 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15097 shift
15098 for ac_tag
15099 do
15100 case $ac_tag in
15101 :[FHLC]) ac_mode=$ac_tag; continue;;
15102 esac
15103 case $ac_mode$ac_tag in
15104 :[FHL]*:*);;
15105 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
15106 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
15107 { (exit 1); exit 1; }; };;
15108 :[FH]-) ac_tag=-:-;;
15109 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15110 esac
15111 ac_save_IFS=$IFS
15112 IFS=:
15113 set x $ac_tag
15114 IFS=$ac_save_IFS
15115 shift
15116 ac_file=$1
15117 shift
15118
15119 case $ac_mode in
15120 :L) ac_source=$1;;
15121 :[FH])
15122 ac_file_inputs=
15123 for ac_f
15124 do
15125 case $ac_f in
15126 -) ac_f="$tmp/stdin";;
15127 *) # Look for the file first in the build tree, then in the source tree
15128 # (if the path is not absolute). The absolute path cannot be DOS-style,
15129 # because $ac_f cannot contain `:'.
15130 test -f "$ac_f" ||
15131 case $ac_f in
15132 [\\/$]*) false;;
15133 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15134 esac ||
15135 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15136 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15137 { (exit 1); exit 1; }; };;
15138 esac
15139 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15140 ac_file_inputs="$ac_file_inputs '$ac_f'"
15141 done
15142
15143 # Let's still pretend it is `configure' which instantiates (i.e., don't
15144 # use $as_me), people would be surprised to read:
15145 # /* config.h. Generated by config.status. */
15146 configure_input='Generated from '`
15147 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15148 `' by configure.'
15149 if test x"$ac_file" != x-; then
15150 configure_input="$ac_file. $configure_input"
15151 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
15152 $as_echo "$as_me: creating $ac_file" >&6;}
15153 fi
15154 # Neutralize special characters interpreted by sed in replacement strings.
15155 case $configure_input in #(
15156 *\&* | *\|* | *\\* )
15157 ac_sed_conf_input=`$as_echo "$configure_input" |
15158 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15159 *) ac_sed_conf_input=$configure_input;;
15160 esac
15161
15162 case $ac_tag in
15163 *:-:* | *:-) cat >"$tmp/stdin" \
15164 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15165 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15166 { (exit 1); exit 1; }; } ;;
15167 esac
15168 ;;
15169 esac
15170
15171 ac_dir=`$as_dirname -- "$ac_file" ||
15172 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15173 X"$ac_file" : 'X\(//\)[^/]' \| \
15174 X"$ac_file" : 'X\(//\)$' \| \
15175 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15176 $as_echo X"$ac_file" |
15177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15178 s//\1/
15179 q
15180 }
15181 /^X\(\/\/\)[^/].*/{
15182 s//\1/
15183 q
15184 }
15185 /^X\(\/\/\)$/{
15186 s//\1/
15187 q
15188 }
15189 /^X\(\/\).*/{
15190 s//\1/
15191 q
15192 }
15193 s/.*/./; q'`
15194 { as_dir="$ac_dir"
15195 case $as_dir in #(
15196 -*) as_dir=./$as_dir;;
15197 esac
15198 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15199 as_dirs=
15200 while :; do
15201 case $as_dir in #(
15202 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15203 *) as_qdir=$as_dir;;
15204 esac
15205 as_dirs="'$as_qdir' $as_dirs"
15206 as_dir=`$as_dirname -- "$as_dir" ||
15207 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15208 X"$as_dir" : 'X\(//\)[^/]' \| \
15209 X"$as_dir" : 'X\(//\)$' \| \
15210 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15211 $as_echo X"$as_dir" |
15212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15213 s//\1/
15214 q
15215 }
15216 /^X\(\/\/\)[^/].*/{
15217 s//\1/
15218 q
15219 }
15220 /^X\(\/\/\)$/{
15221 s//\1/
15222 q
15223 }
15224 /^X\(\/\).*/{
15225 s//\1/
15226 q
15227 }
15228 s/.*/./; q'`
15229 test -d "$as_dir" && break
15230 done
15231 test -z "$as_dirs" || eval "mkdir $as_dirs"
15232 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15233 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15234 { (exit 1); exit 1; }; }; }
15235 ac_builddir=.
15236
15237 case "$ac_dir" in
15238 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15239 *)
15240 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15241 # A ".." for each directory in $ac_dir_suffix.
15242 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15243 case $ac_top_builddir_sub in
15244 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15245 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15246 esac ;;
15247 esac
15248 ac_abs_top_builddir=$ac_pwd
15249 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15250 # for backward compatibility:
15251 ac_top_builddir=$ac_top_build_prefix
15252
15253 case $srcdir in
15254 .) # We are building in place.
15255 ac_srcdir=.
15256 ac_top_srcdir=$ac_top_builddir_sub
15257 ac_abs_top_srcdir=$ac_pwd ;;
15258 [\\/]* | ?:[\\/]* ) # Absolute name.
15259 ac_srcdir=$srcdir$ac_dir_suffix;
15260 ac_top_srcdir=$srcdir
15261 ac_abs_top_srcdir=$srcdir ;;
15262 *) # Relative name.
15263 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15264 ac_top_srcdir=$ac_top_build_prefix$srcdir
15265 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15266 esac
15267 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15268
15269
15270 case $ac_mode in
15271 :F)
15272 #
15273 # CONFIG_FILE
15274 #
15275
15276 case $INSTALL in
15277 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15278 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15279 esac
15280 ac_MKDIR_P=$MKDIR_P
15281 case $MKDIR_P in
15282 [\\/$]* | ?:[\\/]* ) ;;
15283 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15284 esac
15285 _ACEOF
15286
15287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15288 # If the template does not know about datarootdir, expand it.
15289 # FIXME: This hack should be removed a few years after 2.60.
15290 ac_datarootdir_hack=; ac_datarootdir_seen=
15291
15292 ac_sed_dataroot='
15293 /datarootdir/ {
15294 p
15295 q
15296 }
15297 /@datadir@/p
15298 /@docdir@/p
15299 /@infodir@/p
15300 /@localedir@/p
15301 /@mandir@/p
15302 '
15303 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15304 *datarootdir*) ac_datarootdir_seen=yes;;
15305 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15306 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15307 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15308 _ACEOF
15309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15310 ac_datarootdir_hack='
15311 s&@datadir@&$datadir&g
15312 s&@docdir@&$docdir&g
15313 s&@infodir@&$infodir&g
15314 s&@localedir@&$localedir&g
15315 s&@mandir@&$mandir&g
15316 s&\\\${datarootdir}&$datarootdir&g' ;;
15317 esac
15318 _ACEOF
15319
15320 # Neutralize VPATH when `$srcdir' = `.'.
15321 # Shell code in configure.ac might set extrasub.
15322 # FIXME: do we really want to maintain this feature?
15323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15324 ac_sed_extra="$ac_vpsub
15325 $extrasub
15326 _ACEOF
15327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15328 :t
15329 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15330 s|@configure_input@|$ac_sed_conf_input|;t t
15331 s&@top_builddir@&$ac_top_builddir_sub&;t t
15332 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15333 s&@srcdir@&$ac_srcdir&;t t
15334 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15335 s&@top_srcdir@&$ac_top_srcdir&;t t
15336 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15337 s&@builddir@&$ac_builddir&;t t
15338 s&@abs_builddir@&$ac_abs_builddir&;t t
15339 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15340 s&@INSTALL@&$ac_INSTALL&;t t
15341 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15342 $ac_datarootdir_hack
15343 "
15344 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15345 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15346 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15347 { (exit 1); exit 1; }; }
15348
15349 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15350 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15351 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15352 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15353 which seems to be undefined. Please make sure it is defined." >&5
15354 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15355 which seems to be undefined. Please make sure it is defined." >&2;}
15356
15357 rm -f "$tmp/stdin"
15358 case $ac_file in
15359 -) cat "$tmp/out" && rm -f "$tmp/out";;
15360 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15361 esac \
15362 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15363 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15364 { (exit 1); exit 1; }; }
15365 ;;
15366 :H)
15367 #
15368 # CONFIG_HEADER
15369 #
15370 if test x"$ac_file" != x-; then
15371 {
15372 $as_echo "/* $configure_input */" \
15373 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15374 } >"$tmp/config.h" \
15375 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15376 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15377 { (exit 1); exit 1; }; }
15378 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15379 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15380 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15381 else
15382 rm -f "$ac_file"
15383 mv "$tmp/config.h" "$ac_file" \
15384 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15385 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15386 { (exit 1); exit 1; }; }
15387 fi
15388 else
15389 $as_echo "/* $configure_input */" \
15390 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15391 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
15392 $as_echo "$as_me: error: could not create -" >&2;}
15393 { (exit 1); exit 1; }; }
15394 fi
15395 # Compute "$ac_file"'s index in $config_headers.
15396 _am_arg="$ac_file"
15397 _am_stamp_count=1
15398 for _am_header in $config_headers :; do
15399 case $_am_header in
15400 $_am_arg | $_am_arg:* )
15401 break ;;
15402 * )
15403 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15404 esac
15405 done
15406 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15407 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15408 X"$_am_arg" : 'X\(//\)[^/]' \| \
15409 X"$_am_arg" : 'X\(//\)$' \| \
15410 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15411 $as_echo X"$_am_arg" |
15412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15413 s//\1/
15414 q
15415 }
15416 /^X\(\/\/\)[^/].*/{
15417 s//\1/
15418 q
15419 }
15420 /^X\(\/\/\)$/{
15421 s//\1/
15422 q
15423 }
15424 /^X\(\/\).*/{
15425 s//\1/
15426 q
15427 }
15428 s/.*/./; q'`/stamp-h$_am_stamp_count
15429 ;;
15430
15431 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
15432 $as_echo "$as_me: executing $ac_file commands" >&6;}
15433 ;;
15434 esac
15435
15436
15437 case $ac_file$ac_mode in
15438 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15439 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15440 # are listed without --file. Let's play safe and only enable the eval
15441 # if we detect the quoting.
15442 case $CONFIG_FILES in
15443 *\'*) eval set x "$CONFIG_FILES" ;;
15444 *) set x $CONFIG_FILES ;;
15445 esac
15446 shift
15447 for mf
15448 do
15449 # Strip MF so we end up with the name of the file.
15450 mf=`echo "$mf" | sed -e 's/:.*$//'`
15451 # Check whether this is an Automake generated Makefile or not.
15452 # We used to match only the files named `Makefile.in', but
15453 # some people rename them; so instead we look at the file content.
15454 # Grep'ing the first line is not enough: some people post-process
15455 # each Makefile.in and add a new line on top of each file to say so.
15456 # Grep'ing the whole file is not good either: AIX grep has a line
15457 # limit of 2048, but all sed's we know have understand at least 4000.
15458 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15459 dirpart=`$as_dirname -- "$mf" ||
15460 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15461 X"$mf" : 'X\(//\)[^/]' \| \
15462 X"$mf" : 'X\(//\)$' \| \
15463 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15464 $as_echo X"$mf" |
15465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15466 s//\1/
15467 q
15468 }
15469 /^X\(\/\/\)[^/].*/{
15470 s//\1/
15471 q
15472 }
15473 /^X\(\/\/\)$/{
15474 s//\1/
15475 q
15476 }
15477 /^X\(\/\).*/{
15478 s//\1/
15479 q
15480 }
15481 s/.*/./; q'`
15482 else
15483 continue
15484 fi
15485 # Extract the definition of DEPDIR, am__include, and am__quote
15486 # from the Makefile without running `make'.
15487 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15488 test -z "$DEPDIR" && continue
15489 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15490 test -z "am__include" && continue
15491 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15492 # When using ansi2knr, U may be empty or an underscore; expand it
15493 U=`sed -n 's/^U = //p' < "$mf"`
15494 # Find all dependency output files, they are included files with
15495 # $(DEPDIR) in their names. We invoke sed twice because it is the
15496 # simplest approach to changing $(DEPDIR) to its actual value in the
15497 # expansion.
15498 for file in `sed -n "
15499 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15500 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15501 # Make sure the directory exists.
15502 test -f "$dirpart/$file" && continue
15503 fdir=`$as_dirname -- "$file" ||
15504 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15505 X"$file" : 'X\(//\)[^/]' \| \
15506 X"$file" : 'X\(//\)$' \| \
15507 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15508 $as_echo X"$file" |
15509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15510 s//\1/
15511 q
15512 }
15513 /^X\(\/\/\)[^/].*/{
15514 s//\1/
15515 q
15516 }
15517 /^X\(\/\/\)$/{
15518 s//\1/
15519 q
15520 }
15521 /^X\(\/\).*/{
15522 s//\1/
15523 q
15524 }
15525 s/.*/./; q'`
15526 { as_dir=$dirpart/$fdir
15527 case $as_dir in #(
15528 -*) as_dir=./$as_dir;;
15529 esac
15530 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15531 as_dirs=
15532 while :; do
15533 case $as_dir in #(
15534 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15535 *) as_qdir=$as_dir;;
15536 esac
15537 as_dirs="'$as_qdir' $as_dirs"
15538 as_dir=`$as_dirname -- "$as_dir" ||
15539 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15540 X"$as_dir" : 'X\(//\)[^/]' \| \
15541 X"$as_dir" : 'X\(//\)$' \| \
15542 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15543 $as_echo X"$as_dir" |
15544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15545 s//\1/
15546 q
15547 }
15548 /^X\(\/\/\)[^/].*/{
15549 s//\1/
15550 q
15551 }
15552 /^X\(\/\/\)$/{
15553 s//\1/
15554 q
15555 }
15556 /^X\(\/\).*/{
15557 s//\1/
15558 q
15559 }
15560 s/.*/./; q'`
15561 test -d "$as_dir" && break
15562 done
15563 test -z "$as_dirs" || eval "mkdir $as_dirs"
15564 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15565 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15566 { (exit 1); exit 1; }; }; }
15567 # echo "creating $dirpart/$file"
15568 echo '# dummy' > "$dirpart/$file"
15569 done
15570 done
15571 }
15572 ;;
15573 "libtool":C)
15574
15575 # See if we are running on zsh, and set the options which allow our
15576 # commands through without removal of \ escapes.
15577 if test -n "${ZSH_VERSION+set}" ; then
15578 setopt NO_GLOB_SUBST
15579 fi
15580
15581 cfgfile="${ofile}T"
15582 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15583 $RM "$cfgfile"
15584
15585 cat <<_LT_EOF >> "$cfgfile"
15586 #! $SHELL
15587
15588 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15589 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15590 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15591 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15592 #
15593 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15594 # 2006, 2007, 2008 Free Software Foundation, Inc.
15595 # Written by Gordon Matzigkeit, 1996
15596 #
15597 # This file is part of GNU Libtool.
15598 #
15599 # GNU Libtool is free software; you can redistribute it and/or
15600 # modify it under the terms of the GNU General Public License as
15601 # published by the Free Software Foundation; either version 2 of
15602 # the License, or (at your option) any later version.
15603 #
15604 # As a special exception to the GNU General Public License,
15605 # if you distribute this file as part of a program or library that
15606 # is built using GNU Libtool, you may include this file under the
15607 # same distribution terms that you use for the rest of that program.
15608 #
15609 # GNU Libtool is distributed in the hope that it will be useful,
15610 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15611 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15612 # GNU General Public License for more details.
15613 #
15614 # You should have received a copy of the GNU General Public License
15615 # along with GNU Libtool; see the file COPYING. If not, a copy
15616 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15617 # obtained by writing to the Free Software Foundation, Inc.,
15618 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15619
15620
15621 # The names of the tagged configurations supported by this script.
15622 available_tags=""
15623
15624 # ### BEGIN LIBTOOL CONFIG
15625
15626 # Whether or not to build static libraries.
15627 build_old_libs=$enable_static
15628
15629 # Which release of libtool.m4 was used?
15630 macro_version=$macro_version
15631 macro_revision=$macro_revision
15632
15633 # Whether or not to build shared libraries.
15634 build_libtool_libs=$enable_shared
15635
15636 # What type of objects to build.
15637 pic_mode=$pic_mode
15638
15639 # Whether or not to optimize for fast installation.
15640 fast_install=$enable_fast_install
15641
15642 # The host system.
15643 host_alias=$host_alias
15644 host=$host
15645 host_os=$host_os
15646
15647 # The build system.
15648 build_alias=$build_alias
15649 build=$build
15650 build_os=$build_os
15651
15652 # A sed program that does not truncate output.
15653 SED=$lt_SED
15654
15655 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15656 Xsed="\$SED -e 1s/^X//"
15657
15658 # A grep program that handles long lines.
15659 GREP=$lt_GREP
15660
15661 # An ERE matcher.
15662 EGREP=$lt_EGREP
15663
15664 # A literal string matcher.
15665 FGREP=$lt_FGREP
15666
15667 # A BSD- or MS-compatible name lister.
15668 NM=$lt_NM
15669
15670 # Whether we need soft or hard links.
15671 LN_S=$lt_LN_S
15672
15673 # What is the maximum length of a command?
15674 max_cmd_len=$max_cmd_len
15675
15676 # Object file suffix (normally "o").
15677 objext=$ac_objext
15678
15679 # Executable file suffix (normally "").
15680 exeext=$exeext
15681
15682 # whether the shell understands "unset".
15683 lt_unset=$lt_unset
15684
15685 # turn spaces into newlines.
15686 SP2NL=$lt_lt_SP2NL
15687
15688 # turn newlines into spaces.
15689 NL2SP=$lt_lt_NL2SP
15690
15691 # How to create reloadable object files.
15692 reload_flag=$lt_reload_flag
15693 reload_cmds=$lt_reload_cmds
15694
15695 # An object symbol dumper.
15696 OBJDUMP=$lt_OBJDUMP
15697
15698 # Method to check whether dependent libraries are shared objects.
15699 deplibs_check_method=$lt_deplibs_check_method
15700
15701 # Command to use when deplibs_check_method == "file_magic".
15702 file_magic_cmd=$lt_file_magic_cmd
15703
15704 # The archiver.
15705 AR=$lt_AR
15706 AR_FLAGS=$lt_AR_FLAGS
15707
15708 # A symbol stripping program.
15709 STRIP=$lt_STRIP
15710
15711 # Commands used to install an old-style archive.
15712 RANLIB=$lt_RANLIB
15713 old_postinstall_cmds=$lt_old_postinstall_cmds
15714 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15715
15716 # A C compiler.
15717 LTCC=$lt_CC
15718
15719 # LTCC compiler flags.
15720 LTCFLAGS=$lt_CFLAGS
15721
15722 # Take the output of nm and produce a listing of raw symbols and C names.
15723 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15724
15725 # Transform the output of nm in a proper C declaration.
15726 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15727
15728 # Transform the output of nm in a C name address pair.
15729 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15730
15731 # Transform the output of nm in a C name address pair when lib prefix is needed.
15732 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15733
15734 # The name of the directory that contains temporary libtool files.
15735 objdir=$objdir
15736
15737 # Shell to use when invoking shell scripts.
15738 SHELL=$lt_SHELL
15739
15740 # An echo program that does not interpret backslashes.
15741 ECHO=$lt_ECHO
15742
15743 # Used to examine libraries when file_magic_cmd begins with "file".
15744 MAGIC_CMD=$MAGIC_CMD
15745
15746 # Must we lock files when doing compilation?
15747 need_locks=$lt_need_locks
15748
15749 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15750 DSYMUTIL=$lt_DSYMUTIL
15751
15752 # Tool to change global to local symbols on Mac OS X.
15753 NMEDIT=$lt_NMEDIT
15754
15755 # Tool to manipulate fat objects and archives on Mac OS X.
15756 LIPO=$lt_LIPO
15757
15758 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15759 OTOOL=$lt_OTOOL
15760
15761 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15762 OTOOL64=$lt_OTOOL64
15763
15764 # Old archive suffix (normally "a").
15765 libext=$libext
15766
15767 # Shared library suffix (normally ".so").
15768 shrext_cmds=$lt_shrext_cmds
15769
15770 # The commands to extract the exported symbol list from a shared archive.
15771 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15772
15773 # Variables whose values should be saved in libtool wrapper scripts and
15774 # restored at link time.
15775 variables_saved_for_relink=$lt_variables_saved_for_relink
15776
15777 # Do we need the "lib" prefix for modules?
15778 need_lib_prefix=$need_lib_prefix
15779
15780 # Do we need a version for libraries?
15781 need_version=$need_version
15782
15783 # Library versioning type.
15784 version_type=$version_type
15785
15786 # Shared library runtime path variable.
15787 runpath_var=$runpath_var
15788
15789 # Shared library path variable.
15790 shlibpath_var=$shlibpath_var
15791
15792 # Is shlibpath searched before the hard-coded library search path?
15793 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15794
15795 # Format of library name prefix.
15796 libname_spec=$lt_libname_spec
15797
15798 # List of archive names. First name is the real one, the rest are links.
15799 # The last name is the one that the linker finds with -lNAME
15800 library_names_spec=$lt_library_names_spec
15801
15802 # The coded name of the library, if different from the real name.
15803 soname_spec=$lt_soname_spec
15804
15805 # Command to use after installation of a shared archive.
15806 postinstall_cmds=$lt_postinstall_cmds
15807
15808 # Command to use after uninstallation of a shared archive.
15809 postuninstall_cmds=$lt_postuninstall_cmds
15810
15811 # Commands used to finish a libtool library installation in a directory.
15812 finish_cmds=$lt_finish_cmds
15813
15814 # As "finish_cmds", except a single script fragment to be evaled but
15815 # not shown.
15816 finish_eval=$lt_finish_eval
15817
15818 # Whether we should hardcode library paths into libraries.
15819 hardcode_into_libs=$hardcode_into_libs
15820
15821 # Compile-time system search path for libraries.
15822 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15823
15824 # Run-time system search path for libraries.
15825 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15826
15827 # Whether dlopen is supported.
15828 dlopen_support=$enable_dlopen
15829
15830 # Whether dlopen of programs is supported.
15831 dlopen_self=$enable_dlopen_self
15832
15833 # Whether dlopen of statically linked programs is supported.
15834 dlopen_self_static=$enable_dlopen_self_static
15835
15836 # Commands to strip libraries.
15837 old_striplib=$lt_old_striplib
15838 striplib=$lt_striplib
15839
15840
15841 # The linker used to build libraries.
15842 LD=$lt_LD
15843
15844 # Commands used to build an old-style archive.
15845 old_archive_cmds=$lt_old_archive_cmds
15846
15847 # A language specific compiler.
15848 CC=$lt_compiler
15849
15850 # Is the compiler the GNU compiler?
15851 with_gcc=$GCC
15852
15853 # Compiler flag to turn off builtin functions.
15854 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15855
15856 # How to pass a linker flag through the compiler.
15857 wl=$lt_lt_prog_compiler_wl
15858
15859 # Additional compiler flags for building library objects.
15860 pic_flag=$lt_lt_prog_compiler_pic
15861
15862 # Compiler flag to prevent dynamic linking.
15863 link_static_flag=$lt_lt_prog_compiler_static
15864
15865 # Does compiler simultaneously support -c and -o options?
15866 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15867
15868 # Whether or not to add -lc for building shared libraries.
15869 build_libtool_need_lc=$archive_cmds_need_lc
15870
15871 # Whether or not to disallow shared libs when runtime libs are static.
15872 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15873
15874 # Compiler flag to allow reflexive dlopens.
15875 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15876
15877 # Compiler flag to generate shared objects directly from archives.
15878 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15879
15880 # Whether the compiler copes with passing no objects directly.
15881 compiler_needs_object=$lt_compiler_needs_object
15882
15883 # Create an old-style archive from a shared archive.
15884 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15885
15886 # Create a temporary old-style archive to link instead of a shared archive.
15887 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15888
15889 # Commands used to build a shared archive.
15890 archive_cmds=$lt_archive_cmds
15891 archive_expsym_cmds=$lt_archive_expsym_cmds
15892
15893 # Commands used to build a loadable module if different from building
15894 # a shared archive.
15895 module_cmds=$lt_module_cmds
15896 module_expsym_cmds=$lt_module_expsym_cmds
15897
15898 # Whether we are building with GNU ld or not.
15899 with_gnu_ld=$lt_with_gnu_ld
15900
15901 # Flag that allows shared libraries with undefined symbols to be built.
15902 allow_undefined_flag=$lt_allow_undefined_flag
15903
15904 # Flag that enforces no undefined symbols.
15905 no_undefined_flag=$lt_no_undefined_flag
15906
15907 # Flag to hardcode \$libdir into a binary during linking.
15908 # This must work even if \$libdir does not exist
15909 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15910
15911 # If ld is used when linking, flag to hardcode \$libdir into a binary
15912 # during linking. This must work even if \$libdir does not exist.
15913 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15914
15915 # Whether we need a single "-rpath" flag with a separated argument.
15916 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15917
15918 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15919 # DIR into the resulting binary.
15920 hardcode_direct=$hardcode_direct
15921
15922 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15923 # DIR into the resulting binary and the resulting library dependency is
15924 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15925 # library is relocated.
15926 hardcode_direct_absolute=$hardcode_direct_absolute
15927
15928 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15929 # into the resulting binary.
15930 hardcode_minus_L=$hardcode_minus_L
15931
15932 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15933 # into the resulting binary.
15934 hardcode_shlibpath_var=$hardcode_shlibpath_var
15935
15936 # Set to "yes" if building a shared library automatically hardcodes DIR
15937 # into the library and all subsequent libraries and executables linked
15938 # against it.
15939 hardcode_automatic=$hardcode_automatic
15940
15941 # Set to yes if linker adds runtime paths of dependent libraries
15942 # to runtime path list.
15943 inherit_rpath=$inherit_rpath
15944
15945 # Whether libtool must link a program against all its dependency libraries.
15946 link_all_deplibs=$link_all_deplibs
15947
15948 # Fix the shell variable \$srcfile for the compiler.
15949 fix_srcfile_path=$lt_fix_srcfile_path
15950
15951 # Set to "yes" if exported symbols are required.
15952 always_export_symbols=$always_export_symbols
15953
15954 # The commands to list exported symbols.
15955 export_symbols_cmds=$lt_export_symbols_cmds
15956
15957 # Symbols that should not be listed in the preloaded symbols.
15958 exclude_expsyms=$lt_exclude_expsyms
15959
15960 # Symbols that must always be exported.
15961 include_expsyms=$lt_include_expsyms
15962
15963 # Commands necessary for linking programs (against libraries) with templates.
15964 prelink_cmds=$lt_prelink_cmds
15965
15966 # Specify filename containing input files.
15967 file_list_spec=$lt_file_list_spec
15968
15969 # How to hardcode a shared library path into an executable.
15970 hardcode_action=$hardcode_action
15971
15972 # ### END LIBTOOL CONFIG
15973
15974 _LT_EOF
15975
15976 case $host_os in
15977 aix3*)
15978 cat <<\_LT_EOF >> "$cfgfile"
15979 # AIX sometimes has problems with the GCC collect2 program. For some
15980 # reason, if we set the COLLECT_NAMES environment variable, the problems
15981 # vanish in a puff of smoke.
15982 if test "X${COLLECT_NAMES+set}" != Xset; then
15983 COLLECT_NAMES=
15984 export COLLECT_NAMES
15985 fi
15986 _LT_EOF
15987 ;;
15988 esac
15989
15990
15991 ltmain="$ac_aux_dir/ltmain.sh"
15992
15993
15994 # We use sed instead of cat because bash on DJGPP gets confused if
15995 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15996 # text mode, it properly converts lines to CR/LF. This bash problem
15997 # is reportedly fixed, but why not run on old versions too?
15998 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15999 || (rm -f "$cfgfile"; exit 1)
16000
16001 case $xsi_shell in
16002 yes)
16003 cat << \_LT_EOF >> "$cfgfile"
16004
16005 # func_dirname file append nondir_replacement
16006 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16007 # otherwise set result to NONDIR_REPLACEMENT.
16008 func_dirname ()
16009 {
16010 case ${1} in
16011 */*) func_dirname_result="${1%/*}${2}" ;;
16012 * ) func_dirname_result="${3}" ;;
16013 esac
16014 }
16015
16016 # func_basename file
16017 func_basename ()
16018 {
16019 func_basename_result="${1##*/}"
16020 }
16021
16022 # func_dirname_and_basename file append nondir_replacement
16023 # perform func_basename and func_dirname in a single function
16024 # call:
16025 # dirname: Compute the dirname of FILE. If nonempty,
16026 # add APPEND to the result, otherwise set result
16027 # to NONDIR_REPLACEMENT.
16028 # value returned in "$func_dirname_result"
16029 # basename: Compute filename of FILE.
16030 # value retuned in "$func_basename_result"
16031 # Implementation must be kept synchronized with func_dirname
16032 # and func_basename. For efficiency, we do not delegate to
16033 # those functions but instead duplicate the functionality here.
16034 func_dirname_and_basename ()
16035 {
16036 case ${1} in
16037 */*) func_dirname_result="${1%/*}${2}" ;;
16038 * ) func_dirname_result="${3}" ;;
16039 esac
16040 func_basename_result="${1##*/}"
16041 }
16042
16043 # func_stripname prefix suffix name
16044 # strip PREFIX and SUFFIX off of NAME.
16045 # PREFIX and SUFFIX must not contain globbing or regex special
16046 # characters, hashes, percent signs, but SUFFIX may contain a leading
16047 # dot (in which case that matches only a dot).
16048 func_stripname ()
16049 {
16050 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16051 # positional parameters, so assign one to ordinary parameter first.
16052 func_stripname_result=${3}
16053 func_stripname_result=${func_stripname_result#"${1}"}
16054 func_stripname_result=${func_stripname_result%"${2}"}
16055 }
16056
16057 # func_opt_split
16058 func_opt_split ()
16059 {
16060 func_opt_split_opt=${1%%=*}
16061 func_opt_split_arg=${1#*=}
16062 }
16063
16064 # func_lo2o object
16065 func_lo2o ()
16066 {
16067 case ${1} in
16068 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16069 *) func_lo2o_result=${1} ;;
16070 esac
16071 }
16072
16073 # func_xform libobj-or-source
16074 func_xform ()
16075 {
16076 func_xform_result=${1%.*}.lo
16077 }
16078
16079 # func_arith arithmetic-term...
16080 func_arith ()
16081 {
16082 func_arith_result=$(( $* ))
16083 }
16084
16085 # func_len string
16086 # STRING may not start with a hyphen.
16087 func_len ()
16088 {
16089 func_len_result=${#1}
16090 }
16091
16092 _LT_EOF
16093 ;;
16094 *) # Bourne compatible functions.
16095 cat << \_LT_EOF >> "$cfgfile"
16096
16097 # func_dirname file append nondir_replacement
16098 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16099 # otherwise set result to NONDIR_REPLACEMENT.
16100 func_dirname ()
16101 {
16102 # Extract subdirectory from the argument.
16103 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16104 if test "X$func_dirname_result" = "X${1}"; then
16105 func_dirname_result="${3}"
16106 else
16107 func_dirname_result="$func_dirname_result${2}"
16108 fi
16109 }
16110
16111 # func_basename file
16112 func_basename ()
16113 {
16114 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16115 }
16116
16117
16118 # func_stripname prefix suffix name
16119 # strip PREFIX and SUFFIX off of NAME.
16120 # PREFIX and SUFFIX must not contain globbing or regex special
16121 # characters, hashes, percent signs, but SUFFIX may contain a leading
16122 # dot (in which case that matches only a dot).
16123 # func_strip_suffix prefix name
16124 func_stripname ()
16125 {
16126 case ${2} in
16127 .*) func_stripname_result=`$ECHO "X${3}" \
16128 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16129 *) func_stripname_result=`$ECHO "X${3}" \
16130 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16131 esac
16132 }
16133
16134 # sed scripts:
16135 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16136 my_sed_long_arg='1s/^-[^=]*=//'
16137
16138 # func_opt_split
16139 func_opt_split ()
16140 {
16141 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16142 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16143 }
16144
16145 # func_lo2o object
16146 func_lo2o ()
16147 {
16148 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16149 }
16150
16151 # func_xform libobj-or-source
16152 func_xform ()
16153 {
16154 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16155 }
16156
16157 # func_arith arithmetic-term...
16158 func_arith ()
16159 {
16160 func_arith_result=`expr "$@"`
16161 }
16162
16163 # func_len string
16164 # STRING may not start with a hyphen.
16165 func_len ()
16166 {
16167 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16168 }
16169
16170 _LT_EOF
16171 esac
16172
16173 case $lt_shell_append in
16174 yes)
16175 cat << \_LT_EOF >> "$cfgfile"
16176
16177 # func_append var value
16178 # Append VALUE to the end of shell variable VAR.
16179 func_append ()
16180 {
16181 eval "$1+=\$2"
16182 }
16183 _LT_EOF
16184 ;;
16185 *)
16186 cat << \_LT_EOF >> "$cfgfile"
16187
16188 # func_append var value
16189 # Append VALUE to the end of shell variable VAR.
16190 func_append ()
16191 {
16192 eval "$1=\$$1\$2"
16193 }
16194
16195 _LT_EOF
16196 ;;
16197 esac
16198
16199
16200 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16201 || (rm -f "$cfgfile"; exit 1)
16202
16203 mv -f "$cfgfile" "$ofile" ||
16204 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16205 chmod +x "$ofile"
16206
16207 ;;
16208
16209 esac
16210 done # for ac_tag
16211
16212
16213 { (exit 0); exit 0; }
16214 _ACEOF
16215 chmod +x $CONFIG_STATUS
16216 ac_clean_files=$ac_clean_files_save
16217
16218 test $ac_write_fail = 0 ||
16219 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16220 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16221 { (exit 1); exit 1; }; }
16222
16223
16224 # configure is writing to config.log, and then calls config.status.
16225 # config.status does its own redirection, appending to config.log.
16226 # Unfortunately, on DOS this fails, as config.log is still kept open
16227 # by configure, so config.status won't be able to write to it; its
16228 # output is simply discarded. So we exec the FD to /dev/null,
16229 # effectively closing config.log, so it can be properly (re)opened and
16230 # appended to by config.status. When coming back to configure, we
16231 # need to make the FD available again.
16232 if test "$no_create" != yes; then
16233 ac_cs_success=:
16234 ac_config_status_args=
16235 test "$silent" = yes &&
16236 ac_config_status_args="$ac_config_status_args --quiet"
16237 exec 5>/dev/null
16238 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16239 exec 5>>config.log
16240 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16241 # would make configure fail if this is the last instruction.
16242 $ac_cs_success || { (exit 1); exit 1; }
16243 fi
16244 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16245 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16246 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16247 fi
16248
16249