configure revision 1.1.1.2 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for xf86-video-geode 2.11.10.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver%2Fgeode>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, 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&component=Driver%2Fgeode
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 STATUS 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=$1; test $as_status -eq 0 && as_status=1
371 if test "$4"; then
372 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
374 fi
375 $as_echo "$as_me: error: $2" >&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, old GNU/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-geode'
704 PACKAGE_TARNAME='xf86-video-geode'
705 PACKAGE_VERSION='2.11.10'
706 PACKAGE_STRING='xf86-video-geode 2.11.10'
707 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver%2Fgeode'
708 PACKAGE_URL='http://www.x.org/wiki/GeodeDriver'
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 I386ARCH_FALSE
753 I386ARCH_TRUE
754 AMD_CFLAGS
755 moduledir
756 PCIACCESS_LIBS
757 PCIACCESS_CFLAGS
758 HAVE_XEXTPROTO_71_FALSE
759 HAVE_XEXTPROTO_71_TRUE
760 XEXT_LIBS
761 XEXT_CFLAGS
762 XORG_LIBS
763 XORG_CFLAGS
764 am__fastdepCCAS_FALSE
765 am__fastdepCCAS_TRUE
766 CCASDEPMODE
767 CCASFLAGS
768 CCAS
769 OTOOL64
770 OTOOL
771 LIPO
772 NMEDIT
773 DSYMUTIL
774 lt_ECHO
775 RANLIB
776 AR
777 OBJDUMP
778 LN_S
779 NM
780 ac_ct_DUMPBIN
781 DUMPBIN
782 LD
783 FGREP
784 LIBTOOL
785 MAINT
786 MAINTAINER_MODE_FALSE
787 MAINTAINER_MODE_TRUE
788 am__fastdepCC_FALSE
789 am__fastdepCC_TRUE
790 CCDEPMODE
791 AMDEPBACKSLASH
792 AMDEP_FALSE
793 AMDEP_TRUE
794 am__quote
795 am__include
796 DEPDIR
797 am__untar
798 am__tar
799 AMTAR
800 am__leading_dot
801 SET_MAKE
802 AWK
803 mkdir_p
804 MKDIR_P
805 INSTALL_STRIP_PROGRAM
806 STRIP
807 install_sh
808 MAKEINFO
809 AUTOHEADER
810 AUTOMAKE
811 AUTOCONF
812 ACLOCAL
813 VERSION
814 PACKAGE
815 CYGPATH_W
816 am__isrc
817 AM_BACKSLASH
818 AM_DEFAULT_VERBOSITY
819 MAN_SUBSTS
820 XORG_MAN_PAGE
821 ADMIN_MAN_DIR
822 DRIVER_MAN_DIR
823 MISC_MAN_DIR
824 FILE_MAN_DIR
825 LIB_MAN_DIR
826 APP_MAN_DIR
827 ADMIN_MAN_SUFFIX
828 DRIVER_MAN_SUFFIX
829 MISC_MAN_SUFFIX
830 FILE_MAN_SUFFIX
831 LIB_MAN_SUFFIX
832 APP_MAN_SUFFIX
833 SED
834 host_os
835 host_vendor
836 host_cpu
837 host
838 build_os
839 build_vendor
840 build_cpu
841 build
842 INSTALL_CMD
843 PKG_CONFIG_LIBDIR
844 PKG_CONFIG_PATH
845 PKG_CONFIG
846 CHANGELOG_CMD
847 CWARNFLAGS
848 EGREP
849 GREP
850 CPP
851 OBJEXT
852 EXEEXT
853 ac_ct_CC
854 CPPFLAGS
855 LDFLAGS
856 CFLAGS
857 CC
858 INSTALL_DATA
859 INSTALL_SCRIPT
860 INSTALL_PROGRAM
861 target_alias
862 host_alias
863 build_alias
864 LIBS
865 ECHO_T
866 ECHO_N
867 ECHO_C
868 DEFS
869 mandir
870 localedir
871 libdir
872 psdir
873 pdfdir
874 dvidir
875 htmldir
876 infodir
877 docdir
878 oldincludedir
879 includedir
880 localstatedir
881 sharedstatedir
882 sysconfdir
883 datadir
884 datarootdir
885 libexecdir
886 sbindir
887 bindir
888 program_transform_name
889 prefix
890 exec_prefix
891 PACKAGE_URL
892 PACKAGE_BUGREPORT
893 PACKAGE_STRING
894 PACKAGE_VERSION
895 PACKAGE_TARNAME
896 PACKAGE_NAME
897 PATH_SEPARATOR
898 SHELL'
899 ac_subst_files=''
900 ac_user_opts='
901 enable_option_checking
902 enable_strict_compilation
903 enable_silent_rules
904 enable_dependency_tracking
905 enable_maintainer_mode
906 enable_static
907 enable_shared
908 with_pic
909 enable_fast_install
910 with_gnu_ld
911 enable_libtool_lock
912 with_xorg_module_dir
913 enable_geodegx_panel
914 enable_werror
915 enable_visibility
916 '
917 ac_precious_vars='build_alias
918 host_alias
919 target_alias
920 CC
921 CFLAGS
922 LDFLAGS
923 LIBS
924 CPPFLAGS
925 CPP
926 PKG_CONFIG
927 PKG_CONFIG_PATH
928 PKG_CONFIG_LIBDIR
929 CCAS
930 CCASFLAGS
931 XORG_CFLAGS
932 XORG_LIBS
933 XEXT_CFLAGS
934 XEXT_LIBS
935 PCIACCESS_CFLAGS
936 PCIACCESS_LIBS'
937
938
939 # Initialize some variables set by options.
940 ac_init_help=
941 ac_init_version=false
942 ac_unrecognized_opts=
943 ac_unrecognized_sep=
944 # The variables have the same names as the options, with
945 # dashes changed to underlines.
946 cache_file=/dev/null
947 exec_prefix=NONE
948 no_create=
949 no_recursion=
950 prefix=NONE
951 program_prefix=NONE
952 program_suffix=NONE
953 program_transform_name=s,x,x,
954 silent=
955 site=
956 srcdir=
957 verbose=
958 x_includes=NONE
959 x_libraries=NONE
960
961 # Installation directory options.
962 # These are left unexpanded so users can "make install exec_prefix=/foo"
963 # and all the variables that are supposed to be based on exec_prefix
964 # by default will actually change.
965 # Use braces instead of parens because sh, perl, etc. also accept them.
966 # (The list follows the same order as the GNU Coding Standards.)
967 bindir='${exec_prefix}/bin'
968 sbindir='${exec_prefix}/sbin'
969 libexecdir='${exec_prefix}/libexec'
970 datarootdir='${prefix}/share'
971 datadir='${datarootdir}'
972 sysconfdir='${prefix}/etc'
973 sharedstatedir='${prefix}/com'
974 localstatedir='${prefix}/var'
975 includedir='${prefix}/include'
976 oldincludedir='/usr/include'
977 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
978 infodir='${datarootdir}/info'
979 htmldir='${docdir}'
980 dvidir='${docdir}'
981 pdfdir='${docdir}'
982 psdir='${docdir}'
983 libdir='${exec_prefix}/lib'
984 localedir='${datarootdir}/locale'
985 mandir='${datarootdir}/man'
986
987 ac_prev=
988 ac_dashdash=
989 for ac_option
990 do
991 # If the previous option needs an argument, assign it.
992 if test -n "$ac_prev"; then
993 eval $ac_prev=\$ac_option
994 ac_prev=
995 continue
996 fi
997
998 case $ac_option in
999 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1000 *=) ac_optarg= ;;
1001 *) ac_optarg=yes ;;
1002 esac
1003
1004 # Accept the important Cygnus configure options, so we can diagnose typos.
1005
1006 case $ac_dashdash$ac_option in
1007 --)
1008 ac_dashdash=yes ;;
1009
1010 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1011 ac_prev=bindir ;;
1012 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1013 bindir=$ac_optarg ;;
1014
1015 -build | --build | --buil | --bui | --bu)
1016 ac_prev=build_alias ;;
1017 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1018 build_alias=$ac_optarg ;;
1019
1020 -cache-file | --cache-file | --cache-fil | --cache-fi \
1021 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1022 ac_prev=cache_file ;;
1023 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1024 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1025 cache_file=$ac_optarg ;;
1026
1027 --config-cache | -C)
1028 cache_file=config.cache ;;
1029
1030 -datadir | --datadir | --datadi | --datad)
1031 ac_prev=datadir ;;
1032 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1033 datadir=$ac_optarg ;;
1034
1035 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1036 | --dataroo | --dataro | --datar)
1037 ac_prev=datarootdir ;;
1038 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1039 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1040 datarootdir=$ac_optarg ;;
1041
1042 -disable-* | --disable-*)
1043 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1046 as_fn_error $? "invalid feature name: $ac_useropt"
1047 ac_useropt_orig=$ac_useropt
1048 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1049 case $ac_user_opts in
1050 *"
1051 "enable_$ac_useropt"
1052 "*) ;;
1053 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1054 ac_unrecognized_sep=', ';;
1055 esac
1056 eval enable_$ac_useropt=no ;;
1057
1058 -docdir | --docdir | --docdi | --doc | --do)
1059 ac_prev=docdir ;;
1060 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1061 docdir=$ac_optarg ;;
1062
1063 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1064 ac_prev=dvidir ;;
1065 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1066 dvidir=$ac_optarg ;;
1067
1068 -enable-* | --enable-*)
1069 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1072 as_fn_error $? "invalid feature name: $ac_useropt"
1073 ac_useropt_orig=$ac_useropt
1074 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1076 *"
1077 "enable_$ac_useropt"
1078 "*) ;;
1079 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1080 ac_unrecognized_sep=', ';;
1081 esac
1082 eval enable_$ac_useropt=\$ac_optarg ;;
1083
1084 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1085 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1086 | --exec | --exe | --ex)
1087 ac_prev=exec_prefix ;;
1088 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1089 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1090 | --exec=* | --exe=* | --ex=*)
1091 exec_prefix=$ac_optarg ;;
1092
1093 -gas | --gas | --ga | --g)
1094 # Obsolete; use --with-gas.
1095 with_gas=yes ;;
1096
1097 -help | --help | --hel | --he | -h)
1098 ac_init_help=long ;;
1099 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1100 ac_init_help=recursive ;;
1101 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1102 ac_init_help=short ;;
1103
1104 -host | --host | --hos | --ho)
1105 ac_prev=host_alias ;;
1106 -host=* | --host=* | --hos=* | --ho=*)
1107 host_alias=$ac_optarg ;;
1108
1109 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1110 ac_prev=htmldir ;;
1111 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1112 | --ht=*)
1113 htmldir=$ac_optarg ;;
1114
1115 -includedir | --includedir | --includedi | --included | --include \
1116 | --includ | --inclu | --incl | --inc)
1117 ac_prev=includedir ;;
1118 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1119 | --includ=* | --inclu=* | --incl=* | --inc=*)
1120 includedir=$ac_optarg ;;
1121
1122 -infodir | --infodir | --infodi | --infod | --info | --inf)
1123 ac_prev=infodir ;;
1124 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1125 infodir=$ac_optarg ;;
1126
1127 -libdir | --libdir | --libdi | --libd)
1128 ac_prev=libdir ;;
1129 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1130 libdir=$ac_optarg ;;
1131
1132 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1133 | --libexe | --libex | --libe)
1134 ac_prev=libexecdir ;;
1135 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1136 | --libexe=* | --libex=* | --libe=*)
1137 libexecdir=$ac_optarg ;;
1138
1139 -localedir | --localedir | --localedi | --localed | --locale)
1140 ac_prev=localedir ;;
1141 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1142 localedir=$ac_optarg ;;
1143
1144 -localstatedir | --localstatedir | --localstatedi | --localstated \
1145 | --localstate | --localstat | --localsta | --localst | --locals)
1146 ac_prev=localstatedir ;;
1147 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1148 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1149 localstatedir=$ac_optarg ;;
1150
1151 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1152 ac_prev=mandir ;;
1153 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1154 mandir=$ac_optarg ;;
1155
1156 -nfp | --nfp | --nf)
1157 # Obsolete; use --without-fp.
1158 with_fp=no ;;
1159
1160 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1161 | --no-cr | --no-c | -n)
1162 no_create=yes ;;
1163
1164 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1165 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1166 no_recursion=yes ;;
1167
1168 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1169 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1170 | --oldin | --oldi | --old | --ol | --o)
1171 ac_prev=oldincludedir ;;
1172 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1173 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1174 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1175 oldincludedir=$ac_optarg ;;
1176
1177 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1178 ac_prev=prefix ;;
1179 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1180 prefix=$ac_optarg ;;
1181
1182 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1183 | --program-pre | --program-pr | --program-p)
1184 ac_prev=program_prefix ;;
1185 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1186 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1187 program_prefix=$ac_optarg ;;
1188
1189 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1190 | --program-suf | --program-su | --program-s)
1191 ac_prev=program_suffix ;;
1192 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1193 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1194 program_suffix=$ac_optarg ;;
1195
1196 -program-transform-name | --program-transform-name \
1197 | --program-transform-nam | --program-transform-na \
1198 | --program-transform-n | --program-transform- \
1199 | --program-transform | --program-transfor \
1200 | --program-transfo | --program-transf \
1201 | --program-trans | --program-tran \
1202 | --progr-tra | --program-tr | --program-t)
1203 ac_prev=program_transform_name ;;
1204 -program-transform-name=* | --program-transform-name=* \
1205 | --program-transform-nam=* | --program-transform-na=* \
1206 | --program-transform-n=* | --program-transform-=* \
1207 | --program-transform=* | --program-transfor=* \
1208 | --program-transfo=* | --program-transf=* \
1209 | --program-trans=* | --program-tran=* \
1210 | --progr-tra=* | --program-tr=* | --program-t=*)
1211 program_transform_name=$ac_optarg ;;
1212
1213 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1214 ac_prev=pdfdir ;;
1215 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1216 pdfdir=$ac_optarg ;;
1217
1218 -psdir | --psdir | --psdi | --psd | --ps)
1219 ac_prev=psdir ;;
1220 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1221 psdir=$ac_optarg ;;
1222
1223 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1224 | -silent | --silent | --silen | --sile | --sil)
1225 silent=yes ;;
1226
1227 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1228 ac_prev=sbindir ;;
1229 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1230 | --sbi=* | --sb=*)
1231 sbindir=$ac_optarg ;;
1232
1233 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1234 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1235 | --sharedst | --shareds | --shared | --share | --shar \
1236 | --sha | --sh)
1237 ac_prev=sharedstatedir ;;
1238 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1239 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1240 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1241 | --sha=* | --sh=*)
1242 sharedstatedir=$ac_optarg ;;
1243
1244 -site | --site | --sit)
1245 ac_prev=site ;;
1246 -site=* | --site=* | --sit=*)
1247 site=$ac_optarg ;;
1248
1249 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1250 ac_prev=srcdir ;;
1251 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1252 srcdir=$ac_optarg ;;
1253
1254 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1255 | --syscon | --sysco | --sysc | --sys | --sy)
1256 ac_prev=sysconfdir ;;
1257 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1258 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1259 sysconfdir=$ac_optarg ;;
1260
1261 -target | --target | --targe | --targ | --tar | --ta | --t)
1262 ac_prev=target_alias ;;
1263 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1264 target_alias=$ac_optarg ;;
1265
1266 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1267 verbose=yes ;;
1268
1269 -version | --version | --versio | --versi | --vers | -V)
1270 ac_init_version=: ;;
1271
1272 -with-* | --with-*)
1273 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1276 as_fn_error $? "invalid package name: $ac_useropt"
1277 ac_useropt_orig=$ac_useropt
1278 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279 case $ac_user_opts in
1280 *"
1281 "with_$ac_useropt"
1282 "*) ;;
1283 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1284 ac_unrecognized_sep=', ';;
1285 esac
1286 eval with_$ac_useropt=\$ac_optarg ;;
1287
1288 -without-* | --without-*)
1289 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1290 # Reject names that are not valid shell variable names.
1291 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1292 as_fn_error $? "invalid package name: $ac_useropt"
1293 ac_useropt_orig=$ac_useropt
1294 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1295 case $ac_user_opts in
1296 *"
1297 "with_$ac_useropt"
1298 "*) ;;
1299 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1300 ac_unrecognized_sep=', ';;
1301 esac
1302 eval with_$ac_useropt=no ;;
1303
1304 --x)
1305 # Obsolete; use --with-x.
1306 with_x=yes ;;
1307
1308 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1309 | --x-incl | --x-inc | --x-in | --x-i)
1310 ac_prev=x_includes ;;
1311 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1312 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1313 x_includes=$ac_optarg ;;
1314
1315 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1316 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1317 ac_prev=x_libraries ;;
1318 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1319 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1320 x_libraries=$ac_optarg ;;
1321
1322 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1323 Try \`$0 --help' for more information"
1324 ;;
1325
1326 *=*)
1327 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1328 # Reject names that are not valid shell variable names.
1329 case $ac_envvar in #(
1330 '' | [0-9]* | *[!_$as_cr_alnum]* )
1331 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1332 esac
1333 eval $ac_envvar=\$ac_optarg
1334 export $ac_envvar ;;
1335
1336 *)
1337 # FIXME: should be removed in autoconf 3.0.
1338 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1339 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1340 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1341 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1342 ;;
1343
1344 esac
1345 done
1346
1347 if test -n "$ac_prev"; then
1348 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1349 as_fn_error $? "missing argument to $ac_option"
1350 fi
1351
1352 if test -n "$ac_unrecognized_opts"; then
1353 case $enable_option_checking in
1354 no) ;;
1355 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1356 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1357 esac
1358 fi
1359
1360 # Check all directory arguments for consistency.
1361 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1362 datadir sysconfdir sharedstatedir localstatedir includedir \
1363 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1364 libdir localedir mandir
1365 do
1366 eval ac_val=\$$ac_var
1367 # Remove trailing slashes.
1368 case $ac_val in
1369 */ )
1370 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1371 eval $ac_var=\$ac_val;;
1372 esac
1373 # Be sure to have absolute directory names.
1374 case $ac_val in
1375 [\\/$]* | ?:[\\/]* ) continue;;
1376 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1377 esac
1378 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1379 done
1380
1381 # There might be people who depend on the old broken behavior: `$host'
1382 # used to hold the argument of --host etc.
1383 # FIXME: To remove some day.
1384 build=$build_alias
1385 host=$host_alias
1386 target=$target_alias
1387
1388 # FIXME: To remove some day.
1389 if test "x$host_alias" != x; then
1390 if test "x$build_alias" = x; then
1391 cross_compiling=maybe
1392 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1393 If a cross compiler is detected then cross compile mode will be used" >&2
1394 elif test "x$build_alias" != "x$host_alias"; then
1395 cross_compiling=yes
1396 fi
1397 fi
1398
1399 ac_tool_prefix=
1400 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1401
1402 test "$silent" = yes && exec 6>/dev/null
1403
1404
1405 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1406 ac_ls_di=`ls -di .` &&
1407 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1408 as_fn_error $? "working directory cannot be determined"
1409 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1410 as_fn_error $? "pwd does not report name of working directory"
1411
1412
1413 # Find the source files, if location was not specified.
1414 if test -z "$srcdir"; then
1415 ac_srcdir_defaulted=yes
1416 # Try the directory containing this script, then the parent directory.
1417 ac_confdir=`$as_dirname -- "$as_myself" ||
1418 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1419 X"$as_myself" : 'X\(//\)[^/]' \| \
1420 X"$as_myself" : 'X\(//\)$' \| \
1421 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1422 $as_echo X"$as_myself" |
1423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1424 s//\1/
1425 q
1426 }
1427 /^X\(\/\/\)[^/].*/{
1428 s//\1/
1429 q
1430 }
1431 /^X\(\/\/\)$/{
1432 s//\1/
1433 q
1434 }
1435 /^X\(\/\).*/{
1436 s//\1/
1437 q
1438 }
1439 s/.*/./; q'`
1440 srcdir=$ac_confdir
1441 if test ! -r "$srcdir/$ac_unique_file"; then
1442 srcdir=..
1443 fi
1444 else
1445 ac_srcdir_defaulted=no
1446 fi
1447 if test ! -r "$srcdir/$ac_unique_file"; then
1448 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1449 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1450 fi
1451 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1452 ac_abs_confdir=`(
1453 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1454 pwd)`
1455 # When building in place, set srcdir=.
1456 if test "$ac_abs_confdir" = "$ac_pwd"; then
1457 srcdir=.
1458 fi
1459 # Remove unnecessary trailing slashes from srcdir.
1460 # Double slashes in file names in object file debugging info
1461 # mess up M-x gdb in Emacs.
1462 case $srcdir in
1463 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1464 esac
1465 for ac_var in $ac_precious_vars; do
1466 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1467 eval ac_env_${ac_var}_value=\$${ac_var}
1468 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1469 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1470 done
1471
1472 #
1473 # Report the --help message.
1474 #
1475 if test "$ac_init_help" = "long"; then
1476 # Omit some internal or obsolete options to make the list less imposing.
1477 # This message is too long to be a string in the A/UX 3.1 sh.
1478 cat <<_ACEOF
1479 \`configure' configures xf86-video-geode 2.11.10 to adapt to many kinds of systems.
1480
1481 Usage: $0 [OPTION]... [VAR=VALUE]...
1482
1483 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1484 VAR=VALUE. See below for descriptions of some of the useful variables.
1485
1486 Defaults for the options are specified in brackets.
1487
1488 Configuration:
1489 -h, --help display this help and exit
1490 --help=short display options specific to this package
1491 --help=recursive display the short help of all the included packages
1492 -V, --version display version information and exit
1493 -q, --quiet, --silent do not print \`checking ...' messages
1494 --cache-file=FILE cache test results in FILE [disabled]
1495 -C, --config-cache alias for \`--cache-file=config.cache'
1496 -n, --no-create do not create output files
1497 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1498
1499 Installation directories:
1500 --prefix=PREFIX install architecture-independent files in PREFIX
1501 [$ac_default_prefix]
1502 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1503 [PREFIX]
1504
1505 By default, \`make install' will install all the files in
1506 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1507 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1508 for instance \`--prefix=\$HOME'.
1509
1510 For better control, use the options below.
1511
1512 Fine tuning of the installation directories:
1513 --bindir=DIR user executables [EPREFIX/bin]
1514 --sbindir=DIR system admin executables [EPREFIX/sbin]
1515 --libexecdir=DIR program executables [EPREFIX/libexec]
1516 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1517 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1518 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1519 --libdir=DIR object code libraries [EPREFIX/lib]
1520 --includedir=DIR C header files [PREFIX/include]
1521 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1522 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1523 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1524 --infodir=DIR info documentation [DATAROOTDIR/info]
1525 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1526 --mandir=DIR man documentation [DATAROOTDIR/man]
1527 --docdir=DIR documentation root
1528 [DATAROOTDIR/doc/xf86-video-geode]
1529 --htmldir=DIR html documentation [DOCDIR]
1530 --dvidir=DIR dvi documentation [DOCDIR]
1531 --pdfdir=DIR pdf documentation [DOCDIR]
1532 --psdir=DIR ps documentation [DOCDIR]
1533 _ACEOF
1534
1535 cat <<\_ACEOF
1536
1537 Program names:
1538 --program-prefix=PREFIX prepend PREFIX to installed program names
1539 --program-suffix=SUFFIX append SUFFIX to installed program names
1540 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1541
1542 System types:
1543 --build=BUILD configure for building on BUILD [guessed]
1544 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1545 _ACEOF
1546 fi
1547
1548 if test -n "$ac_init_help"; then
1549 case $ac_init_help in
1550 short | recursive ) echo "Configuration of xf86-video-geode 2.11.10:";;
1551 esac
1552 cat <<\_ACEOF
1553
1554 Optional Features:
1555 --disable-option-checking ignore unrecognized --enable/--with options
1556 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1557 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1558 --enable-strict-compilation
1559 Enable all warnings from compiler and make them
1560 errors (default: disabled)
1561 --enable-silent-rules less verbose build output (undo: `make V=1')
1562 --disable-silent-rules verbose build output (undo: `make V=0')
1563 --disable-dependency-tracking speeds up one-time build
1564 --enable-dependency-tracking do not reject slow dependency extractors
1565 --enable-maintainer-mode enable make rules and dependencies not useful
1566 (and sometimes confusing) to the casual installer
1567 --enable-static[=PKGS] build static libraries [default=no]
1568 --enable-shared[=PKGS] build shared libraries [default=yes]
1569 --enable-fast-install[=PKGS]
1570 optimize for fast installation [default=yes]
1571 --disable-libtool-lock avoid locking (might break parallel builds)
1572 --disable-geodegx-panel Disable support for flatpanels with the Geode GX
1573 --enable-werror Treat warnings as errors (default: disabled)
1574 --enable-visibility Enable GCC visibility optimizations
1575
1576 Optional Packages:
1577 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1578 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1579 --with-pic try to use only PIC/non-PIC objects [default=use
1580 both]
1581 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1582 --with-xorg-module-dir=DIR
1583 Default xorg module directory
1584 [[default=$libdir/xorg/modules]]
1585
1586 Some influential environment variables:
1587 CC C compiler command
1588 CFLAGS C compiler flags
1589 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1590 nonstandard directory <lib dir>
1591 LIBS libraries to pass to the linker, e.g. -l<library>
1592 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1593 you have headers in a nonstandard directory <include dir>
1594 CPP C preprocessor
1595 PKG_CONFIG path to pkg-config utility
1596 PKG_CONFIG_PATH
1597 directories to add to pkg-config's search path
1598 PKG_CONFIG_LIBDIR
1599 path overriding pkg-config's built-in search path
1600 CCAS assembler compiler command (defaults to CC)
1601 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1602 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1603 XORG_LIBS linker flags for XORG, overriding pkg-config
1604 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1605 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1606 PCIACCESS_CFLAGS
1607 C compiler flags for PCIACCESS, overriding pkg-config
1608 PCIACCESS_LIBS
1609 linker flags for PCIACCESS, overriding pkg-config
1610
1611 Use these variables to override the choices made by `configure' or to help
1612 it to find libraries and programs with nonstandard names/locations.
1613
1614 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver%2Fgeode>.
1615 xf86-video-geode home page: <http://www.x.org/wiki/GeodeDriver>.
1616 _ACEOF
1617 ac_status=$?
1618 fi
1619
1620 if test "$ac_init_help" = "recursive"; then
1621 # If there are subdirs, report their specific --help.
1622 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1623 test -d "$ac_dir" ||
1624 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1625 continue
1626 ac_builddir=.
1627
1628 case "$ac_dir" in
1629 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1630 *)
1631 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1632 # A ".." for each directory in $ac_dir_suffix.
1633 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1634 case $ac_top_builddir_sub in
1635 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1636 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1637 esac ;;
1638 esac
1639 ac_abs_top_builddir=$ac_pwd
1640 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1641 # for backward compatibility:
1642 ac_top_builddir=$ac_top_build_prefix
1643
1644 case $srcdir in
1645 .) # We are building in place.
1646 ac_srcdir=.
1647 ac_top_srcdir=$ac_top_builddir_sub
1648 ac_abs_top_srcdir=$ac_pwd ;;
1649 [\\/]* | ?:[\\/]* ) # Absolute name.
1650 ac_srcdir=$srcdir$ac_dir_suffix;
1651 ac_top_srcdir=$srcdir
1652 ac_abs_top_srcdir=$srcdir ;;
1653 *) # Relative name.
1654 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1655 ac_top_srcdir=$ac_top_build_prefix$srcdir
1656 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1657 esac
1658 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1659
1660 cd "$ac_dir" || { ac_status=$?; continue; }
1661 # Check for guested configure.
1662 if test -f "$ac_srcdir/configure.gnu"; then
1663 echo &&
1664 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1665 elif test -f "$ac_srcdir/configure"; then
1666 echo &&
1667 $SHELL "$ac_srcdir/configure" --help=recursive
1668 else
1669 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1670 fi || ac_status=$?
1671 cd "$ac_pwd" || { ac_status=$?; break; }
1672 done
1673 fi
1674
1675 test -n "$ac_init_help" && exit $ac_status
1676 if $ac_init_version; then
1677 cat <<\_ACEOF
1678 xf86-video-geode configure 2.11.10
1679 generated by GNU Autoconf 2.67
1680
1681 Copyright (C) 2010 Free Software Foundation, Inc.
1682 This configure script is free software; the Free Software Foundation
1683 gives unlimited permission to copy, distribute and modify it.
1684 _ACEOF
1685 exit
1686 fi
1687
1688 ## ------------------------ ##
1689 ## Autoconf initialization. ##
1690 ## ------------------------ ##
1691
1692 # ac_fn_c_try_compile LINENO
1693 # --------------------------
1694 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1695 ac_fn_c_try_compile ()
1696 {
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 rm -f conftest.$ac_objext
1699 if { { ac_try="$ac_compile"
1700 case "(($ac_try" in
1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702 *) ac_try_echo=$ac_try;;
1703 esac
1704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705 $as_echo "$ac_try_echo"; } >&5
1706 (eval "$ac_compile") 2>conftest.err
1707 ac_status=$?
1708 if test -s conftest.err; then
1709 grep -v '^ *+' conftest.err >conftest.er1
1710 cat conftest.er1 >&5
1711 mv -f conftest.er1 conftest.err
1712 fi
1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714 test $ac_status = 0; } && {
1715 test -z "$ac_c_werror_flag" ||
1716 test ! -s conftest.err
1717 } && test -s conftest.$ac_objext; then :
1718 ac_retval=0
1719 else
1720 $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1722
1723 ac_retval=1
1724 fi
1725 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1726 as_fn_set_status $ac_retval
1727
1728 } # ac_fn_c_try_compile
1729
1730 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1731 # ---------------------------------------------
1732 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1733 # accordingly.
1734 ac_fn_c_check_decl ()
1735 {
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 as_decl_name=`echo $2|sed 's/ *(.*//'`
1738 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1740 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1741 if eval "test \"\${$3+set}\"" = set; then :
1742 $as_echo_n "(cached) " >&6
1743 else
1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h. */
1746 $4
1747 int
1748 main ()
1749 {
1750 #ifndef $as_decl_name
1751 #ifdef __cplusplus
1752 (void) $as_decl_use;
1753 #else
1754 (void) $as_decl_name;
1755 #endif
1756 #endif
1757
1758 ;
1759 return 0;
1760 }
1761 _ACEOF
1762 if ac_fn_c_try_compile "$LINENO"; then :
1763 eval "$3=yes"
1764 else
1765 eval "$3=no"
1766 fi
1767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1768 fi
1769 eval ac_res=\$$3
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1771 $as_echo "$ac_res" >&6; }
1772 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1773
1774 } # ac_fn_c_check_decl
1775
1776 # ac_fn_c_try_cpp LINENO
1777 # ----------------------
1778 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1779 ac_fn_c_try_cpp ()
1780 {
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 if { { ac_try="$ac_cpp conftest.$ac_ext"
1783 case "(($ac_try" in
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1786 esac
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1790 ac_status=$?
1791 if test -s conftest.err; then
1792 grep -v '^ *+' conftest.err >conftest.er1
1793 cat conftest.er1 >&5
1794 mv -f conftest.er1 conftest.err
1795 fi
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } > conftest.i && {
1798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1799 test ! -s conftest.err
1800 }; then :
1801 ac_retval=0
1802 else
1803 $as_echo "$as_me: failed program was:" >&5
1804 sed 's/^/| /' conftest.$ac_ext >&5
1805
1806 ac_retval=1
1807 fi
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809 as_fn_set_status $ac_retval
1810
1811 } # ac_fn_c_try_cpp
1812
1813 # ac_fn_c_try_run LINENO
1814 # ----------------------
1815 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1816 # that executables *can* be run.
1817 ac_fn_c_try_run ()
1818 {
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 if { { ac_try="$ac_link"
1821 case "(($ac_try" in
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1824 esac
1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826 $as_echo "$ac_try_echo"; } >&5
1827 (eval "$ac_link") 2>&5
1828 ac_status=$?
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1831 { { case "(($ac_try" in
1832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1833 *) ac_try_echo=$ac_try;;
1834 esac
1835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836 $as_echo "$ac_try_echo"; } >&5
1837 (eval "$ac_try") 2>&5
1838 ac_status=$?
1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840 test $ac_status = 0; }; }; then :
1841 ac_retval=0
1842 else
1843 $as_echo "$as_me: program exited with status $ac_status" >&5
1844 $as_echo "$as_me: failed program was:" >&5
1845 sed 's/^/| /' conftest.$ac_ext >&5
1846
1847 ac_retval=$ac_status
1848 fi
1849 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1850 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1851 as_fn_set_status $ac_retval
1852
1853 } # ac_fn_c_try_run
1854
1855 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1856 # -------------------------------------------------------
1857 # Tests whether HEADER exists and can be compiled using the include files in
1858 # INCLUDES, setting the cache variable VAR accordingly.
1859 ac_fn_c_check_header_compile ()
1860 {
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1863 $as_echo_n "checking for $2... " >&6; }
1864 if eval "test \"\${$3+set}\"" = set; then :
1865 $as_echo_n "(cached) " >&6
1866 else
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h. */
1869 $4
1870 #include <$2>
1871 _ACEOF
1872 if ac_fn_c_try_compile "$LINENO"; then :
1873 eval "$3=yes"
1874 else
1875 eval "$3=no"
1876 fi
1877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1878 fi
1879 eval ac_res=\$$3
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881 $as_echo "$ac_res" >&6; }
1882 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1883
1884 } # ac_fn_c_check_header_compile
1885
1886 # ac_fn_c_try_link LINENO
1887 # -----------------------
1888 # Try to link conftest.$ac_ext, and return whether this succeeded.
1889 ac_fn_c_try_link ()
1890 {
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 rm -f conftest.$ac_objext conftest$ac_exeext
1893 if { { ac_try="$ac_link"
1894 case "(($ac_try" in
1895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896 *) ac_try_echo=$ac_try;;
1897 esac
1898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899 $as_echo "$ac_try_echo"; } >&5
1900 (eval "$ac_link") 2>conftest.err
1901 ac_status=$?
1902 if test -s conftest.err; then
1903 grep -v '^ *+' conftest.err >conftest.er1
1904 cat conftest.er1 >&5
1905 mv -f conftest.er1 conftest.err
1906 fi
1907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908 test $ac_status = 0; } && {
1909 test -z "$ac_c_werror_flag" ||
1910 test ! -s conftest.err
1911 } && test -s conftest$ac_exeext && {
1912 test "$cross_compiling" = yes ||
1913 $as_test_x conftest$ac_exeext
1914 }; then :
1915 ac_retval=0
1916 else
1917 $as_echo "$as_me: failed program was:" >&5
1918 sed 's/^/| /' conftest.$ac_ext >&5
1919
1920 ac_retval=1
1921 fi
1922 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1923 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1924 # interfere with the next link command; also delete a directory that is
1925 # left behind by Apple's compiler. We do this before executing the actions.
1926 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1927 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1928 as_fn_set_status $ac_retval
1929
1930 } # ac_fn_c_try_link
1931
1932 # ac_fn_c_check_func LINENO FUNC VAR
1933 # ----------------------------------
1934 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1935 ac_fn_c_check_func ()
1936 {
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939 $as_echo_n "checking for $2... " >&6; }
1940 if eval "test \"\${$3+set}\"" = set; then :
1941 $as_echo_n "(cached) " >&6
1942 else
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1945 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1947 #define $2 innocuous_$2
1948
1949 /* System header to define __stub macros and hopefully few prototypes,
1950 which can conflict with char $2 (); below.
1951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1952 <limits.h> exists even on freestanding compilers. */
1953
1954 #ifdef __STDC__
1955 # include <limits.h>
1956 #else
1957 # include <assert.h>
1958 #endif
1959
1960 #undef $2
1961
1962 /* Override any GCC internal prototype to avoid an error.
1963 Use char because int might match the return type of a GCC
1964 builtin and then its argument prototype would still apply. */
1965 #ifdef __cplusplus
1966 extern "C"
1967 #endif
1968 char $2 ();
1969 /* The GNU C library defines this for functions which it implements
1970 to always fail with ENOSYS. Some functions are actually named
1971 something starting with __ and the normal name is an alias. */
1972 #if defined __stub_$2 || defined __stub___$2
1973 choke me
1974 #endif
1975
1976 int
1977 main ()
1978 {
1979 return $2 ();
1980 ;
1981 return 0;
1982 }
1983 _ACEOF
1984 if ac_fn_c_try_link "$LINENO"; then :
1985 eval "$3=yes"
1986 else
1987 eval "$3=no"
1988 fi
1989 rm -f core conftest.err conftest.$ac_objext \
1990 conftest$ac_exeext conftest.$ac_ext
1991 fi
1992 eval ac_res=\$$3
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994 $as_echo "$ac_res" >&6; }
1995 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1996
1997 } # ac_fn_c_check_func
1998 cat >config.log <<_ACEOF
1999 This file contains any messages produced by compilers while
2000 running configure, to aid debugging if configure makes a mistake.
2001
2002 It was created by xf86-video-geode $as_me 2.11.10, which was
2003 generated by GNU Autoconf 2.67. Invocation command line was
2004
2005 $ $0 $@
2006
2007 _ACEOF
2008 exec 5>>config.log
2009 {
2010 cat <<_ASUNAME
2011 ## --------- ##
2012 ## Platform. ##
2013 ## --------- ##
2014
2015 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2016 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2017 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2018 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2019 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2020
2021 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2022 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2023
2024 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2025 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2026 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2027 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2028 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2029 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2030 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2031
2032 _ASUNAME
2033
2034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2035 for as_dir in $PATH
2036 do
2037 IFS=$as_save_IFS
2038 test -z "$as_dir" && as_dir=.
2039 $as_echo "PATH: $as_dir"
2040 done
2041 IFS=$as_save_IFS
2042
2043 } >&5
2044
2045 cat >&5 <<_ACEOF
2046
2047
2048 ## ----------- ##
2049 ## Core tests. ##
2050 ## ----------- ##
2051
2052 _ACEOF
2053
2054
2055 # Keep a trace of the command line.
2056 # Strip out --no-create and --no-recursion so they do not pile up.
2057 # Strip out --silent because we don't want to record it for future runs.
2058 # Also quote any args containing shell meta-characters.
2059 # Make two passes to allow for proper duplicate-argument suppression.
2060 ac_configure_args=
2061 ac_configure_args0=
2062 ac_configure_args1=
2063 ac_must_keep_next=false
2064 for ac_pass in 1 2
2065 do
2066 for ac_arg
2067 do
2068 case $ac_arg in
2069 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2071 | -silent | --silent | --silen | --sile | --sil)
2072 continue ;;
2073 *\'*)
2074 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2075 esac
2076 case $ac_pass in
2077 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2078 2)
2079 as_fn_append ac_configure_args1 " '$ac_arg'"
2080 if test $ac_must_keep_next = true; then
2081 ac_must_keep_next=false # Got value, back to normal.
2082 else
2083 case $ac_arg in
2084 *=* | --config-cache | -C | -disable-* | --disable-* \
2085 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2086 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2087 | -with-* | --with-* | -without-* | --without-* | --x)
2088 case "$ac_configure_args0 " in
2089 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2090 esac
2091 ;;
2092 -* ) ac_must_keep_next=true ;;
2093 esac
2094 fi
2095 as_fn_append ac_configure_args " '$ac_arg'"
2096 ;;
2097 esac
2098 done
2099 done
2100 { ac_configure_args0=; unset ac_configure_args0;}
2101 { ac_configure_args1=; unset ac_configure_args1;}
2102
2103 # When interrupted or exit'd, cleanup temporary files, and complete
2104 # config.log. We remove comments because anyway the quotes in there
2105 # would cause problems or look ugly.
2106 # WARNING: Use '\'' to represent an apostrophe within the trap.
2107 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2108 trap 'exit_status=$?
2109 # Save into config.log some information that might help in debugging.
2110 {
2111 echo
2112
2113 $as_echo "## ---------------- ##
2114 ## Cache variables. ##
2115 ## ---------------- ##"
2116 echo
2117 # The following way of writing the cache mishandles newlines in values,
2118 (
2119 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2120 eval ac_val=\$$ac_var
2121 case $ac_val in #(
2122 *${as_nl}*)
2123 case $ac_var in #(
2124 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2125 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2126 esac
2127 case $ac_var in #(
2128 _ | IFS | as_nl) ;; #(
2129 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2130 *) { eval $ac_var=; unset $ac_var;} ;;
2131 esac ;;
2132 esac
2133 done
2134 (set) 2>&1 |
2135 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2136 *${as_nl}ac_space=\ *)
2137 sed -n \
2138 "s/'\''/'\''\\\\'\'''\''/g;
2139 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2140 ;; #(
2141 *)
2142 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2143 ;;
2144 esac |
2145 sort
2146 )
2147 echo
2148
2149 $as_echo "## ----------------- ##
2150 ## Output variables. ##
2151 ## ----------------- ##"
2152 echo
2153 for ac_var in $ac_subst_vars
2154 do
2155 eval ac_val=\$$ac_var
2156 case $ac_val in
2157 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2158 esac
2159 $as_echo "$ac_var='\''$ac_val'\''"
2160 done | sort
2161 echo
2162
2163 if test -n "$ac_subst_files"; then
2164 $as_echo "## ------------------- ##
2165 ## File substitutions. ##
2166 ## ------------------- ##"
2167 echo
2168 for ac_var in $ac_subst_files
2169 do
2170 eval ac_val=\$$ac_var
2171 case $ac_val in
2172 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2173 esac
2174 $as_echo "$ac_var='\''$ac_val'\''"
2175 done | sort
2176 echo
2177 fi
2178
2179 if test -s confdefs.h; then
2180 $as_echo "## ----------- ##
2181 ## confdefs.h. ##
2182 ## ----------- ##"
2183 echo
2184 cat confdefs.h
2185 echo
2186 fi
2187 test "$ac_signal" != 0 &&
2188 $as_echo "$as_me: caught signal $ac_signal"
2189 $as_echo "$as_me: exit $exit_status"
2190 } >&5
2191 rm -f core *.core core.conftest.* &&
2192 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2193 exit $exit_status
2194 ' 0
2195 for ac_signal in 1 2 13 15; do
2196 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2197 done
2198 ac_signal=0
2199
2200 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2201 rm -f -r conftest* confdefs.h
2202
2203 $as_echo "/* confdefs.h */" > confdefs.h
2204
2205 # Predefined preprocessor variables.
2206
2207 cat >>confdefs.h <<_ACEOF
2208 #define PACKAGE_NAME "$PACKAGE_NAME"
2209 _ACEOF
2210
2211 cat >>confdefs.h <<_ACEOF
2212 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2213 _ACEOF
2214
2215 cat >>confdefs.h <<_ACEOF
2216 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2217 _ACEOF
2218
2219 cat >>confdefs.h <<_ACEOF
2220 #define PACKAGE_STRING "$PACKAGE_STRING"
2221 _ACEOF
2222
2223 cat >>confdefs.h <<_ACEOF
2224 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2225 _ACEOF
2226
2227 cat >>confdefs.h <<_ACEOF
2228 #define PACKAGE_URL "$PACKAGE_URL"
2229 _ACEOF
2230
2231
2232 # Let the site file select an alternate cache file if it wants to.
2233 # Prefer an explicitly selected file to automatically selected ones.
2234 ac_site_file1=NONE
2235 ac_site_file2=NONE
2236 if test -n "$CONFIG_SITE"; then
2237 # We do not want a PATH search for config.site.
2238 case $CONFIG_SITE in #((
2239 -*) ac_site_file1=./$CONFIG_SITE;;
2240 */*) ac_site_file1=$CONFIG_SITE;;
2241 *) ac_site_file1=./$CONFIG_SITE;;
2242 esac
2243 elif test "x$prefix" != xNONE; then
2244 ac_site_file1=$prefix/share/config.site
2245 ac_site_file2=$prefix/etc/config.site
2246 else
2247 ac_site_file1=$ac_default_prefix/share/config.site
2248 ac_site_file2=$ac_default_prefix/etc/config.site
2249 fi
2250 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2251 do
2252 test "x$ac_site_file" = xNONE && continue
2253 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2255 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2256 sed 's/^/| /' "$ac_site_file" >&5
2257 . "$ac_site_file" \
2258 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2260 as_fn_error $? "failed to load site script $ac_site_file
2261 See \`config.log' for more details" "$LINENO" 5 ; }
2262 fi
2263 done
2264
2265 if test -r "$cache_file"; then
2266 # Some versions of bash will fail to source /dev/null (special files
2267 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2268 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2270 $as_echo "$as_me: loading cache $cache_file" >&6;}
2271 case $cache_file in
2272 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2273 *) . "./$cache_file";;
2274 esac
2275 fi
2276 else
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2278 $as_echo "$as_me: creating cache $cache_file" >&6;}
2279 >$cache_file
2280 fi
2281
2282 # Check that the precious variables saved in the cache have kept the same
2283 # value.
2284 ac_cache_corrupted=false
2285 for ac_var in $ac_precious_vars; do
2286 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2287 eval ac_new_set=\$ac_env_${ac_var}_set
2288 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2289 eval ac_new_val=\$ac_env_${ac_var}_value
2290 case $ac_old_set,$ac_new_set in
2291 set,)
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2293 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2294 ac_cache_corrupted=: ;;
2295 ,set)
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2297 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2298 ac_cache_corrupted=: ;;
2299 ,);;
2300 *)
2301 if test "x$ac_old_val" != "x$ac_new_val"; then
2302 # differences in whitespace do not lead to failure.
2303 ac_old_val_w=`echo x $ac_old_val`
2304 ac_new_val_w=`echo x $ac_new_val`
2305 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2307 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2308 ac_cache_corrupted=:
2309 else
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2311 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2312 eval $ac_var=\$ac_old_val
2313 fi
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2315 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2317 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2318 fi;;
2319 esac
2320 # Pass precious variables to config.status.
2321 if test "$ac_new_set" = set; then
2322 case $ac_new_val in
2323 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2324 *) ac_arg=$ac_var=$ac_new_val ;;
2325 esac
2326 case " $ac_configure_args " in
2327 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2328 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2329 esac
2330 fi
2331 done
2332 if $ac_cache_corrupted; then
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2336 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2337 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2338 fi
2339 ## -------------------- ##
2340 ## Main body of script. ##
2341 ## -------------------- ##
2342
2343 ac_ext=c
2344 ac_cpp='$CPP $CPPFLAGS'
2345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2348
2349
2350
2351
2352 ac_config_headers="$ac_config_headers config.h"
2353
2354 ac_aux_dir=
2355 for ac_dir in . "$srcdir"/.; do
2356 if test -f "$ac_dir/install-sh"; then
2357 ac_aux_dir=$ac_dir
2358 ac_install_sh="$ac_aux_dir/install-sh -c"
2359 break
2360 elif test -f "$ac_dir/install.sh"; then
2361 ac_aux_dir=$ac_dir
2362 ac_install_sh="$ac_aux_dir/install.sh -c"
2363 break
2364 elif test -f "$ac_dir/shtool"; then
2365 ac_aux_dir=$ac_dir
2366 ac_install_sh="$ac_aux_dir/shtool install -c"
2367 break
2368 fi
2369 done
2370 if test -z "$ac_aux_dir"; then
2371 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2372 fi
2373
2374 # These three variables are undocumented and unsupported,
2375 # and are intended to be withdrawn in a future Autoconf release.
2376 # They can cause serious problems if a builder's source tree is in a directory
2377 # whose full name contains unusual characters.
2378 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2379 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2380 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2381
2382
2383
2384 # Require xorg-macros: XORG_DEFAULT_OPTIONS
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396 # Find a good install program. We prefer a C program (faster),
2397 # so one script is as good as another. But avoid the broken or
2398 # incompatible versions:
2399 # SysV /etc/install, /usr/sbin/install
2400 # SunOS /usr/etc/install
2401 # IRIX /sbin/install
2402 # AIX /bin/install
2403 # AmigaOS /C/install, which installs bootblocks on floppy discs
2404 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2405 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2406 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2407 # OS/2's system install, which has a completely different semantic
2408 # ./install, which can be erroneously created by make from ./install.sh.
2409 # Reject install programs that cannot install multiple files.
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2411 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2412 if test -z "$INSTALL"; then
2413 if test "${ac_cv_path_install+set}" = set; then :
2414 $as_echo_n "(cached) " >&6
2415 else
2416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417 for as_dir in $PATH
2418 do
2419 IFS=$as_save_IFS
2420 test -z "$as_dir" && as_dir=.
2421 # Account for people who put trailing slashes in PATH elements.
2422 case $as_dir/ in #((
2423 ./ | .// | /[cC]/* | \
2424 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2425 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2426 /usr/ucb/* ) ;;
2427 *)
2428 # OSF1 and SCO ODT 3.0 have their own names for install.
2429 # Don't use installbsd from OSF since it installs stuff as root
2430 # by default.
2431 for ac_prog in ginstall scoinst install; do
2432 for ac_exec_ext in '' $ac_executable_extensions; do
2433 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2434 if test $ac_prog = install &&
2435 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2436 # AIX install. It has an incompatible calling convention.
2437 :
2438 elif test $ac_prog = install &&
2439 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2440 # program-specific install script used by HP pwplus--don't use.
2441 :
2442 else
2443 rm -rf conftest.one conftest.two conftest.dir
2444 echo one > conftest.one
2445 echo two > conftest.two
2446 mkdir conftest.dir
2447 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2448 test -s conftest.one && test -s conftest.two &&
2449 test -s conftest.dir/conftest.one &&
2450 test -s conftest.dir/conftest.two
2451 then
2452 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2453 break 3
2454 fi
2455 fi
2456 fi
2457 done
2458 done
2459 ;;
2460 esac
2461
2462 done
2463 IFS=$as_save_IFS
2464
2465 rm -rf conftest.one conftest.two conftest.dir
2466
2467 fi
2468 if test "${ac_cv_path_install+set}" = set; then
2469 INSTALL=$ac_cv_path_install
2470 else
2471 # As a last resort, use the slow shell script. Don't cache a
2472 # value for INSTALL within a source directory, because that will
2473 # break other packages using the cache if that directory is
2474 # removed, or if the value is a relative name.
2475 INSTALL=$ac_install_sh
2476 fi
2477 fi
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2479 $as_echo "$INSTALL" >&6; }
2480
2481 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2482 # It thinks the first close brace ends the variable substitution.
2483 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2484
2485 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2486
2487 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2488
2489 ac_ext=c
2490 ac_cpp='$CPP $CPPFLAGS'
2491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2494 if test -n "$ac_tool_prefix"; then
2495 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2496 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2498 $as_echo_n "checking for $ac_word... " >&6; }
2499 if test "${ac_cv_prog_CC+set}" = set; then :
2500 $as_echo_n "(cached) " >&6
2501 else
2502 if test -n "$CC"; then
2503 ac_cv_prog_CC="$CC" # Let the user override the test.
2504 else
2505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506 for as_dir in $PATH
2507 do
2508 IFS=$as_save_IFS
2509 test -z "$as_dir" && as_dir=.
2510 for ac_exec_ext in '' $ac_executable_extensions; do
2511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2512 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2514 break 2
2515 fi
2516 done
2517 done
2518 IFS=$as_save_IFS
2519
2520 fi
2521 fi
2522 CC=$ac_cv_prog_CC
2523 if test -n "$CC"; then
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2525 $as_echo "$CC" >&6; }
2526 else
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2528 $as_echo "no" >&6; }
2529 fi
2530
2531
2532 fi
2533 if test -z "$ac_cv_prog_CC"; then
2534 ac_ct_CC=$CC
2535 # Extract the first word of "gcc", so it can be a program name with args.
2536 set dummy gcc; ac_word=$2
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2538 $as_echo_n "checking for $ac_word... " >&6; }
2539 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2540 $as_echo_n "(cached) " >&6
2541 else
2542 if test -n "$ac_ct_CC"; then
2543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2544 else
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 for as_dir in $PATH
2547 do
2548 IFS=$as_save_IFS
2549 test -z "$as_dir" && as_dir=.
2550 for ac_exec_ext in '' $ac_executable_extensions; do
2551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2552 ac_cv_prog_ac_ct_CC="gcc"
2553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2554 break 2
2555 fi
2556 done
2557 done
2558 IFS=$as_save_IFS
2559
2560 fi
2561 fi
2562 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2563 if test -n "$ac_ct_CC"; then
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2565 $as_echo "$ac_ct_CC" >&6; }
2566 else
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2568 $as_echo "no" >&6; }
2569 fi
2570
2571 if test "x$ac_ct_CC" = x; then
2572 CC=""
2573 else
2574 case $cross_compiling:$ac_tool_warned in
2575 yes:)
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2578 ac_tool_warned=yes ;;
2579 esac
2580 CC=$ac_ct_CC
2581 fi
2582 else
2583 CC="$ac_cv_prog_CC"
2584 fi
2585
2586 if test -z "$CC"; then
2587 if test -n "$ac_tool_prefix"; then
2588 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2589 set dummy ${ac_tool_prefix}cc; ac_word=$2
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2591 $as_echo_n "checking for $ac_word... " >&6; }
2592 if test "${ac_cv_prog_CC+set}" = set; then :
2593 $as_echo_n "(cached) " >&6
2594 else
2595 if test -n "$CC"; then
2596 ac_cv_prog_CC="$CC" # Let the user override the test.
2597 else
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 for as_dir in $PATH
2600 do
2601 IFS=$as_save_IFS
2602 test -z "$as_dir" && as_dir=.
2603 for ac_exec_ext in '' $ac_executable_extensions; do
2604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2605 ac_cv_prog_CC="${ac_tool_prefix}cc"
2606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2607 break 2
2608 fi
2609 done
2610 done
2611 IFS=$as_save_IFS
2612
2613 fi
2614 fi
2615 CC=$ac_cv_prog_CC
2616 if test -n "$CC"; then
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2618 $as_echo "$CC" >&6; }
2619 else
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2621 $as_echo "no" >&6; }
2622 fi
2623
2624
2625 fi
2626 fi
2627 if test -z "$CC"; then
2628 # Extract the first word of "cc", so it can be a program name with args.
2629 set dummy cc; ac_word=$2
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2631 $as_echo_n "checking for $ac_word... " >&6; }
2632 if test "${ac_cv_prog_CC+set}" = set; then :
2633 $as_echo_n "(cached) " >&6
2634 else
2635 if test -n "$CC"; then
2636 ac_cv_prog_CC="$CC" # Let the user override the test.
2637 else
2638 ac_prog_rejected=no
2639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 for as_dir in $PATH
2641 do
2642 IFS=$as_save_IFS
2643 test -z "$as_dir" && as_dir=.
2644 for ac_exec_ext in '' $ac_executable_extensions; do
2645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2646 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2647 ac_prog_rejected=yes
2648 continue
2649 fi
2650 ac_cv_prog_CC="cc"
2651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2652 break 2
2653 fi
2654 done
2655 done
2656 IFS=$as_save_IFS
2657
2658 if test $ac_prog_rejected = yes; then
2659 # We found a bogon in the path, so make sure we never use it.
2660 set dummy $ac_cv_prog_CC
2661 shift
2662 if test $# != 0; then
2663 # We chose a different compiler from the bogus one.
2664 # However, it has the same basename, so the bogon will be chosen
2665 # first if we set CC to just the basename; use the full file name.
2666 shift
2667 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2668 fi
2669 fi
2670 fi
2671 fi
2672 CC=$ac_cv_prog_CC
2673 if test -n "$CC"; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2675 $as_echo "$CC" >&6; }
2676 else
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678 $as_echo "no" >&6; }
2679 fi
2680
2681
2682 fi
2683 if test -z "$CC"; then
2684 if test -n "$ac_tool_prefix"; then
2685 for ac_prog in cl.exe
2686 do
2687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2688 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2690 $as_echo_n "checking for $ac_word... " >&6; }
2691 if test "${ac_cv_prog_CC+set}" = set; then :
2692 $as_echo_n "(cached) " >&6
2693 else
2694 if test -n "$CC"; then
2695 ac_cv_prog_CC="$CC" # Let the user override the test.
2696 else
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698 for as_dir in $PATH
2699 do
2700 IFS=$as_save_IFS
2701 test -z "$as_dir" && as_dir=.
2702 for ac_exec_ext in '' $ac_executable_extensions; do
2703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2704 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2706 break 2
2707 fi
2708 done
2709 done
2710 IFS=$as_save_IFS
2711
2712 fi
2713 fi
2714 CC=$ac_cv_prog_CC
2715 if test -n "$CC"; then
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2717 $as_echo "$CC" >&6; }
2718 else
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2720 $as_echo "no" >&6; }
2721 fi
2722
2723
2724 test -n "$CC" && break
2725 done
2726 fi
2727 if test -z "$CC"; then
2728 ac_ct_CC=$CC
2729 for ac_prog in cl.exe
2730 do
2731 # Extract the first word of "$ac_prog", so it can be a program name with args.
2732 set dummy $ac_prog; ac_word=$2
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734 $as_echo_n "checking for $ac_word... " >&6; }
2735 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2736 $as_echo_n "(cached) " >&6
2737 else
2738 if test -n "$ac_ct_CC"; then
2739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2740 else
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 for as_dir in $PATH
2743 do
2744 IFS=$as_save_IFS
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2748 ac_cv_prog_ac_ct_CC="$ac_prog"
2749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 break 2
2751 fi
2752 done
2753 done
2754 IFS=$as_save_IFS
2755
2756 fi
2757 fi
2758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2759 if test -n "$ac_ct_CC"; then
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2761 $as_echo "$ac_ct_CC" >&6; }
2762 else
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764 $as_echo "no" >&6; }
2765 fi
2766
2767
2768 test -n "$ac_ct_CC" && break
2769 done
2770
2771 if test "x$ac_ct_CC" = x; then
2772 CC=""
2773 else
2774 case $cross_compiling:$ac_tool_warned in
2775 yes:)
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2778 ac_tool_warned=yes ;;
2779 esac
2780 CC=$ac_ct_CC
2781 fi
2782 fi
2783
2784 fi
2785
2786
2787 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2789 as_fn_error $? "no acceptable C compiler found in \$PATH
2790 See \`config.log' for more details" "$LINENO" 5 ; }
2791
2792 # Provide some information about the compiler.
2793 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2794 set X $ac_compile
2795 ac_compiler=$2
2796 for ac_option in --version -v -V -qversion; do
2797 { { ac_try="$ac_compiler $ac_option >&5"
2798 case "(($ac_try" in
2799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2800 *) ac_try_echo=$ac_try;;
2801 esac
2802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2803 $as_echo "$ac_try_echo"; } >&5
2804 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2805 ac_status=$?
2806 if test -s conftest.err; then
2807 sed '10a\
2808 ... rest of stderr output deleted ...
2809 10q' conftest.err >conftest.er1
2810 cat conftest.er1 >&5
2811 fi
2812 rm -f conftest.er1 conftest.err
2813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2814 test $ac_status = 0; }
2815 done
2816
2817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2818 /* end confdefs.h. */
2819
2820 int
2821 main ()
2822 {
2823
2824 ;
2825 return 0;
2826 }
2827 _ACEOF
2828 ac_clean_files_save=$ac_clean_files
2829 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2830 # Try to create an executable without -o first, disregard a.out.
2831 # It will help us diagnose broken compilers, and finding out an intuition
2832 # of exeext.
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2834 $as_echo_n "checking whether the C compiler works... " >&6; }
2835 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2836
2837 # The possible output files:
2838 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2839
2840 ac_rmfiles=
2841 for ac_file in $ac_files
2842 do
2843 case $ac_file in
2844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2845 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2846 esac
2847 done
2848 rm -f $ac_rmfiles
2849
2850 if { { ac_try="$ac_link_default"
2851 case "(($ac_try" in
2852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853 *) ac_try_echo=$ac_try;;
2854 esac
2855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2856 $as_echo "$ac_try_echo"; } >&5
2857 (eval "$ac_link_default") 2>&5
2858 ac_status=$?
2859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2860 test $ac_status = 0; }; then :
2861 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2862 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2863 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2864 # so that the user can short-circuit this test for compilers unknown to
2865 # Autoconf.
2866 for ac_file in $ac_files ''
2867 do
2868 test -f "$ac_file" || continue
2869 case $ac_file in
2870 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2871 ;;
2872 [ab].out )
2873 # We found the default executable, but exeext='' is most
2874 # certainly right.
2875 break;;
2876 *.* )
2877 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2878 then :; else
2879 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2880 fi
2881 # We set ac_cv_exeext here because the later test for it is not
2882 # safe: cross compilers may not add the suffix if given an `-o'
2883 # argument, so we may need to know it at that point already.
2884 # Even if this section looks crufty: it has the advantage of
2885 # actually working.
2886 break;;
2887 * )
2888 break;;
2889 esac
2890 done
2891 test "$ac_cv_exeext" = no && ac_cv_exeext=
2892
2893 else
2894 ac_file=''
2895 fi
2896 if test -z "$ac_file"; then :
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2898 $as_echo "no" >&6; }
2899 $as_echo "$as_me: failed program was:" >&5
2900 sed 's/^/| /' conftest.$ac_ext >&5
2901
2902 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2904 as_fn_error 77 "C compiler cannot create executables
2905 See \`config.log' for more details" "$LINENO" 5 ; }
2906 else
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2908 $as_echo "yes" >&6; }
2909 fi
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2911 $as_echo_n "checking for C compiler default output file name... " >&6; }
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2913 $as_echo "$ac_file" >&6; }
2914 ac_exeext=$ac_cv_exeext
2915
2916 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2917 ac_clean_files=$ac_clean_files_save
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2919 $as_echo_n "checking for suffix of executables... " >&6; }
2920 if { { ac_try="$ac_link"
2921 case "(($ac_try" in
2922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923 *) ac_try_echo=$ac_try;;
2924 esac
2925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2926 $as_echo "$ac_try_echo"; } >&5
2927 (eval "$ac_link") 2>&5
2928 ac_status=$?
2929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2930 test $ac_status = 0; }; then :
2931 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2932 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2933 # work properly (i.e., refer to `conftest.exe'), while it won't with
2934 # `rm'.
2935 for ac_file in conftest.exe conftest conftest.*; do
2936 test -f "$ac_file" || continue
2937 case $ac_file in
2938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2939 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2940 break;;
2941 * ) break;;
2942 esac
2943 done
2944 else
2945 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2947 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2948 See \`config.log' for more details" "$LINENO" 5 ; }
2949 fi
2950 rm -f conftest conftest$ac_cv_exeext
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2952 $as_echo "$ac_cv_exeext" >&6; }
2953
2954 rm -f conftest.$ac_ext
2955 EXEEXT=$ac_cv_exeext
2956 ac_exeext=$EXEEXT
2957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2958 /* end confdefs.h. */
2959 #include <stdio.h>
2960 int
2961 main ()
2962 {
2963 FILE *f = fopen ("conftest.out", "w");
2964 return ferror (f) || fclose (f) != 0;
2965
2966 ;
2967 return 0;
2968 }
2969 _ACEOF
2970 ac_clean_files="$ac_clean_files conftest.out"
2971 # Check that the compiler produces executables we can run. If not, either
2972 # the compiler is broken, or we cross compile.
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2974 $as_echo_n "checking whether we are cross compiling... " >&6; }
2975 if test "$cross_compiling" != yes; then
2976 { { ac_try="$ac_link"
2977 case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2980 esac
2981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2982 $as_echo "$ac_try_echo"; } >&5
2983 (eval "$ac_link") 2>&5
2984 ac_status=$?
2985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2986 test $ac_status = 0; }
2987 if { ac_try='./conftest$ac_cv_exeext'
2988 { { case "(($ac_try" in
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2991 esac
2992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2993 $as_echo "$ac_try_echo"; } >&5
2994 (eval "$ac_try") 2>&5
2995 ac_status=$?
2996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2997 test $ac_status = 0; }; }; then
2998 cross_compiling=no
2999 else
3000 if test "$cross_compiling" = maybe; then
3001 cross_compiling=yes
3002 else
3003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3005 as_fn_error $? "cannot run C compiled programs.
3006 If you meant to cross compile, use \`--host'.
3007 See \`config.log' for more details" "$LINENO" 5 ; }
3008 fi
3009 fi
3010 fi
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3012 $as_echo "$cross_compiling" >&6; }
3013
3014 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3015 ac_clean_files=$ac_clean_files_save
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3017 $as_echo_n "checking for suffix of object files... " >&6; }
3018 if test "${ac_cv_objext+set}" = set; then :
3019 $as_echo_n "(cached) " >&6
3020 else
3021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3022 /* end confdefs.h. */
3023
3024 int
3025 main ()
3026 {
3027
3028 ;
3029 return 0;
3030 }
3031 _ACEOF
3032 rm -f conftest.o conftest.obj
3033 if { { ac_try="$ac_compile"
3034 case "(($ac_try" in
3035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036 *) ac_try_echo=$ac_try;;
3037 esac
3038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3039 $as_echo "$ac_try_echo"; } >&5
3040 (eval "$ac_compile") 2>&5
3041 ac_status=$?
3042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3043 test $ac_status = 0; }; then :
3044 for ac_file in conftest.o conftest.obj conftest.*; do
3045 test -f "$ac_file" || continue;
3046 case $ac_file in
3047 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3048 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3049 break;;
3050 esac
3051 done
3052 else
3053 $as_echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3055
3056 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3058 as_fn_error $? "cannot compute suffix of object files: cannot compile
3059 See \`config.log' for more details" "$LINENO" 5 ; }
3060 fi
3061 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3062 fi
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3064 $as_echo "$ac_cv_objext" >&6; }
3065 OBJEXT=$ac_cv_objext
3066 ac_objext=$OBJEXT
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3068 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3069 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3070 $as_echo_n "(cached) " >&6
3071 else
3072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3073 /* end confdefs.h. */
3074
3075 int
3076 main ()
3077 {
3078 #ifndef __GNUC__
3079 choke me
3080 #endif
3081
3082 ;
3083 return 0;
3084 }
3085 _ACEOF
3086 if ac_fn_c_try_compile "$LINENO"; then :
3087 ac_compiler_gnu=yes
3088 else
3089 ac_compiler_gnu=no
3090 fi
3091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3092 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3093
3094 fi
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3096 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3097 if test $ac_compiler_gnu = yes; then
3098 GCC=yes
3099 else
3100 GCC=
3101 fi
3102 ac_test_CFLAGS=${CFLAGS+set}
3103 ac_save_CFLAGS=$CFLAGS
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3105 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3106 if test "${ac_cv_prog_cc_g+set}" = set; then :
3107 $as_echo_n "(cached) " >&6
3108 else
3109 ac_save_c_werror_flag=$ac_c_werror_flag
3110 ac_c_werror_flag=yes
3111 ac_cv_prog_cc_g=no
3112 CFLAGS="-g"
3113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3114 /* end confdefs.h. */
3115
3116 int
3117 main ()
3118 {
3119
3120 ;
3121 return 0;
3122 }
3123 _ACEOF
3124 if ac_fn_c_try_compile "$LINENO"; then :
3125 ac_cv_prog_cc_g=yes
3126 else
3127 CFLAGS=""
3128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3129 /* end confdefs.h. */
3130
3131 int
3132 main ()
3133 {
3134
3135 ;
3136 return 0;
3137 }
3138 _ACEOF
3139 if ac_fn_c_try_compile "$LINENO"; then :
3140
3141 else
3142 ac_c_werror_flag=$ac_save_c_werror_flag
3143 CFLAGS="-g"
3144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3145 /* end confdefs.h. */
3146
3147 int
3148 main ()
3149 {
3150
3151 ;
3152 return 0;
3153 }
3154 _ACEOF
3155 if ac_fn_c_try_compile "$LINENO"; then :
3156 ac_cv_prog_cc_g=yes
3157 fi
3158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3159 fi
3160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3161 fi
3162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3163 ac_c_werror_flag=$ac_save_c_werror_flag
3164 fi
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3166 $as_echo "$ac_cv_prog_cc_g" >&6; }
3167 if test "$ac_test_CFLAGS" = set; then
3168 CFLAGS=$ac_save_CFLAGS
3169 elif test $ac_cv_prog_cc_g = yes; then
3170 if test "$GCC" = yes; then
3171 CFLAGS="-g -O2"
3172 else
3173 CFLAGS="-g"
3174 fi
3175 else
3176 if test "$GCC" = yes; then
3177 CFLAGS="-O2"
3178 else
3179 CFLAGS=
3180 fi
3181 fi
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3183 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3184 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3185 $as_echo_n "(cached) " >&6
3186 else
3187 ac_cv_prog_cc_c89=no
3188 ac_save_CC=$CC
3189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3190 /* end confdefs.h. */
3191 #include <stdarg.h>
3192 #include <stdio.h>
3193 #include <sys/types.h>
3194 #include <sys/stat.h>
3195 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3196 struct buf { int x; };
3197 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3198 static char *e (p, i)
3199 char **p;
3200 int i;
3201 {
3202 return p[i];
3203 }
3204 static char *f (char * (*g) (char **, int), char **p, ...)
3205 {
3206 char *s;
3207 va_list v;
3208 va_start (v,p);
3209 s = g (p, va_arg (v,int));
3210 va_end (v);
3211 return s;
3212 }
3213
3214 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3215 function prototypes and stuff, but not '\xHH' hex character constants.
3216 These don't provoke an error unfortunately, instead are silently treated
3217 as 'x'. The following induces an error, until -std is added to get
3218 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3219 array size at least. It's necessary to write '\x00'==0 to get something
3220 that's true only with -std. */
3221 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3222
3223 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3224 inside strings and character constants. */
3225 #define FOO(x) 'x'
3226 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3227
3228 int test (int i, double x);
3229 struct s1 {int (*f) (int a);};
3230 struct s2 {int (*f) (double a);};
3231 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3232 int argc;
3233 char **argv;
3234 int
3235 main ()
3236 {
3237 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3238 ;
3239 return 0;
3240 }
3241 _ACEOF
3242 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3243 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3244 do
3245 CC="$ac_save_CC $ac_arg"
3246 if ac_fn_c_try_compile "$LINENO"; then :
3247 ac_cv_prog_cc_c89=$ac_arg
3248 fi
3249 rm -f core conftest.err conftest.$ac_objext
3250 test "x$ac_cv_prog_cc_c89" != "xno" && break
3251 done
3252 rm -f conftest.$ac_ext
3253 CC=$ac_save_CC
3254
3255 fi
3256 # AC_CACHE_VAL
3257 case "x$ac_cv_prog_cc_c89" in
3258 x)
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3260 $as_echo "none needed" >&6; } ;;
3261 xno)
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3263 $as_echo "unsupported" >&6; } ;;
3264 *)
3265 CC="$CC $ac_cv_prog_cc_c89"
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3267 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3268 esac
3269 if test "x$ac_cv_prog_cc_c89" != xno; then :
3270
3271 fi
3272
3273 ac_ext=c
3274 ac_cpp='$CPP $CPPFLAGS'
3275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3278
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3280 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3281 if test "${ac_cv_prog_cc_c99+set}" = set; then :
3282 $as_echo_n "(cached) " >&6
3283 else
3284 ac_cv_prog_cc_c99=no
3285 ac_save_CC=$CC
3286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3287 /* end confdefs.h. */
3288 #include <stdarg.h>
3289 #include <stdbool.h>
3290 #include <stdlib.h>
3291 #include <wchar.h>
3292 #include <stdio.h>
3293
3294 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3295 #define debug(...) fprintf (stderr, __VA_ARGS__)
3296 #define showlist(...) puts (#__VA_ARGS__)
3297 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3298 static void
3299 test_varargs_macros (void)
3300 {
3301 int x = 1234;
3302 int y = 5678;
3303 debug ("Flag");
3304 debug ("X = %d\n", x);
3305 showlist (The first, second, and third items.);
3306 report (x>y, "x is %d but y is %d", x, y);
3307 }
3308
3309 // Check long long types.
3310 #define BIG64 18446744073709551615ull
3311 #define BIG32 4294967295ul
3312 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3313 #if !BIG_OK
3314 your preprocessor is broken;
3315 #endif
3316 #if BIG_OK
3317 #else
3318 your preprocessor is broken;
3319 #endif
3320 static long long int bignum = -9223372036854775807LL;
3321 static unsigned long long int ubignum = BIG64;
3322
3323 struct incomplete_array
3324 {
3325 int datasize;
3326 double data[];
3327 };
3328
3329 struct named_init {
3330 int number;
3331 const wchar_t *name;
3332 double average;
3333 };
3334
3335 typedef const char *ccp;
3336
3337 static inline int
3338 test_restrict (ccp restrict text)
3339 {
3340 // See if C++-style comments work.
3341 // Iterate through items via the restricted pointer.
3342 // Also check for declarations in for loops.
3343 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3344 continue;
3345 return 0;
3346 }
3347
3348 // Check varargs and va_copy.
3349 static void
3350 test_varargs (const char *format, ...)
3351 {
3352 va_list args;
3353 va_start (args, format);
3354 va_list args_copy;
3355 va_copy (args_copy, args);
3356
3357 const char *str;
3358 int number;
3359 float fnumber;
3360
3361 while (*format)
3362 {
3363 switch (*format++)
3364 {
3365 case 's': // string
3366 str = va_arg (args_copy, const char *);
3367 break;
3368 case 'd': // int
3369 number = va_arg (args_copy, int);
3370 break;
3371 case 'f': // float
3372 fnumber = va_arg (args_copy, double);
3373 break;
3374 default:
3375 break;
3376 }
3377 }
3378 va_end (args_copy);
3379 va_end (args);
3380 }
3381
3382 int
3383 main ()
3384 {
3385
3386 // Check bool.
3387 _Bool success = false;
3388
3389 // Check restrict.
3390 if (test_restrict ("String literal") == 0)
3391 success = true;
3392 char *restrict newvar = "Another string";
3393
3394 // Check varargs.
3395 test_varargs ("s, d' f .", "string", 65, 34.234);
3396 test_varargs_macros ();
3397
3398 // Check flexible array members.
3399 struct incomplete_array *ia =
3400 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3401 ia->datasize = 10;
3402 for (int i = 0; i < ia->datasize; ++i)
3403 ia->data[i] = i * 1.234;
3404
3405 // Check named initializers.
3406 struct named_init ni = {
3407 .number = 34,
3408 .name = L"Test wide string",
3409 .average = 543.34343,
3410 };
3411
3412 ni.number = 58;
3413
3414 int dynamic_array[ni.number];
3415 dynamic_array[ni.number - 1] = 543;
3416
3417 // work around unused variable warnings
3418 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3419 || dynamic_array[ni.number - 1] != 543);
3420
3421 ;
3422 return 0;
3423 }
3424 _ACEOF
3425 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3426 do
3427 CC="$ac_save_CC $ac_arg"
3428 if ac_fn_c_try_compile "$LINENO"; then :
3429 ac_cv_prog_cc_c99=$ac_arg
3430 fi
3431 rm -f core conftest.err conftest.$ac_objext
3432 test "x$ac_cv_prog_cc_c99" != "xno" && break
3433 done
3434 rm -f conftest.$ac_ext
3435 CC=$ac_save_CC
3436
3437 fi
3438 # AC_CACHE_VAL
3439 case "x$ac_cv_prog_cc_c99" in
3440 x)
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3442 $as_echo "none needed" >&6; } ;;
3443 xno)
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3445 $as_echo "unsupported" >&6; } ;;
3446 *)
3447 CC="$CC $ac_cv_prog_cc_c99"
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3449 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3450 esac
3451 if test "x$ac_cv_prog_cc_c99" != xno; then :
3452
3453 fi
3454
3455
3456
3457 ac_ext=c
3458 ac_cpp='$CPP $CPPFLAGS'
3459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3463 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3464 # On Suns, sometimes $CPP names a directory.
3465 if test -n "$CPP" && test -d "$CPP"; then
3466 CPP=
3467 fi
3468 if test -z "$CPP"; then
3469 if test "${ac_cv_prog_CPP+set}" = set; then :
3470 $as_echo_n "(cached) " >&6
3471 else
3472 # Double quotes because CPP needs to be expanded
3473 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3474 do
3475 ac_preproc_ok=false
3476 for ac_c_preproc_warn_flag in '' yes
3477 do
3478 # Use a header file that comes with gcc, so configuring glibc
3479 # with a fresh cross-compiler works.
3480 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3481 # <limits.h> exists even on freestanding compilers.
3482 # On the NeXT, cc -E runs the code through the compiler's parser,
3483 # not just through cpp. "Syntax error" is here to catch this case.
3484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3485 /* end confdefs.h. */
3486 #ifdef __STDC__
3487 # include <limits.h>
3488 #else
3489 # include <assert.h>
3490 #endif
3491 Syntax error
3492 _ACEOF
3493 if ac_fn_c_try_cpp "$LINENO"; then :
3494
3495 else
3496 # Broken: fails on valid input.
3497 continue
3498 fi
3499 rm -f conftest.err conftest.i conftest.$ac_ext
3500
3501 # OK, works on sane cases. Now check whether nonexistent headers
3502 # can be detected and how.
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h. */
3505 #include <ac_nonexistent.h>
3506 _ACEOF
3507 if ac_fn_c_try_cpp "$LINENO"; then :
3508 # Broken: success on invalid input.
3509 continue
3510 else
3511 # Passes both tests.
3512 ac_preproc_ok=:
3513 break
3514 fi
3515 rm -f conftest.err conftest.i conftest.$ac_ext
3516
3517 done
3518 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3519 rm -f conftest.i conftest.err conftest.$ac_ext
3520 if $ac_preproc_ok; then :
3521 break
3522 fi
3523
3524 done
3525 ac_cv_prog_CPP=$CPP
3526
3527 fi
3528 CPP=$ac_cv_prog_CPP
3529 else
3530 ac_cv_prog_CPP=$CPP
3531 fi
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3533 $as_echo "$CPP" >&6; }
3534 ac_preproc_ok=false
3535 for ac_c_preproc_warn_flag in '' yes
3536 do
3537 # Use a header file that comes with gcc, so configuring glibc
3538 # with a fresh cross-compiler works.
3539 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3540 # <limits.h> exists even on freestanding compilers.
3541 # On the NeXT, cc -E runs the code through the compiler's parser,
3542 # not just through cpp. "Syntax error" is here to catch this case.
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h. */
3545 #ifdef __STDC__
3546 # include <limits.h>
3547 #else
3548 # include <assert.h>
3549 #endif
3550 Syntax error
3551 _ACEOF
3552 if ac_fn_c_try_cpp "$LINENO"; then :
3553
3554 else
3555 # Broken: fails on valid input.
3556 continue
3557 fi
3558 rm -f conftest.err conftest.i conftest.$ac_ext
3559
3560 # OK, works on sane cases. Now check whether nonexistent headers
3561 # can be detected and how.
3562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563 /* end confdefs.h. */
3564 #include <ac_nonexistent.h>
3565 _ACEOF
3566 if ac_fn_c_try_cpp "$LINENO"; then :
3567 # Broken: success on invalid input.
3568 continue
3569 else
3570 # Passes both tests.
3571 ac_preproc_ok=:
3572 break
3573 fi
3574 rm -f conftest.err conftest.i conftest.$ac_ext
3575
3576 done
3577 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3578 rm -f conftest.i conftest.err conftest.$ac_ext
3579 if $ac_preproc_ok; then :
3580
3581 else
3582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3584 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3585 See \`config.log' for more details" "$LINENO" 5 ; }
3586 fi
3587
3588 ac_ext=c
3589 ac_cpp='$CPP $CPPFLAGS'
3590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3593
3594
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3596 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3597 if test "${ac_cv_path_GREP+set}" = set; then :
3598 $as_echo_n "(cached) " >&6
3599 else
3600 if test -z "$GREP"; then
3601 ac_path_GREP_found=false
3602 # Loop through the user's path and test for each of PROGNAME-LIST
3603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3605 do
3606 IFS=$as_save_IFS
3607 test -z "$as_dir" && as_dir=.
3608 for ac_prog in grep ggrep; do
3609 for ac_exec_ext in '' $ac_executable_extensions; do
3610 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3611 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3612 # Check for GNU ac_path_GREP and select it if it is found.
3613 # Check for GNU $ac_path_GREP
3614 case `"$ac_path_GREP" --version 2>&1` in
3615 *GNU*)
3616 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3617 *)
3618 ac_count=0
3619 $as_echo_n 0123456789 >"conftest.in"
3620 while :
3621 do
3622 cat "conftest.in" "conftest.in" >"conftest.tmp"
3623 mv "conftest.tmp" "conftest.in"
3624 cp "conftest.in" "conftest.nl"
3625 $as_echo 'GREP' >> "conftest.nl"
3626 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3627 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3628 as_fn_arith $ac_count + 1 && ac_count=$as_val
3629 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3630 # Best one so far, save it but keep looking for a better one
3631 ac_cv_path_GREP="$ac_path_GREP"
3632 ac_path_GREP_max=$ac_count
3633 fi
3634 # 10*(2^10) chars as input seems more than enough
3635 test $ac_count -gt 10 && break
3636 done
3637 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3638 esac
3639
3640 $ac_path_GREP_found && break 3
3641 done
3642 done
3643 done
3644 IFS=$as_save_IFS
3645 if test -z "$ac_cv_path_GREP"; then
3646 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3647 fi
3648 else
3649 ac_cv_path_GREP=$GREP
3650 fi
3651
3652 fi
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3654 $as_echo "$ac_cv_path_GREP" >&6; }
3655 GREP="$ac_cv_path_GREP"
3656
3657
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3659 $as_echo_n "checking for egrep... " >&6; }
3660 if test "${ac_cv_path_EGREP+set}" = set; then :
3661 $as_echo_n "(cached) " >&6
3662 else
3663 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3664 then ac_cv_path_EGREP="$GREP -E"
3665 else
3666 if test -z "$EGREP"; then
3667 ac_path_EGREP_found=false
3668 # Loop through the user's path and test for each of PROGNAME-LIST
3669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3671 do
3672 IFS=$as_save_IFS
3673 test -z "$as_dir" && as_dir=.
3674 for ac_prog in egrep; do
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3677 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3678 # Check for GNU ac_path_EGREP and select it if it is found.
3679 # Check for GNU $ac_path_EGREP
3680 case `"$ac_path_EGREP" --version 2>&1` in
3681 *GNU*)
3682 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3683 *)
3684 ac_count=0
3685 $as_echo_n 0123456789 >"conftest.in"
3686 while :
3687 do
3688 cat "conftest.in" "conftest.in" >"conftest.tmp"
3689 mv "conftest.tmp" "conftest.in"
3690 cp "conftest.in" "conftest.nl"
3691 $as_echo 'EGREP' >> "conftest.nl"
3692 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3693 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3694 as_fn_arith $ac_count + 1 && ac_count=$as_val
3695 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3696 # Best one so far, save it but keep looking for a better one
3697 ac_cv_path_EGREP="$ac_path_EGREP"
3698 ac_path_EGREP_max=$ac_count
3699 fi
3700 # 10*(2^10) chars as input seems more than enough
3701 test $ac_count -gt 10 && break
3702 done
3703 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3704 esac
3705
3706 $ac_path_EGREP_found && break 3
3707 done
3708 done
3709 done
3710 IFS=$as_save_IFS
3711 if test -z "$ac_cv_path_EGREP"; then
3712 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3713 fi
3714 else
3715 ac_cv_path_EGREP=$EGREP
3716 fi
3717
3718 fi
3719 fi
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3721 $as_echo "$ac_cv_path_EGREP" >&6; }
3722 EGREP="$ac_cv_path_EGREP"
3723
3724
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3726 $as_echo_n "checking for ANSI C header files... " >&6; }
3727 if test "${ac_cv_header_stdc+set}" = set; then :
3728 $as_echo_n "(cached) " >&6
3729 else
3730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731 /* end confdefs.h. */
3732 #include <stdlib.h>
3733 #include <stdarg.h>
3734 #include <string.h>
3735 #include <float.h>
3736
3737 int
3738 main ()
3739 {
3740
3741 ;
3742 return 0;
3743 }
3744 _ACEOF
3745 if ac_fn_c_try_compile "$LINENO"; then :
3746 ac_cv_header_stdc=yes
3747 else
3748 ac_cv_header_stdc=no
3749 fi
3750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3751
3752 if test $ac_cv_header_stdc = yes; then
3753 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755 /* end confdefs.h. */
3756 #include <string.h>
3757
3758 _ACEOF
3759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3760 $EGREP "memchr" >/dev/null 2>&1; then :
3761
3762 else
3763 ac_cv_header_stdc=no
3764 fi
3765 rm -f conftest*
3766
3767 fi
3768
3769 if test $ac_cv_header_stdc = yes; then
3770 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h. */
3773 #include <stdlib.h>
3774
3775 _ACEOF
3776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3777 $EGREP "free" >/dev/null 2>&1; then :
3778
3779 else
3780 ac_cv_header_stdc=no
3781 fi
3782 rm -f conftest*
3783
3784 fi
3785
3786 if test $ac_cv_header_stdc = yes; then
3787 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3788 if test "$cross_compiling" = yes; then :
3789 :
3790 else
3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792 /* end confdefs.h. */
3793 #include <ctype.h>
3794 #include <stdlib.h>
3795 #if ((' ' & 0x0FF) == 0x020)
3796 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3797 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3798 #else
3799 # define ISLOWER(c) \
3800 (('a' <= (c) && (c) <= 'i') \
3801 || ('j' <= (c) && (c) <= 'r') \
3802 || ('s' <= (c) && (c) <= 'z'))
3803 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3804 #endif
3805
3806 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3807 int
3808 main ()
3809 {
3810 int i;
3811 for (i = 0; i < 256; i++)
3812 if (XOR (islower (i), ISLOWER (i))
3813 || toupper (i) != TOUPPER (i))
3814 return 2;
3815 return 0;
3816 }
3817 _ACEOF
3818 if ac_fn_c_try_run "$LINENO"; then :
3819
3820 else
3821 ac_cv_header_stdc=no
3822 fi
3823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3824 conftest.$ac_objext conftest.beam conftest.$ac_ext
3825 fi
3826
3827 fi
3828 fi
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3830 $as_echo "$ac_cv_header_stdc" >&6; }
3831 if test $ac_cv_header_stdc = yes; then
3832
3833 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3834
3835 fi
3836
3837 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3838 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3839 inttypes.h stdint.h unistd.h
3840 do :
3841 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3842 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3843 "
3844 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3845 cat >>confdefs.h <<_ACEOF
3846 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3847 _ACEOF
3848
3849 fi
3850
3851 done
3852
3853
3854
3855
3856
3857
3858
3859
3860 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3861 if test -n "$ac_tool_prefix"; then
3862 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3863 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3865 $as_echo_n "checking for $ac_word... " >&6; }
3866 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
3867 $as_echo_n "(cached) " >&6
3868 else
3869 case $PKG_CONFIG in
3870 [\\/]* | ?:[\\/]*)
3871 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3872 ;;
3873 *)
3874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875 for as_dir in $PATH
3876 do
3877 IFS=$as_save_IFS
3878 test -z "$as_dir" && as_dir=.
3879 for ac_exec_ext in '' $ac_executable_extensions; do
3880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3881 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3883 break 2
3884 fi
3885 done
3886 done
3887 IFS=$as_save_IFS
3888
3889 ;;
3890 esac
3891 fi
3892 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3893 if test -n "$PKG_CONFIG"; then
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3895 $as_echo "$PKG_CONFIG" >&6; }
3896 else
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3898 $as_echo "no" >&6; }
3899 fi
3900
3901
3902 fi
3903 if test -z "$ac_cv_path_PKG_CONFIG"; then
3904 ac_pt_PKG_CONFIG=$PKG_CONFIG
3905 # Extract the first word of "pkg-config", so it can be a program name with args.
3906 set dummy pkg-config; ac_word=$2
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3908 $as_echo_n "checking for $ac_word... " >&6; }
3909 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
3910 $as_echo_n "(cached) " >&6
3911 else
3912 case $ac_pt_PKG_CONFIG in
3913 [\\/]* | ?:[\\/]*)
3914 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3915 ;;
3916 *)
3917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918 for as_dir in $PATH
3919 do
3920 IFS=$as_save_IFS
3921 test -z "$as_dir" && as_dir=.
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3924 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3926 break 2
3927 fi
3928 done
3929 done
3930 IFS=$as_save_IFS
3931
3932 ;;
3933 esac
3934 fi
3935 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3936 if test -n "$ac_pt_PKG_CONFIG"; then
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3938 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3939 else
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3941 $as_echo "no" >&6; }
3942 fi
3943
3944 if test "x$ac_pt_PKG_CONFIG" = x; then
3945 PKG_CONFIG=""
3946 else
3947 case $cross_compiling:$ac_tool_warned in
3948 yes:)
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3951 ac_tool_warned=yes ;;
3952 esac
3953 PKG_CONFIG=$ac_pt_PKG_CONFIG
3954 fi
3955 else
3956 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3957 fi
3958
3959 fi
3960 if test -n "$PKG_CONFIG"; then
3961 _pkg_min_version=0.9.0
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3963 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3964 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3966 $as_echo "yes" >&6; }
3967 else
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969 $as_echo "no" >&6; }
3970 PKG_CONFIG=""
3971 fi
3972 fi
3973 # Make sure we can run config.sub.
3974 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3975 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3976
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3978 $as_echo_n "checking build system type... " >&6; }
3979 if test "${ac_cv_build+set}" = set; then :
3980 $as_echo_n "(cached) " >&6
3981 else
3982 ac_build_alias=$build_alias
3983 test "x$ac_build_alias" = x &&
3984 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3985 test "x$ac_build_alias" = x &&
3986 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3987 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3988 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3989
3990 fi
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3992 $as_echo "$ac_cv_build" >&6; }
3993 case $ac_cv_build in
3994 *-*-*) ;;
3995 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3996 esac
3997 build=$ac_cv_build
3998 ac_save_IFS=$IFS; IFS='-'
3999 set x $ac_cv_build
4000 shift
4001 build_cpu=$1
4002 build_vendor=$2
4003 shift; shift
4004 # Remember, the first character of IFS is used to create $*,
4005 # except with old shells:
4006 build_os=$*
4007 IFS=$ac_save_IFS
4008 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4009
4010
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4012 $as_echo_n "checking host system type... " >&6; }
4013 if test "${ac_cv_host+set}" = set; then :
4014 $as_echo_n "(cached) " >&6
4015 else
4016 if test "x$host_alias" = x; then
4017 ac_cv_host=$ac_cv_build
4018 else
4019 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4020 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4021 fi
4022
4023 fi
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4025 $as_echo "$ac_cv_host" >&6; }
4026 case $ac_cv_host in
4027 *-*-*) ;;
4028 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
4029 esac
4030 host=$ac_cv_host
4031 ac_save_IFS=$IFS; IFS='-'
4032 set x $ac_cv_host
4033 shift
4034 host_cpu=$1
4035 host_vendor=$2
4036 shift; shift
4037 # Remember, the first character of IFS is used to create $*,
4038 # except with old shells:
4039 host_os=$*
4040 IFS=$ac_save_IFS
4041 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4042
4043
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4045 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4046 if test "${ac_cv_path_SED+set}" = set; then :
4047 $as_echo_n "(cached) " >&6
4048 else
4049 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4050 for ac_i in 1 2 3 4 5 6 7; do
4051 ac_script="$ac_script$as_nl$ac_script"
4052 done
4053 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4054 { ac_script=; unset ac_script;}
4055 if test -z "$SED"; then
4056 ac_path_SED_found=false
4057 # Loop through the user's path and test for each of PROGNAME-LIST
4058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059 for as_dir in $PATH
4060 do
4061 IFS=$as_save_IFS
4062 test -z "$as_dir" && as_dir=.
4063 for ac_prog in sed gsed; do
4064 for ac_exec_ext in '' $ac_executable_extensions; do
4065 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4066 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4067 # Check for GNU ac_path_SED and select it if it is found.
4068 # Check for GNU $ac_path_SED
4069 case `"$ac_path_SED" --version 2>&1` in
4070 *GNU*)
4071 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4072 *)
4073 ac_count=0
4074 $as_echo_n 0123456789 >"conftest.in"
4075 while :
4076 do
4077 cat "conftest.in" "conftest.in" >"conftest.tmp"
4078 mv "conftest.tmp" "conftest.in"
4079 cp "conftest.in" "conftest.nl"
4080 $as_echo '' >> "conftest.nl"
4081 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4082 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4083 as_fn_arith $ac_count + 1 && ac_count=$as_val
4084 if test $ac_count -gt ${ac_path_SED_max-0}; then
4085 # Best one so far, save it but keep looking for a better one
4086 ac_cv_path_SED="$ac_path_SED"
4087 ac_path_SED_max=$ac_count
4088 fi
4089 # 10*(2^10) chars as input seems more than enough
4090 test $ac_count -gt 10 && break
4091 done
4092 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4093 esac
4094
4095 $ac_path_SED_found && break 3
4096 done
4097 done
4098 done
4099 IFS=$as_save_IFS
4100 if test -z "$ac_cv_path_SED"; then
4101 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4102 fi
4103 else
4104 ac_cv_path_SED=$SED
4105 fi
4106
4107 fi
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4109 $as_echo "$ac_cv_path_SED" >&6; }
4110 SED="$ac_cv_path_SED"
4111 rm -f conftest.sed
4112
4113
4114
4115
4116
4117 if test "x$GCC" = xyes ; then
4118 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4119 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4120 -Wbad-function-cast -Wformat=2"
4121 case `$CC -dumpversion` in
4122 3.4.* | 4.*)
4123 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4124 ;;
4125 esac
4126 else
4127 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4128 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
4129 SUNCC="yes"
4130 else
4131 SUNCC="no"
4132 fi
4133
4134 if test "x$SUNCC" = "xyes"; then
4135 CWARNFLAGS="-v"
4136 fi
4137 fi
4138
4139
4140
4141 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4142
4143
4144
4145 # Check whether --enable-strict-compilation was given.
4146 if test "${enable_strict_compilation+set}" = set; then :
4147 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4148 else
4149 STRICT_COMPILE=no
4150 fi
4151
4152 if test "x$STRICT_COMPILE" = "xyes"; then
4153 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4154 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
4155 SUNCC="yes"
4156 else
4157 SUNCC="no"
4158 fi
4159
4160 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4161 if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then :
4162 INTELCC="yes"
4163 else
4164 INTELCC="no"
4165 fi
4166
4167 if test "x$GCC" = xyes ; then
4168 STRICT_CFLAGS="-pedantic -Werror"
4169 elif test "x$SUNCC" = "xyes"; then
4170 STRICT_CFLAGS="-errwarn"
4171 elif test "x$INTELCC" = "xyes"; then
4172 STRICT_CFLAGS="-Werror"
4173 fi
4174 fi
4175 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4176
4177
4178
4179
4180 cat >>confdefs.h <<_ACEOF
4181 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4182 _ACEOF
4183
4184 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4185 if test "x$PVM" = "x"; then
4186 PVM="0"
4187 fi
4188
4189 cat >>confdefs.h <<_ACEOF
4190 #define PACKAGE_VERSION_MINOR $PVM
4191 _ACEOF
4192
4193 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4194 if test "x$PVP" = "x"; then
4195 PVP="0"
4196 fi
4197
4198 cat >>confdefs.h <<_ACEOF
4199 #define PACKAGE_VERSION_PATCHLEVEL $PVP
4200 _ACEOF
4201
4202
4203
4204 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4205 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4206 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4207 echo 'git directory not found: installing possibly empty changelog.' >&2)"
4208
4209
4210
4211
4212 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4213 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4214 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4215 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4216 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4217
4218
4219
4220
4221
4222
4223 if test x$APP_MAN_SUFFIX = x ; then
4224 APP_MAN_SUFFIX=1
4225 fi
4226 if test x$APP_MAN_DIR = x ; then
4227 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4228 fi
4229
4230 if test x$LIB_MAN_SUFFIX = x ; then
4231 LIB_MAN_SUFFIX=3
4232 fi
4233 if test x$LIB_MAN_DIR = x ; then
4234 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4235 fi
4236
4237 if test x$FILE_MAN_SUFFIX = x ; then
4238 case $host_os in
4239 solaris*) FILE_MAN_SUFFIX=4 ;;
4240 *) FILE_MAN_SUFFIX=5 ;;
4241 esac
4242 fi
4243 if test x$FILE_MAN_DIR = x ; then
4244 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4245 fi
4246
4247 if test x$MISC_MAN_SUFFIX = x ; then
4248 case $host_os in
4249 solaris*) MISC_MAN_SUFFIX=5 ;;
4250 *) MISC_MAN_SUFFIX=7 ;;
4251 esac
4252 fi
4253 if test x$MISC_MAN_DIR = x ; then
4254 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4255 fi
4256
4257 if test x$DRIVER_MAN_SUFFIX = x ; then
4258 case $host_os in
4259 solaris*) DRIVER_MAN_SUFFIX=7 ;;
4260 *) DRIVER_MAN_SUFFIX=4 ;;
4261 esac
4262 fi
4263 if test x$DRIVER_MAN_DIR = x ; then
4264 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4265 fi
4266
4267 if test x$ADMIN_MAN_SUFFIX = x ; then
4268 case $host_os in
4269 solaris*) ADMIN_MAN_SUFFIX=1m ;;
4270 *) ADMIN_MAN_SUFFIX=8 ;;
4271 esac
4272 fi
4273 if test x$ADMIN_MAN_DIR = x ; then
4274 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4275 fi
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291 XORG_MAN_PAGE="X Version 11"
4292
4293 MAN_SUBSTS="\
4294 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4295 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4296 -e 's|__xservername__|Xorg|g' \
4297 -e 's|__xconfigfile__|xorg.conf|g' \
4298 -e 's|__projectroot__|\$(prefix)|g' \
4299 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
4300 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4301 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4302 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4303 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4304 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4305 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4306
4307
4308
4309 # Check whether --enable-silent-rules was given.
4310 if test "${enable_silent_rules+set}" = set; then :
4311 enableval=$enable_silent_rules;
4312 fi
4313
4314 case $enable_silent_rules in
4315 yes) AM_DEFAULT_VERBOSITY=0;;
4316 no) AM_DEFAULT_VERBOSITY=1;;
4317 *) AM_DEFAULT_VERBOSITY=0;;
4318 esac
4319 AM_BACKSLASH='\'
4320
4321
4322
4323 am__api_version='1.11'
4324
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4326 $as_echo_n "checking whether build environment is sane... " >&6; }
4327 # Just in case
4328 sleep 1
4329 echo timestamp > conftest.file
4330 # Reject unsafe characters in $srcdir or the absolute working directory
4331 # name. Accept space and tab only in the latter.
4332 am_lf='
4333 '
4334 case `pwd` in
4335 *[\\\"\#\$\&\'\`$am_lf]*)
4336 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
4337 esac
4338 case $srcdir in
4339 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4340 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
4341 esac
4342
4343 # Do `set' in a subshell so we don't clobber the current shell's
4344 # arguments. Must try -L first in case configure is actually a
4345 # symlink; some systems play weird games with the mod time of symlinks
4346 # (eg FreeBSD returns the mod time of the symlink's containing
4347 # directory).
4348 if (
4349 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4350 if test "$*" = "X"; then
4351 # -L didn't work.
4352 set X `ls -t "$srcdir/configure" conftest.file`
4353 fi
4354 rm -f conftest.file
4355 if test "$*" != "X $srcdir/configure conftest.file" \
4356 && test "$*" != "X conftest.file $srcdir/configure"; then
4357
4358 # If neither matched, then we have a broken ls. This can happen
4359 # if, for instance, CONFIG_SHELL is bash and it inherits a
4360 # broken ls alias from the environment. This has actually
4361 # happened. Such a system could not be considered "sane".
4362 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4363 alias in your environment" "$LINENO" 5
4364 fi
4365
4366 test "$2" = conftest.file
4367 )
4368 then
4369 # Ok.
4370 :
4371 else
4372 as_fn_error $? "newly created file is older than distributed files!
4373 Check your system clock" "$LINENO" 5
4374 fi
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4376 $as_echo "yes" >&6; }
4377 test "$program_prefix" != NONE &&
4378 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4379 # Use a double $ so make ignores it.
4380 test "$program_suffix" != NONE &&
4381 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4382 # Double any \ or $.
4383 # By default was `s,x,x', remove it if useless.
4384 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4385 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4386
4387 # expand $ac_aux_dir to an absolute path
4388 am_aux_dir=`cd $ac_aux_dir && pwd`
4389
4390 if test x"${MISSING+set}" != xset; then
4391 case $am_aux_dir in
4392 *\ * | *\ *)
4393 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4394 *)
4395 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4396 esac
4397 fi
4398 # Use eval to expand $SHELL
4399 if eval "$MISSING --run true"; then
4400 am_missing_run="$MISSING --run "
4401 else
4402 am_missing_run=
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4404 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4405 fi
4406
4407 if test x"${install_sh}" != xset; then
4408 case $am_aux_dir in
4409 *\ * | *\ *)
4410 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4411 *)
4412 install_sh="\${SHELL} $am_aux_dir/install-sh"
4413 esac
4414 fi
4415
4416 # Installed binaries are usually stripped using `strip' when the user
4417 # run `make install-strip'. However `strip' might not be the right
4418 # tool to use in cross-compilation environments, therefore Automake
4419 # will honor the `STRIP' environment variable to overrule this program.
4420 if test "$cross_compiling" != no; then
4421 if test -n "$ac_tool_prefix"; then
4422 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4423 set dummy ${ac_tool_prefix}strip; ac_word=$2
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4425 $as_echo_n "checking for $ac_word... " >&6; }
4426 if test "${ac_cv_prog_STRIP+set}" = set; then :
4427 $as_echo_n "(cached) " >&6
4428 else
4429 if test -n "$STRIP"; then
4430 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4431 else
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 for as_dir in $PATH
4434 do
4435 IFS=$as_save_IFS
4436 test -z "$as_dir" && as_dir=.
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4439 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4441 break 2
4442 fi
4443 done
4444 done
4445 IFS=$as_save_IFS
4446
4447 fi
4448 fi
4449 STRIP=$ac_cv_prog_STRIP
4450 if test -n "$STRIP"; then
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4452 $as_echo "$STRIP" >&6; }
4453 else
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4455 $as_echo "no" >&6; }
4456 fi
4457
4458
4459 fi
4460 if test -z "$ac_cv_prog_STRIP"; then
4461 ac_ct_STRIP=$STRIP
4462 # Extract the first word of "strip", so it can be a program name with args.
4463 set dummy strip; ac_word=$2
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4465 $as_echo_n "checking for $ac_word... " >&6; }
4466 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4467 $as_echo_n "(cached) " >&6
4468 else
4469 if test -n "$ac_ct_STRIP"; then
4470 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4471 else
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473 for as_dir in $PATH
4474 do
4475 IFS=$as_save_IFS
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4479 ac_cv_prog_ac_ct_STRIP="strip"
4480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4481 break 2
4482 fi
4483 done
4484 done
4485 IFS=$as_save_IFS
4486
4487 fi
4488 fi
4489 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4490 if test -n "$ac_ct_STRIP"; then
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4492 $as_echo "$ac_ct_STRIP" >&6; }
4493 else
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4495 $as_echo "no" >&6; }
4496 fi
4497
4498 if test "x$ac_ct_STRIP" = x; then
4499 STRIP=":"
4500 else
4501 case $cross_compiling:$ac_tool_warned in
4502 yes:)
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4505 ac_tool_warned=yes ;;
4506 esac
4507 STRIP=$ac_ct_STRIP
4508 fi
4509 else
4510 STRIP="$ac_cv_prog_STRIP"
4511 fi
4512
4513 fi
4514 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4515
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4517 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4518 if test -z "$MKDIR_P"; then
4519 if test "${ac_cv_path_mkdir+set}" = set; then :
4520 $as_echo_n "(cached) " >&6
4521 else
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4524 do
4525 IFS=$as_save_IFS
4526 test -z "$as_dir" && as_dir=.
4527 for ac_prog in mkdir gmkdir; do
4528 for ac_exec_ext in '' $ac_executable_extensions; do
4529 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4530 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4531 'mkdir (GNU coreutils) '* | \
4532 'mkdir (coreutils) '* | \
4533 'mkdir (fileutils) '4.1*)
4534 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4535 break 3;;
4536 esac
4537 done
4538 done
4539 done
4540 IFS=$as_save_IFS
4541
4542 fi
4543
4544 test -d ./--version && rmdir ./--version
4545 if test "${ac_cv_path_mkdir+set}" = set; then
4546 MKDIR_P="$ac_cv_path_mkdir -p"
4547 else
4548 # As a last resort, use the slow shell script. Don't cache a
4549 # value for MKDIR_P within a source directory, because that will
4550 # break other packages using the cache if that directory is
4551 # removed, or if the value is a relative name.
4552 MKDIR_P="$ac_install_sh -d"
4553 fi
4554 fi
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4556 $as_echo "$MKDIR_P" >&6; }
4557
4558 mkdir_p="$MKDIR_P"
4559 case $mkdir_p in
4560 [\\/$]* | ?:[\\/]*) ;;
4561 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4562 esac
4563
4564 for ac_prog in gawk mawk nawk awk
4565 do
4566 # Extract the first word of "$ac_prog", so it can be a program name with args.
4567 set dummy $ac_prog; 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_AWK+set}" = set; then :
4571 $as_echo_n "(cached) " >&6
4572 else
4573 if test -n "$AWK"; then
4574 ac_cv_prog_AWK="$AWK" # 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_AWK="$ac_prog"
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 AWK=$ac_cv_prog_AWK
4594 if test -n "$AWK"; then
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4596 $as_echo "$AWK" >&6; }
4597 else
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4599 $as_echo "no" >&6; }
4600 fi
4601
4602
4603 test -n "$AWK" && break
4604 done
4605
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4607 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4608 set x ${MAKE-make}
4609 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4610 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4611 $as_echo_n "(cached) " >&6
4612 else
4613 cat >conftest.make <<\_ACEOF
4614 SHELL = /bin/sh
4615 all:
4616 @echo '@@@%%%=$(MAKE)=@@@%%%'
4617 _ACEOF
4618 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4619 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4620 *@@@%%%=?*=@@@%%%*)
4621 eval ac_cv_prog_make_${ac_make}_set=yes;;
4622 *)
4623 eval ac_cv_prog_make_${ac_make}_set=no;;
4624 esac
4625 rm -f conftest.make
4626 fi
4627 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4629 $as_echo "yes" >&6; }
4630 SET_MAKE=
4631 else
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4633 $as_echo "no" >&6; }
4634 SET_MAKE="MAKE=${MAKE-make}"
4635 fi
4636
4637 rm -rf .tst 2>/dev/null
4638 mkdir .tst 2>/dev/null
4639 if test -d .tst; then
4640 am__leading_dot=.
4641 else
4642 am__leading_dot=_
4643 fi
4644 rmdir .tst 2>/dev/null
4645
4646 DEPDIR="${am__leading_dot}deps"
4647
4648 ac_config_commands="$ac_config_commands depfiles"
4649
4650
4651 am_make=${MAKE-make}
4652 cat > confinc << 'END'
4653 am__doit:
4654 @echo this is the am__doit target
4655 .PHONY: am__doit
4656 END
4657 # If we don't find an include directive, just comment out the code.
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4659 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4660 am__include="#"
4661 am__quote=
4662 _am_result=none
4663 # First try GNU make style include.
4664 echo "include confinc" > confmf
4665 # Ignore all kinds of additional output from `make'.
4666 case `$am_make -s -f confmf 2> /dev/null` in #(
4667 *the\ am__doit\ target*)
4668 am__include=include
4669 am__quote=
4670 _am_result=GNU
4671 ;;
4672 esac
4673 # Now try BSD make style include.
4674 if test "$am__include" = "#"; then
4675 echo '.include "confinc"' > confmf
4676 case `$am_make -s -f confmf 2> /dev/null` in #(
4677 *the\ am__doit\ target*)
4678 am__include=.include
4679 am__quote="\""
4680 _am_result=BSD
4681 ;;
4682 esac
4683 fi
4684
4685
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4687 $as_echo "$_am_result" >&6; }
4688 rm -f confinc confmf
4689
4690 # Check whether --enable-dependency-tracking was given.
4691 if test "${enable_dependency_tracking+set}" = set; then :
4692 enableval=$enable_dependency_tracking;
4693 fi
4694
4695 if test "x$enable_dependency_tracking" != xno; then
4696 am_depcomp="$ac_aux_dir/depcomp"
4697 AMDEPBACKSLASH='\'
4698 fi
4699 if test "x$enable_dependency_tracking" != xno; then
4700 AMDEP_TRUE=
4701 AMDEP_FALSE='#'
4702 else
4703 AMDEP_TRUE='#'
4704 AMDEP_FALSE=
4705 fi
4706
4707
4708 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4709 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4710 # is not polluted with repeated "-I."
4711 am__isrc=' -I$(srcdir)'
4712 # test to see if srcdir already configured
4713 if test -f $srcdir/config.status; then
4714 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4715 fi
4716 fi
4717
4718 # test whether we have cygpath
4719 if test -z "$CYGPATH_W"; then
4720 if (cygpath --version) >/dev/null 2>/dev/null; then
4721 CYGPATH_W='cygpath -w'
4722 else
4723 CYGPATH_W=echo
4724 fi
4725 fi
4726
4727
4728 # Define the identity of the package.
4729 PACKAGE='xf86-video-geode'
4730 VERSION='2.11.10'
4731
4732
4733 cat >>confdefs.h <<_ACEOF
4734 #define PACKAGE "$PACKAGE"
4735 _ACEOF
4736
4737
4738 cat >>confdefs.h <<_ACEOF
4739 #define VERSION "$VERSION"
4740 _ACEOF
4741
4742 # Some tools Automake needs.
4743
4744 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4745
4746
4747 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4748
4749
4750 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4751
4752
4753 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4754
4755
4756 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4757
4758 # We need awk for the "check" target. The system "awk" is bad on
4759 # some platforms.
4760 # Always define AMTAR for backward compatibility.
4761
4762 AMTAR=${AMTAR-"${am_missing_run}tar"}
4763
4764 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4765
4766
4767
4768
4769 depcc="$CC" am_compiler_list=
4770
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4772 $as_echo_n "checking dependency style of $depcc... " >&6; }
4773 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4774 $as_echo_n "(cached) " >&6
4775 else
4776 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4777 # We make a subdir and do the tests there. Otherwise we can end up
4778 # making bogus files that we don't know about and never remove. For
4779 # instance it was reported that on HP-UX the gcc test will end up
4780 # making a dummy file named `D' -- because `-MD' means `put the output
4781 # in D'.
4782 mkdir conftest.dir
4783 # Copy depcomp to subdir because otherwise we won't find it if we're
4784 # using a relative directory.
4785 cp "$am_depcomp" conftest.dir
4786 cd conftest.dir
4787 # We will build objects and dependencies in a subdirectory because
4788 # it helps to detect inapplicable dependency modes. For instance
4789 # both Tru64's cc and ICC support -MD to output dependencies as a
4790 # side effect of compilation, but ICC will put the dependencies in
4791 # the current directory while Tru64 will put them in the object
4792 # directory.
4793 mkdir sub
4794
4795 am_cv_CC_dependencies_compiler_type=none
4796 if test "$am_compiler_list" = ""; then
4797 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4798 fi
4799 am__universal=false
4800 case " $depcc " in #(
4801 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4802 esac
4803
4804 for depmode in $am_compiler_list; do
4805 # Setup a source with many dependencies, because some compilers
4806 # like to wrap large dependency lists on column 80 (with \), and
4807 # we should not choose a depcomp mode which is confused by this.
4808 #
4809 # We need to recreate these files for each test, as the compiler may
4810 # overwrite some of them when testing with obscure command lines.
4811 # This happens at least with the AIX C compiler.
4812 : > sub/conftest.c
4813 for i in 1 2 3 4 5 6; do
4814 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4815 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4816 # Solaris 8's {/usr,}/bin/sh.
4817 touch sub/conftst$i.h
4818 done
4819 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4820
4821 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4822 # mode. It turns out that the SunPro C++ compiler does not properly
4823 # handle `-M -o', and we need to detect this. Also, some Intel
4824 # versions had trouble with output in subdirs
4825 am__obj=sub/conftest.${OBJEXT-o}
4826 am__minus_obj="-o $am__obj"
4827 case $depmode in
4828 gcc)
4829 # This depmode causes a compiler race in universal mode.
4830 test "$am__universal" = false || continue
4831 ;;
4832 nosideeffect)
4833 # after this tag, mechanisms are not by side-effect, so they'll
4834 # only be used when explicitly requested
4835 if test "x$enable_dependency_tracking" = xyes; then
4836 continue
4837 else
4838 break
4839 fi
4840 ;;
4841 msvisualcpp | msvcmsys)
4842 # This compiler won't grok `-c -o', but also, the minuso test has
4843 # not run yet. These depmodes are late enough in the game, and
4844 # so weak that their functioning should not be impacted.
4845 am__obj=conftest.${OBJEXT-o}
4846 am__minus_obj=
4847 ;;
4848 none) break ;;
4849 esac
4850 if depmode=$depmode \
4851 source=sub/conftest.c object=$am__obj \
4852 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4853 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4854 >/dev/null 2>conftest.err &&
4855 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4856 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4857 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4858 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4859 # icc doesn't choke on unknown options, it will just issue warnings
4860 # or remarks (even with -Werror). So we grep stderr for any message
4861 # that says an option was ignored or not supported.
4862 # When given -MP, icc 7.0 and 7.1 complain thusly:
4863 # icc: Command line warning: ignoring option '-M'; no argument required
4864 # The diagnosis changed in icc 8.0:
4865 # icc: Command line remark: option '-MP' not supported
4866 if (grep 'ignoring option' conftest.err ||
4867 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4868 am_cv_CC_dependencies_compiler_type=$depmode
4869 break
4870 fi
4871 fi
4872 done
4873
4874 cd ..
4875 rm -rf conftest.dir
4876 else
4877 am_cv_CC_dependencies_compiler_type=none
4878 fi
4879
4880 fi
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4882 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4883 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4884
4885 if
4886 test "x$enable_dependency_tracking" != xno \
4887 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4888 am__fastdepCC_TRUE=
4889 am__fastdepCC_FALSE='#'
4890 else
4891 am__fastdepCC_TRUE='#'
4892 am__fastdepCC_FALSE=
4893 fi
4894
4895
4896
4897
4898
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4900 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4901 # Check whether --enable-maintainer-mode was given.
4902 if test "${enable_maintainer_mode+set}" = set; then :
4903 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4904 else
4905 USE_MAINTAINER_MODE=no
4906 fi
4907
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4909 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4910 if test $USE_MAINTAINER_MODE = yes; then
4911 MAINTAINER_MODE_TRUE=
4912 MAINTAINER_MODE_FALSE='#'
4913 else
4914 MAINTAINER_MODE_TRUE='#'
4915 MAINTAINER_MODE_FALSE=
4916 fi
4917
4918 MAINT=$MAINTAINER_MODE_TRUE
4919
4920
4921
4922 # Checks for programs.
4923 # Check whether --enable-static was given.
4924 if test "${enable_static+set}" = set; then :
4925 enableval=$enable_static; p=${PACKAGE-default}
4926 case $enableval in
4927 yes) enable_static=yes ;;
4928 no) enable_static=no ;;
4929 *)
4930 enable_static=no
4931 # Look at the argument we got. We use all the common list separators.
4932 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4933 for pkg in $enableval; do
4934 IFS="$lt_save_ifs"
4935 if test "X$pkg" = "X$p"; then
4936 enable_static=yes
4937 fi
4938 done
4939 IFS="$lt_save_ifs"
4940 ;;
4941 esac
4942 else
4943 enable_static=no
4944 fi
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954 case `pwd` in
4955 *\ * | *\ *)
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4957 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4958 esac
4959
4960
4961
4962 macro_version='2.2.6b'
4963 macro_revision='1.3017'
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977 ltmain="$ac_aux_dir/ltmain.sh"
4978
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4980 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4981 if test "${ac_cv_path_SED+set}" = set; then :
4982 $as_echo_n "(cached) " >&6
4983 else
4984 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4985 for ac_i in 1 2 3 4 5 6 7; do
4986 ac_script="$ac_script$as_nl$ac_script"
4987 done
4988 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4989 { ac_script=; unset ac_script;}
4990 if test -z "$SED"; then
4991 ac_path_SED_found=false
4992 # Loop through the user's path and test for each of PROGNAME-LIST
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 for as_dir in $PATH
4995 do
4996 IFS=$as_save_IFS
4997 test -z "$as_dir" && as_dir=.
4998 for ac_prog in sed gsed; do
4999 for ac_exec_ext in '' $ac_executable_extensions; do
5000 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5001 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5002 # Check for GNU ac_path_SED and select it if it is found.
5003 # Check for GNU $ac_path_SED
5004 case `"$ac_path_SED" --version 2>&1` in
5005 *GNU*)
5006 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5007 *)
5008 ac_count=0
5009 $as_echo_n 0123456789 >"conftest.in"
5010 while :
5011 do
5012 cat "conftest.in" "conftest.in" >"conftest.tmp"
5013 mv "conftest.tmp" "conftest.in"
5014 cp "conftest.in" "conftest.nl"
5015 $as_echo '' >> "conftest.nl"
5016 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5017 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5018 as_fn_arith $ac_count + 1 && ac_count=$as_val
5019 if test $ac_count -gt ${ac_path_SED_max-0}; then
5020 # Best one so far, save it but keep looking for a better one
5021 ac_cv_path_SED="$ac_path_SED"
5022 ac_path_SED_max=$ac_count
5023 fi
5024 # 10*(2^10) chars as input seems more than enough
5025 test $ac_count -gt 10 && break
5026 done
5027 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5028 esac
5029
5030 $ac_path_SED_found && break 3
5031 done
5032 done
5033 done
5034 IFS=$as_save_IFS
5035 if test -z "$ac_cv_path_SED"; then
5036 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5037 fi
5038 else
5039 ac_cv_path_SED=$SED
5040 fi
5041
5042 fi
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5044 $as_echo "$ac_cv_path_SED" >&6; }
5045 SED="$ac_cv_path_SED"
5046 rm -f conftest.sed
5047
5048 test -z "$SED" && SED=sed
5049 Xsed="$SED -e 1s/^X//"
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5062 $as_echo_n "checking for fgrep... " >&6; }
5063 if test "${ac_cv_path_FGREP+set}" = set; then :
5064 $as_echo_n "(cached) " >&6
5065 else
5066 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5067 then ac_cv_path_FGREP="$GREP -F"
5068 else
5069 if test -z "$FGREP"; then
5070 ac_path_FGREP_found=false
5071 # Loop through the user's path and test for each of PROGNAME-LIST
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5074 do
5075 IFS=$as_save_IFS
5076 test -z "$as_dir" && as_dir=.
5077 for ac_prog in fgrep; do
5078 for ac_exec_ext in '' $ac_executable_extensions; do
5079 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5080 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5081 # Check for GNU ac_path_FGREP and select it if it is found.
5082 # Check for GNU $ac_path_FGREP
5083 case `"$ac_path_FGREP" --version 2>&1` in
5084 *GNU*)
5085 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5086 *)
5087 ac_count=0
5088 $as_echo_n 0123456789 >"conftest.in"
5089 while :
5090 do
5091 cat "conftest.in" "conftest.in" >"conftest.tmp"
5092 mv "conftest.tmp" "conftest.in"
5093 cp "conftest.in" "conftest.nl"
5094 $as_echo 'FGREP' >> "conftest.nl"
5095 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5096 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5097 as_fn_arith $ac_count + 1 && ac_count=$as_val
5098 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5099 # Best one so far, save it but keep looking for a better one
5100 ac_cv_path_FGREP="$ac_path_FGREP"
5101 ac_path_FGREP_max=$ac_count
5102 fi
5103 # 10*(2^10) chars as input seems more than enough
5104 test $ac_count -gt 10 && break
5105 done
5106 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5107 esac
5108
5109 $ac_path_FGREP_found && break 3
5110 done
5111 done
5112 done
5113 IFS=$as_save_IFS
5114 if test -z "$ac_cv_path_FGREP"; then
5115 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5116 fi
5117 else
5118 ac_cv_path_FGREP=$FGREP
5119 fi
5120
5121 fi
5122 fi
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5124 $as_echo "$ac_cv_path_FGREP" >&6; }
5125 FGREP="$ac_cv_path_FGREP"
5126
5127
5128 test -z "$GREP" && GREP=grep
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148 # Check whether --with-gnu-ld was given.
5149 if test "${with_gnu_ld+set}" = set; then :
5150 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5151 else
5152 with_gnu_ld=no
5153 fi
5154
5155 ac_prog=ld
5156 if test "$GCC" = yes; then
5157 # Check if gcc -print-prog-name=ld gives a path.
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5159 $as_echo_n "checking for ld used by $CC... " >&6; }
5160 case $host in
5161 *-*-mingw*)
5162 # gcc leaves a trailing carriage return which upsets mingw
5163 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5164 *)
5165 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5166 esac
5167 case $ac_prog in
5168 # Accept absolute paths.
5169 [\\/]* | ?:[\\/]*)
5170 re_direlt='/[^/][^/]*/\.\./'
5171 # Canonicalize the pathname of ld
5172 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5173 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5174 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5175 done
5176 test -z "$LD" && LD="$ac_prog"
5177 ;;
5178 "")
5179 # If it fails, then pretend we aren't using GCC.
5180 ac_prog=ld
5181 ;;
5182 *)
5183 # If it is relative, then search for the first ld in PATH.
5184 with_gnu_ld=unknown
5185 ;;
5186 esac
5187 elif test "$with_gnu_ld" = yes; then
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5189 $as_echo_n "checking for GNU ld... " >&6; }
5190 else
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5192 $as_echo_n "checking for non-GNU ld... " >&6; }
5193 fi
5194 if test "${lt_cv_path_LD+set}" = set; then :
5195 $as_echo_n "(cached) " >&6
5196 else
5197 if test -z "$LD"; then
5198 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5199 for ac_dir in $PATH; do
5200 IFS="$lt_save_ifs"
5201 test -z "$ac_dir" && ac_dir=.
5202 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5203 lt_cv_path_LD="$ac_dir/$ac_prog"
5204 # Check to see if the program is GNU ld. I'd rather use --version,
5205 # but apparently some variants of GNU ld only accept -v.
5206 # Break only if it was the GNU/non-GNU ld that we prefer.
5207 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5208 *GNU* | *'with BFD'*)
5209 test "$with_gnu_ld" != no && break
5210 ;;
5211 *)
5212 test "$with_gnu_ld" != yes && break
5213 ;;
5214 esac
5215 fi
5216 done
5217 IFS="$lt_save_ifs"
5218 else
5219 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5220 fi
5221 fi
5222
5223 LD="$lt_cv_path_LD"
5224 if test -n "$LD"; then
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5226 $as_echo "$LD" >&6; }
5227 else
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5229 $as_echo "no" >&6; }
5230 fi
5231 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5233 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5234 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5235 $as_echo_n "(cached) " >&6
5236 else
5237 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5238 case `$LD -v 2>&1 </dev/null` in
5239 *GNU* | *'with BFD'*)
5240 lt_cv_prog_gnu_ld=yes
5241 ;;
5242 *)
5243 lt_cv_prog_gnu_ld=no
5244 ;;
5245 esac
5246 fi
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5248 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5249 with_gnu_ld=$lt_cv_prog_gnu_ld
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5260 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5261 if test "${lt_cv_path_NM+set}" = set; then :
5262 $as_echo_n "(cached) " >&6
5263 else
5264 if test -n "$NM"; then
5265 # Let the user override the test.
5266 lt_cv_path_NM="$NM"
5267 else
5268 lt_nm_to_check="${ac_tool_prefix}nm"
5269 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5270 lt_nm_to_check="$lt_nm_to_check nm"
5271 fi
5272 for lt_tmp_nm in $lt_nm_to_check; do
5273 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5274 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5275 IFS="$lt_save_ifs"
5276 test -z "$ac_dir" && ac_dir=.
5277 tmp_nm="$ac_dir/$lt_tmp_nm"
5278 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5279 # Check to see if the nm accepts a BSD-compat flag.
5280 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5281 # nm: unknown option "B" ignored
5282 # Tru64's nm complains that /dev/null is an invalid object file
5283 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5284 */dev/null* | *'Invalid file or object type'*)
5285 lt_cv_path_NM="$tmp_nm -B"
5286 break
5287 ;;
5288 *)
5289 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5290 */dev/null*)
5291 lt_cv_path_NM="$tmp_nm -p"
5292 break
5293 ;;
5294 *)
5295 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5296 continue # so that we can try to find one that supports BSD flags
5297 ;;
5298 esac
5299 ;;
5300 esac
5301 fi
5302 done
5303 IFS="$lt_save_ifs"
5304 done
5305 : ${lt_cv_path_NM=no}
5306 fi
5307 fi
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5309 $as_echo "$lt_cv_path_NM" >&6; }
5310 if test "$lt_cv_path_NM" != "no"; then
5311 NM="$lt_cv_path_NM"
5312 else
5313 # Didn't find any BSD compatible name lister, look for dumpbin.
5314 if test -n "$ac_tool_prefix"; then
5315 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5316 do
5317 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5318 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5320 $as_echo_n "checking for $ac_word... " >&6; }
5321 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5322 $as_echo_n "(cached) " >&6
5323 else
5324 if test -n "$DUMPBIN"; then
5325 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5326 else
5327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328 for as_dir in $PATH
5329 do
5330 IFS=$as_save_IFS
5331 test -z "$as_dir" && as_dir=.
5332 for ac_exec_ext in '' $ac_executable_extensions; do
5333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5334 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5336 break 2
5337 fi
5338 done
5339 done
5340 IFS=$as_save_IFS
5341
5342 fi
5343 fi
5344 DUMPBIN=$ac_cv_prog_DUMPBIN
5345 if test -n "$DUMPBIN"; then
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5347 $as_echo "$DUMPBIN" >&6; }
5348 else
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5350 $as_echo "no" >&6; }
5351 fi
5352
5353
5354 test -n "$DUMPBIN" && break
5355 done
5356 fi
5357 if test -z "$DUMPBIN"; then
5358 ac_ct_DUMPBIN=$DUMPBIN
5359 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5360 do
5361 # Extract the first word of "$ac_prog", so it can be a program name with args.
5362 set dummy $ac_prog; ac_word=$2
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5364 $as_echo_n "checking for $ac_word... " >&6; }
5365 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5366 $as_echo_n "(cached) " >&6
5367 else
5368 if test -n "$ac_ct_DUMPBIN"; then
5369 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5370 else
5371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372 for as_dir in $PATH
5373 do
5374 IFS=$as_save_IFS
5375 test -z "$as_dir" && as_dir=.
5376 for ac_exec_ext in '' $ac_executable_extensions; do
5377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5378 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5380 break 2
5381 fi
5382 done
5383 done
5384 IFS=$as_save_IFS
5385
5386 fi
5387 fi
5388 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5389 if test -n "$ac_ct_DUMPBIN"; then
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5391 $as_echo "$ac_ct_DUMPBIN" >&6; }
5392 else
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394 $as_echo "no" >&6; }
5395 fi
5396
5397
5398 test -n "$ac_ct_DUMPBIN" && break
5399 done
5400
5401 if test "x$ac_ct_DUMPBIN" = x; then
5402 DUMPBIN=":"
5403 else
5404 case $cross_compiling:$ac_tool_warned in
5405 yes:)
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5408 ac_tool_warned=yes ;;
5409 esac
5410 DUMPBIN=$ac_ct_DUMPBIN
5411 fi
5412 fi
5413
5414
5415 if test "$DUMPBIN" != ":"; then
5416 NM="$DUMPBIN"
5417 fi
5418 fi
5419 test -z "$NM" && NM=nm
5420
5421
5422
5423
5424
5425
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5427 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5428 if test "${lt_cv_nm_interface+set}" = set; then :
5429 $as_echo_n "(cached) " >&6
5430 else
5431 lt_cv_nm_interface="BSD nm"
5432 echo "int some_variable = 0;" > conftest.$ac_ext
5433 (eval echo "\"\$as_me:5433: $ac_compile\"" >&5)
5434 (eval "$ac_compile" 2>conftest.err)
5435 cat conftest.err >&5
5436 (eval echo "\"\$as_me:5436: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5437 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5438 cat conftest.err >&5
5439 (eval echo "\"\$as_me:5439: output\"" >&5)
5440 cat conftest.out >&5
5441 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5442 lt_cv_nm_interface="MS dumpbin"
5443 fi
5444 rm -f conftest*
5445 fi
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5447 $as_echo "$lt_cv_nm_interface" >&6; }
5448
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5450 $as_echo_n "checking whether ln -s works... " >&6; }
5451 LN_S=$as_ln_s
5452 if test "$LN_S" = "ln -s"; then
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5454 $as_echo "yes" >&6; }
5455 else
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5457 $as_echo "no, using $LN_S" >&6; }
5458 fi
5459
5460 # find the maximum length of command line arguments
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5462 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5463 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5464 $as_echo_n "(cached) " >&6
5465 else
5466 i=0
5467 teststring="ABCD"
5468
5469 case $build_os in
5470 msdosdjgpp*)
5471 # On DJGPP, this test can blow up pretty badly due to problems in libc
5472 # (any single argument exceeding 2000 bytes causes a buffer overrun
5473 # during glob expansion). Even if it were fixed, the result of this
5474 # check would be larger than it should be.
5475 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5476 ;;
5477
5478 gnu*)
5479 # Under GNU Hurd, this test is not required because there is
5480 # no limit to the length of command line arguments.
5481 # Libtool will interpret -1 as no limit whatsoever
5482 lt_cv_sys_max_cmd_len=-1;
5483 ;;
5484
5485 cygwin* | mingw* | cegcc*)
5486 # On Win9x/ME, this test blows up -- it succeeds, but takes
5487 # about 5 minutes as the teststring grows exponentially.
5488 # Worse, since 9x/ME are not pre-emptively multitasking,
5489 # you end up with a "frozen" computer, even though with patience
5490 # the test eventually succeeds (with a max line length of 256k).
5491 # Instead, let's just punt: use the minimum linelength reported by
5492 # all of the supported platforms: 8192 (on NT/2K/XP).
5493 lt_cv_sys_max_cmd_len=8192;
5494 ;;
5495
5496 amigaos*)
5497 # On AmigaOS with pdksh, this test takes hours, literally.
5498 # So we just punt and use a minimum line length of 8192.
5499 lt_cv_sys_max_cmd_len=8192;
5500 ;;
5501
5502 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5503 # This has been around since 386BSD, at least. Likely further.
5504 if test -x /sbin/sysctl; then
5505 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5506 elif test -x /usr/sbin/sysctl; then
5507 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5508 else
5509 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5510 fi
5511 # And add a safety zone
5512 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5513 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5514 ;;
5515
5516 interix*)
5517 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5518 lt_cv_sys_max_cmd_len=196608
5519 ;;
5520
5521 osf*)
5522 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5523 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5524 # nice to cause kernel panics so lets avoid the loop below.
5525 # First set a reasonable default.
5526 lt_cv_sys_max_cmd_len=16384
5527 #
5528 if test -x /sbin/sysconfig; then
5529 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5530 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5531 esac
5532 fi
5533 ;;
5534 sco3.2v5*)
5535 lt_cv_sys_max_cmd_len=102400
5536 ;;
5537 sysv5* | sco5v6* | sysv4.2uw2*)
5538 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5539 if test -n "$kargmax"; then
5540 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5541 else
5542 lt_cv_sys_max_cmd_len=32768
5543 fi
5544 ;;
5545 *)
5546 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5547 if test -n "$lt_cv_sys_max_cmd_len"; then
5548 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5549 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5550 else
5551 # Make teststring a little bigger before we do anything with it.
5552 # a 1K string should be a reasonable start.
5553 for i in 1 2 3 4 5 6 7 8 ; do
5554 teststring=$teststring$teststring
5555 done
5556 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5557 # If test is not a shell built-in, we'll probably end up computing a
5558 # maximum length that is only half of the actual maximum length, but
5559 # we can't tell.
5560 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5561 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5562 test $i != 17 # 1/2 MB should be enough
5563 do
5564 i=`expr $i + 1`
5565 teststring=$teststring$teststring
5566 done
5567 # Only check the string length outside the loop.
5568 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5569 teststring=
5570 # Add a significant safety factor because C++ compilers can tack on
5571 # massive amounts of additional arguments before passing them to the
5572 # linker. It appears as though 1/2 is a usable value.
5573 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5574 fi
5575 ;;
5576 esac
5577
5578 fi
5579
5580 if test -n $lt_cv_sys_max_cmd_len ; then
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5582 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5583 else
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5585 $as_echo "none" >&6; }
5586 fi
5587 max_cmd_len=$lt_cv_sys_max_cmd_len
5588
5589
5590
5591
5592
5593
5594 : ${CP="cp -f"}
5595 : ${MV="mv -f"}
5596 : ${RM="rm -f"}
5597
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5599 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5600 # Try some XSI features
5601 xsi_shell=no
5602 ( _lt_dummy="a/b/c"
5603 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5604 = c,a/b,, \
5605 && eval 'test $(( 1 + 1 )) -eq 2 \
5606 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5607 && xsi_shell=yes
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5609 $as_echo "$xsi_shell" >&6; }
5610
5611
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5613 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5614 lt_shell_append=no
5615 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5616 >/dev/null 2>&1 \
5617 && lt_shell_append=yes
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5619 $as_echo "$lt_shell_append" >&6; }
5620
5621
5622 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5623 lt_unset=unset
5624 else
5625 lt_unset=false
5626 fi
5627
5628
5629
5630
5631
5632 # test EBCDIC or ASCII
5633 case `echo X|tr X '\101'` in
5634 A) # ASCII based system
5635 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5636 lt_SP2NL='tr \040 \012'
5637 lt_NL2SP='tr \015\012 \040\040'
5638 ;;
5639 *) # EBCDIC based system
5640 lt_SP2NL='tr \100 \n'
5641 lt_NL2SP='tr \r\n \100\100'
5642 ;;
5643 esac
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5654 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5655 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5656 $as_echo_n "(cached) " >&6
5657 else
5658 lt_cv_ld_reload_flag='-r'
5659 fi
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5661 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5662 reload_flag=$lt_cv_ld_reload_flag
5663 case $reload_flag in
5664 "" | " "*) ;;
5665 *) reload_flag=" $reload_flag" ;;
5666 esac
5667 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5668 case $host_os in
5669 darwin*)
5670 if test "$GCC" = yes; then
5671 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5672 else
5673 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5674 fi
5675 ;;
5676 esac
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686 if test -n "$ac_tool_prefix"; then
5687 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5688 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5690 $as_echo_n "checking for $ac_word... " >&6; }
5691 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5692 $as_echo_n "(cached) " >&6
5693 else
5694 if test -n "$OBJDUMP"; then
5695 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5696 else
5697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698 for as_dir in $PATH
5699 do
5700 IFS=$as_save_IFS
5701 test -z "$as_dir" && as_dir=.
5702 for ac_exec_ext in '' $ac_executable_extensions; do
5703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5704 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5706 break 2
5707 fi
5708 done
5709 done
5710 IFS=$as_save_IFS
5711
5712 fi
5713 fi
5714 OBJDUMP=$ac_cv_prog_OBJDUMP
5715 if test -n "$OBJDUMP"; then
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5717 $as_echo "$OBJDUMP" >&6; }
5718 else
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5720 $as_echo "no" >&6; }
5721 fi
5722
5723
5724 fi
5725 if test -z "$ac_cv_prog_OBJDUMP"; then
5726 ac_ct_OBJDUMP=$OBJDUMP
5727 # Extract the first word of "objdump", so it can be a program name with args.
5728 set dummy objdump; ac_word=$2
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5730 $as_echo_n "checking for $ac_word... " >&6; }
5731 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5732 $as_echo_n "(cached) " >&6
5733 else
5734 if test -n "$ac_ct_OBJDUMP"; then
5735 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5736 else
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 for as_dir in $PATH
5739 do
5740 IFS=$as_save_IFS
5741 test -z "$as_dir" && as_dir=.
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5744 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5746 break 2
5747 fi
5748 done
5749 done
5750 IFS=$as_save_IFS
5751
5752 fi
5753 fi
5754 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5755 if test -n "$ac_ct_OBJDUMP"; then
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5757 $as_echo "$ac_ct_OBJDUMP" >&6; }
5758 else
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760 $as_echo "no" >&6; }
5761 fi
5762
5763 if test "x$ac_ct_OBJDUMP" = x; then
5764 OBJDUMP="false"
5765 else
5766 case $cross_compiling:$ac_tool_warned in
5767 yes:)
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5770 ac_tool_warned=yes ;;
5771 esac
5772 OBJDUMP=$ac_ct_OBJDUMP
5773 fi
5774 else
5775 OBJDUMP="$ac_cv_prog_OBJDUMP"
5776 fi
5777
5778 test -z "$OBJDUMP" && OBJDUMP=objdump
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5789 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5790 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5791 $as_echo_n "(cached) " >&6
5792 else
5793 lt_cv_file_magic_cmd='$MAGIC_CMD'
5794 lt_cv_file_magic_test_file=
5795 lt_cv_deplibs_check_method='unknown'
5796 # Need to set the preceding variable on all platforms that support
5797 # interlibrary dependencies.
5798 # 'none' -- dependencies not supported.
5799 # `unknown' -- same as none, but documents that we really don't know.
5800 # 'pass_all' -- all dependencies passed with no checks.
5801 # 'test_compile' -- check by making test program.
5802 # 'file_magic [[regex]]' -- check by looking for files in library path
5803 # which responds to the $file_magic_cmd with a given extended regex.
5804 # If you have `file' or equivalent on your system and you're not sure
5805 # whether `pass_all' will *always* work, you probably want this one.
5806
5807 case $host_os in
5808 aix[4-9]*)
5809 lt_cv_deplibs_check_method=pass_all
5810 ;;
5811
5812 beos*)
5813 lt_cv_deplibs_check_method=pass_all
5814 ;;
5815
5816 bsdi[45]*)
5817 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5818 lt_cv_file_magic_cmd='/usr/bin/file -L'
5819 lt_cv_file_magic_test_file=/shlib/libc.so
5820 ;;
5821
5822 cygwin*)
5823 # func_win32_libid is a shell function defined in ltmain.sh
5824 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5825 lt_cv_file_magic_cmd='func_win32_libid'
5826 ;;
5827
5828 mingw* | pw32*)
5829 # Base MSYS/MinGW do not provide the 'file' command needed by
5830 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5831 # unless we find 'file', for example because we are cross-compiling.
5832 if ( file / ) >/dev/null 2>&1; then
5833 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5834 lt_cv_file_magic_cmd='func_win32_libid'
5835 else
5836 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5837 lt_cv_file_magic_cmd='$OBJDUMP -f'
5838 fi
5839 ;;
5840
5841 cegcc)
5842 # use the weaker test based on 'objdump'. See mingw*.
5843 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5844 lt_cv_file_magic_cmd='$OBJDUMP -f'
5845 ;;
5846
5847 darwin* | rhapsody*)
5848 lt_cv_deplibs_check_method=pass_all
5849 ;;
5850
5851 freebsd* | dragonfly*)
5852 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5853 case $host_cpu in
5854 i*86 )
5855 # Not sure whether the presence of OpenBSD here was a mistake.
5856 # Let's accept both of them until this is cleared up.
5857 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5858 lt_cv_file_magic_cmd=/usr/bin/file
5859 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5860 ;;
5861 esac
5862 else
5863 lt_cv_deplibs_check_method=pass_all
5864 fi
5865 ;;
5866
5867 gnu*)
5868 lt_cv_deplibs_check_method=pass_all
5869 ;;
5870
5871 hpux10.20* | hpux11*)
5872 lt_cv_file_magic_cmd=/usr/bin/file
5873 case $host_cpu in
5874 ia64*)
5875 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5876 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5877 ;;
5878 hppa*64*)
5879 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]'
5880 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5881 ;;
5882 *)
5883 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5884 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5885 ;;
5886 esac
5887 ;;
5888
5889 interix[3-9]*)
5890 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5891 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5892 ;;
5893
5894 irix5* | irix6* | nonstopux*)
5895 case $LD in
5896 *-32|*"-32 ") libmagic=32-bit;;
5897 *-n32|*"-n32 ") libmagic=N32;;
5898 *-64|*"-64 ") libmagic=64-bit;;
5899 *) libmagic=never-match;;
5900 esac
5901 lt_cv_deplibs_check_method=pass_all
5902 ;;
5903
5904 # This must be Linux ELF.
5905 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5906 lt_cv_deplibs_check_method=pass_all
5907 ;;
5908
5909 netbsd* | netbsdelf*-gnu)
5910 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5911 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5912 else
5913 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5914 fi
5915 ;;
5916
5917 newos6*)
5918 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5919 lt_cv_file_magic_cmd=/usr/bin/file
5920 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5921 ;;
5922
5923 *nto* | *qnx*)
5924 lt_cv_deplibs_check_method=pass_all
5925 ;;
5926
5927 openbsd*)
5928 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5929 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5930 else
5931 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5932 fi
5933 ;;
5934
5935 osf3* | osf4* | osf5*)
5936 lt_cv_deplibs_check_method=pass_all
5937 ;;
5938
5939 rdos*)
5940 lt_cv_deplibs_check_method=pass_all
5941 ;;
5942
5943 solaris*)
5944 lt_cv_deplibs_check_method=pass_all
5945 ;;
5946
5947 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5948 lt_cv_deplibs_check_method=pass_all
5949 ;;
5950
5951 sysv4 | sysv4.3*)
5952 case $host_vendor in
5953 motorola)
5954 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]'
5955 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5956 ;;
5957 ncr)
5958 lt_cv_deplibs_check_method=pass_all
5959 ;;
5960 sequent)
5961 lt_cv_file_magic_cmd='/bin/file'
5962 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5963 ;;
5964 sni)
5965 lt_cv_file_magic_cmd='/bin/file'
5966 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5967 lt_cv_file_magic_test_file=/lib/libc.so
5968 ;;
5969 siemens)
5970 lt_cv_deplibs_check_method=pass_all
5971 ;;
5972 pc)
5973 lt_cv_deplibs_check_method=pass_all
5974 ;;
5975 esac
5976 ;;
5977
5978 tpf*)
5979 lt_cv_deplibs_check_method=pass_all
5980 ;;
5981 esac
5982
5983 fi
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5985 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5986 file_magic_cmd=$lt_cv_file_magic_cmd
5987 deplibs_check_method=$lt_cv_deplibs_check_method
5988 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001 if test -n "$ac_tool_prefix"; then
6002 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6003 set dummy ${ac_tool_prefix}ar; ac_word=$2
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6005 $as_echo_n "checking for $ac_word... " >&6; }
6006 if test "${ac_cv_prog_AR+set}" = set; then :
6007 $as_echo_n "(cached) " >&6
6008 else
6009 if test -n "$AR"; then
6010 ac_cv_prog_AR="$AR" # Let the user override the test.
6011 else
6012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013 for as_dir in $PATH
6014 do
6015 IFS=$as_save_IFS
6016 test -z "$as_dir" && as_dir=.
6017 for ac_exec_ext in '' $ac_executable_extensions; do
6018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6019 ac_cv_prog_AR="${ac_tool_prefix}ar"
6020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6021 break 2
6022 fi
6023 done
6024 done
6025 IFS=$as_save_IFS
6026
6027 fi
6028 fi
6029 AR=$ac_cv_prog_AR
6030 if test -n "$AR"; then
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6032 $as_echo "$AR" >&6; }
6033 else
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6035 $as_echo "no" >&6; }
6036 fi
6037
6038
6039 fi
6040 if test -z "$ac_cv_prog_AR"; then
6041 ac_ct_AR=$AR
6042 # Extract the first word of "ar", so it can be a program name with args.
6043 set dummy ar; ac_word=$2
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6045 $as_echo_n "checking for $ac_word... " >&6; }
6046 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6047 $as_echo_n "(cached) " >&6
6048 else
6049 if test -n "$ac_ct_AR"; then
6050 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6051 else
6052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053 for as_dir in $PATH
6054 do
6055 IFS=$as_save_IFS
6056 test -z "$as_dir" && as_dir=.
6057 for ac_exec_ext in '' $ac_executable_extensions; do
6058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6059 ac_cv_prog_ac_ct_AR="ar"
6060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6061 break 2
6062 fi
6063 done
6064 done
6065 IFS=$as_save_IFS
6066
6067 fi
6068 fi
6069 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6070 if test -n "$ac_ct_AR"; then
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6072 $as_echo "$ac_ct_AR" >&6; }
6073 else
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6075 $as_echo "no" >&6; }
6076 fi
6077
6078 if test "x$ac_ct_AR" = x; then
6079 AR="false"
6080 else
6081 case $cross_compiling:$ac_tool_warned in
6082 yes:)
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6085 ac_tool_warned=yes ;;
6086 esac
6087 AR=$ac_ct_AR
6088 fi
6089 else
6090 AR="$ac_cv_prog_AR"
6091 fi
6092
6093 test -z "$AR" && AR=ar
6094 test -z "$AR_FLAGS" && AR_FLAGS=cru
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106 if test -n "$ac_tool_prefix"; then
6107 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6108 set dummy ${ac_tool_prefix}strip; ac_word=$2
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6110 $as_echo_n "checking for $ac_word... " >&6; }
6111 if test "${ac_cv_prog_STRIP+set}" = set; then :
6112 $as_echo_n "(cached) " >&6
6113 else
6114 if test -n "$STRIP"; then
6115 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6116 else
6117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 for as_dir in $PATH
6119 do
6120 IFS=$as_save_IFS
6121 test -z "$as_dir" && as_dir=.
6122 for ac_exec_ext in '' $ac_executable_extensions; do
6123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6124 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6126 break 2
6127 fi
6128 done
6129 done
6130 IFS=$as_save_IFS
6131
6132 fi
6133 fi
6134 STRIP=$ac_cv_prog_STRIP
6135 if test -n "$STRIP"; then
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6137 $as_echo "$STRIP" >&6; }
6138 else
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6140 $as_echo "no" >&6; }
6141 fi
6142
6143
6144 fi
6145 if test -z "$ac_cv_prog_STRIP"; then
6146 ac_ct_STRIP=$STRIP
6147 # Extract the first word of "strip", so it can be a program name with args.
6148 set dummy strip; ac_word=$2
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6150 $as_echo_n "checking for $ac_word... " >&6; }
6151 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6152 $as_echo_n "(cached) " >&6
6153 else
6154 if test -n "$ac_ct_STRIP"; then
6155 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6156 else
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 for as_dir in $PATH
6159 do
6160 IFS=$as_save_IFS
6161 test -z "$as_dir" && as_dir=.
6162 for ac_exec_ext in '' $ac_executable_extensions; do
6163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6164 ac_cv_prog_ac_ct_STRIP="strip"
6165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6166 break 2
6167 fi
6168 done
6169 done
6170 IFS=$as_save_IFS
6171
6172 fi
6173 fi
6174 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6175 if test -n "$ac_ct_STRIP"; then
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6177 $as_echo "$ac_ct_STRIP" >&6; }
6178 else
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6180 $as_echo "no" >&6; }
6181 fi
6182
6183 if test "x$ac_ct_STRIP" = x; then
6184 STRIP=":"
6185 else
6186 case $cross_compiling:$ac_tool_warned in
6187 yes:)
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6190 ac_tool_warned=yes ;;
6191 esac
6192 STRIP=$ac_ct_STRIP
6193 fi
6194 else
6195 STRIP="$ac_cv_prog_STRIP"
6196 fi
6197
6198 test -z "$STRIP" && STRIP=:
6199
6200
6201
6202
6203
6204
6205 if test -n "$ac_tool_prefix"; then
6206 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6207 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6209 $as_echo_n "checking for $ac_word... " >&6; }
6210 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6211 $as_echo_n "(cached) " >&6
6212 else
6213 if test -n "$RANLIB"; then
6214 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6215 else
6216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217 for as_dir in $PATH
6218 do
6219 IFS=$as_save_IFS
6220 test -z "$as_dir" && as_dir=.
6221 for ac_exec_ext in '' $ac_executable_extensions; do
6222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6223 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6225 break 2
6226 fi
6227 done
6228 done
6229 IFS=$as_save_IFS
6230
6231 fi
6232 fi
6233 RANLIB=$ac_cv_prog_RANLIB
6234 if test -n "$RANLIB"; then
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6236 $as_echo "$RANLIB" >&6; }
6237 else
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6239 $as_echo "no" >&6; }
6240 fi
6241
6242
6243 fi
6244 if test -z "$ac_cv_prog_RANLIB"; then
6245 ac_ct_RANLIB=$RANLIB
6246 # Extract the first word of "ranlib", so it can be a program name with args.
6247 set dummy ranlib; ac_word=$2
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6249 $as_echo_n "checking for $ac_word... " >&6; }
6250 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6251 $as_echo_n "(cached) " >&6
6252 else
6253 if test -n "$ac_ct_RANLIB"; then
6254 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6255 else
6256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257 for as_dir in $PATH
6258 do
6259 IFS=$as_save_IFS
6260 test -z "$as_dir" && as_dir=.
6261 for ac_exec_ext in '' $ac_executable_extensions; do
6262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6263 ac_cv_prog_ac_ct_RANLIB="ranlib"
6264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6265 break 2
6266 fi
6267 done
6268 done
6269 IFS=$as_save_IFS
6270
6271 fi
6272 fi
6273 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6274 if test -n "$ac_ct_RANLIB"; then
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6276 $as_echo "$ac_ct_RANLIB" >&6; }
6277 else
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6279 $as_echo "no" >&6; }
6280 fi
6281
6282 if test "x$ac_ct_RANLIB" = x; then
6283 RANLIB=":"
6284 else
6285 case $cross_compiling:$ac_tool_warned in
6286 yes:)
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6289 ac_tool_warned=yes ;;
6290 esac
6291 RANLIB=$ac_ct_RANLIB
6292 fi
6293 else
6294 RANLIB="$ac_cv_prog_RANLIB"
6295 fi
6296
6297 test -z "$RANLIB" && RANLIB=:
6298
6299
6300
6301
6302
6303
6304 # Determine commands to create old-style static archives.
6305 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6306 old_postinstall_cmds='chmod 644 $oldlib'
6307 old_postuninstall_cmds=
6308
6309 if test -n "$RANLIB"; then
6310 case $host_os in
6311 openbsd*)
6312 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6313 ;;
6314 *)
6315 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6316 ;;
6317 esac
6318 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6319 fi
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354 # If no C compiler was specified, use CC.
6355 LTCC=${LTCC-"$CC"}
6356
6357 # If no C compiler flags were specified, use CFLAGS.
6358 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6359
6360 # Allow CC to be a program name with arguments.
6361 compiler=$CC
6362
6363
6364 # Check for command to grab the raw symbol name followed by C symbol from nm.
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6366 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6367 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6368 $as_echo_n "(cached) " >&6
6369 else
6370
6371 # These are sane defaults that work on at least a few old systems.
6372 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6373
6374 # Character class describing NM global symbol codes.
6375 symcode='[BCDEGRST]'
6376
6377 # Regexp to match symbols that can be accessed directly from C.
6378 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6379
6380 # Define system-specific variables.
6381 case $host_os in
6382 aix*)
6383 symcode='[BCDT]'
6384 ;;
6385 cygwin* | mingw* | pw32* | cegcc*)
6386 symcode='[ABCDGISTW]'
6387 ;;
6388 hpux*)
6389 if test "$host_cpu" = ia64; then
6390 symcode='[ABCDEGRST]'
6391 fi
6392 ;;
6393 irix* | nonstopux*)
6394 symcode='[BCDEGRST]'
6395 ;;
6396 osf*)
6397 symcode='[BCDEGQRST]'
6398 ;;
6399 solaris*)
6400 symcode='[BDRT]'
6401 ;;
6402 sco3.2v5*)
6403 symcode='[DT]'
6404 ;;
6405 sysv4.2uw2*)
6406 symcode='[DT]'
6407 ;;
6408 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6409 symcode='[ABDT]'
6410 ;;
6411 sysv4)
6412 symcode='[DFNSTU]'
6413 ;;
6414 esac
6415
6416 # If we're using GNU nm, then use its standard symbol codes.
6417 case `$NM -V 2>&1` in
6418 *GNU* | *'with BFD'*)
6419 symcode='[ABCDGIRSTW]' ;;
6420 esac
6421
6422 # Transform an extracted symbol line into a proper C declaration.
6423 # Some systems (esp. on ia64) link data and code symbols differently,
6424 # so use this general approach.
6425 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6426
6427 # Transform an extracted symbol line into symbol name and symbol address
6428 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6429 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'"
6430
6431 # Handle CRLF in mingw tool chain
6432 opt_cr=
6433 case $build_os in
6434 mingw*)
6435 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6436 ;;
6437 esac
6438
6439 # Try without a prefix underscore, then with it.
6440 for ac_symprfx in "" "_"; do
6441
6442 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6443 symxfrm="\\1 $ac_symprfx\\2 \\2"
6444
6445 # Write the raw and C identifiers.
6446 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6447 # Fake it for dumpbin and say T for any non-static function
6448 # and D for any global variable.
6449 # Also find C++ and __fastcall symbols from MSVC++,
6450 # which start with @ or ?.
6451 lt_cv_sys_global_symbol_pipe="$AWK '"\
6452 " {last_section=section; section=\$ 3};"\
6453 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6454 " \$ 0!~/External *\|/{next};"\
6455 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6456 " {if(hide[section]) next};"\
6457 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6458 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6459 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6460 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6461 " ' prfx=^$ac_symprfx"
6462 else
6463 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6464 fi
6465
6466 # Check to see that the pipe works correctly.
6467 pipe_works=no
6468
6469 rm -f conftest*
6470 cat > conftest.$ac_ext <<_LT_EOF
6471 #ifdef __cplusplus
6472 extern "C" {
6473 #endif
6474 char nm_test_var;
6475 void nm_test_func(void);
6476 void nm_test_func(void){}
6477 #ifdef __cplusplus
6478 }
6479 #endif
6480 int main(){nm_test_var='a';nm_test_func();return(0);}
6481 _LT_EOF
6482
6483 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6484 (eval $ac_compile) 2>&5
6485 ac_status=$?
6486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6487 test $ac_status = 0; }; then
6488 # Now try to grab the symbols.
6489 nlist=conftest.nm
6490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6491 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6492 ac_status=$?
6493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6494 test $ac_status = 0; } && test -s "$nlist"; then
6495 # Try sorting and uniquifying the output.
6496 if sort "$nlist" | uniq > "$nlist"T; then
6497 mv -f "$nlist"T "$nlist"
6498 else
6499 rm -f "$nlist"T
6500 fi
6501
6502 # Make sure that we snagged all the symbols we need.
6503 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6504 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6505 cat <<_LT_EOF > conftest.$ac_ext
6506 #ifdef __cplusplus
6507 extern "C" {
6508 #endif
6509
6510 _LT_EOF
6511 # Now generate the symbol file.
6512 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6513
6514 cat <<_LT_EOF >> conftest.$ac_ext
6515
6516 /* The mapping between symbol names and symbols. */
6517 const struct {
6518 const char *name;
6519 void *address;
6520 }
6521 lt__PROGRAM__LTX_preloaded_symbols[] =
6522 {
6523 { "@PROGRAM@", (void *) 0 },
6524 _LT_EOF
6525 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6526 cat <<\_LT_EOF >> conftest.$ac_ext
6527 {0, (void *) 0}
6528 };
6529
6530 /* This works around a problem in FreeBSD linker */
6531 #ifdef FREEBSD_WORKAROUND
6532 static const void *lt_preloaded_setup() {
6533 return lt__PROGRAM__LTX_preloaded_symbols;
6534 }
6535 #endif
6536
6537 #ifdef __cplusplus
6538 }
6539 #endif
6540 _LT_EOF
6541 # Now try linking the two files.
6542 mv conftest.$ac_objext conftstm.$ac_objext
6543 lt_save_LIBS="$LIBS"
6544 lt_save_CFLAGS="$CFLAGS"
6545 LIBS="conftstm.$ac_objext"
6546 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6548 (eval $ac_link) 2>&5
6549 ac_status=$?
6550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6551 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6552 pipe_works=yes
6553 fi
6554 LIBS="$lt_save_LIBS"
6555 CFLAGS="$lt_save_CFLAGS"
6556 else
6557 echo "cannot find nm_test_func in $nlist" >&5
6558 fi
6559 else
6560 echo "cannot find nm_test_var in $nlist" >&5
6561 fi
6562 else
6563 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6564 fi
6565 else
6566 echo "$progname: failed program was:" >&5
6567 cat conftest.$ac_ext >&5
6568 fi
6569 rm -rf conftest* conftst*
6570
6571 # Do not use the global_symbol_pipe unless it works.
6572 if test "$pipe_works" = yes; then
6573 break
6574 else
6575 lt_cv_sys_global_symbol_pipe=
6576 fi
6577 done
6578
6579 fi
6580
6581 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6582 lt_cv_sys_global_symbol_to_cdecl=
6583 fi
6584 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6586 $as_echo "failed" >&6; }
6587 else
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6589 $as_echo "ok" >&6; }
6590 fi
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613 # Check whether --enable-libtool-lock was given.
6614 if test "${enable_libtool_lock+set}" = set; then :
6615 enableval=$enable_libtool_lock;
6616 fi
6617
6618 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6619
6620 # Some flags need to be propagated to the compiler or linker for good
6621 # libtool support.
6622 case $host in
6623 ia64-*-hpux*)
6624 # Find out which ABI we are using.
6625 echo 'int i;' > conftest.$ac_ext
6626 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6627 (eval $ac_compile) 2>&5
6628 ac_status=$?
6629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6630 test $ac_status = 0; }; then
6631 case `/usr/bin/file conftest.$ac_objext` in
6632 *ELF-32*)
6633 HPUX_IA64_MODE="32"
6634 ;;
6635 *ELF-64*)
6636 HPUX_IA64_MODE="64"
6637 ;;
6638 esac
6639 fi
6640 rm -rf conftest*
6641 ;;
6642 *-*-irix6*)
6643 # Find out which ABI we are using.
6644 echo '#line 6644 "configure"' > conftest.$ac_ext
6645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6646 (eval $ac_compile) 2>&5
6647 ac_status=$?
6648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6649 test $ac_status = 0; }; then
6650 if test "$lt_cv_prog_gnu_ld" = yes; then
6651 case `/usr/bin/file conftest.$ac_objext` in
6652 *32-bit*)
6653 LD="${LD-ld} -melf32bsmip"
6654 ;;
6655 *N32*)
6656 LD="${LD-ld} -melf32bmipn32"
6657 ;;
6658 *64-bit*)
6659 LD="${LD-ld} -melf64bmip"
6660 ;;
6661 esac
6662 else
6663 case `/usr/bin/file conftest.$ac_objext` in
6664 *32-bit*)
6665 LD="${LD-ld} -32"
6666 ;;
6667 *N32*)
6668 LD="${LD-ld} -n32"
6669 ;;
6670 *64-bit*)
6671 LD="${LD-ld} -64"
6672 ;;
6673 esac
6674 fi
6675 fi
6676 rm -rf conftest*
6677 ;;
6678
6679 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6680 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6681 # Find out which ABI we are using.
6682 echo 'int i;' > conftest.$ac_ext
6683 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6684 (eval $ac_compile) 2>&5
6685 ac_status=$?
6686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6687 test $ac_status = 0; }; then
6688 case `/usr/bin/file conftest.o` in
6689 *32-bit*)
6690 case $host in
6691 x86_64-*kfreebsd*-gnu)
6692 LD="${LD-ld} -m elf_i386_fbsd"
6693 ;;
6694 x86_64-*linux*)
6695 LD="${LD-ld} -m elf_i386"
6696 ;;
6697 ppc64-*linux*|powerpc64-*linux*)
6698 LD="${LD-ld} -m elf32ppclinux"
6699 ;;
6700 s390x-*linux*)
6701 LD="${LD-ld} -m elf_s390"
6702 ;;
6703 sparc64-*linux*)
6704 LD="${LD-ld} -m elf32_sparc"
6705 ;;
6706 esac
6707 ;;
6708 *64-bit*)
6709 case $host in
6710 x86_64-*kfreebsd*-gnu)
6711 LD="${LD-ld} -m elf_x86_64_fbsd"
6712 ;;
6713 x86_64-*linux*)
6714 LD="${LD-ld} -m elf_x86_64"
6715 ;;
6716 ppc*-*linux*|powerpc*-*linux*)
6717 LD="${LD-ld} -m elf64ppc"
6718 ;;
6719 s390*-*linux*|s390*-*tpf*)
6720 LD="${LD-ld} -m elf64_s390"
6721 ;;
6722 sparc*-*linux*)
6723 LD="${LD-ld} -m elf64_sparc"
6724 ;;
6725 esac
6726 ;;
6727 esac
6728 fi
6729 rm -rf conftest*
6730 ;;
6731
6732 *-*-sco3.2v5*)
6733 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6734 SAVE_CFLAGS="$CFLAGS"
6735 CFLAGS="$CFLAGS -belf"
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6737 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6738 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6739 $as_echo_n "(cached) " >&6
6740 else
6741 ac_ext=c
6742 ac_cpp='$CPP $CPPFLAGS'
6743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6746
6747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748 /* end confdefs.h. */
6749
6750 int
6751 main ()
6752 {
6753
6754 ;
6755 return 0;
6756 }
6757 _ACEOF
6758 if ac_fn_c_try_link "$LINENO"; then :
6759 lt_cv_cc_needs_belf=yes
6760 else
6761 lt_cv_cc_needs_belf=no
6762 fi
6763 rm -f core conftest.err conftest.$ac_objext \
6764 conftest$ac_exeext conftest.$ac_ext
6765 ac_ext=c
6766 ac_cpp='$CPP $CPPFLAGS'
6767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6770
6771 fi
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6773 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6774 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6775 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6776 CFLAGS="$SAVE_CFLAGS"
6777 fi
6778 ;;
6779 sparc*-*solaris*)
6780 # Find out which ABI we are using.
6781 echo 'int i;' > conftest.$ac_ext
6782 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6783 (eval $ac_compile) 2>&5
6784 ac_status=$?
6785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6786 test $ac_status = 0; }; then
6787 case `/usr/bin/file conftest.o` in
6788 *64-bit*)
6789 case $lt_cv_prog_gnu_ld in
6790 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6791 *)
6792 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6793 LD="${LD-ld} -64"
6794 fi
6795 ;;
6796 esac
6797 ;;
6798 esac
6799 fi
6800 rm -rf conftest*
6801 ;;
6802 esac
6803
6804 need_locks="$enable_libtool_lock"
6805
6806
6807 case $host_os in
6808 rhapsody* | darwin*)
6809 if test -n "$ac_tool_prefix"; then
6810 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6811 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6813 $as_echo_n "checking for $ac_word... " >&6; }
6814 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6815 $as_echo_n "(cached) " >&6
6816 else
6817 if test -n "$DSYMUTIL"; then
6818 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6819 else
6820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821 for as_dir in $PATH
6822 do
6823 IFS=$as_save_IFS
6824 test -z "$as_dir" && as_dir=.
6825 for ac_exec_ext in '' $ac_executable_extensions; do
6826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6827 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6829 break 2
6830 fi
6831 done
6832 done
6833 IFS=$as_save_IFS
6834
6835 fi
6836 fi
6837 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6838 if test -n "$DSYMUTIL"; then
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6840 $as_echo "$DSYMUTIL" >&6; }
6841 else
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6843 $as_echo "no" >&6; }
6844 fi
6845
6846
6847 fi
6848 if test -z "$ac_cv_prog_DSYMUTIL"; then
6849 ac_ct_DSYMUTIL=$DSYMUTIL
6850 # Extract the first word of "dsymutil", so it can be a program name with args.
6851 set dummy dsymutil; ac_word=$2
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6853 $as_echo_n "checking for $ac_word... " >&6; }
6854 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6855 $as_echo_n "(cached) " >&6
6856 else
6857 if test -n "$ac_ct_DSYMUTIL"; then
6858 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6859 else
6860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861 for as_dir in $PATH
6862 do
6863 IFS=$as_save_IFS
6864 test -z "$as_dir" && as_dir=.
6865 for ac_exec_ext in '' $ac_executable_extensions; do
6866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6867 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6869 break 2
6870 fi
6871 done
6872 done
6873 IFS=$as_save_IFS
6874
6875 fi
6876 fi
6877 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6878 if test -n "$ac_ct_DSYMUTIL"; then
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6880 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6881 else
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6883 $as_echo "no" >&6; }
6884 fi
6885
6886 if test "x$ac_ct_DSYMUTIL" = x; then
6887 DSYMUTIL=":"
6888 else
6889 case $cross_compiling:$ac_tool_warned in
6890 yes:)
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6893 ac_tool_warned=yes ;;
6894 esac
6895 DSYMUTIL=$ac_ct_DSYMUTIL
6896 fi
6897 else
6898 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6899 fi
6900
6901 if test -n "$ac_tool_prefix"; then
6902 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6903 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6905 $as_echo_n "checking for $ac_word... " >&6; }
6906 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6907 $as_echo_n "(cached) " >&6
6908 else
6909 if test -n "$NMEDIT"; then
6910 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6911 else
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 for as_dir in $PATH
6914 do
6915 IFS=$as_save_IFS
6916 test -z "$as_dir" && as_dir=.
6917 for ac_exec_ext in '' $ac_executable_extensions; do
6918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6919 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6921 break 2
6922 fi
6923 done
6924 done
6925 IFS=$as_save_IFS
6926
6927 fi
6928 fi
6929 NMEDIT=$ac_cv_prog_NMEDIT
6930 if test -n "$NMEDIT"; then
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6932 $as_echo "$NMEDIT" >&6; }
6933 else
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6935 $as_echo "no" >&6; }
6936 fi
6937
6938
6939 fi
6940 if test -z "$ac_cv_prog_NMEDIT"; then
6941 ac_ct_NMEDIT=$NMEDIT
6942 # Extract the first word of "nmedit", so it can be a program name with args.
6943 set dummy nmedit; ac_word=$2
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6945 $as_echo_n "checking for $ac_word... " >&6; }
6946 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6947 $as_echo_n "(cached) " >&6
6948 else
6949 if test -n "$ac_ct_NMEDIT"; then
6950 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6951 else
6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953 for as_dir in $PATH
6954 do
6955 IFS=$as_save_IFS
6956 test -z "$as_dir" && as_dir=.
6957 for ac_exec_ext in '' $ac_executable_extensions; do
6958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6959 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6961 break 2
6962 fi
6963 done
6964 done
6965 IFS=$as_save_IFS
6966
6967 fi
6968 fi
6969 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6970 if test -n "$ac_ct_NMEDIT"; then
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6972 $as_echo "$ac_ct_NMEDIT" >&6; }
6973 else
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6975 $as_echo "no" >&6; }
6976 fi
6977
6978 if test "x$ac_ct_NMEDIT" = x; then
6979 NMEDIT=":"
6980 else
6981 case $cross_compiling:$ac_tool_warned in
6982 yes:)
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6985 ac_tool_warned=yes ;;
6986 esac
6987 NMEDIT=$ac_ct_NMEDIT
6988 fi
6989 else
6990 NMEDIT="$ac_cv_prog_NMEDIT"
6991 fi
6992
6993 if test -n "$ac_tool_prefix"; then
6994 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6995 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6997 $as_echo_n "checking for $ac_word... " >&6; }
6998 if test "${ac_cv_prog_LIPO+set}" = set; then :
6999 $as_echo_n "(cached) " >&6
7000 else
7001 if test -n "$LIPO"; then
7002 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7003 else
7004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005 for as_dir in $PATH
7006 do
7007 IFS=$as_save_IFS
7008 test -z "$as_dir" && as_dir=.
7009 for ac_exec_ext in '' $ac_executable_extensions; do
7010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7011 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7013 break 2
7014 fi
7015 done
7016 done
7017 IFS=$as_save_IFS
7018
7019 fi
7020 fi
7021 LIPO=$ac_cv_prog_LIPO
7022 if test -n "$LIPO"; then
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7024 $as_echo "$LIPO" >&6; }
7025 else
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7027 $as_echo "no" >&6; }
7028 fi
7029
7030
7031 fi
7032 if test -z "$ac_cv_prog_LIPO"; then
7033 ac_ct_LIPO=$LIPO
7034 # Extract the first word of "lipo", so it can be a program name with args.
7035 set dummy lipo; ac_word=$2
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7037 $as_echo_n "checking for $ac_word... " >&6; }
7038 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7039 $as_echo_n "(cached) " >&6
7040 else
7041 if test -n "$ac_ct_LIPO"; then
7042 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7043 else
7044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045 for as_dir in $PATH
7046 do
7047 IFS=$as_save_IFS
7048 test -z "$as_dir" && as_dir=.
7049 for ac_exec_ext in '' $ac_executable_extensions; do
7050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7051 ac_cv_prog_ac_ct_LIPO="lipo"
7052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7053 break 2
7054 fi
7055 done
7056 done
7057 IFS=$as_save_IFS
7058
7059 fi
7060 fi
7061 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7062 if test -n "$ac_ct_LIPO"; then
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7064 $as_echo "$ac_ct_LIPO" >&6; }
7065 else
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7067 $as_echo "no" >&6; }
7068 fi
7069
7070 if test "x$ac_ct_LIPO" = x; then
7071 LIPO=":"
7072 else
7073 case $cross_compiling:$ac_tool_warned in
7074 yes:)
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7077 ac_tool_warned=yes ;;
7078 esac
7079 LIPO=$ac_ct_LIPO
7080 fi
7081 else
7082 LIPO="$ac_cv_prog_LIPO"
7083 fi
7084
7085 if test -n "$ac_tool_prefix"; then
7086 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7087 set dummy ${ac_tool_prefix}otool; ac_word=$2
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7089 $as_echo_n "checking for $ac_word... " >&6; }
7090 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7091 $as_echo_n "(cached) " >&6
7092 else
7093 if test -n "$OTOOL"; then
7094 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7095 else
7096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097 for as_dir in $PATH
7098 do
7099 IFS=$as_save_IFS
7100 test -z "$as_dir" && as_dir=.
7101 for ac_exec_ext in '' $ac_executable_extensions; do
7102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7103 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7105 break 2
7106 fi
7107 done
7108 done
7109 IFS=$as_save_IFS
7110
7111 fi
7112 fi
7113 OTOOL=$ac_cv_prog_OTOOL
7114 if test -n "$OTOOL"; then
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7116 $as_echo "$OTOOL" >&6; }
7117 else
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7119 $as_echo "no" >&6; }
7120 fi
7121
7122
7123 fi
7124 if test -z "$ac_cv_prog_OTOOL"; then
7125 ac_ct_OTOOL=$OTOOL
7126 # Extract the first word of "otool", so it can be a program name with args.
7127 set dummy otool; ac_word=$2
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7129 $as_echo_n "checking for $ac_word... " >&6; }
7130 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7131 $as_echo_n "(cached) " >&6
7132 else
7133 if test -n "$ac_ct_OTOOL"; then
7134 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7135 else
7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 for as_dir in $PATH
7138 do
7139 IFS=$as_save_IFS
7140 test -z "$as_dir" && as_dir=.
7141 for ac_exec_ext in '' $ac_executable_extensions; do
7142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7143 ac_cv_prog_ac_ct_OTOOL="otool"
7144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7145 break 2
7146 fi
7147 done
7148 done
7149 IFS=$as_save_IFS
7150
7151 fi
7152 fi
7153 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7154 if test -n "$ac_ct_OTOOL"; then
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7156 $as_echo "$ac_ct_OTOOL" >&6; }
7157 else
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7159 $as_echo "no" >&6; }
7160 fi
7161
7162 if test "x$ac_ct_OTOOL" = x; then
7163 OTOOL=":"
7164 else
7165 case $cross_compiling:$ac_tool_warned in
7166 yes:)
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7169 ac_tool_warned=yes ;;
7170 esac
7171 OTOOL=$ac_ct_OTOOL
7172 fi
7173 else
7174 OTOOL="$ac_cv_prog_OTOOL"
7175 fi
7176
7177 if test -n "$ac_tool_prefix"; then
7178 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7179 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7181 $as_echo_n "checking for $ac_word... " >&6; }
7182 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7183 $as_echo_n "(cached) " >&6
7184 else
7185 if test -n "$OTOOL64"; then
7186 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7187 else
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 for as_dir in $PATH
7190 do
7191 IFS=$as_save_IFS
7192 test -z "$as_dir" && as_dir=.
7193 for ac_exec_ext in '' $ac_executable_extensions; do
7194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7195 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7197 break 2
7198 fi
7199 done
7200 done
7201 IFS=$as_save_IFS
7202
7203 fi
7204 fi
7205 OTOOL64=$ac_cv_prog_OTOOL64
7206 if test -n "$OTOOL64"; then
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7208 $as_echo "$OTOOL64" >&6; }
7209 else
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7211 $as_echo "no" >&6; }
7212 fi
7213
7214
7215 fi
7216 if test -z "$ac_cv_prog_OTOOL64"; then
7217 ac_ct_OTOOL64=$OTOOL64
7218 # Extract the first word of "otool64", so it can be a program name with args.
7219 set dummy otool64; ac_word=$2
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7221 $as_echo_n "checking for $ac_word... " >&6; }
7222 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7223 $as_echo_n "(cached) " >&6
7224 else
7225 if test -n "$ac_ct_OTOOL64"; then
7226 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7227 else
7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229 for as_dir in $PATH
7230 do
7231 IFS=$as_save_IFS
7232 test -z "$as_dir" && as_dir=.
7233 for ac_exec_ext in '' $ac_executable_extensions; do
7234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7235 ac_cv_prog_ac_ct_OTOOL64="otool64"
7236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7237 break 2
7238 fi
7239 done
7240 done
7241 IFS=$as_save_IFS
7242
7243 fi
7244 fi
7245 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7246 if test -n "$ac_ct_OTOOL64"; then
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7248 $as_echo "$ac_ct_OTOOL64" >&6; }
7249 else
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251 $as_echo "no" >&6; }
7252 fi
7253
7254 if test "x$ac_ct_OTOOL64" = x; then
7255 OTOOL64=":"
7256 else
7257 case $cross_compiling:$ac_tool_warned in
7258 yes:)
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7261 ac_tool_warned=yes ;;
7262 esac
7263 OTOOL64=$ac_ct_OTOOL64
7264 fi
7265 else
7266 OTOOL64="$ac_cv_prog_OTOOL64"
7267 fi
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7296 $as_echo_n "checking for -single_module linker flag... " >&6; }
7297 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7298 $as_echo_n "(cached) " >&6
7299 else
7300 lt_cv_apple_cc_single_mod=no
7301 if test -z "${LT_MULTI_MODULE}"; then
7302 # By default we will add the -single_module flag. You can override
7303 # by either setting the environment variable LT_MULTI_MODULE
7304 # non-empty at configure time, or by adding -multi_module to the
7305 # link flags.
7306 rm -rf libconftest.dylib*
7307 echo "int foo(void){return 1;}" > conftest.c
7308 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7309 -dynamiclib -Wl,-single_module conftest.c" >&5
7310 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7311 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7312 _lt_result=$?
7313 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7314 lt_cv_apple_cc_single_mod=yes
7315 else
7316 cat conftest.err >&5
7317 fi
7318 rm -rf libconftest.dylib*
7319 rm -f conftest.*
7320 fi
7321 fi
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7323 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7325 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7326 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7327 $as_echo_n "(cached) " >&6
7328 else
7329 lt_cv_ld_exported_symbols_list=no
7330 save_LDFLAGS=$LDFLAGS
7331 echo "_main" > conftest.sym
7332 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7334 /* end confdefs.h. */
7335
7336 int
7337 main ()
7338 {
7339
7340 ;
7341 return 0;
7342 }
7343 _ACEOF
7344 if ac_fn_c_try_link "$LINENO"; then :
7345 lt_cv_ld_exported_symbols_list=yes
7346 else
7347 lt_cv_ld_exported_symbols_list=no
7348 fi
7349 rm -f core conftest.err conftest.$ac_objext \
7350 conftest$ac_exeext conftest.$ac_ext
7351 LDFLAGS="$save_LDFLAGS"
7352
7353 fi
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7355 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7356 case $host_os in
7357 rhapsody* | darwin1.[012])
7358 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7359 darwin1.*)
7360 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7361 darwin*) # darwin 5.x on
7362 # if running on 10.5 or later, the deployment target defaults
7363 # to the OS version, if on x86, and 10.4, the deployment
7364 # target defaults to 10.4. Don't you love it?
7365 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7366 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7367 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7368 10.[012]*)
7369 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7370 10.*)
7371 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7372 esac
7373 ;;
7374 esac
7375 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7376 _lt_dar_single_mod='$single_module'
7377 fi
7378 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7379 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7380 else
7381 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7382 fi
7383 if test "$DSYMUTIL" != ":"; then
7384 _lt_dsymutil='~$DSYMUTIL $lib || :'
7385 else
7386 _lt_dsymutil=
7387 fi
7388 ;;
7389 esac
7390
7391 for ac_header in dlfcn.h
7392 do :
7393 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7394 "
7395 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7396 cat >>confdefs.h <<_ACEOF
7397 #define HAVE_DLFCN_H 1
7398 _ACEOF
7399
7400 fi
7401
7402 done
7403
7404
7405
7406 # Set options
7407
7408
7409
7410 enable_dlopen=no
7411
7412
7413 enable_win32_dll=no
7414
7415
7416 # Check whether --enable-shared was given.
7417 if test "${enable_shared+set}" = set; then :
7418 enableval=$enable_shared; p=${PACKAGE-default}
7419 case $enableval in
7420 yes) enable_shared=yes ;;
7421 no) enable_shared=no ;;
7422 *)
7423 enable_shared=no
7424 # Look at the argument we got. We use all the common list separators.
7425 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7426 for pkg in $enableval; do
7427 IFS="$lt_save_ifs"
7428 if test "X$pkg" = "X$p"; then
7429 enable_shared=yes
7430 fi
7431 done
7432 IFS="$lt_save_ifs"
7433 ;;
7434 esac
7435 else
7436 enable_shared=yes
7437 fi
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449 # Check whether --with-pic was given.
7450 if test "${with_pic+set}" = set; then :
7451 withval=$with_pic; pic_mode="$withval"
7452 else
7453 pic_mode=default
7454 fi
7455
7456
7457 test -z "$pic_mode" && pic_mode=default
7458
7459
7460
7461
7462
7463
7464
7465 # Check whether --enable-fast-install was given.
7466 if test "${enable_fast_install+set}" = set; then :
7467 enableval=$enable_fast_install; p=${PACKAGE-default}
7468 case $enableval in
7469 yes) enable_fast_install=yes ;;
7470 no) enable_fast_install=no ;;
7471 *)
7472 enable_fast_install=no
7473 # Look at the argument we got. We use all the common list separators.
7474 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7475 for pkg in $enableval; do
7476 IFS="$lt_save_ifs"
7477 if test "X$pkg" = "X$p"; then
7478 enable_fast_install=yes
7479 fi
7480 done
7481 IFS="$lt_save_ifs"
7482 ;;
7483 esac
7484 else
7485 enable_fast_install=yes
7486 fi
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498 # This can be used to rebuild libtool when needed
7499 LIBTOOL_DEPS="$ltmain"
7500
7501 # Always use our own libtool.
7502 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528 test -z "$LN_S" && LN_S="ln -s"
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543 if test -n "${ZSH_VERSION+set}" ; then
7544 setopt NO_GLOB_SUBST
7545 fi
7546
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7548 $as_echo_n "checking for objdir... " >&6; }
7549 if test "${lt_cv_objdir+set}" = set; then :
7550 $as_echo_n "(cached) " >&6
7551 else
7552 rm -f .libs 2>/dev/null
7553 mkdir .libs 2>/dev/null
7554 if test -d .libs; then
7555 lt_cv_objdir=.libs
7556 else
7557 # MS-DOS does not allow filenames that begin with a dot.
7558 lt_cv_objdir=_libs
7559 fi
7560 rmdir .libs 2>/dev/null
7561 fi
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7563 $as_echo "$lt_cv_objdir" >&6; }
7564 objdir=$lt_cv_objdir
7565
7566
7567
7568
7569
7570 cat >>confdefs.h <<_ACEOF
7571 #define LT_OBJDIR "$lt_cv_objdir/"
7572 _ACEOF
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590 case $host_os in
7591 aix3*)
7592 # AIX sometimes has problems with the GCC collect2 program. For some
7593 # reason, if we set the COLLECT_NAMES environment variable, the problems
7594 # vanish in a puff of smoke.
7595 if test "X${COLLECT_NAMES+set}" != Xset; then
7596 COLLECT_NAMES=
7597 export COLLECT_NAMES
7598 fi
7599 ;;
7600 esac
7601
7602 # Sed substitution that helps us do robust quoting. It backslashifies
7603 # metacharacters that are still active within double-quoted strings.
7604 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7605
7606 # Same as above, but do not quote variable references.
7607 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7608
7609 # Sed substitution to delay expansion of an escaped shell variable in a
7610 # double_quote_subst'ed string.
7611 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7612
7613 # Sed substitution to delay expansion of an escaped single quote.
7614 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7615
7616 # Sed substitution to avoid accidental globbing in evaled expressions
7617 no_glob_subst='s/\*/\\\*/g'
7618
7619 # Global variables:
7620 ofile=libtool
7621 can_build_shared=yes
7622
7623 # All known linkers require a `.a' archive for static linking (except MSVC,
7624 # which needs '.lib').
7625 libext=a
7626
7627 with_gnu_ld="$lt_cv_prog_gnu_ld"
7628
7629 old_CC="$CC"
7630 old_CFLAGS="$CFLAGS"
7631
7632 # Set sane defaults for various variables
7633 test -z "$CC" && CC=cc
7634 test -z "$LTCC" && LTCC=$CC
7635 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7636 test -z "$LD" && LD=ld
7637 test -z "$ac_objext" && ac_objext=o
7638
7639 for cc_temp in $compiler""; do
7640 case $cc_temp in
7641 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7642 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7643 \-*) ;;
7644 *) break;;
7645 esac
7646 done
7647 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7648
7649
7650 # Only perform the check for file, if the check method requires it
7651 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7652 case $deplibs_check_method in
7653 file_magic*)
7654 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7656 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7657 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7658 $as_echo_n "(cached) " >&6
7659 else
7660 case $MAGIC_CMD in
7661 [\\/*] | ?:[\\/]*)
7662 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7663 ;;
7664 *)
7665 lt_save_MAGIC_CMD="$MAGIC_CMD"
7666 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7667 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7668 for ac_dir in $ac_dummy; do
7669 IFS="$lt_save_ifs"
7670 test -z "$ac_dir" && ac_dir=.
7671 if test -f $ac_dir/${ac_tool_prefix}file; then
7672 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7673 if test -n "$file_magic_test_file"; then
7674 case $deplibs_check_method in
7675 "file_magic "*)
7676 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7677 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7678 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7679 $EGREP "$file_magic_regex" > /dev/null; then
7680 :
7681 else
7682 cat <<_LT_EOF 1>&2
7683
7684 *** Warning: the command libtool uses to detect shared libraries,
7685 *** $file_magic_cmd, produces output that libtool cannot recognize.
7686 *** The result is that libtool may fail to recognize shared libraries
7687 *** as such. This will affect the creation of libtool libraries that
7688 *** depend on shared libraries, but programs linked with such libtool
7689 *** libraries will work regardless of this problem. Nevertheless, you
7690 *** may want to report the problem to your system manager and/or to
7691 *** bug-libtool@gnu.org
7692
7693 _LT_EOF
7694 fi ;;
7695 esac
7696 fi
7697 break
7698 fi
7699 done
7700 IFS="$lt_save_ifs"
7701 MAGIC_CMD="$lt_save_MAGIC_CMD"
7702 ;;
7703 esac
7704 fi
7705
7706 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7707 if test -n "$MAGIC_CMD"; then
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7709 $as_echo "$MAGIC_CMD" >&6; }
7710 else
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712 $as_echo "no" >&6; }
7713 fi
7714
7715
7716
7717
7718
7719 if test -z "$lt_cv_path_MAGIC_CMD"; then
7720 if test -n "$ac_tool_prefix"; then
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7722 $as_echo_n "checking for file... " >&6; }
7723 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7724 $as_echo_n "(cached) " >&6
7725 else
7726 case $MAGIC_CMD in
7727 [\\/*] | ?:[\\/]*)
7728 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7729 ;;
7730 *)
7731 lt_save_MAGIC_CMD="$MAGIC_CMD"
7732 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7733 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7734 for ac_dir in $ac_dummy; do
7735 IFS="$lt_save_ifs"
7736 test -z "$ac_dir" && ac_dir=.
7737 if test -f $ac_dir/file; then
7738 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7739 if test -n "$file_magic_test_file"; then
7740 case $deplibs_check_method in
7741 "file_magic "*)
7742 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7743 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7744 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7745 $EGREP "$file_magic_regex" > /dev/null; then
7746 :
7747 else
7748 cat <<_LT_EOF 1>&2
7749
7750 *** Warning: the command libtool uses to detect shared libraries,
7751 *** $file_magic_cmd, produces output that libtool cannot recognize.
7752 *** The result is that libtool may fail to recognize shared libraries
7753 *** as such. This will affect the creation of libtool libraries that
7754 *** depend on shared libraries, but programs linked with such libtool
7755 *** libraries will work regardless of this problem. Nevertheless, you
7756 *** may want to report the problem to your system manager and/or to
7757 *** bug-libtool@gnu.org
7758
7759 _LT_EOF
7760 fi ;;
7761 esac
7762 fi
7763 break
7764 fi
7765 done
7766 IFS="$lt_save_ifs"
7767 MAGIC_CMD="$lt_save_MAGIC_CMD"
7768 ;;
7769 esac
7770 fi
7771
7772 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7773 if test -n "$MAGIC_CMD"; then
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7775 $as_echo "$MAGIC_CMD" >&6; }
7776 else
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7778 $as_echo "no" >&6; }
7779 fi
7780
7781
7782 else
7783 MAGIC_CMD=:
7784 fi
7785 fi
7786
7787 fi
7788 ;;
7789 esac
7790
7791 # Use C for the default configuration in the libtool script
7792
7793 lt_save_CC="$CC"
7794 ac_ext=c
7795 ac_cpp='$CPP $CPPFLAGS'
7796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7799
7800
7801 # Source file extension for C test sources.
7802 ac_ext=c
7803
7804 # Object file extension for compiled C test sources.
7805 objext=o
7806 objext=$objext
7807
7808 # Code to be used in simple compile tests
7809 lt_simple_compile_test_code="int some_variable = 0;"
7810
7811 # Code to be used in simple link tests
7812 lt_simple_link_test_code='int main(){return(0);}'
7813
7814
7815
7816
7817
7818
7819
7820 # If no C compiler was specified, use CC.
7821 LTCC=${LTCC-"$CC"}
7822
7823 # If no C compiler flags were specified, use CFLAGS.
7824 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7825
7826 # Allow CC to be a program name with arguments.
7827 compiler=$CC
7828
7829 # Save the default compiler, since it gets overwritten when the other
7830 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7831 compiler_DEFAULT=$CC
7832
7833 # save warnings/boilerplate of simple test code
7834 ac_outfile=conftest.$ac_objext
7835 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7836 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7837 _lt_compiler_boilerplate=`cat conftest.err`
7838 $RM conftest*
7839
7840 ac_outfile=conftest.$ac_objext
7841 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7842 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7843 _lt_linker_boilerplate=`cat conftest.err`
7844 $RM -r conftest*
7845
7846
7847 if test -n "$compiler"; then
7848
7849 lt_prog_compiler_no_builtin_flag=
7850
7851 if test "$GCC" = yes; then
7852 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7853
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7855 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7856 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7857 $as_echo_n "(cached) " >&6
7858 else
7859 lt_cv_prog_compiler_rtti_exceptions=no
7860 ac_outfile=conftest.$ac_objext
7861 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7862 lt_compiler_flag="-fno-rtti -fno-exceptions"
7863 # Insert the option either (1) after the last *FLAGS variable, or
7864 # (2) before a word containing "conftest.", or (3) at the end.
7865 # Note that $ac_compile itself does not contain backslashes and begins
7866 # with a dollar sign (not a hyphen), so the echo should work correctly.
7867 # The option is referenced via a variable to avoid confusing sed.
7868 lt_compile=`echo "$ac_compile" | $SED \
7869 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7870 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7871 -e 's:$: $lt_compiler_flag:'`
7872 (eval echo "\"\$as_me:7872: $lt_compile\"" >&5)
7873 (eval "$lt_compile" 2>conftest.err)
7874 ac_status=$?
7875 cat conftest.err >&5
7876 echo "$as_me:7876: \$? = $ac_status" >&5
7877 if (exit $ac_status) && test -s "$ac_outfile"; then
7878 # The compiler can only warn and ignore the option if not recognized
7879 # So say no if there are warnings other than the usual output.
7880 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7881 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7882 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7883 lt_cv_prog_compiler_rtti_exceptions=yes
7884 fi
7885 fi
7886 $RM conftest*
7887
7888 fi
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7890 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7891
7892 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7893 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7894 else
7895 :
7896 fi
7897
7898 fi
7899
7900
7901
7902
7903
7904
7905 lt_prog_compiler_wl=
7906 lt_prog_compiler_pic=
7907 lt_prog_compiler_static=
7908
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7910 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7911
7912 if test "$GCC" = yes; then
7913 lt_prog_compiler_wl='-Wl,'
7914 lt_prog_compiler_static='-static'
7915
7916 case $host_os in
7917 aix*)
7918 # All AIX code is PIC.
7919 if test "$host_cpu" = ia64; then
7920 # AIX 5 now supports IA64 processor
7921 lt_prog_compiler_static='-Bstatic'
7922 fi
7923 ;;
7924
7925 amigaos*)
7926 case $host_cpu in
7927 powerpc)
7928 # see comment about AmigaOS4 .so support
7929 lt_prog_compiler_pic='-fPIC'
7930 ;;
7931 m68k)
7932 # FIXME: we need at least 68020 code to build shared libraries, but
7933 # adding the `-m68020' flag to GCC prevents building anything better,
7934 # like `-m68040'.
7935 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7936 ;;
7937 esac
7938 ;;
7939
7940 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7941 # PIC is the default for these OSes.
7942 ;;
7943
7944 mingw* | cygwin* | pw32* | os2* | cegcc*)
7945 # This hack is so that the source file can tell whether it is being
7946 # built for inclusion in a dll (and should export symbols for example).
7947 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7948 # (--disable-auto-import) libraries
7949 lt_prog_compiler_pic='-DDLL_EXPORT'
7950 ;;
7951
7952 darwin* | rhapsody*)
7953 # PIC is the default on this platform
7954 # Common symbols not allowed in MH_DYLIB files
7955 lt_prog_compiler_pic='-fno-common'
7956 ;;
7957
7958 hpux*)
7959 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7960 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7961 # sets the default TLS model and affects inlining.
7962 case $host_cpu in
7963 hppa*64*)
7964 # +Z the default
7965 ;;
7966 *)
7967 lt_prog_compiler_pic='-fPIC'
7968 ;;
7969 esac
7970 ;;
7971
7972 interix[3-9]*)
7973 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7974 # Instead, we relocate shared libraries at runtime.
7975 ;;
7976
7977 msdosdjgpp*)
7978 # Just because we use GCC doesn't mean we suddenly get shared libraries
7979 # on systems that don't support them.
7980 lt_prog_compiler_can_build_shared=no
7981 enable_shared=no
7982 ;;
7983
7984 *nto* | *qnx*)
7985 # QNX uses GNU C++, but need to define -shared option too, otherwise
7986 # it will coredump.
7987 lt_prog_compiler_pic='-fPIC -shared'
7988 ;;
7989
7990 sysv4*MP*)
7991 if test -d /usr/nec; then
7992 lt_prog_compiler_pic=-Kconform_pic
7993 fi
7994 ;;
7995
7996 *)
7997 lt_prog_compiler_pic='-fPIC'
7998 ;;
7999 esac
8000 else
8001 # PORTME Check for flag to pass linker flags through the system compiler.
8002 case $host_os in
8003 aix*)
8004 lt_prog_compiler_wl='-Wl,'
8005 if test "$host_cpu" = ia64; then
8006 # AIX 5 now supports IA64 processor
8007 lt_prog_compiler_static='-Bstatic'
8008 else
8009 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8010 fi
8011 ;;
8012
8013 mingw* | cygwin* | pw32* | os2* | cegcc*)
8014 # This hack is so that the source file can tell whether it is being
8015 # built for inclusion in a dll (and should export symbols for example).
8016 lt_prog_compiler_pic='-DDLL_EXPORT'
8017 ;;
8018
8019 hpux9* | hpux10* | hpux11*)
8020 lt_prog_compiler_wl='-Wl,'
8021 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8022 # not for PA HP-UX.
8023 case $host_cpu in
8024 hppa*64*|ia64*)
8025 # +Z the default
8026 ;;
8027 *)
8028 lt_prog_compiler_pic='+Z'
8029 ;;
8030 esac
8031 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8032 lt_prog_compiler_static='${wl}-a ${wl}archive'
8033 ;;
8034
8035 irix5* | irix6* | nonstopux*)
8036 lt_prog_compiler_wl='-Wl,'
8037 # PIC (with -KPIC) is the default.
8038 lt_prog_compiler_static='-non_shared'
8039 ;;
8040
8041 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8042 case $cc_basename in
8043 # old Intel for x86_64 which still supported -KPIC.
8044 ecc*)
8045 lt_prog_compiler_wl='-Wl,'
8046 lt_prog_compiler_pic='-KPIC'
8047 lt_prog_compiler_static='-static'
8048 ;;
8049 # icc used to be incompatible with GCC.
8050 # ICC 10 doesn't accept -KPIC any more.
8051 icc* | ifort*)
8052 lt_prog_compiler_wl='-Wl,'
8053 lt_prog_compiler_pic='-fPIC'
8054 lt_prog_compiler_static='-static'
8055 ;;
8056 # Lahey Fortran 8.1.
8057 lf95*)
8058 lt_prog_compiler_wl='-Wl,'
8059 lt_prog_compiler_pic='--shared'
8060 lt_prog_compiler_static='--static'
8061 ;;
8062 pgcc* | pgf77* | pgf90* | pgf95*)
8063 # Portland Group compilers (*not* the Pentium gcc compiler,
8064 # which looks to be a dead project)
8065 lt_prog_compiler_wl='-Wl,'
8066 lt_prog_compiler_pic='-fpic'
8067 lt_prog_compiler_static='-Bstatic'
8068 ;;
8069 ccc*)
8070 lt_prog_compiler_wl='-Wl,'
8071 # All Alpha code is PIC.
8072 lt_prog_compiler_static='-non_shared'
8073 ;;
8074 xl*)
8075 # IBM XL C 8.0/Fortran 10.1 on PPC
8076 lt_prog_compiler_wl='-Wl,'
8077 lt_prog_compiler_pic='-qpic'
8078 lt_prog_compiler_static='-qstaticlink'
8079 ;;
8080 *)
8081 case `$CC -V 2>&1 | sed 5q` in
8082 *Sun\ C*)
8083 # Sun C 5.9
8084 lt_prog_compiler_pic='-KPIC'
8085 lt_prog_compiler_static='-Bstatic'
8086 lt_prog_compiler_wl='-Wl,'
8087 ;;
8088 *Sun\ F*)
8089 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8090 lt_prog_compiler_pic='-KPIC'
8091 lt_prog_compiler_static='-Bstatic'
8092 lt_prog_compiler_wl=''
8093 ;;
8094 esac
8095 ;;
8096 esac
8097 ;;
8098
8099 newsos6)
8100 lt_prog_compiler_pic='-KPIC'
8101 lt_prog_compiler_static='-Bstatic'
8102 ;;
8103
8104 *nto* | *qnx*)
8105 # QNX uses GNU C++, but need to define -shared option too, otherwise
8106 # it will coredump.
8107 lt_prog_compiler_pic='-fPIC -shared'
8108 ;;
8109
8110 osf3* | osf4* | osf5*)
8111 lt_prog_compiler_wl='-Wl,'
8112 # All OSF/1 code is PIC.
8113 lt_prog_compiler_static='-non_shared'
8114 ;;
8115
8116 rdos*)
8117 lt_prog_compiler_static='-non_shared'
8118 ;;
8119
8120 solaris*)
8121 lt_prog_compiler_pic='-KPIC'
8122 lt_prog_compiler_static='-Bstatic'
8123 case $cc_basename in
8124 f77* | f90* | f95*)
8125 lt_prog_compiler_wl='-Qoption ld ';;
8126 *)
8127 lt_prog_compiler_wl='-Wl,';;
8128 esac
8129 ;;
8130
8131 sunos4*)
8132 lt_prog_compiler_wl='-Qoption ld '
8133 lt_prog_compiler_pic='-PIC'
8134 lt_prog_compiler_static='-Bstatic'
8135 ;;
8136
8137 sysv4 | sysv4.2uw2* | sysv4.3*)
8138 lt_prog_compiler_wl='-Wl,'
8139 lt_prog_compiler_pic='-KPIC'
8140 lt_prog_compiler_static='-Bstatic'
8141 ;;
8142
8143 sysv4*MP*)
8144 if test -d /usr/nec ;then
8145 lt_prog_compiler_pic='-Kconform_pic'
8146 lt_prog_compiler_static='-Bstatic'
8147 fi
8148 ;;
8149
8150 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8151 lt_prog_compiler_wl='-Wl,'
8152 lt_prog_compiler_pic='-KPIC'
8153 lt_prog_compiler_static='-Bstatic'
8154 ;;
8155
8156 unicos*)
8157 lt_prog_compiler_wl='-Wl,'
8158 lt_prog_compiler_can_build_shared=no
8159 ;;
8160
8161 uts4*)
8162 lt_prog_compiler_pic='-pic'
8163 lt_prog_compiler_static='-Bstatic'
8164 ;;
8165
8166 *)
8167 lt_prog_compiler_can_build_shared=no
8168 ;;
8169 esac
8170 fi
8171
8172 case $host_os in
8173 # For platforms which do not support PIC, -DPIC is meaningless:
8174 *djgpp*)
8175 lt_prog_compiler_pic=
8176 ;;
8177 *)
8178 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8179 ;;
8180 esac
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8182 $as_echo "$lt_prog_compiler_pic" >&6; }
8183
8184
8185
8186
8187
8188
8189 #
8190 # Check to make sure the PIC flag actually works.
8191 #
8192 if test -n "$lt_prog_compiler_pic"; then
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8194 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8195 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8196 $as_echo_n "(cached) " >&6
8197 else
8198 lt_cv_prog_compiler_pic_works=no
8199 ac_outfile=conftest.$ac_objext
8200 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8201 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8202 # Insert the option either (1) after the last *FLAGS variable, or
8203 # (2) before a word containing "conftest.", or (3) at the end.
8204 # Note that $ac_compile itself does not contain backslashes and begins
8205 # with a dollar sign (not a hyphen), so the echo should work correctly.
8206 # The option is referenced via a variable to avoid confusing sed.
8207 lt_compile=`echo "$ac_compile" | $SED \
8208 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8209 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8210 -e 's:$: $lt_compiler_flag:'`
8211 (eval echo "\"\$as_me:8211: $lt_compile\"" >&5)
8212 (eval "$lt_compile" 2>conftest.err)
8213 ac_status=$?
8214 cat conftest.err >&5
8215 echo "$as_me:8215: \$? = $ac_status" >&5
8216 if (exit $ac_status) && test -s "$ac_outfile"; then
8217 # The compiler can only warn and ignore the option if not recognized
8218 # So say no if there are warnings other than the usual output.
8219 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8220 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8221 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8222 lt_cv_prog_compiler_pic_works=yes
8223 fi
8224 fi
8225 $RM conftest*
8226
8227 fi
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8229 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8230
8231 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8232 case $lt_prog_compiler_pic in
8233 "" | " "*) ;;
8234 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8235 esac
8236 else
8237 lt_prog_compiler_pic=
8238 lt_prog_compiler_can_build_shared=no
8239 fi
8240
8241 fi
8242
8243
8244
8245
8246
8247
8248 #
8249 # Check to make sure the static flag actually works.
8250 #
8251 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8253 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8254 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8255 $as_echo_n "(cached) " >&6
8256 else
8257 lt_cv_prog_compiler_static_works=no
8258 save_LDFLAGS="$LDFLAGS"
8259 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8260 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8261 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8262 # The linker can only warn and ignore the option if not recognized
8263 # So say no if there are warnings
8264 if test -s conftest.err; then
8265 # Append any errors to the config.log.
8266 cat conftest.err 1>&5
8267 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8268 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8269 if diff conftest.exp conftest.er2 >/dev/null; then
8270 lt_cv_prog_compiler_static_works=yes
8271 fi
8272 else
8273 lt_cv_prog_compiler_static_works=yes
8274 fi
8275 fi
8276 $RM -r conftest*
8277 LDFLAGS="$save_LDFLAGS"
8278
8279 fi
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8281 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8282
8283 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8284 :
8285 else
8286 lt_prog_compiler_static=
8287 fi
8288
8289
8290
8291
8292
8293
8294
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8296 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8297 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8298 $as_echo_n "(cached) " >&6
8299 else
8300 lt_cv_prog_compiler_c_o=no
8301 $RM -r conftest 2>/dev/null
8302 mkdir conftest
8303 cd conftest
8304 mkdir out
8305 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8306
8307 lt_compiler_flag="-o out/conftest2.$ac_objext"
8308 # Insert the option either (1) after the last *FLAGS variable, or
8309 # (2) before a word containing "conftest.", or (3) at the end.
8310 # Note that $ac_compile itself does not contain backslashes and begins
8311 # with a dollar sign (not a hyphen), so the echo should work correctly.
8312 lt_compile=`echo "$ac_compile" | $SED \
8313 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8314 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8315 -e 's:$: $lt_compiler_flag:'`
8316 (eval echo "\"\$as_me:8316: $lt_compile\"" >&5)
8317 (eval "$lt_compile" 2>out/conftest.err)
8318 ac_status=$?
8319 cat out/conftest.err >&5
8320 echo "$as_me:8320: \$? = $ac_status" >&5
8321 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8322 then
8323 # The compiler can only warn and ignore the option if not recognized
8324 # So say no if there are warnings
8325 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8326 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8327 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8328 lt_cv_prog_compiler_c_o=yes
8329 fi
8330 fi
8331 chmod u+w . 2>&5
8332 $RM conftest*
8333 # SGI C++ compiler will create directory out/ii_files/ for
8334 # template instantiation
8335 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8336 $RM out/* && rmdir out
8337 cd ..
8338 $RM -r conftest
8339 $RM conftest*
8340
8341 fi
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8343 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8344
8345
8346
8347
8348
8349
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8351 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8352 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8353 $as_echo_n "(cached) " >&6
8354 else
8355 lt_cv_prog_compiler_c_o=no
8356 $RM -r conftest 2>/dev/null
8357 mkdir conftest
8358 cd conftest
8359 mkdir out
8360 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8361
8362 lt_compiler_flag="-o out/conftest2.$ac_objext"
8363 # Insert the option either (1) after the last *FLAGS variable, or
8364 # (2) before a word containing "conftest.", or (3) at the end.
8365 # Note that $ac_compile itself does not contain backslashes and begins
8366 # with a dollar sign (not a hyphen), so the echo should work correctly.
8367 lt_compile=`echo "$ac_compile" | $SED \
8368 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8369 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8370 -e 's:$: $lt_compiler_flag:'`
8371 (eval echo "\"\$as_me:8371: $lt_compile\"" >&5)
8372 (eval "$lt_compile" 2>out/conftest.err)
8373 ac_status=$?
8374 cat out/conftest.err >&5
8375 echo "$as_me:8375: \$? = $ac_status" >&5
8376 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8377 then
8378 # The compiler can only warn and ignore the option if not recognized
8379 # So say no if there are warnings
8380 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8381 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8382 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8383 lt_cv_prog_compiler_c_o=yes
8384 fi
8385 fi
8386 chmod u+w . 2>&5
8387 $RM conftest*
8388 # SGI C++ compiler will create directory out/ii_files/ for
8389 # template instantiation
8390 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8391 $RM out/* && rmdir out
8392 cd ..
8393 $RM -r conftest
8394 $RM conftest*
8395
8396 fi
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8398 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8399
8400
8401
8402
8403 hard_links="nottested"
8404 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8405 # do not overwrite the value of need_locks provided by the user
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8407 $as_echo_n "checking if we can lock with hard links... " >&6; }
8408 hard_links=yes
8409 $RM conftest*
8410 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8411 touch conftest.a
8412 ln conftest.a conftest.b 2>&5 || hard_links=no
8413 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8415 $as_echo "$hard_links" >&6; }
8416 if test "$hard_links" = no; then
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8418 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8419 need_locks=warn
8420 fi
8421 else
8422 need_locks=no
8423 fi
8424
8425
8426
8427
8428
8429
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8431 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8432
8433 runpath_var=
8434 allow_undefined_flag=
8435 always_export_symbols=no
8436 archive_cmds=
8437 archive_expsym_cmds=
8438 compiler_needs_object=no
8439 enable_shared_with_static_runtimes=no
8440 export_dynamic_flag_spec=
8441 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8442 hardcode_automatic=no
8443 hardcode_direct=no
8444 hardcode_direct_absolute=no
8445 hardcode_libdir_flag_spec=
8446 hardcode_libdir_flag_spec_ld=
8447 hardcode_libdir_separator=
8448 hardcode_minus_L=no
8449 hardcode_shlibpath_var=unsupported
8450 inherit_rpath=no
8451 link_all_deplibs=unknown
8452 module_cmds=
8453 module_expsym_cmds=
8454 old_archive_from_new_cmds=
8455 old_archive_from_expsyms_cmds=
8456 thread_safe_flag_spec=
8457 whole_archive_flag_spec=
8458 # include_expsyms should be a list of space-separated symbols to be *always*
8459 # included in the symbol list
8460 include_expsyms=
8461 # exclude_expsyms can be an extended regexp of symbols to exclude
8462 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8463 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8464 # as well as any symbol that contains `d'.
8465 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8466 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8467 # platforms (ab)use it in PIC code, but their linkers get confused if
8468 # the symbol is explicitly referenced. Since portable code cannot
8469 # rely on this symbol name, it's probably fine to never include it in
8470 # preloaded symbol tables.
8471 # Exclude shared library initialization/finalization symbols.
8472 extract_expsyms_cmds=
8473
8474 case $host_os in
8475 cygwin* | mingw* | pw32* | cegcc*)
8476 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8477 # When not using gcc, we currently assume that we are using
8478 # Microsoft Visual C++.
8479 if test "$GCC" != yes; then
8480 with_gnu_ld=no
8481 fi
8482 ;;
8483 interix*)
8484 # we just hope/assume this is gcc and not c89 (= MSVC++)
8485 with_gnu_ld=yes
8486 ;;
8487 openbsd*)
8488 with_gnu_ld=no
8489 ;;
8490 linux* | k*bsd*-gnu)
8491 link_all_deplibs=no
8492 ;;
8493 esac
8494
8495 ld_shlibs=yes
8496 if test "$with_gnu_ld" = yes; then
8497 # If archive_cmds runs LD, not CC, wlarc should be empty
8498 wlarc='${wl}'
8499
8500 # Set some defaults for GNU ld with shared library support. These
8501 # are reset later if shared libraries are not supported. Putting them
8502 # here allows them to be overridden if necessary.
8503 runpath_var=LD_RUN_PATH
8504 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8505 export_dynamic_flag_spec='${wl}--export-dynamic'
8506 # ancient GNU ld didn't support --whole-archive et. al.
8507 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8508 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8509 else
8510 whole_archive_flag_spec=
8511 fi
8512 supports_anon_versioning=no
8513 case `$LD -v 2>&1` in
8514 *GNU\ gold*) supports_anon_versioning=yes ;;
8515 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8516 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8517 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8518 *\ 2.11.*) ;; # other 2.11 versions
8519 *) supports_anon_versioning=yes ;;
8520 esac
8521
8522 # See if GNU ld supports shared libraries.
8523 case $host_os in
8524 aix[3-9]*)
8525 # On AIX/PPC, the GNU linker is very broken
8526 if test "$host_cpu" != ia64; then
8527 ld_shlibs=no
8528 cat <<_LT_EOF 1>&2
8529
8530 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8531 *** to be unable to reliably create shared libraries on AIX.
8532 *** Therefore, libtool is disabling shared libraries support. If you
8533 *** really care for shared libraries, you may want to modify your PATH
8534 *** so that a non-GNU linker is found, and then restart.
8535
8536 _LT_EOF
8537 fi
8538 ;;
8539
8540 amigaos*)
8541 case $host_cpu in
8542 powerpc)
8543 # see comment about AmigaOS4 .so support
8544 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8545 archive_expsym_cmds=''
8546 ;;
8547 m68k)
8548 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)'
8549 hardcode_libdir_flag_spec='-L$libdir'
8550 hardcode_minus_L=yes
8551 ;;
8552 esac
8553 ;;
8554
8555 beos*)
8556 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8557 allow_undefined_flag=unsupported
8558 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8559 # support --undefined. This deserves some investigation. FIXME
8560 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8561 else
8562 ld_shlibs=no
8563 fi
8564 ;;
8565
8566 cygwin* | mingw* | pw32* | cegcc*)
8567 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8568 # as there is no search path for DLLs.
8569 hardcode_libdir_flag_spec='-L$libdir'
8570 allow_undefined_flag=unsupported
8571 always_export_symbols=no
8572 enable_shared_with_static_runtimes=yes
8573 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8574
8575 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8576 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8577 # If the export-symbols file already is a .def file (1st line
8578 # is EXPORTS), use it as is; otherwise, prepend...
8579 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8580 cp $export_symbols $output_objdir/$soname.def;
8581 else
8582 echo EXPORTS > $output_objdir/$soname.def;
8583 cat $export_symbols >> $output_objdir/$soname.def;
8584 fi~
8585 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8586 else
8587 ld_shlibs=no
8588 fi
8589 ;;
8590
8591 interix[3-9]*)
8592 hardcode_direct=no
8593 hardcode_shlibpath_var=no
8594 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8595 export_dynamic_flag_spec='${wl}-E'
8596 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8597 # Instead, shared libraries are loaded at an image base (0x10000000 by
8598 # default) and relocated if they conflict, which is a slow very memory
8599 # consuming and fragmenting process. To avoid this, we pick a random,
8600 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8601 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8602 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8603 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'
8604 ;;
8605
8606 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8607 tmp_diet=no
8608 if test "$host_os" = linux-dietlibc; then
8609 case $cc_basename in
8610 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8611 esac
8612 fi
8613 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8614 && test "$tmp_diet" = no
8615 then
8616 tmp_addflag=
8617 tmp_sharedflag='-shared'
8618 case $cc_basename,$host_cpu in
8619 pgcc*) # Portland Group C compiler
8620 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'
8621 tmp_addflag=' $pic_flag'
8622 ;;
8623 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8624 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'
8625 tmp_addflag=' $pic_flag -Mnomain' ;;
8626 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8627 tmp_addflag=' -i_dynamic' ;;
8628 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8629 tmp_addflag=' -i_dynamic -nofor_main' ;;
8630 ifc* | ifort*) # Intel Fortran compiler
8631 tmp_addflag=' -nofor_main' ;;
8632 lf95*) # Lahey Fortran 8.1
8633 whole_archive_flag_spec=
8634 tmp_sharedflag='--shared' ;;
8635 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8636 tmp_sharedflag='-qmkshrobj'
8637 tmp_addflag= ;;
8638 esac
8639 case `$CC -V 2>&1 | sed 5q` in
8640 *Sun\ C*) # Sun C 5.9
8641 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'
8642 compiler_needs_object=yes
8643 tmp_sharedflag='-G' ;;
8644 *Sun\ F*) # Sun Fortran 8.3
8645 tmp_sharedflag='-G' ;;
8646 esac
8647 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8648
8649 if test "x$supports_anon_versioning" = xyes; then
8650 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8651 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8652 echo "local: *; };" >> $output_objdir/$libname.ver~
8653 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8654 fi
8655
8656 case $cc_basename in
8657 xlf*)
8658 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8659 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8660 hardcode_libdir_flag_spec=
8661 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8662 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8663 if test "x$supports_anon_versioning" = xyes; then
8664 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8665 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8666 echo "local: *; };" >> $output_objdir/$libname.ver~
8667 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8668 fi
8669 ;;
8670 esac
8671 else
8672 ld_shlibs=no
8673 fi
8674 ;;
8675
8676 netbsd* | netbsdelf*-gnu)
8677 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8678 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8679 wlarc=
8680 else
8681 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8682 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8683 fi
8684 ;;
8685
8686 solaris*)
8687 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8688 ld_shlibs=no
8689 cat <<_LT_EOF 1>&2
8690
8691 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8692 *** create shared libraries on Solaris systems. Therefore, libtool
8693 *** is disabling shared libraries support. We urge you to upgrade GNU
8694 *** binutils to release 2.9.1 or newer. Another option is to modify
8695 *** your PATH or compiler configuration so that the native linker is
8696 *** used, and then restart.
8697
8698 _LT_EOF
8699 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8700 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8701 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8702 else
8703 ld_shlibs=no
8704 fi
8705 ;;
8706
8707 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8708 case `$LD -v 2>&1` in
8709 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8710 ld_shlibs=no
8711 cat <<_LT_EOF 1>&2
8712
8713 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8714 *** reliably create shared libraries on SCO systems. Therefore, libtool
8715 *** is disabling shared libraries support. We urge you to upgrade GNU
8716 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8717 *** your PATH or compiler configuration so that the native linker is
8718 *** used, and then restart.
8719
8720 _LT_EOF
8721 ;;
8722 *)
8723 # For security reasons, it is highly recommended that you always
8724 # use absolute paths for naming shared libraries, and exclude the
8725 # DT_RUNPATH tag from executables and libraries. But doing so
8726 # requires that you compile everything twice, which is a pain.
8727 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8728 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8729 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8730 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8731 else
8732 ld_shlibs=no
8733 fi
8734 ;;
8735 esac
8736 ;;
8737
8738 sunos4*)
8739 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8740 wlarc=
8741 hardcode_direct=yes
8742 hardcode_shlibpath_var=no
8743 ;;
8744
8745 *)
8746 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8747 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8748 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8749 else
8750 ld_shlibs=no
8751 fi
8752 ;;
8753 esac
8754
8755 if test "$ld_shlibs" = no; then
8756 runpath_var=
8757 hardcode_libdir_flag_spec=
8758 export_dynamic_flag_spec=
8759 whole_archive_flag_spec=
8760 fi
8761 else
8762 # PORTME fill in a description of your system's linker (not GNU ld)
8763 case $host_os in
8764 aix3*)
8765 allow_undefined_flag=unsupported
8766 always_export_symbols=yes
8767 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'
8768 # Note: this linker hardcodes the directories in LIBPATH if there
8769 # are no directories specified by -L.
8770 hardcode_minus_L=yes
8771 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8772 # Neither direct hardcoding nor static linking is supported with a
8773 # broken collect2.
8774 hardcode_direct=unsupported
8775 fi
8776 ;;
8777
8778 aix[4-9]*)
8779 if test "$host_cpu" = ia64; then
8780 # On IA64, the linker does run time linking by default, so we don't
8781 # have to do anything special.
8782 aix_use_runtimelinking=no
8783 exp_sym_flag='-Bexport'
8784 no_entry_flag=""
8785 else
8786 # If we're using GNU nm, then we don't want the "-C" option.
8787 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8788 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8789 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'
8790 else
8791 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'
8792 fi
8793 aix_use_runtimelinking=no
8794
8795 # Test if we are trying to use run time linking or normal
8796 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8797 # need to do runtime linking.
8798 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8799 for ld_flag in $LDFLAGS; do
8800 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8801 aix_use_runtimelinking=yes
8802 break
8803 fi
8804 done
8805 ;;
8806 esac
8807
8808 exp_sym_flag='-bexport'
8809 no_entry_flag='-bnoentry'
8810 fi
8811
8812 # When large executables or shared objects are built, AIX ld can
8813 # have problems creating the table of contents. If linking a library
8814 # or program results in "error TOC overflow" add -mminimal-toc to
8815 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8816 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8817
8818 archive_cmds=''
8819 hardcode_direct=yes
8820 hardcode_direct_absolute=yes
8821 hardcode_libdir_separator=':'
8822 link_all_deplibs=yes
8823 file_list_spec='${wl}-f,'
8824
8825 if test "$GCC" = yes; then
8826 case $host_os in aix4.[012]|aix4.[012].*)
8827 # We only want to do this on AIX 4.2 and lower, the check
8828 # below for broken collect2 doesn't work under 4.3+
8829 collect2name=`${CC} -print-prog-name=collect2`
8830 if test -f "$collect2name" &&
8831 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8832 then
8833 # We have reworked collect2
8834 :
8835 else
8836 # We have old collect2
8837 hardcode_direct=unsupported
8838 # It fails to find uninstalled libraries when the uninstalled
8839 # path is not listed in the libpath. Setting hardcode_minus_L
8840 # to unsupported forces relinking
8841 hardcode_minus_L=yes
8842 hardcode_libdir_flag_spec='-L$libdir'
8843 hardcode_libdir_separator=
8844 fi
8845 ;;
8846 esac
8847 shared_flag='-shared'
8848 if test "$aix_use_runtimelinking" = yes; then
8849 shared_flag="$shared_flag "'${wl}-G'
8850 fi
8851 link_all_deplibs=no
8852 else
8853 # not using gcc
8854 if test "$host_cpu" = ia64; then
8855 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8856 # chokes on -Wl,-G. The following line is correct:
8857 shared_flag='-G'
8858 else
8859 if test "$aix_use_runtimelinking" = yes; then
8860 shared_flag='${wl}-G'
8861 else
8862 shared_flag='${wl}-bM:SRE'
8863 fi
8864 fi
8865 fi
8866
8867 export_dynamic_flag_spec='${wl}-bexpall'
8868 # It seems that -bexpall does not export symbols beginning with
8869 # underscore (_), so it is better to generate a list of symbols to export.
8870 always_export_symbols=yes
8871 if test "$aix_use_runtimelinking" = yes; then
8872 # Warning - without using the other runtime loading flags (-brtl),
8873 # -berok will link without error, but may produce a broken library.
8874 allow_undefined_flag='-berok'
8875 # Determine the default libpath from the value encoded in an
8876 # empty executable.
8877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8878 /* end confdefs.h. */
8879
8880 int
8881 main ()
8882 {
8883
8884 ;
8885 return 0;
8886 }
8887 _ACEOF
8888 if ac_fn_c_try_link "$LINENO"; then :
8889
8890 lt_aix_libpath_sed='
8891 /Import File Strings/,/^$/ {
8892 /^0/ {
8893 s/^0 *\(.*\)$/\1/
8894 p
8895 }
8896 }'
8897 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8898 # Check for a 64-bit object if we didn't find anything.
8899 if test -z "$aix_libpath"; then
8900 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8901 fi
8902 fi
8903 rm -f core conftest.err conftest.$ac_objext \
8904 conftest$ac_exeext conftest.$ac_ext
8905 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8906
8907 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8908 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"
8909 else
8910 if test "$host_cpu" = ia64; then
8911 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8912 allow_undefined_flag="-z nodefs"
8913 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"
8914 else
8915 # Determine the default libpath from the value encoded in an
8916 # empty executable.
8917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8918 /* end confdefs.h. */
8919
8920 int
8921 main ()
8922 {
8923
8924 ;
8925 return 0;
8926 }
8927 _ACEOF
8928 if ac_fn_c_try_link "$LINENO"; then :
8929
8930 lt_aix_libpath_sed='
8931 /Import File Strings/,/^$/ {
8932 /^0/ {
8933 s/^0 *\(.*\)$/\1/
8934 p
8935 }
8936 }'
8937 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8938 # Check for a 64-bit object if we didn't find anything.
8939 if test -z "$aix_libpath"; then
8940 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8941 fi
8942 fi
8943 rm -f core conftest.err conftest.$ac_objext \
8944 conftest$ac_exeext conftest.$ac_ext
8945 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8946
8947 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8948 # Warning - without using the other run time loading flags,
8949 # -berok will link without error, but may produce a broken library.
8950 no_undefined_flag=' ${wl}-bernotok'
8951 allow_undefined_flag=' ${wl}-berok'
8952 # Exported symbols can be pulled into shared objects from archives
8953 whole_archive_flag_spec='$convenience'
8954 archive_cmds_need_lc=yes
8955 # This is similar to how AIX traditionally builds its shared libraries.
8956 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'
8957 fi
8958 fi
8959 ;;
8960
8961 amigaos*)
8962 case $host_cpu in
8963 powerpc)
8964 # see comment about AmigaOS4 .so support
8965 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8966 archive_expsym_cmds=''
8967 ;;
8968 m68k)
8969 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)'
8970 hardcode_libdir_flag_spec='-L$libdir'
8971 hardcode_minus_L=yes
8972 ;;
8973 esac
8974 ;;
8975
8976 bsdi[45]*)
8977 export_dynamic_flag_spec=-rdynamic
8978 ;;
8979
8980 cygwin* | mingw* | pw32* | cegcc*)
8981 # When not using gcc, we currently assume that we are using
8982 # Microsoft Visual C++.
8983 # hardcode_libdir_flag_spec is actually meaningless, as there is
8984 # no search path for DLLs.
8985 hardcode_libdir_flag_spec=' '
8986 allow_undefined_flag=unsupported
8987 # Tell ltmain to make .lib files, not .a files.
8988 libext=lib
8989 # Tell ltmain to make .dll files, not .so files.
8990 shrext_cmds=".dll"
8991 # FIXME: Setting linknames here is a bad hack.
8992 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8993 # The linker will automatically build a .lib file if we build a DLL.
8994 old_archive_from_new_cmds='true'
8995 # FIXME: Should let the user specify the lib program.
8996 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8997 fix_srcfile_path='`cygpath -w "$srcfile"`'
8998 enable_shared_with_static_runtimes=yes
8999 ;;
9000
9001 darwin* | rhapsody*)
9002
9003
9004 archive_cmds_need_lc=no
9005 hardcode_direct=no
9006 hardcode_automatic=yes
9007 hardcode_shlibpath_var=unsupported
9008 whole_archive_flag_spec=''
9009 link_all_deplibs=yes
9010 allow_undefined_flag="$_lt_dar_allow_undefined"
9011 case $cc_basename in
9012 ifort*) _lt_dar_can_shared=yes ;;
9013 *) _lt_dar_can_shared=$GCC ;;
9014 esac
9015 if test "$_lt_dar_can_shared" = "yes"; then
9016 output_verbose_link_cmd=echo
9017 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9018 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9019 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}"
9020 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}"
9021
9022 else
9023 ld_shlibs=no
9024 fi
9025
9026 ;;
9027
9028 dgux*)
9029 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9030 hardcode_libdir_flag_spec='-L$libdir'
9031 hardcode_shlibpath_var=no
9032 ;;
9033
9034 freebsd1*)
9035 ld_shlibs=no
9036 ;;
9037
9038 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9039 # support. Future versions do this automatically, but an explicit c++rt0.o
9040 # does not break anything, and helps significantly (at the cost of a little
9041 # extra space).
9042 freebsd2.2*)
9043 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9044 hardcode_libdir_flag_spec='-R$libdir'
9045 hardcode_direct=yes
9046 hardcode_shlibpath_var=no
9047 ;;
9048
9049 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9050 freebsd2*)
9051 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9052 hardcode_direct=yes
9053 hardcode_minus_L=yes
9054 hardcode_shlibpath_var=no
9055 ;;
9056
9057 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9058 freebsd* | dragonfly*)
9059 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9060 hardcode_libdir_flag_spec='-R$libdir'
9061 hardcode_direct=yes
9062 hardcode_shlibpath_var=no
9063 ;;
9064
9065 hpux9*)
9066 if test "$GCC" = yes; then
9067 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'
9068 else
9069 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'
9070 fi
9071 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9072 hardcode_libdir_separator=:
9073 hardcode_direct=yes
9074
9075 # hardcode_minus_L: Not really in the search PATH,
9076 # but as the default location of the library.
9077 hardcode_minus_L=yes
9078 export_dynamic_flag_spec='${wl}-E'
9079 ;;
9080
9081 hpux10*)
9082 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9083 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9084 else
9085 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9086 fi
9087 if test "$with_gnu_ld" = no; then
9088 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9089 hardcode_libdir_flag_spec_ld='+b $libdir'
9090 hardcode_libdir_separator=:
9091 hardcode_direct=yes
9092 hardcode_direct_absolute=yes
9093 export_dynamic_flag_spec='${wl}-E'
9094 # hardcode_minus_L: Not really in the search PATH,
9095 # but as the default location of the library.
9096 hardcode_minus_L=yes
9097 fi
9098 ;;
9099
9100 hpux11*)
9101 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9102 case $host_cpu in
9103 hppa*64*)
9104 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9105 ;;
9106 ia64*)
9107 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9108 ;;
9109 *)
9110 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9111 ;;
9112 esac
9113 else
9114 case $host_cpu in
9115 hppa*64*)
9116 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9117 ;;
9118 ia64*)
9119 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9120 ;;
9121 *)
9122 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9123 ;;
9124 esac
9125 fi
9126 if test "$with_gnu_ld" = no; then
9127 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9128 hardcode_libdir_separator=:
9129
9130 case $host_cpu in
9131 hppa*64*|ia64*)
9132 hardcode_direct=no
9133 hardcode_shlibpath_var=no
9134 ;;
9135 *)
9136 hardcode_direct=yes
9137 hardcode_direct_absolute=yes
9138 export_dynamic_flag_spec='${wl}-E'
9139
9140 # hardcode_minus_L: Not really in the search PATH,
9141 # but as the default location of the library.
9142 hardcode_minus_L=yes
9143 ;;
9144 esac
9145 fi
9146 ;;
9147
9148 irix5* | irix6* | nonstopux*)
9149 if test "$GCC" = yes; then
9150 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'
9151 # Try to use the -exported_symbol ld option, if it does not
9152 # work, assume that -exports_file does not work either and
9153 # implicitly export all symbols.
9154 save_LDFLAGS="$LDFLAGS"
9155 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9157 /* end confdefs.h. */
9158 int foo(void) {}
9159 _ACEOF
9160 if ac_fn_c_try_link "$LINENO"; then :
9161 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'
9162
9163 fi
9164 rm -f core conftest.err conftest.$ac_objext \
9165 conftest$ac_exeext conftest.$ac_ext
9166 LDFLAGS="$save_LDFLAGS"
9167 else
9168 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'
9169 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'
9170 fi
9171 archive_cmds_need_lc='no'
9172 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9173 hardcode_libdir_separator=:
9174 inherit_rpath=yes
9175 link_all_deplibs=yes
9176 ;;
9177
9178 netbsd* | netbsdelf*-gnu)
9179 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9180 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9181 else
9182 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9183 fi
9184 hardcode_libdir_flag_spec='-R$libdir'
9185 hardcode_direct=yes
9186 hardcode_shlibpath_var=no
9187 ;;
9188
9189 newsos6)
9190 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9191 hardcode_direct=yes
9192 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9193 hardcode_libdir_separator=:
9194 hardcode_shlibpath_var=no
9195 ;;
9196
9197 *nto* | *qnx*)
9198 ;;
9199
9200 openbsd*)
9201 if test -f /usr/libexec/ld.so; then
9202 hardcode_direct=yes
9203 hardcode_shlibpath_var=no
9204 hardcode_direct_absolute=yes
9205 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9206 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9207 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9208 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9209 export_dynamic_flag_spec='${wl}-E'
9210 else
9211 case $host_os in
9212 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9213 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9214 hardcode_libdir_flag_spec='-R$libdir'
9215 ;;
9216 *)
9217 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9218 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9219 ;;
9220 esac
9221 fi
9222 else
9223 ld_shlibs=no
9224 fi
9225 ;;
9226
9227 os2*)
9228 hardcode_libdir_flag_spec='-L$libdir'
9229 hardcode_minus_L=yes
9230 allow_undefined_flag=unsupported
9231 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'
9232 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9233 ;;
9234
9235 osf3*)
9236 if test "$GCC" = yes; then
9237 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9238 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'
9239 else
9240 allow_undefined_flag=' -expect_unresolved \*'
9241 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'
9242 fi
9243 archive_cmds_need_lc='no'
9244 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9245 hardcode_libdir_separator=:
9246 ;;
9247
9248 osf4* | osf5*) # as osf3* with the addition of -msym flag
9249 if test "$GCC" = yes; then
9250 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9251 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'
9252 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9253 else
9254 allow_undefined_flag=' -expect_unresolved \*'
9255 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'
9256 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~
9257 $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'
9258
9259 # Both c and cxx compiler support -rpath directly
9260 hardcode_libdir_flag_spec='-rpath $libdir'
9261 fi
9262 archive_cmds_need_lc='no'
9263 hardcode_libdir_separator=:
9264 ;;
9265
9266 solaris*)
9267 no_undefined_flag=' -z defs'
9268 if test "$GCC" = yes; then
9269 wlarc='${wl}'
9270 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9271 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9272 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9273 else
9274 case `$CC -V 2>&1` in
9275 *"Compilers 5.0"*)
9276 wlarc=''
9277 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9278 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9279 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9280 ;;
9281 *)
9282 wlarc='${wl}'
9283 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9284 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9285 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9286 ;;
9287 esac
9288 fi
9289 hardcode_libdir_flag_spec='-R$libdir'
9290 hardcode_shlibpath_var=no
9291 case $host_os in
9292 solaris2.[0-5] | solaris2.[0-5].*) ;;
9293 *)
9294 # The compiler driver will combine and reorder linker options,
9295 # but understands `-z linker_flag'. GCC discards it without `$wl',
9296 # but is careful enough not to reorder.
9297 # Supported since Solaris 2.6 (maybe 2.5.1?)
9298 if test "$GCC" = yes; then
9299 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9300 else
9301 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9302 fi
9303 ;;
9304 esac
9305 link_all_deplibs=yes
9306 ;;
9307
9308 sunos4*)
9309 if test "x$host_vendor" = xsequent; then
9310 # Use $CC to link under sequent, because it throws in some extra .o
9311 # files that make .init and .fini sections work.
9312 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9313 else
9314 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9315 fi
9316 hardcode_libdir_flag_spec='-L$libdir'
9317 hardcode_direct=yes
9318 hardcode_minus_L=yes
9319 hardcode_shlibpath_var=no
9320 ;;
9321
9322 sysv4)
9323 case $host_vendor in
9324 sni)
9325 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9326 hardcode_direct=yes # is this really true???
9327 ;;
9328 siemens)
9329 ## LD is ld it makes a PLAMLIB
9330 ## CC just makes a GrossModule.
9331 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9332 reload_cmds='$CC -r -o $output$reload_objs'
9333 hardcode_direct=no
9334 ;;
9335 motorola)
9336 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9337 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9338 ;;
9339 esac
9340 runpath_var='LD_RUN_PATH'
9341 hardcode_shlibpath_var=no
9342 ;;
9343
9344 sysv4.3*)
9345 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9346 hardcode_shlibpath_var=no
9347 export_dynamic_flag_spec='-Bexport'
9348 ;;
9349
9350 sysv4*MP*)
9351 if test -d /usr/nec; then
9352 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9353 hardcode_shlibpath_var=no
9354 runpath_var=LD_RUN_PATH
9355 hardcode_runpath_var=yes
9356 ld_shlibs=yes
9357 fi
9358 ;;
9359
9360 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9361 no_undefined_flag='${wl}-z,text'
9362 archive_cmds_need_lc=no
9363 hardcode_shlibpath_var=no
9364 runpath_var='LD_RUN_PATH'
9365
9366 if test "$GCC" = yes; then
9367 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9368 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9369 else
9370 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9371 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9372 fi
9373 ;;
9374
9375 sysv5* | sco3.2v5* | sco5v6*)
9376 # Note: We can NOT use -z defs as we might desire, because we do not
9377 # link with -lc, and that would cause any symbols used from libc to
9378 # always be unresolved, which means just about no library would
9379 # ever link correctly. If we're not using GNU ld we use -z text
9380 # though, which does catch some bad symbols but isn't as heavy-handed
9381 # as -z defs.
9382 no_undefined_flag='${wl}-z,text'
9383 allow_undefined_flag='${wl}-z,nodefs'
9384 archive_cmds_need_lc=no
9385 hardcode_shlibpath_var=no
9386 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9387 hardcode_libdir_separator=':'
9388 link_all_deplibs=yes
9389 export_dynamic_flag_spec='${wl}-Bexport'
9390 runpath_var='LD_RUN_PATH'
9391
9392 if test "$GCC" = yes; then
9393 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9394 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9395 else
9396 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9397 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9398 fi
9399 ;;
9400
9401 uts4*)
9402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9403 hardcode_libdir_flag_spec='-L$libdir'
9404 hardcode_shlibpath_var=no
9405 ;;
9406
9407 *)
9408 ld_shlibs=no
9409 ;;
9410 esac
9411
9412 if test x$host_vendor = xsni; then
9413 case $host in
9414 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9415 export_dynamic_flag_spec='${wl}-Blargedynsym'
9416 ;;
9417 esac
9418 fi
9419 fi
9420
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9422 $as_echo "$ld_shlibs" >&6; }
9423 test "$ld_shlibs" = no && can_build_shared=no
9424
9425 with_gnu_ld=$with_gnu_ld
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441 #
9442 # Do we need to explicitly link libc?
9443 #
9444 case "x$archive_cmds_need_lc" in
9445 x|xyes)
9446 # Assume -lc should be added
9447 archive_cmds_need_lc=yes
9448
9449 if test "$enable_shared" = yes && test "$GCC" = yes; then
9450 case $archive_cmds in
9451 *'~'*)
9452 # FIXME: we may have to deal with multi-command sequences.
9453 ;;
9454 '$CC '*)
9455 # Test whether the compiler implicitly links with -lc since on some
9456 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9457 # to ld, don't add -lc before -lgcc.
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9459 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9460 $RM conftest*
9461 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9462
9463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9464 (eval $ac_compile) 2>&5
9465 ac_status=$?
9466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9467 test $ac_status = 0; } 2>conftest.err; then
9468 soname=conftest
9469 lib=conftest
9470 libobjs=conftest.$ac_objext
9471 deplibs=
9472 wl=$lt_prog_compiler_wl
9473 pic_flag=$lt_prog_compiler_pic
9474 compiler_flags=-v
9475 linker_flags=-v
9476 verstring=
9477 output_objdir=.
9478 libname=conftest
9479 lt_save_allow_undefined_flag=$allow_undefined_flag
9480 allow_undefined_flag=
9481 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9482 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9483 ac_status=$?
9484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9485 test $ac_status = 0; }
9486 then
9487 archive_cmds_need_lc=no
9488 else
9489 archive_cmds_need_lc=yes
9490 fi
9491 allow_undefined_flag=$lt_save_allow_undefined_flag
9492 else
9493 cat conftest.err 1>&5
9494 fi
9495 $RM conftest*
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9497 $as_echo "$archive_cmds_need_lc" >&6; }
9498 ;;
9499 esac
9500 fi
9501 ;;
9502 esac
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9661 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9662
9663 if test "$GCC" = yes; then
9664 case $host_os in
9665 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9666 *) lt_awk_arg="/^libraries:/" ;;
9667 esac
9668 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9669 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9670 # if the path contains ";" then we assume it to be the separator
9671 # otherwise default to the standard path separator (i.e. ":") - it is
9672 # assumed that no part of a normal pathname contains ";" but that should
9673 # okay in the real world where ";" in dirpaths is itself problematic.
9674 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9675 else
9676 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9677 fi
9678 # Ok, now we have the path, separated by spaces, we can step through it
9679 # and add multilib dir if necessary.
9680 lt_tmp_lt_search_path_spec=
9681 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9682 for lt_sys_path in $lt_search_path_spec; do
9683 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9684 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9685 else
9686 test -d "$lt_sys_path" && \
9687 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9688 fi
9689 done
9690 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9691 BEGIN {RS=" "; FS="/|\n";} {
9692 lt_foo="";
9693 lt_count=0;
9694 for (lt_i = NF; lt_i > 0; lt_i--) {
9695 if ($lt_i != "" && $lt_i != ".") {
9696 if ($lt_i == "..") {
9697 lt_count++;
9698 } else {
9699 if (lt_count == 0) {
9700 lt_foo="/" $lt_i lt_foo;
9701 } else {
9702 lt_count--;
9703 }
9704 }
9705 }
9706 }
9707 if (lt_foo != "") { lt_freq[lt_foo]++; }
9708 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9709 }'`
9710 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9711 else
9712 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9713 fi
9714 library_names_spec=
9715 libname_spec='lib$name'
9716 soname_spec=
9717 shrext_cmds=".so"
9718 postinstall_cmds=
9719 postuninstall_cmds=
9720 finish_cmds=
9721 finish_eval=
9722 shlibpath_var=
9723 shlibpath_overrides_runpath=unknown
9724 version_type=none
9725 dynamic_linker="$host_os ld.so"
9726 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9727 need_lib_prefix=unknown
9728 hardcode_into_libs=no
9729
9730 # when you set need_version to no, make sure it does not cause -set_version
9731 # flags to be left without arguments
9732 need_version=unknown
9733
9734 case $host_os in
9735 aix3*)
9736 version_type=linux
9737 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9738 shlibpath_var=LIBPATH
9739
9740 # AIX 3 has no versioning support, so we append a major version to the name.
9741 soname_spec='${libname}${release}${shared_ext}$major'
9742 ;;
9743
9744 aix[4-9]*)
9745 version_type=linux
9746 need_lib_prefix=no
9747 need_version=no
9748 hardcode_into_libs=yes
9749 if test "$host_cpu" = ia64; then
9750 # AIX 5 supports IA64
9751 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9752 shlibpath_var=LD_LIBRARY_PATH
9753 else
9754 # With GCC up to 2.95.x, collect2 would create an import file
9755 # for dependence libraries. The import file would start with
9756 # the line `#! .'. This would cause the generated library to
9757 # depend on `.', always an invalid library. This was fixed in
9758 # development snapshots of GCC prior to 3.0.
9759 case $host_os in
9760 aix4 | aix4.[01] | aix4.[01].*)
9761 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9762 echo ' yes '
9763 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9764 :
9765 else
9766 can_build_shared=no
9767 fi
9768 ;;
9769 esac
9770 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9771 # soname into executable. Probably we can add versioning support to
9772 # collect2, so additional links can be useful in future.
9773 if test "$aix_use_runtimelinking" = yes; then
9774 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9775 # instead of lib<name>.a to let people know that these are not
9776 # typical AIX shared libraries.
9777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9778 else
9779 # We preserve .a as extension for shared libraries through AIX4.2
9780 # and later when we are not doing run time linking.
9781 library_names_spec='${libname}${release}.a $libname.a'
9782 soname_spec='${libname}${release}${shared_ext}$major'
9783 fi
9784 shlibpath_var=LIBPATH
9785 fi
9786 ;;
9787
9788 amigaos*)
9789 case $host_cpu in
9790 powerpc)
9791 # Since July 2007 AmigaOS4 officially supports .so libraries.
9792 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9794 ;;
9795 m68k)
9796 library_names_spec='$libname.ixlibrary $libname.a'
9797 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9798 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'
9799 ;;
9800 esac
9801 ;;
9802
9803 beos*)
9804 library_names_spec='${libname}${shared_ext}'
9805 dynamic_linker="$host_os ld.so"
9806 shlibpath_var=LIBRARY_PATH
9807 ;;
9808
9809 bsdi[45]*)
9810 version_type=linux
9811 need_version=no
9812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9813 soname_spec='${libname}${release}${shared_ext}$major'
9814 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9815 shlibpath_var=LD_LIBRARY_PATH
9816 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9817 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9818 # the default ld.so.conf also contains /usr/contrib/lib and
9819 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9820 # libtool to hard-code these into programs
9821 ;;
9822
9823 cygwin* | mingw* | pw32* | cegcc*)
9824 version_type=windows
9825 shrext_cmds=".dll"
9826 need_version=no
9827 need_lib_prefix=no
9828
9829 case $GCC,$host_os in
9830 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9831 library_names_spec='$libname.dll.a'
9832 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9833 postinstall_cmds='base_file=`basename \${file}`~
9834 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9835 dldir=$destdir/`dirname \$dlpath`~
9836 test -d \$dldir || mkdir -p \$dldir~
9837 $install_prog $dir/$dlname \$dldir/$dlname~
9838 chmod a+x \$dldir/$dlname~
9839 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9840 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9841 fi'
9842 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9843 dlpath=$dir/\$dldll~
9844 $RM \$dlpath'
9845 shlibpath_overrides_runpath=yes
9846
9847 case $host_os in
9848 cygwin*)
9849 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9850 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9851 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9852 ;;
9853 mingw* | cegcc*)
9854 # MinGW DLLs use traditional 'lib' prefix
9855 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9856 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9857 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9858 # It is most probably a Windows format PATH printed by
9859 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9860 # path with ; separators, and with drive letters. We can handle the
9861 # drive letters (cygwin fileutils understands them), so leave them,
9862 # especially as we might pass files found there to a mingw objdump,
9863 # which wouldn't understand a cygwinified path. Ahh.
9864 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9865 else
9866 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9867 fi
9868 ;;
9869 pw32*)
9870 # pw32 DLLs use 'pw' prefix rather than 'lib'
9871 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9872 ;;
9873 esac
9874 ;;
9875
9876 *)
9877 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9878 ;;
9879 esac
9880 dynamic_linker='Win32 ld.exe'
9881 # FIXME: first we should search . and the directory the executable is in
9882 shlibpath_var=PATH
9883 ;;
9884
9885 darwin* | rhapsody*)
9886 dynamic_linker="$host_os dyld"
9887 version_type=darwin
9888 need_lib_prefix=no
9889 need_version=no
9890 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9891 soname_spec='${libname}${release}${major}$shared_ext'
9892 shlibpath_overrides_runpath=yes
9893 shlibpath_var=DYLD_LIBRARY_PATH
9894 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9895
9896 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9897 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9898 ;;
9899
9900 dgux*)
9901 version_type=linux
9902 need_lib_prefix=no
9903 need_version=no
9904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9905 soname_spec='${libname}${release}${shared_ext}$major'
9906 shlibpath_var=LD_LIBRARY_PATH
9907 ;;
9908
9909 freebsd1*)
9910 dynamic_linker=no
9911 ;;
9912
9913 freebsd* | dragonfly*)
9914 # DragonFly does not have aout. When/if they implement a new
9915 # versioning mechanism, adjust this.
9916 if test -x /usr/bin/objformat; then
9917 objformat=`/usr/bin/objformat`
9918 else
9919 case $host_os in
9920 freebsd[123]*) objformat=aout ;;
9921 *) objformat=elf ;;
9922 esac
9923 fi
9924 version_type=freebsd-$objformat
9925 case $version_type in
9926 freebsd-elf*)
9927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9928 need_version=no
9929 need_lib_prefix=no
9930 ;;
9931 freebsd-*)
9932 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9933 need_version=yes
9934 ;;
9935 esac
9936 shlibpath_var=LD_LIBRARY_PATH
9937 case $host_os in
9938 freebsd2*)
9939 shlibpath_overrides_runpath=yes
9940 ;;
9941 freebsd3.[01]* | freebsdelf3.[01]*)
9942 shlibpath_overrides_runpath=yes
9943 hardcode_into_libs=yes
9944 ;;
9945 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9946 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9947 shlibpath_overrides_runpath=no
9948 hardcode_into_libs=yes
9949 ;;
9950 *) # from 4.6 on, and DragonFly
9951 shlibpath_overrides_runpath=yes
9952 hardcode_into_libs=yes
9953 ;;
9954 esac
9955 ;;
9956
9957 gnu*)
9958 version_type=linux
9959 need_lib_prefix=no
9960 need_version=no
9961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9962 soname_spec='${libname}${release}${shared_ext}$major'
9963 shlibpath_var=LD_LIBRARY_PATH
9964 hardcode_into_libs=yes
9965 ;;
9966
9967 hpux9* | hpux10* | hpux11*)
9968 # Give a soname corresponding to the major version so that dld.sl refuses to
9969 # link against other versions.
9970 version_type=sunos
9971 need_lib_prefix=no
9972 need_version=no
9973 case $host_cpu in
9974 ia64*)
9975 shrext_cmds='.so'
9976 hardcode_into_libs=yes
9977 dynamic_linker="$host_os dld.so"
9978 shlibpath_var=LD_LIBRARY_PATH
9979 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9981 soname_spec='${libname}${release}${shared_ext}$major'
9982 if test "X$HPUX_IA64_MODE" = X32; then
9983 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9984 else
9985 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9986 fi
9987 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9988 ;;
9989 hppa*64*)
9990 shrext_cmds='.sl'
9991 hardcode_into_libs=yes
9992 dynamic_linker="$host_os dld.sl"
9993 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9994 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9996 soname_spec='${libname}${release}${shared_ext}$major'
9997 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9998 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9999 ;;
10000 *)
10001 shrext_cmds='.sl'
10002 dynamic_linker="$host_os dld.sl"
10003 shlibpath_var=SHLIB_PATH
10004 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10006 soname_spec='${libname}${release}${shared_ext}$major'
10007 ;;
10008 esac
10009 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10010 postinstall_cmds='chmod 555 $lib'
10011 ;;
10012
10013 interix[3-9]*)
10014 version_type=linux
10015 need_lib_prefix=no
10016 need_version=no
10017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10018 soname_spec='${libname}${release}${shared_ext}$major'
10019 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10020 shlibpath_var=LD_LIBRARY_PATH
10021 shlibpath_overrides_runpath=no
10022 hardcode_into_libs=yes
10023 ;;
10024
10025 irix5* | irix6* | nonstopux*)
10026 case $host_os in
10027 nonstopux*) version_type=nonstopux ;;
10028 *)
10029 if test "$lt_cv_prog_gnu_ld" = yes; then
10030 version_type=linux
10031 else
10032 version_type=irix
10033 fi ;;
10034 esac
10035 need_lib_prefix=no
10036 need_version=no
10037 soname_spec='${libname}${release}${shared_ext}$major'
10038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10039 case $host_os in
10040 irix5* | nonstopux*)
10041 libsuff= shlibsuff=
10042 ;;
10043 *)
10044 case $LD in # libtool.m4 will add one of these switches to LD
10045 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10046 libsuff= shlibsuff= libmagic=32-bit;;
10047 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10048 libsuff=32 shlibsuff=N32 libmagic=N32;;
10049 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10050 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10051 *) libsuff= shlibsuff= libmagic=never-match;;
10052 esac
10053 ;;
10054 esac
10055 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10056 shlibpath_overrides_runpath=no
10057 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10058 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10059 hardcode_into_libs=yes
10060 ;;
10061
10062 # No shared lib support for Linux oldld, aout, or coff.
10063 linux*oldld* | linux*aout* | linux*coff*)
10064 dynamic_linker=no
10065 ;;
10066
10067 # This must be Linux ELF.
10068 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10069 version_type=linux
10070 need_lib_prefix=no
10071 need_version=no
10072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10073 soname_spec='${libname}${release}${shared_ext}$major'
10074 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10075 shlibpath_var=LD_LIBRARY_PATH
10076 shlibpath_overrides_runpath=no
10077 # Some binutils ld are patched to set DT_RUNPATH
10078 save_LDFLAGS=$LDFLAGS
10079 save_libdir=$libdir
10080 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10081 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10083 /* end confdefs.h. */
10084
10085 int
10086 main ()
10087 {
10088
10089 ;
10090 return 0;
10091 }
10092 _ACEOF
10093 if ac_fn_c_try_link "$LINENO"; then :
10094 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10095 shlibpath_overrides_runpath=yes
10096 fi
10097 fi
10098 rm -f core conftest.err conftest.$ac_objext \
10099 conftest$ac_exeext conftest.$ac_ext
10100 LDFLAGS=$save_LDFLAGS
10101 libdir=$save_libdir
10102
10103 # This implies no fast_install, which is unacceptable.
10104 # Some rework will be needed to allow for fast_install
10105 # before this can be enabled.
10106 hardcode_into_libs=yes
10107
10108 # Append ld.so.conf contents to the search path
10109 if test -f /etc/ld.so.conf; then
10110 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' ' '`
10111 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10112 fi
10113
10114 # We used to test for /lib/ld.so.1 and disable shared libraries on
10115 # powerpc, because MkLinux only supported shared libraries with the
10116 # GNU dynamic linker. Since this was broken with cross compilers,
10117 # most powerpc-linux boxes support dynamic linking these days and
10118 # people can always --disable-shared, the test was removed, and we
10119 # assume the GNU/Linux dynamic linker is in use.
10120 dynamic_linker='GNU/Linux ld.so'
10121 ;;
10122
10123 netbsdelf*-gnu)
10124 version_type=linux
10125 need_lib_prefix=no
10126 need_version=no
10127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10128 soname_spec='${libname}${release}${shared_ext}$major'
10129 shlibpath_var=LD_LIBRARY_PATH
10130 shlibpath_overrides_runpath=no
10131 hardcode_into_libs=yes
10132 dynamic_linker='NetBSD ld.elf_so'
10133 ;;
10134
10135 netbsd*)
10136 version_type=sunos
10137 need_lib_prefix=no
10138 need_version=no
10139 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10141 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10142 dynamic_linker='NetBSD (a.out) ld.so'
10143 else
10144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10145 soname_spec='${libname}${release}${shared_ext}$major'
10146 dynamic_linker='NetBSD ld.elf_so'
10147 fi
10148 shlibpath_var=LD_LIBRARY_PATH
10149 shlibpath_overrides_runpath=yes
10150 hardcode_into_libs=yes
10151 ;;
10152
10153 newsos6)
10154 version_type=linux
10155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10156 shlibpath_var=LD_LIBRARY_PATH
10157 shlibpath_overrides_runpath=yes
10158 ;;
10159
10160 *nto* | *qnx*)
10161 version_type=qnx
10162 need_lib_prefix=no
10163 need_version=no
10164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10165 soname_spec='${libname}${release}${shared_ext}$major'
10166 shlibpath_var=LD_LIBRARY_PATH
10167 shlibpath_overrides_runpath=no
10168 hardcode_into_libs=yes
10169 dynamic_linker='ldqnx.so'
10170 ;;
10171
10172 openbsd*)
10173 version_type=sunos
10174 sys_lib_dlsearch_path_spec="/usr/lib"
10175 need_lib_prefix=no
10176 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10177 case $host_os in
10178 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10179 *) need_version=no ;;
10180 esac
10181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10182 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10183 shlibpath_var=LD_LIBRARY_PATH
10184 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10185 case $host_os in
10186 openbsd2.[89] | openbsd2.[89].*)
10187 shlibpath_overrides_runpath=no
10188 ;;
10189 *)
10190 shlibpath_overrides_runpath=yes
10191 ;;
10192 esac
10193 else
10194 shlibpath_overrides_runpath=yes
10195 fi
10196 ;;
10197
10198 os2*)
10199 libname_spec='$name'
10200 shrext_cmds=".dll"
10201 need_lib_prefix=no
10202 library_names_spec='$libname${shared_ext} $libname.a'
10203 dynamic_linker='OS/2 ld.exe'
10204 shlibpath_var=LIBPATH
10205 ;;
10206
10207 osf3* | osf4* | osf5*)
10208 version_type=osf
10209 need_lib_prefix=no
10210 need_version=no
10211 soname_spec='${libname}${release}${shared_ext}$major'
10212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10213 shlibpath_var=LD_LIBRARY_PATH
10214 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10215 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10216 ;;
10217
10218 rdos*)
10219 dynamic_linker=no
10220 ;;
10221
10222 solaris*)
10223 version_type=linux
10224 need_lib_prefix=no
10225 need_version=no
10226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10227 soname_spec='${libname}${release}${shared_ext}$major'
10228 shlibpath_var=LD_LIBRARY_PATH
10229 shlibpath_overrides_runpath=yes
10230 hardcode_into_libs=yes
10231 # ldd complains unless libraries are executable
10232 postinstall_cmds='chmod +x $lib'
10233 ;;
10234
10235 sunos4*)
10236 version_type=sunos
10237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10238 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10239 shlibpath_var=LD_LIBRARY_PATH
10240 shlibpath_overrides_runpath=yes
10241 if test "$with_gnu_ld" = yes; then
10242 need_lib_prefix=no
10243 fi
10244 need_version=yes
10245 ;;
10246
10247 sysv4 | sysv4.3*)
10248 version_type=linux
10249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10250 soname_spec='${libname}${release}${shared_ext}$major'
10251 shlibpath_var=LD_LIBRARY_PATH
10252 case $host_vendor in
10253 sni)
10254 shlibpath_overrides_runpath=no
10255 need_lib_prefix=no
10256 runpath_var=LD_RUN_PATH
10257 ;;
10258 siemens)
10259 need_lib_prefix=no
10260 ;;
10261 motorola)
10262 need_lib_prefix=no
10263 need_version=no
10264 shlibpath_overrides_runpath=no
10265 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10266 ;;
10267 esac
10268 ;;
10269
10270 sysv4*MP*)
10271 if test -d /usr/nec ;then
10272 version_type=linux
10273 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10274 soname_spec='$libname${shared_ext}.$major'
10275 shlibpath_var=LD_LIBRARY_PATH
10276 fi
10277 ;;
10278
10279 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10280 version_type=freebsd-elf
10281 need_lib_prefix=no
10282 need_version=no
10283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10284 soname_spec='${libname}${release}${shared_ext}$major'
10285 shlibpath_var=LD_LIBRARY_PATH
10286 shlibpath_overrides_runpath=yes
10287 hardcode_into_libs=yes
10288 if test "$with_gnu_ld" = yes; then
10289 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10290 else
10291 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10292 case $host_os in
10293 sco3.2v5*)
10294 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10295 ;;
10296 esac
10297 fi
10298 sys_lib_dlsearch_path_spec='/usr/lib'
10299 ;;
10300
10301 tpf*)
10302 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10303 version_type=linux
10304 need_lib_prefix=no
10305 need_version=no
10306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10307 shlibpath_var=LD_LIBRARY_PATH
10308 shlibpath_overrides_runpath=no
10309 hardcode_into_libs=yes
10310 ;;
10311
10312 uts4*)
10313 version_type=linux
10314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10315 soname_spec='${libname}${release}${shared_ext}$major'
10316 shlibpath_var=LD_LIBRARY_PATH
10317 ;;
10318
10319 *)
10320 dynamic_linker=no
10321 ;;
10322 esac
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10324 $as_echo "$dynamic_linker" >&6; }
10325 test "$dynamic_linker" = no && can_build_shared=no
10326
10327 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10328 if test "$GCC" = yes; then
10329 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10330 fi
10331
10332 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10333 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10334 fi
10335 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10336 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10337 fi
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10426 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10427 hardcode_action=
10428 if test -n "$hardcode_libdir_flag_spec" ||
10429 test -n "$runpath_var" ||
10430 test "X$hardcode_automatic" = "Xyes" ; then
10431
10432 # We can hardcode non-existent directories.
10433 if test "$hardcode_direct" != no &&
10434 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10435 # have to relink, otherwise we might link with an installed library
10436 # when we should be linking with a yet-to-be-installed one
10437 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10438 test "$hardcode_minus_L" != no; then
10439 # Linking always hardcodes the temporary library directory.
10440 hardcode_action=relink
10441 else
10442 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10443 hardcode_action=immediate
10444 fi
10445 else
10446 # We cannot hardcode anything, or else we can only hardcode existing
10447 # directories.
10448 hardcode_action=unsupported
10449 fi
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10451 $as_echo "$hardcode_action" >&6; }
10452
10453 if test "$hardcode_action" = relink ||
10454 test "$inherit_rpath" = yes; then
10455 # Fast installation is not supported
10456 enable_fast_install=no
10457 elif test "$shlibpath_overrides_runpath" = yes ||
10458 test "$enable_shared" = no; then
10459 # Fast installation is not necessary
10460 enable_fast_install=needless
10461 fi
10462
10463
10464
10465
10466
10467
10468 if test "x$enable_dlopen" != xyes; then
10469 enable_dlopen=unknown
10470 enable_dlopen_self=unknown
10471 enable_dlopen_self_static=unknown
10472 else
10473 lt_cv_dlopen=no
10474 lt_cv_dlopen_libs=
10475
10476 case $host_os in
10477 beos*)
10478 lt_cv_dlopen="load_add_on"
10479 lt_cv_dlopen_libs=
10480 lt_cv_dlopen_self=yes
10481 ;;
10482
10483 mingw* | pw32* | cegcc*)
10484 lt_cv_dlopen="LoadLibrary"
10485 lt_cv_dlopen_libs=
10486 ;;
10487
10488 cygwin*)
10489 lt_cv_dlopen="dlopen"
10490 lt_cv_dlopen_libs=
10491 ;;
10492
10493 darwin*)
10494 # if libdl is installed we need to link against it
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10496 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10497 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10498 $as_echo_n "(cached) " >&6
10499 else
10500 ac_check_lib_save_LIBS=$LIBS
10501 LIBS="-ldl $LIBS"
10502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10503 /* end confdefs.h. */
10504
10505 /* Override any GCC internal prototype to avoid an error.
10506 Use char because int might match the return type of a GCC
10507 builtin and then its argument prototype would still apply. */
10508 #ifdef __cplusplus
10509 extern "C"
10510 #endif
10511 char dlopen ();
10512 int
10513 main ()
10514 {
10515 return dlopen ();
10516 ;
10517 return 0;
10518 }
10519 _ACEOF
10520 if ac_fn_c_try_link "$LINENO"; then :
10521 ac_cv_lib_dl_dlopen=yes
10522 else
10523 ac_cv_lib_dl_dlopen=no
10524 fi
10525 rm -f core conftest.err conftest.$ac_objext \
10526 conftest$ac_exeext conftest.$ac_ext
10527 LIBS=$ac_check_lib_save_LIBS
10528 fi
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10530 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10531 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10532 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10533 else
10534
10535 lt_cv_dlopen="dyld"
10536 lt_cv_dlopen_libs=
10537 lt_cv_dlopen_self=yes
10538
10539 fi
10540
10541 ;;
10542
10543 *)
10544 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10545 if test "x$ac_cv_func_shl_load" = x""yes; then :
10546 lt_cv_dlopen="shl_load"
10547 else
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10549 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10550 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10551 $as_echo_n "(cached) " >&6
10552 else
10553 ac_check_lib_save_LIBS=$LIBS
10554 LIBS="-ldld $LIBS"
10555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10556 /* end confdefs.h. */
10557
10558 /* Override any GCC internal prototype to avoid an error.
10559 Use char because int might match the return type of a GCC
10560 builtin and then its argument prototype would still apply. */
10561 #ifdef __cplusplus
10562 extern "C"
10563 #endif
10564 char shl_load ();
10565 int
10566 main ()
10567 {
10568 return shl_load ();
10569 ;
10570 return 0;
10571 }
10572 _ACEOF
10573 if ac_fn_c_try_link "$LINENO"; then :
10574 ac_cv_lib_dld_shl_load=yes
10575 else
10576 ac_cv_lib_dld_shl_load=no
10577 fi
10578 rm -f core conftest.err conftest.$ac_objext \
10579 conftest$ac_exeext conftest.$ac_ext
10580 LIBS=$ac_check_lib_save_LIBS
10581 fi
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10583 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10584 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10585 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10586 else
10587 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10588 if test "x$ac_cv_func_dlopen" = x""yes; then :
10589 lt_cv_dlopen="dlopen"
10590 else
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10592 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10593 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10594 $as_echo_n "(cached) " >&6
10595 else
10596 ac_check_lib_save_LIBS=$LIBS
10597 LIBS="-ldl $LIBS"
10598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10599 /* end confdefs.h. */
10600
10601 /* Override any GCC internal prototype to avoid an error.
10602 Use char because int might match the return type of a GCC
10603 builtin and then its argument prototype would still apply. */
10604 #ifdef __cplusplus
10605 extern "C"
10606 #endif
10607 char dlopen ();
10608 int
10609 main ()
10610 {
10611 return dlopen ();
10612 ;
10613 return 0;
10614 }
10615 _ACEOF
10616 if ac_fn_c_try_link "$LINENO"; then :
10617 ac_cv_lib_dl_dlopen=yes
10618 else
10619 ac_cv_lib_dl_dlopen=no
10620 fi
10621 rm -f core conftest.err conftest.$ac_objext \
10622 conftest$ac_exeext conftest.$ac_ext
10623 LIBS=$ac_check_lib_save_LIBS
10624 fi
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10626 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10627 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10628 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10629 else
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10631 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10632 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10633 $as_echo_n "(cached) " >&6
10634 else
10635 ac_check_lib_save_LIBS=$LIBS
10636 LIBS="-lsvld $LIBS"
10637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10638 /* end confdefs.h. */
10639
10640 /* Override any GCC internal prototype to avoid an error.
10641 Use char because int might match the return type of a GCC
10642 builtin and then its argument prototype would still apply. */
10643 #ifdef __cplusplus
10644 extern "C"
10645 #endif
10646 char dlopen ();
10647 int
10648 main ()
10649 {
10650 return dlopen ();
10651 ;
10652 return 0;
10653 }
10654 _ACEOF
10655 if ac_fn_c_try_link "$LINENO"; then :
10656 ac_cv_lib_svld_dlopen=yes
10657 else
10658 ac_cv_lib_svld_dlopen=no
10659 fi
10660 rm -f core conftest.err conftest.$ac_objext \
10661 conftest$ac_exeext conftest.$ac_ext
10662 LIBS=$ac_check_lib_save_LIBS
10663 fi
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10665 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10666 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10667 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10668 else
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10670 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10671 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10672 $as_echo_n "(cached) " >&6
10673 else
10674 ac_check_lib_save_LIBS=$LIBS
10675 LIBS="-ldld $LIBS"
10676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10677 /* end confdefs.h. */
10678
10679 /* Override any GCC internal prototype to avoid an error.
10680 Use char because int might match the return type of a GCC
10681 builtin and then its argument prototype would still apply. */
10682 #ifdef __cplusplus
10683 extern "C"
10684 #endif
10685 char dld_link ();
10686 int
10687 main ()
10688 {
10689 return dld_link ();
10690 ;
10691 return 0;
10692 }
10693 _ACEOF
10694 if ac_fn_c_try_link "$LINENO"; then :
10695 ac_cv_lib_dld_dld_link=yes
10696 else
10697 ac_cv_lib_dld_dld_link=no
10698 fi
10699 rm -f core conftest.err conftest.$ac_objext \
10700 conftest$ac_exeext conftest.$ac_ext
10701 LIBS=$ac_check_lib_save_LIBS
10702 fi
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10704 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10705 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10706 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10707 fi
10708
10709
10710 fi
10711
10712
10713 fi
10714
10715
10716 fi
10717
10718
10719 fi
10720
10721
10722 fi
10723
10724 ;;
10725 esac
10726
10727 if test "x$lt_cv_dlopen" != xno; then
10728 enable_dlopen=yes
10729 else
10730 enable_dlopen=no
10731 fi
10732
10733 case $lt_cv_dlopen in
10734 dlopen)
10735 save_CPPFLAGS="$CPPFLAGS"
10736 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10737
10738 save_LDFLAGS="$LDFLAGS"
10739 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10740
10741 save_LIBS="$LIBS"
10742 LIBS="$lt_cv_dlopen_libs $LIBS"
10743
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10745 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10746 if test "${lt_cv_dlopen_self+set}" = set; then :
10747 $as_echo_n "(cached) " >&6
10748 else
10749 if test "$cross_compiling" = yes; then :
10750 lt_cv_dlopen_self=cross
10751 else
10752 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10753 lt_status=$lt_dlunknown
10754 cat > conftest.$ac_ext <<_LT_EOF
10755 #line 10755 "configure"
10756 #include "confdefs.h"
10757
10758 #if HAVE_DLFCN_H
10759 #include <dlfcn.h>
10760 #endif
10761
10762 #include <stdio.h>
10763
10764 #ifdef RTLD_GLOBAL
10765 # define LT_DLGLOBAL RTLD_GLOBAL
10766 #else
10767 # ifdef DL_GLOBAL
10768 # define LT_DLGLOBAL DL_GLOBAL
10769 # else
10770 # define LT_DLGLOBAL 0
10771 # endif
10772 #endif
10773
10774 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10775 find out it does not work in some platform. */
10776 #ifndef LT_DLLAZY_OR_NOW
10777 # ifdef RTLD_LAZY
10778 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10779 # else
10780 # ifdef DL_LAZY
10781 # define LT_DLLAZY_OR_NOW DL_LAZY
10782 # else
10783 # ifdef RTLD_NOW
10784 # define LT_DLLAZY_OR_NOW RTLD_NOW
10785 # else
10786 # ifdef DL_NOW
10787 # define LT_DLLAZY_OR_NOW DL_NOW
10788 # else
10789 # define LT_DLLAZY_OR_NOW 0
10790 # endif
10791 # endif
10792 # endif
10793 # endif
10794 #endif
10795
10796 void fnord() { int i=42;}
10797 int main ()
10798 {
10799 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10800 int status = $lt_dlunknown;
10801
10802 if (self)
10803 {
10804 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10805 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10806 /* dlclose (self); */
10807 }
10808 else
10809 puts (dlerror ());
10810
10811 return status;
10812 }
10813 _LT_EOF
10814 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10815 (eval $ac_link) 2>&5
10816 ac_status=$?
10817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10818 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10819 (./conftest; exit; ) >&5 2>/dev/null
10820 lt_status=$?
10821 case x$lt_status in
10822 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10823 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10824 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10825 esac
10826 else :
10827 # compilation failed
10828 lt_cv_dlopen_self=no
10829 fi
10830 fi
10831 rm -fr conftest*
10832
10833
10834 fi
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10836 $as_echo "$lt_cv_dlopen_self" >&6; }
10837
10838 if test "x$lt_cv_dlopen_self" = xyes; then
10839 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10841 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10842 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10843 $as_echo_n "(cached) " >&6
10844 else
10845 if test "$cross_compiling" = yes; then :
10846 lt_cv_dlopen_self_static=cross
10847 else
10848 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10849 lt_status=$lt_dlunknown
10850 cat > conftest.$ac_ext <<_LT_EOF
10851 #line 10851 "configure"
10852 #include "confdefs.h"
10853
10854 #if HAVE_DLFCN_H
10855 #include <dlfcn.h>
10856 #endif
10857
10858 #include <stdio.h>
10859
10860 #ifdef RTLD_GLOBAL
10861 # define LT_DLGLOBAL RTLD_GLOBAL
10862 #else
10863 # ifdef DL_GLOBAL
10864 # define LT_DLGLOBAL DL_GLOBAL
10865 # else
10866 # define LT_DLGLOBAL 0
10867 # endif
10868 #endif
10869
10870 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10871 find out it does not work in some platform. */
10872 #ifndef LT_DLLAZY_OR_NOW
10873 # ifdef RTLD_LAZY
10874 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10875 # else
10876 # ifdef DL_LAZY
10877 # define LT_DLLAZY_OR_NOW DL_LAZY
10878 # else
10879 # ifdef RTLD_NOW
10880 # define LT_DLLAZY_OR_NOW RTLD_NOW
10881 # else
10882 # ifdef DL_NOW
10883 # define LT_DLLAZY_OR_NOW DL_NOW
10884 # else
10885 # define LT_DLLAZY_OR_NOW 0
10886 # endif
10887 # endif
10888 # endif
10889 # endif
10890 #endif
10891
10892 void fnord() { int i=42;}
10893 int main ()
10894 {
10895 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10896 int status = $lt_dlunknown;
10897
10898 if (self)
10899 {
10900 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10901 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10902 /* dlclose (self); */
10903 }
10904 else
10905 puts (dlerror ());
10906
10907 return status;
10908 }
10909 _LT_EOF
10910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10911 (eval $ac_link) 2>&5
10912 ac_status=$?
10913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10914 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10915 (./conftest; exit; ) >&5 2>/dev/null
10916 lt_status=$?
10917 case x$lt_status in
10918 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10919 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10920 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10921 esac
10922 else :
10923 # compilation failed
10924 lt_cv_dlopen_self_static=no
10925 fi
10926 fi
10927 rm -fr conftest*
10928
10929
10930 fi
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10932 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10933 fi
10934
10935 CPPFLAGS="$save_CPPFLAGS"
10936 LDFLAGS="$save_LDFLAGS"
10937 LIBS="$save_LIBS"
10938 ;;
10939 esac
10940
10941 case $lt_cv_dlopen_self in
10942 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10943 *) enable_dlopen_self=unknown ;;
10944 esac
10945
10946 case $lt_cv_dlopen_self_static in
10947 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10948 *) enable_dlopen_self_static=unknown ;;
10949 esac
10950 fi
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968 striplib=
10969 old_striplib=
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10971 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10972 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10973 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10974 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10976 $as_echo "yes" >&6; }
10977 else
10978 # FIXME - insert some real tests, host_os isn't really good enough
10979 case $host_os in
10980 darwin*)
10981 if test -n "$STRIP" ; then
10982 striplib="$STRIP -x"
10983 old_striplib="$STRIP -S"
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10985 $as_echo "yes" >&6; }
10986 else
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10988 $as_echo "no" >&6; }
10989 fi
10990 ;;
10991 *)
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10993 $as_echo "no" >&6; }
10994 ;;
10995 esac
10996 fi
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009 # Report which library types will actually be built
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11011 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11013 $as_echo "$can_build_shared" >&6; }
11014
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11016 $as_echo_n "checking whether to build shared libraries... " >&6; }
11017 test "$can_build_shared" = "no" && enable_shared=no
11018
11019 # On AIX, shared libraries and static libraries use the same namespace, and
11020 # are all built from PIC.
11021 case $host_os in
11022 aix3*)
11023 test "$enable_shared" = yes && enable_static=no
11024 if test -n "$RANLIB"; then
11025 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11026 postinstall_cmds='$RANLIB $lib'
11027 fi
11028 ;;
11029
11030 aix[4-9]*)
11031 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11032 test "$enable_shared" = yes && enable_static=no
11033 fi
11034 ;;
11035 esac
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11037 $as_echo "$enable_shared" >&6; }
11038
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11040 $as_echo_n "checking whether to build static libraries... " >&6; }
11041 # Make sure either enable_shared or enable_static is yes.
11042 test "$enable_shared" = yes || enable_static=yes
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11044 $as_echo "$enable_static" >&6; }
11045
11046
11047
11048
11049 fi
11050 ac_ext=c
11051 ac_cpp='$CPP $CPPFLAGS'
11052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11055
11056 CC="$lt_save_CC"
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070 ac_config_commands="$ac_config_commands libtool"
11071
11072
11073
11074
11075 # Only expand once:
11076
11077
11078 ac_ext=c
11079 ac_cpp='$CPP $CPPFLAGS'
11080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11083 if test -n "$ac_tool_prefix"; then
11084 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11085 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11087 $as_echo_n "checking for $ac_word... " >&6; }
11088 if test "${ac_cv_prog_CC+set}" = set; then :
11089 $as_echo_n "(cached) " >&6
11090 else
11091 if test -n "$CC"; then
11092 ac_cv_prog_CC="$CC" # Let the user override the test.
11093 else
11094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11095 for as_dir in $PATH
11096 do
11097 IFS=$as_save_IFS
11098 test -z "$as_dir" && as_dir=.
11099 for ac_exec_ext in '' $ac_executable_extensions; do
11100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11101 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11103 break 2
11104 fi
11105 done
11106 done
11107 IFS=$as_save_IFS
11108
11109 fi
11110 fi
11111 CC=$ac_cv_prog_CC
11112 if test -n "$CC"; then
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11114 $as_echo "$CC" >&6; }
11115 else
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11117 $as_echo "no" >&6; }
11118 fi
11119
11120
11121 fi
11122 if test -z "$ac_cv_prog_CC"; then
11123 ac_ct_CC=$CC
11124 # Extract the first word of "gcc", so it can be a program name with args.
11125 set dummy gcc; ac_word=$2
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11127 $as_echo_n "checking for $ac_word... " >&6; }
11128 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11129 $as_echo_n "(cached) " >&6
11130 else
11131 if test -n "$ac_ct_CC"; then
11132 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11133 else
11134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11135 for as_dir in $PATH
11136 do
11137 IFS=$as_save_IFS
11138 test -z "$as_dir" && as_dir=.
11139 for ac_exec_ext in '' $ac_executable_extensions; do
11140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11141 ac_cv_prog_ac_ct_CC="gcc"
11142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11143 break 2
11144 fi
11145 done
11146 done
11147 IFS=$as_save_IFS
11148
11149 fi
11150 fi
11151 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11152 if test -n "$ac_ct_CC"; then
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11154 $as_echo "$ac_ct_CC" >&6; }
11155 else
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11157 $as_echo "no" >&6; }
11158 fi
11159
11160 if test "x$ac_ct_CC" = x; then
11161 CC=""
11162 else
11163 case $cross_compiling:$ac_tool_warned in
11164 yes:)
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11167 ac_tool_warned=yes ;;
11168 esac
11169 CC=$ac_ct_CC
11170 fi
11171 else
11172 CC="$ac_cv_prog_CC"
11173 fi
11174
11175 if test -z "$CC"; then
11176 if test -n "$ac_tool_prefix"; then
11177 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11178 set dummy ${ac_tool_prefix}cc; ac_word=$2
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11180 $as_echo_n "checking for $ac_word... " >&6; }
11181 if test "${ac_cv_prog_CC+set}" = set; then :
11182 $as_echo_n "(cached) " >&6
11183 else
11184 if test -n "$CC"; then
11185 ac_cv_prog_CC="$CC" # Let the user override the test.
11186 else
11187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11188 for as_dir in $PATH
11189 do
11190 IFS=$as_save_IFS
11191 test -z "$as_dir" && as_dir=.
11192 for ac_exec_ext in '' $ac_executable_extensions; do
11193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11194 ac_cv_prog_CC="${ac_tool_prefix}cc"
11195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11196 break 2
11197 fi
11198 done
11199 done
11200 IFS=$as_save_IFS
11201
11202 fi
11203 fi
11204 CC=$ac_cv_prog_CC
11205 if test -n "$CC"; then
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11207 $as_echo "$CC" >&6; }
11208 else
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11210 $as_echo "no" >&6; }
11211 fi
11212
11213
11214 fi
11215 fi
11216 if test -z "$CC"; then
11217 # Extract the first word of "cc", so it can be a program name with args.
11218 set dummy cc; ac_word=$2
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11220 $as_echo_n "checking for $ac_word... " >&6; }
11221 if test "${ac_cv_prog_CC+set}" = set; then :
11222 $as_echo_n "(cached) " >&6
11223 else
11224 if test -n "$CC"; then
11225 ac_cv_prog_CC="$CC" # Let the user override the test.
11226 else
11227 ac_prog_rejected=no
11228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11229 for as_dir in $PATH
11230 do
11231 IFS=$as_save_IFS
11232 test -z "$as_dir" && as_dir=.
11233 for ac_exec_ext in '' $ac_executable_extensions; do
11234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11235 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11236 ac_prog_rejected=yes
11237 continue
11238 fi
11239 ac_cv_prog_CC="cc"
11240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11241 break 2
11242 fi
11243 done
11244 done
11245 IFS=$as_save_IFS
11246
11247 if test $ac_prog_rejected = yes; then
11248 # We found a bogon in the path, so make sure we never use it.
11249 set dummy $ac_cv_prog_CC
11250 shift
11251 if test $# != 0; then
11252 # We chose a different compiler from the bogus one.
11253 # However, it has the same basename, so the bogon will be chosen
11254 # first if we set CC to just the basename; use the full file name.
11255 shift
11256 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11257 fi
11258 fi
11259 fi
11260 fi
11261 CC=$ac_cv_prog_CC
11262 if test -n "$CC"; then
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11264 $as_echo "$CC" >&6; }
11265 else
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11267 $as_echo "no" >&6; }
11268 fi
11269
11270
11271 fi
11272 if test -z "$CC"; then
11273 if test -n "$ac_tool_prefix"; then
11274 for ac_prog in cl.exe
11275 do
11276 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11277 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11279 $as_echo_n "checking for $ac_word... " >&6; }
11280 if test "${ac_cv_prog_CC+set}" = set; then :
11281 $as_echo_n "(cached) " >&6
11282 else
11283 if test -n "$CC"; then
11284 ac_cv_prog_CC="$CC" # Let the user override the test.
11285 else
11286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11287 for as_dir in $PATH
11288 do
11289 IFS=$as_save_IFS
11290 test -z "$as_dir" && as_dir=.
11291 for ac_exec_ext in '' $ac_executable_extensions; do
11292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11293 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11295 break 2
11296 fi
11297 done
11298 done
11299 IFS=$as_save_IFS
11300
11301 fi
11302 fi
11303 CC=$ac_cv_prog_CC
11304 if test -n "$CC"; then
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11306 $as_echo "$CC" >&6; }
11307 else
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11309 $as_echo "no" >&6; }
11310 fi
11311
11312
11313 test -n "$CC" && break
11314 done
11315 fi
11316 if test -z "$CC"; then
11317 ac_ct_CC=$CC
11318 for ac_prog in cl.exe
11319 do
11320 # Extract the first word of "$ac_prog", so it can be a program name with args.
11321 set dummy $ac_prog; ac_word=$2
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11323 $as_echo_n "checking for $ac_word... " >&6; }
11324 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11325 $as_echo_n "(cached) " >&6
11326 else
11327 if test -n "$ac_ct_CC"; then
11328 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11329 else
11330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11331 for as_dir in $PATH
11332 do
11333 IFS=$as_save_IFS
11334 test -z "$as_dir" && as_dir=.
11335 for ac_exec_ext in '' $ac_executable_extensions; do
11336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11337 ac_cv_prog_ac_ct_CC="$ac_prog"
11338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11339 break 2
11340 fi
11341 done
11342 done
11343 IFS=$as_save_IFS
11344
11345 fi
11346 fi
11347 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11348 if test -n "$ac_ct_CC"; then
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11350 $as_echo "$ac_ct_CC" >&6; }
11351 else
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11353 $as_echo "no" >&6; }
11354 fi
11355
11356
11357 test -n "$ac_ct_CC" && break
11358 done
11359
11360 if test "x$ac_ct_CC" = x; then
11361 CC=""
11362 else
11363 case $cross_compiling:$ac_tool_warned in
11364 yes:)
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11367 ac_tool_warned=yes ;;
11368 esac
11369 CC=$ac_ct_CC
11370 fi
11371 fi
11372
11373 fi
11374
11375
11376 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11378 as_fn_error $? "no acceptable C compiler found in \$PATH
11379 See \`config.log' for more details" "$LINENO" 5 ; }
11380
11381 # Provide some information about the compiler.
11382 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11383 set X $ac_compile
11384 ac_compiler=$2
11385 for ac_option in --version -v -V -qversion; do
11386 { { ac_try="$ac_compiler $ac_option >&5"
11387 case "(($ac_try" in
11388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11389 *) ac_try_echo=$ac_try;;
11390 esac
11391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11392 $as_echo "$ac_try_echo"; } >&5
11393 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11394 ac_status=$?
11395 if test -s conftest.err; then
11396 sed '10a\
11397 ... rest of stderr output deleted ...
11398 10q' conftest.err >conftest.er1
11399 cat conftest.er1 >&5
11400 fi
11401 rm -f conftest.er1 conftest.err
11402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11403 test $ac_status = 0; }
11404 done
11405
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11407 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11408 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11409 $as_echo_n "(cached) " >&6
11410 else
11411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11412 /* end confdefs.h. */
11413
11414 int
11415 main ()
11416 {
11417 #ifndef __GNUC__
11418 choke me
11419 #endif
11420
11421 ;
11422 return 0;
11423 }
11424 _ACEOF
11425 if ac_fn_c_try_compile "$LINENO"; then :
11426 ac_compiler_gnu=yes
11427 else
11428 ac_compiler_gnu=no
11429 fi
11430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11431 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11432
11433 fi
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11435 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11436 if test $ac_compiler_gnu = yes; then
11437 GCC=yes
11438 else
11439 GCC=
11440 fi
11441 ac_test_CFLAGS=${CFLAGS+set}
11442 ac_save_CFLAGS=$CFLAGS
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11444 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11445 if test "${ac_cv_prog_cc_g+set}" = set; then :
11446 $as_echo_n "(cached) " >&6
11447 else
11448 ac_save_c_werror_flag=$ac_c_werror_flag
11449 ac_c_werror_flag=yes
11450 ac_cv_prog_cc_g=no
11451 CFLAGS="-g"
11452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11453 /* end confdefs.h. */
11454
11455 int
11456 main ()
11457 {
11458
11459 ;
11460 return 0;
11461 }
11462 _ACEOF
11463 if ac_fn_c_try_compile "$LINENO"; then :
11464 ac_cv_prog_cc_g=yes
11465 else
11466 CFLAGS=""
11467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11468 /* end confdefs.h. */
11469
11470 int
11471 main ()
11472 {
11473
11474 ;
11475 return 0;
11476 }
11477 _ACEOF
11478 if ac_fn_c_try_compile "$LINENO"; then :
11479
11480 else
11481 ac_c_werror_flag=$ac_save_c_werror_flag
11482 CFLAGS="-g"
11483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11484 /* end confdefs.h. */
11485
11486 int
11487 main ()
11488 {
11489
11490 ;
11491 return 0;
11492 }
11493 _ACEOF
11494 if ac_fn_c_try_compile "$LINENO"; then :
11495 ac_cv_prog_cc_g=yes
11496 fi
11497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11498 fi
11499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11500 fi
11501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11502 ac_c_werror_flag=$ac_save_c_werror_flag
11503 fi
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11505 $as_echo "$ac_cv_prog_cc_g" >&6; }
11506 if test "$ac_test_CFLAGS" = set; then
11507 CFLAGS=$ac_save_CFLAGS
11508 elif test $ac_cv_prog_cc_g = yes; then
11509 if test "$GCC" = yes; then
11510 CFLAGS="-g -O2"
11511 else
11512 CFLAGS="-g"
11513 fi
11514 else
11515 if test "$GCC" = yes; then
11516 CFLAGS="-O2"
11517 else
11518 CFLAGS=
11519 fi
11520 fi
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11522 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11523 if test "${ac_cv_prog_cc_c89+set}" = set; then :
11524 $as_echo_n "(cached) " >&6
11525 else
11526 ac_cv_prog_cc_c89=no
11527 ac_save_CC=$CC
11528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11529 /* end confdefs.h. */
11530 #include <stdarg.h>
11531 #include <stdio.h>
11532 #include <sys/types.h>
11533 #include <sys/stat.h>
11534 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11535 struct buf { int x; };
11536 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11537 static char *e (p, i)
11538 char **p;
11539 int i;
11540 {
11541 return p[i];
11542 }
11543 static char *f (char * (*g) (char **, int), char **p, ...)
11544 {
11545 char *s;
11546 va_list v;
11547 va_start (v,p);
11548 s = g (p, va_arg (v,int));
11549 va_end (v);
11550 return s;
11551 }
11552
11553 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11554 function prototypes and stuff, but not '\xHH' hex character constants.
11555 These don't provoke an error unfortunately, instead are silently treated
11556 as 'x'. The following induces an error, until -std is added to get
11557 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11558 array size at least. It's necessary to write '\x00'==0 to get something
11559 that's true only with -std. */
11560 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11561
11562 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11563 inside strings and character constants. */
11564 #define FOO(x) 'x'
11565 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11566
11567 int test (int i, double x);
11568 struct s1 {int (*f) (int a);};
11569 struct s2 {int (*f) (double a);};
11570 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11571 int argc;
11572 char **argv;
11573 int
11574 main ()
11575 {
11576 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11577 ;
11578 return 0;
11579 }
11580 _ACEOF
11581 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11582 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11583 do
11584 CC="$ac_save_CC $ac_arg"
11585 if ac_fn_c_try_compile "$LINENO"; then :
11586 ac_cv_prog_cc_c89=$ac_arg
11587 fi
11588 rm -f core conftest.err conftest.$ac_objext
11589 test "x$ac_cv_prog_cc_c89" != "xno" && break
11590 done
11591 rm -f conftest.$ac_ext
11592 CC=$ac_save_CC
11593
11594 fi
11595 # AC_CACHE_VAL
11596 case "x$ac_cv_prog_cc_c89" in
11597 x)
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11599 $as_echo "none needed" >&6; } ;;
11600 xno)
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11602 $as_echo "unsupported" >&6; } ;;
11603 *)
11604 CC="$CC $ac_cv_prog_cc_c89"
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11606 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11607 esac
11608 if test "x$ac_cv_prog_cc_c89" != xno; then :
11609
11610 fi
11611
11612 ac_ext=c
11613 ac_cpp='$CPP $CPPFLAGS'
11614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11617
11618 # By default we simply use the C compiler to build assembly code.
11619
11620 test "${CCAS+set}" = set || CCAS=$CC
11621 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11622
11623
11624
11625 depcc="$CCAS" am_compiler_list=
11626
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11628 $as_echo_n "checking dependency style of $depcc... " >&6; }
11629 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
11630 $as_echo_n "(cached) " >&6
11631 else
11632 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11633 # We make a subdir and do the tests there. Otherwise we can end up
11634 # making bogus files that we don't know about and never remove. For
11635 # instance it was reported that on HP-UX the gcc test will end up
11636 # making a dummy file named `D' -- because `-MD' means `put the output
11637 # in D'.
11638 mkdir conftest.dir
11639 # Copy depcomp to subdir because otherwise we won't find it if we're
11640 # using a relative directory.
11641 cp "$am_depcomp" conftest.dir
11642 cd conftest.dir
11643 # We will build objects and dependencies in a subdirectory because
11644 # it helps to detect inapplicable dependency modes. For instance
11645 # both Tru64's cc and ICC support -MD to output dependencies as a
11646 # side effect of compilation, but ICC will put the dependencies in
11647 # the current directory while Tru64 will put them in the object
11648 # directory.
11649 mkdir sub
11650
11651 am_cv_CCAS_dependencies_compiler_type=none
11652 if test "$am_compiler_list" = ""; then
11653 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11654 fi
11655 am__universal=false
11656
11657
11658 for depmode in $am_compiler_list; do
11659 # Setup a source with many dependencies, because some compilers
11660 # like to wrap large dependency lists on column 80 (with \), and
11661 # we should not choose a depcomp mode which is confused by this.
11662 #
11663 # We need to recreate these files for each test, as the compiler may
11664 # overwrite some of them when testing with obscure command lines.
11665 # This happens at least with the AIX C compiler.
11666 : > sub/conftest.c
11667 for i in 1 2 3 4 5 6; do
11668 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11669 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11670 # Solaris 8's {/usr,}/bin/sh.
11671 touch sub/conftst$i.h
11672 done
11673 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11674
11675 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11676 # mode. It turns out that the SunPro C++ compiler does not properly
11677 # handle `-M -o', and we need to detect this. Also, some Intel
11678 # versions had trouble with output in subdirs
11679 am__obj=sub/conftest.${OBJEXT-o}
11680 am__minus_obj="-o $am__obj"
11681 case $depmode in
11682 gcc)
11683 # This depmode causes a compiler race in universal mode.
11684 test "$am__universal" = false || continue
11685 ;;
11686 nosideeffect)
11687 # after this tag, mechanisms are not by side-effect, so they'll
11688 # only be used when explicitly requested
11689 if test "x$enable_dependency_tracking" = xyes; then
11690 continue
11691 else
11692 break
11693 fi
11694 ;;
11695 msvisualcpp | msvcmsys)
11696 # This compiler won't grok `-c -o', but also, the minuso test has
11697 # not run yet. These depmodes are late enough in the game, and
11698 # so weak that their functioning should not be impacted.
11699 am__obj=conftest.${OBJEXT-o}
11700 am__minus_obj=
11701 ;;
11702 none) break ;;
11703 esac
11704 if depmode=$depmode \
11705 source=sub/conftest.c object=$am__obj \
11706 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11707 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11708 >/dev/null 2>conftest.err &&
11709 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11710 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11711 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11712 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11713 # icc doesn't choke on unknown options, it will just issue warnings
11714 # or remarks (even with -Werror). So we grep stderr for any message
11715 # that says an option was ignored or not supported.
11716 # When given -MP, icc 7.0 and 7.1 complain thusly:
11717 # icc: Command line warning: ignoring option '-M'; no argument required
11718 # The diagnosis changed in icc 8.0:
11719 # icc: Command line remark: option '-MP' not supported
11720 if (grep 'ignoring option' conftest.err ||
11721 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11722 am_cv_CCAS_dependencies_compiler_type=$depmode
11723 break
11724 fi
11725 fi
11726 done
11727
11728 cd ..
11729 rm -rf conftest.dir
11730 else
11731 am_cv_CCAS_dependencies_compiler_type=none
11732 fi
11733
11734 fi
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11736 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11737 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11738
11739 if
11740 test "x$enable_dependency_tracking" != xno \
11741 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11742 am__fastdepCCAS_TRUE=
11743 am__fastdepCCAS_FALSE='#'
11744 else
11745 am__fastdepCCAS_TRUE='#'
11746 am__fastdepCCAS_FALSE=
11747 fi
11748
11749
11750
11751
11752
11753
11754 # Check whether --with-xorg-module-dir was given.
11755 if test "${with_xorg_module_dir+set}" = set; then :
11756 withval=$with_xorg_module_dir; moduledir="$withval"
11757 else
11758 moduledir="$libdir/xorg/modules"
11759 fi
11760
11761
11762 # Check whether --enable-geodegx-panel was given.
11763 if test "${enable_geodegx_panel+set}" = set; then :
11764 enableval=$enable_geodegx_panel;
11765 else
11766 AMD_CFLAGS="-DPNL_SUP $AMD_CFLAGS"
11767 fi
11768
11769
11770 # Check whether --enable-werror was given.
11771 if test "${enable_werror+set}" = set; then :
11772 enableval=$enable_werror; WERROR=$enableval
11773 else
11774 WERROR=no
11775 fi
11776
11777 # Check whether --enable-visibility was given.
11778 if test "${enable_visibility+set}" = set; then :
11779 enableval=$enable_visibility; AMD_CFLAGS="$AMD_CFLAGS -fvisibility=hidden"
11780 else
11781 :
11782 fi
11783
11784
11785 if test "x$GCC" = "xyes"; then
11786 GCC_WARNINGS1="-Wall -Wpointer-arith -Wstrict-prototypes"
11787 GCC_WARNINGS2="-Wmissing-prototypes -Wmissing-declarations"
11788 GCC_WARNINGS3="-Wnested-externs -fno-strict-aliasing"
11789 GCC_WARNINGS="$GCC_WARNINGS1 $GCC_WARNINGS2 $GCC_WARNINGS3"
11790 if test "x$WERROR" = "xyes"; then
11791 GCC_WARNINGS="${GCC_WARNINGS} -Werror"
11792 fi
11793 AMD_CFLAGS="$GCC_WARNINGS $AMD_CFLAGS"
11794 fi
11795
11796 # Checks for extensions
11797
11798
11799 SAVE_CFLAGS="$CFLAGS"
11800 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
11801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11802 /* end confdefs.h. */
11803
11804 #include "xorg-server.h"
11805 #if !defined RANDR
11806 #error RANDR not defined
11807 #endif
11808
11809 int
11810 main ()
11811 {
11812
11813 ;
11814 return 0;
11815 }
11816 _ACEOF
11817 if ac_fn_c_try_compile "$LINENO"; then :
11818 _EXT_CHECK=yes
11819 else
11820 _EXT_CHECK=no
11821 fi
11822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11823 CFLAGS="$SAVE_CFLAGS"
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
11825 $as_echo_n "checking if RANDR is defined... " >&6; }
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
11827 $as_echo "$_EXT_CHECK" >&6; }
11828 if test "$_EXT_CHECK" != no; then
11829 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
11830 fi
11831
11832
11833
11834 SAVE_CFLAGS="$CFLAGS"
11835 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
11836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11837 /* end confdefs.h. */
11838
11839 #include "xorg-server.h"
11840 #if !defined RENDER
11841 #error RENDER not defined
11842 #endif
11843
11844 int
11845 main ()
11846 {
11847
11848 ;
11849 return 0;
11850 }
11851 _ACEOF
11852 if ac_fn_c_try_compile "$LINENO"; then :
11853 _EXT_CHECK=yes
11854 else
11855 _EXT_CHECK=no
11856 fi
11857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11858 CFLAGS="$SAVE_CFLAGS"
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
11860 $as_echo_n "checking if RENDER is defined... " >&6; }
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
11862 $as_echo "$_EXT_CHECK" >&6; }
11863 if test "$_EXT_CHECK" != no; then
11864 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
11865 fi
11866
11867
11868
11869 SAVE_CFLAGS="$CFLAGS"
11870 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
11871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11872 /* end confdefs.h. */
11873
11874 #include "xorg-server.h"
11875 #if !defined XV
11876 #error XV not defined
11877 #endif
11878
11879 int
11880 main ()
11881 {
11882
11883 ;
11884 return 0;
11885 }
11886 _ACEOF
11887 if ac_fn_c_try_compile "$LINENO"; then :
11888 _EXT_CHECK=yes
11889 else
11890 _EXT_CHECK=no
11891 fi
11892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11893 CFLAGS="$SAVE_CFLAGS"
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
11895 $as_echo_n "checking if XV is defined... " >&6; }
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
11897 $as_echo "$_EXT_CHECK" >&6; }
11898 if test "$_EXT_CHECK" != no; then
11899 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
11900 fi
11901
11902
11903
11904 SAVE_CFLAGS="$CFLAGS"
11905 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
11906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11907 /* end confdefs.h. */
11908
11909 #include "xorg-server.h"
11910 #if !defined DPMSExtension
11911 #error DPMSExtension not defined
11912 #endif
11913
11914 int
11915 main ()
11916 {
11917
11918 ;
11919 return 0;
11920 }
11921 _ACEOF
11922 if ac_fn_c_try_compile "$LINENO"; then :
11923 _EXT_CHECK=yes
11924 else
11925 _EXT_CHECK=no
11926 fi
11927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11928 CFLAGS="$SAVE_CFLAGS"
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
11930 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
11932 $as_echo "$_EXT_CHECK" >&6; }
11933 if test "$_EXT_CHECK" != no; then
11934 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
11935 fi
11936
11937
11938 # Checks for pkg-config packages
11939
11940 pkg_failed=no
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
11942 $as_echo_n "checking for XORG... " >&6; }
11943
11944 if test -n "$XORG_CFLAGS"; then
11945 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
11946 elif test -n "$PKG_CONFIG"; then
11947 if test -n "$PKG_CONFIG" && \
11948 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto \$REQUIRED_MODULES\""; } >&5
11949 ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES") 2>&5
11950 ac_status=$?
11951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11952 test $ac_status = 0; }; then
11953 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
11954 else
11955 pkg_failed=yes
11956 fi
11957 else
11958 pkg_failed=untried
11959 fi
11960 if test -n "$XORG_LIBS"; then
11961 pkg_cv_XORG_LIBS="$XORG_LIBS"
11962 elif test -n "$PKG_CONFIG"; then
11963 if test -n "$PKG_CONFIG" && \
11964 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto \$REQUIRED_MODULES\""; } >&5
11965 ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES") 2>&5
11966 ac_status=$?
11967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11968 test $ac_status = 0; }; then
11969 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
11970 else
11971 pkg_failed=yes
11972 fi
11973 else
11974 pkg_failed=untried
11975 fi
11976
11977
11978
11979 if test $pkg_failed = yes; then
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11981 $as_echo "no" >&6; }
11982
11983 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11984 _pkg_short_errors_supported=yes
11985 else
11986 _pkg_short_errors_supported=no
11987 fi
11988 if test $_pkg_short_errors_supported = yes; then
11989 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>&1`
11990 else
11991 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>&1`
11992 fi
11993 # Put the nasty error message in config.log where it belongs
11994 echo "$XORG_PKG_ERRORS" >&5
11995
11996 as_fn_error $? "Package requirements (xorg-server xproto fontsproto $REQUIRED_MODULES) were not met:
11997
11998 $XORG_PKG_ERRORS
11999
12000 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12001 installed software in a non-standard prefix.
12002
12003 Alternatively, you may set the environment variables XORG_CFLAGS
12004 and XORG_LIBS to avoid the need to call pkg-config.
12005 See the pkg-config man page for more details." "$LINENO" 5
12006 elif test $pkg_failed = untried; then
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12008 $as_echo "no" >&6; }
12009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12011 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12012 is in your PATH or set the PKG_CONFIG environment variable to the full
12013 path to pkg-config.
12014
12015 Alternatively, you may set the environment variables XORG_CFLAGS
12016 and XORG_LIBS to avoid the need to call pkg-config.
12017 See the pkg-config man page for more details.
12018
12019 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12020 See \`config.log' for more details" "$LINENO" 5 ; }
12021 else
12022 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
12023 XORG_LIBS=$pkg_cv_XORG_LIBS
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12025 $as_echo "yes" >&6; }
12026
12027 fi
12028
12029 pkg_failed=no
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
12031 $as_echo_n "checking for XEXT... " >&6; }
12032
12033 if test -n "$XEXT_CFLAGS"; then
12034 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
12035 elif test -n "$PKG_CONFIG"; then
12036 if test -n "$PKG_CONFIG" && \
12037 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
12038 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
12039 ac_status=$?
12040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12041 test $ac_status = 0; }; then
12042 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
12043 else
12044 pkg_failed=yes
12045 fi
12046 else
12047 pkg_failed=untried
12048 fi
12049 if test -n "$XEXT_LIBS"; then
12050 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
12051 elif test -n "$PKG_CONFIG"; then
12052 if test -n "$PKG_CONFIG" && \
12053 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
12054 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
12055 ac_status=$?
12056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12057 test $ac_status = 0; }; then
12058 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
12059 else
12060 pkg_failed=yes
12061 fi
12062 else
12063 pkg_failed=untried
12064 fi
12065
12066
12067
12068 if test $pkg_failed = yes; then
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12070 $as_echo "no" >&6; }
12071
12072 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12073 _pkg_short_errors_supported=yes
12074 else
12075 _pkg_short_errors_supported=no
12076 fi
12077 if test $_pkg_short_errors_supported = yes; then
12078 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xextproto >= 7.0.99.1" 2>&1`
12079 else
12080 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xextproto >= 7.0.99.1" 2>&1`
12081 fi
12082 # Put the nasty error message in config.log where it belongs
12083 echo "$XEXT_PKG_ERRORS" >&5
12084
12085 HAVE_XEXTPROTO_71="no"
12086 elif test $pkg_failed = untried; then
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12088 $as_echo "no" >&6; }
12089 HAVE_XEXTPROTO_71="no"
12090 else
12091 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
12092 XEXT_LIBS=$pkg_cv_XEXT_LIBS
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12094 $as_echo "yes" >&6; }
12095 HAVE_XEXTPROTO_71="yes";
12096 $as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
12097
12098 fi
12099 if test "$HAVE_XEXTPROTO_71" = "yes" ; then
12100 HAVE_XEXTPROTO_71_TRUE=
12101 HAVE_XEXTPROTO_71_FALSE='#'
12102 else
12103 HAVE_XEXTPROTO_71_TRUE='#'
12104 HAVE_XEXTPROTO_71_FALSE=
12105 fi
12106
12107
12108 # Checks for libraries.
12109 SAVE_CPPFLAGS="$CPPFLAGS"
12110 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
12111 ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
12112 "
12113 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then :
12114 XSERVER_LIBPCIACCESS=yes
12115 else
12116 XSERVER_LIBPCIACCESS=no
12117 fi
12118
12119 CPPFLAGS="$SAVE_CPPFLAGS"
12120
12121 # Checks for header files.
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12123 $as_echo_n "checking for ANSI C header files... " >&6; }
12124 if test "${ac_cv_header_stdc+set}" = set; then :
12125 $as_echo_n "(cached) " >&6
12126 else
12127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12128 /* end confdefs.h. */
12129 #include <stdlib.h>
12130 #include <stdarg.h>
12131 #include <string.h>
12132 #include <float.h>
12133
12134 int
12135 main ()
12136 {
12137
12138 ;
12139 return 0;
12140 }
12141 _ACEOF
12142 if ac_fn_c_try_compile "$LINENO"; then :
12143 ac_cv_header_stdc=yes
12144 else
12145 ac_cv_header_stdc=no
12146 fi
12147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12148
12149 if test $ac_cv_header_stdc = yes; then
12150 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12152 /* end confdefs.h. */
12153 #include <string.h>
12154
12155 _ACEOF
12156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12157 $EGREP "memchr" >/dev/null 2>&1; then :
12158
12159 else
12160 ac_cv_header_stdc=no
12161 fi
12162 rm -f conftest*
12163
12164 fi
12165
12166 if test $ac_cv_header_stdc = yes; then
12167 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12169 /* end confdefs.h. */
12170 #include <stdlib.h>
12171
12172 _ACEOF
12173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12174 $EGREP "free" >/dev/null 2>&1; then :
12175
12176 else
12177 ac_cv_header_stdc=no
12178 fi
12179 rm -f conftest*
12180
12181 fi
12182
12183 if test $ac_cv_header_stdc = yes; then
12184 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12185 if test "$cross_compiling" = yes; then :
12186 :
12187 else
12188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12189 /* end confdefs.h. */
12190 #include <ctype.h>
12191 #include <stdlib.h>
12192 #if ((' ' & 0x0FF) == 0x020)
12193 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12194 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12195 #else
12196 # define ISLOWER(c) \
12197 (('a' <= (c) && (c) <= 'i') \
12198 || ('j' <= (c) && (c) <= 'r') \
12199 || ('s' <= (c) && (c) <= 'z'))
12200 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12201 #endif
12202
12203 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12204 int
12205 main ()
12206 {
12207 int i;
12208 for (i = 0; i < 256; i++)
12209 if (XOR (islower (i), ISLOWER (i))
12210 || toupper (i) != TOUPPER (i))
12211 return 2;
12212 return 0;
12213 }
12214 _ACEOF
12215 if ac_fn_c_try_run "$LINENO"; then :
12216
12217 else
12218 ac_cv_header_stdc=no
12219 fi
12220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12221 conftest.$ac_objext conftest.beam conftest.$ac_ext
12222 fi
12223
12224 fi
12225 fi
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12227 $as_echo "$ac_cv_header_stdc" >&6; }
12228 if test $ac_cv_header_stdc = yes; then
12229
12230 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12231
12232 fi
12233
12234
12235 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
12236
12237 pkg_failed=no
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
12239 $as_echo_n "checking for PCIACCESS... " >&6; }
12240
12241 if test -n "$PCIACCESS_CFLAGS"; then
12242 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
12243 elif test -n "$PKG_CONFIG"; then
12244 if test -n "$PKG_CONFIG" && \
12245 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
12246 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
12247 ac_status=$?
12248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12249 test $ac_status = 0; }; then
12250 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
12251 else
12252 pkg_failed=yes
12253 fi
12254 else
12255 pkg_failed=untried
12256 fi
12257 if test -n "$PCIACCESS_LIBS"; then
12258 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
12259 elif test -n "$PKG_CONFIG"; then
12260 if test -n "$PKG_CONFIG" && \
12261 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
12262 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
12263 ac_status=$?
12264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12265 test $ac_status = 0; }; then
12266 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
12267 else
12268 pkg_failed=yes
12269 fi
12270 else
12271 pkg_failed=untried
12272 fi
12273
12274
12275
12276 if test $pkg_failed = yes; then
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12278 $as_echo "no" >&6; }
12279
12280 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12281 _pkg_short_errors_supported=yes
12282 else
12283 _pkg_short_errors_supported=no
12284 fi
12285 if test $_pkg_short_errors_supported = yes; then
12286 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
12287 else
12288 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
12289 fi
12290 # Put the nasty error message in config.log where it belongs
12291 echo "$PCIACCESS_PKG_ERRORS" >&5
12292
12293 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
12294
12295 $PCIACCESS_PKG_ERRORS
12296
12297 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12298 installed software in a non-standard prefix.
12299
12300 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12301 and PCIACCESS_LIBS to avoid the need to call pkg-config.
12302 See the pkg-config man page for more details." "$LINENO" 5
12303 elif test $pkg_failed = untried; then
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12305 $as_echo "no" >&6; }
12306 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12308 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12309 is in your PATH or set the PKG_CONFIG environment variable to the full
12310 path to pkg-config.
12311
12312 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12313 and PCIACCESS_LIBS to avoid the need to call pkg-config.
12314 See the pkg-config man page for more details.
12315
12316 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12317 See \`config.log' for more details" "$LINENO" 5 ; }
12318 else
12319 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
12320 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12322 $as_echo "yes" >&6; }
12323
12324 fi
12325 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
12326 fi
12327
12328
12329
12330
12331
12332 is386=false
12333
12334 case $host_cpu in
12335 i*86)
12336 is386=true
12337 ;;
12338 esac
12339
12340 # Unset is386 if compiling for AMD64/EM64T
12341 if test $is386 = true ; then
12342 ac_fn_c_check_decl "$LINENO" "_LP64" "ac_cv_have_decl__LP64" "$ac_includes_default"
12343 if test "x$ac_cv_have_decl__LP64" = x""yes; then :
12344 ac_have_decl=1
12345 else
12346 ac_have_decl=0
12347 fi
12348
12349 cat >>confdefs.h <<_ACEOF
12350 #define HAVE_DECL__LP64 $ac_have_decl
12351 _ACEOF
12352 if test $ac_have_decl = 1; then :
12353 is386=false
12354 fi
12355 ac_fn_c_check_decl "$LINENO" "__amd64__" "ac_cv_have_decl___amd64__" "$ac_includes_default"
12356 if test "x$ac_cv_have_decl___amd64__" = x""yes; then :
12357 ac_have_decl=1
12358 else
12359 ac_have_decl=0
12360 fi
12361
12362 cat >>confdefs.h <<_ACEOF
12363 #define HAVE_DECL___AMD64__ $ac_have_decl
12364 _ACEOF
12365 if test $ac_have_decl = 1; then :
12366 is386=false
12367 fi
12368 ac_fn_c_check_decl "$LINENO" "amd64" "ac_cv_have_decl_amd64" "$ac_includes_default"
12369 if test "x$ac_cv_have_decl_amd64" = x""yes; then :
12370 ac_have_decl=1
12371 else
12372 ac_have_decl=0
12373 fi
12374
12375 cat >>confdefs.h <<_ACEOF
12376 #define HAVE_DECL_AMD64 $ac_have_decl
12377 _ACEOF
12378 if test $ac_have_decl = 1; then :
12379 is386=false
12380 fi
12381
12382 fi
12383
12384 if test $is386 = true; then
12385 I386ARCH_TRUE=
12386 I386ARCH_FALSE='#'
12387 else
12388 I386ARCH_TRUE='#'
12389 I386ARCH_FALSE=
12390 fi
12391
12392
12393 DRIVER_NAME=geode
12394
12395
12396 ac_config_files="$ac_config_files Makefile src/Makefile"
12397
12398 cat >confcache <<\_ACEOF
12399 # This file is a shell script that caches the results of configure
12400 # tests run on this system so they can be shared between configure
12401 # scripts and configure runs, see configure's option --config-cache.
12402 # It is not useful on other systems. If it contains results you don't
12403 # want to keep, you may remove or edit it.
12404 #
12405 # config.status only pays attention to the cache file if you give it
12406 # the --recheck option to rerun configure.
12407 #
12408 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12409 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12410 # following values.
12411
12412 _ACEOF
12413
12414 # The following way of writing the cache mishandles newlines in values,
12415 # but we know of no workaround that is simple, portable, and efficient.
12416 # So, we kill variables containing newlines.
12417 # Ultrix sh set writes to stderr and can't be redirected directly,
12418 # and sets the high bit in the cache file unless we assign to the vars.
12419 (
12420 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12421 eval ac_val=\$$ac_var
12422 case $ac_val in #(
12423 *${as_nl}*)
12424 case $ac_var in #(
12425 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12426 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12427 esac
12428 case $ac_var in #(
12429 _ | IFS | as_nl) ;; #(
12430 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12431 *) { eval $ac_var=; unset $ac_var;} ;;
12432 esac ;;
12433 esac
12434 done
12435
12436 (set) 2>&1 |
12437 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12438 *${as_nl}ac_space=\ *)
12439 # `set' does not quote correctly, so add quotes: double-quote
12440 # substitution turns \\\\ into \\, and sed turns \\ into \.
12441 sed -n \
12442 "s/'/'\\\\''/g;
12443 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12444 ;; #(
12445 *)
12446 # `set' quotes correctly as required by POSIX, so do not add quotes.
12447 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12448 ;;
12449 esac |
12450 sort
12451 ) |
12452 sed '
12453 /^ac_cv_env_/b end
12454 t clear
12455 :clear
12456 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12457 t end
12458 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12459 :end' >>confcache
12460 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12461 if test -w "$cache_file"; then
12462 test "x$cache_file" != "x/dev/null" &&
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12464 $as_echo "$as_me: updating cache $cache_file" >&6;}
12465 cat confcache >$cache_file
12466 else
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12468 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12469 fi
12470 fi
12471 rm -f confcache
12472
12473 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12474 # Let make expand exec_prefix.
12475 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12476
12477 DEFS=-DHAVE_CONFIG_H
12478
12479 ac_libobjs=
12480 ac_ltlibobjs=
12481 U=
12482 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12483 # 1. Remove the extension, and $U if already installed.
12484 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12485 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12486 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12487 # will be set to the directory where LIBOBJS objects are built.
12488 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12489 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12490 done
12491 LIBOBJS=$ac_libobjs
12492
12493 LTLIBOBJS=$ac_ltlibobjs
12494
12495
12496 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12497 as_fn_error $? "conditional \"AMDEP\" was never defined.
12498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12499 fi
12500 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12501 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12503 fi
12504 if test -n "$EXEEXT"; then
12505 am__EXEEXT_TRUE=
12506 am__EXEEXT_FALSE='#'
12507 else
12508 am__EXEEXT_TRUE='#'
12509 am__EXEEXT_FALSE=
12510 fi
12511
12512 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12513 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12515 fi
12516 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
12517 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
12518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12519 fi
12520 if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
12521 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
12522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12523 fi
12524 if test -z "${I386ARCH_TRUE}" && test -z "${I386ARCH_FALSE}"; then
12525 as_fn_error $? "conditional \"I386ARCH\" was never defined.
12526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12527 fi
12528
12529 : ${CONFIG_STATUS=./config.status}
12530 ac_write_fail=0
12531 ac_clean_files_save=$ac_clean_files
12532 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12534 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12535 as_write_fail=0
12536 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12537 #! $SHELL
12538 # Generated by $as_me.
12539 # Run this file to recreate the current configuration.
12540 # Compiler output produced by configure, useful for debugging
12541 # configure, is in config.log if it exists.
12542
12543 debug=false
12544 ac_cs_recheck=false
12545 ac_cs_silent=false
12546
12547 SHELL=\${CONFIG_SHELL-$SHELL}
12548 export SHELL
12549 _ASEOF
12550 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12551 ## -------------------- ##
12552 ## M4sh Initialization. ##
12553 ## -------------------- ##
12554
12555 # Be more Bourne compatible
12556 DUALCASE=1; export DUALCASE # for MKS sh
12557 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12558 emulate sh
12559 NULLCMD=:
12560 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12561 # is contrary to our usage. Disable this feature.
12562 alias -g '${1+"$@"}'='"$@"'
12563 setopt NO_GLOB_SUBST
12564 else
12565 case `(set -o) 2>/dev/null` in #(
12566 *posix*) :
12567 set -o posix ;; #(
12568 *) :
12569 ;;
12570 esac
12571 fi
12572
12573
12574 as_nl='
12575 '
12576 export as_nl
12577 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12578 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12579 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12580 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12581 # Prefer a ksh shell builtin over an external printf program on Solaris,
12582 # but without wasting forks for bash or zsh.
12583 if test -z "$BASH_VERSION$ZSH_VERSION" \
12584 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12585 as_echo='print -r --'
12586 as_echo_n='print -rn --'
12587 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12588 as_echo='printf %s\n'
12589 as_echo_n='printf %s'
12590 else
12591 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12592 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12593 as_echo_n='/usr/ucb/echo -n'
12594 else
12595 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12596 as_echo_n_body='eval
12597 arg=$1;
12598 case $arg in #(
12599 *"$as_nl"*)
12600 expr "X$arg" : "X\\(.*\\)$as_nl";
12601 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12602 esac;
12603 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12604 '
12605 export as_echo_n_body
12606 as_echo_n='sh -c $as_echo_n_body as_echo'
12607 fi
12608 export as_echo_body
12609 as_echo='sh -c $as_echo_body as_echo'
12610 fi
12611
12612 # The user is always right.
12613 if test "${PATH_SEPARATOR+set}" != set; then
12614 PATH_SEPARATOR=:
12615 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12616 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12617 PATH_SEPARATOR=';'
12618 }
12619 fi
12620
12621
12622 # IFS
12623 # We need space, tab and new line, in precisely that order. Quoting is
12624 # there to prevent editors from complaining about space-tab.
12625 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12626 # splitting by setting IFS to empty value.)
12627 IFS=" "" $as_nl"
12628
12629 # Find who we are. Look in the path if we contain no directory separator.
12630 case $0 in #((
12631 *[\\/]* ) as_myself=$0 ;;
12632 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12633 for as_dir in $PATH
12634 do
12635 IFS=$as_save_IFS
12636 test -z "$as_dir" && as_dir=.
12637 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12638 done
12639 IFS=$as_save_IFS
12640
12641 ;;
12642 esac
12643 # We did not find ourselves, most probably we were run as `sh COMMAND'
12644 # in which case we are not to be found in the path.
12645 if test "x$as_myself" = x; then
12646 as_myself=$0
12647 fi
12648 if test ! -f "$as_myself"; then
12649 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12650 exit 1
12651 fi
12652
12653 # Unset variables that we do not need and which cause bugs (e.g. in
12654 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12655 # suppresses any "Segmentation fault" message there. '((' could
12656 # trigger a bug in pdksh 5.2.14.
12657 for as_var in BASH_ENV ENV MAIL MAILPATH
12658 do eval test x\${$as_var+set} = xset \
12659 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12660 done
12661 PS1='$ '
12662 PS2='> '
12663 PS4='+ '
12664
12665 # NLS nuisances.
12666 LC_ALL=C
12667 export LC_ALL
12668 LANGUAGE=C
12669 export LANGUAGE
12670
12671 # CDPATH.
12672 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12673
12674
12675 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12676 # ----------------------------------------
12677 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12678 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12679 # script with STATUS, using 1 if that was 0.
12680 as_fn_error ()
12681 {
12682 as_status=$1; test $as_status -eq 0 && as_status=1
12683 if test "$4"; then
12684 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12685 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12686 fi
12687 $as_echo "$as_me: error: $2" >&2
12688 as_fn_exit $as_status
12689 } # as_fn_error
12690
12691
12692 # as_fn_set_status STATUS
12693 # -----------------------
12694 # Set $? to STATUS, without forking.
12695 as_fn_set_status ()
12696 {
12697 return $1
12698 } # as_fn_set_status
12699
12700 # as_fn_exit STATUS
12701 # -----------------
12702 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12703 as_fn_exit ()
12704 {
12705 set +e
12706 as_fn_set_status $1
12707 exit $1
12708 } # as_fn_exit
12709
12710 # as_fn_unset VAR
12711 # ---------------
12712 # Portably unset VAR.
12713 as_fn_unset ()
12714 {
12715 { eval $1=; unset $1;}
12716 }
12717 as_unset=as_fn_unset
12718 # as_fn_append VAR VALUE
12719 # ----------------------
12720 # Append the text in VALUE to the end of the definition contained in VAR. Take
12721 # advantage of any shell optimizations that allow amortized linear growth over
12722 # repeated appends, instead of the typical quadratic growth present in naive
12723 # implementations.
12724 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12725 eval 'as_fn_append ()
12726 {
12727 eval $1+=\$2
12728 }'
12729 else
12730 as_fn_append ()
12731 {
12732 eval $1=\$$1\$2
12733 }
12734 fi # as_fn_append
12735
12736 # as_fn_arith ARG...
12737 # ------------------
12738 # Perform arithmetic evaluation on the ARGs, and store the result in the
12739 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12740 # must be portable across $(()) and expr.
12741 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12742 eval 'as_fn_arith ()
12743 {
12744 as_val=$(( $* ))
12745 }'
12746 else
12747 as_fn_arith ()
12748 {
12749 as_val=`expr "$@" || test $? -eq 1`
12750 }
12751 fi # as_fn_arith
12752
12753
12754 if expr a : '\(a\)' >/dev/null 2>&1 &&
12755 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12756 as_expr=expr
12757 else
12758 as_expr=false
12759 fi
12760
12761 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12762 as_basename=basename
12763 else
12764 as_basename=false
12765 fi
12766
12767 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12768 as_dirname=dirname
12769 else
12770 as_dirname=false
12771 fi
12772
12773 as_me=`$as_basename -- "$0" ||
12774 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12775 X"$0" : 'X\(//\)$' \| \
12776 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12777 $as_echo X/"$0" |
12778 sed '/^.*\/\([^/][^/]*\)\/*$/{
12779 s//\1/
12780 q
12781 }
12782 /^X\/\(\/\/\)$/{
12783 s//\1/
12784 q
12785 }
12786 /^X\/\(\/\).*/{
12787 s//\1/
12788 q
12789 }
12790 s/.*/./; q'`
12791
12792 # Avoid depending upon Character Ranges.
12793 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12794 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12795 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12796 as_cr_digits='0123456789'
12797 as_cr_alnum=$as_cr_Letters$as_cr_digits
12798
12799 ECHO_C= ECHO_N= ECHO_T=
12800 case `echo -n x` in #(((((
12801 -n*)
12802 case `echo 'xy\c'` in
12803 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12804 xy) ECHO_C='\c';;
12805 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12806 ECHO_T=' ';;
12807 esac;;
12808 *)
12809 ECHO_N='-n';;
12810 esac
12811
12812 rm -f conf$$ conf$$.exe conf$$.file
12813 if test -d conf$$.dir; then
12814 rm -f conf$$.dir/conf$$.file
12815 else
12816 rm -f conf$$.dir
12817 mkdir conf$$.dir 2>/dev/null
12818 fi
12819 if (echo >conf$$.file) 2>/dev/null; then
12820 if ln -s conf$$.file conf$$ 2>/dev/null; then
12821 as_ln_s='ln -s'
12822 # ... but there are two gotchas:
12823 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12824 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12825 # In both cases, we have to default to `cp -p'.
12826 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12827 as_ln_s='cp -p'
12828 elif ln conf$$.file conf$$ 2>/dev/null; then
12829 as_ln_s=ln
12830 else
12831 as_ln_s='cp -p'
12832 fi
12833 else
12834 as_ln_s='cp -p'
12835 fi
12836 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12837 rmdir conf$$.dir 2>/dev/null
12838
12839
12840 # as_fn_mkdir_p
12841 # -------------
12842 # Create "$as_dir" as a directory, including parents if necessary.
12843 as_fn_mkdir_p ()
12844 {
12845
12846 case $as_dir in #(
12847 -*) as_dir=./$as_dir;;
12848 esac
12849 test -d "$as_dir" || eval $as_mkdir_p || {
12850 as_dirs=
12851 while :; do
12852 case $as_dir in #(
12853 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12854 *) as_qdir=$as_dir;;
12855 esac
12856 as_dirs="'$as_qdir' $as_dirs"
12857 as_dir=`$as_dirname -- "$as_dir" ||
12858 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12859 X"$as_dir" : 'X\(//\)[^/]' \| \
12860 X"$as_dir" : 'X\(//\)$' \| \
12861 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12862 $as_echo X"$as_dir" |
12863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12864 s//\1/
12865 q
12866 }
12867 /^X\(\/\/\)[^/].*/{
12868 s//\1/
12869 q
12870 }
12871 /^X\(\/\/\)$/{
12872 s//\1/
12873 q
12874 }
12875 /^X\(\/\).*/{
12876 s//\1/
12877 q
12878 }
12879 s/.*/./; q'`
12880 test -d "$as_dir" && break
12881 done
12882 test -z "$as_dirs" || eval "mkdir $as_dirs"
12883 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12884
12885
12886 } # as_fn_mkdir_p
12887 if mkdir -p . 2>/dev/null; then
12888 as_mkdir_p='mkdir -p "$as_dir"'
12889 else
12890 test -d ./-p && rmdir ./-p
12891 as_mkdir_p=false
12892 fi
12893
12894 if test -x / >/dev/null 2>&1; then
12895 as_test_x='test -x'
12896 else
12897 if ls -dL / >/dev/null 2>&1; then
12898 as_ls_L_option=L
12899 else
12900 as_ls_L_option=
12901 fi
12902 as_test_x='
12903 eval sh -c '\''
12904 if test -d "$1"; then
12905 test -d "$1/.";
12906 else
12907 case $1 in #(
12908 -*)set "./$1";;
12909 esac;
12910 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12911 ???[sx]*):;;*)false;;esac;fi
12912 '\'' sh
12913 '
12914 fi
12915 as_executable_p=$as_test_x
12916
12917 # Sed expression to map a string onto a valid CPP name.
12918 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12919
12920 # Sed expression to map a string onto a valid variable name.
12921 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12922
12923
12924 exec 6>&1
12925 ## ----------------------------------- ##
12926 ## Main body of $CONFIG_STATUS script. ##
12927 ## ----------------------------------- ##
12928 _ASEOF
12929 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12930
12931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12932 # Save the log message, to keep $0 and so on meaningful, and to
12933 # report actual input values of CONFIG_FILES etc. instead of their
12934 # values after options handling.
12935 ac_log="
12936 This file was extended by xf86-video-geode $as_me 2.11.10, which was
12937 generated by GNU Autoconf 2.67. Invocation command line was
12938
12939 CONFIG_FILES = $CONFIG_FILES
12940 CONFIG_HEADERS = $CONFIG_HEADERS
12941 CONFIG_LINKS = $CONFIG_LINKS
12942 CONFIG_COMMANDS = $CONFIG_COMMANDS
12943 $ $0 $@
12944
12945 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12946 "
12947
12948 _ACEOF
12949
12950 case $ac_config_files in *"
12951 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12952 esac
12953
12954 case $ac_config_headers in *"
12955 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12956 esac
12957
12958
12959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12960 # Files that config.status was made for.
12961 config_files="$ac_config_files"
12962 config_headers="$ac_config_headers"
12963 config_commands="$ac_config_commands"
12964
12965 _ACEOF
12966
12967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12968 ac_cs_usage="\
12969 \`$as_me' instantiates files and other configuration actions
12970 from templates according to the current configuration. Unless the files
12971 and actions are specified as TAGs, all are instantiated by default.
12972
12973 Usage: $0 [OPTION]... [TAG]...
12974
12975 -h, --help print this help, then exit
12976 -V, --version print version number and configuration settings, then exit
12977 --config print configuration, then exit
12978 -q, --quiet, --silent
12979 do not print progress messages
12980 -d, --debug don't remove temporary files
12981 --recheck update $as_me by reconfiguring in the same conditions
12982 --file=FILE[:TEMPLATE]
12983 instantiate the configuration file FILE
12984 --header=FILE[:TEMPLATE]
12985 instantiate the configuration header FILE
12986
12987 Configuration files:
12988 $config_files
12989
12990 Configuration headers:
12991 $config_headers
12992
12993 Configuration commands:
12994 $config_commands
12995
12996 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver%2Fgeode>.
12997 xf86-video-geode home page: <http://www.x.org/wiki/GeodeDriver>."
12998
12999 _ACEOF
13000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13001 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13002 ac_cs_version="\\
13003 xf86-video-geode config.status 2.11.10
13004 configured by $0, generated by GNU Autoconf 2.67,
13005 with options \\"\$ac_cs_config\\"
13006
13007 Copyright (C) 2010 Free Software Foundation, Inc.
13008 This config.status script is free software; the Free Software Foundation
13009 gives unlimited permission to copy, distribute and modify it."
13010
13011 ac_pwd='$ac_pwd'
13012 srcdir='$srcdir'
13013 INSTALL='$INSTALL'
13014 MKDIR_P='$MKDIR_P'
13015 AWK='$AWK'
13016 test -n "\$AWK" || AWK=awk
13017 _ACEOF
13018
13019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13020 # The default lists apply if the user does not specify any file.
13021 ac_need_defaults=:
13022 while test $# != 0
13023 do
13024 case $1 in
13025 --*=?*)
13026 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13027 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13028 ac_shift=:
13029 ;;
13030 --*=)
13031 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13032 ac_optarg=
13033 ac_shift=:
13034 ;;
13035 *)
13036 ac_option=$1
13037 ac_optarg=$2
13038 ac_shift=shift
13039 ;;
13040 esac
13041
13042 case $ac_option in
13043 # Handling of the options.
13044 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13045 ac_cs_recheck=: ;;
13046 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13047 $as_echo "$ac_cs_version"; exit ;;
13048 --config | --confi | --conf | --con | --co | --c )
13049 $as_echo "$ac_cs_config"; exit ;;
13050 --debug | --debu | --deb | --de | --d | -d )
13051 debug=: ;;
13052 --file | --fil | --fi | --f )
13053 $ac_shift
13054 case $ac_optarg in
13055 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13056 '') as_fn_error $? "missing file argument" ;;
13057 esac
13058 as_fn_append CONFIG_FILES " '$ac_optarg'"
13059 ac_need_defaults=false;;
13060 --header | --heade | --head | --hea )
13061 $ac_shift
13062 case $ac_optarg in
13063 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13064 esac
13065 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13066 ac_need_defaults=false;;
13067 --he | --h)
13068 # Conflict between --help and --header
13069 as_fn_error $? "ambiguous option: \`$1'
13070 Try \`$0 --help' for more information.";;
13071 --help | --hel | -h )
13072 $as_echo "$ac_cs_usage"; exit ;;
13073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13074 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13075 ac_cs_silent=: ;;
13076
13077 # This is an error.
13078 -*) as_fn_error $? "unrecognized option: \`$1'
13079 Try \`$0 --help' for more information." ;;
13080
13081 *) as_fn_append ac_config_targets " $1"
13082 ac_need_defaults=false ;;
13083
13084 esac
13085 shift
13086 done
13087
13088 ac_configure_extra_args=
13089
13090 if $ac_cs_silent; then
13091 exec 6>/dev/null
13092 ac_configure_extra_args="$ac_configure_extra_args --silent"
13093 fi
13094
13095 _ACEOF
13096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13097 if \$ac_cs_recheck; then
13098 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13099 shift
13100 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13101 CONFIG_SHELL='$SHELL'
13102 export CONFIG_SHELL
13103 exec "\$@"
13104 fi
13105
13106 _ACEOF
13107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13108 exec 5>>config.log
13109 {
13110 echo
13111 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13112 ## Running $as_me. ##
13113 _ASBOX
13114 $as_echo "$ac_log"
13115 } >&5
13116
13117 _ACEOF
13118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13119 #
13120 # INIT-COMMANDS
13121 #
13122 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13123
13124
13125 # The HP-UX ksh and POSIX shell print the target directory to stdout
13126 # if CDPATH is set.
13127 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13128
13129 sed_quote_subst='$sed_quote_subst'
13130 double_quote_subst='$double_quote_subst'
13131 delay_variable_subst='$delay_variable_subst'
13132 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13133 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13134 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13135 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13136 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13137 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13138 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13139 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13140 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13141 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13142 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13143 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13144 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13145 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13146 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13147 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13148 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13149 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13150 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13151 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13152 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13153 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13154 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13155 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13156 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13157 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13158 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13159 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13160 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13161 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13162 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13163 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13164 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13165 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13166 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13167 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13168 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13169 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13170 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13171 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13172 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13173 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13174 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13175 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13176 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"`'
13177 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"`'
13178 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13179 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13180 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13181 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13182 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13183 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13184 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13185 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13186 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13187 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13188 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13189 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13190 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13191 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13192 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13193 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13194 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13195 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13196 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13197 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13198 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13199 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13200 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13201 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13202 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13203 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13204 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13205 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13206 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13207 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13208 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13209 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13210 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13211 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13212 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13213 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13214 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13215 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13216 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13217 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13218 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13219 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13220 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13221 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13222 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13223 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13224 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13225 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13226 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13227 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13228 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13229 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13230 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13231 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13232 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13233 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13234 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13235 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13236 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13237 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13238 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13239 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13240 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13241 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13242 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13243 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13244 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13245 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13246 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13247 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13248 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13249 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13250
13251 LTCC='$LTCC'
13252 LTCFLAGS='$LTCFLAGS'
13253 compiler='$compiler_DEFAULT'
13254
13255 # Quote evaled strings.
13256 for var in SED \
13257 GREP \
13258 EGREP \
13259 FGREP \
13260 LD \
13261 NM \
13262 LN_S \
13263 lt_SP2NL \
13264 lt_NL2SP \
13265 reload_flag \
13266 OBJDUMP \
13267 deplibs_check_method \
13268 file_magic_cmd \
13269 AR \
13270 AR_FLAGS \
13271 STRIP \
13272 RANLIB \
13273 CC \
13274 CFLAGS \
13275 compiler \
13276 lt_cv_sys_global_symbol_pipe \
13277 lt_cv_sys_global_symbol_to_cdecl \
13278 lt_cv_sys_global_symbol_to_c_name_address \
13279 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13280 SHELL \
13281 ECHO \
13282 lt_prog_compiler_no_builtin_flag \
13283 lt_prog_compiler_wl \
13284 lt_prog_compiler_pic \
13285 lt_prog_compiler_static \
13286 lt_cv_prog_compiler_c_o \
13287 need_locks \
13288 DSYMUTIL \
13289 NMEDIT \
13290 LIPO \
13291 OTOOL \
13292 OTOOL64 \
13293 shrext_cmds \
13294 export_dynamic_flag_spec \
13295 whole_archive_flag_spec \
13296 compiler_needs_object \
13297 with_gnu_ld \
13298 allow_undefined_flag \
13299 no_undefined_flag \
13300 hardcode_libdir_flag_spec \
13301 hardcode_libdir_flag_spec_ld \
13302 hardcode_libdir_separator \
13303 fix_srcfile_path \
13304 exclude_expsyms \
13305 include_expsyms \
13306 file_list_spec \
13307 variables_saved_for_relink \
13308 libname_spec \
13309 library_names_spec \
13310 soname_spec \
13311 finish_eval \
13312 old_striplib \
13313 striplib; do
13314 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13315 *[\\\\\\\`\\"\\\$]*)
13316 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13317 ;;
13318 *)
13319 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13320 ;;
13321 esac
13322 done
13323
13324 # Double-quote double-evaled strings.
13325 for var in reload_cmds \
13326 old_postinstall_cmds \
13327 old_postuninstall_cmds \
13328 old_archive_cmds \
13329 extract_expsyms_cmds \
13330 old_archive_from_new_cmds \
13331 old_archive_from_expsyms_cmds \
13332 archive_cmds \
13333 archive_expsym_cmds \
13334 module_cmds \
13335 module_expsym_cmds \
13336 export_symbols_cmds \
13337 prelink_cmds \
13338 postinstall_cmds \
13339 postuninstall_cmds \
13340 finish_cmds \
13341 sys_lib_search_path_spec \
13342 sys_lib_dlsearch_path_spec; do
13343 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13344 *[\\\\\\\`\\"\\\$]*)
13345 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13346 ;;
13347 *)
13348 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13349 ;;
13350 esac
13351 done
13352
13353 # Fix-up fallback echo if it was mangled by the above quoting rules.
13354 case \$lt_ECHO in
13355 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13356 ;;
13357 esac
13358
13359 ac_aux_dir='$ac_aux_dir'
13360 xsi_shell='$xsi_shell'
13361 lt_shell_append='$lt_shell_append'
13362
13363 # See if we are running on zsh, and set the options which allow our
13364 # commands through without removal of \ escapes INIT.
13365 if test -n "\${ZSH_VERSION+set}" ; then
13366 setopt NO_GLOB_SUBST
13367 fi
13368
13369
13370 PACKAGE='$PACKAGE'
13371 VERSION='$VERSION'
13372 TIMESTAMP='$TIMESTAMP'
13373 RM='$RM'
13374 ofile='$ofile'
13375
13376
13377
13378
13379 _ACEOF
13380
13381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13382
13383 # Handling of arguments.
13384 for ac_config_target in $ac_config_targets
13385 do
13386 case $ac_config_target in
13387 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13388 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13389 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13390 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13391 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13392
13393 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
13394 esac
13395 done
13396
13397
13398 # If the user did not use the arguments to specify the items to instantiate,
13399 # then the envvar interface is used. Set only those that are not.
13400 # We use the long form for the default assignment because of an extremely
13401 # bizarre bug on SunOS 4.1.3.
13402 if $ac_need_defaults; then
13403 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13404 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13405 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13406 fi
13407
13408 # Have a temporary directory for convenience. Make it in the build tree
13409 # simply because there is no reason against having it here, and in addition,
13410 # creating and moving files from /tmp can sometimes cause problems.
13411 # Hook for its removal unless debugging.
13412 # Note that there is a small window in which the directory will not be cleaned:
13413 # after its creation but before its name has been assigned to `$tmp'.
13414 $debug ||
13415 {
13416 tmp=
13417 trap 'exit_status=$?
13418 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13419 ' 0
13420 trap 'as_fn_exit 1' 1 2 13 15
13421 }
13422 # Create a (secure) tmp directory for tmp files.
13423
13424 {
13425 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13426 test -n "$tmp" && test -d "$tmp"
13427 } ||
13428 {
13429 tmp=./conf$$-$RANDOM
13430 (umask 077 && mkdir "$tmp")
13431 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13432
13433 # Set up the scripts for CONFIG_FILES section.
13434 # No need to generate them if there are no CONFIG_FILES.
13435 # This happens for instance with `./config.status config.h'.
13436 if test -n "$CONFIG_FILES"; then
13437
13438
13439 ac_cr=`echo X | tr X '\015'`
13440 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13441 # But we know of no other shell where ac_cr would be empty at this
13442 # point, so we can use a bashism as a fallback.
13443 if test "x$ac_cr" = x; then
13444 eval ac_cr=\$\'\\r\'
13445 fi
13446 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13447 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13448 ac_cs_awk_cr='\\r'
13449 else
13450 ac_cs_awk_cr=$ac_cr
13451 fi
13452
13453 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13454 _ACEOF
13455
13456
13457 {
13458 echo "cat >conf$$subs.awk <<_ACEOF" &&
13459 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13460 echo "_ACEOF"
13461 } >conf$$subs.sh ||
13462 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13463 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13464 ac_delim='%!_!# '
13465 for ac_last_try in false false false false false :; do
13466 . ./conf$$subs.sh ||
13467 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13468
13469 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13470 if test $ac_delim_n = $ac_delim_num; then
13471 break
13472 elif $ac_last_try; then
13473 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13474 else
13475 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13476 fi
13477 done
13478 rm -f conf$$subs.sh
13479
13480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13481 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13482 _ACEOF
13483 sed -n '
13484 h
13485 s/^/S["/; s/!.*/"]=/
13486 p
13487 g
13488 s/^[^!]*!//
13489 :repl
13490 t repl
13491 s/'"$ac_delim"'$//
13492 t delim
13493 :nl
13494 h
13495 s/\(.\{148\}\)..*/\1/
13496 t more1
13497 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13498 p
13499 n
13500 b repl
13501 :more1
13502 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13503 p
13504 g
13505 s/.\{148\}//
13506 t nl
13507 :delim
13508 h
13509 s/\(.\{148\}\)..*/\1/
13510 t more2
13511 s/["\\]/\\&/g; s/^/"/; s/$/"/
13512 p
13513 b
13514 :more2
13515 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13516 p
13517 g
13518 s/.\{148\}//
13519 t delim
13520 ' <conf$$subs.awk | sed '
13521 /^[^""]/{
13522 N
13523 s/\n//
13524 }
13525 ' >>$CONFIG_STATUS || ac_write_fail=1
13526 rm -f conf$$subs.awk
13527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13528 _ACAWK
13529 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13530 for (key in S) S_is_set[key] = 1
13531 FS = ""
13532
13533 }
13534 {
13535 line = $ 0
13536 nfields = split(line, field, "@")
13537 substed = 0
13538 len = length(field[1])
13539 for (i = 2; i < nfields; i++) {
13540 key = field[i]
13541 keylen = length(key)
13542 if (S_is_set[key]) {
13543 value = S[key]
13544 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13545 len += length(value) + length(field[++i])
13546 substed = 1
13547 } else
13548 len += 1 + keylen
13549 }
13550
13551 print line
13552 }
13553
13554 _ACAWK
13555 _ACEOF
13556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13557 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13558 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13559 else
13560 cat
13561 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13562 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13563 _ACEOF
13564
13565 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13566 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13567 # trailing colons and then remove the whole line if VPATH becomes empty
13568 # (actually we leave an empty line to preserve line numbers).
13569 if test "x$srcdir" = x.; then
13570 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13571 h
13572 s///
13573 s/^/:/
13574 s/[ ]*$/:/
13575 s/:\$(srcdir):/:/g
13576 s/:\${srcdir}:/:/g
13577 s/:@srcdir@:/:/g
13578 s/^:*//
13579 s/:*$//
13580 x
13581 s/\(=[ ]*\).*/\1/
13582 G
13583 s/\n//
13584 s/^[^=]*=[ ]*$//
13585 }'
13586 fi
13587
13588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13589 fi # test -n "$CONFIG_FILES"
13590
13591 # Set up the scripts for CONFIG_HEADERS section.
13592 # No need to generate them if there are no CONFIG_HEADERS.
13593 # This happens for instance with `./config.status Makefile'.
13594 if test -n "$CONFIG_HEADERS"; then
13595 cat >"$tmp/defines.awk" <<\_ACAWK ||
13596 BEGIN {
13597 _ACEOF
13598
13599 # Transform confdefs.h into an awk script `defines.awk', embedded as
13600 # here-document in config.status, that substitutes the proper values into
13601 # config.h.in to produce config.h.
13602
13603 # Create a delimiter string that does not exist in confdefs.h, to ease
13604 # handling of long lines.
13605 ac_delim='%!_!# '
13606 for ac_last_try in false false :; do
13607 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13608 if test -z "$ac_t"; then
13609 break
13610 elif $ac_last_try; then
13611 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13612 else
13613 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13614 fi
13615 done
13616
13617 # For the awk script, D is an array of macro values keyed by name,
13618 # likewise P contains macro parameters if any. Preserve backslash
13619 # newline sequences.
13620
13621 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13622 sed -n '
13623 s/.\{148\}/&'"$ac_delim"'/g
13624 t rset
13625 :rset
13626 s/^[ ]*#[ ]*define[ ][ ]*/ /
13627 t def
13628 d
13629 :def
13630 s/\\$//
13631 t bsnl
13632 s/["\\]/\\&/g
13633 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13634 D["\1"]=" \3"/p
13635 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13636 d
13637 :bsnl
13638 s/["\\]/\\&/g
13639 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13640 D["\1"]=" \3\\\\\\n"\\/p
13641 t cont
13642 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13643 t cont
13644 d
13645 :cont
13646 n
13647 s/.\{148\}/&'"$ac_delim"'/g
13648 t clear
13649 :clear
13650 s/\\$//
13651 t bsnlc
13652 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13653 d
13654 :bsnlc
13655 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13656 b cont
13657 ' <confdefs.h | sed '
13658 s/'"$ac_delim"'/"\\\
13659 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13660
13661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13662 for (key in D) D_is_set[key] = 1
13663 FS = ""
13664 }
13665 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13666 line = \$ 0
13667 split(line, arg, " ")
13668 if (arg[1] == "#") {
13669 defundef = arg[2]
13670 mac1 = arg[3]
13671 } else {
13672 defundef = substr(arg[1], 2)
13673 mac1 = arg[2]
13674 }
13675 split(mac1, mac2, "(") #)
13676 macro = mac2[1]
13677 prefix = substr(line, 1, index(line, defundef) - 1)
13678 if (D_is_set[macro]) {
13679 # Preserve the white space surrounding the "#".
13680 print prefix "define", macro P[macro] D[macro]
13681 next
13682 } else {
13683 # Replace #undef with comments. This is necessary, for example,
13684 # in the case of _POSIX_SOURCE, which is predefined and required
13685 # on some systems where configure will not decide to define it.
13686 if (defundef == "undef") {
13687 print "/*", prefix defundef, macro, "*/"
13688 next
13689 }
13690 }
13691 }
13692 { print }
13693 _ACAWK
13694 _ACEOF
13695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13696 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13697 fi # test -n "$CONFIG_HEADERS"
13698
13699
13700 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13701 shift
13702 for ac_tag
13703 do
13704 case $ac_tag in
13705 :[FHLC]) ac_mode=$ac_tag; continue;;
13706 esac
13707 case $ac_mode$ac_tag in
13708 :[FHL]*:*);;
13709 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
13710 :[FH]-) ac_tag=-:-;;
13711 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13712 esac
13713 ac_save_IFS=$IFS
13714 IFS=:
13715 set x $ac_tag
13716 IFS=$ac_save_IFS
13717 shift
13718 ac_file=$1
13719 shift
13720
13721 case $ac_mode in
13722 :L) ac_source=$1;;
13723 :[FH])
13724 ac_file_inputs=
13725 for ac_f
13726 do
13727 case $ac_f in
13728 -) ac_f="$tmp/stdin";;
13729 *) # Look for the file first in the build tree, then in the source tree
13730 # (if the path is not absolute). The absolute path cannot be DOS-style,
13731 # because $ac_f cannot contain `:'.
13732 test -f "$ac_f" ||
13733 case $ac_f in
13734 [\\/$]*) false;;
13735 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13736 esac ||
13737 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
13738 esac
13739 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13740 as_fn_append ac_file_inputs " '$ac_f'"
13741 done
13742
13743 # Let's still pretend it is `configure' which instantiates (i.e., don't
13744 # use $as_me), people would be surprised to read:
13745 # /* config.h. Generated by config.status. */
13746 configure_input='Generated from '`
13747 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13748 `' by configure.'
13749 if test x"$ac_file" != x-; then
13750 configure_input="$ac_file. $configure_input"
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13752 $as_echo "$as_me: creating $ac_file" >&6;}
13753 fi
13754 # Neutralize special characters interpreted by sed in replacement strings.
13755 case $configure_input in #(
13756 *\&* | *\|* | *\\* )
13757 ac_sed_conf_input=`$as_echo "$configure_input" |
13758 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13759 *) ac_sed_conf_input=$configure_input;;
13760 esac
13761
13762 case $ac_tag in
13763 *:-:* | *:-) cat >"$tmp/stdin" \
13764 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13765 esac
13766 ;;
13767 esac
13768
13769 ac_dir=`$as_dirname -- "$ac_file" ||
13770 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13771 X"$ac_file" : 'X\(//\)[^/]' \| \
13772 X"$ac_file" : 'X\(//\)$' \| \
13773 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13774 $as_echo X"$ac_file" |
13775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13776 s//\1/
13777 q
13778 }
13779 /^X\(\/\/\)[^/].*/{
13780 s//\1/
13781 q
13782 }
13783 /^X\(\/\/\)$/{
13784 s//\1/
13785 q
13786 }
13787 /^X\(\/\).*/{
13788 s//\1/
13789 q
13790 }
13791 s/.*/./; q'`
13792 as_dir="$ac_dir"; as_fn_mkdir_p
13793 ac_builddir=.
13794
13795 case "$ac_dir" in
13796 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13797 *)
13798 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13799 # A ".." for each directory in $ac_dir_suffix.
13800 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13801 case $ac_top_builddir_sub in
13802 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13803 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13804 esac ;;
13805 esac
13806 ac_abs_top_builddir=$ac_pwd
13807 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13808 # for backward compatibility:
13809 ac_top_builddir=$ac_top_build_prefix
13810
13811 case $srcdir in
13812 .) # We are building in place.
13813 ac_srcdir=.
13814 ac_top_srcdir=$ac_top_builddir_sub
13815 ac_abs_top_srcdir=$ac_pwd ;;
13816 [\\/]* | ?:[\\/]* ) # Absolute name.
13817 ac_srcdir=$srcdir$ac_dir_suffix;
13818 ac_top_srcdir=$srcdir
13819 ac_abs_top_srcdir=$srcdir ;;
13820 *) # Relative name.
13821 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13822 ac_top_srcdir=$ac_top_build_prefix$srcdir
13823 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13824 esac
13825 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13826
13827
13828 case $ac_mode in
13829 :F)
13830 #
13831 # CONFIG_FILE
13832 #
13833
13834 case $INSTALL in
13835 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13836 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13837 esac
13838 ac_MKDIR_P=$MKDIR_P
13839 case $MKDIR_P in
13840 [\\/$]* | ?:[\\/]* ) ;;
13841 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13842 esac
13843 _ACEOF
13844
13845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13846 # If the template does not know about datarootdir, expand it.
13847 # FIXME: This hack should be removed a few years after 2.60.
13848 ac_datarootdir_hack=; ac_datarootdir_seen=
13849 ac_sed_dataroot='
13850 /datarootdir/ {
13851 p
13852 q
13853 }
13854 /@datadir@/p
13855 /@docdir@/p
13856 /@infodir@/p
13857 /@localedir@/p
13858 /@mandir@/p'
13859 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13860 *datarootdir*) ac_datarootdir_seen=yes;;
13861 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13863 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13864 _ACEOF
13865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13866 ac_datarootdir_hack='
13867 s&@datadir@&$datadir&g
13868 s&@docdir@&$docdir&g
13869 s&@infodir@&$infodir&g
13870 s&@localedir@&$localedir&g
13871 s&@mandir@&$mandir&g
13872 s&\\\${datarootdir}&$datarootdir&g' ;;
13873 esac
13874 _ACEOF
13875
13876 # Neutralize VPATH when `$srcdir' = `.'.
13877 # Shell code in configure.ac might set extrasub.
13878 # FIXME: do we really want to maintain this feature?
13879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13880 ac_sed_extra="$ac_vpsub
13881 $extrasub
13882 _ACEOF
13883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13884 :t
13885 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13886 s|@configure_input@|$ac_sed_conf_input|;t t
13887 s&@top_builddir@&$ac_top_builddir_sub&;t t
13888 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13889 s&@srcdir@&$ac_srcdir&;t t
13890 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13891 s&@top_srcdir@&$ac_top_srcdir&;t t
13892 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13893 s&@builddir@&$ac_builddir&;t t
13894 s&@abs_builddir@&$ac_abs_builddir&;t t
13895 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13896 s&@INSTALL@&$ac_INSTALL&;t t
13897 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13898 $ac_datarootdir_hack
13899 "
13900 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13901 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13902
13903 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13904 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13905 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13907 which seems to be undefined. Please make sure it is defined" >&5
13908 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13909 which seems to be undefined. Please make sure it is defined" >&2;}
13910
13911 rm -f "$tmp/stdin"
13912 case $ac_file in
13913 -) cat "$tmp/out" && rm -f "$tmp/out";;
13914 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13915 esac \
13916 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13917 ;;
13918 :H)
13919 #
13920 # CONFIG_HEADER
13921 #
13922 if test x"$ac_file" != x-; then
13923 {
13924 $as_echo "/* $configure_input */" \
13925 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13926 } >"$tmp/config.h" \
13927 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13928 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13930 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13931 else
13932 rm -f "$ac_file"
13933 mv "$tmp/config.h" "$ac_file" \
13934 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13935 fi
13936 else
13937 $as_echo "/* $configure_input */" \
13938 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13939 || as_fn_error $? "could not create -" "$LINENO" 5
13940 fi
13941 # Compute "$ac_file"'s index in $config_headers.
13942 _am_arg="$ac_file"
13943 _am_stamp_count=1
13944 for _am_header in $config_headers :; do
13945 case $_am_header in
13946 $_am_arg | $_am_arg:* )
13947 break ;;
13948 * )
13949 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13950 esac
13951 done
13952 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13953 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13954 X"$_am_arg" : 'X\(//\)[^/]' \| \
13955 X"$_am_arg" : 'X\(//\)$' \| \
13956 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13957 $as_echo X"$_am_arg" |
13958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13959 s//\1/
13960 q
13961 }
13962 /^X\(\/\/\)[^/].*/{
13963 s//\1/
13964 q
13965 }
13966 /^X\(\/\/\)$/{
13967 s//\1/
13968 q
13969 }
13970 /^X\(\/\).*/{
13971 s//\1/
13972 q
13973 }
13974 s/.*/./; q'`/stamp-h$_am_stamp_count
13975 ;;
13976
13977 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13978 $as_echo "$as_me: executing $ac_file commands" >&6;}
13979 ;;
13980 esac
13981
13982
13983 case $ac_file$ac_mode in
13984 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13985 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13986 # are listed without --file. Let's play safe and only enable the eval
13987 # if we detect the quoting.
13988 case $CONFIG_FILES in
13989 *\'*) eval set x "$CONFIG_FILES" ;;
13990 *) set x $CONFIG_FILES ;;
13991 esac
13992 shift
13993 for mf
13994 do
13995 # Strip MF so we end up with the name of the file.
13996 mf=`echo "$mf" | sed -e 's/:.*$//'`
13997 # Check whether this is an Automake generated Makefile or not.
13998 # We used to match only the files named `Makefile.in', but
13999 # some people rename them; so instead we look at the file content.
14000 # Grep'ing the first line is not enough: some people post-process
14001 # each Makefile.in and add a new line on top of each file to say so.
14002 # Grep'ing the whole file is not good either: AIX grep has a line
14003 # limit of 2048, but all sed's we know have understand at least 4000.
14004 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14005 dirpart=`$as_dirname -- "$mf" ||
14006 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14007 X"$mf" : 'X\(//\)[^/]' \| \
14008 X"$mf" : 'X\(//\)$' \| \
14009 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14010 $as_echo X"$mf" |
14011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14012 s//\1/
14013 q
14014 }
14015 /^X\(\/\/\)[^/].*/{
14016 s//\1/
14017 q
14018 }
14019 /^X\(\/\/\)$/{
14020 s//\1/
14021 q
14022 }
14023 /^X\(\/\).*/{
14024 s//\1/
14025 q
14026 }
14027 s/.*/./; q'`
14028 else
14029 continue
14030 fi
14031 # Extract the definition of DEPDIR, am__include, and am__quote
14032 # from the Makefile without running `make'.
14033 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14034 test -z "$DEPDIR" && continue
14035 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14036 test -z "am__include" && continue
14037 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14038 # When using ansi2knr, U may be empty or an underscore; expand it
14039 U=`sed -n 's/^U = //p' < "$mf"`
14040 # Find all dependency output files, they are included files with
14041 # $(DEPDIR) in their names. We invoke sed twice because it is the
14042 # simplest approach to changing $(DEPDIR) to its actual value in the
14043 # expansion.
14044 for file in `sed -n "
14045 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14046 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14047 # Make sure the directory exists.
14048 test -f "$dirpart/$file" && continue
14049 fdir=`$as_dirname -- "$file" ||
14050 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14051 X"$file" : 'X\(//\)[^/]' \| \
14052 X"$file" : 'X\(//\)$' \| \
14053 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14054 $as_echo X"$file" |
14055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14056 s//\1/
14057 q
14058 }
14059 /^X\(\/\/\)[^/].*/{
14060 s//\1/
14061 q
14062 }
14063 /^X\(\/\/\)$/{
14064 s//\1/
14065 q
14066 }
14067 /^X\(\/\).*/{
14068 s//\1/
14069 q
14070 }
14071 s/.*/./; q'`
14072 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14073 # echo "creating $dirpart/$file"
14074 echo '# dummy' > "$dirpart/$file"
14075 done
14076 done
14077 }
14078 ;;
14079 "libtool":C)
14080
14081 # See if we are running on zsh, and set the options which allow our
14082 # commands through without removal of \ escapes.
14083 if test -n "${ZSH_VERSION+set}" ; then
14084 setopt NO_GLOB_SUBST
14085 fi
14086
14087 cfgfile="${ofile}T"
14088 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14089 $RM "$cfgfile"
14090
14091 cat <<_LT_EOF >> "$cfgfile"
14092 #! $SHELL
14093
14094 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14095 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14096 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14097 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14098 #
14099 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14100 # 2006, 2007, 2008 Free Software Foundation, Inc.
14101 # Written by Gordon Matzigkeit, 1996
14102 #
14103 # This file is part of GNU Libtool.
14104 #
14105 # GNU Libtool is free software; you can redistribute it and/or
14106 # modify it under the terms of the GNU General Public License as
14107 # published by the Free Software Foundation; either version 2 of
14108 # the License, or (at your option) any later version.
14109 #
14110 # As a special exception to the GNU General Public License,
14111 # if you distribute this file as part of a program or library that
14112 # is built using GNU Libtool, you may include this file under the
14113 # same distribution terms that you use for the rest of that program.
14114 #
14115 # GNU Libtool is distributed in the hope that it will be useful,
14116 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14117 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14118 # GNU General Public License for more details.
14119 #
14120 # You should have received a copy of the GNU General Public License
14121 # along with GNU Libtool; see the file COPYING. If not, a copy
14122 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14123 # obtained by writing to the Free Software Foundation, Inc.,
14124 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14125
14126
14127 # The names of the tagged configurations supported by this script.
14128 available_tags=""
14129
14130 # ### BEGIN LIBTOOL CONFIG
14131
14132 # Whether or not to build static libraries.
14133 build_old_libs=$enable_static
14134
14135 # Which release of libtool.m4 was used?
14136 macro_version=$macro_version
14137 macro_revision=$macro_revision
14138
14139 # Whether or not to build shared libraries.
14140 build_libtool_libs=$enable_shared
14141
14142 # What type of objects to build.
14143 pic_mode=$pic_mode
14144
14145 # Whether or not to optimize for fast installation.
14146 fast_install=$enable_fast_install
14147
14148 # The host system.
14149 host_alias=$host_alias
14150 host=$host
14151 host_os=$host_os
14152
14153 # The build system.
14154 build_alias=$build_alias
14155 build=$build
14156 build_os=$build_os
14157
14158 # A sed program that does not truncate output.
14159 SED=$lt_SED
14160
14161 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14162 Xsed="\$SED -e 1s/^X//"
14163
14164 # A grep program that handles long lines.
14165 GREP=$lt_GREP
14166
14167 # An ERE matcher.
14168 EGREP=$lt_EGREP
14169
14170 # A literal string matcher.
14171 FGREP=$lt_FGREP
14172
14173 # A BSD- or MS-compatible name lister.
14174 NM=$lt_NM
14175
14176 # Whether we need soft or hard links.
14177 LN_S=$lt_LN_S
14178
14179 # What is the maximum length of a command?
14180 max_cmd_len=$max_cmd_len
14181
14182 # Object file suffix (normally "o").
14183 objext=$ac_objext
14184
14185 # Executable file suffix (normally "").
14186 exeext=$exeext
14187
14188 # whether the shell understands "unset".
14189 lt_unset=$lt_unset
14190
14191 # turn spaces into newlines.
14192 SP2NL=$lt_lt_SP2NL
14193
14194 # turn newlines into spaces.
14195 NL2SP=$lt_lt_NL2SP
14196
14197 # How to create reloadable object files.
14198 reload_flag=$lt_reload_flag
14199 reload_cmds=$lt_reload_cmds
14200
14201 # An object symbol dumper.
14202 OBJDUMP=$lt_OBJDUMP
14203
14204 # Method to check whether dependent libraries are shared objects.
14205 deplibs_check_method=$lt_deplibs_check_method
14206
14207 # Command to use when deplibs_check_method == "file_magic".
14208 file_magic_cmd=$lt_file_magic_cmd
14209
14210 # The archiver.
14211 AR=$lt_AR
14212 AR_FLAGS=$lt_AR_FLAGS
14213
14214 # A symbol stripping program.
14215 STRIP=$lt_STRIP
14216
14217 # Commands used to install an old-style archive.
14218 RANLIB=$lt_RANLIB
14219 old_postinstall_cmds=$lt_old_postinstall_cmds
14220 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14221
14222 # A C compiler.
14223 LTCC=$lt_CC
14224
14225 # LTCC compiler flags.
14226 LTCFLAGS=$lt_CFLAGS
14227
14228 # Take the output of nm and produce a listing of raw symbols and C names.
14229 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14230
14231 # Transform the output of nm in a proper C declaration.
14232 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14233
14234 # Transform the output of nm in a C name address pair.
14235 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14236
14237 # Transform the output of nm in a C name address pair when lib prefix is needed.
14238 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14239
14240 # The name of the directory that contains temporary libtool files.
14241 objdir=$objdir
14242
14243 # Shell to use when invoking shell scripts.
14244 SHELL=$lt_SHELL
14245
14246 # An echo program that does not interpret backslashes.
14247 ECHO=$lt_ECHO
14248
14249 # Used to examine libraries when file_magic_cmd begins with "file".
14250 MAGIC_CMD=$MAGIC_CMD
14251
14252 # Must we lock files when doing compilation?
14253 need_locks=$lt_need_locks
14254
14255 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14256 DSYMUTIL=$lt_DSYMUTIL
14257
14258 # Tool to change global to local symbols on Mac OS X.
14259 NMEDIT=$lt_NMEDIT
14260
14261 # Tool to manipulate fat objects and archives on Mac OS X.
14262 LIPO=$lt_LIPO
14263
14264 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14265 OTOOL=$lt_OTOOL
14266
14267 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14268 OTOOL64=$lt_OTOOL64
14269
14270 # Old archive suffix (normally "a").
14271 libext=$libext
14272
14273 # Shared library suffix (normally ".so").
14274 shrext_cmds=$lt_shrext_cmds
14275
14276 # The commands to extract the exported symbol list from a shared archive.
14277 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14278
14279 # Variables whose values should be saved in libtool wrapper scripts and
14280 # restored at link time.
14281 variables_saved_for_relink=$lt_variables_saved_for_relink
14282
14283 # Do we need the "lib" prefix for modules?
14284 need_lib_prefix=$need_lib_prefix
14285
14286 # Do we need a version for libraries?
14287 need_version=$need_version
14288
14289 # Library versioning type.
14290 version_type=$version_type
14291
14292 # Shared library runtime path variable.
14293 runpath_var=$runpath_var
14294
14295 # Shared library path variable.
14296 shlibpath_var=$shlibpath_var
14297
14298 # Is shlibpath searched before the hard-coded library search path?
14299 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14300
14301 # Format of library name prefix.
14302 libname_spec=$lt_libname_spec
14303
14304 # List of archive names. First name is the real one, the rest are links.
14305 # The last name is the one that the linker finds with -lNAME
14306 library_names_spec=$lt_library_names_spec
14307
14308 # The coded name of the library, if different from the real name.
14309 soname_spec=$lt_soname_spec
14310
14311 # Command to use after installation of a shared archive.
14312 postinstall_cmds=$lt_postinstall_cmds
14313
14314 # Command to use after uninstallation of a shared archive.
14315 postuninstall_cmds=$lt_postuninstall_cmds
14316
14317 # Commands used to finish a libtool library installation in a directory.
14318 finish_cmds=$lt_finish_cmds
14319
14320 # As "finish_cmds", except a single script fragment to be evaled but
14321 # not shown.
14322 finish_eval=$lt_finish_eval
14323
14324 # Whether we should hardcode library paths into libraries.
14325 hardcode_into_libs=$hardcode_into_libs
14326
14327 # Compile-time system search path for libraries.
14328 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14329
14330 # Run-time system search path for libraries.
14331 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14332
14333 # Whether dlopen is supported.
14334 dlopen_support=$enable_dlopen
14335
14336 # Whether dlopen of programs is supported.
14337 dlopen_self=$enable_dlopen_self
14338
14339 # Whether dlopen of statically linked programs is supported.
14340 dlopen_self_static=$enable_dlopen_self_static
14341
14342 # Commands to strip libraries.
14343 old_striplib=$lt_old_striplib
14344 striplib=$lt_striplib
14345
14346
14347 # The linker used to build libraries.
14348 LD=$lt_LD
14349
14350 # Commands used to build an old-style archive.
14351 old_archive_cmds=$lt_old_archive_cmds
14352
14353 # A language specific compiler.
14354 CC=$lt_compiler
14355
14356 # Is the compiler the GNU compiler?
14357 with_gcc=$GCC
14358
14359 # Compiler flag to turn off builtin functions.
14360 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14361
14362 # How to pass a linker flag through the compiler.
14363 wl=$lt_lt_prog_compiler_wl
14364
14365 # Additional compiler flags for building library objects.
14366 pic_flag=$lt_lt_prog_compiler_pic
14367
14368 # Compiler flag to prevent dynamic linking.
14369 link_static_flag=$lt_lt_prog_compiler_static
14370
14371 # Does compiler simultaneously support -c and -o options?
14372 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14373
14374 # Whether or not to add -lc for building shared libraries.
14375 build_libtool_need_lc=$archive_cmds_need_lc
14376
14377 # Whether or not to disallow shared libs when runtime libs are static.
14378 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14379
14380 # Compiler flag to allow reflexive dlopens.
14381 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14382
14383 # Compiler flag to generate shared objects directly from archives.
14384 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14385
14386 # Whether the compiler copes with passing no objects directly.
14387 compiler_needs_object=$lt_compiler_needs_object
14388
14389 # Create an old-style archive from a shared archive.
14390 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14391
14392 # Create a temporary old-style archive to link instead of a shared archive.
14393 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14394
14395 # Commands used to build a shared archive.
14396 archive_cmds=$lt_archive_cmds
14397 archive_expsym_cmds=$lt_archive_expsym_cmds
14398
14399 # Commands used to build a loadable module if different from building
14400 # a shared archive.
14401 module_cmds=$lt_module_cmds
14402 module_expsym_cmds=$lt_module_expsym_cmds
14403
14404 # Whether we are building with GNU ld or not.
14405 with_gnu_ld=$lt_with_gnu_ld
14406
14407 # Flag that allows shared libraries with undefined symbols to be built.
14408 allow_undefined_flag=$lt_allow_undefined_flag
14409
14410 # Flag that enforces no undefined symbols.
14411 no_undefined_flag=$lt_no_undefined_flag
14412
14413 # Flag to hardcode \$libdir into a binary during linking.
14414 # This must work even if \$libdir does not exist
14415 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14416
14417 # If ld is used when linking, flag to hardcode \$libdir into a binary
14418 # during linking. This must work even if \$libdir does not exist.
14419 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14420
14421 # Whether we need a single "-rpath" flag with a separated argument.
14422 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14423
14424 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14425 # DIR into the resulting binary.
14426 hardcode_direct=$hardcode_direct
14427
14428 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14429 # DIR into the resulting binary and the resulting library dependency is
14430 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14431 # library is relocated.
14432 hardcode_direct_absolute=$hardcode_direct_absolute
14433
14434 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14435 # into the resulting binary.
14436 hardcode_minus_L=$hardcode_minus_L
14437
14438 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14439 # into the resulting binary.
14440 hardcode_shlibpath_var=$hardcode_shlibpath_var
14441
14442 # Set to "yes" if building a shared library automatically hardcodes DIR
14443 # into the library and all subsequent libraries and executables linked
14444 # against it.
14445 hardcode_automatic=$hardcode_automatic
14446
14447 # Set to yes if linker adds runtime paths of dependent libraries
14448 # to runtime path list.
14449 inherit_rpath=$inherit_rpath
14450
14451 # Whether libtool must link a program against all its dependency libraries.
14452 link_all_deplibs=$link_all_deplibs
14453
14454 # Fix the shell variable \$srcfile for the compiler.
14455 fix_srcfile_path=$lt_fix_srcfile_path
14456
14457 # Set to "yes" if exported symbols are required.
14458 always_export_symbols=$always_export_symbols
14459
14460 # The commands to list exported symbols.
14461 export_symbols_cmds=$lt_export_symbols_cmds
14462
14463 # Symbols that should not be listed in the preloaded symbols.
14464 exclude_expsyms=$lt_exclude_expsyms
14465
14466 # Symbols that must always be exported.
14467 include_expsyms=$lt_include_expsyms
14468
14469 # Commands necessary for linking programs (against libraries) with templates.
14470 prelink_cmds=$lt_prelink_cmds
14471
14472 # Specify filename containing input files.
14473 file_list_spec=$lt_file_list_spec
14474
14475 # How to hardcode a shared library path into an executable.
14476 hardcode_action=$hardcode_action
14477
14478 # ### END LIBTOOL CONFIG
14479
14480 _LT_EOF
14481
14482 case $host_os in
14483 aix3*)
14484 cat <<\_LT_EOF >> "$cfgfile"
14485 # AIX sometimes has problems with the GCC collect2 program. For some
14486 # reason, if we set the COLLECT_NAMES environment variable, the problems
14487 # vanish in a puff of smoke.
14488 if test "X${COLLECT_NAMES+set}" != Xset; then
14489 COLLECT_NAMES=
14490 export COLLECT_NAMES
14491 fi
14492 _LT_EOF
14493 ;;
14494 esac
14495
14496
14497 ltmain="$ac_aux_dir/ltmain.sh"
14498
14499
14500 # We use sed instead of cat because bash on DJGPP gets confused if
14501 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14502 # text mode, it properly converts lines to CR/LF. This bash problem
14503 # is reportedly fixed, but why not run on old versions too?
14504 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14505 || (rm -f "$cfgfile"; exit 1)
14506
14507 case $xsi_shell in
14508 yes)
14509 cat << \_LT_EOF >> "$cfgfile"
14510
14511 # func_dirname file append nondir_replacement
14512 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14513 # otherwise set result to NONDIR_REPLACEMENT.
14514 func_dirname ()
14515 {
14516 case ${1} in
14517 */*) func_dirname_result="${1%/*}${2}" ;;
14518 * ) func_dirname_result="${3}" ;;
14519 esac
14520 }
14521
14522 # func_basename file
14523 func_basename ()
14524 {
14525 func_basename_result="${1##*/}"
14526 }
14527
14528 # func_dirname_and_basename file append nondir_replacement
14529 # perform func_basename and func_dirname in a single function
14530 # call:
14531 # dirname: Compute the dirname of FILE. If nonempty,
14532 # add APPEND to the result, otherwise set result
14533 # to NONDIR_REPLACEMENT.
14534 # value returned in "$func_dirname_result"
14535 # basename: Compute filename of FILE.
14536 # value retuned in "$func_basename_result"
14537 # Implementation must be kept synchronized with func_dirname
14538 # and func_basename. For efficiency, we do not delegate to
14539 # those functions but instead duplicate the functionality here.
14540 func_dirname_and_basename ()
14541 {
14542 case ${1} in
14543 */*) func_dirname_result="${1%/*}${2}" ;;
14544 * ) func_dirname_result="${3}" ;;
14545 esac
14546 func_basename_result="${1##*/}"
14547 }
14548
14549 # func_stripname prefix suffix name
14550 # strip PREFIX and SUFFIX off of NAME.
14551 # PREFIX and SUFFIX must not contain globbing or regex special
14552 # characters, hashes, percent signs, but SUFFIX may contain a leading
14553 # dot (in which case that matches only a dot).
14554 func_stripname ()
14555 {
14556 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14557 # positional parameters, so assign one to ordinary parameter first.
14558 func_stripname_result=${3}
14559 func_stripname_result=${func_stripname_result#"${1}"}
14560 func_stripname_result=${func_stripname_result%"${2}"}
14561 }
14562
14563 # func_opt_split
14564 func_opt_split ()
14565 {
14566 func_opt_split_opt=${1%%=*}
14567 func_opt_split_arg=${1#*=}
14568 }
14569
14570 # func_lo2o object
14571 func_lo2o ()
14572 {
14573 case ${1} in
14574 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14575 *) func_lo2o_result=${1} ;;
14576 esac
14577 }
14578
14579 # func_xform libobj-or-source
14580 func_xform ()
14581 {
14582 func_xform_result=${1%.*}.lo
14583 }
14584
14585 # func_arith arithmetic-term...
14586 func_arith ()
14587 {
14588 func_arith_result=$(( $* ))
14589 }
14590
14591 # func_len string
14592 # STRING may not start with a hyphen.
14593 func_len ()
14594 {
14595 func_len_result=${#1}
14596 }
14597
14598 _LT_EOF
14599 ;;
14600 *) # Bourne compatible functions.
14601 cat << \_LT_EOF >> "$cfgfile"
14602
14603 # func_dirname file append nondir_replacement
14604 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14605 # otherwise set result to NONDIR_REPLACEMENT.
14606 func_dirname ()
14607 {
14608 # Extract subdirectory from the argument.
14609 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14610 if test "X$func_dirname_result" = "X${1}"; then
14611 func_dirname_result="${3}"
14612 else
14613 func_dirname_result="$func_dirname_result${2}"
14614 fi
14615 }
14616
14617 # func_basename file
14618 func_basename ()
14619 {
14620 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14621 }
14622
14623
14624 # func_stripname prefix suffix name
14625 # strip PREFIX and SUFFIX off of NAME.
14626 # PREFIX and SUFFIX must not contain globbing or regex special
14627 # characters, hashes, percent signs, but SUFFIX may contain a leading
14628 # dot (in which case that matches only a dot).
14629 # func_strip_suffix prefix name
14630 func_stripname ()
14631 {
14632 case ${2} in
14633 .*) func_stripname_result=`$ECHO "X${3}" \
14634 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14635 *) func_stripname_result=`$ECHO "X${3}" \
14636 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14637 esac
14638 }
14639
14640 # sed scripts:
14641 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14642 my_sed_long_arg='1s/^-[^=]*=//'
14643
14644 # func_opt_split
14645 func_opt_split ()
14646 {
14647 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14648 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14649 }
14650
14651 # func_lo2o object
14652 func_lo2o ()
14653 {
14654 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14655 }
14656
14657 # func_xform libobj-or-source
14658 func_xform ()
14659 {
14660 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14661 }
14662
14663 # func_arith arithmetic-term...
14664 func_arith ()
14665 {
14666 func_arith_result=`expr "$@"`
14667 }
14668
14669 # func_len string
14670 # STRING may not start with a hyphen.
14671 func_len ()
14672 {
14673 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14674 }
14675
14676 _LT_EOF
14677 esac
14678
14679 case $lt_shell_append in
14680 yes)
14681 cat << \_LT_EOF >> "$cfgfile"
14682
14683 # func_append var value
14684 # Append VALUE to the end of shell variable VAR.
14685 func_append ()
14686 {
14687 eval "$1+=\$2"
14688 }
14689 _LT_EOF
14690 ;;
14691 *)
14692 cat << \_LT_EOF >> "$cfgfile"
14693
14694 # func_append var value
14695 # Append VALUE to the end of shell variable VAR.
14696 func_append ()
14697 {
14698 eval "$1=\$$1\$2"
14699 }
14700
14701 _LT_EOF
14702 ;;
14703 esac
14704
14705
14706 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14707 || (rm -f "$cfgfile"; exit 1)
14708
14709 mv -f "$cfgfile" "$ofile" ||
14710 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14711 chmod +x "$ofile"
14712
14713 ;;
14714
14715 esac
14716 done # for ac_tag
14717
14718
14719 as_fn_exit 0
14720 _ACEOF
14721 ac_clean_files=$ac_clean_files_save
14722
14723 test $ac_write_fail = 0 ||
14724 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14725
14726
14727 # configure is writing to config.log, and then calls config.status.
14728 # config.status does its own redirection, appending to config.log.
14729 # Unfortunately, on DOS this fails, as config.log is still kept open
14730 # by configure, so config.status won't be able to write to it; its
14731 # output is simply discarded. So we exec the FD to /dev/null,
14732 # effectively closing config.log, so it can be properly (re)opened and
14733 # appended to by config.status. When coming back to configure, we
14734 # need to make the FD available again.
14735 if test "$no_create" != yes; then
14736 ac_cs_success=:
14737 ac_config_status_args=
14738 test "$silent" = yes &&
14739 ac_config_status_args="$ac_config_status_args --quiet"
14740 exec 5>/dev/null
14741 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14742 exec 5>>config.log
14743 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14744 # would make configure fail if this is the last instruction.
14745 $ac_cs_success || as_fn_exit 1
14746 fi
14747 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14749 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14750 fi
14751
14752