configure revision 1.1.1.8 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for xf86-video-ati 6.14.1.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
104
105 ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152 esac
153 fi
154 "
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169 exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179 else
180 as_have_required=no
181 fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202 fi
203 fi
204 done;;
205 esac
206 as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
234 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
235 $0: about your system, including any error possibly output
236 $0: before this message. Then install a modern shell, or
237 $0: manually run the script under such a shell if you do
238 $0: have one."
239 fi
240 exit 1
241 fi
242 fi
243 fi
244 SHELL=${CONFIG_SHELL-/bin/sh}
245 export SHELL
246 # Unset more variables known to interfere with behavior of common tools.
247 CLICOLOR_FORCE= GREP_OPTIONS=
248 unset CLICOLOR_FORCE GREP_OPTIONS
249
250 ## --------------------- ##
251 ## M4sh Shell Functions. ##
252 ## --------------------- ##
253 # as_fn_unset VAR
254 # ---------------
255 # Portably unset VAR.
256 as_fn_unset ()
257 {
258 { eval $1=; unset $1;}
259 }
260 as_unset=as_fn_unset
261
262 # as_fn_set_status STATUS
263 # -----------------------
264 # Set $? to STATUS, without forking.
265 as_fn_set_status ()
266 {
267 return $1
268 } # as_fn_set_status
269
270 # as_fn_exit STATUS
271 # -----------------
272 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273 as_fn_exit ()
274 {
275 set +e
276 as_fn_set_status $1
277 exit $1
278 } # as_fn_exit
279
280 # as_fn_mkdir_p
281 # -------------
282 # Create "$as_dir" as a directory, including parents if necessary.
283 as_fn_mkdir_p ()
284 {
285
286 case $as_dir in #(
287 -*) as_dir=./$as_dir;;
288 esac
289 test -d "$as_dir" || eval $as_mkdir_p || {
290 as_dirs=
291 while :; do
292 case $as_dir in #(
293 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294 *) as_qdir=$as_dir;;
295 esac
296 as_dirs="'$as_qdir' $as_dirs"
297 as_dir=`$as_dirname -- "$as_dir" ||
298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299 X"$as_dir" : 'X\(//\)[^/]' \| \
300 X"$as_dir" : 'X\(//\)$' \| \
301 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302 $as_echo X"$as_dir" |
303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)[^/].*/{
308 s//\1/
309 q
310 }
311 /^X\(\/\/\)$/{
312 s//\1/
313 q
314 }
315 /^X\(\/\).*/{
316 s//\1/
317 q
318 }
319 s/.*/./; q'`
320 test -d "$as_dir" && break
321 done
322 test -z "$as_dirs" || eval "mkdir $as_dirs"
323 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324
325
326 } # as_fn_mkdir_p
327 # as_fn_append VAR VALUE
328 # ----------------------
329 # Append the text in VALUE to the end of the definition contained in VAR. Take
330 # advantage of any shell optimizations that allow amortized linear growth over
331 # repeated appends, instead of the typical quadratic growth present in naive
332 # implementations.
333 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334 eval 'as_fn_append ()
335 {
336 eval $1+=\$2
337 }'
338 else
339 as_fn_append ()
340 {
341 eval $1=\$$1\$2
342 }
343 fi # as_fn_append
344
345 # as_fn_arith ARG...
346 # ------------------
347 # Perform arithmetic evaluation on the ARGs, and store the result in the
348 # global $as_val. Take advantage of shells that can avoid forks. The arguments
349 # must be portable across $(()) and expr.
350 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
351 eval 'as_fn_arith ()
352 {
353 as_val=$(( $* ))
354 }'
355 else
356 as_fn_arith ()
357 {
358 as_val=`expr "$@" || test $? -eq 1`
359 }
360 fi # as_fn_arith
361
362
363 # as_fn_error ERROR [LINENO LOG_FD]
364 # ---------------------------------
365 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367 # script with status $?, using 1 if that was 0.
368 as_fn_error ()
369 {
370 as_status=$?; test $as_status -eq 0 && as_status=1
371 if test "$3"; then
372 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 fi
375 $as_echo "$as_me: error: $1" >&2
376 as_fn_exit $as_status
377 } # as_fn_error
378
379 if expr a : '\(a\)' >/dev/null 2>&1 &&
380 test "X`expr 00001 : '.*\(...\)'`" = X001; then
381 as_expr=expr
382 else
383 as_expr=false
384 fi
385
386 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387 as_basename=basename
388 else
389 as_basename=false
390 fi
391
392 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393 as_dirname=dirname
394 else
395 as_dirname=false
396 fi
397
398 as_me=`$as_basename -- "$0" ||
399 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400 X"$0" : 'X\(//\)$' \| \
401 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 $as_echo X/"$0" |
403 sed '/^.*\/\([^/][^/]*\)\/*$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\/\)$/{
408 s//\1/
409 q
410 }
411 /^X\/\(\/\).*/{
412 s//\1/
413 q
414 }
415 s/.*/./; q'`
416
417 # Avoid depending upon Character Ranges.
418 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421 as_cr_digits='0123456789'
422 as_cr_alnum=$as_cr_Letters$as_cr_digits
423
424
425 as_lineno_1=$LINENO as_lineno_1a=$LINENO
426 as_lineno_2=$LINENO as_lineno_2a=$LINENO
427 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
430 sed -n '
431 p
432 /[$]LINENO/=
433 ' <$as_myself |
434 sed '
435 s/[$]LINENO.*/&-/
436 t lineno
437 b
438 :lineno
439 N
440 :loop
441 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442 t loop
443 s/-\n.*//
444 ' >$as_me.lineno &&
445 chmod +x "$as_me.lineno" ||
446 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
448 # Don't try to exec as it changes $[0], causing all sort of problems
449 # (the dirname of $[0] is not the place where we might find the
450 # original and so on. Autoconf is especially sensitive to this).
451 . "./$as_me.lineno"
452 # Exit status is that of the last command.
453 exit
454 }
455
456 ECHO_C= ECHO_N= ECHO_T=
457 case `echo -n x` in #(((((
458 -n*)
459 case `echo 'xy\c'` in
460 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 xy) ECHO_C='\c';;
462 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463 ECHO_T=' ';;
464 esac;;
465 *)
466 ECHO_N='-n';;
467 esac
468
469 rm -f conf$$ conf$$.exe conf$$.file
470 if test -d conf$$.dir; then
471 rm -f conf$$.dir/conf$$.file
472 else
473 rm -f conf$$.dir
474 mkdir conf$$.dir 2>/dev/null
475 fi
476 if (echo >conf$$.file) 2>/dev/null; then
477 if ln -s conf$$.file conf$$ 2>/dev/null; then
478 as_ln_s='ln -s'
479 # ... but there are two gotchas:
480 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482 # In both cases, we have to default to `cp -p'.
483 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484 as_ln_s='cp -p'
485 elif ln conf$$.file conf$$ 2>/dev/null; then
486 as_ln_s=ln
487 else
488 as_ln_s='cp -p'
489 fi
490 else
491 as_ln_s='cp -p'
492 fi
493 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494 rmdir conf$$.dir 2>/dev/null
495
496 if mkdir -p . 2>/dev/null; then
497 as_mkdir_p='mkdir -p "$as_dir"'
498 else
499 test -d ./-p && rmdir ./-p
500 as_mkdir_p=false
501 fi
502
503 if test -x / >/dev/null 2>&1; then
504 as_test_x='test -x'
505 else
506 if ls -dL / >/dev/null 2>&1; then
507 as_ls_L_option=L
508 else
509 as_ls_L_option=
510 fi
511 as_test_x='
512 eval sh -c '\''
513 if test -d "$1"; then
514 test -d "$1/.";
515 else
516 case $1 in #(
517 -*)set "./$1";;
518 esac;
519 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520 ???[sx]*):;;*)false;;esac;fi
521 '\'' sh
522 '
523 fi
524 as_executable_p=$as_test_x
525
526 # Sed expression to map a string onto a valid CPP name.
527 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
529 # Sed expression to map a string onto a valid variable name.
530 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531
532
533
534 # Check that we are running under the correct shell.
535 SHELL=${CONFIG_SHELL-/bin/sh}
536
537 case X$lt_ECHO in
538 X*--fallback-echo)
539 # Remove one level of quotation (which was required for Make).
540 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541 ;;
542 esac
543
544 ECHO=${lt_ECHO-echo}
545 if test "X$1" = X--no-reexec; then
546 # Discard the --no-reexec flag, and continue.
547 shift
548 elif test "X$1" = X--fallback-echo; then
549 # Avoid inline document here, it may be left over
550 :
551 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
552 # Yippee, $ECHO works!
553 :
554 else
555 # Restart under the correct shell.
556 exec $SHELL "$0" --no-reexec ${1+"$@"}
557 fi
558
559 if test "X$1" = X--fallback-echo; then
560 # used as fallback echo
561 shift
562 cat <<_LT_EOF
563 $*
564 _LT_EOF
565 exit 0
566 fi
567
568 # The HP-UX ksh and POSIX shell print the target directory to stdout
569 # if CDPATH is set.
570 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571
572 if test -z "$lt_ECHO"; then
573 if test "X${echo_test_string+set}" != Xset; then
574 # find a string as large as possible, as long as the shell can cope with it
575 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
576 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
577 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
578 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
579 then
580 break
581 fi
582 done
583 fi
584
585 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
586 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
587 test "X$echo_testing_string" = "X$echo_test_string"; then
588 :
589 else
590 # The Solaris, AIX, and Digital Unix default echo programs unquote
591 # backslashes. This makes it impossible to quote backslashes using
592 # echo "$something" | sed 's/\\/\\\\/g'
593 #
594 # So, first we look for a working echo in the user's PATH.
595
596 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
597 for dir in $PATH /usr/ucb; do
598 IFS="$lt_save_ifs"
599 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
600 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
601 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
602 test "X$echo_testing_string" = "X$echo_test_string"; then
603 ECHO="$dir/echo"
604 break
605 fi
606 done
607 IFS="$lt_save_ifs"
608
609 if test "X$ECHO" = Xecho; then
610 # We didn't find a better echo, so look for alternatives.
611 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
612 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
613 test "X$echo_testing_string" = "X$echo_test_string"; then
614 # This shell has a builtin print -r that does the trick.
615 ECHO='print -r'
616 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
617 test "X$CONFIG_SHELL" != X/bin/ksh; then
618 # If we have ksh, try running configure again with it.
619 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
620 export ORIGINAL_CONFIG_SHELL
621 CONFIG_SHELL=/bin/ksh
622 export CONFIG_SHELL
623 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624 else
625 # Try using printf.
626 ECHO='printf %s\n'
627 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
628 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
630 # Cool, printf works
631 :
632 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
633 test "X$echo_testing_string" = 'X\t' &&
634 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637 export CONFIG_SHELL
638 SHELL="$CONFIG_SHELL"
639 export SHELL
640 ECHO="$CONFIG_SHELL $0 --fallback-echo"
641 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 ECHO="$CONFIG_SHELL $0 --fallback-echo"
646 else
647 # maybe with a smaller string...
648 prev=:
649
650 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
651 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
652 then
653 break
654 fi
655 prev="$cmd"
656 done
657
658 if test "$prev" != 'sed 50q "$0"'; then
659 echo_test_string=`eval $prev`
660 export echo_test_string
661 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662 else
663 # Oops. We lost completely, so just stick with echo.
664 ECHO=echo
665 fi
666 fi
667 fi
668 fi
669 fi
670 fi
671
672 # Copy echo and quote the copy suitably for passing to libtool from
673 # the Makefile, instead of quoting the original, which is used later.
674 lt_ECHO=$ECHO
675 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
676 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
677 fi
678
679
680
681
682 test -n "$DJDIR" || exec 7<&0 </dev/null
683 exec 6>&1
684
685 # Name of the host.
686 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
687 # so uname gets run too.
688 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689
690 #
691 # Initializations.
692 #
693 ac_default_prefix=/usr/local
694 ac_clean_files=
695 ac_config_libobj_dir=.
696 LIBOBJS=
697 cross_compiling=no
698 subdirs=
699 MFLAGS=
700 MAKEFLAGS=
701
702 # Identity of this package.
703 PACKAGE_NAME='xf86-video-ati'
704 PACKAGE_TARNAME='xf86-video-ati'
705 PACKAGE_VERSION='6.14.1'
706 PACKAGE_STRING='xf86-video-ati 6.14.1'
707 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
708 PACKAGE_URL=''
709
710 ac_unique_file="Makefile.am"
711 # Factoring default headers for most tests.
712 ac_includes_default="\
713 #include <stdio.h>
714 #ifdef HAVE_SYS_TYPES_H
715 # include <sys/types.h>
716 #endif
717 #ifdef HAVE_SYS_STAT_H
718 # include <sys/stat.h>
719 #endif
720 #ifdef STDC_HEADERS
721 # include <stdlib.h>
722 # include <stddef.h>
723 #else
724 # ifdef HAVE_STDLIB_H
725 # include <stdlib.h>
726 # endif
727 #endif
728 #ifdef HAVE_STRING_H
729 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
730 # include <memory.h>
731 # endif
732 # include <string.h>
733 #endif
734 #ifdef HAVE_STRINGS_H
735 # include <strings.h>
736 #endif
737 #ifdef HAVE_INTTYPES_H
738 # include <inttypes.h>
739 #endif
740 #ifdef HAVE_STDINT_H
741 # include <stdint.h>
742 #endif
743 #ifdef HAVE_UNISTD_H
744 # include <unistd.h>
745 #endif"
746
747 ac_subst_vars='am__EXEEXT_FALSE
748 am__EXEEXT_TRUE
749 LTLIBOBJS
750 LIBOBJS
751 DRIVER_NAME
752 moduledir
753 XSERVER_LIBPCIACCESS_FALSE
754 XSERVER_LIBPCIACCESS_TRUE
755 PCIACCESS_LIBS
756 PCIACCESS_CFLAGS
757 XF86DRM_MODE_FALSE
758 XF86DRM_MODE_TRUE
759 USE_EXA_FALSE
760 USE_EXA_TRUE
761 LIBUDEV_FALSE
762 LIBUDEV_TRUE
763 DRM_MODE_FALSE
764 DRM_MODE_TRUE
765 LIBUDEV_LIBS
766 LIBUDEV_CFLAGS
767 LIBDRM_RADEON_LIBS
768 LIBDRM_RADEON_CFLAGS
769 DRI_FALSE
770 DRI_TRUE
771 DRI_LIBS
772 DRI_CFLAGS
773 HAVE_XEXTPROTO_71_FALSE
774 HAVE_XEXTPROTO_71_TRUE
775 XEXT_LIBS
776 XEXT_CFLAGS
777 XORG_LIBS
778 XORG_CFLAGS
779 OTOOL64
780 OTOOL
781 LIPO
782 NMEDIT
783 DSYMUTIL
784 lt_ECHO
785 RANLIB
786 AR
787 OBJDUMP
788 LN_S
789 NM
790 ac_ct_DUMPBIN
791 DUMPBIN
792 LD
793 FGREP
794 LIBTOOL
795 MAINT
796 MAINTAINER_MODE_FALSE
797 MAINTAINER_MODE_TRUE
798 am__fastdepCC_FALSE
799 am__fastdepCC_TRUE
800 CCDEPMODE
801 AMDEPBACKSLASH
802 AMDEP_FALSE
803 AMDEP_TRUE
804 am__quote
805 am__include
806 DEPDIR
807 am__untar
808 am__tar
809 AMTAR
810 am__leading_dot
811 SET_MAKE
812 AWK
813 mkdir_p
814 MKDIR_P
815 INSTALL_STRIP_PROGRAM
816 STRIP
817 install_sh
818 MAKEINFO
819 AUTOHEADER
820 AUTOMAKE
821 AUTOCONF
822 ACLOCAL
823 VERSION
824 PACKAGE
825 CYGPATH_W
826 am__isrc
827 AM_BACKSLASH
828 AM_DEFAULT_VERBOSITY
829 MAN_SUBSTS
830 XORG_MAN_PAGE
831 ADMIN_MAN_DIR
832 DRIVER_MAN_DIR
833 MISC_MAN_DIR
834 FILE_MAN_DIR
835 LIB_MAN_DIR
836 APP_MAN_DIR
837 ADMIN_MAN_SUFFIX
838 DRIVER_MAN_SUFFIX
839 MISC_MAN_SUFFIX
840 FILE_MAN_SUFFIX
841 LIB_MAN_SUFFIX
842 APP_MAN_SUFFIX
843 SED
844 host_os
845 host_vendor
846 host_cpu
847 host
848 build_os
849 build_vendor
850 build_cpu
851 build
852 INSTALL_CMD
853 PKG_CONFIG
854 CHANGELOG_CMD
855 CWARNFLAGS
856 EGREP
857 GREP
858 CPP
859 OBJEXT
860 EXEEXT
861 ac_ct_CC
862 CPPFLAGS
863 LDFLAGS
864 CFLAGS
865 CC
866 INSTALL_DATA
867 INSTALL_SCRIPT
868 INSTALL_PROGRAM
869 target_alias
870 host_alias
871 build_alias
872 LIBS
873 ECHO_T
874 ECHO_N
875 ECHO_C
876 DEFS
877 mandir
878 localedir
879 libdir
880 psdir
881 pdfdir
882 dvidir
883 htmldir
884 infodir
885 docdir
886 oldincludedir
887 includedir
888 localstatedir
889 sharedstatedir
890 sysconfdir
891 datadir
892 datarootdir
893 libexecdir
894 sbindir
895 bindir
896 program_transform_name
897 prefix
898 exec_prefix
899 PACKAGE_URL
900 PACKAGE_BUGREPORT
901 PACKAGE_STRING
902 PACKAGE_VERSION
903 PACKAGE_TARNAME
904 PACKAGE_NAME
905 PATH_SEPARATOR
906 SHELL'
907 ac_subst_files=''
908 ac_user_opts='
909 enable_option_checking
910 enable_strict_compilation
911 enable_silent_rules
912 enable_dependency_tracking
913 enable_largefile
914 enable_maintainer_mode
915 enable_static
916 enable_shared
917 with_pic
918 enable_fast_install
919 with_gnu_ld
920 enable_libtool_lock
921 with_xorg_module_dir
922 enable_dri
923 enable_exa
924 enable_kms
925 '
926 ac_precious_vars='build_alias
927 host_alias
928 target_alias
929 CC
930 CFLAGS
931 LDFLAGS
932 LIBS
933 CPPFLAGS
934 CPP
935 PKG_CONFIG
936 XORG_CFLAGS
937 XORG_LIBS
938 XEXT_CFLAGS
939 XEXT_LIBS
940 DRI_CFLAGS
941 DRI_LIBS
942 LIBDRM_RADEON_CFLAGS
943 LIBDRM_RADEON_LIBS
944 LIBUDEV_CFLAGS
945 LIBUDEV_LIBS
946 PCIACCESS_CFLAGS
947 PCIACCESS_LIBS'
948
949
950 # Initialize some variables set by options.
951 ac_init_help=
952 ac_init_version=false
953 ac_unrecognized_opts=
954 ac_unrecognized_sep=
955 # The variables have the same names as the options, with
956 # dashes changed to underlines.
957 cache_file=/dev/null
958 exec_prefix=NONE
959 no_create=
960 no_recursion=
961 prefix=NONE
962 program_prefix=NONE
963 program_suffix=NONE
964 program_transform_name=s,x,x,
965 silent=
966 site=
967 srcdir=
968 verbose=
969 x_includes=NONE
970 x_libraries=NONE
971
972 # Installation directory options.
973 # These are left unexpanded so users can "make install exec_prefix=/foo"
974 # and all the variables that are supposed to be based on exec_prefix
975 # by default will actually change.
976 # Use braces instead of parens because sh, perl, etc. also accept them.
977 # (The list follows the same order as the GNU Coding Standards.)
978 bindir='${exec_prefix}/bin'
979 sbindir='${exec_prefix}/sbin'
980 libexecdir='${exec_prefix}/libexec'
981 datarootdir='${prefix}/share'
982 datadir='${datarootdir}'
983 sysconfdir='${prefix}/etc'
984 sharedstatedir='${prefix}/com'
985 localstatedir='${prefix}/var'
986 includedir='${prefix}/include'
987 oldincludedir='/usr/include'
988 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
989 infodir='${datarootdir}/info'
990 htmldir='${docdir}'
991 dvidir='${docdir}'
992 pdfdir='${docdir}'
993 psdir='${docdir}'
994 libdir='${exec_prefix}/lib'
995 localedir='${datarootdir}/locale'
996 mandir='${datarootdir}/man'
997
998 ac_prev=
999 ac_dashdash=
1000 for ac_option
1001 do
1002 # If the previous option needs an argument, assign it.
1003 if test -n "$ac_prev"; then
1004 eval $ac_prev=\$ac_option
1005 ac_prev=
1006 continue
1007 fi
1008
1009 case $ac_option in
1010 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1011 *) ac_optarg=yes ;;
1012 esac
1013
1014 # Accept the important Cygnus configure options, so we can diagnose typos.
1015
1016 case $ac_dashdash$ac_option in
1017 --)
1018 ac_dashdash=yes ;;
1019
1020 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1021 ac_prev=bindir ;;
1022 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1023 bindir=$ac_optarg ;;
1024
1025 -build | --build | --buil | --bui | --bu)
1026 ac_prev=build_alias ;;
1027 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1028 build_alias=$ac_optarg ;;
1029
1030 -cache-file | --cache-file | --cache-fil | --cache-fi \
1031 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1032 ac_prev=cache_file ;;
1033 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1034 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1035 cache_file=$ac_optarg ;;
1036
1037 --config-cache | -C)
1038 cache_file=config.cache ;;
1039
1040 -datadir | --datadir | --datadi | --datad)
1041 ac_prev=datadir ;;
1042 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1043 datadir=$ac_optarg ;;
1044
1045 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1046 | --dataroo | --dataro | --datar)
1047 ac_prev=datarootdir ;;
1048 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1049 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1050 datarootdir=$ac_optarg ;;
1051
1052 -disable-* | --disable-*)
1053 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056 as_fn_error "invalid feature name: $ac_useropt"
1057 ac_useropt_orig=$ac_useropt
1058 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059 case $ac_user_opts in
1060 *"
1061 "enable_$ac_useropt"
1062 "*) ;;
1063 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1064 ac_unrecognized_sep=', ';;
1065 esac
1066 eval enable_$ac_useropt=no ;;
1067
1068 -docdir | --docdir | --docdi | --doc | --do)
1069 ac_prev=docdir ;;
1070 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1071 docdir=$ac_optarg ;;
1072
1073 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1074 ac_prev=dvidir ;;
1075 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1076 dvidir=$ac_optarg ;;
1077
1078 -enable-* | --enable-*)
1079 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082 as_fn_error "invalid feature name: $ac_useropt"
1083 ac_useropt_orig=$ac_useropt
1084 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085 case $ac_user_opts in
1086 *"
1087 "enable_$ac_useropt"
1088 "*) ;;
1089 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1090 ac_unrecognized_sep=', ';;
1091 esac
1092 eval enable_$ac_useropt=\$ac_optarg ;;
1093
1094 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1095 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1096 | --exec | --exe | --ex)
1097 ac_prev=exec_prefix ;;
1098 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1099 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1100 | --exec=* | --exe=* | --ex=*)
1101 exec_prefix=$ac_optarg ;;
1102
1103 -gas | --gas | --ga | --g)
1104 # Obsolete; use --with-gas.
1105 with_gas=yes ;;
1106
1107 -help | --help | --hel | --he | -h)
1108 ac_init_help=long ;;
1109 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1110 ac_init_help=recursive ;;
1111 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1112 ac_init_help=short ;;
1113
1114 -host | --host | --hos | --ho)
1115 ac_prev=host_alias ;;
1116 -host=* | --host=* | --hos=* | --ho=*)
1117 host_alias=$ac_optarg ;;
1118
1119 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1120 ac_prev=htmldir ;;
1121 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1122 | --ht=*)
1123 htmldir=$ac_optarg ;;
1124
1125 -includedir | --includedir | --includedi | --included | --include \
1126 | --includ | --inclu | --incl | --inc)
1127 ac_prev=includedir ;;
1128 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1129 | --includ=* | --inclu=* | --incl=* | --inc=*)
1130 includedir=$ac_optarg ;;
1131
1132 -infodir | --infodir | --infodi | --infod | --info | --inf)
1133 ac_prev=infodir ;;
1134 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1135 infodir=$ac_optarg ;;
1136
1137 -libdir | --libdir | --libdi | --libd)
1138 ac_prev=libdir ;;
1139 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1140 libdir=$ac_optarg ;;
1141
1142 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1143 | --libexe | --libex | --libe)
1144 ac_prev=libexecdir ;;
1145 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1146 | --libexe=* | --libex=* | --libe=*)
1147 libexecdir=$ac_optarg ;;
1148
1149 -localedir | --localedir | --localedi | --localed | --locale)
1150 ac_prev=localedir ;;
1151 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1152 localedir=$ac_optarg ;;
1153
1154 -localstatedir | --localstatedir | --localstatedi | --localstated \
1155 | --localstate | --localstat | --localsta | --localst | --locals)
1156 ac_prev=localstatedir ;;
1157 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1158 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1159 localstatedir=$ac_optarg ;;
1160
1161 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1162 ac_prev=mandir ;;
1163 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1164 mandir=$ac_optarg ;;
1165
1166 -nfp | --nfp | --nf)
1167 # Obsolete; use --without-fp.
1168 with_fp=no ;;
1169
1170 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1171 | --no-cr | --no-c | -n)
1172 no_create=yes ;;
1173
1174 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1175 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1176 no_recursion=yes ;;
1177
1178 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1179 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1180 | --oldin | --oldi | --old | --ol | --o)
1181 ac_prev=oldincludedir ;;
1182 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1183 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1184 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1185 oldincludedir=$ac_optarg ;;
1186
1187 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1188 ac_prev=prefix ;;
1189 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1190 prefix=$ac_optarg ;;
1191
1192 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1193 | --program-pre | --program-pr | --program-p)
1194 ac_prev=program_prefix ;;
1195 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1196 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1197 program_prefix=$ac_optarg ;;
1198
1199 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1200 | --program-suf | --program-su | --program-s)
1201 ac_prev=program_suffix ;;
1202 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1203 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1204 program_suffix=$ac_optarg ;;
1205
1206 -program-transform-name | --program-transform-name \
1207 | --program-transform-nam | --program-transform-na \
1208 | --program-transform-n | --program-transform- \
1209 | --program-transform | --program-transfor \
1210 | --program-transfo | --program-transf \
1211 | --program-trans | --program-tran \
1212 | --progr-tra | --program-tr | --program-t)
1213 ac_prev=program_transform_name ;;
1214 -program-transform-name=* | --program-transform-name=* \
1215 | --program-transform-nam=* | --program-transform-na=* \
1216 | --program-transform-n=* | --program-transform-=* \
1217 | --program-transform=* | --program-transfor=* \
1218 | --program-transfo=* | --program-transf=* \
1219 | --program-trans=* | --program-tran=* \
1220 | --progr-tra=* | --program-tr=* | --program-t=*)
1221 program_transform_name=$ac_optarg ;;
1222
1223 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1224 ac_prev=pdfdir ;;
1225 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1226 pdfdir=$ac_optarg ;;
1227
1228 -psdir | --psdir | --psdi | --psd | --ps)
1229 ac_prev=psdir ;;
1230 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1231 psdir=$ac_optarg ;;
1232
1233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1234 | -silent | --silent | --silen | --sile | --sil)
1235 silent=yes ;;
1236
1237 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1238 ac_prev=sbindir ;;
1239 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1240 | --sbi=* | --sb=*)
1241 sbindir=$ac_optarg ;;
1242
1243 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1244 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1245 | --sharedst | --shareds | --shared | --share | --shar \
1246 | --sha | --sh)
1247 ac_prev=sharedstatedir ;;
1248 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1249 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1250 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1251 | --sha=* | --sh=*)
1252 sharedstatedir=$ac_optarg ;;
1253
1254 -site | --site | --sit)
1255 ac_prev=site ;;
1256 -site=* | --site=* | --sit=*)
1257 site=$ac_optarg ;;
1258
1259 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1260 ac_prev=srcdir ;;
1261 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1262 srcdir=$ac_optarg ;;
1263
1264 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1265 | --syscon | --sysco | --sysc | --sys | --sy)
1266 ac_prev=sysconfdir ;;
1267 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1268 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1269 sysconfdir=$ac_optarg ;;
1270
1271 -target | --target | --targe | --targ | --tar | --ta | --t)
1272 ac_prev=target_alias ;;
1273 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1274 target_alias=$ac_optarg ;;
1275
1276 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1277 verbose=yes ;;
1278
1279 -version | --version | --versio | --versi | --vers | -V)
1280 ac_init_version=: ;;
1281
1282 -with-* | --with-*)
1283 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1284 # Reject names that are not valid shell variable names.
1285 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286 as_fn_error "invalid package name: $ac_useropt"
1287 ac_useropt_orig=$ac_useropt
1288 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289 case $ac_user_opts in
1290 *"
1291 "with_$ac_useropt"
1292 "*) ;;
1293 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1294 ac_unrecognized_sep=', ';;
1295 esac
1296 eval with_$ac_useropt=\$ac_optarg ;;
1297
1298 -without-* | --without-*)
1299 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1300 # Reject names that are not valid shell variable names.
1301 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1302 as_fn_error "invalid package name: $ac_useropt"
1303 ac_useropt_orig=$ac_useropt
1304 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1305 case $ac_user_opts in
1306 *"
1307 "with_$ac_useropt"
1308 "*) ;;
1309 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1310 ac_unrecognized_sep=', ';;
1311 esac
1312 eval with_$ac_useropt=no ;;
1313
1314 --x)
1315 # Obsolete; use --with-x.
1316 with_x=yes ;;
1317
1318 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1319 | --x-incl | --x-inc | --x-in | --x-i)
1320 ac_prev=x_includes ;;
1321 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1322 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1323 x_includes=$ac_optarg ;;
1324
1325 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1326 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1327 ac_prev=x_libraries ;;
1328 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1329 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1330 x_libraries=$ac_optarg ;;
1331
1332 -*) as_fn_error "unrecognized option: \`$ac_option'
1333 Try \`$0 --help' for more information."
1334 ;;
1335
1336 *=*)
1337 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1338 # Reject names that are not valid shell variable names.
1339 case $ac_envvar in #(
1340 '' | [0-9]* | *[!_$as_cr_alnum]* )
1341 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1342 esac
1343 eval $ac_envvar=\$ac_optarg
1344 export $ac_envvar ;;
1345
1346 *)
1347 # FIXME: should be removed in autoconf 3.0.
1348 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1349 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1350 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1351 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1352 ;;
1353
1354 esac
1355 done
1356
1357 if test -n "$ac_prev"; then
1358 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1359 as_fn_error "missing argument to $ac_option"
1360 fi
1361
1362 if test -n "$ac_unrecognized_opts"; then
1363 case $enable_option_checking in
1364 no) ;;
1365 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1366 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1367 esac
1368 fi
1369
1370 # Check all directory arguments for consistency.
1371 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1372 datadir sysconfdir sharedstatedir localstatedir includedir \
1373 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1374 libdir localedir mandir
1375 do
1376 eval ac_val=\$$ac_var
1377 # Remove trailing slashes.
1378 case $ac_val in
1379 */ )
1380 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1381 eval $ac_var=\$ac_val;;
1382 esac
1383 # Be sure to have absolute directory names.
1384 case $ac_val in
1385 [\\/$]* | ?:[\\/]* ) continue;;
1386 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1387 esac
1388 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1389 done
1390
1391 # There might be people who depend on the old broken behavior: `$host'
1392 # used to hold the argument of --host etc.
1393 # FIXME: To remove some day.
1394 build=$build_alias
1395 host=$host_alias
1396 target=$target_alias
1397
1398 # FIXME: To remove some day.
1399 if test "x$host_alias" != x; then
1400 if test "x$build_alias" = x; then
1401 cross_compiling=maybe
1402 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1403 If a cross compiler is detected then cross compile mode will be used." >&2
1404 elif test "x$build_alias" != "x$host_alias"; then
1405 cross_compiling=yes
1406 fi
1407 fi
1408
1409 ac_tool_prefix=
1410 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1411
1412 test "$silent" = yes && exec 6>/dev/null
1413
1414
1415 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1416 ac_ls_di=`ls -di .` &&
1417 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1418 as_fn_error "working directory cannot be determined"
1419 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1420 as_fn_error "pwd does not report name of working directory"
1421
1422
1423 # Find the source files, if location was not specified.
1424 if test -z "$srcdir"; then
1425 ac_srcdir_defaulted=yes
1426 # Try the directory containing this script, then the parent directory.
1427 ac_confdir=`$as_dirname -- "$as_myself" ||
1428 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1429 X"$as_myself" : 'X\(//\)[^/]' \| \
1430 X"$as_myself" : 'X\(//\)$' \| \
1431 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1432 $as_echo X"$as_myself" |
1433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1434 s//\1/
1435 q
1436 }
1437 /^X\(\/\/\)[^/].*/{
1438 s//\1/
1439 q
1440 }
1441 /^X\(\/\/\)$/{
1442 s//\1/
1443 q
1444 }
1445 /^X\(\/\).*/{
1446 s//\1/
1447 q
1448 }
1449 s/.*/./; q'`
1450 srcdir=$ac_confdir
1451 if test ! -r "$srcdir/$ac_unique_file"; then
1452 srcdir=..
1453 fi
1454 else
1455 ac_srcdir_defaulted=no
1456 fi
1457 if test ! -r "$srcdir/$ac_unique_file"; then
1458 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1459 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1460 fi
1461 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1462 ac_abs_confdir=`(
1463 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1464 pwd)`
1465 # When building in place, set srcdir=.
1466 if test "$ac_abs_confdir" = "$ac_pwd"; then
1467 srcdir=.
1468 fi
1469 # Remove unnecessary trailing slashes from srcdir.
1470 # Double slashes in file names in object file debugging info
1471 # mess up M-x gdb in Emacs.
1472 case $srcdir in
1473 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1474 esac
1475 for ac_var in $ac_precious_vars; do
1476 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1477 eval ac_env_${ac_var}_value=\$${ac_var}
1478 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1479 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1480 done
1481
1482 #
1483 # Report the --help message.
1484 #
1485 if test "$ac_init_help" = "long"; then
1486 # Omit some internal or obsolete options to make the list less imposing.
1487 # This message is too long to be a string in the A/UX 3.1 sh.
1488 cat <<_ACEOF
1489 \`configure' configures xf86-video-ati 6.14.1 to adapt to many kinds of systems.
1490
1491 Usage: $0 [OPTION]... [VAR=VALUE]...
1492
1493 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1494 VAR=VALUE. See below for descriptions of some of the useful variables.
1495
1496 Defaults for the options are specified in brackets.
1497
1498 Configuration:
1499 -h, --help display this help and exit
1500 --help=short display options specific to this package
1501 --help=recursive display the short help of all the included packages
1502 -V, --version display version information and exit
1503 -q, --quiet, --silent do not print \`checking...' messages
1504 --cache-file=FILE cache test results in FILE [disabled]
1505 -C, --config-cache alias for \`--cache-file=config.cache'
1506 -n, --no-create do not create output files
1507 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1508
1509 Installation directories:
1510 --prefix=PREFIX install architecture-independent files in PREFIX
1511 [$ac_default_prefix]
1512 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1513 [PREFIX]
1514
1515 By default, \`make install' will install all the files in
1516 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1517 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1518 for instance \`--prefix=\$HOME'.
1519
1520 For better control, use the options below.
1521
1522 Fine tuning of the installation directories:
1523 --bindir=DIR user executables [EPREFIX/bin]
1524 --sbindir=DIR system admin executables [EPREFIX/sbin]
1525 --libexecdir=DIR program executables [EPREFIX/libexec]
1526 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1527 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1528 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1529 --libdir=DIR object code libraries [EPREFIX/lib]
1530 --includedir=DIR C header files [PREFIX/include]
1531 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1532 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1533 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1534 --infodir=DIR info documentation [DATAROOTDIR/info]
1535 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1536 --mandir=DIR man documentation [DATAROOTDIR/man]
1537 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-ati]
1538 --htmldir=DIR html documentation [DOCDIR]
1539 --dvidir=DIR dvi documentation [DOCDIR]
1540 --pdfdir=DIR pdf documentation [DOCDIR]
1541 --psdir=DIR ps documentation [DOCDIR]
1542 _ACEOF
1543
1544 cat <<\_ACEOF
1545
1546 Program names:
1547 --program-prefix=PREFIX prepend PREFIX to installed program names
1548 --program-suffix=SUFFIX append SUFFIX to installed program names
1549 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1550
1551 System types:
1552 --build=BUILD configure for building on BUILD [guessed]
1553 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1554 _ACEOF
1555 fi
1556
1557 if test -n "$ac_init_help"; then
1558 case $ac_init_help in
1559 short | recursive ) echo "Configuration of xf86-video-ati 6.14.1:";;
1560 esac
1561 cat <<\_ACEOF
1562
1563 Optional Features:
1564 --disable-option-checking ignore unrecognized --enable/--with options
1565 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1566 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1567 --enable-strict-compilation
1568 Enable all warnings from compiler and make them
1569 errors (default: disabled)
1570 --enable-silent-rules less verbose build output (undo: `make V=1')
1571 --disable-silent-rules verbose build output (undo: `make V=0')
1572 --disable-dependency-tracking speeds up one-time build
1573 --enable-dependency-tracking do not reject slow dependency extractors
1574 --disable-largefile omit support for large files
1575 --enable-maintainer-mode enable make rules and dependencies not useful
1576 (and sometimes confusing) to the casual installer
1577 --enable-static[=PKGS] build static libraries [default=no]
1578 --enable-shared[=PKGS] build shared libraries [default=yes]
1579 --enable-fast-install[=PKGS]
1580 optimize for fast installation [default=yes]
1581 --disable-libtool-lock avoid locking (might break parallel builds)
1582 --disable-dri Disable DRI support [[default=auto]]
1583 --disable-exa Disable EXA support [[default=enabled]]
1584 --disable-kms Disable KMS support [[default=enabled]]
1585
1586 Optional Packages:
1587 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1588 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1589 --with-pic try to use only PIC/non-PIC objects [default=use
1590 both]
1591 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1592 --with-xorg-module-dir=DIR
1593 Default xorg module directory
1594 [[default=$libdir/xorg/modules]]
1595
1596 Some influential environment variables:
1597 CC C compiler command
1598 CFLAGS C compiler flags
1599 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1600 nonstandard directory <lib dir>
1601 LIBS libraries to pass to the linker, e.g. -l<library>
1602 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1603 you have headers in a nonstandard directory <include dir>
1604 CPP C preprocessor
1605 PKG_CONFIG path to pkg-config utility
1606 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1607 XORG_LIBS linker flags for XORG, overriding pkg-config
1608 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1609 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1610 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config
1611 DRI_LIBS linker flags for DRI, overriding pkg-config
1612 LIBDRM_RADEON_CFLAGS
1613 C compiler flags for LIBDRM_RADEON, overriding pkg-config
1614 LIBDRM_RADEON_LIBS
1615 linker flags for LIBDRM_RADEON, overriding pkg-config
1616 LIBUDEV_CFLAGS
1617 C compiler flags for LIBUDEV, overriding pkg-config
1618 LIBUDEV_LIBS
1619 linker flags for LIBUDEV, overriding pkg-config
1620 PCIACCESS_CFLAGS
1621 C compiler flags for PCIACCESS, overriding pkg-config
1622 PCIACCESS_LIBS
1623 linker flags for PCIACCESS, overriding pkg-config
1624
1625 Use these variables to override the choices made by `configure' or to help
1626 it to find libraries and programs with nonstandard names/locations.
1627
1628 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1629 _ACEOF
1630 ac_status=$?
1631 fi
1632
1633 if test "$ac_init_help" = "recursive"; then
1634 # If there are subdirs, report their specific --help.
1635 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1636 test -d "$ac_dir" ||
1637 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1638 continue
1639 ac_builddir=.
1640
1641 case "$ac_dir" in
1642 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643 *)
1644 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1645 # A ".." for each directory in $ac_dir_suffix.
1646 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1647 case $ac_top_builddir_sub in
1648 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1649 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1650 esac ;;
1651 esac
1652 ac_abs_top_builddir=$ac_pwd
1653 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1654 # for backward compatibility:
1655 ac_top_builddir=$ac_top_build_prefix
1656
1657 case $srcdir in
1658 .) # We are building in place.
1659 ac_srcdir=.
1660 ac_top_srcdir=$ac_top_builddir_sub
1661 ac_abs_top_srcdir=$ac_pwd ;;
1662 [\\/]* | ?:[\\/]* ) # Absolute name.
1663 ac_srcdir=$srcdir$ac_dir_suffix;
1664 ac_top_srcdir=$srcdir
1665 ac_abs_top_srcdir=$srcdir ;;
1666 *) # Relative name.
1667 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1668 ac_top_srcdir=$ac_top_build_prefix$srcdir
1669 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1670 esac
1671 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1672
1673 cd "$ac_dir" || { ac_status=$?; continue; }
1674 # Check for guested configure.
1675 if test -f "$ac_srcdir/configure.gnu"; then
1676 echo &&
1677 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1678 elif test -f "$ac_srcdir/configure"; then
1679 echo &&
1680 $SHELL "$ac_srcdir/configure" --help=recursive
1681 else
1682 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1683 fi || ac_status=$?
1684 cd "$ac_pwd" || { ac_status=$?; break; }
1685 done
1686 fi
1687
1688 test -n "$ac_init_help" && exit $ac_status
1689 if $ac_init_version; then
1690 cat <<\_ACEOF
1691 xf86-video-ati configure 6.14.1
1692 generated by GNU Autoconf 2.65
1693
1694 Copyright (C) 2009 Free Software Foundation, Inc.
1695 This configure script is free software; the Free Software Foundation
1696 gives unlimited permission to copy, distribute and modify it.
1697 _ACEOF
1698 exit
1699 fi
1700
1701 ## ------------------------ ##
1702 ## Autoconf initialization. ##
1703 ## ------------------------ ##
1704
1705 # ac_fn_c_try_compile LINENO
1706 # --------------------------
1707 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1708 ac_fn_c_try_compile ()
1709 {
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 rm -f conftest.$ac_objext
1712 if { { ac_try="$ac_compile"
1713 case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_compile") 2>conftest.err
1720 ac_status=$?
1721 if test -s conftest.err; then
1722 grep -v '^ *+' conftest.err >conftest.er1
1723 cat conftest.er1 >&5
1724 mv -f conftest.er1 conftest.err
1725 fi
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; } && {
1728 test -z "$ac_c_werror_flag" ||
1729 test ! -s conftest.err
1730 } && test -s conftest.$ac_objext; then :
1731 ac_retval=0
1732 else
1733 $as_echo "$as_me: failed program was:" >&5
1734 sed 's/^/| /' conftest.$ac_ext >&5
1735
1736 ac_retval=1
1737 fi
1738 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1739 as_fn_set_status $ac_retval
1740
1741 } # ac_fn_c_try_compile
1742
1743 # ac_fn_c_check_decl LINENO SYMBOL VAR
1744 # ------------------------------------
1745 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1746 ac_fn_c_check_decl ()
1747 {
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1750 $as_echo_n "checking whether $2 is declared... " >&6; }
1751 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1752 $as_echo_n "(cached) " >&6
1753 else
1754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1755 /* end confdefs.h. */
1756 $4
1757 int
1758 main ()
1759 {
1760 #ifndef $2
1761 (void) $2;
1762 #endif
1763
1764 ;
1765 return 0;
1766 }
1767 _ACEOF
1768 if ac_fn_c_try_compile "$LINENO"; then :
1769 eval "$3=yes"
1770 else
1771 eval "$3=no"
1772 fi
1773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1774 fi
1775 eval ac_res=\$$3
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777 $as_echo "$ac_res" >&6; }
1778 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1779
1780 } # ac_fn_c_check_decl
1781
1782 # ac_fn_c_try_cpp LINENO
1783 # ----------------------
1784 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1785 ac_fn_c_try_cpp ()
1786 {
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 if { { ac_try="$ac_cpp conftest.$ac_ext"
1789 case "(($ac_try" in
1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1792 esac
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1796 ac_status=$?
1797 if test -s conftest.err; then
1798 grep -v '^ *+' conftest.err >conftest.er1
1799 cat conftest.er1 >&5
1800 mv -f conftest.er1 conftest.err
1801 fi
1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; } >/dev/null && {
1804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1805 test ! -s conftest.err
1806 }; then :
1807 ac_retval=0
1808 else
1809 $as_echo "$as_me: failed program was:" >&5
1810 sed 's/^/| /' conftest.$ac_ext >&5
1811
1812 ac_retval=1
1813 fi
1814 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1815 as_fn_set_status $ac_retval
1816
1817 } # ac_fn_c_try_cpp
1818
1819 # ac_fn_c_try_run LINENO
1820 # ----------------------
1821 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1822 # that executables *can* be run.
1823 ac_fn_c_try_run ()
1824 {
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 if { { ac_try="$ac_link"
1827 case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830 esac
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_link") 2>&5
1834 ac_status=$?
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1837 { { case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840 esac
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_try") 2>&5
1844 ac_status=$?
1845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846 test $ac_status = 0; }; }; then :
1847 ac_retval=0
1848 else
1849 $as_echo "$as_me: program exited with status $ac_status" >&5
1850 $as_echo "$as_me: failed program was:" >&5
1851 sed 's/^/| /' conftest.$ac_ext >&5
1852
1853 ac_retval=$ac_status
1854 fi
1855 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1856 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1857 as_fn_set_status $ac_retval
1858
1859 } # ac_fn_c_try_run
1860
1861 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1862 # -------------------------------------------------------
1863 # Tests whether HEADER exists and can be compiled using the include files in
1864 # INCLUDES, setting the cache variable VAR accordingly.
1865 ac_fn_c_check_header_compile ()
1866 {
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869 $as_echo_n "checking for $2... " >&6; }
1870 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1871 $as_echo_n "(cached) " >&6
1872 else
1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h. */
1875 $4
1876 #include <$2>
1877 _ACEOF
1878 if ac_fn_c_try_compile "$LINENO"; then :
1879 eval "$3=yes"
1880 else
1881 eval "$3=no"
1882 fi
1883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1884 fi
1885 eval ac_res=\$$3
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887 $as_echo "$ac_res" >&6; }
1888 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1889
1890 } # ac_fn_c_check_header_compile
1891
1892 # ac_fn_c_try_link LINENO
1893 # -----------------------
1894 # Try to link conftest.$ac_ext, and return whether this succeeded.
1895 ac_fn_c_try_link ()
1896 {
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 rm -f conftest.$ac_objext conftest$ac_exeext
1899 if { { ac_try="$ac_link"
1900 case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1903 esac
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_link") 2>conftest.err
1907 ac_status=$?
1908 if test -s conftest.err; then
1909 grep -v '^ *+' conftest.err >conftest.er1
1910 cat conftest.er1 >&5
1911 mv -f conftest.er1 conftest.err
1912 fi
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } && {
1915 test -z "$ac_c_werror_flag" ||
1916 test ! -s conftest.err
1917 } && test -s conftest$ac_exeext && {
1918 test "$cross_compiling" = yes ||
1919 $as_test_x conftest$ac_exeext
1920 }; then :
1921 ac_retval=0
1922 else
1923 $as_echo "$as_me: failed program was:" >&5
1924 sed 's/^/| /' conftest.$ac_ext >&5
1925
1926 ac_retval=1
1927 fi
1928 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1929 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1930 # interfere with the next link command; also delete a directory that is
1931 # left behind by Apple's compiler. We do this before executing the actions.
1932 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1933 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1934 as_fn_set_status $ac_retval
1935
1936 } # ac_fn_c_try_link
1937
1938 # ac_fn_c_check_func LINENO FUNC VAR
1939 # ----------------------------------
1940 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1941 ac_fn_c_check_func ()
1942 {
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945 $as_echo_n "checking for $2... " >&6; }
1946 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1947 $as_echo_n "(cached) " >&6
1948 else
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1951 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1953 #define $2 innocuous_$2
1954
1955 /* System header to define __stub macros and hopefully few prototypes,
1956 which can conflict with char $2 (); below.
1957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1958 <limits.h> exists even on freestanding compilers. */
1959
1960 #ifdef __STDC__
1961 # include <limits.h>
1962 #else
1963 # include <assert.h>
1964 #endif
1965
1966 #undef $2
1967
1968 /* Override any GCC internal prototype to avoid an error.
1969 Use char because int might match the return type of a GCC
1970 builtin and then its argument prototype would still apply. */
1971 #ifdef __cplusplus
1972 extern "C"
1973 #endif
1974 char $2 ();
1975 /* The GNU C library defines this for functions which it implements
1976 to always fail with ENOSYS. Some functions are actually named
1977 something starting with __ and the normal name is an alias. */
1978 #if defined __stub_$2 || defined __stub___$2
1979 choke me
1980 #endif
1981
1982 int
1983 main ()
1984 {
1985 return $2 ();
1986 ;
1987 return 0;
1988 }
1989 _ACEOF
1990 if ac_fn_c_try_link "$LINENO"; then :
1991 eval "$3=yes"
1992 else
1993 eval "$3=no"
1994 fi
1995 rm -f core conftest.err conftest.$ac_objext \
1996 conftest$ac_exeext conftest.$ac_ext
1997 fi
1998 eval ac_res=\$$3
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2001 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2002
2003 } # ac_fn_c_check_func
2004
2005 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2006 # ----------------------------------------------
2007 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2008 ac_fn_c_check_header_preproc ()
2009 {
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 $as_echo_n "checking for $2... " >&6; }
2013 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2014 $as_echo_n "(cached) " >&6
2015 else
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2018 #include <$2>
2019 _ACEOF
2020 if ac_fn_c_try_cpp "$LINENO"; then :
2021 eval "$3=yes"
2022 else
2023 eval "$3=no"
2024 fi
2025 rm -f conftest.err conftest.$ac_ext
2026 fi
2027 eval ac_res=\$$3
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2029 $as_echo "$ac_res" >&6; }
2030 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2031
2032 } # ac_fn_c_check_header_preproc
2033
2034 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2035 # -------------------------------------------------------
2036 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2037 # the include files in INCLUDES and setting the cache variable VAR
2038 # accordingly.
2039 ac_fn_c_check_header_mongrel ()
2040 {
2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2042 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2044 $as_echo_n "checking for $2... " >&6; }
2045 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2046 $as_echo_n "(cached) " >&6
2047 fi
2048 eval ac_res=\$$3
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050 $as_echo "$ac_res" >&6; }
2051 else
2052 # Is the header compilable?
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2054 $as_echo_n "checking $2 usability... " >&6; }
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2057 $4
2058 #include <$2>
2059 _ACEOF
2060 if ac_fn_c_try_compile "$LINENO"; then :
2061 ac_header_compiler=yes
2062 else
2063 ac_header_compiler=no
2064 fi
2065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2067 $as_echo "$ac_header_compiler" >&6; }
2068
2069 # Is the header present?
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2071 $as_echo_n "checking $2 presence... " >&6; }
2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2074 #include <$2>
2075 _ACEOF
2076 if ac_fn_c_try_cpp "$LINENO"; then :
2077 ac_header_preproc=yes
2078 else
2079 ac_header_preproc=no
2080 fi
2081 rm -f conftest.err conftest.$ac_ext
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2083 $as_echo "$ac_header_preproc" >&6; }
2084
2085 # So? What about this header?
2086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2087 yes:no: )
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2089 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2091 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2092 ;;
2093 no:yes:* )
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2095 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2097 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2099 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2101 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2103 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2104 ( cat <<\_ASBOX
2105 ## ---------------------------------------------------------------------- ##
2106 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
2107 ## ---------------------------------------------------------------------- ##
2108 _ASBOX
2109 ) | sed "s/^/$as_me: WARNING: /" >&2
2110 ;;
2111 esac
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2113 $as_echo_n "checking for $2... " >&6; }
2114 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2115 $as_echo_n "(cached) " >&6
2116 else
2117 eval "$3=\$ac_header_compiler"
2118 fi
2119 eval ac_res=\$$3
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2121 $as_echo "$ac_res" >&6; }
2122 fi
2123 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2124
2125 } # ac_fn_c_check_header_mongrel
2126 cat >config.log <<_ACEOF
2127 This file contains any messages produced by compilers while
2128 running configure, to aid debugging if configure makes a mistake.
2129
2130 It was created by xf86-video-ati $as_me 6.14.1, which was
2131 generated by GNU Autoconf 2.65. Invocation command line was
2132
2133 $ $0 $@
2134
2135 _ACEOF
2136 exec 5>>config.log
2137 {
2138 cat <<_ASUNAME
2139 ## --------- ##
2140 ## Platform. ##
2141 ## --------- ##
2142
2143 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2144 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2145 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2146 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2147 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2148
2149 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2150 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2151
2152 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2153 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2154 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2155 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2156 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2157 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2158 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2159
2160 _ASUNAME
2161
2162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163 for as_dir in $PATH
2164 do
2165 IFS=$as_save_IFS
2166 test -z "$as_dir" && as_dir=.
2167 $as_echo "PATH: $as_dir"
2168 done
2169 IFS=$as_save_IFS
2170
2171 } >&5
2172
2173 cat >&5 <<_ACEOF
2174
2175
2176 ## ----------- ##
2177 ## Core tests. ##
2178 ## ----------- ##
2179
2180 _ACEOF
2181
2182
2183 # Keep a trace of the command line.
2184 # Strip out --no-create and --no-recursion so they do not pile up.
2185 # Strip out --silent because we don't want to record it for future runs.
2186 # Also quote any args containing shell meta-characters.
2187 # Make two passes to allow for proper duplicate-argument suppression.
2188 ac_configure_args=
2189 ac_configure_args0=
2190 ac_configure_args1=
2191 ac_must_keep_next=false
2192 for ac_pass in 1 2
2193 do
2194 for ac_arg
2195 do
2196 case $ac_arg in
2197 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2198 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2199 | -silent | --silent | --silen | --sile | --sil)
2200 continue ;;
2201 *\'*)
2202 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2203 esac
2204 case $ac_pass in
2205 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2206 2)
2207 as_fn_append ac_configure_args1 " '$ac_arg'"
2208 if test $ac_must_keep_next = true; then
2209 ac_must_keep_next=false # Got value, back to normal.
2210 else
2211 case $ac_arg in
2212 *=* | --config-cache | -C | -disable-* | --disable-* \
2213 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2214 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2215 | -with-* | --with-* | -without-* | --without-* | --x)
2216 case "$ac_configure_args0 " in
2217 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2218 esac
2219 ;;
2220 -* ) ac_must_keep_next=true ;;
2221 esac
2222 fi
2223 as_fn_append ac_configure_args " '$ac_arg'"
2224 ;;
2225 esac
2226 done
2227 done
2228 { ac_configure_args0=; unset ac_configure_args0;}
2229 { ac_configure_args1=; unset ac_configure_args1;}
2230
2231 # When interrupted or exit'd, cleanup temporary files, and complete
2232 # config.log. We remove comments because anyway the quotes in there
2233 # would cause problems or look ugly.
2234 # WARNING: Use '\'' to represent an apostrophe within the trap.
2235 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2236 trap 'exit_status=$?
2237 # Save into config.log some information that might help in debugging.
2238 {
2239 echo
2240
2241 cat <<\_ASBOX
2242 ## ---------------- ##
2243 ## Cache variables. ##
2244 ## ---------------- ##
2245 _ASBOX
2246 echo
2247 # The following way of writing the cache mishandles newlines in values,
2248 (
2249 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2250 eval ac_val=\$$ac_var
2251 case $ac_val in #(
2252 *${as_nl}*)
2253 case $ac_var in #(
2254 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2255 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2256 esac
2257 case $ac_var in #(
2258 _ | IFS | as_nl) ;; #(
2259 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2260 *) { eval $ac_var=; unset $ac_var;} ;;
2261 esac ;;
2262 esac
2263 done
2264 (set) 2>&1 |
2265 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2266 *${as_nl}ac_space=\ *)
2267 sed -n \
2268 "s/'\''/'\''\\\\'\'''\''/g;
2269 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2270 ;; #(
2271 *)
2272 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2273 ;;
2274 esac |
2275 sort
2276 )
2277 echo
2278
2279 cat <<\_ASBOX
2280 ## ----------------- ##
2281 ## Output variables. ##
2282 ## ----------------- ##
2283 _ASBOX
2284 echo
2285 for ac_var in $ac_subst_vars
2286 do
2287 eval ac_val=\$$ac_var
2288 case $ac_val in
2289 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2290 esac
2291 $as_echo "$ac_var='\''$ac_val'\''"
2292 done | sort
2293 echo
2294
2295 if test -n "$ac_subst_files"; then
2296 cat <<\_ASBOX
2297 ## ------------------- ##
2298 ## File substitutions. ##
2299 ## ------------------- ##
2300 _ASBOX
2301 echo
2302 for ac_var in $ac_subst_files
2303 do
2304 eval ac_val=\$$ac_var
2305 case $ac_val in
2306 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2307 esac
2308 $as_echo "$ac_var='\''$ac_val'\''"
2309 done | sort
2310 echo
2311 fi
2312
2313 if test -s confdefs.h; then
2314 cat <<\_ASBOX
2315 ## ----------- ##
2316 ## confdefs.h. ##
2317 ## ----------- ##
2318 _ASBOX
2319 echo
2320 cat confdefs.h
2321 echo
2322 fi
2323 test "$ac_signal" != 0 &&
2324 $as_echo "$as_me: caught signal $ac_signal"
2325 $as_echo "$as_me: exit $exit_status"
2326 } >&5
2327 rm -f core *.core core.conftest.* &&
2328 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2329 exit $exit_status
2330 ' 0
2331 for ac_signal in 1 2 13 15; do
2332 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2333 done
2334 ac_signal=0
2335
2336 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2337 rm -f -r conftest* confdefs.h
2338
2339 $as_echo "/* confdefs.h */" > confdefs.h
2340
2341 # Predefined preprocessor variables.
2342
2343 cat >>confdefs.h <<_ACEOF
2344 #define PACKAGE_NAME "$PACKAGE_NAME"
2345 _ACEOF
2346
2347 cat >>confdefs.h <<_ACEOF
2348 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2349 _ACEOF
2350
2351 cat >>confdefs.h <<_ACEOF
2352 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2353 _ACEOF
2354
2355 cat >>confdefs.h <<_ACEOF
2356 #define PACKAGE_STRING "$PACKAGE_STRING"
2357 _ACEOF
2358
2359 cat >>confdefs.h <<_ACEOF
2360 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2361 _ACEOF
2362
2363 cat >>confdefs.h <<_ACEOF
2364 #define PACKAGE_URL "$PACKAGE_URL"
2365 _ACEOF
2366
2367
2368 # Let the site file select an alternate cache file if it wants to.
2369 # Prefer an explicitly selected file to automatically selected ones.
2370 ac_site_file1=NONE
2371 ac_site_file2=NONE
2372 if test -n "$CONFIG_SITE"; then
2373 ac_site_file1=$CONFIG_SITE
2374 elif test "x$prefix" != xNONE; then
2375 ac_site_file1=$prefix/share/config.site
2376 ac_site_file2=$prefix/etc/config.site
2377 else
2378 ac_site_file1=$ac_default_prefix/share/config.site
2379 ac_site_file2=$ac_default_prefix/etc/config.site
2380 fi
2381 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2382 do
2383 test "x$ac_site_file" = xNONE && continue
2384 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2386 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2387 sed 's/^/| /' "$ac_site_file" >&5
2388 . "$ac_site_file"
2389 fi
2390 done
2391
2392 if test -r "$cache_file"; then
2393 # Some versions of bash will fail to source /dev/null (special files
2394 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2395 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2397 $as_echo "$as_me: loading cache $cache_file" >&6;}
2398 case $cache_file in
2399 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2400 *) . "./$cache_file";;
2401 esac
2402 fi
2403 else
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2405 $as_echo "$as_me: creating cache $cache_file" >&6;}
2406 >$cache_file
2407 fi
2408
2409 # Check that the precious variables saved in the cache have kept the same
2410 # value.
2411 ac_cache_corrupted=false
2412 for ac_var in $ac_precious_vars; do
2413 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2414 eval ac_new_set=\$ac_env_${ac_var}_set
2415 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2416 eval ac_new_val=\$ac_env_${ac_var}_value
2417 case $ac_old_set,$ac_new_set in
2418 set,)
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2420 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2421 ac_cache_corrupted=: ;;
2422 ,set)
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2424 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2425 ac_cache_corrupted=: ;;
2426 ,);;
2427 *)
2428 if test "x$ac_old_val" != "x$ac_new_val"; then
2429 # differences in whitespace do not lead to failure.
2430 ac_old_val_w=`echo x $ac_old_val`
2431 ac_new_val_w=`echo x $ac_new_val`
2432 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2434 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2435 ac_cache_corrupted=:
2436 else
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2438 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2439 eval $ac_var=\$ac_old_val
2440 fi
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2442 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2444 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2445 fi;;
2446 esac
2447 # Pass precious variables to config.status.
2448 if test "$ac_new_set" = set; then
2449 case $ac_new_val in
2450 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2451 *) ac_arg=$ac_var=$ac_new_val ;;
2452 esac
2453 case " $ac_configure_args " in
2454 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2455 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2456 esac
2457 fi
2458 done
2459 if $ac_cache_corrupted; then
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2463 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2464 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2465 fi
2466 ## -------------------- ##
2467 ## Main body of script. ##
2468 ## -------------------- ##
2469
2470 ac_ext=c
2471 ac_cpp='$CPP $CPPFLAGS'
2472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2475
2476
2477
2478
2479 ac_config_headers="$ac_config_headers config.h"
2480
2481
2482 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494 ac_aux_dir=
2495 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2496 for ac_t in install-sh install.sh shtool; do
2497 if test -f "$ac_dir/$ac_t"; then
2498 ac_aux_dir=$ac_dir
2499 ac_install_sh="$ac_aux_dir/$ac_t -c"
2500 break 2
2501 fi
2502 done
2503 done
2504 if test -z "$ac_aux_dir"; then
2505 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2506 fi
2507
2508 # These three variables are undocumented and unsupported,
2509 # and are intended to be withdrawn in a future Autoconf release.
2510 # They can cause serious problems if a builder's source tree is in a directory
2511 # whose full name contains unusual characters.
2512 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2513 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2514 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2515
2516
2517 # Find a good install program. We prefer a C program (faster),
2518 # so one script is as good as another. But avoid the broken or
2519 # incompatible versions:
2520 # SysV /etc/install, /usr/sbin/install
2521 # SunOS /usr/etc/install
2522 # IRIX /sbin/install
2523 # AIX /bin/install
2524 # AmigaOS /C/install, which installs bootblocks on floppy discs
2525 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2526 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2527 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2528 # OS/2's system install, which has a completely different semantic
2529 # ./install, which can be erroneously created by make from ./install.sh.
2530 # Reject install programs that cannot install multiple files.
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2532 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2533 if test -z "$INSTALL"; then
2534 if test "${ac_cv_path_install+set}" = set; then :
2535 $as_echo_n "(cached) " >&6
2536 else
2537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538 for as_dir in $PATH
2539 do
2540 IFS=$as_save_IFS
2541 test -z "$as_dir" && as_dir=.
2542 # Account for people who put trailing slashes in PATH elements.
2543 case $as_dir/ in #((
2544 ./ | .// | /[cC]/* | \
2545 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2546 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2547 /usr/ucb/* ) ;;
2548 *)
2549 # OSF1 and SCO ODT 3.0 have their own names for install.
2550 # Don't use installbsd from OSF since it installs stuff as root
2551 # by default.
2552 for ac_prog in ginstall scoinst install; do
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2555 if test $ac_prog = install &&
2556 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2557 # AIX install. It has an incompatible calling convention.
2558 :
2559 elif test $ac_prog = install &&
2560 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2561 # program-specific install script used by HP pwplus--don't use.
2562 :
2563 else
2564 rm -rf conftest.one conftest.two conftest.dir
2565 echo one > conftest.one
2566 echo two > conftest.two
2567 mkdir conftest.dir
2568 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2569 test -s conftest.one && test -s conftest.two &&
2570 test -s conftest.dir/conftest.one &&
2571 test -s conftest.dir/conftest.two
2572 then
2573 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2574 break 3
2575 fi
2576 fi
2577 fi
2578 done
2579 done
2580 ;;
2581 esac
2582
2583 done
2584 IFS=$as_save_IFS
2585
2586 rm -rf conftest.one conftest.two conftest.dir
2587
2588 fi
2589 if test "${ac_cv_path_install+set}" = set; then
2590 INSTALL=$ac_cv_path_install
2591 else
2592 # As a last resort, use the slow shell script. Don't cache a
2593 # value for INSTALL within a source directory, because that will
2594 # break other packages using the cache if that directory is
2595 # removed, or if the value is a relative name.
2596 INSTALL=$ac_install_sh
2597 fi
2598 fi
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2600 $as_echo "$INSTALL" >&6; }
2601
2602 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2603 # It thinks the first close brace ends the variable substitution.
2604 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2605
2606 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2607
2608 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2609
2610 ac_ext=c
2611 ac_cpp='$CPP $CPPFLAGS'
2612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2615 if test -n "$ac_tool_prefix"; then
2616 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2617 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2619 $as_echo_n "checking for $ac_word... " >&6; }
2620 if test "${ac_cv_prog_CC+set}" = set; then :
2621 $as_echo_n "(cached) " >&6
2622 else
2623 if test -n "$CC"; then
2624 ac_cv_prog_CC="$CC" # Let the user override the test.
2625 else
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 for as_dir in $PATH
2628 do
2629 IFS=$as_save_IFS
2630 test -z "$as_dir" && as_dir=.
2631 for ac_exec_ext in '' $ac_executable_extensions; do
2632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2633 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2635 break 2
2636 fi
2637 done
2638 done
2639 IFS=$as_save_IFS
2640
2641 fi
2642 fi
2643 CC=$ac_cv_prog_CC
2644 if test -n "$CC"; then
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2646 $as_echo "$CC" >&6; }
2647 else
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2649 $as_echo "no" >&6; }
2650 fi
2651
2652
2653 fi
2654 if test -z "$ac_cv_prog_CC"; then
2655 ac_ct_CC=$CC
2656 # Extract the first word of "gcc", so it can be a program name with args.
2657 set dummy gcc; ac_word=$2
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2659 $as_echo_n "checking for $ac_word... " >&6; }
2660 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2661 $as_echo_n "(cached) " >&6
2662 else
2663 if test -n "$ac_ct_CC"; then
2664 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2665 else
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667 for as_dir in $PATH
2668 do
2669 IFS=$as_save_IFS
2670 test -z "$as_dir" && as_dir=.
2671 for ac_exec_ext in '' $ac_executable_extensions; do
2672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2673 ac_cv_prog_ac_ct_CC="gcc"
2674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2675 break 2
2676 fi
2677 done
2678 done
2679 IFS=$as_save_IFS
2680
2681 fi
2682 fi
2683 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2684 if test -n "$ac_ct_CC"; then
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2686 $as_echo "$ac_ct_CC" >&6; }
2687 else
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2689 $as_echo "no" >&6; }
2690 fi
2691
2692 if test "x$ac_ct_CC" = x; then
2693 CC=""
2694 else
2695 case $cross_compiling:$ac_tool_warned in
2696 yes:)
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2699 ac_tool_warned=yes ;;
2700 esac
2701 CC=$ac_ct_CC
2702 fi
2703 else
2704 CC="$ac_cv_prog_CC"
2705 fi
2706
2707 if test -z "$CC"; then
2708 if test -n "$ac_tool_prefix"; then
2709 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2710 set dummy ${ac_tool_prefix}cc; ac_word=$2
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2712 $as_echo_n "checking for $ac_word... " >&6; }
2713 if test "${ac_cv_prog_CC+set}" = set; then :
2714 $as_echo_n "(cached) " >&6
2715 else
2716 if test -n "$CC"; then
2717 ac_cv_prog_CC="$CC" # Let the user override the test.
2718 else
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720 for as_dir in $PATH
2721 do
2722 IFS=$as_save_IFS
2723 test -z "$as_dir" && as_dir=.
2724 for ac_exec_ext in '' $ac_executable_extensions; do
2725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2726 ac_cv_prog_CC="${ac_tool_prefix}cc"
2727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2728 break 2
2729 fi
2730 done
2731 done
2732 IFS=$as_save_IFS
2733
2734 fi
2735 fi
2736 CC=$ac_cv_prog_CC
2737 if test -n "$CC"; then
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2739 $as_echo "$CC" >&6; }
2740 else
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742 $as_echo "no" >&6; }
2743 fi
2744
2745
2746 fi
2747 fi
2748 if test -z "$CC"; then
2749 # Extract the first word of "cc", so it can be a program name with args.
2750 set dummy cc; ac_word=$2
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2752 $as_echo_n "checking for $ac_word... " >&6; }
2753 if test "${ac_cv_prog_CC+set}" = set; then :
2754 $as_echo_n "(cached) " >&6
2755 else
2756 if test -n "$CC"; then
2757 ac_cv_prog_CC="$CC" # Let the user override the test.
2758 else
2759 ac_prog_rejected=no
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 for as_dir in $PATH
2762 do
2763 IFS=$as_save_IFS
2764 test -z "$as_dir" && as_dir=.
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2767 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2768 ac_prog_rejected=yes
2769 continue
2770 fi
2771 ac_cv_prog_CC="cc"
2772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2773 break 2
2774 fi
2775 done
2776 done
2777 IFS=$as_save_IFS
2778
2779 if test $ac_prog_rejected = yes; then
2780 # We found a bogon in the path, so make sure we never use it.
2781 set dummy $ac_cv_prog_CC
2782 shift
2783 if test $# != 0; then
2784 # We chose a different compiler from the bogus one.
2785 # However, it has the same basename, so the bogon will be chosen
2786 # first if we set CC to just the basename; use the full file name.
2787 shift
2788 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2789 fi
2790 fi
2791 fi
2792 fi
2793 CC=$ac_cv_prog_CC
2794 if test -n "$CC"; then
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2796 $as_echo "$CC" >&6; }
2797 else
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799 $as_echo "no" >&6; }
2800 fi
2801
2802
2803 fi
2804 if test -z "$CC"; then
2805 if test -n "$ac_tool_prefix"; then
2806 for ac_prog in cl.exe
2807 do
2808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2809 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2811 $as_echo_n "checking for $ac_word... " >&6; }
2812 if test "${ac_cv_prog_CC+set}" = set; then :
2813 $as_echo_n "(cached) " >&6
2814 else
2815 if test -n "$CC"; then
2816 ac_cv_prog_CC="$CC" # Let the user override the test.
2817 else
2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819 for as_dir in $PATH
2820 do
2821 IFS=$as_save_IFS
2822 test -z "$as_dir" && as_dir=.
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2825 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 break 2
2828 fi
2829 done
2830 done
2831 IFS=$as_save_IFS
2832
2833 fi
2834 fi
2835 CC=$ac_cv_prog_CC
2836 if test -n "$CC"; then
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2838 $as_echo "$CC" >&6; }
2839 else
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2841 $as_echo "no" >&6; }
2842 fi
2843
2844
2845 test -n "$CC" && break
2846 done
2847 fi
2848 if test -z "$CC"; then
2849 ac_ct_CC=$CC
2850 for ac_prog in cl.exe
2851 do
2852 # Extract the first word of "$ac_prog", so it can be a program name with args.
2853 set dummy $ac_prog; ac_word=$2
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2855 $as_echo_n "checking for $ac_word... " >&6; }
2856 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2857 $as_echo_n "(cached) " >&6
2858 else
2859 if test -n "$ac_ct_CC"; then
2860 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2861 else
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 for as_dir in $PATH
2864 do
2865 IFS=$as_save_IFS
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2869 ac_cv_prog_ac_ct_CC="$ac_prog"
2870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2871 break 2
2872 fi
2873 done
2874 done
2875 IFS=$as_save_IFS
2876
2877 fi
2878 fi
2879 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2880 if test -n "$ac_ct_CC"; then
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2882 $as_echo "$ac_ct_CC" >&6; }
2883 else
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885 $as_echo "no" >&6; }
2886 fi
2887
2888
2889 test -n "$ac_ct_CC" && break
2890 done
2891
2892 if test "x$ac_ct_CC" = x; then
2893 CC=""
2894 else
2895 case $cross_compiling:$ac_tool_warned in
2896 yes:)
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2899 ac_tool_warned=yes ;;
2900 esac
2901 CC=$ac_ct_CC
2902 fi
2903 fi
2904
2905 fi
2906
2907
2908 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2910 as_fn_error "no acceptable C compiler found in \$PATH
2911 See \`config.log' for more details." "$LINENO" 5; }
2912
2913 # Provide some information about the compiler.
2914 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2915 set X $ac_compile
2916 ac_compiler=$2
2917 for ac_option in --version -v -V -qversion; do
2918 { { ac_try="$ac_compiler $ac_option >&5"
2919 case "(($ac_try" in
2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2922 esac
2923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2924 $as_echo "$ac_try_echo"; } >&5
2925 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2926 ac_status=$?
2927 if test -s conftest.err; then
2928 sed '10a\
2929 ... rest of stderr output deleted ...
2930 10q' conftest.err >conftest.er1
2931 cat conftest.er1 >&5
2932 fi
2933 rm -f conftest.er1 conftest.err
2934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2935 test $ac_status = 0; }
2936 done
2937
2938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2939 /* end confdefs.h. */
2940
2941 int
2942 main ()
2943 {
2944
2945 ;
2946 return 0;
2947 }
2948 _ACEOF
2949 ac_clean_files_save=$ac_clean_files
2950 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2951 # Try to create an executable without -o first, disregard a.out.
2952 # It will help us diagnose broken compilers, and finding out an intuition
2953 # of exeext.
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2955 $as_echo_n "checking whether the C compiler works... " >&6; }
2956 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2957
2958 # The possible output files:
2959 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2960
2961 ac_rmfiles=
2962 for ac_file in $ac_files
2963 do
2964 case $ac_file in
2965 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2966 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2967 esac
2968 done
2969 rm -f $ac_rmfiles
2970
2971 if { { ac_try="$ac_link_default"
2972 case "(($ac_try" in
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2975 esac
2976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2977 $as_echo "$ac_try_echo"; } >&5
2978 (eval "$ac_link_default") 2>&5
2979 ac_status=$?
2980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2981 test $ac_status = 0; }; then :
2982 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2983 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2984 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2985 # so that the user can short-circuit this test for compilers unknown to
2986 # Autoconf.
2987 for ac_file in $ac_files ''
2988 do
2989 test -f "$ac_file" || continue
2990 case $ac_file in
2991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2992 ;;
2993 [ab].out )
2994 # We found the default executable, but exeext='' is most
2995 # certainly right.
2996 break;;
2997 *.* )
2998 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2999 then :; else
3000 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3001 fi
3002 # We set ac_cv_exeext here because the later test for it is not
3003 # safe: cross compilers may not add the suffix if given an `-o'
3004 # argument, so we may need to know it at that point already.
3005 # Even if this section looks crufty: it has the advantage of
3006 # actually working.
3007 break;;
3008 * )
3009 break;;
3010 esac
3011 done
3012 test "$ac_cv_exeext" = no && ac_cv_exeext=
3013
3014 else
3015 ac_file=''
3016 fi
3017 if test -z "$ac_file"; then :
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 $as_echo "no" >&6; }
3020 $as_echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3022
3023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3025 { as_fn_set_status 77
3026 as_fn_error "C compiler cannot create executables
3027 See \`config.log' for more details." "$LINENO" 5; }; }
3028 else
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3030 $as_echo "yes" >&6; }
3031 fi
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3033 $as_echo_n "checking for C compiler default output file name... " >&6; }
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3035 $as_echo "$ac_file" >&6; }
3036 ac_exeext=$ac_cv_exeext
3037
3038 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3039 ac_clean_files=$ac_clean_files_save
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3041 $as_echo_n "checking for suffix of executables... " >&6; }
3042 if { { ac_try="$ac_link"
3043 case "(($ac_try" in
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3046 esac
3047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3048 $as_echo "$ac_try_echo"; } >&5
3049 (eval "$ac_link") 2>&5
3050 ac_status=$?
3051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3052 test $ac_status = 0; }; then :
3053 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3054 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3055 # work properly (i.e., refer to `conftest.exe'), while it won't with
3056 # `rm'.
3057 for ac_file in conftest.exe conftest conftest.*; do
3058 test -f "$ac_file" || continue
3059 case $ac_file in
3060 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3061 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3062 break;;
3063 * ) break;;
3064 esac
3065 done
3066 else
3067 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3069 as_fn_error "cannot compute suffix of executables: cannot compile and link
3070 See \`config.log' for more details." "$LINENO" 5; }
3071 fi
3072 rm -f conftest conftest$ac_cv_exeext
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3074 $as_echo "$ac_cv_exeext" >&6; }
3075
3076 rm -f conftest.$ac_ext
3077 EXEEXT=$ac_cv_exeext
3078 ac_exeext=$EXEEXT
3079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3080 /* end confdefs.h. */
3081 #include <stdio.h>
3082 int
3083 main ()
3084 {
3085 FILE *f = fopen ("conftest.out", "w");
3086 return ferror (f) || fclose (f) != 0;
3087
3088 ;
3089 return 0;
3090 }
3091 _ACEOF
3092 ac_clean_files="$ac_clean_files conftest.out"
3093 # Check that the compiler produces executables we can run. If not, either
3094 # the compiler is broken, or we cross compile.
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3096 $as_echo_n "checking whether we are cross compiling... " >&6; }
3097 if test "$cross_compiling" != yes; then
3098 { { ac_try="$ac_link"
3099 case "(($ac_try" in
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3102 esac
3103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3104 $as_echo "$ac_try_echo"; } >&5
3105 (eval "$ac_link") 2>&5
3106 ac_status=$?
3107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3108 test $ac_status = 0; }
3109 if { ac_try='./conftest$ac_cv_exeext'
3110 { { case "(($ac_try" in
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3113 esac
3114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3115 $as_echo "$ac_try_echo"; } >&5
3116 (eval "$ac_try") 2>&5
3117 ac_status=$?
3118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3119 test $ac_status = 0; }; }; then
3120 cross_compiling=no
3121 else
3122 if test "$cross_compiling" = maybe; then
3123 cross_compiling=yes
3124 else
3125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3127 as_fn_error "cannot run C compiled programs.
3128 If you meant to cross compile, use \`--host'.
3129 See \`config.log' for more details." "$LINENO" 5; }
3130 fi
3131 fi
3132 fi
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3134 $as_echo "$cross_compiling" >&6; }
3135
3136 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3137 ac_clean_files=$ac_clean_files_save
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3139 $as_echo_n "checking for suffix of object files... " >&6; }
3140 if test "${ac_cv_objext+set}" = set; then :
3141 $as_echo_n "(cached) " >&6
3142 else
3143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3144 /* end confdefs.h. */
3145
3146 int
3147 main ()
3148 {
3149
3150 ;
3151 return 0;
3152 }
3153 _ACEOF
3154 rm -f conftest.o conftest.obj
3155 if { { ac_try="$ac_compile"
3156 case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3159 esac
3160 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3161 $as_echo "$ac_try_echo"; } >&5
3162 (eval "$ac_compile") 2>&5
3163 ac_status=$?
3164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3165 test $ac_status = 0; }; then :
3166 for ac_file in conftest.o conftest.obj conftest.*; do
3167 test -f "$ac_file" || continue;
3168 case $ac_file in
3169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3170 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3171 break;;
3172 esac
3173 done
3174 else
3175 $as_echo "$as_me: failed program was:" >&5
3176 sed 's/^/| /' conftest.$ac_ext >&5
3177
3178 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3180 as_fn_error "cannot compute suffix of object files: cannot compile
3181 See \`config.log' for more details." "$LINENO" 5; }
3182 fi
3183 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3184 fi
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3186 $as_echo "$ac_cv_objext" >&6; }
3187 OBJEXT=$ac_cv_objext
3188 ac_objext=$OBJEXT
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3190 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3191 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3192 $as_echo_n "(cached) " >&6
3193 else
3194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3195 /* end confdefs.h. */
3196
3197 int
3198 main ()
3199 {
3200 #ifndef __GNUC__
3201 choke me
3202 #endif
3203
3204 ;
3205 return 0;
3206 }
3207 _ACEOF
3208 if ac_fn_c_try_compile "$LINENO"; then :
3209 ac_compiler_gnu=yes
3210 else
3211 ac_compiler_gnu=no
3212 fi
3213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3214 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3215
3216 fi
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3218 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3219 if test $ac_compiler_gnu = yes; then
3220 GCC=yes
3221 else
3222 GCC=
3223 fi
3224 ac_test_CFLAGS=${CFLAGS+set}
3225 ac_save_CFLAGS=$CFLAGS
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3227 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3228 if test "${ac_cv_prog_cc_g+set}" = set; then :
3229 $as_echo_n "(cached) " >&6
3230 else
3231 ac_save_c_werror_flag=$ac_c_werror_flag
3232 ac_c_werror_flag=yes
3233 ac_cv_prog_cc_g=no
3234 CFLAGS="-g"
3235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3236 /* end confdefs.h. */
3237
3238 int
3239 main ()
3240 {
3241
3242 ;
3243 return 0;
3244 }
3245 _ACEOF
3246 if ac_fn_c_try_compile "$LINENO"; then :
3247 ac_cv_prog_cc_g=yes
3248 else
3249 CFLAGS=""
3250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3251 /* end confdefs.h. */
3252
3253 int
3254 main ()
3255 {
3256
3257 ;
3258 return 0;
3259 }
3260 _ACEOF
3261 if ac_fn_c_try_compile "$LINENO"; then :
3262
3263 else
3264 ac_c_werror_flag=$ac_save_c_werror_flag
3265 CFLAGS="-g"
3266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3267 /* end confdefs.h. */
3268
3269 int
3270 main ()
3271 {
3272
3273 ;
3274 return 0;
3275 }
3276 _ACEOF
3277 if ac_fn_c_try_compile "$LINENO"; then :
3278 ac_cv_prog_cc_g=yes
3279 fi
3280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3281 fi
3282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3283 fi
3284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3285 ac_c_werror_flag=$ac_save_c_werror_flag
3286 fi
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3288 $as_echo "$ac_cv_prog_cc_g" >&6; }
3289 if test "$ac_test_CFLAGS" = set; then
3290 CFLAGS=$ac_save_CFLAGS
3291 elif test $ac_cv_prog_cc_g = yes; then
3292 if test "$GCC" = yes; then
3293 CFLAGS="-g -O2"
3294 else
3295 CFLAGS="-g"
3296 fi
3297 else
3298 if test "$GCC" = yes; then
3299 CFLAGS="-O2"
3300 else
3301 CFLAGS=
3302 fi
3303 fi
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3305 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3306 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3307 $as_echo_n "(cached) " >&6
3308 else
3309 ac_cv_prog_cc_c89=no
3310 ac_save_CC=$CC
3311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312 /* end confdefs.h. */
3313 #include <stdarg.h>
3314 #include <stdio.h>
3315 #include <sys/types.h>
3316 #include <sys/stat.h>
3317 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3318 struct buf { int x; };
3319 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3320 static char *e (p, i)
3321 char **p;
3322 int i;
3323 {
3324 return p[i];
3325 }
3326 static char *f (char * (*g) (char **, int), char **p, ...)
3327 {
3328 char *s;
3329 va_list v;
3330 va_start (v,p);
3331 s = g (p, va_arg (v,int));
3332 va_end (v);
3333 return s;
3334 }
3335
3336 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3337 function prototypes and stuff, but not '\xHH' hex character constants.
3338 These don't provoke an error unfortunately, instead are silently treated
3339 as 'x'. The following induces an error, until -std is added to get
3340 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3341 array size at least. It's necessary to write '\x00'==0 to get something
3342 that's true only with -std. */
3343 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3344
3345 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3346 inside strings and character constants. */
3347 #define FOO(x) 'x'
3348 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3349
3350 int test (int i, double x);
3351 struct s1 {int (*f) (int a);};
3352 struct s2 {int (*f) (double a);};
3353 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3354 int argc;
3355 char **argv;
3356 int
3357 main ()
3358 {
3359 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3360 ;
3361 return 0;
3362 }
3363 _ACEOF
3364 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3365 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3366 do
3367 CC="$ac_save_CC $ac_arg"
3368 if ac_fn_c_try_compile "$LINENO"; then :
3369 ac_cv_prog_cc_c89=$ac_arg
3370 fi
3371 rm -f core conftest.err conftest.$ac_objext
3372 test "x$ac_cv_prog_cc_c89" != "xno" && break
3373 done
3374 rm -f conftest.$ac_ext
3375 CC=$ac_save_CC
3376
3377 fi
3378 # AC_CACHE_VAL
3379 case "x$ac_cv_prog_cc_c89" in
3380 x)
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3382 $as_echo "none needed" >&6; } ;;
3383 xno)
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3385 $as_echo "unsupported" >&6; } ;;
3386 *)
3387 CC="$CC $ac_cv_prog_cc_c89"
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3389 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3390 esac
3391 if test "x$ac_cv_prog_cc_c89" != xno; then :
3392
3393 fi
3394
3395 ac_ext=c
3396 ac_cpp='$CPP $CPPFLAGS'
3397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3400
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3402 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3403 if test "${ac_cv_prog_cc_c99+set}" = set; then :
3404 $as_echo_n "(cached) " >&6
3405 else
3406 ac_cv_prog_cc_c99=no
3407 ac_save_CC=$CC
3408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3409 /* end confdefs.h. */
3410 #include <stdarg.h>
3411 #include <stdbool.h>
3412 #include <stdlib.h>
3413 #include <wchar.h>
3414 #include <stdio.h>
3415
3416 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3417 #define debug(...) fprintf (stderr, __VA_ARGS__)
3418 #define showlist(...) puts (#__VA_ARGS__)
3419 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3420 static void
3421 test_varargs_macros (void)
3422 {
3423 int x = 1234;
3424 int y = 5678;
3425 debug ("Flag");
3426 debug ("X = %d\n", x);
3427 showlist (The first, second, and third items.);
3428 report (x>y, "x is %d but y is %d", x, y);
3429 }
3430
3431 // Check long long types.
3432 #define BIG64 18446744073709551615ull
3433 #define BIG32 4294967295ul
3434 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3435 #if !BIG_OK
3436 your preprocessor is broken;
3437 #endif
3438 #if BIG_OK
3439 #else
3440 your preprocessor is broken;
3441 #endif
3442 static long long int bignum = -9223372036854775807LL;
3443 static unsigned long long int ubignum = BIG64;
3444
3445 struct incomplete_array
3446 {
3447 int datasize;
3448 double data[];
3449 };
3450
3451 struct named_init {
3452 int number;
3453 const wchar_t *name;
3454 double average;
3455 };
3456
3457 typedef const char *ccp;
3458
3459 static inline int
3460 test_restrict (ccp restrict text)
3461 {
3462 // See if C++-style comments work.
3463 // Iterate through items via the restricted pointer.
3464 // Also check for declarations in for loops.
3465 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3466 continue;
3467 return 0;
3468 }
3469
3470 // Check varargs and va_copy.
3471 static void
3472 test_varargs (const char *format, ...)
3473 {
3474 va_list args;
3475 va_start (args, format);
3476 va_list args_copy;
3477 va_copy (args_copy, args);
3478
3479 const char *str;
3480 int number;
3481 float fnumber;
3482
3483 while (*format)
3484 {
3485 switch (*format++)
3486 {
3487 case 's': // string
3488 str = va_arg (args_copy, const char *);
3489 break;
3490 case 'd': // int
3491 number = va_arg (args_copy, int);
3492 break;
3493 case 'f': // float
3494 fnumber = va_arg (args_copy, double);
3495 break;
3496 default:
3497 break;
3498 }
3499 }
3500 va_end (args_copy);
3501 va_end (args);
3502 }
3503
3504 int
3505 main ()
3506 {
3507
3508 // Check bool.
3509 _Bool success = false;
3510
3511 // Check restrict.
3512 if (test_restrict ("String literal") == 0)
3513 success = true;
3514 char *restrict newvar = "Another string";
3515
3516 // Check varargs.
3517 test_varargs ("s, d' f .", "string", 65, 34.234);
3518 test_varargs_macros ();
3519
3520 // Check flexible array members.
3521 struct incomplete_array *ia =
3522 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3523 ia->datasize = 10;
3524 for (int i = 0; i < ia->datasize; ++i)
3525 ia->data[i] = i * 1.234;
3526
3527 // Check named initializers.
3528 struct named_init ni = {
3529 .number = 34,
3530 .name = L"Test wide string",
3531 .average = 543.34343,
3532 };
3533
3534 ni.number = 58;
3535
3536 int dynamic_array[ni.number];
3537 dynamic_array[ni.number - 1] = 543;
3538
3539 // work around unused variable warnings
3540 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3541 || dynamic_array[ni.number - 1] != 543);
3542
3543 ;
3544 return 0;
3545 }
3546 _ACEOF
3547 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3548 do
3549 CC="$ac_save_CC $ac_arg"
3550 if ac_fn_c_try_compile "$LINENO"; then :
3551 ac_cv_prog_cc_c99=$ac_arg
3552 fi
3553 rm -f core conftest.err conftest.$ac_objext
3554 test "x$ac_cv_prog_cc_c99" != "xno" && break
3555 done
3556 rm -f conftest.$ac_ext
3557 CC=$ac_save_CC
3558
3559 fi
3560 # AC_CACHE_VAL
3561 case "x$ac_cv_prog_cc_c99" in
3562 x)
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3564 $as_echo "none needed" >&6; } ;;
3565 xno)
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3567 $as_echo "unsupported" >&6; } ;;
3568 *)
3569 CC="$CC $ac_cv_prog_cc_c99"
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3571 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3572 esac
3573 if test "x$ac_cv_prog_cc_c99" != xno; then :
3574
3575 fi
3576
3577
3578
3579 ac_ext=c
3580 ac_cpp='$CPP $CPPFLAGS'
3581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3585 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3586 # On Suns, sometimes $CPP names a directory.
3587 if test -n "$CPP" && test -d "$CPP"; then
3588 CPP=
3589 fi
3590 if test -z "$CPP"; then
3591 if test "${ac_cv_prog_CPP+set}" = set; then :
3592 $as_echo_n "(cached) " >&6
3593 else
3594 # Double quotes because CPP needs to be expanded
3595 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3596 do
3597 ac_preproc_ok=false
3598 for ac_c_preproc_warn_flag in '' yes
3599 do
3600 # Use a header file that comes with gcc, so configuring glibc
3601 # with a fresh cross-compiler works.
3602 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3603 # <limits.h> exists even on freestanding compilers.
3604 # On the NeXT, cc -E runs the code through the compiler's parser,
3605 # not just through cpp. "Syntax error" is here to catch this case.
3606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607 /* end confdefs.h. */
3608 #ifdef __STDC__
3609 # include <limits.h>
3610 #else
3611 # include <assert.h>
3612 #endif
3613 Syntax error
3614 _ACEOF
3615 if ac_fn_c_try_cpp "$LINENO"; then :
3616
3617 else
3618 # Broken: fails on valid input.
3619 continue
3620 fi
3621 rm -f conftest.err conftest.$ac_ext
3622
3623 # OK, works on sane cases. Now check whether nonexistent headers
3624 # can be detected and how.
3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626 /* end confdefs.h. */
3627 #include <ac_nonexistent.h>
3628 _ACEOF
3629 if ac_fn_c_try_cpp "$LINENO"; then :
3630 # Broken: success on invalid input.
3631 continue
3632 else
3633 # Passes both tests.
3634 ac_preproc_ok=:
3635 break
3636 fi
3637 rm -f conftest.err conftest.$ac_ext
3638
3639 done
3640 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3641 rm -f conftest.err conftest.$ac_ext
3642 if $ac_preproc_ok; then :
3643 break
3644 fi
3645
3646 done
3647 ac_cv_prog_CPP=$CPP
3648
3649 fi
3650 CPP=$ac_cv_prog_CPP
3651 else
3652 ac_cv_prog_CPP=$CPP
3653 fi
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3655 $as_echo "$CPP" >&6; }
3656 ac_preproc_ok=false
3657 for ac_c_preproc_warn_flag in '' yes
3658 do
3659 # Use a header file that comes with gcc, so configuring glibc
3660 # with a fresh cross-compiler works.
3661 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3662 # <limits.h> exists even on freestanding compilers.
3663 # On the NeXT, cc -E runs the code through the compiler's parser,
3664 # not just through cpp. "Syntax error" is here to catch this case.
3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h. */
3667 #ifdef __STDC__
3668 # include <limits.h>
3669 #else
3670 # include <assert.h>
3671 #endif
3672 Syntax error
3673 _ACEOF
3674 if ac_fn_c_try_cpp "$LINENO"; then :
3675
3676 else
3677 # Broken: fails on valid input.
3678 continue
3679 fi
3680 rm -f conftest.err conftest.$ac_ext
3681
3682 # OK, works on sane cases. Now check whether nonexistent headers
3683 # can be detected and how.
3684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685 /* end confdefs.h. */
3686 #include <ac_nonexistent.h>
3687 _ACEOF
3688 if ac_fn_c_try_cpp "$LINENO"; then :
3689 # Broken: success on invalid input.
3690 continue
3691 else
3692 # Passes both tests.
3693 ac_preproc_ok=:
3694 break
3695 fi
3696 rm -f conftest.err conftest.$ac_ext
3697
3698 done
3699 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3700 rm -f conftest.err conftest.$ac_ext
3701 if $ac_preproc_ok; then :
3702
3703 else
3704 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3706 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3707 See \`config.log' for more details." "$LINENO" 5; }
3708 fi
3709
3710 ac_ext=c
3711 ac_cpp='$CPP $CPPFLAGS'
3712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3715
3716
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3718 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3719 if test "${ac_cv_path_GREP+set}" = set; then :
3720 $as_echo_n "(cached) " >&6
3721 else
3722 if test -z "$GREP"; then
3723 ac_path_GREP_found=false
3724 # Loop through the user's path and test for each of PROGNAME-LIST
3725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3727 do
3728 IFS=$as_save_IFS
3729 test -z "$as_dir" && as_dir=.
3730 for ac_prog in grep ggrep; do
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3733 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3734 # Check for GNU ac_path_GREP and select it if it is found.
3735 # Check for GNU $ac_path_GREP
3736 case `"$ac_path_GREP" --version 2>&1` in
3737 *GNU*)
3738 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3739 *)
3740 ac_count=0
3741 $as_echo_n 0123456789 >"conftest.in"
3742 while :
3743 do
3744 cat "conftest.in" "conftest.in" >"conftest.tmp"
3745 mv "conftest.tmp" "conftest.in"
3746 cp "conftest.in" "conftest.nl"
3747 $as_echo 'GREP' >> "conftest.nl"
3748 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3749 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3750 as_fn_arith $ac_count + 1 && ac_count=$as_val
3751 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3752 # Best one so far, save it but keep looking for a better one
3753 ac_cv_path_GREP="$ac_path_GREP"
3754 ac_path_GREP_max=$ac_count
3755 fi
3756 # 10*(2^10) chars as input seems more than enough
3757 test $ac_count -gt 10 && break
3758 done
3759 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3760 esac
3761
3762 $ac_path_GREP_found && break 3
3763 done
3764 done
3765 done
3766 IFS=$as_save_IFS
3767 if test -z "$ac_cv_path_GREP"; then
3768 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3769 fi
3770 else
3771 ac_cv_path_GREP=$GREP
3772 fi
3773
3774 fi
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3776 $as_echo "$ac_cv_path_GREP" >&6; }
3777 GREP="$ac_cv_path_GREP"
3778
3779
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3781 $as_echo_n "checking for egrep... " >&6; }
3782 if test "${ac_cv_path_EGREP+set}" = set; then :
3783 $as_echo_n "(cached) " >&6
3784 else
3785 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3786 then ac_cv_path_EGREP="$GREP -E"
3787 else
3788 if test -z "$EGREP"; then
3789 ac_path_EGREP_found=false
3790 # Loop through the user's path and test for each of PROGNAME-LIST
3791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3793 do
3794 IFS=$as_save_IFS
3795 test -z "$as_dir" && as_dir=.
3796 for ac_prog in egrep; do
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3799 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3800 # Check for GNU ac_path_EGREP and select it if it is found.
3801 # Check for GNU $ac_path_EGREP
3802 case `"$ac_path_EGREP" --version 2>&1` in
3803 *GNU*)
3804 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3805 *)
3806 ac_count=0
3807 $as_echo_n 0123456789 >"conftest.in"
3808 while :
3809 do
3810 cat "conftest.in" "conftest.in" >"conftest.tmp"
3811 mv "conftest.tmp" "conftest.in"
3812 cp "conftest.in" "conftest.nl"
3813 $as_echo 'EGREP' >> "conftest.nl"
3814 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3815 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3816 as_fn_arith $ac_count + 1 && ac_count=$as_val
3817 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3818 # Best one so far, save it but keep looking for a better one
3819 ac_cv_path_EGREP="$ac_path_EGREP"
3820 ac_path_EGREP_max=$ac_count
3821 fi
3822 # 10*(2^10) chars as input seems more than enough
3823 test $ac_count -gt 10 && break
3824 done
3825 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3826 esac
3827
3828 $ac_path_EGREP_found && break 3
3829 done
3830 done
3831 done
3832 IFS=$as_save_IFS
3833 if test -z "$ac_cv_path_EGREP"; then
3834 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3835 fi
3836 else
3837 ac_cv_path_EGREP=$EGREP
3838 fi
3839
3840 fi
3841 fi
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3843 $as_echo "$ac_cv_path_EGREP" >&6; }
3844 EGREP="$ac_cv_path_EGREP"
3845
3846
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3848 $as_echo_n "checking for ANSI C header files... " >&6; }
3849 if test "${ac_cv_header_stdc+set}" = set; then :
3850 $as_echo_n "(cached) " >&6
3851 else
3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h. */
3854 #include <stdlib.h>
3855 #include <stdarg.h>
3856 #include <string.h>
3857 #include <float.h>
3858
3859 int
3860 main ()
3861 {
3862
3863 ;
3864 return 0;
3865 }
3866 _ACEOF
3867 if ac_fn_c_try_compile "$LINENO"; then :
3868 ac_cv_header_stdc=yes
3869 else
3870 ac_cv_header_stdc=no
3871 fi
3872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3873
3874 if test $ac_cv_header_stdc = yes; then
3875 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3878 #include <string.h>
3879
3880 _ACEOF
3881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3882 $EGREP "memchr" >/dev/null 2>&1; then :
3883
3884 else
3885 ac_cv_header_stdc=no
3886 fi
3887 rm -f conftest*
3888
3889 fi
3890
3891 if test $ac_cv_header_stdc = yes; then
3892 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894 /* end confdefs.h. */
3895 #include <stdlib.h>
3896
3897 _ACEOF
3898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3899 $EGREP "free" >/dev/null 2>&1; then :
3900
3901 else
3902 ac_cv_header_stdc=no
3903 fi
3904 rm -f conftest*
3905
3906 fi
3907
3908 if test $ac_cv_header_stdc = yes; then
3909 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3910 if test "$cross_compiling" = yes; then :
3911 :
3912 else
3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h. */
3915 #include <ctype.h>
3916 #include <stdlib.h>
3917 #if ((' ' & 0x0FF) == 0x020)
3918 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3919 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3920 #else
3921 # define ISLOWER(c) \
3922 (('a' <= (c) && (c) <= 'i') \
3923 || ('j' <= (c) && (c) <= 'r') \
3924 || ('s' <= (c) && (c) <= 'z'))
3925 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3926 #endif
3927
3928 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3929 int
3930 main ()
3931 {
3932 int i;
3933 for (i = 0; i < 256; i++)
3934 if (XOR (islower (i), ISLOWER (i))
3935 || toupper (i) != TOUPPER (i))
3936 return 2;
3937 return 0;
3938 }
3939 _ACEOF
3940 if ac_fn_c_try_run "$LINENO"; then :
3941
3942 else
3943 ac_cv_header_stdc=no
3944 fi
3945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3946 conftest.$ac_objext conftest.beam conftest.$ac_ext
3947 fi
3948
3949 fi
3950 fi
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3952 $as_echo "$ac_cv_header_stdc" >&6; }
3953 if test $ac_cv_header_stdc = yes; then
3954
3955 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3956
3957 fi
3958
3959 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3960 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3961 inttypes.h stdint.h unistd.h
3962 do :
3963 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3964 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3965 "
3966 eval as_val=\$$as_ac_Header
3967 if test "x$as_val" = x""yes; then :
3968 cat >>confdefs.h <<_ACEOF
3969 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3970 _ACEOF
3971
3972 fi
3973
3974 done
3975
3976
3977
3978
3979 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3980 if test -n "$ac_tool_prefix"; then
3981 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3982 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3984 $as_echo_n "checking for $ac_word... " >&6; }
3985 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
3986 $as_echo_n "(cached) " >&6
3987 else
3988 case $PKG_CONFIG in
3989 [\\/]* | ?:[\\/]*)
3990 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3991 ;;
3992 *)
3993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 for as_dir in $PATH
3995 do
3996 IFS=$as_save_IFS
3997 test -z "$as_dir" && as_dir=.
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4000 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4002 break 2
4003 fi
4004 done
4005 done
4006 IFS=$as_save_IFS
4007
4008 ;;
4009 esac
4010 fi
4011 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4012 if test -n "$PKG_CONFIG"; then
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4014 $as_echo "$PKG_CONFIG" >&6; }
4015 else
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4017 $as_echo "no" >&6; }
4018 fi
4019
4020
4021 fi
4022 if test -z "$ac_cv_path_PKG_CONFIG"; then
4023 ac_pt_PKG_CONFIG=$PKG_CONFIG
4024 # Extract the first word of "pkg-config", so it can be a program name with args.
4025 set dummy pkg-config; ac_word=$2
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4027 $as_echo_n "checking for $ac_word... " >&6; }
4028 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4029 $as_echo_n "(cached) " >&6
4030 else
4031 case $ac_pt_PKG_CONFIG in
4032 [\\/]* | ?:[\\/]*)
4033 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4034 ;;
4035 *)
4036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 for as_dir in $PATH
4038 do
4039 IFS=$as_save_IFS
4040 test -z "$as_dir" && as_dir=.
4041 for ac_exec_ext in '' $ac_executable_extensions; do
4042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4043 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4045 break 2
4046 fi
4047 done
4048 done
4049 IFS=$as_save_IFS
4050
4051 ;;
4052 esac
4053 fi
4054 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4055 if test -n "$ac_pt_PKG_CONFIG"; then
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4057 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4058 else
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4060 $as_echo "no" >&6; }
4061 fi
4062
4063 if test "x$ac_pt_PKG_CONFIG" = x; then
4064 PKG_CONFIG=""
4065 else
4066 case $cross_compiling:$ac_tool_warned in
4067 yes:)
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4070 ac_tool_warned=yes ;;
4071 esac
4072 PKG_CONFIG=$ac_pt_PKG_CONFIG
4073 fi
4074 else
4075 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4076 fi
4077
4078 fi
4079 if test -n "$PKG_CONFIG"; then
4080 _pkg_min_version=0.9.0
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4082 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4083 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4085 $as_echo "yes" >&6; }
4086 else
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4088 $as_echo "no" >&6; }
4089 PKG_CONFIG=""
4090 fi
4091
4092 fi
4093 # Make sure we can run config.sub.
4094 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4095 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4096
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4098 $as_echo_n "checking build system type... " >&6; }
4099 if test "${ac_cv_build+set}" = set; then :
4100 $as_echo_n "(cached) " >&6
4101 else
4102 ac_build_alias=$build_alias
4103 test "x$ac_build_alias" = x &&
4104 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4105 test "x$ac_build_alias" = x &&
4106 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4107 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4108 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4109
4110 fi
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4112 $as_echo "$ac_cv_build" >&6; }
4113 case $ac_cv_build in
4114 *-*-*) ;;
4115 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4116 esac
4117 build=$ac_cv_build
4118 ac_save_IFS=$IFS; IFS='-'
4119 set x $ac_cv_build
4120 shift
4121 build_cpu=$1
4122 build_vendor=$2
4123 shift; shift
4124 # Remember, the first character of IFS is used to create $*,
4125 # except with old shells:
4126 build_os=$*
4127 IFS=$ac_save_IFS
4128 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4129
4130
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4132 $as_echo_n "checking host system type... " >&6; }
4133 if test "${ac_cv_host+set}" = set; then :
4134 $as_echo_n "(cached) " >&6
4135 else
4136 if test "x$host_alias" = x; then
4137 ac_cv_host=$ac_cv_build
4138 else
4139 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4140 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4141 fi
4142
4143 fi
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4145 $as_echo "$ac_cv_host" >&6; }
4146 case $ac_cv_host in
4147 *-*-*) ;;
4148 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4149 esac
4150 host=$ac_cv_host
4151 ac_save_IFS=$IFS; IFS='-'
4152 set x $ac_cv_host
4153 shift
4154 host_cpu=$1
4155 host_vendor=$2
4156 shift; shift
4157 # Remember, the first character of IFS is used to create $*,
4158 # except with old shells:
4159 host_os=$*
4160 IFS=$ac_save_IFS
4161 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4162
4163
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4165 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4166 if test "${ac_cv_path_SED+set}" = set; then :
4167 $as_echo_n "(cached) " >&6
4168 else
4169 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4170 for ac_i in 1 2 3 4 5 6 7; do
4171 ac_script="$ac_script$as_nl$ac_script"
4172 done
4173 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4174 { ac_script=; unset ac_script;}
4175 if test -z "$SED"; then
4176 ac_path_SED_found=false
4177 # Loop through the user's path and test for each of PROGNAME-LIST
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 for as_dir in $PATH
4180 do
4181 IFS=$as_save_IFS
4182 test -z "$as_dir" && as_dir=.
4183 for ac_prog in sed gsed; do
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4186 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4187 # Check for GNU ac_path_SED and select it if it is found.
4188 # Check for GNU $ac_path_SED
4189 case `"$ac_path_SED" --version 2>&1` in
4190 *GNU*)
4191 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4192 *)
4193 ac_count=0
4194 $as_echo_n 0123456789 >"conftest.in"
4195 while :
4196 do
4197 cat "conftest.in" "conftest.in" >"conftest.tmp"
4198 mv "conftest.tmp" "conftest.in"
4199 cp "conftest.in" "conftest.nl"
4200 $as_echo '' >> "conftest.nl"
4201 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4202 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4203 as_fn_arith $ac_count + 1 && ac_count=$as_val
4204 if test $ac_count -gt ${ac_path_SED_max-0}; then
4205 # Best one so far, save it but keep looking for a better one
4206 ac_cv_path_SED="$ac_path_SED"
4207 ac_path_SED_max=$ac_count
4208 fi
4209 # 10*(2^10) chars as input seems more than enough
4210 test $ac_count -gt 10 && break
4211 done
4212 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4213 esac
4214
4215 $ac_path_SED_found && break 3
4216 done
4217 done
4218 done
4219 IFS=$as_save_IFS
4220 if test -z "$ac_cv_path_SED"; then
4221 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4222 fi
4223 else
4224 ac_cv_path_SED=$SED
4225 fi
4226
4227 fi
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4229 $as_echo "$ac_cv_path_SED" >&6; }
4230 SED="$ac_cv_path_SED"
4231 rm -f conftest.sed
4232
4233
4234
4235
4236
4237 if test "x$GCC" = xyes ; then
4238 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4239 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4240 -Wbad-function-cast -Wformat=2"
4241 case `$CC -dumpversion` in
4242 3.4.* | 4.*)
4243 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4244 ;;
4245 esac
4246 else
4247 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4248 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
4249 SUNCC="yes"
4250 else
4251 SUNCC="no"
4252 fi
4253
4254 if test "x$SUNCC" = "xyes"; then
4255 CWARNFLAGS="-v"
4256 fi
4257 fi
4258
4259
4260
4261 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4262
4263
4264
4265 # Check whether --enable-strict-compilation was given.
4266 if test "${enable_strict_compilation+set}" = set; then :
4267 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4268 else
4269 STRICT_COMPILE=no
4270 fi
4271
4272 if test "x$STRICT_COMPILE" = "xyes"; then
4273 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4274 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
4275 SUNCC="yes"
4276 else
4277 SUNCC="no"
4278 fi
4279
4280 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4281 if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then :
4282 INTELCC="yes"
4283 else
4284 INTELCC="no"
4285 fi
4286
4287 if test "x$GCC" = xyes ; then
4288 STRICT_CFLAGS="-pedantic -Werror"
4289 elif test "x$SUNCC" = "xyes"; then
4290 STRICT_CFLAGS="-errwarn"
4291 elif test "x$INTELCC" = "xyes"; then
4292 STRICT_CFLAGS="-Werror"
4293 fi
4294 fi
4295 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4296
4297
4298
4299
4300 cat >>confdefs.h <<_ACEOF
4301 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4302 _ACEOF
4303
4304 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4305 if test "x$PVM" = "x"; then
4306 PVM="0"
4307 fi
4308
4309 cat >>confdefs.h <<_ACEOF
4310 #define PACKAGE_VERSION_MINOR $PVM
4311 _ACEOF
4312
4313 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4314 if test "x$PVP" = "x"; then
4315 PVP="0"
4316 fi
4317
4318 cat >>confdefs.h <<_ACEOF
4319 #define PACKAGE_VERSION_PATCHLEVEL $PVP
4320 _ACEOF
4321
4322
4323
4324 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4325 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4326 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4327 echo 'git directory not found: installing possibly empty changelog.' >&2)"
4328
4329
4330
4331
4332 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4333 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4334 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4335 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4336 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4337
4338
4339
4340
4341
4342
4343 if test x$APP_MAN_SUFFIX = x ; then
4344 APP_MAN_SUFFIX=1
4345 fi
4346 if test x$APP_MAN_DIR = x ; then
4347 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4348 fi
4349
4350 if test x$LIB_MAN_SUFFIX = x ; then
4351 LIB_MAN_SUFFIX=3
4352 fi
4353 if test x$LIB_MAN_DIR = x ; then
4354 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4355 fi
4356
4357 if test x$FILE_MAN_SUFFIX = x ; then
4358 case $host_os in
4359 solaris*) FILE_MAN_SUFFIX=4 ;;
4360 *) FILE_MAN_SUFFIX=5 ;;
4361 esac
4362 fi
4363 if test x$FILE_MAN_DIR = x ; then
4364 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4365 fi
4366
4367 if test x$MISC_MAN_SUFFIX = x ; then
4368 case $host_os in
4369 solaris*) MISC_MAN_SUFFIX=5 ;;
4370 *) MISC_MAN_SUFFIX=7 ;;
4371 esac
4372 fi
4373 if test x$MISC_MAN_DIR = x ; then
4374 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4375 fi
4376
4377 if test x$DRIVER_MAN_SUFFIX = x ; then
4378 case $host_os in
4379 solaris*) DRIVER_MAN_SUFFIX=7 ;;
4380 *) DRIVER_MAN_SUFFIX=4 ;;
4381 esac
4382 fi
4383 if test x$DRIVER_MAN_DIR = x ; then
4384 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4385 fi
4386
4387 if test x$ADMIN_MAN_SUFFIX = x ; then
4388 case $host_os in
4389 solaris*) ADMIN_MAN_SUFFIX=1m ;;
4390 *) ADMIN_MAN_SUFFIX=8 ;;
4391 esac
4392 fi
4393 if test x$ADMIN_MAN_DIR = x ; then
4394 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4395 fi
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411 XORG_MAN_PAGE="X Version 11"
4412
4413 MAN_SUBSTS="\
4414 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4415 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4416 -e 's|__xservername__|Xorg|g' \
4417 -e 's|__xconfigfile__|xorg.conf|g' \
4418 -e 's|__projectroot__|\$(prefix)|g' \
4419 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4420 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4421 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4422 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4423 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4424 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4425
4426
4427
4428 # Check whether --enable-silent-rules was given.
4429 if test "${enable_silent_rules+set}" = set; then :
4430 enableval=$enable_silent_rules;
4431 fi
4432
4433 case $enable_silent_rules in
4434 yes) AM_DEFAULT_VERBOSITY=0;;
4435 no) AM_DEFAULT_VERBOSITY=1;;
4436 *) AM_DEFAULT_VERBOSITY=0;;
4437 esac
4438 AM_BACKSLASH='\'
4439
4440
4441
4442 ac_aux_dir=
4443 for ac_dir in . "$srcdir"/.; do
4444 for ac_t in install-sh install.sh shtool; do
4445 if test -f "$ac_dir/$ac_t"; then
4446 ac_aux_dir=$ac_dir
4447 ac_install_sh="$ac_aux_dir/$ac_t -c"
4448 break 2
4449 fi
4450 done
4451 done
4452 if test -z "$ac_aux_dir"; then
4453 as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
4454 fi
4455
4456 # These three variables are undocumented and unsupported,
4457 # and are intended to be withdrawn in a future Autoconf release.
4458 # They can cause serious problems if a builder's source tree is in a directory
4459 # whose full name contains unusual characters.
4460 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4461 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4462 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4463
4464
4465
4466 # Initialize Automake
4467 am__api_version='1.11'
4468
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4470 $as_echo_n "checking whether build environment is sane... " >&6; }
4471 # Just in case
4472 sleep 1
4473 echo timestamp > conftest.file
4474 # Reject unsafe characters in $srcdir or the absolute working directory
4475 # name. Accept space and tab only in the latter.
4476 am_lf='
4477 '
4478 case `pwd` in
4479 *[\\\"\#\$\&\'\`$am_lf]*)
4480 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4481 esac
4482 case $srcdir in
4483 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4484 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4485 esac
4486
4487 # Do `set' in a subshell so we don't clobber the current shell's
4488 # arguments. Must try -L first in case configure is actually a
4489 # symlink; some systems play weird games with the mod time of symlinks
4490 # (eg FreeBSD returns the mod time of the symlink's containing
4491 # directory).
4492 if (
4493 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4494 if test "$*" = "X"; then
4495 # -L didn't work.
4496 set X `ls -t "$srcdir/configure" conftest.file`
4497 fi
4498 rm -f conftest.file
4499 if test "$*" != "X $srcdir/configure conftest.file" \
4500 && test "$*" != "X conftest.file $srcdir/configure"; then
4501
4502 # If neither matched, then we have a broken ls. This can happen
4503 # if, for instance, CONFIG_SHELL is bash and it inherits a
4504 # broken ls alias from the environment. This has actually
4505 # happened. Such a system could not be considered "sane".
4506 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4507 alias in your environment" "$LINENO" 5
4508 fi
4509
4510 test "$2" = conftest.file
4511 )
4512 then
4513 # Ok.
4514 :
4515 else
4516 as_fn_error "newly created file is older than distributed files!
4517 Check your system clock" "$LINENO" 5
4518 fi
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4520 $as_echo "yes" >&6; }
4521 test "$program_prefix" != NONE &&
4522 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4523 # Use a double $ so make ignores it.
4524 test "$program_suffix" != NONE &&
4525 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4526 # Double any \ or $.
4527 # By default was `s,x,x', remove it if useless.
4528 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4529 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4530
4531 # expand $ac_aux_dir to an absolute path
4532 am_aux_dir=`cd $ac_aux_dir && pwd`
4533
4534 if test x"${MISSING+set}" != xset; then
4535 case $am_aux_dir in
4536 *\ * | *\ *)
4537 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4538 *)
4539 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4540 esac
4541 fi
4542 # Use eval to expand $SHELL
4543 if eval "$MISSING --run true"; then
4544 am_missing_run="$MISSING --run "
4545 else
4546 am_missing_run=
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4548 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4549 fi
4550
4551 if test x"${install_sh}" != xset; then
4552 case $am_aux_dir in
4553 *\ * | *\ *)
4554 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4555 *)
4556 install_sh="\${SHELL} $am_aux_dir/install-sh"
4557 esac
4558 fi
4559
4560 # Installed binaries are usually stripped using `strip' when the user
4561 # run `make install-strip'. However `strip' might not be the right
4562 # tool to use in cross-compilation environments, therefore Automake
4563 # will honor the `STRIP' environment variable to overrule this program.
4564 if test "$cross_compiling" != no; then
4565 if test -n "$ac_tool_prefix"; then
4566 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4567 set dummy ${ac_tool_prefix}strip; ac_word=$2
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4569 $as_echo_n "checking for $ac_word... " >&6; }
4570 if test "${ac_cv_prog_STRIP+set}" = set; then :
4571 $as_echo_n "(cached) " >&6
4572 else
4573 if test -n "$STRIP"; then
4574 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4575 else
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 for as_dir in $PATH
4578 do
4579 IFS=$as_save_IFS
4580 test -z "$as_dir" && as_dir=.
4581 for ac_exec_ext in '' $ac_executable_extensions; do
4582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4583 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4585 break 2
4586 fi
4587 done
4588 done
4589 IFS=$as_save_IFS
4590
4591 fi
4592 fi
4593 STRIP=$ac_cv_prog_STRIP
4594 if test -n "$STRIP"; then
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4596 $as_echo "$STRIP" >&6; }
4597 else
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4599 $as_echo "no" >&6; }
4600 fi
4601
4602
4603 fi
4604 if test -z "$ac_cv_prog_STRIP"; then
4605 ac_ct_STRIP=$STRIP
4606 # Extract the first word of "strip", so it can be a program name with args.
4607 set dummy strip; ac_word=$2
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4609 $as_echo_n "checking for $ac_word... " >&6; }
4610 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4611 $as_echo_n "(cached) " >&6
4612 else
4613 if test -n "$ac_ct_STRIP"; then
4614 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4615 else
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 for as_dir in $PATH
4618 do
4619 IFS=$as_save_IFS
4620 test -z "$as_dir" && as_dir=.
4621 for ac_exec_ext in '' $ac_executable_extensions; do
4622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4623 ac_cv_prog_ac_ct_STRIP="strip"
4624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4625 break 2
4626 fi
4627 done
4628 done
4629 IFS=$as_save_IFS
4630
4631 fi
4632 fi
4633 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4634 if test -n "$ac_ct_STRIP"; then
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4636 $as_echo "$ac_ct_STRIP" >&6; }
4637 else
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4639 $as_echo "no" >&6; }
4640 fi
4641
4642 if test "x$ac_ct_STRIP" = x; then
4643 STRIP=":"
4644 else
4645 case $cross_compiling:$ac_tool_warned in
4646 yes:)
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4648 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4649 ac_tool_warned=yes ;;
4650 esac
4651 STRIP=$ac_ct_STRIP
4652 fi
4653 else
4654 STRIP="$ac_cv_prog_STRIP"
4655 fi
4656
4657 fi
4658 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4659
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4661 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4662 if test -z "$MKDIR_P"; then
4663 if test "${ac_cv_path_mkdir+set}" = set; then :
4664 $as_echo_n "(cached) " >&6
4665 else
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4668 do
4669 IFS=$as_save_IFS
4670 test -z "$as_dir" && as_dir=.
4671 for ac_prog in mkdir gmkdir; do
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4674 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4675 'mkdir (GNU coreutils) '* | \
4676 'mkdir (coreutils) '* | \
4677 'mkdir (fileutils) '4.1*)
4678 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4679 break 3;;
4680 esac
4681 done
4682 done
4683 done
4684 IFS=$as_save_IFS
4685
4686 fi
4687
4688 test -d ./--version && rmdir ./--version
4689 if test "${ac_cv_path_mkdir+set}" = set; then
4690 MKDIR_P="$ac_cv_path_mkdir -p"
4691 else
4692 # As a last resort, use the slow shell script. Don't cache a
4693 # value for MKDIR_P within a source directory, because that will
4694 # break other packages using the cache if that directory is
4695 # removed, or if the value is a relative name.
4696 MKDIR_P="$ac_install_sh -d"
4697 fi
4698 fi
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4700 $as_echo "$MKDIR_P" >&6; }
4701
4702 mkdir_p="$MKDIR_P"
4703 case $mkdir_p in
4704 [\\/$]* | ?:[\\/]*) ;;
4705 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4706 esac
4707
4708 for ac_prog in gawk mawk nawk awk
4709 do
4710 # Extract the first word of "$ac_prog", so it can be a program name with args.
4711 set dummy $ac_prog; ac_word=$2
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4713 $as_echo_n "checking for $ac_word... " >&6; }
4714 if test "${ac_cv_prog_AWK+set}" = set; then :
4715 $as_echo_n "(cached) " >&6
4716 else
4717 if test -n "$AWK"; then
4718 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4719 else
4720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721 for as_dir in $PATH
4722 do
4723 IFS=$as_save_IFS
4724 test -z "$as_dir" && as_dir=.
4725 for ac_exec_ext in '' $ac_executable_extensions; do
4726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4727 ac_cv_prog_AWK="$ac_prog"
4728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4729 break 2
4730 fi
4731 done
4732 done
4733 IFS=$as_save_IFS
4734
4735 fi
4736 fi
4737 AWK=$ac_cv_prog_AWK
4738 if test -n "$AWK"; then
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4740 $as_echo "$AWK" >&6; }
4741 else
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4743 $as_echo "no" >&6; }
4744 fi
4745
4746
4747 test -n "$AWK" && break
4748 done
4749
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4751 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4752 set x ${MAKE-make}
4753 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4754 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4755 $as_echo_n "(cached) " >&6
4756 else
4757 cat >conftest.make <<\_ACEOF
4758 SHELL = /bin/sh
4759 all:
4760 @echo '@@@%%%=$(MAKE)=@@@%%%'
4761 _ACEOF
4762 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4763 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4764 *@@@%%%=?*=@@@%%%*)
4765 eval ac_cv_prog_make_${ac_make}_set=yes;;
4766 *)
4767 eval ac_cv_prog_make_${ac_make}_set=no;;
4768 esac
4769 rm -f conftest.make
4770 fi
4771 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4773 $as_echo "yes" >&6; }
4774 SET_MAKE=
4775 else
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4777 $as_echo "no" >&6; }
4778 SET_MAKE="MAKE=${MAKE-make}"
4779 fi
4780
4781 rm -rf .tst 2>/dev/null
4782 mkdir .tst 2>/dev/null
4783 if test -d .tst; then
4784 am__leading_dot=.
4785 else
4786 am__leading_dot=_
4787 fi
4788 rmdir .tst 2>/dev/null
4789
4790 DEPDIR="${am__leading_dot}deps"
4791
4792 ac_config_commands="$ac_config_commands depfiles"
4793
4794
4795 am_make=${MAKE-make}
4796 cat > confinc << 'END'
4797 am__doit:
4798 @echo this is the am__doit target
4799 .PHONY: am__doit
4800 END
4801 # If we don't find an include directive, just comment out the code.
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4803 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4804 am__include="#"
4805 am__quote=
4806 _am_result=none
4807 # First try GNU make style include.
4808 echo "include confinc" > confmf
4809 # Ignore all kinds of additional output from `make'.
4810 case `$am_make -s -f confmf 2> /dev/null` in #(
4811 *the\ am__doit\ target*)
4812 am__include=include
4813 am__quote=
4814 _am_result=GNU
4815 ;;
4816 esac
4817 # Now try BSD make style include.
4818 if test "$am__include" = "#"; then
4819 echo '.include "confinc"' > confmf
4820 case `$am_make -s -f confmf 2> /dev/null` in #(
4821 *the\ am__doit\ target*)
4822 am__include=.include
4823 am__quote="\""
4824 _am_result=BSD
4825 ;;
4826 esac
4827 fi
4828
4829
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4831 $as_echo "$_am_result" >&6; }
4832 rm -f confinc confmf
4833
4834 # Check whether --enable-dependency-tracking was given.
4835 if test "${enable_dependency_tracking+set}" = set; then :
4836 enableval=$enable_dependency_tracking;
4837 fi
4838
4839 if test "x$enable_dependency_tracking" != xno; then
4840 am_depcomp="$ac_aux_dir/depcomp"
4841 AMDEPBACKSLASH='\'
4842 fi
4843 if test "x$enable_dependency_tracking" != xno; then
4844 AMDEP_TRUE=
4845 AMDEP_FALSE='#'
4846 else
4847 AMDEP_TRUE='#'
4848 AMDEP_FALSE=
4849 fi
4850
4851
4852 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4853 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4854 # is not polluted with repeated "-I."
4855 am__isrc=' -I$(srcdir)'
4856 # test to see if srcdir already configured
4857 if test -f $srcdir/config.status; then
4858 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4859 fi
4860 fi
4861
4862 # test whether we have cygpath
4863 if test -z "$CYGPATH_W"; then
4864 if (cygpath --version) >/dev/null 2>/dev/null; then
4865 CYGPATH_W='cygpath -w'
4866 else
4867 CYGPATH_W=echo
4868 fi
4869 fi
4870
4871
4872 # Define the identity of the package.
4873 PACKAGE='xf86-video-ati'
4874 VERSION='6.14.1'
4875
4876
4877 cat >>confdefs.h <<_ACEOF
4878 #define PACKAGE "$PACKAGE"
4879 _ACEOF
4880
4881
4882 cat >>confdefs.h <<_ACEOF
4883 #define VERSION "$VERSION"
4884 _ACEOF
4885
4886 # Some tools Automake needs.
4887
4888 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4889
4890
4891 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4892
4893
4894 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4895
4896
4897 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4898
4899
4900 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4901
4902 # We need awk for the "check" target. The system "awk" is bad on
4903 # some platforms.
4904 # Always define AMTAR for backward compatibility.
4905
4906 AMTAR=${AMTAR-"${am_missing_run}tar"}
4907
4908 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4909
4910
4911
4912
4913 depcc="$CC" am_compiler_list=
4914
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4916 $as_echo_n "checking dependency style of $depcc... " >&6; }
4917 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4918 $as_echo_n "(cached) " >&6
4919 else
4920 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4921 # We make a subdir and do the tests there. Otherwise we can end up
4922 # making bogus files that we don't know about and never remove. For
4923 # instance it was reported that on HP-UX the gcc test will end up
4924 # making a dummy file named `D' -- because `-MD' means `put the output
4925 # in D'.
4926 mkdir conftest.dir
4927 # Copy depcomp to subdir because otherwise we won't find it if we're
4928 # using a relative directory.
4929 cp "$am_depcomp" conftest.dir
4930 cd conftest.dir
4931 # We will build objects and dependencies in a subdirectory because
4932 # it helps to detect inapplicable dependency modes. For instance
4933 # both Tru64's cc and ICC support -MD to output dependencies as a
4934 # side effect of compilation, but ICC will put the dependencies in
4935 # the current directory while Tru64 will put them in the object
4936 # directory.
4937 mkdir sub
4938
4939 am_cv_CC_dependencies_compiler_type=none
4940 if test "$am_compiler_list" = ""; then
4941 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4942 fi
4943 am__universal=false
4944 case " $depcc " in #(
4945 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4946 esac
4947
4948 for depmode in $am_compiler_list; do
4949 # Setup a source with many dependencies, because some compilers
4950 # like to wrap large dependency lists on column 80 (with \), and
4951 # we should not choose a depcomp mode which is confused by this.
4952 #
4953 # We need to recreate these files for each test, as the compiler may
4954 # overwrite some of them when testing with obscure command lines.
4955 # This happens at least with the AIX C compiler.
4956 : > sub/conftest.c
4957 for i in 1 2 3 4 5 6; do
4958 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4959 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4960 # Solaris 8's {/usr,}/bin/sh.
4961 touch sub/conftst$i.h
4962 done
4963 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4964
4965 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4966 # mode. It turns out that the SunPro C++ compiler does not properly
4967 # handle `-M -o', and we need to detect this. Also, some Intel
4968 # versions had trouble with output in subdirs
4969 am__obj=sub/conftest.${OBJEXT-o}
4970 am__minus_obj="-o $am__obj"
4971 case $depmode in
4972 gcc)
4973 # This depmode causes a compiler race in universal mode.
4974 test "$am__universal" = false || continue
4975 ;;
4976 nosideeffect)
4977 # after this tag, mechanisms are not by side-effect, so they'll
4978 # only be used when explicitly requested
4979 if test "x$enable_dependency_tracking" = xyes; then
4980 continue
4981 else
4982 break
4983 fi
4984 ;;
4985 msvisualcpp | msvcmsys)
4986 # This compiler won't grok `-c -o', but also, the minuso test has
4987 # not run yet. These depmodes are late enough in the game, and
4988 # so weak that their functioning should not be impacted.
4989 am__obj=conftest.${OBJEXT-o}
4990 am__minus_obj=
4991 ;;
4992 none) break ;;
4993 esac
4994 if depmode=$depmode \
4995 source=sub/conftest.c object=$am__obj \
4996 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4997 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4998 >/dev/null 2>conftest.err &&
4999 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5000 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5001 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5002 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5003 # icc doesn't choke on unknown options, it will just issue warnings
5004 # or remarks (even with -Werror). So we grep stderr for any message
5005 # that says an option was ignored or not supported.
5006 # When given -MP, icc 7.0 and 7.1 complain thusly:
5007 # icc: Command line warning: ignoring option '-M'; no argument required
5008 # The diagnosis changed in icc 8.0:
5009 # icc: Command line remark: option '-MP' not supported
5010 if (grep 'ignoring option' conftest.err ||
5011 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5012 am_cv_CC_dependencies_compiler_type=$depmode
5013 break
5014 fi
5015 fi
5016 done
5017
5018 cd ..
5019 rm -rf conftest.dir
5020 else
5021 am_cv_CC_dependencies_compiler_type=none
5022 fi
5023
5024 fi
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5026 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5027 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5028
5029 if
5030 test "x$enable_dependency_tracking" != xno \
5031 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5032 am__fastdepCC_TRUE=
5033 am__fastdepCC_FALSE='#'
5034 else
5035 am__fastdepCC_TRUE='#'
5036 am__fastdepCC_FALSE=
5037 fi
5038
5039
5040
5041 # Check whether --enable-largefile was given.
5042 if test "${enable_largefile+set}" = set; then :
5043 enableval=$enable_largefile;
5044 fi
5045
5046 if test "$enable_largefile" != no; then
5047
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5049 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5050 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5051 $as_echo_n "(cached) " >&6
5052 else
5053 ac_cv_sys_largefile_CC=no
5054 if test "$GCC" != yes; then
5055 ac_save_CC=$CC
5056 while :; do
5057 # IRIX 6.2 and later do not support large files by default,
5058 # so use the C compiler's -n32 option if that helps.
5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060 /* end confdefs.h. */
5061 #include <sys/types.h>
5062 /* Check that off_t can represent 2**63 - 1 correctly.
5063 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5064 since some C++ compilers masquerading as C compilers
5065 incorrectly reject 9223372036854775807. */
5066 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5067 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5068 && LARGE_OFF_T % 2147483647 == 1)
5069 ? 1 : -1];
5070 int
5071 main ()
5072 {
5073
5074 ;
5075 return 0;
5076 }
5077 _ACEOF
5078 if ac_fn_c_try_compile "$LINENO"; then :
5079 break
5080 fi
5081 rm -f core conftest.err conftest.$ac_objext
5082 CC="$CC -n32"
5083 if ac_fn_c_try_compile "$LINENO"; then :
5084 ac_cv_sys_largefile_CC=' -n32'; break
5085 fi
5086 rm -f core conftest.err conftest.$ac_objext
5087 break
5088 done
5089 CC=$ac_save_CC
5090 rm -f conftest.$ac_ext
5091 fi
5092 fi
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5094 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5095 if test "$ac_cv_sys_largefile_CC" != no; then
5096 CC=$CC$ac_cv_sys_largefile_CC
5097 fi
5098
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5100 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5101 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5102 $as_echo_n "(cached) " >&6
5103 else
5104 while :; do
5105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106 /* end confdefs.h. */
5107 #include <sys/types.h>
5108 /* Check that off_t can represent 2**63 - 1 correctly.
5109 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5110 since some C++ compilers masquerading as C compilers
5111 incorrectly reject 9223372036854775807. */
5112 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5113 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5114 && LARGE_OFF_T % 2147483647 == 1)
5115 ? 1 : -1];
5116 int
5117 main ()
5118 {
5119
5120 ;
5121 return 0;
5122 }
5123 _ACEOF
5124 if ac_fn_c_try_compile "$LINENO"; then :
5125 ac_cv_sys_file_offset_bits=no; break
5126 fi
5127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h. */
5130 #define _FILE_OFFSET_BITS 64
5131 #include <sys/types.h>
5132 /* Check that off_t can represent 2**63 - 1 correctly.
5133 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5134 since some C++ compilers masquerading as C compilers
5135 incorrectly reject 9223372036854775807. */
5136 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5137 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5138 && LARGE_OFF_T % 2147483647 == 1)
5139 ? 1 : -1];
5140 int
5141 main ()
5142 {
5143
5144 ;
5145 return 0;
5146 }
5147 _ACEOF
5148 if ac_fn_c_try_compile "$LINENO"; then :
5149 ac_cv_sys_file_offset_bits=64; break
5150 fi
5151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5152 ac_cv_sys_file_offset_bits=unknown
5153 break
5154 done
5155 fi
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5157 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5158 case $ac_cv_sys_file_offset_bits in #(
5159 no | unknown) ;;
5160 *)
5161 cat >>confdefs.h <<_ACEOF
5162 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5163 _ACEOF
5164 ;;
5165 esac
5166 rm -rf conftest*
5167 if test $ac_cv_sys_file_offset_bits = unknown; then
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5169 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5170 if test "${ac_cv_sys_large_files+set}" = set; then :
5171 $as_echo_n "(cached) " >&6
5172 else
5173 while :; do
5174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5175 /* end confdefs.h. */
5176 #include <sys/types.h>
5177 /* Check that off_t can represent 2**63 - 1 correctly.
5178 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5179 since some C++ compilers masquerading as C compilers
5180 incorrectly reject 9223372036854775807. */
5181 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5182 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5183 && LARGE_OFF_T % 2147483647 == 1)
5184 ? 1 : -1];
5185 int
5186 main ()
5187 {
5188
5189 ;
5190 return 0;
5191 }
5192 _ACEOF
5193 if ac_fn_c_try_compile "$LINENO"; then :
5194 ac_cv_sys_large_files=no; break
5195 fi
5196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5199 #define _LARGE_FILES 1
5200 #include <sys/types.h>
5201 /* Check that off_t can represent 2**63 - 1 correctly.
5202 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5203 since some C++ compilers masquerading as C compilers
5204 incorrectly reject 9223372036854775807. */
5205 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5206 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5207 && LARGE_OFF_T % 2147483647 == 1)
5208 ? 1 : -1];
5209 int
5210 main ()
5211 {
5212
5213 ;
5214 return 0;
5215 }
5216 _ACEOF
5217 if ac_fn_c_try_compile "$LINENO"; then :
5218 ac_cv_sys_large_files=1; break
5219 fi
5220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5221 ac_cv_sys_large_files=unknown
5222 break
5223 done
5224 fi
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5226 $as_echo "$ac_cv_sys_large_files" >&6; }
5227 case $ac_cv_sys_large_files in #(
5228 no | unknown) ;;
5229 *)
5230 cat >>confdefs.h <<_ACEOF
5231 #define _LARGE_FILES $ac_cv_sys_large_files
5232 _ACEOF
5233 ;;
5234 esac
5235 rm -rf conftest*
5236 fi
5237 fi
5238
5239
5240
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5242 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5243 # Check whether --enable-maintainer-mode was given.
5244 if test "${enable_maintainer_mode+set}" = set; then :
5245 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5246 else
5247 USE_MAINTAINER_MODE=no
5248 fi
5249
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5251 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5252 if test $USE_MAINTAINER_MODE = yes; then
5253 MAINTAINER_MODE_TRUE=
5254 MAINTAINER_MODE_FALSE='#'
5255 else
5256 MAINTAINER_MODE_TRUE='#'
5257 MAINTAINER_MODE_FALSE=
5258 fi
5259
5260 MAINT=$MAINTAINER_MODE_TRUE
5261
5262
5263
5264 # Initialize libtool
5265 # Check whether --enable-static was given.
5266 if test "${enable_static+set}" = set; then :
5267 enableval=$enable_static; p=${PACKAGE-default}
5268 case $enableval in
5269 yes) enable_static=yes ;;
5270 no) enable_static=no ;;
5271 *)
5272 enable_static=no
5273 # Look at the argument we got. We use all the common list separators.
5274 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5275 for pkg in $enableval; do
5276 IFS="$lt_save_ifs"
5277 if test "X$pkg" = "X$p"; then
5278 enable_static=yes
5279 fi
5280 done
5281 IFS="$lt_save_ifs"
5282 ;;
5283 esac
5284 else
5285 enable_static=no
5286 fi
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296 case `pwd` in
5297 *\ * | *\ *)
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5299 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5300 esac
5301
5302
5303
5304 macro_version='2.2.6b'
5305 macro_revision='1.3017'
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319 ltmain="$ac_aux_dir/ltmain.sh"
5320
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5322 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5323 if test "${ac_cv_path_SED+set}" = set; then :
5324 $as_echo_n "(cached) " >&6
5325 else
5326 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5327 for ac_i in 1 2 3 4 5 6 7; do
5328 ac_script="$ac_script$as_nl$ac_script"
5329 done
5330 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5331 { ac_script=; unset ac_script;}
5332 if test -z "$SED"; then
5333 ac_path_SED_found=false
5334 # Loop through the user's path and test for each of PROGNAME-LIST
5335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336 for as_dir in $PATH
5337 do
5338 IFS=$as_save_IFS
5339 test -z "$as_dir" && as_dir=.
5340 for ac_prog in sed gsed; do
5341 for ac_exec_ext in '' $ac_executable_extensions; do
5342 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5343 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5344 # Check for GNU ac_path_SED and select it if it is found.
5345 # Check for GNU $ac_path_SED
5346 case `"$ac_path_SED" --version 2>&1` in
5347 *GNU*)
5348 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5349 *)
5350 ac_count=0
5351 $as_echo_n 0123456789 >"conftest.in"
5352 while :
5353 do
5354 cat "conftest.in" "conftest.in" >"conftest.tmp"
5355 mv "conftest.tmp" "conftest.in"
5356 cp "conftest.in" "conftest.nl"
5357 $as_echo '' >> "conftest.nl"
5358 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5359 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5360 as_fn_arith $ac_count + 1 && ac_count=$as_val
5361 if test $ac_count -gt ${ac_path_SED_max-0}; then
5362 # Best one so far, save it but keep looking for a better one
5363 ac_cv_path_SED="$ac_path_SED"
5364 ac_path_SED_max=$ac_count
5365 fi
5366 # 10*(2^10) chars as input seems more than enough
5367 test $ac_count -gt 10 && break
5368 done
5369 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5370 esac
5371
5372 $ac_path_SED_found && break 3
5373 done
5374 done
5375 done
5376 IFS=$as_save_IFS
5377 if test -z "$ac_cv_path_SED"; then
5378 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5379 fi
5380 else
5381 ac_cv_path_SED=$SED
5382 fi
5383
5384 fi
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5386 $as_echo "$ac_cv_path_SED" >&6; }
5387 SED="$ac_cv_path_SED"
5388 rm -f conftest.sed
5389
5390 test -z "$SED" && SED=sed
5391 Xsed="$SED -e 1s/^X//"
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5404 $as_echo_n "checking for fgrep... " >&6; }
5405 if test "${ac_cv_path_FGREP+set}" = set; then :
5406 $as_echo_n "(cached) " >&6
5407 else
5408 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5409 then ac_cv_path_FGREP="$GREP -F"
5410 else
5411 if test -z "$FGREP"; then
5412 ac_path_FGREP_found=false
5413 # Loop through the user's path and test for each of PROGNAME-LIST
5414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5416 do
5417 IFS=$as_save_IFS
5418 test -z "$as_dir" && as_dir=.
5419 for ac_prog in fgrep; do
5420 for ac_exec_ext in '' $ac_executable_extensions; do
5421 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5422 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5423 # Check for GNU ac_path_FGREP and select it if it is found.
5424 # Check for GNU $ac_path_FGREP
5425 case `"$ac_path_FGREP" --version 2>&1` in
5426 *GNU*)
5427 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5428 *)
5429 ac_count=0
5430 $as_echo_n 0123456789 >"conftest.in"
5431 while :
5432 do
5433 cat "conftest.in" "conftest.in" >"conftest.tmp"
5434 mv "conftest.tmp" "conftest.in"
5435 cp "conftest.in" "conftest.nl"
5436 $as_echo 'FGREP' >> "conftest.nl"
5437 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5438 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5439 as_fn_arith $ac_count + 1 && ac_count=$as_val
5440 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5441 # Best one so far, save it but keep looking for a better one
5442 ac_cv_path_FGREP="$ac_path_FGREP"
5443 ac_path_FGREP_max=$ac_count
5444 fi
5445 # 10*(2^10) chars as input seems more than enough
5446 test $ac_count -gt 10 && break
5447 done
5448 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5449 esac
5450
5451 $ac_path_FGREP_found && break 3
5452 done
5453 done
5454 done
5455 IFS=$as_save_IFS
5456 if test -z "$ac_cv_path_FGREP"; then
5457 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5458 fi
5459 else
5460 ac_cv_path_FGREP=$FGREP
5461 fi
5462
5463 fi
5464 fi
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5466 $as_echo "$ac_cv_path_FGREP" >&6; }
5467 FGREP="$ac_cv_path_FGREP"
5468
5469
5470 test -z "$GREP" && GREP=grep
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490 # Check whether --with-gnu-ld was given.
5491 if test "${with_gnu_ld+set}" = set; then :
5492 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5493 else
5494 with_gnu_ld=no
5495 fi
5496
5497 ac_prog=ld
5498 if test "$GCC" = yes; then
5499 # Check if gcc -print-prog-name=ld gives a path.
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5501 $as_echo_n "checking for ld used by $CC... " >&6; }
5502 case $host in
5503 *-*-mingw*)
5504 # gcc leaves a trailing carriage return which upsets mingw
5505 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5506 *)
5507 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5508 esac
5509 case $ac_prog in
5510 # Accept absolute paths.
5511 [\\/]* | ?:[\\/]*)
5512 re_direlt='/[^/][^/]*/\.\./'
5513 # Canonicalize the pathname of ld
5514 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5515 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5516 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5517 done
5518 test -z "$LD" && LD="$ac_prog"
5519 ;;
5520 "")
5521 # If it fails, then pretend we aren't using GCC.
5522 ac_prog=ld
5523 ;;
5524 *)
5525 # If it is relative, then search for the first ld in PATH.
5526 with_gnu_ld=unknown
5527 ;;
5528 esac
5529 elif test "$with_gnu_ld" = yes; then
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5531 $as_echo_n "checking for GNU ld... " >&6; }
5532 else
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5534 $as_echo_n "checking for non-GNU ld... " >&6; }
5535 fi
5536 if test "${lt_cv_path_LD+set}" = set; then :
5537 $as_echo_n "(cached) " >&6
5538 else
5539 if test -z "$LD"; then
5540 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5541 for ac_dir in $PATH; do
5542 IFS="$lt_save_ifs"
5543 test -z "$ac_dir" && ac_dir=.
5544 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5545 lt_cv_path_LD="$ac_dir/$ac_prog"
5546 # Check to see if the program is GNU ld. I'd rather use --version,
5547 # but apparently some variants of GNU ld only accept -v.
5548 # Break only if it was the GNU/non-GNU ld that we prefer.
5549 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5550 *GNU* | *'with BFD'*)
5551 test "$with_gnu_ld" != no && break
5552 ;;
5553 *)
5554 test "$with_gnu_ld" != yes && break
5555 ;;
5556 esac
5557 fi
5558 done
5559 IFS="$lt_save_ifs"
5560 else
5561 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5562 fi
5563 fi
5564
5565 LD="$lt_cv_path_LD"
5566 if test -n "$LD"; then
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5568 $as_echo "$LD" >&6; }
5569 else
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571 $as_echo "no" >&6; }
5572 fi
5573 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5575 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5576 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5577 $as_echo_n "(cached) " >&6
5578 else
5579 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5580 case `$LD -v 2>&1 </dev/null` in
5581 *GNU* | *'with BFD'*)
5582 lt_cv_prog_gnu_ld=yes
5583 ;;
5584 *)
5585 lt_cv_prog_gnu_ld=no
5586 ;;
5587 esac
5588 fi
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5590 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5591 with_gnu_ld=$lt_cv_prog_gnu_ld
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5602 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5603 if test "${lt_cv_path_NM+set}" = set; then :
5604 $as_echo_n "(cached) " >&6
5605 else
5606 if test -n "$NM"; then
5607 # Let the user override the test.
5608 lt_cv_path_NM="$NM"
5609 else
5610 lt_nm_to_check="${ac_tool_prefix}nm"
5611 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5612 lt_nm_to_check="$lt_nm_to_check nm"
5613 fi
5614 for lt_tmp_nm in $lt_nm_to_check; do
5615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5616 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5617 IFS="$lt_save_ifs"
5618 test -z "$ac_dir" && ac_dir=.
5619 tmp_nm="$ac_dir/$lt_tmp_nm"
5620 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5621 # Check to see if the nm accepts a BSD-compat flag.
5622 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5623 # nm: unknown option "B" ignored
5624 # Tru64's nm complains that /dev/null is an invalid object file
5625 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5626 */dev/null* | *'Invalid file or object type'*)
5627 lt_cv_path_NM="$tmp_nm -B"
5628 break
5629 ;;
5630 *)
5631 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5632 */dev/null*)
5633 lt_cv_path_NM="$tmp_nm -p"
5634 break
5635 ;;
5636 *)
5637 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5638 continue # so that we can try to find one that supports BSD flags
5639 ;;
5640 esac
5641 ;;
5642 esac
5643 fi
5644 done
5645 IFS="$lt_save_ifs"
5646 done
5647 : ${lt_cv_path_NM=no}
5648 fi
5649 fi
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5651 $as_echo "$lt_cv_path_NM" >&6; }
5652 if test "$lt_cv_path_NM" != "no"; then
5653 NM="$lt_cv_path_NM"
5654 else
5655 # Didn't find any BSD compatible name lister, look for dumpbin.
5656 if test -n "$ac_tool_prefix"; then
5657 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5658 do
5659 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5660 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5662 $as_echo_n "checking for $ac_word... " >&6; }
5663 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5664 $as_echo_n "(cached) " >&6
5665 else
5666 if test -n "$DUMPBIN"; then
5667 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5668 else
5669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670 for as_dir in $PATH
5671 do
5672 IFS=$as_save_IFS
5673 test -z "$as_dir" && as_dir=.
5674 for ac_exec_ext in '' $ac_executable_extensions; do
5675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5676 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5678 break 2
5679 fi
5680 done
5681 done
5682 IFS=$as_save_IFS
5683
5684 fi
5685 fi
5686 DUMPBIN=$ac_cv_prog_DUMPBIN
5687 if test -n "$DUMPBIN"; then
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5689 $as_echo "$DUMPBIN" >&6; }
5690 else
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692 $as_echo "no" >&6; }
5693 fi
5694
5695
5696 test -n "$DUMPBIN" && break
5697 done
5698 fi
5699 if test -z "$DUMPBIN"; then
5700 ac_ct_DUMPBIN=$DUMPBIN
5701 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5702 do
5703 # Extract the first word of "$ac_prog", so it can be a program name with args.
5704 set dummy $ac_prog; ac_word=$2
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5706 $as_echo_n "checking for $ac_word... " >&6; }
5707 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5708 $as_echo_n "(cached) " >&6
5709 else
5710 if test -n "$ac_ct_DUMPBIN"; then
5711 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5712 else
5713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714 for as_dir in $PATH
5715 do
5716 IFS=$as_save_IFS
5717 test -z "$as_dir" && as_dir=.
5718 for ac_exec_ext in '' $ac_executable_extensions; do
5719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5720 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5722 break 2
5723 fi
5724 done
5725 done
5726 IFS=$as_save_IFS
5727
5728 fi
5729 fi
5730 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5731 if test -n "$ac_ct_DUMPBIN"; then
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5733 $as_echo "$ac_ct_DUMPBIN" >&6; }
5734 else
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736 $as_echo "no" >&6; }
5737 fi
5738
5739
5740 test -n "$ac_ct_DUMPBIN" && break
5741 done
5742
5743 if test "x$ac_ct_DUMPBIN" = x; then
5744 DUMPBIN=":"
5745 else
5746 case $cross_compiling:$ac_tool_warned in
5747 yes:)
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5750 ac_tool_warned=yes ;;
5751 esac
5752 DUMPBIN=$ac_ct_DUMPBIN
5753 fi
5754 fi
5755
5756
5757 if test "$DUMPBIN" != ":"; then
5758 NM="$DUMPBIN"
5759 fi
5760 fi
5761 test -z "$NM" && NM=nm
5762
5763
5764
5765
5766
5767
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5769 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5770 if test "${lt_cv_nm_interface+set}" = set; then :
5771 $as_echo_n "(cached) " >&6
5772 else
5773 lt_cv_nm_interface="BSD nm"
5774 echo "int some_variable = 0;" > conftest.$ac_ext
5775 (eval echo "\"\$as_me:5775: $ac_compile\"" >&5)
5776 (eval "$ac_compile" 2>conftest.err)
5777 cat conftest.err >&5
5778 (eval echo "\"\$as_me:5778: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5779 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5780 cat conftest.err >&5
5781 (eval echo "\"\$as_me:5781: output\"" >&5)
5782 cat conftest.out >&5
5783 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5784 lt_cv_nm_interface="MS dumpbin"
5785 fi
5786 rm -f conftest*
5787 fi
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5789 $as_echo "$lt_cv_nm_interface" >&6; }
5790
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5792 $as_echo_n "checking whether ln -s works... " >&6; }
5793 LN_S=$as_ln_s
5794 if test "$LN_S" = "ln -s"; then
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5796 $as_echo "yes" >&6; }
5797 else
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5799 $as_echo "no, using $LN_S" >&6; }
5800 fi
5801
5802 # find the maximum length of command line arguments
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5804 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5805 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5806 $as_echo_n "(cached) " >&6
5807 else
5808 i=0
5809 teststring="ABCD"
5810
5811 case $build_os in
5812 msdosdjgpp*)
5813 # On DJGPP, this test can blow up pretty badly due to problems in libc
5814 # (any single argument exceeding 2000 bytes causes a buffer overrun
5815 # during glob expansion). Even if it were fixed, the result of this
5816 # check would be larger than it should be.
5817 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5818 ;;
5819
5820 gnu*)
5821 # Under GNU Hurd, this test is not required because there is
5822 # no limit to the length of command line arguments.
5823 # Libtool will interpret -1 as no limit whatsoever
5824 lt_cv_sys_max_cmd_len=-1;
5825 ;;
5826
5827 cygwin* | mingw* | cegcc*)
5828 # On Win9x/ME, this test blows up -- it succeeds, but takes
5829 # about 5 minutes as the teststring grows exponentially.
5830 # Worse, since 9x/ME are not pre-emptively multitasking,
5831 # you end up with a "frozen" computer, even though with patience
5832 # the test eventually succeeds (with a max line length of 256k).
5833 # Instead, let's just punt: use the minimum linelength reported by
5834 # all of the supported platforms: 8192 (on NT/2K/XP).
5835 lt_cv_sys_max_cmd_len=8192;
5836 ;;
5837
5838 amigaos*)
5839 # On AmigaOS with pdksh, this test takes hours, literally.
5840 # So we just punt and use a minimum line length of 8192.
5841 lt_cv_sys_max_cmd_len=8192;
5842 ;;
5843
5844 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5845 # This has been around since 386BSD, at least. Likely further.
5846 if test -x /sbin/sysctl; then
5847 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5848 elif test -x /usr/sbin/sysctl; then
5849 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5850 else
5851 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5852 fi
5853 # And add a safety zone
5854 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5855 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5856 ;;
5857
5858 interix*)
5859 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5860 lt_cv_sys_max_cmd_len=196608
5861 ;;
5862
5863 osf*)
5864 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5865 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5866 # nice to cause kernel panics so lets avoid the loop below.
5867 # First set a reasonable default.
5868 lt_cv_sys_max_cmd_len=16384
5869 #
5870 if test -x /sbin/sysconfig; then
5871 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5872 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5873 esac
5874 fi
5875 ;;
5876 sco3.2v5*)
5877 lt_cv_sys_max_cmd_len=102400
5878 ;;
5879 sysv5* | sco5v6* | sysv4.2uw2*)
5880 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5881 if test -n "$kargmax"; then
5882 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5883 else
5884 lt_cv_sys_max_cmd_len=32768
5885 fi
5886 ;;
5887 *)
5888 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5889 if test -n "$lt_cv_sys_max_cmd_len"; then
5890 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5891 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5892 else
5893 # Make teststring a little bigger before we do anything with it.
5894 # a 1K string should be a reasonable start.
5895 for i in 1 2 3 4 5 6 7 8 ; do
5896 teststring=$teststring$teststring
5897 done
5898 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5899 # If test is not a shell built-in, we'll probably end up computing a
5900 # maximum length that is only half of the actual maximum length, but
5901 # we can't tell.
5902 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5903 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5904 test $i != 17 # 1/2 MB should be enough
5905 do
5906 i=`expr $i + 1`
5907 teststring=$teststring$teststring
5908 done
5909 # Only check the string length outside the loop.
5910 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5911 teststring=
5912 # Add a significant safety factor because C++ compilers can tack on
5913 # massive amounts of additional arguments before passing them to the
5914 # linker. It appears as though 1/2 is a usable value.
5915 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5916 fi
5917 ;;
5918 esac
5919
5920 fi
5921
5922 if test -n $lt_cv_sys_max_cmd_len ; then
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5924 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5925 else
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5927 $as_echo "none" >&6; }
5928 fi
5929 max_cmd_len=$lt_cv_sys_max_cmd_len
5930
5931
5932
5933
5934
5935
5936 : ${CP="cp -f"}
5937 : ${MV="mv -f"}
5938 : ${RM="rm -f"}
5939
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5941 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5942 # Try some XSI features
5943 xsi_shell=no
5944 ( _lt_dummy="a/b/c"
5945 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5946 = c,a/b,, \
5947 && eval 'test $(( 1 + 1 )) -eq 2 \
5948 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5949 && xsi_shell=yes
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5951 $as_echo "$xsi_shell" >&6; }
5952
5953
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5955 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5956 lt_shell_append=no
5957 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5958 >/dev/null 2>&1 \
5959 && lt_shell_append=yes
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5961 $as_echo "$lt_shell_append" >&6; }
5962
5963
5964 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5965 lt_unset=unset
5966 else
5967 lt_unset=false
5968 fi
5969
5970
5971
5972
5973
5974 # test EBCDIC or ASCII
5975 case `echo X|tr X '\101'` in
5976 A) # ASCII based system
5977 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5978 lt_SP2NL='tr \040 \012'
5979 lt_NL2SP='tr \015\012 \040\040'
5980 ;;
5981 *) # EBCDIC based system
5982 lt_SP2NL='tr \100 \n'
5983 lt_NL2SP='tr \r\n \100\100'
5984 ;;
5985 esac
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5996 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5997 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5998 $as_echo_n "(cached) " >&6
5999 else
6000 lt_cv_ld_reload_flag='-r'
6001 fi
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6003 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6004 reload_flag=$lt_cv_ld_reload_flag
6005 case $reload_flag in
6006 "" | " "*) ;;
6007 *) reload_flag=" $reload_flag" ;;
6008 esac
6009 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6010 case $host_os in
6011 darwin*)
6012 if test "$GCC" = yes; then
6013 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6014 else
6015 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6016 fi
6017 ;;
6018 esac
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028 if test -n "$ac_tool_prefix"; then
6029 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6030 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6032 $as_echo_n "checking for $ac_word... " >&6; }
6033 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6034 $as_echo_n "(cached) " >&6
6035 else
6036 if test -n "$OBJDUMP"; then
6037 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6038 else
6039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040 for as_dir in $PATH
6041 do
6042 IFS=$as_save_IFS
6043 test -z "$as_dir" && as_dir=.
6044 for ac_exec_ext in '' $ac_executable_extensions; do
6045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6046 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6048 break 2
6049 fi
6050 done
6051 done
6052 IFS=$as_save_IFS
6053
6054 fi
6055 fi
6056 OBJDUMP=$ac_cv_prog_OBJDUMP
6057 if test -n "$OBJDUMP"; then
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6059 $as_echo "$OBJDUMP" >&6; }
6060 else
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6062 $as_echo "no" >&6; }
6063 fi
6064
6065
6066 fi
6067 if test -z "$ac_cv_prog_OBJDUMP"; then
6068 ac_ct_OBJDUMP=$OBJDUMP
6069 # Extract the first word of "objdump", so it can be a program name with args.
6070 set dummy objdump; ac_word=$2
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6072 $as_echo_n "checking for $ac_word... " >&6; }
6073 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6074 $as_echo_n "(cached) " >&6
6075 else
6076 if test -n "$ac_ct_OBJDUMP"; then
6077 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6078 else
6079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080 for as_dir in $PATH
6081 do
6082 IFS=$as_save_IFS
6083 test -z "$as_dir" && as_dir=.
6084 for ac_exec_ext in '' $ac_executable_extensions; do
6085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6086 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6088 break 2
6089 fi
6090 done
6091 done
6092 IFS=$as_save_IFS
6093
6094 fi
6095 fi
6096 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6097 if test -n "$ac_ct_OBJDUMP"; then
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6099 $as_echo "$ac_ct_OBJDUMP" >&6; }
6100 else
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6102 $as_echo "no" >&6; }
6103 fi
6104
6105 if test "x$ac_ct_OBJDUMP" = x; then
6106 OBJDUMP="false"
6107 else
6108 case $cross_compiling:$ac_tool_warned in
6109 yes:)
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6112 ac_tool_warned=yes ;;
6113 esac
6114 OBJDUMP=$ac_ct_OBJDUMP
6115 fi
6116 else
6117 OBJDUMP="$ac_cv_prog_OBJDUMP"
6118 fi
6119
6120 test -z "$OBJDUMP" && OBJDUMP=objdump
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6131 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6132 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6133 $as_echo_n "(cached) " >&6
6134 else
6135 lt_cv_file_magic_cmd='$MAGIC_CMD'
6136 lt_cv_file_magic_test_file=
6137 lt_cv_deplibs_check_method='unknown'
6138 # Need to set the preceding variable on all platforms that support
6139 # interlibrary dependencies.
6140 # 'none' -- dependencies not supported.
6141 # `unknown' -- same as none, but documents that we really don't know.
6142 # 'pass_all' -- all dependencies passed with no checks.
6143 # 'test_compile' -- check by making test program.
6144 # 'file_magic [[regex]]' -- check by looking for files in library path
6145 # which responds to the $file_magic_cmd with a given extended regex.
6146 # If you have `file' or equivalent on your system and you're not sure
6147 # whether `pass_all' will *always* work, you probably want this one.
6148
6149 case $host_os in
6150 aix[4-9]*)
6151 lt_cv_deplibs_check_method=pass_all
6152 ;;
6153
6154 beos*)
6155 lt_cv_deplibs_check_method=pass_all
6156 ;;
6157
6158 bsdi[45]*)
6159 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6160 lt_cv_file_magic_cmd='/usr/bin/file -L'
6161 lt_cv_file_magic_test_file=/shlib/libc.so
6162 ;;
6163
6164 cygwin*)
6165 # func_win32_libid is a shell function defined in ltmain.sh
6166 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6167 lt_cv_file_magic_cmd='func_win32_libid'
6168 ;;
6169
6170 mingw* | pw32*)
6171 # Base MSYS/MinGW do not provide the 'file' command needed by
6172 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6173 # unless we find 'file', for example because we are cross-compiling.
6174 if ( file / ) >/dev/null 2>&1; then
6175 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6176 lt_cv_file_magic_cmd='func_win32_libid'
6177 else
6178 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6179 lt_cv_file_magic_cmd='$OBJDUMP -f'
6180 fi
6181 ;;
6182
6183 cegcc)
6184 # use the weaker test based on 'objdump'. See mingw*.
6185 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6186 lt_cv_file_magic_cmd='$OBJDUMP -f'
6187 ;;
6188
6189 darwin* | rhapsody*)
6190 lt_cv_deplibs_check_method=pass_all
6191 ;;
6192
6193 freebsd* | dragonfly*)
6194 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6195 case $host_cpu in
6196 i*86 )
6197 # Not sure whether the presence of OpenBSD here was a mistake.
6198 # Let's accept both of them until this is cleared up.
6199 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6200 lt_cv_file_magic_cmd=/usr/bin/file
6201 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6202 ;;
6203 esac
6204 else
6205 lt_cv_deplibs_check_method=pass_all
6206 fi
6207 ;;
6208
6209 gnu*)
6210 lt_cv_deplibs_check_method=pass_all
6211 ;;
6212
6213 hpux10.20* | hpux11*)
6214 lt_cv_file_magic_cmd=/usr/bin/file
6215 case $host_cpu in
6216 ia64*)
6217 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6218 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6219 ;;
6220 hppa*64*)
6221 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]'
6222 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6223 ;;
6224 *)
6225 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6226 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6227 ;;
6228 esac
6229 ;;
6230
6231 interix[3-9]*)
6232 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6233 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6234 ;;
6235
6236 irix5* | irix6* | nonstopux*)
6237 case $LD in
6238 *-32|*"-32 ") libmagic=32-bit;;
6239 *-n32|*"-n32 ") libmagic=N32;;
6240 *-64|*"-64 ") libmagic=64-bit;;
6241 *) libmagic=never-match;;
6242 esac
6243 lt_cv_deplibs_check_method=pass_all
6244 ;;
6245
6246 # This must be Linux ELF.
6247 linux* | k*bsd*-gnu)
6248 lt_cv_deplibs_check_method=pass_all
6249 ;;
6250
6251 netbsd*)
6252 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6253 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6254 else
6255 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6256 fi
6257 ;;
6258
6259 newos6*)
6260 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6261 lt_cv_file_magic_cmd=/usr/bin/file
6262 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6263 ;;
6264
6265 *nto* | *qnx*)
6266 lt_cv_deplibs_check_method=pass_all
6267 ;;
6268
6269 openbsd*)
6270 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6271 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6272 else
6273 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6274 fi
6275 ;;
6276
6277 osf3* | osf4* | osf5*)
6278 lt_cv_deplibs_check_method=pass_all
6279 ;;
6280
6281 rdos*)
6282 lt_cv_deplibs_check_method=pass_all
6283 ;;
6284
6285 solaris*)
6286 lt_cv_deplibs_check_method=pass_all
6287 ;;
6288
6289 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6290 lt_cv_deplibs_check_method=pass_all
6291 ;;
6292
6293 sysv4 | sysv4.3*)
6294 case $host_vendor in
6295 motorola)
6296 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]'
6297 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6298 ;;
6299 ncr)
6300 lt_cv_deplibs_check_method=pass_all
6301 ;;
6302 sequent)
6303 lt_cv_file_magic_cmd='/bin/file'
6304 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6305 ;;
6306 sni)
6307 lt_cv_file_magic_cmd='/bin/file'
6308 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6309 lt_cv_file_magic_test_file=/lib/libc.so
6310 ;;
6311 siemens)
6312 lt_cv_deplibs_check_method=pass_all
6313 ;;
6314 pc)
6315 lt_cv_deplibs_check_method=pass_all
6316 ;;
6317 esac
6318 ;;
6319
6320 tpf*)
6321 lt_cv_deplibs_check_method=pass_all
6322 ;;
6323 esac
6324
6325 fi
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6327 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6328 file_magic_cmd=$lt_cv_file_magic_cmd
6329 deplibs_check_method=$lt_cv_deplibs_check_method
6330 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343 if test -n "$ac_tool_prefix"; then
6344 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6345 set dummy ${ac_tool_prefix}ar; ac_word=$2
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6347 $as_echo_n "checking for $ac_word... " >&6; }
6348 if test "${ac_cv_prog_AR+set}" = set; then :
6349 $as_echo_n "(cached) " >&6
6350 else
6351 if test -n "$AR"; then
6352 ac_cv_prog_AR="$AR" # Let the user override the test.
6353 else
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 for as_dir in $PATH
6356 do
6357 IFS=$as_save_IFS
6358 test -z "$as_dir" && as_dir=.
6359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6361 ac_cv_prog_AR="${ac_tool_prefix}ar"
6362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6363 break 2
6364 fi
6365 done
6366 done
6367 IFS=$as_save_IFS
6368
6369 fi
6370 fi
6371 AR=$ac_cv_prog_AR
6372 if test -n "$AR"; then
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6374 $as_echo "$AR" >&6; }
6375 else
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6377 $as_echo "no" >&6; }
6378 fi
6379
6380
6381 fi
6382 if test -z "$ac_cv_prog_AR"; then
6383 ac_ct_AR=$AR
6384 # Extract the first word of "ar", so it can be a program name with args.
6385 set dummy ar; ac_word=$2
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6387 $as_echo_n "checking for $ac_word... " >&6; }
6388 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6389 $as_echo_n "(cached) " >&6
6390 else
6391 if test -n "$ac_ct_AR"; then
6392 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6393 else
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 for as_dir in $PATH
6396 do
6397 IFS=$as_save_IFS
6398 test -z "$as_dir" && as_dir=.
6399 for ac_exec_ext in '' $ac_executable_extensions; do
6400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6401 ac_cv_prog_ac_ct_AR="ar"
6402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6403 break 2
6404 fi
6405 done
6406 done
6407 IFS=$as_save_IFS
6408
6409 fi
6410 fi
6411 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6412 if test -n "$ac_ct_AR"; then
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6414 $as_echo "$ac_ct_AR" >&6; }
6415 else
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6417 $as_echo "no" >&6; }
6418 fi
6419
6420 if test "x$ac_ct_AR" = x; then
6421 AR="false"
6422 else
6423 case $cross_compiling:$ac_tool_warned in
6424 yes:)
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6427 ac_tool_warned=yes ;;
6428 esac
6429 AR=$ac_ct_AR
6430 fi
6431 else
6432 AR="$ac_cv_prog_AR"
6433 fi
6434
6435 test -z "$AR" && AR=ar
6436 test -z "$AR_FLAGS" && AR_FLAGS=cru
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448 if test -n "$ac_tool_prefix"; then
6449 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6450 set dummy ${ac_tool_prefix}strip; ac_word=$2
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6452 $as_echo_n "checking for $ac_word... " >&6; }
6453 if test "${ac_cv_prog_STRIP+set}" = set; then :
6454 $as_echo_n "(cached) " >&6
6455 else
6456 if test -n "$STRIP"; then
6457 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6458 else
6459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460 for as_dir in $PATH
6461 do
6462 IFS=$as_save_IFS
6463 test -z "$as_dir" && as_dir=.
6464 for ac_exec_ext in '' $ac_executable_extensions; do
6465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6466 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6468 break 2
6469 fi
6470 done
6471 done
6472 IFS=$as_save_IFS
6473
6474 fi
6475 fi
6476 STRIP=$ac_cv_prog_STRIP
6477 if test -n "$STRIP"; then
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6479 $as_echo "$STRIP" >&6; }
6480 else
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6482 $as_echo "no" >&6; }
6483 fi
6484
6485
6486 fi
6487 if test -z "$ac_cv_prog_STRIP"; then
6488 ac_ct_STRIP=$STRIP
6489 # Extract the first word of "strip", so it can be a program name with args.
6490 set dummy strip; ac_word=$2
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6492 $as_echo_n "checking for $ac_word... " >&6; }
6493 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6494 $as_echo_n "(cached) " >&6
6495 else
6496 if test -n "$ac_ct_STRIP"; then
6497 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6498 else
6499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500 for as_dir in $PATH
6501 do
6502 IFS=$as_save_IFS
6503 test -z "$as_dir" && as_dir=.
6504 for ac_exec_ext in '' $ac_executable_extensions; do
6505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6506 ac_cv_prog_ac_ct_STRIP="strip"
6507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6508 break 2
6509 fi
6510 done
6511 done
6512 IFS=$as_save_IFS
6513
6514 fi
6515 fi
6516 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6517 if test -n "$ac_ct_STRIP"; then
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6519 $as_echo "$ac_ct_STRIP" >&6; }
6520 else
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6522 $as_echo "no" >&6; }
6523 fi
6524
6525 if test "x$ac_ct_STRIP" = x; then
6526 STRIP=":"
6527 else
6528 case $cross_compiling:$ac_tool_warned in
6529 yes:)
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6532 ac_tool_warned=yes ;;
6533 esac
6534 STRIP=$ac_ct_STRIP
6535 fi
6536 else
6537 STRIP="$ac_cv_prog_STRIP"
6538 fi
6539
6540 test -z "$STRIP" && STRIP=:
6541
6542
6543
6544
6545
6546
6547 if test -n "$ac_tool_prefix"; then
6548 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6549 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6551 $as_echo_n "checking for $ac_word... " >&6; }
6552 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6553 $as_echo_n "(cached) " >&6
6554 else
6555 if test -n "$RANLIB"; then
6556 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6557 else
6558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559 for as_dir in $PATH
6560 do
6561 IFS=$as_save_IFS
6562 test -z "$as_dir" && as_dir=.
6563 for ac_exec_ext in '' $ac_executable_extensions; do
6564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6565 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6567 break 2
6568 fi
6569 done
6570 done
6571 IFS=$as_save_IFS
6572
6573 fi
6574 fi
6575 RANLIB=$ac_cv_prog_RANLIB
6576 if test -n "$RANLIB"; then
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6578 $as_echo "$RANLIB" >&6; }
6579 else
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6581 $as_echo "no" >&6; }
6582 fi
6583
6584
6585 fi
6586 if test -z "$ac_cv_prog_RANLIB"; then
6587 ac_ct_RANLIB=$RANLIB
6588 # Extract the first word of "ranlib", so it can be a program name with args.
6589 set dummy ranlib; ac_word=$2
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6591 $as_echo_n "checking for $ac_word... " >&6; }
6592 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6593 $as_echo_n "(cached) " >&6
6594 else
6595 if test -n "$ac_ct_RANLIB"; then
6596 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6597 else
6598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 for as_dir in $PATH
6600 do
6601 IFS=$as_save_IFS
6602 test -z "$as_dir" && as_dir=.
6603 for ac_exec_ext in '' $ac_executable_extensions; do
6604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6605 ac_cv_prog_ac_ct_RANLIB="ranlib"
6606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6607 break 2
6608 fi
6609 done
6610 done
6611 IFS=$as_save_IFS
6612
6613 fi
6614 fi
6615 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6616 if test -n "$ac_ct_RANLIB"; then
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6618 $as_echo "$ac_ct_RANLIB" >&6; }
6619 else
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6621 $as_echo "no" >&6; }
6622 fi
6623
6624 if test "x$ac_ct_RANLIB" = x; then
6625 RANLIB=":"
6626 else
6627 case $cross_compiling:$ac_tool_warned in
6628 yes:)
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6631 ac_tool_warned=yes ;;
6632 esac
6633 RANLIB=$ac_ct_RANLIB
6634 fi
6635 else
6636 RANLIB="$ac_cv_prog_RANLIB"
6637 fi
6638
6639 test -z "$RANLIB" && RANLIB=:
6640
6641
6642
6643
6644
6645
6646 # Determine commands to create old-style static archives.
6647 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6648 old_postinstall_cmds='chmod 644 $oldlib'
6649 old_postuninstall_cmds=
6650
6651 if test -n "$RANLIB"; then
6652 case $host_os in
6653 openbsd*)
6654 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6655 ;;
6656 *)
6657 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6658 ;;
6659 esac
6660 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6661 fi
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696 # If no C compiler was specified, use CC.
6697 LTCC=${LTCC-"$CC"}
6698
6699 # If no C compiler flags were specified, use CFLAGS.
6700 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6701
6702 # Allow CC to be a program name with arguments.
6703 compiler=$CC
6704
6705
6706 # Check for command to grab the raw symbol name followed by C symbol from nm.
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6708 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6709 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6710 $as_echo_n "(cached) " >&6
6711 else
6712
6713 # These are sane defaults that work on at least a few old systems.
6714 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6715
6716 # Character class describing NM global symbol codes.
6717 symcode='[BCDEGRST]'
6718
6719 # Regexp to match symbols that can be accessed directly from C.
6720 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6721
6722 # Define system-specific variables.
6723 case $host_os in
6724 aix*)
6725 symcode='[BCDT]'
6726 ;;
6727 cygwin* | mingw* | pw32* | cegcc*)
6728 symcode='[ABCDGISTW]'
6729 ;;
6730 hpux*)
6731 if test "$host_cpu" = ia64; then
6732 symcode='[ABCDEGRST]'
6733 fi
6734 ;;
6735 irix* | nonstopux*)
6736 symcode='[BCDEGRST]'
6737 ;;
6738 osf*)
6739 symcode='[BCDEGQRST]'
6740 ;;
6741 solaris*)
6742 symcode='[BDRT]'
6743 ;;
6744 sco3.2v5*)
6745 symcode='[DT]'
6746 ;;
6747 sysv4.2uw2*)
6748 symcode='[DT]'
6749 ;;
6750 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6751 symcode='[ABDT]'
6752 ;;
6753 sysv4)
6754 symcode='[DFNSTU]'
6755 ;;
6756 esac
6757
6758 # If we're using GNU nm, then use its standard symbol codes.
6759 case `$NM -V 2>&1` in
6760 *GNU* | *'with BFD'*)
6761 symcode='[ABCDGIRSTW]' ;;
6762 esac
6763
6764 # Transform an extracted symbol line into a proper C declaration.
6765 # Some systems (esp. on ia64) link data and code symbols differently,
6766 # so use this general approach.
6767 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6768
6769 # Transform an extracted symbol line into symbol name and symbol address
6770 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6771 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'"
6772
6773 # Handle CRLF in mingw tool chain
6774 opt_cr=
6775 case $build_os in
6776 mingw*)
6777 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6778 ;;
6779 esac
6780
6781 # Try without a prefix underscore, then with it.
6782 for ac_symprfx in "" "_"; do
6783
6784 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6785 symxfrm="\\1 $ac_symprfx\\2 \\2"
6786
6787 # Write the raw and C identifiers.
6788 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6789 # Fake it for dumpbin and say T for any non-static function
6790 # and D for any global variable.
6791 # Also find C++ and __fastcall symbols from MSVC++,
6792 # which start with @ or ?.
6793 lt_cv_sys_global_symbol_pipe="$AWK '"\
6794 " {last_section=section; section=\$ 3};"\
6795 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6796 " \$ 0!~/External *\|/{next};"\
6797 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6798 " {if(hide[section]) next};"\
6799 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6800 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6801 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6802 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6803 " ' prfx=^$ac_symprfx"
6804 else
6805 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6806 fi
6807
6808 # Check to see that the pipe works correctly.
6809 pipe_works=no
6810
6811 rm -f conftest*
6812 cat > conftest.$ac_ext <<_LT_EOF
6813 #ifdef __cplusplus
6814 extern "C" {
6815 #endif
6816 char nm_test_var;
6817 void nm_test_func(void);
6818 void nm_test_func(void){}
6819 #ifdef __cplusplus
6820 }
6821 #endif
6822 int main(){nm_test_var='a';nm_test_func();return(0);}
6823 _LT_EOF
6824
6825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6826 (eval $ac_compile) 2>&5
6827 ac_status=$?
6828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6829 test $ac_status = 0; }; then
6830 # Now try to grab the symbols.
6831 nlist=conftest.nm
6832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6833 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6834 ac_status=$?
6835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6836 test $ac_status = 0; } && test -s "$nlist"; then
6837 # Try sorting and uniquifying the output.
6838 if sort "$nlist" | uniq > "$nlist"T; then
6839 mv -f "$nlist"T "$nlist"
6840 else
6841 rm -f "$nlist"T
6842 fi
6843
6844 # Make sure that we snagged all the symbols we need.
6845 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6846 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6847 cat <<_LT_EOF > conftest.$ac_ext
6848 #ifdef __cplusplus
6849 extern "C" {
6850 #endif
6851
6852 _LT_EOF
6853 # Now generate the symbol file.
6854 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6855
6856 cat <<_LT_EOF >> conftest.$ac_ext
6857
6858 /* The mapping between symbol names and symbols. */
6859 const struct {
6860 const char *name;
6861 void *address;
6862 }
6863 lt__PROGRAM__LTX_preloaded_symbols[] =
6864 {
6865 { "@PROGRAM@", (void *) 0 },
6866 _LT_EOF
6867 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6868 cat <<\_LT_EOF >> conftest.$ac_ext
6869 {0, (void *) 0}
6870 };
6871
6872 /* This works around a problem in FreeBSD linker */
6873 #ifdef FREEBSD_WORKAROUND
6874 static const void *lt_preloaded_setup() {
6875 return lt__PROGRAM__LTX_preloaded_symbols;
6876 }
6877 #endif
6878
6879 #ifdef __cplusplus
6880 }
6881 #endif
6882 _LT_EOF
6883 # Now try linking the two files.
6884 mv conftest.$ac_objext conftstm.$ac_objext
6885 lt_save_LIBS="$LIBS"
6886 lt_save_CFLAGS="$CFLAGS"
6887 LIBS="conftstm.$ac_objext"
6888 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6890 (eval $ac_link) 2>&5
6891 ac_status=$?
6892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6893 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6894 pipe_works=yes
6895 fi
6896 LIBS="$lt_save_LIBS"
6897 CFLAGS="$lt_save_CFLAGS"
6898 else
6899 echo "cannot find nm_test_func in $nlist" >&5
6900 fi
6901 else
6902 echo "cannot find nm_test_var in $nlist" >&5
6903 fi
6904 else
6905 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6906 fi
6907 else
6908 echo "$progname: failed program was:" >&5
6909 cat conftest.$ac_ext >&5
6910 fi
6911 rm -rf conftest* conftst*
6912
6913 # Do not use the global_symbol_pipe unless it works.
6914 if test "$pipe_works" = yes; then
6915 break
6916 else
6917 lt_cv_sys_global_symbol_pipe=
6918 fi
6919 done
6920
6921 fi
6922
6923 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6924 lt_cv_sys_global_symbol_to_cdecl=
6925 fi
6926 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6928 $as_echo "failed" >&6; }
6929 else
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6931 $as_echo "ok" >&6; }
6932 fi
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955 # Check whether --enable-libtool-lock was given.
6956 if test "${enable_libtool_lock+set}" = set; then :
6957 enableval=$enable_libtool_lock;
6958 fi
6959
6960 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6961
6962 # Some flags need to be propagated to the compiler or linker for good
6963 # libtool support.
6964 case $host in
6965 ia64-*-hpux*)
6966 # Find out which ABI we are using.
6967 echo 'int i;' > conftest.$ac_ext
6968 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6969 (eval $ac_compile) 2>&5
6970 ac_status=$?
6971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6972 test $ac_status = 0; }; then
6973 case `/usr/bin/file conftest.$ac_objext` in
6974 *ELF-32*)
6975 HPUX_IA64_MODE="32"
6976 ;;
6977 *ELF-64*)
6978 HPUX_IA64_MODE="64"
6979 ;;
6980 esac
6981 fi
6982 rm -rf conftest*
6983 ;;
6984 *-*-irix6*)
6985 # Find out which ABI we are using.
6986 echo '#line 6986 "configure"' > conftest.$ac_ext
6987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6988 (eval $ac_compile) 2>&5
6989 ac_status=$?
6990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6991 test $ac_status = 0; }; then
6992 if test "$lt_cv_prog_gnu_ld" = yes; then
6993 case `/usr/bin/file conftest.$ac_objext` in
6994 *32-bit*)
6995 LD="${LD-ld} -melf32bsmip"
6996 ;;
6997 *N32*)
6998 LD="${LD-ld} -melf32bmipn32"
6999 ;;
7000 *64-bit*)
7001 LD="${LD-ld} -melf64bmip"
7002 ;;
7003 esac
7004 else
7005 case `/usr/bin/file conftest.$ac_objext` in
7006 *32-bit*)
7007 LD="${LD-ld} -32"
7008 ;;
7009 *N32*)
7010 LD="${LD-ld} -n32"
7011 ;;
7012 *64-bit*)
7013 LD="${LD-ld} -64"
7014 ;;
7015 esac
7016 fi
7017 fi
7018 rm -rf conftest*
7019 ;;
7020
7021 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7022 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7023 # Find out which ABI we are using.
7024 echo 'int i;' > conftest.$ac_ext
7025 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7026 (eval $ac_compile) 2>&5
7027 ac_status=$?
7028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7029 test $ac_status = 0; }; then
7030 case `/usr/bin/file conftest.o` in
7031 *32-bit*)
7032 case $host in
7033 x86_64-*kfreebsd*-gnu)
7034 LD="${LD-ld} -m elf_i386_fbsd"
7035 ;;
7036 x86_64-*linux*)
7037 LD="${LD-ld} -m elf_i386"
7038 ;;
7039 ppc64-*linux*|powerpc64-*linux*)
7040 LD="${LD-ld} -m elf32ppclinux"
7041 ;;
7042 s390x-*linux*)
7043 LD="${LD-ld} -m elf_s390"
7044 ;;
7045 sparc64-*linux*)
7046 LD="${LD-ld} -m elf32_sparc"
7047 ;;
7048 esac
7049 ;;
7050 *64-bit*)
7051 case $host in
7052 x86_64-*kfreebsd*-gnu)
7053 LD="${LD-ld} -m elf_x86_64_fbsd"
7054 ;;
7055 x86_64-*linux*)
7056 LD="${LD-ld} -m elf_x86_64"
7057 ;;
7058 ppc*-*linux*|powerpc*-*linux*)
7059 LD="${LD-ld} -m elf64ppc"
7060 ;;
7061 s390*-*linux*|s390*-*tpf*)
7062 LD="${LD-ld} -m elf64_s390"
7063 ;;
7064 sparc*-*linux*)
7065 LD="${LD-ld} -m elf64_sparc"
7066 ;;
7067 esac
7068 ;;
7069 esac
7070 fi
7071 rm -rf conftest*
7072 ;;
7073
7074 *-*-sco3.2v5*)
7075 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7076 SAVE_CFLAGS="$CFLAGS"
7077 CFLAGS="$CFLAGS -belf"
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7079 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7080 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7081 $as_echo_n "(cached) " >&6
7082 else
7083 ac_ext=c
7084 ac_cpp='$CPP $CPPFLAGS'
7085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7088
7089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7090 /* end confdefs.h. */
7091
7092 int
7093 main ()
7094 {
7095
7096 ;
7097 return 0;
7098 }
7099 _ACEOF
7100 if ac_fn_c_try_link "$LINENO"; then :
7101 lt_cv_cc_needs_belf=yes
7102 else
7103 lt_cv_cc_needs_belf=no
7104 fi
7105 rm -f core conftest.err conftest.$ac_objext \
7106 conftest$ac_exeext conftest.$ac_ext
7107 ac_ext=c
7108 ac_cpp='$CPP $CPPFLAGS'
7109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7112
7113 fi
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7115 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7116 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7117 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7118 CFLAGS="$SAVE_CFLAGS"
7119 fi
7120 ;;
7121 sparc*-*solaris*)
7122 # Find out which ABI we are using.
7123 echo 'int i;' > conftest.$ac_ext
7124 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7125 (eval $ac_compile) 2>&5
7126 ac_status=$?
7127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7128 test $ac_status = 0; }; then
7129 case `/usr/bin/file conftest.o` in
7130 *64-bit*)
7131 case $lt_cv_prog_gnu_ld in
7132 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7133 *)
7134 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7135 LD="${LD-ld} -64"
7136 fi
7137 ;;
7138 esac
7139 ;;
7140 esac
7141 fi
7142 rm -rf conftest*
7143 ;;
7144 esac
7145
7146 need_locks="$enable_libtool_lock"
7147
7148
7149 case $host_os in
7150 rhapsody* | darwin*)
7151 if test -n "$ac_tool_prefix"; then
7152 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7153 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7155 $as_echo_n "checking for $ac_word... " >&6; }
7156 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7157 $as_echo_n "(cached) " >&6
7158 else
7159 if test -n "$DSYMUTIL"; then
7160 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7161 else
7162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7163 for as_dir in $PATH
7164 do
7165 IFS=$as_save_IFS
7166 test -z "$as_dir" && as_dir=.
7167 for ac_exec_ext in '' $ac_executable_extensions; do
7168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7169 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7171 break 2
7172 fi
7173 done
7174 done
7175 IFS=$as_save_IFS
7176
7177 fi
7178 fi
7179 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7180 if test -n "$DSYMUTIL"; then
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7182 $as_echo "$DSYMUTIL" >&6; }
7183 else
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185 $as_echo "no" >&6; }
7186 fi
7187
7188
7189 fi
7190 if test -z "$ac_cv_prog_DSYMUTIL"; then
7191 ac_ct_DSYMUTIL=$DSYMUTIL
7192 # Extract the first word of "dsymutil", so it can be a program name with args.
7193 set dummy dsymutil; ac_word=$2
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7195 $as_echo_n "checking for $ac_word... " >&6; }
7196 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7197 $as_echo_n "(cached) " >&6
7198 else
7199 if test -n "$ac_ct_DSYMUTIL"; then
7200 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7201 else
7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203 for as_dir in $PATH
7204 do
7205 IFS=$as_save_IFS
7206 test -z "$as_dir" && as_dir=.
7207 for ac_exec_ext in '' $ac_executable_extensions; do
7208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7209 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7211 break 2
7212 fi
7213 done
7214 done
7215 IFS=$as_save_IFS
7216
7217 fi
7218 fi
7219 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7220 if test -n "$ac_ct_DSYMUTIL"; then
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7222 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7223 else
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7225 $as_echo "no" >&6; }
7226 fi
7227
7228 if test "x$ac_ct_DSYMUTIL" = x; then
7229 DSYMUTIL=":"
7230 else
7231 case $cross_compiling:$ac_tool_warned in
7232 yes:)
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7235 ac_tool_warned=yes ;;
7236 esac
7237 DSYMUTIL=$ac_ct_DSYMUTIL
7238 fi
7239 else
7240 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7241 fi
7242
7243 if test -n "$ac_tool_prefix"; then
7244 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7245 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7247 $as_echo_n "checking for $ac_word... " >&6; }
7248 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7249 $as_echo_n "(cached) " >&6
7250 else
7251 if test -n "$NMEDIT"; then
7252 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7253 else
7254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255 for as_dir in $PATH
7256 do
7257 IFS=$as_save_IFS
7258 test -z "$as_dir" && as_dir=.
7259 for ac_exec_ext in '' $ac_executable_extensions; do
7260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7261 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7263 break 2
7264 fi
7265 done
7266 done
7267 IFS=$as_save_IFS
7268
7269 fi
7270 fi
7271 NMEDIT=$ac_cv_prog_NMEDIT
7272 if test -n "$NMEDIT"; then
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7274 $as_echo "$NMEDIT" >&6; }
7275 else
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7277 $as_echo "no" >&6; }
7278 fi
7279
7280
7281 fi
7282 if test -z "$ac_cv_prog_NMEDIT"; then
7283 ac_ct_NMEDIT=$NMEDIT
7284 # Extract the first word of "nmedit", so it can be a program name with args.
7285 set dummy nmedit; ac_word=$2
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7287 $as_echo_n "checking for $ac_word... " >&6; }
7288 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7289 $as_echo_n "(cached) " >&6
7290 else
7291 if test -n "$ac_ct_NMEDIT"; then
7292 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7293 else
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295 for as_dir in $PATH
7296 do
7297 IFS=$as_save_IFS
7298 test -z "$as_dir" && as_dir=.
7299 for ac_exec_ext in '' $ac_executable_extensions; do
7300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7301 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7303 break 2
7304 fi
7305 done
7306 done
7307 IFS=$as_save_IFS
7308
7309 fi
7310 fi
7311 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7312 if test -n "$ac_ct_NMEDIT"; then
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7314 $as_echo "$ac_ct_NMEDIT" >&6; }
7315 else
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7317 $as_echo "no" >&6; }
7318 fi
7319
7320 if test "x$ac_ct_NMEDIT" = x; then
7321 NMEDIT=":"
7322 else
7323 case $cross_compiling:$ac_tool_warned in
7324 yes:)
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7327 ac_tool_warned=yes ;;
7328 esac
7329 NMEDIT=$ac_ct_NMEDIT
7330 fi
7331 else
7332 NMEDIT="$ac_cv_prog_NMEDIT"
7333 fi
7334
7335 if test -n "$ac_tool_prefix"; then
7336 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7337 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7339 $as_echo_n "checking for $ac_word... " >&6; }
7340 if test "${ac_cv_prog_LIPO+set}" = set; then :
7341 $as_echo_n "(cached) " >&6
7342 else
7343 if test -n "$LIPO"; then
7344 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7345 else
7346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347 for as_dir in $PATH
7348 do
7349 IFS=$as_save_IFS
7350 test -z "$as_dir" && as_dir=.
7351 for ac_exec_ext in '' $ac_executable_extensions; do
7352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7353 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7355 break 2
7356 fi
7357 done
7358 done
7359 IFS=$as_save_IFS
7360
7361 fi
7362 fi
7363 LIPO=$ac_cv_prog_LIPO
7364 if test -n "$LIPO"; then
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7366 $as_echo "$LIPO" >&6; }
7367 else
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7369 $as_echo "no" >&6; }
7370 fi
7371
7372
7373 fi
7374 if test -z "$ac_cv_prog_LIPO"; then
7375 ac_ct_LIPO=$LIPO
7376 # Extract the first word of "lipo", so it can be a program name with args.
7377 set dummy lipo; ac_word=$2
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7379 $as_echo_n "checking for $ac_word... " >&6; }
7380 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7381 $as_echo_n "(cached) " >&6
7382 else
7383 if test -n "$ac_ct_LIPO"; then
7384 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7385 else
7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387 for as_dir in $PATH
7388 do
7389 IFS=$as_save_IFS
7390 test -z "$as_dir" && as_dir=.
7391 for ac_exec_ext in '' $ac_executable_extensions; do
7392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7393 ac_cv_prog_ac_ct_LIPO="lipo"
7394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7395 break 2
7396 fi
7397 done
7398 done
7399 IFS=$as_save_IFS
7400
7401 fi
7402 fi
7403 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7404 if test -n "$ac_ct_LIPO"; then
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7406 $as_echo "$ac_ct_LIPO" >&6; }
7407 else
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7409 $as_echo "no" >&6; }
7410 fi
7411
7412 if test "x$ac_ct_LIPO" = x; then
7413 LIPO=":"
7414 else
7415 case $cross_compiling:$ac_tool_warned in
7416 yes:)
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7419 ac_tool_warned=yes ;;
7420 esac
7421 LIPO=$ac_ct_LIPO
7422 fi
7423 else
7424 LIPO="$ac_cv_prog_LIPO"
7425 fi
7426
7427 if test -n "$ac_tool_prefix"; then
7428 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7429 set dummy ${ac_tool_prefix}otool; ac_word=$2
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7431 $as_echo_n "checking for $ac_word... " >&6; }
7432 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7433 $as_echo_n "(cached) " >&6
7434 else
7435 if test -n "$OTOOL"; then
7436 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7437 else
7438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439 for as_dir in $PATH
7440 do
7441 IFS=$as_save_IFS
7442 test -z "$as_dir" && as_dir=.
7443 for ac_exec_ext in '' $ac_executable_extensions; do
7444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7445 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7447 break 2
7448 fi
7449 done
7450 done
7451 IFS=$as_save_IFS
7452
7453 fi
7454 fi
7455 OTOOL=$ac_cv_prog_OTOOL
7456 if test -n "$OTOOL"; then
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7458 $as_echo "$OTOOL" >&6; }
7459 else
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7461 $as_echo "no" >&6; }
7462 fi
7463
7464
7465 fi
7466 if test -z "$ac_cv_prog_OTOOL"; then
7467 ac_ct_OTOOL=$OTOOL
7468 # Extract the first word of "otool", so it can be a program name with args.
7469 set dummy otool; ac_word=$2
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7471 $as_echo_n "checking for $ac_word... " >&6; }
7472 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7473 $as_echo_n "(cached) " >&6
7474 else
7475 if test -n "$ac_ct_OTOOL"; then
7476 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7477 else
7478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479 for as_dir in $PATH
7480 do
7481 IFS=$as_save_IFS
7482 test -z "$as_dir" && as_dir=.
7483 for ac_exec_ext in '' $ac_executable_extensions; do
7484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7485 ac_cv_prog_ac_ct_OTOOL="otool"
7486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7487 break 2
7488 fi
7489 done
7490 done
7491 IFS=$as_save_IFS
7492
7493 fi
7494 fi
7495 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7496 if test -n "$ac_ct_OTOOL"; then
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7498 $as_echo "$ac_ct_OTOOL" >&6; }
7499 else
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7501 $as_echo "no" >&6; }
7502 fi
7503
7504 if test "x$ac_ct_OTOOL" = x; then
7505 OTOOL=":"
7506 else
7507 case $cross_compiling:$ac_tool_warned in
7508 yes:)
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7511 ac_tool_warned=yes ;;
7512 esac
7513 OTOOL=$ac_ct_OTOOL
7514 fi
7515 else
7516 OTOOL="$ac_cv_prog_OTOOL"
7517 fi
7518
7519 if test -n "$ac_tool_prefix"; then
7520 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7521 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7523 $as_echo_n "checking for $ac_word... " >&6; }
7524 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7525 $as_echo_n "(cached) " >&6
7526 else
7527 if test -n "$OTOOL64"; then
7528 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7529 else
7530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7531 for as_dir in $PATH
7532 do
7533 IFS=$as_save_IFS
7534 test -z "$as_dir" && as_dir=.
7535 for ac_exec_ext in '' $ac_executable_extensions; do
7536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7537 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7539 break 2
7540 fi
7541 done
7542 done
7543 IFS=$as_save_IFS
7544
7545 fi
7546 fi
7547 OTOOL64=$ac_cv_prog_OTOOL64
7548 if test -n "$OTOOL64"; then
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7550 $as_echo "$OTOOL64" >&6; }
7551 else
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7553 $as_echo "no" >&6; }
7554 fi
7555
7556
7557 fi
7558 if test -z "$ac_cv_prog_OTOOL64"; then
7559 ac_ct_OTOOL64=$OTOOL64
7560 # Extract the first word of "otool64", so it can be a program name with args.
7561 set dummy otool64; ac_word=$2
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7563 $as_echo_n "checking for $ac_word... " >&6; }
7564 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7565 $as_echo_n "(cached) " >&6
7566 else
7567 if test -n "$ac_ct_OTOOL64"; then
7568 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7569 else
7570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7571 for as_dir in $PATH
7572 do
7573 IFS=$as_save_IFS
7574 test -z "$as_dir" && as_dir=.
7575 for ac_exec_ext in '' $ac_executable_extensions; do
7576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7577 ac_cv_prog_ac_ct_OTOOL64="otool64"
7578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7579 break 2
7580 fi
7581 done
7582 done
7583 IFS=$as_save_IFS
7584
7585 fi
7586 fi
7587 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7588 if test -n "$ac_ct_OTOOL64"; then
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7590 $as_echo "$ac_ct_OTOOL64" >&6; }
7591 else
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7593 $as_echo "no" >&6; }
7594 fi
7595
7596 if test "x$ac_ct_OTOOL64" = x; then
7597 OTOOL64=":"
7598 else
7599 case $cross_compiling:$ac_tool_warned in
7600 yes:)
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7603 ac_tool_warned=yes ;;
7604 esac
7605 OTOOL64=$ac_ct_OTOOL64
7606 fi
7607 else
7608 OTOOL64="$ac_cv_prog_OTOOL64"
7609 fi
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7638 $as_echo_n "checking for -single_module linker flag... " >&6; }
7639 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7640 $as_echo_n "(cached) " >&6
7641 else
7642 lt_cv_apple_cc_single_mod=no
7643 if test -z "${LT_MULTI_MODULE}"; then
7644 # By default we will add the -single_module flag. You can override
7645 # by either setting the environment variable LT_MULTI_MODULE
7646 # non-empty at configure time, or by adding -multi_module to the
7647 # link flags.
7648 rm -rf libconftest.dylib*
7649 echo "int foo(void){return 1;}" > conftest.c
7650 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7651 -dynamiclib -Wl,-single_module conftest.c" >&5
7652 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7653 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7654 _lt_result=$?
7655 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7656 lt_cv_apple_cc_single_mod=yes
7657 else
7658 cat conftest.err >&5
7659 fi
7660 rm -rf libconftest.dylib*
7661 rm -f conftest.*
7662 fi
7663 fi
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7665 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7667 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7668 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7669 $as_echo_n "(cached) " >&6
7670 else
7671 lt_cv_ld_exported_symbols_list=no
7672 save_LDFLAGS=$LDFLAGS
7673 echo "_main" > conftest.sym
7674 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7676 /* end confdefs.h. */
7677
7678 int
7679 main ()
7680 {
7681
7682 ;
7683 return 0;
7684 }
7685 _ACEOF
7686 if ac_fn_c_try_link "$LINENO"; then :
7687 lt_cv_ld_exported_symbols_list=yes
7688 else
7689 lt_cv_ld_exported_symbols_list=no
7690 fi
7691 rm -f core conftest.err conftest.$ac_objext \
7692 conftest$ac_exeext conftest.$ac_ext
7693 LDFLAGS="$save_LDFLAGS"
7694
7695 fi
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7697 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7698 case $host_os in
7699 rhapsody* | darwin1.[012])
7700 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7701 darwin1.*)
7702 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7703 darwin*) # darwin 5.x on
7704 # if running on 10.5 or later, the deployment target defaults
7705 # to the OS version, if on x86, and 10.4, the deployment
7706 # target defaults to 10.4. Don't you love it?
7707 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7708 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7709 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7710 10.[012]*)
7711 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7712 10.*)
7713 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7714 esac
7715 ;;
7716 esac
7717 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7718 _lt_dar_single_mod='$single_module'
7719 fi
7720 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7721 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7722 else
7723 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7724 fi
7725 if test "$DSYMUTIL" != ":"; then
7726 _lt_dsymutil='~$DSYMUTIL $lib || :'
7727 else
7728 _lt_dsymutil=
7729 fi
7730 ;;
7731 esac
7732
7733 for ac_header in dlfcn.h
7734 do :
7735 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7736 "
7737 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7738 cat >>confdefs.h <<_ACEOF
7739 #define HAVE_DLFCN_H 1
7740 _ACEOF
7741
7742 fi
7743
7744 done
7745
7746
7747
7748 # Set options
7749
7750
7751
7752 enable_dlopen=no
7753
7754
7755 enable_win32_dll=no
7756
7757
7758 # Check whether --enable-shared was given.
7759 if test "${enable_shared+set}" = set; then :
7760 enableval=$enable_shared; p=${PACKAGE-default}
7761 case $enableval in
7762 yes) enable_shared=yes ;;
7763 no) enable_shared=no ;;
7764 *)
7765 enable_shared=no
7766 # Look at the argument we got. We use all the common list separators.
7767 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7768 for pkg in $enableval; do
7769 IFS="$lt_save_ifs"
7770 if test "X$pkg" = "X$p"; then
7771 enable_shared=yes
7772 fi
7773 done
7774 IFS="$lt_save_ifs"
7775 ;;
7776 esac
7777 else
7778 enable_shared=yes
7779 fi
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791 # Check whether --with-pic was given.
7792 if test "${with_pic+set}" = set; then :
7793 withval=$with_pic; pic_mode="$withval"
7794 else
7795 pic_mode=default
7796 fi
7797
7798
7799 test -z "$pic_mode" && pic_mode=default
7800
7801
7802
7803
7804
7805
7806
7807 # Check whether --enable-fast-install was given.
7808 if test "${enable_fast_install+set}" = set; then :
7809 enableval=$enable_fast_install; p=${PACKAGE-default}
7810 case $enableval in
7811 yes) enable_fast_install=yes ;;
7812 no) enable_fast_install=no ;;
7813 *)
7814 enable_fast_install=no
7815 # Look at the argument we got. We use all the common list separators.
7816 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7817 for pkg in $enableval; do
7818 IFS="$lt_save_ifs"
7819 if test "X$pkg" = "X$p"; then
7820 enable_fast_install=yes
7821 fi
7822 done
7823 IFS="$lt_save_ifs"
7824 ;;
7825 esac
7826 else
7827 enable_fast_install=yes
7828 fi
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840 # This can be used to rebuild libtool when needed
7841 LIBTOOL_DEPS="$ltmain"
7842
7843 # Always use our own libtool.
7844 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870 test -z "$LN_S" && LN_S="ln -s"
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885 if test -n "${ZSH_VERSION+set}" ; then
7886 setopt NO_GLOB_SUBST
7887 fi
7888
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7890 $as_echo_n "checking for objdir... " >&6; }
7891 if test "${lt_cv_objdir+set}" = set; then :
7892 $as_echo_n "(cached) " >&6
7893 else
7894 rm -f .libs 2>/dev/null
7895 mkdir .libs 2>/dev/null
7896 if test -d .libs; then
7897 lt_cv_objdir=.libs
7898 else
7899 # MS-DOS does not allow filenames that begin with a dot.
7900 lt_cv_objdir=_libs
7901 fi
7902 rmdir .libs 2>/dev/null
7903 fi
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7905 $as_echo "$lt_cv_objdir" >&6; }
7906 objdir=$lt_cv_objdir
7907
7908
7909
7910
7911
7912 cat >>confdefs.h <<_ACEOF
7913 #define LT_OBJDIR "$lt_cv_objdir/"
7914 _ACEOF
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932 case $host_os in
7933 aix3*)
7934 # AIX sometimes has problems with the GCC collect2 program. For some
7935 # reason, if we set the COLLECT_NAMES environment variable, the problems
7936 # vanish in a puff of smoke.
7937 if test "X${COLLECT_NAMES+set}" != Xset; then
7938 COLLECT_NAMES=
7939 export COLLECT_NAMES
7940 fi
7941 ;;
7942 esac
7943
7944 # Sed substitution that helps us do robust quoting. It backslashifies
7945 # metacharacters that are still active within double-quoted strings.
7946 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7947
7948 # Same as above, but do not quote variable references.
7949 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7950
7951 # Sed substitution to delay expansion of an escaped shell variable in a
7952 # double_quote_subst'ed string.
7953 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7954
7955 # Sed substitution to delay expansion of an escaped single quote.
7956 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7957
7958 # Sed substitution to avoid accidental globbing in evaled expressions
7959 no_glob_subst='s/\*/\\\*/g'
7960
7961 # Global variables:
7962 ofile=libtool
7963 can_build_shared=yes
7964
7965 # All known linkers require a `.a' archive for static linking (except MSVC,
7966 # which needs '.lib').
7967 libext=a
7968
7969 with_gnu_ld="$lt_cv_prog_gnu_ld"
7970
7971 old_CC="$CC"
7972 old_CFLAGS="$CFLAGS"
7973
7974 # Set sane defaults for various variables
7975 test -z "$CC" && CC=cc
7976 test -z "$LTCC" && LTCC=$CC
7977 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7978 test -z "$LD" && LD=ld
7979 test -z "$ac_objext" && ac_objext=o
7980
7981 for cc_temp in $compiler""; do
7982 case $cc_temp in
7983 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7984 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7985 \-*) ;;
7986 *) break;;
7987 esac
7988 done
7989 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7990
7991
7992 # Only perform the check for file, if the check method requires it
7993 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7994 case $deplibs_check_method in
7995 file_magic*)
7996 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7998 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7999 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8000 $as_echo_n "(cached) " >&6
8001 else
8002 case $MAGIC_CMD in
8003 [\\/*] | ?:[\\/]*)
8004 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8005 ;;
8006 *)
8007 lt_save_MAGIC_CMD="$MAGIC_CMD"
8008 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8009 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8010 for ac_dir in $ac_dummy; do
8011 IFS="$lt_save_ifs"
8012 test -z "$ac_dir" && ac_dir=.
8013 if test -f $ac_dir/${ac_tool_prefix}file; then
8014 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8015 if test -n "$file_magic_test_file"; then
8016 case $deplibs_check_method in
8017 "file_magic "*)
8018 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8019 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8020 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8021 $EGREP "$file_magic_regex" > /dev/null; then
8022 :
8023 else
8024 cat <<_LT_EOF 1>&2
8025
8026 *** Warning: the command libtool uses to detect shared libraries,
8027 *** $file_magic_cmd, produces output that libtool cannot recognize.
8028 *** The result is that libtool may fail to recognize shared libraries
8029 *** as such. This will affect the creation of libtool libraries that
8030 *** depend on shared libraries, but programs linked with such libtool
8031 *** libraries will work regardless of this problem. Nevertheless, you
8032 *** may want to report the problem to your system manager and/or to
8033 *** bug-libtool@gnu.org
8034
8035 _LT_EOF
8036 fi ;;
8037 esac
8038 fi
8039 break
8040 fi
8041 done
8042 IFS="$lt_save_ifs"
8043 MAGIC_CMD="$lt_save_MAGIC_CMD"
8044 ;;
8045 esac
8046 fi
8047
8048 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8049 if test -n "$MAGIC_CMD"; then
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8051 $as_echo "$MAGIC_CMD" >&6; }
8052 else
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054 $as_echo "no" >&6; }
8055 fi
8056
8057
8058
8059
8060
8061 if test -z "$lt_cv_path_MAGIC_CMD"; then
8062 if test -n "$ac_tool_prefix"; then
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8064 $as_echo_n "checking for file... " >&6; }
8065 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8066 $as_echo_n "(cached) " >&6
8067 else
8068 case $MAGIC_CMD in
8069 [\\/*] | ?:[\\/]*)
8070 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8071 ;;
8072 *)
8073 lt_save_MAGIC_CMD="$MAGIC_CMD"
8074 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8075 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8076 for ac_dir in $ac_dummy; do
8077 IFS="$lt_save_ifs"
8078 test -z "$ac_dir" && ac_dir=.
8079 if test -f $ac_dir/file; then
8080 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8081 if test -n "$file_magic_test_file"; then
8082 case $deplibs_check_method in
8083 "file_magic "*)
8084 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8085 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8086 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8087 $EGREP "$file_magic_regex" > /dev/null; then
8088 :
8089 else
8090 cat <<_LT_EOF 1>&2
8091
8092 *** Warning: the command libtool uses to detect shared libraries,
8093 *** $file_magic_cmd, produces output that libtool cannot recognize.
8094 *** The result is that libtool may fail to recognize shared libraries
8095 *** as such. This will affect the creation of libtool libraries that
8096 *** depend on shared libraries, but programs linked with such libtool
8097 *** libraries will work regardless of this problem. Nevertheless, you
8098 *** may want to report the problem to your system manager and/or to
8099 *** bug-libtool@gnu.org
8100
8101 _LT_EOF
8102 fi ;;
8103 esac
8104 fi
8105 break
8106 fi
8107 done
8108 IFS="$lt_save_ifs"
8109 MAGIC_CMD="$lt_save_MAGIC_CMD"
8110 ;;
8111 esac
8112 fi
8113
8114 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8115 if test -n "$MAGIC_CMD"; then
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8117 $as_echo "$MAGIC_CMD" >&6; }
8118 else
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8120 $as_echo "no" >&6; }
8121 fi
8122
8123
8124 else
8125 MAGIC_CMD=:
8126 fi
8127 fi
8128
8129 fi
8130 ;;
8131 esac
8132
8133 # Use C for the default configuration in the libtool script
8134
8135 lt_save_CC="$CC"
8136 ac_ext=c
8137 ac_cpp='$CPP $CPPFLAGS'
8138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8141
8142
8143 # Source file extension for C test sources.
8144 ac_ext=c
8145
8146 # Object file extension for compiled C test sources.
8147 objext=o
8148 objext=$objext
8149
8150 # Code to be used in simple compile tests
8151 lt_simple_compile_test_code="int some_variable = 0;"
8152
8153 # Code to be used in simple link tests
8154 lt_simple_link_test_code='int main(){return(0);}'
8155
8156
8157
8158
8159
8160
8161
8162 # If no C compiler was specified, use CC.
8163 LTCC=${LTCC-"$CC"}
8164
8165 # If no C compiler flags were specified, use CFLAGS.
8166 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8167
8168 # Allow CC to be a program name with arguments.
8169 compiler=$CC
8170
8171 # Save the default compiler, since it gets overwritten when the other
8172 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8173 compiler_DEFAULT=$CC
8174
8175 # save warnings/boilerplate of simple test code
8176 ac_outfile=conftest.$ac_objext
8177 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8178 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8179 _lt_compiler_boilerplate=`cat conftest.err`
8180 $RM conftest*
8181
8182 ac_outfile=conftest.$ac_objext
8183 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8184 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8185 _lt_linker_boilerplate=`cat conftest.err`
8186 $RM -r conftest*
8187
8188
8189 if test -n "$compiler"; then
8190
8191 lt_prog_compiler_no_builtin_flag=
8192
8193 if test "$GCC" = yes; then
8194 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8195
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8197 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8198 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8199 $as_echo_n "(cached) " >&6
8200 else
8201 lt_cv_prog_compiler_rtti_exceptions=no
8202 ac_outfile=conftest.$ac_objext
8203 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8204 lt_compiler_flag="-fno-rtti -fno-exceptions"
8205 # Insert the option either (1) after the last *FLAGS variable, or
8206 # (2) before a word containing "conftest.", or (3) at the end.
8207 # Note that $ac_compile itself does not contain backslashes and begins
8208 # with a dollar sign (not a hyphen), so the echo should work correctly.
8209 # The option is referenced via a variable to avoid confusing sed.
8210 lt_compile=`echo "$ac_compile" | $SED \
8211 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8212 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8213 -e 's:$: $lt_compiler_flag:'`
8214 (eval echo "\"\$as_me:8214: $lt_compile\"" >&5)
8215 (eval "$lt_compile" 2>conftest.err)
8216 ac_status=$?
8217 cat conftest.err >&5
8218 echo "$as_me:8218: \$? = $ac_status" >&5
8219 if (exit $ac_status) && test -s "$ac_outfile"; then
8220 # The compiler can only warn and ignore the option if not recognized
8221 # So say no if there are warnings other than the usual output.
8222 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8223 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8224 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8225 lt_cv_prog_compiler_rtti_exceptions=yes
8226 fi
8227 fi
8228 $RM conftest*
8229
8230 fi
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8232 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8233
8234 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8235 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8236 else
8237 :
8238 fi
8239
8240 fi
8241
8242
8243
8244
8245
8246
8247 lt_prog_compiler_wl=
8248 lt_prog_compiler_pic=
8249 lt_prog_compiler_static=
8250
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8252 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8253
8254 if test "$GCC" = yes; then
8255 lt_prog_compiler_wl='-Wl,'
8256 lt_prog_compiler_static='-static'
8257
8258 case $host_os in
8259 aix*)
8260 # All AIX code is PIC.
8261 if test "$host_cpu" = ia64; then
8262 # AIX 5 now supports IA64 processor
8263 lt_prog_compiler_static='-Bstatic'
8264 fi
8265 ;;
8266
8267 amigaos*)
8268 case $host_cpu in
8269 powerpc)
8270 # see comment about AmigaOS4 .so support
8271 lt_prog_compiler_pic='-fPIC'
8272 ;;
8273 m68k)
8274 # FIXME: we need at least 68020 code to build shared libraries, but
8275 # adding the `-m68020' flag to GCC prevents building anything better,
8276 # like `-m68040'.
8277 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8278 ;;
8279 esac
8280 ;;
8281
8282 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8283 # PIC is the default for these OSes.
8284 ;;
8285
8286 mingw* | cygwin* | pw32* | os2* | cegcc*)
8287 # This hack is so that the source file can tell whether it is being
8288 # built for inclusion in a dll (and should export symbols for example).
8289 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8290 # (--disable-auto-import) libraries
8291 lt_prog_compiler_pic='-DDLL_EXPORT'
8292 ;;
8293
8294 darwin* | rhapsody*)
8295 # PIC is the default on this platform
8296 # Common symbols not allowed in MH_DYLIB files
8297 lt_prog_compiler_pic='-fno-common'
8298 ;;
8299
8300 hpux*)
8301 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8302 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8303 # sets the default TLS model and affects inlining.
8304 case $host_cpu in
8305 hppa*64*)
8306 # +Z the default
8307 ;;
8308 *)
8309 lt_prog_compiler_pic='-fPIC'
8310 ;;
8311 esac
8312 ;;
8313
8314 interix[3-9]*)
8315 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8316 # Instead, we relocate shared libraries at runtime.
8317 ;;
8318
8319 msdosdjgpp*)
8320 # Just because we use GCC doesn't mean we suddenly get shared libraries
8321 # on systems that don't support them.
8322 lt_prog_compiler_can_build_shared=no
8323 enable_shared=no
8324 ;;
8325
8326 *nto* | *qnx*)
8327 # QNX uses GNU C++, but need to define -shared option too, otherwise
8328 # it will coredump.
8329 lt_prog_compiler_pic='-fPIC -shared'
8330 ;;
8331
8332 sysv4*MP*)
8333 if test -d /usr/nec; then
8334 lt_prog_compiler_pic=-Kconform_pic
8335 fi
8336 ;;
8337
8338 *)
8339 lt_prog_compiler_pic='-fPIC'
8340 ;;
8341 esac
8342 else
8343 # PORTME Check for flag to pass linker flags through the system compiler.
8344 case $host_os in
8345 aix*)
8346 lt_prog_compiler_wl='-Wl,'
8347 if test "$host_cpu" = ia64; then
8348 # AIX 5 now supports IA64 processor
8349 lt_prog_compiler_static='-Bstatic'
8350 else
8351 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8352 fi
8353 ;;
8354
8355 mingw* | cygwin* | pw32* | os2* | cegcc*)
8356 # This hack is so that the source file can tell whether it is being
8357 # built for inclusion in a dll (and should export symbols for example).
8358 lt_prog_compiler_pic='-DDLL_EXPORT'
8359 ;;
8360
8361 hpux9* | hpux10* | hpux11*)
8362 lt_prog_compiler_wl='-Wl,'
8363 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8364 # not for PA HP-UX.
8365 case $host_cpu in
8366 hppa*64*|ia64*)
8367 # +Z the default
8368 ;;
8369 *)
8370 lt_prog_compiler_pic='+Z'
8371 ;;
8372 esac
8373 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8374 lt_prog_compiler_static='${wl}-a ${wl}archive'
8375 ;;
8376
8377 irix5* | irix6* | nonstopux*)
8378 lt_prog_compiler_wl='-Wl,'
8379 # PIC (with -KPIC) is the default.
8380 lt_prog_compiler_static='-non_shared'
8381 ;;
8382
8383 linux* | k*bsd*-gnu)
8384 case $cc_basename in
8385 # old Intel for x86_64 which still supported -KPIC.
8386 ecc*)
8387 lt_prog_compiler_wl='-Wl,'
8388 lt_prog_compiler_pic='-KPIC'
8389 lt_prog_compiler_static='-static'
8390 ;;
8391 # icc used to be incompatible with GCC.
8392 # ICC 10 doesn't accept -KPIC any more.
8393 icc* | ifort*)
8394 lt_prog_compiler_wl='-Wl,'
8395 lt_prog_compiler_pic='-fPIC'
8396 lt_prog_compiler_static='-static'
8397 ;;
8398 # Lahey Fortran 8.1.
8399 lf95*)
8400 lt_prog_compiler_wl='-Wl,'
8401 lt_prog_compiler_pic='--shared'
8402 lt_prog_compiler_static='--static'
8403 ;;
8404 pgcc* | pgf77* | pgf90* | pgf95*)
8405 # Portland Group compilers (*not* the Pentium gcc compiler,
8406 # which looks to be a dead project)
8407 lt_prog_compiler_wl='-Wl,'
8408 lt_prog_compiler_pic='-fpic'
8409 lt_prog_compiler_static='-Bstatic'
8410 ;;
8411 ccc*)
8412 lt_prog_compiler_wl='-Wl,'
8413 # All Alpha code is PIC.
8414 lt_prog_compiler_static='-non_shared'
8415 ;;
8416 xl*)
8417 # IBM XL C 8.0/Fortran 10.1 on PPC
8418 lt_prog_compiler_wl='-Wl,'
8419 lt_prog_compiler_pic='-qpic'
8420 lt_prog_compiler_static='-qstaticlink'
8421 ;;
8422 *)
8423 case `$CC -V 2>&1 | sed 5q` in
8424 *Sun\ C*)
8425 # Sun C 5.9
8426 lt_prog_compiler_pic='-KPIC'
8427 lt_prog_compiler_static='-Bstatic'
8428 lt_prog_compiler_wl='-Wl,'
8429 ;;
8430 *Sun\ F*)
8431 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8432 lt_prog_compiler_pic='-KPIC'
8433 lt_prog_compiler_static='-Bstatic'
8434 lt_prog_compiler_wl=''
8435 ;;
8436 esac
8437 ;;
8438 esac
8439 ;;
8440
8441 newsos6)
8442 lt_prog_compiler_pic='-KPIC'
8443 lt_prog_compiler_static='-Bstatic'
8444 ;;
8445
8446 *nto* | *qnx*)
8447 # QNX uses GNU C++, but need to define -shared option too, otherwise
8448 # it will coredump.
8449 lt_prog_compiler_pic='-fPIC -shared'
8450 ;;
8451
8452 osf3* | osf4* | osf5*)
8453 lt_prog_compiler_wl='-Wl,'
8454 # All OSF/1 code is PIC.
8455 lt_prog_compiler_static='-non_shared'
8456 ;;
8457
8458 rdos*)
8459 lt_prog_compiler_static='-non_shared'
8460 ;;
8461
8462 solaris*)
8463 lt_prog_compiler_pic='-KPIC'
8464 lt_prog_compiler_static='-Bstatic'
8465 case $cc_basename in
8466 f77* | f90* | f95*)
8467 lt_prog_compiler_wl='-Qoption ld ';;
8468 *)
8469 lt_prog_compiler_wl='-Wl,';;
8470 esac
8471 ;;
8472
8473 sunos4*)
8474 lt_prog_compiler_wl='-Qoption ld '
8475 lt_prog_compiler_pic='-PIC'
8476 lt_prog_compiler_static='-Bstatic'
8477 ;;
8478
8479 sysv4 | sysv4.2uw2* | sysv4.3*)
8480 lt_prog_compiler_wl='-Wl,'
8481 lt_prog_compiler_pic='-KPIC'
8482 lt_prog_compiler_static='-Bstatic'
8483 ;;
8484
8485 sysv4*MP*)
8486 if test -d /usr/nec ;then
8487 lt_prog_compiler_pic='-Kconform_pic'
8488 lt_prog_compiler_static='-Bstatic'
8489 fi
8490 ;;
8491
8492 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8493 lt_prog_compiler_wl='-Wl,'
8494 lt_prog_compiler_pic='-KPIC'
8495 lt_prog_compiler_static='-Bstatic'
8496 ;;
8497
8498 unicos*)
8499 lt_prog_compiler_wl='-Wl,'
8500 lt_prog_compiler_can_build_shared=no
8501 ;;
8502
8503 uts4*)
8504 lt_prog_compiler_pic='-pic'
8505 lt_prog_compiler_static='-Bstatic'
8506 ;;
8507
8508 *)
8509 lt_prog_compiler_can_build_shared=no
8510 ;;
8511 esac
8512 fi
8513
8514 case $host_os in
8515 # For platforms which do not support PIC, -DPIC is meaningless:
8516 *djgpp*)
8517 lt_prog_compiler_pic=
8518 ;;
8519 *)
8520 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8521 ;;
8522 esac
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8524 $as_echo "$lt_prog_compiler_pic" >&6; }
8525
8526
8527
8528
8529
8530
8531 #
8532 # Check to make sure the PIC flag actually works.
8533 #
8534 if test -n "$lt_prog_compiler_pic"; then
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8536 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8537 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8538 $as_echo_n "(cached) " >&6
8539 else
8540 lt_cv_prog_compiler_pic_works=no
8541 ac_outfile=conftest.$ac_objext
8542 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8543 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8544 # Insert the option either (1) after the last *FLAGS variable, or
8545 # (2) before a word containing "conftest.", or (3) at the end.
8546 # Note that $ac_compile itself does not contain backslashes and begins
8547 # with a dollar sign (not a hyphen), so the echo should work correctly.
8548 # The option is referenced via a variable to avoid confusing sed.
8549 lt_compile=`echo "$ac_compile" | $SED \
8550 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8551 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8552 -e 's:$: $lt_compiler_flag:'`
8553 (eval echo "\"\$as_me:8553: $lt_compile\"" >&5)
8554 (eval "$lt_compile" 2>conftest.err)
8555 ac_status=$?
8556 cat conftest.err >&5
8557 echo "$as_me:8557: \$? = $ac_status" >&5
8558 if (exit $ac_status) && test -s "$ac_outfile"; then
8559 # The compiler can only warn and ignore the option if not recognized
8560 # So say no if there are warnings other than the usual output.
8561 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8562 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8563 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8564 lt_cv_prog_compiler_pic_works=yes
8565 fi
8566 fi
8567 $RM conftest*
8568
8569 fi
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8571 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8572
8573 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8574 case $lt_prog_compiler_pic in
8575 "" | " "*) ;;
8576 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8577 esac
8578 else
8579 lt_prog_compiler_pic=
8580 lt_prog_compiler_can_build_shared=no
8581 fi
8582
8583 fi
8584
8585
8586
8587
8588
8589
8590 #
8591 # Check to make sure the static flag actually works.
8592 #
8593 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8595 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8596 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8597 $as_echo_n "(cached) " >&6
8598 else
8599 lt_cv_prog_compiler_static_works=no
8600 save_LDFLAGS="$LDFLAGS"
8601 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8602 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8603 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8604 # The linker can only warn and ignore the option if not recognized
8605 # So say no if there are warnings
8606 if test -s conftest.err; then
8607 # Append any errors to the config.log.
8608 cat conftest.err 1>&5
8609 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8610 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8611 if diff conftest.exp conftest.er2 >/dev/null; then
8612 lt_cv_prog_compiler_static_works=yes
8613 fi
8614 else
8615 lt_cv_prog_compiler_static_works=yes
8616 fi
8617 fi
8618 $RM -r conftest*
8619 LDFLAGS="$save_LDFLAGS"
8620
8621 fi
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8623 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8624
8625 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8626 :
8627 else
8628 lt_prog_compiler_static=
8629 fi
8630
8631
8632
8633
8634
8635
8636
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8638 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8639 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8640 $as_echo_n "(cached) " >&6
8641 else
8642 lt_cv_prog_compiler_c_o=no
8643 $RM -r conftest 2>/dev/null
8644 mkdir conftest
8645 cd conftest
8646 mkdir out
8647 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8648
8649 lt_compiler_flag="-o out/conftest2.$ac_objext"
8650 # Insert the option either (1) after the last *FLAGS variable, or
8651 # (2) before a word containing "conftest.", or (3) at the end.
8652 # Note that $ac_compile itself does not contain backslashes and begins
8653 # with a dollar sign (not a hyphen), so the echo should work correctly.
8654 lt_compile=`echo "$ac_compile" | $SED \
8655 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8656 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8657 -e 's:$: $lt_compiler_flag:'`
8658 (eval echo "\"\$as_me:8658: $lt_compile\"" >&5)
8659 (eval "$lt_compile" 2>out/conftest.err)
8660 ac_status=$?
8661 cat out/conftest.err >&5
8662 echo "$as_me:8662: \$? = $ac_status" >&5
8663 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8664 then
8665 # The compiler can only warn and ignore the option if not recognized
8666 # So say no if there are warnings
8667 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8668 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8669 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8670 lt_cv_prog_compiler_c_o=yes
8671 fi
8672 fi
8673 chmod u+w . 2>&5
8674 $RM conftest*
8675 # SGI C++ compiler will create directory out/ii_files/ for
8676 # template instantiation
8677 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8678 $RM out/* && rmdir out
8679 cd ..
8680 $RM -r conftest
8681 $RM conftest*
8682
8683 fi
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8685 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8686
8687
8688
8689
8690
8691
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8693 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8694 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8695 $as_echo_n "(cached) " >&6
8696 else
8697 lt_cv_prog_compiler_c_o=no
8698 $RM -r conftest 2>/dev/null
8699 mkdir conftest
8700 cd conftest
8701 mkdir out
8702 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8703
8704 lt_compiler_flag="-o out/conftest2.$ac_objext"
8705 # Insert the option either (1) after the last *FLAGS variable, or
8706 # (2) before a word containing "conftest.", or (3) at the end.
8707 # Note that $ac_compile itself does not contain backslashes and begins
8708 # with a dollar sign (not a hyphen), so the echo should work correctly.
8709 lt_compile=`echo "$ac_compile" | $SED \
8710 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8711 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8712 -e 's:$: $lt_compiler_flag:'`
8713 (eval echo "\"\$as_me:8713: $lt_compile\"" >&5)
8714 (eval "$lt_compile" 2>out/conftest.err)
8715 ac_status=$?
8716 cat out/conftest.err >&5
8717 echo "$as_me:8717: \$? = $ac_status" >&5
8718 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8719 then
8720 # The compiler can only warn and ignore the option if not recognized
8721 # So say no if there are warnings
8722 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8723 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8724 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8725 lt_cv_prog_compiler_c_o=yes
8726 fi
8727 fi
8728 chmod u+w . 2>&5
8729 $RM conftest*
8730 # SGI C++ compiler will create directory out/ii_files/ for
8731 # template instantiation
8732 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8733 $RM out/* && rmdir out
8734 cd ..
8735 $RM -r conftest
8736 $RM conftest*
8737
8738 fi
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8740 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8741
8742
8743
8744
8745 hard_links="nottested"
8746 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8747 # do not overwrite the value of need_locks provided by the user
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8749 $as_echo_n "checking if we can lock with hard links... " >&6; }
8750 hard_links=yes
8751 $RM conftest*
8752 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8753 touch conftest.a
8754 ln conftest.a conftest.b 2>&5 || hard_links=no
8755 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8757 $as_echo "$hard_links" >&6; }
8758 if test "$hard_links" = no; then
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8760 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8761 need_locks=warn
8762 fi
8763 else
8764 need_locks=no
8765 fi
8766
8767
8768
8769
8770
8771
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8773 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8774
8775 runpath_var=
8776 allow_undefined_flag=
8777 always_export_symbols=no
8778 archive_cmds=
8779 archive_expsym_cmds=
8780 compiler_needs_object=no
8781 enable_shared_with_static_runtimes=no
8782 export_dynamic_flag_spec=
8783 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8784 hardcode_automatic=no
8785 hardcode_direct=no
8786 hardcode_direct_absolute=no
8787 hardcode_libdir_flag_spec=
8788 hardcode_libdir_flag_spec_ld=
8789 hardcode_libdir_separator=
8790 hardcode_minus_L=no
8791 hardcode_shlibpath_var=unsupported
8792 inherit_rpath=no
8793 link_all_deplibs=unknown
8794 module_cmds=
8795 module_expsym_cmds=
8796 old_archive_from_new_cmds=
8797 old_archive_from_expsyms_cmds=
8798 thread_safe_flag_spec=
8799 whole_archive_flag_spec=
8800 # include_expsyms should be a list of space-separated symbols to be *always*
8801 # included in the symbol list
8802 include_expsyms=
8803 # exclude_expsyms can be an extended regexp of symbols to exclude
8804 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8805 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8806 # as well as any symbol that contains `d'.
8807 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8808 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8809 # platforms (ab)use it in PIC code, but their linkers get confused if
8810 # the symbol is explicitly referenced. Since portable code cannot
8811 # rely on this symbol name, it's probably fine to never include it in
8812 # preloaded symbol tables.
8813 # Exclude shared library initialization/finalization symbols.
8814 extract_expsyms_cmds=
8815
8816 case $host_os in
8817 cygwin* | mingw* | pw32* | cegcc*)
8818 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8819 # When not using gcc, we currently assume that we are using
8820 # Microsoft Visual C++.
8821 if test "$GCC" != yes; then
8822 with_gnu_ld=no
8823 fi
8824 ;;
8825 interix*)
8826 # we just hope/assume this is gcc and not c89 (= MSVC++)
8827 with_gnu_ld=yes
8828 ;;
8829 openbsd*)
8830 with_gnu_ld=no
8831 ;;
8832 esac
8833
8834 ld_shlibs=yes
8835 if test "$with_gnu_ld" = yes; then
8836 # If archive_cmds runs LD, not CC, wlarc should be empty
8837 wlarc='${wl}'
8838
8839 # Set some defaults for GNU ld with shared library support. These
8840 # are reset later if shared libraries are not supported. Putting them
8841 # here allows them to be overridden if necessary.
8842 runpath_var=LD_RUN_PATH
8843 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8844 export_dynamic_flag_spec='${wl}--export-dynamic'
8845 # ancient GNU ld didn't support --whole-archive et. al.
8846 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8847 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8848 else
8849 whole_archive_flag_spec=
8850 fi
8851 supports_anon_versioning=no
8852 case `$LD -v 2>&1` in
8853 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8854 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8855 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8856 *\ 2.11.*) ;; # other 2.11 versions
8857 *) supports_anon_versioning=yes ;;
8858 esac
8859
8860 # See if GNU ld supports shared libraries.
8861 case $host_os in
8862 aix[3-9]*)
8863 # On AIX/PPC, the GNU linker is very broken
8864 if test "$host_cpu" != ia64; then
8865 ld_shlibs=no
8866 cat <<_LT_EOF 1>&2
8867
8868 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8869 *** to be unable to reliably create shared libraries on AIX.
8870 *** Therefore, libtool is disabling shared libraries support. If you
8871 *** really care for shared libraries, you may want to modify your PATH
8872 *** so that a non-GNU linker is found, and then restart.
8873
8874 _LT_EOF
8875 fi
8876 ;;
8877
8878 amigaos*)
8879 case $host_cpu in
8880 powerpc)
8881 # see comment about AmigaOS4 .so support
8882 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8883 archive_expsym_cmds=''
8884 ;;
8885 m68k)
8886 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)'
8887 hardcode_libdir_flag_spec='-L$libdir'
8888 hardcode_minus_L=yes
8889 ;;
8890 esac
8891 ;;
8892
8893 beos*)
8894 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8895 allow_undefined_flag=unsupported
8896 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8897 # support --undefined. This deserves some investigation. FIXME
8898 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8899 else
8900 ld_shlibs=no
8901 fi
8902 ;;
8903
8904 cygwin* | mingw* | pw32* | cegcc*)
8905 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8906 # as there is no search path for DLLs.
8907 hardcode_libdir_flag_spec='-L$libdir'
8908 allow_undefined_flag=unsupported
8909 always_export_symbols=no
8910 enable_shared_with_static_runtimes=yes
8911 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8912
8913 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8914 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8915 # If the export-symbols file already is a .def file (1st line
8916 # is EXPORTS), use it as is; otherwise, prepend...
8917 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8918 cp $export_symbols $output_objdir/$soname.def;
8919 else
8920 echo EXPORTS > $output_objdir/$soname.def;
8921 cat $export_symbols >> $output_objdir/$soname.def;
8922 fi~
8923 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8924 else
8925 ld_shlibs=no
8926 fi
8927 ;;
8928
8929 interix[3-9]*)
8930 hardcode_direct=no
8931 hardcode_shlibpath_var=no
8932 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8933 export_dynamic_flag_spec='${wl}-E'
8934 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8935 # Instead, shared libraries are loaded at an image base (0x10000000 by
8936 # default) and relocated if they conflict, which is a slow very memory
8937 # consuming and fragmenting process. To avoid this, we pick a random,
8938 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8939 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8940 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8941 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'
8942 ;;
8943
8944 gnu* | linux* | tpf* | k*bsd*-gnu)
8945 tmp_diet=no
8946 if test "$host_os" = linux-dietlibc; then
8947 case $cc_basename in
8948 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8949 esac
8950 fi
8951 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8952 && test "$tmp_diet" = no
8953 then
8954 tmp_addflag=
8955 tmp_sharedflag='-shared'
8956 case $cc_basename,$host_cpu in
8957 pgcc*) # Portland Group C compiler
8958 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'
8959 tmp_addflag=' $pic_flag'
8960 ;;
8961 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8962 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'
8963 tmp_addflag=' $pic_flag -Mnomain' ;;
8964 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8965 tmp_addflag=' -i_dynamic' ;;
8966 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8967 tmp_addflag=' -i_dynamic -nofor_main' ;;
8968 ifc* | ifort*) # Intel Fortran compiler
8969 tmp_addflag=' -nofor_main' ;;
8970 lf95*) # Lahey Fortran 8.1
8971 whole_archive_flag_spec=
8972 tmp_sharedflag='--shared' ;;
8973 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8974 tmp_sharedflag='-qmkshrobj'
8975 tmp_addflag= ;;
8976 esac
8977 case `$CC -V 2>&1 | sed 5q` in
8978 *Sun\ C*) # Sun C 5.9
8979 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'
8980 compiler_needs_object=yes
8981 tmp_sharedflag='-G' ;;
8982 *Sun\ F*) # Sun Fortran 8.3
8983 tmp_sharedflag='-G' ;;
8984 esac
8985 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8986
8987 if test "x$supports_anon_versioning" = xyes; then
8988 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8989 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8990 echo "local: *; };" >> $output_objdir/$libname.ver~
8991 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8992 fi
8993
8994 case $cc_basename in
8995 xlf*)
8996 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8997 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8998 hardcode_libdir_flag_spec=
8999 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9000 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9001 if test "x$supports_anon_versioning" = xyes; then
9002 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9003 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9004 echo "local: *; };" >> $output_objdir/$libname.ver~
9005 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9006 fi
9007 ;;
9008 esac
9009 else
9010 ld_shlibs=no
9011 fi
9012 ;;
9013
9014 netbsd*)
9015 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9016 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9017 wlarc=
9018 else
9019 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9020 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9021 fi
9022 ;;
9023
9024 solaris*)
9025 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9026 ld_shlibs=no
9027 cat <<_LT_EOF 1>&2
9028
9029 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9030 *** create shared libraries on Solaris systems. Therefore, libtool
9031 *** is disabling shared libraries support. We urge you to upgrade GNU
9032 *** binutils to release 2.9.1 or newer. Another option is to modify
9033 *** your PATH or compiler configuration so that the native linker is
9034 *** used, and then restart.
9035
9036 _LT_EOF
9037 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9038 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9039 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9040 else
9041 ld_shlibs=no
9042 fi
9043 ;;
9044
9045 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9046 case `$LD -v 2>&1` in
9047 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9048 ld_shlibs=no
9049 cat <<_LT_EOF 1>&2
9050
9051 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9052 *** reliably create shared libraries on SCO systems. Therefore, libtool
9053 *** is disabling shared libraries support. We urge you to upgrade GNU
9054 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9055 *** your PATH or compiler configuration so that the native linker is
9056 *** used, and then restart.
9057
9058 _LT_EOF
9059 ;;
9060 *)
9061 # For security reasons, it is highly recommended that you always
9062 # use absolute paths for naming shared libraries, and exclude the
9063 # DT_RUNPATH tag from executables and libraries. But doing so
9064 # requires that you compile everything twice, which is a pain.
9065 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9066 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9067 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9068 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9069 else
9070 ld_shlibs=no
9071 fi
9072 ;;
9073 esac
9074 ;;
9075
9076 sunos4*)
9077 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9078 wlarc=
9079 hardcode_direct=yes
9080 hardcode_shlibpath_var=no
9081 ;;
9082
9083 *)
9084 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9085 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9086 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9087 else
9088 ld_shlibs=no
9089 fi
9090 ;;
9091 esac
9092
9093 if test "$ld_shlibs" = no; then
9094 runpath_var=
9095 hardcode_libdir_flag_spec=
9096 export_dynamic_flag_spec=
9097 whole_archive_flag_spec=
9098 fi
9099 else
9100 # PORTME fill in a description of your system's linker (not GNU ld)
9101 case $host_os in
9102 aix3*)
9103 allow_undefined_flag=unsupported
9104 always_export_symbols=yes
9105 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'
9106 # Note: this linker hardcodes the directories in LIBPATH if there
9107 # are no directories specified by -L.
9108 hardcode_minus_L=yes
9109 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9110 # Neither direct hardcoding nor static linking is supported with a
9111 # broken collect2.
9112 hardcode_direct=unsupported
9113 fi
9114 ;;
9115
9116 aix[4-9]*)
9117 if test "$host_cpu" = ia64; then
9118 # On IA64, the linker does run time linking by default, so we don't
9119 # have to do anything special.
9120 aix_use_runtimelinking=no
9121 exp_sym_flag='-Bexport'
9122 no_entry_flag=""
9123 else
9124 # If we're using GNU nm, then we don't want the "-C" option.
9125 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9126 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9127 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'
9128 else
9129 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'
9130 fi
9131 aix_use_runtimelinking=no
9132
9133 # Test if we are trying to use run time linking or normal
9134 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9135 # need to do runtime linking.
9136 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9137 for ld_flag in $LDFLAGS; do
9138 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9139 aix_use_runtimelinking=yes
9140 break
9141 fi
9142 done
9143 ;;
9144 esac
9145
9146 exp_sym_flag='-bexport'
9147 no_entry_flag='-bnoentry'
9148 fi
9149
9150 # When large executables or shared objects are built, AIX ld can
9151 # have problems creating the table of contents. If linking a library
9152 # or program results in "error TOC overflow" add -mminimal-toc to
9153 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9154 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9155
9156 archive_cmds=''
9157 hardcode_direct=yes
9158 hardcode_direct_absolute=yes
9159 hardcode_libdir_separator=':'
9160 link_all_deplibs=yes
9161 file_list_spec='${wl}-f,'
9162
9163 if test "$GCC" = yes; then
9164 case $host_os in aix4.[012]|aix4.[012].*)
9165 # We only want to do this on AIX 4.2 and lower, the check
9166 # below for broken collect2 doesn't work under 4.3+
9167 collect2name=`${CC} -print-prog-name=collect2`
9168 if test -f "$collect2name" &&
9169 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9170 then
9171 # We have reworked collect2
9172 :
9173 else
9174 # We have old collect2
9175 hardcode_direct=unsupported
9176 # It fails to find uninstalled libraries when the uninstalled
9177 # path is not listed in the libpath. Setting hardcode_minus_L
9178 # to unsupported forces relinking
9179 hardcode_minus_L=yes
9180 hardcode_libdir_flag_spec='-L$libdir'
9181 hardcode_libdir_separator=
9182 fi
9183 ;;
9184 esac
9185 shared_flag='-shared'
9186 if test "$aix_use_runtimelinking" = yes; then
9187 shared_flag="$shared_flag "'${wl}-G'
9188 fi
9189 else
9190 # not using gcc
9191 if test "$host_cpu" = ia64; then
9192 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9193 # chokes on -Wl,-G. The following line is correct:
9194 shared_flag='-G'
9195 else
9196 if test "$aix_use_runtimelinking" = yes; then
9197 shared_flag='${wl}-G'
9198 else
9199 shared_flag='${wl}-bM:SRE'
9200 fi
9201 fi
9202 fi
9203
9204 export_dynamic_flag_spec='${wl}-bexpall'
9205 # It seems that -bexpall does not export symbols beginning with
9206 # underscore (_), so it is better to generate a list of symbols to export.
9207 always_export_symbols=yes
9208 if test "$aix_use_runtimelinking" = yes; then
9209 # Warning - without using the other runtime loading flags (-brtl),
9210 # -berok will link without error, but may produce a broken library.
9211 allow_undefined_flag='-berok'
9212 # Determine the default libpath from the value encoded in an
9213 # empty executable.
9214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9215 /* end confdefs.h. */
9216
9217 int
9218 main ()
9219 {
9220
9221 ;
9222 return 0;
9223 }
9224 _ACEOF
9225 if ac_fn_c_try_link "$LINENO"; then :
9226
9227 lt_aix_libpath_sed='
9228 /Import File Strings/,/^$/ {
9229 /^0/ {
9230 s/^0 *\(.*\)$/\1/
9231 p
9232 }
9233 }'
9234 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9235 # Check for a 64-bit object if we didn't find anything.
9236 if test -z "$aix_libpath"; then
9237 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9238 fi
9239 fi
9240 rm -f core conftest.err conftest.$ac_objext \
9241 conftest$ac_exeext conftest.$ac_ext
9242 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9243
9244 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9245 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"
9246 else
9247 if test "$host_cpu" = ia64; then
9248 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9249 allow_undefined_flag="-z nodefs"
9250 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"
9251 else
9252 # Determine the default libpath from the value encoded in an
9253 # empty executable.
9254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9255 /* end confdefs.h. */
9256
9257 int
9258 main ()
9259 {
9260
9261 ;
9262 return 0;
9263 }
9264 _ACEOF
9265 if ac_fn_c_try_link "$LINENO"; then :
9266
9267 lt_aix_libpath_sed='
9268 /Import File Strings/,/^$/ {
9269 /^0/ {
9270 s/^0 *\(.*\)$/\1/
9271 p
9272 }
9273 }'
9274 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9275 # Check for a 64-bit object if we didn't find anything.
9276 if test -z "$aix_libpath"; then
9277 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9278 fi
9279 fi
9280 rm -f core conftest.err conftest.$ac_objext \
9281 conftest$ac_exeext conftest.$ac_ext
9282 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9283
9284 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9285 # Warning - without using the other run time loading flags,
9286 # -berok will link without error, but may produce a broken library.
9287 no_undefined_flag=' ${wl}-bernotok'
9288 allow_undefined_flag=' ${wl}-berok'
9289 # Exported symbols can be pulled into shared objects from archives
9290 whole_archive_flag_spec='$convenience'
9291 archive_cmds_need_lc=yes
9292 # This is similar to how AIX traditionally builds its shared libraries.
9293 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'
9294 fi
9295 fi
9296 ;;
9297
9298 amigaos*)
9299 case $host_cpu in
9300 powerpc)
9301 # see comment about AmigaOS4 .so support
9302 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9303 archive_expsym_cmds=''
9304 ;;
9305 m68k)
9306 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)'
9307 hardcode_libdir_flag_spec='-L$libdir'
9308 hardcode_minus_L=yes
9309 ;;
9310 esac
9311 ;;
9312
9313 bsdi[45]*)
9314 export_dynamic_flag_spec=-rdynamic
9315 ;;
9316
9317 cygwin* | mingw* | pw32* | cegcc*)
9318 # When not using gcc, we currently assume that we are using
9319 # Microsoft Visual C++.
9320 # hardcode_libdir_flag_spec is actually meaningless, as there is
9321 # no search path for DLLs.
9322 hardcode_libdir_flag_spec=' '
9323 allow_undefined_flag=unsupported
9324 # Tell ltmain to make .lib files, not .a files.
9325 libext=lib
9326 # Tell ltmain to make .dll files, not .so files.
9327 shrext_cmds=".dll"
9328 # FIXME: Setting linknames here is a bad hack.
9329 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9330 # The linker will automatically build a .lib file if we build a DLL.
9331 old_archive_from_new_cmds='true'
9332 # FIXME: Should let the user specify the lib program.
9333 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9334 fix_srcfile_path='`cygpath -w "$srcfile"`'
9335 enable_shared_with_static_runtimes=yes
9336 ;;
9337
9338 darwin* | rhapsody*)
9339
9340
9341 archive_cmds_need_lc=no
9342 hardcode_direct=no
9343 hardcode_automatic=yes
9344 hardcode_shlibpath_var=unsupported
9345 whole_archive_flag_spec=''
9346 link_all_deplibs=yes
9347 allow_undefined_flag="$_lt_dar_allow_undefined"
9348 case $cc_basename in
9349 ifort*) _lt_dar_can_shared=yes ;;
9350 *) _lt_dar_can_shared=$GCC ;;
9351 esac
9352 if test "$_lt_dar_can_shared" = "yes"; then
9353 output_verbose_link_cmd=echo
9354 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9355 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9356 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}"
9357 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}"
9358
9359 else
9360 ld_shlibs=no
9361 fi
9362
9363 ;;
9364
9365 dgux*)
9366 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9367 hardcode_libdir_flag_spec='-L$libdir'
9368 hardcode_shlibpath_var=no
9369 ;;
9370
9371 freebsd1*)
9372 ld_shlibs=no
9373 ;;
9374
9375 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9376 # support. Future versions do this automatically, but an explicit c++rt0.o
9377 # does not break anything, and helps significantly (at the cost of a little
9378 # extra space).
9379 freebsd2.2*)
9380 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9381 hardcode_libdir_flag_spec='-R$libdir'
9382 hardcode_direct=yes
9383 hardcode_shlibpath_var=no
9384 ;;
9385
9386 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9387 freebsd2*)
9388 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9389 hardcode_direct=yes
9390 hardcode_minus_L=yes
9391 hardcode_shlibpath_var=no
9392 ;;
9393
9394 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9395 freebsd* | dragonfly*)
9396 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9397 hardcode_libdir_flag_spec='-R$libdir'
9398 hardcode_direct=yes
9399 hardcode_shlibpath_var=no
9400 ;;
9401
9402 hpux9*)
9403 if test "$GCC" = yes; then
9404 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'
9405 else
9406 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'
9407 fi
9408 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9409 hardcode_libdir_separator=:
9410 hardcode_direct=yes
9411
9412 # hardcode_minus_L: Not really in the search PATH,
9413 # but as the default location of the library.
9414 hardcode_minus_L=yes
9415 export_dynamic_flag_spec='${wl}-E'
9416 ;;
9417
9418 hpux10*)
9419 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9420 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9421 else
9422 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9423 fi
9424 if test "$with_gnu_ld" = no; then
9425 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9426 hardcode_libdir_flag_spec_ld='+b $libdir'
9427 hardcode_libdir_separator=:
9428 hardcode_direct=yes
9429 hardcode_direct_absolute=yes
9430 export_dynamic_flag_spec='${wl}-E'
9431 # hardcode_minus_L: Not really in the search PATH,
9432 # but as the default location of the library.
9433 hardcode_minus_L=yes
9434 fi
9435 ;;
9436
9437 hpux11*)
9438 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9439 case $host_cpu in
9440 hppa*64*)
9441 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9442 ;;
9443 ia64*)
9444 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9445 ;;
9446 *)
9447 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9448 ;;
9449 esac
9450 else
9451 case $host_cpu in
9452 hppa*64*)
9453 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9454 ;;
9455 ia64*)
9456 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9457 ;;
9458 *)
9459 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9460 ;;
9461 esac
9462 fi
9463 if test "$with_gnu_ld" = no; then
9464 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9465 hardcode_libdir_separator=:
9466
9467 case $host_cpu in
9468 hppa*64*|ia64*)
9469 hardcode_direct=no
9470 hardcode_shlibpath_var=no
9471 ;;
9472 *)
9473 hardcode_direct=yes
9474 hardcode_direct_absolute=yes
9475 export_dynamic_flag_spec='${wl}-E'
9476
9477 # hardcode_minus_L: Not really in the search PATH,
9478 # but as the default location of the library.
9479 hardcode_minus_L=yes
9480 ;;
9481 esac
9482 fi
9483 ;;
9484
9485 irix5* | irix6* | nonstopux*)
9486 if test "$GCC" = yes; then
9487 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'
9488 # Try to use the -exported_symbol ld option, if it does not
9489 # work, assume that -exports_file does not work either and
9490 # implicitly export all symbols.
9491 save_LDFLAGS="$LDFLAGS"
9492 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9494 /* end confdefs.h. */
9495 int foo(void) {}
9496 _ACEOF
9497 if ac_fn_c_try_link "$LINENO"; then :
9498 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'
9499
9500 fi
9501 rm -f core conftest.err conftest.$ac_objext \
9502 conftest$ac_exeext conftest.$ac_ext
9503 LDFLAGS="$save_LDFLAGS"
9504 else
9505 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'
9506 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'
9507 fi
9508 archive_cmds_need_lc='no'
9509 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9510 hardcode_libdir_separator=:
9511 inherit_rpath=yes
9512 link_all_deplibs=yes
9513 ;;
9514
9515 netbsd*)
9516 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9517 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9518 else
9519 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9520 fi
9521 hardcode_libdir_flag_spec='-R$libdir'
9522 hardcode_direct=yes
9523 hardcode_shlibpath_var=no
9524 ;;
9525
9526 newsos6)
9527 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9528 hardcode_direct=yes
9529 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9530 hardcode_libdir_separator=:
9531 hardcode_shlibpath_var=no
9532 ;;
9533
9534 *nto* | *qnx*)
9535 ;;
9536
9537 openbsd*)
9538 if test -f /usr/libexec/ld.so; then
9539 hardcode_direct=yes
9540 hardcode_shlibpath_var=no
9541 hardcode_direct_absolute=yes
9542 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9543 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9544 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9545 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9546 export_dynamic_flag_spec='${wl}-E'
9547 else
9548 case $host_os in
9549 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9550 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9551 hardcode_libdir_flag_spec='-R$libdir'
9552 ;;
9553 *)
9554 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9555 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9556 ;;
9557 esac
9558 fi
9559 else
9560 ld_shlibs=no
9561 fi
9562 ;;
9563
9564 os2*)
9565 hardcode_libdir_flag_spec='-L$libdir'
9566 hardcode_minus_L=yes
9567 allow_undefined_flag=unsupported
9568 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'
9569 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9570 ;;
9571
9572 osf3*)
9573 if test "$GCC" = yes; then
9574 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9575 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'
9576 else
9577 allow_undefined_flag=' -expect_unresolved \*'
9578 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'
9579 fi
9580 archive_cmds_need_lc='no'
9581 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9582 hardcode_libdir_separator=:
9583 ;;
9584
9585 osf4* | osf5*) # as osf3* with the addition of -msym flag
9586 if test "$GCC" = yes; then
9587 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9588 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'
9589 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9590 else
9591 allow_undefined_flag=' -expect_unresolved \*'
9592 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'
9593 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~
9594 $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'
9595
9596 # Both c and cxx compiler support -rpath directly
9597 hardcode_libdir_flag_spec='-rpath $libdir'
9598 fi
9599 archive_cmds_need_lc='no'
9600 hardcode_libdir_separator=:
9601 ;;
9602
9603 solaris*)
9604 no_undefined_flag=' -z defs'
9605 if test "$GCC" = yes; then
9606 wlarc='${wl}'
9607 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9608 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9609 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9610 else
9611 case `$CC -V 2>&1` in
9612 *"Compilers 5.0"*)
9613 wlarc=''
9614 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9615 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9616 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9617 ;;
9618 *)
9619 wlarc='${wl}'
9620 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9621 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9622 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9623 ;;
9624 esac
9625 fi
9626 hardcode_libdir_flag_spec='-R$libdir'
9627 hardcode_shlibpath_var=no
9628 case $host_os in
9629 solaris2.[0-5] | solaris2.[0-5].*) ;;
9630 *)
9631 # The compiler driver will combine and reorder linker options,
9632 # but understands `-z linker_flag'. GCC discards it without `$wl',
9633 # but is careful enough not to reorder.
9634 # Supported since Solaris 2.6 (maybe 2.5.1?)
9635 if test "$GCC" = yes; then
9636 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9637 else
9638 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9639 fi
9640 ;;
9641 esac
9642 link_all_deplibs=yes
9643 ;;
9644
9645 sunos4*)
9646 if test "x$host_vendor" = xsequent; then
9647 # Use $CC to link under sequent, because it throws in some extra .o
9648 # files that make .init and .fini sections work.
9649 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9650 else
9651 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9652 fi
9653 hardcode_libdir_flag_spec='-L$libdir'
9654 hardcode_direct=yes
9655 hardcode_minus_L=yes
9656 hardcode_shlibpath_var=no
9657 ;;
9658
9659 sysv4)
9660 case $host_vendor in
9661 sni)
9662 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9663 hardcode_direct=yes # is this really true???
9664 ;;
9665 siemens)
9666 ## LD is ld it makes a PLAMLIB
9667 ## CC just makes a GrossModule.
9668 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9669 reload_cmds='$CC -r -o $output$reload_objs'
9670 hardcode_direct=no
9671 ;;
9672 motorola)
9673 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9674 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9675 ;;
9676 esac
9677 runpath_var='LD_RUN_PATH'
9678 hardcode_shlibpath_var=no
9679 ;;
9680
9681 sysv4.3*)
9682 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9683 hardcode_shlibpath_var=no
9684 export_dynamic_flag_spec='-Bexport'
9685 ;;
9686
9687 sysv4*MP*)
9688 if test -d /usr/nec; then
9689 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9690 hardcode_shlibpath_var=no
9691 runpath_var=LD_RUN_PATH
9692 hardcode_runpath_var=yes
9693 ld_shlibs=yes
9694 fi
9695 ;;
9696
9697 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9698 no_undefined_flag='${wl}-z,text'
9699 archive_cmds_need_lc=no
9700 hardcode_shlibpath_var=no
9701 runpath_var='LD_RUN_PATH'
9702
9703 if test "$GCC" = yes; then
9704 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9705 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9706 else
9707 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9708 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9709 fi
9710 ;;
9711
9712 sysv5* | sco3.2v5* | sco5v6*)
9713 # Note: We can NOT use -z defs as we might desire, because we do not
9714 # link with -lc, and that would cause any symbols used from libc to
9715 # always be unresolved, which means just about no library would
9716 # ever link correctly. If we're not using GNU ld we use -z text
9717 # though, which does catch some bad symbols but isn't as heavy-handed
9718 # as -z defs.
9719 no_undefined_flag='${wl}-z,text'
9720 allow_undefined_flag='${wl}-z,nodefs'
9721 archive_cmds_need_lc=no
9722 hardcode_shlibpath_var=no
9723 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9724 hardcode_libdir_separator=':'
9725 link_all_deplibs=yes
9726 export_dynamic_flag_spec='${wl}-Bexport'
9727 runpath_var='LD_RUN_PATH'
9728
9729 if test "$GCC" = yes; then
9730 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9731 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9732 else
9733 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9734 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9735 fi
9736 ;;
9737
9738 uts4*)
9739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9740 hardcode_libdir_flag_spec='-L$libdir'
9741 hardcode_shlibpath_var=no
9742 ;;
9743
9744 *)
9745 ld_shlibs=no
9746 ;;
9747 esac
9748
9749 if test x$host_vendor = xsni; then
9750 case $host in
9751 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9752 export_dynamic_flag_spec='${wl}-Blargedynsym'
9753 ;;
9754 esac
9755 fi
9756 fi
9757
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9759 $as_echo "$ld_shlibs" >&6; }
9760 test "$ld_shlibs" = no && can_build_shared=no
9761
9762 with_gnu_ld=$with_gnu_ld
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778 #
9779 # Do we need to explicitly link libc?
9780 #
9781 case "x$archive_cmds_need_lc" in
9782 x|xyes)
9783 # Assume -lc should be added
9784 archive_cmds_need_lc=yes
9785
9786 if test "$enable_shared" = yes && test "$GCC" = yes; then
9787 case $archive_cmds in
9788 *'~'*)
9789 # FIXME: we may have to deal with multi-command sequences.
9790 ;;
9791 '$CC '*)
9792 # Test whether the compiler implicitly links with -lc since on some
9793 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9794 # to ld, don't add -lc before -lgcc.
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9796 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9797 $RM conftest*
9798 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9799
9800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9801 (eval $ac_compile) 2>&5
9802 ac_status=$?
9803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9804 test $ac_status = 0; } 2>conftest.err; then
9805 soname=conftest
9806 lib=conftest
9807 libobjs=conftest.$ac_objext
9808 deplibs=
9809 wl=$lt_prog_compiler_wl
9810 pic_flag=$lt_prog_compiler_pic
9811 compiler_flags=-v
9812 linker_flags=-v
9813 verstring=
9814 output_objdir=.
9815 libname=conftest
9816 lt_save_allow_undefined_flag=$allow_undefined_flag
9817 allow_undefined_flag=
9818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9819 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9820 ac_status=$?
9821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9822 test $ac_status = 0; }
9823 then
9824 archive_cmds_need_lc=no
9825 else
9826 archive_cmds_need_lc=yes
9827 fi
9828 allow_undefined_flag=$lt_save_allow_undefined_flag
9829 else
9830 cat conftest.err 1>&5
9831 fi
9832 $RM conftest*
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9834 $as_echo "$archive_cmds_need_lc" >&6; }
9835 ;;
9836 esac
9837 fi
9838 ;;
9839 esac
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9998 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9999
10000 if test "$GCC" = yes; then
10001 case $host_os in
10002 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10003 *) lt_awk_arg="/^libraries:/" ;;
10004 esac
10005 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10006 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10007 # if the path contains ";" then we assume it to be the separator
10008 # otherwise default to the standard path separator (i.e. ":") - it is
10009 # assumed that no part of a normal pathname contains ";" but that should
10010 # okay in the real world where ";" in dirpaths is itself problematic.
10011 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10012 else
10013 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10014 fi
10015 # Ok, now we have the path, separated by spaces, we can step through it
10016 # and add multilib dir if necessary.
10017 lt_tmp_lt_search_path_spec=
10018 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10019 for lt_sys_path in $lt_search_path_spec; do
10020 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10021 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10022 else
10023 test -d "$lt_sys_path" && \
10024 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10025 fi
10026 done
10027 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10028 BEGIN {RS=" "; FS="/|\n";} {
10029 lt_foo="";
10030 lt_count=0;
10031 for (lt_i = NF; lt_i > 0; lt_i--) {
10032 if ($lt_i != "" && $lt_i != ".") {
10033 if ($lt_i == "..") {
10034 lt_count++;
10035 } else {
10036 if (lt_count == 0) {
10037 lt_foo="/" $lt_i lt_foo;
10038 } else {
10039 lt_count--;
10040 }
10041 }
10042 }
10043 }
10044 if (lt_foo != "") { lt_freq[lt_foo]++; }
10045 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10046 }'`
10047 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10048 else
10049 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10050 fi
10051 library_names_spec=
10052 libname_spec='lib$name'
10053 soname_spec=
10054 shrext_cmds=".so"
10055 postinstall_cmds=
10056 postuninstall_cmds=
10057 finish_cmds=
10058 finish_eval=
10059 shlibpath_var=
10060 shlibpath_overrides_runpath=unknown
10061 version_type=none
10062 dynamic_linker="$host_os ld.so"
10063 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10064 need_lib_prefix=unknown
10065 hardcode_into_libs=no
10066
10067 # when you set need_version to no, make sure it does not cause -set_version
10068 # flags to be left without arguments
10069 need_version=unknown
10070
10071 case $host_os in
10072 aix3*)
10073 version_type=linux
10074 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10075 shlibpath_var=LIBPATH
10076
10077 # AIX 3 has no versioning support, so we append a major version to the name.
10078 soname_spec='${libname}${release}${shared_ext}$major'
10079 ;;
10080
10081 aix[4-9]*)
10082 version_type=linux
10083 need_lib_prefix=no
10084 need_version=no
10085 hardcode_into_libs=yes
10086 if test "$host_cpu" = ia64; then
10087 # AIX 5 supports IA64
10088 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10089 shlibpath_var=LD_LIBRARY_PATH
10090 else
10091 # With GCC up to 2.95.x, collect2 would create an import file
10092 # for dependence libraries. The import file would start with
10093 # the line `#! .'. This would cause the generated library to
10094 # depend on `.', always an invalid library. This was fixed in
10095 # development snapshots of GCC prior to 3.0.
10096 case $host_os in
10097 aix4 | aix4.[01] | aix4.[01].*)
10098 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10099 echo ' yes '
10100 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10101 :
10102 else
10103 can_build_shared=no
10104 fi
10105 ;;
10106 esac
10107 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10108 # soname into executable. Probably we can add versioning support to
10109 # collect2, so additional links can be useful in future.
10110 if test "$aix_use_runtimelinking" = yes; then
10111 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10112 # instead of lib<name>.a to let people know that these are not
10113 # typical AIX shared libraries.
10114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10115 else
10116 # We preserve .a as extension for shared libraries through AIX4.2
10117 # and later when we are not doing run time linking.
10118 library_names_spec='${libname}${release}.a $libname.a'
10119 soname_spec='${libname}${release}${shared_ext}$major'
10120 fi
10121 shlibpath_var=LIBPATH
10122 fi
10123 ;;
10124
10125 amigaos*)
10126 case $host_cpu in
10127 powerpc)
10128 # Since July 2007 AmigaOS4 officially supports .so libraries.
10129 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10131 ;;
10132 m68k)
10133 library_names_spec='$libname.ixlibrary $libname.a'
10134 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10135 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'
10136 ;;
10137 esac
10138 ;;
10139
10140 beos*)
10141 library_names_spec='${libname}${shared_ext}'
10142 dynamic_linker="$host_os ld.so"
10143 shlibpath_var=LIBRARY_PATH
10144 ;;
10145
10146 bsdi[45]*)
10147 version_type=linux
10148 need_version=no
10149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10150 soname_spec='${libname}${release}${shared_ext}$major'
10151 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10152 shlibpath_var=LD_LIBRARY_PATH
10153 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10154 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10155 # the default ld.so.conf also contains /usr/contrib/lib and
10156 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10157 # libtool to hard-code these into programs
10158 ;;
10159
10160 cygwin* | mingw* | pw32* | cegcc*)
10161 version_type=windows
10162 shrext_cmds=".dll"
10163 need_version=no
10164 need_lib_prefix=no
10165
10166 case $GCC,$host_os in
10167 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10168 library_names_spec='$libname.dll.a'
10169 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10170 postinstall_cmds='base_file=`basename \${file}`~
10171 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10172 dldir=$destdir/`dirname \$dlpath`~
10173 test -d \$dldir || mkdir -p \$dldir~
10174 $install_prog $dir/$dlname \$dldir/$dlname~
10175 chmod a+x \$dldir/$dlname~
10176 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10177 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10178 fi'
10179 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10180 dlpath=$dir/\$dldll~
10181 $RM \$dlpath'
10182 shlibpath_overrides_runpath=yes
10183
10184 case $host_os in
10185 cygwin*)
10186 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10187 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10188 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10189 ;;
10190 mingw* | cegcc*)
10191 # MinGW DLLs use traditional 'lib' prefix
10192 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10193 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10194 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10195 # It is most probably a Windows format PATH printed by
10196 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10197 # path with ; separators, and with drive letters. We can handle the
10198 # drive letters (cygwin fileutils understands them), so leave them,
10199 # especially as we might pass files found there to a mingw objdump,
10200 # which wouldn't understand a cygwinified path. Ahh.
10201 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10202 else
10203 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10204 fi
10205 ;;
10206 pw32*)
10207 # pw32 DLLs use 'pw' prefix rather than 'lib'
10208 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10209 ;;
10210 esac
10211 ;;
10212
10213 *)
10214 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10215 ;;
10216 esac
10217 dynamic_linker='Win32 ld.exe'
10218 # FIXME: first we should search . and the directory the executable is in
10219 shlibpath_var=PATH
10220 ;;
10221
10222 darwin* | rhapsody*)
10223 dynamic_linker="$host_os dyld"
10224 version_type=darwin
10225 need_lib_prefix=no
10226 need_version=no
10227 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10228 soname_spec='${libname}${release}${major}$shared_ext'
10229 shlibpath_overrides_runpath=yes
10230 shlibpath_var=DYLD_LIBRARY_PATH
10231 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10232
10233 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10234 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10235 ;;
10236
10237 dgux*)
10238 version_type=linux
10239 need_lib_prefix=no
10240 need_version=no
10241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10242 soname_spec='${libname}${release}${shared_ext}$major'
10243 shlibpath_var=LD_LIBRARY_PATH
10244 ;;
10245
10246 freebsd1*)
10247 dynamic_linker=no
10248 ;;
10249
10250 freebsd* | dragonfly*)
10251 # DragonFly does not have aout. When/if they implement a new
10252 # versioning mechanism, adjust this.
10253 if test -x /usr/bin/objformat; then
10254 objformat=`/usr/bin/objformat`
10255 else
10256 case $host_os in
10257 freebsd[123]*) objformat=aout ;;
10258 *) objformat=elf ;;
10259 esac
10260 fi
10261 version_type=freebsd-$objformat
10262 case $version_type in
10263 freebsd-elf*)
10264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10265 need_version=no
10266 need_lib_prefix=no
10267 ;;
10268 freebsd-*)
10269 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10270 need_version=yes
10271 ;;
10272 esac
10273 shlibpath_var=LD_LIBRARY_PATH
10274 case $host_os in
10275 freebsd2*)
10276 shlibpath_overrides_runpath=yes
10277 ;;
10278 freebsd3.[01]* | freebsdelf3.[01]*)
10279 shlibpath_overrides_runpath=yes
10280 hardcode_into_libs=yes
10281 ;;
10282 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10283 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10284 shlibpath_overrides_runpath=no
10285 hardcode_into_libs=yes
10286 ;;
10287 *) # from 4.6 on, and DragonFly
10288 shlibpath_overrides_runpath=yes
10289 hardcode_into_libs=yes
10290 ;;
10291 esac
10292 ;;
10293
10294 gnu*)
10295 version_type=linux
10296 need_lib_prefix=no
10297 need_version=no
10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10299 soname_spec='${libname}${release}${shared_ext}$major'
10300 shlibpath_var=LD_LIBRARY_PATH
10301 hardcode_into_libs=yes
10302 ;;
10303
10304 hpux9* | hpux10* | hpux11*)
10305 # Give a soname corresponding to the major version so that dld.sl refuses to
10306 # link against other versions.
10307 version_type=sunos
10308 need_lib_prefix=no
10309 need_version=no
10310 case $host_cpu in
10311 ia64*)
10312 shrext_cmds='.so'
10313 hardcode_into_libs=yes
10314 dynamic_linker="$host_os dld.so"
10315 shlibpath_var=LD_LIBRARY_PATH
10316 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10318 soname_spec='${libname}${release}${shared_ext}$major'
10319 if test "X$HPUX_IA64_MODE" = X32; then
10320 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10321 else
10322 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10323 fi
10324 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10325 ;;
10326 hppa*64*)
10327 shrext_cmds='.sl'
10328 hardcode_into_libs=yes
10329 dynamic_linker="$host_os dld.sl"
10330 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10331 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10333 soname_spec='${libname}${release}${shared_ext}$major'
10334 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10335 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10336 ;;
10337 *)
10338 shrext_cmds='.sl'
10339 dynamic_linker="$host_os dld.sl"
10340 shlibpath_var=SHLIB_PATH
10341 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10343 soname_spec='${libname}${release}${shared_ext}$major'
10344 ;;
10345 esac
10346 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10347 postinstall_cmds='chmod 555 $lib'
10348 ;;
10349
10350 interix[3-9]*)
10351 version_type=linux
10352 need_lib_prefix=no
10353 need_version=no
10354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10355 soname_spec='${libname}${release}${shared_ext}$major'
10356 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10357 shlibpath_var=LD_LIBRARY_PATH
10358 shlibpath_overrides_runpath=no
10359 hardcode_into_libs=yes
10360 ;;
10361
10362 irix5* | irix6* | nonstopux*)
10363 case $host_os in
10364 nonstopux*) version_type=nonstopux ;;
10365 *)
10366 if test "$lt_cv_prog_gnu_ld" = yes; then
10367 version_type=linux
10368 else
10369 version_type=irix
10370 fi ;;
10371 esac
10372 need_lib_prefix=no
10373 need_version=no
10374 soname_spec='${libname}${release}${shared_ext}$major'
10375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10376 case $host_os in
10377 irix5* | nonstopux*)
10378 libsuff= shlibsuff=
10379 ;;
10380 *)
10381 case $LD in # libtool.m4 will add one of these switches to LD
10382 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10383 libsuff= shlibsuff= libmagic=32-bit;;
10384 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10385 libsuff=32 shlibsuff=N32 libmagic=N32;;
10386 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10387 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10388 *) libsuff= shlibsuff= libmagic=never-match;;
10389 esac
10390 ;;
10391 esac
10392 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10393 shlibpath_overrides_runpath=no
10394 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10395 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10396 hardcode_into_libs=yes
10397 ;;
10398
10399 # No shared lib support for Linux oldld, aout, or coff.
10400 linux*oldld* | linux*aout* | linux*coff*)
10401 dynamic_linker=no
10402 ;;
10403
10404 # This must be Linux ELF.
10405 linux* | k*bsd*-gnu)
10406 version_type=linux
10407 need_lib_prefix=no
10408 need_version=no
10409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10410 soname_spec='${libname}${release}${shared_ext}$major'
10411 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10412 shlibpath_var=LD_LIBRARY_PATH
10413 shlibpath_overrides_runpath=no
10414 # Some binutils ld are patched to set DT_RUNPATH
10415 save_LDFLAGS=$LDFLAGS
10416 save_libdir=$libdir
10417 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10418 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10420 /* end confdefs.h. */
10421
10422 int
10423 main ()
10424 {
10425
10426 ;
10427 return 0;
10428 }
10429 _ACEOF
10430 if ac_fn_c_try_link "$LINENO"; then :
10431 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10432 shlibpath_overrides_runpath=yes
10433 fi
10434 fi
10435 rm -f core conftest.err conftest.$ac_objext \
10436 conftest$ac_exeext conftest.$ac_ext
10437 LDFLAGS=$save_LDFLAGS
10438 libdir=$save_libdir
10439
10440 # This implies no fast_install, which is unacceptable.
10441 # Some rework will be needed to allow for fast_install
10442 # before this can be enabled.
10443 hardcode_into_libs=yes
10444
10445 # Add ABI-specific directories to the system library path.
10446 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10447
10448 # Append ld.so.conf contents to the search path
10449 if test -f /etc/ld.so.conf; then
10450 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' ' '`
10451 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10452 fi
10453
10454 # We used to test for /lib/ld.so.1 and disable shared libraries on
10455 # powerpc, because MkLinux only supported shared libraries with the
10456 # GNU dynamic linker. Since this was broken with cross compilers,
10457 # most powerpc-linux boxes support dynamic linking these days and
10458 # people can always --disable-shared, the test was removed, and we
10459 # assume the GNU/Linux dynamic linker is in use.
10460 dynamic_linker='GNU/Linux ld.so'
10461 ;;
10462
10463 netbsd*)
10464 version_type=sunos
10465 need_lib_prefix=no
10466 need_version=no
10467 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10469 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10470 dynamic_linker='NetBSD (a.out) ld.so'
10471 else
10472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10473 soname_spec='${libname}${release}${shared_ext}$major'
10474 dynamic_linker='NetBSD ld.elf_so'
10475 fi
10476 shlibpath_var=LD_LIBRARY_PATH
10477 shlibpath_overrides_runpath=yes
10478 hardcode_into_libs=yes
10479 ;;
10480
10481 newsos6)
10482 version_type=linux
10483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10484 shlibpath_var=LD_LIBRARY_PATH
10485 shlibpath_overrides_runpath=yes
10486 ;;
10487
10488 *nto* | *qnx*)
10489 version_type=qnx
10490 need_lib_prefix=no
10491 need_version=no
10492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10493 soname_spec='${libname}${release}${shared_ext}$major'
10494 shlibpath_var=LD_LIBRARY_PATH
10495 shlibpath_overrides_runpath=no
10496 hardcode_into_libs=yes
10497 dynamic_linker='ldqnx.so'
10498 ;;
10499
10500 openbsd*)
10501 version_type=sunos
10502 sys_lib_dlsearch_path_spec="/usr/lib"
10503 need_lib_prefix=no
10504 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10505 case $host_os in
10506 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10507 *) need_version=no ;;
10508 esac
10509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10510 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10511 shlibpath_var=LD_LIBRARY_PATH
10512 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10513 case $host_os in
10514 openbsd2.[89] | openbsd2.[89].*)
10515 shlibpath_overrides_runpath=no
10516 ;;
10517 *)
10518 shlibpath_overrides_runpath=yes
10519 ;;
10520 esac
10521 else
10522 shlibpath_overrides_runpath=yes
10523 fi
10524 ;;
10525
10526 os2*)
10527 libname_spec='$name'
10528 shrext_cmds=".dll"
10529 need_lib_prefix=no
10530 library_names_spec='$libname${shared_ext} $libname.a'
10531 dynamic_linker='OS/2 ld.exe'
10532 shlibpath_var=LIBPATH
10533 ;;
10534
10535 osf3* | osf4* | osf5*)
10536 version_type=osf
10537 need_lib_prefix=no
10538 need_version=no
10539 soname_spec='${libname}${release}${shared_ext}$major'
10540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10541 shlibpath_var=LD_LIBRARY_PATH
10542 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10543 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10544 ;;
10545
10546 rdos*)
10547 dynamic_linker=no
10548 ;;
10549
10550 solaris*)
10551 version_type=linux
10552 need_lib_prefix=no
10553 need_version=no
10554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10555 soname_spec='${libname}${release}${shared_ext}$major'
10556 shlibpath_var=LD_LIBRARY_PATH
10557 shlibpath_overrides_runpath=yes
10558 hardcode_into_libs=yes
10559 # ldd complains unless libraries are executable
10560 postinstall_cmds='chmod +x $lib'
10561 ;;
10562
10563 sunos4*)
10564 version_type=sunos
10565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10566 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10567 shlibpath_var=LD_LIBRARY_PATH
10568 shlibpath_overrides_runpath=yes
10569 if test "$with_gnu_ld" = yes; then
10570 need_lib_prefix=no
10571 fi
10572 need_version=yes
10573 ;;
10574
10575 sysv4 | sysv4.3*)
10576 version_type=linux
10577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10578 soname_spec='${libname}${release}${shared_ext}$major'
10579 shlibpath_var=LD_LIBRARY_PATH
10580 case $host_vendor in
10581 sni)
10582 shlibpath_overrides_runpath=no
10583 need_lib_prefix=no
10584 runpath_var=LD_RUN_PATH
10585 ;;
10586 siemens)
10587 need_lib_prefix=no
10588 ;;
10589 motorola)
10590 need_lib_prefix=no
10591 need_version=no
10592 shlibpath_overrides_runpath=no
10593 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10594 ;;
10595 esac
10596 ;;
10597
10598 sysv4*MP*)
10599 if test -d /usr/nec ;then
10600 version_type=linux
10601 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10602 soname_spec='$libname${shared_ext}.$major'
10603 shlibpath_var=LD_LIBRARY_PATH
10604 fi
10605 ;;
10606
10607 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10608 version_type=freebsd-elf
10609 need_lib_prefix=no
10610 need_version=no
10611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10612 soname_spec='${libname}${release}${shared_ext}$major'
10613 shlibpath_var=LD_LIBRARY_PATH
10614 shlibpath_overrides_runpath=yes
10615 hardcode_into_libs=yes
10616 if test "$with_gnu_ld" = yes; then
10617 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10618 else
10619 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10620 case $host_os in
10621 sco3.2v5*)
10622 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10623 ;;
10624 esac
10625 fi
10626 sys_lib_dlsearch_path_spec='/usr/lib'
10627 ;;
10628
10629 tpf*)
10630 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10631 version_type=linux
10632 need_lib_prefix=no
10633 need_version=no
10634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10635 shlibpath_var=LD_LIBRARY_PATH
10636 shlibpath_overrides_runpath=no
10637 hardcode_into_libs=yes
10638 ;;
10639
10640 uts4*)
10641 version_type=linux
10642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10643 soname_spec='${libname}${release}${shared_ext}$major'
10644 shlibpath_var=LD_LIBRARY_PATH
10645 ;;
10646
10647 *)
10648 dynamic_linker=no
10649 ;;
10650 esac
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10652 $as_echo "$dynamic_linker" >&6; }
10653 test "$dynamic_linker" = no && can_build_shared=no
10654
10655 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10656 if test "$GCC" = yes; then
10657 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10658 fi
10659
10660 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10661 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10662 fi
10663 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10664 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10665 fi
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10754 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10755 hardcode_action=
10756 if test -n "$hardcode_libdir_flag_spec" ||
10757 test -n "$runpath_var" ||
10758 test "X$hardcode_automatic" = "Xyes" ; then
10759
10760 # We can hardcode non-existent directories.
10761 if test "$hardcode_direct" != no &&
10762 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10763 # have to relink, otherwise we might link with an installed library
10764 # when we should be linking with a yet-to-be-installed one
10765 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10766 test "$hardcode_minus_L" != no; then
10767 # Linking always hardcodes the temporary library directory.
10768 hardcode_action=relink
10769 else
10770 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10771 hardcode_action=immediate
10772 fi
10773 else
10774 # We cannot hardcode anything, or else we can only hardcode existing
10775 # directories.
10776 hardcode_action=unsupported
10777 fi
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10779 $as_echo "$hardcode_action" >&6; }
10780
10781 if test "$hardcode_action" = relink ||
10782 test "$inherit_rpath" = yes; then
10783 # Fast installation is not supported
10784 enable_fast_install=no
10785 elif test "$shlibpath_overrides_runpath" = yes ||
10786 test "$enable_shared" = no; then
10787 # Fast installation is not necessary
10788 enable_fast_install=needless
10789 fi
10790
10791
10792
10793
10794
10795
10796 if test "x$enable_dlopen" != xyes; then
10797 enable_dlopen=unknown
10798 enable_dlopen_self=unknown
10799 enable_dlopen_self_static=unknown
10800 else
10801 lt_cv_dlopen=no
10802 lt_cv_dlopen_libs=
10803
10804 case $host_os in
10805 beos*)
10806 lt_cv_dlopen="load_add_on"
10807 lt_cv_dlopen_libs=
10808 lt_cv_dlopen_self=yes
10809 ;;
10810
10811 mingw* | pw32* | cegcc*)
10812 lt_cv_dlopen="LoadLibrary"
10813 lt_cv_dlopen_libs=
10814 ;;
10815
10816 cygwin*)
10817 lt_cv_dlopen="dlopen"
10818 lt_cv_dlopen_libs=
10819 ;;
10820
10821 darwin*)
10822 # if libdl is installed we need to link against it
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10824 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10825 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10826 $as_echo_n "(cached) " >&6
10827 else
10828 ac_check_lib_save_LIBS=$LIBS
10829 LIBS="-ldl $LIBS"
10830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10831 /* end confdefs.h. */
10832
10833 /* Override any GCC internal prototype to avoid an error.
10834 Use char because int might match the return type of a GCC
10835 builtin and then its argument prototype would still apply. */
10836 #ifdef __cplusplus
10837 extern "C"
10838 #endif
10839 char dlopen ();
10840 int
10841 main ()
10842 {
10843 return dlopen ();
10844 ;
10845 return 0;
10846 }
10847 _ACEOF
10848 if ac_fn_c_try_link "$LINENO"; then :
10849 ac_cv_lib_dl_dlopen=yes
10850 else
10851 ac_cv_lib_dl_dlopen=no
10852 fi
10853 rm -f core conftest.err conftest.$ac_objext \
10854 conftest$ac_exeext conftest.$ac_ext
10855 LIBS=$ac_check_lib_save_LIBS
10856 fi
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10858 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10859 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10860 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10861 else
10862
10863 lt_cv_dlopen="dyld"
10864 lt_cv_dlopen_libs=
10865 lt_cv_dlopen_self=yes
10866
10867 fi
10868
10869 ;;
10870
10871 *)
10872 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10873 if test "x$ac_cv_func_shl_load" = x""yes; then :
10874 lt_cv_dlopen="shl_load"
10875 else
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10877 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10878 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10879 $as_echo_n "(cached) " >&6
10880 else
10881 ac_check_lib_save_LIBS=$LIBS
10882 LIBS="-ldld $LIBS"
10883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10884 /* end confdefs.h. */
10885
10886 /* Override any GCC internal prototype to avoid an error.
10887 Use char because int might match the return type of a GCC
10888 builtin and then its argument prototype would still apply. */
10889 #ifdef __cplusplus
10890 extern "C"
10891 #endif
10892 char shl_load ();
10893 int
10894 main ()
10895 {
10896 return shl_load ();
10897 ;
10898 return 0;
10899 }
10900 _ACEOF
10901 if ac_fn_c_try_link "$LINENO"; then :
10902 ac_cv_lib_dld_shl_load=yes
10903 else
10904 ac_cv_lib_dld_shl_load=no
10905 fi
10906 rm -f core conftest.err conftest.$ac_objext \
10907 conftest$ac_exeext conftest.$ac_ext
10908 LIBS=$ac_check_lib_save_LIBS
10909 fi
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10911 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10912 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10913 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10914 else
10915 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10916 if test "x$ac_cv_func_dlopen" = x""yes; then :
10917 lt_cv_dlopen="dlopen"
10918 else
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10920 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10921 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10922 $as_echo_n "(cached) " >&6
10923 else
10924 ac_check_lib_save_LIBS=$LIBS
10925 LIBS="-ldl $LIBS"
10926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10927 /* end confdefs.h. */
10928
10929 /* Override any GCC internal prototype to avoid an error.
10930 Use char because int might match the return type of a GCC
10931 builtin and then its argument prototype would still apply. */
10932 #ifdef __cplusplus
10933 extern "C"
10934 #endif
10935 char dlopen ();
10936 int
10937 main ()
10938 {
10939 return dlopen ();
10940 ;
10941 return 0;
10942 }
10943 _ACEOF
10944 if ac_fn_c_try_link "$LINENO"; then :
10945 ac_cv_lib_dl_dlopen=yes
10946 else
10947 ac_cv_lib_dl_dlopen=no
10948 fi
10949 rm -f core conftest.err conftest.$ac_objext \
10950 conftest$ac_exeext conftest.$ac_ext
10951 LIBS=$ac_check_lib_save_LIBS
10952 fi
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10954 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10955 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10956 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10957 else
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10959 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10960 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10961 $as_echo_n "(cached) " >&6
10962 else
10963 ac_check_lib_save_LIBS=$LIBS
10964 LIBS="-lsvld $LIBS"
10965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10966 /* end confdefs.h. */
10967
10968 /* Override any GCC internal prototype to avoid an error.
10969 Use char because int might match the return type of a GCC
10970 builtin and then its argument prototype would still apply. */
10971 #ifdef __cplusplus
10972 extern "C"
10973 #endif
10974 char dlopen ();
10975 int
10976 main ()
10977 {
10978 return dlopen ();
10979 ;
10980 return 0;
10981 }
10982 _ACEOF
10983 if ac_fn_c_try_link "$LINENO"; then :
10984 ac_cv_lib_svld_dlopen=yes
10985 else
10986 ac_cv_lib_svld_dlopen=no
10987 fi
10988 rm -f core conftest.err conftest.$ac_objext \
10989 conftest$ac_exeext conftest.$ac_ext
10990 LIBS=$ac_check_lib_save_LIBS
10991 fi
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10993 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10994 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10995 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10996 else
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10998 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10999 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11000 $as_echo_n "(cached) " >&6
11001 else
11002 ac_check_lib_save_LIBS=$LIBS
11003 LIBS="-ldld $LIBS"
11004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11005 /* end confdefs.h. */
11006
11007 /* Override any GCC internal prototype to avoid an error.
11008 Use char because int might match the return type of a GCC
11009 builtin and then its argument prototype would still apply. */
11010 #ifdef __cplusplus
11011 extern "C"
11012 #endif
11013 char dld_link ();
11014 int
11015 main ()
11016 {
11017 return dld_link ();
11018 ;
11019 return 0;
11020 }
11021 _ACEOF
11022 if ac_fn_c_try_link "$LINENO"; then :
11023 ac_cv_lib_dld_dld_link=yes
11024 else
11025 ac_cv_lib_dld_dld_link=no
11026 fi
11027 rm -f core conftest.err conftest.$ac_objext \
11028 conftest$ac_exeext conftest.$ac_ext
11029 LIBS=$ac_check_lib_save_LIBS
11030 fi
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11032 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11033 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11034 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11035 fi
11036
11037
11038 fi
11039
11040
11041 fi
11042
11043
11044 fi
11045
11046
11047 fi
11048
11049
11050 fi
11051
11052 ;;
11053 esac
11054
11055 if test "x$lt_cv_dlopen" != xno; then
11056 enable_dlopen=yes
11057 else
11058 enable_dlopen=no
11059 fi
11060
11061 case $lt_cv_dlopen in
11062 dlopen)
11063 save_CPPFLAGS="$CPPFLAGS"
11064 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11065
11066 save_LDFLAGS="$LDFLAGS"
11067 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11068
11069 save_LIBS="$LIBS"
11070 LIBS="$lt_cv_dlopen_libs $LIBS"
11071
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11073 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11074 if test "${lt_cv_dlopen_self+set}" = set; then :
11075 $as_echo_n "(cached) " >&6
11076 else
11077 if test "$cross_compiling" = yes; then :
11078 lt_cv_dlopen_self=cross
11079 else
11080 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11081 lt_status=$lt_dlunknown
11082 cat > conftest.$ac_ext <<_LT_EOF
11083 #line 11083 "configure"
11084 #include "confdefs.h"
11085
11086 #if HAVE_DLFCN_H
11087 #include <dlfcn.h>
11088 #endif
11089
11090 #include <stdio.h>
11091
11092 #ifdef RTLD_GLOBAL
11093 # define LT_DLGLOBAL RTLD_GLOBAL
11094 #else
11095 # ifdef DL_GLOBAL
11096 # define LT_DLGLOBAL DL_GLOBAL
11097 # else
11098 # define LT_DLGLOBAL 0
11099 # endif
11100 #endif
11101
11102 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11103 find out it does not work in some platform. */
11104 #ifndef LT_DLLAZY_OR_NOW
11105 # ifdef RTLD_LAZY
11106 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11107 # else
11108 # ifdef DL_LAZY
11109 # define LT_DLLAZY_OR_NOW DL_LAZY
11110 # else
11111 # ifdef RTLD_NOW
11112 # define LT_DLLAZY_OR_NOW RTLD_NOW
11113 # else
11114 # ifdef DL_NOW
11115 # define LT_DLLAZY_OR_NOW DL_NOW
11116 # else
11117 # define LT_DLLAZY_OR_NOW 0
11118 # endif
11119 # endif
11120 # endif
11121 # endif
11122 #endif
11123
11124 void fnord() { int i=42;}
11125 int main ()
11126 {
11127 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11128 int status = $lt_dlunknown;
11129
11130 if (self)
11131 {
11132 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11133 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11134 /* dlclose (self); */
11135 }
11136 else
11137 puts (dlerror ());
11138
11139 return status;
11140 }
11141 _LT_EOF
11142 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11143 (eval $ac_link) 2>&5
11144 ac_status=$?
11145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11146 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11147 (./conftest; exit; ) >&5 2>/dev/null
11148 lt_status=$?
11149 case x$lt_status in
11150 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11151 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11152 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11153 esac
11154 else :
11155 # compilation failed
11156 lt_cv_dlopen_self=no
11157 fi
11158 fi
11159 rm -fr conftest*
11160
11161
11162 fi
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11164 $as_echo "$lt_cv_dlopen_self" >&6; }
11165
11166 if test "x$lt_cv_dlopen_self" = xyes; then
11167 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11169 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11170 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11171 $as_echo_n "(cached) " >&6
11172 else
11173 if test "$cross_compiling" = yes; then :
11174 lt_cv_dlopen_self_static=cross
11175 else
11176 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11177 lt_status=$lt_dlunknown
11178 cat > conftest.$ac_ext <<_LT_EOF
11179 #line 11179 "configure"
11180 #include "confdefs.h"
11181
11182 #if HAVE_DLFCN_H
11183 #include <dlfcn.h>
11184 #endif
11185
11186 #include <stdio.h>
11187
11188 #ifdef RTLD_GLOBAL
11189 # define LT_DLGLOBAL RTLD_GLOBAL
11190 #else
11191 # ifdef DL_GLOBAL
11192 # define LT_DLGLOBAL DL_GLOBAL
11193 # else
11194 # define LT_DLGLOBAL 0
11195 # endif
11196 #endif
11197
11198 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11199 find out it does not work in some platform. */
11200 #ifndef LT_DLLAZY_OR_NOW
11201 # ifdef RTLD_LAZY
11202 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11203 # else
11204 # ifdef DL_LAZY
11205 # define LT_DLLAZY_OR_NOW DL_LAZY
11206 # else
11207 # ifdef RTLD_NOW
11208 # define LT_DLLAZY_OR_NOW RTLD_NOW
11209 # else
11210 # ifdef DL_NOW
11211 # define LT_DLLAZY_OR_NOW DL_NOW
11212 # else
11213 # define LT_DLLAZY_OR_NOW 0
11214 # endif
11215 # endif
11216 # endif
11217 # endif
11218 #endif
11219
11220 void fnord() { int i=42;}
11221 int main ()
11222 {
11223 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11224 int status = $lt_dlunknown;
11225
11226 if (self)
11227 {
11228 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11229 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11230 /* dlclose (self); */
11231 }
11232 else
11233 puts (dlerror ());
11234
11235 return status;
11236 }
11237 _LT_EOF
11238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11239 (eval $ac_link) 2>&5
11240 ac_status=$?
11241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11242 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11243 (./conftest; exit; ) >&5 2>/dev/null
11244 lt_status=$?
11245 case x$lt_status in
11246 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11247 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11248 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11249 esac
11250 else :
11251 # compilation failed
11252 lt_cv_dlopen_self_static=no
11253 fi
11254 fi
11255 rm -fr conftest*
11256
11257
11258 fi
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11260 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11261 fi
11262
11263 CPPFLAGS="$save_CPPFLAGS"
11264 LDFLAGS="$save_LDFLAGS"
11265 LIBS="$save_LIBS"
11266 ;;
11267 esac
11268
11269 case $lt_cv_dlopen_self in
11270 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11271 *) enable_dlopen_self=unknown ;;
11272 esac
11273
11274 case $lt_cv_dlopen_self_static in
11275 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11276 *) enable_dlopen_self_static=unknown ;;
11277 esac
11278 fi
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296 striplib=
11297 old_striplib=
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11299 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11300 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11301 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11302 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11304 $as_echo "yes" >&6; }
11305 else
11306 # FIXME - insert some real tests, host_os isn't really good enough
11307 case $host_os in
11308 darwin*)
11309 if test -n "$STRIP" ; then
11310 striplib="$STRIP -x"
11311 old_striplib="$STRIP -S"
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11313 $as_echo "yes" >&6; }
11314 else
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11316 $as_echo "no" >&6; }
11317 fi
11318 ;;
11319 *)
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11321 $as_echo "no" >&6; }
11322 ;;
11323 esac
11324 fi
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337 # Report which library types will actually be built
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11339 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11341 $as_echo "$can_build_shared" >&6; }
11342
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11344 $as_echo_n "checking whether to build shared libraries... " >&6; }
11345 test "$can_build_shared" = "no" && enable_shared=no
11346
11347 # On AIX, shared libraries and static libraries use the same namespace, and
11348 # are all built from PIC.
11349 case $host_os in
11350 aix3*)
11351 test "$enable_shared" = yes && enable_static=no
11352 if test -n "$RANLIB"; then
11353 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11354 postinstall_cmds='$RANLIB $lib'
11355 fi
11356 ;;
11357
11358 aix[4-9]*)
11359 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11360 test "$enable_shared" = yes && enable_static=no
11361 fi
11362 ;;
11363 esac
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11365 $as_echo "$enable_shared" >&6; }
11366
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11368 $as_echo_n "checking whether to build static libraries... " >&6; }
11369 # Make sure either enable_shared or enable_static is yes.
11370 test "$enable_shared" = yes || enable_static=yes
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11372 $as_echo "$enable_static" >&6; }
11373
11374
11375
11376
11377 fi
11378 ac_ext=c
11379 ac_cpp='$CPP $CPPFLAGS'
11380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11383
11384 CC="$lt_save_CC"
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398 ac_config_commands="$ac_config_commands libtool"
11399
11400
11401
11402
11403 # Only expand once:
11404
11405
11406
11407 # Checks for programs.
11408 if test "x$CC" != xcc; then
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11410 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11411 else
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11413 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11414 fi
11415 set dummy $CC; ac_cc=`$as_echo "$2" |
11416 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11417 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
11418 $as_echo_n "(cached) " >&6
11419 else
11420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11421 /* end confdefs.h. */
11422
11423 int
11424 main ()
11425 {
11426
11427 ;
11428 return 0;
11429 }
11430 _ACEOF
11431 # Make sure it works both with $CC and with simple cc.
11432 # We do the test twice because some compilers refuse to overwrite an
11433 # existing .o file with -o, though they will create one.
11434 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11435 rm -f conftest2.*
11436 if { { case "(($ac_try" in
11437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11438 *) ac_try_echo=$ac_try;;
11439 esac
11440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11441 $as_echo "$ac_try_echo"; } >&5
11442 (eval "$ac_try") 2>&5
11443 ac_status=$?
11444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11445 test $ac_status = 0; } &&
11446 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11448 *) ac_try_echo=$ac_try;;
11449 esac
11450 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11451 $as_echo "$ac_try_echo"; } >&5
11452 (eval "$ac_try") 2>&5
11453 ac_status=$?
11454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11455 test $ac_status = 0; };
11456 then
11457 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11458 if test "x$CC" != xcc; then
11459 # Test first that cc exists at all.
11460 if { ac_try='cc -c conftest.$ac_ext >&5'
11461 { { case "(($ac_try" in
11462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11463 *) ac_try_echo=$ac_try;;
11464 esac
11465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11466 $as_echo "$ac_try_echo"; } >&5
11467 (eval "$ac_try") 2>&5
11468 ac_status=$?
11469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11470 test $ac_status = 0; }; }; then
11471 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11472 rm -f conftest2.*
11473 if { { case "(($ac_try" in
11474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11475 *) ac_try_echo=$ac_try;;
11476 esac
11477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11478 $as_echo "$ac_try_echo"; } >&5
11479 (eval "$ac_try") 2>&5
11480 ac_status=$?
11481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11482 test $ac_status = 0; } &&
11483 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485 *) ac_try_echo=$ac_try;;
11486 esac
11487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11488 $as_echo "$ac_try_echo"; } >&5
11489 (eval "$ac_try") 2>&5
11490 ac_status=$?
11491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11492 test $ac_status = 0; };
11493 then
11494 # cc works too.
11495 :
11496 else
11497 # cc exists but doesn't like -o.
11498 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11499 fi
11500 fi
11501 fi
11502 else
11503 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11504 fi
11505 rm -f core conftest*
11506
11507 fi
11508 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11510 $as_echo "yes" >&6; }
11511 else
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11513 $as_echo "no" >&6; }
11514
11515 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11516
11517 fi
11518
11519 # FIXME: we rely on the cache variable name because
11520 # there is no other way.
11521 set dummy $CC
11522 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11523 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11524 if test "$am_t" != yes; then
11525 # Losing compiler, so override with the script.
11526 # FIXME: It is wrong to rewrite CC.
11527 # But if we don't then we get into trouble of one sort or another.
11528 # A longer-term fix would be to have automake use am__CC in this case,
11529 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11530 CC="$am_aux_dir/compile $CC"
11531 fi
11532
11533
11534
11535 if test "x$GCC" = "xyes"; then
11536 CPPFLAGS="$CPPFLAGS -Wall"
11537 fi
11538
11539
11540
11541 # Define a configure option for an alternate module directory
11542
11543 # Check whether --with-xorg-module-dir was given.
11544 if test "${with_xorg_module_dir+set}" = set; then :
11545 withval=$with_xorg_module_dir; moduledir="$withval"
11546 else
11547 moduledir="$libdir/xorg/modules"
11548 fi
11549
11550
11551 # Check whether --enable-dri was given.
11552 if test "${enable_dri+set}" = set; then :
11553 enableval=$enable_dri; DRI="$enableval"
11554 else
11555 DRI=auto
11556 fi
11557
11558
11559 # Check whether --enable-exa was given.
11560 if test "${enable_exa+set}" = set; then :
11561 enableval=$enable_exa; EXA="$enableval"
11562 else
11563 EXA=yes
11564 fi
11565
11566
11567 # Check whether --enable-kms was given.
11568 if test "${enable_kms+set}" = set; then :
11569 enableval=$enable_kms; DRM_MODE="$enableval"
11570 else
11571 DRM_MODE=yes
11572 fi
11573
11574
11575 # Store the list of server defined optional extensions in REQUIRED_MODULES
11576
11577
11578 SAVE_CFLAGS="$CFLAGS"
11579 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
11580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11581 /* end confdefs.h. */
11582
11583 #include "xorg-server.h"
11584 #if !defined RANDR
11585 #error RANDR not defined
11586 #endif
11587
11588 int
11589 main ()
11590 {
11591
11592 ;
11593 return 0;
11594 }
11595 _ACEOF
11596 if ac_fn_c_try_compile "$LINENO"; then :
11597 _EXT_CHECK=yes
11598 else
11599 _EXT_CHECK=no
11600 fi
11601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11602 CFLAGS="$SAVE_CFLAGS"
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
11604 $as_echo_n "checking if RANDR is defined... " >&6; }
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
11606 $as_echo "$_EXT_CHECK" >&6; }
11607 if test "$_EXT_CHECK" != no; then
11608 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
11609 fi
11610
11611
11612
11613 SAVE_CFLAGS="$CFLAGS"
11614 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
11615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11616 /* end confdefs.h. */
11617
11618 #include "xorg-server.h"
11619 #if !defined RENDER
11620 #error RENDER not defined
11621 #endif
11622
11623 int
11624 main ()
11625 {
11626
11627 ;
11628 return 0;
11629 }
11630 _ACEOF
11631 if ac_fn_c_try_compile "$LINENO"; then :
11632 _EXT_CHECK=yes
11633 else
11634 _EXT_CHECK=no
11635 fi
11636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11637 CFLAGS="$SAVE_CFLAGS"
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
11639 $as_echo_n "checking if RENDER is defined... " >&6; }
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
11641 $as_echo "$_EXT_CHECK" >&6; }
11642 if test "$_EXT_CHECK" != no; then
11643 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
11644 fi
11645
11646
11647
11648 SAVE_CFLAGS="$CFLAGS"
11649 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
11650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11651 /* end confdefs.h. */
11652
11653 #include "xorg-server.h"
11654 #if !defined XV
11655 #error XV not defined
11656 #endif
11657
11658 int
11659 main ()
11660 {
11661
11662 ;
11663 return 0;
11664 }
11665 _ACEOF
11666 if ac_fn_c_try_compile "$LINENO"; then :
11667 _EXT_CHECK=yes
11668 else
11669 _EXT_CHECK=no
11670 fi
11671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11672 CFLAGS="$SAVE_CFLAGS"
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
11674 $as_echo_n "checking if XV is defined... " >&6; }
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
11676 $as_echo "$_EXT_CHECK" >&6; }
11677 if test "$_EXT_CHECK" != no; then
11678 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
11679 fi
11680
11681
11682
11683 SAVE_CFLAGS="$CFLAGS"
11684 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
11685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11686 /* end confdefs.h. */
11687
11688 #include "xorg-server.h"
11689 #if !defined DPMSExtension
11690 #error DPMSExtension not defined
11691 #endif
11692
11693 int
11694 main ()
11695 {
11696
11697 ;
11698 return 0;
11699 }
11700 _ACEOF
11701 if ac_fn_c_try_compile "$LINENO"; then :
11702 _EXT_CHECK=yes
11703 else
11704 _EXT_CHECK=no
11705 fi
11706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11707 CFLAGS="$SAVE_CFLAGS"
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
11709 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
11711 $as_echo "$_EXT_CHECK" >&6; }
11712 if test "$_EXT_CHECK" != no; then
11713 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
11714 fi
11715
11716
11717 # Obtain compiler/linker options for the driver dependencies
11718
11719 pkg_failed=no
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
11721 $as_echo_n "checking for XORG... " >&6; }
11722
11723 if test -n "$XORG_CFLAGS"; then
11724 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
11725 elif test -n "$PKG_CONFIG"; then
11726 if test -n "$PKG_CONFIG" && \
11727 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.3 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
11728 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES") 2>&5
11729 ac_status=$?
11730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11731 test $ac_status = 0; }; then
11732 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
11733 else
11734 pkg_failed=yes
11735 fi
11736 else
11737 pkg_failed=untried
11738 fi
11739 if test -n "$XORG_LIBS"; then
11740 pkg_cv_XORG_LIBS="$XORG_LIBS"
11741 elif test -n "$PKG_CONFIG"; then
11742 if test -n "$PKG_CONFIG" && \
11743 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.3 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
11744 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES") 2>&5
11745 ac_status=$?
11746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11747 test $ac_status = 0; }; then
11748 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
11749 else
11750 pkg_failed=yes
11751 fi
11752 else
11753 pkg_failed=untried
11754 fi
11755
11756
11757
11758 if test $pkg_failed = yes; then
11759
11760 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11761 _pkg_short_errors_supported=yes
11762 else
11763 _pkg_short_errors_supported=no
11764 fi
11765 if test $_pkg_short_errors_supported = yes; then
11766 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>&1`
11767 else
11768 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>&1`
11769 fi
11770 # Put the nasty error message in config.log where it belongs
11771 echo "$XORG_PKG_ERRORS" >&5
11772
11773 as_fn_error "Package requirements (xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES) were not met:
11774
11775 $XORG_PKG_ERRORS
11776
11777 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11778 installed software in a non-standard prefix.
11779
11780 Alternatively, you may set the environment variables XORG_CFLAGS
11781 and XORG_LIBS to avoid the need to call pkg-config.
11782 See the pkg-config man page for more details.
11783 " "$LINENO" 5
11784 elif test $pkg_failed = untried; then
11785 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11787 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
11788 is in your PATH or set the PKG_CONFIG environment variable to the full
11789 path to pkg-config.
11790
11791 Alternatively, you may set the environment variables XORG_CFLAGS
11792 and XORG_LIBS to avoid the need to call pkg-config.
11793 See the pkg-config man page for more details.
11794
11795 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11796 See \`config.log' for more details." "$LINENO" 5; }
11797 else
11798 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
11799 XORG_LIBS=$pkg_cv_XORG_LIBS
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11801 $as_echo "yes" >&6; }
11802 :
11803 fi
11804
11805 pkg_failed=no
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
11807 $as_echo_n "checking for XEXT... " >&6; }
11808
11809 if test -n "$XEXT_CFLAGS"; then
11810 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
11811 elif test -n "$PKG_CONFIG"; then
11812 if test -n "$PKG_CONFIG" && \
11813 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
11814 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
11815 ac_status=$?
11816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11817 test $ac_status = 0; }; then
11818 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
11819 else
11820 pkg_failed=yes
11821 fi
11822 else
11823 pkg_failed=untried
11824 fi
11825 if test -n "$XEXT_LIBS"; then
11826 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
11827 elif test -n "$PKG_CONFIG"; then
11828 if test -n "$PKG_CONFIG" && \
11829 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
11830 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
11831 ac_status=$?
11832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11833 test $ac_status = 0; }; then
11834 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
11835 else
11836 pkg_failed=yes
11837 fi
11838 else
11839 pkg_failed=untried
11840 fi
11841
11842
11843
11844 if test $pkg_failed = yes; then
11845
11846 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11847 _pkg_short_errors_supported=yes
11848 else
11849 _pkg_short_errors_supported=no
11850 fi
11851 if test $_pkg_short_errors_supported = yes; then
11852 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xextproto >= 7.0.99.1" 2>&1`
11853 else
11854 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xextproto >= 7.0.99.1" 2>&1`
11855 fi
11856 # Put the nasty error message in config.log where it belongs
11857 echo "$XEXT_PKG_ERRORS" >&5
11858
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11860 $as_echo "no" >&6; }
11861 HAVE_XEXTPROTO_71="no"
11862 elif test $pkg_failed = untried; then
11863 HAVE_XEXTPROTO_71="no"
11864 else
11865 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
11866 XEXT_LIBS=$pkg_cv_XEXT_LIBS
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11868 $as_echo "yes" >&6; }
11869 HAVE_XEXTPROTO_71="yes";
11870 $as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
11871
11872 fi
11873 if test "$HAVE_XEXTPROTO_71" = "yes" ; then
11874 HAVE_XEXTPROTO_71_TRUE=
11875 HAVE_XEXTPROTO_71_FALSE='#'
11876 else
11877 HAVE_XEXTPROTO_71_TRUE='#'
11878 HAVE_XEXTPROTO_71_FALSE=
11879 fi
11880
11881
11882 # Checks for libraries.
11883
11884
11885 if test "$DRI" != no; then
11886
11887 pkg_failed=no
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5
11889 $as_echo_n "checking for DRI... " >&6; }
11890
11891 if test -n "$DRI_CFLAGS"; then
11892 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
11893 elif test -n "$PKG_CONFIG"; then
11894 if test -n "$PKG_CONFIG" && \
11895 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\""; } >&5
11896 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5
11897 ac_status=$?
11898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11899 test $ac_status = 0; }; then
11900 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.2 xf86driproto" 2>/dev/null`
11901 else
11902 pkg_failed=yes
11903 fi
11904 else
11905 pkg_failed=untried
11906 fi
11907 if test -n "$DRI_LIBS"; then
11908 pkg_cv_DRI_LIBS="$DRI_LIBS"
11909 elif test -n "$PKG_CONFIG"; then
11910 if test -n "$PKG_CONFIG" && \
11911 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\""; } >&5
11912 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5
11913 ac_status=$?
11914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11915 test $ac_status = 0; }; then
11916 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.2 xf86driproto" 2>/dev/null`
11917 else
11918 pkg_failed=yes
11919 fi
11920 else
11921 pkg_failed=untried
11922 fi
11923
11924
11925
11926 if test $pkg_failed = yes; then
11927
11928 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11929 _pkg_short_errors_supported=yes
11930 else
11931 _pkg_short_errors_supported=no
11932 fi
11933 if test $_pkg_short_errors_supported = yes; then
11934 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.2 xf86driproto" 2>&1`
11935 else
11936 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.2 xf86driproto" 2>&1`
11937 fi
11938 # Put the nasty error message in config.log where it belongs
11939 echo "$DRI_PKG_ERRORS" >&5
11940
11941 as_fn_error "Package requirements (libdrm >= 2.2 xf86driproto) were not met:
11942
11943 $DRI_PKG_ERRORS
11944
11945 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11946 installed software in a non-standard prefix.
11947
11948 Alternatively, you may set the environment variables DRI_CFLAGS
11949 and DRI_LIBS to avoid the need to call pkg-config.
11950 See the pkg-config man page for more details.
11951 " "$LINENO" 5
11952 elif test $pkg_failed = untried; then
11953 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11954 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11955 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
11956 is in your PATH or set the PKG_CONFIG environment variable to the full
11957 path to pkg-config.
11958
11959 Alternatively, you may set the environment variables DRI_CFLAGS
11960 and DRI_LIBS to avoid the need to call pkg-config.
11961 See the pkg-config man page for more details.
11962
11963 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11964 See \`config.log' for more details." "$LINENO" 5; }
11965 else
11966 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
11967 DRI_LIBS=$pkg_cv_DRI_LIBS
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11969 $as_echo "yes" >&6; }
11970 :
11971 fi
11972 save_CPPFLAGS="$CPPFLAGS"
11973 CPPFLAGS="$XORG_CFLAGS $DRI_CFLAGS"
11974 ac_fn_c_check_header_preproc "$LINENO" "dri.h" "ac_cv_header_dri_h"
11975 if test "x$ac_cv_header_dri_h" = x""yes; then :
11976 have_dri_h="yes"
11977 else
11978 have_dri_h="no"
11979 fi
11980
11981
11982 ac_fn_c_check_header_preproc "$LINENO" "sarea.h" "ac_cv_header_sarea_h"
11983 if test "x$ac_cv_header_sarea_h" = x""yes; then :
11984 have_sarea_h="yes"
11985 else
11986 have_sarea_h="no"
11987 fi
11988
11989
11990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11991 /* end confdefs.h. */
11992
11993 #include <xorg-server.h>
11994 #include <dristruct.h>
11995
11996 int
11997 main ()
11998 {
11999
12000 ;
12001 return 0;
12002 }
12003 _ACEOF
12004 if ac_fn_c_try_cpp "$LINENO"; then :
12005 have_dristruct_h="yes"
12006 else
12007 have_dristruct_h="no"
12008 fi
12009 rm -f conftest.err conftest.$ac_ext
12010 ac_fn_c_check_header_preproc "$LINENO" "damage.h" "ac_cv_header_damage_h"
12011 if test "x$ac_cv_header_damage_h" = x""yes; then :
12012 have_damage_h="yes"
12013 else
12014 have_damage_h="no"
12015 fi
12016
12017
12018 CPPFLAGS="$save_CPPFLAGS"
12019 fi
12020
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5
12022 $as_echo_n "checking whether to include DRI support... " >&6; }
12023 if test x$DRI = xauto; then
12024 if test "$have_dri_h" = yes -a \
12025 "$have_sarea_h" = yes -a \
12026 "$have_dristruct_h" = yes; then
12027 DRI="yes"
12028 else
12029 DRI="no"
12030 fi
12031 fi
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5
12033 $as_echo "$DRI" >&6; }
12034
12035 if test x$DRI = xyes; then
12036 DRI_TRUE=
12037 DRI_FALSE='#'
12038 else
12039 DRI_TRUE='#'
12040 DRI_FALSE=
12041 fi
12042
12043 if test "$DRI" = yes; then
12044
12045 $as_echo "#define XF86DRI 1" >>confdefs.h
12046
12047
12048 $as_echo "#define XF86DRI_DEVEL 1" >>confdefs.h
12049
12050 if test "$have_damage_h" = yes; then
12051
12052 $as_echo "#define DAMAGE 1" >>confdefs.h
12053
12054 fi
12055
12056 save_CFLAGS="$CFLAGS"
12057 CFLAGS="$XORG_CFLAGS $DRI_CFLAGS $CFLAGS"
12058 if test "$DRM_MODE" = yes; then
12059 ac_fn_c_check_header_compile "$LINENO" "xf86drmMode.h" "ac_cv_header_xf86drmMode_h" "#include <stdint.h>
12060 #include <stdlib.h>
12061 "
12062 if test "x$ac_cv_header_xf86drmMode_h" = x""yes; then :
12063 DRM_MODE=yes
12064 else
12065 DRM_MODE=no
12066 fi
12067
12068
12069 if test "x$DRM_MODE" = xyes; then
12070
12071 pkg_failed=no
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM_RADEON" >&5
12073 $as_echo_n "checking for LIBDRM_RADEON... " >&6; }
12074
12075 if test -n "$LIBDRM_RADEON_CFLAGS"; then
12076 pkg_cv_LIBDRM_RADEON_CFLAGS="$LIBDRM_RADEON_CFLAGS"
12077 elif test -n "$PKG_CONFIG"; then
12078 if test -n "$PKG_CONFIG" && \
12079 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6.2 libdrm_radeon\""; } >&5
12080 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6.2 libdrm_radeon") 2>&5
12081 ac_status=$?
12082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12083 test $ac_status = 0; }; then
12084 pkg_cv_LIBDRM_RADEON_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.6.2 libdrm_radeon" 2>/dev/null`
12085 else
12086 pkg_failed=yes
12087 fi
12088 else
12089 pkg_failed=untried
12090 fi
12091 if test -n "$LIBDRM_RADEON_LIBS"; then
12092 pkg_cv_LIBDRM_RADEON_LIBS="$LIBDRM_RADEON_LIBS"
12093 elif test -n "$PKG_CONFIG"; then
12094 if test -n "$PKG_CONFIG" && \
12095 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6.2 libdrm_radeon\""; } >&5
12096 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6.2 libdrm_radeon") 2>&5
12097 ac_status=$?
12098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12099 test $ac_status = 0; }; then
12100 pkg_cv_LIBDRM_RADEON_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.6.2 libdrm_radeon" 2>/dev/null`
12101 else
12102 pkg_failed=yes
12103 fi
12104 else
12105 pkg_failed=untried
12106 fi
12107
12108
12109
12110 if test $pkg_failed = yes; then
12111
12112 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12113 _pkg_short_errors_supported=yes
12114 else
12115 _pkg_short_errors_supported=no
12116 fi
12117 if test $_pkg_short_errors_supported = yes; then
12118 LIBDRM_RADEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.6.2 libdrm_radeon" 2>&1`
12119 else
12120 LIBDRM_RADEON_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.6.2 libdrm_radeon" 2>&1`
12121 fi
12122 # Put the nasty error message in config.log where it belongs
12123 echo "$LIBDRM_RADEON_PKG_ERRORS" >&5
12124
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12126 $as_echo "no" >&6; }
12127 LIBDRM_RADEON=no
12128 elif test $pkg_failed = untried; then
12129 LIBDRM_RADEON=no
12130 else
12131 LIBDRM_RADEON_CFLAGS=$pkg_cv_LIBDRM_RADEON_CFLAGS
12132 LIBDRM_RADEON_LIBS=$pkg_cv_LIBDRM_RADEON_LIBS
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12134 $as_echo "yes" >&6; }
12135 LIBDRM_RADEON=yes
12136 fi
12137
12138 if test "x$LIBDRM_RADEON" = xyes; then
12139
12140 $as_echo "#define XF86DRM_MODE 1" >>confdefs.h
12141
12142
12143 $as_echo "#define RADEON_DRI2 1" >>confdefs.h
12144
12145 else
12146 DRM_MODE=no
12147 fi
12148
12149 pkg_failed=no
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5
12151 $as_echo_n "checking for LIBUDEV... " >&6; }
12152
12153 if test -n "$LIBUDEV_CFLAGS"; then
12154 pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS"
12155 elif test -n "$PKG_CONFIG"; then
12156 if test -n "$PKG_CONFIG" && \
12157 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
12158 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
12159 ac_status=$?
12160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12161 test $ac_status = 0; }; then
12162 pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
12163 else
12164 pkg_failed=yes
12165 fi
12166 else
12167 pkg_failed=untried
12168 fi
12169 if test -n "$LIBUDEV_LIBS"; then
12170 pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS"
12171 elif test -n "$PKG_CONFIG"; then
12172 if test -n "$PKG_CONFIG" && \
12173 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
12174 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
12175 ac_status=$?
12176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12177 test $ac_status = 0; }; then
12178 pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
12179 else
12180 pkg_failed=yes
12181 fi
12182 else
12183 pkg_failed=untried
12184 fi
12185
12186
12187
12188 if test $pkg_failed = yes; then
12189
12190 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12191 _pkg_short_errors_supported=yes
12192 else
12193 _pkg_short_errors_supported=no
12194 fi
12195 if test $_pkg_short_errors_supported = yes; then
12196 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev" 2>&1`
12197 else
12198 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev" 2>&1`
12199 fi
12200 # Put the nasty error message in config.log where it belongs
12201 echo "$LIBUDEV_PKG_ERRORS" >&5
12202
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12204 $as_echo "no" >&6; }
12205 LIBUDEV=no
12206 elif test $pkg_failed = untried; then
12207 LIBUDEV=no
12208 else
12209 LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS
12210 LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12212 $as_echo "yes" >&6; }
12213 LIBUDEV=yes
12214 fi
12215 if test "x$LIBUDEV" = xyes; then
12216
12217 $as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h
12218
12219 fi
12220 fi
12221 fi
12222 CFLAGS="$save_CFLAGS"
12223 else
12224 DRM_MODE=no
12225 fi
12226 if test x$DRM_MODE = xyes; then
12227 DRM_MODE_TRUE=
12228 DRM_MODE_FALSE='#'
12229 else
12230 DRM_MODE_TRUE='#'
12231 DRM_MODE_FALSE=
12232 fi
12233
12234 if test x$LIBUDEV = xyes; then
12235 LIBUDEV_TRUE=
12236 LIBUDEV_FALSE='#'
12237 else
12238 LIBUDEV_TRUE='#'
12239 LIBUDEV_FALSE=
12240 fi
12241
12242
12243
12244 $as_echo "#define USE_XAA 1" >>confdefs.h
12245
12246
12247 # Properly handle EXA.
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable EXA support" >&5
12249 $as_echo_n "checking whether to enable EXA support... " >&6; }
12250 if test "x$EXA" = xyes; then
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12252 $as_echo "yes" >&6; }
12253
12254 SAVE_CPPFLAGS="$CPPFLAGS"
12255 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
12256 ac_fn_c_check_header_mongrel "$LINENO" "exa.h" "ac_cv_header_exa_h" "$ac_includes_default"
12257 if test "x$ac_cv_header_exa_h" = x""yes; then :
12258 have_exa_h="yes"
12259 else
12260 have_exa_h="no"
12261 fi
12262
12263
12264 CPPFLAGS="$SAVE_CPPFLAGS"
12265 else
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12267 $as_echo "no" >&6; }
12268 fi
12269
12270 SAVE_CPPFLAGS="$CPPFLAGS"
12271 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
12272 if test "x$have_exa_h" = xyes; then
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether EXA version is at least 2.0.0" >&5
12274 $as_echo_n "checking whether EXA version is at least 2.0.0... " >&6; }
12275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12276 /* end confdefs.h. */
12277
12278 #include "exa.h"
12279 #if EXA_VERSION_MAJOR < 2
12280 #error OLD EXA!
12281 #endif
12282
12283 int
12284 main ()
12285 {
12286
12287 ;
12288 return 0;
12289 }
12290 _ACEOF
12291 if ac_fn_c_try_cpp "$LINENO"; then :
12292 USE_EXA=yes
12293 else
12294 USE_EXA=no
12295 fi
12296 rm -f conftest.err conftest.$ac_ext
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_EXA" >&5
12298 $as_echo "$USE_EXA" >&6; }
12299
12300 if test "x$USE_EXA" = xyes; then
12301
12302 $as_echo "#define USE_EXA 1" >>confdefs.h
12303
12304 fi
12305 fi
12306
12307 ac_fn_c_check_decl "$LINENO" "xf86XVFillKeyHelperDrawable" "ac_cv_have_decl_xf86XVFillKeyHelperDrawable" "#include <xf86xv.h>
12308 "
12309 if test "x$ac_cv_have_decl_xf86XVFillKeyHelperDrawable" = x""yes; then :
12310
12311 $as_echo "#define HAVE_XV_DRAWABLE_HELPER 1" >>confdefs.h
12312
12313 fi
12314
12315
12316 ac_fn_c_check_decl "$LINENO" "xf86ModeBandwidth" "ac_cv_have_decl_xf86ModeBandwidth" "#include \"xorg-server.h\"
12317 #include \"xf86Modes.h\"
12318 "
12319 if test "x$ac_cv_have_decl_xf86ModeBandwidth" = x""yes; then :
12320
12321 $as_echo "#define HAVE_XF86MODEBANDWIDTH 1" >>confdefs.h
12322
12323 fi
12324
12325
12326 ac_fn_c_check_decl "$LINENO" "xf86_crtc_clip_video_helper" "ac_cv_have_decl_xf86_crtc_clip_video_helper" "#include <X11/Xmd.h>
12327 #include \"xorg-server.h\"
12328 #include \"xf86i2c.h\"
12329 #include \"xf86Crtc.h\"
12330 "
12331 if test "x$ac_cv_have_decl_xf86_crtc_clip_video_helper" = x""yes; then :
12332
12333 $as_echo "#define HAVE_XF86CRTCCLIPVIDEOHELPER 1" >>confdefs.h
12334
12335 fi
12336
12337
12338 ac_fn_c_check_decl "$LINENO" "xf86RotateFreeShadow" "ac_cv_have_decl_xf86RotateFreeShadow" "#include <xorg-server.h>
12339 #include <windowstr.h>
12340 #include <xf86Crtc.h>
12341 "
12342 if test "x$ac_cv_have_decl_xf86RotateFreeShadow" = x""yes; then :
12343
12344 $as_echo "#define HAVE_FREE_SHADOW 1" >>confdefs.h
12345
12346 fi
12347
12348
12349 ac_fn_c_check_decl "$LINENO" "pci_device_enable" "ac_cv_have_decl_pci_device_enable" "#include <pciaccess.h>
12350 "
12351 if test "x$ac_cv_have_decl_pci_device_enable" = x""yes; then :
12352
12353 $as_echo "#define HAVE_PCI_DEVICE_ENABLE 1" >>confdefs.h
12354
12355 fi
12356
12357
12358 ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
12359 "
12360 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then :
12361 XSERVER_LIBPCIACCESS=yes
12362 else
12363 XSERVER_LIBPCIACCESS=no
12364 fi
12365
12366
12367 for ac_header in list.h
12368 do :
12369 ac_fn_c_check_header_compile "$LINENO" "list.h" "ac_cv_header_list_h" "#include <X11/Xdefs.h>
12370 #include \"xorg-server.h\"
12371 "
12372 if test "x$ac_cv_header_list_h" = x""yes; then :
12373 cat >>confdefs.h <<_ACEOF
12374 #define HAVE_LIST_H 1
12375 _ACEOF
12376
12377 fi
12378
12379 done
12380
12381
12382 CPPFLAGS="$SAVE_CPPFLAGS"
12383
12384 if test "x$USE_EXA" = xyes; then
12385 USE_EXA_TRUE=
12386 USE_EXA_FALSE='#'
12387 else
12388 USE_EXA_TRUE='#'
12389 USE_EXA_FALSE=
12390 fi
12391
12392
12393 if test "x$LIBDRM_RADEON" = xyes; then
12394 XF86DRM_MODE_TRUE=
12395 XF86DRM_MODE_FALSE='#'
12396 else
12397 XF86DRM_MODE_TRUE='#'
12398 XF86DRM_MODE_FALSE=
12399 fi
12400
12401
12402 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
12403
12404 pkg_failed=no
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
12406 $as_echo_n "checking for PCIACCESS... " >&6; }
12407
12408 if test -n "$PCIACCESS_CFLAGS"; then
12409 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
12410 elif test -n "$PKG_CONFIG"; then
12411 if test -n "$PKG_CONFIG" && \
12412 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
12413 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
12414 ac_status=$?
12415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12416 test $ac_status = 0; }; then
12417 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
12418 else
12419 pkg_failed=yes
12420 fi
12421 else
12422 pkg_failed=untried
12423 fi
12424 if test -n "$PCIACCESS_LIBS"; then
12425 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
12426 elif test -n "$PKG_CONFIG"; then
12427 if test -n "$PKG_CONFIG" && \
12428 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
12429 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
12430 ac_status=$?
12431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12432 test $ac_status = 0; }; then
12433 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
12434 else
12435 pkg_failed=yes
12436 fi
12437 else
12438 pkg_failed=untried
12439 fi
12440
12441
12442
12443 if test $pkg_failed = yes; then
12444
12445 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12446 _pkg_short_errors_supported=yes
12447 else
12448 _pkg_short_errors_supported=no
12449 fi
12450 if test $_pkg_short_errors_supported = yes; then
12451 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
12452 else
12453 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
12454 fi
12455 # Put the nasty error message in config.log where it belongs
12456 echo "$PCIACCESS_PKG_ERRORS" >&5
12457
12458 as_fn_error "Package requirements (pciaccess >= 0.8.0) were not met:
12459
12460 $PCIACCESS_PKG_ERRORS
12461
12462 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12463 installed software in a non-standard prefix.
12464
12465 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12466 and PCIACCESS_LIBS to avoid the need to call pkg-config.
12467 See the pkg-config man page for more details.
12468 " "$LINENO" 5
12469 elif test $pkg_failed = untried; then
12470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12472 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
12473 is in your PATH or set the PKG_CONFIG environment variable to the full
12474 path to pkg-config.
12475
12476 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12477 and PCIACCESS_LIBS to avoid the need to call pkg-config.
12478 See the pkg-config man page for more details.
12479
12480 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12481 See \`config.log' for more details." "$LINENO" 5; }
12482 else
12483 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
12484 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12486 $as_echo "yes" >&6; }
12487 :
12488 fi
12489 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
12490 fi
12491 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
12492 XSERVER_LIBPCIACCESS_TRUE=
12493 XSERVER_LIBPCIACCESS_FALSE='#'
12494 else
12495 XSERVER_LIBPCIACCESS_TRUE='#'
12496 XSERVER_LIBPCIACCESS_FALSE=
12497 fi
12498
12499
12500 # Checks for headers/macros for byte swapping
12501 # Known variants:
12502 # <byteswap.h> bswap_16, bswap_32, bswap_64 (glibc)
12503 # <sys/endian.h> __swap16, __swap32, __swap64 (OpenBSD)
12504 # <sys/endian.h> bswap16, bswap32, bswap64 (other BSD's)
12505 # and a fallback to local macros if none of the above are found
12506
12507 # if <byteswap.h> is found, assume it's the correct version
12508 for ac_header in byteswap.h
12509 do :
12510 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
12511 if test "x$ac_cv_header_byteswap_h" = x""yes; then :
12512 cat >>confdefs.h <<_ACEOF
12513 #define HAVE_BYTESWAP_H 1
12514 _ACEOF
12515
12516 fi
12517
12518 done
12519
12520
12521 # if <sys/endian.h> is found, have to check which version
12522 ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
12523 if test "x$ac_cv_header_sys_endian_h" = x""yes; then :
12524 HAVE_SYS_ENDIAN_H="yes"
12525 else
12526 HAVE_SYS_ENDIAN_H="no"
12527 fi
12528
12529
12530
12531 if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
12533 $as_echo_n "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
12534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12535 /* end confdefs.h. */
12536
12537 #include <sys/types.h>
12538 #include <sys/endian.h>
12539
12540 int
12541 main ()
12542 {
12543
12544 int a = 1, b;
12545 b = __swap16(a);
12546
12547 ;
12548 return 0;
12549 }
12550
12551 _ACEOF
12552 if ac_fn_c_try_link "$LINENO"; then :
12553 SYS_ENDIAN__SWAP='yes'
12554 else
12555 SYS_ENDIAN__SWAP='no'
12556 fi
12557 rm -f core conftest.err conftest.$ac_objext \
12558 conftest$ac_exeext conftest.$ac_ext
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN__SWAP" >&5
12560 $as_echo "$SYS_ENDIAN__SWAP" >&6; }
12561
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
12563 $as_echo_n "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
12564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12565 /* end confdefs.h. */
12566
12567 #include <sys/types.h>
12568 #include <sys/endian.h>
12569
12570 int
12571 main ()
12572 {
12573
12574 int a = 1, b;
12575 b = bswap16(a);
12576
12577 ;
12578 return 0;
12579 }
12580
12581 _ACEOF
12582 if ac_fn_c_try_link "$LINENO"; then :
12583 SYS_ENDIAN_BSWAP='yes'
12584 else
12585 SYS_ENDIAN_BSWAP='no'
12586 fi
12587 rm -f core conftest.err conftest.$ac_objext \
12588 conftest$ac_exeext conftest.$ac_ext
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN_BSWAP" >&5
12590 $as_echo "$SYS_ENDIAN_BSWAP" >&6; }
12591
12592 if test "$SYS_ENDIAN_BSWAP" = "yes" ; then
12593 USE_SYS_ENDIAN_H=yes
12594 BSWAP=bswap
12595 else
12596 if test "$SYS_ENDIAN__SWAP" = "yes" ; then
12597 USE_SYS_ENDIAN_H=yes
12598 BSWAP=__swap
12599 else
12600 USE_SYS_ENDIAN_H=no
12601 fi
12602 fi
12603
12604 if test "$USE_SYS_ENDIAN_H" = "yes" ; then
12605
12606 $as_echo "#define USE_SYS_ENDIAN_H 1" >>confdefs.h
12607
12608
12609 cat >>confdefs.h <<_ACEOF
12610 #define bswap_16 ${BSWAP}16
12611 _ACEOF
12612
12613
12614 cat >>confdefs.h <<_ACEOF
12615 #define bswap_32 ${BSWAP}32
12616 _ACEOF
12617
12618
12619 cat >>confdefs.h <<_ACEOF
12620 #define bswap_64 ${BSWAP}64
12621 _ACEOF
12622
12623 fi
12624 fi
12625
12626 case $host_os in
12627 *linux*)
12628
12629 $as_echo "#define FGL_LINUX 1" >>confdefs.h
12630 ;;
12631 esac
12632
12633
12634
12635 DRIVER_NAME=ati
12636
12637
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: The atimisc sub-driver has been split out to xf86-video-mach64:
12639 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-mach64
12640 Please install that driver as well for mach64-based cards.
12641 " >&5
12642 $as_echo "$as_me: The atimisc sub-driver has been split out to xf86-video-mach64:
12643 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-mach64
12644 Please install that driver as well for mach64-based cards.
12645 " >&6;}
12646
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: The r128 sub-driver has been split out to xf86-video-r128:
12648 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-r128
12649 Please install that driver as well for rage128-based cards.
12650 " >&5
12651 $as_echo "$as_me: The r128 sub-driver has been split out to xf86-video-r128:
12652 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-r128
12653 Please install that driver as well for rage128-based cards.
12654 " >&6;}
12655
12656 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
12657
12658 cat >confcache <<\_ACEOF
12659 # This file is a shell script that caches the results of configure
12660 # tests run on this system so they can be shared between configure
12661 # scripts and configure runs, see configure's option --config-cache.
12662 # It is not useful on other systems. If it contains results you don't
12663 # want to keep, you may remove or edit it.
12664 #
12665 # config.status only pays attention to the cache file if you give it
12666 # the --recheck option to rerun configure.
12667 #
12668 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12669 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12670 # following values.
12671
12672 _ACEOF
12673
12674 # The following way of writing the cache mishandles newlines in values,
12675 # but we know of no workaround that is simple, portable, and efficient.
12676 # So, we kill variables containing newlines.
12677 # Ultrix sh set writes to stderr and can't be redirected directly,
12678 # and sets the high bit in the cache file unless we assign to the vars.
12679 (
12680 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12681 eval ac_val=\$$ac_var
12682 case $ac_val in #(
12683 *${as_nl}*)
12684 case $ac_var in #(
12685 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12686 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12687 esac
12688 case $ac_var in #(
12689 _ | IFS | as_nl) ;; #(
12690 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12691 *) { eval $ac_var=; unset $ac_var;} ;;
12692 esac ;;
12693 esac
12694 done
12695
12696 (set) 2>&1 |
12697 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12698 *${as_nl}ac_space=\ *)
12699 # `set' does not quote correctly, so add quotes: double-quote
12700 # substitution turns \\\\ into \\, and sed turns \\ into \.
12701 sed -n \
12702 "s/'/'\\\\''/g;
12703 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12704 ;; #(
12705 *)
12706 # `set' quotes correctly as required by POSIX, so do not add quotes.
12707 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12708 ;;
12709 esac |
12710 sort
12711 ) |
12712 sed '
12713 /^ac_cv_env_/b end
12714 t clear
12715 :clear
12716 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12717 t end
12718 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12719 :end' >>confcache
12720 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12721 if test -w "$cache_file"; then
12722 test "x$cache_file" != "x/dev/null" &&
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12724 $as_echo "$as_me: updating cache $cache_file" >&6;}
12725 cat confcache >$cache_file
12726 else
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12728 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12729 fi
12730 fi
12731 rm -f confcache
12732
12733 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12734 # Let make expand exec_prefix.
12735 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12736
12737 DEFS=-DHAVE_CONFIG_H
12738
12739 ac_libobjs=
12740 ac_ltlibobjs=
12741 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12742 # 1. Remove the extension, and $U if already installed.
12743 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12744 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12745 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12746 # will be set to the directory where LIBOBJS objects are built.
12747 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12748 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12749 done
12750 LIBOBJS=$ac_libobjs
12751
12752 LTLIBOBJS=$ac_ltlibobjs
12753
12754
12755 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12756 as_fn_error "conditional \"AMDEP\" was never defined.
12757 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12758 fi
12759 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12760 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12761 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12762 fi
12763 if test -n "$EXEEXT"; then
12764 am__EXEEXT_TRUE=
12765 am__EXEEXT_FALSE='#'
12766 else
12767 am__EXEEXT_TRUE='#'
12768 am__EXEEXT_FALSE=
12769 fi
12770
12771 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12772 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12774 fi
12775 if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
12776 as_fn_error "conditional \"HAVE_XEXTPROTO_71\" was never defined.
12777 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12778 fi
12779 if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
12780 as_fn_error "conditional \"DRI\" was never defined.
12781 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12782 fi
12783 if test -z "${DRM_MODE_TRUE}" && test -z "${DRM_MODE_FALSE}"; then
12784 as_fn_error "conditional \"DRM_MODE\" was never defined.
12785 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12786 fi
12787 if test -z "${LIBUDEV_TRUE}" && test -z "${LIBUDEV_FALSE}"; then
12788 as_fn_error "conditional \"LIBUDEV\" was never defined.
12789 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12790 fi
12791 if test -z "${USE_EXA_TRUE}" && test -z "${USE_EXA_FALSE}"; then
12792 as_fn_error "conditional \"USE_EXA\" was never defined.
12793 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12794 fi
12795 if test -z "${XF86DRM_MODE_TRUE}" && test -z "${XF86DRM_MODE_FALSE}"; then
12796 as_fn_error "conditional \"XF86DRM_MODE\" was never defined.
12797 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12798 fi
12799 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
12800 as_fn_error "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
12801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12802 fi
12803
12804 : ${CONFIG_STATUS=./config.status}
12805 ac_write_fail=0
12806 ac_clean_files_save=$ac_clean_files
12807 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12809 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12810 as_write_fail=0
12811 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12812 #! $SHELL
12813 # Generated by $as_me.
12814 # Run this file to recreate the current configuration.
12815 # Compiler output produced by configure, useful for debugging
12816 # configure, is in config.log if it exists.
12817
12818 debug=false
12819 ac_cs_recheck=false
12820 ac_cs_silent=false
12821
12822 SHELL=\${CONFIG_SHELL-$SHELL}
12823 export SHELL
12824 _ASEOF
12825 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12826 ## -------------------- ##
12827 ## M4sh Initialization. ##
12828 ## -------------------- ##
12829
12830 # Be more Bourne compatible
12831 DUALCASE=1; export DUALCASE # for MKS sh
12832 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12833 emulate sh
12834 NULLCMD=:
12835 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12836 # is contrary to our usage. Disable this feature.
12837 alias -g '${1+"$@"}'='"$@"'
12838 setopt NO_GLOB_SUBST
12839 else
12840 case `(set -o) 2>/dev/null` in #(
12841 *posix*) :
12842 set -o posix ;; #(
12843 *) :
12844 ;;
12845 esac
12846 fi
12847
12848
12849 as_nl='
12850 '
12851 export as_nl
12852 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12853 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12854 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12855 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12856 # Prefer a ksh shell builtin over an external printf program on Solaris,
12857 # but without wasting forks for bash or zsh.
12858 if test -z "$BASH_VERSION$ZSH_VERSION" \
12859 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12860 as_echo='print -r --'
12861 as_echo_n='print -rn --'
12862 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12863 as_echo='printf %s\n'
12864 as_echo_n='printf %s'
12865 else
12866 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12867 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12868 as_echo_n='/usr/ucb/echo -n'
12869 else
12870 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12871 as_echo_n_body='eval
12872 arg=$1;
12873 case $arg in #(
12874 *"$as_nl"*)
12875 expr "X$arg" : "X\\(.*\\)$as_nl";
12876 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12877 esac;
12878 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12879 '
12880 export as_echo_n_body
12881 as_echo_n='sh -c $as_echo_n_body as_echo'
12882 fi
12883 export as_echo_body
12884 as_echo='sh -c $as_echo_body as_echo'
12885 fi
12886
12887 # The user is always right.
12888 if test "${PATH_SEPARATOR+set}" != set; then
12889 PATH_SEPARATOR=:
12890 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12891 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12892 PATH_SEPARATOR=';'
12893 }
12894 fi
12895
12896
12897 # IFS
12898 # We need space, tab and new line, in precisely that order. Quoting is
12899 # there to prevent editors from complaining about space-tab.
12900 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12901 # splitting by setting IFS to empty value.)
12902 IFS=" "" $as_nl"
12903
12904 # Find who we are. Look in the path if we contain no directory separator.
12905 case $0 in #((
12906 *[\\/]* ) as_myself=$0 ;;
12907 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12908 for as_dir in $PATH
12909 do
12910 IFS=$as_save_IFS
12911 test -z "$as_dir" && as_dir=.
12912 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12913 done
12914 IFS=$as_save_IFS
12915
12916 ;;
12917 esac
12918 # We did not find ourselves, most probably we were run as `sh COMMAND'
12919 # in which case we are not to be found in the path.
12920 if test "x$as_myself" = x; then
12921 as_myself=$0
12922 fi
12923 if test ! -f "$as_myself"; then
12924 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12925 exit 1
12926 fi
12927
12928 # Unset variables that we do not need and which cause bugs (e.g. in
12929 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12930 # suppresses any "Segmentation fault" message there. '((' could
12931 # trigger a bug in pdksh 5.2.14.
12932 for as_var in BASH_ENV ENV MAIL MAILPATH
12933 do eval test x\${$as_var+set} = xset \
12934 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12935 done
12936 PS1='$ '
12937 PS2='> '
12938 PS4='+ '
12939
12940 # NLS nuisances.
12941 LC_ALL=C
12942 export LC_ALL
12943 LANGUAGE=C
12944 export LANGUAGE
12945
12946 # CDPATH.
12947 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12948
12949
12950 # as_fn_error ERROR [LINENO LOG_FD]
12951 # ---------------------------------
12952 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12953 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12954 # script with status $?, using 1 if that was 0.
12955 as_fn_error ()
12956 {
12957 as_status=$?; test $as_status -eq 0 && as_status=1
12958 if test "$3"; then
12959 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12960 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12961 fi
12962 $as_echo "$as_me: error: $1" >&2
12963 as_fn_exit $as_status
12964 } # as_fn_error
12965
12966
12967 # as_fn_set_status STATUS
12968 # -----------------------
12969 # Set $? to STATUS, without forking.
12970 as_fn_set_status ()
12971 {
12972 return $1
12973 } # as_fn_set_status
12974
12975 # as_fn_exit STATUS
12976 # -----------------
12977 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12978 as_fn_exit ()
12979 {
12980 set +e
12981 as_fn_set_status $1
12982 exit $1
12983 } # as_fn_exit
12984
12985 # as_fn_unset VAR
12986 # ---------------
12987 # Portably unset VAR.
12988 as_fn_unset ()
12989 {
12990 { eval $1=; unset $1;}
12991 }
12992 as_unset=as_fn_unset
12993 # as_fn_append VAR VALUE
12994 # ----------------------
12995 # Append the text in VALUE to the end of the definition contained in VAR. Take
12996 # advantage of any shell optimizations that allow amortized linear growth over
12997 # repeated appends, instead of the typical quadratic growth present in naive
12998 # implementations.
12999 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13000 eval 'as_fn_append ()
13001 {
13002 eval $1+=\$2
13003 }'
13004 else
13005 as_fn_append ()
13006 {
13007 eval $1=\$$1\$2
13008 }
13009 fi # as_fn_append
13010
13011 # as_fn_arith ARG...
13012 # ------------------
13013 # Perform arithmetic evaluation on the ARGs, and store the result in the
13014 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13015 # must be portable across $(()) and expr.
13016 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13017 eval 'as_fn_arith ()
13018 {
13019 as_val=$(( $* ))
13020 }'
13021 else
13022 as_fn_arith ()
13023 {
13024 as_val=`expr "$@" || test $? -eq 1`
13025 }
13026 fi # as_fn_arith
13027
13028
13029 if expr a : '\(a\)' >/dev/null 2>&1 &&
13030 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13031 as_expr=expr
13032 else
13033 as_expr=false
13034 fi
13035
13036 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13037 as_basename=basename
13038 else
13039 as_basename=false
13040 fi
13041
13042 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13043 as_dirname=dirname
13044 else
13045 as_dirname=false
13046 fi
13047
13048 as_me=`$as_basename -- "$0" ||
13049 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13050 X"$0" : 'X\(//\)$' \| \
13051 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13052 $as_echo X/"$0" |
13053 sed '/^.*\/\([^/][^/]*\)\/*$/{
13054 s//\1/
13055 q
13056 }
13057 /^X\/\(\/\/\)$/{
13058 s//\1/
13059 q
13060 }
13061 /^X\/\(\/\).*/{
13062 s//\1/
13063 q
13064 }
13065 s/.*/./; q'`
13066
13067 # Avoid depending upon Character Ranges.
13068 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13069 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13070 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13071 as_cr_digits='0123456789'
13072 as_cr_alnum=$as_cr_Letters$as_cr_digits
13073
13074 ECHO_C= ECHO_N= ECHO_T=
13075 case `echo -n x` in #(((((
13076 -n*)
13077 case `echo 'xy\c'` in
13078 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13079 xy) ECHO_C='\c';;
13080 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13081 ECHO_T=' ';;
13082 esac;;
13083 *)
13084 ECHO_N='-n';;
13085 esac
13086
13087 rm -f conf$$ conf$$.exe conf$$.file
13088 if test -d conf$$.dir; then
13089 rm -f conf$$.dir/conf$$.file
13090 else
13091 rm -f conf$$.dir
13092 mkdir conf$$.dir 2>/dev/null
13093 fi
13094 if (echo >conf$$.file) 2>/dev/null; then
13095 if ln -s conf$$.file conf$$ 2>/dev/null; then
13096 as_ln_s='ln -s'
13097 # ... but there are two gotchas:
13098 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13099 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13100 # In both cases, we have to default to `cp -p'.
13101 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13102 as_ln_s='cp -p'
13103 elif ln conf$$.file conf$$ 2>/dev/null; then
13104 as_ln_s=ln
13105 else
13106 as_ln_s='cp -p'
13107 fi
13108 else
13109 as_ln_s='cp -p'
13110 fi
13111 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13112 rmdir conf$$.dir 2>/dev/null
13113
13114
13115 # as_fn_mkdir_p
13116 # -------------
13117 # Create "$as_dir" as a directory, including parents if necessary.
13118 as_fn_mkdir_p ()
13119 {
13120
13121 case $as_dir in #(
13122 -*) as_dir=./$as_dir;;
13123 esac
13124 test -d "$as_dir" || eval $as_mkdir_p || {
13125 as_dirs=
13126 while :; do
13127 case $as_dir in #(
13128 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13129 *) as_qdir=$as_dir;;
13130 esac
13131 as_dirs="'$as_qdir' $as_dirs"
13132 as_dir=`$as_dirname -- "$as_dir" ||
13133 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13134 X"$as_dir" : 'X\(//\)[^/]' \| \
13135 X"$as_dir" : 'X\(//\)$' \| \
13136 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13137 $as_echo X"$as_dir" |
13138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13139 s//\1/
13140 q
13141 }
13142 /^X\(\/\/\)[^/].*/{
13143 s//\1/
13144 q
13145 }
13146 /^X\(\/\/\)$/{
13147 s//\1/
13148 q
13149 }
13150 /^X\(\/\).*/{
13151 s//\1/
13152 q
13153 }
13154 s/.*/./; q'`
13155 test -d "$as_dir" && break
13156 done
13157 test -z "$as_dirs" || eval "mkdir $as_dirs"
13158 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13159
13160
13161 } # as_fn_mkdir_p
13162 if mkdir -p . 2>/dev/null; then
13163 as_mkdir_p='mkdir -p "$as_dir"'
13164 else
13165 test -d ./-p && rmdir ./-p
13166 as_mkdir_p=false
13167 fi
13168
13169 if test -x / >/dev/null 2>&1; then
13170 as_test_x='test -x'
13171 else
13172 if ls -dL / >/dev/null 2>&1; then
13173 as_ls_L_option=L
13174 else
13175 as_ls_L_option=
13176 fi
13177 as_test_x='
13178 eval sh -c '\''
13179 if test -d "$1"; then
13180 test -d "$1/.";
13181 else
13182 case $1 in #(
13183 -*)set "./$1";;
13184 esac;
13185 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13186 ???[sx]*):;;*)false;;esac;fi
13187 '\'' sh
13188 '
13189 fi
13190 as_executable_p=$as_test_x
13191
13192 # Sed expression to map a string onto a valid CPP name.
13193 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13194
13195 # Sed expression to map a string onto a valid variable name.
13196 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13197
13198
13199 exec 6>&1
13200 ## ----------------------------------- ##
13201 ## Main body of $CONFIG_STATUS script. ##
13202 ## ----------------------------------- ##
13203 _ASEOF
13204 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13205
13206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13207 # Save the log message, to keep $0 and so on meaningful, and to
13208 # report actual input values of CONFIG_FILES etc. instead of their
13209 # values after options handling.
13210 ac_log="
13211 This file was extended by xf86-video-ati $as_me 6.14.1, which was
13212 generated by GNU Autoconf 2.65. Invocation command line was
13213
13214 CONFIG_FILES = $CONFIG_FILES
13215 CONFIG_HEADERS = $CONFIG_HEADERS
13216 CONFIG_LINKS = $CONFIG_LINKS
13217 CONFIG_COMMANDS = $CONFIG_COMMANDS
13218 $ $0 $@
13219
13220 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13221 "
13222
13223 _ACEOF
13224
13225 case $ac_config_files in *"
13226 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13227 esac
13228
13229 case $ac_config_headers in *"
13230 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13231 esac
13232
13233
13234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13235 # Files that config.status was made for.
13236 config_files="$ac_config_files"
13237 config_headers="$ac_config_headers"
13238 config_commands="$ac_config_commands"
13239
13240 _ACEOF
13241
13242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13243 ac_cs_usage="\
13244 \`$as_me' instantiates files and other configuration actions
13245 from templates according to the current configuration. Unless the files
13246 and actions are specified as TAGs, all are instantiated by default.
13247
13248 Usage: $0 [OPTION]... [TAG]...
13249
13250 -h, --help print this help, then exit
13251 -V, --version print version number and configuration settings, then exit
13252 --config print configuration, then exit
13253 -q, --quiet, --silent
13254 do not print progress messages
13255 -d, --debug don't remove temporary files
13256 --recheck update $as_me by reconfiguring in the same conditions
13257 --file=FILE[:TEMPLATE]
13258 instantiate the configuration file FILE
13259 --header=FILE[:TEMPLATE]
13260 instantiate the configuration header FILE
13261
13262 Configuration files:
13263 $config_files
13264
13265 Configuration headers:
13266 $config_headers
13267
13268 Configuration commands:
13269 $config_commands
13270
13271 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
13272
13273 _ACEOF
13274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13275 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13276 ac_cs_version="\\
13277 xf86-video-ati config.status 6.14.1
13278 configured by $0, generated by GNU Autoconf 2.65,
13279 with options \\"\$ac_cs_config\\"
13280
13281 Copyright (C) 2009 Free Software Foundation, Inc.
13282 This config.status script is free software; the Free Software Foundation
13283 gives unlimited permission to copy, distribute and modify it."
13284
13285 ac_pwd='$ac_pwd'
13286 srcdir='$srcdir'
13287 INSTALL='$INSTALL'
13288 MKDIR_P='$MKDIR_P'
13289 AWK='$AWK'
13290 test -n "\$AWK" || AWK=awk
13291 _ACEOF
13292
13293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13294 # The default lists apply if the user does not specify any file.
13295 ac_need_defaults=:
13296 while test $# != 0
13297 do
13298 case $1 in
13299 --*=*)
13300 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13301 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13302 ac_shift=:
13303 ;;
13304 *)
13305 ac_option=$1
13306 ac_optarg=$2
13307 ac_shift=shift
13308 ;;
13309 esac
13310
13311 case $ac_option in
13312 # Handling of the options.
13313 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13314 ac_cs_recheck=: ;;
13315 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13316 $as_echo "$ac_cs_version"; exit ;;
13317 --config | --confi | --conf | --con | --co | --c )
13318 $as_echo "$ac_cs_config"; exit ;;
13319 --debug | --debu | --deb | --de | --d | -d )
13320 debug=: ;;
13321 --file | --fil | --fi | --f )
13322 $ac_shift
13323 case $ac_optarg in
13324 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13325 esac
13326 as_fn_append CONFIG_FILES " '$ac_optarg'"
13327 ac_need_defaults=false;;
13328 --header | --heade | --head | --hea )
13329 $ac_shift
13330 case $ac_optarg in
13331 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13332 esac
13333 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13334 ac_need_defaults=false;;
13335 --he | --h)
13336 # Conflict between --help and --header
13337 as_fn_error "ambiguous option: \`$1'
13338 Try \`$0 --help' for more information.";;
13339 --help | --hel | -h )
13340 $as_echo "$ac_cs_usage"; exit ;;
13341 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13342 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13343 ac_cs_silent=: ;;
13344
13345 # This is an error.
13346 -*) as_fn_error "unrecognized option: \`$1'
13347 Try \`$0 --help' for more information." ;;
13348
13349 *) as_fn_append ac_config_targets " $1"
13350 ac_need_defaults=false ;;
13351
13352 esac
13353 shift
13354 done
13355
13356 ac_configure_extra_args=
13357
13358 if $ac_cs_silent; then
13359 exec 6>/dev/null
13360 ac_configure_extra_args="$ac_configure_extra_args --silent"
13361 fi
13362
13363 _ACEOF
13364 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13365 if \$ac_cs_recheck; then
13366 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13367 shift
13368 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13369 CONFIG_SHELL='$SHELL'
13370 export CONFIG_SHELL
13371 exec "\$@"
13372 fi
13373
13374 _ACEOF
13375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13376 exec 5>>config.log
13377 {
13378 echo
13379 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13380 ## Running $as_me. ##
13381 _ASBOX
13382 $as_echo "$ac_log"
13383 } >&5
13384
13385 _ACEOF
13386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13387 #
13388 # INIT-COMMANDS
13389 #
13390 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13391
13392
13393 # The HP-UX ksh and POSIX shell print the target directory to stdout
13394 # if CDPATH is set.
13395 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13396
13397 sed_quote_subst='$sed_quote_subst'
13398 double_quote_subst='$double_quote_subst'
13399 delay_variable_subst='$delay_variable_subst'
13400 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13401 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13402 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13403 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13404 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13405 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13406 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13407 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13408 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13409 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13410 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13411 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13412 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13413 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13414 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13415 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13416 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13417 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13418 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13419 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13420 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13421 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13422 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13423 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13424 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13425 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13426 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13427 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13428 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13429 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13430 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13431 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13432 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13433 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13434 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13435 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13436 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13437 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13438 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13439 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13440 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13441 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13442 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13443 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13444 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"`'
13445 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"`'
13446 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13447 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13448 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13449 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13450 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13451 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13452 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13453 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13454 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13455 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13456 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13457 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13458 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13459 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13460 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13461 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13462 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13463 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13464 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13465 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13466 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13467 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13468 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13469 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13470 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13471 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13472 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13473 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13474 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13475 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13476 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13477 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13478 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13479 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13480 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13481 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13482 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13483 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13484 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13485 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13486 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13487 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13488 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13489 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13490 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13491 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13492 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13493 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13494 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13495 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13496 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13497 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13498 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13499 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13500 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13501 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13502 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13503 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13504 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13505 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13506 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13507 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13508 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13509 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13510 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13511 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13512 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13513 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13514 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13515 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13516 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13517 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13518
13519 LTCC='$LTCC'
13520 LTCFLAGS='$LTCFLAGS'
13521 compiler='$compiler_DEFAULT'
13522
13523 # Quote evaled strings.
13524 for var in SED \
13525 GREP \
13526 EGREP \
13527 FGREP \
13528 LD \
13529 NM \
13530 LN_S \
13531 lt_SP2NL \
13532 lt_NL2SP \
13533 reload_flag \
13534 OBJDUMP \
13535 deplibs_check_method \
13536 file_magic_cmd \
13537 AR \
13538 AR_FLAGS \
13539 STRIP \
13540 RANLIB \
13541 CC \
13542 CFLAGS \
13543 compiler \
13544 lt_cv_sys_global_symbol_pipe \
13545 lt_cv_sys_global_symbol_to_cdecl \
13546 lt_cv_sys_global_symbol_to_c_name_address \
13547 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13548 SHELL \
13549 ECHO \
13550 lt_prog_compiler_no_builtin_flag \
13551 lt_prog_compiler_wl \
13552 lt_prog_compiler_pic \
13553 lt_prog_compiler_static \
13554 lt_cv_prog_compiler_c_o \
13555 need_locks \
13556 DSYMUTIL \
13557 NMEDIT \
13558 LIPO \
13559 OTOOL \
13560 OTOOL64 \
13561 shrext_cmds \
13562 export_dynamic_flag_spec \
13563 whole_archive_flag_spec \
13564 compiler_needs_object \
13565 with_gnu_ld \
13566 allow_undefined_flag \
13567 no_undefined_flag \
13568 hardcode_libdir_flag_spec \
13569 hardcode_libdir_flag_spec_ld \
13570 hardcode_libdir_separator \
13571 fix_srcfile_path \
13572 exclude_expsyms \
13573 include_expsyms \
13574 file_list_spec \
13575 variables_saved_for_relink \
13576 libname_spec \
13577 library_names_spec \
13578 soname_spec \
13579 finish_eval \
13580 old_striplib \
13581 striplib; do
13582 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13583 *[\\\\\\\`\\"\\\$]*)
13584 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13585 ;;
13586 *)
13587 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13588 ;;
13589 esac
13590 done
13591
13592 # Double-quote double-evaled strings.
13593 for var in reload_cmds \
13594 old_postinstall_cmds \
13595 old_postuninstall_cmds \
13596 old_archive_cmds \
13597 extract_expsyms_cmds \
13598 old_archive_from_new_cmds \
13599 old_archive_from_expsyms_cmds \
13600 archive_cmds \
13601 archive_expsym_cmds \
13602 module_cmds \
13603 module_expsym_cmds \
13604 export_symbols_cmds \
13605 prelink_cmds \
13606 postinstall_cmds \
13607 postuninstall_cmds \
13608 finish_cmds \
13609 sys_lib_search_path_spec \
13610 sys_lib_dlsearch_path_spec; do
13611 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13612 *[\\\\\\\`\\"\\\$]*)
13613 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13614 ;;
13615 *)
13616 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13617 ;;
13618 esac
13619 done
13620
13621 # Fix-up fallback echo if it was mangled by the above quoting rules.
13622 case \$lt_ECHO in
13623 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13624 ;;
13625 esac
13626
13627 ac_aux_dir='$ac_aux_dir'
13628 xsi_shell='$xsi_shell'
13629 lt_shell_append='$lt_shell_append'
13630
13631 # See if we are running on zsh, and set the options which allow our
13632 # commands through without removal of \ escapes INIT.
13633 if test -n "\${ZSH_VERSION+set}" ; then
13634 setopt NO_GLOB_SUBST
13635 fi
13636
13637
13638 PACKAGE='$PACKAGE'
13639 VERSION='$VERSION'
13640 TIMESTAMP='$TIMESTAMP'
13641 RM='$RM'
13642 ofile='$ofile'
13643
13644
13645
13646
13647 _ACEOF
13648
13649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13650
13651 # Handling of arguments.
13652 for ac_config_target in $ac_config_targets
13653 do
13654 case $ac_config_target in
13655 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13656 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13657 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13658 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13659 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13660 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13661
13662 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13663 esac
13664 done
13665
13666
13667 # If the user did not use the arguments to specify the items to instantiate,
13668 # then the envvar interface is used. Set only those that are not.
13669 # We use the long form for the default assignment because of an extremely
13670 # bizarre bug on SunOS 4.1.3.
13671 if $ac_need_defaults; then
13672 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13673 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13674 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13675 fi
13676
13677 # Have a temporary directory for convenience. Make it in the build tree
13678 # simply because there is no reason against having it here, and in addition,
13679 # creating and moving files from /tmp can sometimes cause problems.
13680 # Hook for its removal unless debugging.
13681 # Note that there is a small window in which the directory will not be cleaned:
13682 # after its creation but before its name has been assigned to `$tmp'.
13683 $debug ||
13684 {
13685 tmp=
13686 trap 'exit_status=$?
13687 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13688 ' 0
13689 trap 'as_fn_exit 1' 1 2 13 15
13690 }
13691 # Create a (secure) tmp directory for tmp files.
13692
13693 {
13694 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13695 test -n "$tmp" && test -d "$tmp"
13696 } ||
13697 {
13698 tmp=./conf$$-$RANDOM
13699 (umask 077 && mkdir "$tmp")
13700 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13701
13702 # Set up the scripts for CONFIG_FILES section.
13703 # No need to generate them if there are no CONFIG_FILES.
13704 # This happens for instance with `./config.status config.h'.
13705 if test -n "$CONFIG_FILES"; then
13706
13707
13708 ac_cr=`echo X | tr X '\015'`
13709 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13710 # But we know of no other shell where ac_cr would be empty at this
13711 # point, so we can use a bashism as a fallback.
13712 if test "x$ac_cr" = x; then
13713 eval ac_cr=\$\'\\r\'
13714 fi
13715 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13716 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13717 ac_cs_awk_cr='\r'
13718 else
13719 ac_cs_awk_cr=$ac_cr
13720 fi
13721
13722 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13723 _ACEOF
13724
13725
13726 {
13727 echo "cat >conf$$subs.awk <<_ACEOF" &&
13728 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13729 echo "_ACEOF"
13730 } >conf$$subs.sh ||
13731 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13732 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13733 ac_delim='%!_!# '
13734 for ac_last_try in false false false false false :; do
13735 . ./conf$$subs.sh ||
13736 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13737
13738 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13739 if test $ac_delim_n = $ac_delim_num; then
13740 break
13741 elif $ac_last_try; then
13742 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13743 else
13744 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13745 fi
13746 done
13747 rm -f conf$$subs.sh
13748
13749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13750 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13751 _ACEOF
13752 sed -n '
13753 h
13754 s/^/S["/; s/!.*/"]=/
13755 p
13756 g
13757 s/^[^!]*!//
13758 :repl
13759 t repl
13760 s/'"$ac_delim"'$//
13761 t delim
13762 :nl
13763 h
13764 s/\(.\{148\}\)..*/\1/
13765 t more1
13766 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13767 p
13768 n
13769 b repl
13770 :more1
13771 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13772 p
13773 g
13774 s/.\{148\}//
13775 t nl
13776 :delim
13777 h
13778 s/\(.\{148\}\)..*/\1/
13779 t more2
13780 s/["\\]/\\&/g; s/^/"/; s/$/"/
13781 p
13782 b
13783 :more2
13784 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13785 p
13786 g
13787 s/.\{148\}//
13788 t delim
13789 ' <conf$$subs.awk | sed '
13790 /^[^""]/{
13791 N
13792 s/\n//
13793 }
13794 ' >>$CONFIG_STATUS || ac_write_fail=1
13795 rm -f conf$$subs.awk
13796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13797 _ACAWK
13798 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13799 for (key in S) S_is_set[key] = 1
13800 FS = ""
13801
13802 }
13803 {
13804 line = $ 0
13805 nfields = split(line, field, "@")
13806 substed = 0
13807 len = length(field[1])
13808 for (i = 2; i < nfields; i++) {
13809 key = field[i]
13810 keylen = length(key)
13811 if (S_is_set[key]) {
13812 value = S[key]
13813 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13814 len += length(value) + length(field[++i])
13815 substed = 1
13816 } else
13817 len += 1 + keylen
13818 }
13819
13820 print line
13821 }
13822
13823 _ACAWK
13824 _ACEOF
13825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13826 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13827 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13828 else
13829 cat
13830 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13831 || as_fn_error "could not setup config files machinery" "$LINENO" 5
13832 _ACEOF
13833
13834 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13835 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13836 # trailing colons and then remove the whole line if VPATH becomes empty
13837 # (actually we leave an empty line to preserve line numbers).
13838 if test "x$srcdir" = x.; then
13839 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13840 s/:*\$(srcdir):*/:/
13841 s/:*\${srcdir}:*/:/
13842 s/:*@srcdir@:*/:/
13843 s/^\([^=]*=[ ]*\):*/\1/
13844 s/:*$//
13845 s/^[^=]*=[ ]*$//
13846 }'
13847 fi
13848
13849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13850 fi # test -n "$CONFIG_FILES"
13851
13852 # Set up the scripts for CONFIG_HEADERS section.
13853 # No need to generate them if there are no CONFIG_HEADERS.
13854 # This happens for instance with `./config.status Makefile'.
13855 if test -n "$CONFIG_HEADERS"; then
13856 cat >"$tmp/defines.awk" <<\_ACAWK ||
13857 BEGIN {
13858 _ACEOF
13859
13860 # Transform confdefs.h into an awk script `defines.awk', embedded as
13861 # here-document in config.status, that substitutes the proper values into
13862 # config.h.in to produce config.h.
13863
13864 # Create a delimiter string that does not exist in confdefs.h, to ease
13865 # handling of long lines.
13866 ac_delim='%!_!# '
13867 for ac_last_try in false false :; do
13868 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13869 if test -z "$ac_t"; then
13870 break
13871 elif $ac_last_try; then
13872 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13873 else
13874 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13875 fi
13876 done
13877
13878 # For the awk script, D is an array of macro values keyed by name,
13879 # likewise P contains macro parameters if any. Preserve backslash
13880 # newline sequences.
13881
13882 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13883 sed -n '
13884 s/.\{148\}/&'"$ac_delim"'/g
13885 t rset
13886 :rset
13887 s/^[ ]*#[ ]*define[ ][ ]*/ /
13888 t def
13889 d
13890 :def
13891 s/\\$//
13892 t bsnl
13893 s/["\\]/\\&/g
13894 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13895 D["\1"]=" \3"/p
13896 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13897 d
13898 :bsnl
13899 s/["\\]/\\&/g
13900 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13901 D["\1"]=" \3\\\\\\n"\\/p
13902 t cont
13903 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13904 t cont
13905 d
13906 :cont
13907 n
13908 s/.\{148\}/&'"$ac_delim"'/g
13909 t clear
13910 :clear
13911 s/\\$//
13912 t bsnlc
13913 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13914 d
13915 :bsnlc
13916 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13917 b cont
13918 ' <confdefs.h | sed '
13919 s/'"$ac_delim"'/"\\\
13920 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13921
13922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13923 for (key in D) D_is_set[key] = 1
13924 FS = ""
13925 }
13926 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13927 line = \$ 0
13928 split(line, arg, " ")
13929 if (arg[1] == "#") {
13930 defundef = arg[2]
13931 mac1 = arg[3]
13932 } else {
13933 defundef = substr(arg[1], 2)
13934 mac1 = arg[2]
13935 }
13936 split(mac1, mac2, "(") #)
13937 macro = mac2[1]
13938 prefix = substr(line, 1, index(line, defundef) - 1)
13939 if (D_is_set[macro]) {
13940 # Preserve the white space surrounding the "#".
13941 print prefix "define", macro P[macro] D[macro]
13942 next
13943 } else {
13944 # Replace #undef with comments. This is necessary, for example,
13945 # in the case of _POSIX_SOURCE, which is predefined and required
13946 # on some systems where configure will not decide to define it.
13947 if (defundef == "undef") {
13948 print "/*", prefix defundef, macro, "*/"
13949 next
13950 }
13951 }
13952 }
13953 { print }
13954 _ACAWK
13955 _ACEOF
13956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13957 as_fn_error "could not setup config headers machinery" "$LINENO" 5
13958 fi # test -n "$CONFIG_HEADERS"
13959
13960
13961 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13962 shift
13963 for ac_tag
13964 do
13965 case $ac_tag in
13966 :[FHLC]) ac_mode=$ac_tag; continue;;
13967 esac
13968 case $ac_mode$ac_tag in
13969 :[FHL]*:*);;
13970 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13971 :[FH]-) ac_tag=-:-;;
13972 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13973 esac
13974 ac_save_IFS=$IFS
13975 IFS=:
13976 set x $ac_tag
13977 IFS=$ac_save_IFS
13978 shift
13979 ac_file=$1
13980 shift
13981
13982 case $ac_mode in
13983 :L) ac_source=$1;;
13984 :[FH])
13985 ac_file_inputs=
13986 for ac_f
13987 do
13988 case $ac_f in
13989 -) ac_f="$tmp/stdin";;
13990 *) # Look for the file first in the build tree, then in the source tree
13991 # (if the path is not absolute). The absolute path cannot be DOS-style,
13992 # because $ac_f cannot contain `:'.
13993 test -f "$ac_f" ||
13994 case $ac_f in
13995 [\\/$]*) false;;
13996 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13997 esac ||
13998 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13999 esac
14000 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14001 as_fn_append ac_file_inputs " '$ac_f'"
14002 done
14003
14004 # Let's still pretend it is `configure' which instantiates (i.e., don't
14005 # use $as_me), people would be surprised to read:
14006 # /* config.h. Generated by config.status. */
14007 configure_input='Generated from '`
14008 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14009 `' by configure.'
14010 if test x"$ac_file" != x-; then
14011 configure_input="$ac_file. $configure_input"
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14013 $as_echo "$as_me: creating $ac_file" >&6;}
14014 fi
14015 # Neutralize special characters interpreted by sed in replacement strings.
14016 case $configure_input in #(
14017 *\&* | *\|* | *\\* )
14018 ac_sed_conf_input=`$as_echo "$configure_input" |
14019 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14020 *) ac_sed_conf_input=$configure_input;;
14021 esac
14022
14023 case $ac_tag in
14024 *:-:* | *:-) cat >"$tmp/stdin" \
14025 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14026 esac
14027 ;;
14028 esac
14029
14030 ac_dir=`$as_dirname -- "$ac_file" ||
14031 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14032 X"$ac_file" : 'X\(//\)[^/]' \| \
14033 X"$ac_file" : 'X\(//\)$' \| \
14034 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14035 $as_echo X"$ac_file" |
14036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14037 s//\1/
14038 q
14039 }
14040 /^X\(\/\/\)[^/].*/{
14041 s//\1/
14042 q
14043 }
14044 /^X\(\/\/\)$/{
14045 s//\1/
14046 q
14047 }
14048 /^X\(\/\).*/{
14049 s//\1/
14050 q
14051 }
14052 s/.*/./; q'`
14053 as_dir="$ac_dir"; as_fn_mkdir_p
14054 ac_builddir=.
14055
14056 case "$ac_dir" in
14057 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14058 *)
14059 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14060 # A ".." for each directory in $ac_dir_suffix.
14061 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14062 case $ac_top_builddir_sub in
14063 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14064 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14065 esac ;;
14066 esac
14067 ac_abs_top_builddir=$ac_pwd
14068 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14069 # for backward compatibility:
14070 ac_top_builddir=$ac_top_build_prefix
14071
14072 case $srcdir in
14073 .) # We are building in place.
14074 ac_srcdir=.
14075 ac_top_srcdir=$ac_top_builddir_sub
14076 ac_abs_top_srcdir=$ac_pwd ;;
14077 [\\/]* | ?:[\\/]* ) # Absolute name.
14078 ac_srcdir=$srcdir$ac_dir_suffix;
14079 ac_top_srcdir=$srcdir
14080 ac_abs_top_srcdir=$srcdir ;;
14081 *) # Relative name.
14082 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14083 ac_top_srcdir=$ac_top_build_prefix$srcdir
14084 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14085 esac
14086 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14087
14088
14089 case $ac_mode in
14090 :F)
14091 #
14092 # CONFIG_FILE
14093 #
14094
14095 case $INSTALL in
14096 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14097 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14098 esac
14099 ac_MKDIR_P=$MKDIR_P
14100 case $MKDIR_P in
14101 [\\/$]* | ?:[\\/]* ) ;;
14102 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14103 esac
14104 _ACEOF
14105
14106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14107 # If the template does not know about datarootdir, expand it.
14108 # FIXME: This hack should be removed a few years after 2.60.
14109 ac_datarootdir_hack=; ac_datarootdir_seen=
14110 ac_sed_dataroot='
14111 /datarootdir/ {
14112 p
14113 q
14114 }
14115 /@datadir@/p
14116 /@docdir@/p
14117 /@infodir@/p
14118 /@localedir@/p
14119 /@mandir@/p'
14120 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14121 *datarootdir*) ac_datarootdir_seen=yes;;
14122 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14124 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14125 _ACEOF
14126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14127 ac_datarootdir_hack='
14128 s&@datadir@&$datadir&g
14129 s&@docdir@&$docdir&g
14130 s&@infodir@&$infodir&g
14131 s&@localedir@&$localedir&g
14132 s&@mandir@&$mandir&g
14133 s&\\\${datarootdir}&$datarootdir&g' ;;
14134 esac
14135 _ACEOF
14136
14137 # Neutralize VPATH when `$srcdir' = `.'.
14138 # Shell code in configure.ac might set extrasub.
14139 # FIXME: do we really want to maintain this feature?
14140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14141 ac_sed_extra="$ac_vpsub
14142 $extrasub
14143 _ACEOF
14144 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14145 :t
14146 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14147 s|@configure_input@|$ac_sed_conf_input|;t t
14148 s&@top_builddir@&$ac_top_builddir_sub&;t t
14149 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14150 s&@srcdir@&$ac_srcdir&;t t
14151 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14152 s&@top_srcdir@&$ac_top_srcdir&;t t
14153 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14154 s&@builddir@&$ac_builddir&;t t
14155 s&@abs_builddir@&$ac_abs_builddir&;t t
14156 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14157 s&@INSTALL@&$ac_INSTALL&;t t
14158 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14159 $ac_datarootdir_hack
14160 "
14161 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14162 || as_fn_error "could not create $ac_file" "$LINENO" 5
14163
14164 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14165 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14166 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14168 which seems to be undefined. Please make sure it is defined." >&5
14169 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14170 which seems to be undefined. Please make sure it is defined." >&2;}
14171
14172 rm -f "$tmp/stdin"
14173 case $ac_file in
14174 -) cat "$tmp/out" && rm -f "$tmp/out";;
14175 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14176 esac \
14177 || as_fn_error "could not create $ac_file" "$LINENO" 5
14178 ;;
14179 :H)
14180 #
14181 # CONFIG_HEADER
14182 #
14183 if test x"$ac_file" != x-; then
14184 {
14185 $as_echo "/* $configure_input */" \
14186 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14187 } >"$tmp/config.h" \
14188 || as_fn_error "could not create $ac_file" "$LINENO" 5
14189 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14191 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14192 else
14193 rm -f "$ac_file"
14194 mv "$tmp/config.h" "$ac_file" \
14195 || as_fn_error "could not create $ac_file" "$LINENO" 5
14196 fi
14197 else
14198 $as_echo "/* $configure_input */" \
14199 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14200 || as_fn_error "could not create -" "$LINENO" 5
14201 fi
14202 # Compute "$ac_file"'s index in $config_headers.
14203 _am_arg="$ac_file"
14204 _am_stamp_count=1
14205 for _am_header in $config_headers :; do
14206 case $_am_header in
14207 $_am_arg | $_am_arg:* )
14208 break ;;
14209 * )
14210 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14211 esac
14212 done
14213 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14214 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14215 X"$_am_arg" : 'X\(//\)[^/]' \| \
14216 X"$_am_arg" : 'X\(//\)$' \| \
14217 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14218 $as_echo X"$_am_arg" |
14219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14220 s//\1/
14221 q
14222 }
14223 /^X\(\/\/\)[^/].*/{
14224 s//\1/
14225 q
14226 }
14227 /^X\(\/\/\)$/{
14228 s//\1/
14229 q
14230 }
14231 /^X\(\/\).*/{
14232 s//\1/
14233 q
14234 }
14235 s/.*/./; q'`/stamp-h$_am_stamp_count
14236 ;;
14237
14238 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14239 $as_echo "$as_me: executing $ac_file commands" >&6;}
14240 ;;
14241 esac
14242
14243
14244 case $ac_file$ac_mode in
14245 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14246 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14247 # are listed without --file. Let's play safe and only enable the eval
14248 # if we detect the quoting.
14249 case $CONFIG_FILES in
14250 *\'*) eval set x "$CONFIG_FILES" ;;
14251 *) set x $CONFIG_FILES ;;
14252 esac
14253 shift
14254 for mf
14255 do
14256 # Strip MF so we end up with the name of the file.
14257 mf=`echo "$mf" | sed -e 's/:.*$//'`
14258 # Check whether this is an Automake generated Makefile or not.
14259 # We used to match only the files named `Makefile.in', but
14260 # some people rename them; so instead we look at the file content.
14261 # Grep'ing the first line is not enough: some people post-process
14262 # each Makefile.in and add a new line on top of each file to say so.
14263 # Grep'ing the whole file is not good either: AIX grep has a line
14264 # limit of 2048, but all sed's we know have understand at least 4000.
14265 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14266 dirpart=`$as_dirname -- "$mf" ||
14267 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14268 X"$mf" : 'X\(//\)[^/]' \| \
14269 X"$mf" : 'X\(//\)$' \| \
14270 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14271 $as_echo X"$mf" |
14272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14273 s//\1/
14274 q
14275 }
14276 /^X\(\/\/\)[^/].*/{
14277 s//\1/
14278 q
14279 }
14280 /^X\(\/\/\)$/{
14281 s//\1/
14282 q
14283 }
14284 /^X\(\/\).*/{
14285 s//\1/
14286 q
14287 }
14288 s/.*/./; q'`
14289 else
14290 continue
14291 fi
14292 # Extract the definition of DEPDIR, am__include, and am__quote
14293 # from the Makefile without running `make'.
14294 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14295 test -z "$DEPDIR" && continue
14296 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14297 test -z "am__include" && continue
14298 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14299 # When using ansi2knr, U may be empty or an underscore; expand it
14300 U=`sed -n 's/^U = //p' < "$mf"`
14301 # Find all dependency output files, they are included files with
14302 # $(DEPDIR) in their names. We invoke sed twice because it is the
14303 # simplest approach to changing $(DEPDIR) to its actual value in the
14304 # expansion.
14305 for file in `sed -n "
14306 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14307 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14308 # Make sure the directory exists.
14309 test -f "$dirpart/$file" && continue
14310 fdir=`$as_dirname -- "$file" ||
14311 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14312 X"$file" : 'X\(//\)[^/]' \| \
14313 X"$file" : 'X\(//\)$' \| \
14314 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14315 $as_echo X"$file" |
14316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14317 s//\1/
14318 q
14319 }
14320 /^X\(\/\/\)[^/].*/{
14321 s//\1/
14322 q
14323 }
14324 /^X\(\/\/\)$/{
14325 s//\1/
14326 q
14327 }
14328 /^X\(\/\).*/{
14329 s//\1/
14330 q
14331 }
14332 s/.*/./; q'`
14333 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14334 # echo "creating $dirpart/$file"
14335 echo '# dummy' > "$dirpart/$file"
14336 done
14337 done
14338 }
14339 ;;
14340 "libtool":C)
14341
14342 # See if we are running on zsh, and set the options which allow our
14343 # commands through without removal of \ escapes.
14344 if test -n "${ZSH_VERSION+set}" ; then
14345 setopt NO_GLOB_SUBST
14346 fi
14347
14348 cfgfile="${ofile}T"
14349 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14350 $RM "$cfgfile"
14351
14352 cat <<_LT_EOF >> "$cfgfile"
14353 #! $SHELL
14354
14355 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14356 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14357 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14358 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14359 #
14360 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14361 # 2006, 2007, 2008 Free Software Foundation, Inc.
14362 # Written by Gordon Matzigkeit, 1996
14363 #
14364 # This file is part of GNU Libtool.
14365 #
14366 # GNU Libtool is free software; you can redistribute it and/or
14367 # modify it under the terms of the GNU General Public License as
14368 # published by the Free Software Foundation; either version 2 of
14369 # the License, or (at your option) any later version.
14370 #
14371 # As a special exception to the GNU General Public License,
14372 # if you distribute this file as part of a program or library that
14373 # is built using GNU Libtool, you may include this file under the
14374 # same distribution terms that you use for the rest of that program.
14375 #
14376 # GNU Libtool is distributed in the hope that it will be useful,
14377 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14378 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14379 # GNU General Public License for more details.
14380 #
14381 # You should have received a copy of the GNU General Public License
14382 # along with GNU Libtool; see the file COPYING. If not, a copy
14383 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14384 # obtained by writing to the Free Software Foundation, Inc.,
14385 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14386
14387
14388 # The names of the tagged configurations supported by this script.
14389 available_tags=""
14390
14391 # ### BEGIN LIBTOOL CONFIG
14392
14393 # Whether or not to build static libraries.
14394 build_old_libs=$enable_static
14395
14396 # Which release of libtool.m4 was used?
14397 macro_version=$macro_version
14398 macro_revision=$macro_revision
14399
14400 # Whether or not to build shared libraries.
14401 build_libtool_libs=$enable_shared
14402
14403 # What type of objects to build.
14404 pic_mode=$pic_mode
14405
14406 # Whether or not to optimize for fast installation.
14407 fast_install=$enable_fast_install
14408
14409 # The host system.
14410 host_alias=$host_alias
14411 host=$host
14412 host_os=$host_os
14413
14414 # The build system.
14415 build_alias=$build_alias
14416 build=$build
14417 build_os=$build_os
14418
14419 # A sed program that does not truncate output.
14420 SED=$lt_SED
14421
14422 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14423 Xsed="\$SED -e 1s/^X//"
14424
14425 # A grep program that handles long lines.
14426 GREP=$lt_GREP
14427
14428 # An ERE matcher.
14429 EGREP=$lt_EGREP
14430
14431 # A literal string matcher.
14432 FGREP=$lt_FGREP
14433
14434 # A BSD- or MS-compatible name lister.
14435 NM=$lt_NM
14436
14437 # Whether we need soft or hard links.
14438 LN_S=$lt_LN_S
14439
14440 # What is the maximum length of a command?
14441 max_cmd_len=$max_cmd_len
14442
14443 # Object file suffix (normally "o").
14444 objext=$ac_objext
14445
14446 # Executable file suffix (normally "").
14447 exeext=$exeext
14448
14449 # whether the shell understands "unset".
14450 lt_unset=$lt_unset
14451
14452 # turn spaces into newlines.
14453 SP2NL=$lt_lt_SP2NL
14454
14455 # turn newlines into spaces.
14456 NL2SP=$lt_lt_NL2SP
14457
14458 # How to create reloadable object files.
14459 reload_flag=$lt_reload_flag
14460 reload_cmds=$lt_reload_cmds
14461
14462 # An object symbol dumper.
14463 OBJDUMP=$lt_OBJDUMP
14464
14465 # Method to check whether dependent libraries are shared objects.
14466 deplibs_check_method=$lt_deplibs_check_method
14467
14468 # Command to use when deplibs_check_method == "file_magic".
14469 file_magic_cmd=$lt_file_magic_cmd
14470
14471 # The archiver.
14472 AR=$lt_AR
14473 AR_FLAGS=$lt_AR_FLAGS
14474
14475 # A symbol stripping program.
14476 STRIP=$lt_STRIP
14477
14478 # Commands used to install an old-style archive.
14479 RANLIB=$lt_RANLIB
14480 old_postinstall_cmds=$lt_old_postinstall_cmds
14481 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14482
14483 # A C compiler.
14484 LTCC=$lt_CC
14485
14486 # LTCC compiler flags.
14487 LTCFLAGS=$lt_CFLAGS
14488
14489 # Take the output of nm and produce a listing of raw symbols and C names.
14490 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14491
14492 # Transform the output of nm in a proper C declaration.
14493 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14494
14495 # Transform the output of nm in a C name address pair.
14496 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14497
14498 # Transform the output of nm in a C name address pair when lib prefix is needed.
14499 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14500
14501 # The name of the directory that contains temporary libtool files.
14502 objdir=$objdir
14503
14504 # Shell to use when invoking shell scripts.
14505 SHELL=$lt_SHELL
14506
14507 # An echo program that does not interpret backslashes.
14508 ECHO=$lt_ECHO
14509
14510 # Used to examine libraries when file_magic_cmd begins with "file".
14511 MAGIC_CMD=$MAGIC_CMD
14512
14513 # Must we lock files when doing compilation?
14514 need_locks=$lt_need_locks
14515
14516 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14517 DSYMUTIL=$lt_DSYMUTIL
14518
14519 # Tool to change global to local symbols on Mac OS X.
14520 NMEDIT=$lt_NMEDIT
14521
14522 # Tool to manipulate fat objects and archives on Mac OS X.
14523 LIPO=$lt_LIPO
14524
14525 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14526 OTOOL=$lt_OTOOL
14527
14528 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14529 OTOOL64=$lt_OTOOL64
14530
14531 # Old archive suffix (normally "a").
14532 libext=$libext
14533
14534 # Shared library suffix (normally ".so").
14535 shrext_cmds=$lt_shrext_cmds
14536
14537 # The commands to extract the exported symbol list from a shared archive.
14538 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14539
14540 # Variables whose values should be saved in libtool wrapper scripts and
14541 # restored at link time.
14542 variables_saved_for_relink=$lt_variables_saved_for_relink
14543
14544 # Do we need the "lib" prefix for modules?
14545 need_lib_prefix=$need_lib_prefix
14546
14547 # Do we need a version for libraries?
14548 need_version=$need_version
14549
14550 # Library versioning type.
14551 version_type=$version_type
14552
14553 # Shared library runtime path variable.
14554 runpath_var=$runpath_var
14555
14556 # Shared library path variable.
14557 shlibpath_var=$shlibpath_var
14558
14559 # Is shlibpath searched before the hard-coded library search path?
14560 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14561
14562 # Format of library name prefix.
14563 libname_spec=$lt_libname_spec
14564
14565 # List of archive names. First name is the real one, the rest are links.
14566 # The last name is the one that the linker finds with -lNAME
14567 library_names_spec=$lt_library_names_spec
14568
14569 # The coded name of the library, if different from the real name.
14570 soname_spec=$lt_soname_spec
14571
14572 # Command to use after installation of a shared archive.
14573 postinstall_cmds=$lt_postinstall_cmds
14574
14575 # Command to use after uninstallation of a shared archive.
14576 postuninstall_cmds=$lt_postuninstall_cmds
14577
14578 # Commands used to finish a libtool library installation in a directory.
14579 finish_cmds=$lt_finish_cmds
14580
14581 # As "finish_cmds", except a single script fragment to be evaled but
14582 # not shown.
14583 finish_eval=$lt_finish_eval
14584
14585 # Whether we should hardcode library paths into libraries.
14586 hardcode_into_libs=$hardcode_into_libs
14587
14588 # Compile-time system search path for libraries.
14589 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14590
14591 # Run-time system search path for libraries.
14592 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14593
14594 # Whether dlopen is supported.
14595 dlopen_support=$enable_dlopen
14596
14597 # Whether dlopen of programs is supported.
14598 dlopen_self=$enable_dlopen_self
14599
14600 # Whether dlopen of statically linked programs is supported.
14601 dlopen_self_static=$enable_dlopen_self_static
14602
14603 # Commands to strip libraries.
14604 old_striplib=$lt_old_striplib
14605 striplib=$lt_striplib
14606
14607
14608 # The linker used to build libraries.
14609 LD=$lt_LD
14610
14611 # Commands used to build an old-style archive.
14612 old_archive_cmds=$lt_old_archive_cmds
14613
14614 # A language specific compiler.
14615 CC=$lt_compiler
14616
14617 # Is the compiler the GNU compiler?
14618 with_gcc=$GCC
14619
14620 # Compiler flag to turn off builtin functions.
14621 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14622
14623 # How to pass a linker flag through the compiler.
14624 wl=$lt_lt_prog_compiler_wl
14625
14626 # Additional compiler flags for building library objects.
14627 pic_flag=$lt_lt_prog_compiler_pic
14628
14629 # Compiler flag to prevent dynamic linking.
14630 link_static_flag=$lt_lt_prog_compiler_static
14631
14632 # Does compiler simultaneously support -c and -o options?
14633 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14634
14635 # Whether or not to add -lc for building shared libraries.
14636 build_libtool_need_lc=$archive_cmds_need_lc
14637
14638 # Whether or not to disallow shared libs when runtime libs are static.
14639 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14640
14641 # Compiler flag to allow reflexive dlopens.
14642 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14643
14644 # Compiler flag to generate shared objects directly from archives.
14645 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14646
14647 # Whether the compiler copes with passing no objects directly.
14648 compiler_needs_object=$lt_compiler_needs_object
14649
14650 # Create an old-style archive from a shared archive.
14651 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14652
14653 # Create a temporary old-style archive to link instead of a shared archive.
14654 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14655
14656 # Commands used to build a shared archive.
14657 archive_cmds=$lt_archive_cmds
14658 archive_expsym_cmds=$lt_archive_expsym_cmds
14659
14660 # Commands used to build a loadable module if different from building
14661 # a shared archive.
14662 module_cmds=$lt_module_cmds
14663 module_expsym_cmds=$lt_module_expsym_cmds
14664
14665 # Whether we are building with GNU ld or not.
14666 with_gnu_ld=$lt_with_gnu_ld
14667
14668 # Flag that allows shared libraries with undefined symbols to be built.
14669 allow_undefined_flag=$lt_allow_undefined_flag
14670
14671 # Flag that enforces no undefined symbols.
14672 no_undefined_flag=$lt_no_undefined_flag
14673
14674 # Flag to hardcode \$libdir into a binary during linking.
14675 # This must work even if \$libdir does not exist
14676 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14677
14678 # If ld is used when linking, flag to hardcode \$libdir into a binary
14679 # during linking. This must work even if \$libdir does not exist.
14680 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14681
14682 # Whether we need a single "-rpath" flag with a separated argument.
14683 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14684
14685 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14686 # DIR into the resulting binary.
14687 hardcode_direct=$hardcode_direct
14688
14689 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14690 # DIR into the resulting binary and the resulting library dependency is
14691 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14692 # library is relocated.
14693 hardcode_direct_absolute=$hardcode_direct_absolute
14694
14695 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14696 # into the resulting binary.
14697 hardcode_minus_L=$hardcode_minus_L
14698
14699 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14700 # into the resulting binary.
14701 hardcode_shlibpath_var=$hardcode_shlibpath_var
14702
14703 # Set to "yes" if building a shared library automatically hardcodes DIR
14704 # into the library and all subsequent libraries and executables linked
14705 # against it.
14706 hardcode_automatic=$hardcode_automatic
14707
14708 # Set to yes if linker adds runtime paths of dependent libraries
14709 # to runtime path list.
14710 inherit_rpath=$inherit_rpath
14711
14712 # Whether libtool must link a program against all its dependency libraries.
14713 link_all_deplibs=$link_all_deplibs
14714
14715 # Fix the shell variable \$srcfile for the compiler.
14716 fix_srcfile_path=$lt_fix_srcfile_path
14717
14718 # Set to "yes" if exported symbols are required.
14719 always_export_symbols=$always_export_symbols
14720
14721 # The commands to list exported symbols.
14722 export_symbols_cmds=$lt_export_symbols_cmds
14723
14724 # Symbols that should not be listed in the preloaded symbols.
14725 exclude_expsyms=$lt_exclude_expsyms
14726
14727 # Symbols that must always be exported.
14728 include_expsyms=$lt_include_expsyms
14729
14730 # Commands necessary for linking programs (against libraries) with templates.
14731 prelink_cmds=$lt_prelink_cmds
14732
14733 # Specify filename containing input files.
14734 file_list_spec=$lt_file_list_spec
14735
14736 # How to hardcode a shared library path into an executable.
14737 hardcode_action=$hardcode_action
14738
14739 # ### END LIBTOOL CONFIG
14740
14741 _LT_EOF
14742
14743 case $host_os in
14744 aix3*)
14745 cat <<\_LT_EOF >> "$cfgfile"
14746 # AIX sometimes has problems with the GCC collect2 program. For some
14747 # reason, if we set the COLLECT_NAMES environment variable, the problems
14748 # vanish in a puff of smoke.
14749 if test "X${COLLECT_NAMES+set}" != Xset; then
14750 COLLECT_NAMES=
14751 export COLLECT_NAMES
14752 fi
14753 _LT_EOF
14754 ;;
14755 esac
14756
14757
14758 ltmain="$ac_aux_dir/ltmain.sh"
14759
14760
14761 # We use sed instead of cat because bash on DJGPP gets confused if
14762 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14763 # text mode, it properly converts lines to CR/LF. This bash problem
14764 # is reportedly fixed, but why not run on old versions too?
14765 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14766 || (rm -f "$cfgfile"; exit 1)
14767
14768 case $xsi_shell in
14769 yes)
14770 cat << \_LT_EOF >> "$cfgfile"
14771
14772 # func_dirname file append nondir_replacement
14773 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14774 # otherwise set result to NONDIR_REPLACEMENT.
14775 func_dirname ()
14776 {
14777 case ${1} in
14778 */*) func_dirname_result="${1%/*}${2}" ;;
14779 * ) func_dirname_result="${3}" ;;
14780 esac
14781 }
14782
14783 # func_basename file
14784 func_basename ()
14785 {
14786 func_basename_result="${1##*/}"
14787 }
14788
14789 # func_dirname_and_basename file append nondir_replacement
14790 # perform func_basename and func_dirname in a single function
14791 # call:
14792 # dirname: Compute the dirname of FILE. If nonempty,
14793 # add APPEND to the result, otherwise set result
14794 # to NONDIR_REPLACEMENT.
14795 # value returned in "$func_dirname_result"
14796 # basename: Compute filename of FILE.
14797 # value retuned in "$func_basename_result"
14798 # Implementation must be kept synchronized with func_dirname
14799 # and func_basename. For efficiency, we do not delegate to
14800 # those functions but instead duplicate the functionality here.
14801 func_dirname_and_basename ()
14802 {
14803 case ${1} in
14804 */*) func_dirname_result="${1%/*}${2}" ;;
14805 * ) func_dirname_result="${3}" ;;
14806 esac
14807 func_basename_result="${1##*/}"
14808 }
14809
14810 # func_stripname prefix suffix name
14811 # strip PREFIX and SUFFIX off of NAME.
14812 # PREFIX and SUFFIX must not contain globbing or regex special
14813 # characters, hashes, percent signs, but SUFFIX may contain a leading
14814 # dot (in which case that matches only a dot).
14815 func_stripname ()
14816 {
14817 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14818 # positional parameters, so assign one to ordinary parameter first.
14819 func_stripname_result=${3}
14820 func_stripname_result=${func_stripname_result#"${1}"}
14821 func_stripname_result=${func_stripname_result%"${2}"}
14822 }
14823
14824 # func_opt_split
14825 func_opt_split ()
14826 {
14827 func_opt_split_opt=${1%%=*}
14828 func_opt_split_arg=${1#*=}
14829 }
14830
14831 # func_lo2o object
14832 func_lo2o ()
14833 {
14834 case ${1} in
14835 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14836 *) func_lo2o_result=${1} ;;
14837 esac
14838 }
14839
14840 # func_xform libobj-or-source
14841 func_xform ()
14842 {
14843 func_xform_result=${1%.*}.lo
14844 }
14845
14846 # func_arith arithmetic-term...
14847 func_arith ()
14848 {
14849 func_arith_result=$(( $* ))
14850 }
14851
14852 # func_len string
14853 # STRING may not start with a hyphen.
14854 func_len ()
14855 {
14856 func_len_result=${#1}
14857 }
14858
14859 _LT_EOF
14860 ;;
14861 *) # Bourne compatible functions.
14862 cat << \_LT_EOF >> "$cfgfile"
14863
14864 # func_dirname file append nondir_replacement
14865 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14866 # otherwise set result to NONDIR_REPLACEMENT.
14867 func_dirname ()
14868 {
14869 # Extract subdirectory from the argument.
14870 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14871 if test "X$func_dirname_result" = "X${1}"; then
14872 func_dirname_result="${3}"
14873 else
14874 func_dirname_result="$func_dirname_result${2}"
14875 fi
14876 }
14877
14878 # func_basename file
14879 func_basename ()
14880 {
14881 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14882 }
14883
14884
14885 # func_stripname prefix suffix name
14886 # strip PREFIX and SUFFIX off of NAME.
14887 # PREFIX and SUFFIX must not contain globbing or regex special
14888 # characters, hashes, percent signs, but SUFFIX may contain a leading
14889 # dot (in which case that matches only a dot).
14890 # func_strip_suffix prefix name
14891 func_stripname ()
14892 {
14893 case ${2} in
14894 .*) func_stripname_result=`$ECHO "X${3}" \
14895 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14896 *) func_stripname_result=`$ECHO "X${3}" \
14897 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14898 esac
14899 }
14900
14901 # sed scripts:
14902 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14903 my_sed_long_arg='1s/^-[^=]*=//'
14904
14905 # func_opt_split
14906 func_opt_split ()
14907 {
14908 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14909 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14910 }
14911
14912 # func_lo2o object
14913 func_lo2o ()
14914 {
14915 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14916 }
14917
14918 # func_xform libobj-or-source
14919 func_xform ()
14920 {
14921 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14922 }
14923
14924 # func_arith arithmetic-term...
14925 func_arith ()
14926 {
14927 func_arith_result=`expr "$@"`
14928 }
14929
14930 # func_len string
14931 # STRING may not start with a hyphen.
14932 func_len ()
14933 {
14934 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14935 }
14936
14937 _LT_EOF
14938 esac
14939
14940 case $lt_shell_append in
14941 yes)
14942 cat << \_LT_EOF >> "$cfgfile"
14943
14944 # func_append var value
14945 # Append VALUE to the end of shell variable VAR.
14946 func_append ()
14947 {
14948 eval "$1+=\$2"
14949 }
14950 _LT_EOF
14951 ;;
14952 *)
14953 cat << \_LT_EOF >> "$cfgfile"
14954
14955 # func_append var value
14956 # Append VALUE to the end of shell variable VAR.
14957 func_append ()
14958 {
14959 eval "$1=\$$1\$2"
14960 }
14961
14962 _LT_EOF
14963 ;;
14964 esac
14965
14966
14967 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14968 || (rm -f "$cfgfile"; exit 1)
14969
14970 mv -f "$cfgfile" "$ofile" ||
14971 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14972 chmod +x "$ofile"
14973
14974 ;;
14975
14976 esac
14977 done # for ac_tag
14978
14979
14980 as_fn_exit 0
14981 _ACEOF
14982 ac_clean_files=$ac_clean_files_save
14983
14984 test $ac_write_fail = 0 ||
14985 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14986
14987
14988 # configure is writing to config.log, and then calls config.status.
14989 # config.status does its own redirection, appending to config.log.
14990 # Unfortunately, on DOS this fails, as config.log is still kept open
14991 # by configure, so config.status won't be able to write to it; its
14992 # output is simply discarded. So we exec the FD to /dev/null,
14993 # effectively closing config.log, so it can be properly (re)opened and
14994 # appended to by config.status. When coming back to configure, we
14995 # need to make the FD available again.
14996 if test "$no_create" != yes; then
14997 ac_cs_success=:
14998 ac_config_status_args=
14999 test "$silent" = yes &&
15000 ac_config_status_args="$ac_config_status_args --quiet"
15001 exec 5>/dev/null
15002 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15003 exec 5>>config.log
15004 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15005 # would make configure fail if this is the last instruction.
15006 $ac_cs_success || as_fn_exit $?
15007 fi
15008 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15010 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15011 fi
15012
15013
15014 echo ""
15015 echo " prefix: $prefix"
15016 echo " exec_prefix: $exec_prefix"
15017 echo " libdir: $libdir"
15018 echo " includedir: $includedir"
15019
15020
15021 echo ""
15022 echo " Kernel modesetting: $DRM_MODE"
15023
15024 echo ""
15025 echo " CFLAGS: $CFLAGS"
15026 echo " CXXFLAGS: $CXXFLAGS"
15027 echo " Macros: $DEFINES"
15028
15029 echo ""
15030 echo " Run '${MAKE-make}' to build xf86-video-ati"
15031 echo ""
15032